@gravity-ui/dashkit 8.20.0 → 8.20.1

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.
@@ -281,7 +281,7 @@ function useMemoStateContext(props) {
281
281
  h: maxH ? Math.min(h, maxH) : h,
282
282
  w: maxW ? Math.min(w, maxW) : w,
283
283
  };
284
- if ((onDropDragOverContext === null || onDropDragOverContext === void 0 ? void 0 : onDropDragOverContext(Object.assign(Object.assign(Object.assign({}, sharedItem), itemLayout), { parent: group }), sharedItem !== null && sharedItem !== void 0 ? sharedItem : null)) === false) {
284
+ if ((onDropDragOverContext === null || onDropDragOverContext === void 0 ? void 0 : onDropDragOverContext(Object.assign(Object.assign(Object.assign({}, sharedItem), itemLayout), { parent: group, type: (sharedItem === null || sharedItem === void 0 ? void 0 : sharedItem.type) || (dragOverPlugin === null || dragOverPlugin === void 0 ? void 0 : dragOverPlugin.type) }), sharedItem !== null && sharedItem !== void 0 ? sharedItem : null)) === false) {
285
285
  return false;
286
286
  }
287
287
  return itemLayout;
@@ -278,7 +278,7 @@ function useMemoStateContext(props) {
278
278
  h: maxH ? Math.min(h, maxH) : h,
279
279
  w: maxW ? Math.min(w, maxW) : w,
280
280
  };
281
- if ((onDropDragOverContext === null || onDropDragOverContext === void 0 ? void 0 : onDropDragOverContext(Object.assign(Object.assign(Object.assign({}, sharedItem), itemLayout), { parent: group }), sharedItem !== null && sharedItem !== void 0 ? sharedItem : null)) === false) {
281
+ if ((onDropDragOverContext === null || onDropDragOverContext === void 0 ? void 0 : onDropDragOverContext(Object.assign(Object.assign(Object.assign({}, sharedItem), itemLayout), { parent: group, type: (sharedItem === null || sharedItem === void 0 ? void 0 : sharedItem.type) || (dragOverPlugin === null || dragOverPlugin === void 0 ? void 0 : dragOverPlugin.type) }), sharedItem !== null && sharedItem !== void 0 ? sharedItem : null)) === false) {
282
282
  return false;
283
283
  }
284
284
  return itemLayout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/dashkit",
3
- "version": "8.20.0",
3
+ "version": "8.20.1",
4
4
  "description": "Library for rendering dashboard grid layout",
5
5
  "license": "MIT",
6
6
  "repository": {