@rowsncolumns/y-spreadsheet 17.1.1 → 17.1.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/cjs/helpers-v5.d.ts +60 -0
- package/dist/cjs/helpers-v5.d.ts.map +1 -1
- package/dist/cjs/helpers-v5.js +160 -8
- package/dist/cjs/helpers.d.ts +23 -0
- package/dist/cjs/helpers.d.ts.map +1 -1
- package/dist/cjs/helpers.js +140 -58
- package/dist/cjs/use-yspreadsheet-v2.d.ts +2 -0
- package/dist/cjs/use-yspreadsheet-v2.d.ts.map +1 -1
- package/dist/cjs/use-yspreadsheet-v2.js +34 -6
- package/dist/cjs/use-yspreadsheet.d.ts +2 -0
- package/dist/cjs/use-yspreadsheet.d.ts.map +1 -1
- package/dist/cjs/use-yspreadsheet.js +24 -3
- package/dist/esm/helpers-v5.d.ts +60 -0
- package/dist/esm/helpers-v5.d.ts.map +1 -1
- package/dist/esm/helpers-v5.js +141 -7
- package/dist/esm/helpers.d.ts +23 -0
- package/dist/esm/helpers.d.ts.map +1 -1
- package/dist/esm/helpers.js +94 -4
- package/dist/esm/use-yspreadsheet-v2.d.ts +2 -0
- package/dist/esm/use-yspreadsheet-v2.d.ts.map +1 -1
- package/dist/esm/use-yspreadsheet-v2.js +35 -7
- package/dist/esm/use-yspreadsheet.d.ts +2 -0
- package/dist/esm/use-yspreadsheet.d.ts.map +1 -1
- package/dist/esm/use-yspreadsheet.js +24 -3
- package/package.json +5 -5
package/dist/cjs/helpers-v5.d.ts
CHANGED
|
@@ -10,6 +10,66 @@ export type ParsedCellKeyV5 = {
|
|
|
10
10
|
};
|
|
11
11
|
/** The composed style plane: cell key → format (`StyleOverlay`). */
|
|
12
12
|
export type StyleOverlayV5 = Map<string, CellFormat>;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the doc is a final room (`doc_is_final` in rnc-yrs-store-v3): it
|
|
15
|
+
* holds the final format's key, whatever its stamp and marker read now, or,
|
|
16
|
+
* holding no format key, is stamped `docMeta.sheetDataVersion = "v6"`. Only
|
|
17
|
+
* the engine reads and writes such a doc: a host checks this before it calls
|
|
18
|
+
* into this package, and opens the doc through the engine when it is true.
|
|
19
|
+
* Read from the doc each time (the key and the stamp can arrive with a sync);
|
|
20
|
+
* creates no root.
|
|
21
|
+
*/
|
|
22
|
+
export declare const docIsFinalFormat: (doc: YDoc) => boolean;
|
|
23
|
+
/** What every reader and writer of this package throws on a final doc. */
|
|
24
|
+
export declare class FinalFormatError extends Error {
|
|
25
|
+
constructor();
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* What a doc's data plane is, judged as the engine judges it (`data_format`
|
|
29
|
+
* in rnc-yrs-store-v3 `stable_ids_guard`): by its format keys when one was
|
|
30
|
+
* ever written, else by its stamp, matched exactly.
|
|
31
|
+
*
|
|
32
|
+
* - the next format's key (`sheetDataV3["v7"]`) was ever written: `"unknown"`,
|
|
33
|
+
* with or without the final key beside it;
|
|
34
|
+
* - the final key (`sheetDataV3["v6"]`) was ever written: `"v6"`, whatever the
|
|
35
|
+
* stamp reads (an entry that never saw the room can outrank the stamp, a
|
|
36
|
+
* later write replace it, a removal take it away; the item under a map key
|
|
37
|
+
* cannot be unwritten);
|
|
38
|
+
* - neither: `"positional"` for no stamp, `"v2"`, `"v3"` or the retired
|
|
39
|
+
* `"v4"`; `"v5"`; `"v6"` (the final format); `"unknown"` for anything else
|
|
40
|
+
* (`"v7"`, `"v1"`, `"V6"`, `"v6 "`, `"6"`, `""`, `null`, a number).
|
|
41
|
+
*
|
|
42
|
+
* Creates no root.
|
|
43
|
+
*/
|
|
44
|
+
export declare const sheetDataFormatOf: (doc: YDoc) => "positional" | "v5" | "v6" | "unknown";
|
|
45
|
+
/**
|
|
46
|
+
* What every reader and writer of this package throws on a doc of a data
|
|
47
|
+
* format it does not know (`sheetDataFormatOf(doc) === "unknown"`: by the key
|
|
48
|
+
* of a later format, or by its stamp): what such a doc holds is not this
|
|
49
|
+
* package's to read, and nothing may be written into it.
|
|
50
|
+
*/
|
|
51
|
+
export declare class UnknownFormatError extends Error {
|
|
52
|
+
constructor();
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* What a positional writer of this package throws on a doc whose
|
|
56
|
+
* `sheet-format.cells` is past 2: a cell format newer than the envelopes and
|
|
57
|
+
* node cells it writes (the positional store refuses the same room,
|
|
58
|
+
* `unsupported-cell-format`).
|
|
59
|
+
*/
|
|
60
|
+
export declare class NewerCellFormatError extends Error {
|
|
61
|
+
constructor();
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Throws on a doc only the engine reads and writes: `FinalFormatError` for a
|
|
65
|
+
* final doc, `UnknownFormatError` for a format this package does not know.
|
|
66
|
+
*/
|
|
67
|
+
export declare const refuseEngineOwnedFormat: (doc: YDoc) => void;
|
|
68
|
+
/**
|
|
69
|
+
* `refuseEngineOwnedFormat`, and `NewerCellFormatError` on a doc whose
|
|
70
|
+
* `sheet-format.cells` is past 2: for the writers of the positional plane.
|
|
71
|
+
*/
|
|
72
|
+
export declare const refusePositionalWrite: (doc: YDoc) => void;
|
|
13
73
|
/**
|
|
14
74
|
* A sheet's line ids in grid order (position = index + 1), as decimal strings.
|
|
15
75
|
* Later duplicates and non-id values are skipped, as the engine's index does.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-v5.d.ts","sourceRoot":"","sources":["../../helpers-v5.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers-v5.d.ts","sourceRoot":"","sources":["../../helpers-v5.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAGjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAQnC,OAAO,KAAK,EAAE,IAAI,EAAS,MAAM,SAAS,CAAC;AAG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I,EACT,SAAS,MAAM,EACf,UAAU,MAAM,EAChB,aAAa,MAAM,KAClB,IAGC,CAAC;AAEL,kFAAkF;AAClF,eAAO,MAAM,aAAa,GAAI,KAAK,IAAI,EAAE,SAAS,MAAM,KAAG,IACM,CAAC"}
|
package/dist/cjs/helpers-v5.js
CHANGED
|
@@ -26,8 +26,15 @@
|
|
|
26
26
|
// read, so a stored `ue.fv` may name cells the formula no longer reads. This
|
|
27
27
|
// module reads `ue.fv` as stored: every reader and writer here refuses such a
|
|
28
28
|
// doc (`V5FormulaTextOnReadError`); read it through the engine.
|
|
29
|
+
// A final doc (one that holds the final format's key, `sheetDataV3["v6"]`,
|
|
30
|
+
// whatever its stamp reads now; or, holding no format key, is stamped
|
|
31
|
+
// `docMeta.sheetDataVersion = "v6"`) holds node cells and may hold id runs in
|
|
32
|
+
// its line-id arrays, neither of which this module reads: every reader and
|
|
33
|
+
// writer here refuses it (`FinalFormatError`), and so do the positional entry
|
|
34
|
+
// points of this package, which would read it as an empty sheet. A host checks
|
|
35
|
+
// `docIsFinalFormat` first and opens it through the engine.
|
|
29
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.deleteSheetV5 = exports.deleteCellV5 = exports.setCellV5 = exports.addSheetDataPatchesV5 = exports.resolveFacetAnchorV5 = exports.decodeFacetAnchorV5 = exports.processSheetDataChangesV5 = exports.getCellV5 = exports.createCellReaderV5 = exports.sheetDataV5ToV2 = exports.V5FormulaTextOnReadError = exports.v5RendersFormulaTextOnRead = exports.decodeColumnBlockV5 = exports.readStyleOverlayV5 = exports.parseCellKeyV5 = exports.createCellKeyV5 = exports.readLineIds = void 0;
|
|
37
|
+
exports.deleteSheetV5 = exports.deleteCellV5 = exports.setCellV5 = exports.addSheetDataPatchesV5 = exports.resolveFacetAnchorV5 = exports.decodeFacetAnchorV5 = exports.processSheetDataChangesV5 = exports.getCellV5 = exports.createCellReaderV5 = exports.sheetDataV5ToV2 = exports.V5FormulaTextOnReadError = exports.v5RendersFormulaTextOnRead = exports.decodeColumnBlockV5 = exports.readStyleOverlayV5 = exports.parseCellKeyV5 = exports.createCellKeyV5 = exports.readLineIds = exports.refusePositionalWrite = exports.refuseEngineOwnedFormat = exports.NewerCellFormatError = exports.UnknownFormatError = exports.sheetDataFormatOf = exports.FinalFormatError = exports.docIsFinalFormat = void 0;
|
|
31
38
|
var tslib_1 = require("tslib");
|
|
32
39
|
var utils_1 = require("@rowsncolumns/utils");
|
|
33
40
|
var fflate_1 = require("fflate");
|
|
@@ -49,6 +56,12 @@ var BLOCK_V2_MAGIC = 0x80000000; // BLOCK_V2_MAGIC
|
|
|
49
56
|
var BLOCK_V2_DENSE = 0x40000000; // BLOCK_V2_DENSE
|
|
50
57
|
var MAX_BLOCK_RAW_BYTES = 512 * 1024 * 1024; // MAX_BLOCK_RAW_BYTES
|
|
51
58
|
var STYLE_LOG_V1 = 1; // STYLE_LOG_V1
|
|
59
|
+
var DOC_META = "docMeta"; // DOC_META
|
|
60
|
+
var SHEET_DATA_VERSION = "sheetDataVersion"; // SHEET_DATA_VERSION
|
|
61
|
+
var FINAL_STABLE_IDS_VERSION = "v6"; // rnc-yrs-store-v3 stable_ids_guard::FINAL_STABLE_IDS_VERSION
|
|
62
|
+
var POSITIONAL_CELLS_ROOT = "sheetDataV3"; // rnc-yrs-store-v3 stable_ids_guard::POSITIONAL_CELLS_ROOT
|
|
63
|
+
var FINAL_INERT_KEY = "v6"; // rnc-yrs-store-v3 stable_ids_guard::FINAL_INERT_KEY
|
|
64
|
+
var NEXT_FORMAT_KEY = "v7"; // rnc-yrs-store-v3 stable_ids_guard::NEXT_FORMAT_KEY
|
|
52
65
|
var FORMAT_ROOT = "sheet-format"; // rnc-yrs-store-v3 node_cell::FORMAT_ROOT
|
|
53
66
|
var NODE_CELL_FORMAT = 2; // rnc-yrs-store-v3 node_cell::NODE_CELL_FORMAT
|
|
54
67
|
var STYLE_LOG_V2 = 2; // STYLE_LOG_V2
|
|
@@ -57,6 +70,139 @@ var BLOCK_KEY_V5 = /^(-?\d+):(-?\d+):(\d+)$/; // block_key
|
|
|
57
70
|
var DIM_KEY_V5 = /^(-?\d+):([RC]):(-?\d+)$/; // dim_id_key
|
|
58
71
|
var DIM_STRIPE_KEY_V5 = /^(-?\d+):([RC]):k(\d+)$/; // dim_c0_stripe_key
|
|
59
72
|
var SEED_KEY = /^(-?\d+)!([A-Z]+)(\d+)$/; // `"{sheetId}!{A1}"`, parse_a1
|
|
73
|
+
// ── the final format ────────────────────────────────────────────────────────
|
|
74
|
+
/**
|
|
75
|
+
* Whether an entry was EVER written under `key` of the positional hot plane
|
|
76
|
+
* (`format_key_written` in rnc-yrs-store-v3 `stable_ids_guard`): live, written
|
|
77
|
+
* over, removed or collected. `hasAttr` answers for a live entry only. A
|
|
78
|
+
* `@y/y` node keeps the newest item of each key it ever held in `_map`, the
|
|
79
|
+
* deleted one for a removed key, also after a save that collects deleted
|
|
80
|
+
* content and a load of that save. Creates no root.
|
|
81
|
+
*/
|
|
82
|
+
var formatKeyWritten = function (doc, key) {
|
|
83
|
+
if (!doc.share.has(POSITIONAL_CELLS_ROOT))
|
|
84
|
+
return false;
|
|
85
|
+
var items = doc.get(POSITIONAL_CELLS_ROOT)._map;
|
|
86
|
+
return items instanceof Map && items.has(key);
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Whether the doc is a final room (`doc_is_final` in rnc-yrs-store-v3): it
|
|
90
|
+
* holds the final format's key, whatever its stamp and marker read now, or,
|
|
91
|
+
* holding no format key, is stamped `docMeta.sheetDataVersion = "v6"`. Only
|
|
92
|
+
* the engine reads and writes such a doc: a host checks this before it calls
|
|
93
|
+
* into this package, and opens the doc through the engine when it is true.
|
|
94
|
+
* Read from the doc each time (the key and the stamp can arrive with a sync);
|
|
95
|
+
* creates no root.
|
|
96
|
+
*/
|
|
97
|
+
var docIsFinalFormat = function (doc) {
|
|
98
|
+
return (0, exports.sheetDataFormatOf)(doc) === "v6";
|
|
99
|
+
};
|
|
100
|
+
exports.docIsFinalFormat = docIsFinalFormat;
|
|
101
|
+
/** What every reader and writer of this package throws on a final doc. */
|
|
102
|
+
var FinalFormatError = /** @class */ (function (_super) {
|
|
103
|
+
tslib_1.__extends(FinalFormatError, _super);
|
|
104
|
+
function FinalFormatError() {
|
|
105
|
+
var _this = _super.call(this, 'This sheet is in the final format (it holds the format key sheetDataV3["v6"], or is stamped docMeta.sheetDataVersion = "v6"): read and write it through the engine') || this;
|
|
106
|
+
_this.name = "FinalFormatError";
|
|
107
|
+
return _this;
|
|
108
|
+
}
|
|
109
|
+
return FinalFormatError;
|
|
110
|
+
}(Error));
|
|
111
|
+
exports.FinalFormatError = FinalFormatError;
|
|
112
|
+
/**
|
|
113
|
+
* What a doc's data plane is, judged as the engine judges it (`data_format`
|
|
114
|
+
* in rnc-yrs-store-v3 `stable_ids_guard`): by its format keys when one was
|
|
115
|
+
* ever written, else by its stamp, matched exactly.
|
|
116
|
+
*
|
|
117
|
+
* - the next format's key (`sheetDataV3["v7"]`) was ever written: `"unknown"`,
|
|
118
|
+
* with or without the final key beside it;
|
|
119
|
+
* - the final key (`sheetDataV3["v6"]`) was ever written: `"v6"`, whatever the
|
|
120
|
+
* stamp reads (an entry that never saw the room can outrank the stamp, a
|
|
121
|
+
* later write replace it, a removal take it away; the item under a map key
|
|
122
|
+
* cannot be unwritten);
|
|
123
|
+
* - neither: `"positional"` for no stamp, `"v2"`, `"v3"` or the retired
|
|
124
|
+
* `"v4"`; `"v5"`; `"v6"` (the final format); `"unknown"` for anything else
|
|
125
|
+
* (`"v7"`, `"v1"`, `"V6"`, `"v6 "`, `"6"`, `""`, `null`, a number).
|
|
126
|
+
*
|
|
127
|
+
* Creates no root.
|
|
128
|
+
*/
|
|
129
|
+
var sheetDataFormatOf = function (doc) {
|
|
130
|
+
if (formatKeyWritten(doc, NEXT_FORMAT_KEY))
|
|
131
|
+
return "unknown";
|
|
132
|
+
if (formatKeyWritten(doc, FINAL_INERT_KEY))
|
|
133
|
+
return "v6";
|
|
134
|
+
if (!doc.share.has(DOC_META))
|
|
135
|
+
return "positional";
|
|
136
|
+
var stamp = doc.get(DOC_META).getAttr(SHEET_DATA_VERSION);
|
|
137
|
+
if (stamp === undefined)
|
|
138
|
+
return "positional";
|
|
139
|
+
if (stamp === "v2" || stamp === "v3" || stamp === "v4")
|
|
140
|
+
return "positional";
|
|
141
|
+
if (stamp === "v5")
|
|
142
|
+
return "v5";
|
|
143
|
+
if (stamp === FINAL_STABLE_IDS_VERSION)
|
|
144
|
+
return "v6";
|
|
145
|
+
return "unknown";
|
|
146
|
+
};
|
|
147
|
+
exports.sheetDataFormatOf = sheetDataFormatOf;
|
|
148
|
+
/**
|
|
149
|
+
* What every reader and writer of this package throws on a doc of a data
|
|
150
|
+
* format it does not know (`sheetDataFormatOf(doc) === "unknown"`: by the key
|
|
151
|
+
* of a later format, or by its stamp): what such a doc holds is not this
|
|
152
|
+
* package's to read, and nothing may be written into it.
|
|
153
|
+
*/
|
|
154
|
+
var UnknownFormatError = /** @class */ (function (_super) {
|
|
155
|
+
tslib_1.__extends(UnknownFormatError, _super);
|
|
156
|
+
function UnknownFormatError() {
|
|
157
|
+
var _this = _super.call(this, "This sheet is in a data format this package does not know (a later format's key in sheetDataV3, or its docMeta.sheetDataVersion): it is read-only here") || this;
|
|
158
|
+
_this.name = "UnknownFormatError";
|
|
159
|
+
return _this;
|
|
160
|
+
}
|
|
161
|
+
return UnknownFormatError;
|
|
162
|
+
}(Error));
|
|
163
|
+
exports.UnknownFormatError = UnknownFormatError;
|
|
164
|
+
/**
|
|
165
|
+
* What a positional writer of this package throws on a doc whose
|
|
166
|
+
* `sheet-format.cells` is past 2: a cell format newer than the envelopes and
|
|
167
|
+
* node cells it writes (the positional store refuses the same room,
|
|
168
|
+
* `unsupported-cell-format`).
|
|
169
|
+
*/
|
|
170
|
+
var NewerCellFormatError = /** @class */ (function (_super) {
|
|
171
|
+
tslib_1.__extends(NewerCellFormatError, _super);
|
|
172
|
+
function NewerCellFormatError() {
|
|
173
|
+
var _this = _super.call(this, "This sheet stores its cells in a newer format (sheet-format.cells > 2) than this package writes: it is read-only here") || this;
|
|
174
|
+
_this.name = "NewerCellFormatError";
|
|
175
|
+
return _this;
|
|
176
|
+
}
|
|
177
|
+
return NewerCellFormatError;
|
|
178
|
+
}(Error));
|
|
179
|
+
exports.NewerCellFormatError = NewerCellFormatError;
|
|
180
|
+
/**
|
|
181
|
+
* Throws on a doc only the engine reads and writes: `FinalFormatError` for a
|
|
182
|
+
* final doc, `UnknownFormatError` for a format this package does not know.
|
|
183
|
+
*/
|
|
184
|
+
var refuseEngineOwnedFormat = function (doc) {
|
|
185
|
+
var format = (0, exports.sheetDataFormatOf)(doc);
|
|
186
|
+
if (format === "v6")
|
|
187
|
+
throw new FinalFormatError();
|
|
188
|
+
if (format === "unknown")
|
|
189
|
+
throw new UnknownFormatError();
|
|
190
|
+
};
|
|
191
|
+
exports.refuseEngineOwnedFormat = refuseEngineOwnedFormat;
|
|
192
|
+
/**
|
|
193
|
+
* `refuseEngineOwnedFormat`, and `NewerCellFormatError` on a doc whose
|
|
194
|
+
* `sheet-format.cells` is past 2: for the writers of the positional plane.
|
|
195
|
+
*/
|
|
196
|
+
var refusePositionalWrite = function (doc) {
|
|
197
|
+
(0, exports.refuseEngineOwnedFormat)(doc);
|
|
198
|
+
if (!doc.share.has(FORMAT_ROOT))
|
|
199
|
+
return;
|
|
200
|
+
var cells = doc.get(FORMAT_ROOT).getAttr("cells");
|
|
201
|
+
if (typeof cells === "number" && cells > 2)
|
|
202
|
+
throw new NewerCellFormatError();
|
|
203
|
+
};
|
|
204
|
+
exports.refusePositionalWrite = refusePositionalWrite;
|
|
205
|
+
var refuseFinalFormat = exports.refuseEngineOwnedFormat;
|
|
60
206
|
// ── ids (axis.rs: make_id, id_client, id_counter) ───────────────────────────
|
|
61
207
|
var idCounter = function (id) {
|
|
62
208
|
return Number((BigInt.asUintN(64, id) >> BigInt(32)) & BigInt(0xffffffff));
|
|
@@ -89,6 +235,8 @@ var lineIdText = function (value) {
|
|
|
89
235
|
*/
|
|
90
236
|
var readLineIds = function (doc, sheetId, axis) {
|
|
91
237
|
var e_1, _a;
|
|
238
|
+
// A final doc's array may hold id runs, which are not ids to skip.
|
|
239
|
+
refuseFinalFormat(doc);
|
|
92
240
|
var name = lineIdsRootName(sheetId, axis);
|
|
93
241
|
if (!doc.share.has(name))
|
|
94
242
|
return [];
|
|
@@ -275,6 +423,7 @@ var foldStyleBuffer = function (overlay, buf) {
|
|
|
275
423
|
*/
|
|
276
424
|
var readStyleOverlayV5 = function (doc) {
|
|
277
425
|
var e_4, _a;
|
|
426
|
+
refuseFinalFormat(doc);
|
|
278
427
|
var overlay = new Map();
|
|
279
428
|
if (doc.share.has(STYLES_SEED_V5)) {
|
|
280
429
|
(0, ynodes_1.forEachEntry)(doc.get(STYLES_SEED_V5), function (value, key) {
|
|
@@ -472,7 +621,9 @@ var V5FormulaTextOnReadError = /** @class */ (function (_super) {
|
|
|
472
621
|
return V5FormulaTextOnReadError;
|
|
473
622
|
}(Error));
|
|
474
623
|
exports.V5FormulaTextOnReadError = V5FormulaTextOnReadError;
|
|
475
|
-
|
|
624
|
+
/** A doc only the engine reads: stamped final, or past the Stage 2 marker. */
|
|
625
|
+
var refuseEngineOnly = function (doc) {
|
|
626
|
+
refuseFinalFormat(doc);
|
|
476
627
|
if ((0, exports.v5RendersFormulaTextOnRead)(doc))
|
|
477
628
|
throw new V5FormulaTextOnReadError();
|
|
478
629
|
};
|
|
@@ -516,7 +667,7 @@ var sheetDataV5ToV2 = function (doc, styles) {
|
|
|
516
667
|
var _d, _f;
|
|
517
668
|
var _g;
|
|
518
669
|
if (styles === void 0) { styles = (0, exports.readStyleOverlayV5)(doc); }
|
|
519
|
-
|
|
670
|
+
refuseEngineOnly(doc);
|
|
520
671
|
var sheetData = {};
|
|
521
672
|
var cache = new Map();
|
|
522
673
|
var cold = new Map();
|
|
@@ -600,13 +751,13 @@ exports.sheetDataV5ToV2 = sheetDataV5ToV2;
|
|
|
600
751
|
*/
|
|
601
752
|
var createCellReaderV5 = function (doc, styles) {
|
|
602
753
|
if (styles === void 0) { styles = (0, exports.readStyleOverlayV5)(doc); }
|
|
603
|
-
|
|
754
|
+
refuseEngineOnly(doc);
|
|
604
755
|
var lines = new Map();
|
|
605
756
|
var cold = new Map();
|
|
606
757
|
return function (sheetId, rowIndex, columnIndex) {
|
|
607
758
|
var _a;
|
|
608
|
-
// The marker can arrive with a sync after the reader was made.
|
|
609
|
-
|
|
759
|
+
// The marker, or the final stamp, can arrive with a sync after the reader was made.
|
|
760
|
+
refuseEngineOnly(doc);
|
|
610
761
|
var ids = lines.get(sheetId);
|
|
611
762
|
if (!ids) {
|
|
612
763
|
ids = [(0, exports.readLineIds)(doc, sheetId, "row"), (0, exports.readLineIds)(doc, sheetId, "column")];
|
|
@@ -633,7 +784,7 @@ var processSheetDataChangesV5 = function (changedKeys, currentSheetData, doc, st
|
|
|
633
784
|
var e_9, _a;
|
|
634
785
|
var _b, _c, _d;
|
|
635
786
|
if (styles === void 0) { styles = (0, exports.readStyleOverlayV5)(doc); }
|
|
636
|
-
|
|
787
|
+
refuseEngineOnly(doc);
|
|
637
788
|
var cache = new Map();
|
|
638
789
|
var cold = new Map();
|
|
639
790
|
var next = tslib_1.__assign({}, currentSheetData);
|
|
@@ -784,6 +935,7 @@ exports.decodeFacetAnchorV5 = decodeFacetAnchorV5;
|
|
|
784
935
|
* read facets through the engine.
|
|
785
936
|
*/
|
|
786
937
|
var resolveFacetAnchorV5 = function (doc, sheetId, value, site) {
|
|
938
|
+
refuseFinalFormat(doc);
|
|
787
939
|
var positional = { status: "positional" };
|
|
788
940
|
var buf = value.anchor;
|
|
789
941
|
if (!(buf instanceof Uint8Array))
|
|
@@ -1218,7 +1370,7 @@ var addSheetDataPatchesV5 = function (doc, patches, origin, styles) {
|
|
|
1218
1370
|
if (origin === void 0) { origin = null; }
|
|
1219
1371
|
if (!(patches === null || patches === void 0 ? void 0 : patches.length))
|
|
1220
1372
|
return;
|
|
1221
|
-
|
|
1373
|
+
refuseEngineOnly(doc);
|
|
1222
1374
|
doc.transact(function () {
|
|
1223
1375
|
var e_16, _a;
|
|
1224
1376
|
var w = {
|
package/dist/cjs/helpers.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type SheetDataEvent = {
|
|
|
22
22
|
* @param patches
|
|
23
23
|
* @param source
|
|
24
24
|
* @param sheetDataVersion - Version of sheet data format ("v2", "v3" or "v5"). Falls back to docMeta if undefined.
|
|
25
|
+
* @throws FinalFormatError on a doc stamped final (`docIsFinalFormat`), whatever `sheetDataVersion` says: nothing is written.
|
|
25
26
|
*/
|
|
26
27
|
export declare const applyPatchesToYDoc: (doc: YDoc, userId: string | number, patches: [patch: SpreadsheetPatch<Patch>, type?: HistoryType | undefined | null][], source?: "agent" | "user" | "backend", sheetDataVersion?: "v2" | "v3" | "v5", yjsRuntime?: YjsRuntime) => void;
|
|
27
28
|
/**
|
|
@@ -37,6 +38,21 @@ export declare const getSheetFromYSheetData: (ySheetData: YNode, sheetId: string
|
|
|
37
38
|
export declare const deleteSheetFromYSheetData: (ySheetData: YNode, sheetId: string | number) => void;
|
|
38
39
|
export declare const getRowDataFromSheet: (ysheet: YNode, rowIndex: number | string, yjsRuntime?: YjsRuntime) => YNode;
|
|
39
40
|
export declare const setCellDataInRowData: (rowData: YNode, columnIndex: number | string, cellData?: CellData | null) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Writes several cells of one row: each run of consecutive column indices is
|
|
43
|
+
* one range delete and one insert, instead of an insert and a delete per cell.
|
|
44
|
+
*
|
|
45
|
+
* A row's cells are usually one Y.js item (a paste writes them together).
|
|
46
|
+
* Replacing a cell inside an item splits it, and every split is a splice into
|
|
47
|
+
* the client's list of structs, which grows with the document. A column insert
|
|
48
|
+
* rewrites every cell right of the new column in every row, so per-cell
|
|
49
|
+
* replaces cost (rows × shifted cells) splices into a list proportional to the
|
|
50
|
+
* sheet: quadratic, 4.8 s for 8,000 rows × 10 columns in V8. A run splits the
|
|
51
|
+
* row's item once.
|
|
52
|
+
*
|
|
53
|
+
* The row ends with the same content as `setCellDataInRowData` for each cell.
|
|
54
|
+
*/
|
|
55
|
+
export declare const setCellRunsInRowData: (rowData: YNode, cells: Map<number, CellData | null | undefined>) => void;
|
|
40
56
|
export declare const removeRowData: (ysheet: YNode, rowIndex: number | string) => void;
|
|
41
57
|
/**
|
|
42
58
|
* Read a cell's data from the V2 Y.js structure without creating any
|
|
@@ -135,22 +151,27 @@ export declare const sheetDataV2ToV3: <T extends CellData>(v2Data: SheetData<T>)
|
|
|
135
151
|
* Convert V3 flat Map format to V2 SheetData
|
|
136
152
|
* V3: Map<cellKey, CellDataV3>
|
|
137
153
|
* V2: { sheetId: [rows with values arrays] }
|
|
154
|
+
* Handed plain data, it cannot tell a doc stamped final: its caller checks `docIsFinalFormat` first.
|
|
138
155
|
*/
|
|
139
156
|
export declare const sheetDataV3ToV2: <T extends CellData>(v3Data: Map<string, CellDataV3<T>>) => SheetData<T>;
|
|
140
157
|
/**
|
|
141
158
|
* Get a cell from V3 flat structure
|
|
159
|
+
* @throws FinalFormatError on a doc stamped final (`docIsFinalFormat`).
|
|
142
160
|
*/
|
|
143
161
|
export declare const getCellV3: (ySheetDataV3: YSheetDataV3, sheetId: number, rowIndex: number, columnIndex: number) => CellDataV3 | undefined;
|
|
144
162
|
/**
|
|
145
163
|
* Set a cell in V3 flat structure
|
|
164
|
+
* @throws FinalFormatError on a doc stamped final (`docIsFinalFormat`): nothing is written.
|
|
146
165
|
*/
|
|
147
166
|
export declare const setCellV3: (ySheetDataV3: YSheetDataV3, sheetId: number, rowIndex: number, columnIndex: number, value: CellData) => void;
|
|
148
167
|
/**
|
|
149
168
|
* Delete a cell from V3 flat structure
|
|
169
|
+
* @throws FinalFormatError on a doc stamped final (`docIsFinalFormat`): nothing is written.
|
|
150
170
|
*/
|
|
151
171
|
export declare const deleteCellV3: (ySheetDataV3: YSheetDataV3, sheetId: number, rowIndex: number, columnIndex: number) => void;
|
|
152
172
|
/**
|
|
153
173
|
* Delete all cells for a sheet from V3 flat structure
|
|
174
|
+
* @throws FinalFormatError on a doc stamped final (`docIsFinalFormat`): nothing is written.
|
|
154
175
|
*/
|
|
155
176
|
export declare const deleteSheetV3: (ySheetDataV3: YSheetDataV3, sheetId: number) => void;
|
|
156
177
|
/**
|
|
@@ -164,6 +185,7 @@ export declare const getSheetDataV3: (doc: YDoc) => YSheetDataV3;
|
|
|
164
185
|
* patches before applying to Y.js. This reduces overhead by:
|
|
165
186
|
* 1. Deduplicating patches targeting the same cell (later patches win)
|
|
166
187
|
* 2. Processing all cell updates in a single pass
|
|
188
|
+
* @throws FinalFormatError on a doc stamped final (`docIsFinalFormat`): nothing is written.
|
|
167
189
|
*/
|
|
168
190
|
export declare const addSheetDataPatchesV3: (ySheetDataV3: YSheetDataV3, patches: Patch[]) => void;
|
|
169
191
|
/**
|
|
@@ -171,6 +193,7 @@ export declare const addSheetDataPatchesV3: (ySheetDataV3: YSheetDataV3, patches
|
|
|
171
193
|
* @param changedKeys - Pre-extracted changes from Yjs event
|
|
172
194
|
* @param currentSheetData - Current sheet data state
|
|
173
195
|
* @param ySheetDataV3 - The map node for V3 data
|
|
196
|
+
* @throws FinalFormatError on a doc stamped final (`docIsFinalFormat`).
|
|
174
197
|
*/
|
|
175
198
|
export declare const processSheetDataEventsV3: <T extends CellData>(changedKeys: Map<string, {
|
|
176
199
|
action: "add" | "update" | "delete";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,KAAK,EACX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAC;AAWzC,OAAO,KAAK,EAAE,KAAK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