@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.
@@ -157,20 +157,26 @@ function Dashboard(_ref) {
157
157
  links: localizedNav
158
158
  }, rest), {}, {
159
159
  headerProps: _objectSpread({
160
- brand: appName,
161
- description: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Address.default, {
162
- compact: true,
163
- responsive: false,
164
- copyable: false,
165
- showCopyButtonInTooltip: true,
166
- prepend: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
167
- did: did,
168
- size: 16,
169
- style: {
170
- marginRight: 4
171
- }
172
- }),
173
- children: did
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,
@@ -181,20 +181,26 @@ function Header(_ref) {
181
181
  alt: "logo"
182
182
  })
183
183
  }),
184
- brand: appName,
185
- description: did ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Address.default, {
186
- compact: true,
187
- responsive: false,
188
- copyable: false,
189
- showCopyButtonInTooltip: true,
190
- prepend: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
191
- did: did,
192
- size: 16,
193
- style: {
194
- marginRight: 4
195
- }
196
- }),
197
- children: did
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.36",
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.36",
34
- "@arcblock/ux": "^2.4.36",
35
- "@emotion/react": "^11.10.0",
36
- "@emotion/styled": "^11.10.0",
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.0",
39
- "core-js": "^3.24.1",
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.18.10",
50
- "@babel/core": "^7.18.10",
51
- "@babel/preset-env": "^7.18.10",
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": "39718f263d0c1b1bf7e8ae93eaeabea45ada40c4"
56
+ "gitHead": "d5db89486d5c862c2f11c26991ac515e701ac7d3"
57
57
  }
@@ -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
- <DidAddress
103
- compact
104
- responsive={false}
105
- copyable={false}
106
- showCopyButtonInTooltip
107
- prepend={<DidAvatar did={did} size={16} style={{ marginRight: 4 }} />}>
108
- {did}
109
- </DidAddress>
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}>
@@ -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
- <DidAddress
101
- compact
102
- responsive={false}
103
- copyable={false}
104
- showCopyButtonInTooltip
105
- prepend={<DidAvatar did={did} size={16} style={{ marginRight: 4 }} />}>
106
- {did}
107
- </DidAddress>
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}