Comparing version 0.12.0 to 0.12.1
@@ -405,31 +405,31 @@ 'use strict'; | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetDId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetDId)).to.equal(false); | ||
backend.simulateBeginDrag([sourceId]); | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(true); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(true); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetDId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(true); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(true); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetDId)).to.equal(false); | ||
backend.simulateHover([targetAId]); | ||
backend.simulateDrop(); | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetDId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetDId)).to.equal(false); | ||
backend.simulateEndDrag(); | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetDId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetDId)).to.equal(false); | ||
backend.simulateBeginDrag([sourceId]); | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(true); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(true); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetDId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(true); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(true); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetDId)).to.equal(false); | ||
}); | ||
@@ -558,26 +558,26 @@ | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(false); | ||
backend.simulateBeginDrag([sourceAId]); | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(true); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(true); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(true); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(true); | ||
backend.simulateHover([targetAId]); | ||
backend.simulateDrop(); | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(false); | ||
backend.simulateEndDrag(); | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(false); | ||
backend.simulateBeginDrag([sourceBId]); | ||
_expect2['default'](monitor.canDropTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropTarget(targetBId)).to.equal(true); | ||
_expect2['default'](monitor.canDropTarget(targetCId)).to.equal(true); | ||
_expect2['default'](monitor.canDropOnTarget(targetAId)).to.equal(false); | ||
_expect2['default'](monitor.canDropOnTarget(targetBId)).to.equal(true); | ||
_expect2['default'](monitor.canDropOnTarget(targetCId)).to.equal(true); | ||
}); | ||
@@ -584,0 +584,0 @@ |
@@ -135,3 +135,3 @@ 'use strict'; | ||
var targetIds = monitor.getTargetIds().filter(monitor.canDropTarget, monitor); | ||
var targetIds = monitor.getTargetIds().filter(monitor.canDropOnTarget, monitor); | ||
@@ -138,0 +138,0 @@ targetIds.reverse(); |
@@ -67,3 +67,3 @@ 'use strict'; | ||
DragDropMonitor.prototype.canDropTarget = function canDropTarget(targetId) { | ||
DragDropMonitor.prototype.canDropOnTarget = function canDropOnTarget(targetId) { | ||
var target = this.registry.getTarget(targetId); | ||
@@ -70,0 +70,0 @@ _invariant2['default'](target, 'Expected to find a valid target.'); |
{ | ||
"name": "dnd-core", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "Drag and drop sans the GUI", | ||
@@ -5,0 +5,0 @@ "main": "dist-modules/index.js", |
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
264907