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

63 Commits

Author SHA1 Message Date
wackbyte
c0c1a56675
feat: bind activeElement and pointerLockElement in <svelte:document> (#11879)
* feat: bind `activeElement` and `pointerLockElement` in `<svelte:document>`

* add test, use focusin/focusout rather than focus/blur

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-06-04 13:36:15 -04:00
Mostafa Kheibary
e16591abe8
docs: Change all the word "initialization" to "initialisation" (#10708)
* Docs: Change all initizlisation to initialisation

* Reverted to "initialization" when asserting errors with specific message

* Reverted to "initialization" where related to specific error message
2024-03-10 17:11:21 -04:00
Dathan
282d62baae
Fix typo and grammar in 01-svelte-components.md (#10737) 2024-03-10 16:54:52 -04:00
Ben McCann
4942d6b9cc
docs: update routing FAQ with some more recent options (#10452)
* docs: update routing FAQ with some more recent options

* Update documentation/docs/05-misc/01-faq.md

Co-authored-by: Conduitry <git@chor.date>

* Update documentation/docs/05-misc/01-faq.md

---------

Co-authored-by: Conduitry <git@chor.date>
2024-02-13 13:30:41 -05:00
Simon H
c6c934afb2
chore: cleanup (#9381)
* lets see if this works

* fix versions

* sigh

* debugging ci is sooo fun

* oh wow

* fix stuff, changelog, add back readme

* appease prettier

* format stuff
2023-11-10 16:46:40 +01:00
Ben McCann
895612514c
fix: improve a11y-click-events-have-key-events message (#9358) 2023-10-30 09:43:24 -07:00
Ravi van Rooijen
1ed9182025
docs: mention {#await} on non-Promise values short-circuiting to the fullfilled branch (#9324)
Fixes #9323
2023-10-19 09:27:47 +02:00
Ben McCann
8e85b3fa9e
docs: remove typescript faq (#9108) 2023-09-16 11:45:15 -07:00
Puru Vijay
1a28d58b5d
feat: Copy code button (#8995)
* Push

* Bump site-kit

* Add headers to primary snippets

* Update deps

* Bump deos

* redploy

* Back to normal

* Push

* Bump deps

* site: fix rendering of promise in deprecation warning (#9191)

* copy: true

* Bump site-kit

* Use cache
2023-09-16 20:00:16 +05:30
Conduitry
16504d1f52
docs: add FAQ about why you can't keep unused styles (#9193) 2023-09-15 16:34:49 -07:00
Jack Farley
9073241daa
docs: mention escaping of curly braces (#8560) 2023-09-15 16:26:19 -07:00
Brittney Postma
2691e19b6b
docs: use latest tag when creating vite template (#9151) 2023-08-28 07:33:12 -07:00
Simon H
d2ed2ca329
docs: note ambient module info (#9106) 2023-08-15 16:07:33 +02:00
Romain l'Ourson
da3cc6c0a0
fix: typo (#9102) 2023-08-13 20:35:42 -07:00
Andy Pan
037b6ce312
docs: Fix a regression for a quoted-attribute example (#9103)
* Fix a doc regression for a quoted-attribute example

* Prettier ignore

---------

Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
2023-08-13 13:26:29 +05:30
github-actions[bot]
50c270a54d
Version Packages (#9096)
---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-08-11 16:32:25 +02:00
Lyu, Wei-Da
05f99d20f9
feat: move svelteHTML to load the correct svelte/element (#9070)
Make IntrinsicElements extends SvelteHTMLElements
so it can be extend with declare module
converting to module so it can extend without needing another type alias

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-08-11 15:54:20 +02:00
Alpay
ea2b5700ca
docs: fix link (#9071) 2023-08-04 14:54:54 +05:30
Ben McCann
ce047651e5
docs: update component directives page (#9040) 2023-07-28 12:11:14 +02:00
Ben McCann
d6abd0a604
docs: clarify performance concerns around props and restProps (#9047)
* docs: clarify performance concerns around props and restProps

* Update documentation/docs/02-template-syntax/02-basic-markup.md
2023-07-27 20:50:46 +02:00
Kai Erik Niermann
5cd4f7750e
docs: add parenthesis back to regex literal example (#9027)
* fix: added parenthesis to literal notation example

* add prettier-ignore

---------

Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
2023-07-24 10:47:52 +05:45
Jo Burgard
3dccf711f8
Fix error in example in 03-typescript.md (#9001) 2023-07-19 22:37:38 +02:00
Simon H
657f11376c
feat: add ability to extend custom element class (#8991)
This should help everyone who has special needs and use cases around custom elements. Since Svelte components are wrapped and only run on connectedCallback, it makes sense to expose the custom element class for modification before that.
- fixes #8954 / closes #8955 - use extend to attach the function manually and save possible values to a prop
- closes #8473 / closes #4168 - use extend to set the proper static attribute and then call attachInternals in the constructor
- closes #8472 - use extend to attach anything custom you need
- closes #3091 - pass `this` to a prop of your choice and use it inside your component
- add some doc for #8987
2023-07-18 18:21:19 +02:00
Romain l'Ourson
c1d3d58088
docs: remove compiler duplicate paragraph (#8980)
Co-authored-by: Romain Crestey <romain.crestey@radiofrance.com>
2023-07-16 09:30:01 +02:00
Fanny
f41ff96c3a
docs: fix typo (#8966) 2023-07-13 11:50:30 +02:00
gtmnayan
afcf853b65
docs: update migration guide bundler conditions section (#8965)
#8953 / #8961 

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-07-13 11:26:00 +02:00
Dana Woodman
398904894e
docs: Make "unquoted" example actually unquoted (#8937) 2023-07-10 10:33:03 +02:00
Enrico Sacchetti
02099d9d75
docs: update Typescript elements link (#8938) 2023-07-08 19:31:41 -07:00
Simon H
132dd7906a
docs: preprocessor migration details (#8927)
closes #8916
2023-07-06 18:10:42 +02:00
Puru Vijay
70426be84a
feat(site): Deploy to edge (#8873)
* Try edge

* Fix errors

* Improvements

* Minor fixes

* Simplify docs layout logic

* Persist session true

* try regions all

* Push new promise-based infra

* pnpm install

* Remote debugging

* Refine

* try to disable prerender for examples

* text

* Weird hack

* url

* log params

* Try param matcher

* try some restructuring

* Leftover

* remove console log

* More async, remove node-fetch

* Fix

* New fixes

* Undo changes

* back to site-kit next 18
2023-07-06 19:22:57 +05:30
Simon Holthausen
d516bb06e1 docs: add eslint migration 2023-07-05 11:06:11 +02:00
Simon H
b9328a5077
docs: more details on transition migration 2023-07-03 12:20:05 +02:00
Brad Dougherty
cfa5447ea5
docs: fix typo in v4 migration guide (#8890) 2023-06-30 19:00:39 +02:00
Simon H
b0a3fa1766
fix: ensure createEventDispatcher and ActionReturn work with generic function types (#8872)
fixes #8860

This contains a small but unfortunately unavoidable breaking change: If you used `never` to type that the second parameter of `createEventDispatcher` shouldn't be set or that the action accepts no parameters (which the docs recommended for a short time), then you need to change that to `null` and `undefined` respectively
2023-06-28 23:56:40 +02:00
Simon Holthausen
1c7ed55385 docs: add a11y-no-static-element-interactions
closes #8862
2023-06-28 11:23:01 +02:00
Not-Jayden
e3422e182b
docs: Don't recommend TypeScript type assertions for reactive declarations (#8824)
strictly speaking that's not the same and could hide some type errors
2023-06-27 08:27:59 +02:00
Gwang Jin Kim
d3297e2a25
docs: Remove duplicate note (#8843) 2023-06-25 16:06:46 +02:00
Theodore Brown
223db7f19d
docs: fix TypeScript event name typos (#8844) 2023-06-25 16:06:06 +02:00
iamkneel
7dea31327e
docs: format "MutationObserver" as code (#8830) 2023-06-24 07:59:16 +05:45
Cesar Napoleon Mejia Leiva
a83e438b5e
docs: fix style directive with important modifier example (#8802) 2023-06-23 14:49:36 +02:00
Martin Hobert
5ddf4ca779
docs: fix attribute example in basic markup (#8813)
---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-06-23 12:23:18 +02:00
gtmnayan
ea18bd7e98
docs: use @latest on the migrate command (#8814) 2023-06-23 12:22:32 +02:00
Simon H
797b711e3a
docs: tweaks (#8798)
- link to createEventDispatcher typings
- svelte action type error fix
- migration guide tweak
- add back blog post that has gone missing
2023-06-22 19:16:42 +02:00
Simon Holthausen
23fc113d31 docs: note type enhancements breaking change 2023-06-22 14:46:34 +02:00
Ben McCann
b582baa570
docs: list minimum versions for r-p-s and svelte-loader (#8788) 2023-06-22 09:57:15 +02:00
Puru Vijay
3c8a07136a
fix(site): renderer new link format (#8787)
* adapt

* Uncomment

* Push

* Bump site-kit
2023-06-22 08:42:09 +05:30
Puru Vijay
22cc4756e0
feat(site): site-kit renderer (#8757)
* Push

* Weirdass fix

* Unified renderer

* Move a bit

* Accomodate to new renderer

* update site-kit

* bump site-kit

* Fix script

* Bump site-kit

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-06-22 06:39:20 +05:30
Puru Vijay
cf32fa2497
fix(site): update tutorial links (#8780)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-06-21 15:12:58 -07:00
Ben McCann
be5742aefe docs: update link 2023-06-21 15:00:04 -07:00
Simon H
203490c3e4
breaking: use CustomEvent constructor instead of deprecated createEvent method (#8775)
closes #8474
2023-06-21 10:07:24 +02:00