@authing/react-ui-components 3.1.10-rc.3 → 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[];
@@ -2373,14 +2385,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
2373
2385
 
2374
2386
  }
2375
2387
  declare module '@authing/react-ui-components/components/Register/interface' {
2376
- import { RegisterMethods } from 'authing-js-sdk';
2377
- 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';
2378
2389
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2379
2390
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2380
2391
  export interface RegisterConfig extends IG2Config {
2381
2392
  disableRegister?: boolean;
2382
- registerMethods?: RegisterMethods[];
2383
- defaultRegisterMethod?: RegisterMethods;
2393
+ registerMethods?: NewRegisterMethods[];
2394
+ defaultRegisterMethod?: NewRegisterMethods;
2384
2395
  publicKey?: string;
2385
2396
  agreementEnabled?: boolean;
2386
2397
  agreements?: Agreement[];
@@ -2390,7 +2401,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2390
2401
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2391
2402
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
2392
2403
  onRegisterError?: (error: any) => void;
2393
- onRegisterTabChange?: (activeTab: RegisterMethods) => void;
2404
+ onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
2394
2405
  }
2395
2406
  export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
2396
2407
  config?: Partial<RegisterConfig>;
@@ -2576,6 +2587,11 @@ declare module '@authing/react-ui-components/components/Type/index' {
2576
2587
  showChangeLanguage: boolean;
2577
2588
  };
2578
2589
  }
2590
+ export enum NewRegisterMethods {
2591
+ Email = "email",
2592
+ Phone = "phone",
2593
+ EmailCode = "emailCode"
2594
+ }
2579
2595
 
2580
2596
  }
2581
2597
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2663,10 +2679,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
2663
2679
  }
2664
2680
  declare module '@authing/react-ui-components/components/_utils/config/index' {
2665
2681
  /// <reference types="react" />
2666
- import { RegisterMethods } from 'authing-js-sdk';
2667
2682
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2668
2683
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2669
2684
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2685
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2670
2686
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2671
2687
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
2672
2688
  export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
@@ -2679,8 +2695,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2679
2695
  loadingComponent?: import("react").ReactNode;
2680
2696
  openEventsMapping?: boolean | undefined;
2681
2697
  disableRegister?: boolean | undefined;
2682
- registerMethods?: RegisterMethods[] | undefined;
2683
- defaultRegisterMethod?: RegisterMethods | undefined;
2698
+ registerMethods?: NewRegisterMethods[] | undefined;
2699
+ defaultRegisterMethod?: NewRegisterMethods | undefined;
2684
2700
  publicKey?: string | undefined;
2685
2701
  agreementEnabled?: boolean | undefined;
2686
2702
  agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
@@ -2708,6 +2724,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2708
2724
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
2709
2725
  enterpriseConnections?: string[] | undefined;
2710
2726
  qrCodeScanOptions?: {
2727
+ currentDocument?: Document | undefined;
2711
2728
  extIdpConnId?: string | undefined;
2712
2729
  autoExchangeUserInfo?: boolean | undefined;
2713
2730
  size?: {
@@ -2752,16 +2769,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2752
2769
  } | undefined;
2753
2770
  } | undefined;
2754
2771
 
2755
- }
2756
- declare module '@authing/react-ui-components/components/_utils/config' {
2757
- import { IG2Config } from '@authing/react-ui-components/components/Type/index';
2758
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2759
- import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2760
- export const initConfig: (appId: string, config: Partial<IG2Config>, defaultConfig: IG2Config) => Promise<{
2761
- config: GuardLocalConfig;
2762
- publicConfig: ApplicationConfig;
2763
- }>;
2764
-
2765
2772
  }
2766
2773
  declare module '@authing/react-ui-components/components/_utils/context' {
2767
2774
  import React from 'react';
@@ -2954,9 +2961,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
2954
2961
  declare module '@authing/react-ui-components/components/_utils/index' {
2955
2962
  import { Rule } from 'antd/lib/form';
2956
2963
  import qs from 'qs';
2957
- import { RegisterMethods, User } from 'authing-js-sdk';
2964
+ import { User } from 'authing-js-sdk';
2958
2965
  import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2959
2966
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
2967
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2960
2968
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
2961
2969
  export * from '@authing/react-ui-components/components/_utils/clipboard';
2962
2970
  export const VALIDATE_PATTERN: {
@@ -3017,7 +3025,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3017
3025
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3018
3026
  export const sleep: (delay: number) => Promise<unknown>;
3019
3027
  export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
3020
- export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
3028
+ export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
3021
3029
  export const mailDesensitization: (mail: string) => string;
3022
3030
  export const phoneDesensitization: (phone: string) => string;
3023
3031
  export const getHundreds: (num: number) => number;
@@ -3188,7 +3196,7 @@ declare module '@authing/react-ui-components/components/context/module/context'
3188
3196
 
3189
3197
  }
3190
3198
  declare module '@authing/react-ui-components/components/index' {
3191
- export * from '@authing/react-ui-components/components/_utils/config';
3199
+ export * from '@authing/react-ui-components/components/_utils/config/index';
3192
3200
  export * from '@authing/react-ui-components/components/_utils/responseManagement/interface';
3193
3201
  export type { AuthenticationClientOptions } from 'authing-js-sdk';
3194
3202
  export * from '@authing/react-ui-components/components/AuthingGuard/types/index';
@@ -3205,7 +3213,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3205
3213
 
3206
3214
  }
3207
3215
  declare module '@authing/react-ui-components/components/version/version' {
3208
- const _default: "3.1.10-rc.3";
3216
+ const _default: "3.1.10-rc.4";
3209
3217
  export default _default;
3210
3218
 
3211
3219
  }
@@ -3251,7 +3259,7 @@ declare module '@authing/react-ui-components/config/jest/fileTransform' {
3251
3259
 
3252
3260
  }
3253
3261
  declare module '@authing/react-ui-components/config/modules' {
3254
- export const additionalModulePaths: "" | string[] | null;
3262
+ export const additionalModulePaths: string[] | "" | null;
3255
3263
  export const hasTsConfig: boolean;
3256
3264
  export const webpackAliases: {
3257
3265
  src?: undefined;