@authing/react-ui-components 4.1.0-cxmt.2 → 4.1.0-cxmt.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.1.0-cxmt.2",
3
+ "version": "4.1.0-cxmt.3",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -235,4 +235,4 @@
235
235
  "webpack-manifest-plugin": "2.2.0",
236
236
  "workbox-webpack-plugin": "5.1.4"
237
237
  }
238
- }
238
+ }
@@ -270,4 +270,10 @@ export interface ApplicationConfig {
270
270
  isTenantDefault?: boolean;
271
271
  /** 租户详情 */
272
272
  tenantInfo?: Record<string, any>;
273
+ /** 是否开启自定义安全规则 */
274
+ customSecurityEnabled: boolean;
275
+ /** 应用的人机验证策略,始终开启、不开启、设置条件触发 */
276
+ appRobotVerify: 'always_enable' | 'disable' | 'condition_set';
277
+ /** 用户池的人机验证策略,始终开启、不开启、设置条件触发 */
278
+ userpoolRobotVerify: 'always_enable' | 'disable' | 'condition_set';
273
279
  }
@@ -142,3 +142,5 @@ export declare const useGuardMultipleInstance: () => {
142
142
  };
143
143
  /** 用来操作和获取租户相关的内容 */
144
144
  export declare const useGuardTenantProvider: () => MultipleTenant | undefined;
145
+ /** 当前人机验证策略 */
146
+ export declare const useRobotVerify: () => "always_enable" | "disable" | "condition_set";
@@ -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.
@@ -1,2 +1,2 @@
1
- declare const _default: "4.1.0-cxmt.2";
1
+ declare const _default: "4.1.0-cxmt.3";
2
2
  export default _default;
@@ -1,5 +0,0 @@
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>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import './styles.less';
3
- export declare const GuardAccountMergeView: React.FC;
@@ -1,27 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { User } from 'authing-js-sdk';
2
- export declare const getDisplayName: (user: User) => string;
3
- export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import './style.less';
3
- export declare const GuardChangeAccoutTypesView: () => JSX.Element;
@@ -1,11 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -1,6 +0,0 @@
1
- export declare const enum ResetAccountBusinessAction {
2
- ResetName = "reset-username-before-auth"
3
- }
4
- export declare const authFlow: (action: ResetAccountBusinessAction, content: {
5
- username: string;
6
- }) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import './style.less';
3
- export declare const ResetAccountName: FC;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const GuardNewSubmitSuccessView: React.FC;
@@ -1,17 +0,0 @@
1
- import { GuardModuleType } from '../Guard';
2
- import { IG2Config, IG2Events, IG2FCViewProps } from '../Type';
3
- export interface SubmitSuccessEvents extends IG2Events {
4
- }
5
- export interface SubmitSuccessConfig extends IG2Config {
6
- }
7
- export interface SubmitSuccessInitData {
8
- title?: string;
9
- message?: string;
10
- text?: string;
11
- countDesc?: string;
12
- changeModule?: GuardModuleType;
13
- }
14
- export interface GuardNewSubmitSuccessViewProps extends IG2FCViewProps, SubmitSuccessEvents {
15
- config: SubmitSuccessConfig;
16
- initData?: SubmitSuccessInitData;
17
- }
@@ -1,33 +0,0 @@
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
- }