@authing/react-ui-components 4.1.0-cxmt.2 → 4.1.0-cxmt.4

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.4",
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
+ }
@@ -0,0 +1,14 @@
1
+ import { Agreement } from '../../../Type';
2
+ interface Options {
3
+ agreements: Agreement[];
4
+ checkedAgreements: (string | number)[];
5
+ checkAllAgreements: () => void;
6
+ unCheckAllAgreements: () => void;
7
+ }
8
+ export declare function useAgreements(options: Options): {
9
+ agreements: Agreement[];
10
+ checkedAgreements: (string | number)[];
11
+ checkAllAgreements: () => void;
12
+ unCheckAllAgreements: () => void;
13
+ };
14
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface Options {
3
+ changeTab?: React.Dispatch<any>;
4
+ currentTab?: string;
5
+ }
6
+ export declare function useGuardView(options?: Options): void;
7
+ export {};
@@ -0,0 +1,12 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ interface LazyloadImageProps {
3
+ src: string;
4
+ placeholder: ReactNode;
5
+ className?: string;
6
+ style?: CSSProperties;
7
+ alt?: string;
8
+ width?: string;
9
+ height?: string;
10
+ }
11
+ export declare function LazyloadImage(props: LazyloadImageProps): JSX.Element;
12
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { OnPushSuccessProps, OnLoginProps } from './types';
3
+ import { AuthingGuardResponse } from '../../../_utils/http';
4
+ import { Agreement } from '../../../Type';
5
+ interface BeforeLoginProps {
6
+ onPushSuccess: (props: OnPushSuccessProps) => void;
7
+ signinByPush: (props: OnLoginProps) => Promise<AuthingGuardResponse<{
8
+ pushCodeId: string;
9
+ }>>;
10
+ pushLoginStatus: boolean;
11
+ onchangePushLoginStatus: () => void;
12
+ defaultAccount: string;
13
+ setAccount: React.Dispatch<any>;
14
+ agreements: Agreement[];
15
+ }
16
+ export declare function BeforeLogin(props: BeforeLoginProps): JSX.Element;
17
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowBindClient(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowGetAppLoginUrl(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function HowUsePushLogin(): JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import './styles.less';
3
+ interface PendingLoginProps {
4
+ onCancelLogin: () => void;
5
+ }
6
+ export declare function PendingLogin(props: PendingLoginProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { PushLoginGudeModalProps } from './types';
3
+ export declare function PushLoginGudeModal(props: PushLoginGudeModalProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { SelectorOptions, Selector } from './types';
3
+ interface PushLoginGuideSelectorProps {
4
+ defaultValue: Selector;
5
+ onChange: (value: Selector) => void;
6
+ options: SelectorOptions;
7
+ }
8
+ export declare function PushLoginGuideSelector(props: PushLoginGuideSelectorProps): JSX.Element;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { LoginWithAuthingOtpPushProps } from './types';
3
+ export declare function LoginWithAuthingOtpPush(props: LoginWithAuthingOtpPushProps): JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { BackFillMultipleState, StoreInstance } from '../../../Guard/core/hooks/useMultipleAccounts';
2
+ import { Agreement } from '../../../Type';
3
+ export interface OnPushSuccessProps {
4
+ pushCodeId: string;
5
+ }
6
+ export interface CheckPushCodeStatusProps {
7
+ pushCodeId: string;
8
+ }
9
+ export interface OnLoginProps {
10
+ account: string;
11
+ }
12
+ export declare type LoginStatus = 'before' | 'pending';
13
+ export interface LoginWithAuthingOtpPushProps {
14
+ onLoginSuccess?: any;
15
+ multipleInstance?: StoreInstance;
16
+ initData?: BackFillMultipleState;
17
+ agreements: Agreement[];
18
+ }
19
+ export interface PushLoginGudeModalProps {
20
+ visible: boolean;
21
+ onClose: () => void;
22
+ }
23
+ export declare type Selector = 'howUsePushLogin' | 'howBindClient' | 'howGetAppLoginUrl';
24
+ export interface SelectorOption {
25
+ value: Selector;
26
+ label: string;
27
+ }
28
+ export declare type SelectorOptions = SelectorOption[];
@@ -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;
@@ -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.4";
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;