trotl-table 1.0.95 → 1.0.96

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/Table.cjs.js CHANGED
@@ -9708,7 +9708,7 @@ function TableInner({
9708
9708
  downloadCallback = () => {},
9709
9709
  // new undelete callback
9710
9710
  undeleteCallback = () => {},
9711
- // callback for cell edits: (row, accessor, newValue)
9711
+ // callback for cell edits: (row, accessor, newValue, column)
9712
9712
  onCellChange = () => {},
9713
9713
  // callback for any cell click
9714
9714
  cellCallback = () => {},
@@ -10686,7 +10686,7 @@ function TableInner({
10686
10686
  });
10687
10687
  refreshTriggerRef.current?.();
10688
10688
  try {
10689
- onCellChangeRef.current?.(row, accessor, next);
10689
+ onCellChangeRef.current?.(row, accessor, next, col);
10690
10690
  } catch (err) {
10691
10691
  console.error("onCellChange error", err);
10692
10692
  }
@@ -10718,7 +10718,7 @@ function TableInner({
10718
10718
  });
10719
10719
  refreshTriggerRef.current?.();
10720
10720
  try {
10721
- onCellChangeRef.current?.(row, accessor, next);
10721
+ onCellChangeRef.current?.(row, accessor, next, col);
10722
10722
  } catch (err) {
10723
10723
  console.error("onCellChange error", err);
10724
10724
  }
@@ -10776,7 +10776,7 @@ function TableInner({
10776
10776
  });
10777
10777
  refreshTriggerRef.current?.();
10778
10778
  try {
10779
- onCellChangeRef.current?.(row, accessor, next);
10779
+ onCellChangeRef.current?.(row, accessor, next, col);
10780
10780
  } catch (err) {
10781
10781
  console.error("onCellChange error", err);
10782
10782
  }
@@ -10818,7 +10818,7 @@ function TableInner({
10818
10818
  });
10819
10819
  refreshTriggerRef.current?.();
10820
10820
  try {
10821
- onCellChangeRef.current?.(row, accessor, next);
10821
+ onCellChangeRef.current?.(row, accessor, next, col);
10822
10822
  } catch (err) {
10823
10823
  console.error("onCellChange error", err);
10824
10824
  }