@react-stately/dnd
Advanced tools
Comparing version 3.0.0-alpha.0 to 3.0.0-alpha.1
@@ -102,2 +102,3 @@ var { | ||
collection: props.collection, | ||
selectionManager: props.selectionManager, | ||
target, | ||
@@ -104,0 +105,0 @@ |
@@ -91,2 +91,3 @@ import { useState } from "react"; | ||
collection: props.collection, | ||
selectionManager: props.selectionManager, | ||
target, | ||
@@ -93,0 +94,0 @@ |
@@ -22,5 +22,7 @@ import { Collection, DragEndEvent, DraggableCollectionProps, DragItem, DragMoveEvent, DragStartEvent, Node, DragTypes, DropOperation, DroppableCollectionProps, DropTarget } from "@react-types/shared"; | ||
collection: Collection<Node<unknown>>; | ||
selectionManager: MultipleSelectionManager; | ||
} | ||
export interface DroppableCollectionState { | ||
collection: Collection<Node<unknown>>; | ||
selectionManager: MultipleSelectionManager; | ||
target: DropTarget; | ||
@@ -27,0 +29,0 @@ setTarget(target: DropTarget): void; |
{ | ||
"name": "@react-stately/dnd", | ||
"version": "3.0.0-alpha.0", | ||
"version": "3.0.0-alpha.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,5 +21,5 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-stately/selection": "^3.4.0", | ||
"@react-stately/utils": "^3.0.0-alpha.1", | ||
"@react-types/shared": "^3.5.0" | ||
"@react-stately/selection": "^3.5.0", | ||
"@react-stately/utils": "^3.2.1", | ||
"@react-types/shared": "^3.6.0" | ||
}, | ||
@@ -32,3 +32,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "9920ffaa2596a03c4498a15cb940bd2f4ba5cd6a" | ||
"gitHead": "3aae08e7d8a75382bedcddac7c86107e40db9296" | ||
} |
@@ -14,6 +14,8 @@ /* | ||
import {Collection, DragTypes, DropOperation, DroppableCollectionProps, DropTarget, ItemDropTarget, Node} from '@react-types/shared'; | ||
import {MultipleSelectionManager} from '@react-stately/selection'; | ||
import {useState} from 'react'; | ||
interface DroppableCollectionStateOptions extends DroppableCollectionProps { | ||
collection: Collection<Node<unknown>> | ||
collection: Collection<Node<unknown>>, | ||
selectionManager: MultipleSelectionManager | ||
} | ||
@@ -23,2 +25,3 @@ | ||
collection: Collection<Node<unknown>>, | ||
selectionManager: MultipleSelectionManager, | ||
target: DropTarget, | ||
@@ -45,2 +48,3 @@ setTarget(target: DropTarget): void, | ||
collection: props.collection, | ||
selectionManager: props.selectionManager, | ||
target, | ||
@@ -47,0 +51,0 @@ setTarget(newTarget) { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57344
494
Updated@react-stately/utils@^3.2.1
Updated@react-types/shared@^3.6.0