material-react-table 1.0.5 → 1.0.6

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": "1.0.5",
2
+ "version": "1.0.6",
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.",
@@ -119,9 +119,10 @@ export const getLeadingDisplayColumnIds = <
119
119
  ) =>
120
120
  [
121
121
  (props.enableRowDragging || props.enableRowOrdering) && 'mrt-row-drag',
122
- ((props.positionActionsColumn === 'first' && props.enableRowActions) ||
123
- (props.enableEditing &&
124
- ['row', 'modal'].includes(props.editingMode ?? ''))) &&
122
+ props.positionActionsColumn === 'first' &&
123
+ (props.enableRowActions ||
124
+ (props.enableEditing &&
125
+ ['row', 'modal'].includes(props.editingMode ?? ''))) &&
125
126
  'mrt-row-actions',
126
127
  props.positionExpandColumn === 'first' &&
127
128
  showExpandColumn(props) &&
@@ -135,9 +136,10 @@ export const getTrailingDisplayColumnIds = <
135
136
  >(
136
137
  props: MaterialReactTableProps<TData>,
137
138
  ) => [
138
- ((props.positionActionsColumn === 'last' && props.enableRowActions) ||
139
- (props.enableEditing &&
140
- ['row', 'modal'].includes(props.editingMode ?? ''))) &&
139
+ props.positionActionsColumn === 'last' &&
140
+ (props.enableRowActions ||
141
+ (props.enableEditing &&
142
+ ['row', 'modal'].includes(props.editingMode ?? ''))) &&
141
143
  'mrt-row-actions',
142
144
  props.positionExpandColumn === 'last' &&
143
145
  showExpandColumn(props) &&