@authing/react-ui-components 3.1.19-rc.0 → 3.1.19-rc.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 +71 -6
- 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' {
|
|
@@ -1678,6 +1683,7 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1678
1683
|
MFA = "mfa",
|
|
1679
1684
|
FORGET_PWD = "forgetPassword",
|
|
1680
1685
|
FORCED_PASSWORD_RESET = "forcedPasswordReset",
|
|
1686
|
+
NOTICE_PASSWORD_RESET = "noticePasswordReset",
|
|
1681
1687
|
FIRST_LOGIN_PASSWORD = "firstLoginPassword",
|
|
1682
1688
|
DOWNLOAD_AT = "downloadAT",
|
|
1683
1689
|
BIND_TOTP = "bindTotp",
|
|
@@ -1688,7 +1694,8 @@ declare module '@authing/react-ui-components/components/Guard/module' {
|
|
|
1688
1694
|
RECOVERY_CODE = "recoveryCode",
|
|
1689
1695
|
SUBMIT_SUCCESS = "submitSuccess",
|
|
1690
1696
|
IDENTITY_BINDING_ASK = "identityBindingAsk",
|
|
1691
|
-
IDENTITY_BINDING = "identityBinding"
|
|
1697
|
+
IDENTITY_BINDING = "identityBinding",
|
|
1698
|
+
SELF_UNLOCK = "selfUnlock"
|
|
1692
1699
|
}
|
|
1693
1700
|
export interface GuardModuleAction {
|
|
1694
1701
|
action: string;
|
|
@@ -1719,6 +1726,19 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
|
|
|
1719
1726
|
}
|
|
1720
1727
|
export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
|
|
1721
1728
|
|
|
1729
|
+
}
|
|
1730
|
+
declare module '@authing/react-ui-components/components/GuardButton/GuardButton' {
|
|
1731
|
+
import React from 'react';
|
|
1732
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
1733
|
+
import './styles.less';
|
|
1734
|
+
export interface GuardButtonProps extends ButtonProps {
|
|
1735
|
+
}
|
|
1736
|
+
export const GuardButton: React.FC<GuardButtonProps>;
|
|
1737
|
+
|
|
1738
|
+
}
|
|
1739
|
+
declare module '@authing/react-ui-components/components/GuardButton/index' {
|
|
1740
|
+
export * from '@authing/react-ui-components/components/GuardButton/GuardButton';
|
|
1741
|
+
|
|
1722
1742
|
}
|
|
1723
1743
|
declare module '@authing/react-ui-components/components/IconFont/iconfont' {
|
|
1724
1744
|
export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
|
|
@@ -1763,6 +1783,7 @@ declare module '@authing/react-ui-components/components/IdentityBinding/business
|
|
|
1763
1783
|
export interface PasswordParams {
|
|
1764
1784
|
account: string;
|
|
1765
1785
|
password: string;
|
|
1786
|
+
captchaCode: string;
|
|
1766
1787
|
}
|
|
1767
1788
|
export enum IdentityBindingAction {
|
|
1768
1789
|
CreateUser = "create-federation-account",
|
|
@@ -2531,6 +2552,38 @@ declare module '@authing/react-ui-components/components/Register/interface' {
|
|
|
2531
2552
|
declare module '@authing/react-ui-components/components/Register/utils' {
|
|
2532
2553
|
export const useIsChangeComplete: (currentMode: 'phone' | 'email') => boolean;
|
|
2533
2554
|
|
|
2555
|
+
}
|
|
2556
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
|
|
2557
|
+
/// <reference types="react" />
|
|
2558
|
+
export enum InputMethodMap {
|
|
2559
|
+
email = "email-code",
|
|
2560
|
+
phone = "phone-code"
|
|
2561
|
+
}
|
|
2562
|
+
export const SelfUnlock: () => JSX.Element;
|
|
2563
|
+
|
|
2564
|
+
}
|
|
2565
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/index' {
|
|
2566
|
+
import React from 'react';
|
|
2567
|
+
export const GuardUnlockView: React.FC;
|
|
2568
|
+
|
|
2569
|
+
}
|
|
2570
|
+
declare module '@authing/react-ui-components/components/SelfUnlock/interface' {
|
|
2571
|
+
import { AuthenticationClient, CommonMessage } from '@authing/react-ui-components/components/index';
|
|
2572
|
+
import { IG2Config, IG2Events, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
|
|
2573
|
+
export interface ForgetPasswordEvents extends IG2Events {
|
|
2574
|
+
onPwdEmailSend?: (authClient: AuthenticationClient) => void;
|
|
2575
|
+
onPwdEmailSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2576
|
+
onPwdPhoneSend?: (authClient: AuthenticationClient) => void;
|
|
2577
|
+
onPwdPhoneSendError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2578
|
+
onPwdReset?: (authClient: AuthenticationClient) => void;
|
|
2579
|
+
onPwdResetError?: (error: CommonMessage, authClient: AuthenticationClient) => void;
|
|
2580
|
+
}
|
|
2581
|
+
export interface ForgetPasswordConfig extends IG2Config {
|
|
2582
|
+
}
|
|
2583
|
+
export interface ForgetPasswordProps extends IG2FCProps, ForgetPasswordEvents {
|
|
2584
|
+
config: Partial<IG2Config>;
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2534
2587
|
}
|
|
2535
2588
|
declare module '@authing/react-ui-components/components/SendCode/SendCodeBtn' {
|
|
2536
2589
|
import React, { FC } from 'react';
|
|
@@ -2615,7 +2668,8 @@ declare module '@authing/react-ui-components/components/SingleComponent/index' {
|
|
|
2615
2668
|
}
|
|
2616
2669
|
declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
2617
2670
|
import React from 'react';
|
|
2618
|
-
|
|
2671
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
2672
|
+
interface SubmitButtonProps extends ButtonProps {
|
|
2619
2673
|
text?: string;
|
|
2620
2674
|
className?: string;
|
|
2621
2675
|
onClick?: any;
|
|
@@ -2731,7 +2785,8 @@ declare module '@authing/react-ui-components/components/Type/index' {
|
|
|
2731
2785
|
CONSOLE_CONDUCTED_VERIFY = "CONSOLE_CONDUCTED_VERIFY",
|
|
2732
2786
|
RESET_PASSWORD_VERIFY_CODE = "RESET_PASSWORD_VERIFY_CODE",
|
|
2733
2787
|
EMAIL_BIND_VERIFY_CODE = "EMAIL_BIND_VERIFY_CODE",
|
|
2734
|
-
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE"
|
|
2788
|
+
EMAIL_UNBIND_VERIFY_CODE = "EMAIL_UNBIND_VERIFY_CODE",
|
|
2789
|
+
SELF_UNLOCKING_VERIFY_CODE = "SELF_UNLOCKING_VERIFY_CODE"
|
|
2735
2790
|
}
|
|
2736
2791
|
|
|
2737
2792
|
}
|
|
@@ -2958,6 +3013,14 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
2958
3013
|
}>;
|
|
2959
3014
|
Consumer: React.Consumer<IGuardContext>;
|
|
2960
3015
|
};
|
|
3016
|
+
export interface IGuardContextProvider {
|
|
3017
|
+
spin: boolean;
|
|
3018
|
+
spinChange: (spin: boolean) => void;
|
|
3019
|
+
}
|
|
3020
|
+
export const useGuardButtonContext: () => {
|
|
3021
|
+
GuardButtonProvider: React.FC<{}>;
|
|
3022
|
+
};
|
|
3023
|
+
export const useGuardButtonState: () => IGuardContextProvider;
|
|
2961
3024
|
export const useGuardPublicConfig: () => ApplicationConfig;
|
|
2962
3025
|
export const useGuardHttpClient: () => GuardHttp;
|
|
2963
3026
|
export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
@@ -3007,7 +3070,8 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
|
3007
3070
|
}
|
|
3008
3071
|
declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
|
|
3009
3072
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
3010
|
-
export const getFacePlugin: () => FacePlugin;
|
|
3073
|
+
export const getFacePlugin: () => FacePlugin | undefined;
|
|
3074
|
+
export const useFacePlugin: () => FacePlugin | undefined;
|
|
3011
3075
|
export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
|
|
3012
3076
|
|
|
3013
3077
|
}
|
|
@@ -3314,6 +3378,7 @@ declare module '@authing/react-ui-components/components/_utils/responseManagemen
|
|
|
3314
3378
|
MFA = 1635,
|
|
3315
3379
|
ABORT_FLOW = 1699,
|
|
3316
3380
|
COMPLETE_INFO = 1642,
|
|
3381
|
+
UNLOCK = 1643,
|
|
3317
3382
|
FLOW_END = 1600,
|
|
3318
3383
|
FIRST_LOGIN_PASSWORD = 1639,
|
|
3319
3384
|
FORCED_PASSWORD_RESET = 2058
|
|
@@ -3413,7 +3478,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3413
3478
|
|
|
3414
3479
|
}
|
|
3415
3480
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3416
|
-
const _default: "3.1.19-rc.
|
|
3481
|
+
const _default: "3.1.19-rc.3";
|
|
3417
3482
|
export default _default;
|
|
3418
3483
|
|
|
3419
3484
|
}
|