Major Changes
-
a9d92cf
#174 Thanks @clauderic! - Distributed assets now only target modern browsers. Browserlist config:defaults last 2 version not IE 11 not dead
If you need to support older browsers, include the appropriate polyfills in your project's build process.
Patch Changes
-
b406cb9
#187 Thanks @clauderic! - Introduced theuseDndMonitor
hook. TheuseDndMonitor
hook can be used within components wrapped in aDndContext
provider to monitor the different drag and drop events that happen for thatDndContext
.Example usage:
import {DndContext, useDndMonitor} from '@dnd-kit/core'; function App() { return ( <DndContext> <Component /> </DndContext> ); } function Component() { useDndMonitor({ onDragStart(event) {}, onDragMove(event) {}, onDragOver(event) {}, onDragEnd(event) {}, onDragCancel(event) {}, }); }