UNPKG

@atlaskit/editor-plugin-floating-toolbar

Version:

Floating toolbar plugin for @atlaskit/editor-core

26 lines (25 loc) • 1.2 kB
import React from 'react'; import type { ExtensionAPI } from '@atlaskit/editor-common/extensions/extension-handler'; import type { ExtensionProvider } from '@atlaskit/editor-common/extensions/extension-provider'; import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel/types'; 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 {};