UNPKG

@atlaskit/editor-common

Version:

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

18 lines (17 loc) 745 B
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view'; export declare function makeNodePlaceholderId(nodeType: string, pos: number): string; /** * 🧱 Internal: Editor FE Platform * * A NodeView that serves as a placeholder until the actual NodeView is loaded. */ export declare class LazyNodeView implements NodeView { dom: Node; contentDOM?: HTMLElement; private node; private outerDeco; constructor(node: PMNode, view: EditorView, _getPos: () => number | undefined, outerDeco: readonly Decoration[]); update: (node: PMNode, outerDeco: readonly Decoration[]) => boolean; ignoreMutation(): boolean; }