@blocklet/ui-react 3.0.7 → 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.
- package/lib/@types/index.d.ts +204 -3
- package/lib/BlockletStudio/index.d.ts +27 -26
- package/lib/ComponentInstaller/index.d.ts +15 -15
- package/lib/ComponentInstaller/installer-item.d.ts +10 -10
- package/lib/ComponentInstaller/locales.d.ts +2 -2
- package/lib/ComponentInstaller/use-component-installed.d.ts +2 -2
- package/lib/ComponentManager/components/add-component.d.ts +16 -13
- package/lib/ComponentManager/components/check-component.d.ts +2 -2
- package/lib/ComponentManager/components/publish-component.d.ts +10 -7
- package/lib/ComponentManager/components/resource-dialog.d.ts +13 -11
- package/lib/ComponentManager/index.d.ts +3 -4
- package/lib/ComponentManager/libs/locales.d.ts +14 -19
- package/lib/Dashboard/index.d.ts +16 -13
- package/lib/Footer/brand.d.ts +8 -8
- package/lib/Footer/copyright.d.ts +7 -7
- package/lib/Footer/index.d.ts +2 -2
- package/lib/Footer/internal-footer.d.ts +25 -22
- package/lib/Footer/layout/plain.d.ts +15 -12
- package/lib/Footer/layout/row.d.ts +7 -7
- package/lib/Footer/layout/standard.d.ts +16 -13
- package/lib/Footer/links.d.ts +15 -12
- package/lib/Footer/social-media.d.ts +8 -8
- package/lib/Header/index.d.ts +23 -13
- package/lib/Icon/index.d.ts +9 -7
- package/lib/Notifications/Snackbar.d.ts +16 -8
- package/lib/Notifications/hooks/use-title.d.ts +48 -9
- package/lib/Notifications/hooks/use-width.d.ts +2 -2
- package/lib/Notifications/utils.d.ts +69 -9
- package/lib/UserCenter/components/config-inviter.d.ts +4 -4
- package/lib/UserCenter/components/config-profile.d.ts +5 -5
- package/lib/UserCenter/components/danger-zone.d.ts +1 -2
- package/lib/UserCenter/components/editable-field.d.ts +34 -30
- package/lib/UserCenter/components/nft.d.ts +4 -4
- package/lib/UserCenter/components/notification.d.ts +5 -5
- package/lib/UserCenter/components/passport.d.ts +5 -5
- package/lib/UserCenter/components/privacy.d.ts +11 -5
- package/lib/UserCenter/components/settings.d.ts +10 -8
- package/lib/UserCenter/components/status-dialog/date-picker.d.ts +10 -9
- package/lib/UserCenter/components/status-dialog/index.d.ts +12 -9
- package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -7
- package/lib/UserCenter/components/status-selector/index.d.ts +9 -8
- package/lib/UserCenter/components/status-selector/menu-item.d.ts +24 -9
- package/lib/UserCenter/components/storage/action.d.ts +9 -7
- package/lib/UserCenter/components/storage/connected.d.ts +5 -4
- package/lib/UserCenter/components/storage/delete.d.ts +6 -5
- package/lib/UserCenter/components/storage/disconnect.d.ts +2 -2
- package/lib/UserCenter/components/storage/index.d.ts +2 -2
- package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -5
- package/lib/UserCenter/components/third-party-login/index.d.ts +4 -4
- package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +13 -4
- package/lib/UserCenter/components/user-center.d.ts +16 -15
- package/lib/UserCenter/components/user-info/address.d.ts +16 -7
- package/lib/UserCenter/components/user-info/index.d.ts +4 -5
- package/lib/UserCenter/components/user-info/link-preview-input.d.ts +5 -6
- package/lib/UserCenter/components/user-info/metadata.d.ts +10 -7
- package/lib/UserCenter/components/user-info/switch-role.d.ts +7 -6
- package/lib/UserCenter/components/user-info/timezone-select.d.ts +8 -7
- package/lib/UserCenter/components/user-info/user-basic-info.d.ts +13 -12
- package/lib/UserCenter/components/user-info/user-info-item.d.ts +11 -6
- package/lib/UserCenter/components/user-info/user-info.d.ts +6 -6
- package/lib/UserCenter/components/user-info/user-status.d.ts +9 -9
- package/lib/UserCenter/components/user-info/utils.d.ts +33 -15
- package/lib/UserCenter/components/webhook-item.d.ts +2 -10
- package/lib/UserCenter/index.d.ts +1 -2
- package/lib/UserCenter/libs/locales.d.ts +345 -513
- package/lib/UserCenter/libs/utils.d.ts +4 -3
- package/lib/UserSessions/components/user-session-info.d.ts +5 -5
- package/lib/UserSessions/components/user-sessions.d.ts +20 -8
- package/lib/UserSessions/index.d.ts +1 -2
- package/lib/UserSessions/libs/locales.d.ts +60 -88
- package/lib/UserSessions/libs/utils.d.ts +2 -3
- package/lib/blocklets.d.ts +9 -10
- package/lib/common/domain-warning.d.ts +7 -7
- package/lib/common/header-addons.d.ts +9 -9
- package/lib/common/link-blocker.d.ts +6 -3
- package/lib/common/notification-addon.d.ts +6 -6
- package/lib/common/overridable-theme-provider.d.ts +10 -7
- package/lib/common/wallet-hidden-topbar.d.ts +1 -2
- package/lib/common/ws.d.ts +3 -4
- package/lib/contexts/config-user-space.d.ts +27 -7
- package/lib/hooks/use-mobile.d.ts +3 -3
- package/lib/index.d.ts +10 -12
- package/lib/libs/client.d.ts +2 -3
- package/lib/libs/constant.d.ts +1 -2
- package/lib/libs/spaces.d.ts +2 -3
- package/lib/libs/with-hide-when-embed.d.ts +2 -3
- package/lib/types.d.ts +31 -32
- package/lib/utils.d.ts +10 -11
- package/package.json +6 -6
- package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +0 -3
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
export default PlainLayout;
|
|
3
|
+
/**
|
|
4
|
+
* footer plain layout
|
|
5
|
+
*/
|
|
6
|
+
declare function PlainLayout({ elements, data, ...rest }: {
|
|
4
7
|
[x: string]: any;
|
|
5
8
|
elements: any;
|
|
6
9
|
data: any;
|
|
7
|
-
}): import(
|
|
8
|
-
declare namespace
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare namespace PlainLayout {
|
|
9
12
|
namespace propTypes {
|
|
10
|
-
let elements:
|
|
11
|
-
brand:
|
|
12
|
-
navigation:
|
|
13
|
-
socialMedia:
|
|
14
|
-
copyright:
|
|
15
|
-
links:
|
|
13
|
+
let elements: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
14
|
+
brand: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
15
|
+
navigation: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
16
|
+
socialMedia: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
17
|
+
copyright: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
18
|
+
links: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
16
19
|
}>>>;
|
|
17
|
-
let data:
|
|
20
|
+
let data: PropTypes.Validator<object>;
|
|
18
21
|
}
|
|
19
22
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
|
|
3
|
-
declare function m({ children: o, autoCenter: r, ...t }: {
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
declare function Row({ children, autoCenter, ...rest }: {
|
|
4
3
|
[x: string]: any;
|
|
5
4
|
children?: null | undefined;
|
|
6
5
|
autoCenter?: boolean | undefined;
|
|
7
|
-
}): import(
|
|
8
|
-
declare namespace
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
declare namespace Row {
|
|
9
8
|
namespace propTypes {
|
|
10
|
-
let children:
|
|
11
|
-
let autoCenter:
|
|
9
|
+
let children: PropTypes.Requireable<any>;
|
|
10
|
+
let autoCenter: PropTypes.Requireable<boolean>;
|
|
12
11
|
}
|
|
13
12
|
}
|
|
13
|
+
export default Row;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
export default StandardLayout;
|
|
3
|
+
/**
|
|
4
|
+
* footer standard layout
|
|
5
|
+
*/
|
|
6
|
+
declare function StandardLayout({ elements, data, className, ...rest }: {
|
|
4
7
|
[x: string]: any;
|
|
5
8
|
elements: any;
|
|
6
9
|
data: any;
|
|
7
10
|
className?: string | undefined;
|
|
8
|
-
}): import(
|
|
9
|
-
declare namespace
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace StandardLayout {
|
|
10
13
|
namespace propTypes {
|
|
11
|
-
let elements:
|
|
12
|
-
brand:
|
|
13
|
-
navigation:
|
|
14
|
-
socialMedia:
|
|
15
|
-
copyright:
|
|
16
|
-
links:
|
|
14
|
+
let elements: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
15
|
+
brand: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
16
|
+
navigation: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
17
|
+
socialMedia: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
18
|
+
copyright: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
19
|
+
links: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
17
20
|
}>>>;
|
|
18
|
-
let data:
|
|
19
|
-
let className:
|
|
21
|
+
let data: PropTypes.Validator<object>;
|
|
22
|
+
let className: PropTypes.Requireable<string>;
|
|
20
23
|
}
|
|
21
24
|
}
|
package/lib/Footer/links.d.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
/**
|
|
3
|
+
* footer 中的 links (支持分组, 最多支持 2 级)
|
|
4
|
+
*/
|
|
5
|
+
declare function Links({ links, flowLayout, columns, ...rest }: {
|
|
4
6
|
[x: string]: any;
|
|
5
7
|
links?: any[] | undefined;
|
|
6
8
|
flowLayout?: boolean | undefined;
|
|
7
9
|
columns: any;
|
|
8
|
-
}): import(
|
|
9
|
-
declare namespace
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
declare namespace Links {
|
|
10
12
|
namespace propTypes {
|
|
11
|
-
let links:
|
|
12
|
-
label:
|
|
13
|
-
link:
|
|
14
|
-
render:
|
|
15
|
-
props:
|
|
13
|
+
let links: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
14
|
+
label: PropTypes.Requireable<string>;
|
|
15
|
+
link: PropTypes.Requireable<string>;
|
|
16
|
+
render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
props: PropTypes.Requireable<object>;
|
|
16
18
|
}> | null | undefined)[]>;
|
|
17
|
-
let flowLayout:
|
|
18
|
-
let columns:
|
|
19
|
+
let flowLayout: PropTypes.Requireable<boolean>;
|
|
20
|
+
let columns: PropTypes.Validator<number>;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
23
|
+
export default Links;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
|
|
3
|
-
declare function p({ items: r, ...t }: {
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
declare function SocialMedia({ items, ...rest }: {
|
|
4
3
|
[x: string]: any;
|
|
5
4
|
items?: null | undefined;
|
|
6
|
-
}): import(
|
|
7
|
-
declare namespace
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
declare namespace SocialMedia {
|
|
8
7
|
namespace propTypes {
|
|
9
|
-
let items:
|
|
10
|
-
icon:
|
|
11
|
-
link:
|
|
8
|
+
let items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
9
|
+
icon: PropTypes.Requireable<string>;
|
|
10
|
+
link: PropTypes.Requireable<string>;
|
|
12
11
|
}> | null | undefined)[]>;
|
|
13
12
|
}
|
|
14
13
|
}
|
|
14
|
+
export default SocialMedia;
|
package/lib/Header/index.d.ts
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { BoxProps, Breakpoint } from '@mui/material';
|
|
3
|
+
import { BlockletMetaProps, SessionManagerProps } from '../@types';
|
|
4
|
+
type HeaderProps = {
|
|
5
|
+
meta?: BlockletMetaProps;
|
|
6
|
+
addons?: Function | React.ReactNode;
|
|
7
|
+
sessionManagerProps?: SessionManagerProps;
|
|
8
|
+
homeLink?: string | ((brandContent: React.ReactNode) => JSX.Element | null);
|
|
9
|
+
theme?: object;
|
|
10
|
+
hideNavMenu?: boolean;
|
|
11
|
+
bordered?: boolean;
|
|
12
|
+
logo?: React.ReactNode;
|
|
13
|
+
brand?: React.ReactNode;
|
|
14
|
+
brandAddon?: React.ReactNode;
|
|
15
|
+
description?: React.ReactNode;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
prepend?: React.ReactNode;
|
|
18
|
+
align?: 'left' | 'right';
|
|
19
|
+
maxWidth?: false | Breakpoint;
|
|
20
|
+
showDomainWarningDialog?: boolean;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import('react').ComponentType<HeaderProps & Omit<BoxProps, keyof HeaderProps>>;
|
|
23
|
+
export default _default;
|
package/lib/Icon/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { AvatarProps, BoxProps } from '@mui/material';
|
|
2
|
+
/**
|
|
3
|
+
* Icon 组件, 基于 mui Avatar 组件扩展对 iconify 的支持
|
|
4
|
+
*/
|
|
5
|
+
export default function Icon({ icon, size, sx, ...rest }: {
|
|
6
|
+
icon: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
sx?: BoxProps['sx'];
|
|
9
|
+
} & AvatarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
interface NotificationComponentProps {
|
|
2
|
+
viewAllUrl: string;
|
|
3
|
+
keyId: number;
|
|
4
|
+
notification?: {
|
|
5
|
+
severity?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
activity?: any;
|
|
9
|
+
actorInfo?: any;
|
|
10
|
+
};
|
|
11
|
+
content?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export default function NotificationComponent({ ref, keyId: key, notification, viewAllUrl, content, }: NotificationComponentProps & {
|
|
14
|
+
ref?: React.Ref<unknown>;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,9 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Activity types enum for type safety
|
|
3
|
+
* @readonly
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*/
|
|
6
|
+
declare const ACTIVITY_TYPES: {
|
|
7
|
+
readonly COMMENT: "comment";
|
|
8
|
+
readonly LIKE: "like";
|
|
9
|
+
readonly FOLLOW: "follow";
|
|
10
|
+
readonly TIPS: "tips";
|
|
11
|
+
readonly MENTION: "mention";
|
|
12
|
+
readonly ASSIGN: "assign";
|
|
13
|
+
};
|
|
14
|
+
type ActivityTypeValues = (typeof ACTIVITY_TYPES)[keyof typeof ACTIVITY_TYPES];
|
|
15
|
+
interface UserData {
|
|
16
|
+
did: string;
|
|
17
|
+
fullName: string;
|
|
18
|
+
}
|
|
19
|
+
interface ActivityTarget {
|
|
20
|
+
type: string;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
interface Activity {
|
|
24
|
+
type: ActivityTypeValues;
|
|
25
|
+
target: ActivityTarget;
|
|
26
|
+
}
|
|
27
|
+
interface ExtraParams {
|
|
28
|
+
linkColor?: string;
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
interface ActivityTitleProps {
|
|
32
|
+
activity: Activity;
|
|
33
|
+
users: UserData[];
|
|
34
|
+
actors: string[];
|
|
35
|
+
extra?: ExtraParams;
|
|
36
|
+
mountPoint?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A hook that returns a formatted activity title with linked usernames
|
|
40
|
+
* @param {Object} params - The parameters object
|
|
41
|
+
* @param {keyof typeof ACTIVITY_TYPES} params.type - The activity type
|
|
42
|
+
* @param {Object} params.target - The target object
|
|
43
|
+
* @param {Array<{did: string, fullName: string}>} params.users - Array of user objects
|
|
44
|
+
* @param {Object} params.extra - Extra parameters
|
|
45
|
+
* @returns {React.ReactNode} Formatted title with linked usernames
|
|
46
|
+
*/
|
|
47
|
+
export default function useActivityTitle({ activity, users, actors, extra, mountPoint }: ActivityTitleProps): import("react/jsx-runtime").JSX.Element | null;
|
|
48
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare function useWidth(): string;
|
|
2
|
+
export default useWidth;
|
|
@@ -1,10 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* 通知对象的活动目标接口
|
|
3
|
+
*/
|
|
4
|
+
interface ActivityTarget {
|
|
5
|
+
type?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 通知对象的活动元数据接口
|
|
10
|
+
*/
|
|
11
|
+
interface ActivityMeta {
|
|
12
|
+
id?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 活动对象接口
|
|
16
|
+
*/
|
|
17
|
+
interface Activity {
|
|
18
|
+
type?: string;
|
|
19
|
+
actor?: string;
|
|
20
|
+
target?: ActivityTarget;
|
|
21
|
+
meta?: ActivityMeta;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 通知对象接口
|
|
25
|
+
*/
|
|
26
|
+
interface Notification {
|
|
27
|
+
activity?: Activity;
|
|
28
|
+
actorInfo?: any;
|
|
29
|
+
severity?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
items?: Notification[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 合并相邻的通知数据
|
|
36
|
+
* 合并条件:
|
|
37
|
+
* 1. 数据必须是相邻的
|
|
38
|
+
* 2. activity.type 必须相同且不为 null 或 undefined
|
|
39
|
+
* 3. 如果存在target对象,activity.target.type和activity.target.id都必须相同
|
|
40
|
+
* 4. 如果相邻数据的 activity.type 相同但没有 activity.target 对象,则需要合并
|
|
41
|
+
*
|
|
42
|
+
* @param {Notification[]} notifications - 需要处理的通知数据
|
|
43
|
+
* @returns {Notification[]} - 合并后的通知数组
|
|
44
|
+
*/
|
|
45
|
+
export declare const mergeAdjacentNotifications: (notifications: Notification[]) => Notification[];
|
|
46
|
+
/**
|
|
47
|
+
* 判断通知是否包含activity
|
|
48
|
+
* @param {Notification} notification - 通知对象
|
|
49
|
+
* @returns {boolean} - 是否包含activity
|
|
50
|
+
*/
|
|
51
|
+
export declare const isIncludeActivity: (notification: Notification) => boolean;
|
|
52
|
+
/**
|
|
53
|
+
* 是否可以自动已读
|
|
54
|
+
*/
|
|
55
|
+
export declare const canAutoRead: (notification: Notification | null | undefined) => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* 获取 activity 的链接
|
|
58
|
+
* 链接的来源有两种
|
|
59
|
+
* 1. activity.meta.id
|
|
60
|
+
* 2. activity.target.id
|
|
61
|
+
* @param {Activity} activity - 活动对象
|
|
62
|
+
* @returns {Object | null} - 活动的链接
|
|
63
|
+
*/
|
|
64
|
+
export declare const getActivityLink: (activity: Activity | null | undefined) => {
|
|
65
|
+
metaLink?: string | null;
|
|
66
|
+
targetLink?: string | null;
|
|
5
67
|
} | null;
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
declare function S(s: any, t: any, r?: boolean): Promise<string>;
|
|
10
|
-
export { D as canAutoRead, R as getActivityLink, z as isIncludeActivity, M as mergeAdjacentNotifications, _ as sanitize, S as toClickableSpan };
|
|
68
|
+
export declare const toClickableSpan: (str: string, locale: string, isHighLight?: boolean) => Promise<string>;
|
|
69
|
+
export declare const sanitize: (innerHtml: string) => string;
|
|
70
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
user:
|
|
4
|
-
}): import(
|
|
1
|
+
import { User } from '../../@types';
|
|
2
|
+
export default function ConfigInviter({ user }: {
|
|
3
|
+
user: User;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element | "-";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
user:
|
|
4
|
-
onSave:
|
|
5
|
-
}): import(
|
|
1
|
+
import { User } from '../../@types';
|
|
2
|
+
export default function ConfigProfile({ user, onSave }: {
|
|
3
|
+
user: User;
|
|
4
|
+
onSave: (type: 'profile') => void;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
declare function H(): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
1
|
+
export default function DangerZone(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,43 +1,46 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TooltipProps } from '@mui/material';
|
|
3
|
+
interface EditableFieldProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
onValueValidate?: (value: string) => void;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
component?: 'input' | 'textarea';
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
rows?: number;
|
|
12
|
+
maxLength?: number;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
label?: string | React.ReactNode;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
tooltip?: TooltipProps['title'];
|
|
17
|
+
inline?: boolean;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
verified?: boolean;
|
|
20
|
+
errorMsg?: string;
|
|
21
|
+
canEdit?: boolean;
|
|
22
|
+
hidePreview?: boolean;
|
|
23
|
+
renderValue?: (value: string) => React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
/** only for sx */
|
|
26
|
+
export declare const commonInputStyle: {
|
|
27
|
+
'.MuiOutlinedInput-root': {
|
|
28
|
+
'&:hover': {
|
|
5
29
|
fieldset: {
|
|
6
30
|
borderColor: string;
|
|
7
31
|
};
|
|
8
32
|
};
|
|
9
|
-
|
|
33
|
+
'&.Mui-focused': {
|
|
10
34
|
fieldset: {
|
|
11
35
|
borderColor: string;
|
|
12
36
|
};
|
|
13
37
|
};
|
|
14
38
|
};
|
|
15
39
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
onChange?: (() => void) | undefined;
|
|
19
|
-
onValueValidate?: (() => void) | undefined;
|
|
20
|
-
errorMsg?: string | undefined;
|
|
21
|
-
editable?: boolean | undefined;
|
|
22
|
-
component?: string | undefined;
|
|
23
|
-
placeholder?: string | undefined;
|
|
24
|
-
rows?: number | undefined;
|
|
25
|
-
maxLength?: undefined;
|
|
26
|
-
icon?: undefined;
|
|
27
|
-
label?: string | undefined;
|
|
28
|
-
children?: undefined;
|
|
29
|
-
tooltip?: undefined;
|
|
30
|
-
inline?: boolean | undefined;
|
|
31
|
-
style?: {} | undefined;
|
|
32
|
-
verified?: boolean | undefined;
|
|
33
|
-
canEdit?: boolean | undefined;
|
|
34
|
-
renderValue?: undefined;
|
|
35
|
-
disabled?: boolean | undefined;
|
|
36
|
-
hidePreview?: boolean | undefined;
|
|
37
|
-
}): L.ReactElement<unknown, string | L.JSXElementConstructor<any>> | null;
|
|
38
|
-
declare const F: {
|
|
40
|
+
/** only for sx */
|
|
41
|
+
export declare const inputFieldStyle: {
|
|
39
42
|
width: string;
|
|
40
|
-
|
|
43
|
+
'& .MuiFormHelperText-root': {
|
|
41
44
|
position: string;
|
|
42
45
|
bottom: number;
|
|
43
46
|
left: number;
|
|
@@ -47,4 +50,5 @@ declare const F: {
|
|
|
47
50
|
borderColor: string;
|
|
48
51
|
};
|
|
49
52
|
};
|
|
50
|
-
|
|
53
|
+
declare function EditableField({ value, onChange, onValueValidate, errorMsg, editable, component, placeholder, rows, maxLength, icon, label, children, tooltip, inline, style, verified, canEdit, renderValue, disabled, hidePreview, }: EditableFieldProps): import("react/jsx-runtime").JSX.Element | null;
|
|
54
|
+
export default EditableField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
user:
|
|
4
|
-
}): import(
|
|
1
|
+
import { User } from '../../@types';
|
|
2
|
+
export default function Nft({ user }: {
|
|
3
|
+
user: User;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
user:
|
|
4
|
-
isMobile:
|
|
5
|
-
}): import(
|
|
1
|
+
import { User } from '../../@types';
|
|
2
|
+
export default function Notification({ user, isMobile }: {
|
|
3
|
+
user: User;
|
|
4
|
+
isMobile: boolean;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
user:
|
|
5
|
-
}): import(
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { User } from '../../@types';
|
|
3
|
+
export default function Passport({ user, ...rest }: {
|
|
4
|
+
user: User;
|
|
5
|
+
} & BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
type PrivacyConfig = {
|
|
2
|
+
key: string;
|
|
3
|
+
name: string;
|
|
4
|
+
value: boolean;
|
|
5
|
+
isPrivate?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default function Privacy({ configList, onSave, }: {
|
|
8
|
+
configList: PrivacyConfig[];
|
|
9
|
+
onSave: (type: 'privacy') => void;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
user:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
value:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
data:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
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>, {}, {}>;
|