Simon H
7d11fa8da2
fix: recognize all custom element prop definitions ( #14084 )
...
We didn't account for the `$props` rune being writtin in a way that makes some props unknown, and they would only be visible through the `customElement.props` definition. This changes the iteration to account for that and also adds a note to the documentation that you need to list out the properties explicitly.
fixes #13785
5 days ago
Rich Harris
6a2c28c590
docs: tweak untrack description, provide an example of usage ( #14085 )
...
* docs: tweak untrack description, provide an example of usage
* link to untrack
* add derived docs too
5 days ago
Conduitry
2ab70041fd
chore: mark markdown output from process-messages as generated ( #13913 )
...
* chore: mark markdown output from process-messages as generated
* regenerate
5 days ago
Rich Harris
ffbd5c971e
docs: fix runtime-warnings page ( #14077 )
...
* fix runtime-warnings page
* fix
5 days ago
Rich Harris
9cd476881d
fix props docs ( #14079 )
5 days ago
Rich Harris
0ed914b2e5
docs: improve lazy import example ( #14076 )
...
* docs: improve lazy import example
* Update documentation/docs/03-template-syntax/05-await.md
5 days ago
Abu
ca58039e3e
docs: fix type ( #14064 )
...
this slot name should be `footer` instead it was `header`
6 days ago
Bernie Sumption
217ef2062d
docs: clarify when prop values are deeply reactive ( #13994 )
...
* Update $props documentation to clarify when prop values are deeply reactive
* Update 05-$props.md
* Apply suggestions from code review
* drive-by-fixes
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
6 days ago
Devr
6a1b5dd004
docs : add an example of using dynamic components ( #13993 )
...
Closes #13990
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
6 days ago
Rich Harris
6b6445a934
add parameters to `in:fly` ( #14057 )
...
Without a `y` value, `fly` is indistinguishable from `fade`
6 days ago
gubo97000
0efe031edc
Update 07-$inspect.md ( #14048 )
...
moved note to top
6 days ago
Dave Snider
ee2f4a209b
docs: Update in and out docs to show the imports ( #14050 )
...
* Update in and out docs to show the imports
* Apply suggestions from code review
---------
Co-authored-by: Rich Harris <hello@rich-harris.dev>
6 days ago
Rich Harris
4157db94c4
fix: correct typo in compiler error messages ( #14044 )
6 days ago
Conduitry
6ad8240464
docs: fix various typos in reference docs ( #14011 )
...
* docs: fix note about $derived
* fix some other typos
* revert one change
* emdash tweak
6 days ago
Simon H
e487f61262
docs: mark deprecated options as such ( #13989 )
...
closes #13984
7 days ago
Simon H
b3437e6020
docs: note old site ( #13996 )
1 week ago
Rich Harris
777d059b10
docs: update heading level in `02-getting-started.md` ( #13997 )
1 week ago
Richard Smith
e99e865291
docs: update links to point to new site ( #13986 )
...
Update (some) of the links pointing to the old preview site as mentioned in #13982 .
This updates all the links in documentation/ and packages/svelte/messages, but doesn't touch others present in packages/svelte/ or fix the original link in that issue.
1 week ago
Tee Ming
430c2bb129
docs: use `$effect.pre` instead of `beforeUpdate` ( #13955 )
...
* Update 03-lifecycle-hooks.md
* Update documentation/docs/06-runtime/03-lifecycle-hooks.md
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
---------
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
1 week ago
Max Duval
ac6d8c0bf4
docs: fix small typo ( #13967 )
...
A full stop or colon, we myst choose
1 week ago
george looshch
5ab65e3d59
docs: consistently capitalize DOM in the Svelte 5 migration guide ( #13957 ) ( #13958 )
...
Make the casing of the word ‘DOM’ in the Svelte 5 migration guide
consistent.
1 week ago
Stephane
feb2d85f46
docs: clarify why we need to use the derived rune ( #13919 )
...
* clarify why we need to use the derived rune
* put clarification as note
2 weeks ago
Conduitry
107be28890
docs: fix outdated $effect.tracking() demo ( #13906 )
2 weeks ago
plgingras88
18e2284e74
docs: fix setContext/getContext typo ( #13901 )
2 weeks ago
Harry Allen
86ef18165f
docs: fix code example ( #13847 )
2 weeks ago
Houssam Elbadissi
3d3c98f3b0
docs: cleanup some leftover `>` symbols ( #13846 )
...
I assume they were accidentally left there because they used to be separate lines each with their own `>` at the beginning of the line, but whoever collapsed them into one line forgot to remove the extra arrow.
Whatever the case is, this commit removes (probably) all of these leftover `>` symbols.
2 weeks ago
Simon H
594e3ab311
docs: note TS caveat about module exports ( #13842 )
...
closes #13554
2 weeks ago
Alex
134049f6d3
docs: clarifying wording in explanation of state rune in v5 migration guide. ( #13839 )
...
Co-authored-by: Bustos, Alex <alex.bustos@gtri.gatech.edu>
2 weeks ago
Simon H
96e2d5a395
docs: provide info about wrapper components ( #13826 )
...
closes #13006
2 weeks ago
Ben McCann
0b178cecce
chore: update all learn.svelte.dev links and a couple of others ( #13803 )
2 weeks ago
brunnerh
69f6b58bd4
docs: Reference `svelte/reactivity` from `$state`. ( #13571 )
2 weeks ago
Emanuele Picchirallo
6257203c22
docs: specify script language and add `npm install` step to installation guide ( #13804 )
2 weeks ago
Simon H
7ecc6c076c
docs: fix code example ( #13810 )
...
backporting from https://github.com/sveltejs/svelte.dev/pull/546
2 weeks ago
Jayden W
d16a9da153
docs: fix TODO to add link to tutorial in migration guide ( #13796 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2 weeks ago
brunnerh
708fd9c4be
docs: fix various typos ( #13801 )
2 weeks ago
brunnerh
779b730a80
docs: fix typos in createEventDispatcher migration rationale ( #13800 )
2 weeks ago
wackbyte
0fd1a45131
docs: fix generic props type ( #13792 )
2 weeks ago
Conduitry
dbba2b0d27
docs: fix demo links to playground ( #13788 )
2 weeks ago
Dmytro Cheglakov
be131575d8
docs: fix typo in the snippet closing tag ( #13782 )
2 weeks ago
Rich Harris
e7d181ddb3
make links internal ( #13789 )
2 weeks ago
Rich Harris
4f6bb41030
More docs stuff ( #13769 )
...
* fix
* link
* more docs stuff
* more
* more
* fix
* more
* more
* fix
* fix
* more
* ffs
* FML
2 weeks ago
Simon H
4c7cfff434
docs: legacy docs ( #13756 )
...
* docs: legacy docs
add docs on old syntax
* rename section
* tweaks
* tweak
* tweaks
* tweaks
* tweaks
* fix link
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2 weeks ago
Paolo Ricciuti
8ff2af52d3
fix: show filename information in `legacy_recursive_reactive_block` ( #13764 )
2 weeks ago
brunnerh
ef205d960e
docs: fix typos ( #13752 )
...
- remove copy pasted argument from $set
- fix typo
2 weeks ago
Rich Harris
fd78385447
chore: restructure docs for new site ( #13699 )
2 weeks ago
Ahmad S.
618d89c368
docs: replace `<div>` with `<svelte-css-wrapper>` for style props ( #13706 )
2 weeks ago
Dominic Gannaway
ae10f4d37c
breaking: state mutations inside the template are no longer allowed ( #13660 )
...
* breaking: state mutations inside the template are no longer allowed
* fix test
* fix test
* lint
* update error message
* fix test
3 weeks ago
Dominic Gannaway
139114bdcb
fix: ensure legacy run utility does not cause cycles ( #13643 )
...
* fix: ensure legacy run utility does not cause cycles
* add warning
* add warning
* lint
* feedback
* lint
* lint
3 weeks ago
Dominic Gannaway
2070c8a166
breaking: disallow state mutations in logic block expression ( #13625 )
3 weeks ago
Rich Harris
94aea0f624
gah missed a spot
3 weeks ago