react-dnd-touch-backend
Advanced tools
Comparing version 15.1.2 to 16.0.0
{ | ||
"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 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
187036
58
2206
Yes
1
+ Added@react-dnd/asap@5.0.2(transitive)
+ Added@react-dnd/invariant@4.0.2(transitive)
+ Addeddnd-core@16.0.1(transitive)
- Removed@react-dnd/asap@4.0.1(transitive)
- Removed@react-dnd/invariant@3.0.1(transitive)
- Removeddnd-core@15.1.2(transitive)
Updated@react-dnd/invariant@^4.0.0
Updateddnd-core@^16.0.0