Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dnd-core

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnd-core - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

70

dist-modules/__tests__/DragDropMonitor-test.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc