@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.
- 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/client/index.js +1233 -1046
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +1233 -1046
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +35 -31
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +5 -0
- package/internal/testing/index.js +1235 -1048
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +9 -5
- package/mock-doc/index.js +9 -5
- 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 +1 -1
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.22.3-dev.
|
|
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.
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
14249
|
+
import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
|
|
14246
14250
|
|
|
14247
14251
|
// src/runtime/client-hydrate.ts
|
|
14248
|
-
import { BUILD as
|
|
14252
|
+
import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
|
|
14249
14253
|
|
|
14250
|
-
// src/runtime/
|
|
14251
|
-
import { BUILD as
|
|
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
|
|
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
|
|
14281
|
+
import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
|
|
14264
14282
|
|
|
14265
14283
|
// src/runtime/set-value.ts
|
|
14266
|
-
import { BUILD as
|
|
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
|
|
14287
|
+
import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
|
|
14270
14288
|
|
|
14271
14289
|
// src/runtime/update-component.ts
|
|
14272
|
-
import { BUILD as
|
|
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/
|
|
14295
|
+
// src/runtime/element.ts
|
|
14287
14296
|
import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
|
|
14288
14297
|
|
|
14289
|
-
// src/runtime/
|
|
14290
|
-
import { BUILD as
|
|
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
|
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.22.3-dev.
|
|
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
|
*/
|