@blocklet/ui-react 2.2.2 → 2.2.3

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.
@@ -177,14 +177,14 @@ function Header(_ref) {
177
177
  if (enableLocale && locale) {
178
178
  addonsArray.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_selector.default, {
179
179
  showText: false
180
- }));
180
+ }, "locale-selector"));
181
181
  } // 启用了连接钱包并且检测到了 session context
182
182
 
183
183
 
184
184
  if (enableConnect && sessionInfo) {
185
185
  addonsArray.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_SessionManager.default, _objectSpread({
186
186
  session: sessionInfo.session
187
- }, sessionManagerProps)));
187
+ }, sessionManagerProps), "session-manager"));
188
188
  } // 在内置 addons 基础上定制 addons
189
189
 
190
190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -30,8 +30,8 @@
30
30
  "url": "https://github.com/ArcBlock/ux/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@arcblock/did-connect": "^2.2.2",
34
- "@arcblock/ux": "^2.2.2",
33
+ "@arcblock/did-connect": "^2.2.3",
34
+ "@arcblock/ux": "^2.2.3",
35
35
  "@iconify/iconify": "^2.2.1",
36
36
  "@mui/material": "^5.9.3",
37
37
  "core-js": "^3.24.1",
@@ -53,5 +53,5 @@
53
53
  "eslint-plugin-react-hooks": "^4.6.0",
54
54
  "jest": "^24.9.0"
55
55
  },
56
- "gitHead": "3329ac7ede9cdb8b65c925bb9359ee0e23ad1aa6"
56
+ "gitHead": "8fe2ac5bc92d997e2df3547237e3fa44b76c91aa"
57
57
  }
@@ -96,11 +96,11 @@ function Header({ meta, addons, sessionManagerProps, homeLink, ...rest }) {
96
96
  let addonsArray = [];
97
97
  // 启用了多语言并且检测到了 locale context
98
98
  if (enableLocale && locale) {
99
- addonsArray.push(<LocaleSelector showText={false} />);
99
+ addonsArray.push(<LocaleSelector key="locale-selector" showText={false} />);
100
100
  }
101
101
  // 启用了连接钱包并且检测到了 session context
102
102
  if (enableConnect && sessionInfo) {
103
- addonsArray.push(<SessionManager session={sessionInfo.session} {...sessionManagerProps} />);
103
+ addonsArray.push(<SessionManager key="session-manager" session={sessionInfo.session} {...sessionManagerProps} />);
104
104
  }
105
105
  // 在内置 addons 基础上定制 addons
106
106
  if (typeof addons === 'function') {