proto-ikons-wc 0.0.151 → 0.0.152

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-92de18bc.js');
5
+ const index = require('./index-1e1e2a8b.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
  const AcuraIkonStyle0 = acuraIkonCss;
@@ -21,9 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'proto-ikons-wc';
24
+ const BUILD = /* proto-ikons-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: true, watchCallback: false };
24
25
 
25
26
  /*
26
- Stencil Client Platform v4.18.1 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.18.2 | MIT Licensed | https://stenciljs.com
27
28
  */
28
29
  var __defProp = Object.defineProperty;
29
30
  var __export = (target, all) => {
@@ -570,8 +571,14 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
570
571
  return writeTask(dispatch) ;
571
572
  };
572
573
  var dispatchHooks = (hostRef, isInitialLoad) => {
574
+ const elm = hostRef.$hostElement$;
573
575
  const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
574
576
  const instance = hostRef.$lazyInstance$ ;
577
+ if (!instance) {
578
+ throw new Error(
579
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
580
+ );
581
+ }
575
582
  let maybePromise;
576
583
  endSchedule();
577
584
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -666,7 +673,10 @@ var appDidLoad = (who) => {
666
673
  }
667
674
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
668
675
  };
669
- var addHydratedFlag = (elm) => elm.classList.add("hydrated") ;
676
+ var addHydratedFlag = (elm) => {
677
+ var _a;
678
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
679
+ };
670
680
 
671
681
  // src/runtime/set-value.ts
672
682
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
@@ -763,11 +773,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
763
773
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
764
774
  const bundleId = cmpMeta.$lazyBundleId$;
765
775
  if (bundleId) {
766
- Cstr = loadModule(cmpMeta);
767
- if (Cstr.then) {
776
+ const CstrImport = loadModule(cmpMeta);
777
+ if (CstrImport && "then" in CstrImport) {
768
778
  const endLoad = uniqueTime();
769
- Cstr = await Cstr;
779
+ Cstr = await CstrImport;
770
780
  endLoad();
781
+ } else {
782
+ Cstr = CstrImport;
783
+ }
784
+ if (!Cstr) {
785
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
771
786
  }
772
787
  if (!Cstr.isProxied) {
773
788
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
@@ -788,9 +803,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
788
803
  endNewInstance();
789
804
  } else {
790
805
  Cstr = elm.constructor;
791
- customElements.whenDefined(cmpMeta.$tagName$).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
806
+ const cmpTag = elm.localName;
807
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
792
808
  }
793
- if (Cstr.style) {
809
+ if (Cstr && Cstr.style) {
794
810
  let style = Cstr.style;
795
811
  const scopeId2 = getScopeId(cmpMeta);
796
812
  if (!styles.has(scopeId2)) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-92de18bc.js');
5
+ const index = require('./index-1e1e2a8b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-92de18bc.js');
5
+ const index = require('./index-1e1e2a8b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.18.1 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.18.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-ikons-wc.cjs.js', document.baseURI).href));
@@ -122,7 +122,7 @@
122
122
  ],
123
123
  "compiler": {
124
124
  "name": "@stencil/core",
125
- "version": "4.18.1",
125
+ "version": "4.18.2",
126
126
  "typescriptVersion": "5.4.5"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-420ab443.js';
1
+ import { r as registerInstance, h } from './index-34a63b16.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
  const AcuraIkonStyle0 = acuraIkonCss;
@@ -1,7 +1,8 @@
1
1
  const NAMESPACE = 'proto-ikons-wc';
2
+ const BUILD = /* proto-ikons-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: true, watchCallback: false };
2
3
 
3
4
  /*
4
- Stencil Client Platform v4.18.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.18.2 | MIT Licensed | https://stenciljs.com
5
6
  */
6
7
  var __defProp = Object.defineProperty;
7
8
  var __export = (target, all) => {
@@ -548,8 +549,14 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
548
549
  return writeTask(dispatch) ;
549
550
  };
550
551
  var dispatchHooks = (hostRef, isInitialLoad) => {
552
+ const elm = hostRef.$hostElement$;
551
553
  const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
552
554
  const instance = hostRef.$lazyInstance$ ;
555
+ if (!instance) {
556
+ throw new Error(
557
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
558
+ );
559
+ }
553
560
  let maybePromise;
554
561
  endSchedule();
555
562
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -644,7 +651,10 @@ var appDidLoad = (who) => {
644
651
  }
645
652
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
646
653
  };
647
- var addHydratedFlag = (elm) => elm.classList.add("hydrated") ;
654
+ var addHydratedFlag = (elm) => {
655
+ var _a;
656
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
657
+ };
648
658
 
649
659
  // src/runtime/set-value.ts
650
660
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
@@ -741,11 +751,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
741
751
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
742
752
  const bundleId = cmpMeta.$lazyBundleId$;
743
753
  if (bundleId) {
744
- Cstr = loadModule(cmpMeta);
745
- if (Cstr.then) {
754
+ const CstrImport = loadModule(cmpMeta);
755
+ if (CstrImport && "then" in CstrImport) {
746
756
  const endLoad = uniqueTime();
747
- Cstr = await Cstr;
757
+ Cstr = await CstrImport;
748
758
  endLoad();
759
+ } else {
760
+ Cstr = CstrImport;
761
+ }
762
+ if (!Cstr) {
763
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
749
764
  }
750
765
  if (!Cstr.isProxied) {
751
766
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
@@ -766,9 +781,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
766
781
  endNewInstance();
767
782
  } else {
768
783
  Cstr = elm.constructor;
769
- customElements.whenDefined(cmpMeta.$tagName$).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
784
+ const cmpTag = elm.localName;
785
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
770
786
  }
771
- if (Cstr.style) {
787
+ if (Cstr && Cstr.style) {
772
788
  let style = Cstr.style;
773
789
  const scopeId2 = getScopeId(cmpMeta);
774
790
  if (!styles.has(scopeId2)) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-420ab443.js';
2
- export { s as setNonce } from './index-420ab443.js';
1
+ import { b as bootstrapLazy } from './index-34a63b16.js';
2
+ export { s as setNonce } from './index-34a63b16.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-420ab443.js';
2
- export { s as setNonce } from './index-420ab443.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-34a63b16.js';
2
+ export { s as setNonce } from './index-34a63b16.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.18.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.18.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;