react-zeugma 1.1.0 → 1.1.1
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 +1 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -296,8 +296,6 @@ export interface DashboardActionsValue {
|
|
|
296
296
|
updater: (current: Record<string, unknown> | undefined) => Record<string, unknown> | undefined,
|
|
297
297
|
) => void
|
|
298
298
|
}
|
|
299
|
-
|
|
300
|
-
export type DashboardContextValue = DashboardStateValue & DashboardActionsValue
|
|
301
299
|
```
|
|
302
300
|
|
|
303
301
|
---
|
|
@@ -441,9 +439,8 @@ Alternatively, you can consume state and mutation helpers directly from the cont
|
|
|
441
439
|
|
|
442
440
|
- **`useDashboardState()`**: Returns the reactive state values (e.g., `layout`, `activeId`, `classNames`). Consumers of this hook will re-render whenever layout state updates.
|
|
443
441
|
- **`useDashboardActions()`**: Returns the stable layout mutation actions (e.g., `removePane`, `splitPane`). Because these actions have a permanent identity, consumers of this hook **will not** re-render when layout state changes, providing a significant performance optimization.
|
|
444
|
-
- **`useDashboard()`**: Returns both state and actions (backward compatible; equivalent to the union of both).
|
|
445
442
|
|
|
446
|
-
The actions returned by `useDashboardActions()`
|
|
443
|
+
The actions returned by `useDashboardActions()` are:
|
|
447
444
|
|
|
448
445
|
- **`removePane(paneId: string) => void`**
|
|
449
446
|
- **`addPane(paneId: string) => void`**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-zeugma",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
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,
|