@stencil/core 5.0.0-beta.1 → 5.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-data/index.d.ts +1 -1
- package/dist/{client-BRu0GtRn.mjs → client-CdFmjaQa.mjs} +40 -15
- package/dist/compiler/browser.d.ts +1 -1
- package/dist/compiler/browser.js +77 -41
- package/dist/compiler/index.d.mts +1 -1
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/{compiler-CJG6qvQt.mjs → compiler-2EypBn_Y.mjs} +346 -122
- package/dist/declarations/stencil-public-compiler.d.ts +6 -1
- package/dist/declarations/stencil-public-runtime.d.ts +57 -55
- package/dist/{index-BXAcVN2j.d.ts → index-BHciXst1.d.ts} +57 -55
- package/dist/{index-DmHmu3y0.d.mts → index-CKnzMkZC.d.mts} +1 -1
- package/dist/{index-BopBfjPu.d.mts → index-Cw1NW9FW.d.mts} +6 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-75gQKkFz.mjs → node-HKfDhPR3.mjs} +1 -1
- package/dist/runtime/client/lazy.js +63 -31
- package/dist/runtime/client/runtime.d.ts +57 -55
- package/dist/runtime/client/runtime.js +63 -31
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +63 -31
- package/dist/runtime/server/index.d.mts +2 -1
- package/dist/runtime/server/index.mjs +83 -44
- package/dist/runtime/server/runner.mjs +8 -5
- package/dist/signals/index.d.ts +11 -2
- package/dist/signals/index.js +11 -1
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.d.mts +6 -1
- package/dist/testing/index.mjs +64 -32
- package/package.json +4 -4
|
@@ -228,7 +228,7 @@ interface VNode {
|
|
|
228
228
|
$signal$?: any;
|
|
229
229
|
}
|
|
230
230
|
declare namespace JSXBase {
|
|
231
|
-
interface IntrinsicElements {
|
|
231
|
+
export interface IntrinsicElements {
|
|
232
232
|
slot: JSXBase.SlotAttributes<HTMLSlotElement>;
|
|
233
233
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
234
234
|
abbr: JSXBase.HTMLAttributes;
|
|
@@ -399,12 +399,12 @@ declare namespace JSXBase {
|
|
|
399
399
|
use: JSXBase.SVGAttributes;
|
|
400
400
|
view: JSXBase.SVGAttributes;
|
|
401
401
|
}
|
|
402
|
-
interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
402
|
+
export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
403
403
|
name?: string;
|
|
404
404
|
slot?: string;
|
|
405
405
|
onSlotchange?: (event: Event) => void;
|
|
406
406
|
}
|
|
407
|
-
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
407
|
+
export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
408
408
|
download?: any;
|
|
409
409
|
href?: string;
|
|
410
410
|
hrefLang?: string;
|
|
@@ -415,8 +415,8 @@ declare namespace JSXBase {
|
|
|
415
415
|
target?: string;
|
|
416
416
|
referrerPolicy?: ReferrerPolicy;
|
|
417
417
|
}
|
|
418
|
-
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
|
|
419
|
-
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
418
|
+
export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
|
|
419
|
+
export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
420
420
|
alt?: string;
|
|
421
421
|
coords?: string;
|
|
422
422
|
download?: any;
|
|
@@ -428,14 +428,14 @@ declare namespace JSXBase {
|
|
|
428
428
|
shape?: string;
|
|
429
429
|
target?: string;
|
|
430
430
|
}
|
|
431
|
-
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
431
|
+
export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
432
432
|
href?: string;
|
|
433
433
|
target?: string;
|
|
434
434
|
}
|
|
435
|
-
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
435
|
+
export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
436
436
|
cite?: string;
|
|
437
437
|
}
|
|
438
|
-
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
438
|
+
export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
439
439
|
disabled?: boolean;
|
|
440
440
|
form?: string;
|
|
441
441
|
formAction?: string;
|
|
@@ -458,45 +458,45 @@ declare namespace JSXBase {
|
|
|
458
458
|
commandFor?: string;
|
|
459
459
|
commandfor?: string;
|
|
460
460
|
}
|
|
461
|
-
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
461
|
+
export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
462
462
|
height?: number | string;
|
|
463
463
|
width?: number | string;
|
|
464
464
|
}
|
|
465
|
-
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
465
|
+
export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
466
466
|
span?: number;
|
|
467
467
|
}
|
|
468
|
-
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
468
|
+
export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
469
469
|
span?: number;
|
|
470
470
|
}
|
|
471
|
-
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
471
|
+
export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
472
472
|
open?: boolean;
|
|
473
473
|
name?: string;
|
|
474
474
|
onToggle?: (event: ToggleEvent) => void;
|
|
475
475
|
}
|
|
476
|
-
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
476
|
+
export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
477
477
|
cite?: string;
|
|
478
478
|
dateTime?: string;
|
|
479
479
|
datetime?: string;
|
|
480
480
|
}
|
|
481
|
-
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
481
|
+
export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
482
482
|
onCancel?: (event: Event) => void;
|
|
483
483
|
onClose?: (event: Event) => void;
|
|
484
484
|
open?: boolean;
|
|
485
485
|
returnValue?: string;
|
|
486
486
|
closedby?: 'any' | 'closerequest' | 'none';
|
|
487
487
|
}
|
|
488
|
-
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
488
|
+
export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
489
489
|
height?: number | string;
|
|
490
490
|
src?: string;
|
|
491
491
|
type?: string;
|
|
492
492
|
width?: number | string;
|
|
493
493
|
}
|
|
494
|
-
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
494
|
+
export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
495
495
|
disabled?: boolean;
|
|
496
496
|
form?: string;
|
|
497
497
|
name?: string;
|
|
498
498
|
}
|
|
499
|
-
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
499
|
+
export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
500
500
|
acceptCharset?: string;
|
|
501
501
|
acceptcharset?: string;
|
|
502
502
|
action?: string;
|
|
@@ -510,10 +510,10 @@ declare namespace JSXBase {
|
|
|
510
510
|
novalidate?: boolean | string;
|
|
511
511
|
target?: string;
|
|
512
512
|
}
|
|
513
|
-
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
513
|
+
export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
514
514
|
manifest?: string;
|
|
515
515
|
}
|
|
516
|
-
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
516
|
+
export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
517
517
|
allow?: string;
|
|
518
518
|
allowFullScreen?: boolean;
|
|
519
519
|
allowfullScreen?: string | boolean;
|
|
@@ -540,7 +540,7 @@ declare namespace JSXBase {
|
|
|
540
540
|
srcdoc?: string;
|
|
541
541
|
width?: number | string;
|
|
542
542
|
}
|
|
543
|
-
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
543
|
+
export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
544
544
|
alt?: string;
|
|
545
545
|
crossOrigin?: string;
|
|
546
546
|
crossorigin?: string;
|
|
@@ -559,12 +559,12 @@ declare namespace JSXBase {
|
|
|
559
559
|
usemap?: string;
|
|
560
560
|
width?: number | string;
|
|
561
561
|
}
|
|
562
|
-
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
562
|
+
export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
563
563
|
cite?: string;
|
|
564
564
|
dateTime?: string;
|
|
565
565
|
datetime?: string;
|
|
566
566
|
}
|
|
567
|
-
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
567
|
+
export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
568
568
|
accept?: string;
|
|
569
569
|
allowdirs?: boolean;
|
|
570
570
|
alt?: string;
|
|
@@ -627,7 +627,7 @@ declare namespace JSXBase {
|
|
|
627
627
|
popoverTargetElement?: globalThis.Element | null;
|
|
628
628
|
popoverTarget?: string;
|
|
629
629
|
}
|
|
630
|
-
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
630
|
+
export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
631
631
|
challenge?: string;
|
|
632
632
|
disabled?: boolean;
|
|
633
633
|
form?: string;
|
|
@@ -637,14 +637,14 @@ declare namespace JSXBase {
|
|
|
637
637
|
keyparams?: string;
|
|
638
638
|
name?: string;
|
|
639
639
|
}
|
|
640
|
-
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
640
|
+
export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
641
641
|
form?: string;
|
|
642
642
|
htmlFor?: string;
|
|
643
643
|
}
|
|
644
|
-
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
644
|
+
export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
645
645
|
value?: string | string[] | number;
|
|
646
646
|
}
|
|
647
|
-
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
647
|
+
export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
648
648
|
as?: string;
|
|
649
649
|
fetchPriority?: 'high' | 'low' | 'auto';
|
|
650
650
|
fetchpriority?: 'high' | 'low' | 'auto';
|
|
@@ -658,13 +658,13 @@ declare namespace JSXBase {
|
|
|
658
658
|
sizes?: string;
|
|
659
659
|
type?: string;
|
|
660
660
|
}
|
|
661
|
-
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
661
|
+
export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
662
662
|
name?: string;
|
|
663
663
|
}
|
|
664
|
-
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
664
|
+
export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
665
665
|
type?: string;
|
|
666
666
|
}
|
|
667
|
-
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
667
|
+
export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
668
668
|
autoPlay?: boolean;
|
|
669
669
|
autoplay?: boolean | string;
|
|
670
670
|
controls?: boolean;
|
|
@@ -704,7 +704,7 @@ declare namespace JSXBase {
|
|
|
704
704
|
onVolumeChange?: (event: Event) => void;
|
|
705
705
|
onWaiting?: (event: Event) => void;
|
|
706
706
|
}
|
|
707
|
-
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
707
|
+
export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
708
708
|
charSet?: string;
|
|
709
709
|
charset?: string;
|
|
710
710
|
content?: string;
|
|
@@ -712,7 +712,7 @@ declare namespace JSXBase {
|
|
|
712
712
|
httpequiv?: string;
|
|
713
713
|
name?: string;
|
|
714
714
|
}
|
|
715
|
-
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
715
|
+
export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
716
716
|
form?: string;
|
|
717
717
|
high?: number;
|
|
718
718
|
low?: number;
|
|
@@ -721,10 +721,10 @@ declare namespace JSXBase {
|
|
|
721
721
|
optimum?: number;
|
|
722
722
|
value?: string | string[] | number;
|
|
723
723
|
}
|
|
724
|
-
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
724
|
+
export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
725
725
|
cite?: string;
|
|
726
726
|
}
|
|
727
|
-
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
727
|
+
export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
728
728
|
classID?: string;
|
|
729
729
|
classid?: string;
|
|
730
730
|
data?: string;
|
|
@@ -737,34 +737,34 @@ declare namespace JSXBase {
|
|
|
737
737
|
width?: number | string;
|
|
738
738
|
wmode?: string;
|
|
739
739
|
}
|
|
740
|
-
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
740
|
+
export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
741
741
|
reversed?: boolean;
|
|
742
742
|
start?: number;
|
|
743
743
|
}
|
|
744
|
-
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
744
|
+
export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
745
745
|
disabled?: boolean;
|
|
746
746
|
label?: string;
|
|
747
747
|
}
|
|
748
|
-
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
748
|
+
export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
749
749
|
disabled?: boolean;
|
|
750
750
|
label?: string;
|
|
751
751
|
selected?: boolean;
|
|
752
752
|
value?: string | string[] | number;
|
|
753
753
|
}
|
|
754
|
-
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
754
|
+
export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
755
755
|
form?: string;
|
|
756
756
|
htmlFor?: string;
|
|
757
757
|
name?: string;
|
|
758
758
|
}
|
|
759
|
-
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
759
|
+
export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
760
760
|
name?: string;
|
|
761
761
|
value?: string | string[] | number;
|
|
762
762
|
}
|
|
763
|
-
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
763
|
+
export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
764
764
|
max?: number | string;
|
|
765
765
|
value?: string | string[] | number;
|
|
766
766
|
}
|
|
767
|
-
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
767
|
+
export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
768
768
|
async?: boolean;
|
|
769
769
|
charSet?: string;
|
|
770
770
|
charset?: string;
|
|
@@ -779,7 +779,7 @@ declare namespace JSXBase {
|
|
|
779
779
|
src?: string;
|
|
780
780
|
type?: string;
|
|
781
781
|
}
|
|
782
|
-
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
782
|
+
export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
783
783
|
disabled?: boolean;
|
|
784
784
|
form?: string;
|
|
785
785
|
multiple?: boolean;
|
|
@@ -789,7 +789,7 @@ declare namespace JSXBase {
|
|
|
789
789
|
autoComplete?: string;
|
|
790
790
|
autocomplete?: string;
|
|
791
791
|
}
|
|
792
|
-
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
792
|
+
export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
793
793
|
height?: number;
|
|
794
794
|
media?: string;
|
|
795
795
|
sizes?: string;
|
|
@@ -798,20 +798,20 @@ declare namespace JSXBase {
|
|
|
798
798
|
type?: string;
|
|
799
799
|
width?: number;
|
|
800
800
|
}
|
|
801
|
-
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
801
|
+
export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
802
802
|
media?: string;
|
|
803
803
|
nonce?: string;
|
|
804
804
|
scoped?: boolean;
|
|
805
805
|
type?: string;
|
|
806
806
|
}
|
|
807
|
-
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
807
|
+
export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
808
808
|
cellPadding?: number | string;
|
|
809
809
|
cellpadding?: number | string;
|
|
810
810
|
cellSpacing?: number | string;
|
|
811
811
|
cellspacing?: number | string;
|
|
812
812
|
summary?: string;
|
|
813
813
|
}
|
|
814
|
-
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
814
|
+
export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
815
815
|
autoComplete?: string;
|
|
816
816
|
autocomplete?: string;
|
|
817
817
|
cols?: number;
|
|
@@ -832,12 +832,12 @@ declare namespace JSXBase {
|
|
|
832
832
|
value?: string | string[] | number;
|
|
833
833
|
wrap?: string;
|
|
834
834
|
}
|
|
835
|
-
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
835
|
+
export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
836
836
|
colSpan?: number;
|
|
837
837
|
headers?: string;
|
|
838
838
|
rowSpan?: number;
|
|
839
839
|
}
|
|
840
|
-
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
840
|
+
export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
841
841
|
abbr?: string;
|
|
842
842
|
colSpan?: number;
|
|
843
843
|
headers?: string;
|
|
@@ -845,10 +845,10 @@ declare namespace JSXBase {
|
|
|
845
845
|
rowspan?: number | string;
|
|
846
846
|
scope?: string;
|
|
847
847
|
}
|
|
848
|
-
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
848
|
+
export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
849
849
|
dateTime?: string;
|
|
850
850
|
}
|
|
851
|
-
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
851
|
+
export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
852
852
|
default?: boolean;
|
|
853
853
|
kind?: string;
|
|
854
854
|
label?: string;
|
|
@@ -856,14 +856,14 @@ declare namespace JSXBase {
|
|
|
856
856
|
srcLang?: string;
|
|
857
857
|
srclang?: string;
|
|
858
858
|
}
|
|
859
|
-
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
859
|
+
export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
860
860
|
height?: number | string;
|
|
861
861
|
playsInline?: boolean;
|
|
862
862
|
playsinline?: boolean | string;
|
|
863
863
|
poster?: string;
|
|
864
864
|
width?: number | string;
|
|
865
865
|
}
|
|
866
|
-
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
866
|
+
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
867
867
|
innerHTML?: string;
|
|
868
868
|
accessKey?: string;
|
|
869
869
|
autoFocus?: boolean;
|
|
@@ -929,7 +929,7 @@ declare namespace JSXBase {
|
|
|
929
929
|
security?: string;
|
|
930
930
|
unselectable?: boolean;
|
|
931
931
|
}
|
|
932
|
-
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
932
|
+
export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
933
933
|
class?: string | {
|
|
934
934
|
[className: string]: boolean;
|
|
935
935
|
} | SignalRef<string>;
|
|
@@ -1191,13 +1191,15 @@ declare namespace JSXBase {
|
|
|
1191
1191
|
zoomAndPan?: string;
|
|
1192
1192
|
}
|
|
1193
1193
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1194
|
-
interface ToggleEvent extends Event {
|
|
1194
|
+
export interface ToggleEvent extends Event {
|
|
1195
1195
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1196
1196
|
readonly newState: string;
|
|
1197
1197
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1198
1198
|
readonly oldState: string;
|
|
1199
1199
|
}
|
|
1200
|
-
|
|
1200
|
+
type AriaIDLPropertyName = { [K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never; }[keyof ARIAMixin];
|
|
1201
|
+
type JSXAriaProperties = { [K in AriaIDLPropertyName]?: string | boolean | undefined; };
|
|
1202
|
+
export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
|
|
1201
1203
|
slot?: string;
|
|
1202
1204
|
part?: string;
|
|
1203
1205
|
exportparts?: string;
|
|
@@ -1327,8 +1329,8 @@ declare namespace JSXBase {
|
|
|
1327
1329
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1328
1330
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1329
1331
|
[key: `aria-${string}`]: string | boolean | undefined;
|
|
1330
|
-
[key: `aria${string}`]: string | boolean | undefined;
|
|
1331
1332
|
}
|
|
1333
|
+
export {};
|
|
1332
1334
|
}
|
|
1333
1335
|
interface JSXAttributes<T = globalThis.Element> {
|
|
1334
1336
|
key?: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gn as FunctionalComponent, Qn as VNode, Wn as ErrorHandler, Xn as TagTransformer, Yn as ResolutionHandler, Zn as UserBuildConditionals, a as HostElement, l as PropsType, qn as RafCallback, t as ChildType, u as RuntimeRef } from "./index-
|
|
1
|
+
import { Gn as FunctionalComponent, Qn as VNode, Wn as ErrorHandler, Xn as TagTransformer, Yn as ResolutionHandler, Zn as UserBuildConditionals, a as HostElement, l as PropsType, qn as RafCallback, t as ChildType, u as RuntimeRef } from "./index-Cw1NW9FW.mjs";
|
|
2
2
|
//#region src/client/client-build.d.ts
|
|
3
3
|
declare const Build: UserBuildConditionals;
|
|
4
4
|
//#endregion
|
|
@@ -1784,7 +1784,8 @@ interface StencilConfig {
|
|
|
1784
1784
|
* Will generate {@link https://nodejs.org/api/packages.html#packages_exports export map} entry points
|
|
1785
1785
|
* for each component in the build when `true`.
|
|
1786
1786
|
*
|
|
1787
|
-
*
|
|
1787
|
+
* Defaults to `true` for "no-config" projects (no `stencil.config.ts`/`.js` file), and `false`
|
|
1788
|
+
* whenever a config file is present - set this explicitly to opt an existing project in or out.
|
|
1788
1789
|
*/
|
|
1789
1790
|
generateExportMaps?: boolean;
|
|
1790
1791
|
/**
|
|
@@ -3718,6 +3719,10 @@ interface OutputTargetSsr extends OutputTargetBase {
|
|
|
3718
3719
|
*/
|
|
3719
3720
|
cjs?: boolean;
|
|
3720
3721
|
}
|
|
3722
|
+
/**
|
|
3723
|
+
* Compiles the SSR hydrate app to a WASM plugin (via `extism-js`/QuickJS-ng) that can run
|
|
3724
|
+
* outside of Node
|
|
3725
|
+
*/
|
|
3721
3726
|
interface OutputTargetSsrWasm extends OutputTargetBase {
|
|
3722
3727
|
type: 'ssr-wasm';
|
|
3723
3728
|
/** Output directory. @default 'dist/ssr-wasm' */
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, w as Build, x as setPlatformHelpers, y as readTask } from "./client-
|
|
1
|
+
import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, w as Build, x as setPlatformHelpers, y as readTask } from "./client-CdFmjaQa.mjs";
|
|
2
2
|
import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
|
|
3
3
|
//#region src/client/client-decorators.ts
|
|
4
4
|
/**
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import "./client-
|
|
2
|
+
import "./client-CdFmjaQa.mjs";
|
|
3
3
|
import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-Cpp3qc3u.mjs";
|
|
4
4
|
import { $ as catchError, K as normalizePath, X as buildError, Y as TASK_CANCELED_MSG, nt as shouldIgnoreError, rt as isGlob } from "./util-IKfWWLJo.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BUILD as BUILD$1, Env, NAMESPACE } from "@stencil/core/app-data";
|
|
2
2
|
import { globalStyles } from "@stencil/core/app-globals";
|
|
3
|
-
import
|
|
3
|
+
import * as SignalsCore from "@preact/signals-core";
|
|
4
4
|
//#region src/app-data/lazy.ts
|
|
5
5
|
const BUILD = {
|
|
6
6
|
...BUILD$1,
|
|
@@ -1691,6 +1691,13 @@ const isComplexType = (o) => {
|
|
|
1691
1691
|
return o === "object" || o === "function";
|
|
1692
1692
|
};
|
|
1693
1693
|
//#endregion
|
|
1694
|
+
//#region src/runtime/signals-core.ts
|
|
1695
|
+
const getCore = () => globalThis[Symbol.for("stencil.preact-signals-core")] ??= SignalsCore;
|
|
1696
|
+
const effect = (fn, options) => getCore().effect(fn, options);
|
|
1697
|
+
function signal(value, options) {
|
|
1698
|
+
return getCore().signal(value, options);
|
|
1699
|
+
}
|
|
1700
|
+
//#endregion
|
|
1694
1701
|
//#region src/runtime/event-emitter.ts
|
|
1695
1702
|
const createEvent = (ref, name, flags) => {
|
|
1696
1703
|
const elm = getElement(ref);
|
|
@@ -1766,7 +1773,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialR
|
|
|
1766
1773
|
attrMap.get(memberName)?.();
|
|
1767
1774
|
if (!signalAttrDisposers.has(elm)) signalAttrDisposers.set(elm, attrMap);
|
|
1768
1775
|
let prevVal = oldValue;
|
|
1769
|
-
attrMap.set(memberName, effect
|
|
1776
|
+
attrMap.set(memberName, effect(() => {
|
|
1770
1777
|
const curVal = newValue.value;
|
|
1771
1778
|
setAccessor(elm, memberName, prevVal, curVal, isSvg, flags);
|
|
1772
1779
|
prevVal = curVal;
|
|
@@ -1983,16 +1990,33 @@ const signalNodeDisposers = /* @__PURE__ */ new WeakMap();
|
|
|
1983
1990
|
const disposeSignalVNode = (vnode) => {
|
|
1984
1991
|
const elm = vnode.$elm$;
|
|
1985
1992
|
if (elm) {
|
|
1986
|
-
|
|
1987
|
-
if (dispose) {
|
|
1988
|
-
dispose();
|
|
1989
|
-
signalNodeDisposers.delete(elm);
|
|
1990
|
-
}
|
|
1993
|
+
disposeTextSignal(elm);
|
|
1991
1994
|
disposeAllSignalAttrs(elm);
|
|
1992
1995
|
}
|
|
1993
1996
|
vnode.$children$?.forEach(disposeSignalVNode);
|
|
1994
1997
|
};
|
|
1995
1998
|
/**
|
|
1999
|
+
* Tear down a text node's signal subscription, if it has one.
|
|
2000
|
+
* @param textNode the text node to unsubscribe
|
|
2001
|
+
*/
|
|
2002
|
+
const disposeTextSignal = (textNode) => {
|
|
2003
|
+
const dispose = signalNodeDisposers.get(textNode);
|
|
2004
|
+
if (dispose) {
|
|
2005
|
+
dispose();
|
|
2006
|
+
signalNodeDisposers.delete(textNode);
|
|
2007
|
+
}
|
|
2008
|
+
};
|
|
2009
|
+
/**
|
|
2010
|
+
* Subscribe a text node to a signal, keeping its `data` in sync on every change.
|
|
2011
|
+
* @param textNode the text node to keep in sync
|
|
2012
|
+
* @param textSig the signal to subscribe to
|
|
2013
|
+
*/
|
|
2014
|
+
const wireTextSignal = (textNode, textSig) => {
|
|
2015
|
+
signalNodeDisposers.set(textNode, effect(() => {
|
|
2016
|
+
textNode.data = String(textSig.value);
|
|
2017
|
+
}));
|
|
2018
|
+
};
|
|
2019
|
+
/**
|
|
1996
2020
|
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
1997
2021
|
*
|
|
1998
2022
|
* @param oldParentVNode the parent VNode from the previous render
|
|
@@ -2014,13 +2038,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2014
2038
|
if (BUILD.isDev && newVNode.$elm$) consoleDevError(`The JSX ${newVNode.$text$ !== null ? `"${newVNode.$text$}" text` : `"${String(newVNode.$tag$)}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`);
|
|
2015
2039
|
if (BUILD.vdomText && newVNode.$text$ != null) {
|
|
2016
2040
|
elm = newVNode.$elm$ = win.document.createTextNode(newVNode.$text$);
|
|
2017
|
-
if (BUILD.vdomSignals && newVNode.$signal$)
|
|
2018
|
-
const textSig = newVNode.$signal$;
|
|
2019
|
-
const textNode = elm;
|
|
2020
|
-
signalNodeDisposers.set(textNode, effect$1(() => {
|
|
2021
|
-
textNode.data = String(textSig.value);
|
|
2022
|
-
}));
|
|
2023
|
-
}
|
|
2041
|
+
if (BUILD.vdomSignals && newVNode.$signal$) wireTextSignal(elm, newVNode.$signal$);
|
|
2024
2042
|
} else if (BUILD.slotRelocation && newVNode.$flags$ & VNODE_FLAGS.isSlotReference) {
|
|
2025
2043
|
elm = newVNode.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode) : win.document.createTextNode("");
|
|
2026
2044
|
if (typeof newVNode.$attrs$?.slot === "string") elm["s-sa"] = newVNode.$attrs$.slot;
|
|
@@ -2288,7 +2306,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
|
|
|
2288
2306
|
}
|
|
2289
2307
|
if (BUILD.vdomKey && idxInOld >= 0) {
|
|
2290
2308
|
elmToMove = oldCh[idxInOld];
|
|
2291
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) node = createElm(oldCh && oldCh[newStartIdx], newVNode,
|
|
2309
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
2292
2310
|
else {
|
|
2293
2311
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
2294
2312
|
oldCh[idxInOld] = void 0;
|
|
@@ -2381,7 +2399,17 @@ const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
|
2381
2399
|
else if (BUILD.hydrateClientSide && isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) newVNode.$children$ = oldChildren;
|
|
2382
2400
|
if (BUILD.svg && isSvgMode && tag === "svg") isSvgMode = false;
|
|
2383
2401
|
} else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) defaultHolder.parentNode.textContent = text;
|
|
2384
|
-
else if (BUILD.vdomText
|
|
2402
|
+
else if (BUILD.vdomText) {
|
|
2403
|
+
if (BUILD.vdomSignals && newVNode.$signal$) {
|
|
2404
|
+
if (newVNode.$signal$ !== oldVNode.$signal$) {
|
|
2405
|
+
disposeTextSignal(elm);
|
|
2406
|
+
wireTextSignal(elm, newVNode.$signal$);
|
|
2407
|
+
}
|
|
2408
|
+
} else {
|
|
2409
|
+
if (BUILD.vdomSignals && oldVNode.$signal$) disposeTextSignal(elm);
|
|
2410
|
+
if (oldVNode.$text$ !== text) elm.data = text;
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2385
2413
|
};
|
|
2386
2414
|
/**
|
|
2387
2415
|
* Component-global information about nodes which are either currently being
|
|
@@ -3081,8 +3109,7 @@ const initializeSignals = (elm, hostRef, cmpMeta) => {
|
|
|
3081
3109
|
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3082
3110
|
for (const [memberName, [memberFlags]] of Object.entries(cmpMeta.$members$ ?? {})) {
|
|
3083
3111
|
if (!(memberFlags & MEMBER_FLAGS.PropLike)) continue;
|
|
3084
|
-
const
|
|
3085
|
-
const sig = signal(initialVal);
|
|
3112
|
+
const sig = signal(hostRef.$instanceValues$.get(memberName));
|
|
3086
3113
|
hostRef.$signalValues$.set(memberName, sig);
|
|
3087
3114
|
let prevScheduleVal = sig.peek();
|
|
3088
3115
|
disposers.push(effect(() => {
|
|
@@ -3988,12 +4015,13 @@ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector)
|
|
|
3988
4015
|
else return shallowPart.trim();
|
|
3989
4016
|
}).join(", ");
|
|
3990
4017
|
};
|
|
4018
|
+
const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer");
|
|
3991
4019
|
const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
3992
4020
|
return processRules(cssText, (rule) => {
|
|
3993
4021
|
let selector = rule.selector;
|
|
3994
4022
|
let content = rule.content;
|
|
3995
4023
|
if (rule.selector[0] !== "@") selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
3996
|
-
else if (
|
|
4024
|
+
else if (isScopableAtRule(rule.selector)) content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector);
|
|
3997
4025
|
return {
|
|
3998
4026
|
selector: selector.replace(/\s{2,}/g, " ").trim(),
|
|
3999
4027
|
content
|
|
@@ -4085,14 +4113,12 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
|
4085
4113
|
rule.selector = placeholder + rule.selector;
|
|
4086
4114
|
return rule;
|
|
4087
4115
|
};
|
|
4088
|
-
|
|
4116
|
+
const commentSelectors = (input) => processRules(input, (rule) => {
|
|
4089
4117
|
if (rule.selector[0] !== "@") return processCommentedSelector(rule);
|
|
4090
|
-
|
|
4091
|
-
rule.content = processRules(rule.content, processCommentedSelector);
|
|
4092
|
-
return rule;
|
|
4093
|
-
}
|
|
4118
|
+
if (isScopableAtRule(rule.selector)) rule.content = commentSelectors(rule.content);
|
|
4094
4119
|
return rule;
|
|
4095
4120
|
});
|
|
4121
|
+
cssText = commentSelectors(cssText);
|
|
4096
4122
|
}
|
|
4097
4123
|
const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector);
|
|
4098
4124
|
cssText = [scoped.cssText, ...commentsWithHash].join("\n");
|
|
@@ -4389,16 +4415,21 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
4389
4415
|
});
|
|
4390
4416
|
return;
|
|
4391
4417
|
}
|
|
4392
|
-
const
|
|
4418
|
+
const parsedValue = parsePropertyValue(newValue, memberFlags, BUILD.formAssociated && !!(cmpMeta.$flags$ & CMP_FLAGS.formAssociated));
|
|
4419
|
+
const setterSetVal = (val) => {
|
|
4393
4420
|
const currentValue = ref.$lazyInstance$[memberName];
|
|
4394
4421
|
if (!ref.$instanceValues$.get(memberName) && currentValue) ref.$instanceValues$.set(memberName, currentValue);
|
|
4395
|
-
ref.$lazyInstance$[memberName] =
|
|
4422
|
+
ref.$lazyInstance$[memberName] = val;
|
|
4396
4423
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
4397
4424
|
};
|
|
4398
|
-
if (ref.$lazyInstance$) setterSetVal();
|
|
4399
|
-
else
|
|
4400
|
-
|
|
4401
|
-
|
|
4425
|
+
if (ref.$lazyInstance$) setterSetVal(parsedValue);
|
|
4426
|
+
else {
|
|
4427
|
+
ref.$instanceValues$.set(memberName, parsedValue);
|
|
4428
|
+
ref.$fetchedCbList$.push(() => {
|
|
4429
|
+
const pendingValue = ref.$instanceValues$.get(memberName);
|
|
4430
|
+
if (ref.$lazyInstance$[memberName] !== pendingValue) setterSetVal(pendingValue);
|
|
4431
|
+
});
|
|
4432
|
+
}
|
|
4402
4433
|
}
|
|
4403
4434
|
} });
|
|
4404
4435
|
} else if (BUILD.lazyLoad && BUILD.method && flags & PROXY_FLAGS.isElementConstructor && memberFlags & MEMBER_FLAGS.Method) Object.defineProperty(prototype, memberName, { value(...args) {
|
|
@@ -4451,8 +4482,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
4451
4482
|
if (BUILD.reflect && propMemberFlags & MEMBER_FLAGS.ReflectAttr && propMemberFlags & MEMBER_FLAGS.Any && !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) return;
|
|
4452
4483
|
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
4453
4484
|
if (isBooleanTarget) newValue = !(newValue === null || newValue === "false");
|
|
4485
|
+
const currentValue = BUILD.lazyLoad && propMemberFlags & MEMBER_FLAGS.Setter ? hostRef.$instanceValues$.get(propName) : this[propName];
|
|
4454
4486
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
4455
|
-
if (!isSpuriousBooleanRemoval && newValue !=
|
|
4487
|
+
if (!isSpuriousBooleanRemoval && newValue != currentValue && (!propDesc.get || !!propDesc.set)) this[propName] = newValue;
|
|
4456
4488
|
});
|
|
4457
4489
|
};
|
|
4458
4490
|
Cstr.observedAttributes = Array.from(/* @__PURE__ */ new Set([...Object.keys(cmpMeta.$watchers$ ?? {}), ...members.filter(([_, m]) => m[0] & MEMBER_FLAGS.HasAttribute).map(([propName, m]) => {
|