@stencil/core 5.0.0-beta.33 → 5.0.0-beta.34
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.
- package/dist/{client-DIvBaMnB.mjs → client-UbH-XkYu.mjs} +4 -1
- package/dist/compiler/browser.js +1 -1
- package/dist/compiler/index.mjs +2 -2
- package/dist/{compiler-BY98wn8T.mjs → compiler-CVL510L-.mjs} +5 -5
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-CPevTsN9.mjs → node-eg7pofz5.mjs} +1 -1
- package/dist/runtime/client/lazy.js +6 -7
- package/dist/runtime/client/runtime.js +6 -7
- package/dist/runtime/index.js +6 -7
- package/dist/runtime/server/index.mjs +6 -7
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.mjs +7 -8
- package/package.json +4 -4
|
@@ -1057,6 +1057,7 @@ let hostTagName;
|
|
|
1057
1057
|
let hostRegistry;
|
|
1058
1058
|
let useNativeShadowDom = false;
|
|
1059
1059
|
let checkSlotFallbackVisibility = false;
|
|
1060
|
+
/** Whether the current render has slotted content to relocate. Set at the start of each render. */
|
|
1060
1061
|
let checkSlotRelocate = false;
|
|
1061
1062
|
let isSvgMode = false;
|
|
1062
1063
|
/**
|
|
@@ -1616,6 +1617,7 @@ const flushQueuedRefCallbacks = () => {
|
|
|
1616
1617
|
*/
|
|
1617
1618
|
const insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
1618
1619
|
if (BUILD.slotRelocation) {
|
|
1620
|
+
if (parent?.["s-cr"]) checkSlotRelocate = true;
|
|
1619
1621
|
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
1620
1622
|
else if (typeof newNode["s-sn"] === "string") {
|
|
1621
1623
|
const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
|
|
@@ -1718,6 +1720,7 @@ render() {
|
|
|
1718
1720
|
if (BUILD.slotRelocation) {
|
|
1719
1721
|
contentRef = hostElm["s-cr"];
|
|
1720
1722
|
checkSlotFallbackVisibility = false;
|
|
1723
|
+
checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
|
|
1721
1724
|
}
|
|
1722
1725
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1723
1726
|
if (BUILD.slotRelocation) {
|
|
@@ -1787,7 +1790,7 @@ render() {
|
|
|
1787
1790
|
nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
|
|
1788
1791
|
}
|
|
1789
1792
|
}
|
|
1790
|
-
if (BUILD.slotRelocation && !
|
|
1793
|
+
if (BUILD.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
|
|
1791
1794
|
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
1792
1795
|
for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
|
|
1793
1796
|
if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
|
package/dist/compiler/browser.js
CHANGED
|
@@ -1843,7 +1843,7 @@ const validateComponentTag = (tag) => {
|
|
|
1843
1843
|
};
|
|
1844
1844
|
//#endregion
|
|
1845
1845
|
//#region src/version.ts
|
|
1846
|
-
const version = "5.0.0-beta.
|
|
1846
|
+
const version = "5.0.0-beta.34";
|
|
1847
1847
|
//#endregion
|
|
1848
1848
|
//#region src/compiler/events.ts
|
|
1849
1849
|
const buildEvents = () => {
|
package/dist/compiler/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, 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 replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-
|
|
2
|
-
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-
|
|
1
|
+
import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, 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 replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-CVL510L-.mjs";
|
|
2
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-eg7pofz5.mjs";
|
|
3
3
|
export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, foldBuildFlags, 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 { E as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, w as CLIENT_BUILD_FLAGS } from "./client-
|
|
2
|
+
import { E as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, w as CLIENT_BUILD_FLAGS } from "./client-UbH-XkYu.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-BlVm1Vu0.mjs";
|
|
5
5
|
import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative$1, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join$2, V as relativeImport, Y as resolve$2, Z as buildError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "./util-C-H1H84W.mjs";
|
|
6
|
-
import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-
|
|
6
|
+
import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-eg7pofz5.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";
|
|
@@ -461,9 +461,9 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
|
461
461
|
};
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/version.ts
|
|
464
|
-
const version = "5.0.0-beta.
|
|
465
|
-
const buildId = "
|
|
466
|
-
const vermoji = "
|
|
464
|
+
const version = "5.0.0-beta.34";
|
|
465
|
+
const buildId = "1793980027";
|
|
466
|
+
const vermoji = "🦀";
|
|
467
467
|
/**
|
|
468
468
|
* Get the installed version of a tool/dependency.
|
|
469
469
|
* Handles packages with exports maps that point to subdirectories.
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Build, S 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, x as setPlatformHelpers, y as readTask } from "./client-
|
|
1
|
+
import { C as Build, S 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, x as setPlatformHelpers, y as readTask } from "./client-UbH-XkYu.mjs";
|
|
2
2
|
import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
|
|
3
3
|
//#region src/client/client-decorators.ts
|
|
4
4
|
/**
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import "./client-
|
|
2
|
+
import "./client-UbH-XkYu.mjs";
|
|
3
3
|
import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-Cpp3qc3u.mjs";
|
|
4
4
|
import { X as TASK_CANCELED_MSG, Z as buildError, et as catchError, it as isGlob, q as normalizePath, rt as shouldIgnoreError } from "./util-C-H1H84W.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -2039,6 +2039,7 @@ let hostTagName;
|
|
|
2039
2039
|
let hostRegistry;
|
|
2040
2040
|
let useNativeShadowDom = false;
|
|
2041
2041
|
let checkSlotFallbackVisibility = false;
|
|
2042
|
+
/** Whether the current render has slotted content to relocate. Set at the start of each render. */
|
|
2042
2043
|
let checkSlotRelocate = false;
|
|
2043
2044
|
let isSvgMode = false;
|
|
2044
2045
|
/**
|
|
@@ -2598,6 +2599,7 @@ const flushQueuedRefCallbacks = () => {
|
|
|
2598
2599
|
*/
|
|
2599
2600
|
const insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
2600
2601
|
if (BUILD.slotRelocation) {
|
|
2602
|
+
if (parent?.["s-cr"]) checkSlotRelocate = true;
|
|
2601
2603
|
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
2602
2604
|
else if (typeof newNode["s-sn"] === "string") {
|
|
2603
2605
|
const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
|
|
@@ -2700,6 +2702,7 @@ render() {
|
|
|
2700
2702
|
if (BUILD.slotRelocation) {
|
|
2701
2703
|
contentRef = hostElm["s-cr"];
|
|
2702
2704
|
checkSlotFallbackVisibility = false;
|
|
2705
|
+
checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
|
|
2703
2706
|
}
|
|
2704
2707
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
2705
2708
|
if (BUILD.slotRelocation) {
|
|
@@ -2769,7 +2772,7 @@ render() {
|
|
|
2769
2772
|
nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
|
|
2770
2773
|
}
|
|
2771
2774
|
}
|
|
2772
|
-
if (BUILD.slotRelocation && !
|
|
2775
|
+
if (BUILD.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
|
|
2773
2776
|
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
2774
2777
|
for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
|
|
2775
2778
|
if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
|
|
@@ -3463,7 +3466,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3463
3466
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
3464
3467
|
const node = childRenderNode.$elm$;
|
|
3465
3468
|
if (!shadowRoot) {
|
|
3466
|
-
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3469
|
+
if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3467
3470
|
if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
|
|
3468
3471
|
} else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
3469
3472
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
@@ -3513,11 +3516,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3513
3516
|
const siSlot = slottedItem.slot;
|
|
3514
3517
|
if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
|
|
3515
3518
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
3516
|
-
if (!siSlot["s-cr"])
|
|
3517
|
-
siSlot["s-cr"] = hostEle["s-cr"];
|
|
3518
|
-
if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
|
|
3519
|
-
else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
3520
|
-
}
|
|
3519
|
+
if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
|
|
3521
3520
|
addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
|
|
3522
3521
|
if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
|
|
3523
3522
|
if (BUILD.lightDomPatches || BUILD.slotChildNodes || BUILD.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
|
|
@@ -2033,6 +2033,7 @@ let hostTagName;
|
|
|
2033
2033
|
let hostRegistry;
|
|
2034
2034
|
let useNativeShadowDom = false;
|
|
2035
2035
|
let checkSlotFallbackVisibility = false;
|
|
2036
|
+
/** Whether the current render has slotted content to relocate. Set at the start of each render. */
|
|
2036
2037
|
let checkSlotRelocate = false;
|
|
2037
2038
|
let isSvgMode = false;
|
|
2038
2039
|
/**
|
|
@@ -2592,6 +2593,7 @@ const flushQueuedRefCallbacks = () => {
|
|
|
2592
2593
|
*/
|
|
2593
2594
|
const insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
2594
2595
|
if (BUILD$1.slotRelocation) {
|
|
2596
|
+
if (parent?.["s-cr"]) checkSlotRelocate = true;
|
|
2595
2597
|
if (BUILD$1.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
2596
2598
|
else if (typeof newNode["s-sn"] === "string") {
|
|
2597
2599
|
const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
|
|
@@ -2694,6 +2696,7 @@ render() {
|
|
|
2694
2696
|
if (BUILD$1.slotRelocation) {
|
|
2695
2697
|
contentRef = hostElm["s-cr"];
|
|
2696
2698
|
checkSlotFallbackVisibility = false;
|
|
2699
|
+
checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
|
|
2697
2700
|
}
|
|
2698
2701
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
2699
2702
|
if (BUILD$1.slotRelocation) {
|
|
@@ -2763,7 +2766,7 @@ render() {
|
|
|
2763
2766
|
nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
|
|
2764
2767
|
}
|
|
2765
2768
|
}
|
|
2766
|
-
if (BUILD$1.slotRelocation && !
|
|
2769
|
+
if (BUILD$1.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
|
|
2767
2770
|
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
2768
2771
|
for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
|
|
2769
2772
|
if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
|
|
@@ -3457,7 +3460,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3457
3460
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
3458
3461
|
const node = childRenderNode.$elm$;
|
|
3459
3462
|
if (!shadowRoot) {
|
|
3460
|
-
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3463
|
+
if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3461
3464
|
if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
|
|
3462
3465
|
} else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
3463
3466
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
@@ -3507,11 +3510,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3507
3510
|
const siSlot = slottedItem.slot;
|
|
3508
3511
|
if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
|
|
3509
3512
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
3510
|
-
if (!siSlot["s-cr"])
|
|
3511
|
-
siSlot["s-cr"] = hostEle["s-cr"];
|
|
3512
|
-
if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
|
|
3513
|
-
else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
3514
|
-
}
|
|
3513
|
+
if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
|
|
3515
3514
|
addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
|
|
3516
3515
|
if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
|
|
3517
3516
|
if (BUILD$1.lightDomPatches || BUILD$1.slotChildNodes || BUILD$1.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
|
package/dist/runtime/index.js
CHANGED
|
@@ -1905,6 +1905,7 @@ let hostTagName;
|
|
|
1905
1905
|
let hostRegistry;
|
|
1906
1906
|
let useNativeShadowDom = false;
|
|
1907
1907
|
let checkSlotFallbackVisibility = false;
|
|
1908
|
+
/** Whether the current render has slotted content to relocate. Set at the start of each render. */
|
|
1908
1909
|
let checkSlotRelocate = false;
|
|
1909
1910
|
let isSvgMode = false;
|
|
1910
1911
|
/**
|
|
@@ -2464,6 +2465,7 @@ const flushQueuedRefCallbacks = () => {
|
|
|
2464
2465
|
*/
|
|
2465
2466
|
const insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
2466
2467
|
if (BUILD.slotRelocation) {
|
|
2468
|
+
if (parent?.["s-cr"]) checkSlotRelocate = true;
|
|
2467
2469
|
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
2468
2470
|
else if (typeof newNode["s-sn"] === "string") {
|
|
2469
2471
|
const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
|
|
@@ -2566,6 +2568,7 @@ render() {
|
|
|
2566
2568
|
if (BUILD.slotRelocation) {
|
|
2567
2569
|
contentRef = hostElm["s-cr"];
|
|
2568
2570
|
checkSlotFallbackVisibility = false;
|
|
2571
|
+
checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
|
|
2569
2572
|
}
|
|
2570
2573
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
2571
2574
|
if (BUILD.slotRelocation) {
|
|
@@ -2635,7 +2638,7 @@ render() {
|
|
|
2635
2638
|
nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
|
|
2636
2639
|
}
|
|
2637
2640
|
}
|
|
2638
|
-
if (BUILD.slotRelocation && !
|
|
2641
|
+
if (BUILD.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
|
|
2639
2642
|
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
2640
2643
|
for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
|
|
2641
2644
|
if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
|
|
@@ -3329,7 +3332,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3329
3332
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
3330
3333
|
const node = childRenderNode.$elm$;
|
|
3331
3334
|
if (!shadowRoot) {
|
|
3332
|
-
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3335
|
+
if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3333
3336
|
if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
|
|
3334
3337
|
} else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
3335
3338
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
@@ -3379,11 +3382,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3379
3382
|
const siSlot = slottedItem.slot;
|
|
3380
3383
|
if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
|
|
3381
3384
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
3382
|
-
if (!siSlot["s-cr"])
|
|
3383
|
-
siSlot["s-cr"] = hostEle["s-cr"];
|
|
3384
|
-
if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
|
|
3385
|
-
else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
3386
|
-
}
|
|
3385
|
+
if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
|
|
3387
3386
|
addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
|
|
3388
3387
|
if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
|
|
3389
3388
|
if (BUILD.lightDomPatches || BUILD.slotChildNodes || BUILD.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
|
|
@@ -1669,6 +1669,7 @@ let hostTagName;
|
|
|
1669
1669
|
let hostRegistry;
|
|
1670
1670
|
let useNativeShadowDom = false;
|
|
1671
1671
|
let checkSlotFallbackVisibility = false;
|
|
1672
|
+
/** Whether the current render has slotted content to relocate. Set at the start of each render. */
|
|
1672
1673
|
let checkSlotRelocate = false;
|
|
1673
1674
|
let isSvgMode = false;
|
|
1674
1675
|
/**
|
|
@@ -2228,6 +2229,7 @@ const flushQueuedRefCallbacks = () => {
|
|
|
2228
2229
|
*/
|
|
2229
2230
|
const insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
2230
2231
|
if (BUILD$1.slotRelocation) {
|
|
2232
|
+
if (parent?.["s-cr"]) checkSlotRelocate = true;
|
|
2231
2233
|
if (BUILD$1.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
2232
2234
|
else if (typeof newNode["s-sn"] === "string") {
|
|
2233
2235
|
const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
|
|
@@ -2330,6 +2332,7 @@ render() {
|
|
|
2330
2332
|
if (BUILD$1.slotRelocation) {
|
|
2331
2333
|
contentRef = hostElm["s-cr"];
|
|
2332
2334
|
checkSlotFallbackVisibility = false;
|
|
2335
|
+
checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
|
|
2333
2336
|
}
|
|
2334
2337
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
2335
2338
|
if (BUILD$1.slotRelocation) {
|
|
@@ -2399,7 +2402,7 @@ render() {
|
|
|
2399
2402
|
nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
|
|
2400
2403
|
}
|
|
2401
2404
|
}
|
|
2402
|
-
if (BUILD$1.slotRelocation && !
|
|
2405
|
+
if (BUILD$1.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
|
|
2403
2406
|
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
2404
2407
|
for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
|
|
2405
2408
|
if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
|
|
@@ -3091,7 +3094,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3091
3094
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
3092
3095
|
const node = childRenderNode.$elm$;
|
|
3093
3096
|
if (!shadowRoot) {
|
|
3094
|
-
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3097
|
+
if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3095
3098
|
if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
|
|
3096
3099
|
} else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
3097
3100
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
@@ -3141,11 +3144,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3141
3144
|
const siSlot = slottedItem.slot;
|
|
3142
3145
|
if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
|
|
3143
3146
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
3144
|
-
if (!siSlot["s-cr"])
|
|
3145
|
-
siSlot["s-cr"] = hostEle["s-cr"];
|
|
3146
|
-
if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
|
|
3147
|
-
else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
3148
|
-
}
|
|
3147
|
+
if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
|
|
3149
3148
|
addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
|
|
3150
3149
|
if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
|
|
3151
3150
|
if (BUILD$1.lightDomPatches || BUILD$1.slotChildNodes || BUILD$1.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
|
package/dist/sys/node/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-
|
|
1
|
+
import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-eg7pofz5.mjs";
|
|
2
2
|
export { createNodeLogger, createNodeSys, setupNodeProcess };
|
package/dist/sys/node/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as createWorkerMessageHandler } from "../../compiler-
|
|
2
|
-
import { t as createNodeSys } from "../../node-
|
|
1
|
+
import { l as createWorkerMessageHandler } from "../../compiler-CVL510L-.mjs";
|
|
2
|
+
import { t as createNodeSys } from "../../node-eg7pofz5.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
|
package/dist/testing/index.mjs
CHANGED
|
@@ -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.
|
|
36
|
+
const version = "5.0.0-beta.34";
|
|
37
37
|
const MEMBER_FLAGS = {
|
|
38
38
|
String: 1,
|
|
39
39
|
Number: 2,
|
|
@@ -2424,6 +2424,7 @@ let hostTagName;
|
|
|
2424
2424
|
let hostRegistry;
|
|
2425
2425
|
let useNativeShadowDom = false;
|
|
2426
2426
|
let checkSlotFallbackVisibility = false;
|
|
2427
|
+
/** Whether the current render has slotted content to relocate. Set at the start of each render. */
|
|
2427
2428
|
let checkSlotRelocate = false;
|
|
2428
2429
|
let isSvgMode = false;
|
|
2429
2430
|
/**
|
|
@@ -2983,6 +2984,7 @@ const flushQueuedRefCallbacks = () => {
|
|
|
2983
2984
|
*/
|
|
2984
2985
|
const insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
2985
2986
|
if (BUILD.slotRelocation) {
|
|
2987
|
+
if (parent?.["s-cr"]) checkSlotRelocate = true;
|
|
2986
2988
|
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
2987
2989
|
else if (typeof newNode["s-sn"] === "string") {
|
|
2988
2990
|
const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
|
|
@@ -3085,6 +3087,7 @@ render() {
|
|
|
3085
3087
|
if (BUILD.slotRelocation) {
|
|
3086
3088
|
contentRef = hostElm["s-cr"];
|
|
3087
3089
|
checkSlotFallbackVisibility = false;
|
|
3090
|
+
checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
|
|
3088
3091
|
}
|
|
3089
3092
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
3090
3093
|
if (BUILD.slotRelocation) {
|
|
@@ -3154,7 +3157,7 @@ render() {
|
|
|
3154
3157
|
nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
|
|
3155
3158
|
}
|
|
3156
3159
|
}
|
|
3157
|
-
if (BUILD.slotRelocation && !
|
|
3160
|
+
if (BUILD.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
|
|
3158
3161
|
const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
|
|
3159
3162
|
for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
|
|
3160
3163
|
if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
|
|
@@ -3848,7 +3851,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3848
3851
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
3849
3852
|
const node = childRenderNode.$elm$;
|
|
3850
3853
|
if (!shadowRoot) {
|
|
3851
|
-
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3854
|
+
if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
3852
3855
|
if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
|
|
3853
3856
|
} else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
3854
3857
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
@@ -3898,11 +3901,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3898
3901
|
const siSlot = slottedItem.slot;
|
|
3899
3902
|
if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
|
|
3900
3903
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
3901
|
-
if (!siSlot["s-cr"])
|
|
3902
|
-
siSlot["s-cr"] = hostEle["s-cr"];
|
|
3903
|
-
if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
|
|
3904
|
-
else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
|
3905
|
-
}
|
|
3904
|
+
if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
|
|
3906
3905
|
addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
|
|
3907
3906
|
if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
|
|
3908
3907
|
if (BUILD.lightDomPatches || BUILD.slotChildNodes || BUILD.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.34",
|
|
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.
|
|
130
|
-
"@stencil/dev-server": "5.0.0-beta.
|
|
131
|
-
"@stencil/mock-doc": "5.0.0-beta.
|
|
129
|
+
"@stencil/cli": "5.0.0-beta.34",
|
|
130
|
+
"@stencil/dev-server": "5.0.0-beta.34",
|
|
131
|
+
"@stencil/mock-doc": "5.0.0-beta.34"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
134
|
"@ionic/prettier-config": "^4.0.0",
|