react-resizable-panels 4.0.12 → 4.0.14

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