@mgdis/core-ui-helpers 1.0.2 → 1.0.4
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/.turbo/turbo-build.log +16 -30
- package/CHANGELOG.md +14 -0
- package/dist/angular/index.cjs.map +1 -1
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/index.umd.js.map +1 -1
- package/dist/locale/index.cjs.map +1 -1
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.umd.js.map +1 -1
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.js.map +1 -1
- package/dist/playwright/index.umd.js.map +1 -1
- package/dist/stencil/index.cjs +18 -1
- package/dist/stencil/index.cjs.map +1 -1
- package/dist/stencil/index.js +18 -1
- package/dist/stencil/index.js.map +1 -1
- package/dist/stencil/index.umd.js +18 -1
- package/dist/stencil/index.umd.js.map +1 -1
- package/dist/storybook/index.cjs +118 -46
- package/dist/storybook/index.cjs.map +1 -1
- package/dist/storybook/index.js +118 -46
- package/dist/storybook/index.js.map +1 -1
- package/dist/storybook/index.umd.js +118 -46
- package/dist/storybook/index.umd.js.map +1 -1
- package/dist/tests/index.cjs +134 -0
- package/dist/tests/index.cjs.map +1 -1
- package/dist/tests/index.d.ts +10 -1
- package/dist/tests/index.js +134 -1
- package/dist/tests/index.js.map +1 -1
- package/dist/tests/index.umd.js +134 -0
- package/dist/tests/index.umd.js.map +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.umd.js +2 -2
- package/dist/utils/index.umd.js.map +1 -1
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/index.umd.js.map +1 -1
- package/package.json +12 -12
- package/src/tests/index.spec.ts +2 -1
- package/src/tests/unit/unit.spec.ts +121 -1
- package/src/tests/unit/unit.ts +135 -0
- package/src/utils/object/object.spec.ts +12 -0
- package/src/utils/object/object.ts +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Platform v4.
|
|
8
|
+
Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __export = (target, all) => {
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
+
// src/utils/regular-expression.ts
|
|
17
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
18
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
19
|
+
};
|
|
20
|
+
|
|
16
21
|
// src/utils/result.ts
|
|
17
22
|
var result_exports = {};
|
|
18
23
|
__export(result_exports, {
|
|
@@ -61,6 +66,18 @@
|
|
|
61
66
|
throw result.value;
|
|
62
67
|
}
|
|
63
68
|
};
|
|
69
|
+
var createSupportsRuleRe = (selector) => {
|
|
70
|
+
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
71
|
+
return new RegExp(
|
|
72
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
73
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
74
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
75
|
+
"g"
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
createSupportsRuleRe("::slotted");
|
|
79
|
+
createSupportsRuleRe(":host");
|
|
80
|
+
createSupportsRuleRe(":host-context");
|
|
64
81
|
|
|
65
82
|
/**
|
|
66
83
|
* Retrieve Component Storybook URL from file path
|