@atlaskit/editor-plugin-context-panel
Version:
Context panel plugin for @atlaskit/editor-core
16 lines (15 loc) • 622 B
TypeScript
import type React from 'react';
import type { ContextPanelHandler } from '@atlaskit/editor-common/types';
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
import type { ContextPanelPlugin } from './contextPanelPluginType';
export declare const pluginKey: PluginKey<ContextPanelPluginState>;
type ContextPanelPluginState = {
contents: React.ReactNode[];
handlers: ContextPanelHandler[];
};
/**
* Context panel plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
* from `@atlaskit/editor-core`.
*/
export declare const contextPanelPlugin: ContextPanelPlugin;
export {};