@pie-element/shared-theming 0.2.4-next.20261019015909 → 0.2.4-next.20261019151920

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -479,13 +479,9 @@ function l(e) {
479
479
  return e;
480
480
  }
481
481
  function u(e, t = typeof document < "u" ? document.documentElement : null) {
482
- if (!t) {
483
- console.warn("injectCssVariables: No target element available (running in non-browser environment)");
484
- return;
485
- }
486
- Object.entries(e).forEach(([e, n]) => {
482
+ t ? Object.entries(e).forEach(([e, n]) => {
487
483
  t.style.setProperty(e, n);
488
- });
484
+ }) : console.warn("injectCssVariables: No target element available (running in non-browser environment)");
489
485
  }
490
486
  function d(e, t = typeof document < "u" ? document.documentElement : null) {
491
487
  t && Object.keys(e).forEach((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/shared-theming",
3
- "version": "0.2.4-next.20261019015909",
3
+ "version": "0.2.4-next.20261019151920",
4
4
  "description": "Core theming system for PIE elements",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "clean": "rm -rf dist"
22
22
  },
23
23
  "dependencies": {
24
- "@pie-element/shared-types": "0.2.3-next.20261019015909"
24
+ "@pie-element/shared-types": "0.2.3-next.20261019151920"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"