@authing/react-ui-components 4.1.0-cxmt.0 → 4.1.0-cxmt.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/react-ui-components",
3
- "version": "4.1.0-cxmt.0",
3
+ "version": "4.1.0-cxmt.2",
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
+ }
@@ -1,15 +1,15 @@
1
- /// <reference types="react" />
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 {};
@@ -0,0 +1,6 @@
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>>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './style.less';
3
+ export declare const ResetAccountName: FC;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const GuardNewSubmitSuccessView: React.FC;
@@ -0,0 +1,17 @@
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
+ }
@@ -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
+ }
@@ -0,0 +1 @@
1
+ export declare const getCaptchaUrl: (host: string) => string;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.1.0-cxmt.0";
1
+ declare const _default: "4.1.0-cxmt.2";
2
2
  export default _default;