@authing/react-ui-components 3.1.21 → 3.1.22-rc-7

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;
@@ -1984,6 +1999,7 @@ declare module '@authing/react-ui-components/components/Login/core/withPassword/
1984
1999
  agreements: Agreement[];
1985
2000
  loginWay?: LoginMethods;
1986
2001
  submitButText?: string;
2002
+ saveIdentify?: (type: LoginMethods, identity: string) => void;
1987
2003
  }
1988
2004
  export const LoginWithPassword: (props: LoginWithPasswordProps) => JSX.Element;
1989
2005
  export {};
@@ -2541,12 +2557,14 @@ declare module '@authing/react-ui-components/components/Register/utils' {
2541
2557
 
2542
2558
  }
2543
2559
  declare module '@authing/react-ui-components/components/SelfUnlock/core/selfUnlock' {
2544
- /// <reference types="react" />
2560
+ import React from 'react';
2545
2561
  export enum InputMethodMap {
2546
2562
  email = "email-code",
2547
2563
  phone = "phone-code"
2548
2564
  }
2549
- export const SelfUnlock: () => JSX.Element;
2565
+ export const SelfUnlock: ({ identifyRef, }: {
2566
+ identifyRef?: React.MutableRefObject<string> | undefined;
2567
+ }) => JSX.Element;
2550
2568
 
2551
2569
  }
2552
2570
  declare module '@authing/react-ui-components/components/SelfUnlock/index' {
@@ -2655,7 +2673,8 @@ declare module '@authing/react-ui-components/components/SingleComponent/index' {
2655
2673
  }
2656
2674
  declare module '@authing/react-ui-components/components/SubmitButton/index' {
2657
2675
  import React from 'react';
2658
- interface SubmitButtonProps {
2676
+ import { ButtonProps } from 'antd/lib/button';
2677
+ interface SubmitButtonProps extends ButtonProps {
2659
2678
  text?: string;
2660
2679
  className?: string;
2661
2680
  onClick?: any;
@@ -2999,6 +3018,14 @@ declare module '@authing/react-ui-components/components/_utils/context' {
2999
3018
  }>;
3000
3019
  Consumer: React.Consumer<IGuardContext>;
3001
3020
  };
3021
+ export interface IGuardContextProvider {
3022
+ spin: boolean;
3023
+ spinChange: (spin: boolean) => void;
3024
+ }
3025
+ export const useGuardButtonContext: () => {
3026
+ GuardButtonProvider: React.FC<{}>;
3027
+ };
3028
+ export const useGuardButtonState: () => IGuardContextProvider;
3002
3029
  export const useGuardPublicConfig: () => ApplicationConfig;
3003
3030
  export const useGuardHttpClient: () => GuardHttp;
3004
3031
  export const useGuardDefaultMergedConfig: () => GuardLocalConfig;
@@ -3048,7 +3075,8 @@ declare module '@authing/react-ui-components/components/_utils/errorFace' {
3048
3075
  }
3049
3076
  declare module '@authing/react-ui-components/components/_utils/facePlugin/index' {
3050
3077
  import { FacePlugin } from '@authing/react-ui-components/components/_utils/facePlugin/interface';
3051
- export const getFacePlugin: () => FacePlugin;
3078
+ export const getFacePlugin: () => FacePlugin | undefined;
3079
+ export const useFacePlugin: () => FacePlugin | undefined;
3052
3080
  export const initFacePlugin: (facePlugin: FacePlugin) => FacePlugin;
3053
3081
 
3054
3082
  }
@@ -3455,7 +3483,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3455
3483
 
3456
3484
  }
3457
3485
  declare module '@authing/react-ui-components/components/version/version' {
3458
- const _default: "3.1.21";
3486
+ const _default: "3.1.22-rc-7";
3459
3487
  export default _default;
3460
3488
 
3461
3489
  }