Skip to content
Travel Component Kit

Component kit

Component theater

Change receipts

Undo checks touched records, never restores an entire old workspace. This is not a full audit, compliance or event-sourcing system.

This part is proved on the inspection bench. The theater does not invent a second copy of it.

What it reads and what it may ask for

immutable receipts versions after each accepted edit

onUndo(receiptId): conditional inverse command

States: empty, accepted change, scripted demo, undoable, already undone, later edit blocks undo

Proof

  • test/core.test.ts
  • test/file-adapter.test.ts

packages/react/src/receipts.tsx

All partsStart sample