@blocklet/ui-react 3.0.6 → 3.0.8

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.
Files changed (133) hide show
  1. package/lib/@types/index.d.ts +204 -3
  2. package/lib/BlockletStudio/index.d.ts +27 -26
  3. package/lib/BlockletStudio/index.js +66 -66
  4. package/lib/ComponentInstaller/index.d.ts +15 -15
  5. package/lib/ComponentInstaller/installer-item.d.ts +10 -10
  6. package/lib/ComponentInstaller/locales.d.ts +2 -2
  7. package/lib/ComponentInstaller/use-component-installed.d.ts +2 -2
  8. package/lib/ComponentManager/components/add-component.d.ts +16 -13
  9. package/lib/ComponentManager/components/add-component.js +29 -29
  10. package/lib/ComponentManager/components/check-component.d.ts +2 -2
  11. package/lib/ComponentManager/components/publish-component.d.ts +10 -7
  12. package/lib/ComponentManager/components/publish-component.js +19 -19
  13. package/lib/ComponentManager/components/resource-dialog.d.ts +13 -11
  14. package/lib/ComponentManager/components/resource-dialog.js +1 -1
  15. package/lib/ComponentManager/index.d.ts +3 -4
  16. package/lib/ComponentManager/libs/locales.d.ts +14 -19
  17. package/lib/Dashboard/index.d.ts +16 -13
  18. package/lib/Footer/brand.d.ts +8 -8
  19. package/lib/Footer/copyright.d.ts +7 -7
  20. package/lib/Footer/index.d.ts +2 -2
  21. package/lib/Footer/internal-footer.d.ts +26 -21
  22. package/lib/Footer/internal-footer.js +1 -1
  23. package/lib/Footer/layout/plain.d.ts +15 -12
  24. package/lib/Footer/layout/row.d.ts +7 -7
  25. package/lib/Footer/layout/standard.d.ts +17 -14
  26. package/lib/Footer/layout/standard.js +1 -1
  27. package/lib/Footer/links.d.ts +15 -12
  28. package/lib/Footer/links.js +3 -3
  29. package/lib/Footer/social-media.d.ts +8 -8
  30. package/lib/Header/index.d.ts +23 -13
  31. package/lib/Header/index.js +17 -17
  32. package/lib/Icon/index.d.ts +9 -7
  33. package/lib/Icon/index.js +6 -6
  34. package/lib/Notifications/Snackbar.d.ts +16 -8
  35. package/lib/Notifications/Snackbar.js +1 -1
  36. package/lib/Notifications/hooks/use-title.d.ts +48 -9
  37. package/lib/Notifications/hooks/use-title.js +9 -9
  38. package/lib/Notifications/hooks/use-width.d.ts +2 -2
  39. package/lib/Notifications/utils.d.ts +69 -9
  40. package/lib/UserCenter/components/config-inviter.d.ts +4 -4
  41. package/lib/UserCenter/components/config-profile.d.ts +5 -5
  42. package/lib/UserCenter/components/danger-zone.d.ts +1 -2
  43. package/lib/UserCenter/components/editable-field.d.ts +34 -30
  44. package/lib/UserCenter/components/editable-field.js +12 -12
  45. package/lib/UserCenter/components/nft.d.ts +4 -4
  46. package/lib/UserCenter/components/notification.d.ts +5 -5
  47. package/lib/UserCenter/components/notification.js +5 -5
  48. package/lib/UserCenter/components/passport.d.ts +5 -5
  49. package/lib/UserCenter/components/privacy.d.ts +11 -5
  50. package/lib/UserCenter/components/settings.d.ts +10 -8
  51. package/lib/UserCenter/components/status-dialog/date-picker.d.ts +10 -9
  52. package/lib/UserCenter/components/status-dialog/date-picker.js +17 -10
  53. package/lib/UserCenter/components/status-dialog/index.d.ts +12 -9
  54. package/lib/UserCenter/components/status-dialog/index.js +8 -1
  55. package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -7
  56. package/lib/UserCenter/components/status-selector/index.d.ts +9 -8
  57. package/lib/UserCenter/components/status-selector/index.js +5 -5
  58. package/lib/UserCenter/components/status-selector/menu-item.d.ts +24 -9
  59. package/lib/UserCenter/components/status-selector/menu-item.js +11 -6
  60. package/lib/UserCenter/components/storage/action.d.ts +9 -7
  61. package/lib/UserCenter/components/storage/connected.d.ts +5 -4
  62. package/lib/UserCenter/components/storage/delete.d.ts +6 -5
  63. package/lib/UserCenter/components/storage/disconnect.d.ts +2 -2
  64. package/lib/UserCenter/components/storage/index.d.ts +2 -2
  65. package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -5
  66. package/lib/UserCenter/components/third-party-login/index.d.ts +4 -4
  67. package/lib/UserCenter/components/third-party-login/index.js +23 -29
  68. package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +13 -4
  69. package/lib/UserCenter/components/user-center.d.ts +16 -15
  70. package/lib/UserCenter/components/user-info/address.d.ts +16 -7
  71. package/lib/UserCenter/components/user-info/index.d.ts +4 -5
  72. package/lib/UserCenter/components/user-info/link-preview-input.d.ts +5 -6
  73. package/lib/UserCenter/components/user-info/metadata.d.ts +10 -7
  74. package/lib/UserCenter/components/user-info/switch-role.d.ts +7 -6
  75. package/lib/UserCenter/components/user-info/timezone-select.d.ts +8 -7
  76. package/lib/UserCenter/components/user-info/user-basic-info.d.ts +13 -12
  77. package/lib/UserCenter/components/user-info/user-info-item.d.ts +11 -6
  78. package/lib/UserCenter/components/user-info/user-info-item.js +1 -1
  79. package/lib/UserCenter/components/user-info/user-info.d.ts +6 -6
  80. package/lib/UserCenter/components/user-info/user-status.d.ts +9 -9
  81. package/lib/UserCenter/components/user-info/user-status.js +17 -17
  82. package/lib/UserCenter/components/user-info/utils.d.ts +33 -15
  83. package/lib/UserCenter/components/webhook-item.d.ts +2 -10
  84. package/lib/UserCenter/index.d.ts +1 -2
  85. package/lib/UserCenter/libs/locales.d.ts +345 -513
  86. package/lib/UserCenter/libs/utils.d.ts +4 -3
  87. package/lib/UserSessions/components/user-session-info.d.ts +5 -5
  88. package/lib/UserSessions/components/user-sessions.d.ts +20 -8
  89. package/lib/UserSessions/index.d.ts +1 -2
  90. package/lib/UserSessions/libs/locales.d.ts +60 -88
  91. package/lib/UserSessions/libs/utils.d.ts +2 -3
  92. package/lib/blocklets.d.ts +9 -10
  93. package/lib/common/domain-warning.d.ts +7 -7
  94. package/lib/common/header-addons.d.ts +9 -9
  95. package/lib/common/link-blocker.d.ts +6 -3
  96. package/lib/common/notification-addon.d.ts +6 -6
  97. package/lib/common/overridable-theme-provider.d.ts +10 -7
  98. package/lib/common/wallet-hidden-topbar.d.ts +1 -2
  99. package/lib/common/ws.d.ts +3 -4
  100. package/lib/contexts/config-user-space.d.ts +27 -7
  101. package/lib/hooks/use-mobile.d.ts +3 -3
  102. package/lib/index.d.ts +10 -12
  103. package/lib/libs/client.d.ts +2 -3
  104. package/lib/libs/constant.d.ts +1 -2
  105. package/lib/libs/spaces.d.ts +2 -3
  106. package/lib/libs/with-hide-when-embed.d.ts +2 -3
  107. package/lib/types.d.ts +31 -32
  108. package/lib/utils.d.ts +10 -11
  109. package/package.json +8 -6
  110. package/src/BlockletStudio/index.tsx +13 -13
  111. package/src/ComponentManager/components/add-component.tsx +6 -6
  112. package/src/ComponentManager/components/publish-component.tsx +2 -2
  113. package/src/ComponentManager/components/resource-dialog.tsx +1 -1
  114. package/src/Footer/internal-footer.jsx +1 -1
  115. package/src/Footer/layout/standard.jsx +1 -1
  116. package/src/Footer/links.jsx +1 -1
  117. package/src/Header/index.tsx +2 -2
  118. package/src/Icon/index.tsx +2 -2
  119. package/src/Notifications/Snackbar.tsx +2 -2
  120. package/src/Notifications/hooks/use-title.tsx +1 -1
  121. package/src/UserCenter/components/editable-field.tsx +6 -6
  122. package/src/UserCenter/components/notification.tsx +2 -2
  123. package/src/UserCenter/components/status-dialog/date-picker.tsx +8 -1
  124. package/src/UserCenter/components/status-dialog/index.tsx +8 -1
  125. package/src/UserCenter/components/status-selector/index.tsx +1 -1
  126. package/src/UserCenter/components/status-selector/menu-item.tsx +6 -1
  127. package/src/UserCenter/components/third-party-login/index.tsx +0 -2
  128. package/src/UserCenter/components/user-center.tsx +1 -1
  129. package/src/UserCenter/components/user-info/link-preview-input.tsx +2 -2
  130. package/src/UserCenter/components/user-info/user-info-item.tsx +1 -1
  131. package/src/UserCenter/components/user-info/user-info.tsx +1 -1
  132. package/src/UserCenter/components/user-info/user-status.tsx +2 -2
  133. package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +0 -3
@@ -1,8 +1,10 @@
1
- export { O as default };
2
- declare function O({ user: i, settings: n, onSave: m, isMobile: s, ...a }: {
3
- [x: string]: any;
4
- user: any;
5
- settings: any;
6
- onSave: any;
7
- isMobile: any;
8
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { BoxProps } from '@mui/material';
2
+ import { User, UserCenterTab } from '../../@types';
3
+ export default function Settings({ user, settings, onSave, isMobile, ...rest }: {
4
+ user: User;
5
+ onSave: (type: 'privacy' | 'profile') => void;
6
+ settings: {
7
+ userCenterTabs: UserCenterTab[];
8
+ };
9
+ isMobile: boolean;
10
+ } & BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,10 @@
1
- export { T as default };
2
- declare function T({ value: e, onChange: a, error: o, helperText: i, label: m, timezone: n }: {
3
- value: any;
4
- onChange: any;
5
- error: any;
6
- helperText: any;
7
- label: any;
8
- timezone: any;
9
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ interface DateTimeInputProps {
2
+ value: Date;
3
+ onChange: (value: Date) => void;
4
+ error?: boolean;
5
+ helperText?: string;
6
+ label?: string;
7
+ timezone?: string;
8
+ }
9
+ export default function DateTimeInput({ value, onChange, error, helperText, label, timezone, }: DateTimeInputProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,14 +1,21 @@
1
- import { jsxs as p, jsx as u } from "react/jsx-runtime";
2
- import { useRef as d } from "react";
1
+ import { jsxs as d, jsx as u } from "react/jsx-runtime";
2
+ import { useRef as p } from "react";
3
3
  import { FormControl as f, TextField as h, FormHelperText as C } from "@mui/material";
4
- import r from "dayjs";
4
+ import e from "dayjs";
5
5
  import { useCreation as Y } from "ahooks";
6
- function T({ value: e, onChange: a, error: o, helperText: i, label: m, timezone: n }) {
7
- const l = d(null), s = r().format("YYYY-MM-DDTHH:mm"), c = Y(() => {
8
- let t = r();
9
- return e && (t = n ? r(e).tz(n) : r(e)), t.format("YYYY-MM-DD HH:mm");
10
- }, [e, n]);
11
- return /* @__PURE__ */ p(f, { fullWidth: !0, error: o, children: [
6
+ function T({
7
+ value: o,
8
+ onChange: a,
9
+ error: n = void 0,
10
+ helperText: i = void 0,
11
+ label: m = void 0,
12
+ timezone: r = void 0
13
+ }) {
14
+ const l = p(null), s = e().format("YYYY-MM-DDTHH:mm"), c = Y(() => {
15
+ let t = e();
16
+ return o && (t = r ? e(o).tz(r) : e(o)), t.format("YYYY-MM-DD HH:mm");
17
+ }, [o, r]);
18
+ return /* @__PURE__ */ d(f, { fullWidth: !0, error: n, children: [
12
19
  /* @__PURE__ */ u(
13
20
  h,
14
21
  {
@@ -19,7 +26,7 @@ function T({ value: e, onChange: a, error: o, helperText: i, label: m, timezone:
19
26
  a(new Date(t.target.value));
20
27
  },
21
28
  label: m,
22
- error: o,
29
+ error: n,
23
30
  onClick: () => {
24
31
  var t;
25
32
  (t = l.current) == null || t.showPicker();
@@ -1,9 +1,12 @@
1
- export { go as default };
2
- declare function go({ open: j, onClose: u, data: m, selected: i, onSelect: h, timezone: F }: {
3
- open: any;
4
- onClose: any;
5
- data: any;
6
- selected: any;
7
- onSelect: any;
8
- timezone: any;
9
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { UserMetadata } from '../../../@types';
2
+ import { StatusItem } from '../status-selector/menu-item';
3
+ interface StatusDialogProps {
4
+ open: boolean;
5
+ onClose: () => void;
6
+ data: Array<StatusItem>;
7
+ selected: UserMetadata['status'];
8
+ onSelect: (v: UserMetadata['status']) => void;
9
+ timezone?: string;
10
+ }
11
+ export default function StatusDialog({ open, onClose, data, selected, onSelect, timezone, }: StatusDialogProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -29,7 +29,14 @@ const O = {
29
29
  alignItems: "center"
30
30
  }
31
31
  };
32
- function go({ open: j, onClose: u, data: m, selected: i, onSelect: h, timezone: F }) {
32
+ function go({
33
+ open: j,
34
+ onClose: u,
35
+ data: m,
36
+ selected: i,
37
+ onSelect: h,
38
+ timezone: F = void 0
39
+ }) {
33
40
  var I, k;
34
41
  const { locale: L } = $(), t = _((o, e = {}) => Z(oo, o, L, "en", e)), [l, S] = s((i == null ? void 0 : i.value) || ""), [a, y] = s((i == null ? void 0 : i.duration) || ""), [d, x] = s(((I = i == null ? void 0 : i.dateRange) == null ? void 0 : I[1]) || ""), [N, c] = s(!1);
35
42
  V(() => {
@@ -1,7 +1,7 @@
1
- declare const $: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
2
- declare function I({ data: n, selected: r, onSelect: m }: {
3
- data: any;
4
- selected: any;
5
- onSelect: any;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
7
- export { $ as MenuDiv, I as default };
1
+ import { BaseStatusProps, StatusItem } from './menu-item';
2
+ interface StatusDurationMenuProps extends BaseStatusProps {
3
+ data: StatusItem;
4
+ }
5
+ declare function DurationMenu({ data, selected, onSelect }: StatusDurationMenuProps): import("react/jsx-runtime").JSX.Element;
6
+ export default DurationMenu;
7
+ export declare const MenuDiv: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,8 +1,9 @@
1
- export { L as default };
2
- declare function L({ data: e, open: a, onSelect: u, anchorEl: i, selected: r }: {
3
- data: any;
4
- open: any;
5
- onSelect: any;
6
- anchorEl: any;
7
- selected: any;
8
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { PopoverProps } from '@mui/material';
2
+ import { BaseStatusProps, StatusItem } from './menu-item';
3
+ interface StatusSelectorProps extends BaseStatusProps {
4
+ data: Array<StatusItem>;
5
+ open: boolean;
6
+ anchorEl?: PopoverProps['anchorEl'];
7
+ }
8
+ declare function StatusSelector({ data, open, onSelect, anchorEl, selected }: StatusSelectorProps): import("react/jsx-runtime").JSX.Element;
9
+ export default StatusSelector;
@@ -5,10 +5,10 @@ import { useMemoizedFn as S } from "ahooks";
5
5
  import { useLocaleContext as x } from "@arcblock/ux/lib/Locale/context";
6
6
  import h from "./duration-menu.js";
7
7
  import M, { StyledMenu as y } from "./menu-item.js";
8
- import { translations as C } from "../../libs/locales.js";
9
- function L({ data: e, open: a, onSelect: u, anchorEl: i, selected: r }) {
10
- const { locale: s } = x(), l = S((o, c = {}) => d(C, o, s, "en", c)), n = (o) => {
11
- u(o);
8
+ import { translations as v } from "../../libs/locales.js";
9
+ function L({ data: e, open: a, onSelect: i, anchorEl: u = void 0, selected: r }) {
10
+ const { locale: s } = x(), l = S((o, c = {}) => d(v, o, s, "en", c)), n = (o) => {
11
+ i(o);
12
12
  }, p = () => e.map((o) => o.children ? /* @__PURE__ */ t(h, { data: o, selected: r, onSelect: n }, o.id) : /* @__PURE__ */ t(
13
13
  M,
14
14
  {
@@ -19,7 +19,7 @@ function L({ data: e, open: a, onSelect: u, anchorEl: i, selected: r }) {
19
19
  },
20
20
  o.id
21
21
  ));
22
- return /* @__PURE__ */ m(y, { open: a, onClose: () => n(), anchorEl: i, children: [
22
+ return /* @__PURE__ */ m(y, { open: a, onClose: () => n(), anchorEl: u, children: [
23
23
  /* @__PURE__ */ t(
24
24
  f,
25
25
  {
@@ -1,9 +1,24 @@
1
- import { default as d } from 'react';
2
- declare const h: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
3
- declare function c({ icon: e, selected: t, onClick: o, children: r }: {
4
- icon: any;
5
- selected: any;
6
- onClick: any;
7
- children: any;
8
- }): d.ReactElement<unknown, string | d.JSXElementConstructor<any>>;
9
- export { h as StyledMenu, c as default };
1
+ import { SvgIconProps } from '@mui/material';
2
+ import { default as React } from 'react';
3
+ import { UserMetadata } from '../../../@types';
4
+ interface StatusMenuItemProps {
5
+ icon?: React.FC<SvgIconProps>;
6
+ selected?: boolean;
7
+ onClick: (e: React.MouseEvent<HTMLElement>) => void;
8
+ children: React.ReactNode;
9
+ }
10
+ export default function StatusMenuItem({ icon, selected, onClick, children, }: StatusMenuItemProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare const StyledMenu: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
12
+ export interface StatusItem {
13
+ id: string;
14
+ name: string;
15
+ icon?: React.FC<SvgIconProps>;
16
+ duration?: string;
17
+ durationName?: string;
18
+ children?: Array<StatusItem>;
19
+ }
20
+ export interface BaseStatusProps {
21
+ selected: UserMetadata['status'];
22
+ onSelect: (v: UserMetadata['status']) => void;
23
+ }
24
+ export {};
@@ -1,15 +1,20 @@
1
1
  import { jsxs as i, jsx as s } from "react/jsx-runtime";
2
- import { styled as n, Menu as l, MenuItem as p, ListItemIcon as a } from "@mui/material";
3
- import d from "react";
4
- function c({ icon: e, selected: t, onClick: o, children: r }) {
5
- return /* @__PURE__ */ i(p, { onClick: o, className: t ? "selected" : "", children: [
6
- e && /* @__PURE__ */ s(a, { style: { minWidth: "24px" }, children: d.createElement(e, {
2
+ import { styled as d, Menu as n, MenuItem as l, ListItemIcon as p } from "@mui/material";
3
+ import a from "react";
4
+ function c({
5
+ icon: e = void 0,
6
+ selected: t = void 0,
7
+ onClick: o,
8
+ children: r
9
+ }) {
10
+ return /* @__PURE__ */ i(l, { onClick: o, className: t ? "selected" : "", children: [
11
+ e && /* @__PURE__ */ s(p, { style: { minWidth: "24px" }, children: a.createElement(e, {
7
12
  style: { fontSize: "16px", width: "16px", height: "16px" }
8
13
  }) }),
9
14
  r
10
15
  ] });
11
16
  }
12
- const h = n(l)`
17
+ const h = d(n)`
13
18
  .MuiPaper-root {
14
19
  box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.15);
15
20
  }
@@ -1,7 +1,9 @@
1
- export { y as default };
2
- declare function y({ session: r, spaceGateway: i, spaceStatus: p, refresh: m }: {
3
- session: any;
4
- spaceGateway: any;
5
- spaceStatus: any;
6
- refresh: any;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { DIDSpaceGateway, DIDSpaceStatus } from '@blocklet/did-space-react';
2
+ import { Session } from '../../../@types';
3
+ declare function Action({ session, spaceGateway, spaceStatus, refresh, }: {
4
+ session: Session;
5
+ spaceGateway: DIDSpaceGateway;
6
+ spaceStatus: DIDSpaceStatus;
7
+ refresh: Function;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export default Action;
@@ -1,4 +1,5 @@
1
- export { I as default };
2
- declare function I({ spaceGateway: o }: {
3
- spaceGateway: any;
4
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { SpaceGateway } from '../../../contexts/config-user-space';
2
+ declare function Connected({ spaceGateway }: {
3
+ spaceGateway: SpaceGateway | undefined;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default Connected;
@@ -1,5 +1,6 @@
1
- export { S as default };
2
- declare function S({ spaceGateway: t, onDeleteSpace: s }: {
3
- spaceGateway: any;
4
- onDeleteSpace: any;
5
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { SpaceGateway } from '../../../contexts/config-user-space';
2
+ declare function SpaceDelete({ spaceGateway, onDeleteSpace, }: {
3
+ spaceGateway: SpaceGateway;
4
+ onDeleteSpace: (spaceGateway: SpaceGateway) => Promise<void>;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export default SpaceDelete;
@@ -1,2 +1,2 @@
1
- export { S as default };
2
- declare function S(): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ declare function Disconnect(): import("react/jsx-runtime").JSX.Element;
2
+ export default Disconnect;
@@ -1,2 +1,2 @@
1
- export { P as default };
2
- declare function P(): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ declare function DidSpace(): import("react/jsx-runtime").JSX.Element;
2
+ export default DidSpace;
@@ -1,5 +1,5 @@
1
- export { k as default };
2
- declare function k({ src: t, alt: p }: {
3
- src: any;
4
- alt: any;
5
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ declare function PreviewSpaceNft({ src, alt }: {
2
+ src: string;
3
+ alt: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default PreviewSpaceNft;
@@ -1,4 +1,4 @@
1
- export { q as default };
2
- declare function q({ user: r }: {
3
- user: any;
4
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User } from '../../../@types';
2
+ export default function ThirdPartyLogin({ user }: {
3
+ user: User;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -63,43 +63,37 @@ function q({ user: r }) {
63
63
  display: "grid",
64
64
  gridTemplateColumns: "1fr min-content"
65
65
  },
66
- children: !h.length && !g.length && !y.length ? (
67
- // @ts-expect-error 忽略 ref 类型
68
- /* @__PURE__ */ s(
66
+ children: !h.length && !g.length && !y.length ? /* @__PURE__ */ s(
67
+ T,
68
+ {
69
+ behavior: "only-new",
70
+ action: "connect",
71
+ createMode: "connect",
72
+ createButtonText: "Add Passkey",
73
+ onSuccess: a,
74
+ onError: a,
75
+ dense: !0
76
+ }
77
+ ) : /* @__PURE__ */ L(O, { children: [
78
+ h.map((e) => /* @__PURE__ */ s(u, { item: e }, e == null ? void 0 : e.provider)),
79
+ g.map((e) => /* @__PURE__ */ s(u, { item: e }, e.id)),
80
+ y.map((e) => /* @__PURE__ */ s(u, { item: e }, e.id)),
81
+ A.wallet || A.arcSphere ? null : /* @__PURE__ */ s(
69
82
  T,
70
83
  {
71
84
  behavior: "only-new",
72
85
  action: "connect",
73
86
  createMode: "connect",
74
- createButtonText: "Add Passkey",
87
+ createButtonText: "Add New Passkey",
75
88
  onSuccess: a,
76
89
  onError: a,
77
- dense: !0
78
- }
79
- )
80
- ) : /* @__PURE__ */ L(O, { children: [
81
- h.map((e) => /* @__PURE__ */ s(u, { item: e }, e == null ? void 0 : e.provider)),
82
- g.map((e) => /* @__PURE__ */ s(u, { item: e }, e.id)),
83
- y.map((e) => /* @__PURE__ */ s(u, { item: e }, e.id)),
84
- A.wallet || A.arcSphere ? null : (
85
- // @ts-expect-error 忽略 ref 类型
86
- /* @__PURE__ */ s(
87
- T,
88
- {
89
- behavior: "only-new",
90
- action: "connect",
91
- createMode: "connect",
92
- createButtonText: "Add New Passkey",
93
- onSuccess: a,
94
- onError: a,
95
- dense: !0,
96
- sx: {
97
- px: 1.5,
98
- py: 1,
99
- gap: 0.75
100
- }
90
+ dense: !0,
91
+ sx: {
92
+ px: 1.5,
93
+ py: 1,
94
+ gap: 0.75
101
95
  }
102
- )
96
+ }
103
97
  )
104
98
  ] })
105
99
  }
@@ -1,4 +1,13 @@
1
- export { Uo as default };
2
- declare function Uo({ item: o }: {
3
- item: any;
4
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { OAuthAccount } from '../../../@types';
2
+ export default function ThirdPartyItem({ item, }: {
3
+ item: {
4
+ provider: string;
5
+ did: string;
6
+ pk: string;
7
+ userInfo?: OAuthAccount['userInfo'];
8
+ id: string;
9
+ _bind?: boolean;
10
+ _rawProvider?: string;
11
+ _mainProvider?: boolean;
12
+ };
13
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,16 @@
1
- export { Le as default };
2
- declare function Le({ children: v, notLoginContent: N, currentTab: x, contentProps: _, disableAutoRedirect: E, hideFooter: cr, headerProps: pr, footerProps: mr, userDid: S, stickySidebar: O, embed: Q, onlyProfile: b }: {
3
- children: any;
4
- notLoginContent?: null | undefined;
5
- currentTab: any;
6
- contentProps?: {} | undefined;
7
- disableAutoRedirect?: boolean | undefined;
8
- hideFooter?: boolean | undefined;
9
- headerProps?: {} | undefined;
10
- footerProps?: {} | undefined;
11
- userDid?: undefined;
12
- stickySidebar?: boolean | undefined;
13
- embed?: boolean | undefined;
14
- onlyProfile?: boolean | undefined;
15
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | null;
1
+ import { BoxProps } from '@mui/material';
2
+ export default function UserCenter({ children, notLoginContent, currentTab, contentProps, disableAutoRedirect, hideFooter, headerProps, footerProps, userDid, stickySidebar, embed, onlyProfile, }: {
3
+ readonly children: any;
4
+ readonly notLoginContent?: any;
5
+ readonly currentTab: string;
6
+ readonly contentProps?: BoxProps;
7
+ readonly disableAutoRedirect?: boolean;
8
+ readonly autoPopupSetting?: boolean;
9
+ readonly hideFooter?: boolean;
10
+ readonly headerProps?: any;
11
+ readonly footerProps?: any;
12
+ readonly userDid?: string;
13
+ readonly stickySidebar?: boolean;
14
+ readonly embed?: boolean;
15
+ readonly onlyProfile?: boolean;
16
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +1,16 @@
1
- export { I as default };
2
- declare function I({ address: r, errors: t, handleChange: i, defaultCountry: d }: {
3
- address: any;
4
- errors: any;
5
- handleChange: any;
6
- defaultCountry: any;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { UserAddress } from '../../../@types';
2
+ interface AddressErrors {
3
+ country?: string;
4
+ province?: string;
5
+ city?: string;
6
+ line1?: string;
7
+ line2?: string;
8
+ postalCode?: string;
9
+ }
10
+ export default function AddressEditor({ address, errors, handleChange, defaultCountry, }: {
11
+ address: UserAddress;
12
+ errors: AddressErrors;
13
+ handleChange: (field: keyof UserAddress, value: string) => void;
14
+ defaultCountry: string;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1,5 +1,4 @@
1
- import { default as m } from './switch-role.js';
2
- import { default as f } from './user-basic-info.js';
3
- import { default as s } from './user-info.js';
4
- import { default as t } from './user-info-item.js';
5
- export { m as SwitchRole, f as UserBasicInfo, s as UserInfo, t as UserInfoItem };
1
+ export { default as UserBasicInfo } from './user-basic-info';
2
+ export { default as UserInfoItem } from './user-info-item';
3
+ export { default as UserInfo } from './user-info';
4
+ export { default as SwitchRole } from './switch-role';
@@ -1,6 +1,5 @@
1
- export { oe as LinkPreviewInput };
2
- declare function oe({ editable: e, links: n, onChange: i }: {
3
- editable?: boolean | undefined;
4
- links?: any[] | undefined;
5
- onChange: any;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ export declare function LinkPreviewInput({ editable, links, onChange, }: {
2
+ editable?: boolean;
3
+ links?: string[];
4
+ onChange: (links: string[]) => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,10 @@
1
- export { se as default };
2
- declare function se({ isMyself: m, user: o, onSave: V, isMobile: b }: {
3
- isMyself: any;
4
- user: any;
5
- onSave: any;
6
- isMobile: any;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User, UserAddress, UserMetadata } from '../../../@types';
2
+ export default function UserMetadataComponent({ isMyself, user, onSave, isMobile, }: {
3
+ isMobile: boolean;
4
+ isMyself: boolean;
5
+ user: User;
6
+ onSave: (v: {
7
+ metadata: UserMetadata;
8
+ address: UserAddress;
9
+ }) => void;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
- export { k as default };
2
- declare const k: import('react').MemoExoticComponent<typeof f>;
3
- declare function f({ user: o, switchPassport: i }: {
4
- user: any;
5
- switchPassport: any;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User } from '../../../@types';
2
+ declare function SwitchRole({ user, switchPassport }: {
3
+ user: User;
4
+ switchPassport: () => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare const _default: import('react').MemoExoticComponent<typeof SwitchRole>;
7
+ export default _default;
@@ -1,7 +1,8 @@
1
- export { P as TimezoneSelect };
2
- declare function P({ value: s, onChange: u, disabled: l, mode: c }: {
3
- value: any;
4
- onChange: any;
5
- disabled?: boolean | undefined;
6
- mode?: string | undefined;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ interface TimezoneSelectProps {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ disabled?: boolean;
5
+ mode?: 'drawer' | 'self';
6
+ }
7
+ export declare function TimezoneSelect({ value, onChange, disabled, mode }: TimezoneSelectProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,12 +1,13 @@
1
- export { St as default };
2
- declare function St({ user: t, isMyself: a, showFullDid: x, switchPassport: A, switchProfile: b, isMobile: e, onlyProfile: p, refreshProfile: h, ...m }: {
3
- [x: string]: any;
4
- user: any;
5
- isMyself?: boolean | undefined;
6
- showFullDid?: boolean | undefined;
7
- switchPassport: any;
8
- switchProfile: any;
9
- isMobile?: boolean | undefined;
10
- onlyProfile?: boolean | undefined;
11
- refreshProfile: any;
12
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | null;
1
+ import { BoxProps } from '@mui/material';
2
+ import { User } from '../../../@types';
3
+ export default function UserBasicInfo({ user, isMyself, showFullDid, switchPassport, switchProfile, isMobile, onlyProfile, refreshProfile, ...rest }: {
4
+ user: User;
5
+ isMyself?: boolean;
6
+ showFullDid?: boolean;
7
+ switchPassport: () => void;
8
+ switchProfile: () => void;
9
+ size?: number;
10
+ isMobile?: boolean;
11
+ onlyProfile?: boolean;
12
+ refreshProfile: () => void;
13
+ } & BoxProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,11 @@
1
- export { x as default };
2
- declare function x({ data: e, verified: s, ...r }: {
3
- [x: string]: any;
4
- data: any;
5
- verified: any;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { BoxProps } from '@mui/material';
2
+ type TUserInfoItemProps = {
3
+ data: {
4
+ icon: any;
5
+ title: string;
6
+ content: any;
7
+ };
8
+ verified?: boolean;
9
+ };
10
+ export default function UserInfoItem({ data, verified, ...rest }: TUserInfoItemProps & BoxProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
2
  import { Box as n, Typography as o } from "@mui/material";
3
3
  import { Verified as l } from "@mui/icons-material";
4
- function x({ data: e, verified: s, ...r }) {
4
+ function x({ data: e, verified: s = !1, ...r }) {
5
5
  return /* @__PURE__ */ t(
6
6
  n,
7
7
  {
@@ -1,6 +1,6 @@
1
- export { V as default };
2
- declare function V({ user: o, isMySelf: l, ...c }: {
3
- [x: string]: any;
4
- user: any;
5
- isMySelf?: boolean | undefined;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { BoxProps } from '@mui/material';
2
+ import { User } from '../../../@types';
3
+ export default function UserInfo({ user, isMySelf, ...rest }: {
4
+ user: User;
5
+ isMySelf?: boolean;
6
+ } & BoxProps): import("react/jsx-runtime").JSX.Element;