@stencil/core 4.17.1 → 4.17.2-dev.1714539704.2082351
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 +87 -83
- 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 +7 -8
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +7 -8
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +13987 -20
- package/internal/package.json +1 -1
- package/internal/testing/index.js +8 -9
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +2 -1
- package/mock-doc/index.d.ts +1 -0
- package/mock-doc/index.js +2 -1
- package/mock-doc/package.json +1 -1
- package/package.json +3 -3
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +16 -16
- 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
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.2-dev.1714539704.2082351",
|
|
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",
|
|
@@ -893,18 +893,18 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
|
893
893
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
894
894
|
|
|
895
895
|
// src/runtime/vdom/update-element.ts
|
|
896
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
896
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
897
897
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
898
898
|
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
899
899
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
900
900
|
if (import_app_data9.BUILD.updatable) {
|
|
901
|
-
for (memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
901
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
902
902
|
if (!(memberName in newVnodeAttrs)) {
|
|
903
903
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
for (memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
907
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
908
908
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
909
909
|
}
|
|
910
910
|
};
|
|
@@ -2092,7 +2092,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
2092
2092
|
|
|
2093
2093
|
// src/runtime/dom-extras.ts
|
|
2094
2094
|
var import_app_data17 = require("@stencil/core/internal/app-data");
|
|
2095
|
-
var import_mock_doc = require("../../mock-doc/index.cjs");
|
|
2096
2095
|
var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
|
|
2097
2096
|
patchCloneNode(hostElementPrototype);
|
|
2098
2097
|
patchSlotAppendChild(hostElementPrototype);
|
|
@@ -2271,7 +2270,7 @@ var patchTextContent = (hostElementPrototype) => {
|
|
|
2271
2270
|
const text = [];
|
|
2272
2271
|
let slotContent = node.nextSibling;
|
|
2273
2272
|
while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
|
|
2274
|
-
if (slotContent.nodeType ===
|
|
2273
|
+
if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
|
|
2275
2274
|
text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
|
|
2276
2275
|
}
|
|
2277
2276
|
slotContent = slotContent.nextSibling;
|
|
@@ -2307,7 +2306,7 @@ var patchTextContent = (hostElementPrototype) => {
|
|
|
2307
2306
|
get() {
|
|
2308
2307
|
var _a;
|
|
2309
2308
|
const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
|
|
2310
|
-
if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) ===
|
|
2309
|
+
if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
|
|
2311
2310
|
return slotNode.nextSibling.textContent;
|
|
2312
2311
|
} else if (slotNode) {
|
|
2313
2312
|
return slotNode.textContent;
|
|
@@ -2318,7 +2317,7 @@ var patchTextContent = (hostElementPrototype) => {
|
|
|
2318
2317
|
set(value) {
|
|
2319
2318
|
var _a;
|
|
2320
2319
|
const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
|
|
2321
|
-
if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) ===
|
|
2320
|
+
if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
|
|
2322
2321
|
slotNode.nextSibling.textContent = value;
|
|
2323
2322
|
} else if (slotNode) {
|
|
2324
2323
|
slotNode.textContent = value;
|
|
@@ -3061,8 +3060,8 @@ function flushLoadModule(bundleId) {
|
|
|
3061
3060
|
}
|
|
3062
3061
|
|
|
3063
3062
|
// src/testing/platform/testing-window.ts
|
|
3064
|
-
var
|
|
3065
|
-
var win = (0,
|
|
3063
|
+
var import_mock_doc = require("../../mock-doc/index.cjs");
|
|
3064
|
+
var win = (0, import_mock_doc.setupGlobal)(global);
|
|
3066
3065
|
var doc = win.document;
|
|
3067
3066
|
|
|
3068
3067
|
// src/testing/platform/testing-platform.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.2-dev.1714539704.2082351",
|
|
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc (CommonJS) v4.17.
|
|
2
|
+
Stencil Mock Doc (CommonJS) v4.17.2-dev.1714539704.2082351 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -6759,6 +6759,7 @@ var EMPTY_ELEMENTS = /* @__PURE__ */ new Set([
|
|
|
6759
6759
|
"param",
|
|
6760
6760
|
"source",
|
|
6761
6761
|
"trace",
|
|
6762
|
+
"track",
|
|
6762
6763
|
"wbr"
|
|
6763
6764
|
]);
|
|
6764
6765
|
var REMOVE_EMPTY_ATTR = /* @__PURE__ */ new Set(["class", "dir", "id", "lang", "name", "title"]);
|
package/mock-doc/index.d.ts
CHANGED
|
@@ -858,6 +858,7 @@ declare const NON_ESCAPABLE_CONTENT: Set<string>;
|
|
|
858
858
|
* A list of whitespace sensitive tag names, such as `code`, `pre`, etc.
|
|
859
859
|
*/
|
|
860
860
|
declare const WHITESPACE_SENSITIVE: Set<string>;
|
|
861
|
+
declare const EMPTY_ELEMENTS: Set<string>;
|
|
861
862
|
interface SerializeNodeToHtmlOptions {
|
|
862
863
|
approximateLineWidth?: number;
|
|
863
864
|
excludeTagContent?: string[];
|
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc v4.17.
|
|
2
|
+
Stencil Mock Doc v4.17.2-dev.1714539704.2082351 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// src/runtime/runtime-constants.ts
|
|
@@ -6706,6 +6706,7 @@ var EMPTY_ELEMENTS = /* @__PURE__ */ new Set([
|
|
|
6706
6706
|
"param",
|
|
6707
6707
|
"source",
|
|
6708
6708
|
"trace",
|
|
6709
|
+
"track",
|
|
6709
6710
|
"wbr"
|
|
6710
6711
|
]);
|
|
6711
6712
|
var REMOVE_EMPTY_ATTR = /* @__PURE__ */ new Set(["class", "dir", "id", "lang", "name", "title"]);
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.2-dev.1714539704.2082351",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./internal/stencil-core/index.cjs",
|
|
6
6
|
"module": "./internal/stencil-core/index.js",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"rollup": "2.56.3",
|
|
123
123
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
124
124
|
"semver": "^7.3.7",
|
|
125
|
-
"terser": "5.30.
|
|
125
|
+
"terser": "5.30.4",
|
|
126
126
|
"typescript": "~5.4.0",
|
|
127
127
|
"webpack": "^5.75.0",
|
|
128
128
|
"ws": "8.16.0"
|
|
@@ -151,6 +151,6 @@
|
|
|
151
151
|
"prettier": "@ionic/prettier-config",
|
|
152
152
|
"volta": {
|
|
153
153
|
"node": "20.12.2",
|
|
154
|
-
"npm": "10.
|
|
154
|
+
"npm": "10.6.0"
|
|
155
155
|
}
|
|
156
156
|
}
|
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED