@authing/react-ui-components 4.3.2-rc.3 → 4.3.2-rc.5
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/ForgetPassword/core/resetPassword.d.ts +1 -2
- package/types/ForgetPassword/interface.d.ts +1 -0
- package/types/Guard/config.d.ts +2 -1
- package/types/Guard/event.d.ts +2 -1
- package/types/NewSubmitSuccess/interface.d.ts +2 -0
- package/types/TenantPortalSelect/index.d.ts +0 -13
- package/types/TenantPortalSelect/interface.d.ts +33 -0
- package/types/Type/application.d.ts +6 -0
- package/types/_utils/config/index.d.ts +1 -0
- package/types/_utils/context.d.ts +2 -0
- package/types/version/version.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export declare enum InputMethodMap {
|
|
3
3
|
email = "email-code",
|
|
4
4
|
phone = "phone-code"
|
|
@@ -10,7 +10,6 @@ interface ResetPasswordProps {
|
|
|
10
10
|
setPolicyStrength: any;
|
|
11
11
|
setCustomPasswordStrength: any;
|
|
12
12
|
setPhoneOrEmailText: any;
|
|
13
|
-
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
14
13
|
}
|
|
15
14
|
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
16
15
|
export {};
|
|
@@ -9,6 +9,7 @@ export interface ForgetPasswordEvents extends IG2Events {
|
|
|
9
9
|
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
10
10
|
}
|
|
11
11
|
export interface ForgetPasswordConfig extends IG2Config {
|
|
12
|
+
goBack?: null | (() => void);
|
|
12
13
|
}
|
|
13
14
|
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
14
15
|
config: Partial<IG2Config>;
|
package/types/Guard/config.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { GuardModuleType } from '.';
|
|
3
|
+
import { ForgetPasswordConfig } from '../ForgetPassword/interface';
|
|
3
4
|
import { LoginConfig } from '../Login/interface';
|
|
4
5
|
import { RegisterConfig } from '../Register/interface';
|
|
5
|
-
export interface GuardLocalConfig extends RegisterConfig, LoginConfig {
|
|
6
|
+
export interface GuardLocalConfig extends RegisterConfig, LoginConfig, ForgetPasswordConfig {
|
|
6
7
|
isSSO?: boolean;
|
|
7
8
|
defaultScenes?: GuardModuleType;
|
|
8
9
|
defaultInitData?: any;
|
package/types/Guard/event.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import { IdentityBindingEvents } from '../IdentityBinding/interface';
|
|
|
5
5
|
import { IdentityBindingAskEvents } from '../IdentityBindingAsk';
|
|
6
6
|
import { LoginEvents } from '../Login/interface';
|
|
7
7
|
import { RegisterEvents } from '../Register/interface';
|
|
8
|
-
|
|
8
|
+
import { TenantPortalEvents } from '../TenantPortalSelect/interface';
|
|
9
|
+
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents, TenantPortalEvents {
|
|
9
10
|
onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
|
|
10
11
|
}
|
|
11
12
|
export declare const guardEventsFilter: (props: any, multipleInstance?: {
|
|
@@ -10,6 +10,8 @@ export interface SubmitSuccessInitData {
|
|
|
10
10
|
text?: string;
|
|
11
11
|
countDesc?: string;
|
|
12
12
|
changeModule?: GuardModuleType;
|
|
13
|
+
needBack?: boolean;
|
|
14
|
+
goBack?: () => void;
|
|
13
15
|
}
|
|
14
16
|
export interface GuardNewSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
|
|
15
17
|
config: SubmitSuccessConfig;
|
|
@@ -1,16 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './styles.less';
|
|
3
|
-
/** 租户门户选择状态机返回数据类型 */
|
|
4
|
-
export interface TenantPortalSelectType {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
logo: string;
|
|
8
|
-
list: {
|
|
9
|
-
tenantName: string;
|
|
10
|
-
tenantId: string;
|
|
11
|
-
tenantLogo: string;
|
|
12
|
-
host: string;
|
|
13
|
-
userName: string;
|
|
14
|
-
}[];
|
|
15
|
-
}
|
|
16
3
|
export declare const GuardTenantPortalSelectView: () => JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AvatarProps } from 'antd/lib/avatar';
|
|
3
|
+
import { AuthenticationClient, IG2Events, User } from '../Type';
|
|
4
|
+
export interface TenantPortalListType {
|
|
5
|
+
tenantName: string;
|
|
6
|
+
tenantId: string;
|
|
7
|
+
tenantLogo: string;
|
|
8
|
+
host: string;
|
|
9
|
+
description: string;
|
|
10
|
+
/** 是否为用户池 */
|
|
11
|
+
isUserPool: boolean;
|
|
12
|
+
userName?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface TenantPortalSelectType extends Omit<TenantPortalListType, 'userName'> {
|
|
15
|
+
}
|
|
16
|
+
/** 租户门户选择状态机返回数据类型 */
|
|
17
|
+
export interface TenantPortalDataType {
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
logo: string;
|
|
21
|
+
list: TenantPortalListType[];
|
|
22
|
+
}
|
|
23
|
+
export interface TenantPortalDataItem extends TenantPortalListType {
|
|
24
|
+
avatar?: AvatarProps;
|
|
25
|
+
extra?: React.ReactNode;
|
|
26
|
+
title?: string;
|
|
27
|
+
}
|
|
28
|
+
/** 租户门户相关事件 */
|
|
29
|
+
export interface TenantPortalEvents extends IG2Events {
|
|
30
|
+
onLogin?: (user: User, authClient: AuthenticationClient) => void;
|
|
31
|
+
/** 租户门户选择回调 */
|
|
32
|
+
onTenantSelect?: (data?: TenantPortalSelectType) => void;
|
|
33
|
+
}
|
|
@@ -307,4 +307,10 @@ export interface ApplicationConfig {
|
|
|
307
307
|
mfa: {
|
|
308
308
|
faceScore: number;
|
|
309
309
|
};
|
|
310
|
+
/** 是否开启自定义安全规则 */
|
|
311
|
+
customSecurityEnabled: boolean;
|
|
312
|
+
/** 应用的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
313
|
+
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
314
|
+
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
315
|
+
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
310
316
|
}
|
|
@@ -100,6 +100,7 @@ export declare const useFetchConsoleConfig: (forceUpdate: number, appId?: string
|
|
|
100
100
|
withCustomData?: boolean | undefined;
|
|
101
101
|
} | undefined;
|
|
102
102
|
_closeLoopCheckQrcode?: boolean | undefined;
|
|
103
|
+
goBack?: (() => void) | null | undefined;
|
|
103
104
|
};
|
|
104
105
|
guardPageConfig: GuardPageConfig;
|
|
105
106
|
} | {
|
|
@@ -154,3 +154,5 @@ export declare const useGuardPhoneRegex: () => RegExp | null;
|
|
|
154
154
|
export declare const useGuardDefaultLanguage: () => Lang;
|
|
155
155
|
/** 用来操作和获取租户相关的内容 */
|
|
156
156
|
export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
|
|
157
|
+
/** 当前人机验证策略 */
|
|
158
|
+
export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.2-rc.
|
|
1
|
+
declare const _default: "4.3.2-rc.5";
|
|
2
2
|
export default _default;
|