Change
A change that was applied. A didUpdate hook receives it.
tx: the id of the change.rev: the number of the version of the library that it made.origin: who made it:User, Plugin,Automation,Import,Undo,Redo,Remote,OtherTab,MigrationorSystem.cause: the id of the change that caused this one, when this one is a follow-up or an undo.undoGroup: the undo step it belongs to.name: what that step is called in the Undo menu.deltas: the small parts of the change, as Deltas, in order.
Properties
Section titled “Properties”author?
Section titled “author?”author?: object;Who made the change, when it was not the person who uses this device: a device of the same group, or a friend.
id: string;The id of the device or of the friend.
kind: "device" | "friend";device for a device of the group, or friend for a friend.
name?: string;The name of the device or of the friend, when it is known.
cause?
Section titled “cause?”cause?: string;The id of the change that caused this one, when this one is a follow-up or an undo.
deltas
Section titled “deltas”deltas: Delta[];The modifications that make up the change, in the order in which they were applied.
discardable?
Section titled “discardable?”discardable?: boolean;true when the change is not a step of undo by itself, as is the case when a row is collapsed. Such a change is dropped from an undo step that contains nothing else.
edit?: object;Present when the change is the result of typing. It describes which text field was edited and how.
changeInLength
Section titled “changeInLength”changeInLength: number;The difference between the length of the new text and the length of the old one. It is negative when the text became shorter.
editedRange
Section titled “editedRange”editedRange: object;The part of the new text that the edits cover.
editedRange.end
Section titled “editedRange.end”end: number;The position at which the covered part ends.
editedRange.start
Section titled “editedRange.start”start: number;The position at which the covered part begins.
field: string;The text field that was edited.
name?: string;The name of the undo step in the Undo menu, for example Delete 3 Rows. The command that started the step provides it.
origin
Section titled “origin”origin: | "User" | "Plugin" | "Automation" | "Import" | "Undo" | "Redo" | "Remote" | "OtherTab" | "Migration" | "System";Who made the change: the person, a plugin, or one of the other origins that the guide describes.
rev: number;The number of the revision of the library that this change produced.
tx: string;The id of the change.
undoGroup
Section titled “undoGroup”undoGroup: string;The id of the undo step to which the change belongs. Several changes can belong to the same step.
