@authing/react-ui-components 4.3.4-alpha.0 → 4.3.4-alpha.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.
- 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 +2 -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,15 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare enum InputMethodMap {
|
|
3
3
|
email = "email-code",
|
|
4
4
|
phone = "phone-code"
|
|
5
5
|
}
|
|
6
6
|
interface ResetPasswordProps {
|
|
7
7
|
publicConfig: any;
|
|
8
|
-
setPhoneOrEmail: any;
|
|
9
8
|
setControlShow: any;
|
|
10
9
|
setPolicyStrength: any;
|
|
11
10
|
setCustomPasswordStrength: any;
|
|
12
11
|
setPhoneOrEmailText: any;
|
|
12
|
+
setResetToken: React.Dispatch<React.SetStateAction<string>>;
|
|
13
13
|
}
|
|
14
14
|
export declare const ResetPassword: (props: ResetPasswordProps) => JSX.Element;
|
|
15
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,13 +5,14 @@ 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
|
+
import { TenantPortalEvents } from '../TenantPortalSelect/interface';
|
|
8
9
|
interface OnAfterChangeModuleOptions {
|
|
9
10
|
currentView: string;
|
|
10
11
|
currentModule: GuardModuleType;
|
|
11
12
|
currentTab?: string;
|
|
12
13
|
data?: any;
|
|
13
14
|
}
|
|
14
|
-
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents {
|
|
15
|
+
export interface GuardEvents extends LoginEvents, RegisterEvents, CompleteInfoEvents, ForgetPasswordEvents, IdentityBindingEvents, IdentityBindingAskEvents, TenantPortalEvents {
|
|
15
16
|
onBeforeChangeModule?: (key: GuardModuleType, initData?: any) => boolean | Promise<boolean>;
|
|
16
17
|
onAfterChangeModule?: (options: OnAfterChangeModuleOptions) => void;
|
|
17
18
|
}
|
|
@@ -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
|
+
}
|
|
@@ -313,4 +313,10 @@ export interface ApplicationConfig {
|
|
|
313
313
|
validLoginMethods: Array<string> | null;
|
|
314
314
|
validRegisterMethods: Array<string> | null;
|
|
315
315
|
};
|
|
316
|
+
/** 是否开启自定义安全规则 */
|
|
317
|
+
customSecurityEnabled: boolean;
|
|
318
|
+
/** 应用的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
319
|
+
appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
320
|
+
/** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
|
|
321
|
+
userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
|
|
316
322
|
}
|
|
@@ -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
|
} | {
|
|
@@ -155,3 +155,5 @@ export declare const useGuardPhoneRegex: () => RegExp | null;
|
|
|
155
155
|
export declare const useGuardDefaultLanguage: () => Lang;
|
|
156
156
|
/** 用来操作和获取租户相关的内容 */
|
|
157
157
|
export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
|
|
158
|
+
/** 当前人机验证策略 */
|
|
159
|
+
export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.3.
|
|
1
|
+
declare const _default: "4.3.4-alpha.1";
|
|
2
2
|
export default _default;
|