A paste transaction effect. A paste can contain multiple canonical patches.
Members 10
kind
range
readonly range: Range | null;
cells
transaction
transactionId
readonly transactionId: string;
source
previous
readonly previous: unknown;
next
operation
rowIds
readonly rowIds: readonly (Id | null)[];
Declaration
View full TypeScript declaration
readonly range: Range | null; readonly transactionId: string;
readonly previous: unknown;
readonly rowIds: readonly (Id | null)[];
Referenced by
Workspace packages depending on @sheetwrite/core
@sheetwrite/benchdependency
@sheetwrite/docs-startdependency
@sheetwrite/reactdependency
@sheetwrite/sveltedependency
@sheetwrite/vuedependency
@sheetwrite/xlsxdependency
Public exports naming RowBridgePasteDelta
interface Range {
sheet: SheetId;
start: { row: number; col: number };
end: { row: number; col: number };
}interface Range {
sheet: SheetId;
start: { row: number; col: number };
end: { row: number; col: number };
}interface Range {
sheet: SheetId;
start: {
row: number;
col: number;
};
end: {
row: number;
col: number;
};
}Inclusive rectangular cell range on a stable sheet ID.API reference →interface RowBridgeCell<Id extends RowBridgeId = RowBridgeId> {
readonly sheet: SheetId;
readonly row: number;
readonly rowId: Id | null;
readonly col: number;
readonly columnKey: string | null;
readonly previous: CellValue | undefined;
readonly next: CellValue | undefined;
}interface RowBridgeCell<Id extends RowBridgeId = RowBridgeId> {
readonly sheet: SheetId;
readonly row: number;
readonly rowId: Id | null;
readonly col: number;
readonly columnKey: string | null;
readonly previous: CellValue | undefined;
readonly next: CellValue | undefined;
}interface RowBridgeCell<
Id extends RowBridgeId =
RowBridgeId,
> {
readonly sheet: SheetId;
readonly row: number;
readonly rowId: Id | null;
readonly col: number;
readonly columnKey:
string | null;
readonly previous:
CellValue | undefined;
readonly next:
CellValue | undefined;
}A cell effect with semantic column and host row identity.API reference →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[];
}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 →type OperationSource = "local" | "remote";type OperationSource = "local" | "remote";type OperationSource =
"local" | "remote";Whether a committed change originated locally or from remote host input.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: "restoreBlock";
range: Range;
encoding: "deflate-json-v1";
decodedBytes: number;
data: string;
// … 100 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: "restoreBlock";
range: Range;
encoding: "deflate-json-v1";
decodedBytes: number;
data: string;
// … 100 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: "restoreBlock";
// … 175 more lines — see the API reference
}Exhaustive serializable operation union for workbook mutations.API reference →type RowBridgeId = string | number;type RowBridgeId = string | number;type RowBridgeId =
string | number;A stable host identity for one data-space row.API reference →