Tan Li Hau
a2de3894c0
[feat] support const tag for if block ( #7451 )
3 years ago
Yuichiro Yamashita
11ada98565
[docs] fix sentences in `<svelte:element>` ( #7484 )
3 years ago
tanhauhau
0a086c85e4
Merge branch 'tanhauhau/gh-328'
3 years ago
tanhauhau
3e5846c7c5
update api
3 years ago
Tan Li Hau
666929a6d9
use own api to replace jsonplaceholder.typicode.com ( #7472 )
3 years ago
tanhauhau
bc81291afc
use own api to replace jsonplaceholder.typicode.com
3 years ago
Tan Li Hau
d554cdbb25
[docs] add more examples on the spring store API docs ( #7463 )
...
* add more examples on the spring store API docs
* Update site/content/docs/03-run-time.md
Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
* Update site/content/docs/03-run-time.md
Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
3 years ago
Thad Guidry
f2029ff110
[docs] Improve clarity of 2 files to edit and improve learning ( #7285 )
3 years ago
Jan
09b5afc8fe
[docs] Remove draft status of setting-up-your-editor blog-entry to fix broken link ( #7310 )
...
* site: add missing word
* comment out link to setting up your editor blog post
Co-authored-by: tanhauhau <lhtan93@gmail.com>
3 years ago
Benjamin Bender
9778eef6db
[docs] fix link to webpack-loader ( #7460 )
...
Change link for Webpack-loader from svelte-loader-hot, which is deprecated, to official svelte-loader.
3 years ago
Ben McCann
94f0d7c478
[docs] FAQ cleanup ( #7452 )
3 years ago
gtmnayan
39d2dfcbcd
[docs] style directive tutorial ( #7161 )
3 years ago
Bjorn Lu
0f94c890f5
[feat] dispatch cancelable custom events ( #7064 )
3 years ago
josh-brainbox
1e0c10bebc
[docs] fix tutorial/keyed-each-blocks ( #7218 )
3 years ago
gtmnayan
afd3f4e5a9
[feat] Make setContext return the value that was passed in ( #7432 )
...
* return value from setContext
* update docs
* Add test
* eof new line
* pacify the linter
* const and tabs
3 years ago
Kazuma Oe
707455fa8b
[docs] add `<svelte:element>` example ( #7439 )
3 years ago
Yuichiro Yamashita
e0d93254fd
[feature] Dynamic elements implementation <svelte:element> ( #6898 )
...
Closes #2324
Co-authored-by: Alfred Ringstad <alfred.ringstad@hyperlab.se>
Co-authored-by: Simon Holthausen <simon.holthausen@accso.de>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
3 years ago
Dominik G
6ef0aa2944
[docs] add link to vitest svelte example to test faq ( #7281 )
3 years ago
Simon H
31eb623779
[docs] add note about initially selected value
...
Closes #7430
3 years ago
Ben McCann
3c11c480b9
[docs] clarify css option ( #7271 )
3 years ago
TzuHsuan
535a1fc20d
Change top level requirement wording ( #7336 )
...
Changed the wording to be more consistent between `<svelte:window>`, `<svelte:body>` and `<svelte:head>`.
Chose "may only appear" over "has to appear" as the latter could be misinterpreted as a compulsory element
3 years ago
Ben McCann
42905c757f
[docs] update bundler documentation ( #7414 )
...
* [docs] update bundler documentation
* Update site/content/docs/04-compile-time.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
3 years ago
Angie Byron
5f020cc91e
[docs] Fix REPL instructions ( #7413 )
...
Closes #7412
3 years ago
Janosh Riebesell
6a663490b5
[docs] fix typos in whats-new-in-svelte-april-2022.md ( #7417 )
3 years ago
Daniel Sandoval
687a26b784
[docs] "What's new in Svelte" April newsletter ( #7377 )
3 years ago
Raúl Sáez
9d4ff6738a
[docs] Correct default port on blog posts ( #7372 )
3 years ago
Isabel Leccese
2f71bc9333
[docs] fix typo ( #7344 )
3 years ago
tomoam
9b7b8149e4
[docs] add `-` to the beginning of the line ( #7328 )
3 years ago
Daniel Sandoval
a9e6087113
[docs] "What's new in Svelte" March newsletter ( #7293 )
3 years ago
Nick Cummings
f24614cd52
[docs] Add missing parent element to code example. ( #7309 )
...
The div is part of the code, but not part of the code snippet of the text
3 years ago
opensas
252895d42a
[docs] improve actions tutorial presentation ( #7283 )
3 years ago
T•Ø•R•Ü•S
f287bbe80d
[doc] fixed seemingly erroneous capitalization of noun ( #7273 )
3 years ago
Ignatius Bagus
ec0922219d
[docs] update to multi-page docs links ( #7249 )
3 years ago
Geoff Rich
a4a1c3c272
[docs] set language on FAQ code blocks ( #7237 )
3 years ago
Ignatius Bagus
1f9efeac54
[blog] fix link formatting
3 years ago
Daniel Sandoval
ec903ca7bc
[docs] "What's new in Svelte" February newsletter ( #7202 )
3 years ago
Geoff Rich
fc2470494d
[docs] fix broken links ( #7194 )
3 years ago
Geoff Rich
d1b3f462a5
[docs] add docs for a11y-no-redundant-roles ( #7195 )
3 years ago
NazarLazarchuk
e460acc8f1
[docs] Rename a variable `count_value` to `countValue` in the `Stores` section ( #7180 )
3 years ago
Rene Kootstra
4a78137a2a
[docs] fix #each in window-bindings example ( #7181 )
3 years ago
Ignatius Bagus
630ec4b32d
[blog] fix rss feed link
...
Fixes https://github.com/sveltejs/sites/issues/279
3 years ago
Arad Aral
787c34ceec
[docs] Use symbols for context keys in tutorial ( #7046 )
...
Closes #6870
3 years ago
GHOST
7f5eecb84b
[blog] update sirens ( #7142 )
3 years ago
Geoff Rich
fffe66a6a0
[blog] fix Netlify link ( #7138 )
3 years ago
Bjorn Lu
cc445839e3
[docs] explain initial value for bind scroll ( #7065 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
3 years ago
Ben McCann
54f277cd8e
[blog] remove heading to align with other blog posts
3 years ago
Ben McCann
17b1c587c2
[blog] Accelerating Svelte's Development ( #7118 )
3 years ago
Tan Li Hau
b5aaa6641b
[feat] implement constants in markup ( #6413 )
3 years ago
Simon H
26f767e873
[docs] add note about the AST not being public API ( #7113 )
3 years ago
Paul Murray
8a47b5ec9e
[feat] Style directives ( #5923 )
...
* add Style node, interfaces
* style-directives: add parser and runtime test
* style-directives: push styles in to styles array on Element
* style-directives: minimal ssr work
* style-directives: ssr add_styles
* style-directive: tests
* style-directives: work in progress
* obviously incorrect hard-coded color
* tweak
* style directive interface
* style-directives: get text from info in Style node
* style-directives: add_styles func in ElementWrapper
* style-directives: ssr rendering
* handle text-only style directive in tag.ts
* style-directives: handle spread styles in ssr
* style-directives: more parser tests
* style-directives: more inline tests
* style-directives: remove solo tests
* style-directives: cleanup
* style-directives: tweak spread ssr internal
* style-directives: push updater into update chunks; add dynamic test;
* remove .solo
* check for dynamic dependencies before adding update chunk
* add test of multiple styles; remove null styles;
* style-directives: docs; more tests of multiple styles
* style-directives: use camelcase
* style-directives: cleanup
* style-directives: fix mustache template case with template literal
* style-directives: use ternary
* style-directives: linting
* style-directives: remove "text" from interface
* style-directives: actually, remove StyleDirective interface entriely
* add more test, fix test for ssr
* fix lint and tidy up
* add test for css variables
* fix linting errors
Co-authored-by: pmurray73 <pmurray73@bloomberg.net>
Co-authored-by: Tan Li Hau <lhtan93@gmail.com>
3 years ago
Austin Walela
6bfd2724a0
[docs] update links to Blender Studio ( #7098 )
3 years ago
Yongwook Choi
eb663d5cae
[docs] force externalize chatroom link ( #7097 )
3 years ago
Daniel Sandoval
ca2aedfb6c
[docs] "What's new in Svelte" January newsletter ( #7074 )
3 years ago
Ignatius Bagus
99a04c464d
[docs] mention tweened duration as function
...
Resolves #3353
3 years ago
Maxi Ferreira
72d40e99b0
[docs] fix typo in Context API tutorial ( #7063 )
3 years ago
Enrico Spinielli
6f2ebaa76d
[docs] use proper symbol for Celsius and Fahrenheit ( #7061 )
3 years ago
Tyler Smith
84669b5a6c
[docs] Updated link to the ease visualizer in the docs ( #7054 )
3 years ago
Ignatius Bagus
f73dc07980
[docs] absolute sibling links ( #7051 )
3 years ago
Ignatius Bagus
7db797eb1b
[docs] absolute assets links ( #7049 )
3 years ago
Ignatius Bagus
04890c73d2
[docs] absolute and future proof links ( #7038 )
3 years ago
Conduitry
35376f2487
[docs] fix path to /tutorial/image.gif ( #7033 )
3 years ago
Rich Harris
7521bd55b5
[docs] fix hash fragments ( #7025 )
...
* fix hash fragments
* remove link hack
3 years ago
Dustin Wyatt
683c39adb7
[docs] Clarify that VS Code isn't the only supported IDE ( #6989 )
3 years ago
Dominik Leicht
67f79dd934
[docs] simplify template literals to string primitives ( #6806 )
3 years ago
pngwn
791e40d070
fix: use correct yaml syntax in blog posts ( #6984 )
3 years ago
Daniel Sandoval
51459874fe
[docs] "What's new in Svelte" December newsletter ( #6965 )
3 years ago
Fabrizio Calderan
2c7986034d
[docs] A reference of the field variable is missing in the sidebar ( #6815 )
3 years ago
gtmnayan
6ff1aed8d5
[docs] Use a simpler demo for the first actions tutorial ( #5014 ) ( #6962 )
...
* Change actions tutorial
* Rename files containing action functions
* Move old pannable example to separate directory
* Add new tutorial to examples
* Update title of the pannable example
* Add thumbnail for pannable action example
* I can't remember all css properties, okay?
* Fix order of style tag in new example
* Inline outclick handlers
* Rename pannable example
* Fix formatting
Co-authored-by: Nayan Gautam <50981692+698969@users.noreply.github.com>
3 years ago
mjvandermeulen
81fc3f898a
[docs] clarified definition of "local transition" in tutorial ( #6895 )
3 years ago
Ivan
4018b548f3
[docs] fix link to Svelte Society community-maintained tools ( #6957 )
3 years ago
Rich Harris
909ba1778a
update arctic sea ice extent chart ( #6922 )
3 years ago
Dmitriy Fishman
f50d9b9f34
[docs] Fix a typo in 03-run-time.md ( #6933 )
3 years ago
Dmitriy Fishman
fd466d7221
[docs] fix typo in 02-template-syntax.md ( #6929 )
3 years ago
Jim Hunziker
78e02565d2
[docs] fix link to community-maintained tools ( #6917 )
3 years ago
Ben McCann
fe39272fe8
[docs] clarify which routers have SSR support ( #6905 )
3 years ago
gtmnayan
7681ed0a45
[docs] Document the effect of the order of bind: and on: ( #6887 )
3 years ago
Aykut Kardaş
4cc439aaad
[docs] update 03-each-blocks sample for readable ( #6907 )
3 years ago
Ignatius Bagus
2484acea26
[docs] use svelte:header + event for link load ( #6903 )
3 years ago
Ben McCann
e3380e3ccb
[docs] update router FAQ ( #6902 )
3 years ago
Bert B
c2ae05abcf
[docs] update link for community preprocessors ( #6897 )
3 years ago
Conduitry
cbbf002a8e
[docs] use new named export for marked 4 in examples ( #6893 )
3 years ago
Daniel Sandoval
530b6ae57d
[docs] "What's new in Svelte" November newsletter ( #6888 )
3 years ago
Nayan Gautam
990c21f7f3
[docs] Replace double tildes with Math.trunc in tutorials ( #6880 )
...
Using double tildes for truncating fractional numbers isn't readable for people who haven't encountered it before
3 years ago
Andrew Healey
b2d23e9d11
Fix broken link to "The Svelte Handbook" ( #6878 )
3 years ago
Ben McCann
b8efbb4cca
[docs] convert spaces to tabs
3 years ago
gunggmee
64435d1553
[docs] remove confusing assignment from stores tutorial ( #6867 )
...
Tutorial on writable stores contains unexplained and unused assignment
which might cause confusion.
Proper explanations on `unsubscribe` is in the next step of the tutorial.
3 years ago
Alexander Prinzhorn
6f8a6fe90b
[docs] Improve wording for `animate` docs ( #6813 )
3 years ago
Ignatius Bagus
76fa68d82f
[docs] update spring precision value ( #6865 )
3 years ago
Conduitry
883c47b45d
[site] fix escaping in table of compiler options
3 years ago
Bjorn Lu
be1eff0305
[feat] add enableSourcemap option ( #6835 )
3 years ago
Mohamed Haddi
0d7c583364
[docs] align input controls ( #6831 )
3 years ago
DoctorNefario
55130be026
[docs] use 'transition' directive for custom JS transitions ( #6796 )
...
This prevents transition jumping when visibility is repeatedly toggled
3 years ago
Ben McCann
547fbc6ebd
[docs] what is rendered when for #await ( #6788 )
3 years ago
Daniel Sandoval
54ba76c1f0
[docs] "What's new in Svelte" October newsletter ( #6774 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Bjorn Lu <34116392+bluwy@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
3 years ago
zhoulixiang
e82cf3f6d7
[docs] update links to babeljs.io and buble.surge.sh to use https ( #6787 )
3 years ago
zhoulixiang
ca94762fe9
[docs] update link to rollup.org to use https ( #6781 )
3 years ago
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
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
3 years ago
Simon H
937c7c9c4a
[docs] document $store behavior more explicitely
...
Closes #4677
3 years ago
David Dawkins
e7cbea64e0
[docs] fix padding in svg bar chart example ( #5945 )
...
Fixes #5941
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
Eirik Vågeskar
854a7de451
[docs] Add tutorial step for key blocks ( #6420 )
3 years ago
decaylala
8457a73cef
[docs] adjust function name ( #6495 )
3 years ago
Geoff Rich
a35506b5eb
[docs] update a11y docs ( #6487 )
3 years ago
Joakim Berglund
ecc3c08999
Trackpad and touch support in media example ( #5912 )
3 years ago
Jatin Hemnani
c4f4a3dc2e
[docs] added transition on toggling folder in tutorial ( #6453 )
3 years ago
Odee
287cccc450
[docs] Update auto-subscriptions tutorial to explicitly say that subscribe returns unsubscribe ( #6448 )
3 years ago
Daniel Sandoval
a6fbf7faf5
[docs] "What's new in Svelte" July newsletter ( #6459 )
3 years ago
Lukas Möller
2a9f9d7bb0
Remove unused toggle prop from example ( #5124 )
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
Caleb Chiesa
98ece151b3
Fix typo in stores tutorial ( #6461 )
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
fivem
bca46b9f70
tutorial: In the onDestroy example, explicitly show the memory leak ( #5515 )
3 years ago
The Jared Wilcurt
7115601cd3
Docs: Accurately name function ( #4060 )
3 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
3 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>
3 years ago
Outvi V
92422fdee2
doc: Add notes to stress call-context-during-initialisation ( #5631 )
3 years ago