@authing/react-ui-components 4.3.3-ynby.1 → 4.3.3-ynby.2

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 (45) hide show
  1. package/lib/index.min.js +1 -1
  2. package/package.json +1 -1
  3. package/types/EY/CheckCaptcha/index.d.ts +2 -0
  4. package/types/EY/Error/index.d.ts +2 -0
  5. package/types/EY/ForgetPassword/index.d.ts +2 -0
  6. package/types/EY/InviteComplete/index.d.ts +2 -0
  7. package/types/EY/InviteIdentityBind/component/WeComQrcode.d.ts +2 -0
  8. package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +2 -0
  9. package/types/EY/InviteIdentityBind/index.d.ts +2 -0
  10. package/types/EY/InviteLoading/index.d.ts +2 -0
  11. package/types/EY/Login/components/EyLoginWithWeComQrcode.d.ts +2 -0
  12. package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +2 -0
  13. package/types/EY/Login/core/EmailVerify.d.ts +7 -0
  14. package/types/EY/Login/core/ScanCode.d.ts +7 -0
  15. package/types/EY/Login/index.d.ts +7 -0
  16. package/types/EY/PreCheckEmail/index.d.ts +2 -0
  17. package/types/EY/Protocol/index.d.ts +2 -0
  18. package/types/EY/components/EmailFormItem.d.ts +2 -0
  19. package/types/EY/components/GoBack.d.ts +2 -0
  20. package/types/EY/components/ResetPassword.d.ts +16 -0
  21. package/types/EY/interface.d.ts +75 -0
  22. package/types/Guard/core/hooks/useAgreements.d.ts +14 -0
  23. package/types/Guard/core/hooks/useGuardView.d.ts +7 -0
  24. package/types/LazyloadImage/index.d.ts +12 -0
  25. package/types/Login/core/withAuthingOtpPush/BeforeLogin.d.ts +17 -0
  26. package/types/Login/core/withAuthingOtpPush/HowBindClient.d.ts +2 -0
  27. package/types/Login/core/withAuthingOtpPush/HowGetAppLoginUrl.d.ts +2 -0
  28. package/types/Login/core/withAuthingOtpPush/HowUsePushLogin.d.ts +2 -0
  29. package/types/Login/core/withAuthingOtpPush/PendingLogin.d.ts +7 -0
  30. package/types/Login/core/withAuthingOtpPush/PushLoginGuideModal.d.ts +3 -0
  31. package/types/Login/core/withAuthingOtpPush/PushLoginGuideSelector.d.ts +9 -0
  32. package/types/Login/core/withAuthingOtpPush/index.d.ts +3 -0
  33. package/types/Login/core/withAuthingOtpPush/types.d.ts +28 -0
  34. package/types/Login/core/withDingTalkQrcode.d.ts +2 -0
  35. package/types/MFA/VerifyCodeInput/ey.d.ts +15 -0
  36. package/types/SelectAccount2Login/index.d.ts +3 -0
  37. package/types/_utils/index.d.ts +1 -1
  38. package/types/_utils/signRequestParams.d.ts +8 -0
  39. package/types/version/version.d.ts +1 -1
  40. package/types/AccountMerge/UserRadio.d.ts +0 -5
  41. package/types/AccountMerge/index.d.ts +0 -3
  42. package/types/AccountMerge/interface.d.ts +0 -27
  43. package/types/AccountMerge/utils.d.ts +0 -3
  44. package/types/ChangeAccoutType/index.d.ts +0 -3
  45. package/types/CompleteInfo/core/components/TreeSelect.d.ts +0 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.3.3-ynby.1",
3
+ "version": "4.3.3-ynby.2",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardCheckCaptchaView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardInviteExpireView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EyGuardForgetPassword: React.FC;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardInviteCompleteView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WeComQrcode: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WeComQrcodeNew: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardIviteIdentityBindView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardInviteLoadingView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyLoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyLoginWithWeComQrcodeNew: (props: any) => JSX.Element;
@@ -0,0 +1,7 @@
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 {};
@@ -0,0 +1,7 @@
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 {};
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardPreCheckEmailView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EyGuardProtocolView: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EmailFormItem: (props: any) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const GoBack: (props: any) => JSX.Element;
@@ -0,0 +1,16 @@
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 {};
@@ -0,0 +1,75 @@
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>;
@@ -0,0 +1,14 @@
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 {};
@@ -0,0 +1,7 @@
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 {};
@@ -0,0 +1,12 @@
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 {};
@@ -0,0 +1,17 @@
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 {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowBindClient(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowGetAppLoginUrl(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowUsePushLogin(): JSX.Element;
@@ -0,0 +1,7 @@
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 {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PushLoginGudeModalProps } from './types';
3
+ export declare function PushLoginGudeModal(props: PushLoginGudeModalProps): JSX.Element;
@@ -0,0 +1,9 @@
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 {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { LoginWithAuthingOtpPushProps } from './types';
3
+ export declare function LoginWithAuthingOtpPush(props: LoginWithAuthingOtpPushProps): JSX.Element;
@@ -0,0 +1,28 @@
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 declare 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 declare type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
24
+ export interface SelectorOption {
25
+ value: Selector;
26
+ label: string;
27
+ }
28
+ export declare type SelectorOptions = SelectorOption[];
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LoginWithDingTalkQrcode: (props: any) => JSX.Element;
@@ -0,0 +1,15 @@
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 {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './style.less';
3
+ export declare const GuardSelectAccount2LoginView: () => JSX.Element;
@@ -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): 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.
@@ -0,0 +1,8 @@
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
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: "4.3.3-ynby.1";
1
+ declare const _default: "4.3.3-ynby.2";
2
2
  export default _default;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { UserRadioItemProps, UserRadioProps } from './interface';
3
- import './styles.less';
4
- export declare const UserRadioItem: React.FC<UserRadioItemProps>;
5
- export declare const UserRadio: React.FC<UserRadioProps>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import './styles.less';
3
- export declare const GuardAccountMergeView: React.FC;
@@ -1,27 +0,0 @@
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,3 +0,0 @@
1
- import { User } from 'authing-js-sdk';
2
- export declare const getDisplayName: (user: User) => string;
3
- export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.less';
3
- export declare const GuardChangeAccoutTypesView: () => JSX.Element;
@@ -1,11 +0,0 @@
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;