@vuu-ui/vuu-utils 3.1.0-beta.2 → 3.1.0-beta.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.
Files changed (60) hide show
  1. package/package.json +10 -8
  2. package/src/index.js +4 -4
  3. package/src/vendor/@dnd-kit/abstract/index.d.ts +1279 -0
  4. package/src/vendor/@dnd-kit/abstract/index.js +1472 -0
  5. package/src/vendor/@dnd-kit/abstract/index.js.map +1 -0
  6. package/src/vendor/@dnd-kit/abstract/modifiers.d.ts +134 -0
  7. package/src/vendor/@dnd-kit/abstract/modifiers.js +100 -0
  8. package/src/vendor/@dnd-kit/abstract/modifiers.js.map +1 -0
  9. package/src/vendor/@dnd-kit/abstract/package.json +60 -0
  10. package/src/vendor/@dnd-kit/collision/dist/index.d.ts +46 -0
  11. package/src/vendor/@dnd-kit/collision/dist/index.js +175 -0
  12. package/src/vendor/@dnd-kit/collision/package.json +42 -0
  13. package/src/vendor/@dnd-kit/dom/index.d.ts +298 -0
  14. package/src/vendor/@dnd-kit/dom/index.js +1977 -0
  15. package/src/vendor/@dnd-kit/dom/index.js.map +1 -0
  16. package/src/vendor/@dnd-kit/dom/modifiers.d.ts +26 -0
  17. package/src/vendor/@dnd-kit/dom/modifiers.js +117 -0
  18. package/src/vendor/@dnd-kit/dom/modifiers.js.map +1 -0
  19. package/src/vendor/@dnd-kit/dom/package.json +92 -0
  20. package/src/vendor/@dnd-kit/dom/plugins/debug.d.ts +8 -0
  21. package/src/vendor/@dnd-kit/dom/plugins/debug.js +125 -0
  22. package/src/vendor/@dnd-kit/dom/plugins/debug.js.map +1 -0
  23. package/src/vendor/@dnd-kit/dom/sortable.d.ts +125 -0
  24. package/src/vendor/@dnd-kit/dom/sortable.js +822 -0
  25. package/src/vendor/@dnd-kit/dom/sortable.js.map +1 -0
  26. package/src/vendor/@dnd-kit/dom/utilities.d.ts +215 -0
  27. package/src/vendor/@dnd-kit/dom/utilities.js +1361 -0
  28. package/src/vendor/@dnd-kit/dom/utilities.js.map +1 -0
  29. package/src/vendor/@dnd-kit/geometry/dist/index.d.ts +178 -0
  30. package/src/vendor/@dnd-kit/geometry/dist/index.js +347 -0
  31. package/src/vendor/@dnd-kit/geometry/package.json +31 -0
  32. package/src/vendor/@dnd-kit/react/hooks.d.ts +30 -0
  33. package/src/vendor/@dnd-kit/react/hooks.js +133 -0
  34. package/src/vendor/@dnd-kit/react/index.d.ts +84 -0
  35. package/src/vendor/@dnd-kit/react/index.js +617 -0
  36. package/src/vendor/@dnd-kit/react/package.json +80 -0
  37. package/src/vendor/@dnd-kit/react/sortable.d.ts +26 -0
  38. package/src/vendor/@dnd-kit/react/sortable.js +175 -0
  39. package/src/vendor/@dnd-kit/react/utilities.d.ts +7 -0
  40. package/src/vendor/@dnd-kit/react/utilities.js +18 -0
  41. package/src/vendor/@dnd-kit/state/dist/index.d.ts +54 -0
  42. package/src/vendor/@dnd-kit/state/dist/index.js +328 -0
  43. package/src/vendor/@dnd-kit/state/package.json +33 -0
  44. package/src/vendor/@preact/signals-core/dist/signals-core.js +1 -0
  45. package/src/vendor/@preact/signals-core/dist/signals-core.js.map +1 -0
  46. package/src/vendor/@preact/signals-core/package.json +4 -0
  47. package/src/vendor/tslib/CopyrightNotice.txt +15 -0
  48. package/src/vendor/tslib/LICENSE.txt +12 -0
  49. package/src/vendor/tslib/README.md +164 -0
  50. package/src/vendor/tslib/SECURITY.md +41 -0
  51. package/src/vendor/tslib/modules/index.d.ts +38 -0
  52. package/src/vendor/tslib/modules/index.js +70 -0
  53. package/src/vendor/tslib/modules/package.json +3 -0
  54. package/src/vendor/tslib/package.json +47 -0
  55. package/src/vendor/tslib/tslib.d.ts +460 -0
  56. package/src/vendor/tslib/tslib.es6.html +1 -0
  57. package/src/vendor/tslib/tslib.es6.js +402 -0
  58. package/src/vendor/tslib/tslib.es6.mjs +401 -0
  59. package/src/vendor/tslib/tslib.html +1 -0
  60. package/src/vendor/tslib/tslib.js +484 -0
@@ -0,0 +1,175 @@
1
+ // src/algorithms/pointerIntersection.ts
2
+ import { CollisionPriority, CollisionType } from "../../abstract/index.js";
3
+ import { Point } from "../../geometry/dist/index.js";
4
+ var pointerIntersection = ({
5
+ dragOperation,
6
+ droppable
7
+ }) => {
8
+ const pointerCoordinates = dragOperation.position.current;
9
+ if (!pointerCoordinates) {
10
+ return null;
11
+ }
12
+ const { id } = droppable;
13
+ if (!droppable.shape) {
14
+ return null;
15
+ }
16
+ if (droppable.shape.containsPoint(pointerCoordinates)) {
17
+ const distance = Point.distance(droppable.shape.center, pointerCoordinates);
18
+ return {
19
+ id,
20
+ value: 1 / distance,
21
+ type: CollisionType.PointerIntersection,
22
+ priority: CollisionPriority.High
23
+ };
24
+ }
25
+ return null;
26
+ };
27
+
28
+ // src/algorithms/shapeIntersection.ts
29
+ import { CollisionPriority as CollisionPriority2, CollisionType as CollisionType2 } from "../../abstract/index.js";
30
+ import { Point as Point2 } from "../../geometry/dist/index.js";
31
+ var shapeIntersection = ({
32
+ dragOperation,
33
+ droppable
34
+ }) => {
35
+ const { shape } = dragOperation;
36
+ if (!droppable.shape || !(shape == null ? void 0 : shape.current)) {
37
+ return null;
38
+ }
39
+ const intersectionArea = shape.current.intersectionArea(droppable.shape);
40
+ if (intersectionArea) {
41
+ const { position } = dragOperation;
42
+ const distance = Point2.distance(droppable.shape.center, position.current);
43
+ const intersectionRatio = intersectionArea / (shape.current.area + droppable.shape.area - intersectionArea);
44
+ const value = intersectionRatio / distance;
45
+ return {
46
+ id: droppable.id,
47
+ value,
48
+ type: CollisionType2.ShapeIntersection,
49
+ priority: CollisionPriority2.Normal
50
+ };
51
+ }
52
+ return null;
53
+ };
54
+
55
+ // src/algorithms/default.ts
56
+ var defaultCollisionDetection = (args) => {
57
+ var _a;
58
+ return (_a = pointerIntersection(args)) != null ? _a : shapeIntersection(args);
59
+ };
60
+
61
+ // src/algorithms/closestCorners.ts
62
+ import { CollisionPriority as CollisionPriority3, CollisionType as CollisionType3 } from "../../abstract/index.js";
63
+ import { Point as Point3, Rectangle } from "../../geometry/dist/index.js";
64
+ var closestCorners = (input) => {
65
+ const { dragOperation, droppable } = input;
66
+ const { shape, position } = dragOperation;
67
+ if (!droppable.shape) {
68
+ return null;
69
+ }
70
+ const shapeCorners = shape ? Rectangle.from(shape.current.boundingRectangle).corners : void 0;
71
+ const distance = Rectangle.from(
72
+ droppable.shape.boundingRectangle
73
+ ).corners.reduce(
74
+ (acc, corner, index) => {
75
+ var _a;
76
+ return acc + Point3.distance(
77
+ Point3.from(corner),
78
+ (_a = shapeCorners == null ? void 0 : shapeCorners[index]) != null ? _a : position.current
79
+ );
80
+ },
81
+ 0
82
+ );
83
+ const value = distance / 4;
84
+ return {
85
+ id: droppable.id,
86
+ value: 1 / value,
87
+ type: CollisionType3.Collision,
88
+ priority: CollisionPriority3.Normal
89
+ };
90
+ };
91
+
92
+ // src/algorithms/closestCenter.ts
93
+ import { CollisionPriority as CollisionPriority4, CollisionType as CollisionType4 } from "../../abstract/index.js";
94
+ import { Point as Point4 } from "../../geometry/dist/index.js";
95
+ var closestCenter = (input) => {
96
+ var _a;
97
+ const { dragOperation, droppable } = input;
98
+ const { shape, position } = dragOperation;
99
+ if (!droppable.shape) {
100
+ return null;
101
+ }
102
+ const collision = defaultCollisionDetection(input);
103
+ if (collision) {
104
+ return collision;
105
+ }
106
+ const distance = Point4.distance(
107
+ droppable.shape.center,
108
+ (_a = shape == null ? void 0 : shape.current.center) != null ? _a : position.current
109
+ );
110
+ const value = 1 / distance;
111
+ return {
112
+ id: droppable.id,
113
+ value,
114
+ type: CollisionType4.Collision,
115
+ priority: CollisionPriority4.Normal
116
+ };
117
+ };
118
+
119
+ // src/algorithms/directionBiased.ts
120
+ import { CollisionPriority as CollisionPriority5, CollisionType as CollisionType5 } from "../../abstract/index.js";
121
+ import { Point as Point5 } from "../../geometry/dist/index.js";
122
+ var directionBiased = ({
123
+ dragOperation,
124
+ droppable
125
+ }) => {
126
+ if (!droppable.shape) {
127
+ return null;
128
+ }
129
+ const { position, shape } = dragOperation;
130
+ const { direction } = position;
131
+ if (!shape) {
132
+ return null;
133
+ }
134
+ if (direction === null) {
135
+ return defaultCollisionDetection({ dragOperation, droppable });
136
+ }
137
+ const { center, boundingRectangle } = shape.current;
138
+ if (direction === "down" && boundingRectangle.bottom >= droppable.shape.center.y || direction === "up" && boundingRectangle.top <= droppable.shape.center.y || direction === "left" && boundingRectangle.left <= droppable.shape.center.x || direction === "right" && boundingRectangle.right >= droppable.shape.center.x) {
139
+ return {
140
+ id: droppable.id,
141
+ value: 1 / Point5.distance(droppable.shape.center, center),
142
+ type: CollisionType5.Collision,
143
+ priority: CollisionPriority5.Normal
144
+ };
145
+ }
146
+ return null;
147
+ };
148
+
149
+ // src/algorithms/pointerDistance.ts
150
+ import { CollisionPriority as CollisionPriority6, CollisionType as CollisionType6 } from "../../abstract/index.js";
151
+ import { Point as Point6 } from "../../geometry/dist/index.js";
152
+ var pointerDistance = (input) => {
153
+ const { dragOperation, droppable } = input;
154
+ const { position } = dragOperation;
155
+ if (!droppable.shape) {
156
+ return null;
157
+ }
158
+ const distance = Point6.distance(droppable.shape.center, position.current);
159
+ const value = 1 / distance;
160
+ return {
161
+ id: droppable.id,
162
+ value,
163
+ type: CollisionType6.Collision,
164
+ priority: CollisionPriority6.Normal
165
+ };
166
+ };
167
+ export {
168
+ closestCenter,
169
+ closestCorners,
170
+ defaultCollisionDetection,
171
+ directionBiased,
172
+ pointerDistance,
173
+ pointerIntersection,
174
+ shapeIntersection
175
+ };
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@dnd-kit/collision",
3
+ "type": "module",
4
+ "version": "0.1.21",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "license": "MIT",
10
+ "files": [
11
+ "dist/**"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.cjs"
18
+ }
19
+ },
20
+ "scripts": {
21
+ "build": "tsup src/index.ts --format esm,cjs --dts --external react",
22
+ "dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react",
23
+ "lint": "TIMING=1 eslint src/**/*.ts* --fix",
24
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
25
+ },
26
+ "dependencies": {
27
+ "@dnd-kit/abstract": "^0.1.21",
28
+ "@dnd-kit/geometry": "^0.1.21",
29
+ "tslib": "^2.6.2"
30
+ },
31
+ "devDependencies": {
32
+ "@types/react": "^18.0.9",
33
+ "@types/react-dom": "^18.0.4",
34
+ "eslint": "^8.38.0",
35
+ "@dnd-kit/eslint-config": "*",
36
+ "tsup": "8.3.0",
37
+ "typescript": "^5.5.2"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ }
42
+ }
@@ -0,0 +1,298 @@
1
+ import * as _dnd_kit_abstract from '@dnd-kit/abstract';
2
+ import { Sensor, Sensors as Sensors$1, Data, Draggable as Draggable$1, DraggableInput, Droppable as Droppable$1, DroppableInput, DragDropManager as DragDropManager$1, DragDropManagerInput, Modifiers, Plugins, DragDropEvents, Plugin, CorePlugin } from '@dnd-kit/abstract';
3
+ import { CollisionDetector } from '@dnd-kit/collision';
4
+ import { Distance, Coordinates, Shape } from '@dnd-kit/geometry';
5
+ import { CleanupFunction } from '@dnd-kit/state';
6
+
7
+ interface EventListenerDescriptor {
8
+ type: string;
9
+ listener(event: Event): void;
10
+ options?: AddEventListenerOptions;
11
+ }
12
+ type EventListenerInput = EventListenerDescriptor[] | EventListenerDescriptor;
13
+ declare class Listeners {
14
+ private entries;
15
+ constructor();
16
+ bind(target: EventTarget, input: EventListenerInput): () => void;
17
+ clear: () => void;
18
+ }
19
+
20
+ type KeyCode = KeyboardEvent['code'];
21
+ type KeyboardCodes = {
22
+ start: KeyCode[];
23
+ cancel: KeyCode[];
24
+ end: KeyCode[];
25
+ up: KeyCode[];
26
+ down: KeyCode[];
27
+ left: KeyCode[];
28
+ right: KeyCode[];
29
+ };
30
+ interface KeyboardSensorOptions {
31
+ /**
32
+ * The offset by which the keyboard sensor should move the draggable.
33
+ *
34
+ * @default 10
35
+ */
36
+ offset?: number | {
37
+ x: number;
38
+ y: number;
39
+ };
40
+ /**
41
+ * The keyboard codes that activate the keyboard sensor.
42
+ *
43
+ * @default {
44
+ * start: ['Space', 'Enter'],
45
+ * cancel: ['Escape'],
46
+ * end: ['Space', 'Enter', 'Tab'],
47
+ * up: ['ArrowUp'],
48
+ * down: ['ArrowDown'],
49
+ * left: ['ArrowLeft'],
50
+ * right: ['ArrowRight']
51
+ * }
52
+ */
53
+ keyboardCodes?: KeyboardCodes;
54
+ /**
55
+ * Function that determines if the keyboard sensor should activate.
56
+ */
57
+ shouldActivate?(args: {
58
+ event: KeyboardEvent;
59
+ source: Draggable;
60
+ manager: DragDropManager;
61
+ }): boolean;
62
+ }
63
+ /**
64
+ * The KeyboardSensor class is an input sensor that handles Keyboard events.
65
+ */
66
+ declare class KeyboardSensor extends Sensor<DragDropManager, KeyboardSensorOptions> {
67
+ #private;
68
+ manager: DragDropManager;
69
+ options?: KeyboardSensorOptions | undefined;
70
+ constructor(manager: DragDropManager, options?: KeyboardSensorOptions | undefined);
71
+ protected listeners: Listeners;
72
+ bind(source: Draggable, options?: KeyboardSensorOptions | undefined): {
73
+ (): void;
74
+ [Symbol.dispose](): void;
75
+ };
76
+ protected handleSourceKeyDown: (event: KeyboardEvent, source: Draggable, options: KeyboardSensorOptions | undefined) => void;
77
+ protected handleStart(event: KeyboardEvent, source: Draggable, options: KeyboardSensorOptions | undefined): void;
78
+ protected handleKeyDown(event: KeyboardEvent, _source: Draggable, options: KeyboardSensorOptions | undefined): void;
79
+ protected handleEnd(event: Event, canceled: boolean): void;
80
+ protected handleMove(direction: 'up' | 'down' | 'left' | 'right', event: KeyboardEvent): void;
81
+ private sideEffects;
82
+ protected cleanup(): void;
83
+ destroy(): void;
84
+ static configure: (options: KeyboardSensorOptions) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof KeyboardSensor>;
85
+ static defaults: Readonly<Required<KeyboardSensorOptions>>;
86
+ }
87
+
88
+ interface DelayConstraint {
89
+ value: number;
90
+ tolerance: Distance;
91
+ }
92
+ interface DistanceConstraint {
93
+ value: Distance;
94
+ tolerance?: Distance;
95
+ }
96
+ interface ActivationConstraints {
97
+ distance?: DistanceConstraint;
98
+ delay?: DelayConstraint;
99
+ }
100
+ type Maybe<T> = T | undefined;
101
+ interface PointerSensorOptions {
102
+ activationConstraints?: ActivationConstraints | ((event: PointerEvent, source: Draggable) => ActivationConstraints | undefined);
103
+ activatorElements?: Maybe<Element>[] | ((source: Draggable) => Maybe<Element>[]);
104
+ }
105
+ /**
106
+ * The PointerSensor class is an input sensor that handles Pointer events,
107
+ * such as mouse, touch and pen interactions.
108
+ */
109
+ declare class PointerSensor extends Sensor<DragDropManager, PointerSensorOptions> {
110
+ #private;
111
+ manager: DragDropManager;
112
+ options?: PointerSensorOptions | undefined;
113
+ protected listeners: Listeners;
114
+ protected initialCoordinates: Coordinates | undefined;
115
+ constructor(manager: DragDropManager, options?: PointerSensorOptions | undefined);
116
+ protected activationConstraints(event: PointerEvent, source: Draggable): ActivationConstraints | undefined;
117
+ bind(source: Draggable, options?: PointerSensorOptions | undefined): {
118
+ (): void;
119
+ [Symbol.dispose](): void;
120
+ };
121
+ protected handlePointerDown(event: PointerEvent, source: Draggable, options?: PointerSensorOptions): void;
122
+ private latest;
123
+ protected handleMove: () => void;
124
+ protected handlePointerMove(event: PointerEvent, source: Draggable): void;
125
+ private handlePointerUp;
126
+ protected handleKeyDown(event: KeyboardEvent): void;
127
+ protected handleStart(source: Draggable, event: PointerEvent): void;
128
+ protected handleCancel(event: Event): void;
129
+ protected cleanup(): void;
130
+ destroy(): void;
131
+ static configure: (options: PointerSensorOptions) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof PointerSensor>;
132
+ static defaults: Readonly<PointerSensorOptions>;
133
+ }
134
+
135
+ type Sensors = Sensors$1<DragDropManager>;
136
+
137
+ type FeedbackType = 'default' | 'move' | 'clone' | 'none';
138
+ interface Input$2<T extends Data = Data> extends DraggableInput<T> {
139
+ handle?: Element;
140
+ element?: Element;
141
+ feedback?: FeedbackType;
142
+ sensors?: Sensors;
143
+ }
144
+ declare class Draggable<T extends Data = Data> extends Draggable$1<T, DragDropManager> {
145
+ constructor({ element, effects, handle, feedback, ...input }: Input$2<T>, manager: DragDropManager | undefined);
146
+ accessor handle: Element | undefined;
147
+ accessor element: Element | undefined;
148
+ accessor feedback: FeedbackType;
149
+ }
150
+
151
+ type OptionalInput = 'collisionDetector';
152
+ interface Input$1<T extends Data = Data> extends Omit<DroppableInput<T>, OptionalInput> {
153
+ collisionDetector?: CollisionDetector;
154
+ element?: Element;
155
+ }
156
+ declare class Droppable<T extends Data = Data> extends Droppable$1<T, DragDropManager> {
157
+ #private;
158
+ constructor({ element, effects, ...input }: Input$1<T>, manager: DragDropManager | undefined);
159
+ accessor proxy: Element | undefined;
160
+ set element(element: Element | undefined);
161
+ get element(): Element | undefined;
162
+ refreshShape: () => Shape | undefined;
163
+ }
164
+
165
+ interface Input extends DragDropManagerInput<DragDropManager> {
166
+ }
167
+ declare const defaultPreset: {
168
+ modifiers: Modifiers<DragDropManager>;
169
+ plugins: Plugins<DragDropManager>;
170
+ sensors: Sensors$1<DragDropManager>;
171
+ };
172
+ declare class DragDropManager<T extends Data = Data, U extends Draggable<T> = Draggable<T>, V extends Droppable<T> = Droppable<T>> extends DragDropManager$1<U, V> {
173
+ constructor(input?: Input);
174
+ }
175
+
176
+ type GetAnnouncementForEvent<Key extends keyof DragDropEvents<any, any, any>> = (event: Parameters<DragDropEvents<Draggable, Droppable, DragDropManager>[Key]>[0], manager: DragDropManager) => string | undefined;
177
+ interface Announcements {
178
+ dragstart: GetAnnouncementForEvent<'dragstart'>;
179
+ dragmove?: GetAnnouncementForEvent<'dragmove'>;
180
+ dragover?: GetAnnouncementForEvent<'dragover'>;
181
+ dragend: GetAnnouncementForEvent<'dragend'>;
182
+ }
183
+ interface ScreenReaderInstructions {
184
+ draggable: string;
185
+ }
186
+
187
+ interface Options$1 {
188
+ /**
189
+ * Optional id that should be used for the accessibility plugin's screen reader instructions and announcements.
190
+ */
191
+ id?: string;
192
+ /**
193
+ * Optional id prefix to use for the accessibility plugin's screen reader instructions and announcements.
194
+ */
195
+ idPrefix?: {
196
+ description?: string;
197
+ announcement?: string;
198
+ };
199
+ /**
200
+ * The announcements to use for the accessibility plugin.
201
+ */
202
+ announcements?: Announcements;
203
+ /**
204
+ * The screen reader instructions to use for the accessibility plugin.
205
+ */
206
+ screenReaderInstructions?: ScreenReaderInstructions;
207
+ /**
208
+ * The number of milliseconds to debounce the announcement updates.
209
+ *
210
+ * @remarks
211
+ * Only the `dragover` and `dragmove` announcements are debounced.
212
+ *
213
+ * @default 500
214
+ */
215
+ debounce?: number;
216
+ }
217
+ declare class Accessibility extends Plugin<DragDropManager> {
218
+ constructor(manager: DragDropManager, options?: Options$1);
219
+ }
220
+
221
+ interface CursorPluginOptions {
222
+ /**
223
+ * The style of the cursor to be applied to the document body.
224
+ * @default 'grabbing'
225
+ */
226
+ cursor?: string;
227
+ /**
228
+ * The nonce to be applied to the style element.
229
+ */
230
+ nonce?: string;
231
+ }
232
+ declare class Cursor extends Plugin<DragDropManager> {
233
+ manager: DragDropManager;
234
+ constructor(manager: DragDropManager, options?: CursorPluginOptions);
235
+ }
236
+
237
+ interface FeedbackOptions {
238
+ rootElement?: Element | ((source: Draggable) => Element);
239
+ nonce?: string;
240
+ }
241
+ declare class Feedback extends Plugin<DragDropManager, FeedbackOptions> {
242
+ #private;
243
+ accessor overlay: Element | undefined;
244
+ private state;
245
+ constructor(manager: DragDropManager, options?: FeedbackOptions);
246
+ destroy(): void;
247
+ static configure: (options: FeedbackOptions) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof Feedback>;
248
+ }
249
+
250
+ interface Transition {
251
+ /**
252
+ * The duration of the transition in milliseconds.
253
+ * @default 250
254
+ */
255
+ duration?: number;
256
+ /**
257
+ * The easing function to use for the transition.
258
+ * @default 'ease-in-out'
259
+ */
260
+ easing?: string;
261
+ }
262
+
263
+ declare class Scroller extends CorePlugin<DragDropManager> {
264
+ #private;
265
+ getScrollableElements: () => Set<Element> | null;
266
+ private scrollIntentTracker;
267
+ accessor autoScrolling: boolean;
268
+ constructor(manager: DragDropManager);
269
+ scroll: (options?: {
270
+ by: Coordinates;
271
+ }) => boolean;
272
+ }
273
+
274
+ interface Options {
275
+ }
276
+ declare class AutoScroller extends Plugin<DragDropManager> {
277
+ destroy: CleanupFunction;
278
+ constructor(manager: DragDropManager, _options?: Options);
279
+ }
280
+
281
+ declare class ScrollListener extends CorePlugin<DragDropManager> {
282
+ #private;
283
+ constructor(manager: DragDropManager);
284
+ private handleScroll;
285
+ }
286
+
287
+ interface PreventSelectionPluginOptions {
288
+ /**
289
+ * The nonce to be applied to the style element.
290
+ */
291
+ nonce?: string;
292
+ }
293
+ declare class PreventSelection extends Plugin<DragDropManager> {
294
+ manager: DragDropManager;
295
+ constructor(manager: DragDropManager, options?: PreventSelectionPluginOptions);
296
+ }
297
+
298
+ export { Accessibility, AutoScroller, Cursor, DragDropManager, type Input as DragDropManagerInput, Draggable, type Input$2 as DraggableInput, Droppable, type Input$1 as DroppableInput, Feedback, type FeedbackType, KeyboardSensor, PointerSensor, PreventSelection, ScrollListener, Scroller, type Sensors, type Transition, defaultPreset };