UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

31 lines (30 loc) 967 B
/// <reference types="react" /> import { PureComponent } from 'react'; import { TableState } from '../../plugins/table'; import { CellSelection, Node, EditorView } from '../../prosemirror'; export interface Props { pluginState: TableState; editorView: EditorView; popupsBoundariesElement?: HTMLElement; popupsMountPoint?: HTMLElement; } export interface State { tableElement?: HTMLElement; tableActive?: boolean; tableNode?: Node; cellSelection?: CellSelection; tableSelected: boolean; } export default class TableFloatingControls extends PureComponent<Props, State> { state: State; content?: HTMLElement; componentDidMount(): void; componentWillUnmount(): void; handleMouseDown: () => void; handleBlur: () => void; handleKeyDown: (event: any) => void; handleCornerMouseOver: () => void; handleCornerMouseOut: () => void; render(): JSX.Element | null; private handlePluginStateChange; }