@rowsncolumns/rnc-yrs-store 0.11.1 → 0.11.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.
package/dist/rnc_yrs_store.d.ts
CHANGED
|
@@ -181,6 +181,11 @@ export class SpreadsheetEngine {
|
|
|
181
181
|
* Whether the bytes are an encrypted (OLE/CFB) workbook needing a password (vs a plain `.xlsx`).
|
|
182
182
|
*/
|
|
183
183
|
isEncryptedXlsx(bytes: Uint8Array): boolean;
|
|
184
|
+
/**
|
|
185
|
+
* `[cells, formulaCells]` the last `importXlsx` / `importXlsxSheet` stream ingested — what
|
|
186
|
+
* the recalc caps were judged on. See [`YDocEngine::last_import_counts`].
|
|
187
|
+
*/
|
|
188
|
+
lastImportCounts(): Float64Array;
|
|
184
189
|
/**
|
|
185
190
|
* Whether the last `importXlsx` skipped its post-import recalc (workbook past the recalc
|
|
186
191
|
* caps). See [`YDocEngine::last_import_recalc_skipped`].
|
|
@@ -376,6 +381,7 @@ export interface InitOutput {
|
|
|
376
381
|
readonly spreadsheetengine_importXlsxSheetByName: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
377
382
|
readonly spreadsheetengine_importXlsxWithPassword: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
378
383
|
readonly spreadsheetengine_isEncryptedXlsx: (a: number, b: number, c: number) => number;
|
|
384
|
+
readonly spreadsheetengine_lastImportCounts: (a: number) => [number, number];
|
|
379
385
|
readonly spreadsheetengine_lastImportRecalcSkipped: (a: number) => number;
|
|
380
386
|
readonly spreadsheetengine_listXlsxSheets: (a: number, b: number, c: number) => [number, number, number, number];
|
|
381
387
|
readonly spreadsheetengine_loadDocument: (a: number, b: number, c: number) => [number, number, number, number];
|
package/dist/rnc_yrs_store.js
CHANGED
|
@@ -609,6 +609,17 @@ export class SpreadsheetEngine {
|
|
|
609
609
|
const ret = wasm.spreadsheetengine_isEncryptedXlsx(this.__wbg_ptr, ptr0, len0);
|
|
610
610
|
return ret !== 0;
|
|
611
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
* `[cells, formulaCells]` the last `importXlsx` / `importXlsxSheet` stream ingested — what
|
|
614
|
+
* the recalc caps were judged on. See [`YDocEngine::last_import_counts`].
|
|
615
|
+
* @returns {Float64Array}
|
|
616
|
+
*/
|
|
617
|
+
lastImportCounts() {
|
|
618
|
+
const ret = wasm.spreadsheetengine_lastImportCounts(this.__wbg_ptr);
|
|
619
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
620
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
621
|
+
return v1;
|
|
622
|
+
}
|
|
612
623
|
/**
|
|
613
624
|
* Whether the last `importXlsx` skipped its post-import recalc (workbook past the recalc
|
|
614
625
|
* caps). See [`YDocEngine::last_import_recalc_skipped`].
|
|
@@ -1322,6 +1333,11 @@ function addToExternrefTable0(obj) {
|
|
|
1322
1333
|
return idx;
|
|
1323
1334
|
}
|
|
1324
1335
|
|
|
1336
|
+
function getArrayF64FromWasm0(ptr, len) {
|
|
1337
|
+
ptr = ptr >>> 0;
|
|
1338
|
+
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1325
1341
|
function getArrayI32FromWasm0(ptr, len) {
|
|
1326
1342
|
ptr = ptr >>> 0;
|
|
1327
1343
|
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
@@ -1340,6 +1356,14 @@ function getDataViewMemory0() {
|
|
|
1340
1356
|
return cachedDataViewMemory0;
|
|
1341
1357
|
}
|
|
1342
1358
|
|
|
1359
|
+
let cachedFloat64ArrayMemory0 = null;
|
|
1360
|
+
function getFloat64ArrayMemory0() {
|
|
1361
|
+
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
|
1362
|
+
cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
|
|
1363
|
+
}
|
|
1364
|
+
return cachedFloat64ArrayMemory0;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1343
1367
|
let cachedInt32ArrayMemory0 = null;
|
|
1344
1368
|
function getInt32ArrayMemory0() {
|
|
1345
1369
|
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
@@ -1458,6 +1482,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1458
1482
|
wasm = instance.exports;
|
|
1459
1483
|
wasmModule = module;
|
|
1460
1484
|
cachedDataViewMemory0 = null;
|
|
1485
|
+
cachedFloat64ArrayMemory0 = null;
|
|
1461
1486
|
cachedInt32ArrayMemory0 = null;
|
|
1462
1487
|
cachedUint8ArrayMemory0 = null;
|
|
1463
1488
|
wasm.__wbindgen_start();
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowsncolumns/rnc-yrs-store",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.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).",
|