@blocklet/ui-react 2.4.54 → 2.4.56

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.
@@ -41,9 +41,9 @@ const layouts = [{
41
41
  name: 'plain',
42
42
  // navigation 数据为空时, 使用简单布局
43
43
  support: (_, data) => {
44
- var _data$navigation;
44
+ var _data$navigation, _data$socialMedia;
45
45
 
46
- return !((_data$navigation = data.navigation) !== null && _data$navigation !== void 0 && _data$navigation.length);
46
+ return !((_data$navigation = data.navigation) !== null && _data$navigation !== void 0 && _data$navigation.length) && !((_data$socialMedia = data.socialMedia) !== null && _data$socialMedia !== void 0 && _data$socialMedia.length);
47
47
  },
48
48
  component: _plain.default
49
49
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.4.54",
3
+ "version": "2.4.56",
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.54",
34
- "@arcblock/ux": "^2.4.54",
33
+ "@arcblock/did-connect": "^2.4.56",
34
+ "@arcblock/ux": "^2.4.56",
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": "fa118ee64aca47900c106cbc399ea1c986a41cb9"
56
+ "gitHead": "d8262d937338e24692b2b5d920c93628f455481c"
57
57
  }
@@ -11,7 +11,7 @@ const layouts = [
11
11
  {
12
12
  name: 'plain',
13
13
  // navigation 数据为空时, 使用简单布局
14
- support: (_, data) => !data.navigation?.length,
14
+ support: (_, data) => !data.navigation?.length && !data.socialMedia?.length,
15
15
  component: PlainLayout,
16
16
  },
17
17
  {