@atlaskit/editor-plugin-table 38.0.5 → 38.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/nodeviews/ExternalDropTargets.js +2 -2
- package/dist/cjs/nodeviews/TableCell.js +5 -4
- package/dist/cjs/nodeviews/TableComponent.js +6 -6
- package/dist/cjs/nodeviews/TableComponentWithSharedState.js +2 -2
- package/dist/cjs/nodeviews/TableContainer.js +12 -11
- package/dist/cjs/nodeviews/TableResizer.js +27 -26
- package/dist/cjs/nodeviews/TableRow.js +4 -4
- package/dist/cjs/nodeviews/TableRowNativeStickyWithFallback.js +13 -12
- package/dist/cjs/nodeviews/TableSSRReactContextsProvider.js +2 -2
- package/dist/cjs/nodeviews/TableStickyScrollbar.js +2 -2
- package/dist/cjs/nodeviews/table.js +4 -4
- package/dist/cjs/nodeviews/toDOM.js +6 -6
- package/dist/cjs/pm-plugins/analytics/plugin-factory.js +2 -2
- package/dist/cjs/pm-plugins/analytics/plugin.js +5 -4
- package/dist/cjs/pm-plugins/commands/clear.js +5 -3
- package/dist/cjs/pm-plugins/commands/column-resize.js +18 -16
- package/dist/cjs/pm-plugins/commands/commands-with-analytics.js +118 -116
- package/dist/cjs/pm-plugins/commands/go-to-next-cell.js +5 -4
- package/dist/cjs/pm-plugins/commands/hover.js +5 -3
- package/dist/cjs/pm-plugins/commands/insert.js +21 -17
- package/dist/cjs/pm-plugins/commands/misc.js +45 -34
- package/dist/cjs/pm-plugins/commands/referentiality.js +2 -2
- package/dist/cjs/pm-plugins/commands/selection.js +25 -22
- package/dist/cjs/pm-plugins/commands/sort.js +14 -11
- package/dist/cjs/pm-plugins/commands/split-cell.js +2 -1
- package/dist/cjs/pm-plugins/commands/toggle.js +6 -5
- package/dist/cjs/pm-plugins/decorations/plugin.js +2 -2
- package/dist/cjs/pm-plugins/drag-and-drop/commands-with-analytics.js +33 -31
- package/dist/cjs/pm-plugins/drag-and-drop/commands.js +6 -3
- package/dist/cjs/pm-plugins/drag-and-drop/plugin-factory.js +2 -2
- package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +16 -14
- package/dist/cjs/pm-plugins/handlers.js +10 -10
- package/dist/cjs/pm-plugins/keymap.js +11 -11
- package/dist/cjs/pm-plugins/main.js +24 -22
- package/dist/cjs/pm-plugins/plugin-factory.js +2 -2
- package/dist/cjs/pm-plugins/sticky-headers/plugin-state.js +2 -2
- package/dist/cjs/pm-plugins/table-analytics.js +6 -5
- package/dist/cjs/pm-plugins/table-anchor-names/plugin.js +2 -2
- package/dist/cjs/pm-plugins/table-resizing/commands.js +2 -2
- package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +20 -19
- package/dist/cjs/pm-plugins/table-resizing/plugin-factory.js +2 -2
- package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +17 -16
- package/dist/cjs/pm-plugins/table-resizing/utils/column-state.js +3 -3
- package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +5 -4
- package/dist/cjs/pm-plugins/table-resizing/utils/misc.js +9 -9
- package/dist/cjs/pm-plugins/table-resizing/utils/resize-state.js +8 -8
- package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +8 -8
- package/dist/cjs/pm-plugins/table-width-in-comment-fix.js +2 -2
- package/dist/cjs/pm-plugins/table-width.js +8 -8
- package/dist/cjs/pm-plugins/transforms/column-width.js +7 -7
- package/dist/cjs/pm-plugins/transforms/content-mode.js +4 -4
- package/dist/cjs/pm-plugins/transforms/delete-columns.js +4 -4
- package/dist/cjs/pm-plugins/transforms/fix-tables.js +5 -5
- package/dist/cjs/pm-plugins/transforms/merge.js +3 -2
- package/dist/cjs/pm-plugins/transforms/replace-table.js +7 -6
- package/dist/cjs/pm-plugins/utils/analytics.js +19 -17
- package/dist/cjs/pm-plugins/utils/column-controls.js +11 -10
- package/dist/cjs/pm-plugins/utils/create.js +2 -2
- package/dist/cjs/pm-plugins/utils/decoration.js +6 -4
- package/dist/cjs/pm-plugins/utils/dom.js +4 -3
- package/dist/cjs/pm-plugins/utils/drag-menu.js +12 -12
- package/dist/cjs/pm-plugins/utils/guidelines.js +3 -3
- package/dist/cjs/pm-plugins/utils/merged-cells.js +5 -4
- package/dist/cjs/pm-plugins/utils/nodes.js +8 -8
- package/dist/cjs/pm-plugins/utils/paste.js +10 -10
- package/dist/cjs/pm-plugins/utils/row-controls.js +2 -1
- package/dist/cjs/pm-plugins/utils/selection.js +4 -3
- package/dist/cjs/pm-plugins/utils/snapping.js +12 -12
- package/dist/cjs/pm-plugins/utils/table.js +5 -5
- package/dist/cjs/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.js +10 -9
- package/dist/cjs/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.js +5 -4
- package/dist/cjs/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.js +8 -8
- package/dist/cjs/pm-plugins/view-mode-sort/utils.js +2 -1
- package/dist/cjs/tablePlugin.js +27 -26
- package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -2
- package/dist/cjs/ui/ContentComponent.js +9 -9
- package/dist/cjs/ui/DragHandle/index.js +5 -4
- package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +4 -3
- package/dist/cjs/ui/FloatingContextualButton/index.js +12 -12
- package/dist/cjs/ui/FloatingContextualMenu/CellMenuPopup.js +5 -4
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +69 -63
- package/dist/cjs/ui/FloatingContextualMenu/index.js +11 -9
- package/dist/cjs/ui/FloatingDeleteButton/index.js +17 -16
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +61 -54
- package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +14 -10
- package/dist/cjs/ui/FloatingDragMenu/index.js +4 -4
- package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +9 -9
- package/dist/cjs/ui/FloatingInsertButton/getPopupOptions.js +2 -2
- package/dist/cjs/ui/FloatingInsertButton/index.js +17 -17
- package/dist/cjs/ui/FloatingTableMenu/index.js +8 -6
- package/dist/cjs/ui/FloatingToolbarLabel/FloatingToolbarLabel.js +2 -2
- package/dist/cjs/ui/SizeSelector/index.js +2 -2
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +18 -17
- package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +13 -12
- package/dist/cjs/ui/TableFullWidthLabel/index.js +2 -2
- package/dist/cjs/ui/TableMenu/cell/getCellMenuComponents.js +15 -15
- package/dist/cjs/ui/TableMenu/cell/items/MergeCellsItem.js +8 -7
- package/dist/cjs/ui/TableMenu/cell/items/SplitCellItem.js +8 -7
- package/dist/cjs/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +4 -4
- package/dist/cjs/ui/TableMenu/cell/items/VerticalAlignNestedMenu.js +6 -5
- package/dist/cjs/ui/TableMenu/column/getColumnMenuComponents.js +7 -7
- package/dist/cjs/ui/TableMenu/column/items/AddColumnLeftItem.js +14 -12
- package/dist/cjs/ui/TableMenu/column/items/AddColumnRightItem.js +12 -10
- package/dist/cjs/ui/TableMenu/column/items/ColumnBackgroundSection.js +4 -4
- package/dist/cjs/ui/TableMenu/column/items/ColumnToggleSection.js +4 -4
- package/dist/cjs/ui/TableMenu/column/items/DeleteColumnItem.js +12 -10
- package/dist/cjs/ui/TableMenu/column/items/DistributeColumnsItem.js +10 -9
- package/dist/cjs/ui/TableMenu/column/items/HeaderColumnToggleItem.js +6 -6
- package/dist/cjs/ui/TableMenu/column/items/MoveColumnLeftItem.js +9 -9
- package/dist/cjs/ui/TableMenu/column/items/MoveColumnRightItem.js +9 -9
- package/dist/cjs/ui/TableMenu/column/items/SortDecreasingItem.js +17 -15
- package/dist/cjs/ui/TableMenu/column/items/SortIncreasingItem.js +17 -15
- package/dist/cjs/ui/TableMenu/row/getRowMenuComponents.js +9 -9
- package/dist/cjs/ui/TableMenu/row/items/AddRowAboveItem.js +12 -10
- package/dist/cjs/ui/TableMenu/row/items/AddRowBelowItem.js +10 -8
- package/dist/cjs/ui/TableMenu/row/items/DeleteRowItem.js +12 -10
- package/dist/cjs/ui/TableMenu/row/items/HeaderRowToggleItem.js +6 -6
- package/dist/cjs/ui/TableMenu/row/items/MoveRowDownItem.js +9 -9
- package/dist/cjs/ui/TableMenu/row/items/MoveRowUpItem.js +9 -9
- package/dist/cjs/ui/TableMenu/row/items/NumberedRowsToggleItem.js +6 -6
- package/dist/cjs/ui/TableMenu/shared/TableMenu.js +6 -6
- package/dist/cjs/ui/TableMenu/shared/items/BackgroundColorItem.js +20 -14
- package/dist/cjs/ui/TableMenu/shared/items/ClearCellsItem.js +10 -8
- package/dist/cjs/ui/TableMenu/shared/selection.js +4 -2
- package/dist/cjs/ui/common-styles.js +34 -30
- package/dist/cjs/ui/consts.js +8 -8
- package/dist/cjs/ui/event-handlers.js +47 -43
- package/dist/cjs/ui/global-styles.js +2 -2
- package/dist/cjs/ui/hooks/useInternalTablePluginStateSelector.js +1 -1
- package/dist/cjs/ui/icons/SortingIconWrapper.js +4 -4
- package/dist/cjs/ui/quick-insert/TableQuickInsertMenuItem.js +5 -5
- package/dist/cjs/ui/quick-insert/getTableQuickInsertComponents.js +3 -3
- package/dist/cjs/ui/quick-insert/insertTableFromQuickInsert.js +5 -5
- package/dist/cjs/ui/rounded-table-styles.js +8 -8
- package/dist/cjs/ui/toolbar.js +80 -72
- package/dist/cjs/ui/ui-styles.js +14 -14
- package/dist/es2019/nodeviews/ExternalDropTargets.js +1 -1
- package/dist/es2019/nodeviews/TableCell.js +2 -1
- package/dist/es2019/nodeviews/TableComponent.js +2 -2
- package/dist/es2019/nodeviews/TableComponentWithSharedState.js +1 -1
- package/dist/es2019/nodeviews/TableContainer.js +4 -3
- package/dist/es2019/nodeviews/TableResizer.js +10 -9
- package/dist/es2019/nodeviews/TableRow.js +1 -1
- package/dist/es2019/nodeviews/TableRowNativeStickyWithFallback.js +4 -3
- package/dist/es2019/nodeviews/TableSSRReactContextsProvider.js +1 -1
- package/dist/es2019/nodeviews/TableStickyScrollbar.js +1 -1
- package/dist/es2019/nodeviews/table.js +2 -2
- package/dist/es2019/nodeviews/toDOM.js +2 -2
- package/dist/es2019/pm-plugins/analytics/plugin-factory.js +1 -1
- package/dist/es2019/pm-plugins/analytics/plugin.js +2 -1
- package/dist/es2019/pm-plugins/commands/clear.js +3 -1
- package/dist/es2019/pm-plugins/commands/column-resize.js +6 -4
- package/dist/es2019/pm-plugins/commands/commands-with-analytics.js +5 -3
- package/dist/es2019/pm-plugins/commands/go-to-next-cell.js +3 -2
- package/dist/es2019/pm-plugins/commands/hover.js +3 -1
- package/dist/es2019/pm-plugins/commands/insert.js +7 -3
- package/dist/es2019/pm-plugins/commands/misc.js +13 -2
- package/dist/es2019/pm-plugins/commands/referentiality.js +1 -1
- package/dist/es2019/pm-plugins/commands/selection.js +6 -3
- package/dist/es2019/pm-plugins/commands/sort.js +6 -3
- package/dist/es2019/pm-plugins/commands/split-cell.js +2 -1
- package/dist/es2019/pm-plugins/commands/toggle.js +3 -2
- package/dist/es2019/pm-plugins/decorations/plugin.js +1 -1
- package/dist/es2019/pm-plugins/drag-and-drop/commands-with-analytics.js +5 -3
- package/dist/es2019/pm-plugins/drag-and-drop/commands.js +4 -1
- package/dist/es2019/pm-plugins/drag-and-drop/plugin-factory.js +1 -1
- package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +5 -3
- package/dist/es2019/pm-plugins/handlers.js +2 -2
- package/dist/es2019/pm-plugins/keymap.js +2 -2
- package/dist/es2019/pm-plugins/main.js +7 -5
- package/dist/es2019/pm-plugins/plugin-factory.js +1 -1
- package/dist/es2019/pm-plugins/sticky-headers/plugin-state.js +1 -1
- package/dist/es2019/pm-plugins/table-analytics.js +2 -1
- package/dist/es2019/pm-plugins/table-anchor-names/plugin.js +1 -1
- package/dist/es2019/pm-plugins/table-resizing/commands.js +1 -1
- package/dist/es2019/pm-plugins/table-resizing/event-handlers.js +5 -4
- package/dist/es2019/pm-plugins/table-resizing/plugin-factory.js +1 -1
- package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +4 -3
- package/dist/es2019/pm-plugins/table-resizing/utils/column-state.js +1 -1
- package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +3 -2
- package/dist/es2019/pm-plugins/table-resizing/utils/misc.js +2 -2
- package/dist/es2019/pm-plugins/table-resizing/utils/resize-state.js +2 -2
- package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +3 -3
- package/dist/es2019/pm-plugins/table-width-in-comment-fix.js +1 -1
- package/dist/es2019/pm-plugins/table-width.js +2 -2
- package/dist/es2019/pm-plugins/transforms/column-width.js +1 -1
- package/dist/es2019/pm-plugins/transforms/content-mode.js +2 -2
- package/dist/es2019/pm-plugins/transforms/delete-columns.js +2 -2
- package/dist/es2019/pm-plugins/transforms/fix-tables.js +2 -2
- package/dist/es2019/pm-plugins/transforms/merge.js +2 -1
- package/dist/es2019/pm-plugins/transforms/replace-table.js +2 -1
- package/dist/es2019/pm-plugins/utils/analytics.js +4 -2
- package/dist/es2019/pm-plugins/utils/column-controls.js +3 -2
- package/dist/es2019/pm-plugins/utils/create.js +1 -1
- package/dist/es2019/pm-plugins/utils/decoration.js +3 -1
- package/dist/es2019/pm-plugins/utils/dom.js +2 -1
- package/dist/es2019/pm-plugins/utils/drag-menu.js +2 -2
- package/dist/es2019/pm-plugins/utils/guidelines.js +1 -1
- package/dist/es2019/pm-plugins/utils/merged-cells.js +2 -1
- package/dist/es2019/pm-plugins/utils/nodes.js +1 -1
- package/dist/es2019/pm-plugins/utils/paste.js +2 -2
- package/dist/es2019/pm-plugins/utils/row-controls.js +2 -1
- package/dist/es2019/pm-plugins/utils/selection.js +2 -1
- package/dist/es2019/pm-plugins/utils/snapping.js +2 -2
- package/dist/es2019/pm-plugins/utils/table.js +1 -1
- package/dist/es2019/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.js +3 -2
- package/dist/es2019/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.js +2 -1
- package/dist/es2019/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.js +2 -2
- package/dist/es2019/pm-plugins/view-mode-sort/utils.js +2 -1
- package/dist/es2019/tablePlugin.js +6 -5
- package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/es2019/ui/ContentComponent.js +4 -4
- package/dist/es2019/ui/DragHandle/index.js +3 -2
- package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +2 -1
- package/dist/es2019/ui/FloatingContextualButton/index.js +6 -6
- package/dist/es2019/ui/FloatingContextualMenu/CellMenuPopup.js +4 -3
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +17 -11
- package/dist/es2019/ui/FloatingContextualMenu/index.js +6 -4
- package/dist/es2019/ui/FloatingDeleteButton/index.js +7 -6
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +17 -10
- package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +8 -4
- package/dist/es2019/ui/FloatingDragMenu/index.js +2 -2
- package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +4 -4
- package/dist/es2019/ui/FloatingInsertButton/getPopupOptions.js +1 -1
- package/dist/es2019/ui/FloatingInsertButton/index.js +3 -3
- package/dist/es2019/ui/FloatingTableMenu/index.js +5 -4
- package/dist/es2019/ui/FloatingToolbarLabel/FloatingToolbarLabel.js +1 -1
- package/dist/es2019/ui/SizeSelector/index.js +1 -1
- package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +7 -6
- package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +5 -4
- package/dist/es2019/ui/TableFullWidthLabel/index.js +1 -1
- package/dist/es2019/ui/TableMenu/cell/getCellMenuComponents.js +2 -2
- package/dist/es2019/ui/TableMenu/cell/items/MergeCellsItem.js +4 -3
- package/dist/es2019/ui/TableMenu/cell/items/SplitCellItem.js +4 -3
- package/dist/es2019/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +2 -2
- package/dist/es2019/ui/TableMenu/cell/items/VerticalAlignNestedMenu.js +3 -2
- package/dist/es2019/ui/TableMenu/column/getColumnMenuComponents.js +1 -1
- package/dist/es2019/ui/TableMenu/column/items/AddColumnLeftItem.js +7 -5
- package/dist/es2019/ui/TableMenu/column/items/AddColumnRightItem.js +6 -4
- package/dist/es2019/ui/TableMenu/column/items/ColumnBackgroundSection.js +2 -2
- package/dist/es2019/ui/TableMenu/column/items/ColumnToggleSection.js +2 -2
- package/dist/es2019/ui/TableMenu/column/items/DeleteColumnItem.js +6 -4
- package/dist/es2019/ui/TableMenu/column/items/DistributeColumnsItem.js +5 -4
- package/dist/es2019/ui/TableMenu/column/items/HeaderColumnToggleItem.js +3 -3
- package/dist/es2019/ui/TableMenu/column/items/MoveColumnLeftItem.js +4 -4
- package/dist/es2019/ui/TableMenu/column/items/MoveColumnRightItem.js +4 -4
- package/dist/es2019/ui/TableMenu/column/items/SortDecreasingItem.js +7 -5
- package/dist/es2019/ui/TableMenu/column/items/SortIncreasingItem.js +7 -5
- package/dist/es2019/ui/TableMenu/row/getRowMenuComponents.js +1 -1
- package/dist/es2019/ui/TableMenu/row/items/AddRowAboveItem.js +6 -4
- package/dist/es2019/ui/TableMenu/row/items/AddRowBelowItem.js +5 -3
- package/dist/es2019/ui/TableMenu/row/items/DeleteRowItem.js +6 -4
- package/dist/es2019/ui/TableMenu/row/items/HeaderRowToggleItem.js +3 -3
- package/dist/es2019/ui/TableMenu/row/items/MoveRowDownItem.js +4 -4
- package/dist/es2019/ui/TableMenu/row/items/MoveRowUpItem.js +4 -4
- package/dist/es2019/ui/TableMenu/row/items/NumberedRowsToggleItem.js +3 -3
- package/dist/es2019/ui/TableMenu/shared/TableMenu.js +3 -3
- package/dist/es2019/ui/TableMenu/shared/items/BackgroundColorItem.js +10 -5
- package/dist/es2019/ui/TableMenu/shared/items/ClearCellsItem.js +5 -3
- package/dist/es2019/ui/TableMenu/shared/selection.js +3 -1
- package/dist/es2019/ui/common-styles.js +8 -4
- package/dist/es2019/ui/consts.js +2 -2
- package/dist/es2019/ui/event-handlers.js +7 -3
- package/dist/es2019/ui/global-styles.js +1 -1
- package/dist/es2019/ui/hooks/useInternalTablePluginStateSelector.js +1 -1
- package/dist/es2019/ui/icons/SortingIconWrapper.js +2 -2
- package/dist/es2019/ui/quick-insert/TableQuickInsertMenuItem.js +1 -1
- package/dist/es2019/ui/quick-insert/getTableQuickInsertComponents.js +1 -1
- package/dist/es2019/ui/quick-insert/insertTableFromQuickInsert.js +1 -1
- package/dist/es2019/ui/rounded-table-styles.js +2 -2
- package/dist/es2019/ui/toolbar.js +20 -10
- package/dist/es2019/ui/ui-styles.js +2 -2
- package/dist/esm/nodeviews/ExternalDropTargets.js +1 -1
- package/dist/esm/nodeviews/TableCell.js +2 -1
- package/dist/esm/nodeviews/TableComponent.js +2 -2
- package/dist/esm/nodeviews/TableComponentWithSharedState.js +1 -1
- package/dist/esm/nodeviews/TableContainer.js +4 -3
- package/dist/esm/nodeviews/TableResizer.js +10 -9
- package/dist/esm/nodeviews/TableRow.js +1 -1
- package/dist/esm/nodeviews/TableRowNativeStickyWithFallback.js +4 -3
- package/dist/esm/nodeviews/TableSSRReactContextsProvider.js +1 -1
- package/dist/esm/nodeviews/TableStickyScrollbar.js +1 -1
- package/dist/esm/nodeviews/table.js +2 -2
- package/dist/esm/nodeviews/toDOM.js +2 -2
- package/dist/esm/pm-plugins/analytics/plugin-factory.js +1 -1
- package/dist/esm/pm-plugins/analytics/plugin.js +2 -1
- package/dist/esm/pm-plugins/commands/clear.js +3 -1
- package/dist/esm/pm-plugins/commands/column-resize.js +6 -4
- package/dist/esm/pm-plugins/commands/commands-with-analytics.js +5 -3
- package/dist/esm/pm-plugins/commands/go-to-next-cell.js +3 -2
- package/dist/esm/pm-plugins/commands/hover.js +3 -1
- package/dist/esm/pm-plugins/commands/insert.js +7 -3
- package/dist/esm/pm-plugins/commands/misc.js +13 -2
- package/dist/esm/pm-plugins/commands/referentiality.js +1 -1
- package/dist/esm/pm-plugins/commands/selection.js +6 -3
- package/dist/esm/pm-plugins/commands/sort.js +6 -3
- package/dist/esm/pm-plugins/commands/split-cell.js +2 -1
- package/dist/esm/pm-plugins/commands/toggle.js +3 -2
- package/dist/esm/pm-plugins/decorations/plugin.js +1 -1
- package/dist/esm/pm-plugins/drag-and-drop/commands-with-analytics.js +5 -3
- package/dist/esm/pm-plugins/drag-and-drop/commands.js +4 -1
- package/dist/esm/pm-plugins/drag-and-drop/plugin-factory.js +1 -1
- package/dist/esm/pm-plugins/drag-and-drop/plugin.js +5 -3
- package/dist/esm/pm-plugins/handlers.js +2 -2
- package/dist/esm/pm-plugins/keymap.js +2 -2
- package/dist/esm/pm-plugins/main.js +7 -5
- package/dist/esm/pm-plugins/plugin-factory.js +1 -1
- package/dist/esm/pm-plugins/sticky-headers/plugin-state.js +1 -1
- package/dist/esm/pm-plugins/table-analytics.js +2 -1
- package/dist/esm/pm-plugins/table-anchor-names/plugin.js +1 -1
- package/dist/esm/pm-plugins/table-resizing/commands.js +1 -1
- package/dist/esm/pm-plugins/table-resizing/event-handlers.js +5 -4
- package/dist/esm/pm-plugins/table-resizing/plugin-factory.js +1 -1
- package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +4 -3
- package/dist/esm/pm-plugins/table-resizing/utils/column-state.js +1 -1
- package/dist/esm/pm-plugins/table-resizing/utils/dom.js +3 -2
- package/dist/esm/pm-plugins/table-resizing/utils/misc.js +2 -2
- package/dist/esm/pm-plugins/table-resizing/utils/resize-state.js +2 -2
- package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +3 -3
- package/dist/esm/pm-plugins/table-width-in-comment-fix.js +1 -1
- package/dist/esm/pm-plugins/table-width.js +2 -2
- package/dist/esm/pm-plugins/transforms/column-width.js +1 -1
- package/dist/esm/pm-plugins/transforms/content-mode.js +2 -2
- package/dist/esm/pm-plugins/transforms/delete-columns.js +2 -2
- package/dist/esm/pm-plugins/transforms/fix-tables.js +2 -2
- package/dist/esm/pm-plugins/transforms/merge.js +2 -1
- package/dist/esm/pm-plugins/transforms/replace-table.js +2 -1
- package/dist/esm/pm-plugins/utils/analytics.js +4 -2
- package/dist/esm/pm-plugins/utils/column-controls.js +3 -2
- package/dist/esm/pm-plugins/utils/create.js +1 -1
- package/dist/esm/pm-plugins/utils/decoration.js +3 -1
- package/dist/esm/pm-plugins/utils/dom.js +2 -1
- package/dist/esm/pm-plugins/utils/drag-menu.js +2 -2
- package/dist/esm/pm-plugins/utils/guidelines.js +1 -1
- package/dist/esm/pm-plugins/utils/merged-cells.js +2 -1
- package/dist/esm/pm-plugins/utils/nodes.js +1 -1
- package/dist/esm/pm-plugins/utils/paste.js +2 -2
- package/dist/esm/pm-plugins/utils/row-controls.js +2 -1
- package/dist/esm/pm-plugins/utils/selection.js +2 -1
- package/dist/esm/pm-plugins/utils/snapping.js +2 -2
- package/dist/esm/pm-plugins/utils/table.js +1 -1
- package/dist/esm/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.js +3 -2
- package/dist/esm/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.js +2 -1
- package/dist/esm/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.js +2 -2
- package/dist/esm/pm-plugins/view-mode-sort/utils.js +2 -1
- package/dist/esm/tablePlugin.js +6 -5
- package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/esm/ui/ContentComponent.js +4 -4
- package/dist/esm/ui/DragHandle/index.js +3 -2
- package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +2 -1
- package/dist/esm/ui/FloatingContextualButton/index.js +6 -6
- package/dist/esm/ui/FloatingContextualMenu/CellMenuPopup.js +4 -3
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +17 -11
- package/dist/esm/ui/FloatingContextualMenu/index.js +6 -4
- package/dist/esm/ui/FloatingDeleteButton/index.js +7 -6
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +17 -10
- package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +8 -4
- package/dist/esm/ui/FloatingDragMenu/index.js +2 -2
- package/dist/esm/ui/FloatingInsertButton/InsertButton.js +4 -4
- package/dist/esm/ui/FloatingInsertButton/getPopupOptions.js +1 -1
- package/dist/esm/ui/FloatingInsertButton/index.js +3 -3
- package/dist/esm/ui/FloatingTableMenu/index.js +5 -4
- package/dist/esm/ui/FloatingToolbarLabel/FloatingToolbarLabel.js +1 -1
- package/dist/esm/ui/SizeSelector/index.js +1 -1
- package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +7 -6
- package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +1 -1
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +5 -4
- package/dist/esm/ui/TableFullWidthLabel/index.js +1 -1
- package/dist/esm/ui/TableMenu/cell/getCellMenuComponents.js +2 -2
- package/dist/esm/ui/TableMenu/cell/items/MergeCellsItem.js +4 -3
- package/dist/esm/ui/TableMenu/cell/items/SplitCellItem.js +4 -3
- package/dist/esm/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +2 -2
- package/dist/esm/ui/TableMenu/cell/items/VerticalAlignNestedMenu.js +3 -2
- package/dist/esm/ui/TableMenu/column/getColumnMenuComponents.js +1 -1
- package/dist/esm/ui/TableMenu/column/items/AddColumnLeftItem.js +7 -5
- package/dist/esm/ui/TableMenu/column/items/AddColumnRightItem.js +6 -4
- package/dist/esm/ui/TableMenu/column/items/ColumnBackgroundSection.js +2 -2
- package/dist/esm/ui/TableMenu/column/items/ColumnToggleSection.js +2 -2
- package/dist/esm/ui/TableMenu/column/items/DeleteColumnItem.js +6 -4
- package/dist/esm/ui/TableMenu/column/items/DistributeColumnsItem.js +5 -4
- package/dist/esm/ui/TableMenu/column/items/HeaderColumnToggleItem.js +3 -3
- package/dist/esm/ui/TableMenu/column/items/MoveColumnLeftItem.js +4 -4
- package/dist/esm/ui/TableMenu/column/items/MoveColumnRightItem.js +4 -4
- package/dist/esm/ui/TableMenu/column/items/SortDecreasingItem.js +7 -5
- package/dist/esm/ui/TableMenu/column/items/SortIncreasingItem.js +7 -5
- package/dist/esm/ui/TableMenu/row/getRowMenuComponents.js +1 -1
- package/dist/esm/ui/TableMenu/row/items/AddRowAboveItem.js +6 -4
- package/dist/esm/ui/TableMenu/row/items/AddRowBelowItem.js +5 -3
- package/dist/esm/ui/TableMenu/row/items/DeleteRowItem.js +6 -4
- package/dist/esm/ui/TableMenu/row/items/HeaderRowToggleItem.js +3 -3
- package/dist/esm/ui/TableMenu/row/items/MoveRowDownItem.js +4 -4
- package/dist/esm/ui/TableMenu/row/items/MoveRowUpItem.js +4 -4
- package/dist/esm/ui/TableMenu/row/items/NumberedRowsToggleItem.js +3 -3
- package/dist/esm/ui/TableMenu/shared/TableMenu.js +3 -3
- package/dist/esm/ui/TableMenu/shared/items/BackgroundColorItem.js +10 -5
- package/dist/esm/ui/TableMenu/shared/items/ClearCellsItem.js +5 -3
- package/dist/esm/ui/TableMenu/shared/selection.js +3 -1
- package/dist/esm/ui/common-styles.js +8 -4
- package/dist/esm/ui/consts.js +2 -2
- package/dist/esm/ui/event-handlers.js +7 -3
- package/dist/esm/ui/global-styles.js +1 -1
- package/dist/esm/ui/hooks/useInternalTablePluginStateSelector.js +1 -1
- package/dist/esm/ui/icons/SortingIconWrapper.js +2 -2
- package/dist/esm/ui/quick-insert/TableQuickInsertMenuItem.js +1 -1
- package/dist/esm/ui/quick-insert/getTableQuickInsertComponents.js +1 -1
- package/dist/esm/ui/quick-insert/insertTableFromQuickInsert.js +1 -1
- package/dist/esm/ui/rounded-table-styles.js +2 -2
- package/dist/esm/ui/toolbar.js +20 -10
- package/dist/esm/ui/ui-styles.js +2 -2
- package/dist/types/nodeviews/TableCell.d.ts +1 -1
- package/dist/types/nodeviews/TableComponent.d.ts +4 -3
- package/dist/types/nodeviews/TableComponentWithSharedState.d.ts +3 -2
- package/dist/types/nodeviews/TableContainer.d.ts +1 -1
- package/dist/types/nodeviews/TableResizer.d.ts +2 -2
- package/dist/types/nodeviews/table-node-views.d.ts +4 -3
- package/dist/types/nodeviews/table.d.ts +5 -3
- package/dist/types/nodeviews/toDOM.d.ts +1 -1
- package/dist/types/nodeviews/types.d.ts +4 -3
- package/dist/types/pm-plugins/analytics/commands.d.ts +1 -1
- package/dist/types/pm-plugins/analytics/plugin-factory.d.ts +1 -1
- package/dist/types/pm-plugins/analytics/plugin.d.ts +1 -1
- package/dist/types/pm-plugins/commands/active-table-menu.d.ts +1 -1
- package/dist/types/pm-plugins/commands/clear.d.ts +1 -1
- package/dist/types/pm-plugins/commands/collapse.d.ts +1 -1
- package/dist/types/pm-plugins/commands/column-resize.d.ts +4 -3
- package/dist/types/pm-plugins/commands/commands-with-analytics.d.ts +8 -5
- package/dist/types/pm-plugins/commands/delete.d.ts +2 -2
- package/dist/types/pm-plugins/commands/display-mode.d.ts +1 -1
- package/dist/types/pm-plugins/commands/go-to-next-cell.d.ts +2 -2
- package/dist/types/pm-plugins/commands/hover.d.ts +1 -1
- package/dist/types/pm-plugins/commands/insert.d.ts +5 -3
- package/dist/types/pm-plugins/commands/misc.d.ts +3 -2
- package/dist/types/pm-plugins/commands/referentiality.d.ts +1 -1
- package/dist/types/pm-plugins/commands/selection.d.ts +3 -2
- package/dist/types/pm-plugins/commands/sort.d.ts +2 -2
- package/dist/types/pm-plugins/commands/split-cell.d.ts +1 -1
- package/dist/types/pm-plugins/commands/toggle.d.ts +1 -1
- package/dist/types/pm-plugins/decorations/utils/column-resizing.d.ts +1 -1
- package/dist/types/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +5 -4
- package/dist/types/pm-plugins/drag-and-drop/commands.d.ts +1 -1
- package/dist/types/pm-plugins/drag-and-drop/plugin-factory.d.ts +1 -1
- package/dist/types/pm-plugins/drag-and-drop/plugin.d.ts +2 -2
- package/dist/types/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +1 -1
- package/dist/types/pm-plugins/drag-and-drop/utils/getDragBehaviour.d.ts +1 -1
- package/dist/types/pm-plugins/keymap.d.ts +3 -3
- package/dist/types/pm-plugins/main.d.ts +5 -3
- package/dist/types/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/pm-plugins/sticky-headers/commands.d.ts +1 -1
- package/dist/types/pm-plugins/sticky-headers/plugin-state.d.ts +1 -1
- package/dist/types/pm-plugins/table-analytics.d.ts +1 -1
- package/dist/types/pm-plugins/table-resizing/commands.d.ts +1 -1
- package/dist/types/pm-plugins/table-resizing/event-handlers.d.ts +4 -3
- package/dist/types/pm-plugins/table-resizing/plugin-factory.d.ts +1 -1
- package/dist/types/pm-plugins/table-resizing/plugin.d.ts +4 -3
- package/dist/types/pm-plugins/table-resizing/utils/misc.d.ts +1 -1
- package/dist/types/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -2
- package/dist/types/pm-plugins/table-width.d.ts +1 -1
- package/dist/types/pm-plugins/transforms/delete-columns.d.ts +1 -1
- package/dist/types/pm-plugins/transforms/delete-rows.d.ts +1 -1
- package/dist/types/pm-plugins/transforms/replace-table.d.ts +2 -1
- package/dist/types/pm-plugins/utils/analytics.d.ts +4 -2
- package/dist/types/pm-plugins/utils/decoration.d.ts +1 -1
- package/dist/types/pm-plugins/utils/drag-menu.d.ts +7 -4
- package/dist/types/pm-plugins/utils/guidelines.d.ts +1 -1
- package/dist/types/pm-plugins/utils/merged-cells.d.ts +1 -1
- package/dist/types/pm-plugins/utils/selection.d.ts +1 -1
- package/dist/types/pm-plugins/utils/snapping.d.ts +1 -1
- package/dist/types/pm-plugins/view-mode-sort/index.d.ts +2 -2
- package/dist/types/tablePluginType.d.ts +22 -17
- package/dist/types/types/index.d.ts +4 -4
- package/dist/types/ui/ContentComponent.d.ts +4 -2
- package/dist/types/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.d.ts +2 -1
- package/dist/types/ui/FloatingContextualButton/index.d.ts +1 -1
- package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +4 -3
- package/dist/types/ui/FloatingContextualMenu/index.d.ts +3 -2
- package/dist/types/ui/FloatingDeleteButton/getPopUpOptions.d.ts +1 -1
- package/dist/types/ui/FloatingDeleteButton/index.d.ts +1 -1
- package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +4 -3
- package/dist/types/ui/FloatingDragMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/ui/FloatingDragMenu/index.d.ts +4 -3
- package/dist/types/ui/FloatingInsertButton/getPopupOptions.d.ts +1 -1
- package/dist/types/ui/FloatingInsertButton/index.d.ts +4 -2
- package/dist/types/ui/SizeSelector/index.d.ts +2 -2
- package/dist/types/ui/TableFloatingColumnControls/index.d.ts +2 -2
- package/dist/types/ui/TableFloatingControls/index.d.ts +2 -2
- package/dist/types/ui/TableMenu/cell/getCellMenuComponents.d.ts +1 -1
- package/dist/types/ui/TableMenu/cell/keys.d.ts +1 -1
- package/dist/types/ui/TableMenu/column/getColumnMenuComponents.d.ts +1 -1
- package/dist/types/ui/TableMenu/column/keys.d.ts +1 -1
- package/dist/types/ui/TableMenu/row/getRowMenuComponents.d.ts +1 -1
- package/dist/types/ui/TableMenu/row/keys.d.ts +1 -1
- package/dist/types/ui/TableMenu/shared/TableMenu.d.ts +1 -1
- package/dist/types/ui/TableMenu/shared/TableMenuContext.d.ts +1 -1
- package/dist/types/ui/TableMenu/shared/getSharedItems.d.ts +1 -1
- package/dist/types/ui/TableMenu/shared/getTableMenuComponents.d.ts +1 -1
- package/dist/types/ui/TableMenu/shared/keys.d.ts +1 -1
- package/dist/types/ui/TableMenu/shared/selection.d.ts +1 -1
- package/dist/types/ui/common-styles.d.ts +1 -1
- package/dist/types/ui/event-handlers.d.ts +2 -2
- package/dist/types/ui/global-styles.d.ts +1 -1
- package/dist/types/ui/hooks/useInternalTablePluginStateSelector.d.ts +1 -1
- package/dist/types/ui/icons/SortingIconWrapper.d.ts +2 -2
- package/dist/types/ui/quick-insert/TableQuickInsertMenuItem.d.ts +1 -1
- package/dist/types/ui/quick-insert/getTableQuickInsertComponents.d.ts +1 -1
- package/dist/types/ui/quick-insert/insertTableFromQuickInsert.d.ts +3 -2
- package/dist/types/ui/toolbar.d.ts +5 -3
- package/package.json +3 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
|
-
import {
|
|
6
|
+
import { findCellClosestToPos, findTable, findTableClosestToPos, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
7
|
+
import { goToNextCell as baseGotoNextCell } from '@atlaskit/editor-tables/utils/go-to-next-cell';
|
|
7
8
|
import { getPluginState } from '../plugin-factory';
|
|
8
9
|
import { stopKeyboardColumnResizing } from './column-resize';
|
|
9
10
|
import { insertRowWithAnalytics } from './commands-with-analytics';
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
// #region Imports
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
|
-
import { findTable
|
|
5
|
+
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
6
|
+
import { getCellsInColumn } from '@atlaskit/editor-tables/utils/get-cells-in-column';
|
|
7
|
+
import { getCellsInRow } from '@atlaskit/editor-tables/utils/get-cells-in-row';
|
|
6
8
|
import { TableDecorations } from '../../types';
|
|
7
9
|
import { createCommand, getPluginState } from '../plugin-factory';
|
|
8
10
|
import { createCellHoverDecoration, createColumnLineResize, createControlsHoverDecoration } from '../utils/decoration';
|
|
@@ -2,13 +2,17 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
// #region Imports
|
|
5
|
-
import { AddColumnStep } from '@atlaskit/custom-steps';
|
|
6
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD
|
|
5
|
+
import { AddColumnStep } from '@atlaskit/custom-steps/add-column';
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
7
|
+
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
7
8
|
import { getParentOfTypeCount, getPositionAfterTopParentNodeOfType, isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
|
|
8
9
|
import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
10
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
10
11
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
11
|
-
import {
|
|
12
|
+
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
13
|
+
import { addColumnAt as addColumnAtPMUtils } from '@atlaskit/editor-tables/utils/add-column-at';
|
|
14
|
+
import { addRowAt } from '@atlaskit/editor-tables/utils/add-row-at';
|
|
15
|
+
import { selectedRect } from '@atlaskit/editor-tables/utils/selection-rect';
|
|
12
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
17
|
import { updateRowOrColumnMovedTransform } from '../analytics/commands';
|
|
14
18
|
import { META_KEYS } from '../table-analytics';
|
|
@@ -4,11 +4,22 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
7
|
-
import {
|
|
7
|
+
import { isTextSelection } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { closestElement } from '@atlaskit/editor-common/utils/dom';
|
|
9
|
+
import { isParagraph } from '@atlaskit/editor-common/utils/nodes';
|
|
10
|
+
import { mapSlice } from '@atlaskit/editor-common/utils/slice';
|
|
8
11
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
12
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
10
13
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
11
|
-
import { findCellClosestToPos, findTable,
|
|
14
|
+
import { findCellClosestToPos, findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
15
|
+
import { getCellsInColumn } from '@atlaskit/editor-tables/utils/get-cells-in-column';
|
|
16
|
+
import { getCellsInRow } from '@atlaskit/editor-tables/utils/get-cells-in-row';
|
|
17
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
18
|
+
import { isSelectionType } from '@atlaskit/editor-tables/utils/is-selection-type';
|
|
19
|
+
import { removeTable } from '@atlaskit/editor-tables/utils/remove-table';
|
|
20
|
+
import { selectColumns as selectColumnsTransform, selectColumn as selectColumnTransform, selectRows as selectRowsTransform, selectRow as selectRowTransform } from '@atlaskit/editor-tables/utils/select-nodes';
|
|
21
|
+
import { selectionCell } from '@atlaskit/editor-tables/utils/selection-cell';
|
|
22
|
+
import { setCellAttrs } from '@atlaskit/editor-tables/utils/set-cell-attrs';
|
|
12
23
|
import { TableCssClassName as ClassName, TableDecorations } from '../../types';
|
|
13
24
|
import { getDecorations } from '../decorations/plugin';
|
|
14
25
|
import { buildColumnResizingDecorations, clearColumnResizingDecorations } from '../decorations/utils/column-resizing';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line import/order
|
|
2
2
|
|
|
3
|
-
import { removeConnectedNodes } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { removeConnectedNodes } from '@atlaskit/editor-common/utils/referentiality';
|
|
4
4
|
// eslint-disable-next-line import/order
|
|
5
5
|
import { createCommand } from '../plugin-factory';
|
|
6
6
|
export var removeDescendantNodes = function removeDescendantNodes(sourceNode) {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
2
|
+
import { isSelectionAtEndOfNode, isSelectionAtStartOfNode, Side } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
|
|
4
|
+
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
|
|
3
5
|
import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
|
-
import { cellAround, findTable, isColumnSelected, isRowSelected, isTableSelected
|
|
8
|
+
import { cellAround, findTable, isColumnSelected, isRowSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
9
|
+
import { selectedRect } from '@atlaskit/editor-tables/utils/selection-rect';
|
|
7
10
|
import { getClosestSelectionRect } from '../../ui/toolbar';
|
|
8
11
|
import { getPluginState } from '../plugin-factory';
|
|
9
12
|
import { selectColumn, selectRow } from './misc';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { TableSortOrder as SortOrder
|
|
2
|
-
import {
|
|
1
|
+
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps/constants';
|
|
2
|
+
import { TableSortStep } from '@atlaskit/custom-steps/sort-column';
|
|
3
|
+
import { createCompareNodes } from '@atlaskit/editor-common/utils/compareNodes';
|
|
3
4
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
|
-
import { convertArrayOfRowsToTableNode, convertTableNodeToArrayOfRows, findCellRectClosestToPos, findTable
|
|
6
|
+
import { convertArrayOfRowsToTableNode, convertTableNodeToArrayOfRows, findCellRectClosestToPos, findTable } from '@atlaskit/editor-tables/utils';
|
|
7
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
8
|
+
import { isSelectionType } from '@atlaskit/editor-tables/utils/is-selection-type';
|
|
6
9
|
import { createCommand, getPluginState } from '../plugin-factory';
|
|
7
10
|
var createGetInlineCardTextFromStore = function createGetInlineCardTextFromStore(attrs) {
|
|
8
11
|
var _ref = attrs,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
2
|
-
import { cellWrapping
|
|
2
|
+
import { cellWrapping } from '@atlaskit/editor-tables/utils';
|
|
3
|
+
import { splitCellWithType } from '@atlaskit/editor-tables/utils/split-cell-with-type';
|
|
3
4
|
import { getPluginState } from '../plugin-factory';
|
|
4
5
|
export var canSplitCellSelection = function canSplitCellSelection(selection) {
|
|
5
6
|
var cellNode;
|
|
@@ -3,8 +3,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
//#region Imports
|
|
5
5
|
|
|
6
|
-
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { findTable
|
|
6
|
+
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
7
|
+
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
8
|
+
import { toggleHeader } from '@atlaskit/editor-tables/utils/toggle-header';
|
|
8
9
|
import { createCommand } from '../plugin-factory';
|
|
9
10
|
import { META_KEYS } from '../table-analytics';
|
|
10
11
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { insideTable } from '@atlaskit/editor-common/
|
|
1
|
+
import { insideTable } from '@atlaskit/editor-common/inside';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD
|
|
3
|
-
import {
|
|
2
|
+
import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import { TABLE_ACTION, TABLE_STATUS } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
4
|
+
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
4
5
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
|
-
import { findCellRectClosestToPos
|
|
6
|
+
import { findCellRectClosestToPos } from '@atlaskit/editor-tables/utils';
|
|
7
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
6
8
|
import { getSelectedTableInfo, withEditorAnalyticsAPI } from '../utils/analytics';
|
|
7
9
|
import { canMove, getTargetIndex } from '../utils/drag-menu';
|
|
8
10
|
import { getSelectedColumnIndexes, getSelectedRowIndexes } from '../utils/selection';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// eslint-disable-next-line import/order
|
|
2
2
|
|
|
3
3
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import { cloneColumn
|
|
4
|
+
import { cloneColumn } from '@atlaskit/editor-tables/utils/clone-column';
|
|
5
|
+
import { cloneRow } from '@atlaskit/editor-tables/utils/clone-row';
|
|
6
|
+
import { moveColumn } from '@atlaskit/editor-tables/utils/move-column';
|
|
7
|
+
import { moveRow } from '@atlaskit/editor-tables/utils/move-row';
|
|
5
8
|
import { TableDecorations } from '../../types';
|
|
6
9
|
import { createColumnInsertLine, createRowInsertLine, updateDecorations } from '../utils/decoration';
|
|
7
10
|
import { DragAndDropActionType } from './actions';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { pluginFactory } from '@atlaskit/editor-common/utils/plugin-state-factory';
|
|
5
5
|
import { pluginKey as tablePluginKey } from '../plugin-key';
|
|
6
6
|
import { pluginKey } from './plugin-key';
|
|
7
7
|
import reducer from './reducer';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { INPUT_METHOD
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { TABLE_STATUS } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
2
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
4
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
6
|
+
import { getSelectedCellInfo } from '@atlaskit/editor-tables/utils';
|
|
7
|
+
import { getCellsInRow } from '@atlaskit/editor-tables/utils/get-cells-in-row';
|
|
8
|
+
import { insm } from '@atlaskit/insm/api';
|
|
7
9
|
import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
8
10
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
9
11
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
// #region Imports
|
|
5
|
-
import { TableSortStep } from '@atlaskit/custom-steps';
|
|
6
|
-
import { isTextInput } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { TableSortStep } from '@atlaskit/custom-steps/sort-column';
|
|
6
|
+
import { isTextInput } from '@atlaskit/editor-common/utils/is-text-input';
|
|
7
7
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
8
8
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
9
9
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { addColumnAfter, addColumnAfterVO, addColumnBefore, addColumnBeforeVO, addRowAfter, addRowAfterVO, addRowBefore, addRowBeforeVO, backspace, bindKeymapWithCommand, decreaseMediaSize, deleteColumn, deleteRow, escape, focusToContextMenuTrigger, increaseMediaSize, moveColumnLeftOld, moveColumnLeft, moveColumnRightOld, moveColumnRight, moveDown, moveLeft, moveRight, moveRowDownOld, moveRowDown, moveRowUpOld, moveRowUp, moveUp, nextCell, previousCell, startColumnResizing, toggleTable } from '@atlaskit/editor-common/keymaps';
|
|
3
|
-
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
3
|
+
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset/editor-commands';
|
|
4
4
|
import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
5
5
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -2,15 +2,17 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
6
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
7
|
-
import { insideTable } from '@atlaskit/editor-common/
|
|
7
|
+
import { insideTable } from '@atlaskit/editor-common/inside';
|
|
8
8
|
import { isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
|
|
9
9
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand } from '@atlaskit/editor-common/transforms';
|
|
11
|
+
import { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenMultiBodiedExtension } from '@atlaskit/editor-common/transforms/extension';
|
|
12
|
+
import { transformSliceToRemoveOpenLayoutNodes } from '@atlaskit/editor-common/transforms/layout';
|
|
13
|
+
import { closestElement } from '@atlaskit/editor-common/utils/dom';
|
|
12
14
|
import { findParentDomRefOfType, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
13
|
-
import { TableMap } from '@atlaskit/editor-tables';
|
|
15
|
+
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
14
16
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
15
17
|
import { tableCellView, tableHeaderView, tableRowView, tableView } from '../nodeviews/table-node-views';
|
|
16
18
|
import { pluginKey as decorationsPluginKey } from '../pm-plugins/decorations/plugin';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { pluginFactory } from '@atlaskit/editor-common/utils/plugin-state-factory';
|
|
5
5
|
import { handleDocOrSelectionChanged } from './handlers';
|
|
6
6
|
import { pluginKey } from './plugin-key';
|
|
7
7
|
import reducer from './reducer';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { pluginFactory } from '@atlaskit/editor-common/utils/plugin-state-factory';
|
|
5
5
|
import { pluginKey } from './plugin-key';
|
|
6
6
|
var reducer = function reducer(pluginState, action) {
|
|
7
7
|
if (action.name === 'UPDATE') {
|
|
@@ -4,7 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
/**
|
|
5
5
|
* A plugin is created for collecting payload data for tableOverflowChanged analytics event
|
|
6
6
|
*/
|
|
7
|
-
import { ACTION_SUBJECT, EVENT_TYPE
|
|
7
|
+
import { ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
8
|
+
import { TABLE_ACTION, TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
8
9
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
9
10
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
11
|
var pluginKey = new PluginKey('tableOverflowAnalyticsPlugin');
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid
|
|
5
5
|
import { v4 as uuid } from 'uuid';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
|
-
import { isCSSAnchorSupported, isCSSAttrAnchorSupported } from '@atlaskit/editor-common/styles';
|
|
7
|
+
import { isCSSAnchorSupported, isCSSAttrAnchorSupported } from '@atlaskit/editor-common/styles/native-anchor';
|
|
8
8
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
var ObjHash = /*#__PURE__*/function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
2
2
|
import { isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
3
3
|
import { META_KEYS } from '../table-analytics';
|
|
4
4
|
import { updateColumnWidths } from '../transforms/column-width';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD
|
|
2
|
-
import {
|
|
1
|
+
import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { TABLE_ACTION, TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
3
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
3
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
|
-
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
5
|
-
import { insm } from '@atlaskit/insm';
|
|
5
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
6
|
+
import { insm } from '@atlaskit/insm/api';
|
|
6
7
|
import { stopKeyboardColumnResizing } from '../commands/column-resize';
|
|
7
8
|
import { updateResizeHandleDecorations } from '../commands/misc';
|
|
8
9
|
import { getPluginState as getTablePluginState } from '../plugin-factory';
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line import/order
|
|
7
7
|
|
|
8
|
-
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { pluginFactory } from '@atlaskit/editor-common/utils/plugin-state-factory';
|
|
9
9
|
import { pluginKey } from './plugin-key';
|
|
10
10
|
// eslint-disable-next-line import/order
|
|
11
11
|
import reducer from './reducer';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
|
-
import {
|
|
2
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
3
|
+
import { getFragmentBackingArray } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils/table';
|
|
4
5
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
7
8
|
import { COLUMN_MIN_WIDTH, MAX_SCALING_PERCENT, MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION } from './consts';
|
|
8
9
|
import { getScalingPercentForTableWithoutWidth, getTableContainerElementWidth, getTableScalingPercent } from './misc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
1
|
+
import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
2
2
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
4
|
import { contentWidth } from './content-width';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { tableCellBorderWidth, tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
2
|
-
import {
|
|
1
|
+
import { tableCellBorderWidth, tableMarginTop } from '@atlaskit/editor-common/styles/table';
|
|
2
|
+
import { containsClassName, parsePx } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { closestElement } from '@atlaskit/editor-common/utils/dom';
|
|
3
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
5
6
|
import { getPluginState as getMainPluginState } from '../../plugin-factory';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getParentNodeWidth, getTableContainerWidth, layoutToWidth } from '@atlaskit/editor-common/node-width';
|
|
2
2
|
import { calcTableWidth } from '@atlaskit/editor-common/styles';
|
|
3
|
-
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorTableNumberColumnWidth, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils/table';
|
|
4
|
+
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorTableNumberColumnWidth, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { hasTableBeenResized, hasTableColumnBeenResized } from './colgroup';
|
|
7
7
|
import { MAX_SCALING_PERCENT, MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION, TABLE_MAX_WIDTH } from './consts';
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
5
|
-
import { tableCellMinWidth, tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
6
|
-
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { tableCellMinWidth, tableNewColumnMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
6
|
+
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils/table';
|
|
7
7
|
import { getSelectedTableInfo } from '../../utils/analytics';
|
|
8
8
|
import { getColWidthFix, hasTableBeenResized, insertColgroupFromNode } from './colgroup';
|
|
9
9
|
import { getCellsRefsInColumn, getColumnStateFromDOM } from './column-state';
|
|
@@ -2,9 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/styles/sync-block';
|
|
6
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
7
|
+
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
8
8
|
import { updateColumnWidths } from '../../transforms/column-width';
|
|
9
9
|
import { getTableWidth } from '../../utils/nodes';
|
|
10
10
|
import { getLayoutSize } from '../utils/misc';
|
|
@@ -17,7 +17,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
17
17
|
import rafSchedule from 'raf-schd';
|
|
18
18
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
19
19
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
20
|
-
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
20
|
+
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
21
21
|
import { ALIGN_START } from './utils/alignment';
|
|
22
22
|
export var pluginKey = new PluginKey('tableWidthInCommentFixPlugin');
|
|
23
23
|
var getPluginState = function getPluginState(state) {
|
|
@@ -11,10 +11,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
|
|
12
12
|
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
13
13
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
14
|
-
import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
14
|
+
import { isTableInContentMode } from '@atlaskit/editor-common/table/content-mode';
|
|
15
15
|
import { isReplaceDocOperation } from '@atlaskit/editor-common/utils/document';
|
|
16
16
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
17
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
17
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
18
18
|
import { TABLE_MAX_WIDTH } from './table-resizing/utils/consts';
|
|
19
19
|
import { ALIGN_START } from './utils/alignment';
|
|
20
20
|
import { isContentModeSupported } from './utils/tableMode/is-content-mode-supported';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
4
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
5
5
|
import { AttrStep } from '@atlaskit/editor-prosemirror/transform';
|
|
6
6
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
7
7
|
import { isMinCellWidthTable, hasTableBeenResized } from '../table-resizing/utils/colgroup';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
5
|
-
import { akEditorMaxLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
5
|
+
import { akEditorMaxLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
6
|
import { updateCellsMarkup } from './table-transform-utils';
|
|
7
7
|
export var clampToEditorMaxWidth = function clampToEditorMaxWidth(contentWidth) {
|
|
8
8
|
var maxEditorWidth = akEditorMaxLayoutWidth;
|
|
@@ -2,8 +2,8 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
import { AddColumnStep } from '@atlaskit/custom-steps';
|
|
6
|
-
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { AddColumnStep } from '@atlaskit/custom-steps/add-column';
|
|
6
|
+
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
7
7
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
9
9
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
5
|
-
import { akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
5
|
+
import { akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
6
|
import { calculateColumnWidth, getCellsRefsInColumn } from '../table-resizing/utils/column-state';
|
|
7
7
|
import { contentWidth } from '../table-resizing/utils/content-width';
|
|
8
8
|
import { getLayoutSize } from '../table-resizing/utils/misc';
|
|
@@ -5,7 +5,8 @@ import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
|
5
5
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
7
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
|
-
import { findTable
|
|
8
|
+
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
9
10
|
|
|
10
11
|
// re-creates table node with merged cells
|
|
11
12
|
export function mergeCells(tr) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ACTION_SUBJECT, EVENT_TYPE
|
|
1
|
+
import { ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { TABLE_ACTION } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
2
3
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
4
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
|
-
import { ACTION_SUBJECT, EVENT_TYPE
|
|
3
|
+
import { ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
|
+
import { TABLE_ACTION } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
4
5
|
import { getBreakpointKey } from '@atlaskit/editor-common/utils/analytics';
|
|
5
6
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
|
-
import { findTable
|
|
7
|
+
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
8
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
7
9
|
import { hasTableBeenResized } from '../table-resizing/utils/colgroup';
|
|
8
10
|
import { getTableWidth } from './nodes';
|
|
9
11
|
export function getSelectedTableInfo(selection) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { maphElem } from '@atlaskit/editor-common/utils';
|
|
2
|
+
import { maphElem } from '@atlaskit/editor-common/utils/dom';
|
|
3
3
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
|
-
import { findTable
|
|
5
|
+
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
6
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
6
7
|
import { tableDeleteButtonSize } from '../../ui/consts';
|
|
7
8
|
export var getColumnsWidths = function getColumnsWidths(view) {
|
|
8
9
|
var selection = view.state.selection;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { createTable } from '@atlaskit/editor-tables/utils';
|
|
4
|
+
import { createTable } from '@atlaskit/editor-tables/utils/create-table';
|
|
5
5
|
import { TABLE_MAX_WIDTH, TABLE_FULL_WIDTH } from '../table-resizing/utils/consts';
|
|
6
6
|
var NESTED_TABLE_DEFAULT_ROWS = 2;
|
|
7
7
|
var NESTED_TABLE_DEFAULT_COLS = 2;
|
|
@@ -6,7 +6,9 @@ import { v4 as uuid } from 'uuid';
|
|
|
6
6
|
import { nonNullable } from '@atlaskit/editor-common/utils';
|
|
7
7
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
9
|
-
import { findTable
|
|
9
|
+
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
10
|
+
import { getCellsInRow } from '@atlaskit/editor-tables/utils/get-cells-in-row';
|
|
11
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
10
12
|
import { TableCssClassName as ClassName, TableDecorations } from '../../types';
|
|
11
13
|
import { ColumnResizeWidget } from '../../ui/ColumnResizeWidget';
|
|
12
14
|
var filterDecorationByKey = function filterDecorationByKey(key, decorationSet) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { containsClassName } from '@atlaskit/editor-common/utils';
|
|
2
|
+
import { closestElement } from '@atlaskit/editor-common/utils/dom';
|
|
2
3
|
import { TableCssClassName as ClassName } from '../../types';
|
|
3
4
|
export var isCell = function isCell(node) {
|
|
4
5
|
return Boolean(node && (['TH', 'TD'].indexOf(node.tagName) > -1 || !!closestElement(node, ".".concat(ClassName.TABLE_HEADER_CELL)) || !!closestElement(node, ".".concat(ClassName.TABLE_CELL))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
4
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps/constants';
|
|
4
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { addColumnAfter, addColumnBefore, addRowAfter, addRowBefore, backspace, deleteColumn, deleteRow, moveColumnLeftOld, moveColumnLeft, moveColumnRightOld, moveColumnRight, moveRowDownOld, moveRowDown, moveRowUpOld, moveRowUp, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
6
6
|
import SortAscendingIcon from '@atlaskit/icon/core/sort-ascending';
|
|
7
7
|
import SortDescendingIcon from '@atlaskit/icon/core/sort-descending';
|