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

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