@atlaskit/editor-plugin-table 8.4.2 → 8.4.4
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 +18 -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 +2 -2
- 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 +5 -5
- 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 +1 -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} +5 -7
- 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 +2 -2
- 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 +6 -5
- 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 +1 -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} +5 -7
- 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 +2 -2
- 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 +6 -5
- 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 +1 -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} +5 -7
- 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/{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-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 +16 -9
- 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 +3 -3
- 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 +15 -7
- 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 +1 -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} +8 -85
- 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}/create.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}/create.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
|
@@ -15,14 +15,14 @@ var _state5 = require("@atlaskit/editor-prosemirror/state");
|
|
|
15
15
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
16
16
|
var _tableMap = require("@atlaskit/editor-tables/table-map");
|
|
17
17
|
var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
18
|
-
var _commands = require("
|
|
19
|
-
var _pluginFactory = require("
|
|
20
|
-
var _pluginFactory2 = require("
|
|
21
|
-
var _pluginFactory3 = require("
|
|
22
|
-
var _transforms = require("
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
18
|
+
var _commands = require("../pm-plugins/commands");
|
|
19
|
+
var _pluginFactory = require("../pm-plugins/drag-and-drop/plugin-factory");
|
|
20
|
+
var _pluginFactory2 = require("../pm-plugins/plugin-factory");
|
|
21
|
+
var _pluginFactory3 = require("../pm-plugins/table-resizing/plugin-factory");
|
|
22
|
+
var _transforms = require("../pm-plugins/transforms");
|
|
23
|
+
var _utils3 = require("../pm-plugins/utils");
|
|
24
|
+
var _getAllowAddColumnCustomStep = require("../pm-plugins/utils/get-allow-add-column-custom-step");
|
|
25
|
+
var _types = require("../types");
|
|
26
26
|
var isFocusingCalendar = function isFocusingCalendar(event) {
|
|
27
27
|
return event instanceof FocusEvent && event.relatedTarget instanceof HTMLElement && event.relatedTarget.getAttribute('aria-label') === 'calendar';
|
|
28
28
|
};
|
|
@@ -33,18 +33,18 @@ var _layoutThreeEqual = _interopRequireDefault(require("@atlaskit/icon/glyph/edi
|
|
|
33
33
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
34
34
|
var _preferences = _interopRequireDefault(require("@atlaskit/icon/glyph/preferences"));
|
|
35
35
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
36
|
-
var _commands = require("
|
|
37
|
-
var _commandsWithAnalytics = require("
|
|
38
|
-
var _pluginFactory = require("
|
|
39
|
-
var _tableResizing = require("
|
|
40
|
-
var _misc = require("
|
|
41
|
-
var _resizeState = require("
|
|
42
|
-
var _tableWidth = require("
|
|
43
|
-
var _transforms = require("
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
36
|
+
var _commands = require("../pm-plugins/commands");
|
|
37
|
+
var _commandsWithAnalytics = require("../pm-plugins/commands/commands-with-analytics");
|
|
38
|
+
var _pluginFactory = require("../pm-plugins/plugin-factory");
|
|
39
|
+
var _tableResizing = require("../pm-plugins/table-resizing");
|
|
40
|
+
var _misc = require("../pm-plugins/table-resizing/utils/misc");
|
|
41
|
+
var _resizeState = require("../pm-plugins/table-resizing/utils/resize-state");
|
|
42
|
+
var _tableWidth = require("../pm-plugins/table-width");
|
|
43
|
+
var _transforms = require("../pm-plugins/transforms");
|
|
44
|
+
var _utils4 = require("../pm-plugins/utils");
|
|
45
|
+
var _alignment = require("../pm-plugins/utils/alignment");
|
|
46
|
+
var _types = require("../types");
|
|
47
|
+
var _FloatingAlignmentButtons = require("./FloatingAlignmentButtons/FloatingAlignmentButtons");
|
|
48
48
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
49
49
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
50
50
|
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; }
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as tablesPlugin } from './
|
|
1
|
+
export { default as tablesPlugin } from './tablePlugin';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
4
|
+
import { getColumnsWidths } from '../pm-plugins/utils';
|
|
4
5
|
import { dropTargetExtendedWidth, dropTargetsZIndex } from '../ui/consts';
|
|
5
6
|
import { ColumnDropTarget } from '../ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget';
|
|
6
|
-
import { getColumnsWidths } from '../utils';
|
|
7
7
|
export const ExternalDropTargets = ({
|
|
8
8
|
editorView,
|
|
9
9
|
node,
|
|
@@ -14,8 +14,7 @@ import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
16
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
|
-
import { autoSizeTable, clearHoverSelection } from '../commands';
|
|
18
|
-
import { handleMouseOut, handleMouseOver, isTableInFocus, withCellTracking } from '../event-handlers';
|
|
17
|
+
import { autoSizeTable, clearHoverSelection } from '../pm-plugins/commands';
|
|
19
18
|
import { autoScrollerFactory } from '../pm-plugins/drag-and-drop/utils';
|
|
20
19
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
21
20
|
import { findStickyHeaderForTable, pluginKey as stickyHeadersPluginKey } from '../pm-plugins/sticky-headers';
|
|
@@ -25,10 +24,11 @@ import { hasTableBeenResized } from '../pm-plugins/table-resizing/utils/colgroup
|
|
|
25
24
|
import { TABLE_EDITOR_MARGIN, TABLE_OFFSET_IN_COMMENT_EDITOR } from '../pm-plugins/table-resizing/utils/consts';
|
|
26
25
|
import { updateControls } from '../pm-plugins/table-resizing/utils/dom';
|
|
27
26
|
import { getScalingPercentForTableWithoutWidth, getTableScalingPercent } from '../pm-plugins/table-resizing/utils/misc';
|
|
27
|
+
import { containsHeaderRow, getAssistiveMessage, isTableNested, isTableNestedInMoreThanOneNode, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows } from '../pm-plugins/utils';
|
|
28
28
|
import { TableCssClassName as ClassName, ShadowEvent } from '../types';
|
|
29
|
+
import { handleMouseOut, handleMouseOver, isTableInFocus, withCellTracking } from '../ui/event-handlers';
|
|
29
30
|
import TableFloatingColumnControls from '../ui/TableFloatingColumnControls';
|
|
30
31
|
import TableFloatingControls from '../ui/TableFloatingControls';
|
|
31
|
-
import { containsHeaderRow, getAssistiveMessage, isTableNested, isTableNestedInMoreThanOneNode, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows } from '../utils';
|
|
32
32
|
import { ExternalDropTargets } from './ExternalDropTargets';
|
|
33
33
|
import { OverflowShadowsObserver } from './OverflowShadowsObserver';
|
|
34
34
|
import { TableContainer } from './TableContainer';
|
|
@@ -4,11 +4,11 @@ import { CHANGE_ALIGNMENT_REASON, INPUT_METHOD } from '@atlaskit/editor-common/a
|
|
|
4
4
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
5
5
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
6
6
|
import { akEditorDefaultLayoutWidth, akEditorGutterPaddingDynamic, akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
7
|
-
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../commands-with-analytics';
|
|
7
|
+
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
|
|
8
8
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
9
9
|
import { TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from '../pm-plugins/table-resizing/utils';
|
|
10
|
+
import { ALIGN_CENTER, ALIGN_START } from '../pm-plugins/utils/alignment';
|
|
10
11
|
import { TableCssClassName as ClassName } from '../types';
|
|
11
|
-
import { ALIGN_CENTER, ALIGN_START } from '../utils/alignment';
|
|
12
12
|
import { getAlignmentStyle } from './table-container-styles';
|
|
13
13
|
import { TableResizer } from './TableResizer';
|
|
14
14
|
const InnerContainer = /*#__PURE__*/forwardRef(({
|
|
@@ -13,16 +13,16 @@ import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
|
13
13
|
import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
-
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../commands-with-analytics';
|
|
17
|
-
import { updateWidthToWidest } from '../commands/misc';
|
|
16
|
+
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
|
|
17
|
+
import { updateWidthToWidest } from '../pm-plugins/commands/misc';
|
|
18
18
|
import { META_KEYS } from '../pm-plugins/table-analytics';
|
|
19
19
|
import { COLUMN_MIN_WIDTH, getColgroupChildrenLength, previewScaleTable, scaleTable, TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from '../pm-plugins/table-resizing/utils';
|
|
20
20
|
import { pluginKey as tableWidthPluginKey } from '../pm-plugins/table-width';
|
|
21
|
+
import { ALIGN_CENTER, ALIGN_START, normaliseAlignment, shouldChangeAlignmentToCenterResized } from '../pm-plugins/utils/alignment';
|
|
22
|
+
import { generateResizedPayload, generateResizeFrameRatePayloads, useMeasureFramerate } from '../pm-plugins/utils/analytics';
|
|
23
|
+
import { defaultGuidelines, defaultGuidelinesForPreserveTable, PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET } from '../pm-plugins/utils/guidelines';
|
|
24
|
+
import { defaultSnappingWidths, defaultTablePreserveSnappingWidths, findClosestSnap, PRESERVE_TABLE_SNAPPING_LENGTH_OFFSET } from '../pm-plugins/utils/snapping';
|
|
21
25
|
import { TABLE_GUIDELINE_VISIBLE_ADJUSTMENT, TABLE_HIGHLIGHT_GAP, TABLE_HIGHLIGHT_TOLERANCE, TABLE_SNAP_GAP } from '../ui/consts';
|
|
22
|
-
import { ALIGN_CENTER, ALIGN_START, normaliseAlignment, shouldChangeAlignmentToCenterResized } from '../utils/alignment';
|
|
23
|
-
import { generateResizedPayload, generateResizeFrameRatePayloads, useMeasureFramerate } from '../utils/analytics';
|
|
24
|
-
import { defaultGuidelines, defaultGuidelinesForPreserveTable, PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET } from '../utils/guidelines';
|
|
25
|
-
import { defaultSnappingWidths, defaultTablePreserveSnappingWidths, findClosestSnap, PRESERVE_TABLE_SNAPPING_LENGTH_OFFSET } from '../utils/snapping';
|
|
26
26
|
const RESIZE_STEP_VALUE = 10;
|
|
27
27
|
const handles = {
|
|
28
28
|
right: true
|
|
@@ -7,10 +7,10 @@ import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
|
7
7
|
import { pluginKey as tablePluginKey } from '../pm-plugins/plugin-key';
|
|
8
8
|
import { updateStickyState } from '../pm-plugins/sticky-headers/commands';
|
|
9
9
|
import { syncStickyRowToTable, updateStickyMargins as updateTableMargin } from '../pm-plugins/table-resizing/utils/dom';
|
|
10
|
+
import { getTop, getTree } from '../pm-plugins/utils/dom';
|
|
11
|
+
import { supportedHeaderRow } from '../pm-plugins/utils/nodes';
|
|
10
12
|
import { TableCssClassName as ClassName, TableCssClassName } from '../types';
|
|
11
13
|
import { stickyHeaderBorderBottomWidth, stickyRowOffsetTop, tableControlsSpacing, tableScrollbarOffset } from '../ui/consts';
|
|
12
|
-
import { getTop, getTree } from '../utils/dom';
|
|
13
|
-
import { supportedHeaderRow } from '../utils/nodes';
|
|
14
14
|
import TableNodeView from './TableNodeViewBase';
|
|
15
15
|
// limit scroll event calls
|
|
16
16
|
const HEADER_ROW_SCROLL_THROTTLE_TIMEOUT = 200;
|
|
@@ -7,14 +7,14 @@ import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
|
7
7
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
|
-
import { pluginConfig as getPluginConfig } from '../create-plugin-config';
|
|
10
|
+
import { pluginConfig as getPluginConfig } from '../pm-plugins/create-plugin-config';
|
|
11
11
|
import { pluginKey as tableDragAndDropPluginKey } from '../pm-plugins/drag-and-drop';
|
|
12
12
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
13
13
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
14
14
|
import { pluginKey as tableResizingPluginKey } from '../pm-plugins/table-resizing';
|
|
15
15
|
import { generateColgroup } from '../pm-plugins/table-resizing/utils';
|
|
16
16
|
import { pluginKey as tableWidthPluginKey } from '../pm-plugins/table-width';
|
|
17
|
-
import { isTableNested } from '../utils';
|
|
17
|
+
import { isTableNested } from '../pm-plugins/utils';
|
|
18
18
|
import TableComponent from './TableComponent';
|
|
19
19
|
import { TableComponentWithSharedState } from './TableComponentWithSharedState';
|
|
20
20
|
const tableAttributes = node => {
|
|
@@ -4,9 +4,9 @@ import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
4
4
|
import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { generateColgroup, getResizerMinWidth } from '../pm-plugins/table-resizing/utils/colgroup';
|
|
8
|
+
import { TABLE_MAX_WIDTH } from '../pm-plugins/table-resizing/utils/consts';
|
|
9
|
+
import { getAlignmentStyle } from './table-container-styles';
|
|
10
10
|
export const tableNodeSpecWithFixedToDOM = config => {
|
|
11
11
|
const tableNode = config.isNestingSupported ? tableWithNestedTable : table;
|
|
12
12
|
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ACTION_SUBJECT, EVENT_TYPE, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import { countCellsInSlice, getTableElementMoveTypeBySlice, getTableSelectionType, isInsideFirstCellOfRowOrColumn } from '
|
|
3
|
+
import { countCellsInSlice, getTableElementMoveTypeBySlice, getTableSelectionType, isInsideFirstCellOfRowOrColumn } from '../commands/misc';
|
|
4
4
|
import { resetRowOrColumnMovedTransform, updateRowOrColumnMoved } from './commands';
|
|
5
5
|
import { createPluginState } from './plugin-factory';
|
|
6
6
|
import { pluginKey } from './plugin-key';
|
|
@@ -2,15 +2,15 @@ import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
|
2
2
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables';
|
|
4
4
|
import { findCellClosestToPos, findCellRectClosestToPos, findTableClosestToPos, getSelectionRect, isSelectionType, nextCell } from '@atlaskit/editor-tables/utils';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
5
|
+
import { TableDecorations } from '../../types';
|
|
6
|
+
import { getDecorations } from '../decorations/plugin';
|
|
7
|
+
import { buildColumnResizingDecorations, clearColumnResizingDecorations } from '../decorations/utils';
|
|
8
|
+
import { createCommand, getPluginState } from '../plugin-factory';
|
|
9
|
+
import { getPluginState as getTableResizingPluginState, createCommand as tableResizingPluginCreateCommand } from '../table-resizing/plugin-factory';
|
|
10
|
+
import { pluginKey as tableResizingPK } from '../table-resizing/plugin-key';
|
|
11
|
+
import { currentColWidth, getResizeState, getTableMaxWidth, resizeColumn, updateControls } from '../table-resizing/utils';
|
|
12
|
+
import { getScalingPercentForTableWithoutWidth, getTableScalingPercent } from '../table-resizing/utils/misc';
|
|
12
13
|
import { updateColumnWidths } from '../transforms';
|
|
13
|
-
import { TableDecorations } from '../types';
|
|
14
14
|
import { createColumnLineResize, getSelectedColumnIndexes, updateDecorations } from '../utils';
|
|
15
15
|
const getTablePluginCommand = (actionPayload, originalTr) => {
|
|
16
16
|
return createCommand(() => actionPayload, tr => (originalTr || tr).setMeta('addToHistory', false));
|
package/dist/es2019/{commands-with-analytics.js → pm-plugins/commands/commands-with-analytics.js}
RENAMED
|
@@ -4,21 +4,21 @@ import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
|
4
4
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { findCellClosestToPos, findCellRectClosestToPos, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
7
|
+
import { getPluginState } from '../plugin-factory';
|
|
8
|
+
import { distributeColumnsWidths } from '../table-resizing/commands';
|
|
9
|
+
import { deleteRows, mergeCells } from '../transforms';
|
|
10
|
+
import { checkIfNumberColumnEnabled, getSelectedCellInfo, getSelectedTableInfo } from '../utils';
|
|
11
|
+
import { withEditorAnalyticsAPI } from '../utils/analytics';
|
|
12
|
+
import { clearMultipleCells } from './clear';
|
|
13
|
+
import { wrapTableInExpand } from './collapse';
|
|
14
|
+
import { changeColumnWidthByStep } from './column-resize';
|
|
15
|
+
import { deleteColumnsCommand } from './delete';
|
|
16
|
+
import { setTableDisplayMode } from './display-mode';
|
|
17
|
+
import { insertColumn, insertRow } from './insert';
|
|
18
|
+
import { deleteTable, deleteTableIfSelected, getTableSelectionType, setMultipleCellAttrs, setTableAlignment, setTableAlignmentWithTableContentWithPos } from './misc';
|
|
19
|
+
import { sortByColumn } from './sort';
|
|
20
|
+
import { splitCell } from './split-cell';
|
|
21
|
+
import { toggleHeaderColumn, toggleHeaderRow, toggleNumberColumn } from './toggle';
|
|
22
22
|
|
|
23
23
|
// #region Analytics wrappers
|
|
24
24
|
export const emptyMultipleCellsWithAnalytics = editorAnalyticsAPI => (inputMethod, targetCellPosition) => withEditorAnalyticsAPI(({
|
|
@@ -4,9 +4,9 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { goToNextCell as baseGotoNextCell, findTable } from '@atlaskit/editor-tables/utils';
|
|
7
|
-
import {
|
|
8
|
-
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
7
|
+
import { getPluginState } from '../plugin-factory';
|
|
9
8
|
import { stopKeyboardColumnResizing } from './column-resize';
|
|
9
|
+
import { insertRowWithAnalytics } from './commands-with-analytics';
|
|
10
10
|
const TAB_FORWARD_DIRECTION = 1;
|
|
11
11
|
const TAB_BACKWARD_DIRECTION = -1;
|
|
12
12
|
export const goToNextCell = (editorAnalyticsAPI, ariaNotify, getIntl) => direction => (state, dispatch, view) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// #region Imports
|
|
2
2
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
3
3
|
import { findTable, getCellsInColumn, getCellsInRow } from '@atlaskit/editor-tables/utils';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { TableDecorations } from '../../types';
|
|
5
|
+
import { createCommand, getPluginState } from '../plugin-factory';
|
|
6
6
|
import { createCellHoverDecoration, createColumnLineResize, createControlsHoverDecoration, getMergedCellsPositions, updatePluginStateDecorations } from '../utils';
|
|
7
7
|
const makeArray = n => Array.from(Array(n).keys());
|
|
8
8
|
export const hoverMergedCells = () => createCommand(state => {
|
|
@@ -8,8 +8,8 @@ import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
|
8
8
|
import { addColumnAt as addColumnAtPMUtils, addRowAt, findTable, selectedRect } from '@atlaskit/editor-tables/utils';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
|
-
import { updateRowOrColumnMovedTransform } from '../
|
|
12
|
-
import { META_KEYS } from '../
|
|
11
|
+
import { updateRowOrColumnMovedTransform } from '../analytics/commands';
|
|
12
|
+
import { META_KEYS } from '../table-analytics';
|
|
13
13
|
import { rescaleColumns } from '../transforms/column-width';
|
|
14
14
|
import { checkIfHeaderRowEnabled, copyPreviousRow, createTableWithWidth } from '../utils';
|
|
15
15
|
import { getAllowAddColumnCustomStep } from '../utils/get-allow-add-column-custom-step';
|
|
@@ -5,11 +5,11 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
5
5
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
6
6
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
7
7
|
import { findCellClosestToPos, findTable, getCellsInColumn, getCellsInRow, getSelectionRect, isSelectionType, isTableSelected, removeTable, selectColumns as selectColumnsTransform, selectColumn as selectColumnTransform, selectionCell, selectRows as selectRowsTransform, selectRow as selectRowTransform, setCellAttrs } from '@atlaskit/editor-tables/utils';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { TableCssClassName as ClassName, TableDecorations } from '../../types';
|
|
9
|
+
import { getDecorations } from '../decorations/plugin';
|
|
10
|
+
import { buildColumnResizingDecorations, clearColumnResizingDecorations } from '../decorations/utils';
|
|
11
|
+
import { createCommand, getPluginState } from '../plugin-factory';
|
|
11
12
|
import { fixAutoSizedTable } from '../transforms';
|
|
12
|
-
import { TableCssClassName as ClassName, TableDecorations } from '../types';
|
|
13
13
|
import { createColumnControlsDecoration, createColumnSelectedDecoration } from '../utils/decoration';
|
|
14
14
|
import { checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, isIsolating } from '../utils/nodes';
|
|
15
15
|
import { updatePluginStateDecorations } from '../utils/update-plugin-state-decorations';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { removeConnectedNodes } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { createCommand } from '../
|
|
2
|
+
import { createCommand } from '../plugin-factory';
|
|
3
3
|
export const removeDescendantNodes = sourceNode => createCommand({
|
|
4
4
|
type: 'UPDATE_STATE',
|
|
5
5
|
data: {
|
|
@@ -4,9 +4,9 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
4
4
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { findTable, isColumnSelected, isRowSelected, isTableSelected, selectedRect } from '@atlaskit/editor-tables/utils';
|
|
7
|
-
import {
|
|
8
|
-
import { getPluginState } from '../
|
|
9
|
-
import {
|
|
7
|
+
import { getClosestSelectionRect } from '../../ui/toolbar';
|
|
8
|
+
import { getPluginState } from '../plugin-factory';
|
|
9
|
+
import { selectColumn, selectRow } from './misc';
|
|
10
10
|
var TableSelectionDirection = /*#__PURE__*/function (TableSelectionDirection) {
|
|
11
11
|
TableSelectionDirection["TopToBottom"] = "TopToBottom";
|
|
12
12
|
TableSelectionDirection["BottomToTop"] = "BottomToTop";
|
|
@@ -3,7 +3,7 @@ import { createCompareNodes } from '@atlaskit/editor-common/utils';
|
|
|
3
3
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
5
|
import { convertArrayOfRowsToTableNode, convertTableNodeToArrayOfRows, findCellRectClosestToPos, findTable, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
6
|
-
import { createCommand, getPluginState } from '../
|
|
6
|
+
import { createCommand, getPluginState } from '../plugin-factory';
|
|
7
7
|
const createGetInlineCardTextFromStore = attrs => {
|
|
8
8
|
const {
|
|
9
9
|
data
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { splitCellWithType } from '@atlaskit/editor-tables/utils';
|
|
2
|
-
import { getPluginState } from '../
|
|
2
|
+
import { getPluginState } from '../plugin-factory';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* We need to split cell keeping the right type of cell given current table configuration.
|
|
5
6
|
* We are using editor-tables splitCellWithType that allows you to choose what cell type should be.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { TABLE_OVERFLOW_CHANGE_TRIGGER } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { findTable, toggleHeader } from '@atlaskit/editor-tables/utils';
|
|
5
|
-
import { createCommand } from '../
|
|
6
|
-
import { META_KEYS } from '../
|
|
5
|
+
import { createCommand } from '../plugin-factory';
|
|
6
|
+
import { META_KEYS } from '../table-analytics';
|
|
7
7
|
//#endregion
|
|
8
8
|
|
|
9
9
|
// #region Utils
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
5
5
|
import { TableDecorations } from '../../../types';
|
|
6
|
-
import { createColumnControlsDecoration, createColumnSelectedDecoration, findColumnControlSelectedDecoration, findControlsHoverDecoration, updateDecorations } from '
|
|
6
|
+
import { createColumnControlsDecoration, createColumnSelectedDecoration, findColumnControlSelectedDecoration, findControlsHoverDecoration, updateDecorations } from '../../utils/decoration';
|
|
7
7
|
import { composeDecorations } from './compose-decorations';
|
|
8
8
|
const isColumnSelected = tr => tr.selection instanceof CellSelection && tr.selection.isColSelection();
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableDecorations } from '../../../types';
|
|
2
|
-
import { createResizeHandleDecoration, updateDecorations } from '
|
|
2
|
+
import { createResizeHandleDecoration, updateDecorations } from '../../utils/decoration';
|
|
3
3
|
import { composeDecorations } from './compose-decorations';
|
|
4
4
|
const emptyDecorations = [[], []];
|
|
5
5
|
const updateColumnResizeHandle = columnResizesDecorations => ({
|
|
@@ -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';
|