@authing/react-ui-components 3.1.10-rc.1 → 3.1.10-rc.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/lib/index.d.ts CHANGED
@@ -361,6 +361,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
361
361
  import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
362
362
  import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
363
363
  import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
364
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
364
365
  export enum ApplicationMfaType {
365
366
  SMS = "SMS",
366
367
  EMAIL = "EMAIL"
@@ -437,6 +438,17 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
437
438
  [x: string]: string;
438
439
  };
439
440
  };
441
+ registerTabsConfig: {
442
+ list: string[];
443
+ default: string;
444
+ title: {
445
+ [x: string]: string;
446
+ };
447
+ registerTypeConfig: {
448
+ emailRegisterType?: NewRegisterMethods[];
449
+ phoneRegisterType?: NewRegisterMethods[];
450
+ };
451
+ };
440
452
  qrcodeTabsSettings: QrcodeTabsSettings;
441
453
  loginTabs: {
442
454
  list: string[];
@@ -1173,14 +1185,15 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1173
1185
 
1174
1186
  }
1175
1187
  declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
1176
- import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1188
+ import { User } from 'authing-js-sdk';
1189
+ import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
1177
1190
  export enum CompleteInfoAuthFlowAction {
1178
1191
  Complete = "complete-completion",
1179
1192
  Skip = "skip-completion"
1180
1193
  }
1181
1194
  export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1182
- export const registerSkipMethod: (fnName: 'registerByEmail' | 'registerByPhoneCode', content: any) => Promise<import("authing-js-sdk").User> | undefined;
1183
- export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: 'registerByEmail' | 'registerByPhoneCode', registerContent: any, registerProfile?: any) => Promise<import("authing-js-sdk").User | undefined>;
1195
+ export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
1196
+ export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: RegisterCompleteInfoInitData['businessRequestName'], registerContent: any, registerProfile?: any) => Promise<User | import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any> | undefined>;
1184
1197
 
1185
1198
  }
1186
1199
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
@@ -1292,7 +1305,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1292
1305
  }
1293
1306
  export interface RegisterCompleteInfoInitData {
1294
1307
  content: any;
1295
- businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
1308
+ businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
1296
1309
  }
1297
1310
  export interface CompleteInfoRequest {
1298
1311
  fieldValues: {
@@ -1303,7 +1316,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1303
1316
  }
1304
1317
  export enum OmitCompleteInfo {
1305
1318
  'registerByEmail' = "email",
1306
- 'registerByPhoneCode' = "phone"
1319
+ 'registerByPhoneCode' = "phone",
1320
+ 'registerByEmailCode' = "email"
1307
1321
  }
1308
1322
 
1309
1323
  }
@@ -2337,6 +2351,20 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2337
2351
  }
2338
2352
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2339
2353
 
2354
+ }
2355
+ declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2356
+ import React from 'react';
2357
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2358
+ export interface RegisterWithEmailCodeProps {
2359
+ onRegisterSuccess: Function;
2360
+ onRegisterFailed: Function;
2361
+ onBeforeRegister?: Function;
2362
+ agreements: Agreement[];
2363
+ publicConfig?: ApplicationConfig;
2364
+ registeContext?: any;
2365
+ }
2366
+ export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2367
+
2340
2368
  }
2341
2369
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2342
2370
  import React from 'react';
@@ -2357,14 +2385,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
2357
2385
 
2358
2386
  }
2359
2387
  declare module '@authing/react-ui-components/components/Register/interface' {
2360
- import { RegisterMethods } from 'authing-js-sdk';
2361
- import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
2388
+ import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2362
2389
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2363
2390
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2364
2391
  export interface RegisterConfig extends IG2Config {
2365
2392
  disableRegister?: boolean;
2366
- registerMethods?: RegisterMethods[];
2367
- defaultRegisterMethod?: RegisterMethods;
2393
+ registerMethods?: NewRegisterMethods[];
2394
+ defaultRegisterMethod?: NewRegisterMethods;
2368
2395
  publicKey?: string;
2369
2396
  agreementEnabled?: boolean;
2370
2397
  agreements?: Agreement[];
@@ -2374,7 +2401,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2374
2401
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2375
2402
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
2376
2403
  onRegisterError?: (error: any) => void;
2377
- onRegisterTabChange?: (activeTab: RegisterMethods) => void;
2404
+ onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
2378
2405
  }
2379
2406
  export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
2380
2407
  config?: Partial<RegisterConfig>;
@@ -2404,11 +2431,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2404
2431
  }
2405
2432
  declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
2406
2433
  import { FC } from 'react';
2434
+ import { EmailScene } from 'authing-js-sdk';
2407
2435
  import './style.less';
2408
2436
  import { InputProps } from 'antd/lib/input';
2409
- import { EmailScene } from '@authing/react-ui-components/components/Type/index';
2410
2437
  export interface SendCodeByEmailProps extends InputProps {
2411
- data: string;
2438
+ data?: string;
2412
2439
  form?: any;
2413
2440
  onSendCodeBefore?: any;
2414
2441
  fieldName?: string;
@@ -2476,6 +2503,7 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
2476
2503
  text?: string;
2477
2504
  className?: string;
2478
2505
  onClick?: any;
2506
+ disabled?: boolean;
2479
2507
  }
2480
2508
  const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
2481
2509
  export default _default;
@@ -2559,18 +2587,10 @@ declare module '@authing/react-ui-components/components/Type/index' {
2559
2587
  showChangeLanguage: boolean;
2560
2588
  };
2561
2589
  }
2562
- export enum EmailScene {
2563
- WELCOME_EMAIL = "WELCOME_EMAIL",
2564
- FIRST_CREATED_USER = "FIRST_CREATED_USER",
2565
- REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
2566
- LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
2567
- MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
2568
- INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
2569
- FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
2570
- CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
2571
- RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
2572
- EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
2573
- EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
2590
+ export enum NewRegisterMethods {
2591
+ Email = "email",
2592
+ Phone = "phone",
2593
+ EmailCode = "emailCode"
2574
2594
  }
2575
2595
 
2576
2596
  }
@@ -2659,10 +2679,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
2659
2679
  }
2660
2680
  declare module '@authing/react-ui-components/components/_utils/config/index' {
2661
2681
  /// <reference types="react" />
2662
- import { RegisterMethods } from 'authing-js-sdk';
2663
2682
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2664
2683
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2665
2684
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2685
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2666
2686
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2667
2687
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
2668
2688
  export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
@@ -2675,8 +2695,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2675
2695
  loadingComponent?: import("react").ReactNode;
2676
2696
  openEventsMapping?: boolean | undefined;
2677
2697
  disableRegister?: boolean | undefined;
2678
- registerMethods?: RegisterMethods[] | undefined;
2679
- defaultRegisterMethod?: RegisterMethods | undefined;
2698
+ registerMethods?: NewRegisterMethods[] | undefined;
2699
+ defaultRegisterMethod?: NewRegisterMethods | undefined;
2680
2700
  publicKey?: string | undefined;
2681
2701
  agreementEnabled?: boolean | undefined;
2682
2702
  agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
@@ -2704,6 +2724,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2704
2724
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
2705
2725
  enterpriseConnections?: string[] | undefined;
2706
2726
  qrCodeScanOptions?: {
2727
+ currentDocument?: Document | undefined;
2707
2728
  extIdpConnId?: string | undefined;
2708
2729
  autoExchangeUserInfo?: boolean | undefined;
2709
2730
  size?: {
@@ -2748,16 +2769,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2748
2769
  } | undefined;
2749
2770
  } | undefined;
2750
2771
 
2751
- }
2752
- declare module '@authing/react-ui-components/components/_utils/config' {
2753
- import { IG2Config } from '@authing/react-ui-components/components/Type/index';
2754
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2755
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2756
- export const initConfig: (appId: string, config: Partial<IG2Config>, defaultConfig: IG2Config) => Promise<{
2757
- config: GuardLocalConfig;
2758
- publicConfig: ApplicationConfig;
2759
- }>;
2760
-
2761
2772
  }
2762
2773
  declare module '@authing/react-ui-components/components/_utils/context' {
2763
2774
  import React from 'react';
@@ -2950,9 +2961,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
2950
2961
  declare module '@authing/react-ui-components/components/_utils/index' {
2951
2962
  import { Rule } from 'antd/lib/form';
2952
2963
  import qs from 'qs';
2953
- import { RegisterMethods, User } from 'authing-js-sdk';
2964
+ import { User } from 'authing-js-sdk';
2954
2965
  import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2955
2966
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
2967
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2956
2968
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
2957
2969
  export * from '@authing/react-ui-components/components/_utils/clipboard';
2958
2970
  export const VALIDATE_PATTERN: {
@@ -3013,7 +3025,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3013
3025
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3014
3026
  export const sleep: (delay: number) => Promise<unknown>;
3015
3027
  export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
3016
- export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
3028
+ export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
3017
3029
  export const mailDesensitization: (mail: string) => string;
3018
3030
  export const phoneDesensitization: (phone: string) => string;
3019
3031
  export const getHundreds: (num: number) => number;
@@ -3184,7 +3196,7 @@ declare module '@authing/react-ui-components/components/context/module/context'
3184
3196
 
3185
3197
  }
3186
3198
  declare module '@authing/react-ui-components/components/index' {
3187
- export * from '@authing/react-ui-components/components/_utils/config';
3199
+ export * from '@authing/react-ui-components/components/_utils/config/index';
3188
3200
  export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
3189
3201
  export type { AuthenticationClientOptions } from 'authing-js-sdk';
3190
3202
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
@@ -3201,7 +3213,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3201
3213
 
3202
3214
  }
3203
3215
  declare module '@authing/react-ui-components/components/version/version' {
3204
- const _default: "3.1.10-rc.1";
3216
+ const _default: "3.1.10-rc.4";
3205
3217
  export default _default;
3206
3218
 
3207
3219
  }
@@ -3247,7 +3259,7 @@ declare module '@authing/react-ui-components/config/jest/fileTransform' {
3247
3259
 
3248
3260
  }
3249
3261
  declare module '@authing/react-ui-components/config/modules' {
3250
- export const additionalModulePaths: "" | string[] | null;
3262
+ export const additionalModulePaths: string[] | "" | null;
3251
3263
  export const hasTsConfig: boolean;
3252
3264
  export const webpackAliases: {
3253
3265
  src?: undefined;