proto-ikons-wc 0.0.64 → 0.0.67
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.
- package/dist/cjs/acura-ikon_119.cjs.entry.js +1 -1
- package/dist/cjs/{index-d996d2af.js → index-e6c07de8.js} +9 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/proto-ikons-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/acura-ikon_119.entry.js +1 -1
- package/dist/esm/{index-df670746.js → index-a33da9e2.js} +9 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-ikons-wc.js +2 -2
- package/dist/proto-ikons-wc/{p-7aebacb3.entry.js → p-05aa94cf.entry.js} +1 -1
- package/dist/proto-ikons-wc/p-310736c9.js +2 -0
- package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-ikons-wc/p-78ad7159.js +0 -2
|
@@ -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
|
|
39
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
40
40
|
try {
|
|
41
41
|
new CSSStyleSheet();
|
|
42
|
-
return typeof new CSSStyleSheet().
|
|
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 (
|
|
67
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
68
68
|
style = (style || new CSSStyleSheet());
|
|
69
|
-
style
|
|
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;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e6c07de8.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.17.
|
|
8
|
+
Stencil Client Patch Esm v2.17.3 | 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-
|
|
3
|
+
const index = require('./index-e6c07de8.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.17.
|
|
6
|
+
Stencil Client Patch Browser v2.17.3 | 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));
|
|
@@ -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
|
|
17
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
18
18
|
try {
|
|
19
19
|
new CSSStyleSheet();
|
|
20
|
-
return typeof new CSSStyleSheet().
|
|
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 (
|
|
45
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
46
46
|
style = (style || new CSSStyleSheet());
|
|
47
|
-
style
|
|
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;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-a33da9e2.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.17.
|
|
4
|
+
Stencil Client Patch Esm v2.17.3 | 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-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-a33da9e2.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.17.
|
|
4
|
+
Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|