@authing/react-ui-components 3.1.17-rc.8 → 3.1.18-rc.1

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
  }
@@ -1660,12 +1683,12 @@ declare module '@authing/react-ui-components/components/Guard/module' {
1660
1683
  BIND_TOTP = "bindTotp",
1661
1684
  ANY_QUESTIONS = "anyQuestions",
1662
1685
  LOGIN_COMPLETE_INFO = "loginCompleteInfo",
1686
+ REGISTER_PASSWORD = "registerPassword",
1663
1687
  REGISTER_COMPLETE_INFO = "registerCompleteInfo",
1664
1688
  RECOVERY_CODE = "recoveryCode",
1665
1689
  SUBMIT_SUCCESS = "submitSuccess",
1666
1690
  IDENTITY_BINDING_ASK = "identityBindingAsk",
1667
- IDENTITY_BINDING = "identityBinding",
1668
- SELF_UNLOCK = "selfUnlock"
1691
+ IDENTITY_BINDING = "identityBinding"
1669
1692
  }
1670
1693
  export interface GuardModuleAction {
1671
1694
  action: string;
@@ -2444,6 +2467,20 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmail'
2444
2467
  }
2445
2468
  export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
2446
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
+
2447
2484
  }
2448
2485
  declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
2449
2486
  import React from 'react';
@@ -2464,14 +2501,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
2464
2501
 
2465
2502
  }
2466
2503
  declare module '@authing/react-ui-components/components/Register/interface' {
2467
- import { RegisterMethods } from 'authing-js-sdk';
2468
- 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';
2469
2505
  import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
2470
2506
  import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2471
2507
  export interface RegisterConfig extends IG2Config {
2472
2508
  disableRegister?: boolean;
2473
- registerMethods?: RegisterMethods[];
2474
- defaultRegisterMethod?: RegisterMethods;
2509
+ registerMethods?: NewRegisterMethods[];
2510
+ defaultRegisterMethod?: NewRegisterMethods;
2475
2511
  publicKey?: string;
2476
2512
  agreementEnabled?: boolean;
2477
2513
  agreements?: Agreement[];
@@ -2481,7 +2517,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2481
2517
  onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
2482
2518
  onRegister?: (user: User, authClient: AuthenticationClient) => void;
2483
2519
  onRegisterError?: (error: any) => void;
2484
- onRegisterTabChange?: (activeTab: RegisterMethods) => void;
2520
+ onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
2485
2521
  }
2486
2522
  export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
2487
2523
  config?: Partial<RegisterConfig>;
@@ -2495,46 +2531,6 @@ declare module '@authing/react-ui-components/components/Register/interface' {
2495
2531
  declare module '@authing/react-ui-components/components/Register/utils' {
2496
2532
  export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
2497
2533
 
2498
- }
2499
- declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
2500
- /// <reference types="react" />
2501
- export enum InputMethodMap {
2502
- email = "email-code",
2503
- phone = "phone-code"
2504
- }
2505
- interface ResetPasswordProps {
2506
- onReset: any;
2507
- publicConfig: any;
2508
- onSend: (type: 'email' | 'phone') => void;
2509
- onSendError: (type: 'email' | 'phone', error: any) => void;
2510
- initData: any;
2511
- }
2512
- export const SelfUnlock: (props: ResetPasswordProps) => JSX.Element;
2513
- export {};
2514
-
2515
- }
2516
- declare module '@authing/react-ui-components/components/SelfUnlock/index' {
2517
- import React from 'react';
2518
- export const GuardUnlockView: React.FC;
2519
-
2520
- }
2521
- declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
2522
- import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
2523
- import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
2524
- export interface ForgetPasswordEvents extends IG2Events {
2525
- onPwdEmailSend?: (authClient: AuthenticationClient) => void;
2526
- onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2527
- onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
2528
- onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2529
- onPwdReset?: (authClient: AuthenticationClient) => void;
2530
- onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
2531
- }
2532
- export interface ForgetPasswordConfig extends IG2Config {
2533
- }
2534
- export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
2535
- config: Partial<IG2Config>;
2536
- }
2537
-
2538
2534
  }
2539
2535
  declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
2540
2536
  import React, { FC } from 'react';
@@ -2555,7 +2551,7 @@ declare module '@authing/react-ui-components/components/SendCode/SendCodeByEmail
2555
2551
  import { InputProps } from 'antd/lib/input';
2556
2552
  import { EmailScene } from '@authing/react-ui-components/components/Type/index';
2557
2553
  export interface SendCodeByEmailProps extends InputProps {
2558
- data: string;
2554
+ data?: string;
2559
2555
  form?: any;
2560
2556
  onSendCodeBefore?: any;
2561
2557
  fieldName?: string;
@@ -2719,6 +2715,11 @@ declare module '@authing/react-ui-components/components/Type/index' {
2719
2715
  showChangeLanguage: boolean;
2720
2716
  };
2721
2717
  }
2718
+ export enum NewRegisterMethods {
2719
+ Email = "email",
2720
+ Phone = "phone",
2721
+ EmailCode = "emailCode"
2722
+ }
2722
2723
  export enum EmailScene {
2723
2724
  WELCOME_EMAIL = "WELCOME_EMAIL",
2724
2725
  FIRST_CREATED_USER = "FIRST_CREATED_USER",
@@ -2827,10 +2828,10 @@ declare module '@authing/react-ui-components/components/_utils/clipboard' {
2827
2828
  }
2828
2829
  declare module '@authing/react-ui-components/components/_utils/config/index' {
2829
2830
  /// <reference types="react" />
2830
- import { RegisterMethods } from 'authing-js-sdk';
2831
2831
  import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
2832
2832
  import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
2833
2833
  import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
2834
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
2834
2835
  import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
2835
2836
  export const getPublicConfig: (appId: string) => ApplicationConfig;
2836
2837
  export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
@@ -2845,8 +2846,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2845
2846
  openEventsMapping?: boolean | undefined;
2846
2847
  _qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
2847
2848
  disableRegister?: boolean | undefined;
2848
- registerMethods?: RegisterMethods[] | undefined;
2849
- defaultRegisterMethod?: RegisterMethods | undefined;
2849
+ registerMethods?: NewRegisterMethods[] | undefined;
2850
+ defaultRegisterMethod?: NewRegisterMethods | undefined;
2850
2851
  publicKey?: string | undefined;
2851
2852
  agreementEnabled?: boolean | undefined;
2852
2853
  agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
@@ -2874,7 +2875,6 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
2874
2875
  socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
2875
2876
  enterpriseConnections?: string[] | undefined;
2876
2877
  qrCodeScanOptions?: {
2877
- currentDocument?: Document | undefined;
2878
2878
  extIdpConnId?: string | undefined;
2879
2879
  autoExchangeUserInfo?: boolean | undefined;
2880
2880
  size?: {
@@ -3140,9 +3140,10 @@ declare module '@authing/react-ui-components/components/_utils/http' {
3140
3140
  declare module '@authing/react-ui-components/components/_utils/index' {
3141
3141
  import { Rule } from 'antd/lib/form';
3142
3142
  import qs from 'qs';
3143
- import { RegisterMethods, User } from 'authing-js-sdk';
3143
+ import { User } from 'authing-js-sdk';
3144
3144
  import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
3145
3145
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
3146
+ import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
3146
3147
  export * from '@authing/react-ui-components/components/_utils/popupCenter';
3147
3148
  export * from '@authing/react-ui-components/components/_utils/clipboard';
3148
3149
  export const VALIDATE_PATTERN: {
@@ -3186,13 +3187,13 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3186
3187
  export const isDingtalkBrowser: () => boolean | null;
3187
3188
  export const isQQBrowser: () => boolean | null;
3188
3189
  export const isQQBuiltInBrowser: () => boolean | null;
3190
+ export const isWeWorkBuiltInBrowser: () => boolean | null;
3189
3191
  export const isEdgeBrowser: () => boolean;
3190
3192
  export const isWeiboBrowser: () => boolean | null;
3191
3193
  export const isAlipayBrowser: () => boolean | null;
3192
3194
  export const isBaiduBrowser: () => boolean | null;
3193
3195
  export const isWeComeBrowser: () => boolean;
3194
3196
  export const isMobile: () => RegExpMatchArray | null;
3195
- export const isWeWorkBuiltInBrowser: () => boolean | null;
3196
3197
  export const isSpecialBrowser: () => boolean;
3197
3198
  export const assembledAppHost: (identifier: string, host: string) => string;
3198
3199
  export const assembledRequestHost: (requestHostname: string, configHost: string) => string;
@@ -3211,7 +3212,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3211
3212
  export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
3212
3213
  export const sleep: (delay: number) => Promise<unknown>;
3213
3214
  export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
3214
- export const tabSort: (defaultValue: RegisterMethods, tabList: RegisterMethods[]) => RegisterMethods[];
3215
+ export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
3215
3216
  export const mailDesensitization: (mail: string) => string;
3216
3217
  export const phoneDesensitization: (phone: string) => string;
3217
3218
  export const getHundreds: (num: number) => number;
@@ -3311,7 +3312,6 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
3311
3312
  MFA = 1635,
3312
3313
  ABORT_FLOW = 1699,
3313
3314
  COMPLETE_INFO = 1642,
3314
- UNLOCK = 1643,
3315
3315
  FLOW_END = 1600,
3316
3316
  FIRST_LOGIN_PASSWORD = 1639,
3317
3317
  FORCED_PASSWORD_RESET = 2058
@@ -3411,7 +3411,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3411
3411
 
3412
3412
  }
3413
3413
  declare module '@authing/react-ui-components/components/version/version' {
3414
- const _default: "3.1.17-rc.8";
3414
+ const _default: "3.1.18-rc.1";
3415
3415
  export default _default;
3416
3416
 
3417
3417
  }