fsinn
e5c04bfd2f
docs: Selecting multiple elements in <select multiple> on MacOS with command key ( #6636 )
3 years ago
James Pickard
d85ac7eaa6
[docs] clarify reactivity tutorial text ( #6628 )
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
Diego Ramos
d26c48a518
[docs] disable text select on falling emojis ( #6654 )
3 years ago
pngwn
db3101fa24
docs: fix heading levels ( #6655 )
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
Daniel Sandoval
b554e343e8
[docs] "What's new in Svelte" August newsletter ( #6604 )
3 years ago
Dennis Dudek
a3fb765d6f
[docs] add trusted modifier to list of modifiers in tutorial and docs ( #6566 )
3 years ago
Konstantin BIFERT
18780fac00
[docs] replace shift by the correct key to hold: control ( #6573 )
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
Ashish Kapoor
ddde34aeb9
[docs] Multi select works by pressing and holding shift key ( #6532 )
...
For better understanding.
3 years ago
Simon H
53e0754d3b
[docs] remove unnecessary immutable option from App.svelte
...
Closes #5976
4 years ago
Simon H
937c7c9c4a
[docs] document $store behavior more explicitely
...
Closes #4677
4 years ago
David Dawkins
e7cbea64e0
[docs] fix padding in svg bar chart example ( #5945 )
...
Fixes #5941
4 years ago
Ignatius Bagus
5334f4ad1b
docs: mention usage of regexp literal in text expressions ( #5640 )
4 years ago
Conduitry
64c162c6b7
docs: adjust formatting in compiler options table
4 years ago
Geoff Rich
2842227cf0
docs: fix heading level a11y issue ( #5679 )
4 years ago
Eirik Vågeskar
854a7de451
[docs] Add tutorial step for key blocks ( #6420 )
4 years ago
decaylala
8457a73cef
[docs] adjust function name ( #6495 )
4 years ago
Geoff Rich
a35506b5eb
[docs] update a11y docs ( #6487 )
4 years ago
Joakim Berglund
ecc3c08999
Trackpad and touch support in media example ( #5912 )
4 years ago
Jatin Hemnani
c4f4a3dc2e
[docs] added transition on toggling folder in tutorial ( #6453 )
4 years ago
Odee
287cccc450
[docs] Update auto-subscriptions tutorial to explicitly say that subscribe returns unsubscribe ( #6448 )
4 years ago
Daniel Sandoval
a6fbf7faf5
[docs] "What's new in Svelte" July newsletter ( #6459 )
4 years ago
Lukas Möller
2a9f9d7bb0
Remove unused toggle prop from example ( #5124 )
4 years ago
Geoff Rich
e73f641ca5
Remove deprecated a11y-no-onchange warning ( #6457 )
4 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
4 years ago
Caleb Chiesa
98ece151b3
Fix typo in stores tutorial ( #6461 )
4 years ago
Simon H
92fba761a8
docs: clarify writable value is lost when destroyed
...
Closes #4610
Closes #4407
4 years ago
swyx
e43778a0c4
document new style props feature in Svelte 3.38 ( #6378 )
4 years ago
EmNudge
0e18b1311e
docs: clarified readonly prop access ( #5825 )
4 years ago
Ophir LOJKINE
f797482e27
Add documentation for crossfade ( #6196 )
4 years ago
fivem
bca46b9f70
tutorial: In the onDestroy example, explicitly show the memory leak ( #5515 )
4 years ago
The Jared Wilcurt
7115601cd3
Docs: Accurately name function ( #4060 )
4 years ago
Simon Scharf
f99deeb67b
docs: remove type property from special elements tutorial ( #4715 )
...
Instead, determine type based on the existence of the files property. Removes console warnings
4 years ago
Stephane
f9b796cabe
Add tutorial for component binding ( #5009 )
...
Closes #5008
Co-authored-by: Stephane Vanraes <stephane.vanraes@fjordline.com>
Co-authored-by: pngwn <pnda007@gmail.com>
4 years ago
Outvi V
92422fdee2
doc: Add notes to stress call-context-during-initialisation ( #5631 )
4 years ago
Nguyễn Đức Hào
0f92863033
tutorial: add name attribute to inputs ( #5649 )
4 years ago
Aswin Vayiravan
4b4717b351
Reorder text area and output to improve visibility ( #5790 )
4 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>
4 years ago
Tan Li Hau
142de015eb
add accessibility warnings to the docs ( #5316 )
4 years ago
Tan Li Hau
25a48be0ef
update docs for style tag in elements ( #6415 )
4 years ago
Ersin Ertan
0e1d54efdf
Add Vite to intro's officially maintained plug-ins ( #6446 )
4 years ago
Dominik G
2c488f4d61
docs: update documentation for preprocessor sourcemap output ( #6438 )
4 years ago
pngwn
8dd9c1b098
docs: make yaml frontmatter in blogs valid ( #6206 )
4 years ago
Debargha Roy
8f6bb14e69
Minor update to svelte:body-tutorial ( #6376 )
...
Switch style/html order
4 years ago
Andrew Lee
791104d9fe
Adjust store unsubscribe tutorial section ( #5975 )
...
The `unsubscribe` function in the first step was without any usage, which lead to confusion
4 years ago
Daniel Sandoval
2ae79f6815
"What's new in Svelte" June newsletter ( #6356 )
4 years ago
Simon H
e27d71f0cf
docs: fix typo
4 years ago
Kai
1a1f36edcf
Tutorial: Description fix - each block bindings ( #5974 )
...
The chapter highlights event binding in `each` block which is missing within the snippet. Thus it seems reasonable to include it within the description snippet block.
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
Bashu Naimi-Roy
8184bd5219
docs: update Keyed Each Blocks tutorial ( #6358 )
4 years ago
Simon H
4acfb05315
Docs: Clarify that `@html` does not compile Svelte code ( #6349 )
4 years ago
Konstantin Nosov
fd9eea28f2
remove redundant CSS ( #6355 )
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
Adam Alexander
3301b09619
Fix tutorial instructions refer to wrong line number in code ( #6342 )
...
Instructions refer to wrong line number
Video element is not on line 116, it's on line 58
4 years ago
Ajit Krishna
b11f5b12f5
Update <svelte:options> copy ( #6339 )
...
<svelte:options> is not the last lesson in "Special Elements"
4 years ago
Lawrence Logoh
58b897fc83
updated select-bindings text.md ( #6333 )
...
Referenced line is now 20 instead of 24
4 years ago
Walker Lockard
19e4a4fdf3
Update tutorial text.md ( #6329 )
...
The component referenced in text.md is no longer on line 33 of the provided code.
4 years ago
Alex Iglesias
341160f782
[Tutorial] Update Chapter 19 to reference SvelteKit ( #6284 )
4 years ago
Daniel Sandoval
7b6526ed70
"What's new in Svelte" May newsletter ( #6243 )
4 years ago
BabakFP
ec2540787a
Changing tutorial/example order from script-style-html to script-html-style ( #6213 )
...
Also change button style in one tutorial
4 years ago
Mauricio Paternina
27234275c0
tutorial: fix custombutton colors for a11y contrast ( #6212 )
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
Daniel Sandoval
c7e820e08f
"What's new in Svelte" April newsletter ( #6129 )
4 years ago
Peter Boling
5ba7d35921
site: improve grammar in tutorial comment ( #6156 )
4 years ago
Tan Li Hau
6c5257beb2
allow passing in context in constructor ( #6032 )
...
Co-authored-by: Conduitry <git@chor.date>
4 years ago
Mark A Shuttleworth
e84e356ca5
site: fix grammatical issue in tutorial/update ( #6136 )
4 years ago
Stephane
47e1eeed56
Add documentation and tutorial for svelte:fragment ( #6097 )
4 years ago
Alaric von Teplitz
ddfe920ede
Spelling error fix. ( #6131 )
4 years ago
Stephane
42a9431e70
Link to Svelte Society instead of old Community site ( #6043 )
4 years ago
Ben McCann
f20c5ede30
Update FAQ for SvelteKit beta ( #6124 )
4 years ago
Rich Harris
798d1f9b5a
add "what is sveltekit" section
4 years ago
Rich Harris
1a906dffe1
tweak aside placement
4 years ago
Rich Harris
5655e46dac
fix blog post date
4 years ago
Rich Harris
4b8ddc3469
SvelteKit beta launch post ( #6120 )
...
* kit beta announcement post
* tweak
4 years ago
Geoff Rich
ce3a579125
docs: update 7gui example links ( #6052 )
4 years ago
Daniel Sandoval
22355a3a34
"What's new in Svelte" March newsletter ( #6033 )
...
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Don Denton <don@happycollision.com>
4 years ago
Simon H
423a7f2e61
Add "Where can I get support?" to FAQ ( #6036 )
...
* Add "Where can I get support?" to docs
Related to the discussion in #6035
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
Alexis Ménard
ebbdb4277c
Tutorial : a better explanation of component events ( #4639 )
...
* feat(tutorial): better explanation of component events
Co-Authored-By: Antony Jones <ant@enzy.org>
4 years ago
Daniel Sandoval
8db3e8d029
"What's new in Svelte" February newsletter ( #5925 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
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
Domenik Reitzner
32775a699d
Make TypeScript integration more visible ( #5871 )
4 years ago
Daniel Sandoval
a8af2fa4e6
"What's new in Svelte" January newsletter ( #5827 )
4 years ago
kindoflew
bf35353170
site: fix formatMobile in chart examples ( #5787 )
4 years ago
Liam Egan
1046ca71a7
Remove duplicate sentence ( #5751 )
4 years ago
Aswin Vayiravan
f1b7c08a09
changed to colour names instead of hex codes for readability ( #5772 )
4 years ago
Ben McCann
3561bf2b96
Update testing FAQ ( #5744 )
4 years ago
Aswin Vayiravan
76d4580bcc
Changing hex codes to colour names to improve readability of the tutorial. ( #5761 )
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
Conduitry
e02c291050
-> v3.31.0
4 years ago
Simon H
79214ccb0d
Revert typed SvelteComponent, add SvelteComponentTyped instead ( #5738 )
4 years ago
Aswin Vayiravan
307b86b030
Renamed 'Now' to 'Vercel' ( #5737 )
4 years ago
Daniel Sandoval
625e3056bf
"What's new in Svelte" December newsletter ( #5706 )
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
Phippsy
96ac898370
docs: mention that degit requires Git ( #5532 )
4 years ago
Kevin Åberg Kultalahti
daec25604f
docs: add conditional slot example ( #5383 )
4 years ago
fivem
ddd79e3f9d
tutorial: remove unneccessary performance.now() call inside raf ( #5513 )
4 years ago
swyx
e750b7284e
document await...catch shorthand ( #5682 )
4 years ago
Kieran Barker
795e5855ba
blog: fix link to Svelte package on npm ( #5669 )
4 years ago
Andy Bruère
4e114d3b0d
docs: remove broken link to easing function ( #5635 )
4 years ago
Rich Harris
80300f9702
update pubdate
4 years ago
Rich Harris
703ffe94dc
draft blog post about sveltekit ( #5638 )
...
* draft blog post about sveltekit
* make language less scary
* mention SvelteKit sooner
* expand on TS support
* tweak migration section
* change publication date
* replace video link with an embed
* small tweak
4 years ago
Simon H
fb8ef740fa
Blog post: Fix link
4 years ago
hmt
2db9cc2bc9
Some typos [ci-skip] ( #5632 )
4 years ago
Daniel Sandoval
33d1fc741a
"What's new in Svelte" November newsletter ( #5554 )
...
* outline and showcase so far
* respond to feedback, fill out features
* Update site/content/blog/2020-11-01-whats-new-in-svelte-november-2020.md
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update site/content/blog/2020-11-01-whats-new-in-svelte-november-2020.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update number of speakers
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
4 years ago
Cameron Messinides
169fd8497c
docs: add documentation for $$slots ( #5277 )
4 years ago
izumiiii
9e0556cf70
docs: fix a11y warning in media elements example ( #5606 )
4 years ago
Irshad Ali
f3adbb2679
docs: fix a11y warning in media elements tutorial ( #5523 )
4 years ago
Daniel Power
379a4454c1
tutorial: move function declaration before reference ( #5491 )
4 years ago
Jessa Marie Pedrola
10f68289ba
Add more video courses links in FAQ ( #5490 )
4 years ago
Tan Li Hau
ebbbc0d298
docs: add missing `easing` option to `fade` ( #5495 )
4 years ago
Daniel Sandoval
324f74b427
"What's new in Svelte" October newsletter ( #5429 )
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
Simon H
4c135b0b8d
Update editor recommendations of old blog post ( #5434 )
4 years ago
Cal Jacobson
6c8bd6e5aa
Include link to VS Code extension in tutorial ( #5231 )
4 years ago
Shriji
bd2175b67b
Add list of books to FAQ ( #5404 )
4 years ago
infuzz
5f422d8ddb
Link to more video courses in FAQ ( #5396 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
4 years ago
lonevox
3255f8b662
site: change "on to" to "onto" in tutorial 03 ( #5386 )
4 years ago
Eugene Hwang
ae971f80ae
docs: adjust explanations of `$$props` and `$$restProps` ( #5368 )
4 years ago
Cam Jackson
80e474a244
site: Replace "active" with "selected" as an example class name ( #5309 )
4 years ago
Simon H
8adb47401e
site: Fix blog JS type checking suggestion ( #5306 )
4 years ago
Venkateshwaran Selvaraj
ad8d8564ec
Adding Rich Harris's Frontend Masters course on FAQ page ( #5180 )
...
* Adding Rich Harris's Frontend Masters course on FAQ page
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
4 years ago
Luca Bonavita
8f17d6c78c
docs: document `bind:files` ( #5141 )
4 years ago
Ben McCann
1398affa53
Update TypeScript blog post with info about Sapper ( #5249 )
4 years ago
Ben McCann
cf57050f49
Mention "import type" in TypeScript FAQ ( #5243 )
...
* Mention "import type" in TypeScript FAQ
* Update site/content/faq/500-what-about-typescript-support.md
Co-authored-by: Christian Kaisermann <christian@kaisermann.me>
4 years ago
Charles Rosaaen
231e4a0b3c
site: update link in blog for SCode extension ( #5232 )
4 years ago
João Paulo
a0ed7040f1
site: clarify file -> module in <svelte:self> tutorial ( #5171 )
4 years ago
Conduitry
f4f16da455
site: use relative link to tutorial in FAQ entry
4 years ago
rmacklin
40987b7780
site: update links in the Sapper intro blog post ( #5189 )
4 years ago
Rich Harris
4b7c16e33a
tweak blog post anchor style to be less noisy
4 years ago
Orta Therox
f6152002eb
Initial stab at a TypeScript blog post ( #5101 )
...
* Initial stab at a blog post
* Update site/content/blog/2020-06-04-svelte-and-typescript.md
Co-authored-by: pngwn <hello@pngwn.io>
* Update 2020-06-04-svelte-and-typescript.md
* Apply suggestions from code review
Co-authored-by: halfnelson <dpershouse@gmail.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Tighten the post
* Fix degit sample
* Feedback
* More feeedback
* Handle feedback
* Handle all the feedback in the PR
* Add a note about the should work
* Change date
* code style consistency, fix syntax error
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: halfnelson <dpershouse@gmail.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
4 years ago
Luca Bonavita
c31a4b56d0
site: rephrase to clarify that actions can have just one parameter.
...
Closes #5173
4 years ago
Lev Maximov
fd0b47d0da
site: use https in link in blog ( #5148 )
5 years ago
Stanislav Lashmanov
5c6730e382
Simplify each block bindings example ( #5094 )
...
No need for CSS here, the same effect could be achieved with just a `disabled` binding.
5 years ago
Orta Therox
8a8177b897
site: add FAQ entry for how to document a svelte component ( #5131 )
5 years ago