@linzjs/windows 1.4.4 → 1.4.5

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/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./src/index.ts",
16
- "version": "1.4.4",
16
+ "version": "1.4.5",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": "^17",
19
19
  "lodash-es": ">=4",
@@ -1,7 +1,7 @@
1
1
  import { ModalInstanceContext } from "./ModalInstanceContext";
2
2
  import clsx from "clsx";
3
3
  import { delay } from "lodash-es";
4
- import { PropsWithChildren, ReactElement, useContext, useEffect, useRef } from "react";
4
+ import React, { PropsWithChildren, ReactElement, useContext, useEffect, useRef } from "react";
5
5
 
6
6
  export interface ModalProps {
7
7
  className?: string;
@@ -7,8 +7,8 @@ import { PanelInstanceContext, PanelSize } from "./PanelInstanceContext";
7
7
  import { PanelPosition, PanelsContext } from "./PanelsContext";
8
8
  import { PopoutWindow } from "./PopoutWindow";
9
9
  import clsx from "clsx";
10
- import { ReactElement, ReactNode, useContext, useEffect, useState } from "react";
11
- import ReactDOM from "react-dom";
10
+ import React, { ReactElement, ReactNode, useContext, useEffect, useState } from "react";
11
+ import { createPortal } from "react-dom";
12
12
  import { Rnd } from "react-rnd";
13
13
 
14
14
  export interface PanelProps {
@@ -50,7 +50,7 @@ export const Panel = ({
50
50
  return (
51
51
  <PanelContext.Provider value={{ resizePanel }}>
52
52
  {dockElement && dockElement.isConnected ? (
53
- ReactDOM.createPortal(children, dockElement)
53
+ createPortal(children, dockElement)
54
54
  ) : panelPoppedOut ? (
55
55
  <PopoutWindow name={uniqueId} title={title} size={panelSize}>
56
56
  <div