cecomponent 1.0.146 → 1.0.148

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.
@@ -86,7 +86,12 @@ interface CEDataGridDynamicTableProps {
86
86
  showPagination?: boolean;
87
87
  shouldResetSearchOnDataChange?: boolean;
88
88
  pageSizeOptions?: Array<number>;
89
- handleSelectedRows?: (rows: number[]) => void;
89
+ handleSelectedRows?: ((rows: any[]) => void) | ((payload: {
90
+ ids: (string | number)[];
91
+ rows?: any[];
92
+ }) => void);
93
+ /** Field name OR extractor function to use as the stable selection key on each row. Defaults to `id`. */
94
+ selectionKey?: string | ((row: any) => string | number);
90
95
  rowsSelected?: Set<number>;
91
96
  /** Called when the current page changes; receives the new page index (0-based) */
92
97
  onPageChange?: (page: number) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "1.0.146",
4
+ "version": "1.0.148",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",