37 lines
1017 B
Plaintext
37 lines
1017 B
Plaintext
import type { Coordinates, UniqueIdentifier } from '../types';
|
|
import type { DroppableContainer } from './types';
|
|
export declare enum Action {
|
|
DragStart = "dragStart",
|
|
DragMove = "dragMove",
|
|
DragEnd = "dragEnd",
|
|
DragCancel = "dragCancel",
|
|
DragOver = "dragOver",
|
|
RegisterDroppable = "registerDroppable",
|
|
SetDroppableDisabled = "setDroppableDisabled",
|
|
UnregisterDroppable = "unregisterDroppable"
|
|
}
|
|
export declare type Actions = {
|
|
type: Action.DragStart;
|
|
active: UniqueIdentifier;
|
|
initialCoordinates: Coordinates;
|
|
} | {
|
|
type: Action.DragMove;
|
|
coordinates: Coordinates;
|
|
} | {
|
|
type: Action.DragEnd;
|
|
} | {
|
|
type: Action.DragCancel;
|
|
} | {
|
|
type: Action.RegisterDroppable;
|
|
element: DroppableContainer;
|
|
} | {
|
|
type: Action.SetDroppableDisabled;
|
|
id: UniqueIdentifier;
|
|
key: UniqueIdentifier;
|
|
disabled: boolean;
|
|
} | {
|
|
type: Action.UnregisterDroppable;
|
|
id: UniqueIdentifier;
|
|
key: UniqueIdentifier;
|
|
};
|