UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

24 lines (23 loc) 723 B
/// <reference types="react" /> import { PureComponent } from 'react'; import { EditorView } from '../../prosemirror'; import { PanelState } from '../../plugins/panel'; export interface Props { editorView: EditorView; pluginState: PanelState; } export interface State { toolbarVisible: boolean | undefined; target?: HTMLElement | undefined; activePanelType?: string | undefined; } export default class PanelEdit extends PureComponent<Props, State> { state: State; constructor(props: Props); componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element | null; private handlePluginStateChange; private handleSelectPanelType; private handleRemovePanel; }