Geoff Rich
7e156c014e
[docs] document details binding ( #6700 )
3 years ago
João Paulo
0027a41934
[docs] Fix typo in $$slots docs ( #6709 )
3 years ago
duarte-pompeu
8d3f4512f6
[docs] Fix the speed of the typewriter example to scale correctly ( #6568 )
3 years ago
Shinobu Hayashi
5df60e75a7
chore(docs): update Component-format script-markup-style order ( #6682 )
3 years ago
Ben McCann
268bc71724
Replace sveltejs/integrations with sveltesociety.dev ( #6626 )
3 years ago
Tommy Groshong
a232d68a41
docs: small spelling fixes in docs and comments ( #6653 )
3 years ago
Conduitry
1c58fa91cc
[docs] various adjustments to template syntax docs ( #6619 )
3 years ago
Tan Li Hau
ce550adef6
[feat] allow use:actions on <svelte:body> ( #6608 )
3 years ago
Samuel Plumppu
172f294cb6
docs: Fix property name typo for event.isTrusted ( #6596 )
3 years ago
Dennis Dudek
a3fb765d6f
[docs] add trusted modifier to list of modifiers in tutorial and docs ( #6566 )
3 years ago
Stephane
63f592e713
[docs] Add clarification about reactivity and arrays ( #6547 )
3 years ago
Hofer Ivan
5cfefeb6e7
support rendering components in a shadow dom ( #5870 )
3 years ago
Tan Li Hau
222a9dd2c6
[feat] get all contexts ( #6528 )
...
* get all contexts
* docs
* explicit return type
* allow specifying return type through generic parameter
* Update site/content/docs/03-run-time.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
3 years ago
Maxime LUCE
0cf5511ae0
[feat] Add errorMode option to compile to allow continuing on errors (and mark them as warnings) ( #6194 )
...
This PR adds a new option errorMode to CompileOptions to allow continuing the compilation process when errors occured.
When set to warn, this new option will indicate to Svelte that it should log errors as warnings and continue compilation.
This allows (notably) preprocessors to compile the markup to detect vars in markup before preprocessing (in this case: script and style tags are stripped so it can produce a lot of errors).
This PR is part of a work on the svelte-preprocess side to improve the preprocessing of TypeScript files: https://github.com/sveltejs/svelte-preprocess/issues/318
- allow compiler to pass error as warnings
- enforce stops after errors during compilation (for type-checking, TS doesn't know the error method throws)
- should review Element.ts:302
- added a test case for errorMode
- added documentation
3 years ago
Simon H
931738e821
[docs] mention that afterUpdate runs after onMount
...
Closes #4273
3 years ago
Simon H
937c7c9c4a
[docs] document $store behavior more explicitely
...
Closes #4677
3 years ago
Ignatius Bagus
5334f4ad1b
docs: mention usage of regexp literal in text expressions ( #5640 )
3 years ago
Conduitry
64c162c6b7
docs: adjust formatting in compiler options table
3 years ago
Geoff Rich
2842227cf0
docs: fix heading level a11y issue ( #5679 )
3 years ago
Geoff Rich
a35506b5eb
[docs] update a11y docs ( #6487 )
3 years ago
Geoff Rich
e73f641ca5
Remove deprecated a11y-no-onchange warning ( #6457 )
3 years ago
Maxime LUCE
aedf69c1cf
Add compilation variables report option to allow getting all variables (even undeclared or internal) ( #6192 )
...
* feat: add compilation variables report option
* test: add full var report test
* docs: document varsReport compile option
3 years ago
Simon H
92fba761a8
docs: clarify writable value is lost when destroyed
...
Closes #4610
Closes #4407
3 years ago
swyx
e43778a0c4
document new style props feature in Svelte 3.38 ( #6378 )
3 years ago
EmNudge
0e18b1311e
docs: clarified readonly prop access ( #5825 )
3 years ago
Ophir LOJKINE
f797482e27
Add documentation for crossfade ( #6196 )
3 years ago
Geoff Rich
7bf3f20dc3
Add docs for compound :global selector ( #6271 )
...
* Add docs for compound :global selector
Co-authored-by: Antony Jones <ant@enzy.org>
3 years ago
Tan Li Hau
142de015eb
add accessibility warnings to the docs ( #5316 )
3 years ago
Tan Li Hau
25a48be0ef
update docs for style tag in elements ( #6415 )
3 years ago
Dominik G
2c488f4d61
docs: update documentation for preprocessor sourcemap output ( #6438 )
3 years ago
Simon H
e27d71f0cf
docs: fix typo
4 years ago
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
4 years ago
Dan Kozlov
cc58f60002
Add a note that bind:files is readonly ( #6099 )
4 years ago
Stephane
b1d09a4aa2
Clarify that special elements have to be top level ( #6240 )
4 years ago
Simon H
4acfb05315
Docs: Clarify that `@html` does not compile Svelte code ( #6349 )
4 years ago
Ignatius Bagus
b295d68ec6
fix types: allow writable/readable empty initialization ( #6293 )
...
Fixes #6291
Fixes #6345
Both writable and readable initialized without any arguments are already valid, but TS complains about it. This makes both allowed to be emptily initialized. It's also possible to invoke readable with one argument only.
4 years ago
Maxime LUCE
08047c14b6
Pass full markup source to preprocessors ( #6169 )
4 years ago
Geoff Rich
a55295de8c
docs: mention that svelte:self can be in a slot ( #6184 )
4 years ago
Tan Li Hau
6c5257beb2
allow passing in context in constructor ( #6032 )
...
Co-authored-by: Conduitry <git@chor.date>
4 years ago
Stephane
47e1eeed56
Add documentation and tutorial for svelte:fragment ( #6097 )
4 years ago
Rich Harris
2925a00eff
add cssHash option ( #6026 )
...
* Allow to customize the css scope class
* Pass component name to scope class generator
* Move Stylesheet arguments into an object
* Refactor to cssHash
* Please the almighty linter
* pass hash function to cssHash
* update test
* document cssHash option
Co-authored-by: Christian Kaisermann <christian@kaisermann.me>
4 years ago
Ben McCann
55b11b0664
docs: define component before demonstrating usage ( #5921 )
4 years ago
halfnelson
a7eff8894f
add `foreign` namespace to preserve attribute case and skip HTML-specific a11y validations ( #5652 )
4 years ago
Liam Egan
1046ca71a7
Remove duplicate sentence ( #5751 )
4 years ago
Adam Rackis
e5aa04ed49
Add clarification on what makes a reactive block reactive to docs. ( #5729 )
...
* Add clarification on what makes a reactive block reactive to docs.
* Tweak reactive explanation
4 years ago
pushkin
01ead95cbe
add hasContext lifecycle function ( #5690 )
4 years ago
pushkin
1fa46fde4f
Correct `onDestroy` behavior description ( #5590 )
...
* Update 03-run-time.md
* Update site/content/docs/03-run-time.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
4 years ago
swyx
e750b7284e
document await...catch shorthand ( #5682 )
4 years ago
Andy Bruère
4e114d3b0d
docs: remove broken link to easing function ( #5635 )
4 years ago
Cameron Messinides
169fd8497c
docs: add documentation for $$slots ( #5277 )
4 years ago
Tan Li Hau
ebbbc0d298
docs: add missing `easing` option to `fade` ( #5495 )
4 years ago
Tan Li Hau
fa7c780bad
{#key} block ( #5397 )
...
Co-authored-by: Conduitry <git@chor.date>
4 years ago
Tan Li Hau
a1651ca271
add nonpassive event modifier ( #5442 )
...
Co-authored-by: filipot <filipot@stud.ntnu.no>
4 years ago
Eugene Hwang
ae971f80ae
docs: adjust explanations of `$$props` and `$$restProps` ( #5368 )
4 years ago
Luca Bonavita
8f17d6c78c
docs: document `bind:files` ( #5141 )
4 years ago
Luca Bonavita
c31a4b56d0
site: rephrase to clarify that actions can have just one parameter.
...
Closes #5173
4 years ago
Antony Jones
dc73b735ce
docs: clarify onMount with non-synchronous handlers ( #5053 )
4 years ago
Matt Wolff
5b2b58f46f
docs: media binding tweaks ( #4967 )
4 years ago
Alessandro (Ale) Segala
81b6c0b986
docs: adjust readable store example ( #4903 )
5 years ago
Daniel Imfeld
f624d6e292
docs: `value` cannot be set via spread for indirectly bound values ( #4832 )
5 years ago
Matt Wolff
97db5cc7f7
docs: add blur to list of svelte/transition exports
5 years ago
Robert Hall
7fe1384f43
Property "muted" for <audio> and <video> ( #4690 )
...
* Audio two-way `muted` bind property
Loosely based on a37ee81676
?w=1
* Documentation
* fix test
* dont bother coercing muted, it happens automatically
Co-authored-by: Richard Harris <richard.a.harris@gmail.com>
5 years ago
pngwn
d5e95594e9
feat(site): add svelte syntax highlighting ( #4851 )
5 years ago
Ben McCann
5ac8a1d07a
docs: link to list of community preprocessors ( #4817 )
5 years ago
Joseph Abrahamson
5efeeecee8
docs: clarify store contract type signature ( #4539 )
5 years ago
MichalBednarczyk
edeeb05a6c
docs: {#each} with key but without index ( #4721 )
5 years ago
Antony Jones
0e61e51358
docs: add v2 site link ( #4745 )
5 years ago
Conduitry
35a910eea2
docs: fix link to animate section
5 years ago
Eddy
75ae49312f
docs: fix link to transition section ( #4748 )
5 years ago
Daniel Imfeld
676d57b5f7
docs: clarify that all elements in an outroing block remain until the transition finishes ( #4684 )
5 years ago
pushkin
467fc84d7d
docs: mention |self modifier in reference section ( #4709 )
5 years ago
Conduitry
0d263cc1ea
docs: use Node.TEXT_NODE in more places
5 years ago
Tim Gates
89f30dae36
docs: Fix simple typo, specificy -> specify ( #4637 )
5 years ago
Tan Li Hau
91d758e35b
introduce $$restProps ( #4489 )
5 years ago
keke
48721520bd
docs: fix self-closing <svelte:options> tag ( #4524 )
5 years ago
Conduitry
addea43e4f
docs: describe falsy and nullish attribute behavior ( #4498 )
5 years ago
Conduitry
f244b80f7a
docs: referenced_from_script var value ( #4486 )
5 years ago
Jesse Skinner
20e079007c
docs: clarify default prop behaviour ( #4460 )
5 years ago
Matthew Dempsky
a53da7e4b0
site: clearer examples for <slot let:name> ( #4125 )
5 years ago
Jesse Skinner
c992f7a2d2
docs: reword to avoid "outroing" ( #4434 )
5 years ago
PKlknr
7fdae5f8a8
docs: add await in front of preprocess examples ( #4404 )
5 years ago
Conduitry
83d461f537
site: clarify preserveWhitespace ( #4341 )
...
* site: clarify preserveWhitespace
* Update 04-compile-time.md
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
5 years ago
Wolfr
70d1795088
site: Remove WIP message, but still reference the chat room. ( #4329 )
5 years ago
Conduitry
3ba4f8abca
site: fix a couple absolute links
5 years ago
Conduitry
7494509dfd
only attach SSR <head> markers when hydratable: true ( #4260 )
5 years ago
Kevin Åberg Kultalahti
3d9655a2a1
site: add documentation for global keyframes ( #4232 )
5 years ago
Conduitry
14154fce36
site: document Observable interop ( #2571 )
5 years ago
Conduitry
252ec8ceca
site: missing space
5 years ago
trbrc
45933f9700
site: Clearer documentation of store contract ( #4216 )
5 years ago
Josh Duff
00e39c767a
site: Explain how each blocks work a bit more ( #4118 )
5 years ago
Thomas Ferro
fe750d2606
Doc ( #4172 ): Fixing the unclear slot with fallback content example
5 years ago
Yugo Ogura
11002c93fe
site: fix wrong link to tweened ( #4137 )
5 years ago
Conduitry
3d0a5f8c37
site: update links to rollup-plugin-svelte repo
5 years ago
Richard Harris
d1146281ef
only mention official plugins, link to integrations for others. closes #3970
5 years ago
Rich Harris
1dead6fa9d
typo
5 years ago
Rich Harris
a4658e2d42
document new media element bindings
5 years ago
Tan Li Hau
b382b9a9c6
add loopGuardTimeout options
5 years ago
Conduitry
de80ae72c3
site: clarify bind component prop docs ( #3484 )
5 years ago
Rich Harris
e931a56854
Merge pull request #3762 from sveltejs/gh-3761
...
allow spring/tweened values to be initially undefined
5 years ago
Richard Harris
e8f5b24143
docs and a fix for #3761
5 years ago