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

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.
@@ -1,4 +1,4 @@
1
- import { D as CMP_FLAGS, E as queryNonceMetaTagContent, G as EVENT_FLAGS, J as HTML_NS, X as MEMBER_FLAGS, Y as LISTENER_FLAGS, Z as NODE_TYPES, a as escapeRegExpSpecialCharacters, d as isComplexType, f as isDef, nt as SVG_NS, ot as WATCH_FLAGS, q as HOST_FLAGS, t as deserializeProperty } from "./serialize-BkYHk7Mi.mjs";
1
+ import { D as CMP_FLAGS, E as queryNonceMetaTagContent, G as EVENT_FLAGS, J as HTML_NS, X as MEMBER_FLAGS, Y as LISTENER_FLAGS, Z as NODE_TYPES, a as escapeRegExpSpecialCharacters, d as isComplexType, f as isDef, nt as SVG_NS, ot as WATCH_FLAGS, q as HOST_FLAGS, t as deserializeProperty } from "./serialize-o-Sj1lvg.mjs";
2
2
  //#region src/app-data/index.ts
3
3
  /**
4
4
  * A collection of default build flags for a Stencil project.
@@ -1,3 +1,3 @@
1
- import { a as createPrerenderer, b as version, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as validateConfig, i as createSystem, l as createWorkerMessageHandler, n as transpile, o as loadConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as buildId, x as versions, y as vermoji } from "../compiler-LX4_RKKd.mjs";
2
- import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-SxQIOCZE.mjs";
1
+ import { a as createPrerenderer, b as version, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as validateConfig, i as createSystem, l as createWorkerMessageHandler, n as transpile, o as loadConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as buildId, x as versions, y as vermoji } from "../compiler-DyK1_szo.mjs";
2
+ import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-BWBQAh8C.mjs";
3
3
  export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildId, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, loadConfig, nodeRequire, optimizeCss, optimizeJs, transpile, transpileSync, ts, validateConfig, vermoji, version, versions };
@@ -1,3 +1,3 @@
1
- import { $ as PrimitiveType, A as CUSTOM, B as DOCS_CUSTOM, C as toDashCase, D as CMP_FLAGS, E as queryNonceMetaTagContent, F as DIST_GLOBAL_STYLES, G as EVENT_FLAGS, H as DOCS_JSON, I as DIST_HYDRATE_SCRIPT, J as HTML_NS, K as GENERATED_DTS, L as DIST_LAZY, M as DIST, N as DIST_COLLECTION, O as COLLECTION_MANIFEST_FILE_NAME, P as DIST_CUSTOM_ELEMENTS, Q as NonPrimitiveType, R as DIST_LAZY_LOADER, S as toCamelCase, T as unique, U as DOCS_README, V as DOCS_CUSTOM_ELEMENTS_MANIFEST, W as DOCS_VSCODE, X as MEMBER_FLAGS, Y as LISTENER_FLAGS, Z as NODE_TYPES, _ as isString, a as escapeRegExpSpecialCharacters, at as VALUE_CONSTANT, b as pluck, c as flatOne, ct as XLINK_NS, d as isComplexType, et as SERIALIZED_PREFIX, f as isDef, g as isObject, h as isNumber, i as LocalValue, it as VALID_CONFIG_OUTPUT_TARGETS, j as DEFAULT_STYLE_MODE, k as COPY, l as fromEntries, m as isIterable, n as serializeProperty, nt as SVG_NS, o as dashToPascalCase, ot as WATCH_FLAGS, p as isFunction, q as HOST_FLAGS, r as RemoteValue, rt as TYPE_CONSTANT, s as escapeWithPattern, st as WWW, t as deserializeProperty, tt as STATS, u as isBoolean, v as mergeIntoWith, w as toTitleCase, x as sortBy, y as noop, z as DIST_TYPES } from "../../serialize-BkYHk7Mi.mjs";
2
- import { $ as join, A as isOutputTargetCustom, B as isOutputTargetDocsCustomElementsManifest, C as result_exports, Ct as stringifyRuntimeData, D as getComponentsFromModules, E as getComponentsDtsTypesFilePath, F as isOutputTargetDistLazy, G as isOutputTargetStats, H as isOutputTargetDocsReadme, I as isOutputTargetDistLazyLoader, J as relativeImport, K as isOutputTargetWww, L as isOutputTargetDistTypes, M as isOutputTargetDistCollection, N as isOutputTargetDistCustomElements, O as isEligiblePrimaryPackageOutputTarget, P as isOutputTargetDistGlobalStyles, Q as loadTypeScriptDiagnostics, R as isOutputTargetDocs, St as formatLazyBundleRuntimeMeta, T as getComponentsDtsSrcFilePath, U as isOutputTargetDocsVscode, V as isOutputTargetDocsJson, W as isOutputTargetHydrate, X as augmentDiagnosticWithNode, Y as shouldExcludeComponent, Z as loadTypeScriptDiagnostic, _ as getSourceMappingUrlForEndOfFile, _t as hasWarning, a as getTextDocs, at as resolve, bt as isGlob, c as isJsFile, ct as escapeHtml, d as isTsxFile, dt as TASK_CANCELED_MSG, et as normalize, f as parsePackageJson, ft as buildError, g as getInlineSourceMappingUrlLinker, gt as hasError, h as isRemoteUrl, ht as catchError, i as generatePreamble, it as relative, j as isOutputTargetDist, k as isOutputTargetCopy, l as isJsxFile, lt as normalizeDiagnostics, m as readPackageJson, mt as buildWarn, n as addDocBlock, nt as normalizeFsPathQuery, o as hasDependency, ot as createOnWarnFn, p as readOnlyArrayHasStringMember, pt as buildJsonFileError, q as isValidConfigOutputTarget, r as createJsVarName, rt as normalizePath, s as isDtsFile, st as loadRollupDiagnostics, t as validateComponentTag, tt as normalizeFsPath, u as isTsFile, ut as splitLineBreaks, v as getSourceMappingUrlLinker, vt as shouldIgnoreError, w as filterExcludedComponents, wt as byteSize, xt as formatComponentRuntimeMeta, y as rollupToStencilSourceMap, yt as isRootPath, z as isOutputTargetDocsCustom } from "../../validation-CaCgjw-f.mjs";
1
+ import { $ as PrimitiveType, A as CUSTOM, B as DOCS_CUSTOM, C as toDashCase, D as CMP_FLAGS, E as queryNonceMetaTagContent, F as DIST_GLOBAL_STYLES, G as EVENT_FLAGS, H as DOCS_JSON, I as DIST_HYDRATE_SCRIPT, J as HTML_NS, K as GENERATED_DTS, L as DIST_LAZY, M as DIST, N as DIST_COLLECTION, O as COLLECTION_MANIFEST_FILE_NAME, P as DIST_CUSTOM_ELEMENTS, Q as NonPrimitiveType, R as DIST_LAZY_LOADER, S as toCamelCase, T as unique, U as DOCS_README, V as DOCS_CUSTOM_ELEMENTS_MANIFEST, W as DOCS_VSCODE, X as MEMBER_FLAGS, Y as LISTENER_FLAGS, Z as NODE_TYPES, _ as isString, a as escapeRegExpSpecialCharacters, at as VALUE_CONSTANT, b as pluck, c as flatOne, ct as XLINK_NS, d as isComplexType, et as SERIALIZED_PREFIX, f as isDef, g as isObject, h as isNumber, i as LocalValue, it as VALID_CONFIG_OUTPUT_TARGETS, j as DEFAULT_STYLE_MODE, k as COPY, l as fromEntries, m as isIterable, n as serializeProperty, nt as SVG_NS, o as dashToPascalCase, ot as WATCH_FLAGS, p as isFunction, q as HOST_FLAGS, r as RemoteValue, rt as TYPE_CONSTANT, s as escapeWithPattern, st as WWW, t as deserializeProperty, tt as STATS, u as isBoolean, v as mergeIntoWith, w as toTitleCase, x as sortBy, y as noop, z as DIST_TYPES } from "../../serialize-o-Sj1lvg.mjs";
2
+ import { $ as join, A as isOutputTargetCustom, B as isOutputTargetDocsCustomElementsManifest, C as result_exports, Ct as stringifyRuntimeData, D as getComponentsFromModules, E as getComponentsDtsTypesFilePath, F as isOutputTargetDistLazy, G as isOutputTargetStats, H as isOutputTargetDocsReadme, I as isOutputTargetDistLazyLoader, J as relativeImport, K as isOutputTargetWww, L as isOutputTargetDistTypes, M as isOutputTargetDistCollection, N as isOutputTargetDistCustomElements, O as isEligiblePrimaryPackageOutputTarget, P as isOutputTargetDistGlobalStyles, Q as loadTypeScriptDiagnostics, R as isOutputTargetDocs, St as formatLazyBundleRuntimeMeta, T as getComponentsDtsSrcFilePath, U as isOutputTargetDocsVscode, V as isOutputTargetDocsJson, W as isOutputTargetHydrate, X as augmentDiagnosticWithNode, Y as shouldExcludeComponent, Z as loadTypeScriptDiagnostic, _ as getSourceMappingUrlForEndOfFile, _t as hasWarning, a as getTextDocs, at as resolve, bt as isGlob, c as isJsFile, ct as escapeHtml, d as isTsxFile, dt as TASK_CANCELED_MSG, et as normalize, f as parsePackageJson, ft as buildError, g as getInlineSourceMappingUrlLinker, gt as hasError, h as isRemoteUrl, ht as catchError, i as generatePreamble, it as relative, j as isOutputTargetDist, k as isOutputTargetCopy, l as isJsxFile, lt as normalizeDiagnostics, m as readPackageJson, mt as buildWarn, n as addDocBlock, nt as normalizeFsPathQuery, o as hasDependency, ot as createOnWarnFn, p as readOnlyArrayHasStringMember, pt as buildJsonFileError, q as isValidConfigOutputTarget, r as createJsVarName, rt as normalizePath, s as isDtsFile, st as loadRollupDiagnostics, t as validateComponentTag, tt as normalizeFsPath, u as isTsFile, ut as splitLineBreaks, v as getSourceMappingUrlLinker, vt as shouldIgnoreError, w as filterExcludedComponents, wt as byteSize, xt as formatComponentRuntimeMeta, y as rollupToStencilSourceMap, yt as isRootPath, z as isOutputTargetDocsCustom } from "../../validation-BR7tMYEv.mjs";
3
3
  export { CMP_FLAGS, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST, DIST_COLLECTION, DIST_CUSTOM_ELEMENTS, DIST_GLOBAL_STYLES, DIST_HYDRATE_SCRIPT, DIST_LAZY, DIST_LAZY_LOADER, DIST_TYPES, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, GENERATED_DTS, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LocalValue, MEMBER_FLAGS, NODE_TYPES, NonPrimitiveType, PrimitiveType, RemoteValue, SERIALIZED_PREFIX, STATS, SVG_NS, TASK_CANCELED_MSG, TYPE_CONSTANT, VALID_CONFIG_OUTPUT_TARGETS, VALUE_CONSTANT, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, deserializeProperty, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isEligiblePrimaryPackageOutputTarget, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDist, isOutputTargetDistCollection, isOutputTargetDistCustomElements, isOutputTargetDistGlobalStyles, isOutputTargetDistLazy, isOutputTargetDistLazyLoader, isOutputTargetDistTypes, isOutputTargetDocs, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetHydrate, isOutputTargetStats, isOutputTargetWww, isRemoteUrl, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRollupDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_exports as result, rollupToStencilSourceMap, serializeProperty, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentTag };
@@ -1,8 +1,8 @@
1
1
  import { n as __require } from "./chunk-CjcI7cDX.mjs";
2
- import { C as HYDRATED_CSS, h as scopeCss } from "./client-B1nuvCd2.mjs";
3
- import { C as toDashCase, D as CMP_FLAGS, F as DIST_GLOBAL_STYLES, G as EVENT_FLAGS, H as DOCS_JSON, I as DIST_HYDRATE_SCRIPT, K as GENERATED_DTS, L as DIST_LAZY, N as DIST_COLLECTION, O as COLLECTION_MANIFEST_FILE_NAME, P as DIST_CUSTOM_ELEMENTS, R as DIST_LAZY_LOADER, T as unique, U as DOCS_README, _ as isString$1, b as pluck, c as flatOne, g as isObject, h as isNumber$1, it as VALID_CONFIG_OUTPUT_TARGETS, k as COPY, l as fromEntries, m as isIterable, o as dashToPascalCase, ot as WATCH_FLAGS, p as isFunction, tt as STATS, u as isBoolean$1, v as mergeIntoWith, w as toTitleCase, x as sortBy, y as noop, z as DIST_TYPES } from "./serialize-BkYHk7Mi.mjs";
4
- import { $ as join$1, A as isOutputTargetCustom, B as isOutputTargetDocsCustomElementsManifest, Ct as stringifyRuntimeData, D as getComponentsFromModules, E as getComponentsDtsTypesFilePath, F as isOutputTargetDistLazy, G as isOutputTargetStats, H as isOutputTargetDocsReadme, I as isOutputTargetDistLazyLoader, J as relativeImport, K as isOutputTargetWww, L as isOutputTargetDistTypes, M as isOutputTargetDistCollection, N as isOutputTargetDistCustomElements, O as isEligiblePrimaryPackageOutputTarget, P as isOutputTargetDistGlobalStyles, Q as loadTypeScriptDiagnostics, R as isOutputTargetDocs, S as ok, T as getComponentsDtsSrcFilePath, U as isOutputTargetDocsVscode, V as isOutputTargetDocsJson, W as isOutputTargetHydrate, X as augmentDiagnosticWithNode, Z as loadTypeScriptDiagnostic, _ as getSourceMappingUrlForEndOfFile, _t as hasWarning, a as getTextDocs, at as resolve$1, b as err, bt as isGlob, ct as escapeHtml, d as isTsxFile, f as parsePackageJson, ft as buildError, g as getInlineSourceMappingUrlLinker, gt as hasError, h as isRemoteUrl, ht as catchError, i as generatePreamble, it as relative$1, j as isOutputTargetDist, k as isOutputTargetCopy, lt as normalizeDiagnostics, m as readPackageJson, mt as buildWarn, n as addDocBlock, nt as normalizeFsPathQuery, o as hasDependency, ot as createOnWarnFn, p as readOnlyArrayHasStringMember, pt as buildJsonFileError, q as isValidConfigOutputTarget, r as createJsVarName, rt as normalizePath, s as isDtsFile, st as loadRollupDiagnostics, t as validateComponentTag, tt as normalizeFsPath, u as isTsFile, ut as splitLineBreaks, w as filterExcludedComponents, wt as byteSize, x as map, xt as formatComponentRuntimeMeta, y as rollupToStencilSourceMap, yt as isRootPath, z as isOutputTargetDocsCustom } from "./validation-CaCgjw-f.mjs";
5
- import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-SxQIOCZE.mjs";
2
+ import { C as HYDRATED_CSS, h as scopeCss } from "./client-DucyoZT4.mjs";
3
+ import { C as toDashCase, D as CMP_FLAGS, F as DIST_GLOBAL_STYLES, G as EVENT_FLAGS, H as DOCS_JSON, I as DIST_HYDRATE_SCRIPT, K as GENERATED_DTS, L as DIST_LAZY, N as DIST_COLLECTION, O as COLLECTION_MANIFEST_FILE_NAME, P as DIST_CUSTOM_ELEMENTS, R as DIST_LAZY_LOADER, T as unique, U as DOCS_README, _ as isString$1, b as pluck, c as flatOne, g as isObject, h as isNumber$1, it as VALID_CONFIG_OUTPUT_TARGETS, k as COPY, l as fromEntries, m as isIterable, o as dashToPascalCase, ot as WATCH_FLAGS, p as isFunction, tt as STATS, u as isBoolean$1, v as mergeIntoWith, w as toTitleCase, x as sortBy, y as noop, z as DIST_TYPES } from "./serialize-o-Sj1lvg.mjs";
4
+ import { $ as join$1, A as isOutputTargetCustom, B as isOutputTargetDocsCustomElementsManifest, Ct as stringifyRuntimeData, D as getComponentsFromModules, E as getComponentsDtsTypesFilePath, F as isOutputTargetDistLazy, G as isOutputTargetStats, H as isOutputTargetDocsReadme, I as isOutputTargetDistLazyLoader, J as relativeImport, K as isOutputTargetWww, L as isOutputTargetDistTypes, M as isOutputTargetDistCollection, N as isOutputTargetDistCustomElements, O as isEligiblePrimaryPackageOutputTarget, P as isOutputTargetDistGlobalStyles, Q as loadTypeScriptDiagnostics, R as isOutputTargetDocs, S as ok, T as getComponentsDtsSrcFilePath, U as isOutputTargetDocsVscode, V as isOutputTargetDocsJson, W as isOutputTargetHydrate, X as augmentDiagnosticWithNode, Z as loadTypeScriptDiagnostic, _ as getSourceMappingUrlForEndOfFile, _t as hasWarning, a as getTextDocs, at as resolve$1, b as err, bt as isGlob, ct as escapeHtml, d as isTsxFile, f as parsePackageJson, ft as buildError, g as getInlineSourceMappingUrlLinker, gt as hasError, h as isRemoteUrl, ht as catchError, i as generatePreamble, it as relative$1, j as isOutputTargetDist, k as isOutputTargetCopy, lt as normalizeDiagnostics, m as readPackageJson, mt as buildWarn, n as addDocBlock, nt as normalizeFsPathQuery, o as hasDependency, ot as createOnWarnFn, p as readOnlyArrayHasStringMember, pt as buildJsonFileError, q as isValidConfigOutputTarget, r as createJsVarName, rt as normalizePath, s as isDtsFile, st as loadRollupDiagnostics, t as validateComponentTag, tt as normalizeFsPath, u as isTsFile, ut as splitLineBreaks, w as filterExcludedComponents, wt as byteSize, x as map, xt as formatComponentRuntimeMeta, y as rollupToStencilSourceMap, yt as isRootPath, z as isOutputTargetDocsCustom } from "./validation-BR7tMYEv.mjs";
5
+ import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-BWBQAh8C.mjs";
6
6
  import ts, { default as ts$1 } from "typescript";
7
7
  import { readFileSync } from "node:fs";
8
8
  import { basename, dirname, join } from "node:path";
@@ -29,9 +29,9 @@ import { createHash } from "crypto";
29
29
  import * as process$1 from "process";
30
30
  import { dataToEsm } from "@rollup/pluginutils";
31
31
  //#region src/version.ts
32
- const version = "5.0.0-alpha.1-dev.1775057990.e8a69f2";
33
- const buildId = "1775057990";
34
- const vermoji = "🍖";
32
+ const version = "5.0.0-alpha.2-dev.1775073529.e56fbc8";
33
+ const buildId = "1775073529";
34
+ const vermoji = "🍻";
35
35
  /**
36
36
  * Get the installed version of a tool/dependency.
37
37
  * Handles packages with exports maps that point to subdirectories.
@@ -9005,6 +9005,7 @@ const validateConfig = (userConfig = {}, bootstrapConfig) => {
9005
9005
  ...validateNamespace(config.namespace, config.fsNamespace, diagnostics),
9006
9006
  ...validatePaths(config)
9007
9007
  };
9008
+ if (validatedConfig.buildLogFilePath) logger.setLogFilePath(validatedConfig.buildLogFilePath);
9008
9009
  validatedConfig.extras.lifecycleDOMEvents = !!validatedConfig.extras.lifecycleDOMEvents;
9009
9010
  validatedConfig.extras.initializeNextTick = !!validatedConfig.extras.initializeNextTick;
9010
9011
  validatedConfig.extras.tagNameTransform = !!validatedConfig.extras.tagNameTransform;
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";
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-DucyoZT4.mjs";
2
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,2 +1,2 @@
1
- import { d as Fragment, n as jsx, r as jsxs } from "./runtime-CF9DJtSu.js";
1
+ import { d as Fragment, n as jsx, r as jsxs } from "./runtime-CqlPYKjW.js";
2
2
  export { Fragment, jsx, jsxs };
@@ -1,7 +1,7 @@
1
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";
2
+ import "./client-DucyoZT4.mjs";
3
+ import { _ as isString, c as flatOne, p as isFunction, y as noop } from "./serialize-o-Sj1lvg.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-BR7tMYEv.mjs";
5
5
  import path from "node:path";
6
6
  import { pathToFileURL } from "node:url";
7
7
  import path$1 from "path";
@@ -2618,6 +2618,19 @@ var RemoteValue = class RemoteValue {
2618
2618
  //#endregion
2619
2619
  //#region src/utils/serialize.ts
2620
2620
  /**
2621
+ * Unicode-safe base64 decoding that handles characters outside Latin1 range.
2622
+ * Unlike atob(), this properly decodes Unicode characters including emoji,
2623
+ * CJK characters, and currency symbols like €.
2624
+ * @param {string} base64 - The base64 string to decode.
2625
+ * @returns {string} Decoded string.
2626
+ */
2627
+ function decodeBase64Unicode(base64) {
2628
+ const binary = atob(base64);
2629
+ const bytes = new Uint8Array(binary.length);
2630
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
2631
+ return new TextDecoder().decode(bytes);
2632
+ }
2633
+ /**
2621
2634
  * Deserialize a value from a string that was serialized earlier.
2622
2635
  * @param {string} value - The string to deserialize.
2623
2636
  * @returns {unknown} The deserialized value.
@@ -2625,7 +2638,7 @@ var RemoteValue = class RemoteValue {
2625
2638
  */
2626
2639
  function deserializeProperty(value) {
2627
2640
  if (typeof value !== "string" || !value.startsWith("serialized:")) return value;
2628
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(11))));
2641
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(11))));
2629
2642
  }
2630
2643
  //#endregion
2631
2644
  //#region src/runtime/parse-property-value.ts
@@ -1,2 +1,2 @@
1
- import { A as Host, C as postUpdateComponent, D as parsePropertyValue, E as getElement, M as getAssetPath, N as setAssetPath, O as getMode, P as HYDRATED_STYLE_ID, S as getRenderingRef, T as createEvent, _ as connectedCallback, a as transformTag, b as setValue, c as setNonce, d as Fragment, f as bootstrapLazy, g as disconnectedCallback, h as proxyCustomElement, i as setTagTransformer, j as h, k as setMode, l as Mixin, m as forceModeUpdate, n as jsx, o as render, p as defineCustomElement, r as jsxs, s as setPlatformOptions, t as insertVdomAnnotations, u as addHostEventListeners, v as proxyComponent, w as renderVdom, x as forceUpdate, y as getValue } from "../runtime-CF9DJtSu.js";
1
+ import { A as Host, C as postUpdateComponent, D as parsePropertyValue, E as getElement, M as getAssetPath, N as setAssetPath, O as getMode, P as HYDRATED_STYLE_ID, S as getRenderingRef, T as createEvent, _ as connectedCallback, a as transformTag, b as setValue, c as setNonce, d as Fragment, f as bootstrapLazy, g as disconnectedCallback, h as proxyCustomElement, i as setTagTransformer, j as h, k as setMode, l as Mixin, m as forceModeUpdate, n as jsx, o as render, p as defineCustomElement, r as jsxs, s as setPlatformOptions, t as insertVdomAnnotations, u as addHostEventListeners, v as proxyComponent, w as renderVdom, x as forceUpdate, y as getValue } from "../runtime-CqlPYKjW.js";
2
2
  export { Fragment, HYDRATED_STYLE_ID, Host, Mixin, addHostEventListeners, bootstrapLazy, connectedCallback, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getValue, h, insertVdomAnnotations, jsx, jsxs, parsePropertyValue, postUpdateComponent, proxyComponent, proxyCustomElement, render, renderVdom, setAssetPath, setMode, setNonce, setPlatformOptions, setTagTransformer, setValue, transformTag };
@@ -2285,6 +2285,19 @@ var RemoteValue = class RemoteValue {
2285
2285
  //#endregion
2286
2286
  //#region src/utils/serialize.ts
2287
2287
  /**
2288
+ * Unicode-safe base64 decoding that handles characters outside Latin1 range.
2289
+ * Unlike atob(), this properly decodes Unicode characters including emoji,
2290
+ * CJK characters, and currency symbols like €.
2291
+ * @param {string} base64 - The base64 string to decode.
2292
+ * @returns {string} Decoded string.
2293
+ */
2294
+ function decodeBase64Unicode(base64) {
2295
+ const binary = atob(base64);
2296
+ const bytes = new Uint8Array(binary.length);
2297
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
2298
+ return new TextDecoder().decode(bytes);
2299
+ }
2300
+ /**
2288
2301
  * Deserialize a value from a string that was serialized earlier.
2289
2302
  * @param {string} value - The string to deserialize.
2290
2303
  * @returns {unknown} The deserialized value.
@@ -2292,7 +2305,7 @@ var RemoteValue = class RemoteValue {
2292
2305
  */
2293
2306
  function deserializeProperty(value) {
2294
2307
  if (typeof value !== "string" || !value.startsWith("serialized:")) return value;
2295
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(11))));
2308
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(11))));
2296
2309
  }
2297
2310
  //#endregion
2298
2311
  //#region src/runtime/parse-property-value.ts
@@ -12646,6 +12646,32 @@ var RemoteValue = class RemoteValue {
12646
12646
  //#endregion
12647
12647
  //#region src/utils/serialize.ts
12648
12648
  /**
12649
+ * Unicode-safe base64 encoding that handles characters outside Latin1 range.
12650
+ * Unlike btoa(), this properly handles Unicode characters including emoji,
12651
+ * CJK characters, and currency symbols like €.
12652
+ * @param {string} str - The string to encode.
12653
+ * @returns {string} Base64 encoded string.
12654
+ */
12655
+ function encodeBase64Unicode(str) {
12656
+ const utf8Bytes = new TextEncoder().encode(str);
12657
+ let binary = "";
12658
+ for (let i = 0; i < utf8Bytes.length; i++) binary += String.fromCharCode(utf8Bytes[i]);
12659
+ return btoa(binary);
12660
+ }
12661
+ /**
12662
+ * Unicode-safe base64 decoding that handles characters outside Latin1 range.
12663
+ * Unlike atob(), this properly decodes Unicode characters including emoji,
12664
+ * CJK characters, and currency symbols like €.
12665
+ * @param {string} base64 - The base64 string to decode.
12666
+ * @returns {string} Decoded string.
12667
+ */
12668
+ function decodeBase64Unicode(base64) {
12669
+ const binary = atob(base64);
12670
+ const bytes = new Uint8Array(binary.length);
12671
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
12672
+ return new TextDecoder().decode(bytes);
12673
+ }
12674
+ /**
12649
12675
  * Serialize a value to a string that can be deserialized later.
12650
12676
  * @param {unknown} value - The value to serialize.
12651
12677
  * @returns {string} A string that can be deserialized later.
@@ -12661,7 +12687,7 @@ function serializeProperty(value) {
12661
12687
  "undefined"
12662
12688
  ].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) return value;
12663
12689
  const arg = LocalValue.getArgument(value);
12664
- return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
12690
+ return SERIALIZED_PREFIX + encodeBase64Unicode(JSON.stringify(arg));
12665
12691
  }
12666
12692
  /**
12667
12693
  * Deserialize a value from a string that was serialized earlier.
@@ -12671,7 +12697,7 @@ function serializeProperty(value) {
12671
12697
  */
12672
12698
  function deserializeProperty(value) {
12673
12699
  if (typeof value !== "string" || !value.startsWith("serialized:")) return value;
12674
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(11))));
12700
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(11))));
12675
12701
  }
12676
12702
  new RegExp("Capture$");
12677
12703
  BUILD.lazyLoad || globalThis.HTMLElement;
@@ -2500,6 +2500,19 @@ var RemoteValue = class RemoteValue {
2500
2500
  //#endregion
2501
2501
  //#region src/utils/serialize.ts
2502
2502
  /**
2503
+ * Unicode-safe base64 decoding that handles characters outside Latin1 range.
2504
+ * Unlike atob(), this properly decodes Unicode characters including emoji,
2505
+ * CJK characters, and currency symbols like €.
2506
+ * @param {string} base64 - The base64 string to decode.
2507
+ * @returns {string} Decoded string.
2508
+ */
2509
+ function decodeBase64Unicode(base64) {
2510
+ const binary = atob(base64);
2511
+ const bytes = new Uint8Array(binary.length);
2512
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
2513
+ return new TextDecoder().decode(bytes);
2514
+ }
2515
+ /**
2503
2516
  * Deserialize a value from a string that was serialized earlier.
2504
2517
  * @param {string} value - The string to deserialize.
2505
2518
  * @returns {unknown} The deserialized value.
@@ -2507,7 +2520,7 @@ var RemoteValue = class RemoteValue {
2507
2520
  */
2508
2521
  function deserializeProperty(value) {
2509
2522
  if (typeof value !== "string" || !value.startsWith("serialized:")) return value;
2510
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(11))));
2523
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(11))));
2511
2524
  }
2512
2525
  //#endregion
2513
2526
  //#region src/runtime/parse-property-value.ts
@@ -735,6 +735,32 @@ var RemoteValue = class RemoteValue {
735
735
  //#endregion
736
736
  //#region src/utils/serialize.ts
737
737
  /**
738
+ * Unicode-safe base64 encoding that handles characters outside Latin1 range.
739
+ * Unlike btoa(), this properly handles Unicode characters including emoji,
740
+ * CJK characters, and currency symbols like €.
741
+ * @param {string} str - The string to encode.
742
+ * @returns {string} Base64 encoded string.
743
+ */
744
+ function encodeBase64Unicode(str) {
745
+ const utf8Bytes = new TextEncoder().encode(str);
746
+ let binary = "";
747
+ for (let i = 0; i < utf8Bytes.length; i++) binary += String.fromCharCode(utf8Bytes[i]);
748
+ return btoa(binary);
749
+ }
750
+ /**
751
+ * Unicode-safe base64 decoding that handles characters outside Latin1 range.
752
+ * Unlike atob(), this properly decodes Unicode characters including emoji,
753
+ * CJK characters, and currency symbols like €.
754
+ * @param {string} base64 - The base64 string to decode.
755
+ * @returns {string} Decoded string.
756
+ */
757
+ function decodeBase64Unicode(base64) {
758
+ const binary = atob(base64);
759
+ const bytes = new Uint8Array(binary.length);
760
+ for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
761
+ return new TextDecoder().decode(bytes);
762
+ }
763
+ /**
738
764
  * Serialize a value to a string that can be deserialized later.
739
765
  * @param {unknown} value - The value to serialize.
740
766
  * @returns {string} A string that can be deserialized later.
@@ -750,7 +776,7 @@ function serializeProperty(value) {
750
776
  "undefined"
751
777
  ].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) return value;
752
778
  const arg = LocalValue.getArgument(value);
753
- return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
779
+ return SERIALIZED_PREFIX + encodeBase64Unicode(JSON.stringify(arg));
754
780
  }
755
781
  /**
756
782
  * Deserialize a value from a string that was serialized earlier.
@@ -760,7 +786,7 @@ function serializeProperty(value) {
760
786
  */
761
787
  function deserializeProperty(value) {
762
788
  if (typeof value !== "string" || !value.startsWith("serialized:")) return value;
763
- return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(11))));
789
+ return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(11))));
764
790
  }
765
791
  //#endregion
766
792
  export { PrimitiveType as $, CUSTOM as A, DOCS_CUSTOM as B, toDashCase as C, CMP_FLAGS as D, queryNonceMetaTagContent as E, DIST_GLOBAL_STYLES as F, EVENT_FLAGS as G, DOCS_JSON as H, DIST_HYDRATE_SCRIPT as I, HTML_NS as J, GENERATED_DTS as K, DIST_LAZY as L, DIST as M, DIST_COLLECTION as N, COLLECTION_MANIFEST_FILE_NAME as O, DIST_CUSTOM_ELEMENTS as P, NonPrimitiveType as Q, DIST_LAZY_LOADER as R, toCamelCase as S, unique as T, DOCS_README as U, DOCS_CUSTOM_ELEMENTS_MANIFEST as V, DOCS_VSCODE as W, MEMBER_FLAGS as X, LISTENER_FLAGS as Y, NODE_TYPES as Z, isString as _, escapeRegExpSpecialCharacters as a, VALUE_CONSTANT as at, pluck as b, flatOne as c, XLINK_NS as ct, isComplexType as d, SERIALIZED_PREFIX as et, isDef as f, isObject as g, isNumber as h, LocalValue as i, VALID_CONFIG_OUTPUT_TARGETS as it, DEFAULT_STYLE_MODE as j, COPY as k, fromEntries as l, isIterable as m, serializeProperty as n, SVG_NS as nt, dashToPascalCase as o, WATCH_FLAGS as ot, isFunction as p, HOST_FLAGS as q, RemoteValue as r, TYPE_CONSTANT as rt, escapeWithPattern as s, WWW as st, deserializeProperty as t, STATS as tt, isBoolean as u, mergeIntoWith as v, toTitleCase as w, sortBy as x, noop as y, DIST_TYPES as z };
@@ -1,2 +1,2 @@
1
- import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-SxQIOCZE.mjs";
1
+ import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-BWBQAh8C.mjs";
2
2
  export { createNodeLogger, createNodeSys, setupNodeProcess };
@@ -1,5 +1,5 @@
1
- import { l as createWorkerMessageHandler } from "../../compiler-LX4_RKKd.mjs";
2
- import { t as createNodeSys } from "../../node-SxQIOCZE.mjs";
1
+ import { l as createWorkerMessageHandler } from "../../compiler-DyK1_szo.mjs";
2
+ import { t as createNodeSys } from "../../node-BWBQAh8C.mjs";
3
3
  //#region src/sys/node/node-worker-thread.ts
4
4
  /**
5
5
  * Initialize a worker thread, setting up various machinery for managing
@@ -1,8 +1,8 @@
1
- import { B as Env, T as reWireGetterSetter, _ as h, a as Mixin, c as forceUpdate, d as createEvent, f as getElement, g as Host, l as getRenderingRef, o as Fragment, p as getMode, s as bootstrapLazy, t as insertVdomAnnotations, u as renderVdom, v as getAssetPath, y as setAssetPath, z as BUILD } from "../client-B1nuvCd2.mjs";
2
- import { D as CMP_FLAGS, G as EVENT_FLAGS, y as noop } from "../serialize-BkYHk7Mi.mjs";
3
- import { _ as getBuildFeatures, c as createWorkerContext, h as BuildContext, i as createSystem, m as Cache, p as createInMemoryFs } from "../compiler-LX4_RKKd.mjs";
4
- import { St as formatLazyBundleRuntimeMeta } from "../validation-CaCgjw-f.mjs";
5
- import { o as buildEvents } from "../node-SxQIOCZE.mjs";
1
+ import { B as Env, T as reWireGetterSetter, _ as h, a as Mixin, c as forceUpdate, d as createEvent, f as getElement, g as Host, l as getRenderingRef, o as Fragment, p as getMode, s as bootstrapLazy, t as insertVdomAnnotations, u as renderVdom, v as getAssetPath, y as setAssetPath, z as BUILD } from "../client-DucyoZT4.mjs";
2
+ import { D as CMP_FLAGS, G as EVENT_FLAGS, y as noop } from "../serialize-o-Sj1lvg.mjs";
3
+ import { _ as getBuildFeatures, c as createWorkerContext, h as BuildContext, i as createSystem, m as Cache, p as createInMemoryFs } from "../compiler-DyK1_szo.mjs";
4
+ import { St as formatLazyBundleRuntimeMeta } from "../validation-BR7tMYEv.mjs";
5
+ import { o as buildEvents } from "../node-BWBQAh8C.mjs";
6
6
  import path from "node:path";
7
7
  import path$1 from "path";
8
8
  import { MockWindow, setupGlobal } from "@stencil/mock-doc";
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-CjcI7cDX.mjs";
2
- import { A as CUSTOM, B as DOCS_CUSTOM, C as toDashCase, D as CMP_FLAGS, F as DIST_GLOBAL_STYLES, H as DOCS_JSON, I as DIST_HYDRATE_SCRIPT, K as GENERATED_DTS, L as DIST_LAZY, M as DIST, N as DIST_COLLECTION, P as DIST_CUSTOM_ELEMENTS, R as DIST_LAZY_LOADER, U as DOCS_README, V as DOCS_CUSTOM_ELEMENTS_MANIFEST, W as DOCS_VSCODE, X as MEMBER_FLAGS, Y as LISTENER_FLAGS, _ as isString, c as flatOne, it as VALID_CONFIG_OUTPUT_TARGETS, k as COPY, m as isIterable, o as dashToPascalCase, ot as WATCH_FLAGS, s as escapeWithPattern, tt as STATS, w as toTitleCase, x as sortBy, z as DIST_TYPES } from "./serialize-BkYHk7Mi.mjs";
2
+ import { A as CUSTOM, B as DOCS_CUSTOM, C as toDashCase, D as CMP_FLAGS, F as DIST_GLOBAL_STYLES, H as DOCS_JSON, I as DIST_HYDRATE_SCRIPT, K as GENERATED_DTS, L as DIST_LAZY, M as DIST, N as DIST_COLLECTION, P as DIST_CUSTOM_ELEMENTS, R as DIST_LAZY_LOADER, U as DOCS_README, V as DOCS_CUSTOM_ELEMENTS_MANIFEST, W as DOCS_VSCODE, X as MEMBER_FLAGS, Y as LISTENER_FLAGS, _ as isString, c as flatOne, it as VALID_CONFIG_OUTPUT_TARGETS, k as COPY, m as isIterable, o as dashToPascalCase, ot as WATCH_FLAGS, s as escapeWithPattern, tt as STATS, w as toTitleCase, x as sortBy, z as DIST_TYPES } from "./serialize-o-Sj1lvg.mjs";
3
3
  import path, { basename, dirname, relative } from "node:path";
4
4
  import { minimatch } from "minimatch";
5
5
  //#region src/utils/byte-size.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-alpha.1",
3
+ "version": "5.0.0-alpha.2",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -113,9 +113,9 @@
113
113
  "semver": "^7.7.4",
114
114
  "terser": "5.37.0",
115
115
  "typescript": "~6.0.2",
116
- "@stencil/dev-server": "5.0.0-alpha.1",
117
- "@stencil/cli": "5.0.0-alpha.1",
118
- "@stencil/mock-doc": "5.0.0-alpha.1"
116
+ "@stencil/cli": "5.0.0-alpha.2",
117
+ "@stencil/dev-server": "5.0.0-alpha.2",
118
+ "@stencil/mock-doc": "5.0.0-alpha.2"
119
119
  },
120
120
  "devDependencies": {
121
121
  "@ionic/prettier-config": "^4.0.0",