@stencil/core 5.0.0-alpha.27 → 5.0.0-alpha.29

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 (44) hide show
  1. package/dist/app-data/index.d.ts +1 -1
  2. package/dist/{client-CvcvHKz4.mjs → client-D1MsT-Rp.mjs} +373 -238
  3. package/dist/compiler/index.d.mts +2 -3
  4. package/dist/compiler/index.mjs +3 -3
  5. package/dist/compiler/utils/index.d.mts +272 -2
  6. package/dist/compiler/utils/index.mjs +4 -3
  7. package/dist/{compiler-D43Ied7R.mjs → compiler-BbS9TDF_.mjs} +1845 -1118
  8. package/dist/declarations/stencil-ext-modules.d.ts +5 -5
  9. package/dist/declarations/stencil-public-compiler.d.ts +108 -40
  10. package/dist/declarations/stencil-public-docs.d.ts +9 -0
  11. package/dist/declarations/stencil-public-runtime.d.ts +81 -6
  12. package/dist/fragment-Di1hWOC8.mjs +4 -0
  13. package/dist/{index-F3IidHM1.d.mts → index-BHj3EBl2.d.mts} +395 -312
  14. package/dist/{index-xAkMgLX_.d.ts → index-D2PAsXxx.d.ts} +133 -9
  15. package/dist/index-VK8okIiF.d.mts +108 -0
  16. package/dist/index.d.mts +4 -0
  17. package/dist/index.mjs +91 -2
  18. package/dist/jsx-runtime.mjs +2 -1
  19. package/dist/{node-DKVq_Ud0.mjs → node-BQR4L-TG.mjs} +60 -58
  20. package/dist/reactive-controller-BdCpSAQP.d.mts +13 -0
  21. package/dist/{regular-expression-CFVJOTUh.mjs → regular-expression-XqU5zmPp.mjs} +20 -3
  22. package/dist/{chunk-z9aeyW2b.mjs → rolldown-runtime-BhDjJH2R.mjs} +1 -1
  23. package/dist/runtime/client/lazy.js +411 -165
  24. package/dist/runtime/client/runtime.d.ts +136 -9
  25. package/dist/runtime/client/runtime.js +411 -165
  26. package/dist/runtime/index.d.ts +5 -3
  27. package/dist/runtime/index.js +410 -163
  28. package/dist/runtime/server/index.d.mts +80 -8
  29. package/dist/runtime/server/index.mjs +333 -158
  30. package/dist/runtime/server/runner.d.mts +3 -0
  31. package/dist/runtime/server/runner.mjs +232 -308
  32. package/dist/signals/index.d.ts +2 -0
  33. package/dist/sys/node/index.d.mts +1 -2
  34. package/dist/sys/node/index.mjs +1 -1
  35. package/dist/sys/node/worker.d.mts +1 -1
  36. package/dist/sys/node/worker.mjs +6 -3
  37. package/dist/testing/index.d.mts +4 -9
  38. package/dist/testing/index.mjs +74 -56
  39. package/dist/util-BIa-iHnt.mjs +724 -0
  40. package/dist/validation-Dd3g77T5.mjs +778 -0
  41. package/package.json +27 -27
  42. package/dist/index-3fu7WQs4.d.mts +0 -205
  43. package/dist/validation-ByxKj8bC.mjs +0 -1458
  44. /package/{LICENSE.md → LICENSE} +0 -0
@@ -1,3 +1,5 @@
1
+ import "rolldown";
2
+ import "typescript";
1
3
  //#region src/declarations/stencil-public-runtime.d.ts
2
4
  interface ElementDecorator {
3
5
  (): PropertyDecorator;
@@ -41,6 +43,27 @@ interface HTMLStencilElement extends HTMLElement {
41
43
  componentOnReady(): Promise<this>;
42
44
  }
43
45
  type TagTransformer = (tag: string) => string;
46
+ /**
47
+ * A constructor type that can be used as the base for mixin factories.
48
+ *
49
+ * ```ts
50
+ * import { MixedInCtor } from '@stencil/core';
51
+ *
52
+ * const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
53
+ * ```
54
+ */
55
+ type MixedInCtor<T = {}> = new (...args: any[]) => T;
56
+ /**
57
+ * A map of `@Prop`/`@State` property names to their new and previous
58
+ * values, passed to `componentShouldUpdate` once per render cycle.
59
+ *
60
+ * Pass `this` as `T` to type `changes` against your component's own
61
+ * members, e.g. `componentShouldUpdate(changes: ComponentShouldUpdateChanges<this>)`.
62
+ */
63
+ type ComponentShouldUpdateChanges<T = any> = { [K in Extract<keyof T, string>]?: {
64
+ newVal: T[K];
65
+ oldVal: T[K];
66
+ }; };
44
67
  interface ComponentInterface {
45
68
  connectedCallback?(): void;
46
69
  disconnectedCallback?(): void;
@@ -66,14 +89,18 @@ interface ComponentInterface {
66
89
  */
67
90
  componentDidLoad?(): void;
68
91
  /**
69
- * A `@Prop` or `@State` property changed and a rerender is about to be requested.
92
+ * One or more `@Prop` or `@State` properties changed and a rerender is
93
+ * about to be requested. `changes` contains every property that changed
94
+ * since the last render, keyed by property name.
70
95
  *
71
- * Called multiple times throughout the life of
72
- * the component as its properties change.
96
+ * Called once per render cycle, batching all properties that changed
97
+ * synchronously since the last render.
98
+ *
99
+ * Return `false` to prevent the pending render.
73
100
  *
74
101
  * componentShouldUpdate is not called on the first render.
75
102
  */
76
- componentShouldUpdate?(newVal: any, oldVal: any, propName: string): boolean | void;
103
+ componentShouldUpdate?(changes: ComponentShouldUpdateChanges<this>): boolean | void;
77
104
  /**
78
105
  * The component is about to update and re-render.
79
106
  *
@@ -96,6 +123,36 @@ interface ComponentInterface {
96
123
  render?(): any;
97
124
  [memberName: string]: any;
98
125
  }
126
+ /**
127
+ * A reusable behavior that hooks into a `ReactiveControllerHost`'s lifecycle. Modeled after Lit's
128
+ * `ReactiveController` pattern: implement the hooks you need, then register an instance with a host
129
+ * via `host.addController(this)`.
130
+ */
131
+ interface ReactiveController {
132
+ hostConnected?(): void;
133
+ hostDisconnected?(): void;
134
+ hostWillLoad?(): Promise<void> | void;
135
+ hostDidLoad?(): void;
136
+ hostWillRender?(): Promise<void> | void;
137
+ hostDidRender?(): void;
138
+ hostWillUpdate?(): Promise<void> | void;
139
+ hostDidUpdate?(): void;
140
+ }
141
+ /**
142
+ * The shape added to a component by mixing in `ReactiveControllerHost` (see below).
143
+ */
144
+ interface ReactiveControllerHostInterface extends ComponentInterface, HTMLElement {
145
+ readonly controllers: ReadonlySet<ReactiveController>;
146
+ addController(controller: ReactiveController): void;
147
+ removeController(controller: ReactiveController): void;
148
+ requestUpdate(): void;
149
+ /**
150
+ * Resolves once the next pending render commits. Matches the shape of Lit's
151
+ * `ReactiveControllerHost.updateComplete`, for interop with controllers written against Lit's API
152
+ * (e.g. `@lit/context`).
153
+ */
154
+ readonly updateComplete: Promise<boolean>;
155
+ }
99
156
  /**
100
157
  * Minimal interface matched by signal objects (from @stencil/core/signals).
101
158
  * Used in JSX attribute types.
@@ -434,6 +491,7 @@ declare namespace JSXBase {
434
491
  onClose?: (event: Event) => void;
435
492
  open?: boolean;
436
493
  returnValue?: string;
494
+ closedby?: 'any' | 'closerequest' | 'none';
437
495
  }
438
496
  interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
439
497
  height?: number | string;
@@ -471,6 +529,8 @@ declare namespace JSXBase {
471
529
  allowtransparency?: string | boolean;
472
530
  frameBorder?: number | string;
473
531
  frameborder?: number | string;
532
+ fetchPriority?: 'high' | 'low' | 'auto';
533
+ fetchpriority?: 'high' | 'low' | 'auto';
474
534
  importance?: 'low' | 'auto' | 'high';
475
535
  height?: number | string;
476
536
  loading?: 'lazy' | 'auto' | 'eager';
@@ -493,6 +553,8 @@ declare namespace JSXBase {
493
553
  crossOrigin?: string;
494
554
  crossorigin?: string;
495
555
  decoding?: 'async' | 'auto' | 'sync';
556
+ fetchPriority?: 'high' | 'low' | 'auto';
557
+ fetchpriority?: 'high' | 'low' | 'auto';
496
558
  importance?: 'low' | 'auto' | 'high';
497
559
  height?: number | string;
498
560
  loading?: 'lazy' | 'auto' | 'eager';
@@ -592,6 +654,8 @@ declare namespace JSXBase {
592
654
  }
593
655
  interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
594
656
  as?: string;
657
+ fetchPriority?: 'high' | 'low' | 'auto';
658
+ fetchpriority?: 'high' | 'low' | 'auto';
595
659
  href?: string;
596
660
  hrefLang?: string;
597
661
  hreflang?: string;
@@ -715,6 +779,8 @@ declare namespace JSXBase {
715
779
  crossOrigin?: string;
716
780
  crossorigin?: string;
717
781
  defer?: boolean;
782
+ fetchPriority?: 'high' | 'low' | 'auto';
783
+ fetchpriority?: 'high' | 'low' | 'auto';
718
784
  importance?: 'low' | 'auto' | 'high';
719
785
  integrity?: string;
720
786
  nonce?: string;
@@ -830,7 +896,10 @@ declare namespace JSXBase {
830
896
  tabIndex?: number;
831
897
  tabindex?: number | string;
832
898
  title?: string;
899
+ translate?: 'yes' | 'no' | (string & {});
833
900
  popover?: string | null;
901
+ focusgroup?: string;
902
+ focusgroupstart?: boolean;
834
903
  inputMode?: string;
835
904
  inputmode?: string;
836
905
  enterKeyHint?: string;
@@ -1501,6 +1570,15 @@ interface HostElement extends HTMLElement {
1501
1570
  * must be resolved for the top, ancestor component to be fully hydrated
1502
1571
  */
1503
1572
  ['s-p']?: Promise<void>[];
1573
+ /**
1574
+ * Pending Connects:
1575
+ * A list of {@link HostRef.$onFirstConnectPromise$} promises for descendants that
1576
+ * were already registered with this component (their nearest Stencil ancestor) by
1577
+ * the time this component's own initial `componentWillLoad` was scheduled. Awaited
1578
+ * so this component's `componentWillLoad` can't fire before those descendants'
1579
+ * real `connectedCallback`s have.
1580
+ */
1581
+ ['s-pc']?: Promise<void>[];
1504
1582
  componentOnReady?: () => Promise<this>;
1505
1583
  }
1506
1584
  /**
@@ -1540,6 +1618,11 @@ interface RenderNode extends HostElement {
1540
1618
  * Slot name of either the slot itself or the slotted node
1541
1619
  */
1542
1620
  ['s-sn']?: string;
1621
+ /**
1622
+ * `slot` attribute of a `<slot>` reference rendered as a text node (no fallback content),
1623
+ * since text nodes can't carry real DOM attributes.
1624
+ */
1625
+ ['s-sa']?: string;
1543
1626
  /**
1544
1627
  * Host element tag name:
1545
1628
  * The tag name of the host element that this
@@ -1592,7 +1675,7 @@ interface RenderNode extends HostElement {
1592
1675
  * Used to know the components encapsulation.
1593
1676
  * empty "" for shadow, "c" from scoped
1594
1677
  */
1595
- ['s-en']?: '' | /*shadow*/'c';
1678
+ ['s-en']?: '' | /*shadow*/ 'c';
1596
1679
  /**
1597
1680
  * On a `scoped: true` component
1598
1681
  * with `lightDomPatches` flag enabled,
@@ -1717,10 +1800,26 @@ interface PatchedSlotNode extends Node {
1717
1800
  __previousElementSibling?: RenderNode;
1718
1801
  }
1719
1802
  type LazyBundlesRuntimeData = LazyBundleRuntimeData[];
1720
- type LazyBundleRuntimeData = [/** bundleIds */string, ComponentRuntimeMetaCompact[]];
1721
- type ComponentRuntimeMetaCompact = [/** flags */number, /** tagname */string, /** members */{
1803
+ type LazyBundleRuntimeData = [
1804
+ /** bundleIds */
1805
+ string, ComponentRuntimeMetaCompact[]];
1806
+ type ComponentRuntimeMetaCompact = [
1807
+ /** flags */
1808
+ number,
1809
+ /** tagname */
1810
+ string,
1811
+ /** members */
1812
+ {
1722
1813
  [memberName: string]: ComponentRuntimeMember;
1723
- }?, /** listeners */ComponentRuntimeHostListener[]?, /** watchers */ComponentConstructorChangeHandlers?, /** serializers */ComponentConstructorChangeHandlers?, /** deserializers */ComponentConstructorChangeHandlers?];
1814
+ }?,
1815
+ /** listeners */
1816
+ ComponentRuntimeHostListener[]?,
1817
+ /** watchers */
1818
+ ComponentConstructorChangeHandlers?,
1819
+ /** serializers */
1820
+ ComponentConstructorChangeHandlers?,
1821
+ /** deserializers */
1822
+ ComponentConstructorChangeHandlers?];
1724
1823
  /**
1725
1824
  * Runtime metadata for a Stencil component
1726
1825
  */
@@ -1823,6 +1922,11 @@ interface HostRef {
1823
1922
  $cmpMeta$: ComponentRuntimeMeta;
1824
1923
  $hostElement$: HostElement;
1825
1924
  $instanceValues$?: Map<string, any>;
1925
+ /**
1926
+ * Prop/state changes accumulated since the last render, flushed to
1927
+ * `componentShouldUpdate` once per render cycle.
1928
+ */
1929
+ $queuedPropChanges$?: ComponentShouldUpdateChanges;
1826
1930
  $signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
1827
1931
  /** Dispose function that tears down all signal effects for this component. */
1828
1932
  $signalCleanup$?: () => void;
@@ -1858,6 +1962,21 @@ interface HostRef {
1858
1962
  * It is called after {@link HostRef.$onInstancePromise$} resolves.
1859
1963
  */
1860
1964
  $onRenderResolve$?: () => void;
1965
+ /**
1966
+ * A promise that resolves once this component's real `connectedCallback` has fired
1967
+ * for the first time. Created lazily - either by a descendant that needs to wait for
1968
+ * this component's connection before firing its own real `connectedCallback`
1969
+ * ({@link HOST_FLAGS.hasFiredConnected}), or by this component registering itself
1970
+ * with its nearest Stencil ancestor's `s-pc` list. This is what lets a component's
1971
+ * real `connectedCallback` (and, transitively, a pending ancestor's initial
1972
+ * `componentWillLoad`) stay ordered correctly regardless of which of an
1973
+ * ancestor/descendant pair's lazy module happens to resolve first.
1974
+ */
1975
+ $onFirstConnectPromise$?: Promise<void>;
1976
+ /**
1977
+ * A callback which resolves {@link HostRef.$onFirstConnectPromise$}
1978
+ */
1979
+ $onFirstConnectResolve$?: () => void;
1861
1980
  $vnode$?: VNode;
1862
1981
  $queuedListeners$?: [string, any][];
1863
1982
  $rmListeners$?: (() => void)[];
@@ -1867,6 +1986,11 @@ interface HostRef {
1867
1986
  * Defer connectedCallback until after first render for components with slot relocation.
1868
1987
  */
1869
1988
  $deferredConnectedCallback$?: boolean;
1989
+ /**
1990
+ * The number of times this host's lazy component load has failed and been retried.
1991
+ * Used to give up retrying after {@link MAX_LAZY_LOAD_RETRIES} failed attempts.
1992
+ */
1993
+ $loadRetryCount$?: number;
1870
1994
  }
1871
1995
  interface PlatformRuntime {
1872
1996
  /**
@@ -1939,4 +2063,4 @@ declare const BUILD: BuildConditionals;
1939
2063
  declare const Env: {};
1940
2064
  declare const NAMESPACE: string;
1941
2065
  //#endregion
1942
- export { VNode as S, FunctionalComponent as _, ComponentConstructor as a, ResolutionHandler as b, ComponentRuntimeMeta as c, HostRef as d, LazyBundlesRuntimeData as f, CustomElementsDefineOptions as g, RuntimeRef as h, ChildType as i, ComponentRuntimeMetaCompact as l, RenderNode as m, Env as n, ComponentConstructorChangeHandlers as o, PlatformRuntime as p, NAMESPACE as r, ComponentRuntimeHostListener as s, BUILD as t, HostElement as u, HTMLStencilElement as v, TagTransformer as x, JSXBase as y };
2066
+ export { ResolutionHandler as C, ReactiveControllerHostInterface as S, VNode as T, CustomElementsDefineOptions as _, ComponentConstructor as a, JSXBase as b, ComponentRuntimeMeta as c, HostRef as d, LazyBundlesRuntimeData as f, ComponentInterface as g, RuntimeRef as h, ChildType as i, ComponentRuntimeMetaCompact as l, RenderNode as m, Env as n, ComponentConstructorChangeHandlers as o, PlatformRuntime as p, NAMESPACE as r, ComponentRuntimeHostListener as s, BUILD as t, HostElement as u, FunctionalComponent as v, TagTransformer as w, MixedInCtor as x, HTMLStencilElement as y };
@@ -0,0 +1,108 @@
1
+ import { Ca as VNode, Et as HostElement, Sa as UserBuildConditionals, ba as ResolutionHandler, cn as RuntimeRef, ga as FunctionalComponent, ha as ErrorHandler, p as ChildType, va as RafCallback, xa as TagTransformer } from "./index-BHj3EBl2.mjs";
2
+ //#region src/client/client-build.d.ts
3
+ declare const Build: UserBuildConditionals;
4
+ //#endregion
5
+ //#region src/client/client-log.d.ts
6
+ declare const setErrorHandler: (handler: ErrorHandler) => ErrorHandler;
7
+ //#endregion
8
+ //#region src/client/client-task-queue.d.ts
9
+ declare const readTask: (cb: RafCallback) => void;
10
+ declare const writeTask: (cb: RafCallback) => void;
11
+ //#endregion
12
+ //#region src/client/client-window.d.ts
13
+ declare const setPlatformHelpers: (helpers: {
14
+ jmp?: (c: any) => any;
15
+ raf?: (c: any) => number;
16
+ ael?: (el: any, eventName: string, listener: any, options: any) => void;
17
+ rel?: (el: any, eventName: string, listener: any, options: any) => void;
18
+ ce?: (eventName: string, opts?: any) => any;
19
+ }) => void;
20
+ //#endregion
21
+ //#region src/app-data/index.d.ts
22
+ declare const Env: {};
23
+ //#endregion
24
+ //#region src/runtime/element.d.ts
25
+ declare const getElement: (ref: any) => HostElement;
26
+ /**
27
+ * Get the shadow root for a Stencil component's host element.
28
+ * This works for both open and closed shadow DOM modes.
29
+ *
30
+ * For closed shadow DOM, `element.shadowRoot` returns `null` by design,
31
+ * but Stencil stores the reference internally so components can still
32
+ * access their own shadow root.
33
+ *
34
+ * @param element The host element (from @Element() decorator)
35
+ * @returns The shadow root, or null if no shadow root exists
36
+ */
37
+ declare const getShadowRoot: (element: HTMLElement) => ShadowRoot | null;
38
+ //#endregion
39
+ //#region src/runtime/event-emitter.d.ts
40
+ declare const createEvent: (ref: RuntimeRef, name: string, flags: number) => {
41
+ emit: (detail: any) => CustomEvent<any>;
42
+ };
43
+ //#endregion
44
+ //#region src/runtime/fragment.d.ts
45
+ declare const Fragment: FunctionalComponent;
46
+ //#endregion
47
+ //#region src/runtime/mode.d.ts
48
+ declare const setMode: (handler: ResolutionHandler) => number;
49
+ declare const getMode: (ref: RuntimeRef) => string;
50
+ //#endregion
51
+ //#region src/runtime/render.d.ts
52
+ /**
53
+ * Method to render a virtual DOM tree to a container element.
54
+ *
55
+ * Supports efficient re-renders: calling `render()` again on the same container
56
+ * will diff the new VNode tree against the previous one and only update what changed,
57
+ * preserving existing DOM elements and their state.
58
+ *
59
+ * @example
60
+ * ```tsx
61
+ * import { render } from '@stencil/core';
62
+ *
63
+ * const vnode = (
64
+ * <div>
65
+ * <h1>Hello, world!</h1>
66
+ * </div>
67
+ * );
68
+ * render(vnode, document.body);
69
+ * ```
70
+ *
71
+ * @param vnode - The virtual DOM tree to render
72
+ * @param container - The container element to render the virtual DOM tree to
73
+ */
74
+ declare function render(vnode: VNode, container: Element): void;
75
+ //#endregion
76
+ //#region src/runtime/tag-transform.d.ts
77
+ /**
78
+ * Transforms a tag name using the current tag transformer
79
+ * @param tag - the tag to transform e.g. `my-tag`
80
+ * @returns the transformed tag e.g. `new-my-tag`
81
+ */
82
+ declare function transformTag<T extends string>(tag: T): T;
83
+ /**
84
+ * Sets the tag transformer to be used when rendering custom elements
85
+ * @param transformer the transformer function to use. Must return a string
86
+ */
87
+ declare function setTagTransformer(transformer: TagTransformer): void;
88
+ //#endregion
89
+ //#region src/runtime/update-component.d.ts
90
+ declare const getRenderingRef: () => any;
91
+ declare const forceUpdate: (ref: any) => boolean;
92
+ //#endregion
93
+ //#region src/runtime/vdom/h.d.ts
94
+ declare const h: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode;
95
+ declare const Host: {};
96
+ //#endregion
97
+ //#region src/runtime/vdom/jsx-runtime.d.ts
98
+ declare function jsx(type: any, props: any, key?: string): VNode;
99
+ /**
100
+ * @alias
101
+ */
102
+ declare const jsxs: typeof jsx;
103
+ /**
104
+ * @alias
105
+ */
106
+ declare const jsxDEV: typeof jsx;
107
+ //#endregion
108
+ export { Build as S, Env as _, h as a, writeTask as b, setTagTransformer as c, getMode as d, setMode as f, getShadowRoot as g, getElement as h, Host as i, transformTag as l, createEvent as m, jsxDEV as n, forceUpdate as o, Fragment as p, jsxs as r, getRenderingRef as s, jsx as t, render as u, setPlatformHelpers as v, setErrorHandler as x, readTask as y };
package/dist/index.d.mts CHANGED
@@ -11,6 +11,7 @@ export type {
11
11
  ComponentDidUpdate,
12
12
  ComponentInterface,
13
13
  ComponentOptions,
14
+ ComponentShouldUpdateChanges,
14
15
  ComponentWillLoad,
15
16
  ComponentWillUpdate,
16
17
  EventEmitter,
@@ -25,6 +26,8 @@ export type {
25
26
  PropOptions,
26
27
  QueueApi,
27
28
  RafCallback,
29
+ ReactiveController,
30
+ ReactiveControllerHostInterface,
28
31
  VNode,
29
32
  VNodeData,
30
33
  } from './declarations/stencil-public-runtime';
@@ -53,6 +56,7 @@ export {
53
56
  Mixin,
54
57
  Prop,
55
58
  readTask,
59
+ ReactiveControllerHost,
56
60
  render,
57
61
  resolveVar,
58
62
  setAssetPath,
package/dist/index.mjs CHANGED
@@ -1,2 +1,91 @@
1
- import { B as Event, C as setAssetPath, E as setPlatformHelpers, G as State, H as Method, I as AttachInternals, J as Build, K as Watch, L as AttrDeserialize, N as setErrorHandler, R as Component, S as getAssetPath, T as writeTask, U as Prop, V as Listen, W as PropSerialize, a as transformTag, b as getElement, c as Fragment, d as setMode, g as getRenderingRef, h as forceUpdate, i as setTagTransformer, m as h, o as render, p as Host, q as resolveVar, s as Mixin, u as getMode, w as readTask, x as getShadowRoot, z as Element } from "./client-CvcvHKz4.mjs";
2
- export { AttachInternals, AttrDeserialize, Build, Component, Element, Event, Fragment, Host, Listen, Method, Mixin, Prop, PropSerialize, State, Watch, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
1
+ import { C as setAssetPath, E as setPlatformHelpers, I as Build, N as setErrorHandler, S as getAssetPath, T as writeTask, a as transformTag, b as getElement, c as Mixin, d as setMode, g as getRenderingRef, h as forceUpdate, i as setTagTransformer, m as h, o as render, p as Host, s as ReactiveControllerHost, u as getMode, w as readTask, x as getShadowRoot } from "./client-D1MsT-Rp.mjs";
2
+ import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
+ //#region src/client/client-decorators.ts
4
+ /**
5
+ * Runtime stubs for Stencil decorators.
6
+ *
7
+ * These decorators are compile-time metadata flags that Stencil's compiler parses
8
+ * and transforms. At runtime, they do nothing - the actual component behavior is
9
+ * wired up by the compiled output, not by these decorators.
10
+ *
11
+ * These stubs exist so that:
12
+ * 1. Component classes can be instantiated directly in tests without going through
13
+ * Stencil's full compilation pipeline
14
+ * 2. The decorators don't throw "X is not a function" errors when used outside
15
+ * of Stencil's build process
16
+ */
17
+ /**
18
+ * No-op class decorator stub for @Component()
19
+ * @param _opts - component options (ignored at runtime)
20
+ * @returns a class decorator that returns the target unchanged
21
+ */
22
+ const Component = (_opts) => (target) => target;
23
+ /**
24
+ * No-op property decorator stub for @Element()
25
+ * @returns a property decorator that does nothing
26
+ */
27
+ const Element = () => () => {};
28
+ /**
29
+ * No-op property decorator stub for @Event()
30
+ * @param _opts - event options (ignored at runtime)
31
+ * @returns a property decorator that does nothing
32
+ */
33
+ const Event = (_opts) => () => {};
34
+ /**
35
+ * No-op property decorator stub for @AttachInternals()
36
+ * @param _opts - attach internals options (ignored at runtime)
37
+ * @returns a property decorator that does nothing
38
+ */
39
+ const AttachInternals = (_opts) => () => {};
40
+ /**
41
+ * No-op method decorator stub for @Listen()
42
+ * @param _eventName - event name to listen for (ignored at runtime)
43
+ * @param _opts - listen options (ignored at runtime)
44
+ * @returns a method decorator that does nothing
45
+ */
46
+ const Listen = (_eventName, _opts) => () => {};
47
+ /**
48
+ * No-op method decorator stub for @Method()
49
+ * @param _opts - method options (ignored at runtime)
50
+ * @returns a method decorator that does nothing
51
+ */
52
+ const Method = (_opts) => () => {};
53
+ /**
54
+ * No-op property decorator stub for @Prop()
55
+ * @param _opts - prop options (ignored at runtime)
56
+ * @returns a property decorator that does nothing
57
+ */
58
+ const Prop = (_opts) => () => {};
59
+ /**
60
+ * No-op property decorator stub for @State()
61
+ * @returns a property decorator that does nothing
62
+ */
63
+ const State = () => () => {};
64
+ /**
65
+ * No-op method decorator stub for @Watch()
66
+ * @param _propName - property name to watch (ignored at runtime)
67
+ * @param _opts - watch options (ignored at runtime)
68
+ * @returns a method decorator that does nothing
69
+ */
70
+ const Watch = (_propName, _opts) => () => {};
71
+ /**
72
+ * No-op method decorator stub for @PropSerialize()
73
+ * @param _propName - property name to serialize (ignored at runtime)
74
+ * @returns a method decorator that does nothing
75
+ */
76
+ const PropSerialize = (_propName) => () => {};
77
+ /**
78
+ * No-op method decorator stub for @AttrDeserialize()
79
+ * @param _propName - property name to deserialize (ignored at runtime)
80
+ * @returns a method decorator that does nothing
81
+ */
82
+ const AttrDeserialize = (_propName) => () => {};
83
+ /**
84
+ * No-op compile-time utility stub for resolveVar()
85
+ * At runtime, this just returns the string representation of whatever is passed in.
86
+ * @param variable - the variable to resolve
87
+ * @returns the string representation of the variable
88
+ */
89
+ const resolveVar = (variable) => String(variable);
90
+ //#endregion
91
+ export { AttachInternals, AttrDeserialize, Build, Component, Element, Event, Fragment, Host, Listen, Method, Mixin, Prop, PropSerialize, ReactiveControllerHost, State, Watch, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
@@ -1,2 +1,3 @@
1
- import { c as Fragment, n as jsxDEV, r as jsxs, t as jsx } from "./client-CvcvHKz4.mjs";
1
+ import { n as jsxDEV, r as jsxs, t as jsx } from "./client-D1MsT-Rp.mjs";
2
+ import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
2
3
  export { Fragment, jsx, jsxDEV, jsxs };