@betteroffice/xlsx 0.5.0 → 0.5.1

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.
@@ -135,216 +135,6 @@ interface ValidationSuccess<Preview> {
135
135
  previews: Preview[];
136
136
  }
137
137
 
138
- /**
139
- * Versioned reads and version-checked edit batches over one workbook. Every shape here is plain
140
- * JSON; the semantics live in Rust.
141
- *
142
- * Rows and columns are zero-based and ranges inclusive. Sheet ids come from the current catalog:
143
- * `sheet:{index}` standalone, the replica's sheet keys in collaboration. Versions and sheet ids
144
- * are session-scoped; neither survives save and reopen. Standalone ids are positional, so each is
145
- * valid only for the version it was read at.
146
- */
147
-
148
- /** Provenance only: it neither grants permission nor selects history. */
149
- type XlsxEditSource = 'host' | 'agent';
150
- /**
151
- * `separate`: exactly one undo step. `none`: no undo step, existing entries kept; standalone
152
- * undo replays inverse operations, so undoing an older step that wrote the same cell still
153
- * overwrites it.
154
- *
155
- * @experimental `none` only: its interaction with standalone undo may change in a minor release.
156
- */
157
- type XlsxEditHistory = 'separate' | 'none';
158
- interface XlsxCellPosition {
159
- row: number;
160
- col: number;
161
- }
162
- /**
163
- * An A1 cell or `A1:B2` range (`$` allowed), or zero-based corners. Sheet-qualified, union,
164
- * whole-row/column and named references are refused.
165
- */
166
- type XlsxRangeAddress = {
167
- kind: 'a1';
168
- a1: string;
169
- } | {
170
- kind: 'rowCol';
171
- start: XlsxCellPosition;
172
- end: XlsxCellPosition;
173
- };
174
- interface XlsxRangeTarget {
175
- sheetId: string;
176
- range: XlsxRangeAddress;
177
- }
178
- /** One cell in canonical form. */
179
- interface XlsxCellAddress {
180
- sheetId: string;
181
- row: number;
182
- col: number;
183
- a1: string;
184
- }
185
- type XlsxErrorValue = '#DIV/0!' | '#N/A' | '#NAME?' | '#NULL!' | '#NUM!' | '#REF!' | '#VALUE!' | '#SPILL!' | '#CALC!';
186
- type XlsxCellValue = {
187
- kind: 'empty';
188
- } | {
189
- kind: 'number';
190
- value: number;
191
- } | {
192
- kind: 'text';
193
- value: string;
194
- } | {
195
- kind: 'bool';
196
- value: boolean;
197
- } | {
198
- kind: 'error';
199
- value: XlsxErrorValue;
200
- };
201
- /** Conditions on a cell's pre-batch state; an absent field imposes none. */
202
- interface XlsxCellGuard {
203
- /** The stored value, a formula's current result included. */
204
- value?: XlsxCellValue;
205
- /** Formula source without the leading `=`; `null` asserts there is no formula. */
206
- formula?: string | null;
207
- /** The exact text the engine formats the cell as. */
208
- displayText?: string;
209
- }
210
- /** Matrices are row-major and exactly the target's shape. */
211
- type XlsxEditOperation = {
212
- /** What a user would type, parsed against each cell's current number format. */
213
- op: 'setCellInputs';
214
- target: XlsxRangeTarget;
215
- inputs: string[][];
216
- } | {
217
- op: 'setCellValues';
218
- target: XlsxRangeTarget;
219
- values: XlsxCellValue[][];
220
- } | {
221
- /** Formula source without the leading `=`, stored as a formula whatever the format. */
222
- op: 'setFormulas';
223
- target: XlsxRangeTarget;
224
- formulas: string[][];
225
- } | {
226
- /** Relative mutations resolve against each cell's current format. */
227
- op: 'setNumberFormat';
228
- target: XlsxRangeTarget;
229
- format: NumberFormatMutation;
230
- } | {
231
- op: 'patchStyle';
232
- target: XlsxRangeTarget;
233
- patch: RangeStylePatch;
234
- };
235
- type XlsxEditStep = XlsxEditOperation & {
236
- expect?: {
237
- cells: XlsxCellGuard[][];
238
- };
239
- };
240
- /** Requests above 16 MiB and results above 64 MiB are refused with `limit-exceeded`. */
241
- interface XlsxEditRequest {
242
- /** The version the targets were read at; a changed workbook refuses with `stale-version`. */
243
- expectVersion: string;
244
- /** Defaults to `host`. */
245
- source?: XlsxEditSource;
246
- /** Defaults to `separate`. */
247
- history?: XlsxEditHistory;
248
- /** Overrides the handle clock for this request; without either clock, NOW() has no clock. */
249
- calculation?: {
250
- nowSerial?: number;
251
- };
252
- steps: readonly XlsxEditStep[];
253
- }
254
- /**
255
- * `locked-target` covers any write to merged-cell followers, array-formula cells and locked
256
- * cells of protected sheets, and formats on protected sheets that do not allow formatting cells.
257
- * `read-only` comes only from an editor that does not accept edits.
258
- */
259
- type XlsxEditFailureCode = 'stale-version' | 'missing-target' | 'content-mismatch' | 'overlapping-steps' | 'locked-target' | 'read-only' | 'unsupported' | 'invalid-step' | 'limit-exceeded';
260
- type XlsxEditFailure = OperationFailure<XlsxEditFailureCode, XlsxRangeTarget>;
261
- type XlsxEditRefusal = OperationRefusal<XlsxEditFailure>;
262
- interface XlsxEditReceipt {
263
- stepIndex: number;
264
- changed: boolean;
265
- target: XlsxRangeTarget;
266
- /** Row-major. */
267
- changedCells: XlsxCellAddress[];
268
- }
269
- /** What one step would do; it cannot be committed later. */
270
- interface XlsxEditPreview {
271
- stepIndex: number;
272
- target: XlsxRangeTarget;
273
- wouldChange: boolean;
274
- changedCellCount: number;
275
- }
276
- interface XlsxEditCalculation {
277
- /** Dependents whose value moved. */
278
- changed: XlsxCellAddress[];
279
- cycleCells: XlsxCellAddress[];
280
- limitedCells: XlsxCellAddress[];
281
- /** Whether a list stopped at 10,000 cells. */
282
- truncated: boolean;
283
- }
284
- type XlsxEditResult = (EditSuccess<XlsxEditReceipt> & {
285
- source: XlsxEditSource;
286
- /** Sheets the batch or its recalculation changed, as ids in sheet order. */
287
- changedSheets: string[];
288
- calculation: XlsxEditCalculation;
289
- }) | XlsxEditRefusal;
290
- type XlsxValidationResult = ValidationSuccess<XlsxEditPreview> | XlsxEditRefusal;
291
- interface XlsxReadRequest {
292
- /** Empty reads only the sheet catalog. */
293
- ranges: readonly XlsxRangeTarget[];
294
- }
295
- interface XlsxSheetEntry {
296
- sheetId: string;
297
- name: string;
298
- /**
299
- * False for non-worksheets, which batches refuse to write, and protected worksheets, which take
300
- * content only in unlocked cells and formats only when they allow formatting cells.
301
- */
302
- editable: boolean;
303
- }
304
- interface XlsxCellRead {
305
- a1: string;
306
- value: XlsxCellValue;
307
- formula: string | null;
308
- displayText: string;
309
- }
310
- interface XlsxRangeRead {
311
- target: XlsxRangeTarget;
312
- /** Row-major. */
313
- cells: XlsxCellRead[][];
314
- }
315
- interface XlsxReadCalculation {
316
- cycleCells: XlsxCellAddress[];
317
- limitedCells: XlsxCellAddress[];
318
- /** Whether a list stopped at 10,000 cells. */
319
- truncated: boolean;
320
- }
321
- type XlsxReadResult = {
322
- ok: true;
323
- version: string;
324
- sheets: XlsxSheetEntry[];
325
- ranges: XlsxRangeRead[];
326
- calculation: XlsxReadCalculation;
327
- } | XlsxEditRefusal;
328
- /** An exact, case-sensitive substring search over display text. */
329
- interface XlsxFindRequest {
330
- text: string;
331
- /** Defaults to every sheet. */
332
- sheetIds?: readonly string[];
333
- /** Defaults to 100; at most 10,000. */
334
- limit?: number;
335
- }
336
- interface XlsxFindMatch {
337
- cell: XlsxCellAddress;
338
- /** The cell's whole display text. */
339
- text: string;
340
- }
341
- type XlsxFindResult = {
342
- ok: true;
343
- version: string;
344
- matches: XlsxFindMatch[];
345
- truncated: boolean;
346
- } | XlsxEditRefusal;
347
-
348
138
  /**
349
139
  * Shapes shared by the formats' read-only structured exports. Content trees, anchors, story or
350
140
  * sheet selectors, diagnostic codes and limits stay format-owned; these only fix how every format
@@ -526,6 +316,7 @@ interface XlsxExportDefinedName {
526
316
  hidden: boolean;
527
317
  localSheet: XlsxSheetIdentity | null;
528
318
  }
319
+ type XlsxSheetVisibility = 'visible' | 'hidden' | 'veryHidden' | 'unknown';
529
320
  /**
530
321
  * One sheet. `truncated` means export stopped inside it: its lists are complete in the order
531
322
  * hidden spans, merges, tables, hyperlinks, objects, cells, up to where it stopped.
@@ -534,7 +325,7 @@ interface XlsxExportSheet extends ExportCompletion {
534
325
  id: string;
535
326
  anchor: XlsxAnchor;
536
327
  kind: 'worksheet' | 'chartsheet' | 'dialogsheet' | 'macrosheet' | 'other';
537
- visibility: 'visible' | 'hidden' | 'veryHidden' | 'unknown';
328
+ visibility: XlsxSheetVisibility;
538
329
  /** Stored cells and hyperlinks; drawings, merges and tables do not extend it. */
539
330
  usedRange: string | null;
540
331
  selectedRange: string | null;
@@ -590,6 +381,217 @@ type XlsxExportResult<T> = {
590
381
  content: T;
591
382
  } | OperationRefusal<XlsxExportFailure>;
592
383
 
384
+ /**
385
+ * Versioned reads and version-checked edit batches over one workbook. Every shape here is plain
386
+ * JSON; the semantics live in Rust.
387
+ *
388
+ * Rows and columns are zero-based and ranges inclusive. Sheet ids come from the current catalog:
389
+ * `sheet:{index}` standalone, the replica's sheet keys in collaboration. Versions and sheet ids
390
+ * are session-scoped; neither survives save and reopen. Standalone ids are positional, so each is
391
+ * valid only for the version it was read at.
392
+ */
393
+
394
+ /** Provenance only: it neither grants permission nor selects history. */
395
+ type XlsxEditSource = 'host' | 'agent';
396
+ /**
397
+ * `separate`: exactly one undo step. `none`: no undo step, existing entries kept; standalone
398
+ * undo replays inverse operations, so undoing an older step that wrote the same cell still
399
+ * overwrites it.
400
+ *
401
+ * @experimental `none` only: its interaction with standalone undo may change in a minor release.
402
+ */
403
+ type XlsxEditHistory = 'separate' | 'none';
404
+ interface XlsxCellPosition {
405
+ row: number;
406
+ col: number;
407
+ }
408
+ /**
409
+ * An A1 cell or `A1:B2` range (`$` allowed), or zero-based corners. Sheet-qualified, union,
410
+ * whole-row/column and named references are refused.
411
+ */
412
+ type XlsxRangeAddress = {
413
+ kind: 'a1';
414
+ a1: string;
415
+ } | {
416
+ kind: 'rowCol';
417
+ start: XlsxCellPosition;
418
+ end: XlsxCellPosition;
419
+ };
420
+ interface XlsxRangeTarget {
421
+ sheetId: string;
422
+ range: XlsxRangeAddress;
423
+ }
424
+ /** One cell in canonical form. */
425
+ interface XlsxCellAddress {
426
+ sheetId: string;
427
+ row: number;
428
+ col: number;
429
+ a1: string;
430
+ }
431
+ type XlsxErrorValue = '#DIV/0!' | '#N/A' | '#NAME?' | '#NULL!' | '#NUM!' | '#REF!' | '#VALUE!' | '#SPILL!' | '#CALC!';
432
+ type XlsxCellValue = {
433
+ kind: 'empty';
434
+ } | {
435
+ kind: 'number';
436
+ value: number;
437
+ } | {
438
+ kind: 'text';
439
+ value: string;
440
+ } | {
441
+ kind: 'bool';
442
+ value: boolean;
443
+ } | {
444
+ kind: 'error';
445
+ value: XlsxErrorValue;
446
+ };
447
+ /** Conditions on a cell's pre-batch state; an absent field imposes none. */
448
+ interface XlsxCellGuard {
449
+ /** The stored value, a formula's current result included. */
450
+ value?: XlsxCellValue;
451
+ /** Formula source without the leading `=`; `null` asserts there is no formula. */
452
+ formula?: string | null;
453
+ /** The exact text the engine formats the cell as. */
454
+ displayText?: string;
455
+ }
456
+ /** Matrices are row-major and exactly the target's shape. */
457
+ type XlsxEditOperation = {
458
+ /** What a user would type, parsed against each cell's current number format. */
459
+ op: 'setCellInputs';
460
+ target: XlsxRangeTarget;
461
+ inputs: string[][];
462
+ } | {
463
+ op: 'setCellValues';
464
+ target: XlsxRangeTarget;
465
+ values: XlsxCellValue[][];
466
+ } | {
467
+ /** Formula source without the leading `=`, stored as a formula whatever the format. */
468
+ op: 'setFormulas';
469
+ target: XlsxRangeTarget;
470
+ formulas: string[][];
471
+ } | {
472
+ /** Relative mutations resolve against each cell's current format. */
473
+ op: 'setNumberFormat';
474
+ target: XlsxRangeTarget;
475
+ format: NumberFormatMutation;
476
+ } | {
477
+ op: 'patchStyle';
478
+ target: XlsxRangeTarget;
479
+ patch: RangeStylePatch;
480
+ };
481
+ type XlsxEditStep = XlsxEditOperation & {
482
+ expect?: {
483
+ cells: XlsxCellGuard[][];
484
+ };
485
+ };
486
+ /** Requests above 16 MiB and results above 64 MiB are refused with `limit-exceeded`. */
487
+ interface XlsxEditRequest {
488
+ /** The version the targets were read at; a changed workbook refuses with `stale-version`. */
489
+ expectVersion: string;
490
+ /** Defaults to `host`. */
491
+ source?: XlsxEditSource;
492
+ /** Defaults to `separate`. */
493
+ history?: XlsxEditHistory;
494
+ /** Overrides the handle clock for this request; without either clock, NOW() has no clock. */
495
+ calculation?: {
496
+ nowSerial?: number;
497
+ };
498
+ steps: readonly XlsxEditStep[];
499
+ }
500
+ /**
501
+ * `locked-target` covers any write to merged-cell followers, array-formula cells and locked
502
+ * cells of protected sheets, and formats on protected sheets that do not allow formatting cells.
503
+ * `read-only` comes only from an editor that does not accept edits.
504
+ */
505
+ type XlsxEditFailureCode = 'stale-version' | 'missing-target' | 'content-mismatch' | 'overlapping-steps' | 'locked-target' | 'read-only' | 'unsupported' | 'invalid-step' | 'limit-exceeded';
506
+ type XlsxEditFailure = OperationFailure<XlsxEditFailureCode, XlsxRangeTarget>;
507
+ type XlsxEditRefusal = OperationRefusal<XlsxEditFailure>;
508
+ interface XlsxEditReceipt {
509
+ stepIndex: number;
510
+ changed: boolean;
511
+ target: XlsxRangeTarget;
512
+ /** Row-major. */
513
+ changedCells: XlsxCellAddress[];
514
+ }
515
+ /** What one step would do; it cannot be committed later. */
516
+ interface XlsxEditPreview {
517
+ stepIndex: number;
518
+ target: XlsxRangeTarget;
519
+ wouldChange: boolean;
520
+ changedCellCount: number;
521
+ }
522
+ interface XlsxEditCalculation {
523
+ /** Dependents whose value moved. */
524
+ changed: XlsxCellAddress[];
525
+ cycleCells: XlsxCellAddress[];
526
+ limitedCells: XlsxCellAddress[];
527
+ /** Whether a list stopped at 10,000 cells. */
528
+ truncated: boolean;
529
+ }
530
+ type XlsxEditResult = (EditSuccess<XlsxEditReceipt> & {
531
+ source: XlsxEditSource;
532
+ /** Sheets the batch or its recalculation changed, as ids in sheet order. */
533
+ changedSheets: string[];
534
+ calculation: XlsxEditCalculation;
535
+ }) | XlsxEditRefusal;
536
+ type XlsxValidationResult = ValidationSuccess<XlsxEditPreview> | XlsxEditRefusal;
537
+ interface XlsxReadRequest {
538
+ /** Empty reads only the sheet catalog. */
539
+ ranges: readonly XlsxRangeTarget[];
540
+ }
541
+ interface XlsxSheetEntry {
542
+ visibility?: XlsxSheetVisibility;
543
+ sheetId: string;
544
+ name: string;
545
+ /**
546
+ * False for non-worksheets, which batches refuse to write, and protected worksheets, which take
547
+ * content only in unlocked cells and formats only when they allow formatting cells.
548
+ */
549
+ editable: boolean;
550
+ }
551
+ interface XlsxCellRead {
552
+ a1: string;
553
+ value: XlsxCellValue;
554
+ formula: string | null;
555
+ displayText: string;
556
+ }
557
+ interface XlsxRangeRead {
558
+ target: XlsxRangeTarget;
559
+ /** Row-major. */
560
+ cells: XlsxCellRead[][];
561
+ }
562
+ interface XlsxReadCalculation {
563
+ cycleCells: XlsxCellAddress[];
564
+ limitedCells: XlsxCellAddress[];
565
+ /** Whether a list stopped at 10,000 cells. */
566
+ truncated: boolean;
567
+ }
568
+ type XlsxReadResult = {
569
+ ok: true;
570
+ version: string;
571
+ sheets: XlsxSheetEntry[];
572
+ ranges: XlsxRangeRead[];
573
+ calculation: XlsxReadCalculation;
574
+ } | XlsxEditRefusal;
575
+ /** An exact, case-sensitive substring search over display text. */
576
+ interface XlsxFindRequest {
577
+ text: string;
578
+ /** Defaults to every sheet. */
579
+ sheetIds?: readonly string[];
580
+ /** Defaults to 100; at most 10,000. */
581
+ limit?: number;
582
+ }
583
+ interface XlsxFindMatch {
584
+ cell: XlsxCellAddress;
585
+ /** The cell's whole display text. */
586
+ text: string;
587
+ }
588
+ type XlsxFindResult = {
589
+ ok: true;
590
+ version: string;
591
+ matches: XlsxFindMatch[];
592
+ truncated: boolean;
593
+ } | XlsxEditRefusal;
594
+
593
595
  /**
594
596
  * A scrolled window into a sheet. `x`/`y` are content-pixel offsets into the
595
597
  * non-frozen body. Mirrors the Rust `Viewport`.
@@ -1903,4 +1905,4 @@ declare class WorkbookEditPeerFailedError extends Error {
1903
1905
  /** @internal */
1904
1906
  declare function createWorkbookEditPeer(options: WorkbookEditPeerOptions): WorkbookEditPeer;
1905
1907
 
1906
- export { type TextWrapping as $, type ExportSeverity as A, type BorderPatch as B, type CalculationStatus as C, type DifferentialFormatInput as D, type EditProfile as E, type HorizontalAlignment as F, type MergedRange as G, type HistoryState as H, type NumberFormatMutation as I, type OpenWorkbookSessionOptions as J, type OperationFailure as K, type OperationRefusal as L, type MarkdownAnchor as M, type NumberFormat as N, type OpenWorkbookOptions as O, type PrintMetrics as P, type ProfiledDisplayList as Q, type ProfiledEditResult as R, type Proposal as S, type ProposalCell as T, type ProposalEdit as U, type RangeStylePatch as V, type SelectionFormatting as W, type SheetInfo as X, StaleProposalError as Y, type StaleProposalTarget as Z, type StyleProperty as _, type BorderPreset as a, type XlsxExportOptions as a$, type ValidationSuccess as a0, type VerticalAlignment as a1, type Viewport as a2, type WasmInitInput as a3, type WorkbookCalculationContext as a4, type WorkbookCellGeometry as a5, type WorkbookCellInputs as a6, WorkbookEditPeerFailedError as a7, type WorkbookEditSession as a8, type WorkbookFrame as a9, type XlsxCellValue as aA, type XlsxDefinedName as aB, type XlsxDefinedNameOp as aC, type XlsxDefinedNamesRequest as aD, type XlsxDefinedNamesResult as aE, type XlsxEditCalculation as aF, type XlsxEditFailure as aG, type XlsxEditFailureCode as aH, type XlsxEditHistory as aI, type XlsxEditOperation as aJ, type XlsxEditPreview as aK, type XlsxEditReceipt as aL, type XlsxEditRefusal as aM, type XlsxEditRequest as aN, type XlsxEditResult as aO, type XlsxEditSource as aP, type XlsxEditStep as aQ, type XlsxErrorValue as aR, type XlsxExportCell as aS, type XlsxExportDefinedName as aT, type XlsxExportDiagnostic as aU, type XlsxExportDiagnosticCode as aV, type XlsxExportFailure as aW, type XlsxExportFailureCode as aX, type XlsxExportHyperlink as aY, type XlsxExportMerge as aZ, type XlsxExportObject as a_, type WorkbookFrameOptions as aa, type WorkbookHandle as ab, type WorkbookHyperlink as ac, type WorkbookInitialPaint as ad, type WorkbookInitialPaintRequest as ae, WorkbookPeerHydrationError as af, WorkbookPngUnavailableError as ag, WorkbookRecoveryReplayError as ah, type WorkbookSession as ai, type WorkbookSessionEvents as aj, type WorkbookSessionMethods as ak, type WorkbookSessionOpenOptions as al, type WorkbookSessionOpenReply as am, type WorkbookSessionRecovery as an, type WorkbookSessionState as ao, type WorkbookSheetSummary as ap, type WorkbookSheetView as aq, type WorkbookUpdateInfo as ar, type WorkbookUpdateListener as as, type WorkbookUpdateOrigin as at, type XlsxAnchor as au, type XlsxAutoFilterOp as av, type XlsxCellAddress as aw, type XlsxCellGuard as ax, type XlsxCellPosition as ay, type XlsxCellRead as az, type BorderStyle as b, type WorkbookSharedWireAck as b$, type XlsxExportResult as b0, type XlsxExportScope as b1, type XlsxExportSheet as b2, type XlsxExportTable as b3, type XlsxExportValue as b4, type XlsxFindMatch as b5, type XlsxFindRequest as b6, type XlsxFindResult as b7, type XlsxFormulaResult as b8, type XlsxMarkdownContent as b9, wasmVersion as bA, workbookSessionRecovery as bB, type WorkbookReplayReply as bC, type WorkbookEditPeer as bD, type WorkbookReplayMethod as bE, type WorkbookReplayOp as bF, type CommandBasis as bG, type CommandIdentity as bH, type CommandStatus as bI, type WorkbookAck as bJ, type WorkbookCommand as bK, type WorkbookCommandContext as bL, type WorkbookCommandFrame as bM, type WorkbookCommandFrameRequest as bN, type WorkbookCommandKind as bO, type WorkbookCommandPayload as bP, type WorkbookCommandSelection as bQ, type WorkbookCommandTicket as bR, type WorkbookEchoHooks as bS, type WorkbookEditConnection as bT, type WorkbookEditFrame as bU, type WorkbookEditPayload as bV, type WorkbookEditPeerOptions as bW, type WorkbookEditState as bX, type WorkbookSharedAck as bY, type WorkbookSharedCommand as bZ, type WorkbookSharedOutcome as b_, type XlsxMarkdownOptions as ba, type XlsxObjectKind as bb, type XlsxRangeAddress as bc, type XlsxRangeRead as bd, type XlsxRangeTarget as be, type XlsxReadCalculation as bf, type XlsxReadRequest as bg, type XlsxReadResult as bh, type XlsxSheetEntry as bi, type XlsxSheetIdentity as bj, type XlsxSourcePart as bk, type XlsxStructuredContent as bl, type XlsxTextMatch as bm, type XlsxTextSearchOptions as bn, type XlsxValidationResult as bo, createWorkbookEditSession as bp, exportXlsxMarkdown as bq, exportXlsxStructured as br, getDisplayListCellLimit as bs, initWasm as bt, isPngExportAvailable as bu, isProposalsAvailable as bv, isWasmAvailable as bw, openWorkbook as bx, openWorkbookSession as by, renderXlsxMarkdown as bz, type CapturedBorderEdge as c, type WorkbookSubmitOptions as c0, type WorkbookTicketOutcome as c1, createWorkbookEditPeer as c2, hydratePeer as c3, workbookSessionInternals as c4, type CapturedBorderStyle as d, type CapturedCellFormat as e, type CapturedColor as f, type CapturedFill as g, type CapturedFormat as h, type CellEdit as i, type CellInputEdit as j, type CellPoint as k, type CellPosition as l, type ChartEdit as m, type ChartInfo as n, type ChartMutation as o, type ChartSeriesInfo as p, type ChartSeriesName as q, type ConditionalFormatInfo as r, type ConditionalFormatOp as s, type ConditionalFormatRuleInput as t, type DisplayListProfile as u, DisplayTooLargeError as v, type EditResult as w, type EditSuccess as x, type ExportCompletion as y, type ExportDiagnostic as z };
1908
+ export { type TextWrapping as $, type ExportSeverity as A, type BorderPatch as B, type CalculationStatus as C, type DifferentialFormatInput as D, type EditProfile as E, type HorizontalAlignment as F, type MergedRange as G, type HistoryState as H, type NumberFormatMutation as I, type OpenWorkbookSessionOptions as J, type OperationFailure as K, type OperationRefusal as L, type MarkdownAnchor as M, type NumberFormat as N, type OpenWorkbookOptions as O, type PrintMetrics as P, type ProfiledDisplayList as Q, type ProfiledEditResult as R, type Proposal as S, type ProposalCell as T, type ProposalEdit as U, type RangeStylePatch as V, type SelectionFormatting as W, type SheetInfo as X, StaleProposalError as Y, type StaleProposalTarget as Z, type StyleProperty as _, type BorderPreset as a, type XlsxExportOptions as a$, type ValidationSuccess as a0, type VerticalAlignment as a1, type Viewport as a2, type WasmInitInput as a3, type WorkbookCalculationContext as a4, type WorkbookCellGeometry as a5, type WorkbookCellInputs as a6, WorkbookEditPeerFailedError as a7, type WorkbookEditSession as a8, type WorkbookFrame as a9, type XlsxCellValue as aA, type XlsxDefinedName as aB, type XlsxDefinedNameOp as aC, type XlsxDefinedNamesRequest as aD, type XlsxDefinedNamesResult as aE, type XlsxEditCalculation as aF, type XlsxEditFailure as aG, type XlsxEditFailureCode as aH, type XlsxEditHistory as aI, type XlsxEditOperation as aJ, type XlsxEditPreview as aK, type XlsxEditReceipt as aL, type XlsxEditRefusal as aM, type XlsxEditRequest as aN, type XlsxEditResult as aO, type XlsxEditSource as aP, type XlsxEditStep as aQ, type XlsxErrorValue as aR, type XlsxExportCell as aS, type XlsxExportDefinedName as aT, type XlsxExportDiagnostic as aU, type XlsxExportDiagnosticCode as aV, type XlsxExportFailure as aW, type XlsxExportFailureCode as aX, type XlsxExportHyperlink as aY, type XlsxExportMerge as aZ, type XlsxExportObject as a_, type WorkbookFrameOptions as aa, type WorkbookHandle as ab, type WorkbookHyperlink as ac, type WorkbookInitialPaint as ad, type WorkbookInitialPaintRequest as ae, WorkbookPeerHydrationError as af, WorkbookPngUnavailableError as ag, WorkbookRecoveryReplayError as ah, type WorkbookSession as ai, type WorkbookSessionEvents as aj, type WorkbookSessionMethods as ak, type WorkbookSessionOpenOptions as al, type WorkbookSessionOpenReply as am, type WorkbookSessionRecovery as an, type WorkbookSessionState as ao, type WorkbookSheetSummary as ap, type WorkbookSheetView as aq, type WorkbookUpdateInfo as ar, type WorkbookUpdateListener as as, type WorkbookUpdateOrigin as at, type XlsxAnchor as au, type XlsxAutoFilterOp as av, type XlsxCellAddress as aw, type XlsxCellGuard as ax, type XlsxCellPosition as ay, type XlsxCellRead as az, type BorderStyle as b, type WorkbookSharedOutcome as b$, type XlsxExportResult as b0, type XlsxExportScope as b1, type XlsxExportSheet as b2, type XlsxExportTable as b3, type XlsxExportValue as b4, type XlsxFindMatch as b5, type XlsxFindRequest as b6, type XlsxFindResult as b7, type XlsxFormulaResult as b8, type XlsxMarkdownContent as b9, renderXlsxMarkdown as bA, wasmVersion as bB, workbookSessionRecovery as bC, type WorkbookReplayReply as bD, type WorkbookEditPeer as bE, type WorkbookReplayMethod as bF, type WorkbookReplayOp as bG, type CommandBasis as bH, type CommandIdentity as bI, type CommandStatus as bJ, type WorkbookAck as bK, type WorkbookCommand as bL, type WorkbookCommandContext as bM, type WorkbookCommandFrame as bN, type WorkbookCommandFrameRequest as bO, type WorkbookCommandKind as bP, type WorkbookCommandPayload as bQ, type WorkbookCommandSelection as bR, type WorkbookCommandTicket as bS, type WorkbookEchoHooks as bT, type WorkbookEditConnection as bU, type WorkbookEditFrame as bV, type WorkbookEditPayload as bW, type WorkbookEditPeerOptions as bX, type WorkbookEditState as bY, type WorkbookSharedAck as bZ, type WorkbookSharedCommand as b_, type XlsxMarkdownOptions as ba, type XlsxObjectKind as bb, type XlsxRangeAddress as bc, type XlsxRangeRead as bd, type XlsxRangeTarget as be, type XlsxReadCalculation as bf, type XlsxReadRequest as bg, type XlsxReadResult as bh, type XlsxSheetEntry as bi, type XlsxSheetIdentity as bj, type XlsxSheetVisibility as bk, type XlsxSourcePart as bl, type XlsxStructuredContent as bm, type XlsxTextMatch as bn, type XlsxTextSearchOptions as bo, type XlsxValidationResult as bp, createWorkbookEditSession as bq, exportXlsxMarkdown as br, exportXlsxStructured as bs, getDisplayListCellLimit as bt, initWasm as bu, isPngExportAvailable as bv, isProposalsAvailable as bw, isWasmAvailable as bx, openWorkbook as by, openWorkbookSession as bz, type CapturedBorderEdge as c, type WorkbookSharedWireAck as c0, type WorkbookSubmitOptions as c1, type WorkbookTicketOutcome as c2, createWorkbookEditPeer as c3, hydratePeer as c4, workbookSessionInternals as c5, type CapturedBorderStyle as d, type CapturedCellFormat as e, type CapturedColor as f, type CapturedFill as g, type CapturedFormat as h, type CellEdit as i, type CellInputEdit as j, type CellPoint as k, type CellPosition as l, type ChartEdit as m, type ChartInfo as n, type ChartMutation as o, type ChartSeriesInfo as p, type ChartSeriesName as q, type ConditionalFormatInfo as r, type ConditionalFormatOp as s, type ConditionalFormatRuleInput as t, type DisplayListProfile as u, DisplayTooLargeError as v, type EditResult as w, type EditSuccess as x, type ExportCompletion as y, type ExportDiagnostic as z };
Binary file
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { B as BorderPatch, a as BorderPreset, b as BorderStyle, C as CalculationStatus, c as CapturedBorderEdge, d as CapturedBorderStyle, e as CapturedCellFormat, f as CapturedColor, g as CapturedFill, h as CapturedFormat, i as CellEdit, j as CellInputEdit, k as CellPoint, l as CellPosition, m as ChartEdit, n as ChartInfo, o as ChartMutation, p as ChartSeriesInfo, q as ChartSeriesName, r as ConditionalFormatInfo, s as ConditionalFormatOp, t as ConditionalFormatRuleInput, D as DifferentialFormatInput, u as DisplayListProfile, v as DisplayTooLargeError, E as EditProfile, w as EditResult, x as EditSuccess, y as ExportCompletion, z as ExportDiagnostic, A as ExportSeverity, H as HistoryState, F as HorizontalAlignment, M as MarkdownAnchor, G as MergedRange, N as NumberFormat, I as NumberFormatMutation, O as OpenWorkbookOptions, J as OpenWorkbookSessionOptions, K as OperationFailure, L as OperationRefusal, P as PrintMetrics, Q as ProfiledDisplayList, R as ProfiledEditResult, S as Proposal, T as ProposalCell, U as ProposalEdit, V as RangeStylePatch, W as SelectionFormatting, X as SheetInfo, Y as StaleProposalError, Z as StaleProposalTarget, _ as StyleProperty, $ as TextWrapping, a0 as ValidationSuccess, a1 as VerticalAlignment, a2 as Viewport, a3 as WasmInitInput, a4 as WorkbookCalculationContext, a5 as WorkbookCellGeometry, a6 as WorkbookCellInputs, a7 as WorkbookEditPeerFailedError, a8 as WorkbookEditSession, a9 as WorkbookFrame, aa as WorkbookFrameOptions, ab as WorkbookHandle, ac as WorkbookHyperlink, ad as WorkbookInitialPaint, ae as WorkbookInitialPaintRequest, af as WorkbookPeerHydrationError, ag as WorkbookPngUnavailableError, ah as WorkbookRecoveryReplayError, ai as WorkbookSession, aj as WorkbookSessionEvents, ak as WorkbookSessionMethods, al as WorkbookSessionOpenOptions, am as WorkbookSessionOpenReply, an as WorkbookSessionRecovery, ao as WorkbookSessionState, ap as WorkbookSheetSummary, aq as WorkbookSheetView, ar as WorkbookUpdateInfo, as as WorkbookUpdateListener, at as WorkbookUpdateOrigin, au as XlsxAnchor, av as XlsxAutoFilterOp, aw as XlsxCellAddress, ax as XlsxCellGuard, ay as XlsxCellPosition, az as XlsxCellRead, aA as XlsxCellValue, aB as XlsxDefinedName, aC as XlsxDefinedNameOp, aD as XlsxDefinedNamesRequest, aE as XlsxDefinedNamesResult, aF as XlsxEditCalculation, aG as XlsxEditFailure, aH as XlsxEditFailureCode, aI as XlsxEditHistory, aJ as XlsxEditOperation, aK as XlsxEditPreview, aL as XlsxEditReceipt, aM as XlsxEditRefusal, aN as XlsxEditRequest, aO as XlsxEditResult, aP as XlsxEditSource, aQ as XlsxEditStep, aR as XlsxErrorValue, aS as XlsxExportCell, aT as XlsxExportDefinedName, aU as XlsxExportDiagnostic, aV as XlsxExportDiagnosticCode, aW as XlsxExportFailure, aX as XlsxExportFailureCode, aY as XlsxExportHyperlink, aZ as XlsxExportMerge, a_ as XlsxExportObject, a$ as XlsxExportOptions, b0 as XlsxExportResult, b1 as XlsxExportScope, b2 as XlsxExportSheet, b3 as XlsxExportTable, b4 as XlsxExportValue, b5 as XlsxFindMatch, b6 as XlsxFindRequest, b7 as XlsxFindResult, b8 as XlsxFormulaResult, b9 as XlsxMarkdownContent, ba as XlsxMarkdownOptions, bb as XlsxObjectKind, bc as XlsxRangeAddress, bd as XlsxRangeRead, be as XlsxRangeTarget, bf as XlsxReadCalculation, bg as XlsxReadRequest, bh as XlsxReadResult, bi as XlsxSheetEntry, bj as XlsxSheetIdentity, bk as XlsxSourcePart, bl as XlsxStructuredContent, bm as XlsxTextMatch, bn as XlsxTextSearchOptions, bo as XlsxValidationResult, bp as createWorkbookEditSession, bq as exportXlsxMarkdown, br as exportXlsxStructured, bs as getDisplayListCellLimit, bt as initWasm, bu as isPngExportAvailable, bv as isProposalsAvailable, bw as isWasmAvailable, bx as openWorkbook, by as openWorkbookSession, bz as renderXlsxMarkdown, bA as wasmVersion, bB as workbookSessionRecovery } from './editPeer-DN6JDr8Z.js';
1
+ export { B as BorderPatch, a as BorderPreset, b as BorderStyle, C as CalculationStatus, c as CapturedBorderEdge, d as CapturedBorderStyle, e as CapturedCellFormat, f as CapturedColor, g as CapturedFill, h as CapturedFormat, i as CellEdit, j as CellInputEdit, k as CellPoint, l as CellPosition, m as ChartEdit, n as ChartInfo, o as ChartMutation, p as ChartSeriesInfo, q as ChartSeriesName, r as ConditionalFormatInfo, s as ConditionalFormatOp, t as ConditionalFormatRuleInput, D as DifferentialFormatInput, u as DisplayListProfile, v as DisplayTooLargeError, E as EditProfile, w as EditResult, x as EditSuccess, y as ExportCompletion, z as ExportDiagnostic, A as ExportSeverity, H as HistoryState, F as HorizontalAlignment, M as MarkdownAnchor, G as MergedRange, N as NumberFormat, I as NumberFormatMutation, O as OpenWorkbookOptions, J as OpenWorkbookSessionOptions, K as OperationFailure, L as OperationRefusal, P as PrintMetrics, Q as ProfiledDisplayList, R as ProfiledEditResult, S as Proposal, T as ProposalCell, U as ProposalEdit, V as RangeStylePatch, W as SelectionFormatting, X as SheetInfo, Y as StaleProposalError, Z as StaleProposalTarget, _ as StyleProperty, $ as TextWrapping, a0 as ValidationSuccess, a1 as VerticalAlignment, a2 as Viewport, a3 as WasmInitInput, a4 as WorkbookCalculationContext, a5 as WorkbookCellGeometry, a6 as WorkbookCellInputs, a7 as WorkbookEditPeerFailedError, a8 as WorkbookEditSession, a9 as WorkbookFrame, aa as WorkbookFrameOptions, ab as WorkbookHandle, ac as WorkbookHyperlink, ad as WorkbookInitialPaint, ae as WorkbookInitialPaintRequest, af as WorkbookPeerHydrationError, ag as WorkbookPngUnavailableError, ah as WorkbookRecoveryReplayError, ai as WorkbookSession, aj as WorkbookSessionEvents, ak as WorkbookSessionMethods, al as WorkbookSessionOpenOptions, am as WorkbookSessionOpenReply, an as WorkbookSessionRecovery, ao as WorkbookSessionState, ap as WorkbookSheetSummary, aq as WorkbookSheetView, ar as WorkbookUpdateInfo, as as WorkbookUpdateListener, at as WorkbookUpdateOrigin, au as XlsxAnchor, av as XlsxAutoFilterOp, aw as XlsxCellAddress, ax as XlsxCellGuard, ay as XlsxCellPosition, az as XlsxCellRead, aA as XlsxCellValue, aB as XlsxDefinedName, aC as XlsxDefinedNameOp, aD as XlsxDefinedNamesRequest, aE as XlsxDefinedNamesResult, aF as XlsxEditCalculation, aG as XlsxEditFailure, aH as XlsxEditFailureCode, aI as XlsxEditHistory, aJ as XlsxEditOperation, aK as XlsxEditPreview, aL as XlsxEditReceipt, aM as XlsxEditRefusal, aN as XlsxEditRequest, aO as XlsxEditResult, aP as XlsxEditSource, aQ as XlsxEditStep, aR as XlsxErrorValue, aS as XlsxExportCell, aT as XlsxExportDefinedName, aU as XlsxExportDiagnostic, aV as XlsxExportDiagnosticCode, aW as XlsxExportFailure, aX as XlsxExportFailureCode, aY as XlsxExportHyperlink, aZ as XlsxExportMerge, a_ as XlsxExportObject, a$ as XlsxExportOptions, b0 as XlsxExportResult, b1 as XlsxExportScope, b2 as XlsxExportSheet, b3 as XlsxExportTable, b4 as XlsxExportValue, b5 as XlsxFindMatch, b6 as XlsxFindRequest, b7 as XlsxFindResult, b8 as XlsxFormulaResult, b9 as XlsxMarkdownContent, ba as XlsxMarkdownOptions, bb as XlsxObjectKind, bc as XlsxRangeAddress, bd as XlsxRangeRead, be as XlsxRangeTarget, bf as XlsxReadCalculation, bg as XlsxReadRequest, bh as XlsxReadResult, bi as XlsxSheetEntry, bj as XlsxSheetIdentity, bk as XlsxSheetVisibility, bl as XlsxSourcePart, bm as XlsxStructuredContent, bn as XlsxTextMatch, bo as XlsxTextSearchOptions, bp as XlsxValidationResult, bq as createWorkbookEditSession, br as exportXlsxMarkdown, bs as exportXlsxStructured, bt as getDisplayListCellLimit, bu as initWasm, bv as isPngExportAvailable, bw as isProposalsAvailable, bx as isWasmAvailable, by as openWorkbook, bz as openWorkbookSession, bA as renderXlsxMarkdown, bB as wasmVersion, bC as workbookSessionRecovery } from './editPeer-DiFeIMPk.js';
2
2
  import { D as DisplayList } from './types-DdoEoFSX.js';
3
3
  export { C as CellAddr, a as CellRange, b as ChartA11yAttrs, c as ChartRegion, d as Direction, e as DrawCmd, F as FillRectCmd, G as GeometryPathCommand, f as GridMeta, H as HyperlinkRegion, K as KeyInput, L as LineCmd, M as MoveOpts, P as PathCmd, g as PathStroke, h as PatternFillCmd, i as PatternType, R as Rect, S as Selection, j as SelectionAction, k as SelectionData, l as SelectionHidden, m as SelectionLimits, n as SelectionMerges, T as TextAlign, o as TextCmd, p as TextWrap } from './types-DdoEoFSX.js';
4
4
  export { A11yCell, A11yChart, A11yColumnHeader, A11yGrid, A11yRow, A11yStrings, CellInput, HyperlinkDestination, TrackOffsets, ViewportState, VisibleCells, VisibleRange, buildA11yGrid, cellAtPoint, cellCount, cellRect, chartRegionAtPoint, clampScroll, extendTo, fromTsv, hyperlinkAtCell, moveFocus, normalizeRange, parseHyperlinkLocation, rangeContains, rangeRect, safeExternalHyperlink, selectionAt, selectionKeyReducer, toTsv, totalExtent, trackCount, uniformOffsets, visibleCells, visibleRange } from './headless.js';
package/dist/worker.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { bC as WorkbookReplayReply, bD as WorkbookEditPeer, bE as WorkbookReplayMethod, bF as WorkbookReplayOp } from './editPeer-DN6JDr8Z.js';
2
- export { bG as CommandBasis, bH as CommandIdentity, bI as CommandStatus, J as OpenWorkbookSessionOptions, bJ as WorkbookAck, a5 as WorkbookCellGeometry, a6 as WorkbookCellInputs, bK as WorkbookCommand, bL as WorkbookCommandContext, bM as WorkbookCommandFrame, bN as WorkbookCommandFrameRequest, bO as WorkbookCommandKind, bP as WorkbookCommandPayload, bQ as WorkbookCommandSelection, bR as WorkbookCommandTicket, bS as WorkbookEchoHooks, bT as WorkbookEditConnection, bU as WorkbookEditFrame, bV as WorkbookEditPayload, a7 as WorkbookEditPeerFailedError, bW as WorkbookEditPeerOptions, a8 as WorkbookEditSession, bX as WorkbookEditState, a9 as WorkbookFrame, aa as WorkbookFrameOptions, ad as WorkbookInitialPaint, ae as WorkbookInitialPaintRequest, af as WorkbookPeerHydrationError, ag as WorkbookPngUnavailableError, ah as WorkbookRecoveryReplayError, ai as WorkbookSession, aj as WorkbookSessionEvents, ak as WorkbookSessionMethods, al as WorkbookSessionOpenOptions, am as WorkbookSessionOpenReply, an as WorkbookSessionRecovery, ao as WorkbookSessionState, bY as WorkbookSharedAck, bZ as WorkbookSharedCommand, b_ as WorkbookSharedOutcome, b$ as WorkbookSharedWireAck, ap as WorkbookSheetSummary, aq as WorkbookSheetView, c0 as WorkbookSubmitOptions, c1 as WorkbookTicketOutcome, c2 as createWorkbookEditPeer, bp as createWorkbookEditSession, c3 as hydratePeer, by as openWorkbookSession, c4 as workbookSessionInternals, bB as workbookSessionRecovery } from './editPeer-DN6JDr8Z.js';
1
+ import { bD as WorkbookReplayReply, bE as WorkbookEditPeer, bF as WorkbookReplayMethod, bG as WorkbookReplayOp } from './editPeer-DiFeIMPk.js';
2
+ export { bH as CommandBasis, bI as CommandIdentity, bJ as CommandStatus, J as OpenWorkbookSessionOptions, bK as WorkbookAck, a5 as WorkbookCellGeometry, a6 as WorkbookCellInputs, bL as WorkbookCommand, bM as WorkbookCommandContext, bN as WorkbookCommandFrame, bO as WorkbookCommandFrameRequest, bP as WorkbookCommandKind, bQ as WorkbookCommandPayload, bR as WorkbookCommandSelection, bS as WorkbookCommandTicket, bT as WorkbookEchoHooks, bU as WorkbookEditConnection, bV as WorkbookEditFrame, bW as WorkbookEditPayload, a7 as WorkbookEditPeerFailedError, bX as WorkbookEditPeerOptions, a8 as WorkbookEditSession, bY as WorkbookEditState, a9 as WorkbookFrame, aa as WorkbookFrameOptions, ad as WorkbookInitialPaint, ae as WorkbookInitialPaintRequest, af as WorkbookPeerHydrationError, ag as WorkbookPngUnavailableError, ah as WorkbookRecoveryReplayError, ai as WorkbookSession, aj as WorkbookSessionEvents, ak as WorkbookSessionMethods, al as WorkbookSessionOpenOptions, am as WorkbookSessionOpenReply, an as WorkbookSessionRecovery, ao as WorkbookSessionState, bZ as WorkbookSharedAck, b_ as WorkbookSharedCommand, b$ as WorkbookSharedOutcome, c0 as WorkbookSharedWireAck, ap as WorkbookSheetSummary, aq as WorkbookSheetView, c1 as WorkbookSubmitOptions, c2 as WorkbookTicketOutcome, c3 as createWorkbookEditPeer, bq as createWorkbookEditSession, c4 as hydratePeer, bz as openWorkbookSession, c5 as workbookSessionInternals, bC as workbookSessionRecovery } from './editPeer-DiFeIMPk.js';
3
3
  import './types-DdoEoFSX.js';
4
4
  import './asyncReplica-DuZEFXjI.js';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betteroffice/xlsx",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Excel-faithful XLSX spreadsheet editor and viewer core: full OOXML fidelity, real-time human + AI agent collaboration. Framework-free (Rust/Wasm).",
5
5
  "keywords": [
6
6
  "xlsx",