@authing/react-ui-components 3.1.19-rc.0 → 3.1.19-rc.12
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 +74 -7
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +1 -1
- package/package.json +2 -1
package/lib/index.d.ts
CHANGED
|
@@ -1195,6 +1195,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/core/rota
|
|
|
1195
1195
|
/// <reference types="react" />
|
|
1196
1196
|
interface RotateResetProps {
|
|
1197
1197
|
onReset: any;
|
|
1198
|
+
onFinishCallBack?: any;
|
|
1198
1199
|
}
|
|
1199
1200
|
export const RotateReset: (props: RotateResetProps) => JSX.Element;
|
|
1200
1201
|
export {};
|
|
@@ -1208,6 +1209,7 @@ declare module '@authing/react-ui-components/components/ChangePassword/index' {
|
|
|
1208
1209
|
}>;
|
|
1209
1210
|
export const GuardFirstLoginPasswordResetView: React.FC;
|
|
1210
1211
|
export const GuardForcedPasswordResetView: React.FC;
|
|
1212
|
+
export const GuardNoticePasswordResetView: React.FC;
|
|
1211
1213
|
export const GuardRegisterCompletePasswordView: React.FC;
|
|
1212
1214
|
|
|
1213
1215
|
}
|
|
@@ -1402,7 +1404,10 @@ declare module '@authing/react-ui-components/components/DownloadAuthenticator/in
|
|
|
1402
1404
|
declare module '@authing/react-ui-components/components/Error/index' {
|
|
1403
1405
|
import React from 'react';
|
|
1404
1406
|
import './styles.less';
|
|
1405
|
-
export
|
|
1407
|
+
export interface ErrorProps {
|
|
1408
|
+
error?: Error;
|
|
1409
|
+
}
|
|
1410
|
+
export const GuardErrorView: React.FC<ErrorProps>;
|
|
1406
1411
|
|
|
1407
1412
|
}
|
|
1408
1413
|
declare module '@authing/react-ui-components/components/Error/interface' {
|
|
@@ -1496,6 +1501,7 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1496
1501
|
private changeModuleEvent;
|
|
1497
1502
|
private stateMachineLog;
|
|
1498
1503
|
constructor(changeModuleEvent: ChangeModuleEvent, initData: ModuleState);
|
|
1504
|
+
uninstallPopstate: () => void;
|
|
1499
1505
|
globalWindow: () => Window | undefined;
|
|
1500
1506
|
next: (nextModule: GuardModuleType, initData: any) => void;
|
|
1501
1507
|
back: (initData?: any) => void;
|
|
@@ -1503,8 +1509,9 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1503
1509
|
historyPush: (data: ModuleState, actionType?: ActionType) => void;
|
|
1504
1510
|
historyBack: (data: ModuleState) => void;
|
|
1505
1511
|
setConfig: (config: GuardLocalConfig) => void;
|
|
1512
|
+
isUseHistoryHijack: () => boolean;
|
|
1513
|
+
onPopstate: () => void;
|
|
1506
1514
|
}
|
|
1507
|
-
export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
|
|
1508
1515
|
export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
|
|
1509
1516
|
export const getGuardStateMachine: () => GuardStateMachine;
|
|
1510
1517
|
export const useGuardStateMachine: () => GuardStateMachine;
|
|
@@ -1678,6 +1685,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1678
1685
|
MFA = "mfa",
|
|
1679
1686
|
FORGET_PWD = "forgetPassword",
|
|
1680
1687
|
FORCED_PASSWORD_RESET = "forcedPasswordReset",
|
|
1688
|
+
NOTICE_PASSWORD_RESET = "noticePasswordReset",
|
|
1681
1689
|
FIRST_LOGIN_PASSWORD = "firstLoginPassword",
|
|
1682
1690
|
DOWNLOAD_AT = "downloadAT",
|
|
1683
1691
|
BIND_TOTP = "bindTotp",
|
|
@@ -1688,7 +1696,8 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1688
1696
|
RECOVERY_CODE = "recoveryCode",
|
|
1689
1697
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1690
1698
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1691
|
-
IDENTITY_BINDING = "identityBinding"
|
|
1699
|
+
IDENTITY_BINDING = "identityBinding",
|
|
1700
|
+
SELF_UNLOCK = "selfUnlock"
|
|
1692
1701
|
}
|
|
1693
1702
|
export interface GuardModuleAction {
|
|
1694
1703
|
action: string;
|
|
@@ -1719,6 +1728,19 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
|
|
|
1719
1728
|
}
|
|
1720
1729
|
export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
|
|
1721
1730
|
|
|
1731
|
+
}
|
|
1732
|
+
declare module '@authing/react-ui-components/components/GuardButton/GuardButton' {
|
|
1733
|
+
import React from 'react';
|
|
1734
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
1735
|
+
import './styles.less';
|
|
1736
|
+
export interface GuardButtonProps extends ButtonProps {
|
|
1737
|
+
}
|
|
1738
|
+
export const GuardButton: React.FC<GuardButtonProps>;
|
|
1739
|
+
|
|
1740
|
+
}
|
|
1741
|
+
declare module '@authing/react-ui-components/components/GuardButton/index' {
|
|
1742
|
+
export * from '@authing/react-ui-components/components/GuardButton/GuardButton';
|
|
1743
|
+
|
|
1722
1744
|
}
|
|
1723
1745
|
declare module '@authing/react-ui-components/components/IconFont/iconfont' {
|
|
1724
1746
|
export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
|
|
@@ -1763,6 +1785,7 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1763
1785
|
export interface PasswordParams {
|
|
1764
1786
|
account: string;
|
|
1765
1787
|
password: string;
|
|
1788
|
+
captchaCode: string;
|
|
1766
1789
|
}
|
|
1767
1790
|
export enum IdentityBindingAction {
|
|
1768
1791
|
CreateUser = "create-federation-account",
|
|
@@ -2531,6 +2554,38 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2531
2554
|
declare module '@authing/react-ui-components/components/Register/utils' {
|
|
2532
2555
|
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
2533
2556
|
|
|
2557
|
+
}
|
|
2558
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
2559
|
+
/// <reference types="react" />
|
|
2560
|
+
export enum InputMethodMap {
|
|
2561
|
+
email = "email-code",
|
|
2562
|
+
phone = "phone-code"
|
|
2563
|
+
}
|
|
2564
|
+
export const SelfUnlock: () => JSX.Element;
|
|
2565
|
+
|
|
2566
|
+
}
|
|
2567
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
2568
|
+
import React from 'react';
|
|
2569
|
+
export const GuardUnlockView: React.FC;
|
|
2570
|
+
|
|
2571
|
+
}
|
|
2572
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
|
|
2573
|
+
import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
|
|
2574
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
2575
|
+
export interface ForgetPasswordEvents extends IG2Events {
|
|
2576
|
+
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
2577
|
+
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2578
|
+
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
2579
|
+
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2580
|
+
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
2581
|
+
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2582
|
+
}
|
|
2583
|
+
export interface ForgetPasswordConfig extends IG2Config {
|
|
2584
|
+
}
|
|
2585
|
+
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
2586
|
+
config: Partial<IG2Config>;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2534
2589
|
}
|
|
2535
2590
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
2536
2591
|
import React, { FC } from 'react';
|
|
@@ -2615,7 +2670,8 @@ declare module '@authing/react-ui-components/components/SingleComponent/index' {
|
|
|
2615
2670
|
}
|
|
2616
2671
|
declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
2617
2672
|
import React from 'react';
|
|
2618
|
-
|
|
2673
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
2674
|
+
interface SubmitButtonProps extends ButtonProps {
|
|
2619
2675
|
text?: string;
|
|
2620
2676
|
className?: string;
|
|
2621
2677
|
onClick?: any;
|
|
@@ -2731,7 +2787,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2731
2787
|
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2732
2788
|
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2733
2789
|
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2734
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2790
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
2791
|
+
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
2735
2792
|
}
|
|
2736
2793
|
|
|
2737
2794
|
}
|
|
@@ -2958,6 +3015,14 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
2958
3015
|
}>;
|
|
2959
3016
|
Consumer: React.Consumer<IGuardContext>;
|
|
2960
3017
|
};
|
|
3018
|
+
export interface IGuardContextProvider {
|
|
3019
|
+
spin: boolean;
|
|
3020
|
+
spinChange: (spin: boolean) => void;
|
|
3021
|
+
}
|
|
3022
|
+
export const useGuardButtonContext: () => {
|
|
3023
|
+
GuardButtonProvider: React.FC<{}>;
|
|
3024
|
+
};
|
|
3025
|
+
export const useGuardButtonState: () => IGuardContextProvider;
|
|
2961
3026
|
export const useGuardPublicConfig: () => ApplicationConfig;
|
|
2962
3027
|
export const useGuardHttpClient: () => GuardHttp;
|
|
2963
3028
|
export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
@@ -3007,7 +3072,8 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
|
3007
3072
|
}
|
|
3008
3073
|
declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
|
|
3009
3074
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
3010
|
-
export const getFacePlugin: () => FacePlugin;
|
|
3075
|
+
export const getFacePlugin: () => FacePlugin | undefined;
|
|
3076
|
+
export const useFacePlugin: () => FacePlugin | undefined;
|
|
3011
3077
|
export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
|
|
3012
3078
|
|
|
3013
3079
|
}
|
|
@@ -3314,6 +3380,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3314
3380
|
MFA = 1635,
|
|
3315
3381
|
ABORT_FLOW = 1699,
|
|
3316
3382
|
COMPLETE_INFO = 1642,
|
|
3383
|
+
UNLOCK = 1643,
|
|
3317
3384
|
FLOW_END = 1600,
|
|
3318
3385
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3319
3386
|
FORCED_PASSWORD_RESET = 2058
|
|
@@ -3413,7 +3480,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3413
3480
|
|
|
3414
3481
|
}
|
|
3415
3482
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3416
|
-
const _default: "3.1.19-rc.
|
|
3483
|
+
const _default: "3.1.19-rc.12";
|
|
3417
3484
|
export default _default;
|
|
3418
3485
|
|
|
3419
3486
|
}
|