@rpg-engine/long-bow 0.7.79 → 0.7.80
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/long-bow.cjs.development.js +0 -7
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +0 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +1 -13
|
@@ -27828,7 +27828,6 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
27828
27828
|
updateDraggingState = _useItemSlotDragging.updateDraggingState,
|
|
27829
27829
|
clearDraggingState = _useItemSlotDragging.clearDraggingState;
|
|
27830
27830
|
var isFocused = draggingState.isFocused,
|
|
27831
|
-
dropPosition = draggingState.dropPosition,
|
|
27832
27831
|
isDragging = draggingState.isDragging,
|
|
27833
27832
|
draggingDistance = draggingState.draggingDistance;
|
|
27834
27833
|
React.useEffect(function () {
|
|
@@ -27841,12 +27840,6 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
27841
27840
|
isFocused: false
|
|
27842
27841
|
});
|
|
27843
27842
|
}, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled]);
|
|
27844
|
-
React.useEffect(function () {
|
|
27845
|
-
// Handle outside drop
|
|
27846
|
-
if (onDrop && item && dropPosition) {
|
|
27847
|
-
onDrop(item, dropPosition);
|
|
27848
|
-
}
|
|
27849
|
-
}, [dropPosition, onDrop, item]);
|
|
27850
27843
|
var resetItem = function resetItem() {
|
|
27851
27844
|
clearDraggingState();
|
|
27852
27845
|
updateDetailsState({
|