@react-types/shared
Advanced tools
Comparing version
{ | ||
"name": "@react-types/shared", | ||
"version": "3.0.0-nightly-2a2d5713b-250508", | ||
"version": "3.0.0-nightly-2c29e2d1d-250612", | ||
"description": "Spectrum UI components in React", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -221,6 +221,14 @@ /* | ||
/** | ||
* Handler that is called when items are reordered via drag in the source collection. | ||
* Handler that is called when items are reordered within the collection. | ||
* This handler only allows dropping between items, not on items. | ||
* It does not allow moving items to a different parent item within a tree. | ||
*/ | ||
onReorder?: (e: DroppableCollectionReorderEvent) => void, | ||
/** | ||
* Handler that is called when items are moved within the source collection. | ||
* This handler allows dropping both on or between items, and items may be | ||
* moved to a different parent item within a tree. | ||
*/ | ||
onMove?: (e: DroppableCollectionReorderEvent) => void, | ||
/** | ||
* A function returning whether a given target in the droppable collection is a valid "on" drop target for the current drag types. | ||
@@ -236,3 +244,2 @@ */ | ||
* Handler that is called after a valid drag is held over a drop target for a period of time. | ||
* @private | ||
*/ | ||
@@ -239,0 +246,0 @@ onDropActivate?: (e: DroppableCollectionActivateEvent) => void, |
76286
0.52%1821
0.39%