@stencil/core 5.0.0-beta.13 → 5.0.0-beta.14

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.
@@ -223,7 +223,7 @@ let queuePending = false;
223
223
  const queueDomReads = [];
224
224
  const queueDomWrites = [];
225
225
  const queueDomWritesLow = [];
226
- const scheduleFlush = () => win.document?.hidden ? nextTick(flush) : plt.raf(flush);
226
+ const scheduleFlush = () => win.document?.hidden ? setTimeout(flush, 16) : plt.raf(flush);
227
227
  const queueTask = (queue, write) => (cb) => {
228
228
  queue.push(cb);
229
229
  if (!queuePending) {
@@ -1501,7 +1501,7 @@ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector)
1501
1501
  else return shallowPart.trim();
1502
1502
  }).join(", ");
1503
1503
  };
1504
- const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer");
1504
+ const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer") || selector.startsWith("@container");
1505
1505
  const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
1506
1506
  return processRules(cssText, (rule) => {
1507
1507
  let selector = rule.selector;
@@ -1844,7 +1844,7 @@ const validateComponentTag = (tag) => {
1844
1844
  };
1845
1845
  //#endregion
1846
1846
  //#region src/version.ts
1847
- const version = "5.0.0-beta.13";
1847
+ const version = "5.0.0-beta.14";
1848
1848
  //#endregion
1849
1849
  //#region src/compiler/events.ts
1850
1850
  const buildEvents = () => {
@@ -1,3 +1,3 @@
1
- import { A as versions, C as replaceStencilCssComponentsImport, D as buildId, E as parseCssOnlyComponents, O as vermoji, S as hasStencilHydrateImport, T as replaceStencilHydrateImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as hasStencilCssComponentsImport, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as scopeCss, k as version, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilGlobalsImport, x as hasStencilGlobalsImport, y as buildHydrateCss } from "../compiler-Dr9JHtLp.mjs";
2
- import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-DrwzfDH1.mjs";
1
+ import { A as versions, C as replaceStencilCssComponentsImport, D as buildId, E as parseCssOnlyComponents, O as vermoji, S as hasStencilHydrateImport, T as replaceStencilHydrateImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as hasStencilCssComponentsImport, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as scopeCss, k as version, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilGlobalsImport, x as hasStencilGlobalsImport, y as buildHydrateCss } from "../compiler-Bit_AiP4.mjs";
2
+ import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-Bw9pHJOq.mjs";
3
3
  export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, generateComponentTypesFile, generateManifest, getScopeId, hasStencilCssComponentsImport, hasStencilGlobalsImport, hasStencilHydrateImport, loadConfig, nodeRequire, optimizeCss, optimizeJs, parseCssOnlyComponents, replaceStencilCssComponentsImport, replaceStencilGlobalsImport, replaceStencilHydrateImport, scopeCss, transpile, transpileSync, ts, validateConfig, validateHydrated, vermoji, version, versions };
@@ -1,9 +1,9 @@
1
1
  import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import { S as HYDRATED_CSS } from "./client-NHI55T4R.mjs";
2
+ import { S as HYDRATED_CSS } from "./client-CAQvc3hT.mjs";
3
3
  import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME, J as STANDALONE, L as EVENT_FLAGS, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, T as COLLECTION_APP_DATA_FILE_NAME, U as LOADER_BUNDLE, X as STYLE_EXT, Y as STATS, a as isBoolean$1, b as unique, c as isFunction, d as isObject, et as WATCH_FLAGS, f as isString$1, g as sortBy, i as fromEntries, l as isIterable, m as noop, p as mergeIntoWith, r as flatOne, t as dashToPascalCase, u as isNumber$1, v as toDashCase, w as COLLECTION, y as toTitleCase, z as GLOBAL_STYLE } from "./helpers-Cpp3qc3u.mjs";
4
4
  import { E as escapeRegExpSpecialCharacters, S as formatComponentRuntimeMeta, T as byteSize, _ as loadRolldownDiagnostics, a as getSourceMappingUrlForEndOfFile, b as splitLineBreaks, c as err, f as augmentDiagnosticWithNode, g as isRolldownError, h as createOnWarnFn, i as getInlineSourceMappingUrlLinker, l as map, m as loadTypeScriptDiagnostics, n as validateComponentTag, p as loadTypeScriptDiagnostic, r as isRemoteUrl, s as rolldownToStencilSourceMap, t as validateComponentModes, u as ok, w as stringifyRuntimeData, x as isRootPath, y as normalizeDiagnostics } from "./validation-DAdGTrys.mjs";
5
- import { $ as catchError, A as isOutputTargetDocsVscode, B as relativeImport, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetStandalone, G as normalizeFsPathQuery, H as join$2, I as isOutputTargetStats, J as resolve$2, K as normalizePath, L as isOutputTargetTypes, M as isOutputTargetLoaderBundle, N as isOutputTargetSsr, O as isOutputTargetDocsJson, P as isOutputTargetSsrWasm, Q as buildWarn, R as isOutputTargetWww, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, W as normalizeFsPath, X as buildError, Z as buildJsonFileError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as hasError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, o as isDtsFile, p as readPackageJson, q as relative$1, r as generatePreamble, rt as isGlob, t as addDocBlock, tt as hasWarning, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isValidConfigOutputTarget } from "./util-IKfWWLJo.mjs";
6
- import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-DrwzfDH1.mjs";
5
+ import { $ as catchError, A as isOutputTargetDocsVscode, B as relativeImport, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetStandalone, G as normalizeFsPathQuery, H as join$2, I as isOutputTargetStats, J as resolve$2, K as normalizePath, L as isOutputTargetTypes, M as isOutputTargetLoaderBundle, N as isOutputTargetSsr, O as isOutputTargetDocsJson, P as isOutputTargetSsrWasm, Q as buildWarn, R as isOutputTargetWww, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, V as shouldExcludeComponent, W as normalizeFsPath, X as buildError, Z as buildJsonFileError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as hasError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, o as isDtsFile, p as readPackageJson, q as relative$1, r as generatePreamble, rt as isGlob, t as addDocBlock, tt as hasWarning, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isValidConfigOutputTarget } from "./util-IKfWWLJo.mjs";
6
+ import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-Bw9pHJOq.mjs";
7
7
  import ts, { default as ts$1 } from "typescript";
8
8
  import { readFileSync } from "node:fs";
9
9
  import { basename, dirname, isAbsolute, join, resolve } from "node:path";
@@ -343,7 +343,7 @@ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector)
343
343
  else return shallowPart.trim();
344
344
  }).join(", ");
345
345
  };
346
- const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer");
346
+ const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer") || selector.startsWith("@container");
347
347
  const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
348
348
  return processRules(cssText, (rule) => {
349
349
  let selector = rule.selector;
@@ -462,9 +462,9 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
462
462
  };
463
463
  //#endregion
464
464
  //#region src/version.ts
465
- const version = "5.0.0-beta.13";
466
- const buildId = "1790721042";
467
- const vermoji = "🌎";
465
+ const version = "5.0.0-beta.14";
466
+ const buildId = "1790782456";
467
+ const vermoji = "🐬";
468
468
  /**
469
469
  * Get the installed version of a tool/dependency.
470
470
  * Handles packages with exports maps that point to subdirectories.
@@ -3811,10 +3811,11 @@ const mapImportsToPathAliases = (config, destinationFilePath, outputTarget) => {
3811
3811
  const outputCollection = async (config, compilerCtx, buildCtx, changedModuleFiles) => {
3812
3812
  const outputTargets = config.outputTargets.filter(isOutputTargetCollection);
3813
3813
  if (outputTargets.length === 0) return;
3814
+ const collectionModuleFiles = changedModuleFiles.filter((mod) => config.devMode || !mod.cmps.some((cmp) => shouldExcludeComponent(cmp.tagName, config.excludeComponents)));
3814
3815
  const bundlingEventMessage = `generate collection${config.sourceMap ? " + source maps" : ""}`;
3815
3816
  const timespan = buildCtx.createTimeSpan(`${bundlingEventMessage} started`, true);
3816
3817
  try {
3817
- await Promise.all(changedModuleFiles.map(async (mod) => {
3818
+ await Promise.all(collectionModuleFiles.map(async (mod) => {
3818
3819
  let code = mod.staticSourceFileText;
3819
3820
  if (config.preamble) code = `${generatePreamble(config)}\n${code}`;
3820
3821
  const mapCode = mod.sourceMapFileText;
@@ -3883,7 +3884,7 @@ const serializeCollectionManifest = (config, compilerCtx, buildCtx) => {
3883
3884
  buildFlags.constructableCSS = true;
3884
3885
  buildFlags.cssAnnotations = true;
3885
3886
  const collectionManifest = {
3886
- entries: buildCtx.moduleFiles.filter((mod) => !mod.isCollectionDependency && mod.cmps.length > 0).map((mod) => relative$1(config.srcDir, mod.jsFilePath)),
3887
+ entries: buildCtx.moduleFiles.filter((mod) => !mod.isCollectionDependency && mod.cmps.length > 0 && (config.devMode || !mod.cmps.some((cmp) => shouldExcludeComponent(cmp.tagName, config.excludeComponents)))).map((mod) => relative$1(config.srcDir, mod.jsFilePath)),
3887
3888
  mixins: buildCtx.moduleFiles.filter((mod) => !mod.isCollectionDependency && mod.hasExportableMixins && mod.cmps.length === 0).map((mod) => relative$1(config.srcDir, mod.jsFilePath)),
3888
3889
  compiler: {
3889
3890
  name: "@stencil/core",
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, w as Build, x as setPlatformHelpers, y as readTask } from "./client-NHI55T4R.mjs";
1
+ import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, w as Build, x as setPlatformHelpers, y as readTask } from "./client-CAQvc3hT.mjs";
2
2
  import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
3
  //#region src/client/client-decorators.ts
4
4
  /**
@@ -1,3 +1,3 @@
1
- import { n as jsxDEV, r as jsxs, t as jsx } from "./client-NHI55T4R.mjs";
1
+ import { n as jsxDEV, r as jsxs, t as jsx } from "./client-CAQvc3hT.mjs";
2
2
  import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
3
  export { Fragment, jsx, jsxDEV, jsxs };
@@ -1,5 +1,5 @@
1
1
  import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import "./client-NHI55T4R.mjs";
2
+ import "./client-CAQvc3hT.mjs";
3
3
  import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-Cpp3qc3u.mjs";
4
4
  import { $ as catchError, K as normalizePath, X as buildError, Y as TASK_CANCELED_MSG, nt as shouldIgnoreError, rt as isGlob } from "./util-IKfWWLJo.mjs";
5
5
  import fs from "node:fs";
@@ -607,7 +607,7 @@ let queuePending = false;
607
607
  const queueDomReads = [];
608
608
  const queueDomWrites = [];
609
609
  const queueDomWritesLow = [];
610
- const scheduleFlush = () => win.document?.hidden ? nextTick(flush) : plt.raf(flush);
610
+ const scheduleFlush = () => win.document?.hidden ? setTimeout(flush, 16) : plt.raf(flush);
611
611
  const queueTask = (queue, write) => (cb) => {
612
612
  queue.push(cb);
613
613
  if (!queuePending) {
@@ -4015,7 +4015,7 @@ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector)
4015
4015
  else return shallowPart.trim();
4016
4016
  }).join(", ");
4017
4017
  };
4018
- const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer");
4018
+ const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer") || selector.startsWith("@container");
4019
4019
  const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
4020
4020
  return processRules(cssText, (rule) => {
4021
4021
  let selector = rule.selector;
@@ -4650,9 +4650,16 @@ const connectedCallback = (elm) => {
4650
4650
  }
4651
4651
  if (BUILD.asyncLoading) {
4652
4652
  let ancestorComponent = elm;
4653
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) if (BUILD.hydrateClientSide && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
4654
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4655
- break;
4653
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
4654
+ if (BUILD.hydrateClientSide && !ancestorComponent["s-p"] && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id")) {
4655
+ ancestorComponent["s-p"] = [];
4656
+ ancestorComponent["s-rc"] = [];
4657
+ ancestorComponent["s-pc"] = [];
4658
+ }
4659
+ if (ancestorComponent["s-p"]) {
4660
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4661
+ break;
4662
+ }
4656
4663
  }
4657
4664
  }
4658
4665
  if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
@@ -601,7 +601,7 @@ let queuePending = false;
601
601
  const queueDomReads = [];
602
602
  const queueDomWrites = [];
603
603
  const queueDomWritesLow = [];
604
- const scheduleFlush = () => win.document?.hidden ? nextTick(flush) : plt.raf(flush);
604
+ const scheduleFlush = () => win.document?.hidden ? setTimeout(flush, 16) : plt.raf(flush);
605
605
  const queueTask = (queue, write) => (cb) => {
606
606
  queue.push(cb);
607
607
  if (!queuePending) {
@@ -4009,7 +4009,7 @@ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector)
4009
4009
  else return shallowPart.trim();
4010
4010
  }).join(", ");
4011
4011
  };
4012
- const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer");
4012
+ const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer") || selector.startsWith("@container");
4013
4013
  const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
4014
4014
  return processRules(cssText, (rule) => {
4015
4015
  let selector = rule.selector;
@@ -4644,9 +4644,16 @@ const connectedCallback = (elm) => {
4644
4644
  }
4645
4645
  if (BUILD$1.asyncLoading) {
4646
4646
  let ancestorComponent = elm;
4647
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) if (BUILD$1.hydrateClientSide && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
4648
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4649
- break;
4647
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
4648
+ if (BUILD$1.hydrateClientSide && !ancestorComponent["s-p"] && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id")) {
4649
+ ancestorComponent["s-p"] = [];
4650
+ ancestorComponent["s-rc"] = [];
4651
+ ancestorComponent["s-pc"] = [];
4652
+ }
4653
+ if (ancestorComponent["s-p"]) {
4654
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4655
+ break;
4656
+ }
4650
4657
  }
4651
4658
  }
4652
4659
  if (BUILD$1.prop && !BUILD$1.hydrateServerSide && cmpMeta.$members$) Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
@@ -480,7 +480,7 @@ let queuePending = false;
480
480
  const queueDomReads = [];
481
481
  const queueDomWrites = [];
482
482
  const queueDomWritesLow = [];
483
- const scheduleFlush = () => win.document?.hidden ? nextTick(flush) : plt.raf(flush);
483
+ const scheduleFlush = () => win.document?.hidden ? setTimeout(flush, 16) : plt.raf(flush);
484
484
  const queueTask = (queue, write) => (cb) => {
485
485
  queue.push(cb);
486
486
  if (!queuePending) {
@@ -3881,7 +3881,7 @@ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector)
3881
3881
  else return shallowPart.trim();
3882
3882
  }).join(", ");
3883
3883
  };
3884
- const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer");
3884
+ const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer") || selector.startsWith("@container");
3885
3885
  const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
3886
3886
  return processRules(cssText, (rule) => {
3887
3887
  let selector = rule.selector;
@@ -4516,9 +4516,16 @@ const connectedCallback = (elm) => {
4516
4516
  }
4517
4517
  if (BUILD.asyncLoading) {
4518
4518
  let ancestorComponent = elm;
4519
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) if (BUILD.hydrateClientSide && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
4520
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4521
- break;
4519
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
4520
+ if (BUILD.hydrateClientSide && !ancestorComponent["s-p"] && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id")) {
4521
+ ancestorComponent["s-p"] = [];
4522
+ ancestorComponent["s-rc"] = [];
4523
+ ancestorComponent["s-pc"] = [];
4524
+ }
4525
+ if (ancestorComponent["s-p"]) {
4526
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4527
+ break;
4528
+ }
4522
4529
  }
4523
4530
  }
4524
4531
  if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
@@ -3625,7 +3625,7 @@ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector)
3625
3625
  else return shallowPart.trim();
3626
3626
  }).join(", ");
3627
3627
  };
3628
- const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer");
3628
+ const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer") || selector.startsWith("@container");
3629
3629
  const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
3630
3630
  return processRules(cssText, (rule) => {
3631
3631
  let selector = rule.selector;
@@ -4260,9 +4260,16 @@ const connectedCallback = (elm) => {
4260
4260
  }
4261
4261
  if (BUILD$1.asyncLoading) {
4262
4262
  let ancestorComponent = elm;
4263
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) if (BUILD$1.hydrateClientSide && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
4264
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4265
- break;
4263
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
4264
+ if (BUILD$1.hydrateClientSide && !ancestorComponent["s-p"] && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id")) {
4265
+ ancestorComponent["s-p"] = [];
4266
+ ancestorComponent["s-rc"] = [];
4267
+ ancestorComponent["s-pc"] = [];
4268
+ }
4269
+ if (ancestorComponent["s-p"]) {
4270
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
4271
+ break;
4272
+ }
4266
4273
  }
4267
4274
  }
4268
4275
  if (BUILD$1.prop && !BUILD$1.hydrateServerSide && cmpMeta.$members$) Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
@@ -8047,10 +8047,12 @@ var MockTokenList = class {
8047
8047
  token = String(token);
8048
8048
  return getItems(this.elm, this.attr).includes(token);
8049
8049
  }
8050
- toggle(token) {
8050
+ toggle(token, force) {
8051
8051
  token = String(token);
8052
- if (this.contains(token) === true) this.remove(token);
8053
- else this.add(token);
8052
+ const shouldAdd = force === void 0 ? !this.contains(token) : !!force;
8053
+ if (shouldAdd) this.add(token);
8054
+ else this.remove(token);
8055
+ return shouldAdd;
8054
8056
  }
8055
8057
  get length() {
8056
8058
  return getItems(this.elm, this.attr).length;
@@ -1,2 +1,2 @@
1
- import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-DrwzfDH1.mjs";
1
+ import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-Bw9pHJOq.mjs";
2
2
  export { createNodeLogger, createNodeSys, setupNodeProcess };
@@ -1,5 +1,5 @@
1
- import { l as createWorkerMessageHandler } from "../../compiler-Dr9JHtLp.mjs";
2
- import { t as createNodeSys } from "../../node-DrwzfDH1.mjs";
1
+ import { l as createWorkerMessageHandler } from "../../compiler-Bit_AiP4.mjs";
2
+ import { t as createNodeSys } from "../../node-Bw9pHJOq.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
@@ -33,7 +33,7 @@ import "@rollup/pluginutils";
33
33
  import { createHash } from "crypto";
34
34
  import { afterAll, vi } from "vitest";
35
35
  //#region src/version.ts
36
- const version = "5.0.0-beta.13";
36
+ const version = "5.0.0-beta.14";
37
37
  const MEMBER_FLAGS = {
38
38
  String: 1,
39
39
  Number: 2,
@@ -4393,7 +4393,7 @@ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector)
4393
4393
  else return shallowPart.trim();
4394
4394
  }).join(", ");
4395
4395
  };
4396
- const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer");
4396
+ const isScopableAtRule = (selector) => selector.startsWith("@media") || selector.startsWith("@supports") || selector.startsWith("@page") || selector.startsWith("@document") || selector.startsWith("@layer") || selector.startsWith("@container");
4397
4397
  const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
4398
4398
  return processRules(cssText, (rule) => {
4399
4399
  let selector = rule.selector;
@@ -5024,9 +5024,16 @@ const connectedCallback = (elm) => {
5024
5024
  }
5025
5025
  if (BUILD.asyncLoading) {
5026
5026
  let ancestorComponent = elm;
5027
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) if (BUILD.hydrateClientSide && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
5028
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
5029
- break;
5027
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
5028
+ if (BUILD.hydrateClientSide && !ancestorComponent["s-p"] && ancestorComponent.nodeType === NODE_TYPE.ElementNode && ancestorComponent.hasAttribute("s-id")) {
5029
+ ancestorComponent["s-p"] = [];
5030
+ ancestorComponent["s-rc"] = [];
5031
+ ancestorComponent["s-pc"] = [];
5032
+ }
5033
+ if (ancestorComponent["s-p"]) {
5034
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
5035
+ break;
5036
+ }
5030
5037
  }
5031
5038
  }
5032
5039
  if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-beta.13",
3
+ "version": "5.0.0-beta.14",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -126,9 +126,9 @@
126
126
  "terser": "^5.50.0",
127
127
  "tinyglobby": "^0.2.17",
128
128
  "typescript": ">5.0.0 <7.0.0",
129
- "@stencil/cli": "5.0.0-beta.13",
130
- "@stencil/dev-server": "5.0.0-beta.13",
131
- "@stencil/mock-doc": "5.0.0-beta.13"
129
+ "@stencil/cli": "5.0.0-beta.14",
130
+ "@stencil/dev-server": "5.0.0-beta.14",
131
+ "@stencil/mock-doc": "5.0.0-beta.14"
132
132
  },
133
133
  "devDependencies": {
134
134
  "@ionic/prettier-config": "^4.0.0",