@atlaskit/editor-plugin-paste-options-toolbar
Version:
Paste options toolbar for @atlaskit/editor-core
11 lines (10 loc) • 1.07 kB
TypeScript
import type { IntlShape } from 'react-intl';
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
import type { Command, FloatingToolbarConfig, FloatingToolbarDropdown } from '@atlaskit/editor-common/types';
import type { LastContentPasted } from '@atlaskit/editor-plugin-paste';
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;