UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

34 lines (33 loc) 1.02 kB
/// <reference types="react" /> import { PureComponent } from 'react'; import { TableState } from '../../plugins/table'; import { EditorView, CellSelection } from '../../prosemirror'; export interface Props { editorView: EditorView; pluginState: TableState; popupsMountPoint?: HTMLElement; popupsBoundariesElement?: HTMLElement; } export interface State { cellElement?: HTMLElement; cellSelection?: CellSelection; isOpen?: boolean; cutDisabled: boolean; copyDisabled: boolean; pasteDisabled: boolean; advancedMenuDisabled: boolean; } export default class TableFloatingToolbar extends PureComponent<Props, State> { state: State; componentDidMount(): void; componentWillUnmount(): void; componentDidUpdate(): void; render(): JSX.Element | null; private toggleAdvancedMenu; private handleOpenChange; private createItems; private addRecordToItems; private onItemActivated; private handlePluginStateChange; private handleRemove; }