@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -27822,7 +27822,6 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
27822
27822
|
updateDraggingState = _useItemSlotDragging.updateDraggingState,
|
|
27823
27823
|
clearDraggingState = _useItemSlotDragging.clearDraggingState;
|
|
27824
27824
|
var isFocused = draggingState.isFocused,
|
|
27825
|
-
dropPosition = draggingState.dropPosition,
|
|
27826
27825
|
isDragging = draggingState.isDragging,
|
|
27827
27826
|
draggingDistance = draggingState.draggingDistance;
|
|
27828
27827
|
useEffect(function () {
|
|
@@ -27835,12 +27834,6 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
27835
27834
|
isFocused: false
|
|
27836
27835
|
});
|
|
27837
27836
|
}, [containerType, isDepotSystem, setContextActions, clearContextActions, isContextMenuDisabled]);
|
|
27838
|
-
useEffect(function () {
|
|
27839
|
-
// Handle outside drop
|
|
27840
|
-
if (onDrop && item && dropPosition) {
|
|
27841
|
-
onDrop(item, dropPosition);
|
|
27842
|
-
}
|
|
27843
|
-
}, [dropPosition, onDrop, item]);
|
|
27844
27837
|
var resetItem = function resetItem() {
|
|
27845
27838
|
clearDraggingState();
|
|
27846
27839
|
updateDetailsState({
|