Local operation and protected-range context supplied to the host policy.
Members 3
protectedRange
operation
commitReason
Declaration
View full TypeScript declaration
export interface ProtectionRequest {
Referenced by
Workspace packages depending on @sheetwrite/core
@sheetwrite/benchdependency
@sheetwrite/docs-startdependency
@sheetwrite/reactdependency
@sheetwrite/sveltedependency
@sheetwrite/vuedependency
@sheetwrite/xlsxdependency
Public exports naming ProtectionRequest
interface ProtectedRange {
id: string;
range: Range;
label?: string;
permissionKey?: string;
}interface ProtectedRange {
id: string;
range: Range;
label?: string;
permissionKey?: string;
}interface ProtectedRange {
id: string;
range: Range;
label?: string;
permissionKey?: string;
}Serializable client UX policy. A host resolver decides whether a local mutation may proceed.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 CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";type CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";type CommitReason =
| "edit-blur"
| "edit-enter"
| "edit-tab"
| "edit-programmatic"
| "paste"
| "cut"
| "clear"
| "fill"
| "structure"
| "style"
| "replace"
| "undo"
| "redo"
| "api";The gesture/operation that produced a committed transaction. Consumers switching on reasons MUST keep a default branch — the union grows with new mutation features.API reference →