GHOST
c67f8ef14c
[fix] handle kebab case style directives ( #7123 )
...
fixes #7122
3 years ago
Tan Li Hau
b5aaa6641b
[feat] implement constants in markup ( #6413 )
3 years ago
Yuichiro Yamashita
895b4c6721
[fix] hydrate correct elements when using `@html` ( #6946 )
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
Tan Li Hau
5e40277167
[feat] add reference for default values in destructuring context ( #7007 )
3 years ago
Tan Li Hau
9f2b5afdf7
[fix] binding member expression should only invalidate the object, not the member property ( #7008 )
3 years ago
Tan Li Hau
2f0f330b76
[fix] {:else if} value incorrectly cached ( #7043 )
3 years ago
pngwn
4240455e02
[fix] ensure truthy non-boolean attributes are rendered correctly in SSR ( #7066 )
3 years ago
Yuichiro Yamashita
966c03a317
[chore] fix test flakiness ( #7076 )
3 years ago
Ignatius Bagus
2012124e87
[fix] foreign namespace hash link ( #7080 )
3 years ago
James Bradbury
84a4ef07c9
[feat] add a11y-no-redundant-roles check ( #7067 )
...
Part of #820
Closes #5361
Co-authored-by: mhatvan <markus_hatvan@aon.at>
3 years ago
Bassam Ismail
c663104937
[fix] prevent cursor jump for all text inputs ( #6941 )
3 years ago
Tan Li Hau
6ecc3e4d6a
[feat] opt-out loopGuard for async loops ( #6963 )
3 years ago
Robin Munn
5a8851436f
[fix] bind:this during onMount in manually-created component ( #6920 )
3 years ago
Aykut Kardaş
2c8e77bf90
[refactor] refactor trim utils and write tests ( #6909 )
3 years ago
Bjorn Lu
be1eff0305
[feat] add enableSourcemap option ( #6835 )
3 years ago
Vaibhav Rai
b6b7f5c8a4
[fix] properly respect sveltePath when rewriting user imports ( #6842 )
3 years ago
Yuichiro Yamashita
a5968dd2d0
[chore] adjust @typescript-eslint/no-unused-vars lint config ( #6798 )
3 years ago
Conduitry
10ce5c95fd
[fix] handle promise rejections for {#await} in SSR ( #6790 )
3 years ago
Conduitry
67b53bfe6d
[fix] prefer context from constructor options ( #6759 )
3 years ago
Bjorn Lu
b845307698
[fix] handle preprocess with empty sourcemaps ( #6757 )
3 years ago
Bjorn Lu
79df74b087
[fix] run else-if reactive function on re-renders ( #6727 )
3 years ago
Shinobu Hayashi
f1f7d90240
[fix] handle AssignmentPattern with ObjectPattern in rewrite_identifier ( #6715 )
3 years ago
Conduitry
6735d5422c
[chore] fix js sample test
3 years ago
Yuichiro Yamashita
fc4797c6f8
[fix] only use optimized 'src' handling for 'html' namespace ( #6580 )
3 years ago
Shinobu Hayashi
fc9241fea9
[fix] handle undefined select value with spread ( #6687 )
3 years ago
Theodore Brown
8cb72d9716
[fix] set selectedIndex to -1 when no option matches bound <select> value ( #6170 )
3 years ago
tomoam
907223cc78
[fix] only rely on `element`/`svg_element` functions if a hydrating component needs them ( #6556 )
3 years ago
Tan Li Hau
f25a995f7b
collapse whitespace in class and style attributes ( #6613 )
3 years ago
Tommy Groshong
a232d68a41
docs: small spelling fixes in docs and comments ( #6653 )
3 years ago
Hasan Altan Birler
100561c336
[fix] hydration append issue ( #6602 )
3 years ago
Tan Li Hau
ce550adef6
[feat] allow use:actions on <svelte:body> ( #6608 )
3 years ago
Tan Li Hau
64b882e3c5
[feat] improve parser errors ( #6612 )
3 years ago
Oliver Ford
f48239914d
[fix] warning on reactive use of module const ( #6606 ) ( #6607 )
3 years ago
Dominik G
e94d1f50bc
[fix] use consistent relative source filename for js sourcemaps ( #6598 )
3 years ago
Tan Li Hau
e1d0d00ebb
[feat] allow shorthand {#await ... then/catch} ( #6564 )
3 years ago
Tan Li Hau
b720f0e620
[feat] support destructured declaration of props ( #6578 )
3 years ago
Tan Li Hau
c550f604f2
[feat] enable export ... from ( #6574 )
3 years ago
Tan Li Hau
d75ed6a003
[fix] slot data for cancelled transition ( #6314 )
3 years ago
Yuichiro Yamashita
c8732c8a27
[fix] create in transition even if intro is initialized ( #6516 )
3 years ago
Tan Li Hau
9501ac6257
[fix] destructuring store assignment ( #6529 )
3 years ago
Tan Li Hau
ee769101fc
[fix] applying :global for > combinator ( #6563 )
3 years ago
Tan Li Hau
1952ea22de
[fix] no root node for detached dom node ( #6570 )
3 years ago
Yuichiro Yamashita
fd8c5885c8
[fix] create AST node of empty string for empty attribute values ( #6539 )
...
Co-authored-by: Conduitry <git@chor.date>
3 years ago
Bjorn Lu
71c29bbf35
[fix] dynamic autofocus ( #6494 )
3 years ago
Simon H
4ca2af41df
[fix] add filename to combined source map if needed ( #6089 )
3 years ago
Tan Li Hau
b23d267f1f
[fix] improper :global() style encapsulation ( #6560 )
3 years ago
Tan Li Hau
365b5e300c
[fix] store reactivity in reactive declarations ( #6559 )
3 years ago
Tan Li Hau
8c66acfa92
fix one-way <select> bind with spread ( #6512 )
3 years ago
Tan Li Hau
c54d57b0d9
don't scope :root selector ( #6514 )
3 years ago