Stable row identity effects for insert, delete, and move operations.
- Package
@sheetwrite/core/adapter
- Source
packages/core/src/row-bridge.ts#L106
Members 16
kind
readonly kind: "row-structure";
action
readonly action: "insert" | "delete" | "move";
sheet
readonly sheet: SheetIdtype SheetId = string;type SheetId = string;type SheetId = string;Stable identifier used to address a workbook sheet.API reference →;
at
count
from
to
inserted
readonly inserted: readonly (Id | null)[];
removed
readonly removed: readonly (Id | null)[];
transaction
readonly transaction: RowBridgeTransactioninterface RowBridgeTransaction {
readonly id: string;
readonly source: OperationSource;
readonly commitReason: CommitReason;
readonly epoch: number | undefined;
readonly patches: readonly DocumentOp[];
}interface RowBridgeTransaction {
readonly id: string;
readonly source: OperationSource;
readonly commitReason: CommitReason;
readonly epoch: number | undefined;
readonly patches: readonly DocumentOp[];
}interface RowBridgeTransaction {
readonly id: string;
readonly source: OperationSource;
readonly commitReason: CommitReason;
readonly epoch:
number | undefined;
readonly patches: readonly DocumentOp[];
}The canonical transaction identity carried by each projected delta.API reference →;
transactionId
readonly transactionId: string;
source
readonly 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 →;
previous
readonly previous: unknown;
next
operation
readonly operation: DocumentOptype DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| { op: "setRange"; range: Range; cells: SnapshotCell[] }
| { op: "setBlock"; range: Range; block: PackedCellBlock }
| {
op: "setRangeStyle";
range: Range;
style: Partial<CellStyle> | null;
}
| {
// … 93 more lines — see the API reference
}type DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| { op: "setRange"; range: Range; cells: SnapshotCell[] }
| { op: "setBlock"; range: Range; block: PackedCellBlock }
| {
op: "setRangeStyle";
range: Range;
style: Partial<CellStyle> | null;
}
| {
// … 93 more lines — see the API reference
}type DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| {
op: "setRange";
range: Range;
cells: SnapshotCell[];
}
| {
op: "setBlock";
range: Range;
block: PackedCellBlock;
}
| {
op: "setRangeStyle";
// … 168 more lines — see the API reference
}Exhaustive serializable operation union for workbook mutations.API reference →;
rowIds
readonly rowIds: readonly (Id | null)[];
Declaration
View full TypeScript declaration
export interface RowBridgeRowStructureDelta<
Id extends RowBridgeIdtype RowBridgeId = string | number;type RowBridgeId = string | number;type RowBridgeId =
string | number;A stable host identity for one data-space row.API reference → = RowBridgeIdtype RowBridgeId = string | number;type RowBridgeId = string | number;type RowBridgeId =
string | number;A stable host identity for one data-space row.API reference →, readonly kind: "row-structure";
readonly action: "insert" | "delete" | "move";
readonly sheet: SheetIdtype SheetId = string;type SheetId = string;type SheetId = string;Stable identifier used to address a workbook sheet.API reference →; readonly inserted: readonly (Id | null)[];
readonly removed: readonly (Id | null)[];
readonly transaction: RowBridgeTransactioninterface RowBridgeTransaction {
readonly id: string;
readonly source: OperationSource;
readonly commitReason: CommitReason;
readonly epoch: number | undefined;
readonly patches: readonly DocumentOp[];
}interface RowBridgeTransaction {
readonly id: string;
readonly source: OperationSource;
readonly commitReason: CommitReason;
readonly epoch: number | undefined;
readonly patches: readonly DocumentOp[];
}interface RowBridgeTransaction {
readonly id: string;
readonly source: OperationSource;
readonly commitReason: CommitReason;
readonly epoch:
number | undefined;
readonly patches: readonly DocumentOp[];
}The canonical transaction identity carried by each projected delta.API reference →; readonly transactionId: string;
readonly 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 →; readonly previous: unknown;
readonly operation: DocumentOptype DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| { op: "setRange"; range: Range; cells: SnapshotCell[] }
| { op: "setBlock"; range: Range; block: PackedCellBlock }
| {
op: "setRangeStyle";
range: Range;
style: Partial<CellStyle> | null;
}
| {
// … 93 more lines — see the API reference
}type DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| { op: "setRange"; range: Range; cells: SnapshotCell[] }
| { op: "setBlock"; range: Range; block: PackedCellBlock }
| {
op: "setRangeStyle";
range: Range;
style: Partial<CellStyle> | null;
}
| {
// … 93 more lines — see the API reference
}type DocumentOp =
| {
op: "set";
addr: CellAddress;
value: CellValue;
style?: CellStyle;
}
| {
op: "setRange";
range: Range;
cells: SnapshotCell[];
}
| {
op: "setBlock";
range: Range;
block: PackedCellBlock;
}
| {
op: "setRangeStyle";
// … 168 more lines — see the API reference
}Exhaustive serializable operation union for workbook mutations.API reference →; readonly rowIds: readonly (Id | null)[];