@authing/react-ui-components 4.4.4-ey.15 → 4.4.4-ey.17
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/asset-manifest.json +27 -0
- package/dist/index.html +1 -0
- package/dist/static/css/2.372ca0b5.chunk.css +3 -0
- package/dist/static/css/2.372ca0b5.chunk.css.map +1 -0
- package/dist/static/css/main.f2fb95cb.chunk.css +2 -0
- package/dist/static/css/main.f2fb95cb.chunk.css.map +1 -0
- package/dist/static/js/2.9cb7ece0.chunk.js +3 -0
- package/dist/static/js/2.9cb7ece0.chunk.js.LICENSE.txt +124 -0
- package/dist/static/js/2.9cb7ece0.chunk.js.map +1 -0
- package/dist/static/js/3.90a5a0f0.chunk.js +2 -0
- package/dist/static/js/3.90a5a0f0.chunk.js.map +1 -0
- package/dist/static/js/main.65d68920.chunk.js +2 -0
- package/dist/static/js/main.65d68920.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.4a8f342d.js +2 -0
- package/dist/static/js/runtime-main.4a8f342d.js.map +1 -0
- package/dist/static/media/loading.3cf0104f.svg +32 -0
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.LICENSE.txt +3 -9
- package/package.json +1 -1
- package/types/AccountMerge/UserRadio.d.ts +5 -0
- package/types/AccountMerge/index.d.ts +3 -0
- package/types/AccountMerge/interface.d.ts +27 -0
- package/types/AccountMerge/utils.d.ts +3 -0
- package/types/ChangePassword/businessRequest.d.ts +1 -0
- package/types/ChangePassword/core/SendPhoneCode.d.ts +6 -0
- package/types/CompleteInfo/core/completeInfo.d.ts +0 -8
- package/types/CompleteInfo/core/components/TreeSelect.d.ts +11 -0
- package/types/CompleteInfo/index.d.ts +1 -0
- package/types/CompleteInfo/interface.d.ts +8 -8
- package/types/CompleteInfo/utils.d.ts +0 -13
- package/types/ForgetPassword/core/resetPassword.d.ts +0 -3
- package/types/Guard/config.d.ts +0 -1
- package/types/Guard/module.d.ts +3 -28
- package/types/Login/index.d.ts +0 -4
- package/types/MFA/VerifyCodeInput/index.d.ts +0 -1
- package/types/Register/utils.d.ts +1 -1
- package/types/SendCode/SendCodeBtn.d.ts +2 -2
- package/types/Type/application.d.ts +4 -13
- package/types/Type/index.d.ts +1 -1
- package/types/_utils/config/index.d.ts +0 -1
- package/types/_utils/context.d.ts +1 -87
- package/types/_utils/http.d.ts +1 -1
- package/types/_utils/index.d.ts +2 -2
- package/types/_utils/responseManagement/interface.d.ts +2 -13
- package/types/version/version.d.ts +1 -1
- package/types/EY/CheckCaptcha/index.d.ts +0 -2
- package/types/EY/Error/index.d.ts +0 -2
- package/types/EY/ForgetPassword/index.d.ts +0 -2
- package/types/EY/InviteComplete/index.d.ts +0 -2
- package/types/EY/InviteIdentityBind/component/WeComQrcode.d.ts +0 -2
- package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +0 -2
- package/types/EY/InviteIdentityBind/index.d.ts +0 -2
- package/types/EY/InviteLoading/index.d.ts +0 -2
- package/types/EY/Login/components/EyLoginWithWeComQrcode.d.ts +0 -2
- package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +0 -2
- package/types/EY/Login/core/EmailVerify.d.ts +0 -7
- package/types/EY/Login/core/ScanCode.d.ts +0 -7
- package/types/EY/Login/index.d.ts +0 -7
- package/types/EY/PreCheckEmail/index.d.ts +0 -2
- package/types/EY/Protocol/index.d.ts +0 -2
- package/types/EY/components/EmailFormItem.d.ts +0 -2
- package/types/EY/components/GoBack.d.ts +0 -2
- package/types/EY/components/ResetPassword.d.ts +0 -16
- package/types/EY/interface.d.ts +0 -75
- package/types/Login/core/withWeComQrcode.d.ts +0 -2
- package/types/MFA/VerifyCodeInput/ey.d.ts +0 -15
- package/types/_utils/signRequestParams.d.ts +0 -8
- /package/{lib → dist}/static/media/ey_loading.24d3e4d0.gif +0 -0
|
@@ -5,15 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/*!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/*!
|
|
14
|
-
Copyright (c) 2018 Jed Watson.
|
|
15
|
-
Licensed under the MIT License (MIT), see
|
|
16
|
-
http://jedwatson.github.io/classnames
|
|
8
|
+
Copyright (c) 2018 Jed Watson.
|
|
9
|
+
Licensed under the MIT License (MIT), see
|
|
10
|
+
http://jedwatson.github.io/classnames
|
|
17
11
|
*/
|
|
18
12
|
|
|
19
13
|
/**
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface BriefUserInfo {
|
|
2
|
+
displayName: string;
|
|
3
|
+
avatar: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
email: string;
|
|
6
|
+
username: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GuardAccountMergeInitData {
|
|
10
|
+
currentUserInfo: BriefUserInfo;
|
|
11
|
+
existingUserInfo: BriefUserInfo;
|
|
12
|
+
mergeToken?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface UserRadioProps {
|
|
15
|
+
currentUserInfo: BriefUserInfo;
|
|
16
|
+
existingUserInfo: BriefUserInfo;
|
|
17
|
+
onChange?: (value: any) => void;
|
|
18
|
+
value?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface UserRadioItemProps extends BriefUserInfo {
|
|
21
|
+
value: boolean;
|
|
22
|
+
selected: boolean;
|
|
23
|
+
onClick: (value: boolean) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare enum AuthFlowAction {
|
|
26
|
+
MERGE = "confirm-account-merge"
|
|
27
|
+
}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import React from '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
|
-
submitText?: string;
|
|
8
|
-
extendsFieldsI18n?: {
|
|
9
|
-
[key: string]: Record<Lang, {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
value: string;
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
6
|
}
|
|
15
7
|
export interface FieldMetadata {
|
|
16
8
|
key: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type OptionType = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
children: OptionType[];
|
|
6
|
+
};
|
|
7
|
+
interface TreeSelectProps {
|
|
8
|
+
options: OptionType[];
|
|
9
|
+
}
|
|
10
|
+
declare const TreeSelect: React.FC<TreeSelectProps>;
|
|
11
|
+
export default TreeSelect;
|
|
@@ -7,19 +7,21 @@ export interface CompleteInfoEvents extends IG2Events {
|
|
|
7
7
|
onRegisterInfoCompleted?: (user: User, udfs: {
|
|
8
8
|
key: any;
|
|
9
9
|
value: any;
|
|
10
|
-
}[], authClient: AuthenticationClient
|
|
10
|
+
}[], authClient: AuthenticationClient, opts?: {
|
|
11
|
+
phone?: string;
|
|
12
|
+
canMergeUser?: boolean;
|
|
13
|
+
}) => void;
|
|
11
14
|
onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
|
|
12
15
|
key: any;
|
|
13
16
|
value: any;
|
|
14
17
|
}[], authClient: AuthenticationClient) => void;
|
|
18
|
+
onAccountMergeCompleteInfo?: (user: User) => void;
|
|
15
19
|
}
|
|
16
20
|
export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
|
|
17
21
|
config: Partial<CompleteInfoConfig>;
|
|
18
22
|
}
|
|
19
23
|
export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
|
|
20
24
|
config: CompleteInfoConfig;
|
|
21
|
-
initData: any;
|
|
22
|
-
onLogin?: any;
|
|
23
25
|
}
|
|
24
26
|
export declare type ExtendsFieldType = 'user' | 'internal';
|
|
25
27
|
export interface ExtendsField {
|
|
@@ -55,6 +57,7 @@ export interface CompleteInfoMetaData {
|
|
|
55
57
|
name: string;
|
|
56
58
|
required: boolean;
|
|
57
59
|
validateRules: CompleteInfoRule[];
|
|
60
|
+
checkUnique?: boolean;
|
|
58
61
|
options?: CompleteInfoSelectOption[];
|
|
59
62
|
}
|
|
60
63
|
export declare enum CompleteInfoBaseControls {
|
|
@@ -73,7 +76,8 @@ export declare enum CompleteInfoExtendsControls {
|
|
|
73
76
|
STRING = "string",
|
|
74
77
|
TEXT = "text",
|
|
75
78
|
GENDER = "gender",
|
|
76
|
-
COUNTRY = "country"
|
|
79
|
+
COUNTRY = "country",
|
|
80
|
+
TREE = "tree"
|
|
77
81
|
}
|
|
78
82
|
export interface CompleteInfoInitData {
|
|
79
83
|
skip: boolean;
|
|
@@ -93,10 +97,6 @@ export interface CompleteInfoRequest {
|
|
|
93
97
|
name: string;
|
|
94
98
|
value: string;
|
|
95
99
|
code?: string;
|
|
96
|
-
/**
|
|
97
|
-
* 国际手机区号
|
|
98
|
-
*/
|
|
99
|
-
phoneCountryCode?: string;
|
|
100
100
|
}[];
|
|
101
101
|
}
|
|
102
102
|
export declare enum OmitCompleteInfo {
|
|
@@ -9,23 +9,10 @@ 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?: {
|
|
13
|
-
name: string;
|
|
14
|
-
value: string;
|
|
15
|
-
code?: string | undefined;
|
|
16
|
-
phoneCountryCode?: string | undefined;
|
|
17
|
-
}[] | undefined) => {
|
|
18
|
-
registerProfile: Record<string, any>;
|
|
19
|
-
udf: {
|
|
20
|
-
key: string;
|
|
21
|
-
value: string;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
12
|
export declare const fieldValuesToRegisterProfile: (extendsFields: ApplicationConfig['extendsFields'], fieldValues?: {
|
|
25
13
|
name: string;
|
|
26
14
|
value: string;
|
|
27
15
|
code?: string | undefined;
|
|
28
|
-
phoneCountryCode?: string | undefined;
|
|
29
16
|
}[] | undefined) => {
|
|
30
17
|
registerProfile: Record<string, any>;
|
|
31
18
|
udf: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from '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 {};
|
package/types/Guard/config.d.ts
CHANGED
|
@@ -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;
|
package/types/Guard/module.d.ts
CHANGED
|
@@ -26,34 +26,9 @@ export declare enum GuardModuleType {
|
|
|
26
26
|
TENANT_PORTAL = "tenant-portal",
|
|
27
27
|
New_SUBMIT_SUCCESS = "newSubmitSuccess",
|
|
28
28
|
RESET_ACCOUNT_NAME = "resetAccountName",
|
|
29
|
-
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
EY_PRE_CHECK_EMAIL = "ey_pre_check_email",
|
|
33
|
-
/**
|
|
34
|
-
* protocols
|
|
35
|
-
*/
|
|
36
|
-
EY_PROTOCOLS = "ey_protocols",
|
|
37
|
-
/**
|
|
38
|
-
* check captcha
|
|
39
|
-
*/
|
|
40
|
-
EY_CHECK_CAPTCHA = "ey_check_captcha",
|
|
41
|
-
/**
|
|
42
|
-
* invite expire
|
|
43
|
-
*/
|
|
44
|
-
EY_INVITE_EXPIRE = "ey_invite_expire",
|
|
45
|
-
/**
|
|
46
|
-
* invite loading
|
|
47
|
-
*/
|
|
48
|
-
EY_INVITE_LOADING = "ey_invite_loading",
|
|
49
|
-
/**
|
|
50
|
-
* identity bind
|
|
51
|
-
*/
|
|
52
|
-
EY_IDENTITY_BIND = "ey_identity_bind",
|
|
53
|
-
/**
|
|
54
|
-
* invite complete
|
|
55
|
-
*/
|
|
56
|
-
EY_INVITE_COMPLETE = "ey_invite_complete"
|
|
29
|
+
/** 高教社特殊节点 */
|
|
30
|
+
CUSTOM_COMPLETE_INFO = "customCompleteInfo",
|
|
31
|
+
ACCOUNT_MERGE = "accountMerge"
|
|
57
32
|
}
|
|
58
33
|
export interface GuardModuleAction {
|
|
59
34
|
action: string;
|
package/types/Login/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
onChange?: any;
|
|
10
10
|
value?: Array<number | string>;
|
|
11
11
|
onFinish?: any;
|
|
12
|
-
ResentBtnSort?: () => JSX.Element;
|
|
13
12
|
}
|
|
14
13
|
export declare const VerifyCodeInput: FC<VerifyCodeInputProps>;
|
|
15
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
1
|
+
export declare const useIsChangeComplete: (currentMode: 'phone' | 'email' | string) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import './style.less';
|
|
3
3
|
import { ButtonProps } from 'antd/lib/button';
|
|
4
4
|
export interface SendCodeProps extends ButtonProps {
|
|
@@ -7,4 +7,4 @@ export interface SendCodeProps extends ButtonProps {
|
|
|
7
7
|
setSent?: (value: boolean) => void;
|
|
8
8
|
sendDesc?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const SendCodeBtn:
|
|
10
|
+
export declare const SendCodeBtn: FC<SendCodeProps>;
|
|
@@ -10,9 +10,7 @@ export declare enum LoginMethods {
|
|
|
10
10
|
WxMinQr = "wechat-miniprogram-qrcode",
|
|
11
11
|
AD = "ad",
|
|
12
12
|
WechatMpQrcode = "wechatmp-qrcode",
|
|
13
|
-
AuthingOtpPush = "authing-otp-push"
|
|
14
|
-
WechatworkCorpQrconnect = "wechatwork-service-provider-qrconnect",
|
|
15
|
-
WechatworkCorpQrconnectNew = "wechatwork-service-provider-qrconnect-v2"
|
|
13
|
+
AuthingOtpPush = "authing-otp-push"
|
|
16
14
|
}
|
|
17
15
|
export declare enum OIDCConnectionMode {
|
|
18
16
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -116,12 +114,6 @@ export interface QrCodeItem {
|
|
|
116
114
|
id: string;
|
|
117
115
|
title: string;
|
|
118
116
|
isDefault?: boolean;
|
|
119
|
-
QRConfig?: {
|
|
120
|
-
corpId: string;
|
|
121
|
-
agentId: string;
|
|
122
|
-
redirectUrl: string;
|
|
123
|
-
identifier: string;
|
|
124
|
-
};
|
|
125
117
|
}
|
|
126
118
|
export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
|
|
127
119
|
export interface OidcClientMetadata {
|
|
@@ -299,6 +291,9 @@ export interface ApplicationConfig {
|
|
|
299
291
|
verifyCodeLength: number;
|
|
300
292
|
websocket: string;
|
|
301
293
|
welcomeMessage: any;
|
|
294
|
+
userPortal?: {
|
|
295
|
+
mergeAccount?: boolean;
|
|
296
|
+
};
|
|
302
297
|
skipComplateFileds: boolean;
|
|
303
298
|
selfUnlockStrategy: 'captcha' | 'password-captcha';
|
|
304
299
|
defaultLanguageConfig: Lang;
|
|
@@ -343,8 +338,4 @@ export interface ApplicationConfig {
|
|
|
343
338
|
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
344
339
|
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
345
340
|
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
346
|
-
/**
|
|
347
|
-
* 是否为官方应用
|
|
348
|
-
*/
|
|
349
|
-
isOfficial?: boolean;
|
|
350
341
|
}
|
package/types/Type/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { FacePlugin } from '../_utils/facePlugin/interface';
|
|
|
5
5
|
import { ApplicationConfig } from './application';
|
|
6
6
|
export * from './application';
|
|
7
7
|
export type { CommonMessage, User };
|
|
8
|
-
export declare type Lang = 'zh-CN' | 'en-US';
|
|
8
|
+
export declare type Lang = 'zh-CN' | 'en-US' | 'zh-TW' | 'ja-JP';
|
|
9
9
|
export declare enum GuardMode {
|
|
10
10
|
Modal = "modal",
|
|
11
11
|
Normal = "normal"
|
|
@@ -19,7 +19,6 @@ export declare const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, co
|
|
|
19
19
|
export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string | undefined, config?: GuardLocalConfig | undefined, httpClient?: GuardHttp | undefined, 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;
|
|
@@ -87,93 +87,7 @@ export declare const useGuardModule: () => {
|
|
|
87
87
|
backModule: (() => void) | undefined;
|
|
88
88
|
currentModule: ModuleState;
|
|
89
89
|
};
|
|
90
|
-
export declare const useGuardFinallyConfig: () =>
|
|
91
|
-
title: string;
|
|
92
|
-
isInvited?: boolean | undefined;
|
|
93
|
-
isSSO?: boolean | undefined;
|
|
94
|
-
defaultScenes?: GuardModuleType | undefined;
|
|
95
|
-
defaultInitData?: any;
|
|
96
|
-
showLoading?: boolean | undefined;
|
|
97
|
-
loadingComponent?: React.ReactNode;
|
|
98
|
-
openEventsMapping?: boolean | undefined;
|
|
99
|
-
disableRegister?: boolean | undefined;
|
|
100
|
-
registerMethods?: string[] | undefined;
|
|
101
|
-
defaultRegisterMethod?: string | undefined;
|
|
102
|
-
publicKey?: string | undefined;
|
|
103
|
-
agreementEnabled?: boolean | undefined;
|
|
104
|
-
agreements?: import("..").Agreement[] | undefined;
|
|
105
|
-
registerContext?: any;
|
|
106
|
-
logo?: string | undefined;
|
|
107
|
-
lang?: string | undefined;
|
|
108
|
-
langRange?: Lang[] | undefined;
|
|
109
|
-
host: string;
|
|
110
|
-
isHost?: boolean | undefined;
|
|
111
|
-
mode: import("..").GuardMode;
|
|
112
|
-
clickCloseable: boolean;
|
|
113
|
-
escCloseable: boolean;
|
|
114
|
-
userpool?: string | undefined;
|
|
115
|
-
contentCss?: string | undefined;
|
|
116
|
-
target?: string | HTMLElement | undefined;
|
|
117
|
-
style?: React.CSSProperties | undefined;
|
|
118
|
-
__internalRequest__?: boolean | undefined;
|
|
119
|
-
__singleComponent__?: boolean | undefined;
|
|
120
|
-
__unAuthFlow__?: boolean | undefined;
|
|
121
|
-
autoRegister?: boolean | undefined;
|
|
122
|
-
disableResetPwd?: boolean | undefined;
|
|
123
|
-
defaultLoginMethod?: import("..").LoginMethods | undefined;
|
|
124
|
-
loginMethods?: import("..").LoginMethods[] | undefined;
|
|
125
|
-
passwordLoginMethods?: string[] | undefined;
|
|
126
|
-
socialConnections?: import("..").SocialConnectionProvider[] | undefined;
|
|
127
|
-
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
128
|
-
enterpriseConnections?: string[] | undefined;
|
|
129
|
-
qrCodeScanOptions?: {
|
|
130
|
-
extIdpConnId?: string | undefined;
|
|
131
|
-
autoExchangeUserInfo?: boolean | undefined;
|
|
132
|
-
size?: {
|
|
133
|
-
height: number;
|
|
134
|
-
width: number;
|
|
135
|
-
} | undefined;
|
|
136
|
-
containerSize?: {
|
|
137
|
-
height: number;
|
|
138
|
-
width: number;
|
|
139
|
-
} | undefined;
|
|
140
|
-
interval?: number | undefined;
|
|
141
|
-
onStart?: ((timer: any) => any) | undefined;
|
|
142
|
-
onResult?: ((data: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeStatus) => any) | undefined;
|
|
143
|
-
onScanned?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo) => any) | undefined;
|
|
144
|
-
onSuccess?: ((userInfo: import("authing-js-sdk/build/main/lib/authentication/types").QRCodeUserInfo, ticket: string) => any) | undefined;
|
|
145
|
-
onCancel?: (() => any) | undefined;
|
|
146
|
-
onError?: ((message: string) => any) | undefined;
|
|
147
|
-
onExpired?: (() => any) | undefined;
|
|
148
|
-
onCodeShow?: ((random: string, url: string) => any) | undefined;
|
|
149
|
-
onCodeLoaded?: ((random: string, url: string) => any) | undefined;
|
|
150
|
-
onCodeLoadFailed?: ((message: string) => any) | undefined;
|
|
151
|
-
onCodeDestroyed?: ((random: string) => any) | undefined;
|
|
152
|
-
onRetry?: (() => any) | undefined;
|
|
153
|
-
onMfa?: ((code: number, message: string, data: Record<string, any>) => {}) | undefined;
|
|
154
|
-
tips?: {
|
|
155
|
-
title?: string | undefined;
|
|
156
|
-
scanned?: string | undefined;
|
|
157
|
-
succeed?: string | undefined;
|
|
158
|
-
canceled?: string | undefined;
|
|
159
|
-
expired?: string | undefined;
|
|
160
|
-
retry?: string | undefined;
|
|
161
|
-
failed?: string | undefined;
|
|
162
|
-
middleTitle?: string | undefined;
|
|
163
|
-
referText?: string | undefined;
|
|
164
|
-
} | undefined;
|
|
165
|
-
onAuthFlow?: ((flow: Record<string, any>) => {}) | undefined;
|
|
166
|
-
customData?: {
|
|
167
|
-
[x: string]: any;
|
|
168
|
-
} | undefined;
|
|
169
|
-
context?: {
|
|
170
|
-
[x: string]: any;
|
|
171
|
-
} | undefined;
|
|
172
|
-
withCustomData?: boolean | undefined;
|
|
173
|
-
} | undefined;
|
|
174
|
-
_closeLoopCheckQrcode?: boolean | undefined;
|
|
175
|
-
goBack?: (() => void) | null | undefined;
|
|
176
|
-
};
|
|
90
|
+
export declare const useGuardFinallyConfig: () => GuardLocalConfig;
|
|
177
91
|
export declare const useGuardContextLoaded: () => boolean;
|
|
178
92
|
export declare const useGuardIsAuthFlow: () => boolean;
|
|
179
93
|
export declare const useGuardPageConfig: () => Partial<GuardPageConfig>;
|
package/types/_utils/http.d.ts
CHANGED
|
@@ -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
|
}
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const getClassnames: (classnames: (string | boolean | undefined)[
|
|
|
27
27
|
* @param item
|
|
28
28
|
* @returns {boolean}
|
|
29
29
|
*/
|
|
30
|
-
export declare function isObject(item: any):
|
|
30
|
+
export declare function isObject(item: any): boolean;
|
|
31
31
|
/**
|
|
32
32
|
* https://www.itranslater.com/qa/details/2115518846294557696
|
|
33
33
|
* Deep merge two objects.
|
|
@@ -97,4 +97,4 @@ export declare const regexFromString: (string: string) => RegExp | null;
|
|
|
97
97
|
export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
98
98
|
export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
|
|
99
99
|
export declare const getSortTabs: (tabs: string[], tab?: string | undefined) => string[];
|
|
100
|
-
export declare const
|
|
100
|
+
export declare const getPhoneInLoginPageContext: () => any;
|
|
@@ -16,23 +16,12 @@ export declare enum ApiCode {
|
|
|
16
16
|
FLOW_END = 1600,
|
|
17
17
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
18
18
|
FORCED_PASSWORD_RESET = 2058,
|
|
19
|
+
ACCOUNT_MERGE = 10000,
|
|
19
20
|
UNSAFE_PASSWORD_TIP = 2061,
|
|
20
21
|
UNSAFE_PASSWORD_RESET = 2071,
|
|
21
22
|
FLOW_SELECT_ACCOUNT = 2921,
|
|
22
23
|
SELECT_ACCOUNT_2_LOGIN = 2930,
|
|
23
24
|
TENANT_PORTAL = 1644,
|
|
24
|
-
RESET_ACCOUNT_NAME = 1108
|
|
25
|
-
/**
|
|
26
|
-
* ey 登录协议条款
|
|
27
|
-
*/
|
|
28
|
-
EY_PROTOCOLS = 1008,
|
|
29
|
-
/**
|
|
30
|
-
* ey 邀请码过期
|
|
31
|
-
*/
|
|
32
|
-
EY_INVITE_EXPIRE = 4032,
|
|
33
|
-
/**
|
|
34
|
-
* 链接超时
|
|
35
|
-
*/
|
|
36
|
-
EY_LINK_EXPIRE = 4033
|
|
25
|
+
RESET_ACCOUNT_NAME = 1108
|
|
37
26
|
}
|
|
38
27
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.4.
|
|
1
|
+
declare const _default: "4.4.6-hep.0";
|
|
2
2
|
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from '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 {};
|