@authing/react-ui-components 4.0.4-alpha.1 → 4.0.4-alpha.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.0.4-alpha.1",
3
+ "version": "4.0.4-alpha.4",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -0,0 +1,5 @@
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>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './styles.less';
3
+ export declare const GuardAccountMergeView: React.FC;
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ import { User } from 'authing-js-sdk';
2
+ export declare const getDisplayName: (user: User) => string;
3
+ export declare const getDisplayNameByEmail: (displayName: string) => string;
@@ -0,0 +1,11 @@
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;
@@ -23,6 +23,10 @@ export interface BackFillMultipleState extends Omit<User, 'id' | 'name' | 'nickn
23
23
  * 回填的账号名称 邮箱/用户名/手机
24
24
  */
25
25
  account: string;
26
+ /**
27
+ * 具体登录方式 way 是tabs页控制 originWay 具体方式
28
+ */
29
+ originWay?: string;
26
30
  }
27
31
  /**
28
32
  * Store instance
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LoginWithWeComQrcode: (props: any) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FormInstance } from 'antd/lib/form';
3
+ import { InputMethod } from 'components/Type';
3
4
  import { BackFillMultipleState, LoginWay } from '../../Guard/core/hooks/useMultipleAccounts';
4
5
  /**
5
6
  * 多账号登录下 账户 & 登录方式自动回填
@@ -14,6 +15,7 @@ declare function useLoginMultipleBackFill(options: {
14
15
  isOnlyInternationSms?: boolean;
15
16
  setAreaCode?: React.Dispatch<React.SetStateAction<string>>;
16
17
  cancelBackfill?: boolean;
18
+ setCurrentMethod?: React.Dispatch<React.SetStateAction<InputMethod>>;
17
19
  }): void;
18
20
  /**
19
21
  * 多账号统一状态管理
@@ -17,7 +17,7 @@ export declare const registerEmailCodeByAxios: (data: {
17
17
  password?: string;
18
18
  postUserInfoPipeline?: boolean;
19
19
  params?: string;
20
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
20
+ }, config?: AxiosRequestConfig) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
21
21
  /**
22
22
  * 短信验证码注册
23
23
  * @param data
@@ -36,7 +36,7 @@ export declare const registerSmsCodeByAxios: (data: {
36
36
  params?: string;
37
37
  context?: string;
38
38
  postUserInfoPipeline?: boolean;
39
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
39
+ }, config?: AxiosRequestConfig) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
40
40
  /**
41
41
  * 邮箱密码注册
42
42
  * @param data
@@ -54,4 +54,4 @@ export declare const registerEmailPasswordByAxios: (data: {
54
54
  params?: string;
55
55
  context?: string;
56
56
  postUserInfoPipeline?: boolean;
57
- }, config?: AxiosRequestConfig<any> | undefined) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
57
+ }, config?: AxiosRequestConfig) => Promise<import("../../_utils/http").AuthingGuardResponse<any>>;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Agreement, ApplicationConfig } from '../../Type/application';
3
+ export interface RegisterWithEmailCodeProps {
4
+ onRegisterSuccess: Function;
5
+ onRegisterFailed: Function;
6
+ onBeforeRegister?: Function;
7
+ agreements: Agreement[];
8
+ publicConfig?: ApplicationConfig;
9
+ registeContext?: any;
10
+ }
11
+ export declare const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Agreement, ApplicationConfig } from '../../Type/application';
3
+ export interface RegisterWithPhoneProps {
4
+ onRegisterSuccess: Function;
5
+ onRegisterFailed: Function;
6
+ agreements: Agreement[];
7
+ publicConfig?: ApplicationConfig;
8
+ registeContext?: any;
9
+ }
10
+ export declare const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.4-alpha.1";
1
+ declare const _default: "4.0.4-alpha.4";
2
2
  export default _default;