@stencil/core 4.0.2-dev.1690233692.31f162f → 4.0.2-dev.1690261307.b4e8578
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 +7 -60
- 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 +20 -21
- package/internal/hydrate/package.json +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +0 -10
- package/internal/stencil-public-runtime.d.ts +1 -1
- package/internal/testing/index.js +22 -22
- 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
|
@@ -369,34 +369,34 @@ const createElm = (e, t, a, o) => {
|
|
|
369
369
|
}
|
|
370
370
|
}, isNodeLocatedInSlot = (e, t) => 1 === e.nodeType ? null === e.getAttribute("slot") && "" === t || e.getAttribute("slot") === t : e["s-sn"] === t || "" === t, nullifyVNodeRefs = e => {
|
|
371
371
|
appData.BUILD.vdomRef && (e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(nullifyVNodeRefs));
|
|
372
|
-
}, renderVdom = (e, t
|
|
373
|
-
const
|
|
374
|
-
if (hostTagName =
|
|
375
|
-
if (appData.BUILD.reflect &&
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
(appData.BUILD.scoped || appData.BUILD.shadowDom) && (scopeId =
|
|
379
|
-
useNativeShadowDom = exports.supportsShadow && 0 != (1 &
|
|
380
|
-
patch(
|
|
372
|
+
}, renderVdom = (e, t) => {
|
|
373
|
+
const a = e.$hostElement$, o = e.$cmpMeta$, s = e.$vnode$ || newVNode(null, null), n = isHost(t) ? t : h(null, null, t);
|
|
374
|
+
if (hostTagName = a.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 `);
|
|
375
|
+
if (appData.BUILD.reflect && o.$attrsToReflect$ && (n.$attrs$ = n.$attrs$ || {},
|
|
376
|
+
o.$attrsToReflect$.map((([e, t]) => n.$attrs$[t] = a[e]))), n.$tag$ = null, n.$flags$ |= 4,
|
|
377
|
+
e.$vnode$ = n, n.$elm$ = s.$elm$ = appData.BUILD.shadowDom && a.shadowRoot || a,
|
|
378
|
+
(appData.BUILD.scoped || appData.BUILD.shadowDom) && (scopeId = a["s-sc"]), appData.BUILD.slotRelocation && (contentRef = a["s-cr"],
|
|
379
|
+
useNativeShadowDom = exports.supportsShadow && 0 != (1 & o.$flags$), checkSlotFallbackVisibility = !1),
|
|
380
|
+
patch(s, n), appData.BUILD.slotRelocation) {
|
|
381
381
|
if (plt.$flags$ |= 1, checkSlotRelocate) {
|
|
382
|
-
let e, t, a, o, s,
|
|
383
|
-
relocateSlotContent(
|
|
382
|
+
let e, t, a, o, s, l;
|
|
383
|
+
relocateSlotContent(n.$elm$);
|
|
384
384
|
let r = 0;
|
|
385
385
|
for (;r < relocateNodes.length; r++) e = relocateNodes[r], t = e.$nodeToRelocate$,
|
|
386
386
|
t["s-ol"] || (a = appData.BUILD.isDebug || appData.BUILD.hydrateServerSide ? originalLocationDebugNode(t) : doc.createTextNode(""),
|
|
387
387
|
a["s-nr"] = t, t.parentNode.insertBefore(t["s-ol"] = a, t));
|
|
388
388
|
for (r = 0; r < relocateNodes.length; r++) if (e = relocateNodes[r], t = e.$nodeToRelocate$,
|
|
389
389
|
e.$slotRefNode$) {
|
|
390
|
-
for (o = e.$slotRefNode$.parentNode, s = e.$slotRefNode$.nextSibling, a = t["s-ol"]; a = a.previousSibling; ) if (
|
|
391
|
-
|
|
392
|
-
s =
|
|
390
|
+
for (o = e.$slotRefNode$.parentNode, s = e.$slotRefNode$.nextSibling, a = t["s-ol"]; a = a.previousSibling; ) if (l = a["s-nr"],
|
|
391
|
+
l && l["s-sn"] === t["s-sn"] && o === l.parentNode && (l = l.nextSibling, !l || !l["s-nr"])) {
|
|
392
|
+
s = l;
|
|
393
393
|
break;
|
|
394
394
|
}
|
|
395
395
|
(!s && o !== t.parentNode || t.nextSibling !== s) && t !== s && (!t["s-hn"] && t["s-ol"] && (t["s-hn"] = t["s-ol"].parentNode.nodeName),
|
|
396
396
|
o.insertBefore(t, s));
|
|
397
397
|
} else 1 === t.nodeType && (t.hidden = !0);
|
|
398
398
|
}
|
|
399
|
-
checkSlotFallbackVisibility && updateFallbackSlotVisibility(
|
|
399
|
+
checkSlotFallbackVisibility && updateFallbackSlotVisibility(n.$elm$), plt.$flags$ &= -2,
|
|
400
400
|
relocateNodes.length = 0;
|
|
401
401
|
}
|
|
402
402
|
}, 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) => {
|
|
@@ -420,7 +420,7 @@ const createElm = (e, t, a, o) => {
|
|
|
420
420
|
const s = e.$hostElement$, n = createTime("update", e.$cmpMeta$.$tagName$), l = s["s-rc"];
|
|
421
421
|
appData.BUILD.style && a && attachStyles(e);
|
|
422
422
|
const r = createTime("render", e.$cmpMeta$.$tagName$);
|
|
423
|
-
if (appData.BUILD.isDev && (e.$flags$ |= 1024), appData.BUILD.hydrateServerSide ? await callRender(e, t, s
|
|
423
|
+
if (appData.BUILD.isDev && (e.$flags$ |= 1024), appData.BUILD.hydrateServerSide ? await callRender(e, t, s) : callRender(e, t, s),
|
|
424
424
|
appData.BUILD.isDev && (e.$renderCount$ = void 0 === e.$renderCount$ ? 1 : e.$renderCount$ + 1,
|
|
425
425
|
e.$flags$ &= -1025), appData.BUILD.hydrateServerSide) try {
|
|
426
426
|
serverSideConnected(s), a && (1 & e.$cmpMeta$.$flags$ ? s["s-en"] = "" : 2 & e.$cmpMeta$.$flags$ && (s["s-en"] = "c"));
|
|
@@ -436,13 +436,13 @@ const createElm = (e, t, a, o) => {
|
|
|
436
436
|
|
|
437
437
|
let renderingRef = null;
|
|
438
438
|
|
|
439
|
-
const callRender = (e, t, a
|
|
440
|
-
const
|
|
439
|
+
const callRender = (e, t, a) => {
|
|
440
|
+
const o = !!appData.BUILD.allRenderFn, s = !!appData.BUILD.lazyLoad, n = !!appData.BUILD.taskQueue, l = !!appData.BUILD.updatable;
|
|
441
441
|
try {
|
|
442
|
-
if (renderingRef = t, t = (
|
|
443
|
-
(
|
|
444
|
-
if (appData.BUILD.hydrateServerSide) return Promise.resolve(t).then((t => renderVdom(e, t
|
|
445
|
-
renderVdom(e, t
|
|
442
|
+
if (renderingRef = t, t = (o || t.render) && t.render(), l && n && (e.$flags$ &= -17),
|
|
443
|
+
(l || s) && (e.$flags$ |= 2), appData.BUILD.hasRenderFn || appData.BUILD.reflect) if (appData.BUILD.vdomRender || appData.BUILD.reflect) {
|
|
444
|
+
if (appData.BUILD.hydrateServerSide) return Promise.resolve(t).then((t => renderVdom(e, t)));
|
|
445
|
+
renderVdom(e, t);
|
|
446
446
|
} else a.textContent = t;
|
|
447
447
|
} catch (t) {
|
|
448
448
|
consoleError(t, e.$hostElement$);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.0.2-dev.
|
|
3
|
+
"version": "4.0.2-dev.1690261307.b4e8578",
|
|
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.0.2-dev.
|
|
2
|
+
Stencil Node System v4.0.2-dev.1690261307.b4e8578 | 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.0.2-dev.
|
|
2
|
+
Stencil Node System Worker v4.0.2-dev.1690261307.b4e8578 | 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.0.2-dev.
|
|
2
|
+
Stencil Testing v4.0.2-dev.1690261307.b4e8578 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
function _lazyRequire(e) {
|
|
5
5
|
return new Proxy({}, {
|
|
@@ -3758,7 +3758,7 @@ const getPackageDirPath = (e, t) => {
|
|
|
3758
3758
|
u("/");
|
|
3759
3759
|
const S = {
|
|
3760
3760
|
name: "in-memory",
|
|
3761
|
-
version: "4.0.2-dev.
|
|
3761
|
+
version: "4.0.2-dev.1690261307.b4e8578",
|
|
3762
3762
|
events: a,
|
|
3763
3763
|
access: async e => c(e),
|
|
3764
3764
|
accessSync: c,
|