@authing/react-ui-components 3.1.14-rc.1 → 3.1.15-rc.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/lib/index.d.ts CHANGED
@@ -381,6 +381,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
381
381
  import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
382
382
  import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
383
383
  import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
384
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
384
385
  export enum ApplicationMfaType {
385
386
  SMS = "SMS",
386
387
  EMAIL = "EMAIL"
@@ -445,7 +446,6 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
445
446
  defaultISOType: string;
446
447
  };
447
448
  css: string;
448
- customLoading?: string;
449
449
  name: string;
450
450
  logo: string;
451
451
  description?: string;
@@ -458,6 +458,17 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
458
458
  [x: string]: string;
459
459
  };
460
460
  };
461
+ registerTabsConfig: {
462
+ list: string[];
463
+ default: string;
464
+ title: {
465
+ [x: string]: string;
466
+ };
467
+ registerTypeConfig: {
468
+ emailRegisterType?: NewRegisterMethods[];
469
+ phoneRegisterType?: NewRegisterMethods[];
470
+ };
471
+ };
461
472
  qrcodeTabsSettings: QrcodeTabsSettings;
462
473
  loginTabs: {
463
474
  list: string[];
@@ -1194,14 +1205,15 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1194
1205
 
1195
1206
  }
1196
1207
  declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
1197
- import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1208
+ import { User } from 'authing-js-sdk';
1209
+ import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
1198
1210
  export enum CompleteInfoAuthFlowAction {
1199
1211
  Complete = "complete-completion",
1200
1212
  Skip = "skip-completion"
1201
1213
  }
1202
1214
  export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1203
- export const registerSkipMethod: (fnName: 'registerByEmail' | 'registerByPhoneCode', content: any) => Promise<import("authing-js-sdk").User> | undefined;
1204
- export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: 'registerByEmail' | 'registerByPhoneCode', registerContent: any, registerProfile?: any) => Promise<import("authing-js-sdk").User | undefined>;
1215
+ export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
1216
+ 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>;
1205
1217
 
1206
1218
  }
1207
1219
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
@@ -1313,7 +1325,7 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1313
1325
  }
1314
1326
  export interface RegisterCompleteInfoInitData {
1315
1327
  content: any;
1316
- businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
1328
+ businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
1317
1329
  }
1318
1330
  export interface CompleteInfoRequest {
1319
1331
  fieldValues: {
@@ -1324,7 +1336,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1324
1336
  }
1325
1337
  export enum OmitCompleteInfo {
1326
1338
  'registerByEmail' = "email",
1327
- 'registerByPhoneCode' = "phone"
1339
+ 'registerByPhoneCode' = "phone",
1340
+ 'registerByEmailCode' = "email"
1328
1341
  }
1329
1342
 
1330
1343
  }
@@ -2393,6 +2406,20 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2393
2406
  }
2394
2407
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2395
2408
 
2409
+ }
2410
+ declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2411
+ import React from 'react';
2412
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2413
+ export interface RegisterWithEmailCodeProps {
2414
+ onRegisterSuccess: Function;
2415
+ onRegisterFailed: Function;
2416
+ onBeforeRegister?: Function;
2417
+ agreements: Agreement[];
2418
+ publicConfig?: ApplicationConfig;
2419
+ registeContext?: any;
2420
+ }
2421
+ export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2422
+
2396
2423
  }
2397
2424
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2398
2425
  import React from 'react';
@@ -2413,14 +2440,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
2413
2440
 
2414
2441
  }
2415
2442
  declare module '@authing/react-ui-components/components/Register/interface' {
2416
- import { RegisterMethods } from 'authing-js-sdk';
2417
- import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
2443
+ import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2418
2444
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2419
2445
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2420
2446
  export interface RegisterConfig extends IG2Config {
2421
2447
  disableRegister?: boolean;
2422
- registerMethods?: RegisterMethods[];
2423
- defaultRegisterMethod?: RegisterMethods;
2448
+ registerMethods?: NewRegisterMethods[];
2449
+ defaultRegisterMethod?: NewRegisterMethods;
2424
2450
  publicKey?: string;
2425
2451
  agreementEnabled?: boolean;
2426
2452
  agreements?: Agreement[];
@@ -2430,7 +2456,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2430
2456
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2431
2457
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
2432
2458
  onRegisterError?: (error: any) => void;
2433
- onRegisterTabChange?: (activeTab: RegisterMethods) => void;
2459
+ onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
2434
2460
  }
2435
2461
  export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
2436
2462
  config?: Partial<RegisterConfig>;
@@ -2460,11 +2486,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2460
2486
  }
2461
2487
  declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
2462
2488
  import { FC } from 'react';
2463
- import { EmailScene } from 'authing-js-sdk';
2464
2489
  import './style.less';
2465
2490
  import { InputProps } from 'antd/lib/input';
2491
+ import { EmailScene } from '@authing/react-ui-components/components/Type/index';
2466
2492
  export interface SendCodeByEmailProps extends InputProps {
2467
- data: string;
2493
+ data?: string;
2468
2494
  form?: any;
2469
2495
  onSendCodeBefore?: any;
2470
2496
  fieldName?: string;
@@ -2627,6 +2653,24 @@ declare module '@authing/react-ui-components/components/Type/index' {
2627
2653
  showChangeLanguage: boolean;
2628
2654
  };
2629
2655
  }
2656
+ export enum NewRegisterMethods {
2657
+ Email = "email",
2658
+ Phone = "phone",
2659
+ EmailCode = "emailCode"
2660
+ }
2661
+ export enum EmailScene {
2662
+ WELCOME_EMAIL = "WELCOME_EMAIL",
2663
+ FIRST_CREATED_USER = "FIRST_CREATED_USER",
2664
+ REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
2665
+ LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
2666
+ MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
2667
+ INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
2668
+ FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
2669
+ CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
2670
+ RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
2671
+ EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
2672
+ EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
2673
+ }
2630
2674
 
2631
2675
  }
2632
2676
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2655,7 +2699,6 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2655
2699
  form?: FormInstance;
2656
2700
  checkRepeat?: boolean;
2657
2701
  areaCode?: string;
2658
- isCheckI18nSms?: boolean;
2659
2702
  }
2660
2703
  export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
2661
2704
  form?: FormInstance;
@@ -2722,10 +2765,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
2722
2765
  }
2723
2766
  declare module '@authing/react-ui-components/components/_utils/config/index' {
2724
2767
  /// <reference types="react" />
2725
- import { RegisterMethods } from 'authing-js-sdk';
2726
2768
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2727
2769
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2728
2770
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2771
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2729
2772
  import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
2730
2773
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2731
2774
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
@@ -2741,8 +2784,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2741
2784
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2742
2785
  authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
2743
2786
  disableRegister?: boolean | undefined;
2744
- registerMethods?: RegisterMethods[] | undefined;
2745
- defaultRegisterMethod?: RegisterMethods | undefined;
2787
+ registerMethods?: NewRegisterMethods[] | undefined;
2788
+ defaultRegisterMethod?: NewRegisterMethods | undefined;
2746
2789
  publicKey?: string | undefined;
2747
2790
  agreementEnabled?: boolean | undefined;
2748
2791
  agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
@@ -3027,9 +3070,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
3027
3070
  declare module '@authing/react-ui-components/components/_utils/index' {
3028
3071
  import { Rule } from 'antd/lib/form';
3029
3072
  import qs from 'qs';
3030
- import { RegisterMethods, User } from 'authing-js-sdk';
3073
+ import { User } from 'authing-js-sdk';
3031
3074
  import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3032
3075
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
3076
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
3033
3077
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
3034
3078
  export * from '@authing/react-ui-components/components/_utils/clipboard';
3035
3079
  export const VALIDATE_PATTERN: {
@@ -3072,8 +3116,6 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3072
3116
  export const isXiaomiBrowser: () => boolean | null;
3073
3117
  export const isDingtalkBrowser: () => boolean | null;
3074
3118
  export const isQQBrowser: () => boolean | null;
3075
- export const isQQBuiltInBrowser: () => boolean | null;
3076
- export const isWeWorkBuiltInBrowser: () => boolean | null;
3077
3119
  export const isSpecialBrowser: () => boolean | null;
3078
3120
  export const assembledAppHost: (identifier: string, host: string) => string;
3079
3121
  export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
@@ -3092,7 +3134,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3092
3134
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3093
3135
  export const sleep: (delay: number) => Promise<unknown>;
3094
3136
  export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
3095
- export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
3137
+ export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
3096
3138
  export const mailDesensitization: (mail: string) => string;
3097
3139
  export const phoneDesensitization: (phone: string) => string;
3098
3140
  export const getHundreds: (num: number) => number;
@@ -3281,7 +3323,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3281
3323
 
3282
3324
  }
3283
3325
  declare module '@authing/react-ui-components/components/version/version' {
3284
- const _default: "3.1.14-rc.1";
3326
+ const _default: "3.1.15-rc.2";
3285
3327
  export default _default;
3286
3328
 
3287
3329
  }