@blocklet/ui-react 2.13.51 → 2.13.53

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.
@@ -529,9 +529,12 @@ export default function UserCenter({
529
529
  return null;
530
530
  }
531
531
  if (embed || onlyProfile) {
532
- return /* @__PURE__ */ jsxs(Main, { children: [
533
- content,
534
- confirmHolder
532
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
533
+ /* @__PURE__ */ jsx(Header, { style: { display: "none" } }),
534
+ /* @__PURE__ */ jsxs(Main, { children: [
535
+ content,
536
+ confirmHolder
537
+ ] })
535
538
  ] });
536
539
  }
537
540
  return /* @__PURE__ */ jsxs(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.13.51",
3
+ "version": "2.13.53",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "@abtnode/constant": "^1.16.43",
36
36
  "@abtnode/util": "^1.16.43",
37
- "@arcblock/bridge": "^2.13.51",
38
- "@arcblock/react-hooks": "^2.13.51",
37
+ "@arcblock/bridge": "^2.13.53",
38
+ "@arcblock/react-hooks": "^2.13.53",
39
39
  "@arcblock/ws": "^1.20.11",
40
40
  "@blocklet/constant": "^1.16.43",
41
41
  "@blocklet/did-space-react": "^1.0.56",
@@ -94,5 +94,5 @@
94
94
  "jest": "^29.7.0",
95
95
  "unbuild": "^2.0.0"
96
96
  },
97
- "gitHead": "181e48532edade29469cf19b45752fdbda04a939"
97
+ "gitHead": "02906cfcf1ed344c4c24587177fa2bcdd071954d"
98
98
  }
@@ -623,10 +623,14 @@ export default function UserCenter({
623
623
  // 嵌入其它页面内时,只展示 content
624
624
  if (embed || onlyProfile) {
625
625
  return (
626
- <Main>
627
- {content}
628
- {confirmHolder}
629
- </Main>
626
+ <>
627
+ {/* 在 Arcsphere 中,需要渲染 header 用于注入某些 bridge 方法,设置为隐藏状态 */}
628
+ <Header style={{ display: 'none' }} />
629
+ <Main>
630
+ {content}
631
+ {confirmHolder}
632
+ </Main>
633
+ </>
630
634
  );
631
635
  }
632
636