@authing/react-ui-components 3.1.18-rc.11 → 3.1.18-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,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';
@@ -1190,17 +1208,19 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1190
1208
  }>;
1191
1209
  export const GuardFirstLoginPasswordResetView: React.FC;
1192
1210
  export const GuardForcedPasswordResetView: React.FC;
1211
+ export const GuardRegisterCompletePasswordView: React.FC;
1193
1212
 
1194
1213
  }
1195
1214
  declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
1196
- import { CompleteInfoRequest } from '@authing/react-ui-components/components/CompleteInfo/interface';
1215
+ import { User } from 'authing-js-sdk';
1216
+ import { CompleteInfoRequest, RegisterCompleteInfoInitData } from '@authing/react-ui-components/components/CompleteInfo/interface';
1197
1217
  export enum CompleteInfoAuthFlowAction {
1198
1218
  Complete = "complete-completion",
1199
1219
  Skip = "skip-completion"
1200
1220
  }
1201
1221
  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>;
1222
+ export const registerSkipMethod: (fnName: RegisterCompleteInfoInitData['businessRequestName'], content: any) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>> | Promise<User> | undefined;
1223
+ 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
1224
 
1205
1225
  }
1206
1226
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
@@ -1312,7 +1332,10 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1312
1332
  }
1313
1333
  export interface RegisterCompleteInfoInitData {
1314
1334
  content: any;
1315
- businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
1335
+ businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
1336
+ }
1337
+ export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
1338
+ isChangeComplete: boolean;
1316
1339
  }
1317
1340
  export interface CompleteInfoRequest {
1318
1341
  fieldValues: {
@@ -1323,7 +1346,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1323
1346
  }
1324
1347
  export enum OmitCompleteInfo {
1325
1348
  'registerByEmail' = "email",
1326
- 'registerByPhoneCode' = "phone"
1349
+ 'registerByPhoneCode' = "phone",
1350
+ 'registerByEmailCode' = "email"
1327
1351
  }
1328
1352
 
1329
1353
  }
@@ -1659,6 +1683,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1659
1683
  BIND_TOTP = "bindTotp",
1660
1684
  ANY_QUESTIONS = "anyQuestions",
1661
1685
  LOGIN_COMPLETE_INFO = "loginCompleteInfo",
1686
+ REGISTER_PASSWORD = "registerPassword",
1662
1687
  REGISTER_COMPLETE_INFO = "registerCompleteInfo",
1663
1688
  RECOVERY_CODE = "recoveryCode",
1664
1689
  SUBMIT_SUCCESS = "submitSuccess",
@@ -2442,6 +2467,20 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2442
2467
  }
2443
2468
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2444
2469
 
2470
+ }
2471
+ declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2472
+ import React from 'react';
2473
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2474
+ export interface RegisterWithEmailCodeProps {
2475
+ onRegisterSuccess: Function;
2476
+ onRegisterFailed: Function;
2477
+ onBeforeRegister?: Function;
2478
+ agreements: Agreement[];
2479
+ publicConfig?: ApplicationConfig;
2480
+ registeContext?: any;
2481
+ }
2482
+ export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2483
+
2445
2484
  }
2446
2485
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2447
2486
  import React from 'react';
@@ -2462,14 +2501,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
2462
2501
 
2463
2502
  }
2464
2503
  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';
2504
+ import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2467
2505
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2468
2506
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2469
2507
  export interface RegisterConfig extends IG2Config {
2470
2508
  disableRegister?: boolean;
2471
- registerMethods?: RegisterMethods[];
2472
- defaultRegisterMethod?: RegisterMethods;
2509
+ registerMethods?: NewRegisterMethods[];
2510
+ defaultRegisterMethod?: NewRegisterMethods;
2473
2511
  publicKey?: string;
2474
2512
  agreementEnabled?: boolean;
2475
2513
  agreements?: Agreement[];
@@ -2479,7 +2517,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2479
2517
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2480
2518
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
2481
2519
  onRegisterError?: (error: any) => void;
2482
- onRegisterTabChange?: (activeTab: RegisterMethods) => void;
2520
+ onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
2483
2521
  }
2484
2522
  export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
2485
2523
  config?: Partial<RegisterConfig>;
@@ -2509,11 +2547,11 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2509
2547
  }
2510
2548
  declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail' {
2511
2549
  import { FC } from 'react';
2512
- import { EmailScene } from 'authing-js-sdk';
2513
2550
  import './style.less';
2514
2551
  import { InputProps } from 'antd/lib/input';
2552
+ import { EmailScene } from '@authing/react-ui-components/components/Type/index';
2515
2553
  export interface SendCodeByEmailProps extends InputProps {
2516
- data: string;
2554
+ data?: string;
2517
2555
  form?: any;
2518
2556
  onSendCodeBefore?: any;
2519
2557
  fieldName?: string;
@@ -2581,6 +2619,7 @@ declare module '@authing/react-ui-components/components/SubmitButton/index' {
2581
2619
  text?: string;
2582
2620
  className?: string;
2583
2621
  onClick?: any;
2622
+ disabled?: boolean;
2584
2623
  }
2585
2624
  const _default: React.ForwardRefExoticComponent<SubmitButtonProps & React.RefAttributes<unknown>>;
2586
2625
  export default _default;
@@ -2676,6 +2715,24 @@ declare module '@authing/react-ui-components/components/Type/index' {
2676
2715
  showChangeLanguage: boolean;
2677
2716
  };
2678
2717
  }
2718
+ export enum NewRegisterMethods {
2719
+ Email = "email",
2720
+ Phone = "phone",
2721
+ EmailCode = "emailCode"
2722
+ }
2723
+ export enum EmailScene {
2724
+ WELCOME_EMAIL = "WELCOME_EMAIL",
2725
+ FIRST_CREATED_USER = "FIRST_CREATED_USER",
2726
+ REGISTER_VERIFY_CODE = "REGISTER_VERIFY_CODE",
2727
+ LOGIN_VERIFY_CODE = "LOGIN_VERIFY_CODE",
2728
+ MFA_VERIFY_CODE = "MFA_VERIFY_CODE",
2729
+ INFORMATION_COMPLETION_VERIFY_CODE = "INFORMATION_COMPLETION_VERIFY_CODE",
2730
+ FIRST_EMAIL_LOGIN_VERIFY = "FIRST_EMAIL_LOGIN_VERIFY",
2731
+ CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
2732
+ RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
2733
+ EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
2734
+ EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
2735
+ }
2679
2736
 
2680
2737
  }
2681
2738
  declare module '@authing/react-ui-components/components/ValidatorRules/PasswordFormItem' {
@@ -2704,6 +2761,7 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
2704
2761
  form?: FormInstance;
2705
2762
  checkRepeat?: boolean;
2706
2763
  areaCode?: string;
2764
+ isCheckI18nSms?: boolean;
2707
2765
  }
2708
2766
  export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
2709
2767
  form?: FormInstance;
@@ -2770,10 +2828,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
2770
2828
  }
2771
2829
  declare module '@authing/react-ui-components/components/_utils/config/index' {
2772
2830
  /// <reference types="react" />
2773
- import { RegisterMethods } from 'authing-js-sdk';
2774
2831
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2775
2832
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2776
2833
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2834
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2777
2835
  import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
2778
2836
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2779
2837
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
@@ -2788,8 +2846,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2788
2846
  openEventsMapping?: boolean | undefined;
2789
2847
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2790
2848
  disableRegister?: boolean | undefined;
2791
- registerMethods?: RegisterMethods[] | undefined;
2792
- defaultRegisterMethod?: RegisterMethods | undefined;
2849
+ registerMethods?: NewRegisterMethods[] | undefined;
2850
+ defaultRegisterMethod?: NewRegisterMethods | undefined;
2793
2851
  publicKey?: string | undefined;
2794
2852
  agreementEnabled?: boolean | undefined;
2795
2853
  agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
@@ -2817,7 +2875,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2817
2875
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
2818
2876
  enterpriseConnections?: string[] | undefined;
2819
2877
  qrCodeScanOptions?: {
2820
- currentDocument?: Document | undefined;
2821
2878
  extIdpConnId?: string | undefined;
2822
2879
  autoExchangeUserInfo?: boolean | undefined;
2823
2880
  size?: {
@@ -3083,9 +3140,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
3083
3140
  declare module '@authing/react-ui-components/components/_utils/index' {
3084
3141
  import { Rule } from 'antd/lib/form';
3085
3142
  import qs from 'qs';
3086
- import { RegisterMethods, User } from 'authing-js-sdk';
3143
+ import { User } from 'authing-js-sdk';
3087
3144
  import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3088
3145
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
3146
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
3089
3147
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
3090
3148
  export * from '@authing/react-ui-components/components/_utils/clipboard';
3091
3149
  export const VALIDATE_PATTERN: {
@@ -3128,6 +3186,8 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3128
3186
  export const isXiaomiBrowser: () => boolean | null;
3129
3187
  export const isDingtalkBrowser: () => boolean | null;
3130
3188
  export const isQQBrowser: () => boolean | null;
3189
+ export const isQQBuiltInBrowser: () => boolean | null;
3190
+ export const isWeWorkBuiltInBrowser: () => boolean | null;
3131
3191
  export const isEdgeBrowser: () => boolean;
3132
3192
  export const isWeiboBrowser: () => boolean | null;
3133
3193
  export const isAlipayBrowser: () => boolean | null;
@@ -3152,7 +3212,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3152
3212
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3153
3213
  export const sleep: (delay: number) => Promise<unknown>;
3154
3214
  export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
3155
- export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
3215
+ export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
3156
3216
  export const mailDesensitization: (mail: string) => string;
3157
3217
  export const phoneDesensitization: (phone: string) => string;
3158
3218
  export const getHundreds: (num: number) => number;
@@ -3351,7 +3411,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3351
3411
 
3352
3412
  }
3353
3413
  declare module '@authing/react-ui-components/components/version/version' {
3354
- const _default: "3.1.16-beta.0";
3414
+ const _default: "3.1.18-rc.2";
3355
3415
  export default _default;
3356
3416
 
3357
3417
  }