@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.
Files changed (43) hide show
  1. package/lib/index.min.css +1 -1
  2. package/lib/index.min.js +1 -1
  3. package/package.json +2 -3
  4. package/types/Login/interface.d.ts +1 -0
  5. package/types/Type/application.d.ts +2 -0
  6. package/types/_utils/http.d.ts +4 -0
  7. package/types/version/version.d.ts +1 -1
  8. package/LICENSE +0 -21
  9. package/types/EY/CheckCaptcha/index.d.ts +0 -2
  10. package/types/EY/Error/index.d.ts +0 -2
  11. package/types/EY/ForgetPassword/index.d.ts +0 -2
  12. package/types/EY/InviteComplete/index.d.ts +0 -2
  13. package/types/EY/InviteIdentityBind/component/WeComQrcode.d.ts +0 -2
  14. package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +0 -2
  15. package/types/EY/InviteIdentityBind/index.d.ts +0 -2
  16. package/types/EY/InviteLoading/index.d.ts +0 -2
  17. package/types/EY/Login/components/EyLoginWithWeComQrcode.d.ts +0 -2
  18. package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +0 -2
  19. package/types/EY/Login/core/EmailVerify.d.ts +0 -7
  20. package/types/EY/Login/core/ScanCode.d.ts +0 -7
  21. package/types/EY/Login/index.d.ts +0 -7
  22. package/types/EY/PreCheckEmail/index.d.ts +0 -2
  23. package/types/EY/Protocol/index.d.ts +0 -2
  24. package/types/EY/components/EmailFormItem.d.ts +0 -2
  25. package/types/EY/components/GoBack.d.ts +0 -2
  26. package/types/EY/components/ResetPassword.d.ts +0 -16
  27. package/types/EY/interface.d.ts +0 -75
  28. package/types/Guard/core/hooks/useAgreements.d.ts +0 -14
  29. package/types/Guard/core/hooks/useGuardView.d.ts +0 -7
  30. package/types/LazyloadImage/index.d.ts +0 -12
  31. package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +0 -17
  32. package/types/Login/core/withAuthingOtpPush/HowBindClient.d.ts +0 -2
  33. package/types/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +0 -2
  34. package/types/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +0 -2
  35. package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +0 -7
  36. package/types/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +0 -3
  37. package/types/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +0 -9
  38. package/types/Login/core/withAuthingOtpPush/index.d.ts +0 -3
  39. package/types/Login/core/withAuthingOtpPush/types.d.ts +0 -28
  40. package/types/Login/core/withWeComQrcode.d.ts +0 -2
  41. package/types/MFA/VerifyCodeInput/ey.d.ts +0 -15
  42. package/types/SelectAccount2Login/index.d.ts +0 -3
  43. 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.0",
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
  }
@@ -39,3 +39,4 @@ export interface GuardLoginInitData {
39
39
  _lockMethod?: string;
40
40
  }
41
41
  export declare const getDefaultLoginConfig: () => LoginConfig;
42
+ export declare type ValidateStatus = undefined | 'validating';
@@ -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
  }
@@ -31,3 +31,7 @@ export interface AuthingGuardResponse<T = any> extends AuthingResponse<T> {
31
31
  onGuardHandling?: () => CodeAction;
32
32
  isFlowEnd?: boolean;
33
33
  }
34
+ export declare enum HttpStatusCode {
35
+ OK = 200,
36
+ TOO_MANY_REQUESTS = 429
37
+ }
@@ -1,2 +1,2 @@
1
- declare const _default: "4.3.4-adicon.0";
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,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyGuardCheckCaptchaView: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyGuardInviteExpireView: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const EyGuardForgetPassword: React.FC;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyGuardInviteCompleteView: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WeComQrcode: (props: any) => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WeComQrcodeNew: (props: any) => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyGuardIviteIdentityBindView: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyGuardInviteLoadingView: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyLoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyLoginWithWeComQrcodeNew: (props: any) => JSX.Element;
@@ -1,7 +0,0 @@
1
- import React from '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,7 +0,0 @@
1
- import React from 'react';
2
- import { EyLoginProps } from '../../interface';
3
- interface ScanCodeSceneProps extends EyLoginProps {
4
- refreshQrcode: number;
5
- }
6
- export declare const ScanCodeScene: React.FC<ScanCodeSceneProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface GuardLoginInitData {
3
- scene: 'password' | 'qrcode' | 'verifyCode';
4
- noBack: boolean;
5
- verifyAccount?: string;
6
- }
7
- export declare const EyGuardLoginView: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyGuardPreCheckEmailView: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EyGuardProtocolView: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const EmailFormItem: (props: any) => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const GoBack: (props: any) => JSX.Element;
@@ -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 {};
@@ -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,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface Options {
3
- changeTab?: React.Dispatch<any>;
4
- currentTab?: string;
5
- }
6
- export declare function useGuardView(options?: Options): void;
7
- 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,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function HowBindClient(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function HowGetAppLoginUrl(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function HowUsePushLogin(): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import './styles.less';
3
- interface PendingLoginProps {
4
- onCancelLogin: () => void;
5
- }
6
- export declare function PendingLogin(props: PendingLoginProps): JSX.Element;
7
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { PushLoginGudeModalProps } from './types';
3
- export declare function PushLoginGudeModal(props: PushLoginGudeModalProps): JSX.Element;
@@ -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,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { LoginWithAuthingOtpPushProps } from './types';
3
- export declare function LoginWithAuthingOtpPush(props: LoginWithAuthingOtpPushProps): JSX.Element;
@@ -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,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -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,3 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.less';
3
- export declare const GuardSelectAccount2LoginView: () => JSX.Element;
@@ -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
- };