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

dnd-core

Package Overview
Dependencies
Maintainers
3
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 7.2.0 to 7.4.0

5

lib/cjs/utils/dirtiness.js

@@ -6,2 +6,4 @@ "use strict";

exports.ALL = [];
exports.NONE.__IS_NONE__ = true;
exports.ALL.__IS_ALL__ = true;
/**

@@ -20,4 +22,5 @@ * Determines if the given handler IDs are dirty or not.

}
return intersection(handlerIds, dirtyIds).length > 0;
var commonIds = intersection(handlerIds, dirtyIds);
return commonIds.length > 0;
}
exports.areDirty = areDirty;
const intersection = require('lodash/intersection');
export const NONE = [];
export const ALL = [];
NONE.__IS_NONE__ = true;
ALL.__IS_ALL__ = true;
/**

@@ -17,3 +19,4 @@ * Determines if the given handler IDs are dirty or not.

}
return intersection(handlerIds, dirtyIds).length > 0;
const commonIds = intersection(handlerIds, dirtyIds);
return commonIds.length > 0;
}

7

package.json
{
"name": "dnd-core",
"version": "7.2.0",
"version": "7.4.0",
"description": "Drag and drop sans the GUI",

@@ -13,4 +13,3 @@ "license": "MIT",

"clean": "rimraf lib",
"watch": "tsc -w --preserveWatchOutput",
"start": "npm run watch",
"start": "tsc -b tsconfig.cjs.json -w --preserveWatchOutput",
"test": "run-s clean build"

@@ -33,3 +32,3 @@ },

},
"gitHead": "e4f7ebcdeb135ff3aa44c6b28001d3339dc5d55b"
"gitHead": "941dc2eb67e41ad924a31e4cbb793fa5dd3add71"
}

@@ -16,13 +16,13 @@ [![npm package](https://img.shields.io/npm/v/dnd-core.svg?style=flat-square)](https://www.npmjs.org/package/dnd-core)

* There is no DOM here
* We let you define drop target and drag source logic
* We let you supply custom underlying implementations (console, DOM via jQuery, React, React Native, _whatever_)
* We manage drag source and drop target interaction
- There is no DOM here
- We let you define drop target and drag source logic
- We let you supply custom underlying implementations (console, DOM via jQuery, React, React Native, _whatever_)
- We manage drag source and drop target interaction
This was written to support some rather complicated scenarios that were too hard to implement in [React DnD](https://github.com/react-dnd/react-dnd) due to its current architecture:
* [Mocking drag and drop interaction in tests](https://github.com/react-dnd/react-dnd/issues/55)
* [Full support for arbitrary nesting and handling drag sources and drop targets](https://github.com/react-dnd/react-dnd/issues/87)
* [Dragging multiple items at once](https://github.com/react-dnd/react-dnd/issues/14)
* [Even when source is removed, letting another drag source “represent it” (e.g. card disappeared from one Kanban list, reappeared in another one)](https://github.com/react-dnd/react-dnd/pull/64#issuecomment-76118757)
- [Mocking drag and drop interaction in tests](https://github.com/react-dnd/react-dnd/issues/55)
- [Full support for arbitrary nesting and handling drag sources and drop targets](https://github.com/react-dnd/react-dnd/issues/87)
- [Dragging multiple items at once](https://github.com/react-dnd/react-dnd/issues/14)
- [Even when source is removed, letting another drag source “represent it” (e.g. card disappeared from one Kanban list, reappeared in another one)](https://github.com/react-dnd/react-dnd/pull/64#issuecomment-76118757)

@@ -29,0 +29,0 @@ As it turns out, these problems are much easier to solve when DOM is thrown out of the window.

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