react-dnd
Advanced tools
Comparing version 4.0.0 to 4.0.2
@@ -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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
3
0
123832
73
1877
Updateddnd-core@^4.0.2