@luminati-io/uikit 3.6.3 → 3.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -41326,13 +41326,19 @@ var TableBody = function TableBody(props) {
41326
41326
  var style = _objectSpread(_objectSpread({}, props.style), bodyProps.style);
41327
41327
  var onDragStart = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
41328
41328
  setIsDraggingRow(true);
41329
- onRowDragStart === null || onRowDragStart === void 0 || onRowDragStart(e, rowsById[e.draggableId]);
41329
+ var context = {
41330
+ page: page
41331
+ };
41332
+ onRowDragStart === null || onRowDragStart === void 0 || onRowDragStart(e, rowsById[e.draggableId], context);
41330
41333
  }, [page]);
41331
41334
  var onDragEnd = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e) {
41332
41335
  var _page$e$destination$i, _e$destination;
41333
41336
  setIsDraggingRow(false);
41334
- var destinationRowId = (_page$e$destination$i = page[(_e$destination = e.destination) === null || _e$destination === void 0 ? void 0 : _e$destination.index]) === null || _page$e$destination$i === void 0 ? void 0 : _page$e$destination$i.id;
41335
- onRowDragEnd === null || onRowDragEnd === void 0 || onRowDragEnd(e, rowsById[e.draggableId], rowsById[destinationRowId]);
41337
+ var destRowId = (_page$e$destination$i = page[(_e$destination = e.destination) === null || _e$destination === void 0 ? void 0 : _e$destination.index]) === null || _page$e$destination$i === void 0 ? void 0 : _page$e$destination$i.id;
41338
+ var context = {
41339
+ previousPage: page
41340
+ };
41341
+ onRowDragEnd === null || onRowDragEnd === void 0 || onRowDragEnd(e, rowsById[e.draggableId], rowsById[destRowId], context);
41336
41342
  }, [page]);
41337
41343
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_beautiful_dnd__WEBPACK_IMPORTED_MODULE_11__.DragDropContext, {
41338
41344
  onDragStart: onDragStart,