@authing/guard-shim-react 4.5.40-alpha.2 → 4.5.40-alpha.20
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 +2490 -12407
- package/dist/typings/src/ChangeLanguage/index.d.ts +2 -2
- package/dist/typings/src/CompleteInfo/businessRequest.d.ts +2 -1
- package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +0 -1
- package/dist/typings/src/CompleteInfo/interface.d.ts +1 -1
- package/dist/typings/src/Guard/GuardModule/stateMachine.d.ts +1 -1
- package/dist/typings/src/Guard/authClient.d.ts +4 -6
- package/dist/typings/src/Guard/core/hooks/useMultipleAccounts.d.ts +23 -23
- package/dist/typings/src/Guard/module.d.ts +25 -33
- package/dist/typings/src/Login/core/withAuthingOtpPush/types.d.ts +3 -3
- package/dist/typings/src/Login/core/withLDAP.d.ts +1 -2
- package/dist/typings/src/Login/core/withPassword/index.d.ts +1 -2
- package/dist/typings/src/Login/hooks/useLoginMultiple.d.ts +5 -8
- package/dist/typings/src/Login/interface.d.ts +1 -4
- package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +1 -1
- package/dist/typings/src/MFA/businessRequest.d.ts +1 -1
- package/dist/typings/src/MFA/core/passkey.d.ts +1 -3
- package/dist/typings/src/Qrcode/UiQrCode.d.ts +1 -1
- package/dist/typings/src/Qrcode/WorkQrCode.d.ts +1 -1
- package/dist/typings/src/Qrcode/hooks/useImage.d.ts +1 -1
- package/dist/typings/src/Qrcode/hooks/usePreQrCode.d.ts +2 -2
- package/dist/typings/src/Qrcode/index.d.ts +2 -2
- package/dist/typings/src/SelfUnlock/core/selfUnlock.d.ts +1 -1
- package/dist/typings/src/ShieldSpin/index.d.ts +0 -1
- package/dist/typings/src/TenantPortalSelect/interface.d.ts +1 -1
- package/dist/typings/src/Type/application.d.ts +15 -24
- package/dist/typings/src/Type/index.d.ts +1 -2
- package/dist/typings/src/ValidatorRules/index.d.ts +1 -1
- package/dist/typings/src/_utils/compute.d.ts +3 -3
- package/dist/typings/src/_utils/config/index.d.ts +0 -1
- package/dist/typings/src/_utils/context.d.ts +1 -4
- package/dist/typings/src/_utils/http.d.ts +2 -2
- package/dist/typings/src/_utils/index.d.ts +6 -4
- package/dist/typings/src/_utils/locales/index.d.ts +1 -0
- package/dist/typings/src/_utils/responseManagement/interface.d.ts +1 -3
- package/package.json +1 -1
- package/dist/typings/src/ChangePassword/core/resetPassword.d.ts +0 -1
- package/dist/typings/src/Invitation/Application/index.d.ts +0 -2
- package/dist/typings/src/Invitation/AuthenticationBind/index.d.ts +0 -2
- package/dist/typings/src/Invitation/Complete/index.d.ts +0 -2
- package/dist/typings/src/Invitation/Error/index.d.ts +0 -2
- package/dist/typings/src/Invitation/Success/index.d.ts +0 -1
- package/dist/typings/src/Invitation/interface.d.ts +0 -66
- package/dist/typings/src/Message/index.d.ts +0 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Rule } from 'shim-antd/lib/form';
|
|
2
|
+
import qs from 'qs';
|
|
2
3
|
import { User } from 'authing-js-sdk';
|
|
3
4
|
import { GuardProps } from '../Guard';
|
|
4
5
|
import { ApplicationConfig, ComplateFiledsPlace, LoginMethods, RegisterMethods, RegisterSortMethods, TabFieldsI18nItem } from '../Type/application';
|
|
@@ -14,7 +15,7 @@ export declare const validate: (type: keyof typeof VALIDATE_PATTERN, val: string
|
|
|
14
15
|
export declare const getRequiredRules: (msg: string) => Rule[];
|
|
15
16
|
export declare const fieldRequiredRule: (fieldRequiredRule: string, fieldRequiredRuleMessage?: string) => Rule[];
|
|
16
17
|
export declare function getDeviceName(): string | null | undefined;
|
|
17
|
-
export
|
|
18
|
+
export type STYLE_RECORD_KEY = 'appConfig' | 'userConfig';
|
|
18
19
|
export declare const insertStyles: (styles: string | any, recordKey?: STYLE_RECORD_KEY) => void;
|
|
19
20
|
export declare const removeStyles: (recordKey: STYLE_RECORD_KEY) => void;
|
|
20
21
|
export declare const getClassnames: (classnames: (string | boolean | undefined)[]) => string;
|
|
@@ -33,11 +34,12 @@ export declare function isObject(item: any): any;
|
|
|
33
34
|
*/
|
|
34
35
|
export declare function deepMerge<T extends object = any>(target: T, ...sources: any[]): T;
|
|
35
36
|
/**
|
|
36
|
-
*
|
|
37
|
+
* 在托管页下上传query中指定的用户自定义字段进行补全
|
|
38
|
+
* @param params 指定上传的用户自定义字段
|
|
37
39
|
*/
|
|
38
|
-
export declare const getUserRegisterParams: () => {
|
|
40
|
+
export declare const getUserRegisterParams: (params?: string[]) => {
|
|
39
41
|
key: string;
|
|
40
|
-
value:
|
|
42
|
+
value: string | string[] | qs.ParsedQs | qs.ParsedQs[] | undefined;
|
|
41
43
|
}[];
|
|
42
44
|
export declare enum PasswordStrength {
|
|
43
45
|
NoCheck = 0,
|
|
@@ -6,4 +6,5 @@ export interface InitGuardI18nOptions {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const fallbackLng: (code?: string) => string[];
|
|
8
8
|
export declare const initGuardI18n: (options: InitGuardI18nOptions, callback: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
|
|
9
|
+
export declare const resolvedLanguage: string;
|
|
9
10
|
export { i18n };
|
|
@@ -22,8 +22,6 @@ 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
|
|
26
|
-
INVITE_EXPIRE = 4032,
|
|
27
|
-
INVITE_PAGE_EXPIRE = 4033
|
|
25
|
+
RESET_ACCOUNT_NAME = 1108
|
|
28
26
|
}
|
|
29
27
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GuardResetPassword: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GuardInviteSuccessView: () => JSX.Element;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { GuardModuleType } from '../Guard/module';
|
|
2
|
-
import { Lang } from '../Type';
|
|
3
|
-
export interface InviteContext {
|
|
4
|
-
token: string;
|
|
5
|
-
email: string | null;
|
|
6
|
-
ticket: string;
|
|
7
|
-
enabledIdentifierCodeConfig: boolean;
|
|
8
|
-
enabledInfoFill: boolean;
|
|
9
|
-
allowSkipBindExtIdp: boolean;
|
|
10
|
-
sendVerifyCodeMethod: 'prioritySMS' | 'priorityEmail';
|
|
11
|
-
phoneCountryCode: string | null;
|
|
12
|
-
phone: string | null;
|
|
13
|
-
username: string | null;
|
|
14
|
-
name: string | null;
|
|
15
|
-
verifyCodeMaxErrCount: number;
|
|
16
|
-
extendsFieldsI18n?: {
|
|
17
|
-
[key: string]: Record<Lang, {
|
|
18
|
-
enabled: boolean;
|
|
19
|
-
value: string;
|
|
20
|
-
}>;
|
|
21
|
-
};
|
|
22
|
-
extendsFieldsOptions?: {
|
|
23
|
-
key: string;
|
|
24
|
-
options: {
|
|
25
|
-
value: string;
|
|
26
|
-
label: string;
|
|
27
|
-
}[];
|
|
28
|
-
}[];
|
|
29
|
-
extendsFields: any;
|
|
30
|
-
registerInfoFillMsg?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface GuardInviteLoginInitData extends Partial<InviteContext> {
|
|
33
|
-
canBack?: boolean;
|
|
34
|
-
verifyAccount: string;
|
|
35
|
-
context: any;
|
|
36
|
-
originModule: GuardModuleType;
|
|
37
|
-
originContext: any;
|
|
38
|
-
}
|
|
39
|
-
export interface GuardInviteCompleteInitData extends Partial<GuardInviteLoginInitData> {
|
|
40
|
-
metaData: any;
|
|
41
|
-
}
|
|
42
|
-
export interface GuardInviteIdentityBindInitData extends Partial<GuardInviteLoginInitData> {
|
|
43
|
-
weComConfig: {
|
|
44
|
-
QRConfig: any;
|
|
45
|
-
id: string;
|
|
46
|
-
isDefault: boolean;
|
|
47
|
-
title: string;
|
|
48
|
-
};
|
|
49
|
-
isNew: boolean;
|
|
50
|
-
socialConnections: any[];
|
|
51
|
-
}
|
|
52
|
-
export interface EyGuardProtocolInitData {
|
|
53
|
-
onAcceptHandle: () => void;
|
|
54
|
-
onRejectHandle: () => void;
|
|
55
|
-
mode: 'Guard' | 'Portal';
|
|
56
|
-
}
|
|
57
|
-
export interface EyLoginProps {
|
|
58
|
-
onBeforeLogin?: (loginInfo: any) => void;
|
|
59
|
-
onLoginSuccess?: (data: any, message?: string) => void;
|
|
60
|
-
onLoginFailed?: (code: number, data: any, message?: string) => void;
|
|
61
|
-
}
|
|
62
|
-
export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
|
|
63
|
-
current: {
|
|
64
|
-
onSpin: (arg0: boolean) => void;
|
|
65
|
-
};
|
|
66
|
-
} | undefined) => (context: any) => Promise<void>;
|