UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

17 lines (16 loc) 453 B
export var defaultTableSelection = { hoveredColumns: [], hoveredRows: [] }; /** * Creating a separate object for hoveredCell so it doesn't get defaulted when `handleDocOrSelectionChanged` runs. * * It is safe to persist this value as it gets removed when the mouse cursor leaves the table, so no need to remove it * when doc changes. */ export var defaultHoveredCell = { hoveredCell: { rowIndex: undefined, colIndex: undefined } };