@beyondwork/xlsx-substrate-bindings 0.5.1 → 0.6.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,25 @@ and can rebuild the error with `deserializeXlsxWasmBridgeError`.
136
136
 
137
137
  ## Release notes
138
138
 
139
+ ### 0.6.0 (bridge `xlsx-wasm-bridge-v53`)
140
+
141
+ A MINOR release: the bridge moved from v52 to v53, so a host must take the
142
+ wasm and the TypeScript from this release together. These changes landed on
143
+ pe2 in #1865 and #1872:
144
+
145
+ - **Sparkline display options** (v53, X5-U-017). Each sparkline group in the
146
+ sheet-window readback now carries its display options in the JSON rest
147
+ half: the series and negative colours (rgb or a theme colour resolved at
148
+ import), the manual axis minimum and maximum (only on a custom axis),
149
+ right-to-left order, and the empty-cell mode (gap, zero or span). The
150
+ binary window records are unchanged. A host that paints sparklines can
151
+ honour them; the React package does. The highlight flags (negative,
152
+ markers, high, low, first, last) and their colours are not carried yet
153
+ (X5-U-101).
154
+ - **LET with Unicode names** (X5-C-091). A name with non-ASCII characters is
155
+ one token for the LET display strip and the `_xlfn.` storage and display
156
+ rewrites, so a defined name containing `_xlpm.` is no longer rewritten.
157
+
139
158
  ### 0.5.1 (bridge `xlsx-wasm-bridge-v52`)
140
159
 
141
160
  A PATCH release: the bridge stays v52, so a host on 0.5.0 can take 0.5.1
@@ -553,6 +553,16 @@ 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;
556
566
  }
557
567
  export interface XlsxUiPaintObjectGeometry {
558
568
  readonly sourcePart: string;
@@ -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-v53";
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";
@@ -72,7 +72,7 @@ export function supportsRuntimeSessionMutations(bridge) {
72
72
  RUNTIME_SESSION_MUTATION_METHODS.every((method) => typeof bridge[method] === "function"));
73
73
  }
74
74
  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)
75
+ const requiredBridgeVersion = "xlsx-wasm-bridge-v53"; // v53: X5-U-017 (sparkline display options ride the JSON rest half; v52 was X5-U-044)
76
76
  const requiredCapabilities = [
77
77
  "workflow-context-v2",
78
78
  "workflow-overlay-lanes-v1",
@@ -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 = "e68fddc4c0c8cae575424f2f251b8d6eae4367622ac4c4cf7351431eb6256376";
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.6.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-v53",
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