@rowsncolumns/rnc-yrs-store 0.11.11 → 0.11.13

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.
@@ -326,6 +326,13 @@ export class SpreadsheetEngine {
326
326
  * Undo / redo stack depth (`SpreadsheetEngineLike.undoDepth` / `redoDepth`).
327
327
  */
328
328
  undoDepth(): number;
329
+ /**
330
+ * The display texts of a data-validation LIST source at a cell — JSON `string[]` or `"null"`
331
+ * when it cannot be resolved. Read-only; powers the `ONE_OF_RANGE` dropdown + commit gate for
332
+ * the sources the grid cannot resolve itself (formula-valued names, structured references,
333
+ * `INDIRECT`/`OFFSET`/`FILTER`/`UNIQUE`).
334
+ */
335
+ validationSourceValues(sheet_id: number, row: number, col: number, source: string): string;
329
336
  }
330
337
 
331
338
  /**
@@ -416,6 +423,7 @@ export interface InitOutput {
416
423
  readonly spreadsheetengine_takePendingUpdates: (a: number) => [number, number];
417
424
  readonly spreadsheetengine_undo: (a: number) => [number, number];
418
425
  readonly spreadsheetengine_undoDepth: (a: number) => number;
426
+ readonly spreadsheetengine_validationSourceValues: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
419
427
  readonly yrssheetdoc_applyUpdate: (a: number, b: number, c: number) => [number, number];
420
428
  readonly yrssheetdoc_encodeStateAsUpdate: (a: number) => [number, number];
421
429
  readonly yrssheetdoc_getCell: (a: number, b: number, c: number, d: number) => [number, number];
@@ -1114,6 +1114,31 @@ export class SpreadsheetEngine {
1114
1114
  const ret = wasm.spreadsheetengine_undoDepth(this.__wbg_ptr);
1115
1115
  return ret >>> 0;
1116
1116
  }
1117
+ /**
1118
+ * The display texts of a data-validation LIST source at a cell — JSON `string[]` or `"null"`
1119
+ * when it cannot be resolved. Read-only; powers the `ONE_OF_RANGE` dropdown + commit gate for
1120
+ * the sources the grid cannot resolve itself (formula-valued names, structured references,
1121
+ * `INDIRECT`/`OFFSET`/`FILTER`/`UNIQUE`).
1122
+ * @param {number} sheet_id
1123
+ * @param {number} row
1124
+ * @param {number} col
1125
+ * @param {string} source
1126
+ * @returns {string}
1127
+ */
1128
+ validationSourceValues(sheet_id, row, col, source) {
1129
+ let deferred2_0;
1130
+ let deferred2_1;
1131
+ try {
1132
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1133
+ const len0 = WASM_VECTOR_LEN;
1134
+ const ret = wasm.spreadsheetengine_validationSourceValues(this.__wbg_ptr, sheet_id, row, col, ptr0, len0);
1135
+ deferred2_0 = ret[0];
1136
+ deferred2_1 = ret[1];
1137
+ return getStringFromWasm0(ret[0], ret[1]);
1138
+ } finally {
1139
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1140
+ }
1141
+ }
1117
1142
  }
1118
1143
  if (Symbol.dispose) SpreadsheetEngine.prototype[Symbol.dispose] = SpreadsheetEngine.prototype.free;
1119
1144
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowsncolumns/rnc-yrs-store",
3
- "version": "0.11.11",
3
+ "version": "0.11.13",
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).",