Payload of the change event; flows OUT for API submission/reconcile.
- Package
@sheetwrite/core
- Source
packages/core/src/types/transaction.ts#L156
Members 5
transaction Operations that actually committed after policy and bounds filtering.
transaction: Transactioninterface Transaction {
patches: DocumentOp[];
epoch?: number;
}interface Transaction {
patches: DocumentOp[];
epoch?: number;
}interface Transaction {
patches: DocumentOp[];
epoch?: number;
}Low-level Store transaction. epoch provides optional optimistic concurrency at the storage boundary. Calling Store.applyTransaction bypasses Grid read-only checks and Grid undo/redo history. Host-driven edits should use Grid.applyTransaction.API reference →;
changes Cell-level before/after effects; empty for commits that only change metadata.
changes: CellChangeinterface CellChange {
addr: CellAddress;
oldValue: CellValue;
newValue: CellValue;
oldStyle?: CellStyle;
newStyle?: CellStyle;
}interface CellChange {
addr: CellAddress;
oldValue: CellValue;
newValue: CellValue;
oldStyle?: CellStyle;
newStyle?: CellStyle;
}interface CellChange {
addr: CellAddress;
oldValue: CellValue;
newValue: CellValue;
oldStyle?: CellStyle;
newStyle?: CellStyle;
}One committed cell edit, carrying enough to roll back.API reference →[];
commitReason What produced this commit — see CommitReason.
commitReason: CommitReason;
source Remote input is observable but never belongs in outgoing local persistence.
source: OperationSourcetype OperationSource = "local" | "remote";type OperationSource = "local" | "remote";type OperationSource =
"local" | "remote";Whether a committed change originated locally or from remote host input.API reference →;
epoch Store epoch after the commit; emitted store and grid changes include it.
Declaration
View full TypeScript declaration
export interface ChangeEvent {
transaction: Transactioninterface Transaction {
patches: DocumentOp[];
epoch?: number;
}interface Transaction {
patches: DocumentOp[];
epoch?: number;
}interface Transaction {
patches: DocumentOp[];
epoch?: number;
}Low-level Store transaction. epoch provides optional optimistic concurrency at the storage boundary. Calling Store.applyTransaction bypasses Grid read-only checks and Grid undo/redo history. Host-driven edits should use Grid.applyTransaction.API reference →; changes: CellChangeinterface CellChange {
addr: CellAddress;
oldValue: CellValue;
newValue: CellValue;
oldStyle?: CellStyle;
newStyle?: CellStyle;
}interface CellChange {
addr: CellAddress;
oldValue: CellValue;
newValue: CellValue;
oldStyle?: CellStyle;
newStyle?: CellStyle;
}interface CellChange {
addr: CellAddress;
oldValue: CellValue;
newValue: CellValue;
oldStyle?: CellStyle;
newStyle?: CellStyle;
}One committed cell edit, carrying enough to roll back.API reference →[]; commitReason: CommitReason;
source: OperationSourcetype OperationSource = "local" | "remote";type OperationSource = "local" | "remote";type OperationSource =
"local" | "remote";Whether a committed change originated locally or from remote host input.API reference →;