@opencorestack/opengridx 1.2.0 → 1.2.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,48 @@
5
5
 
6
6
  ---
7
7
 
8
+ ## [1.2.2] — 2026-09-08
9
+
10
+ ### Fixed
11
+ - `CellErrorBoundary` — moved `renderFn()` call into a module-scope `CellRenderTarget`
12
+ child component so the throw happens in a descendant; a boundary cannot catch errors
13
+ thrown inside its own `render()`.
14
+ - `CellErrorBoundary` — changed `resetKey` from `value` to `row` object reference so the
15
+ boundary resets whenever fresh row objects are provided, not just when the cell value
16
+ changes. Enables "Restore" to clear error state correctly.
17
+ - `exportToPdf` — aggregation footer now computed directly from the exported rows in the
18
+ demo, bypassing the `useEffect`-based `getAggregationResult()` path that could silently
19
+ return `null` due to stale closures.
20
+ - `exportToPdf` — aggregation footer text color is now explicitly `[0, 0, 0]` (black) to
21
+ prevent text from appearing invisible against the light gray footer background.
22
+ - `exportToPdf` — switched to standalone `autoTable(doc, opts)` function to avoid
23
+ unreliable ESM prototype patching in Vite dynamic imports.
24
+
25
+ ### Added
26
+ - `GridApi.getAllFilteredRows()` — returns all filtered and sorted rows regardless of
27
+ pagination. Use this in export handlers to include every row, not just the current page.
28
+ - `CellErrorBoundaryDemo` — 100 rows, 10 specific rows throw on demand (rows 10, 20 … 100),
29
+ with correct Restore behaviour.
30
+
31
+ ---
32
+
33
+ ## [1.2.1] — 2026-09-07
34
+
35
+ ### Fixed
36
+ - `CellErrorBoundary` now accepts a `renderFn: () => React.ReactNode` prop and calls it
37
+ inside its own `render()`, so React correctly catches thrown errors from `renderCell`.
38
+ Previously the call happened in the parent's render phase — before the boundary — causing
39
+ the entire app to crash instead of showing a per-cell error indicator.
40
+ - `exportToPdf` double-cast through `unknown` to satisfy the installed `jspdf` TypeScript
41
+ types (the library's class does not expose `autoTable`/`lastAutoTable` in its official
42
+ type definitions).
43
+ - Added `jspdf` and `jspdf-autotable` to `devDependencies` so local development and demo
44
+ builds work without a manual `npm install`.
45
+ - Deploy workflow now copies `index.html` → `404.html` so GitHub Pages serves the SPA for
46
+ direct URL access to any demo route.
47
+
48
+ ---
49
+
8
50
  ## [1.2.0] — 2026-09-03
9
51
 
10
52
  ### Added
package/dist/index.d.ts CHANGED
@@ -402,6 +402,8 @@ export declare interface GridApi {
402
402
  getAllRows: () => GridRowModel[];
403
403
  /** Returns all rows currently visible after filtering and sorting. */
404
404
  getVisibleRows: () => GridRowModel[];
405
+ /** Returns all filtered and sorted rows, ignoring pagination. Use this for full-dataset exports. */
406
+ getAllFilteredRows: () => GridRowModel[];
405
407
  /** Returns the current aggregation results. */
406
408
  getAggregationResult: () => Record<string, unknown> | null;
407
409
  /** Returns the active aggregation configuration. */