UNPKG

@atlaskit/editor-plugin-extension

Version:

editor-plugin-extension plugin for @atlaskit/editor-core

30 lines (29 loc) 1.51 kB
import React from 'react'; import { type ExtensionProvider } from '@atlaskit/editor-common/extensions'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { ExtensionPlugin } from '../extensionPluginType'; export declare function useConfigPanelPluginHook({ editorView, configPanelId, api, }: { api?: ExtractInjectionAPI<ExtensionPlugin>; configPanelId: string; editorView: EditorView; }): void; export declare function hideConfigPanel(configPanelId: string, api: ExtractInjectionAPI<ExtensionPlugin> | undefined): void; export declare function showConfigPanel({ api, configPanelId, editorView, extensionProvider, nodeWithPos, }: { api: ExtractInjectionAPI<ExtensionPlugin> | undefined; configPanelId: string; editorView: EditorView; extensionProvider: ExtensionProvider; nodeWithPos: ContentNodeWithPos; }): void; export declare function startClosingConfigPanel({ api, editorView, }: { api: ExtractInjectionAPI<ExtensionPlugin> | undefined; editorView: EditorView; }): Promise<void>; export declare const getContextPanelBodyComponent: ({ api, editorView, extensionProvider, nodeWithPos, }: { api: ExtractInjectionAPI<ExtensionPlugin> | undefined; editorView: EditorView; extensionProvider: ExtensionProvider; nodeWithPos: ContentNodeWithPos; }) => () => React.JSX.Element;