@authing/react-ui-components 3.1.18-rc.11 → 3.1.18-rc.14

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,6 +446,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
445
446
  defaultISOType: string;
446
447
  };
447
448
  css: string;
449
+ customLoading?: string;
448
450
  name: string;
449
451
  logo: string;
450
452
  description?: string;
@@ -457,6 +459,17 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
457
459
  [x: string]: string;
458
460
  };
459
461
  };
462
+ registerTabsConfig: {
463
+ list: string[];
464
+ default: string;
465
+ title: {
466
+ [x: string]: string;
467
+ };
468
+ registerTypeConfig: {
469
+ emailRegisterType?: NewRegisterMethods[];
470
+ phoneRegisterType?: NewRegisterMethods[];
471
+ };
472
+ };
460
473
  qrcodeTabsSettings: QrcodeTabsSettings;
461
474
  loginTabs: {
462
475
  list: string[];
@@ -1163,6 +1176,11 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
1163
1176
  oldPassword?: string;
1164
1177
  }) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1165
1178
 
1179
+ }
1180
+ declare module '@authing/react-ui-components/components/ChangePassword/core/completePassword' {
1181
+ import React from 'react';
1182
+ export const CompletePassword: React.FC;
1183
+
1166
1184
  }
1167
1185
  declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
1168
1186
  import React from 'react';
@@ -1177,6 +1195,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
1177
1195
  /// <reference types="react" />
1178
1196
  interface RotateResetProps {
1179
1197
  onReset: any;
1198
+ onFinishCallBack?: any;
1180
1199
  }
1181
1200
  export const RotateReset: (props: RotateResetProps) => JSX.Element;
1182
1201
  export {};
@@ -1190,17 +1209,20 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1190
1209
  }>;
1191
1210
  export const GuardFirstLoginPasswordResetView: React.FC;
1192
1211
  export const GuardForcedPasswordResetView: React.FC;
1212
+ export const GuardNoticePasswordResetView: React.FC;
1213
+ export const GuardRegisterCompletePasswordView: React.FC;
1193
1214
 
1194
1215
  }
1195
1216
  declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
1196
- import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1217
+ import { User } from 'authing-js-sdk';
1218
+ import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
1197
1219
  export enum CompleteInfoAuthFlowAction {
1198
1220
  Complete = "complete-completion",
1199
1221
  Skip = "skip-completion"
1200
1222
  }
1201
1223
  export const authFlow: (action: CompleteInfoAuthFlowAction, data?: CompleteInfoRequest | undefined) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1202
- export const registerSkipMethod: (fnName: 'registerByEmail' | 'registerByPhoneCode', content: any) => Promise<import("authing-js-sdk").User> | undefined;
1203
- export const registerRequest: (action: CompleteInfoAuthFlowAction, registerFnName: 'registerByEmail' | 'registerByPhoneCode', registerContent: any, registerProfile?: any) => Promise<import("authing-js-sdk").User | undefined>;
1224
+ export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
1225
+ 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>;
1204
1226
 
1205
1227
  }
1206
1228
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
@@ -1312,7 +1334,10 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1312
1334
  }
1313
1335
  export interface RegisterCompleteInfoInitData {
1314
1336
  content: any;
1315
- businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
1337
+ businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
1338
+ }
1339
+ export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
1340
+ isChangeComplete: boolean;
1316
1341
  }
1317
1342
  export interface CompleteInfoRequest {
1318
1343
  fieldValues: {
@@ -1323,7 +1348,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1323
1348
  }
1324
1349
  export enum OmitCompleteInfo {
1325
1350
  'registerByEmail' = "email",
1326
- 'registerByPhoneCode' = "phone"
1351
+ 'registerByPhoneCode' = "phone",
1352
+ 'registerByEmailCode' = "email"
1327
1353
  }
1328
1354
 
1329
1355
  }
@@ -1654,16 +1680,19 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1654
1680
  MFA = "mfa",
1655
1681
  FORGET_PWD = "forgetPassword",
1656
1682
  FORCED_PASSWORD_RESET = "forcedPasswordReset",
1683
+ NOTICE_PASSWORD_RESET = "noticePasswordReset",
1657
1684
  FIRST_LOGIN_PASSWORD = "firstLoginPassword",
1658
1685
  DOWNLOAD_AT = "downloadAT",
1659
1686
  BIND_TOTP = "bindTotp",
1660
1687
  ANY_QUESTIONS = "anyQuestions",
1661
1688
  LOGIN_COMPLETE_INFO = "loginCompleteInfo",
1689
+ REGISTER_PASSWORD = "registerPassword",
1662
1690
  REGISTER_COMPLETE_INFO = "registerCompleteInfo",
1663
1691
  RECOVERY_CODE = "recoveryCode",
1664
1692
  SUBMIT_SUCCESS = "submitSuccess",
1665
1693
  IDENTITY_BINDING_ASK = "identityBindingAsk",
1666
- IDENTITY_BINDING = "identityBinding"
1694
+ IDENTITY_BINDING = "identityBinding",
1695
+ SELF_UNLOCK = "selfUnlock"
1667
1696
  }
1668
1697
  export interface GuardModuleAction {
1669
1698
  action: string;
@@ -2442,6 +2471,20 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2442
2471
  }
2443
2472
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2444
2473
 
2474
+ }
2475
+ declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2476
+ import React from 'react';
2477
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2478
+ export interface RegisterWithEmailCodeProps {
2479
+ onRegisterSuccess: Function;
2480
+ onRegisterFailed: Function;
2481
+ onBeforeRegister?: Function;
2482
+ agreements: Agreement[];
2483
+ publicConfig?: ApplicationConfig;
2484
+ registeContext?: any;
2485
+ }
2486
+ export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2487
+
2445
2488
  }
2446
2489
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2447
2490
  import React from 'react';
@@ -2462,14 +2505,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
2462
2505
 
2463
2506
  }
2464
2507
  declare module '@authing/react-ui-components/components/Register/interface' {
2465
- import { RegisterMethods } from 'authing-js-sdk';
2466
- import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
2508
+ import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2467
2509
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2468
2510
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2469
2511
  export interface RegisterConfig extends IG2Config {
2470
2512
  disableRegister?: boolean;
2471
- registerMethods?: RegisterMethods[];
2472
- defaultRegisterMethod?: RegisterMethods;
2513
+ registerMethods?: NewRegisterMethods[];
2514
+ defaultRegisterMethod?: NewRegisterMethods;
2473
2515
  publicKey?: string;
2474
2516
  agreementEnabled?: boolean;
2475
2517
  agreements?: Agreement[];
@@ -2479,7 +2521,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2479
2521
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2480
2522
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
2481
2523
  onRegisterError?: (error: any) => void;
2482
- onRegisterTabChange?: (activeTab: RegisterMethods) => void;
2524
+ onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
2483
2525
  }
2484
2526
  export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
2485
2527
  config?: Partial<RegisterConfig>;
@@ -2493,6 +2535,38 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2493
2535
  declare module '@authing/react-ui-components/components/Register/utils' {
2494
2536
  export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
2495
2537
 
2538
+ }
2539
+ declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
2540
+ /// <reference types="react" />
2541
+ export enum InputMethodMap {
2542
+ email = "email-code",
2543
+ phone = "phone-code"
2544
+ }
2545
+ export const SelfUnlock: () => JSX.Element;
2546
+
2547
+ }
2548
+ declare module '@authing/react-ui-components/components/SelfUnlock/index' {
2549
+ import React from 'react';
2550
+ export const GuardUnlockView: React.FC;
2551
+
2552
+ }
2553
+ declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
2554
+ import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
2555
+ import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
2556
+ export interface ForgetPasswordEvents extends IG2Events {
2557
+ onPwdEmailSend?: (authClient: AuthenticationClient) => void;
2558
+ onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2559
+ onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
2560
+ onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2561
+ onPwdReset?: (authClient: AuthenticationClient) => void;
2562
+ onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2563
+ }
2564
+ export interface ForgetPasswordConfig extends IG2Config {
2565
+ }
2566
+ export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
2567
+ config: Partial<IG2Config>;
2568
+ }
2569
+
2496
2570
  }
2497
2571
  declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2498
2572
  import React, { FC } from 'react';
@@ -2509,11 +2583,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2509
2583
  }
2510
2584
  declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
2511
2585
  import { FC } from 'react';
2512
- import { EmailScene } from 'authing-js-sdk';
2513
2586
  import './style.less';
2514
2587
  import { InputProps } from 'antd/lib/input';
2588
+ import { EmailScene } from '@authing/react-ui-components/components/Type/index';
2515
2589
  export interface SendCodeByEmailProps extends InputProps {
2516
- data: string;
2590
+ data?: string;
2517
2591
  form?: any;
2518
2592
  onSendCodeBefore?: any;
2519
2593
  fieldName?: string;
@@ -2581,6 +2655,7 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
2581
2655
  text?: string;
2582
2656
  className?: string;
2583
2657
  onClick?: any;
2658
+ disabled?: boolean;
2584
2659
  }
2585
2660
  const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
2586
2661
  export default _default;
@@ -2676,6 +2751,25 @@ declare module '@authing/react-ui-components/components/Type/index' {
2676
2751
  showChangeLanguage: boolean;
2677
2752
  };
2678
2753
  }
2754
+ export enum NewRegisterMethods {
2755
+ Email = "email",
2756
+ Phone = "phone",
2757
+ EmailCode = "emailCode"
2758
+ }
2759
+ export enum EmailScene {
2760
+ WELCOME_EMAIL = "WELCOME_EMAIL",
2761
+ FIRST_CREATED_USER = "FIRST_CREATED_USER",
2762
+ REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
2763
+ LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
2764
+ MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
2765
+ INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
2766
+ FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
2767
+ CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
2768
+ RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
2769
+ EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
2770
+ EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
2771
+ SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
2772
+ }
2679
2773
 
2680
2774
  }
2681
2775
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2704,6 +2798,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2704
2798
  form?: FormInstance;
2705
2799
  checkRepeat?: boolean;
2706
2800
  areaCode?: string;
2801
+ isCheckI18nSms?: boolean;
2707
2802
  }
2708
2803
  export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
2709
2804
  form?: FormInstance;
@@ -2770,10 +2865,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
2770
2865
  }
2771
2866
  declare module '@authing/react-ui-components/components/_utils/config/index' {
2772
2867
  /// <reference types="react" />
2773
- import { RegisterMethods } from 'authing-js-sdk';
2774
2868
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2775
2869
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2776
2870
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2871
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2777
2872
  import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
2778
2873
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2779
2874
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
@@ -2788,8 +2883,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2788
2883
  openEventsMapping?: boolean | undefined;
2789
2884
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2790
2885
  disableRegister?: boolean | undefined;
2791
- registerMethods?: RegisterMethods[] | undefined;
2792
- defaultRegisterMethod?: RegisterMethods | undefined;
2886
+ registerMethods?: NewRegisterMethods[] | undefined;
2887
+ defaultRegisterMethod?: NewRegisterMethods | undefined;
2793
2888
  publicKey?: string | undefined;
2794
2889
  agreementEnabled?: boolean | undefined;
2795
2890
  agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
@@ -2817,7 +2912,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2817
2912
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
2818
2913
  enterpriseConnections?: string[] | undefined;
2819
2914
  qrCodeScanOptions?: {
2820
- currentDocument?: Document | undefined;
2821
2915
  extIdpConnId?: string | undefined;
2822
2916
  autoExchangeUserInfo?: boolean | undefined;
2823
2917
  size?: {
@@ -3083,9 +3177,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
3083
3177
  declare module '@authing/react-ui-components/components/_utils/index' {
3084
3178
  import { Rule } from 'antd/lib/form';
3085
3179
  import qs from 'qs';
3086
- import { RegisterMethods, User } from 'authing-js-sdk';
3180
+ import { User } from 'authing-js-sdk';
3087
3181
  import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3088
3182
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
3183
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
3089
3184
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
3090
3185
  export * from '@authing/react-ui-components/components/_utils/clipboard';
3091
3186
  export const VALIDATE_PATTERN: {
@@ -3128,6 +3223,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3128
3223
  export const isXiaomiBrowser: () => boolean | null;
3129
3224
  export const isDingtalkBrowser: () => boolean | null;
3130
3225
  export const isQQBrowser: () => boolean | null;
3226
+ export const isQQBuiltInBrowser: () => boolean | null;
3227
+ export const isWeWorkBuiltInBrowser: () => boolean | null;
3131
3228
  export const isEdgeBrowser: () => boolean;
3132
3229
  export const isWeiboBrowser: () => boolean | null;
3133
3230
  export const isAlipayBrowser: () => boolean | null;
@@ -3152,7 +3249,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3152
3249
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3153
3250
  export const sleep: (delay: number) => Promise<unknown>;
3154
3251
  export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
3155
- export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
3252
+ export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
3156
3253
  export const mailDesensitization: (mail: string) => string;
3157
3254
  export const phoneDesensitization: (phone: string) => string;
3158
3255
  export const getHundreds: (num: number) => number;
@@ -3252,6 +3349,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
3252
3349
  MFA = 1635,
3253
3350
  ABORT_FLOW = 1699,
3254
3351
  COMPLETE_INFO = 1642,
3352
+ UNLOCK = 1643,
3255
3353
  FLOW_END = 1600,
3256
3354
  FIRST_LOGIN_PASSWORD = 1639,
3257
3355
  FORCED_PASSWORD_RESET = 2058
@@ -3351,7 +3449,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3351
3449
 
3352
3450
  }
3353
3451
  declare module '@authing/react-ui-components/components/version/version' {
3354
- const _default: "3.1.16-beta.0";
3452
+ const _default: "3.1.18-rc.14";
3355
3453
  export default _default;
3356
3454
 
3357
3455
  }