UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

25 lines (24 loc) 1.08 kB
/** * @jsxRuntime classic * @jsx jsx * @jsxFrag React.Fragment */ import React from 'react'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { BlockControlsPlugin } from '../blockControlsPluginType'; type Props = { api: ExtractInjectionAPI<BlockControlsPlugin>; editorView: EditorView; }; /** * Registry-backed right surface tree. Mirrors the left surface's single-tree approach, but keeps its * own components lookup, targets, placements and measurement lifecycle so the right surface never * depends on the left surface's render pass. * * Targets are placed one of two ways. Where the node's anchor name can be relied on, the surface is * positioned with `anchor()` and the browser keeps it attached with nothing re-rendering. Everything * else is measured and kept honest by the observers below. See `hasInnerContentContainer`. */ export declare const BlockControlsRightSurfaces: ({ api, editorView, }: Props) => React.JSX.Element | null; export {};