UNPKG

@atlaskit/editor-plugin-toolbar

Version:

Toolbar plugin for @atlaskit/editor-core

24 lines (23 loc) • 1.28 kB
import React from 'react'; import type { EditorToolbarContextType } from '@atlaskit/editor-common/toolbar/context'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { ToolbarUIContextType } from '@atlaskit/editor-toolbar/ui-context'; import type { ToolbarPlugin } from '../toolbarPluginType'; type ToolbarProvidersProps = { api?: ExtractInjectionAPI<ToolbarPlugin>; children: React.ReactNode; editorToolbarDockingPreference?: EditorToolbarContextType['editorToolbarDockingPreference']; editorView: EditorView; editorViewMode: 'edit' | 'view'; isOffline: boolean; keyboardNavigation: ToolbarUIContextType['keyboardNavigation']; popupsBoundariesElement?: HTMLElement; popupsMountPoint?: HTMLElement; popupsScrollableElement?: HTMLElement; }; /** * Editor and toolbar UI context shared by the floating toolbars (selection and element). */ export declare const ToolbarProviders: ({ api, children, editorToolbarDockingPreference, editorView, editorViewMode, isOffline, keyboardNavigation, popupsBoundariesElement, popupsMountPoint, popupsScrollableElement, }: ToolbarProvidersProps) => React.JSX.Element; export {};