@authing/react-ui-components 4.3.3-fsl.2 → 4.3.3-fsl.3

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 (31) hide show
  1. package/lib/index.min.js +1 -1
  2. package/package.json +1 -1
  3. package/types/AccountMerge/UserRadio.d.ts +5 -0
  4. package/types/AccountMerge/index.d.ts +3 -0
  5. package/types/AccountMerge/interface.d.ts +27 -0
  6. package/types/AccountMerge/utils.d.ts +3 -0
  7. package/types/ChangePassword/core/SendPhoneCode.d.ts +6 -0
  8. package/types/CompleteInfo/core/components/TreeSelect.d.ts +11 -0
  9. package/types/_utils/index.d.ts +1 -1
  10. package/types/version/version.d.ts +1 -1
  11. package/types/EY/CheckCaptcha/index.d.ts +0 -2
  12. package/types/EY/Error/index.d.ts +0 -2
  13. package/types/EY/ForgetPassword/index.d.ts +0 -2
  14. package/types/EY/InviteComplete/index.d.ts +0 -2
  15. package/types/EY/InviteIdentityBind/component/WeComQrcode.d.ts +0 -2
  16. package/types/EY/InviteIdentityBind/component/WeComQrcodeNew.d.ts +0 -2
  17. package/types/EY/InviteIdentityBind/index.d.ts +0 -2
  18. package/types/EY/InviteLoading/index.d.ts +0 -2
  19. package/types/EY/Login/components/EyLoginWithWeComQrcode.d.ts +0 -2
  20. package/types/EY/Login/components/EyLoginWithWeComQrcodeNew.d.ts +0 -2
  21. package/types/EY/Login/core/EmailVerify.d.ts +0 -7
  22. package/types/EY/Login/core/ScanCode.d.ts +0 -7
  23. package/types/EY/Login/index.d.ts +0 -7
  24. package/types/EY/PreCheckEmail/index.d.ts +0 -2
  25. package/types/EY/Protocol/index.d.ts +0 -2
  26. package/types/EY/components/EmailFormItem.d.ts +0 -2
  27. package/types/EY/components/GoBack.d.ts +0 -2
  28. package/types/EY/components/ResetPassword.d.ts +0 -16
  29. package/types/EY/interface.d.ts +0 -75
  30. package/types/MFA/VerifyCodeInput/ey.d.ts +0 -15
  31. 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.3-fsl.2",
3
+ "version": "4.3.3-fsl.3",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -0,0 +1,5 @@
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>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './styles.less';
3
+ export declare const GuardAccountMergeView: React.FC;
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ import { User } from 'authing-js-sdk';
2
+ export declare const getDisplayName: (user: User) => string;
3
+ export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface SendPhoneCodeProps {
3
+ publicConfig: any;
4
+ }
5
+ export declare const SendPhoneCode: (props: SendPhoneCodeProps) => JSX.Element;
6
+ export {};
@@ -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;
@@ -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): boolean;
30
+ export declare function isObject(item: any): any;
31
31
  /**
32
32
  * https://www.itranslater.com/qa/details/2115518846294557696
33
33
  * Deep merge two objects.
@@ -1,2 +1,2 @@
1
- declare const _default: "4.3.3-fsl.2";
1
+ declare const _default: "4.3.3-fsl.3";
2
2
  export default _default;
@@ -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,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
- };