ReadonlydocsThe document before each step, parallel to steps.
ReadonlystepsReadonlytimeCreation time, used by the undo history for grouping.
The selection after this transaction: the explicitly set one (remapped through any later steps), or the input selection mapped through all steps.
Apply a step; returns false (leaving the transaction untouched) on failure.
Every metadata key set on this transaction, in the order it was set.
For the one caller that has to hand a transaction's whole provenance on: a dispatch transform that replaces a transaction with a different one (suggestion mode rewriting an edit, say) drops every key the original carried unless it copies them, and the keys it does not know about are exactly the ones it cannot afford to guess at. A replay guard silently lost is an editing loop.
An ordered list of steps applied to a document, plus selection, stored marks and metadata. Build one via
state.tr, then dispatch it.