react-dockable-desktop 6.1.0 → 6.2.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.
- package/README.md +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -242,7 +242,7 @@ declare class WorkspaceClient<TUserEvents extends Record<string, unknown> = Reco
|
|
|
242
242
|
openPanel(...args: Parameters<WindowActions['openPanel']>): void;
|
|
243
243
|
closePanel(id: string): void;
|
|
244
244
|
minimizePanel(id: string): void;
|
|
245
|
-
restorePanel(
|
|
245
|
+
restorePanel(...args: Parameters<WindowActions['restorePanel']>): void;
|
|
246
246
|
floatPanel(...args: Parameters<WindowActions['floatPanel']>): void;
|
|
247
247
|
dockPanel(...args: Parameters<WindowActions['dockPanel']>): void;
|
|
248
248
|
maximizePanel(id: string): void;
|
|
@@ -724,8 +724,11 @@ interface WindowActions {
|
|
|
724
724
|
/**
|
|
725
725
|
* Restores a minimized panel back to its last docked or floating position.
|
|
726
726
|
* @param id - Panel instance ID.
|
|
727
|
+
* @param options.focus - Set `state.activePanelId` to the restored panel. @default true
|
|
727
728
|
*/
|
|
728
|
-
restorePanel: (id: string
|
|
729
|
+
restorePanel: (id: string, options?: {
|
|
730
|
+
focus?: boolean;
|
|
731
|
+
}) => void;
|
|
729
732
|
/**
|
|
730
733
|
* Detaches a docked panel, converting it to a resizable floating window.
|
|
731
734
|
* @param id - Panel instance ID.
|
package/dist/index.d.ts
CHANGED
|
@@ -242,7 +242,7 @@ declare class WorkspaceClient<TUserEvents extends Record<string, unknown> = Reco
|
|
|
242
242
|
openPanel(...args: Parameters<WindowActions['openPanel']>): void;
|
|
243
243
|
closePanel(id: string): void;
|
|
244
244
|
minimizePanel(id: string): void;
|
|
245
|
-
restorePanel(
|
|
245
|
+
restorePanel(...args: Parameters<WindowActions['restorePanel']>): void;
|
|
246
246
|
floatPanel(...args: Parameters<WindowActions['floatPanel']>): void;
|
|
247
247
|
dockPanel(...args: Parameters<WindowActions['dockPanel']>): void;
|
|
248
248
|
maximizePanel(id: string): void;
|
|
@@ -724,8 +724,11 @@ interface WindowActions {
|
|
|
724
724
|
/**
|
|
725
725
|
* Restores a minimized panel back to its last docked or floating position.
|
|
726
726
|
* @param id - Panel instance ID.
|
|
727
|
+
* @param options.focus - Set `state.activePanelId` to the restored panel. @default true
|
|
727
728
|
*/
|
|
728
|
-
restorePanel: (id: string
|
|
729
|
+
restorePanel: (id: string, options?: {
|
|
730
|
+
focus?: boolean;
|
|
731
|
+
}) => void;
|
|
729
732
|
/**
|
|
730
733
|
* Detaches a docked panel, converting it to a resizable floating window.
|
|
731
734
|
* @param id - Panel instance ID.
|