@atlaskit/editor-plugin-breakout
Version:
Breakout plugin for @atlaskit/editor-core
16 lines (15 loc) • 853 B
TypeScript
import type { MemoizedFn } from 'memoize-one';
import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
export declare const GUIDELINE_KEYS: {
readonly lineLengthLeft: 'grid_left';
readonly lineLengthRight: 'grid_right';
readonly wideLeft: 'wide_left';
readonly wideRight: 'wide_right';
readonly fullWidthLeft: 'full_width_left';
readonly fullWidthRight: 'full_width_right';
readonly maxWidthLeft: 'max_width_left';
readonly maxWidthRight: 'max_width_right';
};
export declare const getGuidelines: MemoizedFn<(isResizing: boolean, newWidth: number, getEditorWidth: () => EditorContainerWidth | undefined, nodeType?: NodeType | undefined) => GuidelineConfig[]>;