@opencorestack/opengridx 1.2.0 → 1.2.1

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,23 @@
5
5
 
6
6
  ---
7
7
 
8
+ ## [1.2.1] — 2026-09-07
9
+
10
+ ### Fixed
11
+ - `CellErrorBoundary` now accepts a `renderFn: () => React.ReactNode` prop and calls it
12
+ inside its own `render()`, so React correctly catches thrown errors from `renderCell`.
13
+ Previously the call happened in the parent's render phase — before the boundary — causing
14
+ the entire app to crash instead of showing a per-cell error indicator.
15
+ - `exportToPdf` double-cast through `unknown` to satisfy the installed `jspdf` TypeScript
16
+ types (the library's class does not expose `autoTable`/`lastAutoTable` in its official
17
+ type definitions).
18
+ - Added `jspdf` and `jspdf-autotable` to `devDependencies` so local development and demo
19
+ builds work without a manual `npm install`.
20
+ - Deploy workflow now copies `index.html` → `404.html` so GitHub Pages serves the SPA for
21
+ direct URL access to any demo route.
22
+
23
+ ---
24
+
8
25
  ## [1.2.0] — 2026-09-03
9
26
 
10
27
  ### Added
@@ -3588,7 +3588,7 @@ class Kr extends ue.Component {
3588
3588
  title: this.state.error?.message ?? "Render error",
3589
3589
  children: "⚠"
3590
3590
  }
3591
- ) : this.props.children;
3591
+ ) : this.props.renderFn();
3592
3592
  }
3593
3593
  }
3594
3594
  function Yr(n) {
@@ -3712,15 +3712,22 @@ function Yr(n) {
3712
3712
  onCommit: () => p(),
3713
3713
  onCancel: () => p(!0)
3714
3714
  }
3715
- ) : a.renderCell ? /* @__PURE__ */ r.jsx(Kr, { field: a.field, resetKey: i, children: a.renderCell({
3716
- value: i,
3717
- row: l,
3718
- field: a.field,
3719
- colDef: a,
3720
- rowIndex: s,
3721
- colIndex: c,
3722
- rowMeta: S
3723
- }) }) : R })
3715
+ ) : a.renderCell ? /* @__PURE__ */ r.jsx(
3716
+ Kr,
3717
+ {
3718
+ field: a.field,
3719
+ resetKey: i,
3720
+ renderFn: () => a.renderCell({
3721
+ value: i,
3722
+ row: l,
3723
+ field: a.field,
3724
+ colDef: a,
3725
+ rowIndex: s,
3726
+ colIndex: c,
3727
+ rowMeta: S
3728
+ })
3729
+ }
3730
+ ) : R })
3724
3731
  }
3725
3732
  );
3726
3733
  }