react-dnd-html5-backend
Advanced tools
Comparing version 15.1.3 to 16.0.0
{ | ||
"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 @@ |
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
114
Yes
293662
3457
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)
Updateddnd-core@^16.0.0