@authing/react-ui-components 4.0.4-alpha.2 → 4.0.4-hep.0

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.2",
3
+ "version": "4.0.4-hep.0",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "typings": "types/index.d.ts",
@@ -9,3 +9,4 @@ export declare const GuardCompleteInfo: React.FC<{
9
9
  }>;
10
10
  export declare const GuardLoginCompleteInfoView: React.FC;
11
11
  export declare const GuardRegisterCompleteInfoView: React.FC;
12
+ export declare const GuardAccountMergeCompleteInfoView: React.FC;
@@ -7,19 +7,21 @@ export interface CompleteInfoEvents extends IG2Events {
7
7
  onRegisterInfoCompleted?: (user: User, udfs: {
8
8
  definition: any;
9
9
  value: any;
10
- }[], authClient: AuthenticationClient) => void;
10
+ }[], authClient: AuthenticationClient, opts?: {
11
+ phone?: string;
12
+ canMergeUser?: boolean;
13
+ }) => void;
11
14
  onRegisterInfoCompletedError?: (error: CommonMessage, udfs: {
12
15
  definition: any;
13
16
  value: any;
14
17
  }[], authClient: AuthenticationClient) => void;
18
+ onAccountMergeCompleteInfo?: (user: User) => void;
15
19
  }
16
20
  export interface GuardCompleteInfoProps extends IG2FCProps, CompleteInfoEvents {
17
21
  config: Partial<CompleteInfoConfig>;
18
22
  }
19
23
  export interface GuardCompleteInfoViewProps extends GuardCompleteInfoProps {
20
24
  config: CompleteInfoConfig;
21
- initData: any;
22
- onLogin?: any;
23
25
  }
24
26
  export declare type ExtendsFieldType = 'user' | 'internal';
25
27
  export interface ExtendsField {
@@ -52,6 +54,7 @@ export interface CompleteInfoMetaData {
52
54
  name: string;
53
55
  required: boolean;
54
56
  validateRules: CompleteInfoRule[];
57
+ checkUnique?: boolean;
55
58
  options?: CompleteInfoSelectOption[];
56
59
  }
57
60
  export declare enum CompleteInfoBaseControls {
@@ -63,14 +66,15 @@ export declare enum CompleteInfoExtendsControls {
63
66
  IMAGE = "image",
64
67
  NUMBER = "number",
65
68
  DATE = "date",
66
- DATE_TIME = "dateTime",
69
+ DATE_TIME = "datetime",
67
70
  SELECT = "select",
68
71
  DROPDOWN = "dropdown",
69
72
  BOOLEAN = "boolean",
70
73
  STRING = "string",
71
74
  TEXT = "text",
72
75
  GENDER = "gender",
73
- COUNTRY = "country"
76
+ COUNTRY = "country",
77
+ TREE = "tree"
74
78
  }
75
79
  export interface CompleteInfoInitData {
76
80
  skip: boolean;
@@ -14,10 +14,12 @@ export declare enum GuardModuleType {
14
14
  LOGIN_COMPLETE_INFO = "loginCompleteInfo",
15
15
  REGISTER_PASSWORD = "registerPassword",
16
16
  REGISTER_COMPLETE_INFO = "registerCompleteInfo",
17
+ CUSTOM_COMPLETE_INFO = "customCompleteInfo",
17
18
  RECOVERY_CODE = "recoveryCode",
18
19
  SUBMIT_SUCCESS = "submitSuccess",
19
20
  IDENTITY_BINDING_ASK = "identityBindingAsk",
20
21
  IDENTITY_BINDING = "identityBinding",
22
+ ACCOUNT_MERGE = "accountMerge",
21
23
  SELF_UNLOCK = "selfUnlock"
22
24
  }
23
25
  export interface GuardModuleAction {
@@ -29,6 +29,7 @@ export interface GuardMFAInitData {
29
29
  nickme?: string;
30
30
  username?: string;
31
31
  current?: MFAType;
32
+ thirdPartyOrigin?: boolean;
32
33
  }
33
34
  export interface GuardMFAProps extends IG2FCProps, MFAEvents {
34
35
  config: Partial<MFAConfig>;
@@ -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>>;
@@ -251,6 +251,9 @@ export interface ApplicationConfig {
251
251
  verifyCodeLength: number;
252
252
  websocket: string;
253
253
  welcomeMessage: any;
254
+ userPortal?: {
255
+ mergeAccount?: boolean;
256
+ };
254
257
  skipComplateFileds: boolean;
255
258
  selfUnlockStrategy: 'captcha' | 'password-captcha';
256
259
  defaultLanguageConfig: Lang;
@@ -28,10 +28,6 @@ export declare const parsePhone: (isInternationSms: boolean, fieldValue: string,
28
28
  countryCode: string | undefined;
29
29
  phoneNumber: string;
30
30
  };
31
- export declare enum SocialConnectionEvent {
32
- Message = "message",
33
- Auth = "auth"
34
- }
35
31
  /**
36
32
  *
37
33
  * @param config
@@ -3,5 +3,6 @@ import { Lang } from '../../Type';
3
3
  export interface InitGuardI18nOptions {
4
4
  defaultLanguage?: Lang | 'browser';
5
5
  }
6
- export declare const initGuardI18n: (options: InitGuardI18nOptions) => void;
6
+ export declare const fallbackLng: (code?: string) => string[];
7
+ export declare const initGuardI18n: (options: InitGuardI18nOptions, callback: React.Dispatch<React.SetStateAction<boolean>>) => Promise<void>;
7
8
  export { i18n };
@@ -15,6 +15,7 @@ export declare enum ApiCode {
15
15
  FLOW_END = 1600,
16
16
  FIRST_LOGIN_PASSWORD = 1639,
17
17
  FORCED_PASSWORD_RESET = 2058,
18
+ ACCOUNT_MERGE = 10000,
18
19
  UNSAFE_PASSWORD_TIP = 2061,
19
20
  UNSAFE_PASSWORD_RESET = 2071
20
21
  }
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.4-alpha.2";
1
+ declare const _default: "4.0.4-hep.0";
2
2
  export default _default;