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

react-dnd

Package Overview
Dependencies
Maintainers
5
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 15.1.1 to 15.1.2

4

dist/cjs/core/DndProvider.js

@@ -61,6 +61,6 @@ "use strict";

}, []);
return(/*#__PURE__*/ (0, _jsxRuntime).jsx(_dndContextJs.DndContext.Provider, {
return /*#__PURE__*/ (0, _jsxRuntime).jsx(_dndContextJs.DndContext.Provider, {
value: manager,
children: children
}));
});
});

@@ -67,0 +67,0 @@ exports.DndProvider = DndProvider;

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

@@ -0,0 +0,0 @@ import { FC, ReactNode } from 'react';

@@ -0,0 +0,0 @@ import { FC } from 'react';

export * from './DndContext.js';
export * from './DndProvider.js';
export * from './DragPreviewImage.js';

@@ -0,0 +0,0 @@ export * from './useDrag/index.js';

@@ -0,0 +0,0 @@ import type { TargetType, SourceType } from 'dnd-core';

import type { Connector } from '../internals/index.js';
import type { HandlerManager, MonitorEventEmitter } from '../types/index.js';
export declare function useCollectedProps<Collected, Monitor extends HandlerManager>(collector: ((monitor: Monitor) => Collected) | undefined, monitor: Monitor & MonitorEventEmitter, connector: Connector): Collected;
import type { SourceConnector } from '../../internals/index.js';
export declare function useConnectDragSource(connector: SourceConnector): any;
export declare function useConnectDragPreview(connector: SourceConnector): any;

@@ -0,0 +0,0 @@ import type { DragDropMonitor, DragSource, Identifier } from 'dnd-core';

export * from './useDrag.js';

@@ -0,0 +0,0 @@ import type { ConnectDragSource, ConnectDragPreview } from '../../types/index.js';

@@ -0,0 +0,0 @@ import type { Connector } from '../../internals/index.js';

import { SourceConnector } from '../../internals/index.js';
import type { DragPreviewOptions, DragSourceOptions } from '../../types/index.js';
export declare function useDragSourceConnector(dragSourceOptions: DragSourceOptions | undefined, dragPreviewOptions: DragPreviewOptions | undefined): SourceConnector;
import type { DragSourceMonitor } from '../../types/index.js';
export declare function useDragSourceMonitor<O, R>(): DragSourceMonitor<O, R>;
import type { Identifier } from 'dnd-core';
import type { DragSourceHookSpec } from '../types.js';
export declare function useDragType(spec: DragSourceHookSpec<any, any, any>): Identifier;

@@ -0,0 +0,0 @@ import type { DragSourceMonitor } from '../../types/index.js';

@@ -0,0 +0,0 @@ import type { DragDropManager } from 'dnd-core';

@@ -0,0 +0,0 @@ import type { DragLayerMonitor } from '../types/index.js';

import type { TargetConnector } from '../../internals/index.js';
export declare function useConnectDropTarget(connector: TargetConnector): any;

@@ -0,0 +0,0 @@ import type { DropTarget } from 'dnd-core';

export * from './useDrop.js';

@@ -0,0 +0,0 @@ import type { Identifier } from 'dnd-core';

@@ -0,0 +0,0 @@ import type { ConnectDropTarget } from '../../types/index.js';

@@ -0,0 +0,0 @@ import type { DropTargetMonitor } from '../../types/index.js';

import { TargetConnector } from '../../internals/index.js';
import type { DropTargetOptions } from '../../types/index.js';
export declare function useDropTargetConnector(options: DropTargetOptions): TargetConnector;
import type { DropTargetMonitor } from '../../types/index.js';
export declare function useDropTargetMonitor<O, R>(): DropTargetMonitor<O, R>;

@@ -0,0 +0,0 @@ import { TargetConnector } from '../../internals/index.js';

import { useEffect } from 'react';
export declare const useIsomorphicLayoutEffect: typeof useEffect;
import type { HandlerManager, MonitorEventEmitter } from '../types/index.js';
export declare function useMonitorOutput<Monitor extends HandlerManager, Collected>(monitor: Monitor & MonitorEventEmitter, collect: (monitor: Monitor) => Collected, onCollect?: () => void): Collected;
import type { FactoryOrInstance } from './types.js';
export declare function useOptionalFactory<T>(arg: FactoryOrInstance<T>, deps?: unknown[]): T;
export * from './types/index.js';
export * from './core/index.js';
export * from './hooks/index.js';

@@ -0,0 +0,0 @@ import type { DragDropManager, Unsubscribe, Listener, Identifier, XYCoord } from 'dnd-core';

@@ -0,0 +0,0 @@ import type { DragDropManager, Unsubscribe, Listener, Identifier, XYCoord } from 'dnd-core';

@@ -0,0 +0,0 @@ export * from './DragSourceMonitorImpl.js';

@@ -0,0 +0,0 @@ export interface Ref<T> {

import type { DragDropManager, DropTarget, Unsubscribe, Identifier, TargetType, SourceType, DragSource } from 'dnd-core';
export declare function registerTarget(type: TargetType, target: DropTarget, manager: DragDropManager): [Identifier, Unsubscribe];
export declare function registerSource(type: SourceType, source: DragSource, manager: DragDropManager): [Identifier, Unsubscribe];

@@ -0,0 +0,0 @@ import type { Backend, Identifier } from 'dnd-core';

@@ -0,0 +0,0 @@ import type { Backend, Identifier } from 'dnd-core';

export declare function wrapConnectorHooks(hooks: any): any;

@@ -0,0 +0,0 @@ import type { RefObject, ReactElement } from 'react';

export * from './monitors.js';
export * from './options.js';
export * from './connectors.js';

@@ -0,0 +0,0 @@ import type { Identifier, Unsubscribe } from 'dnd-core';

@@ -0,0 +0,0 @@ export interface DragSourceOptions {

{
"name": "react-dnd",
"version": "15.1.1",
"version": "15.1.2",
"description": "Drag and Drop for React",

@@ -27,5 +27,5 @@ "main": "dist/cjs/index.js",

"dependencies": {
"@react-dnd/invariant": "3.0.0",
"@react-dnd/shallowequal": "3.0.0",
"dnd-core": "15.1.1",
"@react-dnd/invariant": "3.0.1",
"@react-dnd/shallowequal": "3.0.1",
"dnd-core": "15.1.2",
"fast-deep-equal": "^3.1.3",

@@ -35,10 +35,10 @@ "hoist-non-react-statics": "^3.3.2"

"devDependencies": {
"@swc/cli": "^0.1.55",
"@swc/core": "^1.2.136",
"@testing-library/react": "^12.1.2",
"@swc/cli": "^0.1.57",
"@swc/core": "^1.2.161",
"@testing-library/react": "^12.1.4",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "^27.4.0",
"@types/node": "^14.17.19",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"npm-run-all": "^4.1.5",

@@ -50,3 +50,3 @@ "react": "^17.0.2",

"shx": "^0.3.4",
"typescript": "^4.5.5"
"typescript": "^4.6.3"
},

@@ -53,0 +53,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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