@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.7.79",
3
+ "version": "0.7.80",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -165,12 +165,7 @@ export const ItemSlot: React.FC<IProps> = observer(
165
165
  clearDraggingState,
166
166
  } = useItemSlotDragging();
167
167
 
168
- const {
169
- isFocused,
170
- dropPosition,
171
- isDragging,
172
- draggingDistance,
173
- } = draggingState;
168
+ const { isFocused, isDragging, draggingDistance } = draggingState;
174
169
 
175
170
  useEffect(() => {
176
171
  // Reset drag position and focus when item changes
@@ -186,13 +181,6 @@ export const ItemSlot: React.FC<IProps> = observer(
186
181
  isContextMenuDisabled, // Added missing dependency
187
182
  ]);
188
183
 
189
- useEffect(() => {
190
- // Handle outside drop
191
- if (onDrop && item && dropPosition) {
192
- onDrop(item, dropPosition);
193
- }
194
- }, [dropPosition, onDrop, item]);
195
-
196
184
  const resetItem = () => {
197
185
  clearDraggingState();
198
186
  updateDetailsState({