@dashfoo/core 0.1.0 → 0.2.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 CHANGED
@@ -214,7 +214,7 @@ if (canRedo(history)) history = redo(history);
214
214
  Every dispatched action is its own undo step; there is no coalescing. A splitter
215
215
  drag still lands as one step because react-resizable-panels v4 commits a single
216
216
  `adjustSplit` when the drag is released, not a per-frame stream. Any new dispatch
217
- clears the redo `future`.
217
+ clears the redo `future`. History keeps the most recent `HISTORY_LIMIT` (100) steps; older snapshots are dropped.
218
218
 
219
219
  ## Serialize
220
220
 
@@ -261,9 +261,11 @@ const current = actor.getSnapshot().context.history.present;
261
261
  The drag/dock interaction lifecycle (`idle` → `dragging` → `idle`), driven by
262
262
  abstract events the dnd-kit adapter maps from pointer and keyboard input. It owns
263
263
  transient drag state only and never touches the document. On a valid `DROP` it
264
- **emits** a `COMMIT` carrying a `moveNode` action (the drag subject is a tab) or a
265
- `moveTabset` action (the subject is a whole tabset, dragged by its grip), which
266
- the React layer forwards to `dashfooMachine`.
264
+ **emits** a `COMMIT` carrying a `moveNode` action (the drag subject is a tab), a
265
+ `moveTabset` action (the subject is a whole tabset, dragged by its grip), or an
266
+ `addNode` action (an `external` subject — content dragged in from outside the
267
+ layout, carrying the `TabNode` to insert), which the React layer forwards to
268
+ `dashfooMachine`.
267
269
 
268
270
  | Event | Payload |
269
271
  | -------- | -------------------- |