UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

24 lines (23 loc) 1.18 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 BlockControlsLeftSurfaceProps = { api: ExtractInjectionAPI<BlockControlsPlugin>; components: React.ComponentProps<typeof SurfaceRenderer>['components']; forceVisibleOnMouseOut: boolean; placement: SurfaceWrapperPlacement | undefined; source: BlockControlsSurfaceTarget['source']; surfaceContext: SurfaceContext; }; /** Renders one left block-controls surface at a document position. */ export declare const BlockControlsLeftSurface: ({ api, components, forceVisibleOnMouseOut, placement, source, surfaceContext, }: BlockControlsLeftSurfaceProps) => React.JSX.Element | null; export {};