@authing/react-ui-components 4.0.9-alpha.0 → 4.0.9-alpha.2
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/dist/asset-manifest.json +26 -0
- package/dist/index.html +1 -0
- package/dist/static/css/2.8119be6f.chunk.css +3 -0
- package/dist/static/css/2.8119be6f.chunk.css.map +1 -0
- package/dist/static/css/main.cb06883c.chunk.css +2 -0
- package/dist/static/css/main.cb06883c.chunk.css.map +1 -0
- package/dist/static/js/2.1b325b0f.chunk.js +3 -0
- package/dist/static/js/2.1b325b0f.chunk.js.LICENSE.txt +86 -0
- package/dist/static/js/2.1b325b0f.chunk.js.map +1 -0
- package/dist/static/js/3.297324da.chunk.js +2 -0
- package/dist/static/js/3.297324da.chunk.js.map +1 -0
- package/dist/static/js/main.abc48f5a.chunk.js +2 -0
- package/dist/static/js/main.abc48f5a.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.ad73ab6b.js +2 -0
- package/dist/static/js/runtime-main.ad73ab6b.js.map +1 -0
- package/dist/static/media/loading.3cf0104f.svg +32 -0
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/Guard/module.d.ts +1 -1
- package/types/GuardFace/index.d.ts +16 -0
- package/types/GuardSelect/index.d.ts +29 -0
- package/types/SelectAccount/index.d.ts +3 -0
- package/types/TenantPortalSelect/index.d.ts +15 -0
- package/types/_utils/responseManagement/interface.d.ts +1 -1
- package/types/version/version.d.ts +1 -1
- package/types/AccountMerge/UserRadio.d.ts +0 -5
- package/types/AccountMerge/index.d.ts +0 -3
- package/types/AccountMerge/interface.d.ts +0 -27
- package/types/AccountMerge/utils.d.ts +0 -3
- package/types/ChangeAccoutType/index.d.ts +0 -3
- package/types/CompleteInfo/core/components/TreeSelect.d.ts +0 -11
package/package.json
CHANGED
package/types/Guard/module.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const enum GuardModuleType {
|
|
|
19
19
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
20
20
|
IDENTITY_BINDING = "identityBinding",
|
|
21
21
|
SELF_UNLOCK = "selfUnlock",
|
|
22
|
-
|
|
22
|
+
FLOW_SELECT_ACCOUNT = "changeWeixinUnionid"
|
|
23
23
|
}
|
|
24
24
|
export interface GuardModuleAction {
|
|
25
25
|
action: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './styles.less';
|
|
2
|
+
import { AvatarProps } from 'antd/lib/avatar';
|
|
3
|
+
import { TagProps } from 'antd/lib/tag';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export interface GuardFaceProps {
|
|
6
|
+
/** 顶部 avatar 头像展示 */
|
|
7
|
+
avatar: AvatarProps | string;
|
|
8
|
+
/** 标题头部 */
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
/** 标题描述 */
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
/** 标签功能 */
|
|
13
|
+
tags?: TagProps[];
|
|
14
|
+
}
|
|
15
|
+
/** 顶部通用区域封装,同时兼容样式的层叠和功能的自定义 */
|
|
16
|
+
export declare const GuardFace: (props: GuardFaceProps) => JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import './styles.less';
|
|
2
|
+
import { AvatarProps } from 'antd/lib/avatar';
|
|
3
|
+
import { ListItemProps, ListProps } from 'antd/lib/list';
|
|
4
|
+
import React, { CSSProperties } from 'react';
|
|
5
|
+
export interface GuardSelectItem {
|
|
6
|
+
/** avatar 头像展示 */
|
|
7
|
+
avatar?: AvatarProps | string;
|
|
8
|
+
/** 标题 */
|
|
9
|
+
title?: React.ReactNode;
|
|
10
|
+
/** 描述 */
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
/** 右侧操作组 */
|
|
13
|
+
actions?: ListItemProps['actions'];
|
|
14
|
+
/** 右侧额外的渲染内容 */
|
|
15
|
+
extra?: ListItemProps['extra'];
|
|
16
|
+
/** 数据项子内容,便于自定义 */
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
/** 其他元字段 */
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}
|
|
21
|
+
export interface GuardSelectProps<T = any> extends ListProps<any> {
|
|
22
|
+
/**数据项之间的间隙,默认`20px` */
|
|
23
|
+
gap?: CSSProperties['marginBottom'];
|
|
24
|
+
/** 数据源 */
|
|
25
|
+
dataSource: T[];
|
|
26
|
+
onSelect?: (item?: T, index?: number) => void;
|
|
27
|
+
}
|
|
28
|
+
/** 选择列表组件 兼容绝大多数选择场景 */
|
|
29
|
+
export declare const GuardSelect: <D extends GuardSelectItem = any>(props: GuardSelectProps<D>) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './styles.less';
|
|
3
|
+
/** 租户门户选择状态机返回数据类型 */
|
|
4
|
+
export interface TenantPortalSelectType {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
logo: string;
|
|
8
|
+
list: {
|
|
9
|
+
tenantId: string;
|
|
10
|
+
tenantLogo: string;
|
|
11
|
+
tenantName: string;
|
|
12
|
+
userName: string;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export declare const GuardTenantPortalSelectView: () => JSX.Element;
|
|
@@ -17,6 +17,6 @@ export declare const enum ApiCode {
|
|
|
17
17
|
FORCED_PASSWORD_RESET = 2058,
|
|
18
18
|
UNSAFE_PASSWORD_TIP = 2061,
|
|
19
19
|
UNSAFE_PASSWORD_RESET = 2071,
|
|
20
|
-
|
|
20
|
+
FLOW_SELECT_ACCOUNT = 2921
|
|
21
21
|
}
|
|
22
22
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.9-alpha.
|
|
1
|
+
declare const _default: "4.0.9-alpha.2";
|
|
2
2
|
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface BriefUserInfo {
|
|
2
|
-
displayName: string;
|
|
3
|
-
avatar: string;
|
|
4
|
-
phone: string;
|
|
5
|
-
email: string;
|
|
6
|
-
username: string;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GuardAccountMergeInitData {
|
|
10
|
-
currentUserInfo: BriefUserInfo;
|
|
11
|
-
existingUserInfo: BriefUserInfo;
|
|
12
|
-
mergeToken?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface UserRadioProps {
|
|
15
|
-
currentUserInfo: BriefUserInfo;
|
|
16
|
-
existingUserInfo: BriefUserInfo;
|
|
17
|
-
onChange?: (value: any) => void;
|
|
18
|
-
value?: any;
|
|
19
|
-
}
|
|
20
|
-
export interface UserRadioItemProps extends BriefUserInfo {
|
|
21
|
-
value: boolean;
|
|
22
|
-
selected: boolean;
|
|
23
|
-
onClick: (value: boolean) => void;
|
|
24
|
-
}
|
|
25
|
-
export declare enum AuthFlowAction {
|
|
26
|
-
MERGE = "confirm-account-merge"
|
|
27
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type OptionType = {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
children: OptionType[];
|
|
6
|
-
};
|
|
7
|
-
interface TreeSelectProps {
|
|
8
|
-
options: OptionType[];
|
|
9
|
-
}
|
|
10
|
-
declare const TreeSelect: React.FC<TreeSelectProps>;
|
|
11
|
-
export default TreeSelect;
|