0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-21 11:28:58 +01:00
Commit Graph

225 Commits

Author SHA1 Message Date
Rob B
97185eb3d5
docs Update 03-typescript.md (#14382)
* Update 03-typescript.md

Fix TS error: Cannot invoke an object which is possibly 'undefined'.

* Update 03-typescript.md

---------

Co-authored-by: Rich Harris <hello@rich-harris.dev>
2024-11-20 17:14:21 -05:00
Gwen Le Bihan
24ebbcbbc1
docs: use e.detail instead of e.details in migration examples (#14340) 2024-11-17 17:27:34 -05:00
Simon H
6373641045
docs: add example to "state instead of stores" (#14310)
closes #13879
2024-11-15 14:32:47 +01:00
Dominic Gannaway
7fd3774015
fix: disallow invalid attributes for <svelte:window> and <svelte:document> (#14228) 2024-11-14 20:22:35 +00:00
Hosam Sultan
1e5a385c96
docs: fix typo (#14232) 2024-11-10 05:31:50 -08:00
CJSnyman
6534742ae1
docs: fix grammar (#14244)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2024-11-10 05:25:11 -08:00
Rich Harris
5ce1159ec3
Update 03-typescript.md (#14197) 2024-11-06 20:54:04 -05:00
Scott
26d109cb11
docs: SvelteHTMLElements can be used for creating component wrapper (#14162) 2024-11-06 17:32:12 +01:00
Pig Fang
3d67cd53db
docs: fix migration guide typo (#14155) 2024-11-05 10:13:46 +01:00
Christoph Sanz
87d83ffa39
Add same note as in tutorial to doc. (#14136)
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-11-04 16:09:09 -05:00
Simon H
8731f4f780
docs: note what the value of this can be on svelte:element (#14117)
closes #7575
2024-11-04 17:32:50 +01:00
Simon H
a952860232
docs: more docs on TS types (#14065)
* docs: more docs on TS types

and a few related changes/enhancements
closes #13940

* Apply suggestions from code review

* adjust

* Apply suggestions from code review

* Update documentation/docs/07-misc/03-typescript.md

* Update documentation/docs/07-misc/03-typescript.md

* Update documentation/docs/07-misc/03-typescript.md

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-11-02 22:24:10 -04:00
Tim Deschryver
8d0937a534
docs: fix compilation error (#14121) 2024-11-02 20:09:23 +01:00
Ahmad S.
304d88edd0
docs: fix $effect section examples (#13911)
closes #13912
2024-11-01 21:09:00 +01:00
Rich Harris
96c299afc6
differentiate between 'effect' and $effect (#14105) 2024-11-01 13:48:29 -04:00
Rich Harris
82b87b361e
docs: fix syntax error (#14106) 2024-11-01 12:48:04 -04:00
Simon H
aac4cbd1f1
docs: note browser condition earlier (#14096)
* docs: note browser condition earlier

The browser condition is also necessary to test runes, so it makes sense to add it to the first occurence to the vite config. Also add a note about more fine-grained alias conditions.

Closes #13961

* Update documentation/docs/07-misc/02-testing.md

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-11-01 12:21:36 -04:00
Conduitry
535ea44b9d
chore: replace non-breaking spaces (#14098)
* replace nbsp in docs

* replace nbsp in test

* replace nbsp in types

* regenerate types
2024-11-01 12:08:04 -04:00
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
2024-11-01 13:19:52 +01:00
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
2024-11-01 08:49:52 +01:00
Conduitry
2ab70041fd
chore: mark markdown output from process-messages as generated (#13913)
* chore: mark markdown output from process-messages as generated

* regenerate
2024-10-31 22:44:39 -04:00
Rich Harris
ffbd5c971e
docs: fix runtime-warnings page (#14077)
* fix runtime-warnings page

* fix
2024-10-31 14:52:56 -04:00
Rich Harris
9cd476881d
fix props docs (#14079) 2024-10-31 14:36:54 -04:00
Rich Harris
0ed914b2e5
docs: improve lazy import example (#14076)
* docs: improve lazy import example

* Update documentation/docs/03-template-syntax/05-await.md
2024-10-31 14:10:47 -04:00
Abu
ca58039e3e
docs: fix type (#14064)
this slot name should be `footer` instead it was `header`
2024-10-31 13:20:57 +01:00
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>
2024-10-31 11:25:19 +01:00
Devr
6a1b5dd004
docs : add an example of using dynamic components (#13993)
Closes #13990

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2024-10-31 09:24:38 +01:00
Rich Harris
6b6445a934
add parameters to in:fly (#14057)
Without a `y` value, `fly` is indistinguishable from `fade`
2024-10-30 19:55:04 -04:00
gubo97000
0efe031edc
Update 07-$inspect.md (#14048)
moved note to top
2024-10-30 19:25:28 -04:00
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>
2024-10-30 18:45:08 -04:00
Rich Harris
4157db94c4
fix: correct typo in compiler error messages (#14044) 2024-10-30 09:50:33 -07:00
Conduitry
6ad8240464
docs: fix various typos in reference docs (#14011)
* docs: fix note about $derived

* fix some other typos

* revert one change

* emdash tweak
2024-10-30 16:37:18 +01:00
Simon H
e487f61262
docs: mark deprecated options as such (#13989)
closes #13984
2024-10-30 11:33:32 +01:00
Simon H
b3437e6020
docs: note old site (#13996) 2024-10-29 23:27:56 +01:00
Rich Harris
777d059b10
docs: update heading level in 02-getting-started.md (#13997) 2024-10-28 10:28:21 -07:00
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.
2024-10-28 13:05:24 +01:00
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>
2024-10-28 08:38:58 +01:00
Max Duval
ac6d8c0bf4
docs: fix small typo (#13967)
A full stop or colon, we myst choose
2024-10-27 11:36:36 +01:00
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.
2024-10-26 09:22:15 -07:00
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
2024-10-25 11:52:36 +02:00
Conduitry
107be28890
docs: fix outdated $effect.tracking() demo (#13906) 2024-10-25 10:49:08 +02:00
plgingras88
18e2284e74
docs: fix setContext/getContext typo (#13901) 2024-10-24 21:56:44 -04:00
Harry Allen
86ef18165f
docs: fix code example (#13847) 2024-10-23 23:03:15 +02:00
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.
2024-10-23 22:24:52 +02:00
Simon H
594e3ab311
docs: note TS caveat about module exports (#13842)
closes #13554
2024-10-23 21:10:03 +02:00
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>
2024-10-23 20:39:29 +02:00
Simon H
96e2d5a395
docs: provide info about wrapper components (#13826)
closes #13006
2024-10-23 19:20:37 +02:00
Ben McCann
0b178cecce
chore: update all learn.svelte.dev links and a couple of others (#13803) 2024-10-23 16:53:19 +02:00
brunnerh
69f6b58bd4
docs: Reference svelte/reactivity from $state. (#13571) 2024-10-23 16:50:43 +02:00
Emanuele Picchirallo
6257203c22
docs: specify script language and add npm install step to installation guide (#13804) 2024-10-23 16:48:59 +02:00