@authing/react-ui-components 4.3.3-fsl.2 → 4.3.3-fsl.3
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/ChangePassword/core/SendPhoneCode.d.ts +6 -0
- package/types/CompleteInfo/core/components/TreeSelect.d.ts +11 -0
- package/types/_utils/index.d.ts +1 -1
- package/types/version/version.d.ts +1 -1
- package/types/EY/CheckCaptcha/index.d.ts +0 -2
- package/types/EY/Error/index.d.ts +0 -2
- package/types/EY/ForgetPassword/index.d.ts +0 -2
- package/types/EY/InviteComplete/index.d.ts +0 -2
- package/types/EY/InviteIdentityBind/component/WeComQrcode.d.ts +0 -2
- package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +0 -2
- package/types/EY/InviteIdentityBind/index.d.ts +0 -2
- package/types/EY/InviteLoading/index.d.ts +0 -2
- package/types/EY/Login/components/EyLoginWithWeComQrcode.d.ts +0 -2
- package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +0 -2
- package/types/EY/Login/core/EmailVerify.d.ts +0 -7
- package/types/EY/Login/core/ScanCode.d.ts +0 -7
- package/types/EY/Login/index.d.ts +0 -7
- package/types/EY/PreCheckEmail/index.d.ts +0 -2
- package/types/EY/Protocol/index.d.ts +0 -2
- package/types/EY/components/EmailFormItem.d.ts +0 -2
- package/types/EY/components/GoBack.d.ts +0 -2
- package/types/EY/components/ResetPassword.d.ts +0 -16
- package/types/EY/interface.d.ts +0 -75
- package/types/MFA/VerifyCodeInput/ey.d.ts +0 -15
- package/types/_utils/signRequestParams.d.ts +0 -8
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;
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const getClassnames: (classnames: (string | boolean | undefined)[
|
|
|
27
27
|
* @param item
|
|
28
28
|
* @returns {boolean}
|
|
29
29
|
*/
|
|
30
|
-
export declare function isObject(item: any):
|
|
30
|
+
export declare function isObject(item: any): any;
|
|
31
31
|
/**
|
|
32
32
|
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
33
33
|
* Deep merge two objects.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.3-fsl.
|
|
1
|
+
declare const _default: "4.3.3-fsl.3";
|
|
2
2
|
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare enum InputMethodMap {
|
|
3
|
-
email = "email-code",
|
|
4
|
-
phone = "phone-code"
|
|
5
|
-
}
|
|
6
|
-
interface ResetPasswordProps {
|
|
7
|
-
publicConfig: any;
|
|
8
|
-
setControlShow: any;
|
|
9
|
-
setPolicyStrength: any;
|
|
10
|
-
setCustomPasswordStrength: any;
|
|
11
|
-
setPhoneOrEmailText: any;
|
|
12
|
-
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
-
setUserId: React.Dispatch<React.SetStateAction<string>>;
|
|
14
|
-
}
|
|
15
|
-
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
16
|
-
export {};
|
package/types/EY/interface.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { GuardModuleType, Lang } from '..';
|
|
2
|
-
export interface InviteContext {
|
|
3
|
-
autoLogin: boolean;
|
|
4
|
-
email: string | null;
|
|
5
|
-
ticket: string;
|
|
6
|
-
enabledIdentifierCodeConfig: boolean;
|
|
7
|
-
enabledRegisterFillInfo: boolean;
|
|
8
|
-
enabledExtIdpBind: boolean;
|
|
9
|
-
allowSkipBindExtIdp: boolean;
|
|
10
|
-
sendIdentifierCodeMethod: 'prioritySMS' | 'priorityEmail' | 'SMS' | 'email';
|
|
11
|
-
receiverType: 'emailCode' | 'phoneCode';
|
|
12
|
-
phone: string | null;
|
|
13
|
-
username: string | null;
|
|
14
|
-
name: string | null;
|
|
15
|
-
verifyCodeMaxLength: number;
|
|
16
|
-
verifyCodeMaxErrCount: number;
|
|
17
|
-
extendsFieldsI18n?: {
|
|
18
|
-
[key: string]: Record<Lang, {
|
|
19
|
-
enabled: boolean;
|
|
20
|
-
value: string;
|
|
21
|
-
}>;
|
|
22
|
-
};
|
|
23
|
-
extendsFieldsOptions?: {
|
|
24
|
-
key: string;
|
|
25
|
-
options: {
|
|
26
|
-
value: string;
|
|
27
|
-
label: string;
|
|
28
|
-
}[];
|
|
29
|
-
}[];
|
|
30
|
-
extendsFields: any;
|
|
31
|
-
qrCodeBindMethods: Record<string, {
|
|
32
|
-
QRConfig: any;
|
|
33
|
-
id: string;
|
|
34
|
-
isDefault: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
}[]>;
|
|
37
|
-
socialConnections: any[];
|
|
38
|
-
registerInfoFillMsg?: string;
|
|
39
|
-
extIdpBindMsg?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface EyGuardInviteLoginInitData extends Partial<InviteContext> {
|
|
42
|
-
canBack?: boolean;
|
|
43
|
-
verifyAccount: string;
|
|
44
|
-
context: any;
|
|
45
|
-
originModule: GuardModuleType;
|
|
46
|
-
originContext: any;
|
|
47
|
-
}
|
|
48
|
-
export interface EyGuardInviteCompleteInitData extends Partial<EyGuardInviteLoginInitData> {
|
|
49
|
-
metaData: any;
|
|
50
|
-
}
|
|
51
|
-
export interface EyGuardInviteIdentityBindInitData extends Partial<EyGuardInviteLoginInitData> {
|
|
52
|
-
weComConfig: {
|
|
53
|
-
QRConfig: any;
|
|
54
|
-
id: string;
|
|
55
|
-
isDefault: boolean;
|
|
56
|
-
title: string;
|
|
57
|
-
};
|
|
58
|
-
isNew: boolean;
|
|
59
|
-
socialConnections: any[];
|
|
60
|
-
}
|
|
61
|
-
export interface EyGuardProtocolInitData {
|
|
62
|
-
onAcceptHandle: () => void;
|
|
63
|
-
onRejectHandle: () => void;
|
|
64
|
-
mode: 'Guard' | 'Portal';
|
|
65
|
-
}
|
|
66
|
-
export interface EyLoginProps {
|
|
67
|
-
onBeforeLogin?: (loginInfo: any) => void;
|
|
68
|
-
onLoginSuccess?: (data: any, message?: string) => void;
|
|
69
|
-
onLoginFailed?: (code: number, data: any, message?: string) => void;
|
|
70
|
-
}
|
|
71
|
-
export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
|
|
72
|
-
current: {
|
|
73
|
-
onSpin: (arg0: boolean) => void;
|
|
74
|
-
};
|
|
75
|
-
} | undefined) => (context: any) => Promise<void>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './style.less';
|
|
3
|
-
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
length?: number;
|
|
5
|
-
size?: string;
|
|
6
|
-
gutter?: string;
|
|
7
|
-
onEenter?: Function;
|
|
8
|
-
showDivider?: boolean;
|
|
9
|
-
onChange?: any;
|
|
10
|
-
value?: Array<number | string>;
|
|
11
|
-
onFinish?: any;
|
|
12
|
-
beforeSend: () => Promise<boolean>;
|
|
13
|
-
}
|
|
14
|
-
export declare const EyVerifyCodeInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<VerifyCodeInputProps>>;
|
|
15
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const generateRandomStr: (length?: number) => string;
|
|
2
|
-
export declare const md5: (text: string) => string;
|
|
3
|
-
export declare const signRequestParams: (params: Record<string, any>) => Record<string, any> & {
|
|
4
|
-
_random: string;
|
|
5
|
-
_timestamp: number;
|
|
6
|
-
} & {
|
|
7
|
-
_sign: string;
|
|
8
|
-
};
|