@blocklet/theme 3.1.18 → 3.1.20

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/dist/cjs/index.js CHANGED
@@ -141,8 +141,8 @@ const buildThemeScript = (theme) => {
141
141
  ${isValidThemeMode.toString()}
142
142
  ${getDefaultThemePrefer.toString()}
143
143
 
144
- const prefer = getDefaultThemePrefer(${JSON.stringify({ theme: { prefer: theme?.prefer ?? "light", preferKey: BLOCKLET_THEME_PREFER_KEY } })});
145
-
144
+ const prefer = ${getDefaultThemePrefer.name}(${JSON.stringify({ theme: { prefer: theme?.prefer ?? "light", preferKey: BLOCKLET_THEME_PREFER_KEY } })});
145
+
146
146
  if(prefer === 'dark') {
147
147
  document.documentElement.setAttribute('data-theme', 'dark');
148
148
  } else {
package/dist/es/index.js CHANGED
@@ -139,8 +139,8 @@ const buildThemeScript = (theme) => {
139
139
  ${isValidThemeMode.toString()}
140
140
  ${getDefaultThemePrefer.toString()}
141
141
 
142
- const prefer = getDefaultThemePrefer(${JSON.stringify({ theme: { prefer: theme?.prefer ?? "light", preferKey: BLOCKLET_THEME_PREFER_KEY } })});
143
-
142
+ const prefer = ${getDefaultThemePrefer.name}(${JSON.stringify({ theme: { prefer: theme?.prefer ?? "light", preferKey: BLOCKLET_THEME_PREFER_KEY } })});
143
+
144
144
  if(prefer === 'dark') {
145
145
  document.documentElement.setAttribute('data-theme', 'dark');
146
146
  } else {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.1.18",
6
+ "version": "3.1.20",
7
7
  "description": "A preset MUI-based theme configuration designed for use with Blocklet.",
8
8
  "main": "dist/cjs/index.js",
9
9
  "module": "dist/es/index.js",
@@ -44,5 +44,5 @@
44
44
  "ts-jest": "^29.4.0",
45
45
  "typescript": "~5.5.4"
46
46
  },
47
- "gitHead": "a145d1dd215444e7b65b8fa08cba2d8db513a94a"
47
+ "gitHead": "acb1c932b5f600dc38e44aa2b4491a943562b81e"
48
48
  }