@stencil/core 4.22.3-dev.1733806913.ee4aa0b → 4.22.3-dev.1734139838.9d13d9d

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.1734139838.9d13d9d",
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.1734139838.9d13d9d | 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,10 @@ 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
+ * If the node is a shadow root, we want to add the `shadowrootmode` attribute
10467
+ */
10468
+ ("host" in node || node.nodeName.toLocaleLowerCase() === shadowRootTag)) {
10466
10469
  const mode = ` shadowrootmode="open"`;
10467
10470
  yield mode;
10468
10471
  output.currentLineWidth += mode.length;
@@ -10546,7 +10549,8 @@ style="${cssText}">`;
10546
10549
  output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
10547
10550
  yield* streamToHtml(shadowRoot, opts, output);
10548
10551
  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()) === "")) {
10552
+ const childNodes = getChildNodes(node);
10553
+ 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
10554
  yield "\n";
10551
10555
  output.currentLineWidth = 0;
10552
10556
  for (let i = 0; i < output.indent; i++) {
@@ -10557,7 +10561,7 @@ style="${cssText}">`;
10557
10561
  }
10558
10562
  if (opts.excludeTagContent == null || opts.excludeTagContent.includes(tagName) === false) {
10559
10563
  const tag = tagName === shadowRootTag ? "template" : tagName;
10560
- const childNodes = tagName === "template" ? node.content.childNodes : node.childNodes;
10564
+ const childNodes = tagName === "template" ? node.content.childNodes : getChildNodes(node);
10561
10565
  const childNodeLength = childNodes.length;
10562
10566
  if (childNodeLength > 0) {
10563
10567
  if (childNodeLength === 1 && childNodes[0].nodeType === 3 /* TEXT_NODE */ && (typeof childNodes[0].nodeValue !== "string" || childNodes[0].nodeValue.trim() === "")) {
@@ -10730,6 +10734,9 @@ function isWithinWhitespaceSensitive(node) {
10730
10734
  }
10731
10735
  return false;
10732
10736
  }
10737
+ function getChildNodes(node) {
10738
+ return node.__childNodes || node.childNodes;
10739
+ }
10733
10740
  var NON_ESCAPABLE_CONTENT = /* @__PURE__ */ new Set([
10734
10741
  "STYLE",
10735
10742
  "SCRIPT",
@@ -14242,59 +14249,59 @@ var unwrapErr = (result) => {
14242
14249
  };
14243
14250
 
14244
14251
  // src/runtime/connected-callback.ts
14245
- import { BUILD as BUILD21 } from "@stencil/core/internal/app-data";
14252
+ import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
14246
14253
 
14247
14254
  // src/runtime/client-hydrate.ts
14248
- import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
14255
+ import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
14249
14256
 
14250
- // src/runtime/profile.ts
14251
- import { BUILD as BUILD7 } from "@stencil/core/internal/app-data";
14257
+ // src/runtime/dom-extras.ts
14258
+ import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
14259
+
14260
+ // src/runtime/vdom/vdom-render.ts
14261
+ import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
14252
14262
 
14253
14263
  // src/runtime/vdom/h.ts
14264
+ import { BUILD as BUILD7 } from "@stencil/core/internal/app-data";
14265
+
14266
+ // src/runtime/vdom/update-element.ts
14267
+ import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
14268
+
14269
+ // src/runtime/vdom/set-accessor.ts
14254
14270
  import { BUILD as BUILD8 } from "@stencil/core/internal/app-data";
14271
+ var CAPTURE_EVENT_SUFFIX = "Capture";
14272
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
14273
+
14274
+ // src/runtime/profile.ts
14275
+ import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
14255
14276
 
14256
14277
  // src/runtime/initialize-component.ts
14257
- import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
14278
+ import { BUILD as BUILD21 } from "@stencil/core/internal/app-data";
14258
14279
 
14259
14280
  // src/runtime/mode.ts
14260
14281
  var setMode = (handler) => modeResolutionChain.push(handler);
14261
14282
 
14262
14283
  // src/runtime/proxy-component.ts
14263
- import { BUILD as BUILD19 } from "@stencil/core/internal/app-data";
14284
+ import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
14264
14285
 
14265
14286
  // src/runtime/set-value.ts
14266
- import { BUILD as BUILD18 } from "@stencil/core/internal/app-data";
14287
+ import { BUILD as BUILD19 } from "@stencil/core/internal/app-data";
14267
14288
 
14268
14289
  // src/runtime/parse-property-value.ts
14269
- import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
14290
+ import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
14270
14291
 
14271
14292
  // src/runtime/update-component.ts
14272
- import { BUILD as BUILD17, NAMESPACE } from "@stencil/core/internal/app-data";
14293
+ import { BUILD as BUILD18, NAMESPACE } from "@stencil/core/internal/app-data";
14273
14294
 
14274
14295
  // 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
14296
  import { BUILD as BUILD16 } from "@stencil/core/internal/app-data";
14285
14297
 
14286
- // src/runtime/vdom/update-element.ts
14298
+ // src/runtime/element.ts
14287
14299
  import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
14288
14300
 
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 + "$");
14301
+ // src/runtime/styles.ts
14302
+ import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
14293
14303
 
14294
14304
  // src/runtime/disconnected-callback.ts
14295
- import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
14296
-
14297
- // src/runtime/dom-extras.ts
14298
14305
  import { BUILD as BUILD23 } from "@stencil/core/internal/app-data";
14299
14306
 
14300
14307
  // 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.1734139838.9d13d9d",
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
  */