@beyondwork/xlsx-substrate-bindings 0.5.1 → 0.7.0

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/README.md CHANGED
@@ -136,6 +136,54 @@ and can rebuild the error with `deserializeXlsxWasmBridgeError`.
136
136
 
137
137
  ## Release notes
138
138
 
139
+ ### 0.7.0 (bridge `xlsx-wasm-bridge-v55`)
140
+
141
+ A MINOR release: 0.6.0 was published at bridge v53, and the bridge has moved
142
+ twice since, to v54 and then v55. A host must take the wasm and the
143
+ TypeScript from this release together. These changes landed on pe2 in #1887
144
+ and #1903:
145
+
146
+ - **Sparkline highlights** (v54, X5-U-101). Each sparkline group in the
147
+ sheet-window readback now carries the x14 highlight flags (markers, first,
148
+ last, high, low, negative, axis) and their colours. A loss takes the
149
+ negative colour only when the negative flag is set, high and low mark every
150
+ tied extreme, and the axis is drawn only when zero lies inside the scale.
151
+ The React package paints them.
152
+ - **Selection-set structure, visibility and merge** (v55, X5-U-043). A
153
+ Ctrl+click set of whole rows or whole columns inserts, deletes, hides and
154
+ unhides at every area, and Merge merges or unmerges each area separately, as
155
+ one command with one audit envelope, one undo boundary and one invalidation
156
+ receipt. New bridge methods: `commitSelectionSetSheetStructure`,
157
+ `commitSelectionSetVisibility` and `commitSelectionSetMergeCells`, each with
158
+ an `InSession` port. A set row hide follows the SUBTOTAL rule, as
159
+ `setRowHidden` does. Insert or delete of cells with shift on a set is still
160
+ refused, typed, with `multi-area-selection`.
161
+ - **Formulas beside x14 lists** (X5-U-097, X5-U-102, X5-U-103; no bridge
162
+ change). An insert or delete of cells with shift, a Move, or a row or column
163
+ op on another sheet now rewrites a formula on a sheet whose x14 list holds
164
+ rules or a sparkline group, and the sparkline data ranges follow the moved
165
+ cells. A cell shift moves the shifted sheet's own conditional formats,
166
+ validations and text links with the band.
167
+
168
+ ### 0.6.0 (bridge `xlsx-wasm-bridge-v53`)
169
+
170
+ A MINOR release: the bridge moved from v52 to v53, so a host must take the
171
+ wasm and the TypeScript from this release together. These changes landed on
172
+ pe2 in #1865 and #1872:
173
+
174
+ - **Sparkline display options** (v53, X5-U-017). Each sparkline group in the
175
+ sheet-window readback now carries its display options in the JSON rest
176
+ half: the series and negative colours (rgb or a theme colour resolved at
177
+ import), the manual axis minimum and maximum (only on a custom axis),
178
+ right-to-left order, and the empty-cell mode (gap, zero or span). The
179
+ binary window records are unchanged. A host that paints sparklines can
180
+ honour them; the React package does. The highlight flags (negative,
181
+ markers, high, low, first, last) and their colours are not carried yet
182
+ (X5-U-101).
183
+ - **LET with Unicode names** (X5-C-091). A name with non-ASCII characters is
184
+ one token for the LET display strip and the `_xlfn.` storage and display
185
+ rewrites, so a defined name containing `_xlpm.` is no longer rewritten.
186
+
139
187
  ### 0.5.1 (bridge `xlsx-wasm-bridge-v52`)
140
188
 
141
189
  A PATCH release: the bridge stays v52, so a host on 0.5.0 can take 0.5.1
@@ -1,2 +1,2 @@
1
- export type { XlsxFormulaCommitRequest, XlsxFormulaCommitResult, XlsxFormulaRecalculateRequest, XlsxFormulaRecalculateResult, XlsxRangeFillCommitRequest, XlsxRangeFillCommitResult, XlsxRangeClearCommitRequest, XlsxRangeClearCommitResult, XlsxRangeFormatCommitRequest, XlsxRangeFormatCommitResult, XlsxDataValidationEntryMode, XlsxDataValidationErrorStyle, XlsxDataValidationOperator, XlsxDataValidationRuleType, XlsxRangeDataValidationCommitRequest, XlsxRangeDataValidationCommitResult, XlsxRangeDataValidationTargetRange, XlsxFindLookIn, XlsxFindMatch, XlsxFindMatchKind, XlsxFindQueryEcho, XlsxFindRequest, XlsxFindResult, XlsxFindScope, XlsxGoToDefinedName, XlsxGoToRequest, XlsxGoToResult, XlsxGoToArea, XlsxGoToTarget, XlsxGoToTargetKind, XlsxDataRegionDirection, XlsxDataRegionRequest, XlsxDataRegionResult, XlsxDataRegionTarget, XlsxDataRegionTargetKind, XlsxReviewCommentCommitRequest, XlsxReviewCommentCommitResult, XlsxReviewCommentVerb, XlsxRangeHyperlinkCommitRequest, XlsxRangeHyperlinkCommitResult, XlsxRangeHyperlinkKind, XlsxRangeAppearanceEdit, XlsxBorderStyle, XlsxRangeBorderEdit, XlsxRangeHorizontalAlignmentEdit, XlsxRangeNumberFormatPreset, XlsxRangePasteCommitRequest, XlsxRangePasteCommitResult, XlsxPasteSpecialKind, XlsxRangePasteSpecialCommitRequest, XlsxRangeTransferCommitRequest, XlsxRangeTransferCommitResult, XlsxRangeTransferMode, XlsxSelectionSetClearCommitRequest, XlsxSelectionSetFormatCommitRequest, XlsxSelectionSetPasteCommitRequest, XlsxLayoutMetricAxis, XlsxLayoutMetricResizeRequest, XlsxLayoutMetricResizeResult, XlsxLayoutMetricVisibilityRequest, XlsxLayoutMetricVisibilityResult, XlsxFrozenPaneRequest, XlsxFrozenPaneResult, XlsxMergeCellsRequest, XlsxMergeCellsResult, XlsxOutlineGroupVisibilityResult, XlsxOutlineLevelOperation, XlsxOutlineLevelRequest, XlsxOutlineLevelResult, XlsxSheetStructureAxis, XlsxSheetStructureMutationRequest, XlsxSheetStructureMutationResult, XlsxSheetStructureOperation, XlsxShiftCellsCommitRequest, XlsxShiftCellsCommitResult, XlsxShiftCellsDirection, XlsxShiftCellsOperation, XlsxFilterCriterionKind, XlsxFilterCondition, XlsxFilterCriterion, XlsxFilterColumn, XlsxRangeFilterApplyRequest, XlsxRangeFilterClearRequest, XlsxRangeFilterResult, XlsxSortColumn, XlsxRangeSortRequest, XlsxRangeSortResult, XlsxTableAppendCellValue, XlsxTableAppendRowRequest, XlsxTableAppendRowResult, XlsxSheetTabMutationOperation, XlsxSheetTabMutationRequest, XlsxSheetTabMutationResult, XlsxDefinedNameMutationOperation, XlsxDefinedNameMutationRequest, XlsxDefinedNameMutationResult, XlsxDefinedNameReadback, XlsxKernelActionKind, XlsxKernelActionRequest, XlsxKernelActionValidation, XlsxKernelAnchor, XlsxKernelBindingState, XlsxKernelCachePosture, XlsxKernelCellValue, XlsxKernelCreateRequest, XlsxKernelDeclaredInput, XlsxKernelLanguage, XlsxKernelMutationReadback, XlsxKernelMutationResult, XlsxKernelPanelActions, XlsxKernelPanelBinding, XlsxKernelPanelReadback, XlsxKernelRunDiagnostics, XlsxKernelRunOutput, XlsxKernelRunResult, XlsxOperationPatternHint, XlsxOperationPatternValueKindCounts, XlsxRuntimeAuditDeltaSummary, XlsxRuntimeAuditEnvelope, XlsxRuntimeCellReadback, XlsxRuntimeCommandVerdict, XlsxRuntimeInvalidationBucket, XlsxRuntimeInvalidationClass, XlsxRuntimeInvalidationReceipt, XlsxDelimitedExportRefusal, XlsxRuntimeSessionDelimitedExportRequest, XlsxRuntimeSessionDelimitedExportResult, XlsxRuntimeSessionExportRequest, XlsxRuntimeSessionExportResult, XlsxRuntimeSessionMutationReceipt, XlsxSessionRecalculateRequest, XlsxSessionVolatileInputs, XlsxStatelessCommitRecalcInputs, XlsxRuntimeUndoBoundary, XlsxRuntimeWarning, XlsxWorkflowContextInput, XlsxWorkflowLaneEntryInput, XlsxWorkflowLaneEntryStatusInput, XlsxWorkflowLaneSnapshotInput, XlsxWorkflowOverlayLaneKindInput, XlsxWorkflowPostureFactInput, XlsxWorkflowPostureKindInput, XlsxWorkflowSeverityInput, XlsxWorkflowTargetInput } from "./types.ts";
1
+ export type { XlsxFormulaCommitRequest, XlsxFormulaCommitResult, XlsxFormulaRecalculateRequest, XlsxFormulaRecalculateResult, XlsxRangeFillCommitRequest, XlsxRangeFillCommitResult, XlsxRangeClearCommitRequest, XlsxRangeClearCommitResult, XlsxRangeFormatCommitRequest, XlsxRangeFormatCommitResult, XlsxDataValidationEntryMode, XlsxDataValidationErrorStyle, XlsxDataValidationOperator, XlsxDataValidationRuleType, XlsxRangeDataValidationCommitRequest, XlsxRangeDataValidationCommitResult, XlsxRangeDataValidationTargetRange, XlsxFindLookIn, XlsxFindMatch, XlsxFindMatchKind, XlsxFindQueryEcho, XlsxFindRequest, XlsxFindResult, XlsxFindScope, XlsxGoToDefinedName, XlsxGoToRequest, XlsxGoToResult, XlsxGoToArea, XlsxGoToTarget, XlsxGoToTargetKind, XlsxDataRegionDirection, XlsxDataRegionRequest, XlsxDataRegionResult, XlsxDataRegionTarget, XlsxDataRegionTargetKind, XlsxReviewCommentCommitRequest, XlsxReviewCommentCommitResult, XlsxReviewCommentVerb, XlsxRangeHyperlinkCommitRequest, XlsxRangeHyperlinkCommitResult, XlsxRangeHyperlinkKind, XlsxRangeAppearanceEdit, XlsxBorderStyle, XlsxRangeBorderEdit, XlsxRangeHorizontalAlignmentEdit, XlsxRangeNumberFormatPreset, XlsxRangePasteCommitRequest, XlsxRangePasteCommitResult, XlsxPasteSpecialKind, XlsxRangePasteSpecialCommitRequest, XlsxRangeTransferCommitRequest, XlsxRangeTransferCommitResult, XlsxRangeTransferMode, XlsxSelectionSetClearCommitRequest, XlsxSelectionSetFormatCommitRequest, XlsxSelectionSetPasteCommitRequest, XlsxSelectionSetSheetStructureRequest, XlsxSelectionSetVisibilityRequest, XlsxSelectionSetMergeCellsRequest, XlsxSelectionSetMutationResult, XlsxLayoutMetricAxis, XlsxLayoutMetricResizeRequest, XlsxLayoutMetricResizeResult, XlsxLayoutMetricVisibilityRequest, XlsxLayoutMetricVisibilityResult, XlsxFrozenPaneRequest, XlsxFrozenPaneResult, XlsxMergeCellsRequest, XlsxMergeCellsResult, XlsxOutlineGroupVisibilityResult, XlsxOutlineLevelOperation, XlsxOutlineLevelRequest, XlsxOutlineLevelResult, XlsxSheetStructureAxis, XlsxSheetStructureMutationRequest, XlsxSheetStructureMutationResult, XlsxSheetStructureOperation, XlsxShiftCellsCommitRequest, XlsxShiftCellsCommitResult, XlsxShiftCellsDirection, XlsxShiftCellsOperation, XlsxFilterCriterionKind, XlsxFilterCondition, XlsxFilterCriterion, XlsxFilterColumn, XlsxRangeFilterApplyRequest, XlsxRangeFilterClearRequest, XlsxRangeFilterResult, XlsxSortColumn, XlsxRangeSortRequest, XlsxRangeSortResult, XlsxTableAppendCellValue, XlsxTableAppendRowRequest, XlsxTableAppendRowResult, XlsxSheetTabMutationOperation, XlsxSheetTabMutationRequest, XlsxSheetTabMutationResult, XlsxDefinedNameMutationOperation, XlsxDefinedNameMutationRequest, XlsxDefinedNameMutationResult, XlsxDefinedNameReadback, XlsxKernelActionKind, XlsxKernelActionRequest, XlsxKernelActionValidation, XlsxKernelAnchor, XlsxKernelBindingState, XlsxKernelCachePosture, XlsxKernelCellValue, XlsxKernelCreateRequest, XlsxKernelDeclaredInput, XlsxKernelLanguage, XlsxKernelMutationReadback, XlsxKernelMutationResult, XlsxKernelPanelActions, XlsxKernelPanelBinding, XlsxKernelPanelReadback, XlsxKernelRunDiagnostics, XlsxKernelRunOutput, XlsxKernelRunResult, XlsxOperationPatternHint, XlsxOperationPatternValueKindCounts, XlsxRuntimeAuditDeltaSummary, XlsxRuntimeAuditEnvelope, XlsxRuntimeCellReadback, XlsxRuntimeCommandVerdict, XlsxRuntimeInvalidationBucket, XlsxRuntimeInvalidationClass, XlsxRuntimeInvalidationReceipt, XlsxDelimitedExportRefusal, XlsxRuntimeSessionDelimitedExportRequest, XlsxRuntimeSessionDelimitedExportResult, XlsxRuntimeSessionExportRequest, XlsxRuntimeSessionExportResult, XlsxRuntimeSessionMutationReceipt, XlsxSessionRecalculateRequest, XlsxSessionVolatileInputs, XlsxStatelessCommitRecalcInputs, XlsxRuntimeUndoBoundary, XlsxRuntimeWarning, XlsxWorkflowContextInput, XlsxWorkflowLaneEntryInput, XlsxWorkflowLaneEntryStatusInput, XlsxWorkflowLaneSnapshotInput, XlsxWorkflowOverlayLaneKindInput, XlsxWorkflowPostureFactInput, XlsxWorkflowPostureKindInput, XlsxWorkflowSeverityInput, XlsxWorkflowTargetInput } from "./types.ts";
2
2
  export { XLSX_BORDER_STYLES } from "./types.ts";
@@ -442,6 +442,57 @@ export interface XlsxSelectionSetFormatCommitRequest extends XlsxRangeAppearance
442
442
  readonly actor?: XlsxRuntimeActor;
443
443
  readonly workflowContext?: XlsxWorkflowContextInput;
444
444
  }
445
+ /** X5-U-043: one structure operation over every whole-row/column set area. */
446
+ export interface XlsxSelectionSetSheetStructureRequest extends XlsxStatelessCommitRecalcInputs {
447
+ readonly selectionSetHandles: readonly XlsxScopeHandle[];
448
+ readonly sheetId?: string;
449
+ readonly axis: "row" | "column";
450
+ readonly operation: "insert-before" | "insert-after" | "delete";
451
+ readonly actor?: XlsxRuntimeActor;
452
+ readonly workflowContext?: XlsxWorkflowContextInput;
453
+ }
454
+ /** X5-U-043: hide or unhide every selected row/column area. */
455
+ export interface XlsxSelectionSetVisibilityRequest extends XlsxStatelessCommitRecalcInputs {
456
+ readonly selectionSetHandles: readonly XlsxScopeHandle[];
457
+ readonly sheetId?: string;
458
+ readonly axis: "row" | "column";
459
+ readonly hidden: boolean;
460
+ readonly actor?: XlsxRuntimeActor;
461
+ readonly workflowContext?: XlsxWorkflowContextInput;
462
+ }
463
+ /** X5-U-043: merge or unmerge each contiguous selection area. */
464
+ export interface XlsxSelectionSetMergeCellsRequest extends XlsxStatelessCommitRecalcInputs {
465
+ readonly selectionSetHandles: readonly XlsxScopeHandle[];
466
+ readonly sheetId?: string;
467
+ readonly unmerge?: boolean;
468
+ readonly discardCoveredContent?: boolean;
469
+ readonly actor?: XlsxRuntimeActor;
470
+ readonly workflowContext?: XlsxWorkflowContextInput;
471
+ }
472
+ export interface XlsxSelectionSetMutationResult {
473
+ readonly verdict: XlsxRuntimeCommandVerdict;
474
+ readonly exportedBytes?: Uint8Array;
475
+ readonly sheetId?: string;
476
+ readonly axis?: "row" | "column";
477
+ readonly operation?: "insert-before" | "insert-after" | "delete";
478
+ readonly hidden?: boolean;
479
+ readonly merged?: boolean;
480
+ readonly areas: readonly {
481
+ readonly startIndex: number;
482
+ readonly endIndex: number;
483
+ }[];
484
+ readonly indices: readonly number[];
485
+ readonly mergedRanges: readonly XlsxCellRange[];
486
+ readonly keptCells: readonly XlsxCellAddress[];
487
+ readonly discardedCells: readonly XlsxCellAddress[];
488
+ readonly discardedCellCount?: number;
489
+ readonly audit?: XlsxRuntimeAuditEnvelope;
490
+ readonly invalidation: XlsxRuntimeInvalidationReceipt;
491
+ readonly undoBoundary?: XlsxRuntimeUndoBoundary;
492
+ readonly blockers: readonly XlsxBlocker[];
493
+ readonly warnings: readonly XlsxRuntimeWarning[];
494
+ readonly session?: XlsxRuntimeSessionMutationReceipt;
495
+ }
445
496
  export interface XlsxRangeFormatCommitResult {
446
497
  readonly verdict: XlsxRuntimeCommandVerdict;
447
498
  readonly exportedBytes?: Uint8Array;
@@ -553,6 +553,30 @@ export interface XlsxUiPaintSparklineGeometry {
553
553
  readonly series: readonly (number | null)[];
554
554
  readonly truncated: boolean;
555
555
  readonly precision: XlsxUiPaintGeometryPrecision;
556
+ /** X5-U-017: `<x14:sparklineGroup displayEmptyCellsAs>`. */
557
+ readonly emptyCells?: "gap" | "zero" | "span";
558
+ /** X5-U-017: group point order is painted from right to left. */
559
+ readonly rightToLeft?: boolean;
560
+ /** X5-U-017: manual axis bounds from `manualMin` / `manualMax`. */
561
+ readonly manualMin?: number;
562
+ readonly manualMax?: number;
563
+ /** X5-U-017: resolved group colors, when the source carried them. */
564
+ readonly seriesColor?: string;
565
+ readonly negativeColor?: string;
566
+ /** X5-U-101: highlight flags and their resolved group colours. */
567
+ readonly markersColor?: string;
568
+ readonly firstColor?: string;
569
+ readonly lastColor?: string;
570
+ readonly highColor?: string;
571
+ readonly lowColor?: string;
572
+ readonly axisColor?: string;
573
+ readonly showMarkers?: boolean;
574
+ readonly showFirst?: boolean;
575
+ readonly showLast?: boolean;
576
+ readonly showHigh?: boolean;
577
+ readonly showLow?: boolean;
578
+ readonly showNegative?: boolean;
579
+ readonly displayAxis?: boolean;
556
580
  }
557
581
  export interface XlsxUiPaintObjectGeometry {
558
582
  readonly sourcePart: string;
@@ -1,6 +1,6 @@
1
1
  import { type RawXlsxAiSessionModule, type XlsxAiSessionBridgeMethods } from "./ai-session-bridge.ts";
2
2
  import type { XlsxAiCompressedContextRequest, XlsxAiCompressedContextResult, XlsxAiCompressedDrilldownRequest, XlsxAiCompressedDrilldownResult, XlsxAiFormulaExplanationResult, XlsxAiReferenceQuery, XlsxAiReferenceResolution, XlsxAiScopeListRequest, XlsxAiScopeListResult, XlsxAiWorkbookInspection } from "../ai/index.ts";
3
- import type { XlsxFormulaCommitRequest, XlsxFormulaCommitResult, XlsxFormulaRecalculateRequest, XlsxFormulaRecalculateResult, XlsxLayoutMetricResizeRequest, XlsxLayoutMetricResizeResult, XlsxLayoutMetricVisibilityRequest, XlsxLayoutMetricVisibilityResult, XlsxFrozenPaneRequest, XlsxFrozenPaneResult, XlsxMergeCellsRequest, XlsxMergeCellsResult, XlsxOutlineGroupVisibilityResult, XlsxOutlineLevelRequest, XlsxOutlineLevelResult, XlsxSheetStructureMutationRequest, XlsxSheetStructureMutationResult, XlsxSheetTabMutationRequest, XlsxSheetTabMutationResult, XlsxDefinedNameMutationRequest, XlsxDefinedNameMutationResult, XlsxShiftCellsCommitRequest, XlsxShiftCellsCommitResult, XlsxRangeFilterApplyRequest, XlsxRangeFilterClearRequest, XlsxRangeFilterResult, XlsxRangeSortRequest, XlsxRangeSortResult, XlsxTableAppendRowRequest, XlsxTableAppendRowResult, XlsxKernelActionRequest, XlsxKernelActionValidation, XlsxKernelCreateRequest, XlsxKernelMutationResult, XlsxKernelPanelReadback, XlsxRangeClearCommitRequest, XlsxRangeClearCommitResult, XlsxRangeFormatCommitRequest, XlsxRangeDataValidationCommitRequest, XlsxRangeDataValidationCommitResult, XlsxReviewCommentCommitRequest, XlsxReviewCommentCommitResult, XlsxFindRequest, XlsxFindResult, XlsxGoToRequest, XlsxGoToResult, XlsxDataRegionRequest, XlsxDataRegionResult, XlsxRangeHyperlinkCommitRequest, XlsxRangeHyperlinkCommitResult, XlsxRangeFormatCommitResult, XlsxRangeFillCommitRequest, XlsxRangeFillCommitResult, XlsxRangePasteCommitRequest, XlsxRangePasteCommitResult, XlsxRangePasteSpecialCommitRequest, XlsxRangeTransferCommitRequest, XlsxRangeTransferCommitResult, XlsxRuntimeSessionDelimitedExportRequest, XlsxRuntimeSessionDelimitedExportResult, XlsxRuntimeSessionExportRequest, XlsxRuntimeSessionExportResult, XlsxSelectionSetClearCommitRequest, XlsxSelectionSetFormatCommitRequest, XlsxSelectionSetPasteCommitRequest, XlsxSessionRecalculateRequest, XlsxWorkflowContextInput } from "../runtime/index.ts";
3
+ import type { XlsxFormulaCommitRequest, XlsxFormulaCommitResult, XlsxFormulaRecalculateRequest, XlsxFormulaRecalculateResult, XlsxLayoutMetricResizeRequest, XlsxLayoutMetricResizeResult, XlsxLayoutMetricVisibilityRequest, XlsxLayoutMetricVisibilityResult, XlsxFrozenPaneRequest, XlsxFrozenPaneResult, XlsxMergeCellsRequest, XlsxMergeCellsResult, XlsxOutlineGroupVisibilityResult, XlsxOutlineLevelRequest, XlsxOutlineLevelResult, XlsxSheetStructureMutationRequest, XlsxSheetStructureMutationResult, XlsxSheetTabMutationRequest, XlsxSheetTabMutationResult, XlsxDefinedNameMutationRequest, XlsxDefinedNameMutationResult, XlsxShiftCellsCommitRequest, XlsxShiftCellsCommitResult, XlsxRangeFilterApplyRequest, XlsxRangeFilterClearRequest, XlsxRangeFilterResult, XlsxRangeSortRequest, XlsxRangeSortResult, XlsxTableAppendRowRequest, XlsxTableAppendRowResult, XlsxKernelActionRequest, XlsxKernelActionValidation, XlsxKernelCreateRequest, XlsxKernelMutationResult, XlsxKernelPanelReadback, XlsxRangeClearCommitRequest, XlsxRangeClearCommitResult, XlsxRangeFormatCommitRequest, XlsxRangeDataValidationCommitRequest, XlsxRangeDataValidationCommitResult, XlsxReviewCommentCommitRequest, XlsxReviewCommentCommitResult, XlsxFindRequest, XlsxFindResult, XlsxGoToRequest, XlsxGoToResult, XlsxDataRegionRequest, XlsxDataRegionResult, XlsxRangeHyperlinkCommitRequest, XlsxRangeHyperlinkCommitResult, XlsxRangeFormatCommitResult, XlsxRangeFillCommitRequest, XlsxRangeFillCommitResult, XlsxRangePasteCommitRequest, XlsxRangePasteCommitResult, XlsxRangePasteSpecialCommitRequest, XlsxRangeTransferCommitRequest, XlsxRangeTransferCommitResult, XlsxRuntimeSessionDelimitedExportRequest, XlsxRuntimeSessionDelimitedExportResult, XlsxRuntimeSessionExportRequest, XlsxRuntimeSessionExportResult, XlsxSelectionSetClearCommitRequest, XlsxSelectionSetFormatCommitRequest, XlsxSelectionSetPasteCommitRequest, XlsxSelectionSetSheetStructureRequest, XlsxSelectionSetVisibilityRequest, XlsxSelectionSetMergeCellsRequest, XlsxSelectionSetMutationResult, XlsxSessionRecalculateRequest, XlsxWorkflowContextInput } from "../runtime/index.ts";
4
4
  import type { XlsxScopeHandle } from "../shared.ts";
5
5
  import { type XlsxWasmMemoryReadback, type XlsxWasmRuntime } from "./runtime-guard.ts";
6
6
  import { type XlsxSheetWindowBinaryEnvelope } from "./sheet-window-binary.ts";
@@ -10,7 +10,7 @@ export { estimateXlsxPackageMemory, readWasmMemoryLimits, XLSX_WASM_LINEAR_MEMOR
10
10
  export interface XlsxWasmBridgeStatus {
11
11
  readonly packageName: "@beyondwork/xlsx-substrate-bindings";
12
12
  readonly role: "wasm-ai-ui-runtime-binding";
13
- readonly bridgeVersion: "xlsx-wasm-bridge-v52";
13
+ readonly bridgeVersion: "xlsx-wasm-bridge-v55";
14
14
  readonly capabilities: readonly ("workflow-context-v1" | "workflow-context-v2" | "workflow-overlay-lanes-v1" | "sheet-window-paint-geometry-v1" | "sheet-window-coordinate-posture-v1" | "formula-diagnostics-v2" | "formula-address-commit-v1" | "formula-recalculate-commit-v1" | "formula-recalculate-volatile-inputs-v1" | "formula-translation-interaction-v1" | "kernel-ui-v1" | "runtime-session-handles-v1" | "runtime-session-mutations-v1" | "staged-open-v1" | "sheet-window-cache-v1" | "readback-envelope-v1" | "preserve-only-entities-v1" | "selection-set-v1" | "multi-area-mutation-v1" | "range-fill-commit-v1" | "range-paste-commit-v1" | "range-clear-commit-v1" | "range-format-commit-v1" | "range-transfer-v1" | "range-paste-special-v1" | "layout-metric-resize-v1" | "layout-metric-visibility-v1" | "outline-group-visibility-v1" | "sheet-structure-v1" | "sheet-tabs-v1" | "table-mutation-v1" | "filter-sort-v1" | "sort-commit-v1" | "operation-pattern-hints-v1" | "ai-compressed-bundles-v1" | "ui-capability-records-v1" | "drawing-media-v1" | "drawing-chart-v1" | "sheet-window-binary-v1" | "frozen-pane-v1" | "sheet-window-extent-v1" | "selection-cursor-v1" | "merge-cells-v1" | "shift-cells-v1" | "selection-set-capabilities-v1" | "find-v1" | "go-to-v1" | "data-region-v1" | "ai-session-agent-v1" | "defined-names-v1")[];
15
15
  readonly wasmBinding: "mounted";
16
16
  readonly nativeBinding: "not-mounted";
@@ -218,6 +218,9 @@ export interface XlsxWasmBridge extends XlsxAiSessionBridgeMethods {
218
218
  commitSelectionSetPasteInSession?(handleId: string, request: XlsxSelectionSetPasteCommitRequest): XlsxRangePasteCommitResult;
219
219
  commitSelectionSetClearInSession?(handleId: string, request: XlsxSelectionSetClearCommitRequest): XlsxRangeClearCommitResult;
220
220
  commitSelectionSetFormatInSession?(handleId: string, request: XlsxSelectionSetFormatCommitRequest): XlsxRangeFormatCommitResult;
221
+ commitSelectionSetSheetStructureInSession?(handleId: string, request: XlsxSelectionSetSheetStructureRequest): XlsxSelectionSetMutationResult;
222
+ commitSelectionSetVisibilityInSession?(handleId: string, request: XlsxSelectionSetVisibilityRequest): XlsxSelectionSetMutationResult;
223
+ commitSelectionSetMergeCellsInSession?(handleId: string, request: XlsxSelectionSetMergeCellsRequest): XlsxSelectionSetMutationResult;
221
224
  commitRangeHyperlinkInSession?(handleId: string, request: XlsxRangeHyperlinkCommitRequest): XlsxRangeHyperlinkCommitResult;
222
225
  commitRangeDataValidationInSession?(handleId: string, request: XlsxRangeDataValidationCommitRequest): XlsxRangeDataValidationCommitResult;
223
226
  commitReviewCommentInSession?(handleId: string, request: XlsxReviewCommentCommitRequest): XlsxReviewCommentCommitResult;
@@ -267,6 +270,9 @@ export interface XlsxWasmBridge extends XlsxAiSessionBridgeMethods {
267
270
  commitSelectionSetPaste(bytes: Uint8Array, request: XlsxSelectionSetPasteCommitRequest): XlsxRangePasteCommitResult;
268
271
  commitSelectionSetClear(bytes: Uint8Array, request: XlsxSelectionSetClearCommitRequest): XlsxRangeClearCommitResult;
269
272
  commitSelectionSetFormat(bytes: Uint8Array, request: XlsxSelectionSetFormatCommitRequest): XlsxRangeFormatCommitResult;
273
+ commitSelectionSetSheetStructure(bytes: Uint8Array, request: XlsxSelectionSetSheetStructureRequest): XlsxSelectionSetMutationResult;
274
+ commitSelectionSetVisibility(bytes: Uint8Array, request: XlsxSelectionSetVisibilityRequest): XlsxSelectionSetMutationResult;
275
+ commitSelectionSetMergeCells(bytes: Uint8Array, request: XlsxSelectionSetMergeCellsRequest): XlsxSelectionSetMutationResult;
270
276
  resizeColumnWidth(bytes: Uint8Array, request: XlsxLayoutMetricResizeRequest): XlsxLayoutMetricResizeResult;
271
277
  resizeRowHeight(bytes: Uint8Array, request: XlsxLayoutMetricResizeRequest): XlsxLayoutMetricResizeResult;
272
278
  setColumnHidden(bytes: Uint8Array, request: XlsxLayoutMetricVisibilityRequest): XlsxLayoutMetricVisibilityResult;
@@ -321,6 +327,9 @@ export interface XlsxRuntimeSessionMutationBridge extends XlsxWasmBridge {
321
327
  commitSelectionSetPasteInSession(handleId: string, request: XlsxSelectionSetPasteCommitRequest): XlsxRangePasteCommitResult;
322
328
  commitSelectionSetClearInSession(handleId: string, request: XlsxSelectionSetClearCommitRequest): XlsxRangeClearCommitResult;
323
329
  commitSelectionSetFormatInSession(handleId: string, request: XlsxSelectionSetFormatCommitRequest): XlsxRangeFormatCommitResult;
330
+ commitSelectionSetSheetStructureInSession(handleId: string, request: XlsxSelectionSetSheetStructureRequest): XlsxSelectionSetMutationResult;
331
+ commitSelectionSetVisibilityInSession(handleId: string, request: XlsxSelectionSetVisibilityRequest): XlsxSelectionSetMutationResult;
332
+ commitSelectionSetMergeCellsInSession(handleId: string, request: XlsxSelectionSetMergeCellsRequest): XlsxSelectionSetMutationResult;
324
333
  commitRangeHyperlinkInSession(handleId: string, request: XlsxRangeHyperlinkCommitRequest): XlsxRangeHyperlinkCommitResult;
325
334
  commitRangeDataValidationInSession(handleId: string, request: XlsxRangeDataValidationCommitRequest): XlsxRangeDataValidationCommitResult;
326
335
  commitReviewCommentInSession(handleId: string, request: XlsxReviewCommentCommitRequest): XlsxReviewCommentCommitResult;
@@ -442,6 +451,9 @@ export interface RawXlsxWasmModule extends RawXlsxAiSessionModule {
442
451
  commitSelectionSetPasteInSession?(handleId: string, request: XlsxSelectionSetPasteCommitRequest): RawXlsxRangePasteCommitResult;
443
452
  commitSelectionSetClearInSession?(handleId: string, request: XlsxSelectionSetClearCommitRequest): RawXlsxRangeClearCommitResult;
444
453
  commitSelectionSetFormatInSession?(handleId: string, request: XlsxSelectionSetFormatCommitRequest): RawXlsxRangeFormatCommitResult;
454
+ commitSelectionSetSheetStructureInSession?(handleId: string, request: XlsxSelectionSetSheetStructureRequest): XlsxSelectionSetMutationResult;
455
+ commitSelectionSetVisibilityInSession?(handleId: string, request: XlsxSelectionSetVisibilityRequest): XlsxSelectionSetMutationResult;
456
+ commitSelectionSetMergeCellsInSession?(handleId: string, request: XlsxSelectionSetMergeCellsRequest): XlsxSelectionSetMutationResult;
445
457
  commitRangeHyperlinkInSession?(handleId: string, request: XlsxRangeHyperlinkCommitRequest): RawXlsxRangeHyperlinkCommitResult;
446
458
  commitRangeDataValidationInSession?(handleId: string, request: XlsxRangeDataValidationCommitRequest): RawXlsxRangeDataValidationCommitResult;
447
459
  commitReviewCommentInSession?(handleId: string, request: XlsxReviewCommentCommitRequest): RawXlsxReviewCommentCommitResult;
@@ -464,6 +476,9 @@ export interface RawXlsxWasmModule extends RawXlsxAiSessionModule {
464
476
  commitSelectionSetPaste(bytes: Uint8Array, request: XlsxSelectionSetPasteCommitRequest): RawXlsxRangePasteCommitResult;
465
477
  commitSelectionSetClear(bytes: Uint8Array, request: XlsxSelectionSetClearCommitRequest): RawXlsxRangeClearCommitResult;
466
478
  commitSelectionSetFormat(bytes: Uint8Array, request: XlsxSelectionSetFormatCommitRequest): RawXlsxRangeFormatCommitResult;
479
+ commitSelectionSetSheetStructure(bytes: Uint8Array, request: XlsxSelectionSetSheetStructureRequest): RawXlsxSelectionSetMutationResult;
480
+ commitSelectionSetVisibility(bytes: Uint8Array, request: XlsxSelectionSetVisibilityRequest): RawXlsxSelectionSetMutationResult;
481
+ commitSelectionSetMergeCells(bytes: Uint8Array, request: XlsxSelectionSetMergeCellsRequest): RawXlsxSelectionSetMutationResult;
467
482
  resizeColumnWidth(bytes: Uint8Array, request: XlsxLayoutMetricResizeRequest): RawXlsxLayoutMetricResizeResult;
468
483
  resizeRowHeight(bytes: Uint8Array, request: XlsxLayoutMetricResizeRequest): RawXlsxLayoutMetricResizeResult;
469
484
  setColumnHidden(bytes: Uint8Array, request: XlsxLayoutMetricVisibilityRequest): RawXlsxLayoutMetricVisibilityResult;
@@ -530,6 +545,10 @@ type RawXlsxFrozenPaneResult = Omit<XlsxFrozenPaneResult, "exportedBytes"> & {
530
545
  type RawXlsxMergeCellsResult = Omit<XlsxMergeCellsResult, "exportedBytes"> & {
531
546
  readonly exportedBytes?: Uint8Array | readonly number[];
532
547
  };
548
+ /** X5-U-043: the raw selection-set structure/visibility/merge answer. */
549
+ type RawXlsxSelectionSetMutationResult = Omit<XlsxSelectionSetMutationResult, "exportedBytes"> & {
550
+ readonly exportedBytes?: Uint8Array | readonly number[];
551
+ };
533
552
  type RawXlsxSheetStructureMutationResult = Omit<XlsxSheetStructureMutationResult, "exportedBytes"> & {
534
553
  readonly exportedBytes?: Uint8Array | readonly number[];
535
554
  };
@@ -36,6 +36,9 @@ const RUNTIME_SESSION_MUTATION_METHODS = [
36
36
  "commitSelectionSetPasteInSession",
37
37
  "commitSelectionSetClearInSession",
38
38
  "commitSelectionSetFormatInSession",
39
+ "commitSelectionSetSheetStructureInSession",
40
+ "commitSelectionSetVisibilityInSession",
41
+ "commitSelectionSetMergeCellsInSession",
39
42
  "commitRangeHyperlinkInSession",
40
43
  "commitRangeDataValidationInSession",
41
44
  "commitReviewCommentInSession",
@@ -72,7 +75,7 @@ export function supportsRuntimeSessionMutations(bridge) {
72
75
  RUNTIME_SESSION_MUTATION_METHODS.every((method) => typeof bridge[method] === "function"));
73
76
  }
74
77
  export { createSheetWindowDecodedReader, decodeSheetWindowBinary, SHEET_WINDOW_BINARY_SCHEMA_ID } from "./sheet-window-binary.js";
75
- const requiredBridgeVersion = "xlsx-wasm-bridge-v52"; // v52: X5-U-044 (sheet-window cells carry non-thin border styles; fill, centerContinuous and vertical justify/distributed alignments; the outline border kind; v51 was X5-U-002)
78
+ const requiredBridgeVersion = "xlsx-wasm-bridge-v55"; // v55: X5-U-043 (multi-area structure, visibility and merge commits ride the selection-set methods; v54 was X5-U-101)
76
79
  const requiredCapabilities = [
77
80
  "workflow-context-v2",
78
81
  "workflow-overlay-lanes-v1",
@@ -223,6 +226,9 @@ const requiredRawMethods = [
223
226
  "commitSelectionSetPaste",
224
227
  "commitSelectionSetClear",
225
228
  "commitSelectionSetFormat",
229
+ "commitSelectionSetSheetStructure",
230
+ "commitSelectionSetVisibility",
231
+ "commitSelectionSetMergeCells",
226
232
  "resizeColumnWidth",
227
233
  "resizeRowHeight",
228
234
  "setColumnHidden",
@@ -320,6 +326,9 @@ export function createXlsxWasmBridge(source, status, runtime = createXlsxWasmRun
320
326
  const rawCommitSelectionSetPasteInSession = typeof raw.commitSelectionSetPasteInSession === "function" ? raw.commitSelectionSetPasteInSession.bind(raw) : undefined;
321
327
  const rawCommitSelectionSetClearInSession = typeof raw.commitSelectionSetClearInSession === "function" ? raw.commitSelectionSetClearInSession.bind(raw) : undefined;
322
328
  const rawCommitSelectionSetFormatInSession = typeof raw.commitSelectionSetFormatInSession === "function" ? raw.commitSelectionSetFormatInSession.bind(raw) : undefined;
329
+ const rawCommitSelectionSetSheetStructureInSession = typeof raw.commitSelectionSetSheetStructureInSession === "function" ? raw.commitSelectionSetSheetStructureInSession.bind(raw) : undefined;
330
+ const rawCommitSelectionSetVisibilityInSession = typeof raw.commitSelectionSetVisibilityInSession === "function" ? raw.commitSelectionSetVisibilityInSession.bind(raw) : undefined;
331
+ const rawCommitSelectionSetMergeCellsInSession = typeof raw.commitSelectionSetMergeCellsInSession === "function" ? raw.commitSelectionSetMergeCellsInSession.bind(raw) : undefined;
323
332
  const rawCommitRangeHyperlinkInSession = typeof raw.commitRangeHyperlinkInSession === "function" ? raw.commitRangeHyperlinkInSession.bind(raw) : undefined;
324
333
  const rawCommitRangeDataValidationInSession = typeof raw.commitRangeDataValidationInSession === "function"
325
334
  ? raw.commitRangeDataValidationInSession.bind(raw)
@@ -364,7 +373,9 @@ export function createXlsxWasmBridge(source, status, runtime = createXlsxWasmRun
364
373
  rawSetFrozenPaneInSession && rawMergeCellsInSession &&
365
374
  rawMutateSheetStructureInSession && rawMutateSheetTabsInSession && rawCommitTableAppendRowInSession &&
366
375
  rawCommitShiftCellsInSession && rawCommitSelectionSetPasteInSession && rawCommitSelectionSetClearInSession &&
367
- rawCommitSelectionSetFormatInSession && rawCommitRangeHyperlinkInSession &&
376
+ rawCommitSelectionSetFormatInSession && rawCommitSelectionSetSheetStructureInSession &&
377
+ rawCommitSelectionSetVisibilityInSession && rawCommitSelectionSetMergeCellsInSession &&
378
+ rawCommitRangeHyperlinkInSession &&
368
379
  rawCommitRangeDataValidationInSession && rawCommitReviewCommentInSession && rawCommitApplyFilterInSession &&
369
380
  rawCommitClearFilterInSession && rawCommitApplySortInSession && rawSetRowOutlineGroupHiddenInSession &&
370
381
  rawSetColumnOutlineGroupHiddenInSession && rawSetSheetOutlineLevelInSession && rawDefineNameInSession &&
@@ -436,6 +447,15 @@ export function createXlsxWasmBridge(source, status, runtime = createXlsxWasmRun
436
447
  commitSelectionSetFormatInSession(handleId, request) {
437
448
  return normalizeRangeFormatCommitResult(rawCommitSelectionSetFormatInSession(handleId, request));
438
449
  },
450
+ commitSelectionSetSheetStructureInSession(handleId, request) {
451
+ return rawCommitSelectionSetSheetStructureInSession(handleId, request);
452
+ },
453
+ commitSelectionSetVisibilityInSession(handleId, request) {
454
+ return rawCommitSelectionSetVisibilityInSession(handleId, request);
455
+ },
456
+ commitSelectionSetMergeCellsInSession(handleId, request) {
457
+ return rawCommitSelectionSetMergeCellsInSession(handleId, request);
458
+ },
439
459
  commitRangeHyperlinkInSession(handleId, request) {
440
460
  return normalizeRangeHyperlinkCommitResult(rawCommitRangeHyperlinkInSession(handleId, request));
441
461
  },
@@ -676,6 +696,15 @@ export function createXlsxWasmBridge(source, status, runtime = createXlsxWasmRun
676
696
  commitSelectionSetFormat(bytes, request) {
677
697
  return normalizeRangeFormatCommitResult(raw.commitSelectionSetFormat(bytes, request));
678
698
  },
699
+ commitSelectionSetSheetStructure(bytes, request) {
700
+ return normalizeSelectionSetMutationResult(raw.commitSelectionSetSheetStructure(bytes, request));
701
+ },
702
+ commitSelectionSetVisibility(bytes, request) {
703
+ return normalizeSelectionSetMutationResult(raw.commitSelectionSetVisibility(bytes, request));
704
+ },
705
+ commitSelectionSetMergeCells(bytes, request) {
706
+ return normalizeSelectionSetMutationResult(raw.commitSelectionSetMergeCells(bytes, request));
707
+ },
679
708
  resizeColumnWidth(bytes, request) {
680
709
  return normalizeLayoutMetricResizeResult(raw.resizeColumnWidth(bytes, request));
681
710
  },
@@ -916,6 +945,17 @@ function normalizeOutlineLevelResult(result) {
916
945
  exportedBytes
917
946
  };
918
947
  }
948
+ function normalizeSelectionSetMutationResult(result) {
949
+ const exportedBytes = result.exportedBytes
950
+ ? result.exportedBytes instanceof Uint8Array
951
+ ? result.exportedBytes
952
+ : Uint8Array.from(result.exportedBytes)
953
+ : undefined;
954
+ return {
955
+ ...result,
956
+ exportedBytes
957
+ };
958
+ }
919
959
  function normalizeSheetStructureMutationResult(result) {
920
960
  const exportedBytes = result.exportedBytes
921
961
  ? result.exportedBytes instanceof Uint8Array
@@ -1,3 +1,3 @@
1
1
  // Written by scripts/prepare-package.mjs at pack time: the SHA-256 of
2
2
  // generated/wasm-web/xlsx_substrate_wasm_bg.wasm in this package.
3
- export const XLSX_WASM_WEB_SHA256 = "41bd51d9720013feb70cd851cae99ab48b445b90df945439d20ac88194c363b4";
3
+ export const XLSX_WASM_WEB_SHA256 = "8c3d0541e2d3f19fba93913d8723110e8bf4ff1bea3d5f9875b5bf8e7714660a";
@@ -101,10 +101,31 @@ export function commitSelectionSetFormat(bytes: Uint8Array, request: any): any;
101
101
 
102
102
  export function commitSelectionSetFormatInSession(handle_id: string, request: any): any;
103
103
 
104
+ /**
105
+ * X5-U-043: merge or unmerge each contiguous selection-set area.
106
+ */
107
+ export function commitSelectionSetMergeCells(bytes: Uint8Array, request: any): any;
108
+
109
+ export function commitSelectionSetMergeCellsInSession(handle_id: string, request: any): any;
110
+
104
111
  export function commitSelectionSetPaste(bytes: Uint8Array, request: any): any;
105
112
 
106
113
  export function commitSelectionSetPasteInSession(handle_id: string, request: any): any;
107
114
 
115
+ /**
116
+ * X5-U-043: commit row/column structure over every area in a selection set.
117
+ */
118
+ export function commitSelectionSetSheetStructure(bytes: Uint8Array, request: any): any;
119
+
120
+ export function commitSelectionSetSheetStructureInSession(handle_id: string, request: any): any;
121
+
122
+ /**
123
+ * X5-U-043: commit visibility over every row/column in a selection set.
124
+ */
125
+ export function commitSelectionSetVisibility(bytes: Uint8Array, request: any): any;
126
+
127
+ export function commitSelectionSetVisibilityInSession(handle_id: string, request: any): any;
128
+
108
129
  /**
109
130
  * X5-U-006 insert/delete cells with shift (byte path). Applies
110
131
  * `runtime_sheet_shift_cells` over one rectangle and a shift direction, then
@@ -435,8 +456,14 @@ export interface InitOutput {
435
456
  readonly commitSelectionSetClearInSession: (a: number, b: number, c: any) => [number, number, number];
436
457
  readonly commitSelectionSetFormat: (a: number, b: number, c: any) => [number, number, number];
437
458
  readonly commitSelectionSetFormatInSession: (a: number, b: number, c: any) => [number, number, number];
459
+ readonly commitSelectionSetMergeCells: (a: number, b: number, c: any) => [number, number, number];
460
+ readonly commitSelectionSetMergeCellsInSession: (a: number, b: number, c: any) => [number, number, number];
438
461
  readonly commitSelectionSetPaste: (a: number, b: number, c: any) => [number, number, number];
439
462
  readonly commitSelectionSetPasteInSession: (a: number, b: number, c: any) => [number, number, number];
463
+ readonly commitSelectionSetSheetStructure: (a: number, b: number, c: any) => [number, number, number];
464
+ readonly commitSelectionSetSheetStructureInSession: (a: number, b: number, c: any) => [number, number, number];
465
+ readonly commitSelectionSetVisibility: (a: number, b: number, c: any) => [number, number, number];
466
+ readonly commitSelectionSetVisibilityInSession: (a: number, b: number, c: any) => [number, number, number];
440
467
  readonly commitShiftCells: (a: number, b: number, c: any) => [number, number, number];
441
468
  readonly commitShiftCellsInSession: (a: number, b: number, c: any) => [number, number, number];
442
469
  readonly commitTableAppendRow: (a: number, b: number, c: any) => [number, number, number];
@@ -556,6 +556,37 @@ export function createXlsxSubstrateGlue() {
556
556
  return takeFromExternrefTable0(ret[0]);
557
557
  }
558
558
 
559
+ /**
560
+ * X5-U-043: merge or unmerge each contiguous selection-set area.
561
+ * @param {Uint8Array} bytes
562
+ * @param {any} request
563
+ * @returns {any}
564
+ */
565
+ function commitSelectionSetMergeCells(bytes, request) {
566
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
567
+ const len0 = WASM_VECTOR_LEN;
568
+ const ret = wasm.commitSelectionSetMergeCells(ptr0, len0, request);
569
+ if (ret[2]) {
570
+ throw takeFromExternrefTable0(ret[1]);
571
+ }
572
+ return takeFromExternrefTable0(ret[0]);
573
+ }
574
+
575
+ /**
576
+ * @param {string} handle_id
577
+ * @param {any} request
578
+ * @returns {any}
579
+ */
580
+ function commitSelectionSetMergeCellsInSession(handle_id, request) {
581
+ const ptr0 = passStringToWasm0(handle_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
582
+ const len0 = WASM_VECTOR_LEN;
583
+ const ret = wasm.commitSelectionSetMergeCellsInSession(ptr0, len0, request);
584
+ if (ret[2]) {
585
+ throw takeFromExternrefTable0(ret[1]);
586
+ }
587
+ return takeFromExternrefTable0(ret[0]);
588
+ }
589
+
559
590
  /**
560
591
  * @param {Uint8Array} bytes
561
592
  * @param {any} request
@@ -586,6 +617,68 @@ export function createXlsxSubstrateGlue() {
586
617
  return takeFromExternrefTable0(ret[0]);
587
618
  }
588
619
 
620
+ /**
621
+ * X5-U-043: commit row/column structure over every area in a selection set.
622
+ * @param {Uint8Array} bytes
623
+ * @param {any} request
624
+ * @returns {any}
625
+ */
626
+ function commitSelectionSetSheetStructure(bytes, request) {
627
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
628
+ const len0 = WASM_VECTOR_LEN;
629
+ const ret = wasm.commitSelectionSetSheetStructure(ptr0, len0, request);
630
+ if (ret[2]) {
631
+ throw takeFromExternrefTable0(ret[1]);
632
+ }
633
+ return takeFromExternrefTable0(ret[0]);
634
+ }
635
+
636
+ /**
637
+ * @param {string} handle_id
638
+ * @param {any} request
639
+ * @returns {any}
640
+ */
641
+ function commitSelectionSetSheetStructureInSession(handle_id, request) {
642
+ const ptr0 = passStringToWasm0(handle_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
643
+ const len0 = WASM_VECTOR_LEN;
644
+ const ret = wasm.commitSelectionSetSheetStructureInSession(ptr0, len0, request);
645
+ if (ret[2]) {
646
+ throw takeFromExternrefTable0(ret[1]);
647
+ }
648
+ return takeFromExternrefTable0(ret[0]);
649
+ }
650
+
651
+ /**
652
+ * X5-U-043: commit visibility over every row/column in a selection set.
653
+ * @param {Uint8Array} bytes
654
+ * @param {any} request
655
+ * @returns {any}
656
+ */
657
+ function commitSelectionSetVisibility(bytes, request) {
658
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
659
+ const len0 = WASM_VECTOR_LEN;
660
+ const ret = wasm.commitSelectionSetVisibility(ptr0, len0, request);
661
+ if (ret[2]) {
662
+ throw takeFromExternrefTable0(ret[1]);
663
+ }
664
+ return takeFromExternrefTable0(ret[0]);
665
+ }
666
+
667
+ /**
668
+ * @param {string} handle_id
669
+ * @param {any} request
670
+ * @returns {any}
671
+ */
672
+ function commitSelectionSetVisibilityInSession(handle_id, request) {
673
+ const ptr0 = passStringToWasm0(handle_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
674
+ const len0 = WASM_VECTOR_LEN;
675
+ const ret = wasm.commitSelectionSetVisibilityInSession(ptr0, len0, request);
676
+ if (ret[2]) {
677
+ throw takeFromExternrefTable0(ret[1]);
678
+ }
679
+ return takeFromExternrefTable0(ret[0]);
680
+ }
681
+
589
682
  /**
590
683
  * X5-U-006 insert/delete cells with shift (byte path). Applies
591
684
  * `runtime_sheet_shift_cells` over one rectangle and a shift direction, then
@@ -2443,8 +2536,14 @@ export function createXlsxSubstrateGlue() {
2443
2536
  commitSelectionSetClearInSession,
2444
2537
  commitSelectionSetFormat,
2445
2538
  commitSelectionSetFormatInSession,
2539
+ commitSelectionSetMergeCells,
2540
+ commitSelectionSetMergeCellsInSession,
2446
2541
  commitSelectionSetPaste,
2447
2542
  commitSelectionSetPasteInSession,
2543
+ commitSelectionSetSheetStructure,
2544
+ commitSelectionSetSheetStructureInSession,
2545
+ commitSelectionSetVisibility,
2546
+ commitSelectionSetVisibilityInSession,
2448
2547
  commitShiftCells,
2449
2548
  commitShiftCellsInSession,
2450
2549
  commitTableAppendRow,
@@ -2526,5 +2625,5 @@ export function createXlsxSubstrateGlue() {
2526
2625
  }
2527
2626
 
2528
2627
  const __xlsxDefaultGlue = createXlsxSubstrateGlue();
2529
- export const { aiSessionCall, bindUiRuntimeSession, bindUiSession, cancelKernelRun, classifyUiState, commitApplyFilter, commitApplyFilterInSession, commitApplySort, commitApplySortInSession, commitCellFormula, commitCellFormulaInSession, commitClearFilter, commitClearFilterInSession, commitRangeClear, commitRangeClearInSession, commitRangeDataValidation, commitRangeDataValidationInSession, commitRangeFill, commitRangeFillInSession, commitRangeFormat, commitRangeFormatInSession, commitRangeHyperlink, commitRangeHyperlinkInSession, commitRangePaste, commitRangePasteInSession, commitRangePasteSpecial, commitRangePasteSpecialInSession, commitRangeTransfer, commitRangeTransferInSession, commitReviewComment, commitReviewCommentInSession, commitSelectionSetClear, commitSelectionSetClearInSession, commitSelectionSetFormat, commitSelectionSetFormatInSession, commitSelectionSetPaste, commitSelectionSetPasteInSession, commitShiftCells, commitShiftCellsInSession, commitTableAppendRow, commitTableAppendRowInSession, completeKernelRun, createKernelBinding, dataRegionInRuntimeSession, defineName, defineNameInSession, deleteKernelBinding, detachKernelOutput, disposeWorkbookRuntimeSession, explainFormula, explainRuntimeSessionFormula, exportRuntimeSessionBytes, exportRuntimeSessionDelimitedText, findInRuntimeSession, getWasmStatus, goToInRuntimeSession, inspectWorkbook, inspectWorkbookRuntimeSession, listRuntimeSessionScopes, listScopes, mergeCells, mergeCellsInSession, mutateSheetStructure, mutateSheetStructureInSession, mutateSheetTabs, mutateSheetTabsInSession, openWorkbookRuntimeSession, projectViewportHint, readCompressedContext, readCompressedDrilldown, readKernelPanel, readPreserveOnlyEntities, readRuntimeSessionChartBytes, readRuntimeSessionCompressedContext, readRuntimeSessionCompressedDrilldown, readRuntimeSessionIntegrity, readRuntimeSessionKernelPanel, readRuntimeSessionMediaBytes, readRuntimeSessionOverlayLanes, readRuntimeSessionPreserveOnlyEntities, readRuntimeSessionSelection, readRuntimeSessionSelectionSet, readRuntimeSessionSheetWindow, readRuntimeSessionSheetWindowBinary, readSelection, readSelectionSet, readSheetWindow, readWorkflowOverlayLanes, recalculateFormulas, recalculateInSession, resizeColumnWidth, resizeColumnWidthInSession, resizeRowHeight, resizeRowHeightInSession, resolveReference, setColumnHidden, setColumnHiddenInSession, setColumnOutlineGroupHidden, setColumnOutlineGroupHiddenInSession, setFrozenPane, setFrozenPaneInSession, setRowHidden, setRowHiddenInSession, setRowOutlineGroupHidden, setRowOutlineGroupHiddenInSession, setSheetOutlineLevel, setSheetOutlineLevelInSession, startKernelRun, summarizeAccessibility, summarizeRuntimeSessionAccessibility, updateKernelSource, validateKernelAction, initSync } = __xlsxDefaultGlue;
2628
+ export const { aiSessionCall, bindUiRuntimeSession, bindUiSession, cancelKernelRun, classifyUiState, commitApplyFilter, commitApplyFilterInSession, commitApplySort, commitApplySortInSession, commitCellFormula, commitCellFormulaInSession, commitClearFilter, commitClearFilterInSession, commitRangeClear, commitRangeClearInSession, commitRangeDataValidation, commitRangeDataValidationInSession, commitRangeFill, commitRangeFillInSession, commitRangeFormat, commitRangeFormatInSession, commitRangeHyperlink, commitRangeHyperlinkInSession, commitRangePaste, commitRangePasteInSession, commitRangePasteSpecial, commitRangePasteSpecialInSession, commitRangeTransfer, commitRangeTransferInSession, commitReviewComment, commitReviewCommentInSession, commitSelectionSetClear, commitSelectionSetClearInSession, commitSelectionSetFormat, commitSelectionSetFormatInSession, commitSelectionSetMergeCells, commitSelectionSetMergeCellsInSession, commitSelectionSetPaste, commitSelectionSetPasteInSession, commitSelectionSetSheetStructure, commitSelectionSetSheetStructureInSession, commitSelectionSetVisibility, commitSelectionSetVisibilityInSession, commitShiftCells, commitShiftCellsInSession, commitTableAppendRow, commitTableAppendRowInSession, completeKernelRun, createKernelBinding, dataRegionInRuntimeSession, defineName, defineNameInSession, deleteKernelBinding, detachKernelOutput, disposeWorkbookRuntimeSession, explainFormula, explainRuntimeSessionFormula, exportRuntimeSessionBytes, exportRuntimeSessionDelimitedText, findInRuntimeSession, getWasmStatus, goToInRuntimeSession, inspectWorkbook, inspectWorkbookRuntimeSession, listRuntimeSessionScopes, listScopes, mergeCells, mergeCellsInSession, mutateSheetStructure, mutateSheetStructureInSession, mutateSheetTabs, mutateSheetTabsInSession, openWorkbookRuntimeSession, projectViewportHint, readCompressedContext, readCompressedDrilldown, readKernelPanel, readPreserveOnlyEntities, readRuntimeSessionChartBytes, readRuntimeSessionCompressedContext, readRuntimeSessionCompressedDrilldown, readRuntimeSessionIntegrity, readRuntimeSessionKernelPanel, readRuntimeSessionMediaBytes, readRuntimeSessionOverlayLanes, readRuntimeSessionPreserveOnlyEntities, readRuntimeSessionSelection, readRuntimeSessionSelectionSet, readRuntimeSessionSheetWindow, readRuntimeSessionSheetWindowBinary, readSelection, readSelectionSet, readSheetWindow, readWorkflowOverlayLanes, recalculateFormulas, recalculateInSession, resizeColumnWidth, resizeColumnWidthInSession, resizeRowHeight, resizeRowHeightInSession, resolveReference, setColumnHidden, setColumnHiddenInSession, setColumnOutlineGroupHidden, setColumnOutlineGroupHiddenInSession, setFrozenPane, setFrozenPaneInSession, setRowHidden, setRowHiddenInSession, setRowOutlineGroupHidden, setRowOutlineGroupHiddenInSession, setSheetOutlineLevel, setSheetOutlineLevelInSession, startKernelRun, summarizeAccessibility, summarizeRuntimeSessionAccessibility, updateKernelSource, validateKernelAction, initSync } = __xlsxDefaultGlue;
2530
2629
  export default __xlsxDefaultGlue.default;
@@ -36,8 +36,14 @@ export const commitSelectionSetClear: (a: number, b: number, c: any) => [number,
36
36
  export const commitSelectionSetClearInSession: (a: number, b: number, c: any) => [number, number, number];
37
37
  export const commitSelectionSetFormat: (a: number, b: number, c: any) => [number, number, number];
38
38
  export const commitSelectionSetFormatInSession: (a: number, b: number, c: any) => [number, number, number];
39
+ export const commitSelectionSetMergeCells: (a: number, b: number, c: any) => [number, number, number];
40
+ export const commitSelectionSetMergeCellsInSession: (a: number, b: number, c: any) => [number, number, number];
39
41
  export const commitSelectionSetPaste: (a: number, b: number, c: any) => [number, number, number];
40
42
  export const commitSelectionSetPasteInSession: (a: number, b: number, c: any) => [number, number, number];
43
+ export const commitSelectionSetSheetStructure: (a: number, b: number, c: any) => [number, number, number];
44
+ export const commitSelectionSetSheetStructureInSession: (a: number, b: number, c: any) => [number, number, number];
45
+ export const commitSelectionSetVisibility: (a: number, b: number, c: any) => [number, number, number];
46
+ export const commitSelectionSetVisibilityInSession: (a: number, b: number, c: any) => [number, number, number];
41
47
  export const commitShiftCells: (a: number, b: number, c: any) => [number, number, number];
42
48
  export const commitShiftCellsInSession: (a: number, b: number, c: any) => [number, number, number];
43
49
  export const commitTableAppendRow: (a: number, b: number, c: any) => [number, number, number];
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@beyondwork/xlsx-substrate-bindings",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "description": "Conductor, the Ensemble spreadsheet runtime: native XLSX sessions compiled to WebAssembly for Node and browsers.",
5
5
  "conductor": {
6
- "bridgeVersion": "xlsx-wasm-bridge-v52",
6
+ "bridgeVersion": "xlsx-wasm-bridge-v55",
7
7
  "versionPolicy": "Versions stay 0.x. A release is MINOR when its bridgeVersion differs from the last published release's, PATCH for fixes on the same bridgeVersion, and MAJOR only for removing a required method or capability. A bridge version change on pe2 does not by itself need a release.",
8
8
  "wasm": "generated/wasm-web/xlsx_substrate_wasm_bg.wasm",
9
9
  "linearMemoryMaximumBytes": 2147483648