@stencil/core 4.22.3-dev.1733806913.ee4aa0b → 4.22.3-dev.1733893307.ec243c2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/hydrate",
3
- "version": "4.22.3-dev.1733806913.ee4aa0b",
3
+ "version": "4.22.3-dev.1733893307.ec243c2",
4
4
  "description": "Stencil internal hydrate 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 Hydrate Runner v4.22.3-dev.1733806913.ee4aa0b | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Runner v4.22.3-dev.1733893307.ec243c2 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __export = (target, all) => {
@@ -10429,7 +10429,7 @@ function serializeNodeToHtml(elm, serializationOptions = {}) {
10429
10429
  text: []
10430
10430
  };
10431
10431
  let renderedNode = "";
10432
- const children = !opts.fullDocument && elm.body ? Array.from(elm.body.childNodes) : opts.outerHtml ? [elm] : Array.from(elm.childNodes);
10432
+ const children = !opts.fullDocument && elm.body ? Array.from(elm.body.childNodes) : opts.outerHtml ? [elm] : Array.from(getChildNodes(elm));
10433
10433
  for (let i = 0, ii = children.length; i < ii; i++) {
10434
10434
  const child = children[i];
10435
10435
  const chunks = Array.from(streamToHtml(child, opts, output));
@@ -10462,7 +10462,7 @@ function* streamToHtml(node, opts, output) {
10462
10462
  const tag = tagName === shadowRootTag ? "template" : tagName;
10463
10463
  yield "<" + tag;
10464
10464
  output.currentLineWidth += tag.length + 1;
10465
- if (tag === "template") {
10465
+ if (tag === "template" && (!node.getAttribute || !node.getAttribute("shadowrootmode"))) {
10466
10466
  const mode = ` shadowrootmode="open"`;
10467
10467
  yield mode;
10468
10468
  output.currentLineWidth += mode.length;
@@ -10546,7 +10546,8 @@ style="${cssText}">`;
10546
10546
  output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
10547
10547
  yield* streamToHtml(shadowRoot, opts, output);
10548
10548
  output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
10549
- if (opts.newLines && (node.childNodes.length === 0 || node.childNodes.length === 1 && node.childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = node.childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
10549
+ const childNodes = getChildNodes(node);
10550
+ if (opts.newLines && (childNodes.length === 0 || childNodes.length === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && ((_e = childNodes[0].nodeValue) == null ? void 0 : _e.trim()) === "")) {
10550
10551
  yield "\n";
10551
10552
  output.currentLineWidth = 0;
10552
10553
  for (let i = 0; i < output.indent; i++) {
@@ -10557,7 +10558,7 @@ style="${cssText}">`;
10557
10558
  }
10558
10559
  if (opts.excludeTagContent == null || opts.excludeTagContent.includes(tagName) === false) {
10559
10560
  const tag = tagName === shadowRootTag ? "template" : tagName;
10560
- const childNodes = tagName === "template" ? node.content.childNodes : node.childNodes;
10561
+ const childNodes = tagName === "template" ? node.content.childNodes : getChildNodes(node);
10561
10562
  const childNodeLength = childNodes.length;
10562
10563
  if (childNodeLength > 0) {
10563
10564
  if (childNodeLength === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && (typeof childNodes[0].nodeValue !== "string" || childNodes[0].nodeValue.trim() === "")) {
@@ -10730,6 +10731,9 @@ function isWithinWhitespaceSensitive(node) {
10730
10731
  }
10731
10732
  return false;
10732
10733
  }
10734
+ function getChildNodes(node) {
10735
+ return node.__childNodes || node.childNodes;
10736
+ }
10733
10737
  var NON_ESCAPABLE_CONTENT = /* @__PURE__ */ new Set([
10734
10738
  "STYLE",
10735
10739
  "SCRIPT",
@@ -14242,59 +14246,59 @@ var unwrapErr = (result) => {
14242
14246
  };
14243
14247
 
14244
14248
  // src/runtime/connected-callback.ts
14245
- import { BUILD as BUILD21 } from "@stencil/core/internal/app-data";
14249
+ import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
14246
14250
 
14247
14251
  // src/runtime/client-hydrate.ts
14248
- import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
14252
+ import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
14249
14253
 
14250
- // src/runtime/profile.ts
14251
- import { BUILD as BUILD7 } from "@stencil/core/internal/app-data";
14254
+ // src/runtime/dom-extras.ts
14255
+ import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
14256
+
14257
+ // src/runtime/vdom/vdom-render.ts
14258
+ import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
14252
14259
 
14253
14260
  // src/runtime/vdom/h.ts
14261
+ import { BUILD as BUILD7 } from "@stencil/core/internal/app-data";
14262
+
14263
+ // src/runtime/vdom/update-element.ts
14264
+ import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
14265
+
14266
+ // src/runtime/vdom/set-accessor.ts
14254
14267
  import { BUILD as BUILD8 } from "@stencil/core/internal/app-data";
14268
+ var CAPTURE_EVENT_SUFFIX = "Capture";
14269
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
14270
+
14271
+ // src/runtime/profile.ts
14272
+ import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
14255
14273
 
14256
14274
  // src/runtime/initialize-component.ts
14257
- import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
14275
+ import { BUILD as BUILD21 } from "@stencil/core/internal/app-data";
14258
14276
 
14259
14277
  // src/runtime/mode.ts
14260
14278
  var setMode = (handler) => modeResolutionChain.push(handler);
14261
14279
 
14262
14280
  // src/runtime/proxy-component.ts
14263
- import { BUILD as BUILD19 } from "@stencil/core/internal/app-data";
14281
+ import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
14264
14282
 
14265
14283
  // src/runtime/set-value.ts
14266
- import { BUILD as BUILD18 } from "@stencil/core/internal/app-data";
14284
+ import { BUILD as BUILD19 } from "@stencil/core/internal/app-data";
14267
14285
 
14268
14286
  // src/runtime/parse-property-value.ts
14269
- import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
14287
+ import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
14270
14288
 
14271
14289
  // src/runtime/update-component.ts
14272
- import { BUILD as BUILD17, NAMESPACE } from "@stencil/core/internal/app-data";
14290
+ import { BUILD as BUILD18, NAMESPACE } from "@stencil/core/internal/app-data";
14273
14291
 
14274
14292
  // src/runtime/event-emitter.ts
14275
- import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
14276
-
14277
- // src/runtime/element.ts
14278
- import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
14279
-
14280
- // src/runtime/styles.ts
14281
- import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
14282
-
14283
- // src/runtime/vdom/vdom-render.ts
14284
14293
  import { BUILD as BUILD16 } from "@stencil/core/internal/app-data";
14285
14294
 
14286
- // src/runtime/vdom/update-element.ts
14295
+ // src/runtime/element.ts
14287
14296
  import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
14288
14297
 
14289
- // src/runtime/vdom/set-accessor.ts
14290
- import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
14291
- var CAPTURE_EVENT_SUFFIX = "Capture";
14292
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
14298
+ // src/runtime/styles.ts
14299
+ import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
14293
14300
 
14294
14301
  // src/runtime/disconnected-callback.ts
14295
- import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
14296
-
14297
- // src/runtime/dom-extras.ts
14298
14302
  import { BUILD as BUILD23 } from "@stencil/core/internal/app-data";
14299
14303
 
14300
14304
  // src/runtime/bootstrap-lazy.ts
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.22.3-dev.1733806913.ee4aa0b",
3
+ "version": "4.22.3-dev.1733893307.ec243c2",
4
4
  "description": "Stencil internals only to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1241,6 +1241,11 @@ export interface RenderNode extends HostElement {
1241
1241
  * back to the node that's been moved around.
1242
1242
  */
1243
1243
  ['s-nr']?: RenderNode;
1244
+ /**
1245
+ * Original Order:
1246
+ * During SSR; a number representing the order of a slotted node
1247
+ */
1248
+ ['s-oo']?: number;
1244
1249
  /**
1245
1250
  * Scope Id
1246
1251
  */