react-resizable-panels 4.14.8 → 4.15.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.
|
@@ -412,6 +412,8 @@ export declare interface GridTrackImperativeHandle {
|
|
|
412
412
|
/**
|
|
413
413
|
* Expand a collapsed track to its most recent size.
|
|
414
414
|
*
|
|
415
|
+
* ℹ️ If restoring that size would require collapsing another track, the track expands to the largest size that fits instead (as long as that is at least its `minSize`).
|
|
416
|
+
*
|
|
415
417
|
* ⚠️ This method will do nothing if the track is not currently collapsed.
|
|
416
418
|
*/
|
|
417
419
|
expand: () => void;
|
|
@@ -732,6 +734,8 @@ export declare interface PanelImperativeHandle {
|
|
|
732
734
|
/**
|
|
733
735
|
* Expand a collapsed Panel to its most recent size.
|
|
734
736
|
*
|
|
737
|
+
* ℹ️ If restoring that size would require collapsing another Panel, the Panel expands to the largest size that fits instead (as long as that is at least its `minSize`).
|
|
738
|
+
*
|
|
735
739
|
* ⚠️ This method will do nothing if the Panel is not currently collapsed.
|
|
736
740
|
*/
|
|
737
741
|
expand: () => void;
|
|
@@ -890,6 +894,44 @@ export declare type PanelSize = {
|
|
|
890
894
|
inPixels: number;
|
|
891
895
|
};
|
|
892
896
|
|
|
897
|
+
/**
|
|
898
|
+
* The nearest ancestor Grid (returned by `useParentGrid`), including its imperative API.
|
|
899
|
+
*/
|
|
900
|
+
export declare type ParentGrid = GridImperativeHandle & {
|
|
901
|
+
/**
|
|
902
|
+
* Id of the Grid.
|
|
903
|
+
*/
|
|
904
|
+
id: string;
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* The nearest ancestor Group (returned by `useParentGroup`), including its imperative API.
|
|
909
|
+
*/
|
|
910
|
+
export declare type ParentGroup = GroupImperativeHandle & {
|
|
911
|
+
/**
|
|
912
|
+
* Id of the Group.
|
|
913
|
+
*/
|
|
914
|
+
id: string;
|
|
915
|
+
/**
|
|
916
|
+
* Orientation of the Group.
|
|
917
|
+
*/
|
|
918
|
+
orientation: Orientation;
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* The nearest ancestor Panel (returned by `useParentPanel`), including its imperative API.
|
|
923
|
+
*/
|
|
924
|
+
export declare type ParentPanel = PanelImperativeHandle & {
|
|
925
|
+
/**
|
|
926
|
+
* Id of the Group that contains the Panel.
|
|
927
|
+
*/
|
|
928
|
+
groupId: string;
|
|
929
|
+
/**
|
|
930
|
+
* Id of the Panel.
|
|
931
|
+
*/
|
|
932
|
+
id: string;
|
|
933
|
+
};
|
|
934
|
+
|
|
893
935
|
declare type ResizePreviewMode = "panel" | "separator";
|
|
894
936
|
|
|
895
937
|
/**
|
|
@@ -1101,4 +1143,25 @@ export declare function usePanelCallbackRef(): [PanelImperativeHandle | null, Di
|
|
|
1101
1143
|
*/
|
|
1102
1144
|
export declare function usePanelRef(): RefObject<PanelImperativeHandle | null>;
|
|
1103
1145
|
|
|
1146
|
+
/**
|
|
1147
|
+
* Returns the nearest ancestor Grid (or null if the component is not rendered within a Grid).
|
|
1148
|
+
*
|
|
1149
|
+
* ℹ️ The returned value includes the Grid's imperative API; it does not change when the Grid's layout changes.
|
|
1150
|
+
*/
|
|
1151
|
+
export declare function useParentGrid(): ParentGrid | null;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Returns the nearest ancestor Group (or null if the component is not rendered within a Group).
|
|
1155
|
+
*
|
|
1156
|
+
* ℹ️ The returned value includes the Group's imperative API; it does not change when the Group's layout changes.
|
|
1157
|
+
*/
|
|
1158
|
+
export declare function useParentGroup(): ParentGroup | null;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Returns the nearest ancestor Panel (or null if the component is not rendered within a Panel).
|
|
1162
|
+
*
|
|
1163
|
+
* ℹ️ The returned value includes the Panel's imperative API; it does not change when the Panel is resized.
|
|
1164
|
+
*/
|
|
1165
|
+
export declare function useParentPanel(): ParentPanel | null;
|
|
1166
|
+
|
|
1104
1167
|
export { }
|