@blocklet/ui-react 2.4.36 → 2.4.38
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/lib/Dashboard/index.js +20 -14
- package/lib/Header/index.js +20 -14
- package/package.json +11 -11
- package/src/Dashboard/index.js +11 -9
- package/src/Header/index.js +11 -9
package/lib/Dashboard/index.js
CHANGED
|
@@ -157,20 +157,26 @@ function Dashboard(_ref) {
|
|
|
157
157
|
links: localizedNav
|
|
158
158
|
}, rest), {}, {
|
|
159
159
|
headerProps: _objectSpread({
|
|
160
|
-
brand:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
160
|
+
brand: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
161
|
+
href: _blocklets.publicPath,
|
|
162
|
+
children: appName
|
|
163
|
+
}),
|
|
164
|
+
description: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
165
|
+
href: _blocklets.publicPath,
|
|
166
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Address.default, {
|
|
167
|
+
compact: true,
|
|
168
|
+
responsive: false,
|
|
169
|
+
copyable: false,
|
|
170
|
+
showCopyButtonInTooltip: true,
|
|
171
|
+
prepend: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
172
|
+
did: did,
|
|
173
|
+
size: 16,
|
|
174
|
+
style: {
|
|
175
|
+
marginRight: 4
|
|
176
|
+
}
|
|
177
|
+
}),
|
|
178
|
+
children: did
|
|
179
|
+
})
|
|
174
180
|
}),
|
|
175
181
|
logo: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
176
182
|
href: _blocklets.publicPath,
|
package/lib/Header/index.js
CHANGED
|
@@ -181,20 +181,26 @@ function Header(_ref) {
|
|
|
181
181
|
alt: "logo"
|
|
182
182
|
})
|
|
183
183
|
}),
|
|
184
|
-
brand:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
184
|
+
brand: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
185
|
+
href: homeLink,
|
|
186
|
+
children: appName
|
|
187
|
+
}),
|
|
188
|
+
description: did ? /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
189
|
+
href: homeLink,
|
|
190
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Address.default, {
|
|
191
|
+
compact: true,
|
|
192
|
+
responsive: false,
|
|
193
|
+
copyable: false,
|
|
194
|
+
showCopyButtonInTooltip: true,
|
|
195
|
+
prepend: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
196
|
+
did: did,
|
|
197
|
+
size: 16,
|
|
198
|
+
style: {
|
|
199
|
+
marginRight: 4
|
|
200
|
+
}
|
|
201
|
+
}),
|
|
202
|
+
children: did
|
|
203
|
+
})
|
|
198
204
|
}) : null,
|
|
199
205
|
addons: headerAddons
|
|
200
206
|
}, rest), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.38",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"url": "https://github.com/ArcBlock/ux/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@arcblock/did-connect": "^2.4.
|
|
34
|
-
"@arcblock/ux": "^2.4.
|
|
35
|
-
"@emotion/react": "^11.10.
|
|
36
|
-
"@emotion/styled": "^11.10.
|
|
33
|
+
"@arcblock/did-connect": "^2.4.38",
|
|
34
|
+
"@arcblock/ux": "^2.4.38",
|
|
35
|
+
"@emotion/react": "^11.10.4",
|
|
36
|
+
"@emotion/styled": "^11.10.4",
|
|
37
37
|
"@iconify/iconify": "^2.2.1",
|
|
38
|
-
"@mui/material": "^5.10.
|
|
39
|
-
"core-js": "^3.
|
|
38
|
+
"@mui/material": "^5.10.8",
|
|
39
|
+
"core-js": "^3.25.5",
|
|
40
40
|
"react-error-boundary": "^3.1.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/cli": "^7.
|
|
50
|
-
"@babel/core": "^7.
|
|
51
|
-
"@babel/preset-env": "^7.
|
|
49
|
+
"@babel/cli": "^7.19.3",
|
|
50
|
+
"@babel/core": "^7.19.3",
|
|
51
|
+
"@babel/preset-env": "^7.19.3",
|
|
52
52
|
"@babel/preset-react": "^7.18.6",
|
|
53
53
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
54
54
|
"jest": "^28.1.3"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "d5db89486d5c862c2f11c26991ac515e701ac7d3"
|
|
57
57
|
}
|
package/src/Dashboard/index.js
CHANGED
|
@@ -97,16 +97,18 @@ function Dashboard({ meta, fallbackUrl, invalidPathFallback, headerAddons, sessi
|
|
|
97
97
|
links={localizedNav}
|
|
98
98
|
{...rest}
|
|
99
99
|
headerProps={{
|
|
100
|
-
brand: appName
|
|
100
|
+
brand: <a href={publicPath}>{appName}</a>,
|
|
101
101
|
description: (
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
<a href={publicPath}>
|
|
103
|
+
<DidAddress
|
|
104
|
+
compact
|
|
105
|
+
responsive={false}
|
|
106
|
+
copyable={false}
|
|
107
|
+
showCopyButtonInTooltip
|
|
108
|
+
prepend={<DidAvatar did={did} size={16} style={{ marginRight: 4 }} />}>
|
|
109
|
+
{did}
|
|
110
|
+
</DidAddress>
|
|
111
|
+
</a>
|
|
110
112
|
),
|
|
111
113
|
logo: (
|
|
112
114
|
<a href={publicPath}>
|
package/src/Header/index.js
CHANGED
|
@@ -94,17 +94,19 @@ function Header({ meta, addons, sessionManagerProps, homeLink, theme: themeOverr
|
|
|
94
94
|
<img src={appLogo} alt="logo" />
|
|
95
95
|
</a>
|
|
96
96
|
}
|
|
97
|
-
brand={appName}
|
|
97
|
+
brand={<a href={homeLink}>{appName}</a>}
|
|
98
98
|
description={
|
|
99
99
|
did ? (
|
|
100
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
<a href={homeLink}>
|
|
101
|
+
<DidAddress
|
|
102
|
+
compact
|
|
103
|
+
responsive={false}
|
|
104
|
+
copyable={false}
|
|
105
|
+
showCopyButtonInTooltip
|
|
106
|
+
prepend={<DidAvatar did={did} size={16} style={{ marginRight: 4 }} />}>
|
|
107
|
+
{did}
|
|
108
|
+
</DidAddress>
|
|
109
|
+
</a>
|
|
108
110
|
) : null
|
|
109
111
|
}
|
|
110
112
|
addons={headerAddons}
|