@authing/guard-shim-react18 4.5.0-alpha.2 → 4.5.0-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/dist/guard.min.js +392 -385
- package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +1 -0
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +2 -2
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +2 -2
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/dist/typings/src/_utils/context.d.ts +1 -1
- package/dist/typings/src/_utils/index.d.ts +4 -3
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ interface ResetPasswordProps {
|
|
|
10
10
|
setCustomPasswordStrength: any;
|
|
11
11
|
setPhoneOrEmailText: any;
|
|
12
12
|
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
+
setUserId: React.Dispatch<React.SetStateAction<string>>;
|
|
13
14
|
}
|
|
14
15
|
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -250,7 +250,7 @@ declare class MultipleAccount {
|
|
|
250
250
|
id: string;
|
|
251
251
|
loginAccount?: string | undefined;
|
|
252
252
|
usertype?: string | undefined;
|
|
253
|
-
}, "
|
|
253
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
254
254
|
setLoginWayByHttpData: (account: string, data: {
|
|
255
255
|
username?: string | undefined;
|
|
256
256
|
phone?: string | undefined;
|
|
@@ -294,7 +294,7 @@ declare const useMultipleAccounts: ({ appId, finallyConfig }: {
|
|
|
294
294
|
id: string;
|
|
295
295
|
loginAccount?: string | undefined;
|
|
296
296
|
usertype?: string | undefined;
|
|
297
|
-
}, "
|
|
297
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
298
298
|
setLoginWayByHttpData: (account: string, data: {
|
|
299
299
|
username?: string | undefined;
|
|
300
300
|
phone?: string | undefined;
|
|
@@ -36,7 +36,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
36
36
|
id: string;
|
|
37
37
|
loginAccount?: string | undefined;
|
|
38
38
|
usertype?: string | undefined;
|
|
39
|
-
}, "
|
|
39
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
40
40
|
setLoginWayByHttpData: (account: string, data: {
|
|
41
41
|
username?: string | undefined;
|
|
42
42
|
phone?: string | undefined;
|
|
@@ -58,7 +58,7 @@ declare function useLoginMultiple(setLoginWay: React.Dispatch<any>): {
|
|
|
58
58
|
getOriginAccount: () => string;
|
|
59
59
|
getOriginWay: () => string;
|
|
60
60
|
} | undefined;
|
|
61
|
-
referMultipleState: ((type: "
|
|
61
|
+
referMultipleState: ((type: "login" | "multiple") => void) | undefined;
|
|
62
62
|
backfillData: BackFillMultipleState | undefined;
|
|
63
63
|
defaultQrWay: string | undefined;
|
|
64
64
|
};
|
|
@@ -53,7 +53,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
53
53
|
loginMethods?: LoginMethods[] | undefined;
|
|
54
54
|
passwordLoginMethods?: string[] | undefined;
|
|
55
55
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
56
|
-
socialConnectionsBtnShape?: "button" | "
|
|
56
|
+
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
|
|
57
57
|
enterpriseConnections?: string[] | undefined;
|
|
58
58
|
qrCodeScanOptions?: {
|
|
59
59
|
extIdpConnId?: string | undefined;
|
|
@@ -122,7 +122,7 @@ export declare const useGuardMultipleInstance: () => {
|
|
|
122
122
|
id: string;
|
|
123
123
|
loginAccount?: string | undefined;
|
|
124
124
|
usertype?: string | undefined;
|
|
125
|
-
}, "
|
|
125
|
+
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
126
126
|
setLoginWayByHttpData: (account: string, data: {
|
|
127
127
|
username?: string | undefined;
|
|
128
128
|
phone?: string | undefined;
|
|
@@ -46,15 +46,16 @@ export declare enum PasswordStrength {
|
|
|
46
46
|
Low = 1,
|
|
47
47
|
Middle = 2,
|
|
48
48
|
High = 3,
|
|
49
|
-
AUTO = 4
|
|
49
|
+
AUTO = 4,
|
|
50
|
+
Custom = 5
|
|
50
51
|
}
|
|
51
52
|
export declare const PASSWORD_STRENGTH_TEXT_MAP: Record<PasswordStrength, {
|
|
52
53
|
placeholder: () => string;
|
|
53
54
|
validateMessage: () => string;
|
|
54
55
|
}>;
|
|
55
56
|
export declare const getSymbolTypeLength: (pwd: string) => number;
|
|
56
|
-
export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string) => Rule[];
|
|
57
|
-
export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string, fieldRequiredRuleMessage?: string) => Rule[];
|
|
57
|
+
export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string, userId?: string) => Rule[];
|
|
58
|
+
export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string, fieldRequiredRuleMessage?: string, userId?: string) => Rule[];
|
|
58
59
|
export declare const sleep: (delay: number) => Promise<unknown>;
|
|
59
60
|
export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean) => boolean;
|
|
60
61
|
export declare const transformMethod: (method: RegisterMethods | string) => string;
|
package/package.json
CHANGED