@atlaskit/editor-plugin-block-controls
Version:
Block controls plugin for @atlaskit/editor-core
19 lines (18 loc) • 888 B
TypeScript
import { jsx } from '@emotion/react';
import type { IntlShape } from 'react-intl';
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
import type { BlockControlsPlugin } from '../blockControlsPluginType';
import type { AnchorRectCache } from '../pm-plugins/utils/anchor-utils';
export type DropTargetLayoutProps = {
api: ExtractInjectionAPI<BlockControlsPlugin> | undefined;
formatMessage?: IntlShape['formatMessage'];
getPos: () => number | undefined;
parent: PMNode;
};
export declare const DropTargetLayout: (props: DropTargetLayoutProps & {
anchorRectCache?: AnchorRectCache;
}) => jsx.JSX.Element | null;
export declare const DropTargetLayoutNativeAnchorSupport: (props: DropTargetLayoutProps & {
anchorRectCache?: AnchorRectCache;
}) => jsx.JSX.Element | null;