0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

99 Commits

Author SHA1 Message Date
Yuichiro Yamashita
11ada98565
[docs] fix sentences in <svelte:element> (#7484) 2022-04-25 15:09:30 +02:00
Yuichiro Yamashita
e0d93254fd
[feature] Dynamic elements implementation <svelte:element> (#6898)
Closes #2324

Co-authored-by: Alfred Ringstad <alfred.ringstad@hyperlab.se>
Co-authored-by: Simon Holthausen <simon.holthausen@accso.de>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2022-04-08 16:54:55 +02:00
TzuHsuan
535a1fc20d
Change top level requirement wording (#7336)
Changed the wording to be more consistent between `<svelte:window>`, `<svelte:body>` and `<svelte:head>`.
Chose "may only appear" over "has to appear" as the latter could be misinterpreted as a compulsory element
2022-04-08 10:22:01 +08:00
Geoff Rich
fc2470494d
[docs] fix broken links (#7194) 2022-02-01 13:43:28 -08:00
Bjorn Lu
cc445839e3
[docs] explain initial value for bind scroll (#7065)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2022-01-14 13:10:33 +08:00
Tan Li Hau
b5aaa6641b
[feat] implement constants in markup (#6413) 2022-01-11 17:10:09 -05:00
Paul Murray
8a47b5ec9e
[feat] Style directives (#5923)
* add Style node, interfaces

* style-directives: add parser and runtime test

* style-directives: push styles in to styles array on Element

* style-directives: minimal ssr work

* style-directives: ssr add_styles

* style-directive: tests

* style-directives: work in progress

* obviously incorrect hard-coded color

* tweak

* style directive interface

* style-directives: get text from info in Style node

* style-directives: add_styles func in ElementWrapper

* style-directives: ssr rendering

* handle text-only style directive in tag.ts

* style-directives: handle spread styles in ssr

* style-directives: more parser tests

* style-directives: more inline tests

* style-directives: remove solo tests

* style-directives: cleanup

* style-directives: tweak spread ssr internal

* style-directives: push updater into update chunks; add dynamic test;

* remove .solo

* check for dynamic dependencies before adding update chunk

* add test of multiple styles; remove null styles;

* style-directives: docs; more tests of multiple styles

* style-directives: use camelcase

* style-directives: cleanup

* style-directives: fix mustache template case with template literal

* style-directives: use ternary

* style-directives: linting

* style-directives: remove "text" from interface

* style-directives: actually, remove StyleDirective interface entriely

* add more test, fix test for ssr

* fix lint and tidy up

* add test for css variables

* fix linting errors

Co-authored-by: pmurray73 <pmurray73@bloomberg.net>
Co-authored-by: Tan Li Hau <lhtan93@gmail.com>
2022-01-08 11:09:11 -05:00
Ignatius Bagus
04890c73d2
[docs] absolute and future proof links (#7038) 2021-12-21 09:46:39 -08:00
Rich Harris
7521bd55b5
[docs] fix hash fragments (#7025)
* fix hash fragments

* remove link hack
2021-12-17 18:30:45 -05:00
Dmitriy Fishman
fd466d7221
[docs] fix typo in 02-template-syntax.md (#6929) 2021-11-15 14:22:37 +08:00
gtmnayan
7681ed0a45
[docs] Document the effect of the order of bind: and on: (#6887) 2021-11-08 07:34:04 +01:00
Alexander Prinzhorn
6f8a6fe90b
[docs] Improve wording for animate docs (#6813) 2021-10-20 09:42:39 -07:00
Ben McCann
547fbc6ebd
[docs] what is rendered when for #await (#6788) 2021-10-01 08:23:04 +02:00
Geoff Rich
7e156c014e
[docs] document details binding (#6700) 2021-09-10 10:02:45 -04:00
João Paulo
0027a41934
[docs] Fix typo in $$slots docs (#6709) 2021-09-10 10:00:56 -04:00
duarte-pompeu
8d3f4512f6
[docs] Fix the speed of the typewriter example to scale correctly (#6568) 2021-08-27 19:50:44 -07:00
Conduitry
1c58fa91cc
[docs] various adjustments to template syntax docs (#6619) 2021-08-08 09:43:43 -07:00
Tan Li Hau
ce550adef6
[feat] allow use:actions on <svelte:body> (#6608) 2021-08-04 12:19:13 -04:00
Samuel Plumppu
172f294cb6
docs: Fix property name typo for event.isTrusted (#6596) 2021-08-03 15:19:56 -07:00
Dennis Dudek
a3fb765d6f
[docs] add trusted modifier to list of modifiers in tutorial and docs (#6566) 2021-07-26 09:36:46 -07:00
Ignatius Bagus
5334f4ad1b
docs: mention usage of regexp literal in text expressions (#5640) 2021-07-09 21:16:37 -07:00
swyx
e43778a0c4
document new style props feature in Svelte 3.38 (#6378) 2021-06-27 18:13:07 +02:00
Simon H
e27d71f0cf
docs: fix typo 2021-05-30 12:33:20 +02:00
Paul Murray
ad29604d6b
Docs: Rename slot let section (#6018)
The title of this section was a bit confusing, since `<slot let:name={value} />` is not actually the correct syntax
2021-05-29 19:46:20 +02:00
Dan Kozlov
cc58f60002
Add a note that bind:files is readonly (#6099) 2021-05-29 19:44:25 +02:00
Stephane
b1d09a4aa2
Clarify that special elements have to be top level (#6240) 2021-05-29 19:36:35 +02:00
Simon H
4acfb05315
Docs: Clarify that @html does not compile Svelte code (#6349) 2021-05-29 18:44:42 +02:00
Geoff Rich
a55295de8c
docs: mention that svelte:self can be in a slot (#6184) 2021-04-12 08:01:41 +08:00
Stephane
47e1eeed56
Add documentation and tutorial for svelte:fragment (#6097) 2021-03-29 23:01:29 +02:00
Ben McCann
55b11b0664
docs: define component before demonstrating usage (#5921) 2021-01-26 09:50:53 +08:00
halfnelson
a7eff8894f
add foreign namespace to preserve attribute case and skip HTML-specific a11y validations (#5652) 2021-01-25 16:25:10 -05:00
Liam Egan
1046ca71a7
Remove duplicate sentence (#5751) 2020-12-14 14:38:24 +00:00
swyx
e750b7284e
document await...catch shorthand (#5682) 2020-11-17 18:41:35 +08:00
Cameron Messinides
169fd8497c
docs: add documentation for $$slots (#5277) 2020-10-29 16:24:39 -04:00
Tan Li Hau
fa7c780bad
{#key} block (#5397)
Co-authored-by: Conduitry <git@chor.date>
2020-09-25 10:12:49 -04:00
Tan Li Hau
a1651ca271
add nonpassive event modifier (#5442)
Co-authored-by: filipot <filipot@stud.ntnu.no>
2020-09-24 15:54:54 -04:00
Eugene Hwang
ae971f80ae
docs: adjust explanations of $$props and $$restProps (#5368) 2020-09-10 15:31:28 -04:00
Luca Bonavita
8f17d6c78c
docs: document bind:files (#5141) 2020-08-12 16:05:59 -04:00
Luca Bonavita
c31a4b56d0 site: rephrase to clarify that actions can have just one parameter.
Closes #5173
2020-07-21 15:12:59 +01:00
Matt Wolff
5b2b58f46f
docs: media binding tweaks (#4967) 2020-06-08 10:49:14 -04:00
Daniel Imfeld
f624d6e292
docs: value cannot be set via spread for indirectly bound values (#4832) 2020-05-21 16:37:29 -04:00
Robert Hall
7fe1384f43
Property "muted" for <audio> and <video> (#4690)
* Audio two-way `muted` bind property

Loosely based on a37ee81676

* Documentation

* fix test

* dont bother coercing muted, it happens automatically

Co-authored-by: Richard Harris <richard.a.harris@gmail.com>
2020-05-18 21:37:03 -04:00
pngwn
d5e95594e9
feat(site): add svelte syntax highlighting (#4851) 2020-05-17 12:03:22 -04:00
MichalBednarczyk
edeeb05a6c
docs: {#each} with key but without index (#4721) 2020-04-29 15:48:45 -04:00
Daniel Imfeld
676d57b5f7
docs: clarify that all elements in an outroing block remain until the transition finishes (#4684) 2020-04-24 09:20:31 -04:00
pushkin
467fc84d7d
docs: mention |self modifier in reference section (#4709) 2020-04-23 09:08:42 -04:00
Conduitry
0d263cc1ea docs: use Node.TEXT_NODE in more places 2020-04-12 13:30:39 -04:00
Tan Li Hau
91d758e35b
introduce $$restProps (#4489) 2020-03-09 22:22:39 -04:00
Conduitry
addea43e4f
docs: describe falsy and nullish attribute behavior (#4498) 2020-03-02 09:01:00 -05:00
Matthew Dempsky
a53da7e4b0
site: clearer examples for <slot let:name> (#4125) 2020-02-22 23:40:07 -05:00