@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.
@@ -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
- while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */ || slottedNode.tagName === "SLOT"))) {
1956
- slottedNode["s-sn"] = slotName;
1957
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1958
- slottedNode = slottedNode.nextSibling;
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.1752210255.bfbd683",
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc (CommonJS) v4.35.3-dev.1752210255.bfbd683 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.35.3-dev.1752253566.6106c70 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __defProp = Object.defineProperty;
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc v4.35.3-dev.1752210255.bfbd683 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.35.3-dev.1752253566.6106c70 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/runtime/runtime-constants.ts
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.35.3-dev.1752210255.bfbd683",
3
+ "version": "4.35.3-dev.1752253566.6106c70",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "4.35.3-dev.1752210255.bfbd683",
3
+ "version": "4.35.3-dev.1752253566.6106c70",
4
4
  "license": "MIT",
5
5
  "main": "./internal/stencil-core/index.cjs",
6
6
  "module": "./internal/stencil-core/index.js",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot v4.35.3-dev.1752210255.bfbd683 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot v4.35.3-dev.1752253566.6106c70 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/screenshot",
3
- "version": "4.35.3-dev.1752210255.bfbd683",
3
+ "version": "4.35.3-dev.1752253566.6106c70",
4
4
  "description": "Stencil Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot Pixel Match v4.35.3-dev.1752210255.bfbd683 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot Pixel Match v4.35.3-dev.1752253566.6106c70 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;