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

react-dnd

Package Overview
Dependencies
Maintainers
3
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dnd - npm Package Compare versions

Comparing version 4.0.0 to 4.0.2

20

lib/createTargetMonitor.d.ts

@@ -1,2 +0,2 @@

import { DragDropManager, XYCoord } from 'dnd-core';
import { DragDropManager } from 'dnd-core';
import { DropTargetMonitor } from './interfaces';

@@ -8,16 +8,16 @@ export declare class TargetMonitor implements DropTargetMonitor {

receiveHandlerId(targetId: string): void;
canDrop(): boolean;
canDrop(): any;
isOver(options: {
shallow?: boolean;
}): boolean;
getItemType(): string | symbol | null;
}): any;
getItemType(): any;
getItem(): any;
getDropResult(): any;
didDrop(): boolean;
getInitialClientOffset(): XYCoord | null;
getInitialSourceClientOffset(): XYCoord | null;
getSourceClientOffset(): XYCoord | null;
getClientOffset(): XYCoord | null;
getDifferenceFromInitialOffset(): XYCoord | null;
didDrop(): any;
getInitialClientOffset(): any;
getInitialSourceClientOffset(): any;
getSourceClientOffset(): any;
getClientOffset(): any;
getDifferenceFromInitialOffset(): any;
}
export default function createTargetMonitor<Context>(manager: DragDropManager<Context>): DropTargetMonitor;

@@ -21,3 +21,3 @@ /// <reference types="react" />

export declare function createChildContext<BackendContext>(backend: BackendFactory, context?: BackendContext): {
dragDropManager: DragDropManager<BackendContext | undefined>;
dragDropManager: any;
};

@@ -24,0 +24,0 @@ export interface DragDropContextProviderProps<BackendContext> {

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });

@@ -12,2 +15,3 @@ var DragDropContext_1 = require("./DragDropContext");

exports.DropTarget = DropTarget_1.default;
__export(require("./interfaces"));
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var dnd_core_1 = require("dnd-core");
exports.XYCoord = dnd_core_1.XYCoord;
/**

@@ -4,0 +6,0 @@ * Top-Level API

{
"name": "react-dnd",
"version": "4.0.0",
"version": "4.0.2",
"description": "Drag and Drop for React",

@@ -30,3 +30,3 @@ "main": "lib/index.js",

"@types/shallowequal": "^0.2.2",
"dnd-core": "^4.0.0",
"dnd-core": "^4.0.2",
"hoist-non-react-statics": "^2.5.0",

@@ -33,0 +33,0 @@ "invariant": "^2.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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