@blocklet/ui-react 2.9.31 → 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.
@@ -19,7 +19,7 @@ function useComponentInstalled({ did, onInstalled, onError }) {
19
19
 
20
20
  const optComponents = useMemo(() => {
21
21
  if (!optionalComponents || !optionalComponents.length) {
22
- return null;
22
+ return [];
23
23
  }
24
24
  const didSet = parseDidToSet(didKeys);
25
25
  const components = optionalComponents.filter((c) => didSet.has(c.meta.did));
@@ -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 null;
38
+ return [];
39
39
  }
40
40
  const didSet = parseDidToSet(didKeys);
41
41
  const components = optionalComponents.filter(c => didSet.has(c.meta.did));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.9.31",
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.31",
67
- "@arcblock/ux": "^2.9.31",
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": "4430dbf5949032024b28b129687d28e21a1155fc"
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 null;
22
+ return [];
23
23
  }
24
24
  const didSet = parseDidToSet(didKeys);
25
25
  const components = optionalComponents.filter((c) => didSet.has(c.meta.did));