UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

23 lines (21 loc) 649 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultTableSelection = exports.defaultHoveredCell = void 0; var defaultTableSelection = exports.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. */ var defaultHoveredCell = exports.defaultHoveredCell = { hoveredCell: { rowIndex: undefined, colIndex: undefined } };