@blocklet/ui-react 2.13.17 → 2.13.18
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,9 +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
|
-
|
|
39
|
-
addonsArray.push(/* @__PURE__ */ jsx(ThemeModeToggle, {}, "theme-mode-toggle"));
|
|
40
|
-
}
|
|
38
|
+
addonsArray.push(/* @__PURE__ */ jsx(ThemeModeToggle, {}, "theme-mode-toggle"));
|
|
41
39
|
if (enableConnect && sessionCtx) {
|
|
42
40
|
const menu = [];
|
|
43
41
|
if (authenticated) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.18",
|
|
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.
|
|
38
|
-
"@arcblock/react-hooks": "^2.13.
|
|
37
|
+
"@arcblock/bridge": "^2.13.18",
|
|
38
|
+
"@arcblock/react-hooks": "^2.13.18",
|
|
39
39
|
"@arcblock/ws": "^1.20.2",
|
|
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": "
|
|
97
|
+
"gitHead": "7bb88b45cd68de7eb079b590d0d73fd41d303917"
|
|
98
98
|
}
|
|
@@ -47,10 +47,8 @@ export default function HeaderAddons({ formattedBlocklet, addons, showDomainWarn
|
|
|
47
47
|
addonsArray.push(<LocaleSelector key="locale-selector" showText={false} />);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
//
|
|
51
|
-
|
|
52
|
-
addonsArray.push(<ThemeModeToggle key="theme-mode-toggle" />);
|
|
53
|
-
}
|
|
50
|
+
// 切换明暗主题
|
|
51
|
+
addonsArray.push(<ThemeModeToggle key="theme-mode-toggle" />);
|
|
54
52
|
|
|
55
53
|
// 启用了连接钱包并且检测到了 session context
|
|
56
54
|
if (enableConnect && sessionCtx) {
|