@stencil/core 4.35.3-dev.1752210255.bfbd683 → 4.35.3-dev.1752253566.6106c70
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +4 -4
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +24 -11
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +24 -11
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/index.js +23 -10
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +25 -25
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
|
@@ -1542,7 +1542,7 @@ var validateInputProperties = (inputElm) => {
|
|
|
1542
1542
|
|
|
1543
1543
|
// src/runtime/client-hydrate.ts
|
|
1544
1544
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1545
|
-
var _a, _b;
|
|
1545
|
+
var _a, _b, _c;
|
|
1546
1546
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1547
1547
|
const shadowRoot = hostElm.shadowRoot;
|
|
1548
1548
|
const childRenderNodes = [];
|
|
@@ -1606,7 +1606,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1606
1606
|
if (childRenderNode.$tag$ === "slot") {
|
|
1607
1607
|
node["s-cr"] = hostElm["s-cr"];
|
|
1608
1608
|
}
|
|
1609
|
-
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && !childRenderNode.$elm$.shadowRoot) {
|
|
1609
|
+
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
1610
1610
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
1611
1611
|
const scopeId3 = getScopeId(
|
|
1612
1612
|
cmpMeta.$cmpMeta$,
|
|
@@ -1662,6 +1662,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
if (!hosts[slottedItem.hostId]) continue;
|
|
1664
1664
|
const hostEle = hosts[slottedItem.hostId];
|
|
1665
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1666
|
+
hostEle.appendChild(slottedItem.node);
|
|
1667
|
+
}
|
|
1665
1668
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
|
1666
1669
|
if (!slottedItem.slot["s-cr"]) {
|
|
1667
1670
|
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
|
@@ -1672,13 +1675,13 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1672
1675
|
}
|
|
1673
1676
|
}
|
|
1674
1677
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
|
1678
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
|
1679
|
+
slottedItem.node.removeAttribute("slot");
|
|
1680
|
+
}
|
|
1675
1681
|
if (import_app_data7.BUILD.experimentalSlotFixes) {
|
|
1676
1682
|
patchSlottedNode(slottedItem.node);
|
|
1677
1683
|
}
|
|
1678
1684
|
}
|
|
1679
|
-
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
|
1680
|
-
hostEle.appendChild(slottedItem.node);
|
|
1681
|
-
}
|
|
1682
1685
|
}
|
|
1683
1686
|
}
|
|
1684
1687
|
if (import_app_data7.BUILD.scoped && scopeId2 && slotNodes.length) {
|
|
@@ -1950,13 +1953,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1950
1953
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
1951
1954
|
}
|
|
1952
1955
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
1956
|
+
var _a, _b;
|
|
1953
1957
|
let slottedNode = slotNode.nextSibling;
|
|
1954
1958
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1959
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
|
1960
|
+
do {
|
|
1961
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
1962
|
+
slottedNode["s-sn"] = slotName;
|
|
1963
|
+
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
|
1964
|
+
}
|
|
1965
|
+
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
|
1966
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
|
1960
1967
|
};
|
|
1961
1968
|
var findCorrespondingNode = (node, type) => {
|
|
1962
1969
|
let sibling = node;
|
|
@@ -3227,6 +3234,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
3227
3234
|
}
|
|
3228
3235
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
3229
3236
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
3237
|
+
if (isInitialLoad) {
|
|
3238
|
+
queueMicrotask(() => {
|
|
3239
|
+
dispatch();
|
|
3240
|
+
});
|
|
3241
|
+
return;
|
|
3242
|
+
}
|
|
3230
3243
|
return import_app_data14.BUILD.taskQueue ? writeTask(dispatch) : dispatch();
|
|
3231
3244
|
};
|
|
3232
3245
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.35.3-dev.
|
|
3
|
+
"version": "4.35.3-dev.1752253566.6106c70",
|
|
4
4
|
"description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
package/mock-doc/index.cjs
CHANGED
package/mock-doc/index.js
CHANGED
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED