@atlaskit/editor-plugin-table 8.4.1 → 8.4.3
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 +17 -0
- package/commands/package.json +5 -5
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/nodeviews/ExternalDropTargets.js +1 -1
- package/dist/cjs/nodeviews/TableComponent.js +3 -3
- package/dist/cjs/nodeviews/TableContainer.js +2 -2
- package/dist/cjs/nodeviews/TableResizer.js +6 -6
- package/dist/cjs/nodeviews/TableRow.js +2 -2
- package/dist/cjs/nodeviews/table-container-styles.js +1 -1
- package/dist/cjs/nodeviews/table.js +2 -2
- package/dist/cjs/{toDOM.js → nodeviews/toDOM.js} +3 -3
- package/dist/cjs/pm-plugins/analytics/plugin.js +1 -1
- package/dist/cjs/{commands → pm-plugins/commands}/column-resize.js +8 -8
- package/dist/cjs/{commands-with-analytics.js → pm-plugins/commands/commands-with-analytics.js} +15 -15
- package/dist/cjs/{commands → pm-plugins/commands}/go-to-next-cell.js +2 -2
- package/dist/cjs/{commands → pm-plugins/commands}/hover.js +2 -2
- package/dist/cjs/{commands → pm-plugins/commands}/insert.js +16 -11
- package/dist/cjs/{commands → pm-plugins/commands}/misc.js +4 -4
- package/dist/cjs/{commands → pm-plugins/commands}/referentiality.js +1 -1
- package/dist/cjs/{commands → pm-plugins/commands}/selection.js +3 -3
- package/dist/cjs/{commands → pm-plugins/commands}/sort.js +1 -1
- package/dist/cjs/{commands → pm-plugins/commands}/split-cell.js +1 -1
- package/dist/cjs/{commands → pm-plugins/commands}/toggle.js +2 -2
- package/dist/cjs/pm-plugins/decorations/utils/column-controls.js +1 -1
- package/dist/cjs/pm-plugins/decorations/utils/column-resizing.js +1 -1
- package/dist/cjs/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -3
- package/dist/cjs/pm-plugins/drag-and-drop/commands.js +1 -1
- package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +6 -6
- package/dist/cjs/{handlers.js → pm-plugins/handlers.js} +2 -2
- package/dist/cjs/pm-plugins/keymap.js +18 -18
- package/dist/cjs/pm-plugins/main.js +7 -7
- package/dist/cjs/pm-plugins/plugin-factory.js +2 -2
- package/dist/cjs/{reducer.js → pm-plugins/reducer.js} +1 -1
- package/dist/cjs/pm-plugins/table-resizing/commands.js +1 -1
- package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +5 -5
- package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +2 -2
- package/dist/cjs/pm-plugins/table-resizing/utils/resize-column.js +1 -1
- package/dist/cjs/pm-plugins/table-resizing/utils/resize-state.js +1 -1
- package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +2 -2
- package/dist/cjs/pm-plugins/table-selection-keymap.js +1 -1
- package/dist/cjs/pm-plugins/table-width-in-comment-fix.js +1 -1
- package/dist/cjs/pm-plugins/table-width.js +1 -1
- package/dist/cjs/{transforms → pm-plugins/transforms}/column-width.js +4 -4
- package/dist/cjs/{transforms → pm-plugins/transforms}/delete-columns.js +1 -1
- package/dist/cjs/{transforms → pm-plugins/transforms}/fix-tables.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/alignment.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/analytics.js +3 -3
- package/dist/cjs/{utils → pm-plugins/utils}/column-controls.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/create.js +8 -1
- package/dist/cjs/{utils → pm-plugins/utils}/decoration.js +2 -2
- package/dist/cjs/{utils → pm-plugins/utils}/dom.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/drag-menu.js +6 -6
- package/dist/cjs/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/paste.js +1 -1
- package/dist/cjs/{utils → pm-plugins/utils}/row-controls.js +2 -2
- package/dist/cjs/{utils → pm-plugins/utils}/update-plugin-state-decorations.js +1 -1
- package/dist/cjs/{plugin.js → tablePlugin.js} +11 -9
- package/dist/cjs/tablePluginType.js +5 -0
- package/dist/cjs/ui/DragHandle/index.js +1 -1
- package/dist/cjs/ui/FloatingContextualButton/index.js +1 -1
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
- package/dist/cjs/ui/FloatingDeleteButton/index.js +3 -3
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +4 -4
- package/dist/cjs/ui/FloatingInsertButton/index.js +2 -2
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -2
- package/dist/cjs/ui/TableFloatingColumnControls/index.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/index.js +2 -2
- package/dist/cjs/{event-handlers.js → ui/event-handlers.js} +8 -8
- package/dist/cjs/{toolbar.js → ui/toolbar.js} +12 -12
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/nodeviews/ExternalDropTargets.js +1 -1
- package/dist/es2019/nodeviews/TableComponent.js +3 -3
- package/dist/es2019/nodeviews/TableContainer.js +2 -2
- package/dist/es2019/nodeviews/TableResizer.js +6 -6
- package/dist/es2019/nodeviews/TableRow.js +2 -2
- package/dist/es2019/nodeviews/table-container-styles.js +1 -1
- package/dist/es2019/nodeviews/table.js +2 -2
- package/dist/es2019/{toDOM.js → nodeviews/toDOM.js} +3 -3
- package/dist/es2019/pm-plugins/analytics/plugin.js +1 -1
- package/dist/es2019/{commands → pm-plugins/commands}/column-resize.js +8 -8
- package/dist/es2019/{commands-with-analytics.js → pm-plugins/commands/commands-with-analytics.js} +15 -15
- package/dist/es2019/{commands → pm-plugins/commands}/go-to-next-cell.js +2 -2
- package/dist/es2019/{commands → pm-plugins/commands}/hover.js +2 -2
- package/dist/es2019/{commands → pm-plugins/commands}/insert.js +16 -11
- package/dist/es2019/{commands → pm-plugins/commands}/misc.js +4 -4
- package/dist/es2019/{commands → pm-plugins/commands}/referentiality.js +1 -1
- package/dist/es2019/{commands → pm-plugins/commands}/selection.js +3 -3
- package/dist/es2019/{commands → pm-plugins/commands}/sort.js +1 -1
- package/dist/es2019/{commands → pm-plugins/commands}/split-cell.js +2 -1
- package/dist/es2019/{commands → pm-plugins/commands}/toggle.js +2 -2
- package/dist/es2019/pm-plugins/decorations/utils/column-controls.js +1 -1
- package/dist/es2019/pm-plugins/decorations/utils/column-resizing.js +1 -1
- package/dist/es2019/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -3
- package/dist/es2019/pm-plugins/drag-and-drop/commands.js +1 -1
- package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +1 -1
- package/dist/es2019/{handlers.js → pm-plugins/handlers.js} +2 -2
- package/dist/es2019/pm-plugins/keymap.js +4 -4
- package/dist/es2019/pm-plugins/main.js +7 -7
- package/dist/es2019/pm-plugins/plugin-factory.js +2 -2
- package/dist/es2019/{reducer.js → pm-plugins/reducer.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 -5
- package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +2 -2
- package/dist/es2019/pm-plugins/table-resizing/utils/resize-column.js +1 -1
- package/dist/es2019/pm-plugins/table-resizing/utils/resize-state.js +1 -1
- package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +2 -2
- package/dist/es2019/pm-plugins/table-selection-keymap.js +1 -1
- package/dist/es2019/pm-plugins/table-width-in-comment-fix.js +1 -1
- package/dist/es2019/pm-plugins/table-width.js +1 -1
- package/dist/es2019/{transforms → pm-plugins/transforms}/column-width.js +5 -4
- package/dist/es2019/{transforms → pm-plugins/transforms}/delete-columns.js +1 -1
- package/dist/es2019/{transforms → pm-plugins/transforms}/fix-tables.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/alignment.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/analytics.js +2 -2
- package/dist/es2019/{utils → pm-plugins/utils}/column-controls.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/create.js +8 -1
- package/dist/es2019/{utils → pm-plugins/utils}/decoration.js +2 -2
- package/dist/es2019/{utils → pm-plugins/utils}/dom.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/drag-menu.js +6 -6
- package/dist/es2019/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/paste.js +1 -1
- package/dist/es2019/{utils → pm-plugins/utils}/row-controls.js +2 -2
- package/dist/es2019/{utils → pm-plugins/utils}/update-plugin-state-decorations.js +1 -1
- package/dist/es2019/{plugin.js → tablePlugin.js} +12 -9
- package/dist/es2019/tablePluginType.js +1 -0
- package/dist/es2019/ui/DragHandle/index.js +1 -1
- package/dist/es2019/ui/FloatingContextualButton/index.js +1 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
- package/dist/es2019/ui/FloatingDeleteButton/index.js +3 -3
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +4 -4
- package/dist/es2019/ui/FloatingInsertButton/index.js +2 -2
- package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -2
- package/dist/es2019/ui/TableFloatingColumnControls/index.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +2 -2
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +2 -2
- package/dist/es2019/ui/TableFloatingControls/index.js +2 -2
- package/dist/es2019/{event-handlers.js → ui/event-handlers.js} +8 -8
- package/dist/es2019/{toolbar.js → ui/toolbar.js} +12 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/nodeviews/ExternalDropTargets.js +1 -1
- package/dist/esm/nodeviews/TableComponent.js +3 -3
- package/dist/esm/nodeviews/TableContainer.js +2 -2
- package/dist/esm/nodeviews/TableResizer.js +6 -6
- package/dist/esm/nodeviews/TableRow.js +2 -2
- package/dist/esm/nodeviews/table-container-styles.js +1 -1
- package/dist/esm/nodeviews/table.js +2 -2
- package/dist/esm/{toDOM.js → nodeviews/toDOM.js} +3 -3
- package/dist/esm/pm-plugins/analytics/plugin.js +1 -1
- package/dist/esm/{commands → pm-plugins/commands}/column-resize.js +8 -8
- package/dist/esm/{commands-with-analytics.js → pm-plugins/commands/commands-with-analytics.js} +15 -15
- package/dist/esm/{commands → pm-plugins/commands}/go-to-next-cell.js +2 -2
- package/dist/esm/{commands → pm-plugins/commands}/hover.js +2 -2
- package/dist/esm/{commands → pm-plugins/commands}/insert.js +16 -11
- package/dist/esm/{commands → pm-plugins/commands}/misc.js +4 -4
- package/dist/esm/{commands → pm-plugins/commands}/referentiality.js +1 -1
- package/dist/esm/{commands → pm-plugins/commands}/selection.js +3 -3
- package/dist/esm/{commands → pm-plugins/commands}/sort.js +1 -1
- package/dist/esm/{commands → pm-plugins/commands}/split-cell.js +2 -1
- package/dist/esm/{commands → pm-plugins/commands}/toggle.js +2 -2
- package/dist/esm/pm-plugins/decorations/utils/column-controls.js +1 -1
- package/dist/esm/pm-plugins/decorations/utils/column-resizing.js +1 -1
- package/dist/esm/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -3
- package/dist/esm/pm-plugins/drag-and-drop/commands.js +1 -1
- package/dist/esm/pm-plugins/drag-and-drop/plugin.js +1 -1
- package/dist/esm/{handlers.js → pm-plugins/handlers.js} +2 -2
- package/dist/esm/pm-plugins/keymap.js +4 -4
- package/dist/esm/pm-plugins/main.js +7 -7
- package/dist/esm/pm-plugins/plugin-factory.js +2 -2
- package/dist/esm/{reducer.js → pm-plugins/reducer.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 -5
- package/dist/esm/pm-plugins/table-resizing/utils/dom.js +2 -2
- package/dist/esm/pm-plugins/table-resizing/utils/resize-column.js +1 -1
- package/dist/esm/pm-plugins/table-resizing/utils/resize-state.js +1 -1
- package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +2 -2
- package/dist/esm/pm-plugins/table-selection-keymap.js +1 -1
- package/dist/esm/pm-plugins/table-width-in-comment-fix.js +1 -1
- package/dist/esm/pm-plugins/table-width.js +1 -1
- package/dist/esm/{transforms → pm-plugins/transforms}/column-width.js +5 -4
- package/dist/esm/{transforms → pm-plugins/transforms}/delete-columns.js +1 -1
- package/dist/esm/{transforms → pm-plugins/transforms}/fix-tables.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/alignment.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/analytics.js +2 -2
- package/dist/esm/{utils → pm-plugins/utils}/column-controls.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/create.js +8 -1
- package/dist/esm/{utils → pm-plugins/utils}/decoration.js +2 -2
- package/dist/esm/{utils → pm-plugins/utils}/dom.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/drag-menu.js +6 -6
- package/dist/esm/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/paste.js +1 -1
- package/dist/esm/{utils → pm-plugins/utils}/row-controls.js +2 -2
- package/dist/esm/{utils → pm-plugins/utils}/update-plugin-state-decorations.js +1 -1
- package/dist/esm/{plugin.js → tablePlugin.js} +11 -9
- package/dist/esm/tablePluginType.js +1 -0
- package/dist/esm/ui/DragHandle/index.js +1 -1
- package/dist/esm/ui/FloatingContextualButton/index.js +1 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
- package/dist/esm/ui/FloatingDeleteButton/index.js +3 -3
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +4 -4
- package/dist/esm/ui/FloatingInsertButton/index.js +2 -2
- package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -2
- package/dist/esm/ui/TableFloatingColumnControls/index.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +2 -2
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +2 -2
- package/dist/esm/ui/TableFloatingControls/index.js +2 -2
- package/dist/esm/{event-handlers.js → ui/event-handlers.js} +8 -8
- package/dist/esm/{toolbar.js → ui/toolbar.js} +12 -12
- package/dist/types/index.d.ts +2 -2
- package/dist/{types-ts4.5 → types/pm-plugins}/commands/column-resize.d.ts +1 -1
- package/dist/types/{commands-with-analytics.d.ts → pm-plugins/commands/commands-with-analytics.d.ts} +2 -2
- package/dist/types/{commands → pm-plugins/commands}/delete.d.ts +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/commands/hover.d.ts +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/commands/insert.d.ts +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/commands/misc.d.ts +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/commands/selection.d.ts +1 -1
- package/dist/types/{commands → pm-plugins/commands}/toggle.d.ts +1 -1
- package/dist/types/{create-plugin-config.d.ts → pm-plugins/create-plugin-config.d.ts} +1 -1
- package/dist/types/{handlers.d.ts → pm-plugins/handlers.d.ts} +1 -1
- package/dist/types/{reducer.d.ts → pm-plugins/reducer.d.ts} +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/transforms/column-width.d.ts +2 -2
- package/dist/{types-ts4.5 → types/pm-plugins}/transforms/delete-columns.d.ts +1 -1
- package/dist/types/{transforms → pm-plugins/transforms}/fix-tables.d.ts +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/utils/alignment.d.ts +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/utils/create.d.ts +2 -1
- package/dist/types/{utils → pm-plugins/utils}/decoration.d.ts +2 -2
- package/dist/types/{utils → pm-plugins/utils}/drag-menu.d.ts +1 -1
- package/dist/{types-ts4.5 → types/pm-plugins}/utils/update-plugin-state-decorations.d.ts +1 -1
- package/dist/types/pm-plugins/view-mode-sort/index.d.ts +1 -1
- package/dist/types/tablePlugin.d.ts +7 -0
- package/dist/types/{plugin.d.ts → tablePluginType.d.ts} +2 -8
- package/dist/types/{types.d.ts → types/index.d.ts} +1 -1
- package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +2 -2
- package/dist/types/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +1 -1
- package/dist/types/ui/TableFloatingControls/index.d.ts +2 -2
- package/dist/{types-ts4.5 → types/ui}/event-handlers.d.ts +1 -1
- package/dist/types/ui/icons/SortingIconWrapper.d.ts +1 -1
- package/dist/types/{toolbar.d.ts → ui/toolbar.d.ts} +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/{types → types-ts4.5/pm-plugins}/commands/column-resize.d.ts +1 -1
- package/dist/types-ts4.5/{commands-with-analytics.d.ts → pm-plugins/commands/commands-with-analytics.d.ts} +2 -2
- package/dist/types-ts4.5/{commands → pm-plugins/commands}/delete.d.ts +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/commands/hover.d.ts +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/commands/insert.d.ts +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/commands/misc.d.ts +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/commands/selection.d.ts +1 -1
- package/dist/types-ts4.5/{commands → pm-plugins/commands}/toggle.d.ts +1 -1
- package/dist/types-ts4.5/{create-plugin-config.d.ts → pm-plugins/create-plugin-config.d.ts} +1 -1
- package/dist/types-ts4.5/{handlers.d.ts → pm-plugins/handlers.d.ts} +1 -1
- package/dist/types-ts4.5/{reducer.d.ts → pm-plugins/reducer.d.ts} +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/transforms/column-width.d.ts +2 -2
- package/dist/{types → types-ts4.5/pm-plugins}/transforms/delete-columns.d.ts +1 -1
- package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/fix-tables.d.ts +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/utils/alignment.d.ts +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/utils/create.d.ts +2 -1
- package/dist/types-ts4.5/{utils → pm-plugins/utils}/decoration.d.ts +2 -2
- package/dist/types-ts4.5/{utils → pm-plugins/utils}/drag-menu.d.ts +1 -1
- package/dist/{types → types-ts4.5/pm-plugins}/utils/update-plugin-state-decorations.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +1 -1
- package/dist/types-ts4.5/tablePlugin.d.ts +7 -0
- package/dist/types-ts4.5/{plugin.d.ts → tablePluginType.d.ts} +2 -8
- package/dist/types-ts4.5/{types.d.ts → types/index.d.ts} +1 -1
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +2 -2
- package/dist/types-ts4.5/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +1 -1
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +2 -2
- package/dist/{types → types-ts4.5/ui}/event-handlers.d.ts +1 -1
- package/dist/types-ts4.5/ui/icons/SortingIconWrapper.d.ts +1 -1
- package/dist/types-ts4.5/{toolbar.d.ts → ui/toolbar.d.ts} +2 -2
- package/package.json +12 -8
- package/src/index.ts +2 -2
- package/src/nodeviews/ExternalDropTargets.tsx +1 -1
- package/src/nodeviews/TableComponent.tsx +12 -12
- package/src/nodeviews/TableContainer.tsx +2 -2
- package/src/nodeviews/TableResizer.tsx +13 -13
- package/src/nodeviews/TableRow.ts +3 -3
- package/src/nodeviews/table-container-styles.ts +1 -1
- package/src/nodeviews/table.tsx +2 -2
- package/src/{toDOM.ts → nodeviews/toDOM.ts} +4 -3
- package/src/pm-plugins/analytics/plugin.ts +1 -1
- package/src/{commands → pm-plugins/commands}/column-resize.ts +9 -9
- package/src/{commands-with-analytics.ts → pm-plugins/commands/commands-with-analytics.ts} +24 -23
- package/src/{commands → pm-plugins/commands}/delete.ts +1 -1
- package/src/{commands → pm-plugins/commands}/go-to-next-cell.ts +2 -2
- package/src/{commands → pm-plugins/commands}/hover.ts +3 -3
- package/src/{commands → pm-plugins/commands}/insert.ts +18 -12
- package/src/{commands → pm-plugins/commands}/misc.ts +5 -5
- package/src/{commands → pm-plugins/commands}/referentiality.ts +1 -1
- package/src/{commands → pm-plugins/commands}/selection.ts +5 -4
- package/src/{commands → pm-plugins/commands}/sort.ts +2 -2
- package/src/{commands → pm-plugins/commands}/split-cell.ts +2 -2
- package/src/{commands → pm-plugins/commands}/toggle.ts +2 -2
- package/src/{create-plugin-config.ts → pm-plugins/create-plugin-config.ts} +1 -1
- package/src/pm-plugins/decorations/utils/column-controls.ts +1 -1
- package/src/pm-plugins/decorations/utils/column-resizing.ts +1 -1
- package/src/pm-plugins/drag-and-drop/commands-with-analytics.ts +3 -3
- package/src/pm-plugins/drag-and-drop/commands.ts +1 -1
- package/src/pm-plugins/drag-and-drop/plugin.ts +1 -1
- package/src/{handlers.ts → pm-plugins/handlers.ts} +4 -3
- package/src/pm-plugins/keymap.ts +11 -10
- package/src/pm-plugins/main.ts +28 -28
- package/src/pm-plugins/plugin-factory.ts +2 -3
- package/src/{reducer.ts → pm-plugins/reducer.ts} +3 -2
- package/src/pm-plugins/table-resizing/commands.ts +1 -1
- package/src/pm-plugins/table-resizing/event-handlers.ts +7 -7
- package/src/pm-plugins/table-resizing/utils/dom.ts +2 -2
- package/src/pm-plugins/table-resizing/utils/resize-column.ts +1 -1
- package/src/pm-plugins/table-resizing/utils/resize-state.ts +1 -1
- package/src/pm-plugins/table-resizing/utils/scale-table.ts +2 -2
- package/src/pm-plugins/table-selection-keymap.ts +3 -2
- package/src/pm-plugins/table-width-in-comment-fix.ts +1 -1
- package/src/pm-plugins/table-width.ts +1 -2
- package/src/{transforms → pm-plugins/transforms}/column-width.ts +6 -6
- package/src/{transforms → pm-plugins/transforms}/delete-columns.ts +2 -2
- package/src/{transforms → pm-plugins/transforms}/fix-tables.ts +2 -2
- package/src/{utils → pm-plugins/utils}/alignment.ts +2 -2
- package/src/{utils → pm-plugins/utils}/analytics.ts +3 -2
- package/src/{utils → pm-plugins/utils}/column-controls.ts +1 -1
- package/src/{utils → pm-plugins/utils}/create.ts +15 -1
- package/src/{utils → pm-plugins/utils}/decoration.ts +3 -3
- package/src/{utils → pm-plugins/utils}/dom.ts +1 -1
- package/src/{utils → pm-plugins/utils}/drag-menu.ts +7 -7
- package/src/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.ts +1 -1
- package/src/{utils → pm-plugins/utils}/paste.ts +1 -1
- package/src/{utils → pm-plugins/utils}/row-controls.ts +2 -2
- package/src/{utils → pm-plugins/utils}/update-plugin-state-decorations.ts +2 -2
- package/src/pm-plugins/view-mode-sort/index.ts +1 -1
- package/src/{plugin.tsx → tablePlugin.tsx} +16 -88
- package/src/tablePluginType.ts +79 -0
- package/src/{types.ts → types/index.ts} +1 -1
- package/src/ui/DragHandle/index.tsx +1 -1
- package/src/ui/FloatingContextualButton/index.tsx +1 -1
- package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +6 -6
- package/src/ui/FloatingDeleteButton/index.tsx +8 -5
- package/src/ui/FloatingDragMenu/DragMenu.tsx +7 -7
- package/src/ui/FloatingInsertButton/index.tsx +5 -2
- package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +3 -3
- package/src/ui/TableFloatingColumnControls/index.tsx +1 -1
- package/src/ui/TableFloatingControls/CornerControls/ClassicCornerControls.tsx +1 -1
- package/src/ui/TableFloatingControls/CornerControls/DragCornerControls.tsx +2 -2
- package/src/ui/TableFloatingControls/FloatingControlsWithSelection.tsx +1 -1
- package/src/ui/TableFloatingControls/NumberColumn/index.tsx +2 -2
- package/src/ui/TableFloatingControls/RowControls/ClassicControls.tsx +3 -3
- package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +2 -2
- package/src/ui/TableFloatingControls/index.tsx +3 -3
- package/src/{event-handlers.ts → ui/event-handlers.ts} +9 -9
- package/src/ui/icons/SortingIconWrapper.tsx +1 -1
- package/src/{toolbar.tsx → ui/toolbar.tsx} +20 -19
- package/tsconfig.dev.json +1 -1
- package/types/package.json +5 -5
- package/dist/cjs/i18n/cs.js +0 -44
- package/dist/cjs/i18n/da.js +0 -42
- package/dist/cjs/i18n/de.js +0 -42
- package/dist/cjs/i18n/en.js +0 -44
- package/dist/cjs/i18n/en_GB.js +0 -44
- package/dist/cjs/i18n/en_ZZ.js +0 -44
- package/dist/cjs/i18n/es.js +0 -42
- package/dist/cjs/i18n/fi.js +0 -42
- package/dist/cjs/i18n/fr.js +0 -44
- package/dist/cjs/i18n/hu.js +0 -44
- package/dist/cjs/i18n/it.js +0 -44
- package/dist/cjs/i18n/ja.js +0 -44
- package/dist/cjs/i18n/ko.js +0 -42
- package/dist/cjs/i18n/nb.js +0 -42
- package/dist/cjs/i18n/nl.js +0 -44
- package/dist/cjs/i18n/pl.js +0 -44
- package/dist/cjs/i18n/pt_BR.js +0 -44
- package/dist/cjs/i18n/ru.js +0 -44
- package/dist/cjs/i18n/sv.js +0 -42
- package/dist/cjs/i18n/th.js +0 -42
- package/dist/cjs/i18n/tr.js +0 -44
- package/dist/cjs/i18n/uk.js +0 -44
- package/dist/cjs/i18n/vi.js +0 -42
- package/dist/cjs/i18n/zh.js +0 -44
- package/dist/cjs/i18n/zh_TW.js +0 -44
- package/dist/es2019/i18n/cs.js +0 -38
- package/dist/es2019/i18n/da.js +0 -36
- package/dist/es2019/i18n/de.js +0 -36
- package/dist/es2019/i18n/en.js +0 -38
- package/dist/es2019/i18n/en_GB.js +0 -38
- package/dist/es2019/i18n/en_ZZ.js +0 -38
- package/dist/es2019/i18n/es.js +0 -36
- package/dist/es2019/i18n/fi.js +0 -36
- package/dist/es2019/i18n/fr.js +0 -38
- package/dist/es2019/i18n/hu.js +0 -38
- package/dist/es2019/i18n/it.js +0 -38
- package/dist/es2019/i18n/ja.js +0 -38
- package/dist/es2019/i18n/ko.js +0 -36
- package/dist/es2019/i18n/nb.js +0 -36
- package/dist/es2019/i18n/nl.js +0 -38
- package/dist/es2019/i18n/pl.js +0 -38
- package/dist/es2019/i18n/pt_BR.js +0 -38
- package/dist/es2019/i18n/ru.js +0 -38
- package/dist/es2019/i18n/sv.js +0 -36
- package/dist/es2019/i18n/th.js +0 -36
- package/dist/es2019/i18n/tr.js +0 -38
- package/dist/es2019/i18n/uk.js +0 -38
- package/dist/es2019/i18n/vi.js +0 -36
- package/dist/es2019/i18n/zh.js +0 -38
- package/dist/es2019/i18n/zh_TW.js +0 -38
- package/dist/esm/i18n/cs.js +0 -38
- package/dist/esm/i18n/da.js +0 -36
- package/dist/esm/i18n/de.js +0 -36
- package/dist/esm/i18n/en.js +0 -38
- package/dist/esm/i18n/en_GB.js +0 -38
- package/dist/esm/i18n/en_ZZ.js +0 -38
- package/dist/esm/i18n/es.js +0 -36
- package/dist/esm/i18n/fi.js +0 -36
- package/dist/esm/i18n/fr.js +0 -38
- package/dist/esm/i18n/hu.js +0 -38
- package/dist/esm/i18n/it.js +0 -38
- package/dist/esm/i18n/ja.js +0 -38
- package/dist/esm/i18n/ko.js +0 -36
- package/dist/esm/i18n/nb.js +0 -36
- package/dist/esm/i18n/nl.js +0 -38
- package/dist/esm/i18n/pl.js +0 -38
- package/dist/esm/i18n/pt_BR.js +0 -38
- package/dist/esm/i18n/ru.js +0 -38
- package/dist/esm/i18n/sv.js +0 -36
- package/dist/esm/i18n/th.js +0 -36
- package/dist/esm/i18n/tr.js +0 -38
- package/dist/esm/i18n/uk.js +0 -38
- package/dist/esm/i18n/vi.js +0 -36
- package/dist/esm/i18n/zh.js +0 -38
- package/dist/esm/i18n/zh_TW.js +0 -38
- package/dist/types/i18n/cs.d.ts +0 -37
- package/dist/types/i18n/da.d.ts +0 -35
- package/dist/types/i18n/de.d.ts +0 -35
- package/dist/types/i18n/en.d.ts +0 -37
- package/dist/types/i18n/en_GB.d.ts +0 -37
- package/dist/types/i18n/en_ZZ.d.ts +0 -37
- package/dist/types/i18n/es.d.ts +0 -35
- package/dist/types/i18n/fi.d.ts +0 -35
- package/dist/types/i18n/fr.d.ts +0 -37
- package/dist/types/i18n/hu.d.ts +0 -37
- package/dist/types/i18n/it.d.ts +0 -37
- package/dist/types/i18n/ja.d.ts +0 -37
- package/dist/types/i18n/ko.d.ts +0 -35
- package/dist/types/i18n/nb.d.ts +0 -35
- package/dist/types/i18n/nl.d.ts +0 -37
- package/dist/types/i18n/pl.d.ts +0 -37
- package/dist/types/i18n/pt_BR.d.ts +0 -37
- package/dist/types/i18n/ru.d.ts +0 -37
- package/dist/types/i18n/sv.d.ts +0 -35
- package/dist/types/i18n/th.d.ts +0 -35
- package/dist/types/i18n/tr.d.ts +0 -37
- package/dist/types/i18n/uk.d.ts +0 -37
- package/dist/types/i18n/vi.d.ts +0 -35
- package/dist/types/i18n/zh.d.ts +0 -37
- package/dist/types/i18n/zh_TW.d.ts +0 -37
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -37
- package/dist/types-ts4.5/i18n/da.d.ts +0 -35
- package/dist/types-ts4.5/i18n/de.d.ts +0 -35
- package/dist/types-ts4.5/i18n/en.d.ts +0 -37
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -37
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -37
- package/dist/types-ts4.5/i18n/es.d.ts +0 -35
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -35
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -37
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -37
- package/dist/types-ts4.5/i18n/it.d.ts +0 -37
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -37
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -35
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -35
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -37
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -37
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -37
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -37
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -35
- package/dist/types-ts4.5/i18n/th.d.ts +0 -35
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -37
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -37
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -35
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -37
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -37
- package/src/i18n/cs.ts +0 -42
- package/src/i18n/da.ts +0 -37
- package/src/i18n/de.ts +0 -37
- package/src/i18n/en.ts +0 -38
- package/src/i18n/en_GB.ts +0 -38
- package/src/i18n/en_ZZ.ts +0 -43
- package/src/i18n/es.ts +0 -37
- package/src/i18n/fi.ts +0 -37
- package/src/i18n/fr.ts +0 -39
- package/src/i18n/hu.ts +0 -39
- package/src/i18n/it.ts +0 -39
- package/src/i18n/ja.ts +0 -39
- package/src/i18n/ko.ts +0 -36
- package/src/i18n/nb.ts +0 -37
- package/src/i18n/nl.ts +0 -39
- package/src/i18n/pl.ts +0 -42
- package/src/i18n/pt_BR.ts +0 -39
- package/src/i18n/ru.ts +0 -42
- package/src/i18n/sv.ts +0 -37
- package/src/i18n/th.ts +0 -36
- package/src/i18n/tr.ts +0 -39
- package/src/i18n/uk.ts +0 -42
- package/src/i18n/vi.ts +0 -36
- package/src/i18n/zh.ts +0 -38
- package/src/i18n/zh_TW.ts +0 -38
- /package/dist/cjs/{commands → pm-plugins/commands}/clear.js +0 -0
- /package/dist/cjs/{commands → pm-plugins/commands}/collapse.js +0 -0
- /package/dist/cjs/{commands → pm-plugins/commands}/delete.js +0 -0
- /package/dist/cjs/{commands → pm-plugins/commands}/display-mode.js +0 -0
- /package/dist/cjs/{commands → pm-plugins/commands}/index.js +0 -0
- /package/dist/cjs/{create-plugin-config.js → pm-plugins/create-plugin-config.js} +0 -0
- /package/dist/cjs/{transforms → pm-plugins/transforms}/delete-rows.js +0 -0
- /package/dist/cjs/{transforms → pm-plugins/transforms}/index.js +0 -0
- /package/dist/cjs/{transforms → pm-plugins/transforms}/merge.js +0 -0
- /package/dist/cjs/{transforms → pm-plugins/transforms}/replace-table.js +0 -0
- /package/dist/cjs/{transforms → pm-plugins/transforms}/split.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/collapse.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/guidelines.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/index.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/merged-cells.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/nodes.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/selection.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/snapping.js +0 -0
- /package/dist/cjs/{utils → pm-plugins/utils}/table.js +0 -0
- /package/dist/cjs/{types.js → types/index.js} +0 -0
- /package/dist/es2019/{commands → pm-plugins/commands}/clear.js +0 -0
- /package/dist/es2019/{commands → pm-plugins/commands}/collapse.js +0 -0
- /package/dist/es2019/{commands → pm-plugins/commands}/delete.js +0 -0
- /package/dist/es2019/{commands → pm-plugins/commands}/display-mode.js +0 -0
- /package/dist/es2019/{commands → pm-plugins/commands}/index.js +0 -0
- /package/dist/es2019/{create-plugin-config.js → pm-plugins/create-plugin-config.js} +0 -0
- /package/dist/es2019/{transforms → pm-plugins/transforms}/delete-rows.js +0 -0
- /package/dist/es2019/{transforms → pm-plugins/transforms}/index.js +0 -0
- /package/dist/es2019/{transforms → pm-plugins/transforms}/merge.js +0 -0
- /package/dist/es2019/{transforms → pm-plugins/transforms}/replace-table.js +0 -0
- /package/dist/es2019/{transforms → pm-plugins/transforms}/split.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/collapse.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/guidelines.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/index.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/merged-cells.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/nodes.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/selection.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/snapping.js +0 -0
- /package/dist/es2019/{utils → pm-plugins/utils}/table.js +0 -0
- /package/dist/es2019/{types.js → types/index.js} +0 -0
- /package/dist/esm/{commands → pm-plugins/commands}/clear.js +0 -0
- /package/dist/esm/{commands → pm-plugins/commands}/collapse.js +0 -0
- /package/dist/esm/{commands → pm-plugins/commands}/delete.js +0 -0
- /package/dist/esm/{commands → pm-plugins/commands}/display-mode.js +0 -0
- /package/dist/esm/{commands → pm-plugins/commands}/index.js +0 -0
- /package/dist/esm/{create-plugin-config.js → pm-plugins/create-plugin-config.js} +0 -0
- /package/dist/esm/{transforms → pm-plugins/transforms}/delete-rows.js +0 -0
- /package/dist/esm/{transforms → pm-plugins/transforms}/index.js +0 -0
- /package/dist/esm/{transforms → pm-plugins/transforms}/merge.js +0 -0
- /package/dist/esm/{transforms → pm-plugins/transforms}/replace-table.js +0 -0
- /package/dist/esm/{transforms → pm-plugins/transforms}/split.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/collapse.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/guidelines.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/index.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/merged-cells.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/nodes.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/selection.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/snapping.js +0 -0
- /package/dist/esm/{utils → pm-plugins/utils}/table.js +0 -0
- /package/dist/esm/{types.js → types/index.js} +0 -0
- /package/dist/types/{toDOM.d.ts → nodeviews/toDOM.d.ts} +0 -0
- /package/dist/types/{commands → pm-plugins/commands}/clear.d.ts +0 -0
- /package/dist/types/{commands → pm-plugins/commands}/collapse.d.ts +0 -0
- /package/dist/types/{commands → pm-plugins/commands}/display-mode.d.ts +0 -0
- /package/dist/types/{commands → pm-plugins/commands}/go-to-next-cell.d.ts +0 -0
- /package/dist/types/{commands → pm-plugins/commands}/index.d.ts +0 -0
- /package/dist/types/{commands → pm-plugins/commands}/referentiality.d.ts +0 -0
- /package/dist/types/{commands → pm-plugins/commands}/sort.d.ts +0 -0
- /package/dist/types/{commands → pm-plugins/commands}/split-cell.d.ts +0 -0
- /package/dist/types/{transforms → pm-plugins/transforms}/delete-rows.d.ts +0 -0
- /package/dist/types/{transforms → pm-plugins/transforms}/index.d.ts +0 -0
- /package/dist/types/{transforms → pm-plugins/transforms}/merge.d.ts +0 -0
- /package/dist/types/{transforms → pm-plugins/transforms}/replace-table.d.ts +0 -0
- /package/dist/types/{transforms → pm-plugins/transforms}/split.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/analytics.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/collapse.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/column-controls.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/dom.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/guidelines.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/index.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/merged-cells.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/nodes.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/paste.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/row-controls.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/selection.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/snapping.d.ts +0 -0
- /package/dist/types/{utils → pm-plugins/utils}/table.d.ts +0 -0
- /package/dist/types-ts4.5/{toDOM.d.ts → nodeviews/toDOM.d.ts} +0 -0
- /package/dist/types-ts4.5/{commands → pm-plugins/commands}/clear.d.ts +0 -0
- /package/dist/types-ts4.5/{commands → pm-plugins/commands}/collapse.d.ts +0 -0
- /package/dist/types-ts4.5/{commands → pm-plugins/commands}/display-mode.d.ts +0 -0
- /package/dist/types-ts4.5/{commands → pm-plugins/commands}/go-to-next-cell.d.ts +0 -0
- /package/dist/types-ts4.5/{commands → pm-plugins/commands}/index.d.ts +0 -0
- /package/dist/types-ts4.5/{commands → pm-plugins/commands}/referentiality.d.ts +0 -0
- /package/dist/types-ts4.5/{commands → pm-plugins/commands}/sort.d.ts +0 -0
- /package/dist/types-ts4.5/{commands → pm-plugins/commands}/split-cell.d.ts +0 -0
- /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/delete-rows.d.ts +0 -0
- /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/index.d.ts +0 -0
- /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/merge.d.ts +0 -0
- /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/replace-table.d.ts +0 -0
- /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/split.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/analytics.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/collapse.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/column-controls.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/dom.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/guidelines.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/index.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/merged-cells.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/nodes.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/paste.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/row-controls.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/selection.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/snapping.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → pm-plugins/utils}/table.d.ts +0 -0
- /package/src/{commands → pm-plugins/commands}/clear.ts +0 -0
- /package/src/{commands → pm-plugins/commands}/collapse.ts +0 -0
- /package/src/{commands → pm-plugins/commands}/display-mode.ts +0 -0
- /package/src/{commands → pm-plugins/commands}/index.ts +0 -0
- /package/src/{transforms → pm-plugins/transforms}/delete-rows.ts +0 -0
- /package/src/{transforms → pm-plugins/transforms}/index.ts +0 -0
- /package/src/{transforms → pm-plugins/transforms}/merge.ts +0 -0
- /package/src/{transforms → pm-plugins/transforms}/replace-table.ts +0 -0
- /package/src/{transforms → pm-plugins/transforms}/split.ts +0 -0
- /package/src/{utils → pm-plugins/utils}/collapse.ts +0 -0
- /package/src/{utils → pm-plugins/utils}/guidelines.ts +0 -0
- /package/src/{utils → pm-plugins/utils}/index.ts +0 -0
- /package/src/{utils → pm-plugins/utils}/merged-cells.ts +0 -0
- /package/src/{utils → pm-plugins/utils}/nodes.ts +0 -0
- /package/src/{utils → pm-plugins/utils}/selection.ts +0 -0
- /package/src/{utils → pm-plugins/utils}/snapping.ts +0 -0
- /package/src/{utils → pm-plugins/utils}/table.ts +0 -0
|
@@ -2,9 +2,9 @@ import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION, TABLE_STATUS }
|
|
|
2
2
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { findCellRectClosestToPos, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
5
|
-
import { getSelectedColumnIndexes, getSelectedRowIndexes, getSelectedTableInfo } from '
|
|
6
|
-
import { withEditorAnalyticsAPI } from '
|
|
7
|
-
import { canMove, getTargetIndex } from '
|
|
5
|
+
import { getSelectedColumnIndexes, getSelectedRowIndexes, getSelectedTableInfo } from '../utils';
|
|
6
|
+
import { withEditorAnalyticsAPI } from '../utils/analytics';
|
|
7
|
+
import { canMove, getTargetIndex } from '../utils/drag-menu';
|
|
8
8
|
import { clearDropTarget, cloneSource, moveSource } from './commands';
|
|
9
9
|
export const clearDropTargetWithAnalytics = editorAnalyticsAPI => (inputMethod, sourceType, sourceIndexes, status, tr) => {
|
|
10
10
|
return withEditorAnalyticsAPI(({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import { cloneColumn, cloneRow, moveColumn, moveRow } from '@atlaskit/editor-tables/utils';
|
|
3
3
|
import { TableDecorations } from '../../types';
|
|
4
|
-
import { createColumnInsertLine, createRowInsertLine, updateDecorations } from '
|
|
4
|
+
import { createColumnInsertLine, createRowInsertLine, updateDecorations } from '../utils';
|
|
5
5
|
import { DragAndDropActionType } from './actions';
|
|
6
6
|
import { DropTargetType } from './consts';
|
|
7
7
|
import { createCommand, getPluginState } from './plugin-factory';
|
|
@@ -6,10 +6,10 @@ import { getCellsInRow, getSelectedCellInfo } from '@atlaskit/editor-tables/util
|
|
|
6
6
|
import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
7
7
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
8
8
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
9
|
-
import { findNearestCellIndexToPoint, hasMergedCellsInBetween } from '../../utils';
|
|
10
9
|
import { getPluginState as getTablePluginState } from '../plugin-factory';
|
|
11
10
|
import { pluginKey as tablePluginKey } from '../plugin-key';
|
|
12
11
|
import { insertColgroupFromNode } from '../table-resizing/utils';
|
|
12
|
+
import { findNearestCellIndexToPoint, hasMergedCellsInBetween } from '../utils';
|
|
13
13
|
import { DragAndDropActionType } from './actions';
|
|
14
14
|
import { clearDropTarget, setDropTarget, toggleDragMenu } from './commands';
|
|
15
15
|
import { clearDropTargetWithAnalytics, cloneSourceWithAnalytics, moveSourceWithAnalytics } from './commands-with-analytics';
|
|
@@ -6,8 +6,8 @@ import { isTextInput } from '@atlaskit/editor-common/utils';
|
|
|
6
6
|
|
|
7
7
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
8
8
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
-
import { defaultTableSelection } from './
|
|
10
|
-
import { pluginKey as tableResizingPluginKey } from './
|
|
9
|
+
import { defaultTableSelection } from './default-table-selection';
|
|
10
|
+
import { pluginKey as tableResizingPluginKey } from './table-resizing';
|
|
11
11
|
import { isTableCollapsible } from './utils/collapse';
|
|
12
12
|
import { checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled } from './utils/nodes';
|
|
13
13
|
const nextTableSorting = (tr, table) => {
|
|
@@ -4,11 +4,11 @@ import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
|
4
4
|
import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
5
5
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { goToNextCell, moveCursorBackward, setFocusToCellMenu } from '../commands';
|
|
8
|
-
import { addRowAroundSelection, changeColumnWidthByStepWithAnalytics, deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut, deleteTableIfSelectedWithAnalytics, emptyMultipleCellsWithAnalytics } from '../commands-with-analytics';
|
|
9
|
-
import { activateNextResizeArea, initiateKeyboardColumnResizing, stopKeyboardColumnResizing } from '../commands/column-resize';
|
|
10
|
-
import { addColumnAfter as addColumnAfterCommand, addColumnBefore as addColumnBeforeCommand, createTable, insertTableWithNestingSupport } from '../commands/insert';
|
|
11
7
|
import { moveSourceWithAnalyticsViaShortcut } from '../pm-plugins/drag-and-drop/commands-with-analytics';
|
|
8
|
+
import { goToNextCell, moveCursorBackward, setFocusToCellMenu } from './commands';
|
|
9
|
+
import { activateNextResizeArea, initiateKeyboardColumnResizing, stopKeyboardColumnResizing } from './commands/column-resize';
|
|
10
|
+
import { addRowAroundSelection, changeColumnWidthByStepWithAnalytics, deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut, deleteTableIfSelectedWithAnalytics, emptyMultipleCellsWithAnalytics } from './commands/commands-with-analytics';
|
|
11
|
+
import { addColumnAfter as addColumnAfterCommand, addColumnBefore as addColumnBeforeCommand, createTable, insertTableWithNestingSupport } from './commands/insert';
|
|
12
12
|
export function keymapPlugin(getEditorContainerWidth, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, dragAndDropEnabled, isTableScalingEnabled = false, isTableAlignmentEnabled = false, isFullWidthEnabled, pluginInjectionApi, getIntl, isTableFixedColumnWidthsOptionEnabled = false, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor, isTableResizingEnabled) {
|
|
13
13
|
var _pluginInjectionApi$a;
|
|
14
14
|
const list = {};
|
|
@@ -6,19 +6,19 @@ import { browser, closestElement } from '@atlaskit/editor-common/utils';
|
|
|
6
6
|
import { findParentDomRefOfType, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
7
7
|
import { TableMap } from '@atlaskit/editor-tables';
|
|
8
8
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
-
import { addBoldInEmptyHeaderCells, clearHoverSelection, setTableRef } from '../commands';
|
|
10
|
-
import { stopKeyboardColumnResizing } from '../commands/column-resize';
|
|
11
|
-
import { removeResizeHandleDecorations, transformSliceRemoveCellBackgroundColor, transformSliceToAddTableHeaders, transformSliceToRemoveColumnsWidths } from '../commands/misc';
|
|
12
|
-
import { handleBlur, handleClick, handleCut, handleFocus, handleMouseDown, handleMouseEnter, handleMouseLeave, handleMouseMove, handleMouseUp, handleTripleClick, whenTableInFocus, withCellTracking } from '../event-handlers';
|
|
13
9
|
import { lazyTableCellView, lazyTableHeaderView, lazyTableRowView, lazyTableView } from '../nodeviews/lazy-node-views';
|
|
14
10
|
import { pluginKey as decorationsPluginKey } from '../pm-plugins/decorations/plugin';
|
|
15
|
-
import { fixTables, replaceSelectedTable } from '../transforms';
|
|
16
11
|
import { TableCssClassName as ClassName } from '../types';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
12
|
+
import { handleBlur, handleClick, handleCut, handleFocus, handleMouseDown, handleMouseEnter, handleMouseLeave, handleMouseMove, handleMouseUp, handleTripleClick, whenTableInFocus, withCellTracking } from '../ui/event-handlers';
|
|
13
|
+
import { addBoldInEmptyHeaderCells, clearHoverSelection, setTableRef } from './commands';
|
|
14
|
+
import { stopKeyboardColumnResizing } from './commands/column-resize';
|
|
15
|
+
import { removeResizeHandleDecorations, transformSliceRemoveCellBackgroundColor, transformSliceToAddTableHeaders, transformSliceToRemoveColumnsWidths } from './commands/misc';
|
|
19
16
|
import { defaultHoveredCell, defaultTableSelection } from './default-table-selection';
|
|
20
17
|
import { createPluginState, getPluginState } from './plugin-factory';
|
|
21
18
|
import { pluginKey } from './plugin-key';
|
|
19
|
+
import { fixTables, replaceSelectedTable } from './transforms';
|
|
20
|
+
import { findControlsHoverDecoration, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, transformSliceToRemoveOpenTable } from './utils';
|
|
21
|
+
import { isHeaderRowRequired, transformSliceTableLayoutDefaultToCenter } from './utils/paste';
|
|
22
22
|
export const createPlugin = (dispatchAnalyticsEvent, dispatch, portalProviderAPI, nodeViewPortalProviderAPI, eventDispatcher, pluginConfig, getEditorContainerWidth, getEditorFeatureFlags, getIntl, fullWidthModeEnabled, previousFullWidthModeEnabled, dragAndDropEnabled, editorAnalyticsAPI, pluginInjectionApi, isTableScalingEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor) => {
|
|
23
23
|
var _accessibilityUtils;
|
|
24
24
|
const state = createPluginState(dispatch, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { handleDocOrSelectionChanged } from '
|
|
3
|
-
import reducer from '../reducer';
|
|
2
|
+
import { handleDocOrSelectionChanged } from './handlers';
|
|
4
3
|
import { pluginKey } from './plugin-key';
|
|
4
|
+
import reducer from './reducer';
|
|
5
5
|
export const {
|
|
6
6
|
createPluginState,
|
|
7
7
|
createCommand,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
3
|
-
import { updateColumnWidths } from '../../transforms';
|
|
4
3
|
import { META_KEYS } from '../table-analytics';
|
|
4
|
+
import { updateColumnWidths } from '../transforms';
|
|
5
5
|
import { createCommand, getPluginState } from './plugin-factory';
|
|
6
6
|
import { evenAllColumnsWidths, isClickNear } from './utils';
|
|
7
7
|
export const evenColumns = ({
|
|
@@ -2,13 +2,13 @@ import { ACTION_SUBJECT, CHANGE_ALIGNMENT_REASON, EVENT_TYPE, INPUT_METHOD, TABL
|
|
|
2
2
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
4
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
5
|
-
import { stopKeyboardColumnResizing } from '
|
|
6
|
-
import { updateResizeHandleDecorations } from '
|
|
7
|
-
import { updateColumnWidths } from '../../transforms';
|
|
8
|
-
import { getSelectedColumnIndexes, isTableNested } from '../../utils';
|
|
9
|
-
import { ALIGN_CENTER, ALIGN_START, shouldChangeAlignmentToCenterResized } from '../../utils/alignment';
|
|
5
|
+
import { stopKeyboardColumnResizing } from '../commands/column-resize';
|
|
6
|
+
import { updateResizeHandleDecorations } from '../commands/misc';
|
|
10
7
|
import { getPluginState as getTablePluginState } from '../plugin-factory';
|
|
11
8
|
import { META_KEYS } from '../table-analytics';
|
|
9
|
+
import { updateColumnWidths } from '../transforms';
|
|
10
|
+
import { getSelectedColumnIndexes, isTableNested } from '../utils';
|
|
11
|
+
import { ALIGN_CENTER, ALIGN_START, shouldChangeAlignmentToCenterResized } from '../utils/alignment';
|
|
12
12
|
import { evenColumns, setDragging, stopResizing } from './commands';
|
|
13
13
|
import { getPluginState } from './plugin-factory';
|
|
14
14
|
import { currentColWidth, getResizeState, getTableMaxWidth, pointsAtCell, resizeColumn, resizeColumnAndTable, updateControls } from './utils';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { tableCellBorderWidth, tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
2
2
|
import { closestElement, containsClassName, parsePx } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
4
|
-
import { colWidthsForRow } from '../../../utils/column-controls';
|
|
5
|
-
import { getRowHeights } from '../../../utils/row-controls';
|
|
6
4
|
import { getPluginState as getMainPluginState } from '../../plugin-factory';
|
|
5
|
+
import { colWidthsForRow } from '../../utils/column-controls';
|
|
6
|
+
import { getRowHeights } from '../../utils/row-controls';
|
|
7
7
|
export const updateControls = () => state => {
|
|
8
8
|
const {
|
|
9
9
|
tableRef
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
5
|
-
import { ALIGN_CENTER, ALIGN_START, shouldChangeAlignmentToCenterResized } from '
|
|
5
|
+
import { ALIGN_CENTER, ALIGN_START, shouldChangeAlignmentToCenterResized } from '../../utils/alignment';
|
|
6
6
|
import { getTableScalingPercent } from './misc';
|
|
7
7
|
import { growColumn, shrinkColumn, updateAffectedColumn } from './resize-logic';
|
|
8
8
|
import { updateColgroup } from './resize-state';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
2
2
|
import { tableCellMinWidth, tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { getSelectedTableInfo } from '
|
|
4
|
+
import { getSelectedTableInfo } from '../../utils';
|
|
5
5
|
import { getColWidthFix, hasTableBeenResized, insertColgroupFromNode } from './colgroup';
|
|
6
6
|
import { getCellsRefsInColumn, getColumnStateFromDOM } from './column-state';
|
|
7
7
|
import { syncStickyRowToTable } from './dom';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
2
2
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { updateColumnWidths } from '
|
|
5
|
-
import { getTableWidth } from '
|
|
4
|
+
import { updateColumnWidths } from '../../transforms';
|
|
5
|
+
import { getTableWidth } from '../../utils';
|
|
6
6
|
import { getLayoutSize } from '../utils/misc';
|
|
7
7
|
import { reduceSpace } from '../utils/resize-logic';
|
|
8
8
|
import { adjustColumnsWidths, getResizeState, getTotalWidth, updateColgroup } from '../utils/resize-state';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { bindKeymapArrayWithCommand, bindKeymapWithCommand, moveLeft, moveRight, selectColumn, selectRow, selectTable, shiftArrowUp } from '@atlaskit/editor-common/keymaps';
|
|
2
2
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
3
|
-
import { arrowLeftFromTable, arrowRightFromTable, modASelectTable, selectColumns, selectRows, shiftArrowUpFromTable } from '
|
|
3
|
+
import { arrowLeftFromTable, arrowRightFromTable, modASelectTable, selectColumns, selectRows, shiftArrowUpFromTable } from './commands/selection';
|
|
4
4
|
export function tableSelectionKeymapPlugin(pluginInjectionApi, getIntl) {
|
|
5
5
|
var _pluginInjectionApi$a;
|
|
6
6
|
const list = {};
|
|
@@ -15,7 +15,7 @@ import rafSchedule from 'raf-schd';
|
|
|
15
15
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
16
16
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
17
17
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
18
|
-
import { ALIGN_START } from '
|
|
18
|
+
import { ALIGN_START } from './utils/alignment';
|
|
19
19
|
export const pluginKey = new PluginKey('tableWidthInCommentFixPlugin');
|
|
20
20
|
const getPluginState = state => state && pluginKey.getState(state);
|
|
21
21
|
const createPlugin = (dispatch, isTableAlignmentEnabled) => {
|
|
@@ -9,8 +9,8 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
9
9
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
11
11
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { ALIGN_START } from '../utils/alignment';
|
|
13
12
|
import { TABLE_MAX_WIDTH } from './table-resizing/utils';
|
|
13
|
+
import { ALIGN_START } from './utils/alignment';
|
|
14
14
|
export const pluginKey = new PluginKey('tableWidthPlugin');
|
|
15
15
|
const createPlugin = (dispatch, dispatchAnalyticsEvent, fullWidthEnabled, isTableScalingEnabled, isTableAlignmentEnabled, isCommentEditor) => {
|
|
16
16
|
return new SafePlugin({
|
|
@@ -2,10 +2,11 @@ import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
|
2
2
|
import { AttrStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import { getTableContainerElementWidth, getTableElementWidth, hasTableBeenResized } from '../
|
|
6
|
-
import { isMinCellWidthTable } from '../
|
|
7
|
-
import { getResizeState } from '../
|
|
8
|
-
import { scaleTableTo } from '../
|
|
5
|
+
import { getTableContainerElementWidth, getTableElementWidth, hasTableBeenResized } from '../table-resizing/utils';
|
|
6
|
+
import { isMinCellWidthTable } from '../table-resizing/utils/colgroup';
|
|
7
|
+
import { getResizeState } from '../table-resizing/utils/resize-state';
|
|
8
|
+
import { scaleTableTo } from '../table-resizing/utils/scale-table';
|
|
9
|
+
|
|
9
10
|
/**
|
|
10
11
|
* Given a new ResizeState object, create a transaction that replaces and updates the table node based on new state.
|
|
11
12
|
* @param resizeState
|
|
@@ -3,7 +3,7 @@ import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics
|
|
|
3
3
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
5
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
6
|
-
import { META_KEYS } from '../
|
|
6
|
+
import { META_KEYS } from '../table-analytics';
|
|
7
7
|
import { rescaleColumns } from './column-width';
|
|
8
8
|
import { splitCellsInColumns } from './split';
|
|
9
9
|
const deleteColumnsCustomStep = rect => tr => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
2
2
|
import { akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
3
|
-
import { calculateColumnWidth, contentWidth, getCellsRefsInColumn, getLayoutSize } from '../
|
|
3
|
+
import { calculateColumnWidth, contentWidth, getCellsRefsInColumn, getLayoutSize } from '../table-resizing/utils';
|
|
4
4
|
const validateTableCellNodeAttrs = ({
|
|
5
5
|
colspan,
|
|
6
6
|
rowspan,
|
|
@@ -2,8 +2,8 @@ import { useEffect, useRef } from 'react';
|
|
|
2
2
|
import { ACTION_SUBJECT, EVENT_TYPE, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
4
|
import { findTable, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
5
|
-
import { hasTableBeenResized } from '../
|
|
6
|
-
import { getTableWidth } from '
|
|
5
|
+
import { hasTableBeenResized } from '../table-resizing/utils';
|
|
6
|
+
import { getTableWidth } from './index';
|
|
7
7
|
export function getSelectedTableInfo(selection) {
|
|
8
8
|
let map;
|
|
9
9
|
let totalRowCount = 0;
|
|
@@ -2,7 +2,7 @@ import { maphElem } from '@atlaskit/editor-common/utils';
|
|
|
2
2
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
4
|
import { findTable, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
5
|
-
import { tableDeleteButtonSize } from '
|
|
5
|
+
import { tableDeleteButtonSize } from '../../ui/consts';
|
|
6
6
|
export const getColumnsWidths = view => {
|
|
7
7
|
const {
|
|
8
8
|
selection
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createTable } from '@atlaskit/editor-tables/utils';
|
|
2
|
-
import { TABLE_MAX_WIDTH } from '../
|
|
2
|
+
import { TABLE_MAX_WIDTH } from '../table-resizing/utils';
|
|
3
|
+
const NESTED_TABLE_DEFAULT_ROWS = 2;
|
|
4
|
+
const NESTED_TABLE_DEFAULT_COLS = 2;
|
|
3
5
|
export const createTableWithWidth = ({
|
|
4
6
|
isTableScalingEnabled,
|
|
5
7
|
isTableAlignmentEnabled,
|
|
@@ -7,9 +9,14 @@ export const createTableWithWidth = ({
|
|
|
7
9
|
isCommentEditor,
|
|
8
10
|
isChromelessEditor,
|
|
9
11
|
isTableResizingEnabled,
|
|
12
|
+
isNestedTable,
|
|
10
13
|
createTableProps
|
|
11
14
|
}) => schema => {
|
|
12
15
|
const attrsOverrides = {};
|
|
16
|
+
if (isNestedTable) {
|
|
17
|
+
attrsOverrides.rowsCount = createTableProps !== null && createTableProps !== void 0 && createTableProps.rowsCount ? createTableProps === null || createTableProps === void 0 ? void 0 : createTableProps.rowsCount : NESTED_TABLE_DEFAULT_ROWS;
|
|
18
|
+
attrsOverrides.colsCount = createTableProps !== null && createTableProps !== void 0 && createTableProps.colsCount ? createTableProps === null || createTableProps === void 0 ? void 0 : createTableProps.colsCount : NESTED_TABLE_DEFAULT_COLS;
|
|
19
|
+
}
|
|
13
20
|
if (isTableScalingEnabled && isFullWidthModeEnabled && !isCommentEditor) {
|
|
14
21
|
attrsOverrides.tableWidth = TABLE_MAX_WIDTH;
|
|
15
22
|
}
|
|
@@ -10,8 +10,8 @@ import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
|
10
10
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
11
11
|
import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
-
import { TableCssClassName as ClassName, TableDecorations } from '
|
|
14
|
-
import { ColumnResizeWidget } from '
|
|
13
|
+
import { TableCssClassName as ClassName, TableDecorations } from '../../types';
|
|
14
|
+
import { ColumnResizeWidget } from '../../ui/ColumnResizeWidget';
|
|
15
15
|
const filterDecorationByKey = (key, decorationSet) => decorationSet.find(undefined, undefined, spec => spec.key.indexOf(key) > -1);
|
|
16
16
|
export const findColumnControlSelectedDecoration = decorationSet => filterDecorationByKey(TableDecorations.COLUMN_SELECTED, decorationSet);
|
|
17
17
|
export const findControlsHoverDecoration = decorationSet => filterDecorationByKey(TableDecorations.ALL_CONTROLS_HOVER, decorationSet);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { closestElement, containsClassName } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { TableCssClassName as ClassName } from '
|
|
2
|
+
import { TableCssClassName as ClassName } from '../../types';
|
|
3
3
|
export const isCell = node => {
|
|
4
4
|
return Boolean(node && (['TH', 'TD'].indexOf(node.tagName) > -1 || !!closestElement(node, `.${ClassName.TABLE_HEADER_CELL}`) || !!closestElement(node, `.${ClassName.TABLE_CELL}`)));
|
|
5
5
|
};
|
|
@@ -24,12 +24,12 @@ import EditorLayoutThreeEqualIcon from '@atlaskit/icon/glyph/editor/layout-three
|
|
|
24
24
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
25
25
|
import HipchatChevronDoubleDownIcon from '@atlaskit/icon/glyph/hipchat/chevron-double-down';
|
|
26
26
|
import HipchatChevronDoubleUpIcon from '@atlaskit/icon/glyph/hipchat/chevron-double-up';
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
27
|
+
import { AddColLeftIcon, AddColRightIcon, AddRowAboveIcon, AddRowBelowIcon } from '../../ui/icons';
|
|
28
|
+
import { getClosestSelectionRect } from '../../ui/toolbar';
|
|
29
|
+
import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, sortColumnWithAnalytics } from '../commands/commands-with-analytics';
|
|
30
|
+
import { moveSourceWithAnalytics } from '../drag-and-drop/commands-with-analytics';
|
|
31
|
+
import { getPluginState as getTablePluginState } from '../plugin-factory';
|
|
32
|
+
import { getNewResizeStateFromSelectedColumns } from '../table-resizing/utils/resize-state';
|
|
33
33
|
import { hasMergedCellsInSelection, hasMergedCellsWithColumnNextToColumnIndex, hasMergedCellsWithRowNextToRowIndex } from './merged-cells';
|
|
34
34
|
import { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
|
|
35
35
|
export const getTargetIndex = (selectedIndexes, direction) => Math[direction < 0 ? 'min' : 'max'](...selectedIndexes) + direction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getPluginState } from '../
|
|
1
|
+
import { getPluginState } from '../plugin-factory';
|
|
2
2
|
export function getAllowAddColumnCustomStep(state) {
|
|
3
3
|
const tablePluginState = getPluginState(state);
|
|
4
4
|
return Boolean(tablePluginState) && Boolean(tablePluginState.pluginConfig.allowAddColumnWithCustomStep);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { flatmap, mapChildren, mapSlice } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { flatten } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
-
import { getPluginState } from '../
|
|
4
|
+
import { getPluginState } from '../plugin-factory';
|
|
5
5
|
|
|
6
6
|
// lifts up the content of each cell, returning an array of nodes
|
|
7
7
|
export const unwrapContentFromTable = maybeTable => {
|
|
@@ -2,8 +2,8 @@ import { parsePx } from '@atlaskit/editor-common/utils';
|
|
|
2
2
|
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
4
|
import { findTable, getSelectionRect, isRowSelected } from '@atlaskit/editor-tables/utils';
|
|
5
|
-
import { TableCssClassName as ClassName } from '
|
|
6
|
-
import { tableDeleteButtonSize } from '
|
|
5
|
+
import { TableCssClassName as ClassName } from '../../types';
|
|
6
|
+
import { tableDeleteButtonSize } from '../../ui/consts';
|
|
7
7
|
export const getRowHeights = tableRef => {
|
|
8
8
|
const heights = [];
|
|
9
9
|
const tableBody = tableRef.querySelector('tbody');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { getDecorations } from '../
|
|
1
|
+
import { getDecorations } from '../decorations/plugin';
|
|
2
2
|
import { updateDecorations } from './decoration';
|
|
3
3
|
export const updatePluginStateDecorations = (state, decorations, key) => updateDecorations(state.doc, getDecorations(state), decorations, key);
|
|
@@ -15,10 +15,11 @@ import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
|
15
15
|
import { tableEditing } from '@atlaskit/editor-tables/pm-plugins';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
|
-
import {
|
|
19
|
-
import { pluginConfig } from './create-plugin-config';
|
|
18
|
+
import { tableNodeSpecWithFixedToDOM } from './nodeviews/toDOM';
|
|
20
19
|
import { createPlugin as createTableAnalyticsPlugin } from './pm-plugins/analytics/plugin';
|
|
21
20
|
import { pluginKey as tableAnalyticsPluginKey } from './pm-plugins/analytics/plugin-key';
|
|
21
|
+
import { insertTableWithNestingSupport, insertTableWithSize } from './pm-plugins/commands/insert';
|
|
22
|
+
import { pluginConfig } from './pm-plugins/create-plugin-config';
|
|
22
23
|
import { createPlugin as createDecorationsPlugin } from './pm-plugins/decorations/plugin';
|
|
23
24
|
import { createPlugin as createDragAndDropPlugin, pluginKey as dragAndDropPluginKey } from './pm-plugins/drag-and-drop';
|
|
24
25
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
@@ -33,9 +34,8 @@ import { createPlugin as createFlexiResizingPlugin, getPluginState as getFlexiRe
|
|
|
33
34
|
import { tableSelectionKeymapPlugin } from './pm-plugins/table-selection-keymap';
|
|
34
35
|
import { createPlugin as createTableWidthPlugin, pluginKey as tableWidthPluginKey } from './pm-plugins/table-width';
|
|
35
36
|
import { createPlugin as createTableWidthInCommentFixPlugin } from './pm-plugins/table-width-in-comment-fix';
|
|
37
|
+
import { createTableWithWidth } from './pm-plugins/utils';
|
|
36
38
|
import { createPlugin as createViewModeSortPlugin } from './pm-plugins/view-mode-sort';
|
|
37
|
-
import { tableNodeSpecWithFixedToDOM } from './toDOM';
|
|
38
|
-
import { getToolbarConfig } from './toolbar';
|
|
39
39
|
import FloatingContextualButton from './ui/FloatingContextualButton';
|
|
40
40
|
import FloatingContextualMenu from './ui/FloatingContextualMenu';
|
|
41
41
|
import FloatingDeleteButton from './ui/FloatingDeleteButton';
|
|
@@ -44,11 +44,9 @@ import FloatingInsertButton from './ui/FloatingInsertButton';
|
|
|
44
44
|
import { FloatingToolbarLabel } from './ui/FloatingToolbarLabel/FloatingToolbarLabel';
|
|
45
45
|
import { GlobalStylesWrapper } from './ui/global-styles';
|
|
46
46
|
import { FullWidthDisplay } from './ui/TableFullWidthLabel';
|
|
47
|
-
import {
|
|
47
|
+
import { getToolbarConfig } from './ui/toolbar';
|
|
48
48
|
const defaultGetEditorFeatureFlags = () => ({});
|
|
49
49
|
|
|
50
|
-
// TODO: duplicating type instead of importing media plugin causing a circular dependency
|
|
51
|
-
|
|
52
50
|
/**
|
|
53
51
|
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
54
52
|
* from `@atlaskit/editor-core`.
|
|
@@ -548,14 +546,15 @@ const tablesPlugin = ({
|
|
|
548
546
|
var _api$table;
|
|
549
547
|
// see comment on tablesPlugin.getSharedState on usage
|
|
550
548
|
const tableState = api === null || api === void 0 ? void 0 : (_api$table = api.table) === null || _api$table === void 0 ? void 0 : _api$table.sharedState.currentState();
|
|
551
|
-
const
|
|
549
|
+
const tableNodeProps = {
|
|
552
550
|
isTableScalingEnabled: options === null || options === void 0 ? void 0 : options.isTableScalingEnabled,
|
|
553
551
|
isTableAlignmentEnabled: options === null || options === void 0 ? void 0 : options.tableOptions.allowTableAlignment,
|
|
554
552
|
isFullWidthModeEnabled: tableState === null || tableState === void 0 ? void 0 : tableState.isFullWidthModeEnabled,
|
|
555
553
|
isCommentEditor: options === null || options === void 0 ? void 0 : options.isCommentEditor,
|
|
556
554
|
isChromelessEditor: options === null || options === void 0 ? void 0 : options.isChromelessEditor,
|
|
557
555
|
isTableResizingEnabled: options === null || options === void 0 ? void 0 : options.tableOptions.allowTableResizing
|
|
558
|
-
}
|
|
556
|
+
};
|
|
557
|
+
let tableNode = createTableWithWidth(tableNodeProps)(state.schema);
|
|
559
558
|
let {
|
|
560
559
|
tr
|
|
561
560
|
} = state;
|
|
@@ -571,6 +570,10 @@ const tablesPlugin = ({
|
|
|
571
570
|
tr.scrollIntoView();
|
|
572
571
|
} else {
|
|
573
572
|
// Table can be nested in parent table
|
|
573
|
+
tableNode = createTableWithWidth({
|
|
574
|
+
...tableNodeProps,
|
|
575
|
+
isNestedTable: true
|
|
576
|
+
})(state.schema);
|
|
574
577
|
tr = insert(tableNode);
|
|
575
578
|
}
|
|
576
579
|
} else {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,8 +10,8 @@ import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
|
10
10
|
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
11
11
|
import { getPluginState as getDnDPluginState } from '../../pm-plugins/drag-and-drop/plugin-factory';
|
|
12
12
|
import { getPluginState } from '../../pm-plugins/plugin-factory';
|
|
13
|
+
import { findDuplicatePosition, hasMergedCellsInSelection } from '../../pm-plugins/utils';
|
|
13
14
|
import { TableCssClassName as ClassName } from '../../types';
|
|
14
|
-
import { findDuplicatePosition, hasMergedCellsInSelection } from '../../utils';
|
|
15
15
|
import { dragTableInsertColumnButtonSize } from '../consts';
|
|
16
16
|
import { DragPreview } from '../DragPreview';
|
|
17
17
|
import { HandleIconComponent } from './HandleIconComponent';
|
|
@@ -16,7 +16,7 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
|
16
16
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
17
17
|
import { akEditorSmallZIndex } from '@atlaskit/editor-shared-styles';
|
|
18
18
|
import ExpandIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
19
|
-
import { toggleContextualMenu } from '../../commands';
|
|
19
|
+
import { toggleContextualMenu } from '../../pm-plugins/commands';
|
|
20
20
|
import { TableCssClassName as ClassName } from '../../types';
|
|
21
21
|
import FixedButton from './FixedButton';
|
|
22
22
|
import { tableFloatingCellButtonSelectedStyles, tableFloatingCellButtonStyles } from './styles';
|
|
@@ -31,14 +31,14 @@ import TableColumnDeleteIcon from '@atlaskit/icon/core/table-column-delete';
|
|
|
31
31
|
import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
|
|
32
32
|
import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
|
|
33
33
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
34
|
-
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../commands';
|
|
35
|
-
import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, mergeCellsWithAnalytics, setColorWithAnalytics, sortColumnWithAnalytics, splitCellWithAnalytics } from '../../commands-with-analytics';
|
|
34
|
+
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../pm-plugins/commands';
|
|
35
|
+
import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, mergeCellsWithAnalytics, setColorWithAnalytics, sortColumnWithAnalytics, splitCellWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
|
|
36
36
|
import { getPluginState } from '../../pm-plugins/plugin-factory';
|
|
37
37
|
import { pluginKey as tablePluginKey } from '../../pm-plugins/plugin-key';
|
|
38
38
|
import { getNewResizeStateFromSelectedColumns } from '../../pm-plugins/table-resizing/utils/resize-state';
|
|
39
|
-
import { canMergeCells } from '../../transforms';
|
|
39
|
+
import { canMergeCells } from '../../pm-plugins/transforms';
|
|
40
|
+
import { getMergedCellsPositions, getSelectedColumnIndexes, getSelectedRowIndexes } from '../../pm-plugins/utils';
|
|
40
41
|
import { TableCssClassName as ClassName } from '../../types';
|
|
41
|
-
import { getMergedCellsPositions, getSelectedColumnIndexes, getSelectedRowIndexes } from '../../utils';
|
|
42
42
|
import { colorPalletteColumns, contextualMenuDropdownWidth, contextualMenuDropdownWidthDnD } from '../consts';
|
|
43
43
|
import { AddColRightIcon, AddRowBelowIcon, MergeCellsIcon, SplitCellIcon } from '../icons';
|
|
44
44
|
import { cellColourPreviewStyles } from './styles';
|
|
@@ -9,11 +9,11 @@ import { closestElement } from '@atlaskit/editor-common/utils';
|
|
|
9
9
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
10
10
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
11
11
|
import { getSelectionRect, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
12
|
-
import { clearHoverSelection, hoverColumns, hoverRows } from '../../commands';
|
|
13
|
-
import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics } from '../../commands-with-analytics';
|
|
12
|
+
import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
|
|
13
|
+
import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
|
|
14
14
|
import { getPluginState as getTablePluginState } from '../../pm-plugins/plugin-factory';
|
|
15
|
+
import { getColumnDeleteButtonParams, getColumnsWidths, getRowDeleteButtonParams, getRowHeights } from '../../pm-plugins/utils';
|
|
15
16
|
import { TableCssClassName as ClassName } from '../../types';
|
|
16
|
-
import { getColumnDeleteButtonParams, getColumnsWidths, getRowDeleteButtonParams, getRowHeights } from '../../utils';
|
|
17
17
|
import { stickyRowZIndex } from '../consts';
|
|
18
18
|
import DeleteButton from './DeleteButton';
|
|
19
19
|
import getPopupOptions from './getPopUpOptions';
|
|
@@ -24,14 +24,14 @@ import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
|
|
|
24
24
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
25
25
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
26
26
|
import Toggle from '@atlaskit/toggle';
|
|
27
|
-
import { clearHoverSelection, hoverColumns, hoverRows } from '../../commands';
|
|
28
|
-
import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../commands-with-analytics';
|
|
27
|
+
import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
|
|
28
|
+
import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
|
|
29
29
|
import { toggleDragMenu } from '../../pm-plugins/drag-and-drop/commands';
|
|
30
30
|
import { getPluginState } from '../../pm-plugins/drag-and-drop/plugin-factory';
|
|
31
31
|
import { getPluginState as getTablePluginState } from '../../pm-plugins/plugin-factory';
|
|
32
|
+
import { checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getSelectedColumnIndexes, getSelectedRowIndexes } from '../../pm-plugins/utils';
|
|
33
|
+
import { getDragMenuConfig } from '../../pm-plugins/utils/drag-menu';
|
|
32
34
|
import { TableCssClassName as ClassName } from '../../types';
|
|
33
|
-
import { checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getSelectedColumnIndexes, getSelectedRowIndexes } from '../../utils';
|
|
34
|
-
import { getDragMenuConfig } from '../../utils/drag-menu';
|
|
35
35
|
import { colorPalletteColumns } from '../consts';
|
|
36
36
|
import { DropdownMenu } from './DropdownMenu';
|
|
37
37
|
import { cellColourPreviewStyles, dragMenuBackgroundColorStyles, toggleStyles } from './styles';
|
|
@@ -10,9 +10,9 @@ import { akEditorTableCellOnStickyHeaderZIndex } from '@atlaskit/editor-shared-s
|
|
|
10
10
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
11
11
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
12
12
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
13
|
-
import { insertColumnWithAnalytics, insertRowWithAnalytics } from '../../commands-with-analytics';
|
|
13
|
+
import { insertColumnWithAnalytics, insertRowWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
|
|
14
|
+
import { checkIfNumberColumnEnabled } from '../../pm-plugins/utils';
|
|
14
15
|
import { TableCssClassName as ClassName } from '../../types';
|
|
15
|
-
import { checkIfNumberColumnEnabled } from '../../utils';
|
|
16
16
|
import getPopupOptions from './getPopupOptions';
|
|
17
17
|
import InsertButton, { DragAndDropInsertButton } from './InsertButton';
|
|
18
18
|
export class FloatingInsertButton extends React.Component {
|
|
@@ -7,10 +7,10 @@ import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
|
7
7
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
8
8
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
-
import { clearHoverSelection, hoverCell, hoverColumns, selectColumn, selectColumns } from '../../../commands';
|
|
10
|
+
import { clearHoverSelection, hoverCell, hoverColumns, selectColumn, selectColumns } from '../../../pm-plugins/commands';
|
|
11
11
|
import { toggleDragMenu } from '../../../pm-plugins/drag-and-drop/commands';
|
|
12
|
+
import { getRowsParams, getSelectedColumnIndexes } from '../../../pm-plugins/utils';
|
|
12
13
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
13
|
-
import { getRowsParams, getSelectedColumnIndexes } from '../../../utils';
|
|
14
14
|
import { DragHandle } from '../../DragHandle';
|
|
15
15
|
const getSelectedColumns = selection => {
|
|
16
16
|
if (selection instanceof CellSelection && selection.isColSelection()) {
|
|
@@ -2,8 +2,8 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
3
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
4
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
|
+
import { containsHeaderColumn, getColumnsWidths, getRowHeights } from '../../pm-plugins/utils';
|
|
5
6
|
import { TableCssClassName as ClassName } from '../../types';
|
|
6
|
-
import { containsHeaderColumn, getColumnsWidths, getRowHeights } from '../../utils';
|
|
7
7
|
import { ColumnControls } from './ColumnControls';
|
|
8
8
|
import { ColumnDropTargets } from './ColumnDropTargets';
|
|
9
9
|
const TableFloatingColumnControls = ({
|