@authing/guard-shim-react18 4.5.14-alpha.3 → 4.5.15-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 +123 -120
- package/dist/typings/src/Guard/module.d.ts +3 -1
- package/dist/typings/src/Invitation/Error/index.d.ts +2 -0
- package/dist/typings/src/Invitation/Success/index.d.ts +2 -0
- package/dist/typings/src/Invitation/interface.d.ts +4 -14
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +1 -1
- package/dist/typings/src/Type/application.d.ts +1 -1
- package/dist/typings/src/_utils/config/index.d.ts +1 -1
- package/dist/typings/src/_utils/responseManagement/interface.d.ts +2 -1
- package/package.json +1 -1
|
@@ -29,7 +29,9 @@ export declare enum GuardModuleType {
|
|
|
29
29
|
APPLY_INVITATION = "applyInvitation",
|
|
30
30
|
MESSAGE = "message",
|
|
31
31
|
INVITE_AUTH = "inviteAuth",
|
|
32
|
-
INVITE_COMPLETE = "inviteComplete"
|
|
32
|
+
INVITE_COMPLETE = "inviteComplete",
|
|
33
|
+
INVITE_EXPIRE = "inviteExpire",
|
|
34
|
+
INVITE_SUCCESS = "inviteSuccess"
|
|
33
35
|
}
|
|
34
36
|
export interface GuardModuleAction {
|
|
35
37
|
action: string;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { GuardModuleType, Lang } from '..';
|
|
2
2
|
export interface InviteContext {
|
|
3
|
-
|
|
3
|
+
token: string;
|
|
4
4
|
email: string | null;
|
|
5
5
|
ticket: string;
|
|
6
6
|
enabledIdentifierCodeConfig: boolean;
|
|
7
|
-
|
|
8
|
-
enabledExtIdpBind: boolean;
|
|
7
|
+
enabledInfoFill: boolean;
|
|
9
8
|
allowSkipBindExtIdp: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
sendVerifyCodeMethod: 'prioritySMS' | 'priorityEmail';
|
|
10
|
+
phoneCountryCode: string | null;
|
|
12
11
|
phone: string | null;
|
|
13
12
|
username: string | null;
|
|
14
13
|
name: string | null;
|
|
15
|
-
verifyCodeMaxLength: number;
|
|
16
14
|
verifyCodeMaxErrCount: number;
|
|
17
15
|
extendsFieldsI18n?: {
|
|
18
16
|
[key: string]: Record<Lang, {
|
|
@@ -28,15 +26,7 @@ export interface InviteContext {
|
|
|
28
26
|
}[];
|
|
29
27
|
}[];
|
|
30
28
|
extendsFields: any;
|
|
31
|
-
qrCodeBindMethods: Record<string, {
|
|
32
|
-
QRConfig: any;
|
|
33
|
-
id: string;
|
|
34
|
-
isDefault: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
}[]>;
|
|
37
|
-
socialConnections: any[];
|
|
38
29
|
registerInfoFillMsg?: string;
|
|
39
|
-
extIdpBindMsg?: string;
|
|
40
30
|
}
|
|
41
31
|
export interface GuardInviteLoginInitData extends Partial<InviteContext> {
|
|
42
32
|
canBack?: boolean;
|
|
@@ -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
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
|
|
2
|
-
import { MFAType } from '
|
|
2
|
+
import { MFAType } from '../MFA/interface';
|
|
3
3
|
import { PasswordStrength } from '../_utils';
|
|
4
4
|
export * from 'authing-js-sdk';
|
|
5
5
|
export declare enum LoginMethods {
|
|
@@ -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;
|
|
@@ -22,6 +22,7 @@ export declare enum ApiCode {
|
|
|
22
22
|
FLOW_SELECT_ACCOUNT = 2921,
|
|
23
23
|
TENANT_PORTAL = 1644,
|
|
24
24
|
SELECT_ACCOUNT_2_LOGIN = 2930,
|
|
25
|
-
RESET_ACCOUNT_NAME = 1108
|
|
25
|
+
RESET_ACCOUNT_NAME = 1108,
|
|
26
|
+
INVITE_EXPIRE = 4032
|
|
26
27
|
}
|
|
27
28
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
package/package.json
CHANGED