@authing/guard-shim-react18 4.5.38-ey.2 → 4.5.39
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 +3117 -3378
- package/dist/typings/src/CompleteInfo/core/completeInfo.d.ts +1 -8
- package/dist/typings/src/CompleteInfo/interface.d.ts +0 -4
- package/dist/typings/src/CompleteInfo/utils.d.ts +0 -7
- package/dist/typings/src/ForgetPassword/core/resetPassword.d.ts +0 -3
- package/dist/typings/src/Guard/config.d.ts +0 -1
- package/dist/typings/src/Guard/module.d.ts +2 -33
- package/dist/typings/src/Login/index.d.ts +0 -4
- package/dist/typings/src/MFA/VerifyCodeInput/index.d.ts +1 -6
- package/dist/typings/src/MFA/businessRequest.d.ts +0 -1
- package/dist/typings/src/MFA/core/email.d.ts +0 -1
- package/dist/typings/src/MFA/core/sms.d.ts +0 -1
- package/dist/typings/src/MFA/core/totp.d.ts +0 -1
- package/dist/typings/src/MFA/mfaMethods/index.d.ts +0 -1
- package/dist/typings/src/SendCode/SendCodeBtn.d.ts +1 -2
- package/dist/typings/src/SendCode/index.d.ts +0 -1
- package/dist/typings/src/Type/application.d.ts +2 -11
- package/dist/typings/src/_utils/config/index.d.ts +0 -1
- package/dist/typings/src/_utils/context.d.ts +1 -151
- package/dist/typings/src/_utils/http.d.ts +2 -2
- package/dist/typings/src/_utils/index.d.ts +0 -2
- package/dist/typings/src/_utils/responseManagement/interface.d.ts +4 -14
- package/package.json +1 -1
- package/dist/typings/src/EY/CheckCaptcha/index.d.ts +0 -1
- package/dist/typings/src/EY/Error/index.d.ts +0 -1
- package/dist/typings/src/EY/ForgetPassword/index.d.ts +0 -2
- package/dist/typings/src/EY/InviteComplete/index.d.ts +0 -1
- package/dist/typings/src/EY/InviteIdentityBind/component/WeComQrcode.d.ts +0 -2
- package/dist/typings/src/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +0 -1
- package/dist/typings/src/EY/InviteIdentityBind/index.d.ts +0 -1
- package/dist/typings/src/EY/InviteLoading/index.d.ts +0 -1
- package/dist/typings/src/EY/Login/components/EyLoginWithWeComQrcode.d.ts +0 -1
- package/dist/typings/src/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +0 -1
- package/dist/typings/src/EY/Login/core/EmailVerify.d.ts +0 -7
- package/dist/typings/src/EY/Login/core/ScanCode.d.ts +0 -7
- package/dist/typings/src/EY/Login/index.d.ts +0 -6
- package/dist/typings/src/EY/PreCheckEmail/index.d.ts +0 -1
- package/dist/typings/src/EY/Protocol/index.d.ts +0 -1
- package/dist/typings/src/EY/components/EmailFormItem.d.ts +0 -2
- package/dist/typings/src/EY/components/GoBack.d.ts +0 -1
- package/dist/typings/src/EY/components/ResetPassword.d.ts +0 -16
- package/dist/typings/src/EY/interface.d.ts +0 -75
- package/dist/typings/src/Login/core/eyWithWeComQrcode.d.ts +0 -1
- package/dist/typings/src/MFA/BindPreCheck/index.d.ts +0 -2
- package/dist/typings/src/MFA/VerifyCodeInput/ey.d.ts +0 -16
- package/dist/typings/src/_utils/signRequestParams.d.ts +0 -8
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { React } from 'shim-react';
|
|
2
2
|
import { CompleteInfoMetaData, CompleteInfoRequest } from '../interface';
|
|
3
|
-
import { Lang } from '../../Type';
|
|
4
3
|
export interface CompleteInfoProps {
|
|
5
4
|
metaData: CompleteInfoMetaData[];
|
|
6
5
|
businessRequest: (data: CompleteInfoRequest) => Promise<void>;
|
|
7
|
-
|
|
8
|
-
extendsFieldsI18n?: {
|
|
9
|
-
[key: string]: Record<Lang, {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
value: string;
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
6
|
+
extendsFieldsI18n?: any;
|
|
14
7
|
}
|
|
15
8
|
export interface FieldMetadata {
|
|
16
9
|
key: string;
|
|
@@ -9,13 +9,6 @@ export declare const extendsFieldsToMetaData: (extendsFields: import("../Type/ap
|
|
|
9
9
|
label: string;
|
|
10
10
|
}[];
|
|
11
11
|
}[]) => CompleteInfoMetaData[];
|
|
12
|
-
export declare const eyFieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
|
|
13
|
-
registerProfile: Record<string, any>;
|
|
14
|
-
udf: {
|
|
15
|
-
key: string;
|
|
16
|
-
value: string;
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
12
|
export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: CompleteInfoRequest['fieldValues']) => {
|
|
20
13
|
registerProfile: Record<string, any>;
|
|
21
14
|
udf: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { React } from 'shim-react';
|
|
2
|
-
import { VerifyLoginMethods } from '../../Type';
|
|
3
2
|
export declare enum InputMethodMap {
|
|
4
3
|
email = "email-code",
|
|
5
4
|
phone = "phone-code"
|
|
@@ -12,8 +11,6 @@ interface ResetPasswordProps {
|
|
|
12
11
|
setPhoneOrEmailText: any;
|
|
13
12
|
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
14
13
|
setUserId: React.Dispatch<React.SetStateAction<string>>;
|
|
15
|
-
supportMethods?: VerifyLoginMethods[];
|
|
16
|
-
firstValidate?: 'phone' | 'email';
|
|
17
14
|
}
|
|
18
15
|
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
19
16
|
export {};
|
|
@@ -4,7 +4,6 @@ import { ForgetPasswordConfig } from '../ForgetPassword/interface';
|
|
|
4
4
|
import { LoginConfig } from '../Login/interface';
|
|
5
5
|
import { RegisterConfig } from '../Register/interface';
|
|
6
6
|
export interface GuardLocalConfig extends RegisterConfig, LoginConfig, ForgetPasswordConfig {
|
|
7
|
-
isInvited?: boolean;
|
|
8
7
|
isSSO?: boolean;
|
|
9
8
|
defaultScenes?: GuardModuleType;
|
|
10
9
|
defaultInitData?: any;
|
|
@@ -21,10 +21,10 @@ export declare enum GuardModuleType {
|
|
|
21
21
|
IDENTITY_BINDING_NO_ASK = "identityBindingNoAsk",
|
|
22
22
|
SELF_UNLOCK = "selfUnlock",
|
|
23
23
|
FLOW_SELECT_ACCOUNT = "flowSelectAccount",
|
|
24
|
-
SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",
|
|
25
24
|
/** 多租户门户选择页 */
|
|
26
25
|
TENANT_PORTAL = "tenant-portal",
|
|
27
26
|
New_SUBMIT_SUCCESS = "newSubmitSuccess",
|
|
27
|
+
SELECT_ACCOUNT_2_LOGIN = "selectAccout2Login",
|
|
28
28
|
RESET_ACCOUNT_NAME = "resetAccountName",
|
|
29
29
|
APPLY_INVITATION = "applyInvitation",
|
|
30
30
|
MESSAGE = "message",
|
|
@@ -33,38 +33,7 @@ export declare enum GuardModuleType {
|
|
|
33
33
|
INVITE_EXPIRE = "inviteExpire",
|
|
34
34
|
INVITE_PAGE_EXPIRE = "invitePageExpire",
|
|
35
35
|
INVITE_SUCCESS = "inviteSuccess",
|
|
36
|
-
RESET_PASSWORD = "resetPassword"
|
|
37
|
-
/**
|
|
38
|
-
* pre check email
|
|
39
|
-
*/
|
|
40
|
-
EY_PRE_CHECK_EMAIL = "ey_pre_check_email",
|
|
41
|
-
/**
|
|
42
|
-
* protocols
|
|
43
|
-
*/
|
|
44
|
-
EY_PROTOCOLS = "ey_protocols",
|
|
45
|
-
/**
|
|
46
|
-
* check captcha
|
|
47
|
-
*/
|
|
48
|
-
EY_CHECK_CAPTCHA = "ey_check_captcha",
|
|
49
|
-
/**
|
|
50
|
-
* invite expire
|
|
51
|
-
*/
|
|
52
|
-
EY_INVITE_EXPIRE = "ey_invite_expire",
|
|
53
|
-
/**
|
|
54
|
-
* invite loading
|
|
55
|
-
*/
|
|
56
|
-
EY_INVITE_LOADING = "ey_invite_loading",
|
|
57
|
-
/**
|
|
58
|
-
* identity bind
|
|
59
|
-
*/
|
|
60
|
-
EY_IDENTITY_BIND = "ey_identity_bind",
|
|
61
|
-
/**
|
|
62
|
-
* invite complete
|
|
63
|
-
*/
|
|
64
|
-
EY_INVITE_COMPLETE = "ey_invite_complete"
|
|
65
|
-
/**
|
|
66
|
-
* invite login
|
|
67
|
-
*/
|
|
36
|
+
RESET_PASSWORD = "resetPassword"
|
|
68
37
|
}
|
|
69
38
|
export interface GuardModuleAction {
|
|
70
39
|
action: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { React } from 'shim-react';
|
|
2
|
-
import { SlotProps } from 'input-otp';
|
|
3
2
|
import './style.less';
|
|
4
3
|
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
length?: number;
|
|
@@ -8,12 +7,8 @@ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
7
|
onEenter?: Function;
|
|
9
8
|
showDivider?: boolean;
|
|
10
9
|
onChange?: any;
|
|
11
|
-
value?: string
|
|
10
|
+
value?: Array<number | string>;
|
|
12
11
|
onFinish?: any;
|
|
13
|
-
ResentBtnSort?: () => JSX.Element;
|
|
14
12
|
}
|
|
15
|
-
export declare const SoltInput: (solt: SlotProps & {
|
|
16
|
-
style: any;
|
|
17
|
-
}) => JSX.Element;
|
|
18
13
|
export declare const VerifyCodeInput: React.FC<VerifyCodeInputProps>;
|
|
19
14
|
export {};
|
|
@@ -47,7 +47,6 @@ interface GetPasskeyVerifyChallengeParams {
|
|
|
47
47
|
mfaToken: string;
|
|
48
48
|
}
|
|
49
49
|
export declare const VerifyEmail: (content: VerifyEmailContent) => Promise<AuthingGuardResponse<any>>;
|
|
50
|
-
export declare const checkEmailOrSms: (content: any) => Promise<AuthingGuardResponse<any>>;
|
|
51
50
|
export declare const VerifySms: (content: VerifySmsContent) => Promise<AuthingGuardResponse<any>>;
|
|
52
51
|
export declare const VerifyTotp: (content: VerifyTotpContent) => Promise<AuthingGuardResponse<any>>;
|
|
53
52
|
export declare const VerifyFace: (content: VerifyFaceContent) => Promise<AuthingGuardResponse<any>>;
|
|
@@ -6,6 +6,5 @@ export interface SendCodeProps extends ButtonProps {
|
|
|
6
6
|
btnRef?: React.RefObject<HTMLButtonElement>;
|
|
7
7
|
setSent?: (value: boolean) => void;
|
|
8
8
|
sendDesc?: string;
|
|
9
|
-
timerTime?: number;
|
|
10
9
|
}
|
|
11
|
-
export declare const SendCodeBtn: React.
|
|
10
|
+
export declare const SendCodeBtn: React.FC<SendCodeProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare type Lang = 'zh-CN' | 'en-US';
|
|
1
|
+
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
|
|
2
2
|
import { MFAType } from '../MFA/interface';
|
|
3
3
|
import { PasswordStrength } from '../_utils';
|
|
4
4
|
export * from 'authing-js-sdk';
|
|
@@ -17,12 +17,7 @@ export declare enum LoginMethods {
|
|
|
17
17
|
WECHATWORKAGENCYQRCONNECT = "wechatwork-agency-qrcode",
|
|
18
18
|
DingTalkQrcode = "dingtalk-qrcode",
|
|
19
19
|
Passkey = "passkey",
|
|
20
|
-
ZJZWFWQrcode = "zjzwfw-qrcode"
|
|
21
|
-
/**
|
|
22
|
-
* ey
|
|
23
|
-
*/
|
|
24
|
-
EYWechatworkCorpQrconnect = "wechatwork-service-provider-qrconnect",
|
|
25
|
-
WechatworkCorpQrconnectNew = "wechatwork-service-provider-qrconnect-v2"
|
|
20
|
+
ZJZWFWQrcode = "zjzwfw-qrcode"
|
|
26
21
|
}
|
|
27
22
|
export declare enum OIDCConnectionMode {
|
|
28
23
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -367,10 +362,6 @@ export interface ApplicationConfig {
|
|
|
367
362
|
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
368
363
|
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
369
364
|
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
370
|
-
/**
|
|
371
|
-
* 是否为官方应用
|
|
372
|
-
*/
|
|
373
|
-
isOfficial?: boolean;
|
|
374
365
|
/** 加入租户校验企业邮箱 */
|
|
375
366
|
enableVerifyDomainInJoinTenant: boolean;
|
|
376
367
|
passkeyEnabled: boolean;
|
|
@@ -19,7 +19,6 @@ export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, co
|
|
|
19
19
|
export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string, config?: GuardLocalConfig, httpClient?: GuardHttp, setError?: any) => {
|
|
20
20
|
finallyConfig: {
|
|
21
21
|
host: string;
|
|
22
|
-
isInvited?: boolean | undefined;
|
|
23
22
|
isSSO?: boolean | undefined;
|
|
24
23
|
defaultScenes?: import("../..").GuardModuleType | undefined;
|
|
25
24
|
defaultInitData?: any;
|
|
@@ -51,8 +51,6 @@ export interface IGuardContext {
|
|
|
51
51
|
tenantInstance?: MultipleTenant;
|
|
52
52
|
/** 特殊浏览器,身份源无法弹窗,非托管模式不显示身份源图标 */
|
|
53
53
|
isSpecialBrowser: boolean;
|
|
54
|
-
/** 判断是否是国外的用户池 */
|
|
55
|
-
isForeignUserpool: boolean;
|
|
56
54
|
}
|
|
57
55
|
export declare const createGuardXContext: () => {
|
|
58
56
|
Provider: React.FC<{
|
|
@@ -92,96 +90,7 @@ export declare const useGuardModule: () => {
|
|
|
92
90
|
backModule: (() => void) | undefined;
|
|
93
91
|
currentModule: ModuleState;
|
|
94
92
|
};
|
|
95
|
-
export declare const useGuardFinallyConfig: () =>
|
|
96
|
-
title: string;
|
|
97
|
-
isInvited?: boolean | undefined;
|
|
98
|
-
isSSO?: boolean | undefined;
|
|
99
|
-
defaultScenes?: GuardModuleType | undefined;
|
|
100
|
-
defaultInitData?: any;
|
|
101
|
-
showLoading?: boolean | undefined;
|
|
102
|
-
loadingComponent?: React.ReactNode;
|
|
103
|
-
openEventsMapping?: boolean | undefined;
|
|
104
|
-
disableRegister?: boolean | undefined;
|
|
105
|
-
registerMethods?: string[] | undefined;
|
|
106
|
-
defaultRegisterMethod?: string | undefined;
|
|
107
|
-
publicKey?: string | undefined;
|
|
108
|
-
agreementEnabled?: boolean | undefined;
|
|
109
|
-
agreements?: import("../Type").Agreement[] | undefined;
|
|
110
|
-
registerContext?: any;
|
|
111
|
-
logo?: string | undefined;
|
|
112
|
-
lang?: string | undefined;
|
|
113
|
-
langRange?: Lang[] | undefined;
|
|
114
|
-
host: string;
|
|
115
|
-
isHost?: boolean | undefined;
|
|
116
|
-
mode: import("../Type").GuardMode;
|
|
117
|
-
clickCloseable: boolean;
|
|
118
|
-
escCloseable: boolean;
|
|
119
|
-
userpool?: string | undefined;
|
|
120
|
-
contentCss?: string | undefined;
|
|
121
|
-
target?: string | HTMLElement | undefined;
|
|
122
|
-
style?: React.CSSProperties | undefined;
|
|
123
|
-
__internalRequest__?: boolean | undefined;
|
|
124
|
-
__singleComponent__?: boolean | undefined; /**
|
|
125
|
-
* 切换多账号 isMultipleAccount 状态
|
|
126
|
-
*/
|
|
127
|
-
__unAuthFlow__?: boolean | undefined;
|
|
128
|
-
autoRegister?: boolean | undefined;
|
|
129
|
-
disableResetPwd?: boolean | undefined;
|
|
130
|
-
defaultLoginMethod?: import("../Type").LoginMethods | undefined;
|
|
131
|
-
loginMethods?: import("../Type").LoginMethods[] | undefined;
|
|
132
|
-
passwordLoginMethods?: string[] | undefined;
|
|
133
|
-
socialConnections?: import("../Type").SocialConnectionProvider[] | undefined;
|
|
134
|
-
socialConnectionsBtnShape?: "button" | "default" | "icon" | undefined;
|
|
135
|
-
enterpriseConnections?: string[] | undefined;
|
|
136
|
-
qrCodeScanOptions?: {
|
|
137
|
-
extIdpConnId?: string | undefined;
|
|
138
|
-
autoExchangeUserInfo?: boolean | undefined;
|
|
139
|
-
size?: {
|
|
140
|
-
height: number;
|
|
141
|
-
width: number;
|
|
142
|
-
} | undefined;
|
|
143
|
-
containerSize?: {
|
|
144
|
-
height: number;
|
|
145
|
-
width: number;
|
|
146
|
-
} | undefined;
|
|
147
|
-
interval?: number | undefined;
|
|
148
|
-
onStart?: ((timer: any) => any) | undefined;
|
|
149
|
-
onResult?: ((data: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeStatus) => any) | undefined;
|
|
150
|
-
onScanned?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo) => any) | undefined;
|
|
151
|
-
onSuccess?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo, ticket: string) => any) | undefined;
|
|
152
|
-
onCancel?: (() => any) | undefined;
|
|
153
|
-
onError?: ((message: string) => any) | undefined;
|
|
154
|
-
onExpired?: (() => any) | undefined;
|
|
155
|
-
onCodeShow?: ((random: string, url: string) => any) | undefined;
|
|
156
|
-
onCodeLoaded?: ((random: string, url: string) => any) | undefined;
|
|
157
|
-
onCodeLoadFailed?: ((message: string) => any) | undefined;
|
|
158
|
-
onCodeDestroyed?: ((random: string) => any) | undefined;
|
|
159
|
-
onRetry?: (() => any) | undefined;
|
|
160
|
-
onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
|
|
161
|
-
tips?: {
|
|
162
|
-
title?: string | undefined;
|
|
163
|
-
scanned?: string | undefined;
|
|
164
|
-
succeed?: string | undefined;
|
|
165
|
-
canceled?: string | undefined;
|
|
166
|
-
expired?: string | undefined;
|
|
167
|
-
retry?: string | undefined;
|
|
168
|
-
failed?: string | undefined;
|
|
169
|
-
middleTitle?: string | undefined;
|
|
170
|
-
referText?: string | undefined;
|
|
171
|
-
} | undefined;
|
|
172
|
-
onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
|
|
173
|
-
customData?: {
|
|
174
|
-
[x: string]: any;
|
|
175
|
-
} | undefined;
|
|
176
|
-
context?: {
|
|
177
|
-
[x: string]: any;
|
|
178
|
-
} | undefined;
|
|
179
|
-
withCustomData?: boolean | undefined;
|
|
180
|
-
} | undefined;
|
|
181
|
-
_closeLoopCheckQrcode?: boolean | undefined;
|
|
182
|
-
loginHint?: string | undefined;
|
|
183
|
-
goBack?: (() => void) | null | undefined;
|
|
184
|
-
};
|
|
93
|
+
export declare const useGuardFinallyConfig: () => GuardLocalConfig;
|
|
185
94
|
export declare const useGuardContextLoaded: () => boolean;
|
|
186
95
|
export declare const useGuardIsAuthFlow: () => boolean;
|
|
187
96
|
export declare const useGuardPageConfig: () => Partial<GuardPageConfig>;
|
|
@@ -245,63 +154,6 @@ export declare const useGuardAccountSelectInstance: () => {
|
|
|
245
154
|
*/
|
|
246
155
|
clearBackFillData?: (() => void) | undefined;
|
|
247
156
|
};
|
|
248
|
-
export declare const useGuardMultipleInstance: () => {
|
|
249
|
-
/**
|
|
250
|
-
* 多账号相关
|
|
251
|
-
*/
|
|
252
|
-
isMultipleAccount: boolean;
|
|
253
|
-
/**
|
|
254
|
-
* when: 多账号页面跳转进入登录页面
|
|
255
|
-
* 携带的回填数据信息
|
|
256
|
-
*/
|
|
257
|
-
multipleAccountData?: BackFillMultipleState | undefined;
|
|
258
|
-
/**
|
|
259
|
-
* 多账号 store 实例
|
|
260
|
-
*/
|
|
261
|
-
instance?: {
|
|
262
|
-
initStore: (appId: string, options: {
|
|
263
|
-
serverSideLoginMethods: import("../Guard/core/hooks/useMultipleAccounts").LoginWay[];
|
|
264
|
-
isInternationSms: boolean;
|
|
265
|
-
}) => void;
|
|
266
|
-
setLoginWay: (tab: "input" | "qrcode", way: import("../Guard/core/hooks/useMultipleAccounts").LoginWay, id?: string | undefined, internation?: {
|
|
267
|
-
phoneCountryCode: string;
|
|
268
|
-
areaCode: string;
|
|
269
|
-
} | undefined) => void;
|
|
270
|
-
setUserInfo: (user: Omit<import("../Guard/core/hooks/useMultipleAccounts").User & {
|
|
271
|
-
id: string;
|
|
272
|
-
loginAccount?: string | undefined;
|
|
273
|
-
usertype?: string | undefined;
|
|
274
|
-
}, "way" | "tab" | "phoneCountryCode">) => void;
|
|
275
|
-
setLoginWayByHttpData: (account: string, data: {
|
|
276
|
-
username?: string | undefined;
|
|
277
|
-
phone?: string | undefined;
|
|
278
|
-
email?: string | undefined;
|
|
279
|
-
}) => void;
|
|
280
|
-
setLoginWayByLDAPData: (account: string, data: {
|
|
281
|
-
name?: string | undefined;
|
|
282
|
-
phone?: string | undefined;
|
|
283
|
-
email?: string | undefined;
|
|
284
|
-
}) => void;
|
|
285
|
-
getMemoUser: (excludeWays?: import("../Guard/core/hooks/useMultipleAccounts").LoginWay[]) => import("../Login/multipleAccounts/panel").SelectOptions[];
|
|
286
|
-
getMemoSingleUser: (id: string) => {
|
|
287
|
-
way: import("../Guard/core/hooks/useMultipleAccounts").LoginWay;
|
|
288
|
-
account: string;
|
|
289
|
-
} | undefined;
|
|
290
|
-
delUserById: (id: string) => string;
|
|
291
|
-
getMemberState: () => boolean;
|
|
292
|
-
getFirstBackFillData: () => BackFillMultipleState | undefined;
|
|
293
|
-
getOriginAccount: () => string;
|
|
294
|
-
getOriginWay: () => string;
|
|
295
|
-
} | undefined;
|
|
296
|
-
/**
|
|
297
|
-
* 切换多账号 isMultipleAccount 状态
|
|
298
|
-
*/
|
|
299
|
-
referMultipleState?: ((type: 'login' | 'multiple') => void) | undefined;
|
|
300
|
-
/**
|
|
301
|
-
* 清空回填数据
|
|
302
|
-
*/
|
|
303
|
-
clearBackFillData?: (() => void) | undefined;
|
|
304
|
-
};
|
|
305
157
|
export declare const useGuardPhoneRegex: () => RegExp | null;
|
|
306
158
|
/**
|
|
307
159
|
* 默认语言
|
|
@@ -311,7 +163,5 @@ export declare const useGuardDefaultLanguage: () => Lang;
|
|
|
311
163
|
export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
|
|
312
164
|
/** 当前人机验证策略 */
|
|
313
165
|
export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
|
|
314
|
-
/** 当前用户池是否是国外用户池 */
|
|
315
|
-
export declare const useIsForeignUserpool: () => boolean;
|
|
316
166
|
/** 当前应用是否开启人机验证策略 */
|
|
317
167
|
export declare const useCaptchaCheck: (sence: 'login' | 'register') => boolean;
|
|
@@ -19,7 +19,7 @@ export declare const requestClient: {
|
|
|
19
19
|
setTenantId(tenantId: string): void;
|
|
20
20
|
};
|
|
21
21
|
export interface AuthingResponse<T = any> {
|
|
22
|
-
code
|
|
22
|
+
code: number;
|
|
23
23
|
statusCode?: number;
|
|
24
24
|
apiCode?: number;
|
|
25
25
|
data?: T;
|
|
@@ -28,6 +28,6 @@ export interface AuthingResponse<T = any> {
|
|
|
28
28
|
flowHandle?: string;
|
|
29
29
|
}
|
|
30
30
|
export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
|
|
31
|
-
onGuardHandling?: (
|
|
31
|
+
onGuardHandling?: () => CodeAction;
|
|
32
32
|
isFlowEnd?: boolean;
|
|
33
33
|
}
|
|
@@ -57,10 +57,8 @@ export declare const getPasswordValidateRules: (strength?: PasswordStrength, cus
|
|
|
57
57
|
export declare const sleep: (delay: number) => Promise<unknown>;
|
|
58
58
|
export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean) => boolean;
|
|
59
59
|
export declare const transformMethod: (method: RegisterMethods | string) => string;
|
|
60
|
-
export declare const transformSortMethod: (method: RegisterSortMethods | string) => string;
|
|
61
60
|
export declare const mailDesensitization: (mail: string) => string;
|
|
62
61
|
export declare const phoneDesensitization: (phone: string) => string;
|
|
63
|
-
export declare const getHundreds: (num: number) => number;
|
|
64
62
|
export declare const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
65
63
|
export declare const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
66
64
|
export declare const getLoginTypePipe: (publicConfig: ApplicationConfig, registerMethod: RegisterMethods) => {
|
|
@@ -12,28 +12,18 @@ export declare enum ApiCode {
|
|
|
12
12
|
MFA = 1635,
|
|
13
13
|
ABORT_FLOW = 1699,
|
|
14
14
|
COMPLETE_INFO = 1642,
|
|
15
|
-
UNLOCK = 1643,
|
|
16
15
|
TENANT_COMPLETE_INFO = 1645,
|
|
16
|
+
UNLOCK = 1643,
|
|
17
17
|
FLOW_END = 1600,
|
|
18
18
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
19
19
|
FORCED_PASSWORD_RESET = 2058,
|
|
20
20
|
UNSAFE_PASSWORD_TIP = 2061,
|
|
21
21
|
UNSAFE_PASSWORD_RESET = 2071,
|
|
22
22
|
FLOW_SELECT_ACCOUNT = 2921,
|
|
23
|
-
SELECT_ACCOUNT_2_LOGIN = 2930,
|
|
24
23
|
TENANT_PORTAL = 1644,
|
|
24
|
+
SELECT_ACCOUNT_2_LOGIN = 2930,
|
|
25
25
|
RESET_ACCOUNT_NAME = 1108,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*/
|
|
29
|
-
EY_PROTOCOLS = 1008,
|
|
30
|
-
/**
|
|
31
|
-
* ey 邀请码过期
|
|
32
|
-
*/
|
|
33
|
-
EY_INVITE_EXPIRE = 4032,
|
|
34
|
-
/**
|
|
35
|
-
* 链接超时
|
|
36
|
-
*/
|
|
37
|
-
EY_LINK_EXPIRE = 4033
|
|
26
|
+
INVITE_EXPIRE = 4032,
|
|
27
|
+
INVITE_PAGE_EXPIRE = 4033
|
|
38
28
|
}
|
|
39
29
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyGuardCheckCaptchaView: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyGuardInviteExpireView: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyGuardInviteCompleteView: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WeComQrcodeNew: (props: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyGuardIviteIdentityBindView: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyGuardInviteLoadingView: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyLoginWithWeComQrcode: (props: any) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyLoginWithWeComQrcodeNew: (props: any) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { React } from 'shim-react';
|
|
2
|
-
import { EyLoginProps } from '../../interface';
|
|
3
|
-
interface EmailVerifySceneProps extends EyLoginProps {
|
|
4
|
-
scene: 'password' | 'verifyCode';
|
|
5
|
-
}
|
|
6
|
-
export declare const EmailVerifyScene: React.FC<EmailVerifySceneProps>;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyGuardPreCheckEmailView: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EyGuardProtocolView: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GoBack: (props: any) => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { React } from 'shim-react';
|
|
2
|
-
export declare enum InputMethodMap {
|
|
3
|
-
email = "email-code",
|
|
4
|
-
phone = "phone-code"
|
|
5
|
-
}
|
|
6
|
-
interface ResetPasswordProps {
|
|
7
|
-
publicConfig: any;
|
|
8
|
-
setControlShow: any;
|
|
9
|
-
setPolicyStrength: any;
|
|
10
|
-
setCustomPasswordStrength: any;
|
|
11
|
-
setPhoneOrEmailText: any;
|
|
12
|
-
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
-
setUserId: React.Dispatch<React.SetStateAction<string>>;
|
|
14
|
-
}
|
|
15
|
-
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
16
|
-
export {};
|