@authing/react-ui-components 4.4.3-wecom.9 → 4.4.4
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/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -5
- package/types/CompleteInfo/core/completeInfo.d.ts +0 -8
- package/types/CompleteInfo/interface.d.ts +0 -4
- 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 +1 -29
- 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 +1 -12
- 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 +1 -1
- package/types/_utils/responseManagement/interface.d.ts +1 -13
- package/types/version/version.d.ts +1 -1
- package/lib/static/media/ey_loading.24d3e4d0.gif +0 -0
- 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/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/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 -74
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authing/react-ui-components",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -10,11 +10,9 @@
|
|
|
10
10
|
"types"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@wecom/jssdk": "^1.4.3",
|
|
14
13
|
"antd": "^4.8.0",
|
|
15
14
|
"authing-js-sdk": "4.23.48",
|
|
16
15
|
"classnames": "^2.3.1",
|
|
17
|
-
"crypto-js": "^4.1.1",
|
|
18
16
|
"fastclick": "^1.0.6",
|
|
19
17
|
"global": "^4.4.0",
|
|
20
18
|
"phone": "^3.1.12",
|
|
@@ -44,7 +42,7 @@
|
|
|
44
42
|
"prebuild:lib": "yarn log-tag && yarn generate-version && yarn generate-examples",
|
|
45
43
|
"prepare": "cd ../.. && husky install packages/react-components/.husky",
|
|
46
44
|
"pub": "yarn build:lib && node ./scripts/publish.js",
|
|
47
|
-
"start": "cross-env PORT=
|
|
45
|
+
"start": "cross-env PORT=1221 node ./scripts/start.js",
|
|
48
46
|
"vite": "vite",
|
|
49
47
|
"generate-version": "node ./scripts/generate-version",
|
|
50
48
|
"generate-examples": "node ./scripts/generate-examples.js",
|
|
@@ -145,7 +143,6 @@
|
|
|
145
143
|
"@testing-library/jest-dom": "^5.11.4",
|
|
146
144
|
"@testing-library/react": "^11.1.0",
|
|
147
145
|
"@testing-library/user-event": "^12.1.10",
|
|
148
|
-
"@types/crypto-js": "^4.1.2",
|
|
149
146
|
"@types/jest": "^26.0.15",
|
|
150
147
|
"@types/lodash": "^4.14.175",
|
|
151
148
|
"@types/node": "^12.0.0",
|
|
@@ -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;
|
|
@@ -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
|
@@ -25,35 +25,7 @@ export declare enum GuardModuleType {
|
|
|
25
25
|
/** 多租户门户选择页 */
|
|
26
26
|
TENANT_PORTAL = "tenant-portal",
|
|
27
27
|
New_SUBMIT_SUCCESS = "newSubmitSuccess",
|
|
28
|
-
RESET_ACCOUNT_NAME = "resetAccountName"
|
|
29
|
-
/**
|
|
30
|
-
* pre check email
|
|
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"
|
|
28
|
+
RESET_ACCOUNT_NAME = "resetAccountName"
|
|
57
29
|
}
|
|
58
30
|
export interface GuardModuleAction {
|
|
59
31
|
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,8 +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"
|
|
13
|
+
AuthingOtpPush = "authing-otp-push"
|
|
15
14
|
}
|
|
16
15
|
export declare enum OIDCConnectionMode {
|
|
17
16
|
FRONT_CHANNEL = "FRONT_CHANNEL",
|
|
@@ -115,12 +114,6 @@ export interface QrCodeItem {
|
|
|
115
114
|
id: string;
|
|
116
115
|
title: string;
|
|
117
116
|
isDefault?: boolean;
|
|
118
|
-
QRConfig?: {
|
|
119
|
-
corpId: string;
|
|
120
|
-
agentId: string;
|
|
121
|
-
redirectUrl: string;
|
|
122
|
-
identifier: string;
|
|
123
|
-
};
|
|
124
117
|
}
|
|
125
118
|
export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
|
|
126
119
|
export interface OidcClientMetadata {
|
|
@@ -342,8 +335,4 @@ export interface ApplicationConfig {
|
|
|
342
335
|
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
343
336
|
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
344
337
|
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
345
|
-
/**
|
|
346
|
-
* 是否为官方应用
|
|
347
|
-
*/
|
|
348
|
-
isOfficial?: boolean;
|
|
349
338
|
}
|
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
|
@@ -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;
|
|
@@ -21,18 +21,6 @@ export declare enum ApiCode {
|
|
|
21
21
|
FLOW_SELECT_ACCOUNT = 2921,
|
|
22
22
|
SELECT_ACCOUNT_2_LOGIN = 2930,
|
|
23
23
|
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
|
|
24
|
+
RESET_ACCOUNT_NAME = 1108
|
|
37
25
|
}
|
|
38
26
|
export declare const ChangeModuleApiCodeMapping: Record<string, GuardModuleType>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.4.
|
|
1
|
+
declare const _default: "4.4.4";
|
|
2
2
|
export default _default;
|
|
Binary file
|
|
@@ -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 {};
|
package/types/EY/interface.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
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 EyGuardInviteLoginInitData extends Partial<InviteContext> {
|
|
42
|
-
canBack?: boolean;
|
|
43
|
-
verifyAccount: string;
|
|
44
|
-
context: any;
|
|
45
|
-
originModule: GuardModuleType;
|
|
46
|
-
originContext: any;
|
|
47
|
-
}
|
|
48
|
-
export interface EyGuardInviteCompleteInitData extends Partial<EyGuardInviteLoginInitData> {
|
|
49
|
-
metaData: any;
|
|
50
|
-
}
|
|
51
|
-
export interface EyGuardInviteIdentityBindInitData extends Partial<EyGuardInviteLoginInitData> {
|
|
52
|
-
weComConfig: {
|
|
53
|
-
QRConfig: any;
|
|
54
|
-
id: string;
|
|
55
|
-
isDefault: boolean;
|
|
56
|
-
title: string;
|
|
57
|
-
};
|
|
58
|
-
socialConnections: any[];
|
|
59
|
-
}
|
|
60
|
-
export interface EyGuardProtocolInitData {
|
|
61
|
-
onAcceptHandle: () => void;
|
|
62
|
-
onRejectHandle: () => void;
|
|
63
|
-
mode: 'Guard' | 'Portal';
|
|
64
|
-
}
|
|
65
|
-
export interface EyLoginProps {
|
|
66
|
-
onBeforeLogin?: (loginInfo: any) => void;
|
|
67
|
-
onLoginSuccess?: (data: any, message?: string) => void;
|
|
68
|
-
onLoginFailed?: (code: number, data: any, message?: string) => void;
|
|
69
|
-
}
|
|
70
|
-
export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
|
|
71
|
-
current: {
|
|
72
|
-
onSpin: (arg0: boolean) => void;
|
|
73
|
-
};
|
|
74
|
-
} | undefined) => (context: any) => Promise<void>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './style.less';
|
|
3
|
-
interface VerifyCodeInputProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
length?: number;
|
|
5
|
-
size?: string;
|
|
6
|
-
gutter?: string;
|
|
7
|
-
onEenter?: Function;
|
|
8
|
-
showDivider?: boolean;
|
|
9
|
-
onChange?: any;
|
|
10
|
-
value?: Array<number | string>;
|
|
11
|
-
onFinish?: any;
|
|
12
|
-
beforeSend: () => Promise<boolean>;
|
|
13
|
-
}
|
|
14
|
-
export declare const EyVerifyCodeInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<VerifyCodeInputProps>>;
|
|
15
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const generateRandomStr: (length?: number) => string;
|
|
2
|
-
export declare const md5: (text: string) => string;
|
|
3
|
-
export declare const signRequestParams: (params: Record<string, any>) => Record<string, any> & {
|
|
4
|
-
_random: string;
|
|
5
|
-
_timestamp: number;
|
|
6
|
-
} & {
|
|
7
|
-
_sign: string;
|
|
8
|
-
};
|