@dnd-kit/dom 0.1.3 → 0.1.4
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 +2 -12
- package/index.cjs.map +1 -1
- package/index.d.cts +1 -2
- package/index.d.ts +1 -2
- package/index.js +2 -12
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/sortable.cjs +1 -3
- package/sortable.cjs.map +1 -1
- package/sortable.js +1 -3
- package/sortable.js.map +1 -1
package/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _dnd_kit_abstract from '@dnd-kit/abstract';
|
|
2
|
-
import { Sensor, Sensors as Sensors$1, Data, DraggableInput, Draggable as Draggable$1, DroppableInput, Droppable as Droppable$1, DragDropManagerInput, Modifiers, Plugins,
|
|
2
|
+
import { Sensor, Sensors as Sensors$1, Data, DraggableInput, Draggable as Draggable$1, DroppableInput, Droppable as Droppable$1, DragDropManagerInput, Modifiers, Plugins, DragDropManager as DragDropManager$1, DragDropEvents, Plugin, CorePlugin } from '@dnd-kit/abstract';
|
|
3
3
|
import { CollisionDetector } from '@dnd-kit/collision';
|
|
4
4
|
import { Coordinates, Distance, Shape } from '@dnd-kit/geometry';
|
|
5
5
|
import { CleanupFunction } from '@dnd-kit/state';
|
|
@@ -128,7 +128,6 @@ interface Input extends DragDropManagerInput<DragDropManager> {
|
|
|
128
128
|
declare const defaultPreset: {
|
|
129
129
|
modifiers: Modifiers<DragDropManager>;
|
|
130
130
|
plugins: Plugins<DragDropManager>;
|
|
131
|
-
renderer: Renderer;
|
|
132
131
|
sensors: Sensors$1<DragDropManager>;
|
|
133
132
|
};
|
|
134
133
|
declare class DragDropManager<T extends Draggable = Draggable, U extends Droppable = Droppable> extends DragDropManager$1<Draggable, Droppable> {
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _dnd_kit_abstract from '@dnd-kit/abstract';
|
|
2
|
-
import { Sensor, Sensors as Sensors$1, Data, DraggableInput, Draggable as Draggable$1, DroppableInput, Droppable as Droppable$1, DragDropManagerInput, Modifiers, Plugins,
|
|
2
|
+
import { Sensor, Sensors as Sensors$1, Data, DraggableInput, Draggable as Draggable$1, DroppableInput, Droppable as Droppable$1, DragDropManagerInput, Modifiers, Plugins, DragDropManager as DragDropManager$1, DragDropEvents, Plugin, CorePlugin } from '@dnd-kit/abstract';
|
|
3
3
|
import { CollisionDetector } from '@dnd-kit/collision';
|
|
4
4
|
import { Coordinates, Distance, Shape } from '@dnd-kit/geometry';
|
|
5
5
|
import { CleanupFunction } from '@dnd-kit/state';
|
|
@@ -128,7 +128,6 @@ interface Input extends DragDropManagerInput<DragDropManager> {
|
|
|
128
128
|
declare const defaultPreset: {
|
|
129
129
|
modifiers: Modifiers<DragDropManager>;
|
|
130
130
|
plugins: Plugins<DragDropManager>;
|
|
131
|
-
renderer: Renderer;
|
|
132
131
|
sensors: Sensors$1<DragDropManager>;
|
|
133
132
|
};
|
|
134
133
|
declare class DragDropManager<T extends Draggable = Draggable, U extends Droppable = Droppable> extends DragDropManager$1<Draggable, Droppable> {
|
package/index.js
CHANGED
|
@@ -1543,17 +1543,9 @@ function patchWindow(window) {
|
|
|
1543
1543
|
});
|
|
1544
1544
|
windows.add(window);
|
|
1545
1545
|
}
|
|
1546
|
-
function noop2() {
|
|
1547
|
-
}
|
|
1548
|
-
var renderer = {
|
|
1549
|
-
get rendering() {
|
|
1550
|
-
return scheduler.schedule(noop2);
|
|
1551
|
-
}
|
|
1552
|
-
};
|
|
1553
1546
|
|
|
1554
1547
|
// src/core/manager/manager.ts
|
|
1555
1548
|
var defaultPreset = {
|
|
1556
|
-
renderer,
|
|
1557
1549
|
modifiers: [],
|
|
1558
1550
|
plugins: [Accessibility, AutoScroller, Cursor, Feedback, PreventSelection],
|
|
1559
1551
|
sensors: [
|
|
@@ -1583,14 +1575,12 @@ var DragDropManager = class extends DragDropManager$1 {
|
|
|
1583
1575
|
const {
|
|
1584
1576
|
plugins = defaultPreset.plugins,
|
|
1585
1577
|
sensors = defaultPreset.sensors,
|
|
1586
|
-
modifiers = []
|
|
1587
|
-
renderer: renderer2 = defaultPreset.renderer
|
|
1578
|
+
modifiers = []
|
|
1588
1579
|
} = input;
|
|
1589
1580
|
super(__spreadProps(__spreadValues({}, input), {
|
|
1590
1581
|
plugins: [ScrollListener, Scroller, ...plugins],
|
|
1591
1582
|
sensors,
|
|
1592
|
-
modifiers
|
|
1593
|
-
renderer: renderer2
|
|
1583
|
+
modifiers
|
|
1594
1584
|
}));
|
|
1595
1585
|
}
|
|
1596
1586
|
};
|