@dnd-kit/react 0.4.0-beta-20260221220941 → 0.4.0-beta-20260221223238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +9 -2
- package/index.js +9 -2
- package/package.json +4 -4
package/index.cjs
CHANGED
|
@@ -99,10 +99,17 @@ function DragDropProvider(_a2) {
|
|
|
99
99
|
"onDragEnd"
|
|
100
100
|
]);
|
|
101
101
|
const rendererRef = react.useRef(null);
|
|
102
|
-
const {
|
|
102
|
+
const {
|
|
103
|
+
plugins: pluginsInput,
|
|
104
|
+
modifiers: modifiersInput,
|
|
105
|
+
sensors: sensorsInput
|
|
106
|
+
} = input;
|
|
103
107
|
const plugins = dom.resolveCustomizable(pluginsInput, dom.defaultPreset.plugins);
|
|
104
108
|
const sensors = dom.resolveCustomizable(sensorsInput, dom.defaultPreset.sensors);
|
|
105
|
-
const modifiers = dom.resolveCustomizable(
|
|
109
|
+
const modifiers = dom.resolveCustomizable(
|
|
110
|
+
modifiersInput,
|
|
111
|
+
dom.defaultPreset.modifiers
|
|
112
|
+
);
|
|
106
113
|
const handleBeforeDragStart = hooks.useLatest(onBeforeDragStart);
|
|
107
114
|
const handleDragStart = hooks.useLatest(onDragStart);
|
|
108
115
|
const handleDragOver = hooks.useLatest(onDragOver);
|
package/index.js
CHANGED
|
@@ -98,10 +98,17 @@ function DragDropProvider(_a2) {
|
|
|
98
98
|
"onDragEnd"
|
|
99
99
|
]);
|
|
100
100
|
const rendererRef = useRef(null);
|
|
101
|
-
const {
|
|
101
|
+
const {
|
|
102
|
+
plugins: pluginsInput,
|
|
103
|
+
modifiers: modifiersInput,
|
|
104
|
+
sensors: sensorsInput
|
|
105
|
+
} = input;
|
|
102
106
|
const plugins = resolveCustomizable(pluginsInput, defaultPreset.plugins);
|
|
103
107
|
const sensors = resolveCustomizable(sensorsInput, defaultPreset.sensors);
|
|
104
|
-
const modifiers = resolveCustomizable(
|
|
108
|
+
const modifiers = resolveCustomizable(
|
|
109
|
+
modifiersInput,
|
|
110
|
+
defaultPreset.modifiers
|
|
111
|
+
);
|
|
105
112
|
const handleBeforeDragStart = useLatest(onBeforeDragStart);
|
|
106
113
|
const handleDragStart = useLatest(onDragStart);
|
|
107
114
|
const handleDragOver = useLatest(onDragOver);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnd-kit/react",
|
|
3
|
-
"version": "0.4.0-beta-
|
|
3
|
+
"version": "0.4.0-beta-20260221223238",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"module": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@dnd-kit/abstract": "0.4.0-beta-
|
|
60
|
-
"@dnd-kit/dom": "0.4.0-beta-
|
|
61
|
-
"@dnd-kit/state": "0.4.0-beta-
|
|
59
|
+
"@dnd-kit/abstract": "0.4.0-beta-20260221223238",
|
|
60
|
+
"@dnd-kit/dom": "0.4.0-beta-20260221223238",
|
|
61
|
+
"@dnd-kit/state": "0.4.0-beta-20260221223238",
|
|
62
62
|
"tslib": "^2.6.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|