@stencil/core 5.0.0-beta.9 → 5.0.0-rc.0
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/app-data/index.js +1 -0
- package/dist/{client-BRu0GtRn.mjs → client-ClM4H9-P.mjs} +204 -76
- package/dist/compiler/browser.d.ts +120 -81
- package/dist/compiler/browser.js +964 -402
- package/dist/compiler/index.d.mts +110 -2
- package/dist/compiler/index.mjs +3 -3
- package/dist/compiler/utils/index.d.mts +2 -2
- package/dist/compiler/utils/index.mjs +3 -3
- package/dist/{compiler-wLrjuSOK.mjs → compiler-DFanjq9z.mjs} +5300 -3005
- package/dist/declarations/stencil-public-compiler.d.ts +178 -133
- package/dist/declarations/stencil-public-docs.d.ts +23 -0
- package/dist/declarations/stencil-public-runtime.d.ts +81 -59
- package/dist/{index-BvF31nqP.d.mts → index-DvfFOkiJ.d.mts} +220 -133
- package/dist/{index-BXAcVN2j.d.ts → index-XQHZl0MW.d.ts} +70 -57
- package/dist/{index-BAP9T4CB.d.mts → index-aBMJC5F9.d.mts} +6 -2
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +6 -0
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-75gQKkFz.mjs → node-DJP8JuAS.mjs} +42 -48
- package/dist/runtime/client/lazy.js +522 -262
- package/dist/runtime/client/runtime.d.ts +100 -68
- package/dist/runtime/client/runtime.js +522 -262
- package/dist/runtime/index.d.ts +6 -6
- package/dist/runtime/index.js +521 -261
- package/dist/runtime/server/index.d.mts +36 -12
- package/dist/runtime/server/index.mjs +635 -304
- package/dist/runtime/server/runner.d.mts +49 -6
- package/dist/runtime/server/runner.mjs +385 -87
- package/dist/signals/index.d.ts +11 -2
- package/dist/signals/index.js +15 -35
- 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 +152 -124
- package/dist/testing/index.mjs +535 -269
- package/dist/{util-IKfWWLJo.mjs → util-C-H1H84W.mjs} +8 -1
- package/dist/{validation-DAdGTrys.mjs → validation-ByYYKvnS.mjs} +37 -3
- package/package.json +8 -4
|
@@ -239,7 +239,7 @@ interface VNode {
|
|
|
239
239
|
$signal$?: any;
|
|
240
240
|
}
|
|
241
241
|
declare namespace JSXBase {
|
|
242
|
-
interface IntrinsicElements {
|
|
242
|
+
export interface IntrinsicElements {
|
|
243
243
|
slot: JSXBase.SlotAttributes<HTMLSlotElement>;
|
|
244
244
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
245
245
|
abbr: JSXBase.HTMLAttributes;
|
|
@@ -410,12 +410,12 @@ declare namespace JSXBase {
|
|
|
410
410
|
use: JSXBase.SVGAttributes;
|
|
411
411
|
view: JSXBase.SVGAttributes;
|
|
412
412
|
}
|
|
413
|
-
interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
413
|
+
export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
414
414
|
name?: string;
|
|
415
415
|
slot?: string;
|
|
416
416
|
onSlotchange?: (event: Event$1) => void;
|
|
417
417
|
}
|
|
418
|
-
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
418
|
+
export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
419
419
|
download?: any;
|
|
420
420
|
href?: string;
|
|
421
421
|
hrefLang?: string;
|
|
@@ -426,8 +426,8 @@ declare namespace JSXBase {
|
|
|
426
426
|
target?: string;
|
|
427
427
|
referrerPolicy?: ReferrerPolicy;
|
|
428
428
|
}
|
|
429
|
-
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
|
|
430
|
-
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
429
|
+
export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
|
|
430
|
+
export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
431
431
|
alt?: string;
|
|
432
432
|
coords?: string;
|
|
433
433
|
download?: any;
|
|
@@ -439,14 +439,14 @@ declare namespace JSXBase {
|
|
|
439
439
|
shape?: string;
|
|
440
440
|
target?: string;
|
|
441
441
|
}
|
|
442
|
-
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
442
|
+
export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
443
443
|
href?: string;
|
|
444
444
|
target?: string;
|
|
445
445
|
}
|
|
446
|
-
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
446
|
+
export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
447
447
|
cite?: string;
|
|
448
448
|
}
|
|
449
|
-
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
449
|
+
export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
450
450
|
disabled?: boolean;
|
|
451
451
|
form?: string;
|
|
452
452
|
formAction?: string;
|
|
@@ -469,45 +469,45 @@ declare namespace JSXBase {
|
|
|
469
469
|
commandFor?: string;
|
|
470
470
|
commandfor?: string;
|
|
471
471
|
}
|
|
472
|
-
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
472
|
+
export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
473
473
|
height?: number | string;
|
|
474
474
|
width?: number | string;
|
|
475
475
|
}
|
|
476
|
-
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
476
|
+
export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
477
477
|
span?: number;
|
|
478
478
|
}
|
|
479
|
-
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
479
|
+
export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
480
480
|
span?: number;
|
|
481
481
|
}
|
|
482
|
-
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
482
|
+
export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
483
483
|
open?: boolean;
|
|
484
484
|
name?: string;
|
|
485
485
|
onToggle?: (event: ToggleEvent) => void;
|
|
486
486
|
}
|
|
487
|
-
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
487
|
+
export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
488
488
|
cite?: string;
|
|
489
489
|
dateTime?: string;
|
|
490
490
|
datetime?: string;
|
|
491
491
|
}
|
|
492
|
-
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
492
|
+
export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
493
493
|
onCancel?: (event: Event$1) => void;
|
|
494
494
|
onClose?: (event: Event$1) => void;
|
|
495
495
|
open?: boolean;
|
|
496
496
|
returnValue?: string;
|
|
497
497
|
closedby?: 'any' | 'closerequest' | 'none';
|
|
498
498
|
}
|
|
499
|
-
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
499
|
+
export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
500
500
|
height?: number | string;
|
|
501
501
|
src?: string;
|
|
502
502
|
type?: string;
|
|
503
503
|
width?: number | string;
|
|
504
504
|
}
|
|
505
|
-
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
505
|
+
export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
506
506
|
disabled?: boolean;
|
|
507
507
|
form?: string;
|
|
508
508
|
name?: string;
|
|
509
509
|
}
|
|
510
|
-
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
510
|
+
export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
511
511
|
acceptCharset?: string;
|
|
512
512
|
acceptcharset?: string;
|
|
513
513
|
action?: string;
|
|
@@ -521,10 +521,10 @@ declare namespace JSXBase {
|
|
|
521
521
|
novalidate?: boolean | string;
|
|
522
522
|
target?: string;
|
|
523
523
|
}
|
|
524
|
-
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
524
|
+
export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
525
525
|
manifest?: string;
|
|
526
526
|
}
|
|
527
|
-
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
527
|
+
export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
528
528
|
allow?: string;
|
|
529
529
|
allowFullScreen?: boolean;
|
|
530
530
|
allowfullScreen?: string | boolean;
|
|
@@ -551,7 +551,7 @@ declare namespace JSXBase {
|
|
|
551
551
|
srcdoc?: string;
|
|
552
552
|
width?: number | string;
|
|
553
553
|
}
|
|
554
|
-
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
554
|
+
export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
555
555
|
alt?: string;
|
|
556
556
|
crossOrigin?: string;
|
|
557
557
|
crossorigin?: string;
|
|
@@ -570,12 +570,12 @@ declare namespace JSXBase {
|
|
|
570
570
|
usemap?: string;
|
|
571
571
|
width?: number | string;
|
|
572
572
|
}
|
|
573
|
-
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
573
|
+
export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
574
574
|
cite?: string;
|
|
575
575
|
dateTime?: string;
|
|
576
576
|
datetime?: string;
|
|
577
577
|
}
|
|
578
|
-
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
578
|
+
export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
579
579
|
accept?: string;
|
|
580
580
|
allowdirs?: boolean;
|
|
581
581
|
alt?: string;
|
|
@@ -638,7 +638,7 @@ declare namespace JSXBase {
|
|
|
638
638
|
popoverTargetElement?: globalThis.Element | null;
|
|
639
639
|
popoverTarget?: string;
|
|
640
640
|
}
|
|
641
|
-
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
641
|
+
export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
642
642
|
challenge?: string;
|
|
643
643
|
disabled?: boolean;
|
|
644
644
|
form?: string;
|
|
@@ -648,14 +648,14 @@ declare namespace JSXBase {
|
|
|
648
648
|
keyparams?: string;
|
|
649
649
|
name?: string;
|
|
650
650
|
}
|
|
651
|
-
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
651
|
+
export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
652
652
|
form?: string;
|
|
653
653
|
htmlFor?: string;
|
|
654
654
|
}
|
|
655
|
-
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
655
|
+
export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
656
656
|
value?: string | string[] | number;
|
|
657
657
|
}
|
|
658
|
-
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
658
|
+
export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
659
659
|
as?: string;
|
|
660
660
|
fetchPriority?: 'high' | 'low' | 'auto';
|
|
661
661
|
fetchpriority?: 'high' | 'low' | 'auto';
|
|
@@ -669,13 +669,13 @@ declare namespace JSXBase {
|
|
|
669
669
|
sizes?: string;
|
|
670
670
|
type?: string;
|
|
671
671
|
}
|
|
672
|
-
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
672
|
+
export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
673
673
|
name?: string;
|
|
674
674
|
}
|
|
675
|
-
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
675
|
+
export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
676
676
|
type?: string;
|
|
677
677
|
}
|
|
678
|
-
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
678
|
+
export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
679
679
|
autoPlay?: boolean;
|
|
680
680
|
autoplay?: boolean | string;
|
|
681
681
|
controls?: boolean;
|
|
@@ -715,7 +715,7 @@ declare namespace JSXBase {
|
|
|
715
715
|
onVolumeChange?: (event: Event$1) => void;
|
|
716
716
|
onWaiting?: (event: Event$1) => void;
|
|
717
717
|
}
|
|
718
|
-
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
718
|
+
export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
719
719
|
charSet?: string;
|
|
720
720
|
charset?: string;
|
|
721
721
|
content?: string;
|
|
@@ -723,7 +723,7 @@ declare namespace JSXBase {
|
|
|
723
723
|
httpequiv?: string;
|
|
724
724
|
name?: string;
|
|
725
725
|
}
|
|
726
|
-
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
726
|
+
export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
727
727
|
form?: string;
|
|
728
728
|
high?: number;
|
|
729
729
|
low?: number;
|
|
@@ -732,10 +732,10 @@ declare namespace JSXBase {
|
|
|
732
732
|
optimum?: number;
|
|
733
733
|
value?: string | string[] | number;
|
|
734
734
|
}
|
|
735
|
-
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
735
|
+
export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
736
736
|
cite?: string;
|
|
737
737
|
}
|
|
738
|
-
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
738
|
+
export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
739
739
|
classID?: string;
|
|
740
740
|
classid?: string;
|
|
741
741
|
data?: string;
|
|
@@ -748,34 +748,34 @@ declare namespace JSXBase {
|
|
|
748
748
|
width?: number | string;
|
|
749
749
|
wmode?: string;
|
|
750
750
|
}
|
|
751
|
-
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
751
|
+
export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
752
752
|
reversed?: boolean;
|
|
753
753
|
start?: number;
|
|
754
754
|
}
|
|
755
|
-
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
755
|
+
export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
756
756
|
disabled?: boolean;
|
|
757
757
|
label?: string;
|
|
758
758
|
}
|
|
759
|
-
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
759
|
+
export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
760
760
|
disabled?: boolean;
|
|
761
761
|
label?: string;
|
|
762
762
|
selected?: boolean;
|
|
763
763
|
value?: string | string[] | number;
|
|
764
764
|
}
|
|
765
|
-
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
765
|
+
export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
766
766
|
form?: string;
|
|
767
767
|
htmlFor?: string;
|
|
768
768
|
name?: string;
|
|
769
769
|
}
|
|
770
|
-
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
770
|
+
export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
771
771
|
name?: string;
|
|
772
772
|
value?: string | string[] | number;
|
|
773
773
|
}
|
|
774
|
-
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
774
|
+
export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
775
775
|
max?: number | string;
|
|
776
776
|
value?: string | string[] | number;
|
|
777
777
|
}
|
|
778
|
-
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
778
|
+
export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
779
779
|
async?: boolean;
|
|
780
780
|
charSet?: string;
|
|
781
781
|
charset?: string;
|
|
@@ -790,7 +790,7 @@ declare namespace JSXBase {
|
|
|
790
790
|
src?: string;
|
|
791
791
|
type?: string;
|
|
792
792
|
}
|
|
793
|
-
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
793
|
+
export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
794
794
|
disabled?: boolean;
|
|
795
795
|
form?: string;
|
|
796
796
|
multiple?: boolean;
|
|
@@ -800,7 +800,7 @@ declare namespace JSXBase {
|
|
|
800
800
|
autoComplete?: string;
|
|
801
801
|
autocomplete?: string;
|
|
802
802
|
}
|
|
803
|
-
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
803
|
+
export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
804
804
|
height?: number;
|
|
805
805
|
media?: string;
|
|
806
806
|
sizes?: string;
|
|
@@ -809,20 +809,20 @@ declare namespace JSXBase {
|
|
|
809
809
|
type?: string;
|
|
810
810
|
width?: number;
|
|
811
811
|
}
|
|
812
|
-
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
812
|
+
export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
813
813
|
media?: string;
|
|
814
814
|
nonce?: string;
|
|
815
815
|
scoped?: boolean;
|
|
816
816
|
type?: string;
|
|
817
817
|
}
|
|
818
|
-
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
818
|
+
export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
819
819
|
cellPadding?: number | string;
|
|
820
820
|
cellpadding?: number | string;
|
|
821
821
|
cellSpacing?: number | string;
|
|
822
822
|
cellspacing?: number | string;
|
|
823
823
|
summary?: string;
|
|
824
824
|
}
|
|
825
|
-
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
825
|
+
export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
826
826
|
autoComplete?: string;
|
|
827
827
|
autocomplete?: string;
|
|
828
828
|
cols?: number;
|
|
@@ -843,12 +843,12 @@ declare namespace JSXBase {
|
|
|
843
843
|
value?: string | string[] | number;
|
|
844
844
|
wrap?: string;
|
|
845
845
|
}
|
|
846
|
-
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
846
|
+
export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
847
847
|
colSpan?: number;
|
|
848
848
|
headers?: string;
|
|
849
849
|
rowSpan?: number;
|
|
850
850
|
}
|
|
851
|
-
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
851
|
+
export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
852
852
|
abbr?: string;
|
|
853
853
|
colSpan?: number;
|
|
854
854
|
headers?: string;
|
|
@@ -856,10 +856,10 @@ declare namespace JSXBase {
|
|
|
856
856
|
rowspan?: number | string;
|
|
857
857
|
scope?: string;
|
|
858
858
|
}
|
|
859
|
-
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
859
|
+
export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
860
860
|
dateTime?: string;
|
|
861
861
|
}
|
|
862
|
-
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
862
|
+
export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
863
863
|
default?: boolean;
|
|
864
864
|
kind?: string;
|
|
865
865
|
label?: string;
|
|
@@ -867,14 +867,14 @@ declare namespace JSXBase {
|
|
|
867
867
|
srcLang?: string;
|
|
868
868
|
srclang?: string;
|
|
869
869
|
}
|
|
870
|
-
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
870
|
+
export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
871
871
|
height?: number | string;
|
|
872
872
|
playsInline?: boolean;
|
|
873
873
|
playsinline?: boolean | string;
|
|
874
874
|
poster?: string;
|
|
875
875
|
width?: number | string;
|
|
876
876
|
}
|
|
877
|
-
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
877
|
+
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
878
878
|
innerHTML?: string;
|
|
879
879
|
accessKey?: string;
|
|
880
880
|
autoFocus?: boolean;
|
|
@@ -888,7 +888,7 @@ declare namespace JSXBase {
|
|
|
888
888
|
contextmenu?: string;
|
|
889
889
|
dir?: string;
|
|
890
890
|
draggable?: boolean;
|
|
891
|
-
hidden?: boolean;
|
|
891
|
+
hidden?: boolean | 'until-found';
|
|
892
892
|
id?: string;
|
|
893
893
|
inert?: boolean;
|
|
894
894
|
lang?: string;
|
|
@@ -940,7 +940,7 @@ declare namespace JSXBase {
|
|
|
940
940
|
security?: string;
|
|
941
941
|
unselectable?: boolean;
|
|
942
942
|
}
|
|
943
|
-
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
943
|
+
export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
944
944
|
class?: string | {
|
|
945
945
|
[className: string]: boolean;
|
|
946
946
|
} | SignalRef<string>;
|
|
@@ -1202,13 +1202,15 @@ declare namespace JSXBase {
|
|
|
1202
1202
|
zoomAndPan?: string;
|
|
1203
1203
|
}
|
|
1204
1204
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1205
|
-
interface ToggleEvent extends Event$1 {
|
|
1205
|
+
export interface ToggleEvent extends Event$1 {
|
|
1206
1206
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1207
1207
|
readonly newState: string;
|
|
1208
1208
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1209
1209
|
readonly oldState: string;
|
|
1210
1210
|
}
|
|
1211
|
-
|
|
1211
|
+
type AriaIDLPropertyName = { [K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never; }[keyof ARIAMixin];
|
|
1212
|
+
type JSXAriaProperties = { [K in AriaIDLPropertyName]?: string | boolean | undefined; };
|
|
1213
|
+
export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
|
|
1212
1214
|
slot?: string;
|
|
1213
1215
|
part?: string;
|
|
1214
1216
|
exportparts?: string;
|
|
@@ -1338,13 +1340,15 @@ declare namespace JSXBase {
|
|
|
1338
1340
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1339
1341
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1340
1342
|
[key: `aria-${string}`]: string | boolean | undefined;
|
|
1341
|
-
[key: `aria${string}`]: string | boolean | undefined;
|
|
1342
1343
|
}
|
|
1344
|
+
export {};
|
|
1343
1345
|
}
|
|
1344
1346
|
interface JSXAttributes<T = globalThis.Element> {
|
|
1345
1347
|
key?: string | number;
|
|
1346
1348
|
ref?: (elm?: T) => void;
|
|
1347
1349
|
children?: any;
|
|
1350
|
+
[key: `attr:${string}`]: any;
|
|
1351
|
+
[key: `prop:${string}`]: any;
|
|
1348
1352
|
}
|
|
1349
1353
|
interface CustomElementsDefineOptions {
|
|
1350
1354
|
exclude?: string[];
|
|
@@ -1409,6 +1413,16 @@ interface SsrDocumentOptions {
|
|
|
1409
1413
|
* Sets `document.referrer`
|
|
1410
1414
|
*/
|
|
1411
1415
|
referrer?: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* Render into one long-lived mock window, reset between renders, instead of creating a new one
|
|
1418
|
+
* for every call. Skips evaluating the whole SSR platform (runtime and every component)
|
|
1419
|
+
* on each render: most of the cost of rendering a small fragment, and a good part of a whole page.
|
|
1420
|
+
*
|
|
1421
|
+
* Applies to HTML string input (not a `Document`). One window per distinct `serializeShadowRoot` value,
|
|
1422
|
+
* and renders sharing a window run one at a time.
|
|
1423
|
+
* Defaults to `false`, except in the `ssr-wasm` output target, where it defaults to `true`.
|
|
1424
|
+
*/
|
|
1425
|
+
reuseWindow?: boolean;
|
|
1412
1426
|
/**
|
|
1413
1427
|
* Removes every `<script>` element found in the `document`. Defaults to `false`.
|
|
1414
1428
|
*/
|
|
@@ -1489,7 +1503,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
1489
1503
|
* Note that this is "approximate", in that HTML may often not be able
|
|
1490
1504
|
* to be split at an exact line width. Additionally, new lines created
|
|
1491
1505
|
* is where HTML naturally already has whitespace, such as before an
|
|
1492
|
-
* attribute or spaces between words. Defaults to `100
|
|
1506
|
+
* attribute or spaces between words. Defaults to no wrapping (`100` when prerendering).
|
|
1493
1507
|
*/
|
|
1494
1508
|
approximateLineWidth?: number;
|
|
1495
1509
|
/**
|
|
@@ -1507,12 +1521,12 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
1507
1521
|
prettyHtml?: boolean;
|
|
1508
1522
|
/**
|
|
1509
1523
|
* Remove quotes from attribute values when possible.
|
|
1510
|
-
* Defaults to `true
|
|
1524
|
+
* Defaults to `false` (`true` when prerendering).
|
|
1511
1525
|
*/
|
|
1512
1526
|
removeAttributeQuotes?: boolean;
|
|
1513
1527
|
/**
|
|
1514
1528
|
* Remove the `=""` from standardized `boolean` attributes,
|
|
1515
|
-
* such as `hidden` or `checked`. Defaults to `true
|
|
1529
|
+
* such as `hidden` or `checked`. Defaults to `false` (`true` when prerendering).
|
|
1516
1530
|
*/
|
|
1517
1531
|
removeBooleanAttributeQuotes?: boolean;
|
|
1518
1532
|
/**
|
|
@@ -1521,7 +1535,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
|
1521
1535
|
*/
|
|
1522
1536
|
removeEmptyAttributes?: boolean;
|
|
1523
1537
|
/**
|
|
1524
|
-
* Remove HTML comments. Defaults to `true
|
|
1538
|
+
* Remove HTML comments. Defaults to `false` (`true` when prerendering).
|
|
1525
1539
|
*/
|
|
1526
1540
|
removeHtmlComments?: boolean;
|
|
1527
1541
|
/**
|
|
@@ -1540,6 +1554,12 @@ interface SsrFactoryOptions extends SerializeDocumentOptions {
|
|
|
1540
1554
|
serializeToHtml: boolean;
|
|
1541
1555
|
destroyWindow: boolean;
|
|
1542
1556
|
destroyDocument: boolean;
|
|
1557
|
+
/**
|
|
1558
|
+
* A canonical key for `serializeShadowRoot`, set by the renderer. Renders with the same key
|
|
1559
|
+
* render every component the same way, so they can share an SSR platform.
|
|
1560
|
+
* @internal
|
|
1561
|
+
*/
|
|
1562
|
+
serializeShadowRootKey?: string;
|
|
1543
1563
|
}
|
|
1544
1564
|
//#endregion
|
|
1545
1565
|
//#region src/declarations/stencil-private.d.ts
|
|
@@ -1607,6 +1627,8 @@ interface HostElement extends HTMLElement {
|
|
|
1607
1627
|
host?: Element;
|
|
1608
1628
|
forceUpdate?: () => void;
|
|
1609
1629
|
__s_ghr?: () => HostRef;
|
|
1630
|
+
/** attaches the component's shadow root if it needs one and doesn't have one yet */
|
|
1631
|
+
__attachShadow?: () => void;
|
|
1610
1632
|
/**
|
|
1611
1633
|
* Unique stencil id for this element
|
|
1612
1634
|
*/
|
|
@@ -1909,7 +1931,9 @@ ComponentConstructorChangeHandlers?,
|
|
|
1909
1931
|
/** serializers */
|
|
1910
1932
|
ComponentConstructorChangeHandlers?,
|
|
1911
1933
|
/** deserializers */
|
|
1912
|
-
ComponentConstructorChangeHandlers
|
|
1934
|
+
ComponentConstructorChangeHandlers?,
|
|
1935
|
+
/** shadow root reference target */
|
|
1936
|
+
string?];
|
|
1913
1937
|
/**
|
|
1914
1938
|
* Runtime metadata for a Stencil component
|
|
1915
1939
|
*/
|
|
@@ -1956,6 +1980,10 @@ interface ComponentRuntimeMeta {
|
|
|
1956
1980
|
* Information about which class members have attribute > prop deserializers attached on the component.
|
|
1957
1981
|
*/
|
|
1958
1982
|
$deserializers$?: ComponentConstructorChangeHandlers;
|
|
1983
|
+
/**
|
|
1984
|
+
* `id` of the element within the shadow root that IDREFs targeting the host resolve to.
|
|
1985
|
+
*/
|
|
1986
|
+
$referenceTarget$?: string;
|
|
1959
1987
|
}
|
|
1960
1988
|
/**
|
|
1961
1989
|
* A mapping of the names of members on the component to some runtime-specific
|
|
@@ -2140,6 +2168,10 @@ interface VNodeProdData {
|
|
|
2140
2168
|
}
|
|
2141
2169
|
//#endregion
|
|
2142
2170
|
//#region src/client/client-build.d.ts
|
|
2171
|
+
/**
|
|
2172
|
+
* `isDev` / `isTesting` are getters, not copies: the transpile path (e.g. `@stencil/unplugin`)
|
|
2173
|
+
* sets `BUILD.*` overrides from each component module, which runs after this module is evaluated.
|
|
2174
|
+
*/
|
|
2143
2175
|
declare const Build: UserBuildConditionals;
|
|
2144
2176
|
//#endregion
|
|
2145
2177
|
//#region src/client/client-decorators.d.ts
|
|
@@ -2275,8 +2307,8 @@ declare const setErrorHandler: (handler: ErrorHandler) => ErrorHandler;
|
|
|
2275
2307
|
//#endregion
|
|
2276
2308
|
//#region src/client/client-style.d.ts
|
|
2277
2309
|
declare const styles: StyleMap;
|
|
2278
|
-
declare const
|
|
2279
|
-
declare const
|
|
2310
|
+
declare const modeResolver: ResolutionHandler[];
|
|
2311
|
+
declare const setScopedSSR: (_opts: SsrFactoryOptions) => void;
|
|
2280
2312
|
declare const needsScopedSSR: () => boolean;
|
|
2281
2313
|
//#endregion
|
|
2282
2314
|
//#region src/client/client-task-queue.d.ts
|
|
@@ -2382,13 +2414,13 @@ type Ctor<T = {}> = new (...args: any[]) => T;
|
|
|
2382
2414
|
declare function Mixin(...mixins: ((base: Ctor) => Ctor)[]): Ctor<{}>;
|
|
2383
2415
|
//#endregion
|
|
2384
2416
|
//#region src/runtime/mode.d.ts
|
|
2385
|
-
declare const setMode: (handler: ResolutionHandler) =>
|
|
2417
|
+
declare const setMode: (handler: ResolutionHandler) => void;
|
|
2386
2418
|
declare const getMode: (ref: RuntimeRef) => string;
|
|
2387
2419
|
//#endregion
|
|
2388
2420
|
//#region src/runtime/nonce.d.ts
|
|
2389
2421
|
/**
|
|
2390
2422
|
* Assigns the given value to the nonce property on the runtime platform object.
|
|
2391
|
-
* During runtime, this value is used to set the nonce attribute on all dynamically created
|
|
2423
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created style tags.
|
|
2392
2424
|
* @param nonce The value to be assigned to the platform nonce property.
|
|
2393
2425
|
* @returns void
|
|
2394
2426
|
*/
|
|
@@ -2440,10 +2472,9 @@ declare const normalizeWatchers: (raw: ComponentConstructorChangeHandlers | unde
|
|
|
2440
2472
|
*
|
|
2441
2473
|
* @param propValue the new value to coerce to some type
|
|
2442
2474
|
* @param propType the type of the prop, expressed as a binary number
|
|
2443
|
-
* @param isFormAssociated whether the component is form-associated (optional)
|
|
2444
2475
|
* @returns the parsed/coerced value
|
|
2445
2476
|
*/
|
|
2446
|
-
declare const parsePropertyValue: (propValue: unknown, propType: number
|
|
2477
|
+
declare const parsePropertyValue: (propValue: unknown, propType: number) => any;
|
|
2447
2478
|
//#endregion
|
|
2448
2479
|
//#region src/runtime/platform-options.d.ts
|
|
2449
2480
|
interface SetPlatformOptions {
|
|
@@ -2504,6 +2535,7 @@ declare function render(vnode: VNode, container: Element): void;
|
|
|
2504
2535
|
declare const HYDRATED_STYLE_ID = "sty-id";
|
|
2505
2536
|
//#endregion
|
|
2506
2537
|
//#region src/runtime/set-value.d.ts
|
|
2538
|
+
declare const applySerializers: (hostRef: HostRef, cmpMeta: ComponentRuntimeMeta, propName: string, val: any, instance: any) => void;
|
|
2507
2539
|
declare const getValue: (ref: RuntimeRef, propName: string) => any;
|
|
2508
2540
|
declare const setValue: (ref: RuntimeRef, propName: string, newVal: any, cmpMeta: ComponentRuntimeMeta) => void;
|
|
2509
2541
|
//#endregion
|
|
@@ -2540,4 +2572,4 @@ declare const jsxs: typeof jsx;
|
|
|
2540
2572
|
*/
|
|
2541
2573
|
declare const jsxDEV: typeof jsx;
|
|
2542
2574
|
//#endregion
|
|
2543
|
-
export { AttachInternals, AttrDeserialize, BUILD, Build, Component, Element$1 as Element, Env, Event, Fragment, H, H as HTMLElement, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Listen, Method, Mixin, NAMESPACE, Prop, PropSerialize, ReactiveControllerHost, STENCIL_DEV_MODE, State, Watch, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRegistry, getRenderingRef, getShadowRoot, getValue, h, injectSideEffectStyle, isMemberInElement, jsx, jsxDEV, jsxs, loadModule,
|
|
2575
|
+
export { AttachInternals, AttrDeserialize, BUILD, Build, Component, Element$1 as Element, Env, Event, Fragment, H, H as HTMLElement, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Listen, Method, Mixin, NAMESPACE, Prop, PropSerialize, ReactiveControllerHost, STENCIL_DEV_MODE, State, Watch, addHostEventListeners, applySerializers, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRegistry, getRenderingRef, getShadowRoot, getValue, h, injectSideEffectStyle, isMemberInElement, jsx, jsxDEV, jsxs, loadModule, modeResolver, needsScopedSSR, nextTick, normalizeWatchers, parsePropertyValue, plt, postUpdateComponent, promiseResolve, proxyComponent, proxyCustomElement, readTask, registerHost, registerInstance, registerSideEffectStyleTarget, render, resolveVar, setAssetPath, setErrorHandler, setLazyLoadBasePath, setMode, setNonce, setPlatformHelpers, setPlatformOptions, setRegistry, setScopedSSR, setTagTransformer, setValue, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsMutableAdoptedStyleSheets, transformTag, unregisterSideEffectStyleTarget, win, writeTask };
|