@pie-element/element-theme-daisyui 0.1.5-next.20261019015909 → 0.1.5

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.
@@ -6,12 +6,12 @@ var t = class extends e {
6
6
  }
7
7
  };
8
8
  function n() {
9
- typeof customElements > "u" || customElements.get("pie-element-theme-daisyui") || customElements.define("pie-element-theme-daisyui", t);
9
+ typeof customElements < "u" && (customElements.get("pie-element-theme-daisyui") || customElements.define("pie-element-theme-daisyui", t));
10
10
  }
11
11
  //#endregion
12
12
  //#region src/extract.ts
13
13
  function r(e) {
14
- if (!(typeof document > "u" || typeof window > "u")) try {
14
+ if (typeof document < "u" && typeof window < "u") try {
15
15
  let t = e?.element || document.documentElement, n = getComputedStyle(t), r = n.color, i = n.backgroundColor, a = document.createElement("div");
16
16
  a.style.cssText = "position:absolute;visibility:hidden;pointer-events:none", document.body.appendChild(a);
17
17
  let o = (e, t = "color") => (a.className = e, getComputedStyle(a)[t]), s = {
@@ -47,10 +47,10 @@ function i(e, t) {
47
47
  }), () => i.disconnect();
48
48
  }
49
49
  function a(e) {
50
- if (!(typeof document > "u")) return (e || document.documentElement).getAttribute("data-theme") || void 0;
50
+ if (typeof document < "u") return (e || document.documentElement).getAttribute("data-theme") || void 0;
51
51
  }
52
52
  function o(e, t) {
53
- typeof document > "u" || (t || document.documentElement).setAttribute("data-theme", e);
53
+ typeof document < "u" && (t || document.documentElement).setAttribute("data-theme", e);
54
54
  }
55
55
  //#endregion
56
56
  //#region src/colors.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/element-theme-daisyui",
3
- "version": "0.1.5-next.20261019015909",
3
+ "version": "0.1.5",
4
4
  "description": "DaisyUI-powered web component theme wrapper for PIE players",
5
5
  "type": "module",
6
6
  "main": "./dist/pie-element-theme-daisyui.js",
@@ -20,9 +20,9 @@
20
20
  "test": "vitest run"
21
21
  },
22
22
  "dependencies": {
23
- "@pie-element/element-theme": "0.1.5-next.20261019015909",
24
- "@pie-element/shared-theming": "0.2.4-next.20261019015909",
25
- "@pie-element/shared-types": "0.2.3-next.20261019015909"
23
+ "@pie-element/element-theme": "0.1.5",
24
+ "@pie-element/shared-theming": "0.2.4",
25
+ "@pie-element/shared-types": "0.2.3"
26
26
  },
27
27
  "license": "MIT",
28
28
  "publishConfig": {