@atlaskit/editor-plugin-table 38.0.5 → 38.0.7
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 +15 -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 +51 -18
- package/dist/cjs/nodeviews/TableRowNativeStickyWithFallback.js +67 -31
- 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 +46 -19
- package/dist/es2019/nodeviews/TableRowNativeStickyWithFallback.js +56 -26
- 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 +48 -15
- package/dist/esm/nodeviews/TableRowNativeStickyWithFallback.js +58 -22
- 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/TableRow.d.ts +3 -0
- package/dist/types/nodeviews/TableRowNativeStickyWithFallback.d.ts +3 -0
- 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 +4 -4
|
@@ -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 { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { getParentOfTypeCount, getPositionAfterTopParentNodeOfType } from '@atlaskit/editor-common/nesting';
|
|
6
6
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -4,8 +4,8 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css } from '@emotion/react';
|
|
7
|
-
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
8
|
-
import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorTableNumberColumnWidth, akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
7
|
+
import { tableMarginTop } from '@atlaskit/editor-common/styles/table';
|
|
8
|
+
import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorTableNumberColumnWidth, akEditorUnitZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
9
9
|
import { akEditorTableContainerBg } from '@atlaskit/editor-shared-styles/consts';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { TableCssClassName as ClassName } from '../types';
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -13,21 +13,31 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
import { jsx } from '@emotion/react';
|
|
14
14
|
import isEqual from 'lodash/isEqual';
|
|
15
15
|
import memoizeOne from 'memoize-one';
|
|
16
|
-
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps/constants';
|
|
17
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
18
|
+
import { CHANGE_ALIGNMENT_REASON } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
19
|
+
import { DropdownMenuExtensionItems } from '@atlaskit/editor-common/DropdownMenuExtensionItems';
|
|
19
20
|
import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
20
|
-
import commonMessages
|
|
21
|
+
import commonMessages from '@atlaskit/editor-common/messages';
|
|
22
|
+
import { messages } from '@atlaskit/editor-common/messages/table';
|
|
21
23
|
import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
|
|
22
24
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
23
25
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
+
import { cellBackgroundColorPaletteNew } from '@atlaskit/editor-common/ui-color';
|
|
27
|
+
import cellBackgroundColorPalette from '@atlaskit/editor-common/ui-color/ColorPalette/cellBackgroundColorPalette';
|
|
28
|
+
import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color/ColorPalette/Palettes/common';
|
|
29
|
+
import { getNodeName } from '@atlaskit/editor-common/utils';
|
|
30
|
+
import { closestElement } from '@atlaskit/editor-common/utils/dom';
|
|
31
|
+
import { getChildrenInfo as _getChildrenInfo, isReferencedSource } from '@atlaskit/editor-common/utils/referentiality';
|
|
26
32
|
import { findParentDomRefOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
27
|
-
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
28
|
-
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
29
|
-
import { Rect
|
|
30
|
-
import {
|
|
33
|
+
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
34
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
|
|
35
|
+
import { Rect } from '@atlaskit/editor-tables/rect';
|
|
36
|
+
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
37
|
+
import { findCellRectClosestToPos, findTable } from '@atlaskit/editor-tables/utils';
|
|
38
|
+
import { getSelectionRect } from '@atlaskit/editor-tables/utils/get-selection-rect';
|
|
39
|
+
import { isSelectionType } from '@atlaskit/editor-tables/utils/is-selection-type';
|
|
40
|
+
import { splitCell } from '@atlaskit/editor-tables/utils/split-cell';
|
|
31
41
|
import AlignImageCenterIcon from '@atlaskit/icon/core/align-image-center';
|
|
32
42
|
import AlignImageLeftIcon from '@atlaskit/icon/core/align-image-left';
|
|
33
43
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
package/dist/esm/ui/ui-styles.js
CHANGED
|
@@ -3,8 +3,8 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- needs mahual remediation */
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
|
-
import { tableCellBorderWidth } from '@atlaskit/editor-common/styles';
|
|
7
|
-
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { tableCellBorderWidth } from '@atlaskit/editor-common/styles/table';
|
|
7
|
+
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
import { TableCssClassName as ClassName } from '../types';
|
|
10
10
|
import { columnControlsDecorationHeight, columnControlsSelectedZIndex, columnControlsZIndex, dragTableInsertColumnButtonSize, insertLineWidth, lineMarkerSize, resizeHandlerAreaWidth, resizeLineWidth, tableBorderColor, tableBorderDeleteColor, tableBorderSelectedColor, tableCellDeleteColor, tableCellHoverDeleteIconBackground, tableCellHoverDeleteIconColor, tableCellSelectedDeleteIconBackground, tableCellSelectedDeleteIconColor, tableDeleteButtonSize, tableHeaderCellBackgroundColor, tableInsertColumnButtonSize, tableToolbarDeleteColor, tableToolbarSelectedColor, tableToolbarSize } from './consts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IntlShape, WithIntlProps } from 'react-intl';
|
|
3
|
-
import type { TableColumnOrdering } from '@atlaskit/custom-steps';
|
|
4
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import type { TableColumnOrdering } from '@atlaskit/custom-steps/types';
|
|
4
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
5
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
|
-
import type { EditorContainerWidth
|
|
6
|
+
import type { EditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
7
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
7
8
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
9
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
9
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
3
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type {
|
|
4
|
+
import type { getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
5
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
5
6
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
8
|
import type { PluginInjectionAPI } from '../types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import type { PluginInjectionAPI } from '../types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { TableEventPayload } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
|
|
3
|
+
import type { TableEventPayload } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
4
|
+
import type { GuidelineConfig } from '@atlaskit/editor-common/guideline/types';
|
|
5
5
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -43,6 +43,9 @@ export default class TableRow extends TableNodeView<HTMLTableRowElement> impleme
|
|
|
43
43
|
*/
|
|
44
44
|
private headerRowMouseScrollEnd;
|
|
45
45
|
private headerRowMouseScroll;
|
|
46
|
+
private onWidthPluginEvent;
|
|
47
|
+
private onTablePluginEvent;
|
|
48
|
+
private onScrollEnd;
|
|
46
49
|
private subscribe;
|
|
47
50
|
private unsubscribe;
|
|
48
51
|
private initObservers;
|
|
@@ -56,6 +56,9 @@ export default class TableRowNativeStickyWithFallback extends TableNodeView<HTML
|
|
|
56
56
|
*/
|
|
57
57
|
private headerRowMouseScrollEnd;
|
|
58
58
|
private headerRowMouseScroll;
|
|
59
|
+
private onWidthPluginEvent;
|
|
60
|
+
private onTablePluginEvent;
|
|
61
|
+
private onScrollEnd;
|
|
59
62
|
private subscribe;
|
|
60
63
|
private unsubscribe;
|
|
61
64
|
private initOverflowObserver;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
3
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
5
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
6
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
6
7
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
8
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
8
9
|
import type { PluginInjectionAPI } from '../types';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
4
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
4
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
6
6
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
7
|
-
import type { GetEditorContainerWidth
|
|
7
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
8
|
+
import type { getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
9
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
8
10
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
11
|
import type { Decoration, DecorationSource, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
10
12
|
import type { PluginInjectionAPI } from '../types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
2
2
|
import type { DOMOutputSpec, NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
type Config = {
|
|
4
4
|
allowColumnResizing: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
3
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
5
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
6
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
6
7
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
9
|
import type { PluginInjectionAPI } from '../types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { ActionType, RowOrColumnMovedState } from './types';
|
|
4
4
|
export declare const updateRowOrColumnMoved: (nextState: Omit<RowOrColumnMovedState, 'currentActions'>, nextAction: ActionType) => Command;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
3
|
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { AnalyticPluginAction } from './actions';
|
|
5
5
|
import type { AnalyticPluginState } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
2
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { type AnalyticPluginState } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
2
|
import type { ActiveTableMenu, PluginInjectionAPI } from '../../types';
|
|
3
3
|
export declare const closeActiveTableMenu: (api?: PluginInjectionAPI | null, options?: {
|
|
4
4
|
skipUserIntent?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
export declare const clearMultipleCells: (targetCellPosition?: number) => Command;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
export declare const wrapTableInExpand: Command;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/
|
|
3
|
-
import type { Command
|
|
4
|
-
import type {
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
5
|
+
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils/accessibilityUtilsPluginType';
|
|
5
6
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
7
|
import type { Direction } from '@atlaskit/editor-tables/types';
|
|
7
8
|
import type { PluginInjectionAPI } from '../../types';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl/src/types';
|
|
2
2
|
import { type Layout as TableLayout } from '@atlaskit/adf-schema/tableNodes';
|
|
3
3
|
import type { Valign } from '@atlaskit/adf-schema/valign';
|
|
4
|
-
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
5
|
-
import type {
|
|
6
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import type {
|
|
4
|
+
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps/constants';
|
|
5
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
6
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
7
|
+
import type { CHANGE_ALIGNMENT_REASON } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
8
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
9
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
10
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
8
11
|
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
9
12
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import type { Rect } from '@atlaskit/editor-tables/
|
|
13
|
+
import type { Rect } from '@atlaskit/editor-tables/rect';
|
|
11
14
|
import type { AlignmentOptions, InsertRowMethods, InsertRowOptions, PluginInjectionAPI, RowInsertPosition } from '../../types';
|
|
12
15
|
import type { ResizeStateWithAnalytics } from '../table-resizing/utils/types';
|
|
13
16
|
export declare const emptyMultipleCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, targetCellPosition?: number) => Command;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { Rect } from '@atlaskit/editor-tables/
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
|
+
import type { Rect } from '@atlaskit/editor-tables/rect';
|
|
3
3
|
import type { PluginInjectionAPI } from '../../types';
|
|
4
4
|
export declare const deleteColumnsCommand: (rect: Rect, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
2
|
export declare const setTableDisplayMode: EditorCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
4
|
import type { Direction } from '@atlaskit/editor-tables/types';
|
|
5
5
|
export declare const goToNextCell: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, ariaNotify?: (message: string) => void, getIntl?: () => IntlShape) => (direction: Direction) => Command;
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
import type { CellColumnPositioning } from '../../types';
|
|
3
3
|
export declare const hoverMergedCells: () => Command;
|
|
4
4
|
export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => Command;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type {
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics/types/events';
|
|
4
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
5
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
4
6
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
8
|
import type { PluginInjectionAPI } from '../../types';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Layout as TableLayout } from '@atlaskit/adf-schema/tableNodes';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/
|
|
3
|
-
import type { Command
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
4
5
|
import type { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
5
6
|
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
7
|
import type { ContentNodeWithPos, NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export declare const removeDescendantNodes: (sourceNode: PMNode) => Command;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { Command
|
|
3
|
-
import type {
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils/accessibilityUtilsPluginType';
|
|
4
5
|
import type tablePlugin from '../../tablePlugin';
|
|
5
6
|
export declare const arrowLeftFromTable: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>['selection'] | undefined) => () => Command;
|
|
6
7
|
export declare const arrowRightFromTable: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>['selection'] | undefined) => () => Command;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps/constants';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
3
|
export declare const sortByColumn: (columnIndex: number, order?: SortOrder) => Command;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare const canSplitCellSelection: (selection: Selection) => boolean;
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Layout as TableLayout } from '@atlaskit/adf-schema/tableNodes';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
3
|
/**
|
|
4
4
|
* Table layout toggle logic
|
|
5
5
|
* default -> wide -> full-width -> default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
3
|
import type { DecorationTransformer } from './types';
|
|
4
4
|
export declare const buildColumnResizingDecorations: (rowEndIndex: number, columnEndIndex: number, includeTooltip: boolean, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI) => DecorationTransformer;
|
|
5
5
|
export declare const clearColumnResizingDecorations: () => DecorationTransformer;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import type {
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
|
+
import { TABLE_STATUS } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
5
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
6
|
+
import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils/accessibilityUtilsPluginType';
|
|
6
7
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
8
|
import type { DraggableData, DraggableType, TableDirection } from '../../types';
|
|
8
9
|
import type { TriggerType } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { DraggableType, TableDirection } from '../../types';
|
|
4
4
|
import { DropTargetType } from './consts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
3
|
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { DragAndDropPluginAction } from './actions';
|
|
5
5
|
import type { DragAndDropPluginState } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
5
|
import type { TablePlugin } from '../../tablePluginType';
|
|
6
6
|
import type { DragAndDropPluginState } from './types';
|
|
7
7
|
export declare const createPlugin: (dispatch: Dispatch, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, isCommentEditor?: boolean, api?: ExtractInjectionAPI<TablePlugin>) => SafePlugin<DragAndDropPluginState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
2
|
+
import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/internal-types';
|
|
3
3
|
type AutoScrollerFactory = {
|
|
4
4
|
getNode: () => PmNode;
|
|
5
5
|
tableWrapper: HTMLElement;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Input } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
1
|
+
import type { Input } from '@atlaskit/pragmatic-drag-and-drop/internal-types';
|
|
2
2
|
import type { DraggableBehaviour } from '../../../types';
|
|
3
3
|
export declare const getDragBehaviour: ({ altKey, ctrlKey }: Input) => DraggableBehaviour;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl/src/types';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
3
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
4
4
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
6
6
|
import type { PluginInjectionAPI, PluginInjectionAPIWithA11y } from '../types';
|
|
7
7
|
export declare function keymapPlugin(getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, isFullWidthEnabled?: boolean, pluginInjectionApi?: PluginInjectionAPIWithA11y, getIntl?: () => IntlShape, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, isTableResizingEnabled?: boolean): SafePlugin;
|
|
8
8
|
export default keymapPlugin;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type {
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
3
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
4
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
5
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
|
-
import type { GetEditorContainerWidth
|
|
7
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
8
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
7
9
|
import type { PluginConfig, PluginInjectionAPI, TablePluginState } from '../types';
|
|
8
10
|
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean, __livePage?: boolean) => SafePlugin<TablePluginState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
3
|
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { TablePluginState, TablePluginAction } from '../types';
|
|
5
5
|
export declare const createPluginState: (dispatch: Dispatch, initialState: TablePluginState | ((state: EditorState) => TablePluginState)) => SafeStateField<TablePluginState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
import type { RowStickyState } from './types';
|
|
3
3
|
export declare const updateStickyState: (rowState: RowStickyState) => Command;
|
|
4
4
|
export declare const removeStickyState: (pos: number) => Command;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
3
|
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { StickyPluginAction, StickyPluginState } from './types';
|
|
5
5
|
declare const createPluginState: (dispatch: Dispatch, initialState: StickyPluginState | ((state: EditorState) => StickyPluginState)) => SafeStateField<StickyPluginState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
2
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
export declare const META_KEYS: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/
|
|
3
|
-
import type { GetEditorContainerWidth
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
3
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
4
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
4
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import type { PluginInjectionAPI } from '../../types';
|
|
6
7
|
export declare const handleMouseDown: (view: EditorView, event: MouseEvent, localResizeHandlePos: number, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, isTableScalingEnabled: boolean, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI?: EditorAnalyticsAPI, isCommentEditor?: boolean) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
3
|
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { ColumnResizingPluginAction, ColumnResizingPluginState } from '../../types';
|
|
5
5
|
export declare const createCommand: <A = ColumnResizingPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
2
3
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import type { GetEditorContainerWidth
|
|
5
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
6
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
6
7
|
import type { ColumnResizingPluginState, PluginInjectionAPI } from '../../types';
|
|
7
8
|
export declare function createPlugin(dispatch: Dispatch<ColumnResizingPluginState>, { lastColumnResizable }: ColumnResizingPluginState, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isCommentEditor?: boolean): SafePlugin<ColumnResizingPluginState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CellAttributes } from '@atlaskit/adf-schema/tableNodes';
|
|
2
|
-
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
3
3
|
import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types/editor-container-width';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { Rect } from '@atlaskit/editor-tables/
|
|
4
|
+
import type { Rect } from '@atlaskit/editor-tables/rect';
|
|
5
5
|
import type { ResizeState, ResizeStateWithAnalytics } from './types';
|
|
6
6
|
export declare const getResizeState: ({ minWidth, maxSize, table, tableRef, start, domAtPos, isTableScalingEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, }: {
|
|
7
7
|
domAtPos: (pos: number) => {
|