@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
|
@@ -22,9 +22,9 @@ import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
|
22
22
|
import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
23
23
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
24
|
|
|
25
|
-
import type { Cell, CellColumnPositioning } from '
|
|
26
|
-
import { TableCssClassName as ClassName, TableDecorations } from '
|
|
27
|
-
import { ColumnResizeWidget } from '
|
|
25
|
+
import type { Cell, CellColumnPositioning } from '../../types';
|
|
26
|
+
import { TableCssClassName as ClassName, TableDecorations } from '../../types';
|
|
27
|
+
import { ColumnResizeWidget } from '../../ui/ColumnResizeWidget';
|
|
28
28
|
|
|
29
29
|
const filterDecorationByKey = (key: TableDecorations, decorationSet: DecorationSet): Decoration[] =>
|
|
30
30
|
decorationSet.find(undefined, undefined, (spec) => spec.key.indexOf(key) > -1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { closestElement, containsClassName } from '@atlaskit/editor-common/utils';
|
|
2
2
|
|
|
3
|
-
import { TableCssClassName as ClassName } from '
|
|
3
|
+
import { TableCssClassName as ClassName } from '../../types';
|
|
4
4
|
|
|
5
5
|
export const isCell = (node: HTMLElement | null): boolean => {
|
|
6
6
|
return Boolean(
|
|
@@ -50,6 +50,9 @@ import HipchatChevronDoubleDownIcon from '@atlaskit/icon/glyph/hipchat/chevron-d
|
|
|
50
50
|
import HipchatChevronDoubleUpIcon from '@atlaskit/icon/glyph/hipchat/chevron-double-up';
|
|
51
51
|
import type { NewIconProps } from '@atlaskit/icon/types';
|
|
52
52
|
|
|
53
|
+
import type { DraggableData, DraggableType, PluginInjectionAPI, TableDirection } from '../../types';
|
|
54
|
+
import { AddColLeftIcon, AddColRightIcon, AddRowAboveIcon, AddRowBelowIcon } from '../../ui/icons';
|
|
55
|
+
import { getClosestSelectionRect } from '../../ui/toolbar';
|
|
53
56
|
import {
|
|
54
57
|
deleteColumnsWithAnalytics,
|
|
55
58
|
deleteRowsWithAnalytics,
|
|
@@ -58,13 +61,10 @@ import {
|
|
|
58
61
|
insertColumnWithAnalytics,
|
|
59
62
|
insertRowWithAnalytics,
|
|
60
63
|
sortColumnWithAnalytics,
|
|
61
|
-
} from '../commands-with-analytics';
|
|
62
|
-
import { moveSourceWithAnalytics } from '../
|
|
63
|
-
import { getPluginState as getTablePluginState } from '../
|
|
64
|
-
import { getNewResizeStateFromSelectedColumns } from '../
|
|
65
|
-
import { getClosestSelectionRect } from '../toolbar';
|
|
66
|
-
import type { DraggableData, DraggableType, PluginInjectionAPI, TableDirection } from '../types';
|
|
67
|
-
import { AddColLeftIcon, AddColRightIcon, AddRowAboveIcon, AddRowBelowIcon } from '../ui/icons';
|
|
64
|
+
} from '../commands/commands-with-analytics';
|
|
65
|
+
import { moveSourceWithAnalytics } from '../drag-and-drop/commands-with-analytics';
|
|
66
|
+
import { getPluginState as getTablePluginState } from '../plugin-factory';
|
|
67
|
+
import { getNewResizeStateFromSelectedColumns } from '../table-resizing/utils/resize-state';
|
|
68
68
|
|
|
69
69
|
import {
|
|
70
70
|
hasMergedCellsInSelection,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
|
|
3
|
-
import { getPluginState } from '../
|
|
3
|
+
import { getPluginState } from '../plugin-factory';
|
|
4
4
|
|
|
5
5
|
export function getAllowAddColumnCustomStep(state: EditorState): boolean {
|
|
6
6
|
const tablePluginState = getPluginState(state);
|
|
@@ -4,7 +4,7 @@ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { flatten } from '@atlaskit/editor-prosemirror/utils';
|
|
6
6
|
|
|
7
|
-
import { getPluginState } from '../
|
|
7
|
+
import { getPluginState } from '../plugin-factory';
|
|
8
8
|
|
|
9
9
|
// lifts up the content of each cell, returning an array of nodes
|
|
10
10
|
export const unwrapContentFromTable = (maybeTable: PMNode): PMNode | PMNode[] => {
|
|
@@ -5,8 +5,8 @@ import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
|
5
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { findTable, getSelectionRect, isRowSelected } from '@atlaskit/editor-tables/utils';
|
|
7
7
|
|
|
8
|
-
import { TableCssClassName as ClassName } from '
|
|
9
|
-
import { tableDeleteButtonSize } from '
|
|
8
|
+
import { TableCssClassName as ClassName } from '../../types';
|
|
9
|
+
import { tableDeleteButtonSize } from '../../ui/consts';
|
|
10
10
|
|
|
11
11
|
export interface RowParams {
|
|
12
12
|
startIndex: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
4
|
+
import type { TableDecorations } from '../../types';
|
|
5
|
+
import { getDecorations } from '../decorations/plugin';
|
|
6
6
|
|
|
7
7
|
import { updateDecorations } from './decoration';
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
|
18
18
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
20
|
|
|
21
|
-
import type tablePlugin from '../../
|
|
21
|
+
import type tablePlugin from '../../tablePlugin';
|
|
22
22
|
import { SortingIconWrapper } from '../../ui/icons/SortingIconWrapper';
|
|
23
23
|
import { getPluginState } from '../plugin-factory';
|
|
24
24
|
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
tableRow,
|
|
9
9
|
tableRowWithNestedTable,
|
|
10
10
|
} from '@atlaskit/adf-schema';
|
|
11
|
-
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
12
11
|
import {
|
|
13
12
|
ACTION,
|
|
14
13
|
ACTION_SUBJECT,
|
|
@@ -28,25 +27,8 @@ import {
|
|
|
28
27
|
} from '@atlaskit/editor-common/nesting';
|
|
29
28
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
30
29
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
31
|
-
import type {
|
|
32
|
-
Command,
|
|
33
|
-
EditorCommand,
|
|
34
|
-
EditorPlugin,
|
|
35
|
-
GetEditorContainerWidth,
|
|
36
|
-
GetEditorFeatureFlags,
|
|
37
|
-
NextEditorPlugin,
|
|
38
|
-
OptionalPlugin,
|
|
39
|
-
} from '@atlaskit/editor-common/types';
|
|
30
|
+
import type { Command, EditorPlugin, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
40
31
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
41
|
-
import type { AccessibilityUtilsPlugin } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
42
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
43
|
-
import type { BatchAttributeUpdatesPlugin } from '@atlaskit/editor-plugin-batch-attribute-updates';
|
|
44
|
-
import type { ContentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
45
|
-
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
46
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
47
|
-
import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
48
|
-
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
49
|
-
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
50
32
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
51
33
|
import { hasParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
52
34
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -55,10 +37,11 @@ import { tableEditing } from '@atlaskit/editor-tables/pm-plugins';
|
|
|
55
37
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
56
38
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
57
39
|
|
|
58
|
-
import {
|
|
59
|
-
import { pluginConfig } from './create-plugin-config';
|
|
40
|
+
import { tableNodeSpecWithFixedToDOM } from './nodeviews/toDOM';
|
|
60
41
|
import { createPlugin as createTableAnalyticsPlugin } from './pm-plugins/analytics/plugin';
|
|
61
42
|
import { pluginKey as tableAnalyticsPluginKey } from './pm-plugins/analytics/plugin-key';
|
|
43
|
+
import { insertTableWithNestingSupport, insertTableWithSize } from './pm-plugins/commands/insert';
|
|
44
|
+
import { pluginConfig } from './pm-plugins/create-plugin-config';
|
|
62
45
|
import { createPlugin as createDecorationsPlugin } from './pm-plugins/decorations/plugin';
|
|
63
46
|
import {
|
|
64
47
|
createPlugin as createDragAndDropPlugin,
|
|
@@ -87,10 +70,10 @@ import {
|
|
|
87
70
|
pluginKey as tableWidthPluginKey,
|
|
88
71
|
} from './pm-plugins/table-width';
|
|
89
72
|
import { createPlugin as createTableWidthInCommentFixPlugin } from './pm-plugins/table-width-in-comment-fix';
|
|
73
|
+
import { createTableWithWidth } from './pm-plugins/utils';
|
|
90
74
|
import { createPlugin as createViewModeSortPlugin } from './pm-plugins/view-mode-sort';
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import type { ColumnResizingPluginState, PluginConfig, TableSharedState } from './types';
|
|
75
|
+
import type { TablePlugin, TablePluginOptions } from './tablePluginType';
|
|
76
|
+
import type { ColumnResizingPluginState } from './types';
|
|
94
77
|
import FloatingContextualButton from './ui/FloatingContextualButton';
|
|
95
78
|
import FloatingContextualMenu from './ui/FloatingContextualMenu';
|
|
96
79
|
import FloatingDeleteButton from './ui/FloatingDeleteButton';
|
|
@@ -99,70 +82,10 @@ import FloatingInsertButton from './ui/FloatingInsertButton';
|
|
|
99
82
|
import { FloatingToolbarLabel } from './ui/FloatingToolbarLabel/FloatingToolbarLabel';
|
|
100
83
|
import { GlobalStylesWrapper } from './ui/global-styles';
|
|
101
84
|
import { FullWidthDisplay } from './ui/TableFullWidthLabel';
|
|
102
|
-
import {
|
|
103
|
-
|
|
104
|
-
export interface TablePluginOptions {
|
|
105
|
-
tableOptions: PluginConfig;
|
|
106
|
-
// this option will eventually be removed, and enabled by default
|
|
107
|
-
dragAndDropEnabled?: boolean;
|
|
108
|
-
// this option will eventually be removed, and enabled by default
|
|
109
|
-
isTableScalingEnabled?: boolean;
|
|
110
|
-
allowContextualMenu?: boolean;
|
|
111
|
-
// TODO these two need to be rethought
|
|
112
|
-
fullWidthEnabled?: boolean;
|
|
113
|
-
wasFullWidthEnabled?: boolean;
|
|
114
|
-
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
115
|
-
isNewColumnResizingEnabled?: boolean;
|
|
116
|
-
isCommentEditor?: boolean;
|
|
117
|
-
isChromelessEditor?: boolean;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
type InsertTableAction = (analyticsPayload: AnalyticsEventPayload) => Command;
|
|
85
|
+
import { getToolbarConfig } from './ui/toolbar';
|
|
121
86
|
|
|
122
87
|
const defaultGetEditorFeatureFlags = () => ({});
|
|
123
88
|
|
|
124
|
-
// TODO: duplicating type instead of importing media plugin causing a circular dependency
|
|
125
|
-
type MediaPlugin = NextEditorPlugin<
|
|
126
|
-
'media',
|
|
127
|
-
{
|
|
128
|
-
pluginConfiguration: any;
|
|
129
|
-
dependencies: any;
|
|
130
|
-
sharedState: any;
|
|
131
|
-
actions: any;
|
|
132
|
-
commands: any;
|
|
133
|
-
}
|
|
134
|
-
>;
|
|
135
|
-
|
|
136
|
-
export type TablePlugin = NextEditorPlugin<
|
|
137
|
-
'table',
|
|
138
|
-
{
|
|
139
|
-
pluginConfiguration: TablePluginOptions | undefined;
|
|
140
|
-
actions: {
|
|
141
|
-
insertTable: InsertTableAction;
|
|
142
|
-
};
|
|
143
|
-
sharedState?: TableSharedState;
|
|
144
|
-
commands: {
|
|
145
|
-
insertTableWithSize: (
|
|
146
|
-
rowsCount: number,
|
|
147
|
-
colsCount: number,
|
|
148
|
-
inputMethod?: INPUT_METHOD.PICKER,
|
|
149
|
-
) => EditorCommand;
|
|
150
|
-
};
|
|
151
|
-
dependencies: [
|
|
152
|
-
AnalyticsPlugin,
|
|
153
|
-
ContentInsertionPlugin,
|
|
154
|
-
WidthPlugin,
|
|
155
|
-
GuidelinePlugin,
|
|
156
|
-
SelectionPlugin,
|
|
157
|
-
OptionalPlugin<BatchAttributeUpdatesPlugin>,
|
|
158
|
-
OptionalPlugin<AccessibilityUtilsPlugin>,
|
|
159
|
-
OptionalPlugin<MediaPlugin>,
|
|
160
|
-
OptionalPlugin<EditorViewModePlugin>,
|
|
161
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
162
|
-
];
|
|
163
|
-
}
|
|
164
|
-
>;
|
|
165
|
-
|
|
166
89
|
/**
|
|
167
90
|
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
168
91
|
* from `@atlaskit/editor-core`.
|
|
@@ -786,15 +709,16 @@ const tablesPlugin: TablePlugin = ({ config: options, api }) => {
|
|
|
786
709
|
action(insert, state) {
|
|
787
710
|
// see comment on tablesPlugin.getSharedState on usage
|
|
788
711
|
const tableState = api?.table?.sharedState.currentState();
|
|
789
|
-
|
|
790
|
-
const tableNode = createTableWithWidth({
|
|
712
|
+
const tableNodeProps = {
|
|
791
713
|
isTableScalingEnabled: options?.isTableScalingEnabled,
|
|
792
714
|
isTableAlignmentEnabled: options?.tableOptions.allowTableAlignment,
|
|
793
715
|
isFullWidthModeEnabled: tableState?.isFullWidthModeEnabled,
|
|
794
716
|
isCommentEditor: options?.isCommentEditor,
|
|
795
717
|
isChromelessEditor: options?.isChromelessEditor,
|
|
796
718
|
isTableResizingEnabled: options?.tableOptions.allowTableResizing,
|
|
797
|
-
}
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
let tableNode = createTableWithWidth(tableNodeProps)(state.schema);
|
|
798
722
|
|
|
799
723
|
let { tr } = state;
|
|
800
724
|
// If the cursor is inside a table
|
|
@@ -815,6 +739,10 @@ const tablesPlugin: TablePlugin = ({ config: options, api }) => {
|
|
|
815
739
|
tr.scrollIntoView();
|
|
816
740
|
} else {
|
|
817
741
|
// Table can be nested in parent table
|
|
742
|
+
tableNode = createTableWithWidth({
|
|
743
|
+
...tableNodeProps,
|
|
744
|
+
isNestedTable: true,
|
|
745
|
+
})(state.schema);
|
|
818
746
|
tr = insert(tableNode);
|
|
819
747
|
}
|
|
820
748
|
} else {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type {
|
|
3
|
+
Command,
|
|
4
|
+
EditorCommand,
|
|
5
|
+
GetEditorFeatureFlags,
|
|
6
|
+
NextEditorPlugin,
|
|
7
|
+
OptionalPlugin,
|
|
8
|
+
} from '@atlaskit/editor-common/types';
|
|
9
|
+
import type { AccessibilityUtilsPlugin } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
10
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
11
|
+
import type { BatchAttributeUpdatesPlugin } from '@atlaskit/editor-plugin-batch-attribute-updates';
|
|
12
|
+
import type { ContentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
13
|
+
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
14
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
15
|
+
import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
16
|
+
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
17
|
+
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
18
|
+
|
|
19
|
+
import type { PluginConfig, TableSharedState } from './types';
|
|
20
|
+
|
|
21
|
+
export interface TablePluginOptions {
|
|
22
|
+
tableOptions: PluginConfig;
|
|
23
|
+
// this option will eventually be removed, and enabled by default
|
|
24
|
+
dragAndDropEnabled?: boolean;
|
|
25
|
+
// this option will eventually be removed, and enabled by default
|
|
26
|
+
isTableScalingEnabled?: boolean;
|
|
27
|
+
allowContextualMenu?: boolean;
|
|
28
|
+
// TODO these two need to be rethought
|
|
29
|
+
fullWidthEnabled?: boolean;
|
|
30
|
+
wasFullWidthEnabled?: boolean;
|
|
31
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
32
|
+
isNewColumnResizingEnabled?: boolean;
|
|
33
|
+
isCommentEditor?: boolean;
|
|
34
|
+
isChromelessEditor?: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type InsertTableAction = (analyticsPayload: AnalyticsEventPayload) => Command;
|
|
38
|
+
|
|
39
|
+
// TODO: duplicating type instead of importing media plugin causing a circular dependency
|
|
40
|
+
type MediaPlugin = NextEditorPlugin<
|
|
41
|
+
'media',
|
|
42
|
+
{
|
|
43
|
+
pluginConfiguration: any;
|
|
44
|
+
dependencies: any;
|
|
45
|
+
sharedState: any;
|
|
46
|
+
actions: any;
|
|
47
|
+
commands: any;
|
|
48
|
+
}
|
|
49
|
+
>;
|
|
50
|
+
|
|
51
|
+
export type TablePlugin = NextEditorPlugin<
|
|
52
|
+
'table',
|
|
53
|
+
{
|
|
54
|
+
pluginConfiguration: TablePluginOptions | undefined;
|
|
55
|
+
actions: {
|
|
56
|
+
insertTable: InsertTableAction;
|
|
57
|
+
};
|
|
58
|
+
sharedState?: TableSharedState;
|
|
59
|
+
commands: {
|
|
60
|
+
insertTableWithSize: (
|
|
61
|
+
rowsCount: number,
|
|
62
|
+
colsCount: number,
|
|
63
|
+
inputMethod?: INPUT_METHOD.PICKER,
|
|
64
|
+
) => EditorCommand;
|
|
65
|
+
};
|
|
66
|
+
dependencies: [
|
|
67
|
+
AnalyticsPlugin,
|
|
68
|
+
ContentInsertionPlugin,
|
|
69
|
+
WidthPlugin,
|
|
70
|
+
GuidelinePlugin,
|
|
71
|
+
SelectionPlugin,
|
|
72
|
+
OptionalPlugin<BatchAttributeUpdatesPlugin>,
|
|
73
|
+
OptionalPlugin<AccessibilityUtilsPlugin>,
|
|
74
|
+
OptionalPlugin<MediaPlugin>,
|
|
75
|
+
OptionalPlugin<EditorViewModePlugin>,
|
|
76
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
>;
|
|
@@ -12,7 +12,7 @@ import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
|
12
12
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
13
13
|
import type { Edge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
14
14
|
|
|
15
|
-
import type { TablePlugin } from '
|
|
15
|
+
import type { TablePlugin } from '../tablePluginType';
|
|
16
16
|
|
|
17
17
|
export const RESIZE_HANDLE_AREA_DECORATION_GAP = 30;
|
|
18
18
|
export type RowInsertPosition = 'TOP' | 'BOTTOM';
|
|
@@ -18,9 +18,9 @@ import { token } from '@atlaskit/tokens';
|
|
|
18
18
|
import { getPluginState as getDnDPluginState } from '../../pm-plugins/drag-and-drop/plugin-factory';
|
|
19
19
|
import type { TriggerType } from '../../pm-plugins/drag-and-drop/types';
|
|
20
20
|
import { getPluginState } from '../../pm-plugins/plugin-factory';
|
|
21
|
+
import { findDuplicatePosition, hasMergedCellsInSelection } from '../../pm-plugins/utils';
|
|
21
22
|
import { TableCssClassName as ClassName } from '../../types';
|
|
22
23
|
import type { CellHoverMeta, TableDirection } from '../../types';
|
|
23
|
-
import { findDuplicatePosition, hasMergedCellsInSelection } from '../../utils';
|
|
24
24
|
import { dragTableInsertColumnButtonSize } from '../consts';
|
|
25
25
|
import { DragPreview } from '../DragPreview';
|
|
26
26
|
|
|
@@ -22,7 +22,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
22
22
|
import { akEditorSmallZIndex } from '@atlaskit/editor-shared-styles';
|
|
23
23
|
import ExpandIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
24
24
|
|
|
25
|
-
import { toggleContextualMenu } from '../../commands';
|
|
25
|
+
import { toggleContextualMenu } from '../../pm-plugins/commands';
|
|
26
26
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
27
27
|
import { TableCssClassName as ClassName } from '../../types';
|
|
28
28
|
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
hoverRows,
|
|
63
63
|
setFocusToCellMenu,
|
|
64
64
|
toggleContextualMenu,
|
|
65
|
-
} from '../../commands';
|
|
65
|
+
} from '../../pm-plugins/commands';
|
|
66
66
|
import {
|
|
67
67
|
deleteColumnsWithAnalytics,
|
|
68
68
|
deleteRowsWithAnalytics,
|
|
@@ -74,18 +74,18 @@ import {
|
|
|
74
74
|
setColorWithAnalytics,
|
|
75
75
|
sortColumnWithAnalytics,
|
|
76
76
|
splitCellWithAnalytics,
|
|
77
|
-
} from '../../commands-with-analytics';
|
|
77
|
+
} from '../../pm-plugins/commands/commands-with-analytics';
|
|
78
78
|
import { getPluginState } from '../../pm-plugins/plugin-factory';
|
|
79
79
|
import { pluginKey as tablePluginKey } from '../../pm-plugins/plugin-key';
|
|
80
80
|
import { getNewResizeStateFromSelectedColumns } from '../../pm-plugins/table-resizing/utils/resize-state';
|
|
81
|
-
import { canMergeCells } from '../../transforms';
|
|
82
|
-
import { TableCssClassName as ClassName } from '../../types';
|
|
83
|
-
import type { PluginInjectionAPI } from '../../types';
|
|
81
|
+
import { canMergeCells } from '../../pm-plugins/transforms';
|
|
84
82
|
import {
|
|
85
83
|
getMergedCellsPositions,
|
|
86
84
|
getSelectedColumnIndexes,
|
|
87
85
|
getSelectedRowIndexes,
|
|
88
|
-
} from '../../utils';
|
|
86
|
+
} from '../../pm-plugins/utils';
|
|
87
|
+
import { TableCssClassName as ClassName } from '../../types';
|
|
88
|
+
import type { PluginInjectionAPI } from '../../types';
|
|
89
89
|
import {
|
|
90
90
|
colorPalletteColumns,
|
|
91
91
|
contextualMenuDropdownWidth,
|
|
@@ -14,18 +14,21 @@ import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
|
14
14
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
15
15
|
import { getSelectionRect, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
16
16
|
|
|
17
|
-
import { clearHoverSelection, hoverColumns, hoverRows } from '../../commands';
|
|
18
|
-
import {
|
|
17
|
+
import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
|
|
18
|
+
import {
|
|
19
|
+
deleteColumnsWithAnalytics,
|
|
20
|
+
deleteRowsWithAnalytics,
|
|
21
|
+
} from '../../pm-plugins/commands/commands-with-analytics';
|
|
19
22
|
import { getPluginState as getTablePluginState } from '../../pm-plugins/plugin-factory';
|
|
20
23
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
21
|
-
import type { PluginInjectionAPI, TableDirection } from '../../types';
|
|
22
|
-
import { TableCssClassName as ClassName } from '../../types';
|
|
23
24
|
import {
|
|
24
25
|
getColumnDeleteButtonParams,
|
|
25
26
|
getColumnsWidths,
|
|
26
27
|
getRowDeleteButtonParams,
|
|
27
28
|
getRowHeights,
|
|
28
|
-
} from '../../utils';
|
|
29
|
+
} from '../../pm-plugins/utils';
|
|
30
|
+
import type { PluginInjectionAPI, TableDirection } from '../../types';
|
|
31
|
+
import { TableCssClassName as ClassName } from '../../types';
|
|
29
32
|
import { stickyRowZIndex } from '../consts';
|
|
30
33
|
|
|
31
34
|
import DeleteButton from './DeleteButton';
|
|
@@ -47,27 +47,27 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
47
47
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
48
48
|
import Toggle from '@atlaskit/toggle';
|
|
49
49
|
|
|
50
|
-
import { clearHoverSelection, hoverColumns, hoverRows } from '../../commands';
|
|
50
|
+
import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
|
|
51
51
|
import {
|
|
52
52
|
setColorWithAnalytics,
|
|
53
53
|
toggleHeaderColumnWithAnalytics,
|
|
54
54
|
toggleHeaderRowWithAnalytics,
|
|
55
55
|
toggleNumberColumnWithAnalytics,
|
|
56
|
-
} from '../../commands-with-analytics';
|
|
56
|
+
} from '../../pm-plugins/commands/commands-with-analytics';
|
|
57
57
|
import { toggleDragMenu } from '../../pm-plugins/drag-and-drop/commands';
|
|
58
58
|
import { getPluginState } from '../../pm-plugins/drag-and-drop/plugin-factory';
|
|
59
59
|
import { getPluginState as getTablePluginState } from '../../pm-plugins/plugin-factory';
|
|
60
|
-
import type { PluginConfig, PluginInjectionAPI, TableDirection } from '../../types';
|
|
61
|
-
import { TableCssClassName as ClassName } from '../../types';
|
|
62
60
|
import {
|
|
63
61
|
checkIfHeaderColumnEnabled,
|
|
64
62
|
checkIfHeaderRowEnabled,
|
|
65
63
|
checkIfNumberColumnEnabled,
|
|
66
64
|
getSelectedColumnIndexes,
|
|
67
65
|
getSelectedRowIndexes,
|
|
68
|
-
} from '../../utils';
|
|
69
|
-
import type { DragMenuConfig, DragMenuOptionIdType } from '../../utils/drag-menu';
|
|
70
|
-
import { getDragMenuConfig } from '../../utils/drag-menu';
|
|
66
|
+
} from '../../pm-plugins/utils';
|
|
67
|
+
import type { DragMenuConfig, DragMenuOptionIdType } from '../../pm-plugins/utils/drag-menu';
|
|
68
|
+
import { getDragMenuConfig } from '../../pm-plugins/utils/drag-menu';
|
|
69
|
+
import { TableCssClassName as ClassName } from '../../types';
|
|
70
|
+
import type { PluginConfig, PluginInjectionAPI, TableDirection } from '../../types';
|
|
71
71
|
import { colorPalletteColumns } from '../consts';
|
|
72
72
|
|
|
73
73
|
import { DropdownMenu } from './DropdownMenu';
|
|
@@ -26,10 +26,13 @@ import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
|
26
26
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
27
27
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
28
28
|
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
insertColumnWithAnalytics,
|
|
31
|
+
insertRowWithAnalytics,
|
|
32
|
+
} from '../../pm-plugins/commands/commands-with-analytics';
|
|
33
|
+
import { checkIfNumberColumnEnabled } from '../../pm-plugins/utils';
|
|
30
34
|
import { TableCssClassName as ClassName } from '../../types';
|
|
31
35
|
import type { PluginInjectionAPI } from '../../types';
|
|
32
|
-
import { checkIfNumberColumnEnabled } from '../../utils';
|
|
33
36
|
|
|
34
37
|
import getPopupOptions from './getPopupOptions';
|
|
35
38
|
import InsertButton, { DragAndDropInsertButton } from './InsertButton';
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
hoverColumns,
|
|
19
19
|
selectColumn,
|
|
20
20
|
selectColumns,
|
|
21
|
-
} from '../../../commands';
|
|
22
|
-
import type { TablePlugin } from '../../../plugin';
|
|
21
|
+
} from '../../../pm-plugins/commands';
|
|
23
22
|
import { toggleDragMenu } from '../../../pm-plugins/drag-and-drop/commands';
|
|
24
23
|
import type { TriggerType } from '../../../pm-plugins/drag-and-drop/types';
|
|
24
|
+
import { getRowsParams, getSelectedColumnIndexes } from '../../../pm-plugins/utils';
|
|
25
|
+
import type { TablePlugin } from '../../../tablePluginType';
|
|
25
26
|
import type { CellHoverMeta, HandleTypes } from '../../../types';
|
|
26
27
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
27
|
-
import { getRowsParams, getSelectedColumnIndexes } from '../../../utils';
|
|
28
28
|
import type { DragHandleAppearance } from '../../DragHandle';
|
|
29
29
|
import { DragHandle } from '../../DragHandle';
|
|
30
30
|
|
|
@@ -10,9 +10,9 @@ import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/ad
|
|
|
10
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
11
|
|
|
12
12
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
13
|
+
import { containsHeaderColumn, getColumnsWidths, getRowHeights } from '../../pm-plugins/utils';
|
|
13
14
|
import type { CellHoverMeta, DraggableSourceData, PluginInjectionAPI } from '../../types';
|
|
14
15
|
import { TableCssClassName as ClassName } from '../../types';
|
|
15
|
-
import { containsHeaderColumn, getColumnsWidths, getRowHeights } from '../../utils';
|
|
16
16
|
|
|
17
17
|
import { ColumnControls } from './ColumnControls';
|
|
18
18
|
import { ColumnDropTargets } from './ColumnDropTargets';
|
|
@@ -9,7 +9,7 @@ import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
|
9
9
|
import { findTable, isTableSelected, selectTable } from '@atlaskit/editor-tables/utils';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
|
|
12
|
-
import { clearHoverSelection, hoverTable } from '../../../commands';
|
|
12
|
+
import { clearHoverSelection, hoverTable } from '../../../pm-plugins/commands';
|
|
13
13
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
14
14
|
|
|
15
15
|
import type { CornerControlProps } from './types';
|
|
@@ -9,8 +9,8 @@ import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
|
9
9
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
10
10
|
import { findTable, isTableSelected, selectTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
|
|
12
|
-
import { clearHoverSelection } from '../../../commands';
|
|
13
|
-
import type { TablePlugin } from '../../../
|
|
12
|
+
import { clearHoverSelection } from '../../../pm-plugins/commands';
|
|
13
|
+
import type { TablePlugin } from '../../../tablePluginType';
|
|
14
14
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
15
15
|
|
|
16
16
|
import type { CornerControlProps } from './types';
|
|
@@ -4,7 +4,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
|
|
7
|
-
import type { TablePlugin } from '../../
|
|
7
|
+
import type { TablePlugin } from '../../tablePluginType';
|
|
8
8
|
|
|
9
9
|
import { CornerControls } from './CornerControls';
|
|
10
10
|
import { RowControls } from './RowControls';
|
|
@@ -7,9 +7,9 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
7
7
|
import { isRowSelected } from '@atlaskit/editor-tables/utils';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
|
|
10
|
-
import { clearHoverSelection } from '../../../commands';
|
|
10
|
+
import { clearHoverSelection } from '../../../pm-plugins/commands';
|
|
11
|
+
import { getRowHeights } from '../../../pm-plugins/utils';
|
|
11
12
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
12
|
-
import { getRowHeights } from '../../../utils';
|
|
13
13
|
import { tableBorderColor } from '../../consts';
|
|
14
14
|
|
|
15
15
|
interface Props {
|
|
@@ -8,10 +8,10 @@ import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
|
|
11
|
-
import { clearHoverSelection } from '../../../commands';
|
|
11
|
+
import { clearHoverSelection } from '../../../pm-plugins/commands';
|
|
12
|
+
import type { RowParams } from '../../../pm-plugins/utils';
|
|
13
|
+
import { getRowClassNames, getRowHeights, getRowsParams } from '../../../pm-plugins/utils';
|
|
12
14
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
13
|
-
import type { RowParams } from '../../../utils';
|
|
14
|
-
import { getRowClassNames, getRowHeights, getRowsParams } from '../../../utils';
|
|
15
15
|
import { tableControlsSpacing, tableToolbarSize } from '../../consts';
|
|
16
16
|
|
|
17
17
|
export interface Props {
|
|
@@ -13,13 +13,13 @@ import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
|
13
13
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
14
14
|
import { token } from '@atlaskit/tokens';
|
|
15
15
|
|
|
16
|
-
import { clearHoverSelection } from '../../../commands';
|
|
16
|
+
import { clearHoverSelection } from '../../../pm-plugins/commands';
|
|
17
17
|
import { toggleDragMenu } from '../../../pm-plugins/drag-and-drop/commands';
|
|
18
18
|
import type { TriggerType } from '../../../pm-plugins/drag-and-drop/types';
|
|
19
19
|
import { getPluginState as getTablePluginState } from '../../../pm-plugins/plugin-factory';
|
|
20
|
+
import { getRowHeights, getRowsParams, getSelectedRowIndexes } from '../../../pm-plugins/utils';
|
|
20
21
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
21
22
|
import type { CellHoverMeta, DraggableSourceData, HandleTypes } from '../../../types';
|
|
22
|
-
import { getRowHeights, getRowsParams, getSelectedRowIndexes } from '../../../utils';
|
|
23
23
|
import { dropTargetExtendedWidth } from '../../consts';
|
|
24
24
|
import type { DragHandleAppearance } from '../../DragHandle';
|
|
25
25
|
import { DragHandle } from '../../DragHandle';
|
|
@@ -10,12 +10,12 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
10
10
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
12
|
|
|
13
|
-
import { hoverCell, hoverRows, selectRow, selectRows } from '../../commands';
|
|
14
|
-
import type { TablePlugin } from '../../plugin';
|
|
13
|
+
import { hoverCell, hoverRows, selectRow, selectRows } from '../../pm-plugins/commands';
|
|
15
14
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
15
|
+
import { isTableNested } from '../../pm-plugins/utils/nodes';
|
|
16
|
+
import type { TablePlugin } from '../../tablePluginType';
|
|
16
17
|
import { TableCssClassName as ClassName } from '../../types';
|
|
17
18
|
import type { CellHoverMeta } from '../../types';
|
|
18
|
-
import { isTableNested } from '../../utils/nodes';
|
|
19
19
|
|
|
20
20
|
import {
|
|
21
21
|
CornerControls,
|