@oods/component-contracts 0.4.4 → 0.4.6

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 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.4.4/LICENSE) and [NOTICE](https://cdn.jsdelivr.net/npm/@oods/component-contracts@0.4.4/NOTICE). Generated output belongs to its user; installed package dependencies retain their own licenses.
32
+ Apache License 2.0. See [LICENSE](https://cdn.jsdelivr.net/npm/@oods/component-contracts@0.4.6/LICENSE) and [NOTICE](https://cdn.jsdelivr.net/npm/@oods/component-contracts@0.4.6/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-\d+:hover\s*\{([^{}]*)\}/.exec(remaining);
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.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-\d+:hover\s*\{([^{}]*)\}/.exec(remaining);
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.4.4",
3
+ "version": "0.4.6",
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": {