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

react-dnd-touch-backend

Package Overview
Dependencies
Maintainers
3
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 15.1.2 to 16.0.0

dist/index.d.ts

24

package.json
{
"name": "react-dnd-touch-backend",
"version": "15.1.2",
"version": "16.0.0",
"description": "Touch 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,

@@ -22,14 +18,12 @@ "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": {
"@react-dnd/invariant": "3.0.1",
"dnd-core": "15.1.2"
"@react-dnd/invariant": "^4.0.0",
"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",

@@ -36,0 +30,0 @@ "npm-run-all": "^4.1.5",

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

import type { DragDropManager, BackendFactory } from 'dnd-core'
import type { TouchBackendOptions, TouchBackendContext } from './interfaces.js'
import type { BackendFactory, DragDropManager } from 'dnd-core'
import type { TouchBackendContext, TouchBackendOptions } from './interfaces.js'
import { TouchBackendImpl } from './TouchBackendImpl.js'

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

import type {
TouchBackendOptions,
AngleRange,
TouchBackendContext,
TouchBackendOptions,
} from './interfaces.js'

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

import { invariant } from '@react-dnd/invariant'
import type {
Backend,
DragDropActions,
DragDropManager,
DragDropMonitor,
Backend,
Identifier,
Unsubscribe,
XYCoord,
DragDropManager,
Unsubscribe,
} from 'dnd-core'
import {
import type {
EventName,
ListenerType,
TouchBackendContext,
TouchBackendOptions,
TouchBackendContext,
} from './interfaces.js'
import { ListenerType } from './interfaces.js'
import { OptionsReader } from './OptionsReader.js'
import { distance, inAngleRanges } from './utils/math.js'
import { getEventClientOffset, getNodeClientOffset } from './utils/offsets.js'
import {
eventShouldEndDrag,
eventShouldStartDrag,
eventShouldEndDrag,
isTouchEvent,
} from './utils/predicates.js'
import { getEventClientOffset, getNodeClientOffset } from './utils/offsets.js'
import { distance, inAngleRanges } from './utils/math.js'
import { supportsPassive } from './utils/supportsPassive.js'
import { OptionsReader } from './OptionsReader.js'

@@ -27,0 +28,0 @@ const eventNames: Record<ListenerType, EventName> = {

import type { XYCoord } from 'dnd-core'
import { isTouchEvent } from './predicates.js'

@@ -3,0 +4,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