@authing/react-ui-components 3.1.14-rc.4 → 3.1.16-rc.0

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"
@@ -458,6 +459,17 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
458
459
  [x: string]: string;
459
460
  };
460
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
+ };
461
473
  qrcodeTabsSettings: QrcodeTabsSettings;
462
474
  loginTabs: {
463
475
  list: string[];
@@ -1164,6 +1176,11 @@ declare module '@authing/react-ui-components/components/ChangePassword/businessR
1164
1176
  oldPassword?: string;
1165
1177
  }) => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<any>>;
1166
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
+
1167
1184
  }
1168
1185
  declare module '@authing/react-ui-components/components/ChangePassword/core/firstLoginReset' {
1169
1186
  import React from 'react';
@@ -1191,17 +1208,19 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
1191
1208
  }>;
1192
1209
  export const GuardFirstLoginPasswordResetView: React.FC;
1193
1210
  export const GuardForcedPasswordResetView: React.FC;
1211
+ export const GuardRegisterCompletePasswordView: React.FC;
1194
1212
 
1195
1213
  }
1196
1214
  declare module '@authing/react-ui-components/components/CompleteInfo/businessRequest' {
1197
- 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';
1198
1217
  export enum CompleteInfoAuthFlowAction {
1199
1218
  Complete = "complete-completion",
1200
1219
  Skip = "skip-completion"
1201
1220
  }
1202
1221
  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>;
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>;
1205
1224
 
1206
1225
  }
1207
1226
  declare module '@authing/react-ui-components/components/CompleteInfo/core/completeInfo' {
@@ -1313,7 +1332,10 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1313
1332
  }
1314
1333
  export interface RegisterCompleteInfoInitData {
1315
1334
  content: any;
1316
- businessRequestName: 'registerByEmail' | 'registerByPhoneCode';
1335
+ businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
1336
+ }
1337
+ export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
1338
+ isChangeComplete: boolean;
1317
1339
  }
1318
1340
  export interface CompleteInfoRequest {
1319
1341
  fieldValues: {
@@ -1324,7 +1346,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
1324
1346
  }
1325
1347
  export enum OmitCompleteInfo {
1326
1348
  'registerByEmail' = "email",
1327
- 'registerByPhoneCode' = "phone"
1349
+ 'registerByPhoneCode' = "phone",
1350
+ 'registerByEmailCode' = "email"
1328
1351
  }
1329
1352
 
1330
1353
  }
@@ -1616,6 +1639,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1616
1639
  BIND_TOTP = "bindTotp",
1617
1640
  ANY_QUESTIONS = "anyQuestions",
1618
1641
  LOGIN_COMPLETE_INFO = "loginCompleteInfo",
1642
+ REGISTER_PASSWORD = "registerPassword",
1619
1643
  REGISTER_COMPLETE_INFO = "registerCompleteInfo",
1620
1644
  RECOVERY_CODE = "recoveryCode",
1621
1645
  SUBMIT_SUCCESS = "submitSuccess",
@@ -2393,6 +2417,21 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2393
2417
  }
2394
2418
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2395
2419
 
2420
+ }
2421
+ declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
2422
+ import React from 'react';
2423
+ import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2424
+ export interface RegisterWithEmailCodeProps {
2425
+ onRegisterSuccess: Function;
2426
+ onRegisterFailed: Function;
2427
+ onBeforeRegister?: Function;
2428
+ agreements: Agreement[];
2429
+ publicConfig?: ApplicationConfig;
2430
+ registeContext?: any;
2431
+ needPassword?: boolean;
2432
+ }
2433
+ export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
2434
+
2396
2435
  }
2397
2436
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2398
2437
  import React from 'react';
@@ -2403,6 +2442,7 @@ declare module '@authing/react-ui-components/components/Register/core/WithPhone'
2403
2442
  agreements: Agreement[];
2404
2443
  publicConfig?: ApplicationConfig;
2405
2444
  registeContext?: any;
2445
+ needPassword?: boolean;
2406
2446
  }
2407
2447
  export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
2408
2448
 
@@ -2413,14 +2453,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
2413
2453
 
2414
2454
  }
2415
2455
  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';
2456
+ import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2418
2457
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2419
2458
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2420
2459
  export interface RegisterConfig extends IG2Config {
2421
2460
  disableRegister?: boolean;
2422
- registerMethods?: RegisterMethods[];
2423
- defaultRegisterMethod?: RegisterMethods;
2461
+ registerMethods?: NewRegisterMethods[];
2462
+ defaultRegisterMethod?: NewRegisterMethods;
2424
2463
  publicKey?: string;
2425
2464
  agreementEnabled?: boolean;
2426
2465
  agreements?: Agreement[];
@@ -2430,7 +2469,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2430
2469
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2431
2470
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
2432
2471
  onRegisterError?: (error: any) => void;
2433
- onRegisterTabChange?: (activeTab: RegisterMethods) => void;
2472
+ onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
2434
2473
  }
2435
2474
  export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
2436
2475
  config?: Partial<RegisterConfig>;
@@ -2464,7 +2503,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail
2464
2503
  import { InputProps } from 'antd/lib/input';
2465
2504
  import { EmailScene } from '@authing/react-ui-components/components/Type/index';
2466
2505
  export interface SendCodeByEmailProps extends InputProps {
2467
- data: string;
2506
+ data?: string;
2468
2507
  form?: any;
2469
2508
  onSendCodeBefore?: any;
2470
2509
  fieldName?: string;
@@ -2627,6 +2666,11 @@ declare module '@authing/react-ui-components/components/Type/index' {
2627
2666
  showChangeLanguage: boolean;
2628
2667
  };
2629
2668
  }
2669
+ export enum NewRegisterMethods {
2670
+ Email = "email",
2671
+ Phone = "phone",
2672
+ EmailCode = "emailCode"
2673
+ }
2630
2674
  export enum EmailScene {
2631
2675
  WELCOME_EMAIL = "WELCOME_EMAIL",
2632
2676
  FIRST_CREATED_USER = "FIRST_CREATED_USER",
@@ -2735,10 +2779,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
2735
2779
  }
2736
2780
  declare module '@authing/react-ui-components/components/_utils/config/index' {
2737
2781
  /// <reference types="react" />
2738
- import { RegisterMethods } from 'authing-js-sdk';
2739
2782
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2740
2783
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2741
2784
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2785
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2742
2786
  import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
2743
2787
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2744
2788
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
@@ -2754,8 +2798,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2754
2798
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2755
2799
  authClient?: import("authing-js-sdk").AuthenticationClient | undefined;
2756
2800
  disableRegister?: boolean | undefined;
2757
- registerMethods?: RegisterMethods[] | undefined;
2758
- defaultRegisterMethod?: RegisterMethods | undefined;
2801
+ registerMethods?: NewRegisterMethods[] | undefined;
2802
+ defaultRegisterMethod?: NewRegisterMethods | undefined;
2759
2803
  publicKey?: string | undefined;
2760
2804
  agreementEnabled?: boolean | undefined;
2761
2805
  agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
@@ -2783,7 +2827,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2783
2827
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
2784
2828
  enterpriseConnections?: string[] | undefined;
2785
2829
  qrCodeScanOptions?: {
2786
- currentDocument?: Document | undefined;
2787
2830
  extIdpConnId?: string | undefined;
2788
2831
  autoExchangeUserInfo?: boolean | undefined;
2789
2832
  size?: {
@@ -3041,9 +3084,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
3041
3084
  declare module '@authing/react-ui-components/components/_utils/index' {
3042
3085
  import { Rule } from 'antd/lib/form';
3043
3086
  import qs from 'qs';
3044
- import { RegisterMethods, User } from 'authing-js-sdk';
3087
+ import { User } from 'authing-js-sdk';
3045
3088
  import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3046
3089
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
3090
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
3047
3091
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
3048
3092
  export * from '@authing/react-ui-components/components/_utils/clipboard';
3049
3093
  export const VALIDATE_PATTERN: {
@@ -3106,7 +3150,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3106
3150
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3107
3151
  export const sleep: (delay: number) => Promise<unknown>;
3108
3152
  export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
3109
- export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
3153
+ export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
3110
3154
  export const mailDesensitization: (mail: string) => string;
3111
3155
  export const phoneDesensitization: (phone: string) => string;
3112
3156
  export const getHundreds: (num: number) => number;
@@ -3295,7 +3339,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3295
3339
 
3296
3340
  }
3297
3341
  declare module '@authing/react-ui-components/components/version/version' {
3298
- const _default: "3.1.14-rc.4";
3342
+ const _default: "3.1.16-rc.0";
3299
3343
  export default _default;
3300
3344
 
3301
3345
  }