Skip to content

Commit

Permalink
Merge pull request #1030 from gemini-hlsw/sc-3647-migrate-to-pragmati…
Browse files Browse the repository at this point in the history
…c-drag-and-drop

Adopt pragmatic drag and drop through migration library
  • Loading branch information
rpiaggio authored Oct 8, 2024
2 parents 281a9c5 + 40c1d28 commit fce3768
Show file tree
Hide file tree
Showing 5 changed files with 575 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import scala.scalajs.js.annotation.JSImport
// https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/responders.md
object DragDropContext {
@js.native
@JSImport("react-beautiful-dnd", "DragDropContext")
@JSImport("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration", "DragDropContext")
object RawComponent extends js.Object

type OnDragEndResponder = js.Function2[DropResult, ResponderProvided, Unit]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import scala.scalajs.js.annotation.JSName
// https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/draggable.md
object Draggable {
@js.native
@JSImport("react-beautiful-dnd", "Draggable")
@JSImport("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration", "Draggable")
object RawComponent extends js.Object

@js.native
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object Provided {

object Droppable {
@js.native
@JSImport("react-beautiful-dnd", "Droppable")
@JSImport("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration", "Droppable")
object RawComponent extends js.Object

// https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/droppable.md
Expand Down
Loading

0 comments on commit fce3768

Please sign in to comment.