material-react-table 1.0.0-beta.11 → 1.0.0-beta.12

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/dist/index.d.ts CHANGED
@@ -386,9 +386,11 @@ declare type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<Column
386
386
  row: MRT_Row<TData>;
387
387
  table: MRT_TableInstance<TData>;
388
388
  }) => TextFieldProps);
389
- muiTableBodyCellProps?: TableCellProps | (({ cell, table, }: {
390
- table: MRT_TableInstance<TData>;
389
+ muiTableBodyCellProps?: TableCellProps | (({ cell, column, row, table, }: {
391
390
  cell: MRT_Cell<TData>;
391
+ column: MRT_Column<TData>;
392
+ row: MRT_Row<TData>;
393
+ table: MRT_TableInstance<TData>;
392
394
  }) => TableCellProps);
393
395
  muiTableFooterCellProps?: TableCellProps | (({ table, column, }: {
394
396
  table: MRT_TableInstance<TData>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-beta.11",
2
+ "version": "1.0.0-beta.12",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
@@ -398,10 +398,14 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
398
398
  | TableCellProps
399
399
  | (({
400
400
  cell,
401
+ column,
402
+ row,
401
403
  table,
402
404
  }: {
403
- table: MRT_TableInstance<TData>;
404
405
  cell: MRT_Cell<TData>;
406
+ column: MRT_Column<TData>;
407
+ row: MRT_Row<TData>;
408
+ table: MRT_TableInstance<TData>;
405
409
  }) => TableCellProps);
406
410
  muiTableFooterCellProps?:
407
411
  | TableCellProps
@@ -68,7 +68,7 @@ export const MRT_TableBodyCell: FC<Props> = ({
68
68
 
69
69
  const mcTableCellBodyProps =
70
70
  columnDef.muiTableBodyCellProps instanceof Function
71
- ? columnDef.muiTableBodyCellProps({ cell, table })
71
+ ? columnDef.muiTableBodyCellProps({ cell, column, row, table })
72
72
  : columnDef.muiTableBodyCellProps;
73
73
 
74
74
  const tableCellProps = {