Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
25 lines
880 B
Plaintext
25 lines
880 B
Plaintext
import type { Active, UniqueIdentifier } from '@dnd-kit/core';
|
|
import type { Transition } from '@dnd-kit/utilities';
|
|
export declare type SortableTransition = Pick<Transition, 'easing' | 'duration'>;
|
|
export declare type AnimateLayoutChanges = (args: {
|
|
active: Active | null;
|
|
containerId: UniqueIdentifier;
|
|
isDragging: boolean;
|
|
isSorting: boolean;
|
|
id: UniqueIdentifier;
|
|
index: number;
|
|
items: UniqueIdentifier[];
|
|
previousItems: UniqueIdentifier[];
|
|
previousContainerId: UniqueIdentifier;
|
|
newIndex: number;
|
|
transition: SortableTransition | null;
|
|
wasDragging: boolean;
|
|
}) => boolean;
|
|
export interface NewIndexGetterArguments {
|
|
id: UniqueIdentifier;
|
|
items: UniqueIdentifier[];
|
|
activeIndex: number;
|
|
overIndex: number;
|
|
}
|
|
export declare type NewIndexGetter = (args: NewIndexGetterArguments) => number;
|