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