@blocklet/ui-react 2.4.38 → 2.4.39

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,33 +157,25 @@ function Dashboard(_ref) {
157
157
  links: localizedNav
158
158
  }, rest), {}, {
159
159
  headerProps: _objectSpread({
160
- brand: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
161
- href: _blocklets.publicPath,
162
- children: appName
160
+ homeLink: _blocklets.publicPath,
161
+ brand: appName,
162
+ description: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Address.default, {
163
+ compact: true,
164
+ responsive: false,
165
+ copyable: false,
166
+ showCopyButtonInTooltip: true,
167
+ prepend: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
168
+ did: did,
169
+ size: 16,
170
+ style: {
171
+ marginRight: 4
172
+ }
173
+ }),
174
+ children: did
163
175
  }),
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
- })
180
- }),
181
- logo: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
182
- href: _blocklets.publicPath,
183
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
184
- src: appLogo,
185
- alt: "logo"
186
- })
176
+ logo: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
177
+ src: appLogo,
178
+ alt: "logo"
187
179
  }),
188
180
  addons: _headerAddons
189
181
  }, rest.headerProps)
@@ -174,33 +174,25 @@ function Header(_ref) {
174
174
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_overridableThemeProvider.default, {
175
175
  theme: themeOverrides,
176
176
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledUxHeader, _objectSpread(_objectSpread({
177
- logo: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
178
- href: homeLink,
179
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
180
- src: appLogo,
181
- alt: "logo"
182
- })
177
+ homeLink: homeLink,
178
+ logo: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
179
+ src: appLogo,
180
+ alt: "logo"
183
181
  }),
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
- })
182
+ brand: appName,
183
+ description: did ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Address.default, {
184
+ compact: true,
185
+ responsive: false,
186
+ copyable: false,
187
+ showCopyButtonInTooltip: true,
188
+ prepend: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
189
+ did: did,
190
+ size: 16,
191
+ style: {
192
+ marginRight: 4
193
+ }
194
+ }),
195
+ children: did
204
196
  }) : null,
205
197
  addons: headerAddons
206
198
  }, rest), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.4.38",
3
+ "version": "2.4.39",
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.4.38",
34
- "@arcblock/ux": "^2.4.38",
33
+ "@arcblock/did-connect": "^2.4.39",
34
+ "@arcblock/ux": "^2.4.39",
35
35
  "@emotion/react": "^11.10.4",
36
36
  "@emotion/styled": "^11.10.4",
37
37
  "@iconify/iconify": "^2.2.1",
@@ -53,5 +53,5 @@
53
53
  "eslint-plugin-react-hooks": "^4.6.0",
54
54
  "jest": "^28.1.3"
55
55
  },
56
- "gitHead": "d5db89486d5c862c2f11c26991ac515e701ac7d3"
56
+ "gitHead": "73a00d536038df6b5c1eb282deb6c0b2c1dc9a42"
57
57
  }
@@ -97,24 +97,19 @@ function Dashboard({ meta, fallbackUrl, invalidPathFallback, headerAddons, sessi
97
97
  links={localizedNav}
98
98
  {...rest}
99
99
  headerProps={{
100
- brand: <a href={publicPath}>{appName}</a>,
100
+ homeLink: publicPath,
101
+ brand: appName,
101
102
  description: (
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>
112
- ),
113
- logo: (
114
- <a href={publicPath}>
115
- <img src={appLogo} alt="logo" />
116
- </a>
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>
117
111
  ),
112
+ logo: <img src={appLogo} alt="logo" />,
118
113
  addons: _headerAddons,
119
114
  ...rest.headerProps,
120
115
  }}
@@ -89,24 +89,19 @@ function Header({ meta, addons, sessionManagerProps, homeLink, theme: themeOverr
89
89
  return (
90
90
  <OverridableThemeProvider theme={themeOverrides}>
91
91
  <StyledUxHeader
92
- logo={
93
- <a href={homeLink}>
94
- <img src={appLogo} alt="logo" />
95
- </a>
96
- }
97
- brand={<a href={homeLink}>{appName}</a>}
92
+ homeLink={homeLink}
93
+ logo={<img src={appLogo} alt="logo" />}
94
+ brand={appName}
98
95
  description={
99
96
  did ? (
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>
97
+ <DidAddress
98
+ compact
99
+ responsive={false}
100
+ copyable={false}
101
+ showCopyButtonInTooltip
102
+ prepend={<DidAvatar did={did} size={16} style={{ marginRight: 4 }} />}>
103
+ {did}
104
+ </DidAddress>
110
105
  ) : null
111
106
  }
112
107
  addons={headerAddons}