@oods/component-contracts 0.4.5 → 0.5.0
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/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,4 +29,4 @@ Use matching versions of the OODS packages. These packages are separate from the
|
|
|
29
29
|
|
|
30
30
|
## License
|
|
31
31
|
|
|
32
|
-
Apache License 2.0. See [LICENSE](https://cdn.jsdelivr.net/npm/@oods/component-contracts@0.
|
|
32
|
+
Apache License 2.0. See [LICENSE](https://cdn.jsdelivr.net/npm/@oods/component-contracts@0.5.0/LICENSE) and [NOTICE](https://cdn.jsdelivr.net/npm/@oods/component-contracts@0.5.0/NOTICE). Generated output belongs to its user; installed package dependencies retain their own licenses.
|
package/dist/index.cjs
CHANGED
|
@@ -17757,7 +17757,7 @@ function assertStaticSvg(svg) {
|
|
|
17757
17757
|
const markup = svg.replace(/<style\s*>\s*<!\[CDATA\[([\s\S]*?)\]\]>\s*<\/style>/g, (_, css) => {
|
|
17758
17758
|
let remaining = css.trim();
|
|
17759
17759
|
while (remaining) {
|
|
17760
|
-
const rule = /^\.oods-zr
|
|
17760
|
+
const rule = /^\.oods-zr-(?:[a-zA-Z][\w-]*-)?\d+:hover\s*\{([^{}]*)\}/.exec(remaining);
|
|
17761
17761
|
if (!rule) unsafe();
|
|
17762
17762
|
const declarations = rule[1].split(";").map((value) => value.trim()).filter(Boolean);
|
|
17763
17763
|
if (!declarations.length) unsafe();
|
package/dist/index.d.cts
CHANGED
|
@@ -2886,9 +2886,14 @@ interface SubstitutionContractReport {
|
|
|
2886
2886
|
mappingId: string;
|
|
2887
2887
|
component: string;
|
|
2888
2888
|
source: {
|
|
2889
|
-
package
|
|
2889
|
+
package?: string;
|
|
2890
2890
|
export: string;
|
|
2891
|
-
version
|
|
2891
|
+
version?: string;
|
|
2892
|
+
shadcn?: {
|
|
2893
|
+
module: string;
|
|
2894
|
+
file: string;
|
|
2895
|
+
closureHash: string;
|
|
2896
|
+
};
|
|
2892
2897
|
packageContentHash?: string;
|
|
2893
2898
|
};
|
|
2894
2899
|
contractVersion: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2886,9 +2886,14 @@ interface SubstitutionContractReport {
|
|
|
2886
2886
|
mappingId: string;
|
|
2887
2887
|
component: string;
|
|
2888
2888
|
source: {
|
|
2889
|
-
package
|
|
2889
|
+
package?: string;
|
|
2890
2890
|
export: string;
|
|
2891
|
-
version
|
|
2891
|
+
version?: string;
|
|
2892
|
+
shadcn?: {
|
|
2893
|
+
module: string;
|
|
2894
|
+
file: string;
|
|
2895
|
+
closureHash: string;
|
|
2896
|
+
};
|
|
2892
2897
|
packageContentHash?: string;
|
|
2893
2898
|
};
|
|
2894
2899
|
contractVersion: string;
|
package/dist/index.js
CHANGED
|
@@ -17755,7 +17755,7 @@ function assertStaticSvg(svg) {
|
|
|
17755
17755
|
const markup = svg.replace(/<style\s*>\s*<!\[CDATA\[([\s\S]*?)\]\]>\s*<\/style>/g, (_, css) => {
|
|
17756
17756
|
let remaining = css.trim();
|
|
17757
17757
|
while (remaining) {
|
|
17758
|
-
const rule = /^\.oods-zr
|
|
17758
|
+
const rule = /^\.oods-zr-(?:[a-zA-Z][\w-]*-)?\d+:hover\s*\{([^{}]*)\}/.exec(remaining);
|
|
17759
17759
|
if (!rule) unsafe();
|
|
17760
17760
|
const declarations = rule[1].split(";").map((value) => value.trim()).filter(Boolean);
|
|
17761
17761
|
if (!declarations.length) unsafe();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oods/component-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Component contracts for OODS Foundry: each component's identity, props, events, states, token roles and accessibility obligations, with shared formatting helpers.",
|
|
5
5
|
"homepage": "https://oods-foundry.com/",
|
|
6
6
|
"bugs": {
|