@stencil/core 5.0.0-alpha.5 → 5.0.0-alpha.7

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 (43) hide show
  1. package/dist/{client-Dnio47yQ.mjs → client-Dd-NB5Ei.mjs} +2324 -2125
  2. package/dist/compiler/index.d.mts +5 -5
  3. package/dist/compiler/index.mjs +2 -2
  4. package/dist/compiler/utils/index.d.mts +2 -2
  5. package/dist/compiler/utils/index.mjs +3 -3
  6. package/dist/{compiler-Dxri2g8Z.mjs → compiler-BmT_yLHU.mjs} +13458 -12695
  7. package/dist/declarations/stencil-public-compiler.d.ts +273 -144
  8. package/dist/declarations/stencil-public-docs.d.ts +10 -0
  9. package/dist/declarations/stencil-public-runtime.d.ts +49 -12
  10. package/dist/{index-D61XZw0f.d.ts → index-BuveMLxy.d.ts} +82 -31
  11. package/dist/{index-D5zaocDq.d.mts → index-CVhWFUM0.d.mts} +249 -204
  12. package/dist/{index-Dat4djoo.d.mts → index-ch-cf-bZ.d.mts} +13 -2
  13. package/dist/index.d.mts +0 -1
  14. package/dist/index.mjs +1 -1
  15. package/dist/jsx-runtime.d.mts +18 -0
  16. package/dist/jsx-runtime.mjs +2 -0
  17. package/dist/{node-pj6rF4Wt.mjs → node-10UamZmn.mjs} +59 -55
  18. package/dist/{regular-expression-D0_N0PGa.mjs → regular-expression-CFVJOTUh.mjs} +83 -8
  19. package/dist/runtime/app-data/index.d.ts +1 -1
  20. package/dist/runtime/app-data/index.js +15 -9
  21. package/dist/{runtime-CKyUrF4i.js → runtime/client/lazy.js} +2539 -2199
  22. package/dist/runtime/client/{index.d.ts → runtime.d.ts} +49 -40
  23. package/dist/runtime/client/{index.js → runtime.js} +2401 -2185
  24. package/dist/runtime/index.d.ts +20 -3
  25. package/dist/runtime/index.js +4956 -2
  26. package/dist/runtime/server/index.d.mts +30 -39
  27. package/dist/runtime/server/index.mjs +2369 -2185
  28. package/dist/runtime/server/runner.d.mts +4 -6
  29. package/dist/runtime/server/runner.mjs +307 -361
  30. package/dist/signals/index.d.ts +47 -0
  31. package/dist/signals/index.js +199 -0
  32. package/dist/sys/node/index.d.mts +1 -1
  33. package/dist/sys/node/index.mjs +1 -1
  34. package/dist/sys/node/worker.mjs +2 -2
  35. package/dist/testing/index.d.mts +97 -3
  36. package/dist/testing/index.mjs +199 -50
  37. package/dist/{validation-BA8nzXu_.mjs → validation-ByxKj8bC.mjs} +21 -32
  38. package/package.json +41 -27
  39. package/dist/index-D-XN9HW_.d.ts +0 -30
  40. package/dist/jsx-runtime-B3vQbWIW.d.ts +0 -28
  41. package/dist/jsx-runtime.d.ts +0 -2
  42. package/dist/jsx-runtime.js +0 -2
  43. /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { Tt as HostElement, da as RafCallback, fa as ResolutionHandler, ha as VNode, la as ErrorHandler, ma as UserBuildConditionals, p as ChildType, pa as TagTransformer, sn as RuntimeRef, ua as FunctionalComponent } from "./index-D5zaocDq.mjs";
1
+ import { Et as HostElement, cn as RuntimeRef, da as FunctionalComponent, fa as RafCallback, ga as VNode, ha as UserBuildConditionals, ma as TagTransformer, p as ChildType, pa as ResolutionHandler, ua as ErrorHandler } from "./index-CVhWFUM0.mjs";
2
2
 
3
3
  //#region src/client/client-build.d.ts
4
4
  declare const Build: UserBuildConditionals;
@@ -191,4 +191,15 @@ declare const forceUpdate: (ref: any) => boolean;
191
191
  declare const h: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode;
192
192
  declare const Host: {};
193
193
  //#endregion
194
- export { PropSerialize as A, AttrDeserialize as C, Listen as D, Event as E, Watch as M, resolveVar as N, Method as O, Build as P, AttachInternals as S, Element$1 as T, Env as _, setTagTransformer as a, writeTask as b, getMode as c, Fragment as d, createEvent as f, setAssetPath as g, getAssetPath as h, getRenderingRef as i, State as j, Prop as k, setMode as l, getShadowRoot as m, h as n, transformTag as o, getElement as p, forceUpdate as r, render as s, Host as t, Mixin as u, setPlatformHelpers as v, Component as w, setErrorHandler as x, readTask as y };
194
+ //#region src/runtime/vdom/jsx-runtime.d.ts
195
+ declare function jsx(type: any, props: any, key?: string): VNode;
196
+ /**
197
+ * @alias
198
+ */
199
+ declare const jsxs: typeof jsx;
200
+ /**
201
+ * @alias
202
+ */
203
+ declare const jsxDEV: typeof jsx;
204
+ //#endregion
205
+ export { Listen as A, writeTask as C, Component as D, AttrDeserialize as E, Watch as F, resolveVar as I, Build as L, Prop as M, PropSerialize as N, Element$1 as O, State as P, readTask as S, AttachInternals as T, getShadowRoot as _, h as a, Env as b, setTagTransformer as c, getMode as d, setMode as f, getElement as g, createEvent as h, Host as i, Method as j, Event as k, transformTag as l, Fragment as m, jsxDEV as n, forceUpdate as o, Mixin as p, jsxs as r, getRenderingRef as s, jsx as t, render as u, getAssetPath as v, setErrorHandler as w, setPlatformHelpers as x, setAssetPath as y };
package/dist/index.d.mts CHANGED
@@ -51,7 +51,6 @@ export {
51
51
  Method,
52
52
  MixedInCtor,
53
53
  Mixin,
54
- MixinFactory,
55
54
  Prop,
56
55
  readTask,
57
56
  render,
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { A as Element, C as setPlatformHelpers, D as AttachInternals, F as PropSerialize, I as State, L as Watch, M as Listen, N as Method, O as AttrDeserialize, P as Prop, R as resolveVar, S as writeTask, T as setErrorHandler, _ as getElement, a as Mixin, b as setAssetPath, c as forceUpdate, f as getMode, g as h, h as Host, i as render, j as Event, k as Component, l as getRenderingRef, n as setTagTransformer, o as Fragment, p as setMode, r as transformTag, v as getShadowRoot, x as readTask, y as getAssetPath, z as Build } from "./client-Dnio47yQ.mjs";
1
+ import { A as AttachInternals, B as Watch, C as setAssetPath, E as setPlatformHelpers, F as Listen, H as Build, I as Method, L as Prop, M as Component, N as Element, O as setErrorHandler, P as Event, R as PropSerialize, S as getAssetPath, T as writeTask, V as resolveVar, _ as getRenderingRef, a as setTagTransformer, b as getElement, c as Mixin, d as getMode, f as setMode, g as forceUpdate, h, j as AttrDeserialize, l as Fragment, m as Host, o as transformTag, s as render, w as readTask, x as getShadowRoot, z as State } from "./client-Dd-NB5Ei.mjs";
2
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 { i as jsxs, l as Fragment, n as jsx, r as jsxDEV } from "./client-Dd-NB5Ei.mjs";
2
+ export { Fragment, jsx, jsxDEV, jsxs };
@@ -1,11 +1,11 @@
1
- import { n as __require } from "./chunk-CjcI7cDX.mjs";
2
- import "./client-Dnio47yQ.mjs";
3
- import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-D0_N0PGa.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-BA8nzXu_.mjs";
1
+ import { n as __require } from "./chunk-z9aeyW2b.mjs";
2
+ import "./client-Dd-NB5Ei.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
5
  import fs from "node:fs";
6
- import nodePath from "node:path";
6
+ import path from "node:path";
7
7
  import { pathToFileURL } from "node:url";
8
- import path from "path";
8
+ import path$1 from "path";
9
9
  import * as cp from "child_process";
10
10
  import chalk from "chalk";
11
11
  import { createHash } from "node:crypto";
@@ -675,7 +675,7 @@ function createNodeLoggerSys() {
675
675
  return Math.max(Math.min(terminalWidth, max_columns), min_columns);
676
676
  };
677
677
  const memoryUsage = () => process.memoryUsage().rss;
678
- const relativePath = (from, to) => path.relative(from, to);
678
+ const relativePath = (from, to) => path$1.relative(from, to);
679
679
  const writeLogs = (logFilePath, log, append) => {
680
680
  if (append) try {
681
681
  fs.accessSync(logFilePath);
@@ -787,15 +787,15 @@ async function nodeCopyTasks(copyTasks, srcDir) {
787
787
  async function processGlobs(copyTask, srcDir) {
788
788
  return isGlob(copyTask.src) ? await processGlobTask(copyTask, srcDir) : [{
789
789
  src: getSrcAbsPath(srcDir, copyTask.src),
790
- dest: copyTask.keepDirStructure ? path.join(copyTask.dest, copyTask.src) : copyTask.dest,
790
+ dest: copyTask.keepDirStructure ? path$1.join(copyTask.dest, copyTask.src) : copyTask.dest,
791
791
  warn: copyTask.warn,
792
792
  ignore: copyTask.ignore,
793
793
  keepDirStructure: copyTask.keepDirStructure
794
794
  }];
795
795
  }
796
796
  function getSrcAbsPath(srcDir, src) {
797
- if (path.isAbsolute(src)) return src;
798
- return path.join(srcDir, src);
797
+ if (path$1.isAbsolute(src)) return src;
798
+ return path$1.join(srcDir, src);
799
799
  }
800
800
  async function processGlobTask(copyTask, srcDir) {
801
801
  return (await asyncGlob(copyTask.src, {
@@ -805,9 +805,9 @@ async function processGlobTask(copyTask, srcDir) {
805
805
  })).map((globRelPath) => createGlobCopyTask(copyTask, srcDir, globRelPath));
806
806
  }
807
807
  function createGlobCopyTask(copyTask, srcDir, globRelPath) {
808
- const dest = path.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path.basename(globRelPath));
808
+ const dest = path$1.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path$1.basename(globRelPath));
809
809
  return {
810
- src: path.join(srcDir, globRelPath),
810
+ src: path$1.join(srcDir, globRelPath),
811
811
  dest,
812
812
  ignore: copyTask.ignore,
813
813
  warn: copyTask.warn,
@@ -837,8 +837,8 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
837
837
  const dirItems = await readdir(copyTask.src);
838
838
  await Promise.all(dirItems.map(async (dirItem) => {
839
839
  await processCopyTask(results, allCopyTasks, {
840
- src: path.join(copyTask.src, dirItem),
841
- dest: path.join(copyTask.dest, dirItem),
840
+ src: path$1.join(copyTask.src, dirItem),
841
+ dest: path$1.join(copyTask.dest, dirItem),
842
842
  warn: copyTask.warn
843
843
  });
844
844
  }));
@@ -849,7 +849,7 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
849
849
  function ensureDirs(copyTasks) {
850
850
  const mkDirs = [];
851
851
  copyTasks.forEach((copyTask) => {
852
- addMkDir(mkDirs, path.dirname(copyTask.dest));
852
+ addMkDir(mkDirs, path$1.dirname(copyTask.dest));
853
853
  });
854
854
  mkDirs.sort((a, b) => {
855
855
  const partsA = a.split("/").length;
@@ -867,7 +867,7 @@ function addMkDir(mkDirs, destDir) {
867
867
  if (destDir === ROOT_DIR || destDir + "/" === ROOT_DIR || destDir === "") return;
868
868
  if (!mkDirs.includes(destDir)) mkDirs.push(destDir);
869
869
  }
870
- const ROOT_DIR = normalizePath(path.resolve("/"));
870
+ const ROOT_DIR = normalizePath(path$1.resolve("/"));
871
871
  function shouldIgnore({ src, ignore = [] }) {
872
872
  const filePath = src.trim().toLowerCase();
873
873
  return ignore.some((ignoreFile) => filePath.endsWith(ignoreFile));
@@ -886,6 +886,8 @@ function asyncGlob(pattern, opts = {}) {
886
886
  * returning diagnostic errors if requirements aren't met.
887
887
  */
888
888
  var NodeLazyRequire = class {
889
+ nodeResolveModule;
890
+ lazyDependencies;
889
891
  ensured = /* @__PURE__ */ new Set();
890
892
  /**
891
893
  * Create a NodeLazyRequire instance
@@ -939,7 +941,7 @@ var NodeLazyRequire = class {
939
941
  }
940
942
  getModulePath(fromDir, moduleId) {
941
943
  const modulePath = this.nodeResolveModule.resolveModule(fromDir, moduleId);
942
- return path.dirname(modulePath);
944
+ return path$1.dirname(modulePath);
943
945
  }
944
946
  };
945
947
  //#endregion
@@ -953,18 +955,18 @@ var NodeResolveModule = class {
953
955
  if (opts && opts.manuallyResolve) return this.resolveModuleManually(fromDir, moduleId, cacheKey);
954
956
  if (moduleId.startsWith("@types/")) return this.resolveTypesModule(fromDir, moduleId, cacheKey);
955
957
  const Module = __require("module");
956
- fromDir = path.resolve(fromDir);
957
- const fromFile = path.join(fromDir, "noop.js");
958
+ fromDir = path$1.resolve(fromDir);
959
+ const fromFile = path$1.join(fromDir, "noop.js");
958
960
  let dir = normalizePath(Module._resolveFilename(moduleId, {
959
961
  id: fromFile,
960
962
  filename: fromFile,
961
963
  paths: Module._nodeModulePaths(fromDir)
962
964
  }));
963
- const root = normalizePath(path.parse(fromDir).root);
965
+ const root = normalizePath(path$1.parse(fromDir).root);
964
966
  let packageJsonFilePath;
965
967
  while (dir !== root) {
966
- dir = normalizePath(path.dirname(dir));
967
- packageJsonFilePath = path.join(dir, "package.json");
968
+ dir = normalizePath(path$1.dirname(dir));
969
+ packageJsonFilePath = path$1.join(dir, "package.json");
968
970
  if (!fs.existsSync(packageJsonFilePath)) continue;
969
971
  this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
970
972
  return packageJsonFilePath;
@@ -973,12 +975,12 @@ var NodeResolveModule = class {
973
975
  }
974
976
  resolveTypesModule(fromDir, moduleId, cacheKey) {
975
977
  const moduleSplt = moduleId.split("/");
976
- const root = normalizePath(path.parse(fromDir).root);
977
- let dir = normalizePath(path.join(fromDir, "noop.js"));
978
+ const root = normalizePath(path$1.parse(fromDir).root);
979
+ let dir = normalizePath(path$1.join(fromDir, "noop.js"));
978
980
  let typesPackageJsonFilePath;
979
981
  while (dir !== root) {
980
- dir = normalizePath(path.dirname(dir));
981
- typesPackageJsonFilePath = path.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
982
+ dir = normalizePath(path$1.dirname(dir));
983
+ typesPackageJsonFilePath = path$1.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
982
984
  if (!fs.existsSync(typesPackageJsonFilePath)) continue;
983
985
  this.resolveModuleCache.set(cacheKey, typesPackageJsonFilePath);
984
986
  return typesPackageJsonFilePath;
@@ -986,12 +988,12 @@ var NodeResolveModule = class {
986
988
  throw new Error(`error loading "${moduleId}" from "${fromDir}"`);
987
989
  }
988
990
  resolveModuleManually(fromDir, moduleId, cacheKey) {
989
- const root = normalizePath(path.parse(fromDir).root);
990
- let dir = normalizePath(path.join(fromDir, "noop.js"));
991
+ const root = normalizePath(path$1.parse(fromDir).root);
992
+ let dir = normalizePath(path$1.join(fromDir, "noop.js"));
991
993
  let packageJsonFilePath;
992
994
  while (dir !== root) {
993
- dir = normalizePath(path.dirname(dir));
994
- packageJsonFilePath = path.join(dir, "node_modules", moduleId, "package.json");
995
+ dir = normalizePath(path$1.dirname(dir));
996
+ packageJsonFilePath = path$1.join(dir, "node_modules", moduleId, "package.json");
995
997
  if (!fs.existsSync(packageJsonFilePath)) continue;
996
998
  this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
997
999
  return packageJsonFilePath;
@@ -1077,7 +1079,7 @@ function setLastCheck() {
1077
1079
  });
1078
1080
  }
1079
1081
  function getLastCheckStoragePath() {
1080
- return path.join(tmpdir$1(), "stencil_last_version_node.json");
1082
+ return path$1.join(tmpdir$1(), "stencil_last_version_node.json");
1081
1083
  }
1082
1084
  function printUpdateMessage(logger, currentVersion, latestVersion) {
1083
1085
  const installMessage = `npm install @stencil/core`;
@@ -1128,6 +1130,7 @@ const INDENT = ` `;
1128
1130
  * thread so that messages may be passed to it.
1129
1131
  */
1130
1132
  var NodeWorkerMain = class extends EventEmitter {
1133
+ id;
1131
1134
  /**
1132
1135
  * A handle for the OS process that is running our worker code
1133
1136
  */
@@ -1234,6 +1237,7 @@ var NodeWorkerMain = class extends EventEmitter {
1234
1237
  * node.js workers ({@link NodeWorkerMain} instances)
1235
1238
  */
1236
1239
  var NodeWorkerController = class extends EventEmitter {
1240
+ forkModulePath;
1237
1241
  workerIds = 0;
1238
1242
  stencilId = 0;
1239
1243
  isEnding = false;
@@ -1385,7 +1389,7 @@ function createNodeSys(c = {}) {
1385
1389
  const sysCpus = cpus();
1386
1390
  const hardwareConcurrency = sysCpus.length;
1387
1391
  const osPlatform = platform();
1388
- const compilerExecutingPath = nodePath.join(__dirname, "compiler", "index.mjs");
1392
+ const compilerExecutingPath = path.join(__dirname, "compiler", "index.mjs");
1389
1393
  const runInterruptsCallbacks = () => {
1390
1394
  const returnValues = [];
1391
1395
  let cb;
@@ -1436,8 +1440,8 @@ function createNodeSys(c = {}) {
1436
1440
  return new Promise((resolve) => {
1437
1441
  if (opts) fs.mkdir(p, opts, (err) => {
1438
1442
  resolve({
1439
- basename: nodePath.basename(p),
1440
- dirname: nodePath.dirname(p),
1443
+ basename: path.basename(p),
1444
+ dirname: path.dirname(p),
1441
1445
  path: p,
1442
1446
  newDirs: [],
1443
1447
  error: err
@@ -1445,8 +1449,8 @@ function createNodeSys(c = {}) {
1445
1449
  });
1446
1450
  else fs.mkdir(p, (err) => {
1447
1451
  resolve({
1448
- basename: nodePath.basename(p),
1449
- dirname: nodePath.dirname(p),
1452
+ basename: path.basename(p),
1453
+ dirname: path.dirname(p),
1450
1454
  path: p,
1451
1455
  newDirs: [],
1452
1456
  error: err
@@ -1456,8 +1460,8 @@ function createNodeSys(c = {}) {
1456
1460
  },
1457
1461
  createDirSync(p, opts) {
1458
1462
  const results = {
1459
- basename: nodePath.basename(p),
1460
- dirname: nodePath.dirname(p),
1463
+ basename: path.basename(p),
1464
+ dirname: path.dirname(p),
1461
1465
  path: p,
1462
1466
  newDirs: [],
1463
1467
  error: null
@@ -1470,7 +1474,7 @@ function createNodeSys(c = {}) {
1470
1474
  return results;
1471
1475
  },
1472
1476
  createWorkerController(maxConcurrentWorkers) {
1473
- return new NodeWorkerController(nodePath.join(__dirname, "sys", "node", "worker.mjs"), maxConcurrentWorkers);
1477
+ return new NodeWorkerController(path.join(__dirname, "sys", "node", "worker.mjs"), maxConcurrentWorkers);
1474
1478
  },
1475
1479
  async destroy() {
1476
1480
  const waits = [];
@@ -1529,13 +1533,13 @@ function createNodeSys(c = {}) {
1529
1533
  onProcessInterrupt: (cb) => {
1530
1534
  if (!onInterruptsCallbacks.includes(cb)) onInterruptsCallbacks.push(cb);
1531
1535
  },
1532
- platformPath: nodePath,
1536
+ platformPath: path,
1533
1537
  readDir(p) {
1534
1538
  return new Promise((resolve) => {
1535
1539
  fs.readdir(p, (err, files) => {
1536
1540
  if (err) resolve([]);
1537
1541
  else resolve(files.map((f) => {
1538
- return normalizePath(nodePath.join(p, f));
1542
+ return normalizePath(path.join(p, f));
1539
1543
  }));
1540
1544
  });
1541
1545
  });
@@ -1546,7 +1550,7 @@ function createNodeSys(c = {}) {
1546
1550
  readDirSync(p) {
1547
1551
  try {
1548
1552
  return fs.readdirSync(p).map((f) => {
1549
- return normalizePath(nodePath.join(p, f));
1553
+ return normalizePath(path.join(p, f));
1550
1554
  });
1551
1555
  } catch {}
1552
1556
  return [];
@@ -1623,8 +1627,8 @@ function createNodeSys(c = {}) {
1623
1627
  force: true
1624
1628
  }, (err) => {
1625
1629
  resolve({
1626
- basename: nodePath.basename(p),
1627
- dirname: nodePath.dirname(p),
1630
+ basename: path.basename(p),
1631
+ dirname: path.dirname(p),
1628
1632
  path: p,
1629
1633
  removedDirs: [],
1630
1634
  removedFiles: [],
@@ -1633,8 +1637,8 @@ function createNodeSys(c = {}) {
1633
1637
  });
1634
1638
  else fs.rmdir(p, (err) => {
1635
1639
  resolve({
1636
- basename: nodePath.basename(p),
1637
- dirname: nodePath.dirname(p),
1640
+ basename: path.basename(p),
1641
+ dirname: path.dirname(p),
1638
1642
  path: p,
1639
1643
  removedDirs: [],
1640
1644
  removedFiles: [],
@@ -1651,8 +1655,8 @@ function createNodeSys(c = {}) {
1651
1655
  });
1652
1656
  else fs.rmdirSync(p);
1653
1657
  return {
1654
- basename: nodePath.basename(p),
1655
- dirname: nodePath.dirname(p),
1658
+ basename: path.basename(p),
1659
+ dirname: path.dirname(p),
1656
1660
  path: p,
1657
1661
  removedDirs: [],
1658
1662
  removedFiles: [],
@@ -1660,8 +1664,8 @@ function createNodeSys(c = {}) {
1660
1664
  };
1661
1665
  } catch (e) {
1662
1666
  return {
1663
- basename: nodePath.basename(p),
1664
- dirname: nodePath.dirname(p),
1667
+ basename: path.basename(p),
1668
+ dirname: path.dirname(p),
1665
1669
  path: p,
1666
1670
  removedDirs: [],
1667
1671
  removedFiles: [],
@@ -1673,8 +1677,8 @@ function createNodeSys(c = {}) {
1673
1677
  return new Promise((resolve) => {
1674
1678
  fs.unlink(p, (err) => {
1675
1679
  resolve({
1676
- basename: nodePath.basename(p),
1677
- dirname: nodePath.dirname(p),
1680
+ basename: path.basename(p),
1681
+ dirname: path.dirname(p),
1678
1682
  path: p,
1679
1683
  error: err
1680
1684
  });
@@ -1683,8 +1687,8 @@ function createNodeSys(c = {}) {
1683
1687
  },
1684
1688
  removeFileSync(p) {
1685
1689
  const results = {
1686
- basename: nodePath.basename(p),
1687
- dirname: nodePath.dirname(p),
1690
+ basename: path.basename(p),
1691
+ dirname: path.dirname(p),
1688
1692
  path: p,
1689
1693
  error: null
1690
1694
  };
@@ -1759,7 +1763,7 @@ function createNodeSys(c = {}) {
1759
1763
  sys.watchFile = (filePath, callback) => {
1760
1764
  logger?.debug(`NODE_SYS_DEBUG::watchFile ${filePath}`);
1761
1765
  const normalizedPath = normalizePath(filePath);
1762
- const dirPath = nodePath.dirname(filePath);
1766
+ const dirPath = path.dirname(filePath);
1763
1767
  const subscriptionPromise = parcelWatcher.subscribe(dirPath, (err, events) => {
1764
1768
  if (err) {
1765
1769
  logger?.error(`Watch error for ${filePath}: ${err.message}`);
@@ -44,7 +44,6 @@ const HOST_FLAGS = {
44
44
  devOnDidLoad: 2048
45
45
  };
46
46
  const CF_scopedCssEncapsulation = 2;
47
- const CF_needsShadowDomShim = 8;
48
47
  /**
49
48
  * A set of flags used for bitwise calculations against {@link ComponentRuntimeMeta#$flags$}.
50
49
  *
@@ -52,22 +51,81 @@ const CF_needsShadowDomShim = 8;
52
51
  * They should _not_ be used for calculations against other fields/numbers
53
52
  */
54
53
  const CMP_FLAGS = {
54
+ /**
55
+ * Used to determine if a component is using the shadow DOM.
56
+ * e.g. `shadow: true | {}` is set on the `@Component()` decorator
57
+ */
55
58
  shadowDomEncapsulation: 1,
59
+ /**
60
+ * Used to determine if a component is using scoped stylesheets
61
+ * e.g. `scoped: true` is set on the `@Component()` decorator
62
+ */
56
63
  scopedCssEncapsulation: CF_scopedCssEncapsulation,
64
+ /**
65
+ * Used to determine if a component does not use the shadow DOM _and_ has `<slot/>` tags in its markup.
66
+ */
57
67
  hasSlotRelocation: 4,
58
- needsShadowDomShim: CF_needsShadowDomShim,
68
+ /**
69
+ * Determines if `delegatesFocus` is enabled for a component that uses the shadow DOM.
70
+ * e.g. `shadow: { delegatesFocus: true }` is set on the `@Component()` decorator
71
+ */
59
72
  shadowDelegatesFocus: 16,
73
+ /**
74
+ * Determines if `mode` is set on the `@Component()` decorator
75
+ */
60
76
  hasMode: 32,
61
- needsScopedEncapsulation: CF_scopedCssEncapsulation | CF_needsShadowDomShim,
77
+ /**
78
+ * Determines if styles must be scoped - i.e. the component uses scoped stylesheets.
79
+ */
80
+ needsScopedEncapsulation: CF_scopedCssEncapsulation,
81
+ /**
82
+ * Determines if a component is form-associated or not. This is set based on
83
+ * options passed to the `@Component` decorator.
84
+ */
62
85
  formAssociated: 64,
86
+ /**
87
+ * Determines if a `shadow: true` component needs
88
+ * to have its styles scoped during SSR as opposed to using DSD.
89
+ */
63
90
  shadowNeedsScopedCss: 128,
91
+ /**
92
+ * Determines if a component has a `<slot>` in its template.
93
+ */
64
94
  hasSlot: 256,
95
+ /**
96
+ * Determines if a component uses modern class property declarations.
97
+ */
65
98
  hasModernPropertyDecls: 512,
99
+ /**
100
+ * Determines if `slotAssignment` is set to `'manual'` for a component that uses the shadow DOM.
101
+ * e.g. `shadow: { slotAssignment: 'manual' }` is set on the `@Component()` decorator
102
+ */
66
103
  shadowSlotAssignmentManual: 1024,
104
+ /**
105
+ * Determines if the shadow DOM mode is 'closed'.
106
+ * e.g. `encapsulation: { type: 'shadow', mode: 'closed' }` is set on the `@Component()` decorator
107
+ */
67
108
  shadowModeClosed: 2048,
109
+ /**
110
+ * Determines if the component should patch child node accessors for slot handling.
111
+ * e.g. `encapsulation: { type: 'none', patches: ['children'] }`
112
+ */
68
113
  patchChildren: 4096,
114
+ /**
115
+ * Determines if the component should patch cloneNode() for slot handling.
116
+ * e.g. `encapsulation: { type: 'none', patches: ['clone'] }`
117
+ */
69
118
  patchClone: 8192,
119
+ /**
120
+ * Determines if the component should patch appendChild/insertBefore for slot handling.
121
+ * e.g. `encapsulation: { type: 'none', patches: ['insert'] }`
122
+ */
70
123
  patchInsert: 16384,
124
+ /**
125
+ * Determines if the component should apply all slot patches.
126
+ * e.g. `encapsulation: { type: 'none', patches: ['all'] }`
127
+ * Equivalent to the global `experimentalSlotFixes` config option.
128
+ */
71
129
  patchAll: 32768
72
130
  };
73
131
  /**
@@ -84,6 +142,7 @@ const XLINK_NS = "http://www.w3.org/1999/xlink";
84
142
  * File names and value
85
143
  */
86
144
  const COLLECTION_MANIFEST_FILE_NAME = "collection-manifest.json";
145
+ const COLLECTION_APP_DATA_FILE_NAME = "app-data.js";
87
146
  /**
88
147
  * Constant for the 'copy' output target
89
148
  */
@@ -108,13 +167,19 @@ const STANDALONE = "standalone";
108
167
  */
109
168
  const SSR = "ssr";
110
169
  /**
111
- * Constant for the 'stencil-rebundle' output target
170
+ * Constant for the 'ssr-wasm' output target.
171
+ * Compiles the SSR script to a WASM binary via javy for use in any WASM-capable host
172
+ * (PHP, Java, Ruby, Go, etc.) without requiring a JavaScript runtime.
173
+ */
174
+ const SSR_WASM = "ssr-wasm";
175
+ /**
176
+ * Constant for the 'collection' output target
112
177
  * (formerly 'dist-collection' sub-output in v4)
113
178
  *
114
179
  * Contains transpiled source + metadata for downstream Stencil projects
115
180
  * to re-compile/bundle.
116
181
  */
117
- const STENCIL_REBUNDLE = "stencil-rebundle";
182
+ const COLLECTION = "collection";
118
183
  /**
119
184
  * Constant for the 'types' output target
120
185
  * (formerly 'dist-types' sub-output in v4)
@@ -169,14 +234,15 @@ const WWW = "www";
169
234
  * Note that some internal output targets (e.g. `DIST_LAZY`, `DIST_GLOBAL_STYLES`)
170
235
  * are programmatically created by the compiler and are not user-configurable.
171
236
  *
172
- * In v5, `TYPES` and `STENCIL_REBUNDLE` are auto-generated in production builds unless explicitly configured.
237
+ * In v5, `TYPES` and `COLLECTION` are auto-generated in production builds unless explicitly configured.
173
238
  */
174
239
  const VALID_CONFIG_OUTPUT_TARGETS = [
175
240
  "www",
176
241
  LOADER_BUNDLE,
177
242
  STANDALONE,
178
243
  "ssr",
179
- STENCIL_REBUNDLE,
244
+ SSR_WASM,
245
+ COLLECTION,
180
246
  TYPES,
181
247
  GLOBAL_STYLE,
182
248
  ASSETS,
@@ -195,6 +261,15 @@ const VALID_CONFIG_OUTPUT_TARGETS = [
195
261
  STATS
196
262
  ];
197
263
  const GENERATED_DTS = "components.d.ts";
264
+ const STYLE_EXT = [
265
+ "css",
266
+ "scss",
267
+ "sass",
268
+ "pcss",
269
+ "styl",
270
+ "stylus",
271
+ "less"
272
+ ];
198
273
  /**
199
274
  * DOM Node types
200
275
  *
@@ -430,4 +505,4 @@ const escapeRegExpSpecialCharacters = (text) => {
430
505
  return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
431
506
  };
432
507
  //#endregion
433
- export { XLINK_NS as $, DOCS_CUSTOM as A, LISTENER_FLAGS as B, ASSETS as C, CUSTOM as D, COPY as E, EVENT_FLAGS as F, STANDALONE as G, MEMBER_FLAGS as H, GENERATED_DTS as I, SVG_NS as J, STATS as K, GLOBAL_STYLE as L, DOCS_JSON as M, DOCS_README as N, DEFAULT_STYLE_MODE as O, DOCS_VSCODE as P, WWW as Q, HOST_FLAGS as R, queryNonceMetaTagContent as S, COLLECTION_MANIFEST_FILE_NAME as T, NODE_TYPES as U, LOADER_BUNDLE as V, SSR as W, VALID_CONFIG_OUTPUT_TARGETS as X, TYPES as Y, WATCH_FLAGS as Z, sortBy as _, fromEntries as a, toTitleCase as b, isDef as c, isNumber as d, isObject as f, pluck as g, noop as h, flatOne as i, DOCS_CUSTOM_ELEMENTS_MANIFEST as j, DIST_LAZY as k, isFunction as l, mergeIntoWith as m, dashToPascalCase as n, isBoolean as o, isString as p, STENCIL_REBUNDLE as q, escapeWithPattern as r, isComplexType as s, escapeRegExpSpecialCharacters as t, isIterable as u, toCamelCase as v, CMP_FLAGS as w, unique as x, toDashCase as y, HTML_NS as z };
508
+ export { VALID_CONFIG_OUTPUT_TARGETS as $, DEFAULT_STYLE_MODE as A, HOST_FLAGS as B, ASSETS as C, COLLECTION_MANIFEST_FILE_NAME as D, COLLECTION_APP_DATA_FILE_NAME as E, DOCS_README as F, NODE_TYPES as G, LISTENER_FLAGS as H, DOCS_VSCODE as I, STANDALONE as J, SSR as K, EVENT_FLAGS as L, DOCS_CUSTOM as M, DOCS_CUSTOM_ELEMENTS_MANIFEST as N, COPY as O, DOCS_JSON as P, TYPES as Q, GENERATED_DTS as R, queryNonceMetaTagContent as S, COLLECTION as T, LOADER_BUNDLE as U, HTML_NS as V, MEMBER_FLAGS as W, STYLE_EXT as X, STATS as Y, SVG_NS as Z, sortBy as _, fromEntries as a, toTitleCase as b, isDef as c, isNumber as d, WATCH_FLAGS as et, isObject as f, pluck as g, noop as h, flatOne as i, DIST_LAZY as j, CUSTOM as k, isFunction as l, mergeIntoWith as m, dashToPascalCase as n, XLINK_NS as nt, isBoolean as o, isString as p, SSR_WASM as q, escapeWithPattern as r, isComplexType as s, escapeRegExpSpecialCharacters as t, WWW as tt, isIterable as u, toCamelCase as v, CMP_FLAGS as w, unique as x, toDashCase as y, GLOBAL_STYLE as z };
@@ -1,2 +1,2 @@
1
- import { n as Env, r as NAMESPACE, t as BUILD } from "../../index-D-XN9HW_.js";
1
+ import { n as Env, r as NAMESPACE, t as BUILD } from "../../index-BuveMLxy.js";
2
2
  export { BUILD, Env, NAMESPACE };
@@ -45,7 +45,7 @@ const BUILD = {
45
45
  cssAnnotations: true,
46
46
  state: true,
47
47
  style: true,
48
- formAssociated: false,
48
+ formAssociated: true,
49
49
  svg: true,
50
50
  updatable: true,
51
51
  vdomAttribute: true,
@@ -61,6 +61,13 @@ const BUILD = {
61
61
  vdomText: true,
62
62
  propChangeCallback: true,
63
63
  taskQueue: true,
64
+ lifecycle: true,
65
+ serializer: true,
66
+ deserializer: true,
67
+ patchAll: true,
68
+ patchChildren: true,
69
+ patchClone: true,
70
+ patchInsert: true,
64
71
  hotModuleReplacement: false,
65
72
  isDebug: false,
66
73
  isDev: false,
@@ -71,14 +78,15 @@ const BUILD = {
71
78
  lazyLoad: false,
72
79
  profile: false,
73
80
  slotRelocation: true,
74
- appendChildSlotFix: false,
75
- cloneNodeFix: false,
81
+ lightDomPatches: true,
82
+ slotChildNodes: true,
83
+ slotCloneNode: true,
84
+ slotDomMutations: true,
85
+ slotTextContent: true,
76
86
  hydratedAttribute: false,
77
87
  hydratedClass: true,
78
- scopedSlotTextContentFix: false,
79
- shadowDomShim: false,
80
- slotChildNodesFix: false,
81
88
  invisiblePrehydration: true,
89
+ staticHydrationStyles: false,
82
90
  propBoolean: true,
83
91
  propNumber: true,
84
92
  propString: true,
@@ -88,9 +96,7 @@ const BUILD = {
88
96
  shadowSlotAssignmentManual: false,
89
97
  initializeNextTick: false,
90
98
  asyncLoading: true,
91
- asyncQueue: false,
92
- attachStyles: true,
93
- experimentalSlotFixes: false
99
+ asyncQueue: false
94
100
  };
95
101
  const Env = {};
96
102
  const NAMESPACE = "app";