@atlaskit/editor-plugin-block-controls
Version:
Block controls plugin for @atlaskit/editor-core
15 lines (14 loc) • 490 B
TypeScript
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
export declare const buildLayoutColumnMenuMeta: (anchorPos: number, openedViaKeyboard: boolean) => {
anchorPos: number;
isOpen?: true;
openedViaKeyboard: boolean;
};
export declare const getNodeSpacingForDragPreview: (node?: PMNode | null) => {
bottom: string;
top: string;
};
export declare const getNodeMarginsForDragPreview: (node?: PMNode | null) => {
bottom: number;
top: number;
};