@authing/react-ui-components 4.3.4-adicon.0 → 4.3.4-adicon.1
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 -3
- package/types/Login/interface.d.ts +1 -0
- package/types/Type/application.d.ts +2 -0
- package/types/_utils/http.d.ts +4 -0
- package/types/version/version.d.ts +1 -1
- package/LICENSE +0 -21
- 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/Guard/core/hooks/useAgreements.d.ts +0 -14
- package/types/Guard/core/hooks/useGuardView.d.ts +0 -7
- package/types/LazyloadImage/index.d.ts +0 -12
- package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +0 -17
- package/types/Login/core/withAuthingOtpPush/HowBindClient.d.ts +0 -2
- package/types/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +0 -2
- package/types/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +0 -2
- package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +0 -7
- package/types/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +0 -3
- package/types/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +0 -9
- package/types/Login/core/withAuthingOtpPush/index.d.ts +0 -3
- package/types/Login/core/withAuthingOtpPush/types.d.ts +0 -28
- package/types/Login/core/withWeComQrcode.d.ts +0 -2
- package/types/MFA/VerifyCodeInput/ey.d.ts +0 -15
- package/types/SelectAccount2Login/index.d.ts +0 -3
- 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.3.4-adicon.
|
|
3
|
+
"version": "4.3.4-adicon.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/index.min.js",
|
|
6
6
|
"typings": "types/index.d.ts",
|
|
@@ -235,6 +235,5 @@
|
|
|
235
235
|
"webpack-dev-server": "3.11.0",
|
|
236
236
|
"webpack-manifest-plugin": "2.2.0",
|
|
237
237
|
"workbox-webpack-plugin": "5.1.4"
|
|
238
|
-
}
|
|
239
|
-
"gitHead": "28addd3ebf4daa03f4b5c0114754c291c2e91505"
|
|
238
|
+
}
|
|
240
239
|
}
|
|
@@ -333,4 +333,6 @@ export interface ApplicationConfig {
|
|
|
333
333
|
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
334
334
|
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
335
335
|
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
336
|
+
/** 开启延迟校验用户是否存在功能 */
|
|
337
|
+
closeCheckSendUser?: boolean;
|
|
336
338
|
}
|
package/types/_utils/http.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.4-adicon.
|
|
1
|
+
declare const _default: "4.3.4-adicon.1";
|
|
2
2
|
export default _default;
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019-present Authing
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -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,75 +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
|
-
isNew: boolean;
|
|
59
|
-
socialConnections: any[];
|
|
60
|
-
}
|
|
61
|
-
export interface EyGuardProtocolInitData {
|
|
62
|
-
onAcceptHandle: () => void;
|
|
63
|
-
onRejectHandle: () => void;
|
|
64
|
-
mode: 'Guard' | 'Portal';
|
|
65
|
-
}
|
|
66
|
-
export interface EyLoginProps {
|
|
67
|
-
onBeforeLogin?: (loginInfo: any) => void;
|
|
68
|
-
onLoginSuccess?: (data: any, message?: string) => void;
|
|
69
|
-
onLoginFailed?: (code: number, data: any, message?: string) => void;
|
|
70
|
-
}
|
|
71
|
-
export declare const useRegisterHandleHook: (initData: any, submitButtonRef?: {
|
|
72
|
-
current: {
|
|
73
|
-
onSpin: (arg0: boolean) => void;
|
|
74
|
-
};
|
|
75
|
-
} | undefined) => (context: any) => Promise<void>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Agreement } from '../../../Type';
|
|
2
|
-
interface Options {
|
|
3
|
-
agreements: Agreement[];
|
|
4
|
-
checkedAgreements: (string | number)[];
|
|
5
|
-
checkAllAgreements: () => void;
|
|
6
|
-
unCheckAllAgreements: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function useAgreements(options: Options): {
|
|
9
|
-
agreements: Agreement[];
|
|
10
|
-
checkedAgreements: (string | number)[];
|
|
11
|
-
checkAllAgreements: () => void;
|
|
12
|
-
unCheckAllAgreements: () => void;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
interface LazyloadImageProps {
|
|
3
|
-
src: string;
|
|
4
|
-
placeholder: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
alt?: string;
|
|
8
|
-
width?: string;
|
|
9
|
-
height?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function LazyloadImage(props: LazyloadImageProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { OnPushSuccessProps, OnLoginProps } from './types';
|
|
3
|
-
import { AuthingGuardResponse } from '../../../_utils/http';
|
|
4
|
-
import { Agreement } from '../../../Type';
|
|
5
|
-
interface BeforeLoginProps {
|
|
6
|
-
onPushSuccess: (props: OnPushSuccessProps) => void;
|
|
7
|
-
signinByPush: (props: OnLoginProps) => Promise<AuthingGuardResponse<{
|
|
8
|
-
pushCodeId: string;
|
|
9
|
-
}>>;
|
|
10
|
-
pushLoginStatus: boolean;
|
|
11
|
-
onchangePushLoginStatus: () => void;
|
|
12
|
-
defaultAccount: string;
|
|
13
|
-
setAccount: React.Dispatch<any>;
|
|
14
|
-
agreements: Agreement[];
|
|
15
|
-
}
|
|
16
|
-
export declare function BeforeLogin(props: BeforeLoginProps): JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SelectorOptions, Selector } from './types';
|
|
3
|
-
interface PushLoginGuideSelectorProps {
|
|
4
|
-
defaultValue: Selector;
|
|
5
|
-
onChange: (value: Selector) => void;
|
|
6
|
-
options: SelectorOptions;
|
|
7
|
-
}
|
|
8
|
-
export declare function PushLoginGuideSelector(props: PushLoginGuideSelectorProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BackFillMultipleState, StoreInstance } from '../../../Guard/core/hooks/useMultipleAccounts';
|
|
2
|
-
import { Agreement } from '../../../Type';
|
|
3
|
-
export interface OnPushSuccessProps {
|
|
4
|
-
pushCodeId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface CheckPushCodeStatusProps {
|
|
7
|
-
pushCodeId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface OnLoginProps {
|
|
10
|
-
account: string;
|
|
11
|
-
}
|
|
12
|
-
export type LoginStatus = 'before' | 'pending';
|
|
13
|
-
export interface LoginWithAuthingOtpPushProps {
|
|
14
|
-
onLoginSuccess?: any;
|
|
15
|
-
multipleInstance?: StoreInstance;
|
|
16
|
-
initData?: BackFillMultipleState;
|
|
17
|
-
agreements: Agreement[];
|
|
18
|
-
}
|
|
19
|
-
export interface PushLoginGudeModalProps {
|
|
20
|
-
visible: boolean;
|
|
21
|
-
onClose: () => void;
|
|
22
|
-
}
|
|
23
|
-
export type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
|
|
24
|
-
export interface SelectorOption {
|
|
25
|
-
value: Selector;
|
|
26
|
-
label: string;
|
|
27
|
-
}
|
|
28
|
-
export type SelectorOptions = SelectorOption[];
|
|
@@ -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?: 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
|
-
};
|