@stencil/core 5.0.0-alpha.32 → 5.0.0-alpha.33

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 (34) hide show
  1. package/dist/app-data/index.d.ts +1 -1
  2. package/dist/app-data/index.js +2 -0
  3. package/dist/client-Bqq2Agpl.mjs +2367 -0
  4. package/dist/compiler/index.d.mts +1 -1
  5. package/dist/compiler/index.mjs +2 -3
  6. package/dist/compiler/utils/index.d.mts +1 -1
  7. package/dist/compiler/utils/index.mjs +3 -3
  8. package/dist/{compiler-D2MlfN4O.mjs → compiler-DjwEWyq2.mjs} +470 -9
  9. package/dist/declarations/stencil-public-compiler.d.ts +20 -3
  10. package/dist/declarations/stencil-public-runtime.d.ts +10 -0
  11. package/dist/{regular-expression-XqU5zmPp.mjs → helpers-Cpp3qc3u.mjs} +12 -13
  12. package/dist/{index-BHj3EBl2.d.mts → index-BCm37iOm.d.mts} +40 -3
  13. package/dist/{index-D2PAsXxx.d.ts → index-BTVuF9UD.d.ts} +2 -0
  14. package/dist/{index-VK8okIiF.d.mts → index-C-fMSffa.d.mts} +2 -10
  15. package/dist/index.mjs +1 -1
  16. package/dist/jsx-runtime.mjs +1 -1
  17. package/dist/{node-DRT35FuO.mjs → node-DugJ2Vs2.mjs} +3 -3
  18. package/dist/runtime/client/lazy.js +13 -1
  19. package/dist/runtime/client/runtime.js +13 -1
  20. package/dist/runtime/index.d.ts +1 -1
  21. package/dist/runtime/index.js +13 -1
  22. package/dist/runtime/server/index.mjs +13 -1
  23. package/dist/runtime/server/runner.mjs +21 -3
  24. package/dist/signals/index.js +2 -0
  25. package/dist/sys/node/index.d.mts +1 -1
  26. package/dist/sys/node/index.mjs +1 -1
  27. package/dist/sys/node/worker.mjs +2 -2
  28. package/dist/testing/index.d.mts +4677 -100
  29. package/dist/testing/index.mjs +7553 -780
  30. package/dist/{util-BIa-iHnt.mjs → util-IKfWWLJo.mjs} +1 -1
  31. package/dist/{validation-Dd3g77T5.mjs → validation-DAdGTrys.mjs} +16 -3
  32. package/package.json +4 -4
  33. package/dist/client-C3HYn-8p.mjs +0 -4850
  34. package/dist/reactive-controller-BdCpSAQP.d.mts +0 -13
@@ -1,4 +1,4 @@
1
- import { $ as TYPES, B as GLOBAL_STYLE, C as ASSETS, F as DOCS_JSON, I as DOCS_README, J as SSR_WASM, L as DOCS_VSCODE, M as DOCS_AGENT_SKILL, N as DOCS_CUSTOM, O as COPY, P as DOCS_CUSTOM_ELEMENTS_MANIFEST, T as COLLECTION, W as LOADER_BUNDLE, X as STATS, Y as STANDALONE, _ as sortBy, et as VALID_CONFIG_OUTPUT_TARGETS, i as flatOne, j as DIST_LAZY, k as CUSTOM, n as dashToPascalCase, p as isString, r as escapeWithPattern, y as toDashCase, z as GENERATED_DTS } from "./regular-expression-XqU5zmPp.mjs";
1
+ import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, F as DOCS_README, I as DOCS_VSCODE, J as STANDALONE, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as CUSTOM, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, U as LOADER_BUNDLE, Y as STATS, f as isString, g as sortBy, j as DOCS_AGENT_SKILL, n as escapeWithPattern, q as SSR_WASM, r as flatOne, t as dashToPascalCase, v as toDashCase, w as COLLECTION, z as GLOBAL_STYLE } from "./helpers-Cpp3qc3u.mjs";
2
2
  import nodePath, { basename, dirname, relative } from "node:path";
3
3
  import picomatch from "picomatch";
4
4
  //#region src/utils/is-glob.ts
@@ -1,6 +1,17 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import { G as MEMBER_FLAGS, U as LISTENER_FLAGS, b as toTitleCase, p as isString, tt as WATCH_FLAGS, u as isIterable, w as CMP_FLAGS } from "./regular-expression-XqU5zmPp.mjs";
3
- import { K as normalizePath, Q as buildWarn } from "./util-BIa-iHnt.mjs";
2
+ import { C as CMP_FLAGS, H as LISTENER_FLAGS, W as MEMBER_FLAGS, et as WATCH_FLAGS, f as isString, l as isIterable, y as toTitleCase } from "./helpers-Cpp3qc3u.mjs";
3
+ import { K as normalizePath, Q as buildWarn } from "./util-IKfWWLJo.mjs";
4
+ //#region src/utils/regular-expression.ts
5
+ /**
6
+ * Utility function that will escape all regular expression special characters in a string.
7
+ *
8
+ * @param text The string potentially containing special characters.
9
+ * @returns The string with all special characters escaped.
10
+ */
11
+ const escapeRegExpSpecialCharacters = (text) => {
12
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
13
+ };
14
+ //#endregion
4
15
  //#region src/utils/byte-size.ts
5
16
  /**
6
17
  * Used to learn the size of a string in bytes.
@@ -29,6 +40,8 @@ const formatComponentRuntimeMeta = (compilerMeta, includeMethods) => {
29
40
  if (compilerMeta.shadowDelegatesFocus) flags |= CMP_FLAGS.shadowDelegatesFocus;
30
41
  if (compilerMeta.slotAssignment === "manual") flags |= CMP_FLAGS.shadowSlotAssignmentManual;
31
42
  if (compilerMeta.shadowMode === "closed") flags |= CMP_FLAGS.shadowModeClosed;
43
+ if (compilerMeta.shadowClonable) flags |= CMP_FLAGS.shadowClonable;
44
+ if (compilerMeta.shadowSerializable) flags |= CMP_FLAGS.shadowSerializable;
32
45
  } else if (compilerMeta.encapsulation === "scoped") flags |= CMP_FLAGS.scopedCssEncapsulation;
33
46
  if (compilerMeta.formAssociated) flags |= CMP_FLAGS.formAssociated;
34
47
  if (compilerMeta.encapsulation !== "shadow" && compilerMeta.htmlTagNames.includes("slot")) flags |= CMP_FLAGS.hasSlotRelocation;
@@ -775,4 +788,4 @@ const validateComponentTag = (tag) => {
775
788
  if (tag.lastIndexOf("-") === tag.length - 1) return `"${tag}" tag cannot end with a dash (-)`;
776
789
  };
777
790
  //#endregion
778
- export { formatLazyBundleRuntimeMeta as C, formatComponentRuntimeMeta as S, byteSize as T, loadRolldownDiagnostics as _, getSourceMappingUrlForEndOfFile as a, splitLineBreaks as b, err as c, result_exports as d, augmentDiagnosticWithNode as f, isRolldownError as g, createOnWarnFn as h, getInlineSourceMappingUrlLinker as i, map as l, loadTypeScriptDiagnostics as m, validateComponentTag as n, getSourceMappingUrlLinker as o, loadTypeScriptDiagnostic as p, isRemoteUrl as r, rolldownToStencilSourceMap as s, validateComponentModes as t, ok as u, escapeHtml as v, stringifyRuntimeData as w, isRootPath as x, normalizeDiagnostics as y };
791
+ export { formatLazyBundleRuntimeMeta as C, escapeRegExpSpecialCharacters as E, formatComponentRuntimeMeta as S, byteSize as T, loadRolldownDiagnostics as _, getSourceMappingUrlForEndOfFile as a, splitLineBreaks as b, err as c, result_exports as d, augmentDiagnosticWithNode as f, isRolldownError as g, createOnWarnFn as h, getInlineSourceMappingUrlLinker as i, map as l, loadTypeScriptDiagnostics as m, validateComponentTag as n, getSourceMappingUrlLinker as o, loadTypeScriptDiagnostic as p, isRemoteUrl as r, rolldownToStencilSourceMap as s, validateComponentModes as t, ok as u, escapeHtml as v, stringifyRuntimeData as w, isRootPath as x, normalizeDiagnostics as y };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-alpha.32",
3
+ "version": "5.0.0-alpha.33",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -121,9 +121,9 @@
121
121
  "terser": "^5.50.0",
122
122
  "tinyglobby": "^0.2.17",
123
123
  "typescript": ">5.0.0 <7.0.0",
124
- "@stencil/cli": "5.0.0-alpha.32",
125
- "@stencil/mock-doc": "5.0.0-alpha.32",
126
- "@stencil/dev-server": "5.0.0-alpha.32"
124
+ "@stencil/cli": "5.0.0-alpha.33",
125
+ "@stencil/dev-server": "5.0.0-alpha.33",
126
+ "@stencil/mock-doc": "5.0.0-alpha.33"
127
127
  },
128
128
  "devDependencies": {
129
129
  "@ionic/prettier-config": "^4.0.0",