UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

52 lines (51 loc) • 2.58 kB
export declare const ACTIVE_DRAG_HANDLE_ATTR = "data-active-drag-handle"; export declare const ACTIVE_QUICK_INSERT_ATTR = "data-active-quick-insert"; export declare const BLOCK_CONTROLS_SURFACE_SELECTOR = "[data-editor-block-controls-surface]"; export declare const ACTIVE_DRAG_HANDLE_FALLBACK_ANCHOR_NAME = "--editor-block-controls-active-drag-handle-anchor"; export declare const ACTIVE_QUICK_INSERT_FALLBACK_ANCHOR_NAME = "--editor-block-controls-active-quick-insert-anchor"; export declare const DRAG_HANDLE_HEIGHT = 24; export declare const DRAG_HANDLE_BORDER_RADIUS = 4; export declare const DRAG_HANDLE_ZINDEX: number; export declare const DRAG_HANDLE_NARROW_GAP = 4; export declare const DRAG_HANDLE_MAX_GAP = 12; export declare const DRAG_HANDLE_SYNCED_BLOCK_GAP = 2.5; export declare const DRAG_HANDLE_MAX_WIDTH_PLUS_GAP: number; export declare const DRAG_HANDLE_DIVIDER_TOP_ADJUSTMENT: number; export declare const DRAG_HANDLE_H1_TOP_ADJUSTMENT = 5; export declare const DRAG_HANDLE_H2_TOP_ADJUSTMENT = 2; export declare const DRAG_HANDLE_H3_TOP_ADJUSTMENT = 1; export declare const DRAG_HANDLE_H4_TOP_ADJUSTMENT = 3; export declare const DRAG_HANDLE_H5_TOP_ADJUSTMENT = 3; export declare const DRAG_HANDLE_H6_TOP_ADJUSTMENT = 3; export declare const DRAG_HANDLE_LAYOUT_SECTION_TOP_ADJUSTMENT = 8; export declare const DRAG_HANDLE_PARAGRAPH_TOP_ADJUSTMENT = 2; export declare const DRAG_HANDLE_PARAGRAPH_SMALL_TOP_ADJUSTMENT = 0; export declare const DRAG_HANDLE_WRAPPED_MEDIA_EMBED_TOP_ADJUSTMENT = 8; export declare const STICKY_CONTROLS_TOP_MARGIN = 8; export declare const STICKY_CONTROLS_TOP_MARGIN_FOR_STICKY_HEADER = 24; export declare const QUICK_INSERT_HEIGHT = 24; export declare const QUICK_INSERT_WIDTH = 24; export declare const QUICK_INSERT_DIMENSIONS: { height: number; width: number; }; export declare const QUICK_INSERT_LEFT_OFFSET = 16; export declare const dragHandleGap: (nodeType: string, parentNodeType?: string) => number; export declare const rootElementGap: (nodeType: string) => number; export declare const getNestedNodeLeftPaddingMargin: (nodeType?: string) => '24px' | '8px' | '16px' | '20px' | '28px' | '40px'; export declare const topPositionAdjustment: (nodeType: string, layout?: string) => number; export declare const spacingBetweenNodesForPreview: { [key: string]: { bottom: string; top: string; }; }; export declare const nodeMargins: { [key: string]: { bottom: number; top: number; }; }; export declare const DEFAULT_COLUMN_DISTRIBUTIONS: { [key: number]: number; };