UNPKG

@atlaskit/pragmatic-drag-and-drop-hitbox

Version:

An optional package for Pragmatic drag and drop that enables the attaching of interaction information to a drop target

14 lines (13 loc) • 581 B
import type { Input } from '@atlaskit/pragmatic-drag-and-drop/types'; import type { Instruction, ItemMode } from './tree-item'; declare function getInstruction({ element, input, currentLevel, indentPerLevel, mode, }: { element: Element; input: Input; currentLevel: number; indentPerLevel: number; mode: ItemMode; }): Instruction; export declare function attachInstruction(userData: Record<string | symbol, unknown>, { block, ...rest }: Parameters<typeof getInstruction>[0] & { block?: Instruction['type'][]; }): Record<string | symbol, unknown>; export {};