@authing/react-ui-components 3.1.20-rc.6 → 3.1.20
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 +40 -48
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -378,9 +378,10 @@ 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
|
|
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"
|
|
@@ -465,8 +466,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
465
466
|
[x: string]: string;
|
|
466
467
|
};
|
|
467
468
|
registerTypeConfig: {
|
|
468
|
-
emailRegisterType?:
|
|
469
|
-
phoneRegisterType?:
|
|
469
|
+
emailRegisterType?: NewRegisterMethods[];
|
|
470
|
+
phoneRegisterType?: NewRegisterMethods[];
|
|
470
471
|
};
|
|
471
472
|
};
|
|
472
473
|
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
@@ -637,7 +638,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
|
|
|
637
638
|
|
|
638
639
|
}
|
|
639
640
|
declare module '@authing/react-ui-components/components/AuthingGuard/constants' {
|
|
640
|
-
import { UserConfig, LoginMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
641
|
+
import { UserConfig, LoginMethods, RegisterMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
641
642
|
export const OTP_MFA_CODE = 1635;
|
|
642
643
|
export const APP_MFA_CODE = 1636;
|
|
643
644
|
export const NEED_CAPTCHA = 2000;
|
|
@@ -650,7 +651,10 @@ declare module '@authing/react-ui-components/components/AuthingGuard/constants'
|
|
|
650
651
|
ad: string;
|
|
651
652
|
"wechatmp-qrcode": string;
|
|
652
653
|
};
|
|
653
|
-
export const REGISTER_METHODS_MAP:
|
|
654
|
+
export const REGISTER_METHODS_MAP: () => {
|
|
655
|
+
email: string;
|
|
656
|
+
phone: string;
|
|
657
|
+
};
|
|
654
658
|
export const HIDE_SOCIALS: string[];
|
|
655
659
|
export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
656
660
|
export enum ApplicationMfaType {
|
|
@@ -824,8 +828,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
|
|
|
824
828
|
}
|
|
825
829
|
export enum RegisterMethods {
|
|
826
830
|
Email = "email",
|
|
827
|
-
Phone = "phone"
|
|
828
|
-
EmailCode = "emailCode"
|
|
831
|
+
Phone = "phone"
|
|
829
832
|
}
|
|
830
833
|
export enum GuardScenes {
|
|
831
834
|
Login = "login",
|
|
@@ -1332,8 +1335,6 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1332
1335
|
export interface RegisterCompleteInfoInitData {
|
|
1333
1336
|
content: any;
|
|
1334
1337
|
businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
|
|
1335
|
-
onRegisterFailed: Function;
|
|
1336
|
-
onRegisterSuccess: Function;
|
|
1337
1338
|
}
|
|
1338
1339
|
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1339
1340
|
isChangeComplete: boolean;
|
|
@@ -2100,11 +2101,6 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
2100
2101
|
export interface GuardLoginViewProps extends GuardLoginProps, IG2FCViewProps {
|
|
2101
2102
|
config: LoginConfig;
|
|
2102
2103
|
}
|
|
2103
|
-
export interface GuardLoginInitData {
|
|
2104
|
-
specifyDefaultLoginMethod?: LoginMethods;
|
|
2105
|
-
_firstItemInitialValue?: string;
|
|
2106
|
-
_lockMethod?: string;
|
|
2107
|
-
}
|
|
2108
2104
|
export const getDefaultLoginConfig: () => LoginConfig;
|
|
2109
2105
|
|
|
2110
2106
|
}
|
|
@@ -2466,47 +2462,45 @@ declare module '@authing/react-ui-components/components/Register/components/Agre
|
|
|
2466
2462
|
export const Agreements: FC<AgreementsProps>;
|
|
2467
2463
|
|
|
2468
2464
|
}
|
|
2469
|
-
declare module '@authing/react-ui-components/components/Register/core/
|
|
2465
|
+
declare module '@authing/react-ui-components/components/Register/core/WithEmail' {
|
|
2470
2466
|
import React from 'react';
|
|
2471
2467
|
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2472
|
-
export interface
|
|
2468
|
+
export interface RegisterWithEmailProps {
|
|
2473
2469
|
onRegisterSuccess: Function;
|
|
2474
2470
|
onRegisterFailed: Function;
|
|
2475
2471
|
onBeforeRegister?: Function;
|
|
2476
|
-
agreements: Agreement[];
|
|
2477
2472
|
publicConfig?: ApplicationConfig;
|
|
2473
|
+
agreements: Agreement[];
|
|
2478
2474
|
registeContext?: any;
|
|
2479
|
-
methods: any[];
|
|
2480
2475
|
}
|
|
2481
|
-
export const
|
|
2476
|
+
export const RegisterWithEmail: React.FC<RegisterWithEmailProps>;
|
|
2482
2477
|
|
|
2483
2478
|
}
|
|
2484
|
-
declare module '@authing/react-ui-components/components/Register/core/
|
|
2479
|
+
declare module '@authing/react-ui-components/components/Register/core/WithEmailCode' {
|
|
2485
2480
|
import React from 'react';
|
|
2486
2481
|
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2487
|
-
export interface
|
|
2482
|
+
export interface RegisterWithEmailCodeProps {
|
|
2488
2483
|
onRegisterSuccess: Function;
|
|
2489
2484
|
onRegisterFailed: Function;
|
|
2490
2485
|
onBeforeRegister?: Function;
|
|
2491
|
-
publicConfig?: ApplicationConfig;
|
|
2492
2486
|
agreements: Agreement[];
|
|
2487
|
+
publicConfig?: ApplicationConfig;
|
|
2493
2488
|
registeContext?: any;
|
|
2494
2489
|
}
|
|
2495
|
-
export const
|
|
2490
|
+
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
2496
2491
|
|
|
2497
2492
|
}
|
|
2498
|
-
declare module '@authing/react-ui-components/components/Register/core/
|
|
2493
|
+
declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
|
|
2499
2494
|
import React from 'react';
|
|
2500
2495
|
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2501
|
-
export interface
|
|
2496
|
+
export interface RegisterWithPhoneProps {
|
|
2502
2497
|
onRegisterSuccess: Function;
|
|
2503
2498
|
onRegisterFailed: Function;
|
|
2504
|
-
onBeforeRegister?: Function;
|
|
2505
2499
|
agreements: Agreement[];
|
|
2506
2500
|
publicConfig?: ApplicationConfig;
|
|
2507
2501
|
registeContext?: any;
|
|
2508
2502
|
}
|
|
2509
|
-
export const
|
|
2503
|
+
export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
|
|
2510
2504
|
|
|
2511
2505
|
}
|
|
2512
2506
|
declare module '@authing/react-ui-components/components/Register/index' {
|
|
@@ -2515,13 +2509,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2515
2509
|
|
|
2516
2510
|
}
|
|
2517
2511
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2518
|
-
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2519
|
-
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams
|
|
2512
|
+
import { IG2FCProps, IG2Config, IG2Events, NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2513
|
+
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2520
2514
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2521
2515
|
export interface RegisterConfig extends IG2Config {
|
|
2522
2516
|
disableRegister?: boolean;
|
|
2523
|
-
registerMethods?:
|
|
2524
|
-
defaultRegisterMethod?:
|
|
2517
|
+
registerMethods?: NewRegisterMethods[];
|
|
2518
|
+
defaultRegisterMethod?: NewRegisterMethods;
|
|
2525
2519
|
publicKey?: string;
|
|
2526
2520
|
agreementEnabled?: boolean;
|
|
2527
2521
|
agreements?: Agreement[];
|
|
@@ -2531,7 +2525,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2531
2525
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2532
2526
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2533
2527
|
onRegisterError?: (error: any) => void;
|
|
2534
|
-
onRegisterTabChange?: (activeTab:
|
|
2528
|
+
onRegisterTabChange?: (activeTab: NewRegisterMethods) => void;
|
|
2535
2529
|
}
|
|
2536
2530
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2537
2531
|
config?: Partial<RegisterConfig>;
|
|
@@ -2761,6 +2755,11 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2761
2755
|
showChangeLanguage: boolean;
|
|
2762
2756
|
};
|
|
2763
2757
|
}
|
|
2758
|
+
export enum NewRegisterMethods {
|
|
2759
|
+
Email = "email",
|
|
2760
|
+
Phone = "phone",
|
|
2761
|
+
EmailCode = "emailCode"
|
|
2762
|
+
}
|
|
2764
2763
|
export enum EmailScene {
|
|
2765
2764
|
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2766
2765
|
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
@@ -2873,8 +2872,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2873
2872
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2874
2873
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2875
2874
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2875
|
+
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2876
2876
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2877
|
-
import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
2878
2877
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2879
2878
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2880
2879
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
@@ -2888,8 +2887,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2888
2887
|
openEventsMapping?: boolean | undefined;
|
|
2889
2888
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2890
2889
|
disableRegister?: boolean | undefined;
|
|
2891
|
-
registerMethods?:
|
|
2892
|
-
defaultRegisterMethod?:
|
|
2890
|
+
registerMethods?: NewRegisterMethods[] | undefined;
|
|
2891
|
+
defaultRegisterMethod?: NewRegisterMethods | undefined;
|
|
2893
2892
|
publicKey?: string | undefined;
|
|
2894
2893
|
agreementEnabled?: boolean | undefined;
|
|
2895
2894
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -2899,7 +2898,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2899
2898
|
lang: string;
|
|
2900
2899
|
langRange: string[];
|
|
2901
2900
|
isHost?: boolean | undefined;
|
|
2902
|
-
mode: import("@authing/react-ui-components/components/
|
|
2901
|
+
mode: import("@authing/react-ui-components/components/index").GuardMode;
|
|
2903
2902
|
clickCloseable: boolean;
|
|
2904
2903
|
escCloseable: boolean;
|
|
2905
2904
|
userpool?: string | undefined;
|
|
@@ -2910,8 +2909,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2910
2909
|
__unAuthFlow__?: boolean | undefined;
|
|
2911
2910
|
autoRegister?: boolean | undefined;
|
|
2912
2911
|
disableResetPwd?: boolean | undefined;
|
|
2913
|
-
defaultLoginMethod?: import("@authing/react-ui-components/components/
|
|
2914
|
-
loginMethods?: import("@authing/react-ui-components/components/
|
|
2912
|
+
defaultLoginMethod?: import("@authing/react-ui-components/components/index").LoginMethods | undefined;
|
|
2913
|
+
loginMethods?: import("@authing/react-ui-components/components/index").LoginMethods[] | undefined;
|
|
2915
2914
|
passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
|
|
2916
2915
|
socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
|
|
2917
2916
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
@@ -3187,7 +3186,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3187
3186
|
import { User } from 'authing-js-sdk';
|
|
3188
3187
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3189
3188
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3190
|
-
import {
|
|
3189
|
+
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
3191
3190
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3192
3191
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3193
3192
|
export const VALIDATE_PATTERN: {
|
|
@@ -3256,19 +3255,12 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3256
3255
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3257
3256
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3258
3257
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3259
|
-
export const tabSort: (defaultValue:
|
|
3258
|
+
export const tabSort: (defaultValue: NewRegisterMethods, tabList: NewRegisterMethods[]) => NewRegisterMethods[];
|
|
3260
3259
|
export const mailDesensitization: (mail: string) => string;
|
|
3261
3260
|
export const phoneDesensitization: (phone: string) => string;
|
|
3262
3261
|
export const getHundreds: (num: number) => number;
|
|
3263
3262
|
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3264
3263
|
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3265
|
-
export const getLoginTypePipe: (publicConfig: ApplicationConfig, registerMethod: RegisterMethods) => {
|
|
3266
|
-
specifyDefaultLoginMethod: LoginMethods;
|
|
3267
|
-
lockMethod: string;
|
|
3268
|
-
} | {
|
|
3269
|
-
specifyDefaultLoginMethod: LoginMethods;
|
|
3270
|
-
lockMethod?: undefined;
|
|
3271
|
-
} | undefined;
|
|
3272
3264
|
|
|
3273
3265
|
}
|
|
3274
3266
|
declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
@@ -3463,7 +3455,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3463
3455
|
|
|
3464
3456
|
}
|
|
3465
3457
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3466
|
-
const _default: "3.1.20
|
|
3458
|
+
const _default: "3.1.20";
|
|
3467
3459
|
export default _default;
|
|
3468
3460
|
|
|
3469
3461
|
}
|