UNPKG

@atlaskit/editor-plugin-extension

Version:

editor-plugin-extension plugin for @atlaskit/editor-core

10 lines (9 loc) • 564 B
import type { Layout } from '@atlaskit/adf-schema/extensions'; import type { Node } from '@atlaskit/editor-prosemirror/model'; export declare const getExtensionPresetWidth: (layout: 'default' | 'wide' | 'full-width') => number; /** * getExtensionLayout tries to match the breakout mark's width (if any) to an extension layout preset. * @returns the layout preset if the breakout width matches, null if there is no match, or * the node's layout attribute if there is no breakout width. */ export declare const getExtensionLayout: (node: Node) => Layout | null;