@stencil/core 5.0.0-beta.10 → 5.0.0-beta.12
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-Db2rdxUM.mjs → client-CdFmjaQa.mjs} +6 -2
- package/dist/compiler/browser.js +214 -37
- 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-PoywOlbq.mjs → compiler-BjKDj129.mjs} +293 -46
- package/dist/declarations/stencil-public-compiler.d.ts +4 -0
- 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-BAP9T4CB.d.mts → index-CKnzMkZC.d.mts} +1 -1
- package/dist/{index-BvF31nqP.d.mts → index-Cw1NW9FW.d.mts} +4 -0
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-BKtLn2R9.mjs → node-HKfDhPR3.mjs} +1 -1
- package/dist/runtime/client/lazy.js +25 -13
- package/dist/runtime/client/runtime.d.ts +57 -55
- package/dist/runtime/client/runtime.js +25 -13
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +25 -13
- package/dist/runtime/server/index.d.mts +2 -1
- package/dist/runtime/server/index.mjs +45 -26
- package/dist/runtime/server/runner.mjs +43 -10
- 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 +4 -0
- package/dist/testing/index.mjs +26 -14
- 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
|
|
@@ -3719,6 +3719,10 @@ interface OutputTargetSsr extends OutputTargetBase {
|
|
|
3719
3719
|
*/
|
|
3720
3720
|
cjs?: boolean;
|
|
3721
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
|
+
*/
|
|
3722
3726
|
interface OutputTargetSsrWasm extends OutputTargetBase {
|
|
3723
3727
|
type: 'ssr-wasm';
|
|
3724
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;
|
|
@@ -2005,7 +2012,7 @@ const disposeTextSignal = (textNode) => {
|
|
|
2005
2012
|
* @param textSig the signal to subscribe to
|
|
2006
2013
|
*/
|
|
2007
2014
|
const wireTextSignal = (textNode, textSig) => {
|
|
2008
|
-
signalNodeDisposers.set(textNode, effect
|
|
2015
|
+
signalNodeDisposers.set(textNode, effect(() => {
|
|
2009
2016
|
textNode.data = String(textSig.value);
|
|
2010
2017
|
}));
|
|
2011
2018
|
};
|
|
@@ -2299,7 +2306,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
|
|
|
2299
2306
|
}
|
|
2300
2307
|
if (BUILD.vdomKey && idxInOld >= 0) {
|
|
2301
2308
|
elmToMove = oldCh[idxInOld];
|
|
2302
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) node = createElm(oldCh && oldCh[newStartIdx], newVNode,
|
|
2309
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
2303
2310
|
else {
|
|
2304
2311
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
2305
2312
|
oldCh[idxInOld] = void 0;
|
|
@@ -3102,8 +3109,7 @@ const initializeSignals = (elm, hostRef, cmpMeta) => {
|
|
|
3102
3109
|
const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
3103
3110
|
for (const [memberName, [memberFlags]] of Object.entries(cmpMeta.$members$ ?? {})) {
|
|
3104
3111
|
if (!(memberFlags & MEMBER_FLAGS.PropLike)) continue;
|
|
3105
|
-
const
|
|
3106
|
-
const sig = signal(initialVal);
|
|
3112
|
+
const sig = signal(hostRef.$instanceValues$.get(memberName));
|
|
3107
3113
|
hostRef.$signalValues$.set(memberName, sig);
|
|
3108
3114
|
let prevScheduleVal = sig.peek();
|
|
3109
3115
|
disposers.push(effect(() => {
|
|
@@ -4409,16 +4415,21 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
4409
4415
|
});
|
|
4410
4416
|
return;
|
|
4411
4417
|
}
|
|
4412
|
-
const
|
|
4418
|
+
const parsedValue = parsePropertyValue(newValue, memberFlags, BUILD.formAssociated && !!(cmpMeta.$flags$ & CMP_FLAGS.formAssociated));
|
|
4419
|
+
const setterSetVal = (val) => {
|
|
4413
4420
|
const currentValue = ref.$lazyInstance$[memberName];
|
|
4414
4421
|
if (!ref.$instanceValues$.get(memberName) && currentValue) ref.$instanceValues$.set(memberName, currentValue);
|
|
4415
|
-
ref.$lazyInstance$[memberName] =
|
|
4422
|
+
ref.$lazyInstance$[memberName] = val;
|
|
4416
4423
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
4417
4424
|
};
|
|
4418
|
-
if (ref.$lazyInstance$) setterSetVal();
|
|
4419
|
-
else
|
|
4420
|
-
|
|
4421
|
-
|
|
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
|
+
}
|
|
4422
4433
|
}
|
|
4423
4434
|
} });
|
|
4424
4435
|
} else if (BUILD.lazyLoad && BUILD.method && flags & PROXY_FLAGS.isElementConstructor && memberFlags & MEMBER_FLAGS.Method) Object.defineProperty(prototype, memberName, { value(...args) {
|
|
@@ -4471,8 +4482,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
4471
4482
|
if (BUILD.reflect && propMemberFlags & MEMBER_FLAGS.ReflectAttr && propMemberFlags & MEMBER_FLAGS.Any && !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) return;
|
|
4472
4483
|
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
4473
4484
|
if (isBooleanTarget) newValue = !(newValue === null || newValue === "false");
|
|
4485
|
+
const currentValue = BUILD.lazyLoad && propMemberFlags & MEMBER_FLAGS.Setter ? hostRef.$instanceValues$.get(propName) : this[propName];
|
|
4474
4486
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
4475
|
-
if (!isSpuriousBooleanRemoval && newValue !=
|
|
4487
|
+
if (!isSpuriousBooleanRemoval && newValue != currentValue && (!propDesc.get || !!propDesc.set)) this[propName] = newValue;
|
|
4476
4488
|
});
|
|
4477
4489
|
};
|
|
4478
4490
|
Cstr.observedAttributes = Array.from(/* @__PURE__ */ new Set([...Object.keys(cmpMeta.$watchers$ ?? {}), ...members.filter(([_, m]) => m[0] & MEMBER_FLAGS.HasAttribute).map(([propName, m]) => {
|