@linzjs/windows 12.0.0 → 14.0.0

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.
@@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react';
3
3
  /**
4
4
  * Wrapper for buttons at the bottom of model.
5
5
  */
6
- export declare const LuiModalAsyncButtonGroup: ({ children }: PropsWithChildren<unknown>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const LuiModalAsyncButtonGroup: ({ children }: PropsWithChildren<unknown>) => import("react").JSX.Element;
7
7
  /**
8
8
  * Calls model close on click.
9
9
  */
@@ -3,4 +3,4 @@ import { PropsWithChildren } from 'react';
3
3
  * Wrapper for modal content.
4
4
  * Content is the scrollable area.
5
5
  */
6
- export declare const LuiModalAsyncContent: ({ children }: PropsWithChildren<unknown>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const LuiModalAsyncContent: ({ children }: PropsWithChildren<unknown>) => import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useRef, useState } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { debugLog } from '../common/debug';
@@ -12,4 +12,4 @@ export interface LuiModalAsyncHeaderProps {
12
12
  /**
13
13
  * Generic modal header.
14
14
  */
15
- export declare const LuiModalAsyncHeader: ({ icon, title, closeButton, helpLink, onHelpClick, helpButtonLevel, }: PropsWithChildren<LuiModalAsyncHeaderProps>) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const LuiModalAsyncHeader: ({ icon, title, closeButton, helpLink, onHelpClick, helpButtonLevel, }: PropsWithChildren<LuiModalAsyncHeaderProps>) => import("react").JSX.Element;
@@ -2,4 +2,4 @@ import { PropsWithChildren } from 'react';
2
2
  /**
3
3
  * Wraps the content and header. This is just to match the way figma is arranged.
4
4
  */
5
- export declare const LuiModalAsyncMain: ({ children }: PropsWithChildren<unknown>) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const LuiModalAsyncMain: ({ children }: PropsWithChildren<unknown>) => import("react").JSX.Element;
@@ -28,7 +28,7 @@ export interface useLuiModalPrefabProps<RT = string> extends LuiModalAsyncProps
28
28
  }
29
29
  export interface LuiModalAsyncPrefabProps<RT> extends useLuiModalPrefabProps<RT>, LuiModalAsyncCallback<RT> {
30
30
  }
31
- export declare const getIconForLevel: (level: PrefabType) => IconName | "custom_progress" | null;
31
+ export declare const getIconForLevel: (level: PrefabType) => IconName | 'custom_progress' | null;
32
32
  export declare const LuiModalDontShowSessionSet: (userKey: string) => void;
33
33
  export declare const LuiModalDontShowSessionRemove: (userKey: string) => void;
34
34
  export declare const LuiModalDontShowSessionCheck: (userKey: string) => boolean;
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { ComponentType, PromiseWithResolve, ShowModalProps } from './LuiModalAsyncContext';
3
3
  export declare const useShowAsyncModal: () => {
4
- showModal: <CT extends ComponentType>(component: CT, args: Omit<ComponentProps<CT>, "resolve" | "close">, props?: ShowModalProps) => PromiseWithResolve<Parameters<ComponentProps<CT>["resolve"]>[0]>;
4
+ showModal: <CT extends ComponentType>(component: CT, args: Omit<ComponentProps<CT>, 'resolve' | 'close'>, props?: ShowModalProps) => PromiseWithResolve<Parameters<ComponentProps<CT>['resolve']>[0]>;
5
5
  modalOwnerRef: import("react").MutableRefObject<any>;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useConstFunction.js","sourceRoot":"","sources":["../../src/common/useConstFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,GAAG,GAAG,EAAE;IAClB,QAAQ;AACV,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,KAAU,MAAa,EAClB,EAAE;IACP,MAAM,WAAW,GAAG,MAAM,CAAM,EAAE,CAAC,CAAC;IACpC,MAAM,QAAQ,GAAG,MAAM,CAAM,CAAC,CAAC,GAAG,IAAU,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,CAAQ,CAAC,CAAC;IAEzF,SAAS,CAAC,GAAG,EAAE;QACb,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;IAC3B,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,QAAQ,CAAC,OAAO,CAAC;AAC1B,CAAC,CAAC"}
1
+ {"version":3,"file":"useConstFunction.js","sourceRoot":"","sources":["../../src/common/useConstFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,GAAG,GAAG,EAAE;IAClB,QAAQ;AACV,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,EAAE,GAAQ,MAAa,EAClB,EAAE;IACP,MAAM,WAAW,GAAG,MAAM,CAAM,EAAE,CAAC,CAAC;IACpC,MAAM,QAAQ,GAAG,MAAM,CAAM,CAAC,CAAC,GAAG,IAAU,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,CAAQ,CAAC,CAAC;IAEzF,SAAS,CAAC,GAAG,EAAE;QACb,WAAW,CAAC,OAAO,GAAG,EAAE,CAAC;IAC3B,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,QAAQ,CAAC,OAAO,CAAC;AAC1B,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { useEffect } from 'react';
1
+ import { useLayoutEffect } from 'react';
2
2
  /**
3
3
  * Copied from usehooks-ts
4
4
  *
@@ -14,4 +14,4 @@ import { useEffect } from 'react';
14
14
  * }, [dependency1, dependency2]);
15
15
  * ```
16
16
  */
17
- export declare const useIsomorphicLayoutEffect: typeof useEffect;
17
+ export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;