react-zeugma 6.6.2 → 6.7.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 +12 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{types-DEU4F_mj.d.cts → types-oKDEW-r-.d.cts} +8 -0
- package/dist/{types-DEU4F_mj.d.ts → types-oKDEW-r-.d.ts} +8 -0
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -184,6 +184,14 @@ interface BaseZeugmaProps {
|
|
|
184
184
|
onResizeEnd?: (currentNode: SplitNode, percentage: number) => void;
|
|
185
185
|
/** Callback triggered when the drag-out/dismiss intent changes. */
|
|
186
186
|
onDismissIntentChange?: (paneId: string | null) => void;
|
|
187
|
+
/** Configuration for layout persistence in localStorage. */
|
|
188
|
+
persist?: boolean | ZeugmaPersistOptions;
|
|
189
|
+
}
|
|
190
|
+
interface ZeugmaPersistOptions {
|
|
191
|
+
/** Whether to enable persistence. Defaults to true if the object is provided. */
|
|
192
|
+
enabled?: boolean;
|
|
193
|
+
/** The key used for localStorage persistence. Defaults to 'zeugma-layout'. */
|
|
194
|
+
key?: string;
|
|
187
195
|
}
|
|
188
196
|
type ZeugmaProps = (BaseZeugmaProps & {
|
|
189
197
|
children?: never;
|
|
@@ -184,6 +184,14 @@ interface BaseZeugmaProps {
|
|
|
184
184
|
onResizeEnd?: (currentNode: SplitNode, percentage: number) => void;
|
|
185
185
|
/** Callback triggered when the drag-out/dismiss intent changes. */
|
|
186
186
|
onDismissIntentChange?: (paneId: string | null) => void;
|
|
187
|
+
/** Configuration for layout persistence in localStorage. */
|
|
188
|
+
persist?: boolean | ZeugmaPersistOptions;
|
|
189
|
+
}
|
|
190
|
+
interface ZeugmaPersistOptions {
|
|
191
|
+
/** Whether to enable persistence. Defaults to true if the object is provided. */
|
|
192
|
+
enabled?: boolean;
|
|
193
|
+
/** The key used for localStorage persistence. Defaults to 'zeugma-layout'. */
|
|
194
|
+
key?: string;
|
|
187
195
|
}
|
|
188
196
|
type ZeugmaProps = (BaseZeugmaProps & {
|
|
189
197
|
children?: never;
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PaneNode, b as SplitNode, S as SplitDirection, T as TreeNode, c as TabDetails } from './types-
|
|
1
|
+
import { P as PaneNode, b as SplitNode, S as SplitDirection, T as TreeNode, c as TabDetails } from './types-oKDEW-r-.cjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
|
|
4
4
|
declare function generateUniqueId(): string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PaneNode, b as SplitNode, S as SplitDirection, T as TreeNode, c as TabDetails } from './types-
|
|
1
|
+
import { P as PaneNode, b as SplitNode, S as SplitDirection, T as TreeNode, c as TabDetails } from './types-oKDEW-r-.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
|
|
4
4
|
declare function generateUniqueId(): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-zeugma",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "Recursive drag-and-drop dashboard layout engine for React — combining the tree-based splitting of react-mosaic with the declarative API of react-grid-layout.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|