UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

7 lines (6 loc) 454 B
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model'; import type { Selection } from '@atlaskit/editor-prosemirror/state'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; export declare const expandedState: WeakMap<PmNode, boolean>; export declare const isExpandCollapsed: (node: PmNode) => boolean; export declare const getNextNodeExpandPos: (editorView: EditorView, selection: Selection) => number | undefined;