proto-ikons-wc 0.1.8 → 0.1.10

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CkY7rCgw.js');
3
+ var index = require('./index-Cp-uZPEm.js');
4
4
 
5
5
  const acuraIkonCss = "";
6
6
 
@@ -4,7 +4,7 @@ const NAMESPACE = 'proto-ikons-wc';
4
4
  const BUILD = /* proto-ikons-wc */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.29.2 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.30.0 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
  var __defProp = Object.defineProperty;
10
10
  var __export = (target, all) => {
@@ -149,6 +149,11 @@ function queryNonceMetaTagContent(doc) {
149
149
  return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
150
150
  }
151
151
 
152
+ // src/utils/regular-expression.ts
153
+ var escapeRegExpSpecialCharacters = (text) => {
154
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
155
+ };
156
+
152
157
  // src/utils/result.ts
153
158
  var result_exports = {};
154
159
  __export(result_exports, {
@@ -275,6 +280,18 @@ var newVNode = (tag, text) => {
275
280
  };
276
281
  var Host = {};
277
282
  var isHost = (node) => node && node.$tag$ === Host;
283
+ var createSupportsRuleRe = (selector) => {
284
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
285
+ return new RegExp(
286
+ // First capture group: match any context before the selector that's not inside @supports selector()
287
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
288
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
289
+ "g"
290
+ );
291
+ };
292
+ createSupportsRuleRe("::slotted");
293
+ createSupportsRuleRe(":host");
294
+ createSupportsRuleRe(":host-context");
278
295
  var parsePropertyValue = (propValue, propType) => {
279
296
  if (propValue != null && !isComplexType(propValue)) {
280
297
  if (propType & 4 /* Boolean */) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CkY7rCgw.js');
3
+ var index = require('./index-Cp-uZPEm.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CkY7rCgw.js');
3
+ var index = require('./index-Cp-uZPEm.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.29.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.30.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
@@ -122,7 +122,7 @@
122
122
  ],
123
123
  "compiler": {
124
124
  "name": "@stencil/core",
125
- "version": "4.29.2",
125
+ "version": "4.30.0",
126
126
  "typescriptVersion": "5.5.4"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
1
+ export { getAssetPath, render, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
2
 
3
3
  const icons = [
4
4
  'alien-icon',
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-C62V3lWn.js';
1
+ import { r as registerInstance, h } from './index-DNYLcofk.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
 
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-ikons-wc';
2
2
  const BUILD = /* proto-ikons-wc */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.29.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.30.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -147,6 +147,11 @@ function queryNonceMetaTagContent(doc) {
147
147
  return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
148
148
  }
149
149
 
150
+ // src/utils/regular-expression.ts
151
+ var escapeRegExpSpecialCharacters = (text) => {
152
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
153
+ };
154
+
150
155
  // src/utils/result.ts
151
156
  var result_exports = {};
152
157
  __export(result_exports, {
@@ -273,6 +278,18 @@ var newVNode = (tag, text) => {
273
278
  };
274
279
  var Host = {};
275
280
  var isHost = (node) => node && node.$tag$ === Host;
281
+ var createSupportsRuleRe = (selector) => {
282
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
283
+ return new RegExp(
284
+ // First capture group: match any context before the selector that's not inside @supports selector()
285
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
286
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
287
+ "g"
288
+ );
289
+ };
290
+ createSupportsRuleRe("::slotted");
291
+ createSupportsRuleRe(":host");
292
+ createSupportsRuleRe(":host-context");
276
293
  var parsePropertyValue = (propValue, propType) => {
277
294
  if (propValue != null && !isComplexType(propValue)) {
278
295
  if (propType & 4 /* Boolean */) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-C62V3lWn.js';
2
- export { s as setNonce } from './index-C62V3lWn.js';
1
+ import { b as bootstrapLazy } from './index-DNYLcofk.js';
2
+ export { s as setNonce } from './index-DNYLcofk.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-C62V3lWn.js';
2
- export { s as setNonce } from './index-C62V3lWn.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-DNYLcofk.js';
2
+ export { s as setNonce } from './index-DNYLcofk.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.29.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.30.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {