@authing/react-ui-components 4.0.9-rc.2 → 4.0.9-rc.21
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.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/ForgetPassword/InputPassword/index.d.ts +4 -0
- package/types/ForgetPassword/core/inputIdentify.d.ts +7 -0
- package/types/ForgetPassword/core/resetPassword.d.ts +5 -1
- package/types/_utils/index.d.ts +1 -0
- 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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputProps } from 'antd/lib/input';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { VerifyLoginMethods } from '../../Type';
|
|
4
|
+
export interface InputIdentifyProps extends InputProps {
|
|
5
|
+
methods: VerifyLoginMethods[];
|
|
6
|
+
}
|
|
7
|
+
export declare const InputIdentify: React.FC<InputIdentifyProps>;
|
|
@@ -4,8 +4,12 @@ export declare enum InputMethodMap {
|
|
|
4
4
|
phone = "phone-code"
|
|
5
5
|
}
|
|
6
6
|
interface ResetPasswordProps {
|
|
7
|
-
onReset: any;
|
|
8
7
|
publicConfig: any;
|
|
8
|
+
setPhoneOrEmail: any;
|
|
9
|
+
setControlShow: any;
|
|
10
|
+
setPolicyStrength: any;
|
|
11
|
+
setCustomPasswordStrength: any;
|
|
12
|
+
setPhoneOrEmailText: any;
|
|
9
13
|
}
|
|
10
14
|
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
11
15
|
export {};
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export declare const PASSWORD_STRENGTH_TEXT_MAP: Record<PasswordStrength, {
|
|
|
73
73
|
}>;
|
|
74
74
|
export declare const getSymbolTypeLength: (pwd: string) => number;
|
|
75
75
|
export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
76
|
+
export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string | undefined, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
76
77
|
export declare const sleep: (delay: number) => Promise<unknown>;
|
|
77
78
|
export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
78
79
|
export declare const tabSort: (defaultValue: any, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.9-rc.
|
|
1
|
+
declare const _default: "4.0.9-rc.21";
|
|
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;
|