@blocklet/ui-react 2.13.6 → 2.13.7

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.
@@ -35,7 +35,7 @@ export default function HeaderAddons({ formattedBlocklet, addons, showDomainWarn
35
35
  if (enableLocale && locale && languages.length > 1) {
36
36
  addonsArray.push(/* @__PURE__ */ jsx(LocaleSelector, { showText: false }, "locale-selector"));
37
37
  }
38
- if (window.blocklet?.USE_DARK_THEME) {
38
+ if (["1", "true"].includes(window.blocklet?.USE_DARK_THEME)) {
39
39
  addonsArray.push(/* @__PURE__ */ jsx(ThemeModeToggle, {}, "theme-mode-toggle"));
40
40
  }
41
41
  if (enableConnect && sessionCtx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.13.6",
3
+ "version": "2.13.7",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "@abtnode/constant": "^1.16.42",
36
36
  "@abtnode/util": "^1.16.42",
37
- "@arcblock/bridge": "^2.13.6",
38
- "@arcblock/react-hooks": "^2.13.6",
37
+ "@arcblock/bridge": "^2.13.7",
38
+ "@arcblock/react-hooks": "^2.13.7",
39
39
  "@arcblock/ws": "^1.20.1",
40
40
  "@blocklet/constant": "^1.16.42",
41
41
  "@blocklet/did-space-react": "^1.0.48",
@@ -94,5 +94,5 @@
94
94
  "jest": "^29.7.0",
95
95
  "unbuild": "^2.0.0"
96
96
  },
97
- "gitHead": "1cc41a6a655f93eb1536a9dd36fe3979a2c654c8"
97
+ "gitHead": "9db5da4c6bc8ec9bd239bcd6d080930b52601bd2"
98
98
  }
@@ -48,7 +48,7 @@ export default function HeaderAddons({ formattedBlocklet, addons, showDomainWarn
48
48
  }
49
49
 
50
50
  // 启用了黑夜主题
51
- if (window.blocklet?.USE_DARK_THEME) {
51
+ if (['1', 'true'].includes(window.blocklet?.USE_DARK_THEME)) {
52
52
  addonsArray.push(<ThemeModeToggle key="theme-mode-toggle" />);
53
53
  }
54
54