react-resizable-panels 4.0.11 → 4.0.13

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,10 +323,28 @@ 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 }: {
327
- groupId: string;
326
+ export declare function useDefaultLayout({ debounceSaveMs, storage, ...rest }: {
327
+ /**
328
+ * Debounce save operation by the specified number of milliseconds; defaults to 100ms
329
+ */
330
+ debounceSaveMs?: number;
331
+ /**
332
+ * Storage implementation; supports localStorage, sessionStorage, and custom implementations
333
+ * Refer to documentation site for example integrations.
334
+ */
328
335
  storage: LayoutStorage;
329
- }): {
336
+ } & ({
337
+ /**
338
+ * Group id; must be unique in order for layouts to be saved separately.
339
+ * @deprecated Use the {@link id} param instead
340
+ */
341
+ groupId: string;
342
+ } | {
343
+ /**
344
+ * Unique layout identifier.
345
+ */
346
+ id: string;
347
+ })): {
330
348
  defaultLayout: Layout | undefined;
331
349
  onLayoutChange: (layout: Layout) => void | undefined;
332
350
  };