material-react-table 0.35.1 → 0.35.2

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
@@ -613,7 +613,7 @@ declare type MaterialReactTableProps<TData extends Record<string, any> = {}> = O
613
613
  onDensityChange?: OnChangeFn<boolean>;
614
614
  onDraggingColumnChange?: OnChangeFn<MRT_Column<TData> | null>;
615
615
  onDraggingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
616
- onEditRowSubmit?: ({ row, table, values, }: {
616
+ onEditingRowSave?: ({ row, table, values, }: {
617
617
  row: MRT_Row<TData>;
618
618
  table: MRT_TableInstance<TData>;
619
619
  values: Record<LiteralUnion<string & DeepKeys<TData>>, any>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.35.1",
2
+ "version": "0.35.2",
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.",
@@ -53,13 +53,13 @@
53
53
  "@babel/preset-react": "^7.18.6",
54
54
  "@emotion/react": "^11.10.0",
55
55
  "@emotion/styled": "^11.10.0",
56
- "@faker-js/faker": "^7.3.0",
56
+ "@faker-js/faker": "^7.4.0",
57
57
  "@mui/icons-material": "^5.8.4",
58
58
  "@mui/material": "^5.10.0",
59
59
  "@rollup/plugin-babel": "^5.3.1",
60
60
  "@rollup/plugin-node-resolve": "^13.3.0",
61
61
  "@rollup/plugin-typescript": "^8.3.4",
62
- "@size-limit/preset-small-lib": "^8.0.0",
62
+ "@size-limit/preset-small-lib": "^8.0.1",
63
63
  "@storybook/addon-a11y": "^6.5.10",
64
64
  "@storybook/addon-actions": "^6.5.10",
65
65
  "@storybook/addon-essentials": "^6.5.10",
@@ -78,10 +78,10 @@
78
78
  "react": "^18.2.0",
79
79
  "react-dom": "^18.2.0",
80
80
  "react-is": "^18.2.0",
81
- "rollup": "^2.77.2",
81
+ "rollup": "^2.77.3",
82
82
  "rollup-plugin-dts": "^4.2.2",
83
83
  "rollup-plugin-peer-deps-external": "^2.2.4",
84
- "size-limit": "^8.0.0",
84
+ "size-limit": "^8.0.1",
85
85
  "storybook-dark-mode": "^1.1.0",
86
86
  "tslib": "^2.4.0",
87
87
  "typescript": "^4.7.4"
@@ -727,7 +727,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
727
727
  onDensityChange?: OnChangeFn<boolean>;
728
728
  onDraggingColumnChange?: OnChangeFn<MRT_Column<TData> | null>;
729
729
  onDraggingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
730
- onEditRowSubmit?: ({
730
+ onEditingRowSave?: ({
731
731
  row,
732
732
  table,
733
733
  values,
@@ -13,7 +13,7 @@ export const MRT_EditActionButtons: FC<Props> = ({ row, table }) => {
13
13
  options: {
14
14
  icons: { CancelIcon, SaveIcon },
15
15
  localization,
16
- onEditRowSubmit,
16
+ onEditingRowSave,
17
17
  },
18
18
  setEditingRow,
19
19
  } = table;
@@ -25,7 +25,7 @@ export const MRT_EditActionButtons: FC<Props> = ({ row, table }) => {
25
25
  };
26
26
 
27
27
  const handleSave = () => {
28
- onEditRowSubmit?.({
28
+ onEditingRowSave?.({
29
29
  row: editingRow ?? row,
30
30
  table,
31
31
  values: editingRow?._valuesCache ?? { ...row.original },