material-react-table 0.7.0-alpha.8 → 0.7.0-alpha.9

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.0-alpha.8",
2
+ "version": "0.7.0-alpha.9",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI implementation of react-table, inspired by material-table and the MUI X DataGrid, written from the ground up in TypeScript.",
@@ -87,6 +87,8 @@ export const MRT_TableBodyCell: FC<Props> = ({ cell, tableInstance }) => {
87
87
  width={skeletonWidth}
88
88
  {...muiTableBodyCellSkeletonProps}
89
89
  />
90
+ ) : column.columnDefType === 'display' ? (
91
+ column.Cell?.({ cell, tableInstance })
90
92
  ) : cell.getIsPlaceholder() ||
91
93
  (row.getIsGrouped() &&
92
94
  column.id !==
@@ -100,7 +102,7 @@ export const MRT_TableBodyCell: FC<Props> = ({ cell, tableInstance }) => {
100
102
  column.enableClickToCopy !== false ? (
101
103
  <>
102
104
  <MRT_CopyButton cell={cell} tableInstance={tableInstance}>
103
- {cell.renderCell()}
105
+ {cell.column?.Cell?.({ cell, tableInstance }) ?? cell.renderCell()}
104
106
  </MRT_CopyButton>
105
107
  {row.getIsGrouped() && <> ({row.subRows?.length})</>}
106
108
  </>