@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/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
- package/types/CompleteInfo/interface.d.ts +2 -1
- package/types/ForgetPassword/InputPassword/index.d.ts +4 -0
- package/types/ForgetPassword/core/inputIdentify.d.ts +7 -0
- package/types/ForgetPassword/core/resetPassword.d.ts +5 -1
- package/types/ImagePro/index.d.ts +1 -0
- package/types/Login/core/withPassword/InputAccount.d.ts +1 -2
- package/types/Login/core/withPassword/index.d.ts +2 -2
- package/types/Login/interface.d.ts +2 -2
- package/types/Type/application.d.ts +6 -2
- package/types/_utils/config/index.d.ts +1 -1
- package/types/_utils/index.d.ts +3 -2
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -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 {};
|
|
@@ -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:
|
|
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
|
|
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:
|
|
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,
|
|
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?:
|
|
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
|
|
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?:
|
|
53
|
+
passwordLoginMethods?: string[] | undefined;
|
|
54
54
|
socialConnections?: import("../../Type").SocialConnectionProvider[] | undefined;
|
|
55
55
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
56
56
|
enterpriseConnections?: string[] | undefined;
|
package/types/_utils/index.d.ts
CHANGED
|
@@ -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):
|
|
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
|
+
declare const _default: "4.2.0-rc.0";
|
|
2
2
|
export default _default;
|