@linzjs/windows 8.2.0 → 8.2.1

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.
@@ -16,7 +16,7 @@ export interface PanelInstanceContextType {
16
16
  docked: boolean;
17
17
  dock: (id: string) => void;
18
18
  undock: () => void;
19
- hidden: boolean;
19
+ hidden?: boolean;
20
20
  }
21
21
 
22
22
  const NoContextError = () => {
@@ -4,6 +4,12 @@ import { PanelInstanceContext } from './PanelInstanceContext';
4
4
  import { PanelInstance, PanelsContext } from './PanelsContext';
5
5
  import { useRestoreStateFrom } from './usePanelStateHandler';
6
6
 
7
+ export interface PanelInstanceContextProviderProps {
8
+ hidden?: boolean;
9
+ bounds?: string | Element;
10
+ panelInstance: PanelInstance;
11
+ }
12
+
7
13
  /**
8
14
  * Provides access to closing/popping panels
9
15
  */
@@ -12,11 +18,7 @@ export const PanelInstanceContextProvider = ({
12
18
  bounds,
13
19
  hidden,
14
20
  children,
15
- }: PropsWithChildren<{
16
- hidden: boolean;
17
- bounds: string | Element | undefined;
18
- panelInstance: PanelInstance;
19
- }>): ReactElement => {
21
+ }: PropsWithChildren<PanelInstanceContextProviderProps>): ReactElement => {
20
22
  const { closePanel, bringPanelToFront, dockElements } = useContext(PanelsContext);
21
23
  const [title, setTitle] = useState('');
22
24
  const [dockId, setDockId] = useState<string>();
@@ -32,7 +32,7 @@ export function PopinWindow({
32
32
  panelSize: PanelSize;
33
33
  setPanelSize: Dispatch<PanelSize>;
34
34
  setInitialPanelSize: Dispatch<PanelSize>;
35
- hidden: boolean;
35
+ hidden?: boolean;
36
36
  }): ReactElement {
37
37
  const panelRef = useRef<Rnd>(null);
38
38
 
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "8.2.0",
16
+ "version": "8.2.1",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=21",
19
19
  "lodash-es": ">=4",