@blocklet/ui-react 2.9.30 → 2.9.32
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/es/ComponentInstaller/use-component-installed.js +1 -1
- package/es/UserCenter/components/user-center.js +1 -1
- package/lib/ComponentInstaller/use-component-installed.js +1 -1
- package/lib/UserCenter/components/user-center.js +7 -2
- package/package.json +4 -4
- package/src/ComponentInstaller/use-component-installed.js +1 -1
- package/src/UserCenter/components/user-center.tsx +5 -1
|
@@ -19,7 +19,7 @@ function useComponentInstalled({ did, onInstalled, onError }) {
|
|
|
19
19
|
|
|
20
20
|
const optComponents = useMemo(() => {
|
|
21
21
|
if (!optionalComponents || !optionalComponents.length) {
|
|
22
|
-
return
|
|
22
|
+
return [];
|
|
23
23
|
}
|
|
24
24
|
const didSet = parseDidToSet(didKeys);
|
|
25
25
|
const components = optionalComponents.filter((c) => didSet.has(c.meta.did));
|
|
@@ -172,7 +172,7 @@ export default function UserCenter({
|
|
|
172
172
|
const formatError = {
|
|
173
173
|
message: errorMessage
|
|
174
174
|
};
|
|
175
|
-
return /* @__PURE__ */ jsx(ErrorFallback, { error: formatError });
|
|
175
|
+
return /* @__PURE__ */ jsx(Box, { sx: { width: "100%" }, children: /* @__PURE__ */ jsx(ErrorFallback, { error: formatError }) });
|
|
176
176
|
}
|
|
177
177
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
178
178
|
/* @__PURE__ */ jsxs(Box, { sx: { flex: 1 }, children: [
|
|
@@ -35,7 +35,7 @@ function useComponentInstalled({
|
|
|
35
35
|
} = window.blocklet;
|
|
36
36
|
const optComponents = (0, _react.useMemo)(() => {
|
|
37
37
|
if (!optionalComponents || !optionalComponents.length) {
|
|
38
|
-
return
|
|
38
|
+
return [];
|
|
39
39
|
}
|
|
40
40
|
const didSet = parseDidToSet(didKeys);
|
|
41
41
|
const components = optionalComponents.filter(c => didSet.has(c.meta.did));
|
|
@@ -179,8 +179,13 @@ function UserCenter({
|
|
|
179
179
|
const formatError = {
|
|
180
180
|
message: errorMessage
|
|
181
181
|
};
|
|
182
|
-
return /* @__PURE__ */(0, _jsxRuntime.jsx)(
|
|
183
|
-
|
|
182
|
+
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Box, {
|
|
183
|
+
sx: {
|
|
184
|
+
width: "100%"
|
|
185
|
+
},
|
|
186
|
+
children: /* @__PURE__ */(0, _jsxRuntime.jsx)(_ErrorBoundary.ErrorFallback, {
|
|
187
|
+
error: formatError
|
|
188
|
+
})
|
|
184
189
|
});
|
|
185
190
|
}
|
|
186
191
|
return /* @__PURE__ */(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/ui-react",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.32",
|
|
4
4
|
"description": "Some useful front-end web components that can be used in Blocklets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@abtnode/constant": "1.16.23",
|
|
66
|
-
"@arcblock/did-connect": "^2.9.
|
|
67
|
-
"@arcblock/ux": "^2.9.
|
|
66
|
+
"@arcblock/did-connect": "^2.9.32",
|
|
67
|
+
"@arcblock/ux": "^2.9.32",
|
|
68
68
|
"@blocklet/js-sdk": "1.16.23",
|
|
69
69
|
"@emotion/react": "^11.10.4",
|
|
70
70
|
"@emotion/styled": "^11.10.4",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"jest": "^28.1.3",
|
|
100
100
|
"unbuild": "^2.0.0"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "9280bafaac2e33e4ca9af411a9cfae6021148704"
|
|
103
103
|
}
|
|
@@ -19,7 +19,7 @@ function useComponentInstalled({ did, onInstalled, onError }) {
|
|
|
19
19
|
|
|
20
20
|
const optComponents = useMemo(() => {
|
|
21
21
|
if (!optionalComponents || !optionalComponents.length) {
|
|
22
|
-
return
|
|
22
|
+
return [];
|
|
23
23
|
}
|
|
24
24
|
const didSet = parseDidToSet(didKeys);
|
|
25
25
|
const components = optionalComponents.filter((c) => didSet.has(c.meta.did));
|
|
@@ -206,7 +206,11 @@ export default function UserCenter({
|
|
|
206
206
|
const formatError = {
|
|
207
207
|
message: errorMessage,
|
|
208
208
|
};
|
|
209
|
-
return
|
|
209
|
+
return (
|
|
210
|
+
<Box sx={{ width: '100%' }}>
|
|
211
|
+
<ErrorFallback error={formatError} />
|
|
212
|
+
</Box>
|
|
213
|
+
);
|
|
210
214
|
}
|
|
211
215
|
|
|
212
216
|
return (
|