@authing/react-ui-components 3.1.20-rc.9 → 3.1.21-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 +44 -6
- 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
|
@@ -1500,6 +1500,7 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1500
1500
|
private changeModuleEvent;
|
|
1501
1501
|
private stateMachineLog;
|
|
1502
1502
|
constructor(changeModuleEvent: ChangeModuleEvent, initData: ModuleState);
|
|
1503
|
+
uninstallPopstate: () => void;
|
|
1503
1504
|
globalWindow: () => Window | undefined;
|
|
1504
1505
|
next: (nextModule: GuardModuleType, initData: any) => void;
|
|
1505
1506
|
back: (initData?: any) => void;
|
|
@@ -1507,8 +1508,9 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
|
|
|
1507
1508
|
historyPush: (data: ModuleState, actionType?: ActionType) => void;
|
|
1508
1509
|
historyBack: (data: ModuleState) => void;
|
|
1509
1510
|
setConfig: (config: GuardLocalConfig) => void;
|
|
1511
|
+
isUseHistoryHijack: () => boolean;
|
|
1512
|
+
onPopstate: () => void;
|
|
1510
1513
|
}
|
|
1511
|
-
export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
|
|
1512
1514
|
export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
|
|
1513
1515
|
export const getGuardStateMachine: () => GuardStateMachine;
|
|
1514
1516
|
export const useGuardStateMachine: () => GuardStateMachine;
|
|
@@ -1725,6 +1727,19 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
|
|
|
1725
1727
|
}
|
|
1726
1728
|
export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
|
|
1727
1729
|
|
|
1730
|
+
}
|
|
1731
|
+
declare module '@authing/react-ui-components/components/GuardButton/GuardButton' {
|
|
1732
|
+
import React from 'react';
|
|
1733
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
1734
|
+
import './styles.less';
|
|
1735
|
+
export interface GuardButtonProps extends ButtonProps {
|
|
1736
|
+
}
|
|
1737
|
+
export const GuardButton: React.FC<GuardButtonProps>;
|
|
1738
|
+
|
|
1739
|
+
}
|
|
1740
|
+
declare module '@authing/react-ui-components/components/GuardButton/index' {
|
|
1741
|
+
export * from '@authing/react-ui-components/components/GuardButton/GuardButton';
|
|
1742
|
+
|
|
1728
1743
|
}
|
|
1729
1744
|
declare module '@authing/react-ui-components/components/IconFont/iconfont' {
|
|
1730
1745
|
export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
|
|
@@ -1994,6 +2009,7 @@ declare module '@authing/react-ui-components/components/Login/core/withVerifyCod
|
|
|
1994
2009
|
import { VerifyLoginMethods } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
1995
2010
|
export interface FormItemIdentifyProps extends FormItemProps {
|
|
1996
2011
|
checkRepeat?: boolean;
|
|
2012
|
+
checkExist?: boolean;
|
|
1997
2013
|
methods: VerifyLoginMethods[];
|
|
1998
2014
|
currentMethod: 'phone-code' | 'email-code';
|
|
1999
2015
|
areaCode?: string;
|
|
@@ -2508,6 +2524,19 @@ declare module '@authing/react-ui-components/components/Register/core/WithEmailC
|
|
|
2508
2524
|
}
|
|
2509
2525
|
export const RegisterWithEmailCode: React.FC<RegisterWithEmailCodeProps>;
|
|
2510
2526
|
|
|
2527
|
+
}
|
|
2528
|
+
declare module '@authing/react-ui-components/components/Register/core/WithPhone' {
|
|
2529
|
+
import React from 'react';
|
|
2530
|
+
import { Agreement, ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
|
|
2531
|
+
export interface RegisterWithPhoneProps {
|
|
2532
|
+
onRegisterSuccess: Function;
|
|
2533
|
+
onRegisterFailed: Function;
|
|
2534
|
+
agreements: Agreement[];
|
|
2535
|
+
publicConfig?: ApplicationConfig;
|
|
2536
|
+
registeContext?: any;
|
|
2537
|
+
}
|
|
2538
|
+
export const RegisterWithPhone: React.FC<RegisterWithPhoneProps>;
|
|
2539
|
+
|
|
2511
2540
|
}
|
|
2512
2541
|
declare module '@authing/react-ui-components/components/Register/index' {
|
|
2513
2542
|
import React from 'react';
|
|
@@ -2661,7 +2690,8 @@ declare module '@authing/react-ui-components/components/SingleComponent/index' {
|
|
|
2661
2690
|
}
|
|
2662
2691
|
declare module '@authing/react-ui-components/components/SubmitButton/index' {
|
|
2663
2692
|
import React from 'react';
|
|
2664
|
-
|
|
2693
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
2694
|
+
interface SubmitButtonProps extends ButtonProps {
|
|
2665
2695
|
text?: string;
|
|
2666
2696
|
className?: string;
|
|
2667
2697
|
onClick?: any;
|
|
@@ -2802,12 +2832,11 @@ declare module '@authing/react-ui-components/components/ValidatorRules/index' {
|
|
|
2802
2832
|
export interface ValidatorFormItemProps extends FormItemProps {
|
|
2803
2833
|
form?: FormInstance;
|
|
2804
2834
|
checkRepeat?: boolean;
|
|
2835
|
+
checkExist?: boolean;
|
|
2805
2836
|
areaCode?: string;
|
|
2806
2837
|
isCheckI18nSms?: boolean;
|
|
2807
2838
|
}
|
|
2808
2839
|
export interface ValidatorFormItemMetaProps extends ValidatorFormItemProps {
|
|
2809
|
-
form?: FormInstance;
|
|
2810
|
-
checkRepeat?: boolean;
|
|
2811
2840
|
method: 'email' | 'phone' | 'username';
|
|
2812
2841
|
}
|
|
2813
2842
|
export interface PasswordFormItemProps extends FormItemProps {
|
|
@@ -3000,6 +3029,14 @@ declare module '@authing/react-ui-components/components/_utils/context' {
|
|
|
3000
3029
|
}>;
|
|
3001
3030
|
Consumer: React.Consumer<IGuardContext>;
|
|
3002
3031
|
};
|
|
3032
|
+
export interface IGuardContextProvider {
|
|
3033
|
+
spin: boolean;
|
|
3034
|
+
spinChange: (spin: boolean) => void;
|
|
3035
|
+
}
|
|
3036
|
+
export const useGuardButtonContext: () => {
|
|
3037
|
+
GuardButtonProvider: React.FC<{}>;
|
|
3038
|
+
};
|
|
3039
|
+
export const useGuardButtonState: () => IGuardContextProvider;
|
|
3003
3040
|
export const useGuardPublicConfig: () => ApplicationConfig;
|
|
3004
3041
|
export const useGuardHttpClient: () => GuardHttp;
|
|
3005
3042
|
export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
|
|
@@ -3049,7 +3086,8 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
|
|
|
3049
3086
|
}
|
|
3050
3087
|
declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
|
|
3051
3088
|
import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
|
|
3052
|
-
export const getFacePlugin: () => FacePlugin;
|
|
3089
|
+
export const getFacePlugin: () => FacePlugin | undefined;
|
|
3090
|
+
export const useFacePlugin: () => FacePlugin | undefined;
|
|
3053
3091
|
export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
|
|
3054
3092
|
|
|
3055
3093
|
}
|
|
@@ -3463,7 +3501,7 @@ declare module '@authing/react-ui-components/components/version/index' {
|
|
|
3463
3501
|
|
|
3464
3502
|
}
|
|
3465
3503
|
declare module '@authing/react-ui-components/components/version/version' {
|
|
3466
|
-
const _default: "3.1.
|
|
3504
|
+
const _default: "3.1.21-rc.1";
|
|
3467
3505
|
export default _default;
|
|
3468
3506
|
|
|
3469
3507
|
}
|