UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

14 lines (13 loc) • 665 B
import type { ReactElement } from 'react'; /** * Mounts `element` into `mountPoint` using the `createRoot` API wrapped in * `flushSync` so the render is synchronous – matching the legacy * `ReactDOM.render` timing that ProseMirror decoration widgets depend on * (focus management, anchor positioning, block-menu visibility all read * the rendered DOM immediately after the callback returns). */ export declare const renderToMountPoint: (element: ReactElement, mountPoint: Element) => void; /** * Unmounts the React tree at `mountPoint` and removes it from the shared registry. */ export declare const unmountFromMountPoint: (mountPoint: Element) => void;