UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

24 lines (23 loc) 1.19 kB
/** * @jsxRuntime classic * @jsx jsx * @jsxFrag React.Fragment */ import React from 'react'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import { SurfaceRenderer } from '@atlaskit/editor-ui-control-model/surface-renderer'; import type { SurfaceContext } from '@atlaskit/editor-ui-control-model/types'; import type { BlockControlsPlugin } from '../blockControlsPluginType'; import type { BlockControlsSurfaceTarget } from './block-controls-surface-targets'; import type { SurfaceWrapperPlacement } from './utils/get-surface-placement'; type BlockControlsRightSurfaceProps = { api: ExtractInjectionAPI<BlockControlsPlugin>; components: React.ComponentProps<typeof SurfaceRenderer>['components']; forceVisibleOnMouseOut: boolean; placement: SurfaceWrapperPlacement | undefined; source: BlockControlsSurfaceTarget['source']; surfaceContext: SurfaceContext; }; /** Renders one right block-controls surface at a document position. */ export declare const BlockControlsRightSurface: ({ api, components, forceVisibleOnMouseOut, placement, source, surfaceContext, }: BlockControlsRightSurfaceProps) => React.JSX.Element | null; export {};