UNPKG

@atlaskit/editor-plugin-paste-options-toolbar

Version:

Paste options toolbar for @atlaskit/editor-core

12 lines (11 loc) • 1.17 kB
import type { IntlShape } from 'react-intl'; import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api'; import type { Command } from '@atlaskit/editor-common/types/command'; import type { FloatingToolbarConfig, FloatingToolbarDropdown } from '@atlaskit/editor-common/types/floating-toolbar'; import type { LastContentPasted } from '@atlaskit/editor-plugin-paste/paste-plugin-type'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; import type { MarkdownToPmConverter } from '../pasteOptionsToolbarPluginType'; import type { PasteOptionsPluginState } from '../types/types'; export declare const isToolbarVisible: (state: EditorState, lastContentPasted: LastContentPasted) => boolean; export declare const getToolbarMenuConfig: (pluginState: PasteOptionsPluginState, intl: IntlShape, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, markdownToPmConverter?: MarkdownToPmConverter) => FloatingToolbarDropdown<Command>; export declare const buildToolbar: (state: EditorState, intl: IntlShape, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, markdownToPmConverter?: MarkdownToPmConverter) => FloatingToolbarConfig | undefined;