@stencil/core 4.35.1-dev.1751000577.7132259 → 4.35.1-dev.1751346287.f018c73
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/app-globals/package.json +1 -1
- package/internal/client/index.js +19 -8
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +19 -8
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-public-runtime.d.ts +5 -5
- package/internal/testing/index.js +16 -7
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -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 +5 -5
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +3 -1
- package/testing/package.json +1 -1
|
@@ -592,17 +592,24 @@ var globalStyles = (
|
|
|
592
592
|
""
|
|
593
593
|
);
|
|
594
594
|
|
|
595
|
+
// src/utils/style.ts
|
|
596
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
597
|
+
if (!styles2 || !supportsConstructableStylesheets) return void 0;
|
|
598
|
+
const sheet = new CSSStyleSheet();
|
|
599
|
+
sheet.replaceSync(styles2);
|
|
600
|
+
return sheet;
|
|
601
|
+
}
|
|
602
|
+
|
|
595
603
|
// src/utils/shadow-root.ts
|
|
604
|
+
var globalStyleSheet;
|
|
596
605
|
function createShadowRoot(cmpMeta) {
|
|
606
|
+
var _a;
|
|
597
607
|
const shadowRoot = import_app_data.BUILD.shadowDelegatesFocus ? this.attachShadow({
|
|
598
608
|
mode: "open",
|
|
599
609
|
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
600
610
|
}) : this.attachShadow({ mode: "open" });
|
|
601
|
-
if (
|
|
602
|
-
|
|
603
|
-
sheet.replaceSync(globalStyles);
|
|
604
|
-
shadowRoot.adoptedStyleSheets.push(sheet);
|
|
605
|
-
}
|
|
611
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
|
|
612
|
+
if (globalStyleSheet) shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
606
613
|
}
|
|
607
614
|
|
|
608
615
|
// src/utils/util.ts
|
|
@@ -1315,7 +1322,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1315
1322
|
if (supportsConstructableStylesheets) {
|
|
1316
1323
|
const stylesheet = new CSSStyleSheet();
|
|
1317
1324
|
stylesheet.replaceSync(style);
|
|
1318
|
-
styleContainerNode.adoptedStyleSheets
|
|
1325
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
1319
1326
|
} else {
|
|
1320
1327
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1321
1328
|
if (existingStyleContainer) {
|
|
@@ -1340,7 +1347,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1340
1347
|
}
|
|
1341
1348
|
}
|
|
1342
1349
|
} else if (import_app_data5.BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
1343
|
-
styleContainerNode.adoptedStyleSheets
|
|
1350
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
|
1344
1351
|
}
|
|
1345
1352
|
}
|
|
1346
1353
|
return scopeId2;
|
|
@@ -2932,6 +2939,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
2932
2939
|
!isInitialRender && import_app_data13.BUILD.updatable && oldChildren !== null
|
|
2933
2940
|
) {
|
|
2934
2941
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
2942
|
+
} else if (import_app_data13.BUILD.hydrateClientSide && isInitialRender && import_app_data13.BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
2943
|
+
newVNode2.$children$ = oldChildren;
|
|
2935
2944
|
}
|
|
2936
2945
|
if (import_app_data13.BUILD.svg && isSvgMode && tag === "svg") {
|
|
2937
2946
|
isSvgMode = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.35.1-dev.
|
|
3
|
+
"version": "4.35.1-dev.1751346287.f018c73",
|
|
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
package/mock-doc/index.js
CHANGED
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED