@ricsam/excel-to-formula-engine 0.2.1 → 0.3.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.
@@ -1,4 +1,4 @@
1
- import type { WorkbookData } from "@ricsam/formula-engine";
1
+ import type { CellStyle, WorkbookData } from "@ricsam/formula-engine";
2
2
  /**
3
3
  * Severity of a translation note.
4
4
  *
@@ -31,6 +31,12 @@ export interface Diagnostic {
31
31
  sheetName?: string;
32
32
  /** A1 reference when the diagnostic belongs to one cell. */
33
33
  cellReference?: string;
34
+ /**
35
+ * A1 ranges the diagnostic covers, when it belongs to an area rather than a
36
+ * single cell — for example the cells a skipped conditional formatting rule
37
+ * applied to. Absolute markers (`$`) are removed.
38
+ */
39
+ ranges?: string[];
34
40
  /** The Excel source text that produced the diagnostic. */
35
41
  source?: string;
36
42
  }
@@ -66,6 +72,11 @@ export interface ExcelSheetMetadata {
66
72
  tabColor?: string;
67
73
  }
68
74
  export interface ExcelWorkbookMetadata {
75
+ /** Resolved cell XF 0, in engine units. Informational fallback for clients;
76
+ * actual imported cells also receive effective direct styles. Absent when
77
+ * styles are disabled or the source has no default XF. Older imports did
78
+ * not retain this information and cannot reconstruct it losslessly. */
79
+ defaultCellStyle?: CellStyle;
69
80
  /** Source file name when the Blob carried one. */
70
81
  fileName?: string;
71
82
  /** Sheet names in their original workbook order. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/excel-to-formula-engine",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Convert an Excel .xlsx file into FormulaEngine WorkbookData, in the browser",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",
@@ -37,13 +37,14 @@
37
37
  "fflate": "^0.8.3"
38
38
  },
39
39
  "devDependencies": {
40
+ "@ricsam/formula-engine": "0.3.4",
40
41
  "@changesets/cli": "^3.0.2",
41
42
  "@types/bun": "^1.4.2",
42
43
  "exceljs": "^4.4.0",
43
44
  "typescript": "^5.9.2"
44
45
  },
45
46
  "peerDependencies": {
46
- "@ricsam/formula-engine": "0.3.0"
47
+ "@ricsam/formula-engine": "^0.3.4"
47
48
  },
48
49
  "files": [
49
50
  "dist"