@authing/react-ui-components 3.1.19-hep.0 → 3.1.19-hep.3
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 +137 -38
- package/lib/index.min.css +2 -2
- package/lib/index.min.js +1 -1
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ declare module '@authing/react-ui-components/components/AccountMerge/interface'
|
|
|
16
16
|
export interface BriefUserInfo {
|
|
17
17
|
displayName: string;
|
|
18
18
|
avatar: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
email: string;
|
|
21
|
+
username: string;
|
|
22
|
+
name: string;
|
|
19
23
|
}
|
|
20
24
|
export interface GuardAccountMergeInitData {
|
|
21
25
|
currentUserInfo: BriefUserInfo;
|
|
@@ -424,10 +428,9 @@ declare module '@authing/react-ui-components/components/AuthingGuard/ToggleLang/
|
|
|
424
428
|
|
|
425
429
|
}
|
|
426
430
|
declare module '@authing/react-ui-components/components/AuthingGuard/api/appConfig' {
|
|
427
|
-
import { Lang, LoginMethods, Protocol } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
431
|
+
import { Lang, LoginMethods, Protocol, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
428
432
|
import { IAzureAdConnectionConfig, ICasConnectionConfig, IOAuthConnectionConfig, ISamlConnectionConfig, OIDCConnectionConfig, SocialConnectionItem } from '@authing/react-ui-components/components/AuthingGuard/api/userPoolConfig';
|
|
429
433
|
import { PasswordStrength } from '@authing/react-ui-components/components/_utils/index';
|
|
430
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
431
434
|
export enum ApplicationMfaType {
|
|
432
435
|
SMS = "SMS",
|
|
433
436
|
EMAIL = "EMAIL"
|
|
@@ -512,8 +515,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/appConf
|
|
|
512
515
|
[x: string]: string;
|
|
513
516
|
};
|
|
514
517
|
registerTypeConfig: {
|
|
515
|
-
emailRegisterType?:
|
|
516
|
-
phoneRegisterType?:
|
|
518
|
+
emailRegisterType?: RegisterMethods[];
|
|
519
|
+
phoneRegisterType?: RegisterMethods[];
|
|
517
520
|
};
|
|
518
521
|
};
|
|
519
522
|
qrcodeTabsSettings: QrcodeTabsSettings;
|
|
@@ -687,7 +690,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/api/userPoo
|
|
|
687
690
|
|
|
688
691
|
}
|
|
689
692
|
declare module '@authing/react-ui-components/components/AuthingGuard/constants' {
|
|
690
|
-
import { UserConfig, LoginMethods,
|
|
693
|
+
import { UserConfig, LoginMethods, LocalesConfig } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
691
694
|
export const OTP_MFA_CODE = 1635;
|
|
692
695
|
export const APP_MFA_CODE = 1636;
|
|
693
696
|
export const NEED_CAPTCHA = 2000;
|
|
@@ -700,10 +703,7 @@ declare module '@authing/react-ui-components/components/AuthingGuard/constants'
|
|
|
700
703
|
ad: string;
|
|
701
704
|
"wechatmp-qrcode": string;
|
|
702
705
|
};
|
|
703
|
-
export const REGISTER_METHODS_MAP:
|
|
704
|
-
email: string;
|
|
705
|
-
phone: string;
|
|
706
|
-
};
|
|
706
|
+
export const REGISTER_METHODS_MAP: any;
|
|
707
707
|
export const HIDE_SOCIALS: string[];
|
|
708
708
|
export const HIDE_SOCIALS_SHOWIN_ENTERPRISE: string[];
|
|
709
709
|
export enum ApplicationMfaType {
|
|
@@ -877,7 +877,8 @@ declare module '@authing/react-ui-components/components/AuthingGuard/types/Guard
|
|
|
877
877
|
}
|
|
878
878
|
export enum RegisterMethods {
|
|
879
879
|
Email = "email",
|
|
880
|
-
Phone = "phone"
|
|
880
|
+
Phone = "phone",
|
|
881
|
+
EmailCode = "emailCode"
|
|
881
882
|
}
|
|
882
883
|
export enum GuardScenes {
|
|
883
884
|
Login = "login",
|
|
@@ -1244,6 +1245,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
|
|
|
1244
1245
|
/// <reference types="react" />
|
|
1245
1246
|
interface RotateResetProps {
|
|
1246
1247
|
onReset: any;
|
|
1248
|
+
onFinishCallBack?: any;
|
|
1247
1249
|
}
|
|
1248
1250
|
export const RotateReset: (props: RotateResetProps) => JSX.Element;
|
|
1249
1251
|
export {};
|
|
@@ -1257,6 +1259,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1257
1259
|
}>;
|
|
1258
1260
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1259
1261
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1262
|
+
export const GuardNoticePasswordResetView: React.FC;
|
|
1260
1263
|
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1261
1264
|
|
|
1262
1265
|
}
|
|
@@ -1386,6 +1389,8 @@ declare module '@authing/react-ui-components/components/CompleteInfo/interface'
|
|
|
1386
1389
|
export interface RegisterCompleteInfoInitData {
|
|
1387
1390
|
content: any;
|
|
1388
1391
|
businessRequestName: 'registerByEmail' | 'registerByPhoneCode' | 'registerByEmailCode';
|
|
1392
|
+
onRegisterFailed: Function;
|
|
1393
|
+
onRegisterSuccess: Function;
|
|
1389
1394
|
}
|
|
1390
1395
|
export interface RegisterCompletePasswordInitData extends RegisterCompleteInfoInitData {
|
|
1391
1396
|
isChangeComplete: boolean;
|
|
@@ -1455,7 +1460,10 @@ declare module '@authing/react-ui-components/components/DownloadAuthenticator/in
|
|
|
1455
1460
|
declare module '@authing/react-ui-components/components/Error/index' {
|
|
1456
1461
|
import React from 'react';
|
|
1457
1462
|
import './styles.less';
|
|
1458
|
-
export
|
|
1463
|
+
export interface ErrorProps {
|
|
1464
|
+
error?: Error;
|
|
1465
|
+
}
|
|
1466
|
+
export const GuardErrorView: React.FC<ErrorProps>;
|
|
1459
1467
|
|
|
1460
1468
|
}
|
|
1461
1469
|
declare module '@authing/react-ui-components/components/Error/interface' {
|
|
@@ -1549,6 +1557,7 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1549
1557
|
private changeModuleEvent;
|
|
1550
1558
|
private stateMachineLog;
|
|
1551
1559
|
constructor(changeModuleEvent: ChangeModuleEvent, initData: ModuleState);
|
|
1560
|
+
uninstallPopstate: () => void;
|
|
1552
1561
|
globalWindow: () => Window | undefined;
|
|
1553
1562
|
next: (nextModule: GuardModuleType, initData: any) => void;
|
|
1554
1563
|
back: (initData?: any) => void;
|
|
@@ -1556,8 +1565,9 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1556
1565
|
historyPush: (data: ModuleState, actionType?: ActionType) => void;
|
|
1557
1566
|
historyBack: (data: ModuleState) => void;
|
|
1558
1567
|
setConfig: (config: GuardLocalConfig) => void;
|
|
1568
|
+
isUseHistoryHijack: () => boolean;
|
|
1569
|
+
onPopstate: () => void;
|
|
1559
1570
|
}
|
|
1560
|
-
export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
|
|
1561
1571
|
export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
|
|
1562
1572
|
export const getGuardStateMachine: () => GuardStateMachine;
|
|
1563
1573
|
export const useGuardStateMachine: () => GuardStateMachine;
|
|
@@ -1731,6 +1741,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1731
1741
|
MFA = "mfa",
|
|
1732
1742
|
FORGET_PWD = "forgetPassword",
|
|
1733
1743
|
FORCED_PASSWORD_RESET = "forcedPasswordReset",
|
|
1744
|
+
NOTICE_PASSWORD_RESET = "noticePasswordReset",
|
|
1734
1745
|
FIRST_LOGIN_PASSWORD = "firstLoginPassword",
|
|
1735
1746
|
DOWNLOAD_AT = "downloadAT",
|
|
1736
1747
|
BIND_TOTP = "bindTotp",
|
|
@@ -1743,7 +1754,8 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1743
1754
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1744
1755
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1745
1756
|
IDENTITY_BINDING = "identityBinding",
|
|
1746
|
-
ACCOUNT_MERGE = "accountMerge"
|
|
1757
|
+
ACCOUNT_MERGE = "accountMerge",
|
|
1758
|
+
SELF_UNLOCK = "selfUnlock"
|
|
1747
1759
|
}
|
|
1748
1760
|
export interface GuardModuleAction {
|
|
1749
1761
|
action: string;
|
|
@@ -1774,6 +1786,19 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
|
|
|
1774
1786
|
}
|
|
1775
1787
|
export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
|
|
1776
1788
|
|
|
1789
|
+
}
|
|
1790
|
+
declare module '@authing/react-ui-components/components/GuardButton/GuardButton' {
|
|
1791
|
+
import React from 'react';
|
|
1792
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
1793
|
+
import './styles.less';
|
|
1794
|
+
export interface GuardButtonProps extends ButtonProps {
|
|
1795
|
+
}
|
|
1796
|
+
export const GuardButton: React.FC<GuardButtonProps>;
|
|
1797
|
+
|
|
1798
|
+
}
|
|
1799
|
+
declare module '@authing/react-ui-components/components/GuardButton/index' {
|
|
1800
|
+
export * from '@authing/react-ui-components/components/GuardButton/GuardButton';
|
|
1801
|
+
|
|
1777
1802
|
}
|
|
1778
1803
|
declare module '@authing/react-ui-components/components/IconFont/iconfont' {
|
|
1779
1804
|
export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
|
|
@@ -2032,6 +2057,7 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
|
|
|
2032
2057
|
agreements: Agreement[];
|
|
2033
2058
|
loginWay?: LoginMethods;
|
|
2034
2059
|
submitButText?: string;
|
|
2060
|
+
saveIdentify?: (type: LoginMethods, identity: string) => void;
|
|
2035
2061
|
}
|
|
2036
2062
|
export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
|
|
2037
2063
|
export {};
|
|
@@ -2043,8 +2069,9 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
2043
2069
|
import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2044
2070
|
export interface FormItemIdentifyProps extends FormItemProps {
|
|
2045
2071
|
checkRepeat?: boolean;
|
|
2072
|
+
checkExist?: boolean;
|
|
2046
2073
|
methods: VerifyLoginMethods[];
|
|
2047
|
-
currentMethod
|
|
2074
|
+
currentMethod: 'phone-code' | 'email-code';
|
|
2048
2075
|
areaCode?: string;
|
|
2049
2076
|
}
|
|
2050
2077
|
export const FormItemIdentify: React.FC<FormItemIdentifyProps>;
|
|
@@ -2149,6 +2176,11 @@ declare module '@authing/react-ui-components/components/Login/interface' {
|
|
|
2149
2176
|
export interface GuardLoginViewProps extends GuardLoginProps, IG2FCViewProps {
|
|
2150
2177
|
config: LoginConfig;
|
|
2151
2178
|
}
|
|
2179
|
+
export interface GuardLoginInitData {
|
|
2180
|
+
specifyDefaultLoginMethod?: LoginMethods;
|
|
2181
|
+
_firstItemInitialValue?: string;
|
|
2182
|
+
_lockMethod?: string;
|
|
2183
|
+
}
|
|
2152
2184
|
export const getDefaultLoginConfig: () => LoginConfig;
|
|
2153
2185
|
|
|
2154
2186
|
}
|
|
@@ -2510,6 +2542,21 @@ declare module '@authing/react-ui-components/components/Register/components/Agre
|
|
|
2510
2542
|
}
|
|
2511
2543
|
export const Agreements: FC<AgreementsProps>;
|
|
2512
2544
|
|
|
2545
|
+
}
|
|
2546
|
+
declare module '@authing/react-ui-components/components/Register/core/WithCode' {
|
|
2547
|
+
import React from 'react';
|
|
2548
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2549
|
+
export interface RegisterWithCodeProps {
|
|
2550
|
+
onRegisterSuccess: Function;
|
|
2551
|
+
onRegisterFailed: Function;
|
|
2552
|
+
onBeforeRegister?: Function;
|
|
2553
|
+
agreements: Agreement[];
|
|
2554
|
+
publicConfig?: ApplicationConfig;
|
|
2555
|
+
registeContext?: any;
|
|
2556
|
+
methods: any[];
|
|
2557
|
+
}
|
|
2558
|
+
export const RegisterWithCode: React.FC<RegisterWithCodeProps>;
|
|
2559
|
+
|
|
2513
2560
|
}
|
|
2514
2561
|
declare module '@authing/react-ui-components/components/Register/core/WithEmail' {
|
|
2515
2562
|
import React from 'react';
|
|
@@ -2558,13 +2605,13 @@ declare module '@authing/react-ui-components/components/Register/index' {
|
|
|
2558
2605
|
|
|
2559
2606
|
}
|
|
2560
2607
|
declare module '@authing/react-ui-components/components/Register/interface' {
|
|
2561
|
-
import { IG2FCProps, IG2Config, IG2Events
|
|
2562
|
-
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams } from '@authing/react-ui-components/components/index';
|
|
2608
|
+
import { IG2FCProps, IG2Config, IG2Events } from '@authing/react-ui-components/components/Type/index';
|
|
2609
|
+
import { AuthenticationClient, User, EmailRegisterParams, PhoneRegisterParams, RegisterMethods } from '@authing/react-ui-components/components/index';
|
|
2563
2610
|
import { Agreement } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2564
2611
|
export interface RegisterConfig extends IG2Config {
|
|
2565
2612
|
disableRegister?: boolean;
|
|
2566
|
-
registerMethods?:
|
|
2567
|
-
defaultRegisterMethod?:
|
|
2613
|
+
registerMethods?: RegisterMethods[];
|
|
2614
|
+
defaultRegisterMethod?: RegisterMethods;
|
|
2568
2615
|
publicKey?: string;
|
|
2569
2616
|
agreementEnabled?: boolean;
|
|
2570
2617
|
agreements?: Agreement[];
|
|
@@ -2574,7 +2621,7 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2574
2621
|
onBeforeRegister?: (registerInfo: EmailRegisterParams | PhoneRegisterParams, authClient: AuthenticationClient) => boolean | Promise<boolean>;
|
|
2575
2622
|
onRegister?: (user: User, authClient: AuthenticationClient) => void;
|
|
2576
2623
|
onRegisterError?: (error: any) => void;
|
|
2577
|
-
onRegisterTabChange?: (activeTab:
|
|
2624
|
+
onRegisterTabChange?: (activeTab: RegisterMethods) => void;
|
|
2578
2625
|
}
|
|
2579
2626
|
export interface GuardRegisterProps extends IG2FCProps, RegisterEvents {
|
|
2580
2627
|
config?: Partial<RegisterConfig>;
|
|
@@ -2588,6 +2635,40 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2588
2635
|
declare module '@authing/react-ui-components/components/Register/utils' {
|
|
2589
2636
|
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
2590
2637
|
|
|
2638
|
+
}
|
|
2639
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
2640
|
+
import React from 'react';
|
|
2641
|
+
export enum InputMethodMap {
|
|
2642
|
+
email = "email-code",
|
|
2643
|
+
phone = "phone-code"
|
|
2644
|
+
}
|
|
2645
|
+
export const SelfUnlock: ({ identifyRef, }: {
|
|
2646
|
+
identifyRef?: React.MutableRefObject<string> | undefined;
|
|
2647
|
+
}) => JSX.Element;
|
|
2648
|
+
|
|
2649
|
+
}
|
|
2650
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
2651
|
+
import React from 'react';
|
|
2652
|
+
export const GuardUnlockView: React.FC;
|
|
2653
|
+
|
|
2654
|
+
}
|
|
2655
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
|
|
2656
|
+
import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
|
|
2657
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
2658
|
+
export interface ForgetPasswordEvents extends IG2Events {
|
|
2659
|
+
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
2660
|
+
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2661
|
+
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
2662
|
+
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2663
|
+
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
2664
|
+
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2665
|
+
}
|
|
2666
|
+
export interface ForgetPasswordConfig extends IG2Config {
|
|
2667
|
+
}
|
|
2668
|
+
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
2669
|
+
config: Partial<IG2Config>;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2591
2672
|
}
|
|
2592
2673
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
2593
2674
|
import React, { FC } from 'react';
|
|
@@ -2672,7 +2753,8 @@ declare module '@authing/react-ui-components/components/SingleComponent/index' {
|
|
|
2672
2753
|
}
|
|
2673
2754
|
declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
2674
2755
|
import React from 'react';
|
|
2675
|
-
|
|
2756
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
2757
|
+
interface SubmitButtonProps extends ButtonProps {
|
|
2676
2758
|
text?: string;
|
|
2677
2759
|
className?: string;
|
|
2678
2760
|
onClick?: any;
|
|
@@ -2772,11 +2854,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2772
2854
|
showChangeLanguage: boolean;
|
|
2773
2855
|
};
|
|
2774
2856
|
}
|
|
2775
|
-
export enum NewRegisterMethods {
|
|
2776
|
-
Email = "email",
|
|
2777
|
-
Phone = "phone",
|
|
2778
|
-
EmailCode = "emailCode"
|
|
2779
|
-
}
|
|
2780
2857
|
export enum EmailScene {
|
|
2781
2858
|
WELCOME_EMAIL = "WELCOME_EMAIL",
|
|
2782
2859
|
FIRST_CREATED_USER = "FIRST_CREATED_USER",
|
|
@@ -2788,7 +2865,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2788
2865
|
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2789
2866
|
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2790
2867
|
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2791
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2868
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
2869
|
+
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
2792
2870
|
}
|
|
2793
2871
|
|
|
2794
2872
|
}
|
|
@@ -2817,12 +2895,11 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2817
2895
|
export interface ValidatorFormItemProps extends FormItemProps {
|
|
2818
2896
|
form?: FormInstance;
|
|
2819
2897
|
checkRepeat?: boolean;
|
|
2898
|
+
checkExist?: boolean;
|
|
2820
2899
|
areaCode?: string;
|
|
2821
2900
|
isCheckI18nSms?: boolean;
|
|
2822
2901
|
}
|
|
2823
2902
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2824
|
-
form?: FormInstance;
|
|
2825
|
-
checkRepeat?: boolean;
|
|
2826
2903
|
method: 'email' | 'phone' | 'username';
|
|
2827
2904
|
}
|
|
2828
2905
|
export interface PasswordFormItemProps extends FormItemProps {
|
|
@@ -2888,8 +2965,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2888
2965
|
import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2889
2966
|
import { GuardComponentConfig, GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
|
|
2890
2967
|
import { GuardHttp } from '@authing/react-ui-components/components/_utils/guardHttp';
|
|
2891
|
-
import { NewRegisterMethods } from '@authing/react-ui-components/components/Type/index';
|
|
2892
2968
|
import { GuardPageConfig } from '@authing/react-ui-components/components/Type/index';
|
|
2969
|
+
import { RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
2893
2970
|
export const getPublicConfig: (appId: string) => ApplicationConfig;
|
|
2894
2971
|
export const setPublicConfig: (appId: string, config: ApplicationConfig) => ApplicationConfig;
|
|
2895
2972
|
export const useMergeDefaultConfig: (defaultConfig: GuardLocalConfig, config?: GuardComponentConfig | undefined) => GuardLocalConfig | undefined;
|
|
@@ -2903,8 +2980,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2903
2980
|
openEventsMapping?: boolean | undefined;
|
|
2904
2981
|
_qrCodeScanOptions?: Record<import("@authing/react-ui-components/components/Guard/config").QrCodeScanType, import("../../Guard/config").QrCodeScanOptions> | undefined;
|
|
2905
2982
|
disableRegister?: boolean | undefined;
|
|
2906
|
-
registerMethods?:
|
|
2907
|
-
defaultRegisterMethod?:
|
|
2983
|
+
registerMethods?: RegisterMethods[] | undefined;
|
|
2984
|
+
defaultRegisterMethod?: RegisterMethods | undefined;
|
|
2908
2985
|
publicKey?: string | undefined;
|
|
2909
2986
|
agreementEnabled?: boolean | undefined;
|
|
2910
2987
|
agreements?: import("@authing/react-ui-components/components/AuthingGuard/api/index").Agreement[] | undefined;
|
|
@@ -2914,7 +2991,7 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2914
2991
|
lang: string;
|
|
2915
2992
|
langRange: string[];
|
|
2916
2993
|
isHost?: boolean | undefined;
|
|
2917
|
-
mode: import("@authing/react-ui-components/components/index").GuardMode;
|
|
2994
|
+
mode: import("@authing/react-ui-components/components/AuthingGuard/types/index").GuardMode;
|
|
2918
2995
|
clickCloseable: boolean;
|
|
2919
2996
|
escCloseable: boolean;
|
|
2920
2997
|
userpool?: string | undefined;
|
|
@@ -2925,8 +3002,8 @@ declare module '@authing/react-ui-components/components/_utils/config/index' {
|
|
|
2925
3002
|
__unAuthFlow__?: boolean | undefined;
|
|
2926
3003
|
autoRegister?: boolean | undefined;
|
|
2927
3004
|
disableResetPwd?: boolean | undefined;
|
|
2928
|
-
defaultLoginMethod?: import("@authing/react-ui-components/components/index").LoginMethods | undefined;
|
|
2929
|
-
loginMethods?: import("@authing/react-ui-components/components/index").LoginMethods[] | undefined;
|
|
3005
|
+
defaultLoginMethod?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods | undefined;
|
|
3006
|
+
loginMethods?: import("@authing/react-ui-components/components/AuthingGuard/types/index").LoginMethods[] | undefined;
|
|
2930
3007
|
passwordLoginMethods?: import("@authing/react-ui-components/components/AuthingGuard/api/index").PasswordLoginMethods[] | undefined;
|
|
2931
3008
|
socialConnections?: import("authing-js-sdk").SocialConnectionProvider[] | undefined;
|
|
2932
3009
|
socialConnectionsBtnShape?: "default" | "button" | "icon" | undefined;
|
|
@@ -3015,6 +3092,14 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3015
3092
|
}>;
|
|
3016
3093
|
Consumer: React.Consumer<IGuardContext>;
|
|
3017
3094
|
};
|
|
3095
|
+
export interface IGuardContextProvider {
|
|
3096
|
+
spin: boolean;
|
|
3097
|
+
spinChange: (spin: boolean) => void;
|
|
3098
|
+
}
|
|
3099
|
+
export const useGuardButtonContext: () => {
|
|
3100
|
+
GuardButtonProvider: React.FC<{}>;
|
|
3101
|
+
};
|
|
3102
|
+
export const useGuardButtonState: () => IGuardContextProvider;
|
|
3018
3103
|
export const useGuardPublicConfig: () => ApplicationConfig;
|
|
3019
3104
|
export const useGuardHttpClient: () => GuardHttp;
|
|
3020
3105
|
export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
@@ -3064,7 +3149,8 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
|
3064
3149
|
}
|
|
3065
3150
|
declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
|
|
3066
3151
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
3067
|
-
export const getFacePlugin: () => FacePlugin;
|
|
3152
|
+
export const getFacePlugin: () => FacePlugin | undefined;
|
|
3153
|
+
export const useFacePlugin: () => FacePlugin | undefined;
|
|
3068
3154
|
export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
|
|
3069
3155
|
|
|
3070
3156
|
}
|
|
@@ -3150,6 +3236,10 @@ declare module '@authing/react-ui-components/components/_utils/hooks/index' {
|
|
|
3150
3236
|
countryCode: string | undefined;
|
|
3151
3237
|
phoneNumber: string;
|
|
3152
3238
|
};
|
|
3239
|
+
export enum SocialConnectionEvent {
|
|
3240
|
+
Message = "message",
|
|
3241
|
+
Auth = "auth"
|
|
3242
|
+
}
|
|
3153
3243
|
/**
|
|
3154
3244
|
*
|
|
3155
3245
|
* @param config
|
|
@@ -3202,7 +3292,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3202
3292
|
import { User } from 'authing-js-sdk';
|
|
3203
3293
|
import { ApplicationConfig, ComplateFiledsPlace } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
3204
3294
|
import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
|
|
3205
|
-
import {
|
|
3295
|
+
import { LoginMethods, RegisterMethods } from '@authing/react-ui-components/components/AuthingGuard/types/index';
|
|
3206
3296
|
export * from '@authing/react-ui-components/components/_utils/popupCenter';
|
|
3207
3297
|
export * from '@authing/react-ui-components/components/_utils/clipboard';
|
|
3208
3298
|
export const VALIDATE_PATTERN: {
|
|
@@ -3271,12 +3361,20 @@ declare module '@authing/react-ui-components/components/_utils/index' {
|
|
|
3271
3361
|
export const getPasswordValidate: (strength?: PasswordStrength, customPasswordStrength?: any, fieldRequiredRuleMessage?: string | undefined) => Rule[];
|
|
3272
3362
|
export const sleep: (delay: number) => Promise<unknown>;
|
|
3273
3363
|
export const shoudGoToComplete: (user: User, contextType: ComplateFiledsPlace, config: ApplicationConfig | undefined, autoRegister?: boolean | undefined) => boolean;
|
|
3274
|
-
export const tabSort: (defaultValue:
|
|
3364
|
+
export const tabSort: (defaultValue: any, tabList: RegisterMethods[]) => RegisterMethods[];
|
|
3275
3365
|
export const mailDesensitization: (mail: string) => string;
|
|
3276
3366
|
export const phoneDesensitization: (phone: string) => string;
|
|
3277
3367
|
export const getHundreds: (num: number) => number;
|
|
3278
3368
|
export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
|
|
3279
3369
|
export const getDocumentNode: (node: Node & ParentNode) => Document;
|
|
3370
|
+
export const getLoginTypePipe: (publicConfig: ApplicationConfig, registerMethod: RegisterMethods) => {
|
|
3371
|
+
specifyDefaultLoginMethod: LoginMethods;
|
|
3372
|
+
lockMethod: string;
|
|
3373
|
+
} | {
|
|
3374
|
+
specifyDefaultLoginMethod: LoginMethods;
|
|
3375
|
+
lockMethod?: undefined;
|
|
3376
|
+
} | undefined;
|
|
3377
|
+
export const getPasswordIdentify: (identity: string) => string;
|
|
3280
3378
|
|
|
3281
3379
|
}
|
|
3282
3380
|
declare module '@authing/react-ui-components/components/_utils/initAppId' {
|
|
@@ -3371,6 +3469,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3371
3469
|
MFA = 1635,
|
|
3372
3470
|
ABORT_FLOW = 1699,
|
|
3373
3471
|
COMPLETE_INFO = 1642,
|
|
3472
|
+
UNLOCK = 1643,
|
|
3374
3473
|
FLOW_END = 1600,
|
|
3375
3474
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3376
3475
|
FORCED_PASSWORD_RESET = 2058,
|
|
@@ -3472,7 +3571,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3472
3571
|
|
|
3473
3572
|
}
|
|
3474
3573
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3475
|
-
const _default: "3.1.19-hep.
|
|
3574
|
+
const _default: "3.1.19-hep.3";
|
|
3476
3575
|
export default _default;
|
|
3477
3576
|
|
|
3478
3577
|
}
|