@authing/react-ui-components 3.1.4-rc.12 → 3.1.4-rc.13

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
@@ -1400,16 +1400,16 @@ declare module '@authing/react-ui-components/components/ForgetPassword/interface
1400
1400
 
1401
1401
  }
1402
1402
  declare module '@authing/react-ui-components/components/Guard/Guard' {
1403
- /// <reference types="react" />
1404
1403
  import { GuardEvents } from '@authing/react-ui-components/components/Guard/event';
1405
1404
  import { GuardAppendConfig, IG2FCProps } from '@authing/react-ui-components/components/Type/index';
1406
1405
  import { GuardLocalConfig } from '@authing/react-ui-components/components/Guard/config';
1407
1406
  import 'moment/locale/zh-cn';
1407
+ import React from 'react';
1408
1408
  export interface GuardProps extends GuardEvents, IG2FCProps {
1409
1409
  config?: Partial<GuardLocalConfig>;
1410
1410
  appendConfig?: GuardAppendConfig;
1411
1411
  }
1412
- export const Guard: import("react").MemoExoticComponent<(props: GuardProps) => JSX.Element>;
1412
+ export const Guard: React.MemoExoticComponent<(props: GuardProps) => JSX.Element>;
1413
1413
 
1414
1414
  }
1415
1415
  declare module '@authing/react-ui-components/components/Guard/GuardModule/stateMachine' {
@@ -1484,7 +1484,11 @@ declare module '@authing/react-ui-components/components/Guard/core/index' {
1484
1484
  /// <reference types="react" />
1485
1485
  import { GuardProps } from '@authing/react-ui-components/components/Guard/index';
1486
1486
  import { ModuleState } from '@authing/react-ui-components/components/Guard/GuardModule/stateMachine';
1487
- export const useRenderGuardCore: (props: GuardProps, initState: ModuleState) => JSX.Element;
1487
+ export interface GuardCoreProps {
1488
+ guardProps: GuardProps;
1489
+ initState: ModuleState;
1490
+ }
1491
+ export const GuardCore: (props: GuardCoreProps) => JSX.Element;
1488
1492
 
1489
1493
  }
1490
1494
  declare module '@authing/react-ui-components/components/Guard/core/renderContext' {
@@ -1513,8 +1517,8 @@ declare module '@authing/react-ui-components/components/Guard/core/renderModule'
1513
1517
  }
1514
1518
  declare module '@authing/react-ui-components/components/Guard/core/useAppendConfig' {
1515
1519
  import { GuardProps } from '@authing/react-ui-components/components/index';
1516
- export const getGuardWindow: () => Window | undefined;
1517
- export const useGuardWindow: () => Window | undefined;
1520
+ export const getGuardWindow: () => (Window & typeof globalThis) | undefined;
1521
+ export const useGuardWindow: () => (Window & typeof globalThis) | undefined;
1518
1522
  export const useInitGuardAppendConfig: (guardProps: GuardProps, setForceUpdate: any) => void;
1519
1523
 
1520
1524
  }
@@ -1596,7 +1600,7 @@ declare module '@authing/react-ui-components/components/Guard/sso' {
1596
1600
 
1597
1601
  }
1598
1602
  declare module '@authing/react-ui-components/components/IconFont/iconfont' {
1599
- export function init(guardWindow: any, svgString: any): void;
1603
+ export const GenerateSvg: (guardDocument: Document, svgString: string) => void;
1600
1604
 
1601
1605
  }
1602
1606
  declare module '@authing/react-ui-components/components/IconFont/index' {
@@ -1611,8 +1615,7 @@ declare module '@authing/react-ui-components/components/IconFont/index' {
1611
1615
 
1612
1616
  }
1613
1617
  declare module '@authing/react-ui-components/components/IconFont/useGuardIconfont' {
1614
- import { ApplicationConfig } from '@authing/react-ui-components/components/AuthingGuard/api/index';
1615
- export const useGuardIconfont: (publicConfig?: ApplicationConfig | undefined) => true | undefined;
1618
+ export const useGuardIconfont: (cdnBase?: string | undefined, setError?: any) => boolean;
1616
1619
 
1617
1620
  }
1618
1621
  declare module '@authing/react-ui-components/components/IdentityBinding/IdentityBinding' {
@@ -2523,7 +2526,6 @@ declare module '@authing/react-ui-components/components/Type/index' {
2523
2526
  facePlugin?: FacePlugin;
2524
2527
  }
2525
2528
  export interface GuardAppendConfig {
2526
- window?: Window;
2527
2529
  internalRequest?: boolean;
2528
2530
  singleComponent?: boolean;
2529
2531
  unAuthFlow?: boolean;
@@ -2846,6 +2848,12 @@ declare module '@authing/react-ui-components/components/_utils/facePlugin/interf
2846
2848
  nets: any;
2847
2849
  }
2848
2850
 
2851
+ }
2852
+ declare module '@authing/react-ui-components/components/_utils/guardDocument' {
2853
+ export const getGuardDocument: () => Document;
2854
+ export const useAppendConfig: () => Document;
2855
+ export const initGuardDocument: (document: Document) => void;
2856
+
2849
2857
  }
2850
2858
  declare module '@authing/react-ui-components/components/_utils/guardHttp' {
2851
2859
  import { AuthingGuardResponse, AuthingResponse } from '@authing/react-ui-components/components/_utils/http';
@@ -3025,6 +3033,7 @@ declare module '@authing/react-ui-components/components/_utils/index' {
3025
3033
  export const phoneDesensitization: (phone: string) => string;
3026
3034
  export const getHundreds: (num: number) => number;
3027
3035
  export const GuardPropsFilter: (pre: GuardProps, current: GuardProps) => boolean;
3036
+ export const getDocumentNode: (node: Node & ParentNode) => Document;
3028
3037
 
3029
3038
  }
3030
3039
  declare module '@authing/react-ui-components/components/_utils/locales/en/index' {
@@ -3208,7 +3217,7 @@ declare module '@authing/react-ui-components/components/version/index' {
3208
3217
 
3209
3218
  }
3210
3219
  declare module '@authing/react-ui-components/components/version/version' {
3211
- const _default: "3.1.4-rc.12";
3220
+ const _default: "3.1.4-rc.13";
3212
3221
  export default _default;
3213
3222
 
3214
3223
  }