@authing/react-ui-components 4.0.4-alpha.1 → 4.0.4-alpha.4
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/index.min.js +1 -1
- package/package.json +1 -1
- package/types/AccountMerge/UserRadio.d.ts +5 -0
- package/types/AccountMerge/index.d.ts +3 -0
- package/types/AccountMerge/interface.d.ts +27 -0
- package/types/AccountMerge/utils.d.ts +3 -0
- package/types/CompleteInfo/core/components/TreeSelect.d.ts +11 -0
- package/types/Guard/core/hooks/useMultipleAccounts.d.ts +4 -0
- package/types/Login/core/withWeComQrcode.d.ts +2 -0
- package/types/Login/hooks/useLoginMultiple.d.ts +2 -0
- package/types/Register/api/request.d.ts +3 -3
- package/types/Register/core/WithEmailCode.d.ts +11 -0
- package/types/Register/core/WithPhone.d.ts +10 -0
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FormInstance } from 'antd/lib/form';
|
|
3
|
+
import { InputMethod } from 'components/Type';
|
|
3
4
|
import { BackFillMultipleState, LoginWay } from '../../Guard/core/hooks/useMultipleAccounts';
|
|
4
5
|
/**
|
|
5
6
|
* 多账号登录下 账户 & 登录方式自动回填
|
|
@@ -14,6 +15,7 @@ declare function useLoginMultipleBackFill(options: {
|
|
|
14
15
|
isOnlyInternationSms?: boolean;
|
|
15
16
|
setAreaCode?: React.Dispatch<React.SetStateAction<string>>;
|
|
16
17
|
cancelBackfill?: boolean;
|
|
18
|
+
setCurrentMethod?: React.Dispatch<React.SetStateAction<InputMethod>>;
|
|
17
19
|
}): void;
|
|
18
20
|
/**
|
|
19
21
|
* 多账号统一状态管理
|
|
@@ -17,7 +17,7 @@ export declare const registerEmailCodeByAxios: (data: {
|
|
|
17
17
|
password?: string;
|
|
18
18
|
postUserInfoPipeline?: boolean;
|
|
19
19
|
params?: string;
|
|
20
|
-
}, config?: AxiosRequestConfig
|
|
20
|
+
}, config?: AxiosRequestConfig) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
|
|
21
21
|
/**
|
|
22
22
|
* 短信验证码注册
|
|
23
23
|
* @param data
|
|
@@ -36,7 +36,7 @@ export declare const registerSmsCodeByAxios: (data: {
|
|
|
36
36
|
params?: string;
|
|
37
37
|
context?: string;
|
|
38
38
|
postUserInfoPipeline?: boolean;
|
|
39
|
-
}, config?: AxiosRequestConfig
|
|
39
|
+
}, config?: AxiosRequestConfig) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
|
|
40
40
|
/**
|
|
41
41
|
* 邮箱密码注册
|
|
42
42
|
* @param data
|
|
@@ -54,4 +54,4 @@ export declare const registerEmailPasswordByAxios: (data: {
|
|
|
54
54
|
params?: string;
|
|
55
55
|
context?: string;
|
|
56
56
|
postUserInfoPipeline?: boolean;
|
|
57
|
-
}, config?: AxiosRequestConfig
|
|
57
|
+
}, config?: AxiosRequestConfig) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Agreement, ApplicationConfig } from '../../Type/application';
|
|
3
|
+
export interface RegisterWithEmailCodeProps {
|
|
4
|
+
onRegisterSuccess: Function;
|
|
5
|
+
onRegisterFailed: Function;
|
|
6
|
+
onBeforeRegister?: Function;
|
|
7
|
+
agreements: Agreement[];
|
|
8
|
+
publicConfig?: ApplicationConfig;
|
|
9
|
+
registeContext?: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Agreement, ApplicationConfig } from '../../Type/application';
|
|
3
|
+
export interface RegisterWithPhoneProps {
|
|
4
|
+
onRegisterSuccess: Function;
|
|
5
|
+
onRegisterFailed: Function;
|
|
6
|
+
agreements: Agreement[];
|
|
7
|
+
publicConfig?: ApplicationConfig;
|
|
8
|
+
registeContext?: any;
|
|
9
|
+
}
|
|
10
|
+
export declare const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.4-alpha.
|
|
1
|
+
declare const _default: "4.0.4-alpha.4";
|
|
2
2
|
export default _default;
|