@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.
@@ -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, appData.BUILD.slotRelocation && 3 & n.$flags$ && (l["s-sr"] = !0,
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, n, l, r;
399
- const i = e.$hostElement$, p = e.$cmpMeta$, d = e.$vnode$ || newVNode(null, null), c = isHost(t) ? t : h(null, null, t);
400
- if (hostTagName = i.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 && p.$attrsToReflect$ && (c.$attrs$ = c.$attrs$ || {},
402
- p.$attrsToReflect$.map((([e, t]) => c.$attrs$[t] = i[e]))), a && c.$attrs$) for (const e of Object.keys(c.$attrs$)) i.hasAttribute(e) && ![ "key", "ref", "style", "class" ].includes(e) && (c.$attrs$[e] = i[e]);
403
- if (c.$tag$ = null, c.$flags$ |= 4, e.$vnode$ = c, c.$elm$ = d.$elm$ = appData.BUILD.shadowDom && i.shadowRoot || i,
404
- (appData.BUILD.scoped || appData.BUILD.shadowDom) && (scopeId = i["s-sc"]), appData.BUILD.slotRelocation && (contentRef = i["s-cr"],
405
- useNativeShadowDom = exports.supportsShadow && 0 != (1 & p.$flags$), checkSlotFallbackVisibility = !1),
406
- patch(d, c), appData.BUILD.slotRelocation) {
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(c.$elm$);
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$, r = e.$slotRefNode$;
418
- if (r) {
419
- const e = r.parentNode;
420
- let a = r.nextSibling;
421
- if (!appData.BUILD.experimentalSlotFixes || a && 1 === a.nodeType) {
422
- let n = null === (o = t["s-ol"]) || void 0 === o ? void 0 : o.previousSibling;
423
- for (;n; ) {
424
- let o = null !== (s = n["s-nr"]) && void 0 !== s ? s : null;
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
- a = o;
426
+ n = o;
427
427
  break;
428
428
  }
429
- n = n.previousSibling;
429
+ a = a.previousSibling;
430
430
  }
431
431
  }
432
- (!a && e !== t.parentNode || t.nextSibling !== a) && t !== a && (appData.BUILD.experimentalSlotFixes || t["s-hn"] || !t["s-ol"] || (t["s-hn"] = t["s-ol"].parentNode.nodeName),
433
- appData.BUILD.experimentalSlotFixes && 1 === t.nodeType && r["s-fs"] !== t.getAttribute("slot") && (r["s-fs"] ? t.setAttribute("slot", r["s-fs"]) : t.removeAttribute("slot")),
434
- e.insertBefore(t, a), 1 === t.nodeType && (t.hidden = null !== (n = t["s-ih"]) && void 0 !== n && n));
435
- } else 1 === t.nodeType && (a && (t["s-ih"] = null !== (l = t.hidden) && void 0 !== l && l),
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(c.$elm$), plt.$flags$ &= -2,
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.1701925315.77bce27",
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc (CommonJS) v4.8.1-dev.1701925315.77bce27 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.8.1-dev.1701955210.735d45a | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var mockDoc = (function(exports) {
5
5
  'use strict';
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc v4.8.1-dev.1701925315.77bce27 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.8.1-dev.1701955210.735d45a | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  const CONTENT_REF_ID = 'r';
5
5
  const ORG_LOCATION_ID = 'o';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.8.1-dev.1701925315.77bce27",
3
+ "version": "4.8.1-dev.1701955210.735d45a",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "4.8.1-dev.1701925315.77bce27",
3
+ "version": "4.8.1-dev.1701955210.735d45a",
4
4
  "license": "MIT",
5
5
  "main": "./internal/stencil-core/index.cjs",
6
6
  "module": "./internal/stencil-core/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/screenshot",
3
- "version": "4.8.1-dev.1701925315.77bce27",
3
+ "version": "4.8.1-dev.1701955210.735d45a",
4
4
  "description": "Stencil Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System v4.8.1-dev.1701925315.77bce27 | MIT Licensed | https://stenciljs.com
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 : {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.8.1-dev.1701925315.77bce27",
3
+ "version": "4.8.1-dev.1701955210.735d45a",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System Worker v4.8.1-dev.1701925315.77bce27 | MIT Licensed | https://stenciljs.com
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.1701925315.77bce27 | MIT Licensed | https://stenciljs.com
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.1701925315.77bce27",
12138
+ version: "4.8.1-dev.1701955210.735d45a",
12139
12139
  events: a,
12140
12140
  access: async e => c(e),
12141
12141
  accessSync: c,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "4.8.1-dev.1701925315.77bce27",
3
+ "version": "4.8.1-dev.1701955210.735d45a",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",