@stencil/core 5.0.0-next.0 → 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.
Files changed (58) hide show
  1. package/README.md +94 -0
  2. package/bin/stencil.mjs +1 -1
  3. package/dist/app-data/index.d.ts +2 -0
  4. package/dist/{runtime/app-data → app-data}/index.js +23 -15
  5. package/dist/{runtime/app-globals → app-globals}/index.js +1 -2
  6. package/dist/client-ClM4H9-P.mjs +2496 -0
  7. package/dist/compiler/browser.d.ts +1573 -0
  8. package/dist/compiler/browser.js +16998 -0
  9. package/dist/compiler/index.d.mts +284 -7
  10. package/dist/compiler/index.mjs +3 -9
  11. package/dist/compiler/utils/index.d.mts +272 -3
  12. package/dist/compiler/utils/index.mjs +4 -5
  13. package/dist/{transpile-CJQcQEVa.mjs → compiler-DFanjq9z.mjs} +20984 -15554
  14. package/dist/declarations/stencil-ext-modules.d.ts +8 -8
  15. package/dist/declarations/stencil-public-compiler.d.ts +1016 -840
  16. package/dist/declarations/stencil-public-compiler.js +3 -5
  17. package/dist/declarations/stencil-public-docs.d.ts +441 -376
  18. package/dist/declarations/stencil-public-docs.js +0 -0
  19. package/dist/declarations/stencil-public-runtime.d.ts +361 -113
  20. package/dist/fragment-Di1hWOC8.mjs +4 -0
  21. package/dist/helpers-Cpp3qc3u.mjs +524 -0
  22. package/dist/{index-szczUd2l.d.mts → index-DvfFOkiJ.d.mts} +1466 -2044
  23. package/dist/{stencil-private-Cgcr414u.d.ts → index-XQHZl0MW.d.ts} +308 -114
  24. package/dist/index-aBMJC5F9.d.mts +104 -0
  25. package/dist/index.d.mts +14 -2
  26. package/dist/index.mjs +171 -4
  27. package/dist/jsx-runtime.d.mts +24 -0
  28. package/dist/jsx-runtime.mjs +3 -0
  29. package/dist/mock-doc.mjs +2 -3
  30. package/dist/{node-sys-BGURUNOZ.mjs → node-DJP8JuAS.mjs} +176 -197
  31. package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
  32. package/dist/{client-DR9zhmKG.mjs → runtime/client/lazy.js} +3780 -2652
  33. package/dist/runtime/client/{index.d.ts → runtime.d.ts} +516 -227
  34. package/dist/runtime/client/{index.js → runtime.js} +3588 -2856
  35. package/dist/runtime/index.d.ts +90 -72
  36. package/dist/runtime/index.js +3461 -2837
  37. package/dist/runtime/server/index.d.mts +243 -219
  38. package/dist/runtime/server/index.mjs +3763 -3352
  39. package/dist/runtime/server/runner.d.mts +114 -47
  40. package/dist/runtime/server/runner.mjs +12710 -763
  41. package/dist/signals/index.d.ts +58 -0
  42. package/dist/signals/index.js +182 -0
  43. package/dist/sys/node/index.d.mts +1 -3
  44. package/dist/sys/node/index.mjs +2 -7
  45. package/dist/sys/node/worker.d.mts +1 -1
  46. package/dist/sys/node/worker.mjs +3 -12
  47. package/dist/testing/index.d.mts +4763 -12
  48. package/dist/testing/index.mjs +7939 -619
  49. package/dist/util-C-H1H84W.mjs +731 -0
  50. package/dist/validation-ByYYKvnS.mjs +825 -0
  51. package/package.json +91 -59
  52. package/dist/chunk-ClPoSABd.mjs +0 -21
  53. package/dist/index-Bxo2jCf6.d.mts +0 -77
  54. package/dist/runtime/app-data/index.d.ts +0 -30
  55. package/dist/serialize-BJvhE9aQ.mjs +0 -775
  56. package/dist/validation-BdcPruW_.mjs +0 -1451
  57. /package/{LICENSE.md → LICENSE} +0 -0
  58. /package/dist/{runtime/app-globals → app-globals}/index.d.ts +0 -0
@@ -1,7 +1,6 @@
1
+ import "rolldown";
2
+ import "typescript";
1
3
  //#region src/declarations/stencil-public-runtime.d.ts
2
- interface ElementDecorator {
3
- (): PropertyDecorator;
4
- }
5
4
  interface EventDecorator {
6
5
  (opts?: EventOptions): PropertyDecorator;
7
6
  }
@@ -23,11 +22,6 @@ interface EventOptions {
23
22
  */
24
23
  composed?: boolean;
25
24
  }
26
- /**
27
- * The `@Element()` decorator is a reference to the actual host element
28
- * once it has rendered.
29
- */
30
- declare const Element$1: ElementDecorator;
31
25
  /**
32
26
  * Components can emit data and events using the Event Emitter decorator.
33
27
  * To dispatch Custom DOM events for other components to handle, use the
@@ -41,6 +35,27 @@ interface HTMLStencilElement extends HTMLElement {
41
35
  componentOnReady(): Promise<this>;
42
36
  }
43
37
  type TagTransformer = (tag: string) => string;
38
+ /**
39
+ * A constructor type that can be used as the base for mixin factories.
40
+ *
41
+ * ```ts
42
+ * import { MixedInCtor } from '@stencil/core';
43
+ *
44
+ * const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
45
+ * ```
46
+ */
47
+ type MixedInCtor<T = {}> = new (...args: any[]) => T;
48
+ /**
49
+ * A map of `@Prop`/`@State` property names to their new and previous
50
+ * values, passed to `componentShouldUpdate` once per render cycle.
51
+ *
52
+ * Pass `this` as `T` to type `changes` against your component's own
53
+ * members, e.g. `componentShouldUpdate(changes: ComponentShouldUpdateChanges<this>)`.
54
+ */
55
+ type ComponentShouldUpdateChanges<T = any> = { [K in Extract<keyof T, string>]?: {
56
+ newVal: T[K];
57
+ oldVal: T[K];
58
+ }; };
44
59
  interface ComponentInterface {
45
60
  connectedCallback?(): void;
46
61
  disconnectedCallback?(): void;
@@ -66,14 +81,18 @@ interface ComponentInterface {
66
81
  */
67
82
  componentDidLoad?(): void;
68
83
  /**
69
- * A `@Prop` or `@State` property changed and a rerender is about to be requested.
84
+ * One or more `@Prop` or `@State` properties changed and a rerender is
85
+ * about to be requested. `changes` contains every property that changed
86
+ * since the last render, keyed by property name.
70
87
  *
71
- * Called multiple times throughout the life of
72
- * the component as its properties change.
88
+ * Called once per render cycle, batching all properties that changed
89
+ * synchronously since the last render.
90
+ *
91
+ * Return `false` to prevent the pending render.
73
92
  *
74
93
  * componentShouldUpdate is not called on the first render.
75
94
  */
76
- componentShouldUpdate?(newVal: any, oldVal: any, propName: string): boolean | void;
95
+ componentShouldUpdate?(changes: ComponentShouldUpdateChanges<this>): boolean | void;
77
96
  /**
78
97
  * The component is about to update and re-render.
79
98
  *
@@ -96,6 +115,44 @@ interface ComponentInterface {
96
115
  render?(): any;
97
116
  [memberName: string]: any;
98
117
  }
118
+ /**
119
+ * A reusable behavior that hooks into a `ReactiveControllerHost`'s lifecycle. Modeled after Lit's
120
+ * `ReactiveController` pattern: implement the hooks you need, then register an instance with a host
121
+ * via `host.addController(this)`.
122
+ */
123
+ interface ReactiveController {
124
+ hostConnected?(): void;
125
+ hostDisconnected?(): void;
126
+ hostWillLoad?(): Promise<void> | void;
127
+ hostDidLoad?(): void;
128
+ hostWillRender?(): Promise<void> | void;
129
+ hostDidRender?(): void;
130
+ hostWillUpdate?(): Promise<void> | void;
131
+ hostDidUpdate?(): void;
132
+ }
133
+ /**
134
+ * The shape added to a component by mixing in `ReactiveControllerHost` (see below).
135
+ */
136
+ interface ReactiveControllerHostInterface extends ComponentInterface, HTMLElement {
137
+ readonly controllers: ReadonlySet<ReactiveController>;
138
+ addController(controller: ReactiveController): void;
139
+ removeController(controller: ReactiveController): void;
140
+ requestUpdate(): void;
141
+ /**
142
+ * Resolves once the next pending render commits. Matches the shape of Lit's
143
+ * `ReactiveControllerHost.updateComplete`, for interop with controllers written against Lit's API
144
+ * (e.g. `@lit/context`).
145
+ */
146
+ readonly updateComplete: Promise<boolean>;
147
+ }
148
+ /**
149
+ * Minimal interface matched by signal objects (from @stencil/core/signals).
150
+ * Used in JSX attribute types.
151
+ */
152
+ interface SignalRef<T = any> {
153
+ readonly value: T;
154
+ peek(): T;
155
+ }
99
156
  /**
100
157
  * Utilities for working with functional Stencil components. An object
101
158
  * conforming to this interface is passed by the Stencil runtime as the third
@@ -137,7 +194,7 @@ interface FunctionalUtilities {
137
194
  map: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => ChildNode$1) => VNode[];
138
195
  }
139
196
  interface FunctionalComponent<T = {}> {
140
- (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
197
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | null;
141
198
  }
142
199
  /**
143
200
  * A Child VDOM node
@@ -148,7 +205,7 @@ interface FunctionalComponent<T = {}> {
148
205
  * {@link FunctionalUtilities}).
149
206
  */
150
207
  interface ChildNode$1 {
151
- vtag?: string | number | Function;
208
+ vtag?: string | number | Function | symbol | null;
152
209
  vkey?: string | number;
153
210
  vtext?: string;
154
211
  vchildren?: VNode[];
@@ -160,16 +217,18 @@ interface ChildNode$1 {
160
217
  */
161
218
  interface VNode {
162
219
  $flags$: number;
163
- $tag$: string | number | Function;
220
+ $tag$: string | number | Function | symbol | null;
164
221
  $elm$: any;
165
222
  $text$: string;
166
223
  $children$: VNode[];
167
224
  $attrs$?: any;
168
225
  $name$?: string;
169
226
  $key$?: string | number;
227
+ /** Signal reference for vdom bypass: signal text nodes store the signal here. */
228
+ $signal$?: any;
170
229
  }
171
230
  declare namespace JSXBase {
172
- interface IntrinsicElements {
231
+ export interface IntrinsicElements {
173
232
  slot: JSXBase.SlotAttributes<HTMLSlotElement>;
174
233
  a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
175
234
  abbr: JSXBase.HTMLAttributes;
@@ -340,12 +399,12 @@ declare namespace JSXBase {
340
399
  use: JSXBase.SVGAttributes;
341
400
  view: JSXBase.SVGAttributes;
342
401
  }
343
- interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
402
+ export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
344
403
  name?: string;
345
404
  slot?: string;
346
405
  onSlotchange?: (event: Event) => void;
347
406
  }
348
- interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
407
+ export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
349
408
  download?: any;
350
409
  href?: string;
351
410
  hrefLang?: string;
@@ -356,8 +415,8 @@ declare namespace JSXBase {
356
415
  target?: string;
357
416
  referrerPolicy?: ReferrerPolicy;
358
417
  }
359
- interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
360
- interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
418
+ export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
419
+ export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
361
420
  alt?: string;
362
421
  coords?: string;
363
422
  download?: any;
@@ -369,14 +428,14 @@ declare namespace JSXBase {
369
428
  shape?: string;
370
429
  target?: string;
371
430
  }
372
- interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
431
+ export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
373
432
  href?: string;
374
433
  target?: string;
375
434
  }
376
- interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
435
+ export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
377
436
  cite?: string;
378
437
  }
379
- interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
438
+ export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
380
439
  disabled?: boolean;
381
440
  form?: string;
382
441
  formAction?: string;
@@ -393,50 +452,51 @@ declare namespace JSXBase {
393
452
  type?: string;
394
453
  value?: string | string[] | number;
395
454
  popoverTargetAction?: string;
396
- popoverTargetElement?: Element$1 | null;
455
+ popoverTargetElement?: globalThis.Element | null;
397
456
  popoverTarget?: string;
398
457
  command?: string;
399
458
  commandFor?: string;
400
459
  commandfor?: string;
401
460
  }
402
- interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
461
+ export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
403
462
  height?: number | string;
404
463
  width?: number | string;
405
464
  }
406
- interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
465
+ export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
407
466
  span?: number;
408
467
  }
409
- interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
468
+ export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
410
469
  span?: number;
411
470
  }
412
- interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
471
+ export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
413
472
  open?: boolean;
414
473
  name?: string;
415
474
  onToggle?: (event: ToggleEvent) => void;
416
475
  }
417
- interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
476
+ export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
418
477
  cite?: string;
419
478
  dateTime?: string;
420
479
  datetime?: string;
421
480
  }
422
- interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
481
+ export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
423
482
  onCancel?: (event: Event) => void;
424
483
  onClose?: (event: Event) => void;
425
484
  open?: boolean;
426
485
  returnValue?: string;
486
+ closedby?: 'any' | 'closerequest' | 'none';
427
487
  }
428
- interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
488
+ export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
429
489
  height?: number | string;
430
490
  src?: string;
431
491
  type?: string;
432
492
  width?: number | string;
433
493
  }
434
- interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
494
+ export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
435
495
  disabled?: boolean;
436
496
  form?: string;
437
497
  name?: string;
438
498
  }
439
- interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
499
+ export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
440
500
  acceptCharset?: string;
441
501
  acceptcharset?: string;
442
502
  action?: string;
@@ -450,10 +510,10 @@ declare namespace JSXBase {
450
510
  novalidate?: boolean | string;
451
511
  target?: string;
452
512
  }
453
- interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
513
+ export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
454
514
  manifest?: string;
455
515
  }
456
- interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
516
+ export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
457
517
  allow?: string;
458
518
  allowFullScreen?: boolean;
459
519
  allowfullScreen?: string | boolean;
@@ -461,6 +521,8 @@ declare namespace JSXBase {
461
521
  allowtransparency?: string | boolean;
462
522
  frameBorder?: number | string;
463
523
  frameborder?: number | string;
524
+ fetchPriority?: 'high' | 'low' | 'auto';
525
+ fetchpriority?: 'high' | 'low' | 'auto';
464
526
  importance?: 'low' | 'auto' | 'high';
465
527
  height?: number | string;
466
528
  loading?: 'lazy' | 'auto' | 'eager';
@@ -478,14 +540,17 @@ declare namespace JSXBase {
478
540
  srcdoc?: string;
479
541
  width?: number | string;
480
542
  }
481
- interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
543
+ export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
482
544
  alt?: string;
483
545
  crossOrigin?: string;
484
546
  crossorigin?: string;
485
547
  decoding?: 'async' | 'auto' | 'sync';
548
+ fetchPriority?: 'high' | 'low' | 'auto';
549
+ fetchpriority?: 'high' | 'low' | 'auto';
486
550
  importance?: 'low' | 'auto' | 'high';
487
551
  height?: number | string;
488
552
  loading?: 'lazy' | 'auto' | 'eager';
553
+ referrerPolicy?: ReferrerPolicy;
489
554
  sizes?: string;
490
555
  src?: string;
491
556
  srcSet?: string;
@@ -494,12 +559,12 @@ declare namespace JSXBase {
494
559
  usemap?: string;
495
560
  width?: number | string;
496
561
  }
497
- interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
562
+ export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
498
563
  cite?: string;
499
564
  dateTime?: string;
500
565
  datetime?: string;
501
566
  }
502
- interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
567
+ export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
503
568
  accept?: string;
504
569
  allowdirs?: boolean;
505
570
  alt?: string;
@@ -559,10 +624,10 @@ declare namespace JSXBase {
559
624
  webkitEntries?: any;
560
625
  width?: number | string;
561
626
  popoverTargetAction?: string;
562
- popoverTargetElement?: Element$1 | null;
627
+ popoverTargetElement?: globalThis.Element | null;
563
628
  popoverTarget?: string;
564
629
  }
565
- interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
630
+ export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
566
631
  challenge?: string;
567
632
  disabled?: boolean;
568
633
  form?: string;
@@ -572,15 +637,17 @@ declare namespace JSXBase {
572
637
  keyparams?: string;
573
638
  name?: string;
574
639
  }
575
- interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
640
+ export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
576
641
  form?: string;
577
642
  htmlFor?: string;
578
643
  }
579
- interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
644
+ export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
580
645
  value?: string | string[] | number;
581
646
  }
582
- interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
647
+ export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
583
648
  as?: string;
649
+ fetchPriority?: 'high' | 'low' | 'auto';
650
+ fetchpriority?: 'high' | 'low' | 'auto';
584
651
  href?: string;
585
652
  hrefLang?: string;
586
653
  hreflang?: string;
@@ -591,13 +658,13 @@ declare namespace JSXBase {
591
658
  sizes?: string;
592
659
  type?: string;
593
660
  }
594
- interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
661
+ export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
595
662
  name?: string;
596
663
  }
597
- interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
664
+ export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
598
665
  type?: string;
599
666
  }
600
- interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
667
+ export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
601
668
  autoPlay?: boolean;
602
669
  autoplay?: boolean | string;
603
670
  controls?: boolean;
@@ -637,7 +704,7 @@ declare namespace JSXBase {
637
704
  onVolumeChange?: (event: Event) => void;
638
705
  onWaiting?: (event: Event) => void;
639
706
  }
640
- interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
707
+ export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
641
708
  charSet?: string;
642
709
  charset?: string;
643
710
  content?: string;
@@ -645,7 +712,7 @@ declare namespace JSXBase {
645
712
  httpequiv?: string;
646
713
  name?: string;
647
714
  }
648
- interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
715
+ export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
649
716
  form?: string;
650
717
  high?: number;
651
718
  low?: number;
@@ -654,10 +721,10 @@ declare namespace JSXBase {
654
721
  optimum?: number;
655
722
  value?: string | string[] | number;
656
723
  }
657
- interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
724
+ export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
658
725
  cite?: string;
659
726
  }
660
- interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
727
+ export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
661
728
  classID?: string;
662
729
  classid?: string;
663
730
  data?: string;
@@ -670,47 +737,49 @@ declare namespace JSXBase {
670
737
  width?: number | string;
671
738
  wmode?: string;
672
739
  }
673
- interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
740
+ export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
674
741
  reversed?: boolean;
675
742
  start?: number;
676
743
  }
677
- interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
744
+ export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
678
745
  disabled?: boolean;
679
746
  label?: string;
680
747
  }
681
- interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
748
+ export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
682
749
  disabled?: boolean;
683
750
  label?: string;
684
751
  selected?: boolean;
685
752
  value?: string | string[] | number;
686
753
  }
687
- interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
754
+ export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
688
755
  form?: string;
689
756
  htmlFor?: string;
690
757
  name?: string;
691
758
  }
692
- interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
759
+ export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
693
760
  name?: string;
694
761
  value?: string | string[] | number;
695
762
  }
696
- interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
763
+ export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
697
764
  max?: number | string;
698
765
  value?: string | string[] | number;
699
766
  }
700
- interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
767
+ export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
701
768
  async?: boolean;
702
769
  charSet?: string;
703
770
  charset?: string;
704
771
  crossOrigin?: string;
705
772
  crossorigin?: string;
706
773
  defer?: boolean;
774
+ fetchPriority?: 'high' | 'low' | 'auto';
775
+ fetchpriority?: 'high' | 'low' | 'auto';
707
776
  importance?: 'low' | 'auto' | 'high';
708
777
  integrity?: string;
709
778
  nonce?: string;
710
779
  src?: string;
711
780
  type?: string;
712
781
  }
713
- interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
782
+ export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
714
783
  disabled?: boolean;
715
784
  form?: string;
716
785
  multiple?: boolean;
@@ -720,7 +789,7 @@ declare namespace JSXBase {
720
789
  autoComplete?: string;
721
790
  autocomplete?: string;
722
791
  }
723
- interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
792
+ export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
724
793
  height?: number;
725
794
  media?: string;
726
795
  sizes?: string;
@@ -729,20 +798,20 @@ declare namespace JSXBase {
729
798
  type?: string;
730
799
  width?: number;
731
800
  }
732
- interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
801
+ export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
733
802
  media?: string;
734
803
  nonce?: string;
735
804
  scoped?: boolean;
736
805
  type?: string;
737
806
  }
738
- interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
807
+ export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
739
808
  cellPadding?: number | string;
740
809
  cellpadding?: number | string;
741
810
  cellSpacing?: number | string;
742
811
  cellspacing?: number | string;
743
812
  summary?: string;
744
813
  }
745
- interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
814
+ export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
746
815
  autoComplete?: string;
747
816
  autocomplete?: string;
748
817
  cols?: number;
@@ -763,12 +832,12 @@ declare namespace JSXBase {
763
832
  value?: string | string[] | number;
764
833
  wrap?: string;
765
834
  }
766
- interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
835
+ export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
767
836
  colSpan?: number;
768
837
  headers?: string;
769
838
  rowSpan?: number;
770
839
  }
771
- interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
840
+ export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
772
841
  abbr?: string;
773
842
  colSpan?: number;
774
843
  headers?: string;
@@ -776,10 +845,10 @@ declare namespace JSXBase {
776
845
  rowspan?: number | string;
777
846
  scope?: string;
778
847
  }
779
- interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
848
+ export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
780
849
  dateTime?: string;
781
850
  }
782
- interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
851
+ export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
783
852
  default?: boolean;
784
853
  kind?: string;
785
854
  label?: string;
@@ -787,28 +856,28 @@ declare namespace JSXBase {
787
856
  srcLang?: string;
788
857
  srclang?: string;
789
858
  }
790
- interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
859
+ export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
791
860
  height?: number | string;
792
861
  playsInline?: boolean;
793
862
  playsinline?: boolean | string;
794
863
  poster?: string;
795
864
  width?: number | string;
796
865
  }
797
- interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
866
+ export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
798
867
  innerHTML?: string;
799
868
  accessKey?: string;
800
869
  autoFocus?: boolean;
801
870
  autofocus?: boolean | string;
802
871
  class?: string | {
803
872
  [className: string]: boolean;
804
- };
873
+ } | SignalRef<string>;
805
874
  contentEditable?: boolean | string;
806
875
  contenteditable?: boolean | string;
807
876
  contextMenu?: string;
808
877
  contextmenu?: string;
809
878
  dir?: string;
810
879
  draggable?: boolean;
811
- hidden?: boolean;
880
+ hidden?: boolean | 'until-found';
812
881
  id?: string;
813
882
  inert?: boolean;
814
883
  lang?: string;
@@ -819,7 +888,10 @@ declare namespace JSXBase {
819
888
  tabIndex?: number;
820
889
  tabindex?: number | string;
821
890
  title?: string;
891
+ translate?: 'yes' | 'no' | (string & {});
822
892
  popover?: string | null;
893
+ focusgroup?: string;
894
+ focusgroupstart?: boolean;
823
895
  inputMode?: string;
824
896
  inputmode?: string;
825
897
  enterKeyHint?: string;
@@ -857,10 +929,10 @@ declare namespace JSXBase {
857
929
  security?: string;
858
930
  unselectable?: boolean;
859
931
  }
860
- interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
932
+ export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
861
933
  class?: string | {
862
934
  [className: string]: boolean;
863
- };
935
+ } | SignalRef<string>;
864
936
  color?: string;
865
937
  height?: number | string;
866
938
  id?: string;
@@ -1119,13 +1191,15 @@ declare namespace JSXBase {
1119
1191
  zoomAndPan?: string;
1120
1192
  }
1121
1193
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
1122
- interface ToggleEvent extends Event {
1194
+ export interface ToggleEvent extends Event {
1123
1195
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
1124
1196
  readonly newState: string;
1125
1197
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
1126
1198
  readonly oldState: string;
1127
1199
  }
1128
- interface DOMAttributes<T> extends JSXAttributes<T> {
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 {
1129
1203
  slot?: string;
1130
1204
  part?: string;
1131
1205
  exportparts?: string;
@@ -1255,18 +1329,21 @@ declare namespace JSXBase {
1255
1329
  onTransitionStart?: (event: TransitionEvent) => void;
1256
1330
  onTransitionStartCapture?: (event: TransitionEvent) => void;
1257
1331
  [key: `aria-${string}`]: string | boolean | undefined;
1258
- [key: `aria${string}`]: string | boolean | undefined;
1259
1332
  }
1333
+ export {};
1260
1334
  }
1261
- interface JSXAttributes<T = Element$1> {
1335
+ interface JSXAttributes<T = globalThis.Element> {
1262
1336
  key?: string | number;
1263
1337
  ref?: (elm?: T) => void;
1338
+ children?: any;
1339
+ [key: `attr:${string}`]: any;
1340
+ [key: `prop:${string}`]: any;
1264
1341
  }
1265
1342
  interface CustomElementsDefineOptions {
1266
1343
  exclude?: string[];
1267
1344
  syncQueue?: boolean;
1268
- /** @deprecated in-favour of `setTagTransformer` and `transformTag` */
1269
- transformTagName?: (tagName: string) => string;
1345
+ /** Scoped custom element registry to define components in. Defaults to the global registry. */
1346
+ registry?: CustomElementRegistry;
1270
1347
  jmp?: (c: Function) => any;
1271
1348
  raf?: (c: FrameRequestCallback) => number;
1272
1349
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
@@ -1281,7 +1358,11 @@ interface BuildFeatures {
1281
1358
  formAssociated: boolean;
1282
1359
  shadowDom: boolean;
1283
1360
  shadowDelegatesFocus: boolean;
1361
+ shadowModeClosed: boolean;
1284
1362
  shadowSlotAssignmentManual: boolean;
1363
+ shadowClonable: boolean;
1364
+ shadowSerializable: boolean;
1365
+ shadowReferenceTarget: boolean;
1285
1366
  scoped: boolean;
1286
1367
  /**
1287
1368
  * Every component has a render function
@@ -1298,11 +1379,18 @@ interface BuildFeatures {
1298
1379
  vdomKey: boolean;
1299
1380
  vdomListener: boolean;
1300
1381
  vdomPropOrAttr: boolean;
1382
+ /** True when at least one component uses the explicit `attr:`/`prop:` JSX prefix. */
1383
+ vdomPropOrAttrPrefix: boolean;
1301
1384
  vdomRef: boolean;
1302
1385
  vdomStyle: boolean;
1303
1386
  vdomText: boolean;
1304
1387
  vdomXlink: boolean;
1388
+ vdomSignals: boolean;
1305
1389
  slotRelocation: boolean;
1390
+ patchAll: boolean;
1391
+ patchChildren: boolean;
1392
+ patchClone: boolean;
1393
+ patchInsert: boolean;
1306
1394
  slot: boolean;
1307
1395
  svg: boolean;
1308
1396
  element: boolean;
@@ -1311,10 +1399,6 @@ interface BuildFeatures {
1311
1399
  hostListenerTargetWindow: boolean;
1312
1400
  hostListenerTargetDocument: boolean;
1313
1401
  hostListenerTargetBody: boolean;
1314
- /**
1315
- * @deprecated Prevented from new apps, but left in for older collections
1316
- */
1317
- hostListenerTargetParent: boolean;
1318
1402
  hostListenerTarget: boolean;
1319
1403
  method: boolean;
1320
1404
  prop: boolean;
@@ -1348,22 +1432,27 @@ interface BuildConditionals extends Partial<BuildFeatures> {
1348
1432
  lazyLoad?: boolean;
1349
1433
  profile?: boolean;
1350
1434
  constructableCSS?: boolean;
1351
- appendChildSlotFix?: boolean;
1352
- slotChildNodesFix?: boolean;
1353
- scopedSlotTextContentFix?: boolean;
1354
- cloneNodeFix?: boolean;
1435
+ /** True when `compat.lightDomPatches === true` - enables `applyLightDomPatches` shortcut. */
1436
+ lightDomPatches?: boolean;
1437
+ /** Patch `childNodes`/`children` getters on light-dom slotted components. */
1438
+ slotChildNodes?: boolean;
1439
+ /** Patch `cloneNode()` on light-dom slotted components. */
1440
+ slotCloneNode?: boolean;
1441
+ /** Patch `appendChild`/`insertBefore`/`removeChild` on light-dom slotted components. */
1442
+ slotDomMutations?: boolean;
1443
+ /** Patch `textContent` on light-dom slotted components. */
1444
+ slotTextContent?: boolean;
1355
1445
  hydratedAttribute?: boolean;
1356
1446
  hydratedClass?: boolean;
1357
1447
  hydratedSelectorName?: string;
1448
+ /** True when a global-style input contains `@import "stencil-hydrate"` - suppresses dynamic style injection in the loader. */
1449
+ staticHydrationStyles?: boolean;
1358
1450
  initializeNextTick?: boolean;
1359
- shadowDomShim?: boolean;
1360
1451
  asyncQueue?: boolean;
1361
- transformTagName?: boolean;
1362
1452
  additionalTagTransformers?: boolean | 'prod';
1363
- attachStyles?: boolean;
1364
- experimentalSlotFixes?: boolean;
1365
- experimentalScopedSlotChanges?: boolean;
1366
- addGlobalStyleToComponents?: boolean;
1453
+ signalBacking?: boolean;
1454
+ /** True when JSX signal bypass is active - text nodes and attributes backed by Signal objects update the DOM directly. Auto-enabled when `signalBacking: true`. */
1455
+ vdomSignals?: boolean;
1367
1456
  }
1368
1457
  interface ComponentConstructor {
1369
1458
  is?: string;
@@ -1428,7 +1517,9 @@ interface HostElement extends HTMLElement {
1428
1517
  disconnectedCallback?: () => void;
1429
1518
  host?: Element;
1430
1519
  forceUpdate?: () => void;
1431
- __stencil__getHostRef?: () => HostRef;
1520
+ __s_ghr?: () => HostRef;
1521
+ /** attaches the component's shadow root if it needs one and doesn't have one yet */
1522
+ __attachShadow?: () => void;
1432
1523
  /**
1433
1524
  * Unique stencil id for this element
1434
1525
  */
@@ -1482,6 +1573,15 @@ interface HostElement extends HTMLElement {
1482
1573
  * must be resolved for the top, ancestor component to be fully hydrated
1483
1574
  */
1484
1575
  ['s-p']?: Promise<void>[];
1576
+ /**
1577
+ * Pending Connects:
1578
+ * A list of {@link HostRef.$onFirstConnectPromise$} promises for descendants that
1579
+ * were already registered with this component (their nearest Stencil ancestor) by
1580
+ * the time this component's own initial `componentWillLoad` was scheduled. Awaited
1581
+ * so this component's `componentWillLoad` can't fire before those descendants'
1582
+ * real `connectedCallback`s have.
1583
+ */
1584
+ ['s-pc']?: Promise<void>[];
1485
1585
  componentOnReady?: () => Promise<this>;
1486
1586
  }
1487
1587
  /**
@@ -1521,6 +1621,11 @@ interface RenderNode extends HostElement {
1521
1621
  * Slot name of either the slot itself or the slotted node
1522
1622
  */
1523
1623
  ['s-sn']?: string;
1624
+ /**
1625
+ * `slot` attribute of a `<slot>` reference rendered as a text node (no fallback content),
1626
+ * since text nodes can't carry real DOM attributes.
1627
+ */
1628
+ ['s-sa']?: string;
1524
1629
  /**
1525
1630
  * Host element tag name:
1526
1631
  * The tag name of the host element that this
@@ -1573,64 +1678,64 @@ interface RenderNode extends HostElement {
1573
1678
  * Used to know the components encapsulation.
1574
1679
  * empty "" for shadow, "c" from scoped
1575
1680
  */
1576
- ['s-en']?: '' | /*shadow*/'c';
1681
+ ['s-en']?: '' | /*shadow*/ 'c';
1577
1682
  /**
1578
1683
  * On a `scoped: true` component
1579
- * with `experimentalSlotFixes` flag enabled,
1684
+ * with `lightDomPatches` flag enabled,
1580
1685
  * returns the internal `childNodes` of the component
1581
1686
  */
1582
1687
  readonly __childNodes?: NodeListOf<ChildNode>;
1583
1688
  /**
1584
1689
  * On a `scoped: true` component
1585
- * with `experimentalSlotFixes` flag enabled,
1690
+ * with `lightDomPatches` flag enabled,
1586
1691
  * returns the internal `children` of the component
1587
1692
  */
1588
1693
  readonly __children?: HTMLCollectionOf<Element>;
1589
1694
  /**
1590
1695
  * On a `scoped: true` component
1591
- * with `experimentalSlotFixes` flag enabled,
1696
+ * with `lightDomPatches` flag enabled,
1592
1697
  * returns the internal `firstChild` of the component
1593
1698
  */
1594
1699
  readonly __firstChild?: ChildNode;
1595
1700
  /**
1596
1701
  * On a `scoped: true` component
1597
- * with `experimentalSlotFixes` flag enabled,
1702
+ * with `lightDomPatches` flag enabled,
1598
1703
  * returns the internal `lastChild` of the component
1599
1704
  */
1600
1705
  readonly __lastChild?: ChildNode;
1601
1706
  /**
1602
1707
  * On a `scoped: true` component
1603
- * with `experimentalSlotFixes` flag enabled,
1708
+ * with `lightDomPatches` flag enabled,
1604
1709
  * returns the internal `textContent` of the component
1605
1710
  */
1606
1711
  __textContent?: string;
1607
1712
  /**
1608
1713
  * On a `scoped: true` component
1609
- * with `experimentalSlotFixes` flag enabled,
1714
+ * with `lightDomPatches` flag enabled,
1610
1715
  * gives access to the original `append` method
1611
1716
  */
1612
1717
  __append?: (...nodes: (Node | string)[]) => void;
1613
1718
  /**
1614
1719
  * On a `scoped: true` component
1615
- * with `experimentalSlotFixes` flag enabled,
1720
+ * with `lightDomPatches` flag enabled,
1616
1721
  * gives access to the original `prepend` method
1617
1722
  */
1618
1723
  __prepend?: (...nodes: (Node | string)[]) => void;
1619
1724
  /**
1620
1725
  * On a `scoped: true` component
1621
- * with `experimentalSlotFixes` flag enabled,
1726
+ * with `lightDomPatches` flag enabled,
1622
1727
  * gives access to the original `appendChild` method
1623
1728
  */
1624
1729
  __appendChild?: <T extends Node>(newChild: T) => T;
1625
1730
  /**
1626
1731
  * On a `scoped: true` component
1627
- * with `experimentalSlotFixes` flag enabled,
1732
+ * with `lightDomPatches` flag enabled,
1628
1733
  * gives access to the original `insertBefore` method
1629
1734
  */
1630
1735
  __insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
1631
1736
  /**
1632
1737
  * On a `scoped: true` component
1633
- * with `experimentalSlotFixes` flag enabled,
1738
+ * with `lightDomPatches` flag enabled,
1634
1739
  * gives access to the original `removeChild` method
1635
1740
  */
1636
1741
  __removeChild?: <T extends Node>(child: T) => T;
@@ -1668,40 +1773,58 @@ interface PatchedSlotNode extends Node {
1668
1773
  ['s-sr']?: boolean;
1669
1774
  /**
1670
1775
  * On a `scoped: true` component
1671
- * with `experimentalSlotFixes` flag enabled,
1776
+ * with `lightDomPatches` flag enabled,
1672
1777
  * returns the actual `parentNode` of the component
1673
1778
  */
1674
1779
  __parentNode?: RenderNode;
1675
1780
  /**
1676
1781
  * On a `scoped: true` component
1677
- * with `experimentalSlotFixes` flag enabled,
1782
+ * with `lightDomPatches` flag enabled,
1678
1783
  * returns the actual `nextSibling` of the component
1679
1784
  */
1680
1785
  __nextSibling?: RenderNode;
1681
1786
  /**
1682
1787
  * On a `scoped: true` component
1683
- * with `experimentalSlotFixes` flag enabled,
1788
+ * with `lightDomPatches` flag enabled,
1684
1789
  * returns the actual `previousSibling` of the component
1685
1790
  */
1686
1791
  __previousSibling?: RenderNode;
1687
1792
  /**
1688
1793
  * On a `scoped: true` component
1689
- * with `experimentalSlotFixes` flag enabled,
1794
+ * with `lightDomPatches` flag enabled,
1690
1795
  * returns the actual `nextElementSibling` of the component
1691
1796
  */
1692
1797
  __nextElementSibling?: RenderNode;
1693
1798
  /**
1694
1799
  * On a `scoped: true` component
1695
- * with `experimentalSlotFixes` flag enabled,
1800
+ * with `lightDomPatches` flag enabled,
1696
1801
  * returns the actual `nextElementSibling` of the component
1697
1802
  */
1698
1803
  __previousElementSibling?: RenderNode;
1699
1804
  }
1700
1805
  type LazyBundlesRuntimeData = LazyBundleRuntimeData[];
1701
- type LazyBundleRuntimeData = [/** bundleIds */string, ComponentRuntimeMetaCompact[]];
1702
- type ComponentRuntimeMetaCompact = [/** flags */number, /** tagname */string, /** members */{
1806
+ type LazyBundleRuntimeData = [
1807
+ /** bundleIds */
1808
+ string, ComponentRuntimeMetaCompact[]];
1809
+ type ComponentRuntimeMetaCompact = [
1810
+ /** flags */
1811
+ number,
1812
+ /** tagname */
1813
+ string,
1814
+ /** members */
1815
+ {
1703
1816
  [memberName: string]: ComponentRuntimeMember;
1704
- }?, /** listeners */ComponentRuntimeHostListener[]?, /** watchers */ComponentConstructorChangeHandlers?, /** serializers */ComponentConstructorChangeHandlers?, /** deserializers */ComponentConstructorChangeHandlers?];
1817
+ }?,
1818
+ /** listeners */
1819
+ ComponentRuntimeHostListener[]?,
1820
+ /** watchers */
1821
+ ComponentConstructorChangeHandlers?,
1822
+ /** serializers */
1823
+ ComponentConstructorChangeHandlers?,
1824
+ /** deserializers */
1825
+ ComponentConstructorChangeHandlers?,
1826
+ /** shadow root reference target */
1827
+ string?];
1705
1828
  /**
1706
1829
  * Runtime metadata for a Stencil component
1707
1830
  */
@@ -1748,6 +1871,10 @@ interface ComponentRuntimeMeta {
1748
1871
  * Information about which class members have attribute > prop deserializers attached on the component.
1749
1872
  */
1750
1873
  $deserializers$?: ComponentConstructorChangeHandlers;
1874
+ /**
1875
+ * `id` of the element within the shadow root that IDREFs targeting the host resolve to.
1876
+ */
1877
+ $referenceTarget$?: string;
1751
1878
  }
1752
1879
  /**
1753
1880
  * A mapping of the names of members on the component to some runtime-specific
@@ -1793,7 +1920,7 @@ type ComponentRuntimeReflectingAttr = [string, string | undefined];
1793
1920
  * associated {@link HostRef} instance.
1794
1921
  */
1795
1922
  type RuntimeRef = HostElement | {
1796
- __stencil__getHostRef?: () => HostRef;
1923
+ __s_ghr?: () => HostRef;
1797
1924
  };
1798
1925
  /**
1799
1926
  * Interface used to track an Element, it's virtual Node (`VNode`), and other data
@@ -1804,6 +1931,14 @@ interface HostRef {
1804
1931
  $cmpMeta$: ComponentRuntimeMeta;
1805
1932
  $hostElement$: HostElement;
1806
1933
  $instanceValues$?: Map<string, any>;
1934
+ /**
1935
+ * Prop/state changes accumulated since the last render, flushed to
1936
+ * `componentShouldUpdate` once per render cycle.
1937
+ */
1938
+ $queuedPropChanges$?: ComponentShouldUpdateChanges;
1939
+ $signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
1940
+ /** Dispose function that tears down all signal effects for this component. */
1941
+ $signalCleanup$?: () => void;
1807
1942
  $serializerValues$?: Map<string, string>;
1808
1943
  $lazyInstance$?: ComponentInterface;
1809
1944
  /**
@@ -1836,6 +1971,21 @@ interface HostRef {
1836
1971
  * It is called after {@link HostRef.$onInstancePromise$} resolves.
1837
1972
  */
1838
1973
  $onRenderResolve$?: () => void;
1974
+ /**
1975
+ * A promise that resolves once this component's real `connectedCallback` has fired
1976
+ * for the first time. Created lazily - either by a descendant that needs to wait for
1977
+ * this component's connection before firing its own real `connectedCallback`
1978
+ * ({@link HOST_FLAGS.hasFiredConnected}), or by this component registering itself
1979
+ * with its nearest Stencil ancestor's `s-pc` list. This is what lets a component's
1980
+ * real `connectedCallback` (and, transitively, a pending ancestor's initial
1981
+ * `componentWillLoad`) stay ordered correctly regardless of which of an
1982
+ * ancestor/descendant pair's lazy module happens to resolve first.
1983
+ */
1984
+ $onFirstConnectPromise$?: Promise<void>;
1985
+ /**
1986
+ * A callback which resolves {@link HostRef.$onFirstConnectPromise$}
1987
+ */
1988
+ $onFirstConnectResolve$?: () => void;
1839
1989
  $vnode$?: VNode;
1840
1990
  $queuedListeners$?: [string, any][];
1841
1991
  $rmListeners$?: (() => void)[];
@@ -1845,6 +1995,11 @@ interface HostRef {
1845
1995
  * Defer connectedCallback until after first render for components with slot relocation.
1846
1996
  */
1847
1997
  $deferredConnectedCallback$?: boolean;
1998
+ /**
1999
+ * The number of times this host's lazy component load has failed and been retried.
2000
+ * Used to give up retrying after {@link MAX_LAZY_LOAD_RETRIES} failed attempts.
2001
+ */
2002
+ $loadRetryCount$?: number;
1848
2003
  }
1849
2004
  interface PlatformRuntime {
1850
2005
  /**
@@ -1889,5 +2044,44 @@ interface PlatformRuntime {
1889
2044
  ce: (eventName: string, opts?: any) => CustomEvent;
1890
2045
  }
1891
2046
  type ChildType = VNode | number | string;
2047
+ type PropsType = VNodeProdData | number | string | null;
2048
+ interface VNodeProdData {
2049
+ key?: string | number;
2050
+ class?: {
2051
+ [className: string]: boolean;
2052
+ } | string;
2053
+ className?: {
2054
+ [className: string]: boolean;
2055
+ } | string;
2056
+ style?: any;
2057
+ [key: string]: any;
2058
+ }
2059
+ //#endregion
2060
+ //#region src/app-data/index.d.ts
2061
+ /**
2062
+ * A collection of default build flags for a Stencil project.
2063
+ *
2064
+ * This collection can be found throughout the Stencil codebase, often imported from the `virtual:app-data` module like so:
2065
+ * ```ts
2066
+ * import { BUILD } from 'virtual:app-data';
2067
+ * ```
2068
+ * and is used to determine if a portion of the output of a Stencil _project_'s compilation step can be eliminated.
2069
+ *
2070
+ * e.g. When `BUILD.allRenderFn` evaluates to `false`, the compiler will eliminate conditional statements like:
2071
+ * ```ts
2072
+ * if (BUILD.allRenderFn) {
2073
+ * // some code that will be eliminated if BUILD.allRenderFn is false
2074
+ * }
2075
+ * ```
2076
+ *
2077
+ * `virtual:app-data`, the module that `BUILD` is imported from, is an alias for `@stencil/core/app-data`, and is
2078
+ * partially referenced by {@link STENCIL_APP_DATA_ID}. The `src/compiler/bundle/app-data-plugin.ts` references
2079
+ * `STENCIL_APP_DATA_ID` uses it to replace these defaults with {@link BuildConditionals} that are derived from a
2080
+ * Stencil project's contents (i.e. metadata from the components). This replacement happens at a Stencil project's
2081
+ * compile time. Such code can be found at `src/compiler/app-core/app-data.ts`.
2082
+ */
2083
+ declare const BUILD: BuildConditionals;
2084
+ declare const Env: {};
2085
+ declare const NAMESPACE: string;
1892
2086
  //#endregion
1893
- export { ResolutionHandler as _, ComponentRuntimeMeta as a, HostRef as c, RenderNode as d, RuntimeRef as f, JSXBase as g, HTMLStencilElement as h, ComponentRuntimeHostListener as i, LazyBundlesRuntimeData as l, FunctionalComponent as m, ChildType as n, ComponentRuntimeMetaCompact as o, CustomElementsDefineOptions as p, ComponentConstructor as r, HostElement as s, BuildConditionals as t, PlatformRuntime as u, TagTransformer as v, VNode as y };
2087
+ export { ReactiveControllerHostInterface as C, VNode as E, MixedInCtor as S, TagTransformer as T, ComponentInterface as _, ComponentConstructor as a, HTMLStencilElement as b, ComponentRuntimeMeta as c, HostRef as d, LazyBundlesRuntimeData as f, RuntimeRef as g, RenderNode as h, ChildType as i, ComponentRuntimeMetaCompact as l, PropsType as m, Env as n, ComponentConstructorChangeHandlers as o, PlatformRuntime as p, NAMESPACE as r, ComponentRuntimeHostListener as s, BUILD as t, HostElement as u, CustomElementsDefineOptions as v, ResolutionHandler as w, JSXBase as x, FunctionalComponent as y };