@authing/react-ui-components 3.1.19-rc.0 → 3.1.20-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 +49 -40
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -378,10 +378,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/ToggleLang/
|
|
|
378
378
|
|
|
379
379
|
}
|
|
380
380
|
declare module '@authing/react-ui-components/components/AuthingGuard/api/appConfig' {
|
|
381
|
-
import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
381
|
+
import { Lang, LoginMethods, Protocol, RegisterMethods } 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"
|
|
@@ -466,8 +465,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
466
465
|
[x: string]: string;
|
|
467
466
|
};
|
|
468
467
|
registerTypeConfig: {
|
|
469
|
-
emailRegisterType?:
|
|
470
|
-
phoneRegisterType?:
|
|
468
|
+
emailRegisterType?: RegisterMethods[];
|
|
469
|
+
phoneRegisterType?: RegisterMethods[];
|
|
471
470
|
};
|
|
472
471
|
};
|
|
473
472
|
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
@@ -638,7 +637,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
|
|
|
638
637
|
|
|
639
638
|
}
|
|
640
639
|
declare module '@authing/react-ui-components/components/AuthingGuard/constants' {
|
|
641
|
-
import { UserConfig, LoginMethods,
|
|
640
|
+
import { UserConfig, LoginMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
642
641
|
export const OTP_MFA_CODE = 1635;
|
|
643
642
|
export const APP_MFA_CODE = 1636;
|
|
644
643
|
export const NEED_CAPTCHA = 2000;
|
|
@@ -651,10 +650,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/constants'
|
|
|
651
650
|
ad: string;
|
|
652
651
|
"wechatmp-qrcode": string;
|
|
653
652
|
};
|
|
654
|
-
export const REGISTER_METHODS_MAP:
|
|
655
|
-
email: string;
|
|
656
|
-
phone: string;
|
|
657
|
-
};
|
|
653
|
+
export const REGISTER_METHODS_MAP: any;
|
|
658
654
|
export const HIDE_SOCIALS: string[];
|
|
659
655
|
export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
660
656
|
export enum ApplicationMfaType {
|
|
@@ -828,7 +824,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
|
|
|
828
824
|
}
|
|
829
825
|
export enum RegisterMethods {
|
|
830
826
|
Email = "email",
|
|
831
|
-
Phone = "phone"
|
|
827
|
+
Phone = "phone",
|
|
828
|
+
EmailCode = "emailCode"
|
|
832
829
|
}
|
|
833
830
|
export enum GuardScenes {
|
|
834
831
|
Login = "login",
|
|
@@ -1333,6 +1330,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1333
1330
|
export interface RegisterCompleteInfoInitData {
|
|
1334
1331
|
content: any;
|
|
1335
1332
|
businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
|
|
1333
|
+
onRegisterFailed: Function;
|
|
1334
|
+
onRegisterSuccess: Function;
|
|
1336
1335
|
}
|
|
1337
1336
|
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1338
1337
|
isChangeComplete: boolean;
|
|
@@ -1763,6 +1762,7 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1763
1762
|
export interface PasswordParams {
|
|
1764
1763
|
account: string;
|
|
1765
1764
|
password: string;
|
|
1765
|
+
captchaCode: string;
|
|
1766
1766
|
}
|
|
1767
1767
|
export enum IdentityBindingAction {
|
|
1768
1768
|
CreateUser = "create-federation-account",
|
|
@@ -2093,6 +2093,11 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
2093
2093
|
export interface GuardLoginViewProps extends GuardLoginProps, IG2FCViewProps {
|
|
2094
2094
|
config: LoginConfig;
|
|
2095
2095
|
}
|
|
2096
|
+
export interface GuardLoginInitData {
|
|
2097
|
+
specifyDefaultLoginMethod?: LoginMethods;
|
|
2098
|
+
_firstItemInitialValue?: string;
|
|
2099
|
+
_lockMethod?: string;
|
|
2100
|
+
}
|
|
2096
2101
|
export const getDefaultLoginConfig: () => LoginConfig;
|
|
2097
2102
|
|
|
2098
2103
|
}
|
|
@@ -2454,45 +2459,47 @@ declare module '@authing/react-ui-components/components/Register/components/Agre
|
|
|
2454
2459
|
export const Agreements: FC<AgreementsProps>;
|
|
2455
2460
|
|
|
2456
2461
|
}
|
|
2457
|
-
declare module '@authing/react-ui-components/components/Register/core/
|
|
2462
|
+
declare module '@authing/react-ui-components/components/Register/core/WithCode' {
|
|
2458
2463
|
import React from 'react';
|
|
2459
2464
|
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2460
|
-
export interface
|
|
2465
|
+
export interface RegisterWithCodeProps {
|
|
2461
2466
|
onRegisterSuccess: Function;
|
|
2462
2467
|
onRegisterFailed: Function;
|
|
2463
2468
|
onBeforeRegister?: Function;
|
|
2464
|
-
publicConfig?: ApplicationConfig;
|
|
2465
2469
|
agreements: Agreement[];
|
|
2470
|
+
publicConfig?: ApplicationConfig;
|
|
2466
2471
|
registeContext?: any;
|
|
2472
|
+
methods: any[];
|
|
2467
2473
|
}
|
|
2468
|
-
export const
|
|
2474
|
+
export const RegisterWithCode: React.FC<RegisterWithCodeProps>;
|
|
2469
2475
|
|
|
2470
2476
|
}
|
|
2471
|
-
declare module '@authing/react-ui-components/components/Register/core/
|
|
2477
|
+
declare module '@authing/react-ui-components/components/Register/core/WithEmail' {
|
|
2472
2478
|
import React from 'react';
|
|
2473
2479
|
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2474
|
-
export interface
|
|
2480
|
+
export interface RegisterWithEmailProps {
|
|
2475
2481
|
onRegisterSuccess: Function;
|
|
2476
2482
|
onRegisterFailed: Function;
|
|
2477
2483
|
onBeforeRegister?: Function;
|
|
2478
|
-
agreements: Agreement[];
|
|
2479
2484
|
publicConfig?: ApplicationConfig;
|
|
2485
|
+
agreements: Agreement[];
|
|
2480
2486
|
registeContext?: any;
|
|
2481
2487
|
}
|
|
2482
|
-
export const
|
|
2488
|
+
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
2483
2489
|
|
|
2484
2490
|
}
|
|
2485
|
-
declare module '@authing/react-ui-components/components/Register/core/
|
|
2491
|
+
declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
|
|
2486
2492
|
import React from 'react';
|
|
2487
2493
|
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2488
|
-
export interface
|
|
2494
|
+
export interface RegisterWithEmailCodeProps {
|
|
2489
2495
|
onRegisterSuccess: Function;
|
|
2490
2496
|
onRegisterFailed: Function;
|
|
2497
|
+
onBeforeRegister?: Function;
|
|
2491
2498
|
agreements: Agreement[];
|
|
2492
2499
|
publicConfig?: ApplicationConfig;
|
|
2493
2500
|
registeContext?: any;
|
|
2494
2501
|
}
|
|
2495
|
-
export const
|
|
2502
|
+
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
2496
2503
|
|
|
2497
2504
|
}
|
|
2498
2505
|
declare module '@authing/react-ui-components/components/Register/index' {
|
|
@@ -2501,13 +2508,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2501
2508
|
|
|
2502
2509
|
}
|
|
2503
2510
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2504
|
-
import { IG2FCProps, IG2Config, IG2Events
|
|
2505
|
-
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2511
|
+
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2512
|
+
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams, RegisterMethods } from '@authing/react-ui-components/components/index';
|
|
2506
2513
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2507
2514
|
export interface RegisterConfig extends IG2Config {
|
|
2508
2515
|
disableRegister?: boolean;
|
|
2509
|
-
registerMethods?:
|
|
2510
|
-
defaultRegisterMethod?:
|
|
2516
|
+
registerMethods?: RegisterMethods[];
|
|
2517
|
+
defaultRegisterMethod?: RegisterMethods;
|
|
2511
2518
|
publicKey?: string;
|
|
2512
2519
|
agreementEnabled?: boolean;
|
|
2513
2520
|
agreements?: Agreement[];
|
|
@@ -2517,7 +2524,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2517
2524
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2518
2525
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2519
2526
|
onRegisterError?: (error: any) => void;
|
|
2520
|
-
onRegisterTabChange?: (activeTab:
|
|
2527
|
+
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
2521
2528
|
}
|
|
2522
2529
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2523
2530
|
config?: Partial<RegisterConfig>;
|
|
@@ -2715,11 +2722,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2715
2722
|
showChangeLanguage: boolean;
|
|
2716
2723
|
};
|
|
2717
2724
|
}
|
|
2718
|
-
export enum NewRegisterMethods {
|
|
2719
|
-
Email = "email",
|
|
2720
|
-
Phone = "phone",
|
|
2721
|
-
EmailCode = "emailCode"
|
|
2722
|
-
}
|
|
2723
2725
|
export enum EmailScene {
|
|
2724
2726
|
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2725
2727
|
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
@@ -2831,8 +2833,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2831
2833
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2832
2834
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2833
2835
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2834
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2835
2836
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2837
|
+
import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
2836
2838
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2837
2839
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2838
2840
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
@@ -2846,8 +2848,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2846
2848
|
openEventsMapping?: boolean | undefined;
|
|
2847
2849
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2848
2850
|
disableRegister?: boolean | undefined;
|
|
2849
|
-
registerMethods?:
|
|
2850
|
-
defaultRegisterMethod?:
|
|
2851
|
+
registerMethods?: RegisterMethods[] | undefined;
|
|
2852
|
+
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
2851
2853
|
publicKey?: string | undefined;
|
|
2852
2854
|
agreementEnabled?: boolean | undefined;
|
|
2853
2855
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -2857,7 +2859,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2857
2859
|
lang: string;
|
|
2858
2860
|
langRange: string[];
|
|
2859
2861
|
isHost?: boolean | undefined;
|
|
2860
|
-
mode: import("@authing/react-ui-components/components/index").GuardMode;
|
|
2862
|
+
mode: import("@authing/react-ui-components/components/AuthingGuard/types/index").GuardMode;
|
|
2861
2863
|
clickCloseable: boolean;
|
|
2862
2864
|
escCloseable: boolean;
|
|
2863
2865
|
userpool?: string | undefined;
|
|
@@ -2868,8 +2870,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2868
2870
|
__unAuthFlow__?: boolean | undefined;
|
|
2869
2871
|
autoRegister?: boolean | undefined;
|
|
2870
2872
|
disableResetPwd?: boolean | undefined;
|
|
2871
|
-
defaultLoginMethod?: import("@authing/react-ui-components/components/index").LoginMethods | undefined;
|
|
2872
|
-
loginMethods?: import("@authing/react-ui-components/components/index").LoginMethods[] | undefined;
|
|
2873
|
+
defaultLoginMethod?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods | undefined;
|
|
2874
|
+
loginMethods?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods[] | undefined;
|
|
2873
2875
|
passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
|
|
2874
2876
|
socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
|
|
2875
2877
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
@@ -3145,7 +3147,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3145
3147
|
import { User } from 'authing-js-sdk';
|
|
3146
3148
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3147
3149
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3148
|
-
import {
|
|
3150
|
+
import { LoginMethods, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3149
3151
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3150
3152
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3151
3153
|
export const VALIDATE_PATTERN: {
|
|
@@ -3214,12 +3216,19 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3214
3216
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3215
3217
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3216
3218
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3217
|
-
export const tabSort: (defaultValue:
|
|
3219
|
+
export const tabSort: (defaultValue: any, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
3218
3220
|
export const mailDesensitization: (mail: string) => string;
|
|
3219
3221
|
export const phoneDesensitization: (phone: string) => string;
|
|
3220
3222
|
export const getHundreds: (num: number) => number;
|
|
3221
3223
|
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3222
3224
|
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3225
|
+
export const getLoginTypePipe: (publicConfig: ApplicationConfig, registerMethod: RegisterMethods) => {
|
|
3226
|
+
specifyDefaultLoginMethod: LoginMethods;
|
|
3227
|
+
lockMethod: string;
|
|
3228
|
+
} | {
|
|
3229
|
+
specifyDefaultLoginMethod: LoginMethods;
|
|
3230
|
+
lockMethod?: undefined;
|
|
3231
|
+
} | undefined;
|
|
3223
3232
|
|
|
3224
3233
|
}
|
|
3225
3234
|
declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
@@ -3413,7 +3422,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3413
3422
|
|
|
3414
3423
|
}
|
|
3415
3424
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3416
|
-
const _default: "3.1.
|
|
3425
|
+
const _default: "3.1.20-rc.1";
|
|
3417
3426
|
export default _default;
|
|
3418
3427
|
|
|
3419
3428
|
}
|