react-resizable-panels 4.0.11 → 4.0.12
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.
|
@@ -323,8 +323,19 @@ export declare type SeparatorProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
323
323
|
|
|
324
324
|
export declare type SizeUnit = "px" | "%" | "em" | "rem" | "vh" | "vw";
|
|
325
325
|
|
|
326
|
-
export declare function useDefaultLayout({ groupId, storage }: {
|
|
326
|
+
export declare function useDefaultLayout({ debounceSaveMs, groupId, storage }: {
|
|
327
|
+
/**
|
|
328
|
+
* Debounce save operation by the specified number of milliseconds; defaults to 100ms
|
|
329
|
+
*/
|
|
330
|
+
debounceSaveMs?: number;
|
|
331
|
+
/**
|
|
332
|
+
* Group id; must be unique in order for layouts to be saved separately.
|
|
333
|
+
*/
|
|
327
334
|
groupId: string;
|
|
335
|
+
/**
|
|
336
|
+
* Storage implementation; supports localStorage, sessionStorage, and custom implementations
|
|
337
|
+
* Refer to documentation site for example integrations.
|
|
338
|
+
*/
|
|
328
339
|
storage: LayoutStorage;
|
|
329
340
|
}): {
|
|
330
341
|
defaultLayout: Layout | undefined;
|