@stencil/core 5.0.0-alpha.1 → 5.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/app-data/index.d.ts +2 -0
  2. package/dist/{runtime/app-data → app-data}/index.js +17 -12
  3. package/dist/{client-B1nuvCd2.mjs → client-aTQ7xHxx.mjs} +2432 -2278
  4. package/dist/compiler/index.d.mts +6 -6
  5. package/dist/compiler/index.mjs +2 -2
  6. package/dist/compiler/utils/index.d.mts +2 -2
  7. package/dist/compiler/utils/index.mjs +3 -3
  8. package/dist/{compiler-LX4_RKKd.mjs → compiler-DCN7Np2A.mjs} +14854 -13500
  9. package/dist/declarations/stencil-public-compiler.d.ts +4374 -2
  10. package/dist/declarations/stencil-public-compiler.js +2 -4
  11. package/dist/declarations/stencil-public-docs.d.ts +504 -1
  12. package/dist/declarations/stencil-public-runtime.d.ts +1982 -2
  13. package/dist/{index-fIuYTL9f.d.mts → index-BvkyxSY6.d.mts} +29 -2
  14. package/dist/{index-D-LlB2nw.d.mts → index-vY35H18z.d.mts} +795 -1188
  15. package/dist/{index-BONzXKJt.d.ts → index-xAkMgLX_.d.ts} +88 -39
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.mjs +2 -2
  18. package/dist/jsx-runtime.d.mts +18 -0
  19. package/dist/jsx-runtime.mjs +2 -0
  20. package/dist/{node-SxQIOCZE.mjs → node--akYC-sG.mjs} +20 -30
  21. package/dist/regular-expression-CFVJOTUh.mjs +508 -0
  22. package/dist/{runtime-CF9DJtSu.js → runtime/client/lazy.js} +2675 -2493
  23. package/dist/runtime/client/{index.d.ts → runtime.d.ts} +106 -78
  24. package/dist/runtime/client/{index.js → runtime.js} +2545 -2487
  25. package/dist/runtime/index.d.ts +58 -29
  26. package/dist/runtime/index.js +4795 -2
  27. package/dist/runtime/server/index.d.mts +103 -70
  28. package/dist/runtime/server/index.mjs +2545 -2350
  29. package/dist/runtime/server/runner.d.mts +44 -48
  30. package/dist/runtime/server/runner.mjs +347 -751
  31. package/dist/signals/index.d.ts +47 -0
  32. package/dist/signals/index.js +199 -0
  33. package/dist/sys/node/index.d.mts +1 -1
  34. package/dist/sys/node/index.mjs +1 -1
  35. package/dist/sys/node/worker.mjs +2 -2
  36. package/dist/testing/index.d.mts +97 -3
  37. package/dist/testing/index.mjs +367 -59
  38. package/dist/{validation-CaCgjw-f.mjs → validation-ByxKj8bC.mjs} +116 -99
  39. package/package.json +47 -38
  40. package/dist/index-CHjZtib0.d.ts +0 -30
  41. package/dist/jsx-runtime-DBzBJLKk.d.ts +0 -28
  42. package/dist/jsx-runtime.d.ts +0 -2
  43. package/dist/jsx-runtime.js +0 -2
  44. package/dist/runtime/app-data/index.d.ts +0 -2
  45. package/dist/serialize-BkYHk7Mi.mjs +0 -766
  46. package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
  47. package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
  48. /package/dist/{runtime/app-globals → app-globals}/index.d.ts +0 -0
  49. /package/dist/{runtime/app-globals → app-globals}/index.js +0 -0
  50. /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
@@ -96,6 +96,14 @@ interface ComponentInterface {
96
96
  render?(): any;
97
97
  [memberName: string]: any;
98
98
  }
99
+ /**
100
+ * Minimal interface matched by signal objects (from @stencil/core/signals).
101
+ * Used in JSX attribute types.
102
+ */
103
+ interface SignalRef<T = any> {
104
+ readonly value: T;
105
+ peek(): T;
106
+ }
99
107
  /**
100
108
  * Utilities for working with functional Stencil components. An object
101
109
  * conforming to this interface is passed by the Stencil runtime as the third
@@ -137,7 +145,7 @@ interface FunctionalUtilities {
137
145
  map: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => ChildNode$1) => VNode[];
138
146
  }
139
147
  interface FunctionalComponent<T = {}> {
140
- (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
148
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | null;
141
149
  }
142
150
  /**
143
151
  * A Child VDOM node
@@ -148,7 +156,7 @@ interface FunctionalComponent<T = {}> {
148
156
  * {@link FunctionalUtilities}).
149
157
  */
150
158
  interface ChildNode$1 {
151
- vtag?: string | number | Function;
159
+ vtag?: string | number | Function | symbol | null;
152
160
  vkey?: string | number;
153
161
  vtext?: string;
154
162
  vchildren?: VNode[];
@@ -160,13 +168,15 @@ interface ChildNode$1 {
160
168
  */
161
169
  interface VNode {
162
170
  $flags$: number;
163
- $tag$: string | number | Function;
171
+ $tag$: string | number | Function | symbol | null;
164
172
  $elm$: any;
165
173
  $text$: string;
166
174
  $children$: VNode[];
167
175
  $attrs$?: any;
168
176
  $name$?: string;
169
177
  $key$?: string | number;
178
+ /** Signal reference for vdom bypass: signal text nodes store the signal here. */
179
+ $signal$?: any;
170
180
  }
171
181
  declare namespace JSXBase {
172
182
  interface IntrinsicElements {
@@ -486,6 +496,7 @@ declare namespace JSXBase {
486
496
  importance?: 'low' | 'auto' | 'high';
487
497
  height?: number | string;
488
498
  loading?: 'lazy' | 'auto' | 'eager';
499
+ referrerPolicy?: ReferrerPolicy;
489
500
  sizes?: string;
490
501
  src?: string;
491
502
  srcSet?: string;
@@ -801,7 +812,7 @@ declare namespace JSXBase {
801
812
  autofocus?: boolean | string;
802
813
  class?: string | {
803
814
  [className: string]: boolean;
804
- };
815
+ } | SignalRef<string>;
805
816
  contentEditable?: boolean | string;
806
817
  contenteditable?: boolean | string;
807
818
  contextMenu?: string;
@@ -860,7 +871,7 @@ declare namespace JSXBase {
860
871
  interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
861
872
  class?: string | {
862
873
  [className: string]: boolean;
863
- };
874
+ } | SignalRef<string>;
864
875
  color?: string;
865
876
  height?: number | string;
866
877
  id?: string;
@@ -1261,12 +1272,13 @@ declare namespace JSXBase {
1261
1272
  interface JSXAttributes<T = Element$1> {
1262
1273
  key?: string | number;
1263
1274
  ref?: (elm?: T) => void;
1275
+ children?: any;
1264
1276
  }
1265
1277
  interface CustomElementsDefineOptions {
1266
1278
  exclude?: string[];
1267
1279
  syncQueue?: boolean;
1268
- /** @deprecated in-favour of `setTagTransformer` and `transformTag` */
1269
- transformTagName?: (tagName: string) => string;
1280
+ /** Scoped custom element registry to define components in. Defaults to the global registry. */
1281
+ registry?: CustomElementRegistry;
1270
1282
  jmp?: (c: Function) => any;
1271
1283
  raf?: (c: FrameRequestCallback) => number;
1272
1284
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
@@ -1281,6 +1293,7 @@ interface BuildFeatures {
1281
1293
  formAssociated: boolean;
1282
1294
  shadowDom: boolean;
1283
1295
  shadowDelegatesFocus: boolean;
1296
+ shadowModeClosed: boolean;
1284
1297
  shadowSlotAssignmentManual: boolean;
1285
1298
  scoped: boolean;
1286
1299
  /**
@@ -1302,7 +1315,12 @@ interface BuildFeatures {
1302
1315
  vdomStyle: boolean;
1303
1316
  vdomText: boolean;
1304
1317
  vdomXlink: boolean;
1318
+ vdomSignals: boolean;
1305
1319
  slotRelocation: boolean;
1320
+ patchAll: boolean;
1321
+ patchChildren: boolean;
1322
+ patchClone: boolean;
1323
+ patchInsert: boolean;
1306
1324
  slot: boolean;
1307
1325
  svg: boolean;
1308
1326
  element: boolean;
@@ -1311,10 +1329,6 @@ interface BuildFeatures {
1311
1329
  hostListenerTargetWindow: boolean;
1312
1330
  hostListenerTargetDocument: boolean;
1313
1331
  hostListenerTargetBody: boolean;
1314
- /**
1315
- * @deprecated Prevented from new apps, but left in for older collections
1316
- */
1317
- hostListenerTargetParent: boolean;
1318
1332
  hostListenerTarget: boolean;
1319
1333
  method: boolean;
1320
1334
  prop: boolean;
@@ -1348,22 +1362,27 @@ interface BuildConditionals extends Partial<BuildFeatures> {
1348
1362
  lazyLoad?: boolean;
1349
1363
  profile?: boolean;
1350
1364
  constructableCSS?: boolean;
1351
- appendChildSlotFix?: boolean;
1352
- slotChildNodesFix?: boolean;
1353
- scopedSlotTextContentFix?: boolean;
1354
- cloneNodeFix?: boolean;
1365
+ /** True when `compat.lightDomPatches === true` - enables `applyLightDomPatches` shortcut. */
1366
+ lightDomPatches?: boolean;
1367
+ /** Patch `childNodes`/`children` getters on light-dom slotted components. */
1368
+ slotChildNodes?: boolean;
1369
+ /** Patch `cloneNode()` on light-dom slotted components. */
1370
+ slotCloneNode?: boolean;
1371
+ /** Patch `appendChild`/`insertBefore`/`removeChild` on light-dom slotted components. */
1372
+ slotDomMutations?: boolean;
1373
+ /** Patch `textContent` on light-dom slotted components. */
1374
+ slotTextContent?: boolean;
1355
1375
  hydratedAttribute?: boolean;
1356
1376
  hydratedClass?: boolean;
1357
1377
  hydratedSelectorName?: string;
1378
+ /** True when a global-style input contains `@import "stencil-hydrate"` - suppresses dynamic style injection in the loader. */
1379
+ staticHydrationStyles?: boolean;
1358
1380
  initializeNextTick?: boolean;
1359
- shadowDomShim?: boolean;
1360
1381
  asyncQueue?: boolean;
1361
- transformTagName?: boolean;
1362
1382
  additionalTagTransformers?: boolean | 'prod';
1363
- attachStyles?: boolean;
1364
- experimentalSlotFixes?: boolean;
1365
- experimentalScopedSlotChanges?: boolean;
1366
- addGlobalStyleToComponents?: boolean | 'client';
1383
+ signalBacking?: boolean;
1384
+ /** True when JSX signal bypass is active - text nodes and attributes backed by Signal objects update the DOM directly. Auto-enabled when `signalBacking: true`. */
1385
+ vdomSignals?: boolean;
1367
1386
  }
1368
1387
  interface ComponentConstructor {
1369
1388
  is?: string;
@@ -1428,7 +1447,7 @@ interface HostElement extends HTMLElement {
1428
1447
  disconnectedCallback?: () => void;
1429
1448
  host?: Element;
1430
1449
  forceUpdate?: () => void;
1431
- __stencil__getHostRef?: () => HostRef;
1450
+ __s_ghr?: () => HostRef;
1432
1451
  /**
1433
1452
  * Unique stencil id for this element
1434
1453
  */
@@ -1576,61 +1595,61 @@ interface RenderNode extends HostElement {
1576
1595
  ['s-en']?: '' | /*shadow*/'c';
1577
1596
  /**
1578
1597
  * On a `scoped: true` component
1579
- * with `experimentalSlotFixes` flag enabled,
1598
+ * with `lightDomPatches` flag enabled,
1580
1599
  * returns the internal `childNodes` of the component
1581
1600
  */
1582
1601
  readonly __childNodes?: NodeListOf<ChildNode>;
1583
1602
  /**
1584
1603
  * On a `scoped: true` component
1585
- * with `experimentalSlotFixes` flag enabled,
1604
+ * with `lightDomPatches` flag enabled,
1586
1605
  * returns the internal `children` of the component
1587
1606
  */
1588
1607
  readonly __children?: HTMLCollectionOf<Element>;
1589
1608
  /**
1590
1609
  * On a `scoped: true` component
1591
- * with `experimentalSlotFixes` flag enabled,
1610
+ * with `lightDomPatches` flag enabled,
1592
1611
  * returns the internal `firstChild` of the component
1593
1612
  */
1594
1613
  readonly __firstChild?: ChildNode;
1595
1614
  /**
1596
1615
  * On a `scoped: true` component
1597
- * with `experimentalSlotFixes` flag enabled,
1616
+ * with `lightDomPatches` flag enabled,
1598
1617
  * returns the internal `lastChild` of the component
1599
1618
  */
1600
1619
  readonly __lastChild?: ChildNode;
1601
1620
  /**
1602
1621
  * On a `scoped: true` component
1603
- * with `experimentalSlotFixes` flag enabled,
1622
+ * with `lightDomPatches` flag enabled,
1604
1623
  * returns the internal `textContent` of the component
1605
1624
  */
1606
1625
  __textContent?: string;
1607
1626
  /**
1608
1627
  * On a `scoped: true` component
1609
- * with `experimentalSlotFixes` flag enabled,
1628
+ * with `lightDomPatches` flag enabled,
1610
1629
  * gives access to the original `append` method
1611
1630
  */
1612
1631
  __append?: (...nodes: (Node | string)[]) => void;
1613
1632
  /**
1614
1633
  * On a `scoped: true` component
1615
- * with `experimentalSlotFixes` flag enabled,
1634
+ * with `lightDomPatches` flag enabled,
1616
1635
  * gives access to the original `prepend` method
1617
1636
  */
1618
1637
  __prepend?: (...nodes: (Node | string)[]) => void;
1619
1638
  /**
1620
1639
  * On a `scoped: true` component
1621
- * with `experimentalSlotFixes` flag enabled,
1640
+ * with `lightDomPatches` flag enabled,
1622
1641
  * gives access to the original `appendChild` method
1623
1642
  */
1624
1643
  __appendChild?: <T extends Node>(newChild: T) => T;
1625
1644
  /**
1626
1645
  * On a `scoped: true` component
1627
- * with `experimentalSlotFixes` flag enabled,
1646
+ * with `lightDomPatches` flag enabled,
1628
1647
  * gives access to the original `insertBefore` method
1629
1648
  */
1630
1649
  __insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
1631
1650
  /**
1632
1651
  * On a `scoped: true` component
1633
- * with `experimentalSlotFixes` flag enabled,
1652
+ * with `lightDomPatches` flag enabled,
1634
1653
  * gives access to the original `removeChild` method
1635
1654
  */
1636
1655
  __removeChild?: <T extends Node>(child: T) => T;
@@ -1668,31 +1687,31 @@ interface PatchedSlotNode extends Node {
1668
1687
  ['s-sr']?: boolean;
1669
1688
  /**
1670
1689
  * On a `scoped: true` component
1671
- * with `experimentalSlotFixes` flag enabled,
1690
+ * with `lightDomPatches` flag enabled,
1672
1691
  * returns the actual `parentNode` of the component
1673
1692
  */
1674
1693
  __parentNode?: RenderNode;
1675
1694
  /**
1676
1695
  * On a `scoped: true` component
1677
- * with `experimentalSlotFixes` flag enabled,
1696
+ * with `lightDomPatches` flag enabled,
1678
1697
  * returns the actual `nextSibling` of the component
1679
1698
  */
1680
1699
  __nextSibling?: RenderNode;
1681
1700
  /**
1682
1701
  * On a `scoped: true` component
1683
- * with `experimentalSlotFixes` flag enabled,
1702
+ * with `lightDomPatches` flag enabled,
1684
1703
  * returns the actual `previousSibling` of the component
1685
1704
  */
1686
1705
  __previousSibling?: RenderNode;
1687
1706
  /**
1688
1707
  * On a `scoped: true` component
1689
- * with `experimentalSlotFixes` flag enabled,
1708
+ * with `lightDomPatches` flag enabled,
1690
1709
  * returns the actual `nextElementSibling` of the component
1691
1710
  */
1692
1711
  __nextElementSibling?: RenderNode;
1693
1712
  /**
1694
1713
  * On a `scoped: true` component
1695
- * with `experimentalSlotFixes` flag enabled,
1714
+ * with `lightDomPatches` flag enabled,
1696
1715
  * returns the actual `nextElementSibling` of the component
1697
1716
  */
1698
1717
  __previousElementSibling?: RenderNode;
@@ -1793,7 +1812,7 @@ type ComponentRuntimeReflectingAttr = [string, string | undefined];
1793
1812
  * associated {@link HostRef} instance.
1794
1813
  */
1795
1814
  type RuntimeRef = HostElement | {
1796
- __stencil__getHostRef?: () => HostRef;
1815
+ __s_ghr?: () => HostRef;
1797
1816
  };
1798
1817
  /**
1799
1818
  * Interface used to track an Element, it's virtual Node (`VNode`), and other data
@@ -1804,6 +1823,9 @@ interface HostRef {
1804
1823
  $cmpMeta$: ComponentRuntimeMeta;
1805
1824
  $hostElement$: HostElement;
1806
1825
  $instanceValues$?: Map<string, any>;
1826
+ $signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
1827
+ /** Dispose function that tears down all signal effects for this component. */
1828
+ $signalCleanup$?: () => void;
1807
1829
  $serializerValues$?: Map<string, string>;
1808
1830
  $lazyInstance$?: ComponentInterface;
1809
1831
  /**
@@ -1890,4 +1912,31 @@ interface PlatformRuntime {
1890
1912
  }
1891
1913
  type ChildType = VNode | number | string;
1892
1914
  //#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 };
1915
+ //#region src/app-data/index.d.ts
1916
+ /**
1917
+ * A collection of default build flags for a Stencil project.
1918
+ *
1919
+ * This collection can be found throughout the Stencil codebase, often imported from the `virtual:app-data` module like so:
1920
+ * ```ts
1921
+ * import { BUILD } from 'virtual:app-data';
1922
+ * ```
1923
+ * and is used to determine if a portion of the output of a Stencil _project_'s compilation step can be eliminated.
1924
+ *
1925
+ * e.g. When `BUILD.allRenderFn` evaluates to `false`, the compiler will eliminate conditional statements like:
1926
+ * ```ts
1927
+ * if (BUILD.allRenderFn) {
1928
+ * // some code that will be eliminated if BUILD.allRenderFn is false
1929
+ * }
1930
+ * ```
1931
+ *
1932
+ * `virtual:app-data`, the module that `BUILD` is imported from, is an alias for `@stencil/core/app-data`, and is
1933
+ * partially referenced by {@link STENCIL_APP_DATA_ID}. The `src/compiler/bundle/app-data-plugin.ts` references
1934
+ * `STENCIL_APP_DATA_ID` uses it to replace these defaults with {@link BuildConditionals} that are derived from a
1935
+ * Stencil project's contents (i.e. metadata from the components). This replacement happens at a Stencil project's
1936
+ * compile time. Such code can be found at `src/compiler/app-core/app-data.ts`.
1937
+ */
1938
+ declare const BUILD: BuildConditionals;
1939
+ declare const Env: {};
1940
+ declare const NAMESPACE: string;
1941
+ //#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 };
package/dist/index.d.mts CHANGED
@@ -44,13 +44,13 @@ export {
44
44
  getElement,
45
45
  getMode,
46
46
  getRenderingRef,
47
+ getShadowRoot,
47
48
  h,
48
49
  Host,
49
50
  Listen,
50
51
  Method,
51
52
  MixedInCtor,
52
53
  Mixin,
53
- MixinFactory,
54
54
  Prop,
55
55
  readTask,
56
56
  render,
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { A as Event, D as AttrDeserialize, E as AttachInternals, F as State, I as Watch, L as resolveVar, M as Method, N as Prop, O as Component, P as PropSerialize, R as Build, S as setPlatformHelpers, _ as h, a as Mixin, b as readTask, c as forceUpdate, f as getElement, g as Host, i as render, j as Listen, k as Element, l as getRenderingRef, m as setMode, n as setTagTransformer, o as Fragment, p as getMode, r as transformTag, v as getAssetPath, w as setErrorHandler, x as writeTask, y as setAssetPath } from "./client-B1nuvCd2.mjs";
2
- export { AttachInternals, AttrDeserialize, Build, Component, Element, Event, Fragment, Host, Listen, Method, Mixin, Prop, PropSerialize, State, Watch, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, h, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
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-aTQ7xHxx.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 };
@@ -0,0 +1,18 @@
1
+ import type { VNode, JSXBase, JSX as LocalJSX } from './declarations/stencil-public-runtime';
2
+
3
+ export { Fragment } from './declarations/stencil-public-runtime';
4
+ export function jsx(type: any, props: any, key?: string): VNode;
5
+ export function jsxs(type: any, props: any, key?: string): VNode;
6
+ export function jsxDEV(type: any, props: any, key?: string): VNode;
7
+
8
+ export namespace JSX {
9
+ type BaseElements = LocalJSX.IntrinsicElements & JSXBase.IntrinsicElements;
10
+
11
+ export type IntrinsicElements = {
12
+ [K in keyof BaseElements]: BaseElements[K] & { children?: any };
13
+ } & {
14
+ [tagName: string]: any;
15
+ };
16
+
17
+ export type Element = VNode;
18
+ }
@@ -0,0 +1,2 @@
1
+ import { c as Fragment, n as jsxDEV, r as jsxs, t as jsx } from "./client-aTQ7xHxx.mjs";
2
+ export { Fragment, jsx, jsxDEV, jsxs };
@@ -1,25 +1,25 @@
1
- import { n as __require } from "./chunk-CjcI7cDX.mjs";
2
- import "./client-B1nuvCd2.mjs";
3
- import { _ as isString, c as flatOne, p as isFunction, y as noop } from "./serialize-BkYHk7Mi.mjs";
4
- import { bt as isGlob, dt as TASK_CANCELED_MSG, ft as buildError, ht as catchError, rt as normalizePath, vt as shouldIgnoreError } from "./validation-CaCgjw-f.mjs";
1
+ import { n as __require } from "./chunk-z9aeyW2b.mjs";
2
+ import "./client-aTQ7xHxx.mjs";
3
+ import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-CFVJOTUh.mjs";
4
+ import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-ByxKj8bC.mjs";
5
+ import fs from "node:fs";
5
6
  import path from "node:path";
6
7
  import { pathToFileURL } from "node:url";
7
8
  import path$1 from "path";
8
- import fs from "graceful-fs";
9
+ import * as cp from "child_process";
9
10
  import chalk from "chalk";
10
11
  import { createHash } from "node:crypto";
11
12
  import * as os from "node:os";
12
13
  import { cpus, freemem, platform, release, tmpdir, totalmem } from "node:os";
13
14
  import * as parcelWatcher from "@parcel/watcher";
14
- import { glob } from "glob";
15
- import { promisify } from "util";
15
+ import { glob } from "tinyglobby";
16
+ import { copyFile, mkdir, readdir, stat } from "node:fs/promises";
16
17
  import semverLte from "semver/functions/lte.js";
17
18
  import major from "semver/functions/major.js";
18
19
  import satisfies from "semver/functions/satisfies.js";
19
20
  import { cpus as cpus$1, tmpdir as tmpdir$1 } from "os";
20
21
  import semverLt from "semver/functions/lt.js";
21
22
  import { EventEmitter } from "events";
22
- import * as cp from "child_process";
23
23
  //#region src/compiler/events.ts
24
24
  const buildEvents = () => {
25
25
  const evCallbacks = [];
@@ -106,7 +106,7 @@ const LOG_LEVELS = [
106
106
  /**
107
107
  * The collection of valid export behaviors.
108
108
  * Used to generate a type for typed configs as well as output target validation
109
- * for the `dist-custom-elements` output target.
109
+ * for the `standalone` output target.
110
110
  *
111
111
  * Adding a value to this const array will automatically add it as a valid option on the
112
112
  * output target configuration for `customElementsExportBehavior`.
@@ -115,8 +115,7 @@ const LOG_LEVELS = [
115
115
  * - `auto-define-custom-elements`: Enables the auto-definition of a component and its children (recursively) in the custom elements registry. This
116
116
  * functionality allows consumers to bypass the explicit call to define a component, its children, its children's
117
117
  * children, etc. Users of this flag should be aware that enabling this functionality may increase bundle size.
118
- * - `bundle`: A `defineCustomElements` function will be exported from the distribution directory. This behavior was added to allow easy migration
119
- * from `dist-custom-elements-bundle` to `dist-custom-elements`.
118
+ * - `bundle`: A `defineCustomElements` function will be exported from the distribution directory.
120
119
  * - `single-export-module`: All components will be re-exported from the specified directory's root `index.js` file.
121
120
  */
122
121
  const CustomElementsExportBehaviorOptions = [
@@ -734,12 +733,6 @@ function setupNodeProcess(c) {
734
733
  });
735
734
  }
736
735
  //#endregion
737
- //#region src/sys/node/node-fs-promisify.ts
738
- const copyFile = promisify(fs.copyFile);
739
- const mkdir = promisify(fs.mkdir);
740
- const readdir = promisify(fs.readdir);
741
- const stat = promisify(fs.stat);
742
- //#endregion
743
736
  //#region src/sys/node/node-copy-tasks.ts
744
737
  /**
745
738
  * Copy a file with retry logic for transient Windows errors (EBUSY, EPERM, EACCES).
@@ -879,8 +872,12 @@ function shouldIgnore({ src, ignore = [] }) {
879
872
  const filePath = src.trim().toLowerCase();
880
873
  return ignore.some((ignoreFile) => filePath.endsWith(ignoreFile));
881
874
  }
882
- function asyncGlob(pattern, opts) {
883
- return glob(pattern, opts);
875
+ function asyncGlob(pattern, opts = {}) {
876
+ const { nodir, ...rest } = opts;
877
+ return glob(pattern, {
878
+ ...rest,
879
+ onlyFiles: nodir ?? true
880
+ });
884
881
  }
885
882
  //#endregion
886
883
  //#region src/sys/node/node-lazy-require.ts
@@ -889,6 +886,8 @@ function asyncGlob(pattern, opts) {
889
886
  * returning diagnostic errors if requirements aren't met.
890
887
  */
891
888
  var NodeLazyRequire = class {
889
+ nodeResolveModule;
890
+ lazyDependencies;
892
891
  ensured = /* @__PURE__ */ new Set();
893
892
  /**
894
893
  * Create a NodeLazyRequire instance
@@ -1131,6 +1130,7 @@ const INDENT = ` `;
1131
1130
  * thread so that messages may be passed to it.
1132
1131
  */
1133
1132
  var NodeWorkerMain = class extends EventEmitter {
1133
+ id;
1134
1134
  /**
1135
1135
  * A handle for the OS process that is running our worker code
1136
1136
  */
@@ -1237,6 +1237,7 @@ var NodeWorkerMain = class extends EventEmitter {
1237
1237
  * node.js workers ({@link NodeWorkerMain} instances)
1238
1238
  */
1239
1239
  var NodeWorkerController = class extends EventEmitter {
1240
+ forkModulePath;
1240
1241
  workerIds = 0;
1241
1242
  stencilId = 0;
1242
1243
  isEnding = false;
@@ -1494,17 +1495,6 @@ function createNodeSys(c = {}) {
1494
1495
  encodeToBase64(str) {
1495
1496
  return Buffer.from(str).toString("base64");
1496
1497
  },
1497
- async ensureDependencies() {
1498
- console.warn(`ensureDependencies will be removed in a future version of Stencil.`);
1499
- console.warn(`To get the stencilPath, please use getCompilerExecutingPath().`);
1500
- return {
1501
- stencilPath: sys.getCompilerExecutingPath(),
1502
- diagnostics: []
1503
- };
1504
- },
1505
- async ensureResources() {
1506
- console.warn(`ensureResources is a no-op, and will be removed in a future version of Stencil`);
1507
- },
1508
1498
  exit: async (exitCode) => {
1509
1499
  await runInterruptsCallbacks();
1510
1500
  process.exitCode = exitCode;