Simon H
88204355d3
[docs] clarify readable callback timing ( #6725 )
...
#6724
3 years ago
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
mellanslag-de
4f9a260ab1
[fix] Update outdated line number in tutorial text ( #6689 )
3 years ago
gunggmee
dc11e4487e
[docs] Fix a minor bug in binding tutorial ( #6698 )
...
To calculate y coordinate of `imageData`, we should divide the index with
`canvas.width` not with `canvas.height`. The current code works because the
shape of canvas is square.
3 years ago
Daniel Sandoval
4d30ef34e3
[docs] "What's new in Svelte" September newsletter ( #6691 )
3 years ago
Andrey Bienkowski
5a9cb770d8
[docs] Promote prettier-plugin-svelte ( #6695 )
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
Geoff Rich
71cf6002f4
[docs] fix css in js embed ( #6669 )
...
pin emotion version to keep this from happening again
3 years ago
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
btvoidx
b1621d697d
[fix] Prevent layout shifting on hovering "Who's using Svelte?" ( #6639 )
4 years ago
dependabot[bot]
5f693c84ee
Bump path-parse from 1.0.6 to 1.0.7 in /site ( #6635 )
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Conduitry
1c58fa91cc
[docs] various adjustments to template syntax docs ( #6619 )
4 years ago
Tan Li Hau
ce550adef6
[feat] allow use:actions on <svelte:body> ( #6608 )
4 years ago
Samuel Plumppu
172f294cb6
docs: Fix property name typo for event.isTrusted ( #6596 )
4 years ago
Daniel Sandoval
b554e343e8
[docs] "What's new in Svelte" August newsletter ( #6604 )
4 years ago
Dennis Dudek
a3fb765d6f
[docs] add trusted modifier to list of modifiers in tutorial and docs ( #6566 )
4 years ago
Konstantin BIFERT
18780fac00
[docs] replace shift by the correct key to hold: control ( #6573 )
4 years ago
Stephane
63f592e713
[docs] Add clarification about reactivity and arrays ( #6547 )
4 years ago
Hofer Ivan
5cfefeb6e7
support rendering components in a shadow dom ( #5870 )
4 years ago
Ben McCann
16d562fcf6
site: bump Svelte version
4 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>
4 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
4 years ago
Simon H
931738e821
[docs] mention that afterUpdate runs after onMount
...
Closes #4273
4 years ago
Ashish Kapoor
ddde34aeb9
[docs] Multi select works by pressing and holding shift key ( #6532 )
...
For better understanding.
4 years ago
Antony Jones
fdd3d4b448
be a bit smarter about building the site locally ( #5262 )
...
Co-authored-by: Antony Jones <antony@beyonk.com>
4 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
Adam Bates
f2ca8bc64b
[docs] Fixed typo 'site-repl' -> 'svelte-repl', with minor change to a sentence's structure ( #6498 )
...
(used to look like a list of 4, when really it's a list of 2).
4 years ago
decaylala
8457a73cef
[docs] adjust function name ( #6495 )
4 years ago
Ben McCann
f2fa7b2186
[docs] bump site-kit version
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
dependabot[bot]
487190fd93
Bump prismjs from 1.23.0 to 1.24.0 in /site ( #6467 )
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: prismjs
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Caleb Chiesa
98ece151b3
Fix typo in stores tutorial ( #6461 )
4 years ago
Ben McCann
2357e642e3
Rename menu item from API to Docs ( #6456 )
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
Ben McCann
c584af34ec
site: fix falling back to default port ( #5382 )
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
Robert Hall
17c5402e31
Cleanup logos on homepage ( #6409 )
4 years ago
pngwn
8dd9c1b098
docs: make yaml frontmatter in blogs valid ( #6206 )
4 years ago
Ben McCann
c441fb1ad1
Bump site-kit ( #6407 )
4 years ago
Rui Sousa
9051ee011e
Fix ScreenToggle button styling so text is centered ( #6394 )
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
gltchitm
7c21f919ad
site: filter out bot contributors ( #6352 )
4 years ago
Konstantin Nosov
fd9eea28f2
remove redundant CSS ( #6355 )
4 years ago
Konstantin Nosov
2ce3a58188
combine padding specifications ( #6354 )
4 years ago
dependabot[bot]
7c4a08e109
Bump browserslist from 4.16.0 to 4.16.6 in /site ( #6361 )
...
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.16.0 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.0...4.16.6 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
dependabot[bot]
cd893cda41
Bump hosted-git-info from 2.8.8 to 2.8.9 in /site ( #6318 )
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
dependabot[bot]
a1600ff68e
Bump lodash from 4.17.20 to 4.17.21 in /site ( #6309 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
Mlocik97
697d4c7f51
Add link to SvelteKit to Svelte website. ( #6161 )
4 years ago
Mauricio Paternina
27234275c0
tutorial: fix custombutton colors for a11y contrast ( #6212 )
4 years ago