proto-ikons-wc 0.0.133 → 0.0.134

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-f253d46b.js');
5
+ const index = require('./index-8d6b7e45.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
  const AcuraIkonStyle0 = acuraIkonCss;
@@ -1290,7 +1290,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1290
1290
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1291
1291
  // Let the runtime know that the component has been initialized
1292
1292
  hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1293
- {
1293
+ const bundleId = cmpMeta.$lazyBundleId$;
1294
+ if (bundleId) {
1294
1295
  // lazy loaded components
1295
1296
  // request the component's implementation to be
1296
1297
  // wired up with the host element
@@ -1327,6 +1328,14 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1327
1328
  }
1328
1329
  endNewInstance();
1329
1330
  }
1331
+ else {
1332
+ // sync constructor component
1333
+ Cstr = elm.constructor;
1334
+ // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
1335
+ // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
1336
+ // Stencil has completed instantiating the component.
1337
+ customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
1338
+ }
1330
1339
  if (Cstr.style) {
1331
1340
  // this component has styles but we haven't registered them yet
1332
1341
  let style = Cstr.style;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f253d46b.js');
5
+ const index = require('./index-8d6b7e45.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-f253d46b.js');
5
+ const index = require('./index-8d6b7e45.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.12.4 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.12.5 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  const 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.12.4",
125
+ "version": "4.12.5",
126
126
  "typescriptVersion": "5.3.3"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-2ad4189f.js';
1
+ import { r as registerInstance, h } from './index-5d0bd19b.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
  const AcuraIkonStyle0 = acuraIkonCss;
@@ -1268,7 +1268,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1268
1268
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1269
1269
  // Let the runtime know that the component has been initialized
1270
1270
  hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1271
- {
1271
+ const bundleId = cmpMeta.$lazyBundleId$;
1272
+ if (bundleId) {
1272
1273
  // lazy loaded components
1273
1274
  // request the component's implementation to be
1274
1275
  // wired up with the host element
@@ -1305,6 +1306,14 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1305
1306
  }
1306
1307
  endNewInstance();
1307
1308
  }
1309
+ else {
1310
+ // sync constructor component
1311
+ Cstr = elm.constructor;
1312
+ // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
1313
+ // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
1314
+ // Stencil has completed instantiating the component.
1315
+ customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
1316
+ }
1308
1317
  if (Cstr.style) {
1309
1318
  // this component has styles but we haven't registered them yet
1310
1319
  let style = Cstr.style;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-2ad4189f.js';
2
- export { s as setNonce } from './index-2ad4189f.js';
1
+ import { b as bootstrapLazy } from './index-5d0bd19b.js';
2
+ export { s as setNonce } from './index-5d0bd19b.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-2ad4189f.js';
2
- export { s as setNonce } from './index-2ad4189f.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-5d0bd19b.js';
2
+ export { s as setNonce } from './index-5d0bd19b.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.12.4 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.12.5 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = import.meta.url;