@react-stately/dnd
Advanced tools
Comparing version 3.0.0-nightly-dcc0752f8-241031 to 3.0.0-nightly-e14088a7e-241204
@@ -70,3 +70,3 @@ import { Collection, DraggableCollectionEndEvent, DraggableCollectionProps, DragItem, DragMoveEvent, DragPreviewRenderer, DragStartEvent, DropOperation, Key, Node, RefObject, DragTypes, DroppableCollectionProps, DropTarget } from "@react-types/shared"; | ||
/** Returns whether the given target is equivalent to the current drop target. */ | ||
isDropTarget(target: DropTarget): boolean; | ||
isDropTarget(target: DropTarget | null): boolean; | ||
/** Returns the drop operation for the given parameters. */ | ||
@@ -73,0 +73,0 @@ getDropOperation(e: DropOperationEvent): DropOperation; |
{ | ||
"name": "@react-stately/dnd", | ||
"version": "3.0.0-nightly-dcc0752f8-241031", | ||
"version": "3.0.0-nightly-e14088a7e-241204", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,8 +25,8 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/selection": "^3.0.0-nightly-dcc0752f8-241031", | ||
"@react-types/shared": "^3.0.0-nightly-dcc0752f8-241031", | ||
"@react-stately/selection": "^3.0.0-nightly-e14088a7e-241204", | ||
"@react-types/shared": "^3.0.0-nightly-e14088a7e-241204", | ||
"@swc/helpers": "^0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
@@ -36,3 +36,3 @@ "publishConfig": { | ||
}, | ||
"stableVersion": "3.4.3" | ||
"stableVersion": "3.5.0" | ||
} |
@@ -72,3 +72,3 @@ /* | ||
let draggingKeys = useRef(new Set<Key>()); | ||
let draggedKey = useRef(null); | ||
let draggedKey = useRef<Key | null>(null); | ||
let getKeys = (key: Key) => { | ||
@@ -75,0 +75,0 @@ // The clicked item is always added to the drag. If it is selected, then all of the |
@@ -46,3 +46,3 @@ /* | ||
/** Returns whether the given target is equivalent to the current drop target. */ | ||
isDropTarget(target: DropTarget): boolean, | ||
isDropTarget(target: DropTarget | null): boolean, | ||
/** Returns the drop operation for the given parameters. */ | ||
@@ -49,0 +49,0 @@ getDropOperation(e: DropOperationEvent): DropOperation |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
86736