@rowsncolumns/rnc-yrs-store 0.29.1 → 0.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -369,6 +369,11 @@ export class SpreadsheetEngine {
369
369
  * a calculation (`recalculate`, `calculate-sheet`, `calculate-full`) is refused (rejection
370
370
  * code `read-only-mode`). Off again, the held results are dropped and the document's values
371
371
  * show. Off by default.
372
+ *
373
+ * The writes outside a command are covered too, on both stores: an import, `loadDocument`
374
+ * and `declareExternalFunctions` (of a name the room does not declare yet) throw
375
+ * (`read-only-mode: …`), `addSheet` adds nothing, and `anchorRange` and `compactStyleLog`
376
+ * write nothing.
372
377
  */
373
378
  setReadOnly(on: boolean): void;
374
379
  /**
@@ -690,13 +695,13 @@ export interface InitOutput {
690
695
  readonly yrssheetdoc_setCell: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
691
696
  readonly spreadsheetengine_stateAsUpdate: (a: number) => [number, number];
692
697
  readonly convertToStableIds: (a: number, b: number, c: number, d: number) => [number, number, number, number];
693
- readonly spreadsheetengine_anchorRange: (a: number, b: number, c: number, d: number) => [number, number, number, number];
694
698
  readonly spreadsheetengine_columnIds: (a: number, b: number) => [number, number];
695
699
  readonly spreadsheetengine_parseStableCellKey: (a: number, b: number, c: number) => [number, number];
696
- readonly spreadsheetengine_resolveAnchor: (a: number, b: number, c: number) => [number, number, number, number];
697
700
  readonly spreadsheetengine_rowIds: (a: number, b: number) => [number, number];
698
- readonly spreadsheetengine_shiftLogFrontier: (a: number) => [number, number];
699
701
  readonly spreadsheetengine_stableCellKey: (a: number, b: number, c: number, d: number) => [number, number];
702
+ readonly spreadsheetengine_anchorRange: (a: number, b: number, c: number, d: number) => [number, number, number, number];
703
+ readonly spreadsheetengine_resolveAnchor: (a: number, b: number, c: number) => [number, number, number, number];
704
+ readonly spreadsheetengine_shiftLogFrontier: (a: number) => [number, number];
700
705
  readonly spreadsheetengine_transformRange: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
701
706
  readonly transformRangeThroughOps: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
702
707
  readonly __wbindgen_malloc: (a: number, b: number) => number;
@@ -1245,6 +1245,11 @@ export class SpreadsheetEngine {
1245
1245
  * a calculation (`recalculate`, `calculate-sheet`, `calculate-full`) is refused (rejection
1246
1246
  * code `read-only-mode`). Off again, the held results are dropped and the document's values
1247
1247
  * show. Off by default.
1248
+ *
1249
+ * The writes outside a command are covered too, on both stores: an import, `loadDocument`
1250
+ * and `declareExternalFunctions` (of a name the room does not declare yet) throw
1251
+ * (`read-only-mode: …`), `addSheet` adds nothing, and `anchorRange` and `compactStyleLog`
1252
+ * write nothing.
1248
1253
  * @param {boolean} on
1249
1254
  */
1250
1255
  setReadOnly(on) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowsncolumns/rnc-yrs-store",
3
- "version": "0.29.1",
3
+ "version": "0.29.3",
4
4
  "author": "Vinay M",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "description": "Document-backed Rust→WASM spreadsheet calc engine (yrs/CRDT, canonical sheetDataV3). Ships the `SpreadsheetEngine` (a `Store<YrsStore>`): applyCommand / undo / redo / canUndo + the Yjs collaboration surface (applyUpdate / takePendingUpdates / loadFromUpdate / stateAsUpdate) the Keryx update-pump binds to. This is the 1,000,000-row engine the demo-app ships today — previously vendored, now a versioned package. The PREBUILT wasm is included (consumers need NO Rust/wasm toolchain); the glue's default init REQUIRES an explicit `module_or_path` — pass the URL of the served `rnc_yrs_store_bg.wasm` (webpack/Turbopack statically resolve a bundled `new URL`, which would 404 from this package, so the inline-default branch is intentionally a throw).",