@authing/react-ui-components 3.1.19-rc.1 → 3.1.20-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
@@ -378,10 +378,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/ToggleLang/
378
378
 
379
379
  }
380
380
  declare module '@authing/react-ui-components/components/AuthingGuard/api/appConfig' {
381
- import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
381
+ import { Lang, LoginMethods, Protocol, RegisterMethods } 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';
385
384
  export enum ApplicationMfaType {
386
385
  SMS = "SMS",
387
386
  EMAIL = "EMAIL"
@@ -466,8 +465,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
466
465
  [x: string]: string;
467
466
  };
468
467
  registerTypeConfig: {
469
- emailRegisterType?: NewRegisterMethods[];
470
- phoneRegisterType?: NewRegisterMethods[];
468
+ emailRegisterType?: RegisterMethods[];
469
+ phoneRegisterType?: RegisterMethods[];
471
470
  };
472
471
  };
473
472
  qrcodeTabsSettings: QrcodeTabsSettings;
@@ -638,7 +637,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
638
637
 
639
638
  }
640
639
  declare module '@authing/react-ui-components/components/AuthingGuard/constants' {
641
- import { UserConfig, LoginMethods, RegisterMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
640
+ import { UserConfig, LoginMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
642
641
  export const OTP_MFA_CODE = 1635;
643
642
  export const APP_MFA_CODE = 1636;
644
643
  export const NEED_CAPTCHA = 2000;
@@ -651,10 +650,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/constants'
651
650
  ad: string;
652
651
  "wechatmp-qrcode": string;
653
652
  };
654
- export const REGISTER_METHODS_MAP: () => {
655
- email: string;
656
- phone: string;
657
- };
653
+ export const REGISTER_METHODS_MAP: any;
658
654
  export const HIDE_SOCIALS: string[];
659
655
  export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
660
656
  export enum ApplicationMfaType {
@@ -828,7 +824,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
828
824
  }
829
825
  export enum RegisterMethods {
830
826
  Email = "email",
831
- Phone = "phone"
827
+ Phone = "phone",
828
+ EmailCode = "emailCode"
832
829
  }
833
830
  export enum GuardScenes {
834
831
  Login = "login",
@@ -1195,7 +1192,6 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
1195
1192
  /// <reference types="react" />
1196
1193
  interface RotateResetProps {
1197
1194
  onReset: any;
1198
- onFinishCallBack?: any;
1199
1195
  }
1200
1196
  export const RotateReset: (props: RotateResetProps) => JSX.Element;
1201
1197
  export {};
@@ -1209,7 +1205,6 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1209
1205
  }>;
1210
1206
  export const GuardFirstLoginPasswordResetView: React.FC;
1211
1207
  export const GuardForcedPasswordResetView: React.FC;
1212
- export const GuardNoticePasswordResetView: React.FC;
1213
1208
  export const GuardRegisterCompletePasswordView: React.FC;
1214
1209
 
1215
1210
  }
@@ -1335,6 +1330,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1335
1330
  export interface RegisterCompleteInfoInitData {
1336
1331
  content: any;
1337
1332
  businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
1333
+ onRegisterFailed: Function;
1334
+ onRegisterSuccess: Function;
1338
1335
  }
1339
1336
  export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
1340
1337
  isChangeComplete: boolean;
@@ -1680,7 +1677,6 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1680
1677
  MFA = "mfa",
1681
1678
  FORGET_PWD = "forgetPassword",
1682
1679
  FORCED_PASSWORD_RESET = "forcedPasswordReset",
1683
- NOTICE_PASSWORD_RESET = "noticePasswordReset",
1684
1680
  FIRST_LOGIN_PASSWORD = "firstLoginPassword",
1685
1681
  DOWNLOAD_AT = "downloadAT",
1686
1682
  BIND_TOTP = "bindTotp",
@@ -1691,8 +1687,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1691
1687
  RECOVERY_CODE = "recoveryCode",
1692
1688
  SUBMIT_SUCCESS = "submitSuccess",
1693
1689
  IDENTITY_BINDING_ASK = "identityBindingAsk",
1694
- IDENTITY_BINDING = "identityBinding",
1695
- SELF_UNLOCK = "selfUnlock"
1690
+ IDENTITY_BINDING = "identityBinding"
1696
1691
  }
1697
1692
  export interface GuardModuleAction {
1698
1693
  action: string;
@@ -2098,6 +2093,11 @@ declare module '@authing/react-ui-components/components/Login/interface' {
2098
2093
  export interface GuardLoginViewProps extends GuardLoginProps, IG2FCViewProps {
2099
2094
  config: LoginConfig;
2100
2095
  }
2096
+ export interface GuardLoginInitData {
2097
+ specifyDefaultLoginMethod?: LoginMethods;
2098
+ _firstItemInitialValue?: string;
2099
+ _lockMethod?: string;
2100
+ }
2101
2101
  export const getDefaultLoginConfig: () => LoginConfig;
2102
2102
 
2103
2103
  }
@@ -2459,45 +2459,47 @@ declare module '@authing/react-ui-components/components/Register/components/Agre
2459
2459
  export const Agreements: FC<AgreementsProps>;
2460
2460
 
2461
2461
  }
2462
- declare module '@authing/react-ui-components/components/Register/core/WithEmail' {
2462
+ declare module '@authing/react-ui-components/components/Register/core/WithCode' {
2463
2463
  import React from 'react';
2464
2464
  import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2465
- export interface RegisterWithEmailProps {
2465
+ export interface RegisterWithCodeProps {
2466
2466
  onRegisterSuccess: Function;
2467
2467
  onRegisterFailed: Function;
2468
2468
  onBeforeRegister?: Function;
2469
- publicConfig?: ApplicationConfig;
2470
2469
  agreements: Agreement[];
2470
+ publicConfig?: ApplicationConfig;
2471
2471
  registeContext?: any;
2472
+ methods: any[];
2472
2473
  }
2473
- export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2474
+ export const RegisterWithCode: React.FC<RegisterWithCodeProps>;
2474
2475
 
2475
2476
  }
2476
- declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2477
+ declare module '@authing/react-ui-components/components/Register/core/WithEmail' {
2477
2478
  import React from 'react';
2478
2479
  import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2479
- export interface RegisterWithEmailCodeProps {
2480
+ export interface RegisterWithEmailProps {
2480
2481
  onRegisterSuccess: Function;
2481
2482
  onRegisterFailed: Function;
2482
2483
  onBeforeRegister?: Function;
2483
- agreements: Agreement[];
2484
2484
  publicConfig?: ApplicationConfig;
2485
+ agreements: Agreement[];
2485
2486
  registeContext?: any;
2486
2487
  }
2487
- export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2488
+ export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2488
2489
 
2489
2490
  }
2490
- declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2491
+ declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2491
2492
  import React from 'react';
2492
2493
  import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2493
- export interface RegisterWithPhoneProps {
2494
+ export interface RegisterWithEmailCodeProps {
2494
2495
  onRegisterSuccess: Function;
2495
2496
  onRegisterFailed: Function;
2497
+ onBeforeRegister?: Function;
2496
2498
  agreements: Agreement[];
2497
2499
  publicConfig?: ApplicationConfig;
2498
2500
  registeContext?: any;
2499
2501
  }
2500
- export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
2502
+ export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2501
2503
 
2502
2504
  }
2503
2505
  declare module '@authing/react-ui-components/components/Register/index' {
@@ -2506,13 +2508,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
2506
2508
 
2507
2509
  }
2508
2510
  declare module '@authing/react-ui-components/components/Register/interface' {
2509
- import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2510
- import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2511
+ import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
2512
+ import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams, RegisterMethods } from '@authing/react-ui-components/components/index';
2511
2513
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2512
2514
  export interface RegisterConfig extends IG2Config {
2513
2515
  disableRegister?: boolean;
2514
- registerMethods?: NewRegisterMethods[];
2515
- defaultRegisterMethod?: NewRegisterMethods;
2516
+ registerMethods?: RegisterMethods[];
2517
+ defaultRegisterMethod?: RegisterMethods;
2516
2518
  publicKey?: string;
2517
2519
  agreementEnabled?: boolean;
2518
2520
  agreements?: Agreement[];
@@ -2522,7 +2524,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2522
2524
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2523
2525
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
2524
2526
  onRegisterError?: (error: any) => void;
2525
- onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
2527
+ onRegisterTabChange?: (activeTab: RegisterMethods) => void;
2526
2528
  }
2527
2529
  export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
2528
2530
  config?: Partial<RegisterConfig>;
@@ -2536,38 +2538,6 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2536
2538
  declare module '@authing/react-ui-components/components/Register/utils' {
2537
2539
  export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
2538
2540
 
2539
- }
2540
- declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
2541
- /// <reference types="react" />
2542
- export enum InputMethodMap {
2543
- email = "email-code",
2544
- phone = "phone-code"
2545
- }
2546
- export const SelfUnlock: () => JSX.Element;
2547
-
2548
- }
2549
- declare module '@authing/react-ui-components/components/SelfUnlock/index' {
2550
- import React from 'react';
2551
- export const GuardUnlockView: React.FC;
2552
-
2553
- }
2554
- declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
2555
- import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
2556
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
2557
- export interface ForgetPasswordEvents extends IG2Events {
2558
- onPwdEmailSend?: (authClient: AuthenticationClient) => void;
2559
- onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2560
- onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
2561
- onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2562
- onPwdReset?: (authClient: AuthenticationClient) => void;
2563
- onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2564
- }
2565
- export interface ForgetPasswordConfig extends IG2Config {
2566
- }
2567
- export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
2568
- config: Partial<IG2Config>;
2569
- }
2570
-
2571
2541
  }
2572
2542
  declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2573
2543
  import React, { FC } from 'react';
@@ -2752,11 +2722,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
2752
2722
  showChangeLanguage: boolean;
2753
2723
  };
2754
2724
  }
2755
- export enum NewRegisterMethods {
2756
- Email = "email",
2757
- Phone = "phone",
2758
- EmailCode = "emailCode"
2759
- }
2760
2725
  export enum EmailScene {
2761
2726
  WELCOME_EMAIL = "WELCOME_EMAIL",
2762
2727
  FIRST_CREATED_USER = "FIRST_CREATED_USER",
@@ -2768,8 +2733,7 @@ declare module '@authing/react-ui-components/components/Type/index' {
2768
2733
  CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
2769
2734
  RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
2770
2735
  EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
2771
- EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
2772
- SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
2736
+ EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
2773
2737
  }
2774
2738
 
2775
2739
  }
@@ -2869,8 +2833,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2869
2833
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2870
2834
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2871
2835
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2872
- import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2873
2836
  import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
2837
+ import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
2874
2838
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2875
2839
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
2876
2840
  export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
@@ -2884,8 +2848,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2884
2848
  openEventsMapping?: boolean | undefined;
2885
2849
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2886
2850
  disableRegister?: boolean | undefined;
2887
- registerMethods?: NewRegisterMethods[] | undefined;
2888
- defaultRegisterMethod?: NewRegisterMethods | undefined;
2851
+ registerMethods?: RegisterMethods[] | undefined;
2852
+ defaultRegisterMethod?: RegisterMethods | undefined;
2889
2853
  publicKey?: string | undefined;
2890
2854
  agreementEnabled?: boolean | undefined;
2891
2855
  agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
@@ -2895,7 +2859,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2895
2859
  lang: string;
2896
2860
  langRange: string[];
2897
2861
  isHost?: boolean | undefined;
2898
- mode: import("@authing/react-ui-components/components/index").GuardMode;
2862
+ mode: import("@authing/react-ui-components/components/AuthingGuard/types/index").GuardMode;
2899
2863
  clickCloseable: boolean;
2900
2864
  escCloseable: boolean;
2901
2865
  userpool?: string | undefined;
@@ -2906,8 +2870,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2906
2870
  __unAuthFlow__?: boolean | undefined;
2907
2871
  autoRegister?: boolean | undefined;
2908
2872
  disableResetPwd?: boolean | undefined;
2909
- defaultLoginMethod?: import("@authing/react-ui-components/components/index").LoginMethods | undefined;
2910
- loginMethods?: import("@authing/react-ui-components/components/index").LoginMethods[] | undefined;
2873
+ defaultLoginMethod?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods | undefined;
2874
+ loginMethods?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods[] | undefined;
2911
2875
  passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
2912
2876
  socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
2913
2877
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
@@ -3183,7 +3147,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3183
3147
  import { User } from 'authing-js-sdk';
3184
3148
  import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3185
3149
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
3186
- import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
3150
+ import { LoginMethods, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
3187
3151
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
3188
3152
  export * from '@authing/react-ui-components/components/_utils/clipboard';
3189
3153
  export const VALIDATE_PATTERN: {
@@ -3252,12 +3216,19 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3252
3216
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3253
3217
  export const sleep: (delay: number) => Promise<unknown>;
3254
3218
  export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
3255
- export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
3219
+ export const tabSort: (defaultValue: any, tabList: RegisterMethods[]) => RegisterMethods[];
3256
3220
  export const mailDesensitization: (mail: string) => string;
3257
3221
  export const phoneDesensitization: (phone: string) => string;
3258
3222
  export const getHundreds: (num: number) => number;
3259
3223
  export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
3260
3224
  export const getDocumentNode: (node: Node & ParentNode) => Document;
3225
+ export const getLoginTypePipe: (publicConfig: ApplicationConfig, registerMethod: RegisterMethods) => {
3226
+ specifyDefaultLoginMethod: LoginMethods;
3227
+ lockMethod: string;
3228
+ } | {
3229
+ specifyDefaultLoginMethod: LoginMethods;
3230
+ lockMethod?: undefined;
3231
+ } | undefined;
3261
3232
 
3262
3233
  }
3263
3234
  declare module '@authing/react-ui-components/components/_utils/initAppId' {
@@ -3352,7 +3323,6 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
3352
3323
  MFA = 1635,
3353
3324
  ABORT_FLOW = 1699,
3354
3325
  COMPLETE_INFO = 1642,
3355
- UNLOCK = 1643,
3356
3326
  FLOW_END = 1600,
3357
3327
  FIRST_LOGIN_PASSWORD = 1639,
3358
3328
  FORCED_PASSWORD_RESET = 2058
@@ -3452,7 +3422,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3452
3422
 
3453
3423
  }
3454
3424
  declare module '@authing/react-ui-components/components/version/version' {
3455
- const _default: "3.1.19-rc.1";
3425
+ const _default: "3.1.20-rc.2";
3456
3426
  export default _default;
3457
3427
 
3458
3428
  }