@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.
@@ -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, a = !1) => {
373
- const o = e.$hostElement$, s = e.$cmpMeta$, n = e.$vnode$ || newVNode(null, null), l = isHost(t) ? t : h(null, null, t);
374
- if (hostTagName = o.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 && s.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {},
376
- s.$attrsToReflect$.map((([e, t]) => l.$attrs$[t] = o[e]))), a && l.$attrs$) for (const e of Object.keys(l.$attrs$)) o.hasAttribute(e) && ![ "key", "ref", "style", "class" ].includes(e) && (l.$attrs$[e] = o[e]);
377
- if (l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = n.$elm$ = appData.BUILD.shadowDom && o.shadowRoot || o,
378
- (appData.BUILD.scoped || appData.BUILD.shadowDom) && (scopeId = o["s-sc"]), appData.BUILD.slotRelocation && (contentRef = o["s-cr"],
379
- useNativeShadowDom = exports.supportsShadow && 0 != (1 & s.$flags$), checkSlotFallbackVisibility = !1),
380
- patch(n, l), appData.BUILD.slotRelocation) {
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, n;
383
- relocateSlotContent(l.$elm$);
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 (n = a["s-nr"],
391
- n && n["s-sn"] === t["s-sn"] && o === n.parentNode && (n = n.nextSibling, !n || !n["s-nr"])) {
392
- s = n;
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(l.$elm$), plt.$flags$ &= -2,
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, a) : callRender(e, t, s, a),
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, o) => {
440
- const s = !!appData.BUILD.allRenderFn, n = !!appData.BUILD.lazyLoad, l = !!appData.BUILD.taskQueue, r = !!appData.BUILD.updatable;
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 = (s || t.render) && t.render(), r && l && (e.$flags$ &= -17),
443
- (r || n) && (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, o)));
445
- renderVdom(e, t, o);
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.1690233692.31f162f",
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc (CommonJS) v4.0.2-dev.1690233692.31f162f | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.0.2-dev.1690261307.b4e8578 | 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.0.2-dev.1690233692.31f162f | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.0.2-dev.1690261307.b4e8578 | 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.0.2-dev.1690233692.31f162f",
3
+ "version": "4.0.2-dev.1690261307.b4e8578",
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.0.2-dev.1690233692.31f162f",
3
+ "version": "4.0.2-dev.1690261307.b4e8578",
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.0.2-dev.1690233692.31f162f",
3
+ "version": "4.0.2-dev.1690261307.b4e8578",
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.0.2-dev.1690233692.31f162f | MIT Licensed | https://stenciljs.com
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 : {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.0.2-dev.1690233692.31f162f",
3
+ "version": "4.0.2-dev.1690261307.b4e8578",
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.0.2-dev.1690233692.31f162f | MIT Licensed | https://stenciljs.com
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.1690233692.31f162f | MIT Licensed | https://stenciljs.com
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.1690233692.31f162f",
3761
+ version: "4.0.2-dev.1690261307.b4e8578",
3762
3762
  events: a,
3763
3763
  access: async e => c(e),
3764
3764
  accessSync: c,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "4.0.2-dev.1690233692.31f162f",
3
+ "version": "4.0.2-dev.1690261307.b4e8578",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",