0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00
Commit Graph

7107 Commits

Author SHA1 Message Date
Simon H
636290af95
fix: remove indeterminate from boolean attributes (#8334)
It's only existing as a boolean property
cleanup of #7944
2023-02-27 11:33:45 +01:00
Yuichiro Yamashita
3423bf6b30
add docs (#8326) 2023-02-26 22:40:36 +08:00
Tan Li Hau
79c64df41b
Update CHANGELOG.md 2023-02-26 22:37:15 +08:00
Yuichiro Yamashita
1f3d2f7646
fix: better handling of inert attribute (add tests) (#7944)
* add inert to attribute_lookup

* typed for preventing a repeat of the tragedy

* add tests

* revert unnecessary change

* add more test

---------

Co-authored-by: fcrozatier <frederic.crozatier@protonmail.com>
2023-02-26 22:35:00 +08:00
Ben McCann
ca531519a8
chore: switch to @jridgewell/sourcemap-codec (#8321) 2023-02-24 15:50:22 -08:00
Tan Li Hau
d16dd5d7ca
feat: add naturalWidth and naturalHeight bindings (#7857)
Closes #7771
---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-02-24 14:20:44 +01:00
Simon H
ba8f979f03
chore: update changelog 2023-02-23 18:49:49 +01:00
Mike Randazzo
487fedce6c
docs: describe that bind:value creates a two-way binding (#8311)
---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-02-23 13:46:08 +01:00
Hong-Kuan Wu
835362af88
fix: check url and search input field values before updating (#7111)
Fixes #7027
2023-02-23 12:36:27 +01:00
Alvin Ramskogler
9f89a92d31
feat: add readonly method to convert writable store to readonly (#6518) 2023-02-23 12:17:34 +01:00
Simon H
0bdb59c2e2
fix: compute rect directly before crossfading (#8314)
closes #4344
fixes #4111
2023-02-23 12:03:29 +01:00
Jos de Jong
e5b0b6235d
fix: ensure bind:offsetHeight updates (#8096)
fixes #4233 by calling the callback after the iframe loads, which may be asynchronous

---------

Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
2023-02-23 12:03:12 +01:00
Simon H
709264a94c
chore: update changelog 2023-02-22 20:08:46 +01:00
Tan Li Hau
53de73d08c
feat: simpler output for reactive vars if dependencies are all static (#7942) 2023-02-22 20:02:42 +01:00
Vaibhav
c9a269c149
fix: silence no content a11y warning if the tag has an aria-label (#8299)
fixes #8296

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-02-22 17:19:33 +01:00
ngtr6788
3559997223
feat: implement a11y aria-activedescendant-has-tabindex (#8172)
#820
2023-02-22 17:14:21 +01:00
Simon H
a71b8b9958
chore: improve parser performance (#8303)
- fast path for attribute quote marks common case
- all regexes exclusively passed into read or match_regex which are only successful if matched at the beginning are altered so that the regex has this condition built in, preventing it from searching past the start index

---------

Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
2023-02-22 16:18:36 +01:00
brunnerh
e3e912ab58
Fix accessibility of options tutorial. (#8308)
Use button instead of non-interactive element (div).
(Removes a Svelte a11y warning.)
2023-02-22 09:51:26 +01:00
Yuichiro Yamashita
a0cedf8d82
fix: flush remaining afterUpdate before destroy (#7516)
fixes #7476
2023-02-22 09:46:49 +01:00
Rémi Marche
57d869d028
[docs] move @html tutorial to end (partly fixing #7253) (#7254)
* Move @html tutorial to end

* move debug and html tag into one section

* rename

---------

Co-authored-by: Rémi Marche <35939574+Marr11317@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-02-21 20:00:15 +01:00
Simon H
87424b3137
chore: update changelog 2023-02-21 18:14:15 +01:00
Carlos Ivanchuk
aa9b2dd5f3
fix: omit a11y warning on <video> when aria-hidden="true" (#7880)
Related to #5967. Closes #7874

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
2023-02-21 17:27:49 +01:00
Valter Kraemer
2a5b488386
fix: empty value attribute selector doesn't produce "Unused CSS selector" warning (#8122)
Fixes: #8042

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
2023-02-21 15:21:48 +01:00
Ben Bucksch
f6ef6a9349
fix: don't throw when calling writable() unsubscribe twice (#8186)
Fixes one case of #4765

---------

Co-authored-by: Ben Bucksch <bbucksch@jw.org>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
2023-02-21 13:52:39 +01:00
Jhorman Ruswel ㅠㅠ
85f882f23d
docs: update Keyed Each Blocks tutorial (#8188)
log which element is removed

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-02-21 13:13:50 +01:00
Simon H
324b791d81
docs: note #if to wrap text only
taken from #7070
2023-02-21 13:04:12 +01:00
Hyunbin
213049cc2e
docs: update dialog example (#8200)
* feat: update dialog example

* button always autofocusses, allows us to simplify

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-02-21 12:07:33 +01:00
Mike Plummer
7a6eee51e0
docs: Expand testing FAQ section (#8205)
---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-21 11:54:00 +01:00
Maxime Dupont
4dd12c0c61
docs: fix fly animation description (#8236) 2023-02-21 11:33:01 +01:00
Simon H
d5e46d647e
chore: update changelog 2023-02-21 11:24:53 +01:00
Andrew Walker
b0fed256f7
feat: Add -replacestate/-keepfocus to SvelteKit anchor tag props (#8281) 2023-02-21 11:23:13 +01:00
Puru Vijay
df2bb23af4
feat: search and backlink compatability (#8286)
* Copy the right files

* Finish search

* FIx accessibility issues

* Add original site compatibility back in

* Remove console.log

* Reorganize imports

* Minor refactor

* Fix undefined heading issue

* Replace state on redirect

* Don't redirect to docs/introduction from navbar

* Cleanup search

* Cleanup some more(html entities)

* Remove console log

* Minor style tweaks

* Put search in middle
2023-02-16 16:37:44 +05:30
Puru Vijay
1b12546afe Merge remote-tracking branch 'origin/master' into sites 2023-02-16 11:22:53 +05:30
Lioness100
5a3a1e488a
fix: correct typos in variable names (#8257)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 10:36:48 -08:00
James Scott-Brown
acba4b72e2
docs: clarify bindings for <select multiple> (#8260)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 10:04:49 -08:00
dependabot[bot]
d9253963f7
Bump qs from 6.5.2 to 6.5.3 (#8090)
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-14 09:05:19 -08:00
Alicia Sykes
0598c989a0
docs: corrects syntax error in transition code sample (#8169)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 08:57:07 -08:00
Kyrre Gjerstad
d7e4b1c8fc
docs: fix minor typos (#8268)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2023-02-14 08:25:23 -08:00
James Scott-Brown
ff5c14dc71
docs: format window.navigator.onLine reference as code (#8262) 2023-02-14 08:19:57 -08:00
James Scott-Brown
7706a5f713
docs: link to MDN page on void elements (#8261) 2023-02-14 08:18:06 -08:00
Puru Vijay
dd960327f2 Update deps 2023-02-14 14:53:36 +05:30
Puru Vijay
79db9b180d
feat: Proper dark mode (#8274)
* Push

* Update svelte REPL

* Light mode fixes

* Fox height issues

* Moar dark mode fixes

* More changes

* Fix zen mode height issue
2023-02-13 14:47:53 +05:30
Puru Vijay
f4c593f28f Merge remote-tracking branch 'origin/sites' into sites 2023-02-07 16:30:19 +05:30
Puru Vijay
a3f3602846 Merge remote-tracking branch 'origin/master' into sites 2023-02-07 16:29:23 +05:30
Puru Vijay
69349319eb
feat: multi-page docs (#8253)
* Rename markdown to blog

* Multi-page docs

* Ignore missing ID for now

* heading

* Add code snippets(temporary)

* /docs redirects to introduction

* Remove ukraine petition

* OnThisPage

* Remove console.log

* Update deps

* Fix accessibility warning

* Update site-kit
2023-02-07 16:28:30 +05:30
Ben McCann
82d2982845
chore: update PR template (#8255) 2023-02-05 06:20:51 -08:00
Satvik
6ac24f1d5c
[docs] add missing semicolon (#8190) 2023-02-05 21:00:54 +09:00
Tim McCabe
cb972ecdba
[chore] fix a11y-no-nointeractive-tabindex typo (#8252) 2023-02-05 20:23:43 +09:00
Puru Vijay
7afee765fc Add blurb back in 2023-02-03 13:53:32 +05:30
Puru Vijay
60806f74b9
[feat]: Move svelte.dev here (#8237)
* Push

* Remove `rootDir`

* Use tsconfig instead of jsconfig

* Push recent changes

* Better dark mode

* empty commit to try and trigger a deploy

* bump kit

* Fix site-kit dep

* Comment out blurb

* Update site-kit to 3.2.1

* Externalise sourcemap-codec

* Install sourcemap-codec as dep

---------

Co-authored-by: Rich Harris <hello@rich-harris.dev>
2023-02-02 15:45:09 -05:00