proto-ikons-wc 0.0.64 → 0.0.65

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-d996d2af.js');
5
+ const index = require('./index-e6c07de8.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
 
@@ -36,10 +36,10 @@ const plt = {
36
36
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
37
37
  };
38
38
  const promiseResolve = (v) => Promise.resolve(v);
39
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
39
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
40
40
  try {
41
41
  new CSSStyleSheet();
42
- return typeof new CSSStyleSheet().replace === 'function';
42
+ return typeof new CSSStyleSheet().replaceSync === 'function';
43
43
  }
44
44
  catch (e) { }
45
45
  return false;
@@ -64,9 +64,14 @@ const uniqueTime = (key, measureText) => {
64
64
  const rootAppliedStyles = new WeakMap();
65
65
  const registerStyle = (scopeId, cssText, allowCS) => {
66
66
  let style = styles.get(scopeId);
67
- if (supportsConstructibleStylesheets && allowCS) {
67
+ if (supportsConstructableStylesheets && allowCS) {
68
68
  style = (style || new CSSStyleSheet());
69
- style.replace(cssText);
69
+ if (typeof style === 'string') {
70
+ style = cssText;
71
+ }
72
+ else {
73
+ style.replaceSync(cssText);
74
+ }
70
75
  }
71
76
  else {
72
77
  style = cssText;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d996d2af.js');
5
+ const index = require('./index-e6c07de8.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.17.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-d996d2af.js');
3
+ const index = require('./index-e6c07de8.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.17.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  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": "2.17.0",
125
+ "version": "2.17.1",
126
126
  "typescriptVersion": "4.5.4"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-df670746.js';
1
+ import { r as registerInstance, h } from './index-a33da9e2.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
 
@@ -14,10 +14,10 @@ const plt = {
14
14
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
15
15
  };
16
16
  const promiseResolve = (v) => Promise.resolve(v);
17
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
17
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
18
18
  try {
19
19
  new CSSStyleSheet();
20
- return typeof new CSSStyleSheet().replace === 'function';
20
+ return typeof new CSSStyleSheet().replaceSync === 'function';
21
21
  }
22
22
  catch (e) { }
23
23
  return false;
@@ -42,9 +42,14 @@ const uniqueTime = (key, measureText) => {
42
42
  const rootAppliedStyles = new WeakMap();
43
43
  const registerStyle = (scopeId, cssText, allowCS) => {
44
44
  let style = styles.get(scopeId);
45
- if (supportsConstructibleStylesheets && allowCS) {
45
+ if (supportsConstructableStylesheets && allowCS) {
46
46
  style = (style || new CSSStyleSheet());
47
- style.replace(cssText);
47
+ if (typeof style === 'string') {
48
+ style = cssText;
49
+ }
50
+ else {
51
+ style.replaceSync(cssText);
52
+ }
48
53
  }
49
54
  else {
50
55
  style = cssText;
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-df670746.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a33da9e2.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.17.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-df670746.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a33da9e2.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.17.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;