@beyondwork/xlsx-substrate-bindings 0.4.0 → 0.5.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
@@ -10,7 +10,7 @@ and the TypeScript bridge over it.
10
10
  | --- | --- |
11
11
  | `@beyondwork/xlsx-substrate-bindings` | Plain-value AI and UI types, the Conductor agent metadata, `BRIDGE_VERSION` and `BRIDGE_CAPABILITIES`. No wasm. |
12
12
  | `@beyondwork/xlsx-substrate-bindings/wasm` | The Node loader and the full bridge contract. |
13
- | `@beyondwork/xlsx-substrate-bindings/wasm/web` | The browser loader. No `node:` imports. |
13
+ | `@beyondwork/xlsx-substrate-bindings/wasm/web` | The browser loader, the capability helpers, the typed bridge errors (`isXlsxWasmBridgeError`) and `XLSX_WASM_WEB_SHA256`. No `node:` imports. |
14
14
  | `@beyondwork/xlsx-substrate-bindings/wasm/web/glue` | The wasm-bindgen glue (ES module) the browser loader takes. |
15
15
  | `@beyondwork/xlsx-substrate-bindings/wasm/web/binary` | The one `.wasm` binary, for hosts that serve or preload it. |
16
16
  | `@beyondwork/xlsx-substrate-bindings/blank-workbook` | `createBlankWorkbookBytes()`: a new one-sheet workbook to open and edit. No imports at all, so it bundles for a browser. |
@@ -70,6 +70,21 @@ const loaded = await loadXlsxWasmBridgeWeb({ glueModule: glue, wasmSource: wasmU
70
70
  Serve the `.wasm` from a cacheable route with the `application/wasm` MIME
71
71
  type, or preload it and pass the bytes.
72
72
 
73
+ `XLSX_WASM_WEB_SHA256` (from `@beyondwork/xlsx-substrate-bindings/wasm/web`)
74
+ is the SHA-256, in lowercase hex, of the `.wasm` this package carries. A host
75
+ that fetches the binary from a URL it does not control (the exact-version
76
+ `https://unpkg.com/@beyondwork/xlsx-substrate-bindings@<version>/generated/wasm-web/xlsx_substrate_wasm_bg.wasm`)
77
+ or receives it as bytes hashes what it got and compares it to the constant
78
+ before passing it to the loader. The value is written when the package is
79
+ packed; an unpacked workspace build carries the empty string, which no binary
80
+ matches.
81
+
82
+ The React package `@beyondwork/xlsx-react-component` wraps this loader for
83
+ in-browser apps (`loadConductorRuntime` and `openConductorWorkbook` from its
84
+ `./embed` entry). Its README shows the three ways to deliver the `.wasm` to a
85
+ Beyond Work workblock and how load and save go through `bw.fetchBlob` and
86
+ `bw.saveBlob`.
87
+
73
88
  ## Memory contract
74
89
 
75
90
  - **Maximum.** The binary is linked with a 2 GiB linear-memory maximum
@@ -121,6 +136,48 @@ and can rebuild the error with `deserializeXlsxWasmBridgeError`.
121
136
 
122
137
  ## Release notes
123
138
 
139
+ ### 0.5.0 (bridge `xlsx-wasm-bridge-v52`)
140
+
141
+ A MINOR release: the bridge moved from v50 to v52 (two wire changes), so a
142
+ host must take the wasm and the TypeScript from this release together.
143
+
144
+ - **Paste special** (v51, X5-U-002). `commitRangePasteSpecial` and its
145
+ in-session port `commitRangePasteSpecialInSession` paste a copied range
146
+ All or Values, with or without Transpose, onto another place on any sheet.
147
+ References are re-anchored by Excel's captured rule. The capability is
148
+ `range-paste-special-v1`. Paste All refuses typed, rather than pasting
149
+ part of the content, over comments, data validations, conditional formats,
150
+ merged cells, array or data-table formulas and sheet rules kept as source
151
+ XML.
152
+ - **Border weight and more alignments** (v52, X5-U-044). The sheet-window
153
+ readback carries each non-thin border edge's ECMA-376 style on the binary
154
+ envelope's rare-cell side table (the 96-byte cell record is unchanged),
155
+ and the vertical alignment field takes `justify` and `distributed`.
156
+ Range-format requests accept horizontal `fill` and `centerContinuous`,
157
+ vertical `justify` and `distributed`, and the `outline` border kind.
158
+ - **x14 rules follow row and column inserts and deletes** (X5-U-096). A
159
+ structure op on a sheet whose extLst carries x14 conditional formats or
160
+ data validations now applies, where it refused before. Each rule's
161
+ `xm:sqref` and same-sheet `xm:f` move with the rows and columns.
162
+ - `@beyondwork/xlsx-react-component` takes this package only as a peer
163
+ dependency (X1-D-090), so a host installs both and has one copy.
164
+
165
+ A stale v50 bundle has none of the new exports. It decodes a vertical
166
+ justify cell as unset, paints every border thin, and refuses `fill` and
167
+ `outline` as invalid tokens. The bridge version check (`BRIDGE_VERSION`)
168
+ names the mismatch.
169
+
170
+ ### 0.4.1 (bridge `xlsx-wasm-bridge-v50`)
171
+
172
+ A PATCH release on the same bridge.
173
+
174
+ - `XLSX_WASM_WEB_SHA256` is exported from `./wasm/web`: the sha256 of the
175
+ packed web wasm, written at pack time, so a browser host can check bytes it
176
+ fetched from a URL before compiling them.
177
+ - `@beyondwork/xlsx-react-component` 0.1.0 (the live embedded grid,
178
+ `ConductorEmbeddedWorkbook`) takes this release as a peer dependency
179
+ (`^0.4.1`), so a host installs both packages and has one bindings copy.
180
+
124
181
  ### 0.4.0 (bridge `xlsx-wasm-bridge-v50`)
125
182
 
126
183
  A MINOR release: the bridge moved from v49 to v50.
package/dist/index.d.ts CHANGED
@@ -41,7 +41,7 @@ export { CONDUCTOR_AI_FENCE, XLSX_AI_AGENT_TOOLS } from "./ai/index.ts";
41
41
  export type { XlsxAiAgentRefusalCategory, XlsxAiAgentToolEffect, XlsxAiAgentToolFence, XlsxAiAgentToolHttp, XlsxAiAgentToolInput, XlsxAiAgentToolRecord, XlsxAiApplyToolInput, XlsxAiAttestation, XlsxAiBundleToolResult, XlsxAiDiscardAnswer, XlsxAiDiscardToolInput, XlsxAiDiscardToolResult, XlsxAiImpactMeasured, XlsxAiImpactStatus, XlsxAiImpactUnmeasured, XlsxAiInvalidationCause, XlsxAiMutationOutcome, XlsxAiNeighborhoodToolResult, XlsxAiOutcomeInvalidation, XlsxAiOutcomeWarning, XlsxAiPlanToolBody, XlsxAiPlanToolInput, XlsxAiPlanToolStep, XlsxAiPreviewToolInput, XlsxAiPreviewToolResult, XlsxAiPreviewToolValidation, XlsxAiProposePlanToolInput, XlsxAiProposeProposalToolInput, XlsxAiProposeToolInput, XlsxAiProposeUndoToolInput, XlsxAiResolveToolResult, XlsxAiScopeReadPage, XlsxAiScopeReadToolInput, XlsxAiScopeReadToolResult, XlsxAiStaleCause, XlsxAiStaleTaggedRefusal, XlsxAiUndoAttestation, XlsxAiUndoSubjectToolInput, XlsxAiUndoToolInput, XlsxAiValidateToolInput, XlsxAiValidateToolResult } from "./ai/index.ts";
42
42
  export type { XlsxAiMutationApplyResult, XlsxAiMutationBridge, XlsxAiMutationBridgeOptions, XlsxAiMutationBridgeSession, XlsxAiMutationProposal, XlsxAiMutationProposeInput, XlsxAiMutationProposeResult, XlsxAiMutationReadback } from "./ai/index.ts";
43
43
  export type { XlsxAiBlocker, XlsxAiBlockerCode, XlsxAiCompressedContextRequest, XlsxAiCompressedContextResult, XlsxAiCompressedDrilldownRequest, XlsxAiCompressedDrilldownResult, XlsxAiCompressedFormatPostureCounts, XlsxAiCompressedSheetContext, XlsxAiFormulaDiagnostic, XlsxAiFormulaExplanation, XlsxAiFormulaExplanationResult, XlsxAiFormulaPrecedent, XlsxAiKernelActionKind, XlsxAiKernelActionProposal, XlsxAiKernelActionValidation, XlsxAiReferenceMatch, XlsxAiReferenceQuery, XlsxAiReferenceReadback, XlsxAiReferenceResolution, XlsxAiReplacementApplyResult, XlsxAiReplacementProposal, XlsxAiReplacementValidation, XlsxAiScopeBundleResult, XlsxAiScopeListRequest, XlsxAiScopeListResult, XlsxAiUnsupportedAction, XlsxAiUnsupportedActionResult, XlsxAiWorkbookInspection, XlsxKernelScopeEvidence, XlsxRangeWriteCell, XlsxScopeBundle, XlsxScopePageCursor, XlsxAiApplyPlanRequest, XlsxAiApplyProposalRequest, XlsxAiApplyReceipt, XlsxAiCellReadback, XlsxAiCellValue, XlsxAiDrain, XlsxAiFenceTriple, XlsxAiImpact, XlsxAiNeighborhoodNode, XlsxAiPlan, XlsxAiPlanReceipt, XlsxAiPlanStepReceipt, XlsxAiPreviewRequest, XlsxAiPreviewResult, XlsxAiRangeWriteCell, XlsxAiRefusal, XlsxAiReplacementOperation, XlsxAiScopeBundleReadRequest, XlsxAiScopeNeighborhoodRequest, XlsxAiScopeNeighborhoodResult, XlsxAiScopeReadResult, XlsxAiSessionProposal, XlsxAiSessionReferenceRequest, XlsxAiSessionReferenceResult, XlsxAiSessionScopeBundle, XlsxAiSessionScopeBundleResult, XlsxAiSessionStamp, XlsxAiSettledFence, XlsxAiAfterState, XlsxAiSimulatedGate, XlsxAiSimulatedPreview, XlsxAiUnknownOpRefusal, XlsxAiValidateRequest, XlsxAiValidateResult, XlsxSessionFence } from "./ai/index.ts";
44
- export type { XlsxBorderStyle, XlsxRangeBorderEdit, XlsxRangeHorizontalAlignmentEdit, XlsxFormulaCommitRequest, XlsxFormulaCommitResult, XlsxRangeFillCommitRequest, XlsxRangeFillCommitResult, XlsxRangeClearCommitRequest, XlsxRangeClearCommitResult, XlsxRangePasteCommitRequest, XlsxRangePasteCommitResult, 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, XlsxKernelDeclaredInput, XlsxKernelLanguage, XlsxKernelMutationReadback, XlsxKernelMutationResult, XlsxKernelPanelActions, XlsxKernelPanelBinding, XlsxKernelPanelReadback, XlsxKernelRunDiagnostics, XlsxKernelRunOutput, XlsxKernelRunResult, XlsxOperationPatternHint, XlsxOperationPatternValueKindCounts, XlsxRuntimeAuditDeltaSummary, XlsxRuntimeAuditEnvelope, XlsxRuntimeCellReadback, XlsxRuntimeCommandVerdict, XlsxRuntimeInvalidationBucket, XlsxRuntimeInvalidationClass, XlsxRuntimeInvalidationReceipt, XlsxRuntimeUndoBoundary, XlsxRuntimeWarning, XlsxWorkflowContextInput, XlsxWorkflowLaneEntryInput, XlsxWorkflowLaneEntryStatusInput, XlsxWorkflowLaneSnapshotInput, XlsxWorkflowOverlayLaneKindInput, XlsxWorkflowPostureFactInput, XlsxWorkflowPostureKindInput, XlsxWorkflowSeverityInput, XlsxWorkflowTargetInput } from "./runtime/index.ts";
44
+ export type { XlsxBorderStyle, XlsxRangeBorderEdit, XlsxRangeHorizontalAlignmentEdit, XlsxFormulaCommitRequest, XlsxFormulaCommitResult, XlsxRangeFillCommitRequest, XlsxRangeFillCommitResult, XlsxRangeClearCommitRequest, XlsxRangeClearCommitResult, XlsxRangePasteCommitRequest, XlsxRangePasteCommitResult, XlsxPasteSpecialKind, XlsxRangePasteSpecialCommitRequest, 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, XlsxKernelDeclaredInput, XlsxKernelLanguage, XlsxKernelMutationReadback, XlsxKernelMutationResult, XlsxKernelPanelActions, XlsxKernelPanelBinding, XlsxKernelPanelReadback, XlsxKernelRunDiagnostics, XlsxKernelRunOutput, XlsxKernelRunResult, XlsxOperationPatternHint, XlsxOperationPatternValueKindCounts, XlsxRuntimeAuditDeltaSummary, XlsxRuntimeAuditEnvelope, XlsxRuntimeCellReadback, XlsxRuntimeCommandVerdict, XlsxRuntimeInvalidationBucket, XlsxRuntimeInvalidationClass, XlsxRuntimeInvalidationReceipt, XlsxRuntimeUndoBoundary, XlsxRuntimeWarning, XlsxWorkflowContextInput, XlsxWorkflowLaneEntryInput, XlsxWorkflowLaneEntryStatusInput, XlsxWorkflowLaneSnapshotInput, XlsxWorkflowOverlayLaneKindInput, XlsxWorkflowPostureFactInput, XlsxWorkflowPostureKindInput, XlsxWorkflowSeverityInput, XlsxWorkflowTargetInput } from "./runtime/index.ts";
45
45
  export type { XlsxFormulaRecalculateResult, XlsxRuntimeSessionExportResult, XlsxRuntimeSessionMutationReceipt, XlsxSessionVolatileInputs, } from "./runtime/types.ts";
46
46
  export { classifyXlsxUiState } from "./ui/index.ts";
47
47
  export { createXlsxWasmBridge, loadGeneratedXlsxWasmBridge, supportsRuntimeSessionMutations } from "./wasm/index.ts";
@@ -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, 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, 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";
@@ -238,6 +238,31 @@ export interface XlsxRangePasteCommitResult {
238
238
  /** Present only on `*InSession` results (strict superset receipt). */
239
239
  readonly session?: XlsxRuntimeSessionMutationReceipt;
240
240
  }
241
+ /**
242
+ * X5-U-002 (b), bridge v51: what a paste special pastes. `all` is Excel's
243
+ * xlPasteAll (content and cell format; formulas re-anchored by the captured
244
+ * Excel rule, an off-grid reference written `#REF!`); `values` is
245
+ * xlPasteValues (calculated values; the pasted cells keep their formats).
246
+ * Formulas, Formats and Skip blanks are not offered: no Excel capture has
247
+ * settled them yet.
248
+ */
249
+ export type XlsxPasteSpecialKind = "all" | "values";
250
+ /**
251
+ * X5-U-002 (b), bridge v51: paste the cells of `sourceHandle` (any sheet)
252
+ * with their top-left at `targetStart` on `sheetId`. With `transpose` the
253
+ * block is turned on its side (the pasted range is the copied shape with
254
+ * rows and columns exchanged) and, for `all`, each formula's references
255
+ * rotate with it. The result is the range paste result.
256
+ */
257
+ export interface XlsxRangePasteSpecialCommitRequest extends XlsxStatelessCommitRecalcInputs {
258
+ readonly sourceHandle: XlsxScopeHandle;
259
+ readonly sheetId: string;
260
+ readonly targetStart: XlsxCellAddress;
261
+ readonly paste: XlsxPasteSpecialKind;
262
+ readonly transpose?: boolean;
263
+ readonly actor?: XlsxRuntimeActor;
264
+ readonly workflowContext?: XlsxWorkflowContextInput;
265
+ }
241
266
  export type XlsxRangeTransferMode = "move" | "copy";
242
267
  export interface XlsxRangeTransferCommitRequest extends XlsxStatelessCommitRecalcInputs {
243
268
  readonly sourceHandle: XlsxScopeHandle;
@@ -332,12 +357,20 @@ export interface XlsxRangeAppearanceEdit {
332
357
  * lines like `wrapText` and spread the words to the cell width.
333
358
  */
334
359
  readonly horizontalAlignment?: XlsxRangeHorizontalAlignmentEdit;
335
- /** Vertical alignment, or `"default"` to clear the override. */
336
- readonly verticalAlignment?: "top" | "middle" | "bottom" | "default";
360
+ /**
361
+ * Vertical alignment, or `"default"` to clear the override. X5-U-044
362
+ * (bridge v51) adds `justify` / `distributed`: the cell's lines are spread
363
+ * over its height.
364
+ */
365
+ readonly verticalAlignment?: "top" | "middle" | "bottom" | "justify" | "distributed" | "default";
337
366
  readonly wrapText?: boolean;
338
367
  readonly borders?: XlsxRangeBorderEdit;
339
368
  }
340
- export type XlsxRangeHorizontalAlignmentEdit = "left" | "center" | "right" | "justify" | "distributed" | "default";
369
+ /**
370
+ * X5-U-044 (bridge v51) adds `fill` (repeat the text across the cell) and
371
+ * `centerContinuous` (Excel's "Center Across Selection").
372
+ */
373
+ export type XlsxRangeHorizontalAlignmentEdit = "left" | "center" | "right" | "justify" | "distributed" | "fill" | "centerContinuous" | "default";
341
374
  /**
342
375
  * ECMA-376 `ST_BorderStyle` values minus `none` (an absent edge is not a
343
376
  * style). Tokens are the attribute values verbatim, camelCase included.
@@ -347,14 +380,17 @@ export type XlsxBorderStyle = "thin" | "medium" | "thick" | "hair" | "dashed" |
347
380
  export declare const XLSX_BORDER_STYLES: readonly XlsxBorderStyle[];
348
381
  /**
349
382
  * X5-U-008 border authoring. `all` draws every edge on each targeted cell,
350
- * `clear` removes every edge, and `edges` sets exactly the named edges. `color`
383
+ * `clear` removes every edge, and `edges` sets exactly the named edges.
384
+ * X5-U-044 (bridge v51): `outline` is Excel's "Outside Borders"
385
+ * (Ctrl+Shift+&) — the perimeter of each selected area only, every other
386
+ * edge kept as it was. `color`
351
387
  * is the resolved `#RRGGBB` (default black when omitted); `style` is the line
352
388
  * style applied to the drawn edges (`thin` when omitted — what Excel's plain
353
389
  * border-menu entries apply; `medium`/`thick`/`double` are its "Thick Box",
354
390
  * "Thick Bottom" and "Double Bottom" entries). An unknown token refuses.
355
391
  */
356
392
  export interface XlsxRangeBorderEdit {
357
- readonly kind: "all" | "clear" | "edges";
393
+ readonly kind: "all" | "outline" | "clear" | "edges";
358
394
  readonly top?: boolean;
359
395
  readonly right?: boolean;
360
396
  readonly bottom?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { XlsxBlocker, XlsxCellAddress, XlsxCellRange, XlsxReadbackEnvelope, XlsxScopeHandle } from "../shared.ts";
2
- import type { XlsxWorkflowContextInput } from "../runtime/types.ts";
2
+ import type { XlsxBorderStyle, XlsxWorkflowContextInput } from "../runtime/types.ts";
3
3
  export type XlsxUiStateClass = "canonical-document" | "session-shared" | "local-preference";
4
4
  export type XlsxUiStateNamespace = "runtime.workbook" | "runtime.viewport" | "runtime.collab.session" | "ui.local.preference" | "ui.scope.projection";
5
5
  export declare function classifyXlsxUiState(namespace: XlsxUiStateNamespace): XlsxUiStateClass;
@@ -415,17 +415,31 @@ export interface XlsxUiSheetWindowCell {
415
415
  * whether or not `wrapText` is set; `justify` spreads every line but the
416
416
  * last to the cell width, `distributed` spreads every line.
417
417
  */
418
- readonly horizontalAlignment?: "left" | "center" | "right" | "justify" | "distributed";
418
+ /**
419
+ * X5-U-044 (bridge v51) adds `fill` (the text repeated across the cell
420
+ * width) and `centerContinuous` (centred across the run of empty
421
+ * `centerContinuous` cells to its right).
422
+ */
423
+ readonly horizontalAlignment?: "left" | "center" | "right" | "justify" | "distributed" | "fill" | "centerContinuous";
419
424
  /**
420
425
  * X5-U-008 (ii) display style: explicit vertical alignment override. Absent
421
- * means Excel's default anchor (bottom).
426
+ * means Excel's default anchor (bottom). X5-U-044 (bridge v51) adds
427
+ * `justify` / `distributed`: the lines are spread over the cell height.
422
428
  */
423
- readonly verticalAlignment?: "top" | "middle" | "bottom";
429
+ readonly verticalAlignment?: "top" | "middle" | "bottom" | "justify" | "distributed";
424
430
  readonly wrapText?: boolean;
425
431
  readonly borderTop?: boolean;
426
432
  readonly borderRight?: boolean;
427
433
  readonly borderBottom?: boolean;
428
434
  readonly borderLeft?: boolean;
435
+ /**
436
+ * X5-U-044 (bridge v51): the ECMA-376 line style of each present edge
437
+ * (`medium`, `thick`, `double`, `dashed`, ...). Present only when some
438
+ * present edge is not `thin`; the painter draws a present edge with no
439
+ * entry here as thin. Rides the binary envelope's `rest.rareCells` side
440
+ * table, so the frozen 96-byte cell record is unchanged.
441
+ */
442
+ readonly borderStyles?: XlsxUiCellBorderStyles;
429
443
  readonly mergeRole: "unmerged" | "owner" | "covered";
430
444
  readonly mergeOwner?: XlsxCellAddress;
431
445
  readonly mergeRange?: XlsxCellRange;
@@ -441,6 +455,13 @@ export interface XlsxUiSheetWindowCell {
441
455
  */
442
456
  readonly hyperlink?: XlsxUiCellHyperlink;
443
457
  }
458
+ /** X5-U-044: per-edge border line styles; an absent key is an absent edge. */
459
+ export interface XlsxUiCellBorderStyles {
460
+ readonly top?: XlsxBorderStyle;
461
+ readonly right?: XlsxBorderStyle;
462
+ readonly bottom?: XlsxBorderStyle;
463
+ readonly left?: XlsxBorderStyle;
464
+ }
444
465
  /**
445
466
  * X5-U-009 (bridge v31): a cell link as the mounted surface reads it.
446
467
  *
@@ -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, 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, 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,8 +10,8 @@ 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-v50";
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" | "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")[];
13
+ readonly bridgeVersion: "xlsx-wasm-bridge-v52";
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";
17
17
  readonly readOnly: false;
@@ -195,6 +195,8 @@ export interface XlsxWasmBridge extends XlsxAiSessionBridgeMethods {
195
195
  commitRangeFillInSession?(handleId: string, request: XlsxRangeFillCommitRequest): XlsxRangeFillCommitResult;
196
196
  commitRangePasteInSession?(handleId: string, request: XlsxRangePasteCommitRequest): XlsxRangePasteCommitResult;
197
197
  commitRangeTransferInSession?(handleId: string, request: XlsxRangeTransferCommitRequest): XlsxRangeTransferCommitResult;
198
+ /** X5-U-002 (bridge v51): paste special on the resident session. */
199
+ commitRangePasteSpecialInSession?(handleId: string, request: XlsxRangePasteSpecialCommitRequest): XlsxRangePasteCommitResult;
198
200
  commitRangeFormatInSession?(handleId: string, request: XlsxRangeFormatCommitRequest): XlsxRangeFormatCommitResult;
199
201
  resizeColumnWidthInSession?(handleId: string, request: XlsxLayoutMetricResizeRequest): XlsxLayoutMetricResizeResult;
200
202
  resizeRowHeightInSession?(handleId: string, request: XlsxLayoutMetricResizeRequest): XlsxLayoutMetricResizeResult;
@@ -243,6 +245,11 @@ export interface XlsxWasmBridge extends XlsxAiSessionBridgeMethods {
243
245
  commitRangeFill(bytes: Uint8Array, request: XlsxRangeFillCommitRequest): XlsxRangeFillCommitResult;
244
246
  commitRangePaste(bytes: Uint8Array, request: XlsxRangePasteCommitRequest): XlsxRangePasteCommitResult;
245
247
  commitRangeTransfer(bytes: Uint8Array, request: XlsxRangeTransferCommitRequest): XlsxRangeTransferCommitResult;
248
+ /**
249
+ * X5-U-002 (bridge v51): paste the copied range All or Values, with or
250
+ * without Transpose, at `targetStart` on `sheetId` (range-paste-special-v1).
251
+ */
252
+ commitRangePasteSpecial(bytes: Uint8Array, request: XlsxRangePasteSpecialCommitRequest): XlsxRangePasteCommitResult;
246
253
  commitRangeClear(bytes: Uint8Array, request: XlsxRangeClearCommitRequest): XlsxRangeClearCommitResult;
247
254
  commitRangeFormat(bytes: Uint8Array, request: XlsxRangeFormatCommitRequest): XlsxRangeFormatCommitResult;
248
255
  commitRangeHyperlink(bytes: Uint8Array, request: XlsxRangeHyperlinkCommitRequest): XlsxRangeHyperlinkCommitResult;
@@ -299,6 +306,7 @@ export interface XlsxRuntimeSessionMutationBridge extends XlsxWasmBridge {
299
306
  commitRangeFillInSession(handleId: string, request: XlsxRangeFillCommitRequest): XlsxRangeFillCommitResult;
300
307
  commitRangePasteInSession(handleId: string, request: XlsxRangePasteCommitRequest): XlsxRangePasteCommitResult;
301
308
  commitRangeTransferInSession(handleId: string, request: XlsxRangeTransferCommitRequest): XlsxRangeTransferCommitResult;
309
+ commitRangePasteSpecialInSession(handleId: string, request: XlsxRangePasteSpecialCommitRequest): XlsxRangePasteCommitResult;
302
310
  commitRangeFormatInSession(handleId: string, request: XlsxRangeFormatCommitRequest): XlsxRangeFormatCommitResult;
303
311
  resizeColumnWidthInSession(handleId: string, request: XlsxLayoutMetricResizeRequest): XlsxLayoutMetricResizeResult;
304
312
  resizeRowHeightInSession(handleId: string, request: XlsxLayoutMetricResizeRequest): XlsxLayoutMetricResizeResult;
@@ -419,6 +427,7 @@ export interface RawXlsxWasmModule extends RawXlsxAiSessionModule {
419
427
  commitRangeFillInSession?(handleId: string, request: XlsxRangeFillCommitRequest): RawXlsxRangeFillCommitResult;
420
428
  commitRangePasteInSession?(handleId: string, request: XlsxRangePasteCommitRequest): RawXlsxRangePasteCommitResult;
421
429
  commitRangeTransferInSession?(handleId: string, request: XlsxRangeTransferCommitRequest): RawXlsxRangeTransferCommitResult;
430
+ commitRangePasteSpecialInSession?(handleId: string, request: XlsxRangePasteSpecialCommitRequest): RawXlsxRangePasteCommitResult;
422
431
  commitRangeFormatInSession?(handleId: string, request: XlsxRangeFormatCommitRequest): RawXlsxRangeFormatCommitResult;
423
432
  resizeColumnWidthInSession?(handleId: string, request: XlsxLayoutMetricResizeRequest): RawXlsxLayoutMetricResizeResult;
424
433
  resizeRowHeightInSession?(handleId: string, request: XlsxLayoutMetricResizeRequest): RawXlsxLayoutMetricResizeResult;
@@ -446,6 +455,7 @@ export interface RawXlsxWasmModule extends RawXlsxAiSessionModule {
446
455
  commitRangeFill(bytes: Uint8Array, request: XlsxRangeFillCommitRequest): RawXlsxRangeFillCommitResult;
447
456
  commitRangePaste(bytes: Uint8Array, request: XlsxRangePasteCommitRequest): RawXlsxRangePasteCommitResult;
448
457
  commitRangeTransfer(bytes: Uint8Array, request: XlsxRangeTransferCommitRequest): RawXlsxRangeTransferCommitResult;
458
+ commitRangePasteSpecial(bytes: Uint8Array, request: XlsxRangePasteSpecialCommitRequest): RawXlsxRangePasteCommitResult;
449
459
  commitRangeClear(bytes: Uint8Array, request: XlsxRangeClearCommitRequest): RawXlsxRangeClearCommitResult;
450
460
  commitRangeFormat(bytes: Uint8Array, request: XlsxRangeFormatCommitRequest): RawXlsxRangeFormatCommitResult;
451
461
  commitRangeHyperlink(bytes: Uint8Array, request: XlsxRangeHyperlinkCommitRequest): RawXlsxRangeHyperlinkCommitResult;
@@ -47,7 +47,9 @@ const RUNTIME_SESSION_MUTATION_METHODS = [
47
47
  "setColumnOutlineGroupHiddenInSession",
48
48
  "setSheetOutlineLevelInSession",
49
49
  // X5-U-023 (v44).
50
- "defineNameInSession"
50
+ "defineNameInSession",
51
+ // X5-U-002 (v51).
52
+ "commitRangePasteSpecialInSession"
51
53
  ];
52
54
  /**
53
55
  * T1 feature detection: true when the mounted wasm build advertises
@@ -70,7 +72,7 @@ export function supportsRuntimeSessionMutations(bridge) {
70
72
  RUNTIME_SESSION_MUTATION_METHODS.every((method) => typeof bridge[method] === "function"));
71
73
  }
72
74
  export { createSheetWindowDecodedReader, decodeSheetWindowBinary, SHEET_WINDOW_BINARY_SCHEMA_ID } from "./sheet-window-binary.js";
73
- const requiredBridgeVersion = "xlsx-wasm-bridge-v50"; // v50: X5-U-092 (stateless commit answers type a recalculation that did not apply; kernel answers carry their written cells; v49 was X5-U-023)
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)
74
76
  const requiredCapabilities = [
75
77
  "workflow-context-v2",
76
78
  "workflow-overlay-lanes-v1",
@@ -93,6 +95,9 @@ const requiredCapabilities = [
93
95
  "range-clear-commit-v1",
94
96
  "range-format-commit-v1",
95
97
  "range-transfer-v1",
98
+ // X5-U-002 (bridge v51): paste special. A bridge without it would answer
99
+ // Paste Special with `not a function`, so it fails the mount gate instead.
100
+ "range-paste-special-v1",
96
101
  "layout-metric-resize-v1",
97
102
  "layout-metric-visibility-v1",
98
103
  "outline-group-visibility-v1",
@@ -208,6 +213,8 @@ const requiredRawMethods = [
208
213
  "commitRangeFill",
209
214
  "commitRangePaste",
210
215
  "commitRangeTransfer",
216
+ // X5-U-002 (bridge v51): paste special over bytes.
217
+ "commitRangePasteSpecial",
211
218
  "commitRangeClear",
212
219
  "commitRangeFormat",
213
220
  "commitRangeHyperlink",
@@ -295,6 +302,9 @@ export function createXlsxWasmBridge(source, status, runtime = createXlsxWasmRun
295
302
  const rawCommitRangeFillInSession = typeof raw.commitRangeFillInSession === "function" ? raw.commitRangeFillInSession.bind(raw) : undefined;
296
303
  const rawCommitRangePasteInSession = typeof raw.commitRangePasteInSession === "function" ? raw.commitRangePasteInSession.bind(raw) : undefined;
297
304
  const rawCommitRangeTransferInSession = typeof raw.commitRangeTransferInSession === "function" ? raw.commitRangeTransferInSession.bind(raw) : undefined;
305
+ const rawCommitRangePasteSpecialInSession = typeof raw.commitRangePasteSpecialInSession === "function"
306
+ ? raw.commitRangePasteSpecialInSession.bind(raw)
307
+ : undefined;
298
308
  const rawCommitRangeFormatInSession = typeof raw.commitRangeFormatInSession === "function" ? raw.commitRangeFormatInSession.bind(raw) : undefined;
299
309
  const rawResizeColumnWidthInSession = typeof raw.resizeColumnWidthInSession === "function" ? raw.resizeColumnWidthInSession.bind(raw) : undefined;
300
310
  const rawResizeRowHeightInSession = typeof raw.resizeRowHeightInSession === "function" ? raw.resizeRowHeightInSession.bind(raw) : undefined;
@@ -357,7 +367,8 @@ export function createXlsxWasmBridge(source, status, runtime = createXlsxWasmRun
357
367
  rawCommitSelectionSetFormatInSession && rawCommitRangeHyperlinkInSession &&
358
368
  rawCommitRangeDataValidationInSession && rawCommitReviewCommentInSession && rawCommitApplyFilterInSession &&
359
369
  rawCommitClearFilterInSession && rawCommitApplySortInSession && rawSetRowOutlineGroupHiddenInSession &&
360
- rawSetColumnOutlineGroupHiddenInSession && rawSetSheetOutlineLevelInSession && rawDefineNameInSession
370
+ rawSetColumnOutlineGroupHiddenInSession && rawSetSheetOutlineLevelInSession && rawDefineNameInSession &&
371
+ rawCommitRangePasteSpecialInSession
361
372
  ? {
362
373
  commitCellFormulaInSession(handleId, request) {
363
374
  return normalizeFormulaCommitResult(rawCommitCellFormulaInSession(handleId, request));
@@ -380,6 +391,9 @@ export function createXlsxWasmBridge(source, status, runtime = createXlsxWasmRun
380
391
  commitRangeTransferInSession(handleId, request) {
381
392
  return normalizeRangeTransferCommitResult(rawCommitRangeTransferInSession(handleId, request));
382
393
  },
394
+ commitRangePasteSpecialInSession(handleId, request) {
395
+ return normalizeRangePasteCommitResult(rawCommitRangePasteSpecialInSession(handleId, request));
396
+ },
383
397
  commitRangeFormatInSession(handleId, request) {
384
398
  return normalizeRangeFormatCommitResult(rawCommitRangeFormatInSession(handleId, request));
385
399
  },
@@ -635,6 +649,9 @@ export function createXlsxWasmBridge(source, status, runtime = createXlsxWasmRun
635
649
  commitRangeTransfer(bytes, request) {
636
650
  return normalizeRangeTransferCommitResult(raw.commitRangeTransfer(bytes, request));
637
651
  },
652
+ commitRangePasteSpecial(bytes, request) {
653
+ return normalizeRangePasteCommitResult(raw.commitRangePasteSpecial(bytes, request));
654
+ },
638
655
  commitRangeClear(bytes, request) {
639
656
  return normalizeRangeClearCommitResult(raw.commitRangeClear(bytes, request));
640
657
  },
@@ -1,4 +1,4 @@
1
- import type { XlsxFormulaCommitRequest, XlsxFormulaCommitResult, XlsxFormulaRecalculateResult, XlsxLayoutMetricResizeRequest, XlsxLayoutMetricResizeResult, XlsxLayoutMetricVisibilityRequest, XlsxLayoutMetricVisibilityResult, XlsxFrozenPaneRequest, XlsxFrozenPaneResult, XlsxMergeCellsRequest, XlsxMergeCellsResult, XlsxRangeClearCommitRequest, XlsxRangeClearCommitResult, XlsxRangeFillCommitRequest, XlsxRangeFillCommitResult, XlsxRangeFormatCommitRequest, XlsxRangeFormatCommitResult, XlsxRangePasteCommitRequest, XlsxRangePasteCommitResult, XlsxRangeTransferCommitRequest, XlsxRangeTransferCommitResult, XlsxRuntimeSessionExportRequest, XlsxRuntimeSessionMutationReceipt, XlsxRuntimeWarning, XlsxSessionRecalculateRequest, XlsxSheetStructureMutationRequest, XlsxSheetStructureMutationResult, XlsxSheetTabMutationRequest, XlsxSheetTabMutationResult, XlsxShiftCellsCommitRequest, XlsxShiftCellsCommitResult, XlsxTableAppendRowRequest, XlsxTableAppendRowResult } from "../runtime/index.ts";
1
+ import type { XlsxFormulaCommitRequest, XlsxFormulaCommitResult, XlsxFormulaRecalculateResult, XlsxLayoutMetricResizeRequest, XlsxLayoutMetricResizeResult, XlsxLayoutMetricVisibilityRequest, XlsxLayoutMetricVisibilityResult, XlsxFrozenPaneRequest, XlsxFrozenPaneResult, XlsxMergeCellsRequest, XlsxMergeCellsResult, XlsxRangeClearCommitRequest, XlsxRangeClearCommitResult, XlsxRangeFillCommitRequest, XlsxRangeFillCommitResult, XlsxRangeFormatCommitRequest, XlsxRangeFormatCommitResult, XlsxRangePasteCommitRequest, XlsxRangePasteCommitResult, XlsxRangePasteSpecialCommitRequest, XlsxRangeTransferCommitRequest, XlsxRangeTransferCommitResult, XlsxRuntimeSessionExportRequest, XlsxRuntimeSessionMutationReceipt, XlsxRuntimeWarning, XlsxSessionRecalculateRequest, XlsxSheetStructureMutationRequest, XlsxSheetStructureMutationResult, XlsxSheetTabMutationRequest, XlsxSheetTabMutationResult, XlsxShiftCellsCommitRequest, XlsxShiftCellsCommitResult, XlsxTableAppendRowRequest, XlsxTableAppendRowResult } from "../runtime/index.ts";
2
2
  import type { XlsxBlocker } from "../shared.ts";
3
3
  import type { XlsxRuntimeCommandVerdict } from "../runtime/index.ts";
4
4
  import { type XlsxWasmBridge } from "./bridge-contract.ts";
@@ -67,6 +67,8 @@ export interface XlsxWorkbookMutationRouter {
67
67
  commitRangeFill(request: XlsxRangeFillCommitRequest): XlsxRangeFillCommitResult;
68
68
  commitRangePaste(request: XlsxRangePasteCommitRequest): XlsxRangePasteCommitResult;
69
69
  commitRangeTransfer(request: XlsxRangeTransferCommitRequest): XlsxRangeTransferCommitResult;
70
+ /** X5-U-002 (b) paste special, All or Values, with or without Transpose (range-paste-special-v1). */
71
+ commitRangePasteSpecial(request: XlsxRangePasteSpecialCommitRequest): XlsxRangePasteCommitResult;
70
72
  commitRangeFormat(request: XlsxRangeFormatCommitRequest): XlsxRangeFormatCommitResult;
71
73
  resizeColumnWidth(request: XlsxLayoutMetricResizeRequest): XlsxLayoutMetricResizeResult;
72
74
  resizeRowHeight(request: XlsxLayoutMetricResizeRequest): XlsxLayoutMetricResizeResult;
@@ -63,6 +63,9 @@ export function createXlsxWorkbookMutationRouter(bridge, init) {
63
63
  commitRangeTransfer(request) {
64
64
  return track(bridge.commitRangeTransferInSession(handleId, request));
65
65
  },
66
+ commitRangePasteSpecial(request) {
67
+ return track(bridge.commitRangePasteSpecialInSession(handleId, request));
68
+ },
66
69
  commitRangeFormat(request) {
67
70
  return track(bridge.commitRangeFormatInSession(handleId, request));
68
71
  },
@@ -128,6 +131,9 @@ export function createXlsxWorkbookMutationRouter(bridge, init) {
128
131
  commitRangeTransfer(request) {
129
132
  return adopt(bridge.commitRangeTransfer(currentBytes, request));
130
133
  },
134
+ commitRangePasteSpecial(request) {
135
+ return adopt(bridge.commitRangePasteSpecial(currentBytes, request));
136
+ },
131
137
  commitRangeFormat(request) {
132
138
  return adopt(bridge.commitRangeFormat(currentBytes, request));
133
139
  },
@@ -121,13 +121,18 @@ export function encodeSheetWindowBinaryReference(readback) {
121
121
  flags |= 0x0040;
122
122
  if (cell.borderLeft)
123
123
  flags |= 0x0080;
124
- // X5-U-008 (ii): two spare bits (8-9) carry vertical alignment.
124
+ // X5-U-008 (ii): spare bits carry vertical alignment; X5-U-044 (bridge
125
+ // v51) widened the field to bits 8-10 for justify (4) / distributed (5).
125
126
  if (cell.verticalAlignment === "top")
126
127
  flags |= 0x0100;
127
128
  else if (cell.verticalAlignment === "middle")
128
129
  flags |= 0x0200;
129
130
  else if (cell.verticalAlignment === "bottom")
130
131
  flags |= 0x0300;
132
+ else if (cell.verticalAlignment === "justify")
133
+ flags |= 0x0400;
134
+ else if (cell.verticalAlignment === "distributed")
135
+ flags |= 0x0500;
131
136
  cellView.setUint16(o + 76, flags, true);
132
137
  let mergedIdx = SHEET_WINDOW_U32_NONE;
133
138
  if (cell.mergeRole !== "unmerged") {
@@ -141,7 +146,10 @@ export function encodeSheetWindowBinaryReference(readback) {
141
146
  mergedIdx = found;
142
147
  }
143
148
  cellView.setUint32(o + 80, mergedIdx, true);
144
- const hasRare = cell.selectionHandle !== undefined || cell.blockers.length > 0 || cell.hyperlink !== undefined;
149
+ const hasRare = cell.selectionHandle !== undefined ||
150
+ cell.blockers.length > 0 ||
151
+ cell.hyperlink !== undefined ||
152
+ cell.borderStyles !== undefined;
145
153
  let rareIdx = SHEET_WINDOW_U32_NONE;
146
154
  if (hasRare) {
147
155
  rareIdx = rareCells.length;
@@ -149,7 +157,9 @@ export function encodeSheetWindowBinaryReference(readback) {
149
157
  ...(cell.selectionHandle !== undefined ? { selectionHandle: cell.selectionHandle } : {}),
150
158
  ...(cell.blockers.length > 0 ? { blockers: cell.blockers } : {}),
151
159
  // X5-U-009 (bridge v31): the link rides the side table.
152
- ...(cell.hyperlink !== undefined ? { hyperlink: cell.hyperlink } : {})
160
+ ...(cell.hyperlink !== undefined ? { hyperlink: cell.hyperlink } : {}),
161
+ // X5-U-044 (bridge v51): non-thin edge styles ride the side table.
162
+ ...(cell.borderStyles !== undefined ? { borderStyles: cell.borderStyles } : {})
153
163
  });
154
164
  }
155
165
  cellView.setUint32(o + 84, rareIdx, true);
@@ -1,5 +1,5 @@
1
1
  import type { XlsxReadbackEnvelope, XlsxScopeHandle } from "../shared.ts";
2
- import type { XlsxUiAccessibilitySummary, XlsxUiBlocker, XlsxUiOperationCapabilityRecord, XlsxUiPaintObjectGeometry, XlsxUiPaintSelectionGeometry, XlsxUiPaintSparklineGeometry, XlsxUiSelectionReadback, XlsxUiSheetExtent, XlsxUiSheetWindowOrigin, XlsxUiSheetWindowCacheReadback, XlsxUiCellHyperlink, XlsxUiSheetWindowCoordinatePosture, XlsxUiSheetWindowDataValidation, XlsxUiSheetWindowMergedRange, XlsxUiSheetWindowPanePartition, XlsxUiSheetWindowReadback, XlsxUiViewportReadback } from "../ui/index.ts";
2
+ import type { XlsxUiAccessibilitySummary, XlsxUiBlocker, XlsxUiOperationCapabilityRecord, XlsxUiPaintObjectGeometry, XlsxUiPaintSelectionGeometry, XlsxUiPaintSparklineGeometry, XlsxUiSelectionReadback, XlsxUiSheetExtent, XlsxUiSheetWindowOrigin, XlsxUiSheetWindowCacheReadback, XlsxUiCellHyperlink, XlsxUiSheetWindowCell, XlsxUiSheetWindowCoordinatePosture, XlsxUiSheetWindowDataValidation, XlsxUiSheetWindowMergedRange, XlsxUiSheetWindowPanePartition, XlsxUiSheetWindowReadback, XlsxUiViewportReadback } from "../ui/index.ts";
3
3
  /**
4
4
  * T5 — Binary Sheet-Window Snapshot v1 (`xlsx-sheet-window-binary/1`) decoder.
5
5
  *
@@ -128,6 +128,12 @@ export interface XlsxSheetWindowRareCell {
128
128
  * 96-byte record.
129
129
  */
130
130
  readonly hyperlink?: XlsxUiCellHyperlink;
131
+ /**
132
+ * X5-U-044 (bridge v51): per-edge border line styles of a cell with a
133
+ * non-thin edge. Rare per window, so it rides the side table; the frozen
134
+ * 96-byte record keeps edge presence only.
135
+ */
136
+ readonly borderStyles?: XlsxUiSheetWindowCell["borderStyles"];
131
137
  }
132
138
  /**
133
139
  * The JSON half of the hybrid envelope. Everything O(1)-sized, rare, or
@@ -216,7 +216,7 @@ function defineLazy(target, key, compute, recover) {
216
216
  * X5-U-008 (ii): vertical alignment by the two-bit code packed into cell-flag
217
217
  * bits 8-9. Index 0 is "unset" — the runtime resolved no explicit anchor.
218
218
  */
219
- const SHEET_WINDOW_VERTICAL_ALIGNMENTS = [undefined, "top", "middle", "bottom"];
219
+ const SHEET_WINDOW_VERTICAL_ALIGNMENTS = [undefined, "top", "middle", "bottom", "justify", "distributed", undefined, undefined];
220
220
  /** Cell-record string-id slots in on-wire order (16 × u32 at record offset 8). */
221
221
  const CellStr = {
222
222
  CellId: 0,
@@ -353,9 +353,11 @@ function decodeCells(ctx) {
353
353
  const horizontalAlignment = strings.at(str(CellStr.HorizontalAlignment));
354
354
  if (horizontalAlignment !== undefined)
355
355
  cell.horizontalAlignment = horizontalAlignment;
356
- // X5-U-008 (ii): vertical alignment rides two spare flag bits (8-9) of the
357
- // frozen 96-byte cell record rather than a 17th string slot.
358
- const verticalAlignment = SHEET_WINDOW_VERTICAL_ALIGNMENTS[(flags >> 8) & 0x03];
356
+ // X5-U-008 (ii): vertical alignment rides spare flag bits of the frozen
357
+ // 96-byte cell record rather than a 17th string slot. X5-U-044 (bridge
358
+ // v51) widened the field to three bits (8-10): 4 = justify,
359
+ // 5 = distributed; 6 and 7 are unassigned and decode as unset.
360
+ const verticalAlignment = SHEET_WINDOW_VERTICAL_ALIGNMENTS[(flags >> 8) & 0x07];
359
361
  if (verticalAlignment !== undefined)
360
362
  cell.verticalAlignment = verticalAlignment;
361
363
  if ((flags & 0x0008) !== 0)
@@ -381,6 +383,8 @@ function decodeCells(ctx) {
381
383
  cell.postureMarkers = rare?.postureMarkers ?? strings.markers(markersId);
382
384
  if (rare?.hyperlink !== undefined)
383
385
  cell.hyperlink = rare.hyperlink;
386
+ if (rare?.borderStyles !== undefined)
387
+ cell.borderStyles = rare.borderStyles;
384
388
  out[i] = cell;
385
389
  }
386
390
  return out;
@@ -0,0 +1 @@
1
+ export declare const XLSX_WASM_WEB_SHA256: string;
@@ -0,0 +1,3 @@
1
+ // Written by scripts/prepare-package.mjs at pack time: the SHA-256 of
2
+ // generated/wasm-web/xlsx_substrate_wasm_bg.wasm in this package.
3
+ export const XLSX_WASM_WEB_SHA256 = "b11b60d1d0e457f92ca497500e6e174a340bb523b0ba90899ab5f8e96301a6dc";
@@ -1,6 +1,7 @@
1
1
  import { type RawXlsxWasmModule, type XlsxWasmBridgeLoadResult } from "./bridge-contract.ts";
2
- export { BRIDGE_CAPABILITIES, BRIDGE_VERSION, missingXlsxWasmCapabilities, supportsRuntimeSessionMutations, type XlsxRuntimeSessionHandle, type XlsxRuntimeSessionMutationBridge, type XlsxRuntimeSessionOpenRequest, type XlsxSelectionSetRequest, type XlsxWasmBridge, type XlsxWasmBridgeLoadResult, type XlsxWasmBridgeStatus } from "./bridge-contract.ts";
2
+ export { BRIDGE_CAPABILITIES, BRIDGE_VERSION, isXlsxWasmBridgeError, missingXlsxWasmCapabilities, supportsRuntimeSessionMutations, XlsxWasmBridgeError, type XlsxRuntimeSessionHandle, type XlsxRuntimeSessionMutationBridge, type XlsxRuntimeSessionOpenRequest, type XlsxSelectionSetRequest, type XlsxWasmBridge, type XlsxWasmBridgeErrorCode, type XlsxWasmBridgeLoadResult, type XlsxWasmBridgeStatus } from "./bridge-contract.ts";
3
3
  export { createXlsxWorkbookMutationRouter, type XlsxWorkbookBytesSnapshot, type XlsxWorkbookMutationMode, type XlsxWorkbookMutationRouter, type XlsxWorkbookMutationRouterInit } from "./session-router.ts";
4
+ export { XLSX_WASM_WEB_SHA256 } from "./web-sha256.ts";
4
5
  /**
5
6
  * Accepted wasm sources for the web glue's init entry point
6
7
  * (wasm-bindgen `--target web`): URL/string/Request/Response stream through
package/dist/wasm/web.js CHANGED
@@ -14,8 +14,14 @@ import { createXlsxWasmBridge, createXlsxWasmRuntime, readWasmMemoryLimits, vali
14
14
  // comes from a module with no `node:` import; the bundling guard
15
15
  // test/xlsx/browser-entry-node-free.test.ts holds that for every browser
16
16
  // entry of the package.
17
- export { BRIDGE_CAPABILITIES, BRIDGE_VERSION, missingXlsxWasmCapabilities, supportsRuntimeSessionMutations } from "./bridge-contract.js";
17
+ export { BRIDGE_CAPABILITIES, BRIDGE_VERSION,
18
+ // X1-D-088: a browser host recognises the two typed bridge errors
19
+ // (out-of-memory-budget, wasm-instance-lost) without the Node loader.
20
+ isXlsxWasmBridgeError, missingXlsxWasmCapabilities, supportsRuntimeSessionMutations, XlsxWasmBridgeError } from "./bridge-contract.js";
18
21
  export { createXlsxWorkbookMutationRouter } from "./session-router.js";
22
+ // X1-D-088: the packed binary's SHA-256, for hosts that check the wasm they
23
+ // fetched or received before instantiating it (written at prepack).
24
+ export { XLSX_WASM_WEB_SHA256 } from "./web-sha256.js";
19
25
  /**
20
26
  * Instantiate and mount the XLSX wasm bridge from the web-target artifact.
21
27
  *
@@ -66,6 +66,19 @@ export function commitRangePaste(bytes: Uint8Array, request: any): any;
66
66
 
67
67
  export function commitRangePasteInSession(handle_id: string, request: any): any;
68
68
 
69
+ /**
70
+ * X5-U-002 (b): Paste Special on the bytes lane. Pastes the cells of
71
+ * `sourceHandle` (any sheet) at `targetStart` on `sheetId`, All or Values,
72
+ * with or without Transpose (`sheets_runtime::RuntimePasteSpecialPayload`),
73
+ * then exports. Refusals come back typed with no bytes.
74
+ */
75
+ export function commitRangePasteSpecial(bytes: Uint8Array, request: any): any;
76
+
77
+ /**
78
+ * X5-U-002 (b): the in-session port of `commitRangePasteSpecial`.
79
+ */
80
+ export function commitRangePasteSpecialInSession(handle_id: string, request: any): any;
81
+
69
82
  export function commitRangeTransfer(bytes: Uint8Array, request: any): any;
70
83
 
71
84
  export function commitRangeTransferInSession(handle_id: string, request: any): any;
@@ -412,6 +425,8 @@ export interface InitOutput {
412
425
  readonly commitRangeHyperlinkInSession: (a: number, b: number, c: any) => [number, number, number];
413
426
  readonly commitRangePaste: (a: number, b: number, c: any) => [number, number, number];
414
427
  readonly commitRangePasteInSession: (a: number, b: number, c: any) => [number, number, number];
428
+ readonly commitRangePasteSpecial: (a: number, b: number, c: any) => [number, number, number];
429
+ readonly commitRangePasteSpecialInSession: (a: number, b: number, c: any) => [number, number, number];
415
430
  readonly commitRangeTransfer: (a: number, b: number, c: any) => [number, number, number];
416
431
  readonly commitRangeTransferInSession: (a: number, b: number, c: any) => [number, number, number];
417
432
  readonly commitReviewComment: (a: number, b: number, c: any) => [number, number, number];
@@ -397,6 +397,41 @@ export function createXlsxSubstrateGlue() {
397
397
  return takeFromExternrefTable0(ret[0]);
398
398
  }
399
399
 
400
+ /**
401
+ * X5-U-002 (b): Paste Special on the bytes lane. Pastes the cells of
402
+ * `sourceHandle` (any sheet) at `targetStart` on `sheetId`, All or Values,
403
+ * with or without Transpose (`sheets_runtime::RuntimePasteSpecialPayload`),
404
+ * then exports. Refusals come back typed with no bytes.
405
+ * @param {Uint8Array} bytes
406
+ * @param {any} request
407
+ * @returns {any}
408
+ */
409
+ function commitRangePasteSpecial(bytes, request) {
410
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
411
+ const len0 = WASM_VECTOR_LEN;
412
+ const ret = wasm.commitRangePasteSpecial(ptr0, len0, request);
413
+ if (ret[2]) {
414
+ throw takeFromExternrefTable0(ret[1]);
415
+ }
416
+ return takeFromExternrefTable0(ret[0]);
417
+ }
418
+
419
+ /**
420
+ * X5-U-002 (b): the in-session port of `commitRangePasteSpecial`.
421
+ * @param {string} handle_id
422
+ * @param {any} request
423
+ * @returns {any}
424
+ */
425
+ function commitRangePasteSpecialInSession(handle_id, request) {
426
+ const ptr0 = passStringToWasm0(handle_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
427
+ const len0 = WASM_VECTOR_LEN;
428
+ const ret = wasm.commitRangePasteSpecialInSession(ptr0, len0, request);
429
+ if (ret[2]) {
430
+ throw takeFromExternrefTable0(ret[1]);
431
+ }
432
+ return takeFromExternrefTable0(ret[0]);
433
+ }
434
+
400
435
  /**
401
436
  * @param {Uint8Array} bytes
402
437
  * @param {any} request
@@ -2398,6 +2433,8 @@ export function createXlsxSubstrateGlue() {
2398
2433
  commitRangeHyperlinkInSession,
2399
2434
  commitRangePaste,
2400
2435
  commitRangePasteInSession,
2436
+ commitRangePasteSpecial,
2437
+ commitRangePasteSpecialInSession,
2401
2438
  commitRangeTransfer,
2402
2439
  commitRangeTransferInSession,
2403
2440
  commitReviewComment,
@@ -2489,5 +2526,5 @@ export function createXlsxSubstrateGlue() {
2489
2526
  }
2490
2527
 
2491
2528
  const __xlsxDefaultGlue = createXlsxSubstrateGlue();
2492
- 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, 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;
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;
2493
2530
  export default __xlsxDefaultGlue.default;
@@ -26,6 +26,8 @@ export const commitRangeHyperlink: (a: number, b: number, c: any) => [number, nu
26
26
  export const commitRangeHyperlinkInSession: (a: number, b: number, c: any) => [number, number, number];
27
27
  export const commitRangePaste: (a: number, b: number, c: any) => [number, number, number];
28
28
  export const commitRangePasteInSession: (a: number, b: number, c: any) => [number, number, number];
29
+ export const commitRangePasteSpecial: (a: number, b: number, c: any) => [number, number, number];
30
+ export const commitRangePasteSpecialInSession: (a: number, b: number, c: any) => [number, number, number];
29
31
  export const commitRangeTransfer: (a: number, b: number, c: any) => [number, number, number];
30
32
  export const commitRangeTransferInSession: (a: number, b: number, c: any) => [number, number, number];
31
33
  export const commitReviewComment: (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.4.0",
3
+ "version": "0.5.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-v50",
6
+ "bridgeVersion": "xlsx-wasm-bridge-v52",
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