@authing/react-ui-components 3.1.20 → 3.1.22-rc.2

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 CHANGED
@@ -1501,6 +1501,7 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
1501
1501
  private changeModuleEvent;
1502
1502
  private stateMachineLog;
1503
1503
  constructor(changeModuleEvent: ChangeModuleEvent, initData: ModuleState);
1504
+ uninstallPopstate: () => void;
1504
1505
  globalWindow: () => Window | undefined;
1505
1506
  next: (nextModule: GuardModuleType, initData: any) => void;
1506
1507
  back: (initData?: any) => void;
@@ -1508,8 +1509,9 @@ declare module '@authing/react-ui-components/components/Guard/GuardModule/stateM
1508
1509
  historyPush: (data: ModuleState, actionType?: ActionType) => void;
1509
1510
  historyBack: (data: ModuleState) => void;
1510
1511
  setConfig: (config: GuardLocalConfig) => void;
1512
+ isUseHistoryHijack: () => boolean;
1513
+ onPopstate: () => void;
1511
1514
  }
1512
- export const useHistoryHijack: (back?: (() => void) | undefined) => ((state?: any) => void)[];
1513
1515
  export const initGuardStateMachine: (changeMouleEvent: ChangeModuleEvent, initData: ModuleState) => GuardStateMachine;
1514
1516
  export const getGuardStateMachine: () => GuardStateMachine;
1515
1517
  export const useGuardStateMachine: () => GuardStateMachine;
@@ -1726,6 +1728,19 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
1726
1728
  }
1727
1729
  export const trackSession: () => Promise<import("@authing/react-ui-components/components/_utils/http").AuthingGuardResponse<SessionData>>;
1728
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
+
1729
1744
  }
1730
1745
  declare module '@authing/react-ui-components/components/IconFont/iconfont' {
1731
1746
  export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
@@ -2655,7 +2670,8 @@ declare module '@authing/react-ui-components/components/SingleComponent/index' {
2655
2670
  }
2656
2671
  declare module '@authing/react-ui-components/components/SubmitButton/index' {
2657
2672
  import React from 'react';
2658
- interface SubmitButtonProps {
2673
+ import { ButtonProps } from 'antd/lib/button';
2674
+ interface SubmitButtonProps extends ButtonProps {
2659
2675
  text?: string;
2660
2676
  className?: string;
2661
2677
  onClick?: any;
@@ -2999,6 +3015,14 @@ declare module '@authing/react-ui-components/components/_utils/context' {
2999
3015
  }>;
3000
3016
  Consumer: React.Consumer<IGuardContext>;
3001
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;
3002
3026
  export const useGuardPublicConfig: () => ApplicationConfig;
3003
3027
  export const useGuardHttpClient: () => GuardHttp;
3004
3028
  export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
@@ -3048,7 +3072,8 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
3048
3072
  }
3049
3073
  declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
3050
3074
  import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
3051
- export const getFacePlugin: () => FacePlugin;
3075
+ export const getFacePlugin: () => FacePlugin | undefined;
3076
+ export const useFacePlugin: () => FacePlugin | undefined;
3052
3077
  export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
3053
3078
 
3054
3079
  }
@@ -3455,7 +3480,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3455
3480
 
3456
3481
  }
3457
3482
  declare module '@authing/react-ui-components/components/version/version' {
3458
- const _default: "3.1.20";
3483
+ const _default: "3.1.22-rc.2";
3459
3484
  export default _default;
3460
3485
 
3461
3486
  }