@stencil/core 4.8.1-dev.1701925315.77bce27 → 4.8.1-dev.1701955210.735d45a
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/compiler/stencil.min.js +2 -2
- 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 +3 -32
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +26 -29
- package/internal/hydrate/package.json +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +0 -7
- package/internal/testing/index.js +27 -30
- 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/package.json +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 +2 -2
- package/testing/package.json +1 -1
|
@@ -294,9 +294,9 @@ const createElm = (e, t, a, o) => {
|
|
|
294
294
|
r && l.appendChild(r);
|
|
295
295
|
appData.BUILD.svg && ("svg" === n.$tag$ ? isSvgMode = !1 : "foreignObject" === l.tagName && (isSvgMode = !0));
|
|
296
296
|
}
|
|
297
|
-
return l["s-hn"] = hostTagName,
|
|
297
|
+
return appData.BUILD.slotRelocation && (l["s-hn"] = hostTagName, 3 & n.$flags$ && (l["s-sr"] = !0,
|
|
298
298
|
l["s-fs"] = null === (s = n.$attrs$) || void 0 === s ? void 0 : s.slot, l["s-cr"] = contentRef,
|
|
299
|
-
l["s-sn"] = n.$name$ || "", i = e && e.$children$ && e.$children$[a], i && i.$tag$ === n.$tag$ && e.$elm$ && (appData.BUILD.experimentalSlotFixes ? relocateToHostRoot(e.$elm$) : putBackInOriginalLocation(e.$elm$, !1))),
|
|
299
|
+
l["s-sn"] = n.$name$ || "", i = e && e.$children$ && e.$children$[a], i && i.$tag$ === n.$tag$ && e.$elm$ && (appData.BUILD.experimentalSlotFixes ? relocateToHostRoot(e.$elm$) : putBackInOriginalLocation(e.$elm$, !1)))),
|
|
300
300
|
l;
|
|
301
301
|
}, relocateToHostRoot = e => {
|
|
302
302
|
plt.$flags$ |= 1;
|
|
@@ -395,17 +395,17 @@ const createElm = (e, t, a, o) => {
|
|
|
395
395
|
}, isNodeLocatedInSlot = (e, t) => 1 === e.nodeType ? null === e.getAttribute("slot") && "" === t || e.getAttribute("slot") === t : e["s-sn"] === t || "" === t, nullifyVNodeRefs = e => {
|
|
396
396
|
appData.BUILD.vdomRef && (e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(nullifyVNodeRefs));
|
|
397
397
|
}, renderVdom = (e, t, a = !1) => {
|
|
398
|
-
var o, s
|
|
399
|
-
const
|
|
400
|
-
if (hostTagName =
|
|
401
|
-
if (appData.BUILD.reflect &&
|
|
402
|
-
|
|
403
|
-
if (
|
|
404
|
-
(appData.BUILD.scoped || appData.BUILD.shadowDom) && (scopeId =
|
|
405
|
-
useNativeShadowDom = exports.supportsShadow && 0 != (1 &
|
|
406
|
-
patch(
|
|
398
|
+
var o, s;
|
|
399
|
+
const n = e.$hostElement$, l = e.$cmpMeta$, r = e.$vnode$ || newVNode(null, null), i = isHost(t) ? t : h(null, null, t);
|
|
400
|
+
if (hostTagName = n.tagName, appData.BUILD.isDev && Array.isArray(t) && t.some(isHost)) throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);
|
|
401
|
+
if (appData.BUILD.reflect && l.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {},
|
|
402
|
+
l.$attrsToReflect$.map((([e, t]) => i.$attrs$[t] = n[e]))), a && i.$attrs$) for (const e of Object.keys(i.$attrs$)) n.hasAttribute(e) && ![ "key", "ref", "style", "class" ].includes(e) && (i.$attrs$[e] = n[e]);
|
|
403
|
+
if (i.$tag$ = null, i.$flags$ |= 4, e.$vnode$ = i, i.$elm$ = r.$elm$ = appData.BUILD.shadowDom && n.shadowRoot || n,
|
|
404
|
+
(appData.BUILD.scoped || appData.BUILD.shadowDom) && (scopeId = n["s-sc"]), appData.BUILD.slotRelocation && (contentRef = n["s-cr"],
|
|
405
|
+
useNativeShadowDom = exports.supportsShadow && 0 != (1 & l.$flags$), checkSlotFallbackVisibility = !1),
|
|
406
|
+
patch(r, i), appData.BUILD.slotRelocation) {
|
|
407
407
|
if (plt.$flags$ |= 1, checkSlotRelocate) {
|
|
408
|
-
markSlotContentForRelocation(
|
|
408
|
+
markSlotContentForRelocation(i.$elm$);
|
|
409
409
|
for (const e of relocateNodes) {
|
|
410
410
|
const t = e.$nodeToRelocate$;
|
|
411
411
|
if (!t["s-ol"]) {
|
|
@@ -414,33 +414,30 @@ const createElm = (e, t, a, o) => {
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
for (const e of relocateNodes) {
|
|
417
|
-
const t = e.$nodeToRelocate$,
|
|
418
|
-
if (
|
|
419
|
-
const e =
|
|
420
|
-
let
|
|
421
|
-
if (!appData.BUILD.experimentalSlotFixes ||
|
|
422
|
-
let
|
|
423
|
-
for (;
|
|
424
|
-
let o = null !== (s =
|
|
417
|
+
const t = e.$nodeToRelocate$, a = e.$slotRefNode$;
|
|
418
|
+
if (a) {
|
|
419
|
+
const e = a.parentNode;
|
|
420
|
+
let n = a.nextSibling;
|
|
421
|
+
if (!appData.BUILD.experimentalSlotFixes || n && 1 === n.nodeType) {
|
|
422
|
+
let a = null === (o = t["s-ol"]) || void 0 === o ? void 0 : o.previousSibling;
|
|
423
|
+
for (;a; ) {
|
|
424
|
+
let o = null !== (s = a["s-nr"]) && void 0 !== s ? s : null;
|
|
425
425
|
if (o && o["s-sn"] === t["s-sn"] && e === o.parentNode && (o = o.nextSibling, !o || !o["s-nr"])) {
|
|
426
|
-
|
|
426
|
+
n = o;
|
|
427
427
|
break;
|
|
428
428
|
}
|
|
429
|
-
|
|
429
|
+
a = a.previousSibling;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
(!
|
|
433
|
-
appData.BUILD.experimentalSlotFixes && 1 === t.nodeType &&
|
|
434
|
-
e.insertBefore(t,
|
|
435
|
-
} else 1 === t.nodeType && (
|
|
436
|
-
t.hidden = !0);
|
|
432
|
+
(!n && e !== t.parentNode || t.nextSibling !== n) && t !== n && (appData.BUILD.experimentalSlotFixes || t["s-hn"] || !t["s-ol"] || (t["s-hn"] = t["s-ol"].parentNode.nodeName),
|
|
433
|
+
appData.BUILD.experimentalSlotFixes && 1 === t.nodeType && a["s-fs"] !== t.getAttribute("slot") && (a["s-fs"] ? t.setAttribute("slot", a["s-fs"]) : t.removeAttribute("slot")),
|
|
434
|
+
e.insertBefore(t, n));
|
|
435
|
+
} else 1 === t.nodeType && (t.hidden = !0);
|
|
437
436
|
}
|
|
438
437
|
}
|
|
439
|
-
checkSlotFallbackVisibility && updateFallbackSlotVisibility(
|
|
438
|
+
checkSlotFallbackVisibility && updateFallbackSlotVisibility(i.$elm$), plt.$flags$ &= -2,
|
|
440
439
|
relocateNodes.length = 0;
|
|
441
440
|
}
|
|
442
|
-
if (appData.BUILD.experimentalSlotFixes && 2 & p.$flags$) for (const e of c.$elm$.childNodes) e["s-hn"] === hostTagName || e["s-sh"] || (a && null == e["s-ih"] && (e["s-ih"] = null !== (r = e.hidden) && void 0 !== r && r),
|
|
443
|
-
e.hidden = !0);
|
|
444
441
|
}, slotReferenceDebugNode = e => doc.createComment(`<slot${e.$name$ ? ' name="' + e.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`), originalLocationDebugNode = e => doc.createComment("org-location for " + (e.localName ? `<${e.localName}> (host=${e["s-hn"]})` : `[${e.textContent}]`)), attachToAncestor = (e, t) => {
|
|
445
442
|
appData.BUILD.asyncLoading && t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((t => e.$onRenderResolve$ = t)));
|
|
446
443
|
}, scheduleUpdate = (e, t) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.8.1-dev.
|
|
3
|
+
"version": "4.8.1-dev.1701955210.735d45a",
|
|
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/package.json
CHANGED
package/sys/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Node System v4.8.1-dev.
|
|
2
|
+
Stencil Node System v4.8.1-dev.1701955210.735d45a | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
function _interopDefaultLegacy(e) {
|
|
5
5
|
return e && "object" == typeof e && "default" in e ? e : {
|
package/sys/node/package.json
CHANGED
package/sys/node/worker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Node System Worker v4.8.1-dev.
|
|
2
|
+
Stencil Node System Worker v4.8.1-dev.1701955210.735d45a | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
function _interopNamespace(e) {
|
|
5
5
|
if (e && e.__esModule) return e;
|
package/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Testing v4.8.1-dev.
|
|
2
|
+
Stencil Testing v4.8.1-dev.1701955210.735d45a | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
function _lazyRequire(e) {
|
|
5
5
|
return new Proxy({}, {
|
|
@@ -12135,7 +12135,7 @@ const createSystem = e => {
|
|
|
12135
12135
|
u("/");
|
|
12136
12136
|
const T = {
|
|
12137
12137
|
name: "in-memory",
|
|
12138
|
-
version: "4.8.1-dev.
|
|
12138
|
+
version: "4.8.1-dev.1701955210.735d45a",
|
|
12139
12139
|
events: a,
|
|
12140
12140
|
access: async e => c(e),
|
|
12141
12141
|
accessSync: c,
|