@authing/guard-shim-react 4.5.13 → 4.5.14-alpha.0
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.css +1 -1
- package/dist/guard.min.js +1996 -1943
- package/dist/typings/src/Guard/module.d.ts +5 -1
- package/dist/typings/src/Invitation/Application/index.d.ts +2 -0
- package/dist/typings/src/Invitation/AuthenticationBind/index.d.ts +3 -0
- package/dist/typings/src/Invitation/Complete/index.d.ts +2 -0
- package/dist/typings/src/Invitation/interface.d.ts +75 -0
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/Message/index.d.ts +9 -0
- package/dist/typings/src/Type/index.d.ts +2 -1
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -25,7 +25,11 @@ export declare enum GuardModuleType {
|
|
|
25
25
|
TENANT_PORTAL = "tenant-portal",
|
|
26
26
|
New_SUBMIT_SUCCESS = "newSubmitSuccess",
|
|
27
27
|
SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",
|
|
28
|
-
RESET_ACCOUNT_NAME = "resetAccountName"
|
|
28
|
+
RESET_ACCOUNT_NAME = "resetAccountName",
|
|
29
|
+
APPLY_INVITATION = "applyInvitation",
|
|
30
|
+
MESSAGE = "message",
|
|
31
|
+
INVITE_AUTH = "inviteAuth",
|
|
32
|
+
INVITE_COMPLETE = "inviteComplete"
|
|
29
33
|
}
|
|
30
34
|
export interface GuardModuleAction {
|
|
31
35
|
action: string;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 GuardInviteLoginInitData extends Partial<InviteContext> {
|
|
42
|
+
canBack?: boolean;
|
|
43
|
+
verifyAccount: string;
|
|
44
|
+
context: any;
|
|
45
|
+
originModule: GuardModuleType;
|
|
46
|
+
originContext: any;
|
|
47
|
+
}
|
|
48
|
+
export interface GuardInviteCompleteInitData extends Partial<GuardInviteLoginInitData> {
|
|
49
|
+
metaData: any;
|
|
50
|
+
}
|
|
51
|
+
export interface GuardInviteIdentityBindInitData extends Partial<GuardInviteLoginInitData> {
|
|
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>;
|
|
@@ -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: "multiple" | "login") => void) | undefined;
|
|
62
62
|
backfillData: BackFillMultipleState | undefined;
|
|
63
63
|
defaultQrWay: string | undefined;
|
|
64
64
|
};
|
|
@@ -82,5 +82,6 @@ export declare enum EmailScene {
|
|
|
82
82
|
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
83
83
|
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
84
84
|
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
85
|
-
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
85
|
+
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE",
|
|
86
|
+
VERIFY_CODE = "VERIFY_CODE"
|
|
86
87
|
}
|
|
@@ -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" | "icon" | "default" | undefined;
|
|
57
57
|
enterpriseConnections?: string[] | undefined;
|
|
58
58
|
qrCodeScanOptions?: {
|
|
59
59
|
extIdpConnId?: string | undefined;
|
package/package.json
CHANGED