@blocklet/ui-react 3.4.11 → 3.4.13

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.
@@ -183,7 +183,7 @@ function qr({
183
183
  label: c.title || c.label,
184
184
  url: c.link || c.url,
185
185
  protected: g?.data?.[te] ?? !1,
186
- isPrivate: c.isPrivate || c.private || (c?._rawLink?.includes("/customer") ?? !1),
186
+ isPrivate: c.isPrivate || c.private || (c?._rawLink?.includes?.("/customer") ?? !1),
187
187
  // FIXME: HACK: 隐藏 /customer 菜单, 需要一个通用的解决方案,在嵌入的时候就决定是否是私有的
188
188
  followersOnly: c.component === "did-comments"
189
189
  // 是否开启仅粉丝可查看的功能,目前只对 discuss kit 开启
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "3.4.11",
3
+ "version": "3.4.13",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -36,10 +36,10 @@
36
36
  "dependencies": {
37
37
  "@abtnode/constant": "^1.17.7",
38
38
  "@abtnode/util": "^1.17.7",
39
- "@arcblock/bridge": "3.4.11",
40
- "@arcblock/icons": "3.4.11",
41
- "@arcblock/react-hooks": "3.4.11",
42
- "@arcblock/ws": "^1.28.6",
39
+ "@arcblock/bridge": "3.4.13",
40
+ "@arcblock/icons": "3.4.13",
41
+ "@arcblock/react-hooks": "3.4.13",
42
+ "@arcblock/ws": "^1.28.8",
43
43
  "@blocklet/did-space-react": "^1.2.15",
44
44
  "@blocklet/uploader": "^0.3.19",
45
45
  "@iconify-icons/logos": "^1.2.36",
@@ -84,7 +84,7 @@
84
84
  "access": "public"
85
85
  },
86
86
  "devDependencies": {
87
- "@arcblock/did-connect-react": "3.4.11",
87
+ "@arcblock/did-connect-react": "3.4.13",
88
88
  "@babel/preset-env": "^7.28.0",
89
89
  "@babel/preset-react": "^7.27.1",
90
90
  "@babel/preset-typescript": "^7.27.1",
@@ -98,5 +98,5 @@
98
98
  "typescript": "~5.5.4",
99
99
  "unbuild": "^2.0.0"
100
100
  },
101
- "gitHead": "1cc263e80cb7b98f6ebb02bb8d151fee552e6c76"
101
+ "gitHead": "0ec0dab9e461171384dbed3e114b805771eb1d88"
102
102
  }
@@ -279,7 +279,7 @@ export default function UserCenter({
279
279
  label: x.title || x.label,
280
280
  url: x.link || x.url,
281
281
  protected: privacyState?.data?.[value] ?? false,
282
- isPrivate: x.isPrivate || x.private || (x?._rawLink?.includes('/customer') ?? false), // FIXME: HACK: 隐藏 /customer 菜单, 需要一个通用的解决方案,在嵌入的时候就决定是否是私有的
282
+ isPrivate: x.isPrivate || x.private || (x?._rawLink?.includes?.('/customer') ?? false), // FIXME: HACK: 隐藏 /customer 菜单, 需要一个通用的解决方案,在嵌入的时候就决定是否是私有的
283
283
  followersOnly: x.component === 'did-comments', // 是否开启仅粉丝可查看的功能,目前只对 discuss kit 开启
284
284
  // icon: x.icon,
285
285
  };