UNPKG

@atlaskit/editor-plugin-floating-toolbar

Version:

Floating toolbar plugin for @atlaskit/editor-core

25 lines (24 loc) 1.1 kB
import React from 'react'; import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions'; import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel'; import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; interface Props { alignDropdownWithToolbar?: boolean; applyChangeToContextPanel: ApplyChangeHandler | undefined; areAnyNewToolbarFlagsEnabled: boolean; dispatchCommand?: (command: Function) => void; editorView: EditorView; extensionApi: ExtensionAPI | undefined; extensionProvider: Promise<ExtensionProvider>; node: PMNode; popupsBoundariesElement?: HTMLElement; popupsMountPoint?: HTMLElement; popupsScrollableElement?: HTMLElement; scrollable?: boolean; separator?: 'start' | 'end' | 'both'; setDisableParentScroll?: (disable: boolean) => void; setDisableScroll?: (disable: boolean) => void; } export declare const ExtensionsPlaceholder: (props: Props) => React.JSX.Element | null; export {};