@atlaskit/editor-plugin-layout
Version:
Layout plugin for @atlaskit/editor-core
16 lines (15 loc) • 413 B
TypeScript
import type { Slice } from '@atlaskit/editor-prosemirror/model';
import type { PresetLayout } from '../types';
export type LayoutState = {
addSidebarLayouts: boolean;
allowBreakout: boolean;
allowSingleColumnLayout: boolean;
isResizing: boolean;
pos: number | null;
selectedLayout: PresetLayout | undefined;
};
export type Change = {
from: number;
slice: Slice;
to: number;
};