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

react-dnd-html5-backend

Package Overview
Dependencies
Maintainers
5
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dnd-html5-backend - npm Package Compare versions

Comparing version 15.1.3 to 16.0.0

dist/BrowserDetector.d.ts

22

package.json
{
"name": "react-dnd-html5-backend",
"version": "15.1.3",
"version": "16.0.0",
"description": "HTML5 backend for React DnD",
"main": "dist/cjs/index.js",
"types": "dist/types/index.d.ts",
"exports": {
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,

@@ -21,13 +17,11 @@ "license": "MIT",

"build_types": "tsc -b .",
"build_esm": "swc -C module.type=es6 -d dist/esm src/",
"build_cjs": "swc -C module.type=commonjs -d dist/cjs src/",
"esm_hack": "node ../../scripts/esmify.mjs",
"build": "run-s build_types build_esm build_cjs esm_hack"
"build_esm": "swc -C module.type=es6 -d dist src/",
"build": "run-s build_types build_esm"
},
"dependencies": {
"dnd-core": "15.1.2"
"dnd-core": "^16.0.0"
},
"devDependencies": {
"@swc/cli": "^0.1.57",
"@swc/core": "^1.2.161",
"@swc/core": "^1.2.163",
"@types/jest": "^27.4.1",

@@ -34,0 +28,0 @@ "npm-run-all": "^4.1.5",

import type {
Backend,
DragDropActions,
DragDropManager,
DragDropActions,
DragDropMonitor,
HandlerRegistry,
Identifier,
Unsubscribe,
XYCoord,
Unsubscribe,
} from 'dnd-core'
import { EnterLeaveCounter } from './EnterLeaveCounter.js'
import {
getNodeClientOffset,
getEventClientOffset,
getDragPreviewOffset,
} from './OffsetUtils.js'
import {
createNativeDragSource,
matchNativeItemType,
} from './NativeDragSources/index.js'
import type { NativeDragSource } from './NativeDragSources/NativeDragSource.js'
import * as NativeTypes from './NativeTypes.js'
import type { NativeDragSource } from './NativeDragSources/NativeDragSource.js'
import {
getDragPreviewOffset,
getEventClientOffset,
getNodeClientOffset,
} from './OffsetUtils.js'
import { OptionsReader } from './OptionsReader.js'

@@ -24,0 +25,0 @@ import type { HTML5BackendContext, HTML5BackendOptions } from './types.js'

@@ -0,7 +1,8 @@

import type { BackendFactory, DragDropManager } from 'dnd-core'
import { HTML5BackendImpl } from './HTML5BackendImpl.js'
import type { HTML5BackendContext, HTML5BackendOptions } from './types.js'
export { getEmptyImage } from './getEmptyImage.js'
export * as NativeTypes from './NativeTypes.js'
import type { DragDropManager, BackendFactory } from 'dnd-core'
import type { HTML5BackendContext, HTML5BackendOptions } from './types.js'
export type { HTML5BackendContext, HTML5BackendOptions } from './types.js'
export { getEmptyImage } from './getEmptyImage.js'

@@ -8,0 +9,0 @@ export const HTML5Backend: BackendFactory = function createBackend(

@@ -0,3 +1,3 @@

import { NativeDragSource } from './NativeDragSource.js'
import { nativeTypesConfig } from './nativeTypesConfig.js'
import { NativeDragSource } from './NativeDragSource.js'

@@ -4,0 +4,0 @@ export function createNativeDragSource(

@@ -1,4 +0,5 @@

import type { NativeItemConfig } from './nativeTypesConfig.js'
import type { DragDropMonitor } from 'dnd-core'
import type { NativeItemConfig } from './nativeTypesConfig.js'
export class NativeDragSource {

@@ -5,0 +6,0 @@ public item: any

@@ -1,5 +0,6 @@

import { isSafari, isFirefox } from './BrowserDetector.js'
import { MonotonicInterpolant } from './MonotonicInterpolant.js'
import type { XYCoord } from 'dnd-core'
import { isFirefox, isSafari } from './BrowserDetector.js'
import { MonotonicInterpolant } from './MonotonicInterpolant.js'
const ELEMENT_NODE = 1

@@ -6,0 +7,0 @@

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