@stencil/core 4.33.1-dev.1749618190.28e2a06 → 4.34.0-dev.1749704519.d1b414d
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 +133 -11
- 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/app-globals/package.json +1 -1
- package/internal/client/index.js +11 -53
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +11 -53
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +10 -1
- package/internal/package.json +1 -1
- package/internal/testing/index.js +10 -52
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +10 -1
- package/mock-doc/index.d.ts +3 -0
- package/mock-doc/index.js +10 -1
- 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 +25 -25
- 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/client/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Client Platform v4.
|
|
2
|
+
Stencil Client Platform v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -640,11 +640,7 @@ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
|
640
640
|
};
|
|
641
641
|
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
642
642
|
function patchSlotNode(node) {
|
|
643
|
-
|
|
644
|
-
const slotNode = node;
|
|
645
|
-
if (slotNode.assignedElements || slotNode.assignedNodes || !node["s-sr"]) {
|
|
646
|
-
return;
|
|
647
|
-
}
|
|
643
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
648
644
|
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
649
645
|
const toReturn = [];
|
|
650
646
|
const slotName = this["s-sn"];
|
|
@@ -667,39 +663,8 @@ function patchSlotNode(node) {
|
|
|
667
663
|
}
|
|
668
664
|
return toReturn;
|
|
669
665
|
}).bind(node);
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
slotNode.__eventListeners = (_a = slotNode.__eventListeners) != null ? _a : [];
|
|
673
|
-
if (!slotNode.addEventListener) {
|
|
674
|
-
slotNode.addEventListener = function(type, listener) {
|
|
675
|
-
this.__eventListeners = this.__eventListeners || [];
|
|
676
|
-
this.__eventListeners.push({ type, listener });
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
if (!slotNode.removeEventListener) {
|
|
680
|
-
slotNode.removeEventListener = function(type, listener) {
|
|
681
|
-
if (!this.__eventListeners) return;
|
|
682
|
-
this.__eventListeners = this.__eventListeners.filter((l) => !(l.type === type && l.listener === listener));
|
|
683
|
-
};
|
|
684
|
-
}
|
|
685
|
-
if (!slotNode.dispatchEvent) {
|
|
686
|
-
slotNode.dispatchEvent = function(event) {
|
|
687
|
-
if (!this.__eventListeners) return true;
|
|
688
|
-
const listeners = this.__eventListeners.filter((l) => l.type === event.type);
|
|
689
|
-
for (const { listener } of listeners) {
|
|
690
|
-
try {
|
|
691
|
-
if (typeof listener === "function") {
|
|
692
|
-
listener.call(this, event);
|
|
693
|
-
} else if (listener && typeof listener.handleEvent === "function") {
|
|
694
|
-
listener.handleEvent(event);
|
|
695
|
-
}
|
|
696
|
-
} catch (err2) {
|
|
697
|
-
console.error("Error in slot event listener:", err2);
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
return !event.defaultPrevented;
|
|
701
|
-
};
|
|
702
|
-
}
|
|
666
|
+
node.assignedElements = assignedFactory(true);
|
|
667
|
+
node.assignedNodes = assignedFactory(false);
|
|
703
668
|
}
|
|
704
669
|
function dispatchSlotChangeEvent(elm) {
|
|
705
670
|
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
@@ -2213,7 +2178,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2213
2178
|
if (BUILD17.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
2214
2179
|
styleElm.innerHTML = style;
|
|
2215
2180
|
} else {
|
|
2216
|
-
styleElm =
|
|
2181
|
+
styleElm = win.document.createElement("style");
|
|
2217
2182
|
styleElm.innerHTML = style;
|
|
2218
2183
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2219
2184
|
if (nonce != null) {
|
|
@@ -2476,7 +2441,7 @@ var checkSlotFallbackVisibility = false;
|
|
|
2476
2441
|
var checkSlotRelocate = false;
|
|
2477
2442
|
var isSvgMode = false;
|
|
2478
2443
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
2479
|
-
var _a
|
|
2444
|
+
var _a;
|
|
2480
2445
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
2481
2446
|
let i2 = 0;
|
|
2482
2447
|
let elm;
|
|
@@ -2506,11 +2471,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2506
2471
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
2507
2472
|
} else if (BUILD20.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
2508
2473
|
elm = newVNode2.$elm$ = BUILD20.isDebug || BUILD20.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
|
|
2509
|
-
elm["s-sr"] = true;
|
|
2510
|
-
elm["s-cr"] = contentRef;
|
|
2511
|
-
elm["s-sn"] = newVNode2.$name$ || "";
|
|
2512
|
-
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
2513
|
-
patchSlotNode(elm);
|
|
2514
2474
|
if (BUILD20.vdomAttribute) {
|
|
2515
2475
|
updateElement(null, newVNode2, isSvgMode);
|
|
2516
2476
|
}
|
|
@@ -2557,13 +2517,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2557
2517
|
elm["s-hn"] = hostTagName;
|
|
2558
2518
|
if (BUILD20.slotRelocation) {
|
|
2559
2519
|
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
patchSlotNode(elm);
|
|
2566
|
-
}
|
|
2520
|
+
elm["s-sr"] = true;
|
|
2521
|
+
elm["s-cr"] = contentRef;
|
|
2522
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
2523
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
2524
|
+
patchSlotNode(elm);
|
|
2567
2525
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
2568
2526
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
2569
2527
|
if (BUILD20.experimentalSlotFixes) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0-dev.1749704519.d1b414d",
|
|
4
4
|
"description": "Stencil internal client platform to be imported by the Stencil Compiler and internal runtime. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"exports": "./index.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Platform v4.
|
|
2
|
+
Stencil Hydrate Platform v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -411,11 +411,7 @@ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
|
411
411
|
};
|
|
412
412
|
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
413
413
|
function patchSlotNode(node) {
|
|
414
|
-
|
|
415
|
-
const slotNode = node;
|
|
416
|
-
if (slotNode.assignedElements || slotNode.assignedNodes || !node["s-sr"]) {
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
414
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
419
415
|
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
420
416
|
const toReturn = [];
|
|
421
417
|
const slotName = this["s-sn"];
|
|
@@ -438,39 +434,8 @@ function patchSlotNode(node) {
|
|
|
438
434
|
}
|
|
439
435
|
return toReturn;
|
|
440
436
|
}).bind(node);
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
slotNode.__eventListeners = (_a = slotNode.__eventListeners) != null ? _a : [];
|
|
444
|
-
if (!slotNode.addEventListener) {
|
|
445
|
-
slotNode.addEventListener = function(type, listener) {
|
|
446
|
-
this.__eventListeners = this.__eventListeners || [];
|
|
447
|
-
this.__eventListeners.push({ type, listener });
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
if (!slotNode.removeEventListener) {
|
|
451
|
-
slotNode.removeEventListener = function(type, listener) {
|
|
452
|
-
if (!this.__eventListeners) return;
|
|
453
|
-
this.__eventListeners = this.__eventListeners.filter((l) => !(l.type === type && l.listener === listener));
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
if (!slotNode.dispatchEvent) {
|
|
457
|
-
slotNode.dispatchEvent = function(event) {
|
|
458
|
-
if (!this.__eventListeners) return true;
|
|
459
|
-
const listeners = this.__eventListeners.filter((l) => l.type === event.type);
|
|
460
|
-
for (const { listener } of listeners) {
|
|
461
|
-
try {
|
|
462
|
-
if (typeof listener === "function") {
|
|
463
|
-
listener.call(this, event);
|
|
464
|
-
} else if (listener && typeof listener.handleEvent === "function") {
|
|
465
|
-
listener.handleEvent(event);
|
|
466
|
-
}
|
|
467
|
-
} catch (err2) {
|
|
468
|
-
console.error("Error in slot event listener:", err2);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
return !event.defaultPrevented;
|
|
472
|
-
};
|
|
473
|
-
}
|
|
437
|
+
node.assignedElements = assignedFactory(true);
|
|
438
|
+
node.assignedNodes = assignedFactory(false);
|
|
474
439
|
}
|
|
475
440
|
function dispatchSlotChangeEvent(elm) {
|
|
476
441
|
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
@@ -1984,7 +1949,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1984
1949
|
if (BUILD11.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
1985
1950
|
styleElm.innerHTML = style;
|
|
1986
1951
|
} else {
|
|
1987
|
-
styleElm =
|
|
1952
|
+
styleElm = win.document.createElement("style");
|
|
1988
1953
|
styleElm.innerHTML = style;
|
|
1989
1954
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1990
1955
|
if (nonce != null) {
|
|
@@ -2247,7 +2212,7 @@ var checkSlotFallbackVisibility = false;
|
|
|
2247
2212
|
var checkSlotRelocate = false;
|
|
2248
2213
|
var isSvgMode = false;
|
|
2249
2214
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
2250
|
-
var _a
|
|
2215
|
+
var _a;
|
|
2251
2216
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
2252
2217
|
let i2 = 0;
|
|
2253
2218
|
let elm;
|
|
@@ -2277,11 +2242,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2277
2242
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
2278
2243
|
} else if (BUILD14.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
2279
2244
|
elm = newVNode2.$elm$ = BUILD14.isDebug || BUILD14.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
|
|
2280
|
-
elm["s-sr"] = true;
|
|
2281
|
-
elm["s-cr"] = contentRef;
|
|
2282
|
-
elm["s-sn"] = newVNode2.$name$ || "";
|
|
2283
|
-
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
2284
|
-
patchSlotNode(elm);
|
|
2285
2245
|
if (BUILD14.vdomAttribute) {
|
|
2286
2246
|
updateElement(null, newVNode2, isSvgMode);
|
|
2287
2247
|
}
|
|
@@ -2328,13 +2288,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2328
2288
|
elm["s-hn"] = hostTagName;
|
|
2329
2289
|
if (BUILD14.slotRelocation) {
|
|
2330
2290
|
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
patchSlotNode(elm);
|
|
2337
|
-
}
|
|
2291
|
+
elm["s-sr"] = true;
|
|
2292
|
+
elm["s-cr"] = contentRef;
|
|
2293
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
2294
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
2295
|
+
patchSlotNode(elm);
|
|
2338
2296
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
2339
2297
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
2340
2298
|
if (BUILD14.experimentalSlotFixes) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0-dev.1749704519.d1b414d",
|
|
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.
|
|
2
|
+
Stencil Hydrate Runner v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -10885,6 +10885,15 @@ var MockNode2 = class {
|
|
|
10885
10885
|
set textContent(value) {
|
|
10886
10886
|
this._nodeValue = String(value);
|
|
10887
10887
|
}
|
|
10888
|
+
addEventListener(type, handler) {
|
|
10889
|
+
addEventListener(this, type, handler);
|
|
10890
|
+
}
|
|
10891
|
+
removeEventListener(type, handler) {
|
|
10892
|
+
removeEventListener(this, type, handler);
|
|
10893
|
+
}
|
|
10894
|
+
dispatchEvent(ev) {
|
|
10895
|
+
return dispatchEvent(this, ev);
|
|
10896
|
+
}
|
|
10888
10897
|
};
|
|
10889
10898
|
MockNode2.ELEMENT_NODE = 1;
|
|
10890
10899
|
MockNode2.TEXT_NODE = 3;
|
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0-dev.1749704519.d1b414d",
|
|
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",
|
|
@@ -754,11 +754,7 @@ var addSlotRelocateNode = (newChild, slotNode, prepend, position) => {
|
|
|
754
754
|
};
|
|
755
755
|
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
756
756
|
function patchSlotNode(node) {
|
|
757
|
-
|
|
758
|
-
const slotNode = node;
|
|
759
|
-
if (slotNode.assignedElements || slotNode.assignedNodes || !node["s-sr"]) {
|
|
760
|
-
return;
|
|
761
|
-
}
|
|
757
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
762
758
|
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
763
759
|
const toReturn = [];
|
|
764
760
|
const slotName = this["s-sn"];
|
|
@@ -781,39 +777,8 @@ function patchSlotNode(node) {
|
|
|
781
777
|
}
|
|
782
778
|
return toReturn;
|
|
783
779
|
}).bind(node);
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
slotNode.__eventListeners = (_a = slotNode.__eventListeners) != null ? _a : [];
|
|
787
|
-
if (!slotNode.addEventListener) {
|
|
788
|
-
slotNode.addEventListener = function(type, listener) {
|
|
789
|
-
this.__eventListeners = this.__eventListeners || [];
|
|
790
|
-
this.__eventListeners.push({ type, listener });
|
|
791
|
-
};
|
|
792
|
-
}
|
|
793
|
-
if (!slotNode.removeEventListener) {
|
|
794
|
-
slotNode.removeEventListener = function(type, listener) {
|
|
795
|
-
if (!this.__eventListeners) return;
|
|
796
|
-
this.__eventListeners = this.__eventListeners.filter((l) => !(l.type === type && l.listener === listener));
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
if (!slotNode.dispatchEvent) {
|
|
800
|
-
slotNode.dispatchEvent = function(event) {
|
|
801
|
-
if (!this.__eventListeners) return true;
|
|
802
|
-
const listeners = this.__eventListeners.filter((l) => l.type === event.type);
|
|
803
|
-
for (const { listener } of listeners) {
|
|
804
|
-
try {
|
|
805
|
-
if (typeof listener === "function") {
|
|
806
|
-
listener.call(this, event);
|
|
807
|
-
} else if (listener && typeof listener.handleEvent === "function") {
|
|
808
|
-
listener.handleEvent(event);
|
|
809
|
-
}
|
|
810
|
-
} catch (err2) {
|
|
811
|
-
console.error("Error in slot event listener:", err2);
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
return !event.defaultPrevented;
|
|
815
|
-
};
|
|
816
|
-
}
|
|
780
|
+
node.assignedElements = assignedFactory(true);
|
|
781
|
+
node.assignedNodes = assignedFactory(false);
|
|
817
782
|
}
|
|
818
783
|
function dispatchSlotChangeEvent(elm) {
|
|
819
784
|
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
@@ -2327,7 +2292,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2327
2292
|
if (import_app_data10.BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
2328
2293
|
styleElm.innerHTML = style;
|
|
2329
2294
|
} else {
|
|
2330
|
-
styleElm =
|
|
2295
|
+
styleElm = win.document.createElement("style");
|
|
2331
2296
|
styleElm.innerHTML = style;
|
|
2332
2297
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2333
2298
|
if (nonce != null) {
|
|
@@ -2590,7 +2555,7 @@ var checkSlotFallbackVisibility = false;
|
|
|
2590
2555
|
var checkSlotRelocate = false;
|
|
2591
2556
|
var isSvgMode = false;
|
|
2592
2557
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
2593
|
-
var _a
|
|
2558
|
+
var _a;
|
|
2594
2559
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
2595
2560
|
let i2 = 0;
|
|
2596
2561
|
let elm;
|
|
@@ -2620,11 +2585,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2620
2585
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
2621
2586
|
} else if (import_app_data13.BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
2622
2587
|
elm = newVNode2.$elm$ = import_app_data13.BUILD.isDebug || import_app_data13.BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
|
|
2623
|
-
elm["s-sr"] = true;
|
|
2624
|
-
elm["s-cr"] = contentRef;
|
|
2625
|
-
elm["s-sn"] = newVNode2.$name$ || "";
|
|
2626
|
-
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
2627
|
-
patchSlotNode(elm);
|
|
2628
2588
|
if (import_app_data13.BUILD.vdomAttribute) {
|
|
2629
2589
|
updateElement(null, newVNode2, isSvgMode);
|
|
2630
2590
|
}
|
|
@@ -2671,13 +2631,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2671
2631
|
elm["s-hn"] = hostTagName;
|
|
2672
2632
|
if (import_app_data13.BUILD.slotRelocation) {
|
|
2673
2633
|
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
patchSlotNode(elm);
|
|
2680
|
-
}
|
|
2634
|
+
elm["s-sr"] = true;
|
|
2635
|
+
elm["s-cr"] = contentRef;
|
|
2636
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
2637
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
2638
|
+
patchSlotNode(elm);
|
|
2681
2639
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
2682
2640
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
2683
2641
|
if (import_app_data13.BUILD.experimentalSlotFixes) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0-dev.1749704519.d1b414d",
|
|
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.
|
|
2
|
+
Stencil Mock Doc (CommonJS) v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -6768,6 +6768,15 @@ var MockNode2 = class {
|
|
|
6768
6768
|
set textContent(value) {
|
|
6769
6769
|
this._nodeValue = String(value);
|
|
6770
6770
|
}
|
|
6771
|
+
addEventListener(type, handler) {
|
|
6772
|
+
addEventListener(this, type, handler);
|
|
6773
|
+
}
|
|
6774
|
+
removeEventListener(type, handler) {
|
|
6775
|
+
removeEventListener(this, type, handler);
|
|
6776
|
+
}
|
|
6777
|
+
dispatchEvent(ev) {
|
|
6778
|
+
return dispatchEvent(this, ev);
|
|
6779
|
+
}
|
|
6771
6780
|
};
|
|
6772
6781
|
MockNode2.ELEMENT_NODE = 1;
|
|
6773
6782
|
MockNode2.TEXT_NODE = 3;
|
package/mock-doc/index.d.ts
CHANGED
|
@@ -526,6 +526,9 @@ declare class MockNode {
|
|
|
526
526
|
replaceChild(newChild: MockNode, oldChild: MockNode): MockNode;
|
|
527
527
|
get textContent(): string;
|
|
528
528
|
set textContent(value: string);
|
|
529
|
+
addEventListener(type: string, handler: (ev?: any) => void): void;
|
|
530
|
+
removeEventListener(type: string, handler: any): void;
|
|
531
|
+
dispatchEvent(ev: MockEvent): boolean;
|
|
529
532
|
static ELEMENT_NODE: number;
|
|
530
533
|
static TEXT_NODE: number;
|
|
531
534
|
static PROCESSING_INSTRUCTION_NODE: number;
|
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc v4.
|
|
2
|
+
Stencil Mock Doc v4.34.0-dev.1749704519.d1b414d | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// src/runtime/runtime-constants.ts
|
|
@@ -6715,6 +6715,15 @@ var MockNode2 = class {
|
|
|
6715
6715
|
set textContent(value) {
|
|
6716
6716
|
this._nodeValue = String(value);
|
|
6717
6717
|
}
|
|
6718
|
+
addEventListener(type, handler) {
|
|
6719
|
+
addEventListener(this, type, handler);
|
|
6720
|
+
}
|
|
6721
|
+
removeEventListener(type, handler) {
|
|
6722
|
+
removeEventListener(this, type, handler);
|
|
6723
|
+
}
|
|
6724
|
+
dispatchEvent(ev) {
|
|
6725
|
+
return dispatchEvent(this, ev);
|
|
6726
|
+
}
|
|
6718
6727
|
};
|
|
6719
6728
|
MockNode2.ELEMENT_NODE = 1;
|
|
6720
6729
|
MockNode2.TEXT_NODE = 3;
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED