Skip to content

Commit

Permalink
Merge pull request #357 from rcdexta/smooth-dnd
Browse files Browse the repository at this point in the history
Refer to trello-smooth-dnd as the drag-n-drop core library
  • Loading branch information
dapi authored Mar 4, 2020
2 parents da37be9 + 91fe836 commit 2bf18e2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"redux": "^4.0.0",
"redux-actions": "^2.6.1",
"redux-logger": "^3.0.6",
"smooth-dnd": "https://github.com/rcdexta/smooth-dnd",
"trello-smooth-dnd": "1.0.0",
"uuid": "^3.3.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/dnd/Container.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {Component} from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import container, {dropHandlers} from 'smooth-dnd'
import container, {dropHandlers} from 'trello-smooth-dnd'

container.dropHandler = dropHandlers.reactDropHandler().handler;
container.wrapChild = p => p; // dont wrap children they will already be wrapped
Expand Down
2 changes: 1 addition & 1 deletion src/dnd/Draggable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {constants} from 'smooth-dnd'
import {constants} from 'trello-smooth-dnd'
const {wrapperClass} = constants

class Draggable extends Component {
Expand Down
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13005,10 +13005,6 @@ slide@^1.1.3, slide@^1.1.5:
resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707"
integrity sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=

"smooth-dnd@https://github.com/rcdexta/smooth-dnd":
version "0.6.3"
resolved "https://github.com/rcdexta/smooth-dnd#f13924c67bf6ffe4613d97bb1ee83f11d364eb1e"

snapdragon-node@^2.0.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b"
Expand Down Expand Up @@ -13871,6 +13867,11 @@ travis-deploy-once@1.0.0-node-0.10-support:
request-promise "^4.1.1"
travis-ci "^2.1.1"

trello-smooth-dnd@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/trello-smooth-dnd/-/trello-smooth-dnd-1.0.0.tgz#0003d5b35a1651a16a165b7bfb6b41d0a7c52a17"
integrity sha512-KgYEwmxX08Dl4OmioEv24LSnlNp9jNv8lwTQlUMbMm6B+VuwyQuuuoyu4wlsRweiMCCC6sZXpCCGkmAni/vCaQ==

trim-newlines@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"
Expand Down

0 comments on commit 2bf18e2

Please sign in to comment.