@authing/react-ui-components 4.1.0-rc.9 → 4.2.0-rc.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.1.0-rc.9",
3
+ "version": "4.2.0-rc.0",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -95,5 +95,6 @@ export interface CompleteInfoRequest {
95
95
  export declare enum OmitCompleteInfo {
96
96
  'registerByEmail' = "email",
97
97
  'registerByPhoneCode' = "phone",
98
- 'registerByEmailCode' = "email"
98
+ 'registerByEmailCode' = "email",
99
+ 'phone-password' = "phone"
99
100
  }
@@ -0,0 +1,4 @@
1
+ import { Input } from 'antd';
2
+ import { PasswordProps } from 'antd/lib/input';
3
+ import React from 'react';
4
+ export declare const InputPasswordForget: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<React.RefObject<Input>>>;
@@ -0,0 +1,7 @@
1
+ import { InputProps } from 'antd/lib/input';
2
+ import React from 'react';
3
+ import { VerifyLoginMethods } from '../../Type/application';
4
+ export interface InputIdentifyProps extends InputProps {
5
+ methods: VerifyLoginMethods[];
6
+ }
7
+ export declare const InputIdentify: React.FC<InputIdentifyProps>;
@@ -4,8 +4,12 @@ export declare enum InputMethodMap {
4
4
  phone = "phone-code"
5
5
  }
6
6
  interface ResetPasswordProps {
7
- onReset: any;
8
7
  publicConfig: any;
8
+ setPhoneOrEmail: any;
9
+ setControlShow: any;
10
+ setPolicyStrength: any;
11
+ setCustomPasswordStrength: any;
12
+ setPhoneOrEmailText: any;
9
13
  }
10
14
  export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
11
15
  export {};
@@ -12,3 +12,4 @@ export interface ImageProProps extends React.ImgHTMLAttributes<HTMLImageElement>
12
12
  noSpin?: boolean;
13
13
  }
14
14
  export declare const ImagePro: (props: ImageProProps) => JSX.Element;
15
+ export declare const ImagePro2: (props: ImageProProps) => JSX.Element;
@@ -1,8 +1,7 @@
1
1
  import { InputProps } from 'antd/lib/input';
2
2
  import React from 'react';
3
- import { PasswordLoginMethods } from '../../../Type/application';
4
3
  export interface InputAccountProps extends InputProps {
5
- passwordLoginMethods: PasswordLoginMethods[];
4
+ passwordLoginMethods: string[];
6
5
  placeholder: string;
7
6
  }
8
7
  export declare const InputAccount: React.FC<InputAccountProps>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { AuthingResponse } from '../../../_utils/http';
3
- import { Agreement, LoginMethods, PasswordLoginMethods } from '../../../Type/application';
3
+ import { Agreement, LoginMethods } from '../../../Type/application';
4
4
  import { BackFillMultipleState, StoreInstance } from '../../../Guard/core/hooks/useMultipleAccounts';
5
5
  interface LoginWithPasswordProps {
6
6
  publicKey: string;
@@ -10,7 +10,7 @@ interface LoginWithPasswordProps {
10
10
  onLoginSuccess?: any;
11
11
  onLoginFailed?: any;
12
12
  onLoginRequest?: (loginInfo: any) => Promise<AuthingResponse>;
13
- passwordLoginMethods: PasswordLoginMethods[];
13
+ passwordLoginMethods: string[];
14
14
  agreements: Agreement[];
15
15
  loginWay?: LoginMethods;
16
16
  submitButText?: string;
@@ -1,14 +1,14 @@
1
1
  import { IG2Config, IG2Events, IG2FCProps, IG2FCViewProps } from '../Type';
2
2
  import { AuthenticationClient, User } from 'authing-js-sdk';
3
3
  import { QrCodeAuthenticationClient } from 'authing-js-sdk/build/main/lib/authentication/QrCodeAuthenticationClient';
4
- import { Agreement, LoginMethods, PasswordLoginMethods, SocialConnectionProvider } from '../Type/application';
4
+ import { Agreement, LoginMethods, SocialConnectionProvider } from '../Type/application';
5
5
  export interface LoginConfig extends IG2Config {
6
6
  autoRegister?: boolean;
7
7
  disableResetPwd?: boolean;
8
8
  disableRegister?: boolean;
9
9
  defaultLoginMethod?: LoginMethods;
10
10
  loginMethods?: LoginMethods[];
11
- passwordLoginMethods?: PasswordLoginMethods[];
11
+ passwordLoginMethods?: string[];
12
12
  socialConnections?: SocialConnectionProvider[];
13
13
  socialConnectionsBtnShape?: 'default' | 'button' | 'icon';
14
14
  enterpriseConnections?: string[];
@@ -108,11 +108,12 @@ export declare enum RegisterSortMethods {
108
108
  Phone = "phone-code",
109
109
  EmailCode = "email-code"
110
110
  }
111
- export declare type QrcodeTabsSettings = Record<LoginMethods, Array<{
111
+ export interface QrCodeItem {
112
112
  id: string;
113
113
  title: string;
114
114
  isDefault?: boolean;
115
- }>>;
115
+ }
116
+ export declare type QrcodeTabsSettings = Record<LoginMethods, Array<QrCodeItem>>;
116
117
  export interface OidcClientMetadata {
117
118
  grant_types: string[];
118
119
  client_id: string;
@@ -215,6 +216,9 @@ export interface ApplicationConfig {
215
216
  };
216
217
  };
217
218
  qrcodeTabsSettings: QrcodeTabsSettings;
219
+ qrCodeSortConfig: {
220
+ loginMethodsSort?: string[];
221
+ };
218
222
  loginTabs: {
219
223
  list: string[];
220
224
  default: string;
@@ -50,7 +50,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
50
50
  disableResetPwd?: boolean | undefined;
51
51
  defaultLoginMethod?: LoginMethods | undefined;
52
52
  loginMethods?: LoginMethods[] | undefined;
53
- passwordLoginMethods?: import("../../Type").PasswordLoginMethods[] | undefined;
53
+ passwordLoginMethods?: string[] | undefined;
54
54
  socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
55
55
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
56
56
  enterpriseConnections?: string[] | undefined;
@@ -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.
@@ -73,9 +73,9 @@ export declare const PASSWORD_STRENGTH_TEXT_MAP: Record<PasswordStrength, {
73
73
  }>;
74
74
  export declare const getSymbolTypeLength: (pwd: string) => number;
75
75
  export declare const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
76
+ export declare const getPasswordValidateRules: (strength?: PasswordStrength, customPasswordStrength?: any, customValidateTrigger?: string | undefined, fieldRequiredRuleMessage?: string | undefined) => Rule[];
76
77
  export declare const sleep: (delay: number) => Promise<unknown>;
77
78
  export declare const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
78
- export declare const tabSort: (tabList: string[], defaultMethod?: string | undefined) => string[];
79
79
  export declare const transformMethod: (method: RegisterMethods | string) => string;
80
80
  export declare const mailDesensitization: (mail: string) => string;
81
81
  export declare const phoneDesensitization: (phone: string) => string;
@@ -93,3 +93,4 @@ export declare const getPasswordIdentify: (identity: string) => string;
93
93
  export declare const getCurrentLng: () => Lang;
94
94
  export declare const getSortLabels: (methods: string[], i18nConfig: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
95
95
  export declare const getI18nLabel: (method: string | RegisterSortMethods, i18nFields: Map<string, TabFieldsI18nItem>, defaultLanguageConfig: Lang) => string;
96
+ export declare const getSortTabs: (tabs: string[], tab?: string | undefined) => string[];
@@ -1,2 +1,2 @@
1
- declare const _default: "4.1.0-rc.9";
1
+ declare const _default: "4.2.0-rc.0";
2
2
  export default _default;