@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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, isCommentEditor, isChromelessEditor, isTableResizingEnabled, createTableProps, }: {
|
|
2
|
+
export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, isCommentEditor, isChromelessEditor, isTableResizingEnabled, isNestedTable, createTableProps, }: {
|
|
3
3
|
isTableScalingEnabled?: boolean | undefined;
|
|
4
4
|
isTableAlignmentEnabled?: boolean | undefined;
|
|
5
5
|
isFullWidthModeEnabled?: boolean | undefined;
|
|
6
6
|
isCommentEditor?: boolean | undefined;
|
|
7
7
|
isChromelessEditor?: boolean | undefined;
|
|
8
8
|
isTableResizingEnabled?: boolean | undefined;
|
|
9
|
+
isNestedTable?: boolean | undefined;
|
|
9
10
|
createTableProps?: {
|
|
10
11
|
rowsCount?: number | undefined;
|
|
11
12
|
colsCount?: number | undefined;
|
|
@@ -4,8 +4,8 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
4
4
|
import type { ReadonlyTransaction, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { Cell, CellColumnPositioning } from '
|
|
8
|
-
import { TableDecorations } from '
|
|
7
|
+
import type { Cell, CellColumnPositioning } from '../../types';
|
|
8
|
+
import { TableDecorations } from '../../types';
|
|
9
9
|
export declare const findColumnControlSelectedDecoration: (decorationSet: DecorationSet) => Decoration[];
|
|
10
10
|
export declare const findControlsHoverDecoration: (decorationSet: DecorationSet) => Decoration[];
|
|
11
11
|
export declare const createCellHoverDecoration: (cells: Cell[]) => Decoration[];
|
|
@@ -6,7 +6,7 @@ import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import type { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
8
|
import type { NewIconProps } from '@atlaskit/icon/types';
|
|
9
|
-
import type { DraggableData, DraggableType, PluginInjectionAPI, TableDirection } from '
|
|
9
|
+
import type { DraggableData, DraggableType, PluginInjectionAPI, TableDirection } from '../../types';
|
|
10
10
|
export declare const getTargetIndex: (selectedIndexes: number[], direction: DraggableData['direction']) => number;
|
|
11
11
|
export declare const canMove: (sourceType: DraggableType, direction: DraggableData['direction'], totalItemsOfSourceTypeCount: number, selection: Selection, selectionRect?: Rect) => boolean;
|
|
12
12
|
export type DragMenuOptionIdType = 'add_row_above' | 'add_row_below' | 'add_column_left' | 'add_column_right' | 'distribute_columns' | 'clear_cells' | 'delete_row' | 'delete_column' | 'move_column_left' | 'move_column_right' | 'move_row_up' | 'move_row_down' | 'sort_column_asc' | 'sort_column_desc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { TableDecorations } from '
|
|
3
|
+
import type { TableDecorations } from '../../types';
|
|
4
4
|
export declare const updatePluginStateDecorations: (state: EditorState, decorations: Decoration[], key: TableDecorations) => DecorationSet;
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
7
7
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type tablePlugin from '../../
|
|
9
|
+
import type tablePlugin from '../../tablePlugin';
|
|
10
10
|
import type { ViewModeSortPluginState } from './types';
|
|
11
11
|
export declare const createPlugin: (api: ExtractInjectionAPI<typeof tablePlugin>, nodeViewPortalProviderAPI: PortalProviderAPI) => SafePlugin<ViewModeSortPluginState>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { AnalyticsEventPayload, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { Command, EditorCommand, GetEditorFeatureFlags, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
3
|
import type { AccessibilityUtilsPlugin } from '@atlaskit/editor-plugin-accessibility-utils';
|
|
5
4
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
@@ -53,9 +52,4 @@ export type TablePlugin = NextEditorPlugin<'table', {
|
|
|
53
52
|
OptionalPlugin<FeatureFlagsPlugin>
|
|
54
53
|
];
|
|
55
54
|
}>;
|
|
56
|
-
|
|
57
|
-
* Table plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
58
|
-
* from `@atlaskit/editor-core`.
|
|
59
|
-
*/
|
|
60
|
-
declare const tablesPlugin: TablePlugin;
|
|
61
|
-
export default tablesPlugin;
|
|
55
|
+
export {};
|
|
@@ -8,7 +8,7 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
|
8
8
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
10
10
|
import type { Edge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
11
|
-
import type { TablePlugin } from '
|
|
11
|
+
import type { TablePlugin } from '../tablePluginType';
|
|
12
12
|
export declare const RESIZE_HANDLE_AREA_DECORATION_GAP = 30;
|
|
13
13
|
export type RowInsertPosition = 'TOP' | 'BOTTOM';
|
|
14
14
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { TablePlugin } from '../../../
|
|
4
|
+
import type { TablePlugin } from '../../../tablePluginType';
|
|
5
5
|
import type { CellHoverMeta } from '../../../types';
|
|
6
6
|
interface ColumnControlsProps {
|
|
7
7
|
editorView: EditorView;
|
|
@@ -22,7 +22,7 @@ interface ColumnControlsProps {
|
|
|
22
22
|
}
|
|
23
23
|
export declare const ColumnControls: ({ editorView, tableActive, tableRef, hoveredCell, stickyTop, localId, isInDanger, rowHeights, colWidths, hasHeaderColumn, isTableHovered, tableContainerWidth, isNumberColumnEnabled, isDragging, getScrollOffset, api, }: ColumnControlsProps & {
|
|
24
24
|
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
|
|
25
|
-
pluginConfiguration: import("../../../
|
|
25
|
+
pluginConfiguration: import("../../../tablePluginType").TablePluginOptions | undefined;
|
|
26
26
|
actions: {
|
|
27
27
|
insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
|
|
28
28
|
};
|
|
@@ -3,7 +3,7 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import type { CornerControlProps } from './types';
|
|
4
4
|
export declare const DragCornerControlsWithSelection: React.FC<import("react-intl-next").WithIntlProps<CornerControlProps & WrappedComponentProps & {
|
|
5
5
|
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
|
|
6
|
-
pluginConfiguration: import("../../../
|
|
6
|
+
pluginConfiguration: import("../../../tablePluginType").TablePluginOptions | undefined;
|
|
7
7
|
actions: {
|
|
8
8
|
insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
|
|
9
9
|
};
|
|
@@ -110,7 +110,7 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
110
110
|
}>> & {
|
|
111
111
|
WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps & {
|
|
112
112
|
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
|
|
113
|
-
pluginConfiguration: import("../../../
|
|
113
|
+
pluginConfiguration: import("../../../tablePluginType").TablePluginOptions | undefined;
|
|
114
114
|
actions: {
|
|
115
115
|
insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
|
|
116
116
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { TablePlugin } from '../../
|
|
4
|
+
import type { TablePlugin } from '../../tablePluginType';
|
|
5
5
|
type FloatingControlsWithSelectionProps = {
|
|
6
6
|
editorView: EditorView;
|
|
7
7
|
tableRef: HTMLTableElement;
|
|
@@ -4,8 +4,8 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
4
4
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { TablePlugin } from '../../plugin';
|
|
8
7
|
import type { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
8
|
+
import type { TablePlugin } from '../../tablePluginType';
|
|
9
9
|
import type { CellHoverMeta } from '../../types';
|
|
10
10
|
interface TableFloatingControlsProps {
|
|
11
11
|
editorView: EditorView;
|
|
@@ -32,7 +32,7 @@ interface TableFloatingControlsProps {
|
|
|
32
32
|
}
|
|
33
33
|
export declare const TableFloatingControls: ({ editorView, tableRef, tableNode, isInDanger, isResizing, isNumberColumnEnabled, isHeaderRowEnabled, isHeaderColumnEnabled, tableActive, hasHeaderRow, hoveredRows, stickyHeader, isDragAndDropEnabled, hoveredCell, isTableHovered, tableWrapperWidth, api, isChromelessEditor, }: TableFloatingControlsProps & {
|
|
34
34
|
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"table", {
|
|
35
|
-
pluginConfiguration: import("../../
|
|
35
|
+
pluginConfiguration: import("../../tablePluginType").TablePluginOptions | undefined;
|
|
36
36
|
actions: {
|
|
37
37
|
insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
|
|
38
38
|
};
|
|
@@ -2,7 +2,7 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
|
2
2
|
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import type { PluginInjectionAPI } from '
|
|
5
|
+
import type { PluginInjectionAPI } from '../types';
|
|
6
6
|
export declare const handleBlur: (view: EditorView, event: Event) => boolean;
|
|
7
7
|
export declare const handleFocus: (view: EditorView, event: Event) => boolean;
|
|
8
8
|
export declare const handleClick: (view: EditorView, event: Event) => boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SortingIcon } from '@atlaskit/editor-common/table';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { TablePlugin } from '../../
|
|
4
|
+
import type { TablePlugin } from '../../tablePluginType';
|
|
5
5
|
type SortingIconProps = React.ComponentProps<typeof SortingIcon>;
|
|
6
6
|
type SortingIconWrapperProps = SortingIconProps & {
|
|
7
7
|
api: ExtractInjectionAPI<TablePlugin>;
|
|
@@ -3,8 +3,8 @@ import type { Command, FloatingToolbarDropdown, FloatingToolbarHandler, Floating
|
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
6
|
-
import type { TablePluginOptions } from '
|
|
7
|
-
import type { PluginConfig, PluginInjectionAPI, ToolbarMenuConfig, ToolbarMenuContext, ToolbarMenuState } from '
|
|
6
|
+
import type { TablePluginOptions } from '../tablePluginType';
|
|
7
|
+
import type { PluginConfig, PluginInjectionAPI, ToolbarMenuConfig, ToolbarMenuContext, ToolbarMenuState } from '../types';
|
|
8
8
|
export declare const getToolbarMenuConfig: (config: ToolbarMenuConfig, state: ToolbarMenuState, { formatMessage }: ToolbarMenuContext, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingWithFixedColumnWidthsOptionShown?: boolean, areTableColumnWidthsFixed?: boolean) => FloatingToolbarItem<Command>;
|
|
9
9
|
export declare const getToolbarCellOptionsConfig: (editorState: EditorState, editorView: EditorView | undefined | null, initialSelectionRect: Rect, { formatMessage }: ToolbarMenuContext, getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => FloatingToolbarDropdown<Command>;
|
|
10
10
|
export declare const getClosestSelectionRect: (state: EditorState) => Rect | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.3",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
31
31
|
"@atlaskit/button": "^20.3.0",
|
|
32
32
|
"@atlaskit/custom-steps": "^0.9.0",
|
|
33
|
-
"@atlaskit/editor-common": "^96.
|
|
33
|
+
"@atlaskit/editor-common": "^96.3.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.3",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
|
-
"@atlaskit/editor-plugin-batch-attribute-updates": "1.1.
|
|
37
|
+
"@atlaskit/editor-plugin-batch-attribute-updates": "1.1.8",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^1.11.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-guideline": "^1.2.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@atlaskit/menu": "^2.13.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
49
|
"@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
|
|
50
|
-
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.
|
|
50
|
+
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
52
52
|
"@atlaskit/primitives": "^13.3.0",
|
|
53
53
|
"@atlaskit/theme": "^14.0.0",
|
|
54
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^2.23.0",
|
|
55
55
|
"@atlaskit/toggle": "^13.4.0",
|
|
56
56
|
"@atlaskit/tokens": "^2.4.0",
|
|
57
57
|
"@atlaskit/tooltip": "^18.9.0",
|
|
@@ -72,15 +72,18 @@
|
|
|
72
72
|
"typescript": "~5.4.2"
|
|
73
73
|
},
|
|
74
74
|
"af:exports": {
|
|
75
|
-
"./types": "./src/types.ts",
|
|
75
|
+
"./types": "./src/types/index.ts",
|
|
76
76
|
".": "./src/index.ts",
|
|
77
77
|
"./ui/common-styles": "./src/ui/common-styles.ts",
|
|
78
78
|
"./ui/consts": "./src/ui/consts.ts",
|
|
79
79
|
"./plugin-key": "./src/pm-plugins/plugin-key.ts",
|
|
80
|
-
"./commands": "./src/commands/index.ts"
|
|
80
|
+
"./commands": "./src/pm-plugins/commands/index.ts"
|
|
81
81
|
},
|
|
82
82
|
"techstack": {
|
|
83
83
|
"@atlassian/frontend": {
|
|
84
|
+
"code-structure": [
|
|
85
|
+
"editor-plugin"
|
|
86
|
+
],
|
|
84
87
|
"import-structure": [
|
|
85
88
|
"atlassian-conventions"
|
|
86
89
|
],
|
|
@@ -123,7 +126,8 @@
|
|
|
123
126
|
"type": "boolean"
|
|
124
127
|
},
|
|
125
128
|
"platform_editor_use_nested_table_pm_nodes": {
|
|
126
|
-
"type": "boolean"
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"referenceOnly": true
|
|
127
131
|
},
|
|
128
132
|
"platform_editor_set_alignment_when_resized": {
|
|
129
133
|
"type": "boolean"
|
package/src/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as tablesPlugin } from './
|
|
2
|
-
export type { TablePlugin, TablePluginOptions } from './
|
|
1
|
+
export { default as tablesPlugin } from './tablePlugin';
|
|
2
|
+
export type { TablePlugin, TablePluginOptions } from './tablePluginType';
|
|
@@ -5,10 +5,10 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
7
7
|
|
|
8
|
+
import { getColumnsWidths } from '../pm-plugins/utils';
|
|
8
9
|
import type { DraggableSourceData } from '../types';
|
|
9
10
|
import { dropTargetExtendedWidth, dropTargetsZIndex } from '../ui/consts';
|
|
10
11
|
import { ColumnDropTarget } from '../ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget';
|
|
11
|
-
import { getColumnsWidths } from '../utils';
|
|
12
12
|
|
|
13
13
|
export const ExternalDropTargets = ({
|
|
14
14
|
editorView,
|
|
@@ -29,13 +29,7 @@ import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
|
29
29
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
30
30
|
import { token } from '@atlaskit/tokens';
|
|
31
31
|
|
|
32
|
-
import { autoSizeTable, clearHoverSelection } from '../commands';
|
|
33
|
-
import {
|
|
34
|
-
handleMouseOut,
|
|
35
|
-
handleMouseOver,
|
|
36
|
-
isTableInFocus,
|
|
37
|
-
withCellTracking,
|
|
38
|
-
} from '../event-handlers';
|
|
32
|
+
import { autoSizeTable, clearHoverSelection } from '../pm-plugins/commands';
|
|
39
33
|
import { autoScrollerFactory } from '../pm-plugins/drag-and-drop/utils';
|
|
40
34
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
41
35
|
import type { RowStickyState, StickyPluginState } from '../pm-plugins/sticky-headers';
|
|
@@ -62,10 +56,6 @@ import {
|
|
|
62
56
|
getScalingPercentForTableWithoutWidth,
|
|
63
57
|
getTableScalingPercent,
|
|
64
58
|
} from '../pm-plugins/table-resizing/utils/misc';
|
|
65
|
-
import type { CellHoverMeta, PluginInjectionAPI } from '../types';
|
|
66
|
-
import { TableCssClassName as ClassName, ShadowEvent } from '../types';
|
|
67
|
-
import TableFloatingColumnControls from '../ui/TableFloatingColumnControls';
|
|
68
|
-
import TableFloatingControls from '../ui/TableFloatingControls';
|
|
69
59
|
import {
|
|
70
60
|
containsHeaderRow,
|
|
71
61
|
getAssistiveMessage,
|
|
@@ -74,7 +64,17 @@ import {
|
|
|
74
64
|
tablesHaveDifferentColumnWidths,
|
|
75
65
|
tablesHaveDifferentNoOfColumns,
|
|
76
66
|
tablesHaveDifferentNoOfRows,
|
|
77
|
-
} from '../utils';
|
|
67
|
+
} from '../pm-plugins/utils';
|
|
68
|
+
import type { CellHoverMeta, PluginInjectionAPI } from '../types';
|
|
69
|
+
import { TableCssClassName as ClassName, ShadowEvent } from '../types';
|
|
70
|
+
import {
|
|
71
|
+
handleMouseOut,
|
|
72
|
+
handleMouseOver,
|
|
73
|
+
isTableInFocus,
|
|
74
|
+
withCellTracking,
|
|
75
|
+
} from '../ui/event-handlers';
|
|
76
|
+
import TableFloatingColumnControls from '../ui/TableFloatingColumnControls';
|
|
77
|
+
import TableFloatingControls from '../ui/TableFloatingControls';
|
|
78
78
|
|
|
79
79
|
import { ExternalDropTargets } from './ExternalDropTargets';
|
|
80
80
|
import { OverflowShadowsObserver } from './OverflowShadowsObserver';
|
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
akEditorMobileBreakoutPoint,
|
|
21
21
|
} from '@atlaskit/editor-shared-styles';
|
|
22
22
|
|
|
23
|
-
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../commands-with-analytics';
|
|
23
|
+
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
|
|
24
24
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
25
25
|
import {
|
|
26
26
|
TABLE_MAX_WIDTH,
|
|
27
27
|
TABLE_OFFSET_IN_COMMENT_EDITOR,
|
|
28
28
|
} from '../pm-plugins/table-resizing/utils';
|
|
29
|
+
import { ALIGN_CENTER, ALIGN_START } from '../pm-plugins/utils/alignment';
|
|
29
30
|
import type { PluginInjectionAPI, TableSharedState } from '../types';
|
|
30
31
|
import { TableCssClassName as ClassName } from '../types';
|
|
31
|
-
import { ALIGN_CENTER, ALIGN_START } from '../utils/alignment';
|
|
32
32
|
|
|
33
33
|
import { getAlignmentStyle } from './table-container-styles';
|
|
34
34
|
import { TableResizer } from './TableResizer';
|
|
@@ -28,8 +28,8 @@ import { findTable } from '@atlaskit/editor-tables/utils';
|
|
|
28
28
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
29
29
|
import { token } from '@atlaskit/tokens';
|
|
30
30
|
|
|
31
|
-
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../commands-with-analytics';
|
|
32
|
-
import { updateWidthToWidest } from '../commands/misc';
|
|
31
|
+
import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
|
|
32
|
+
import { updateWidthToWidest } from '../pm-plugins/commands/misc';
|
|
33
33
|
import { META_KEYS } from '../pm-plugins/table-analytics';
|
|
34
34
|
import {
|
|
35
35
|
COLUMN_MIN_WIDTH,
|
|
@@ -40,35 +40,35 @@ import {
|
|
|
40
40
|
TABLE_OFFSET_IN_COMMENT_EDITOR,
|
|
41
41
|
} from '../pm-plugins/table-resizing/utils';
|
|
42
42
|
import { pluginKey as tableWidthPluginKey } from '../pm-plugins/table-width';
|
|
43
|
-
import type { PluginInjectionAPI, TableSharedStateInternal } from '../types';
|
|
44
|
-
import {
|
|
45
|
-
TABLE_GUIDELINE_VISIBLE_ADJUSTMENT,
|
|
46
|
-
TABLE_HIGHLIGHT_GAP,
|
|
47
|
-
TABLE_HIGHLIGHT_TOLERANCE,
|
|
48
|
-
TABLE_SNAP_GAP,
|
|
49
|
-
} from '../ui/consts';
|
|
50
43
|
import {
|
|
51
44
|
ALIGN_CENTER,
|
|
52
45
|
ALIGN_START,
|
|
53
46
|
normaliseAlignment,
|
|
54
47
|
shouldChangeAlignmentToCenterResized,
|
|
55
|
-
} from '../utils/alignment';
|
|
48
|
+
} from '../pm-plugins/utils/alignment';
|
|
56
49
|
import {
|
|
57
50
|
generateResizedPayload,
|
|
58
51
|
generateResizeFrameRatePayloads,
|
|
59
52
|
useMeasureFramerate,
|
|
60
|
-
} from '../utils/analytics';
|
|
53
|
+
} from '../pm-plugins/utils/analytics';
|
|
61
54
|
import {
|
|
62
55
|
defaultGuidelines,
|
|
63
56
|
defaultGuidelinesForPreserveTable,
|
|
64
57
|
PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET,
|
|
65
|
-
} from '../utils/guidelines';
|
|
58
|
+
} from '../pm-plugins/utils/guidelines';
|
|
66
59
|
import {
|
|
67
60
|
defaultSnappingWidths,
|
|
68
61
|
defaultTablePreserveSnappingWidths,
|
|
69
62
|
findClosestSnap,
|
|
70
63
|
PRESERVE_TABLE_SNAPPING_LENGTH_OFFSET,
|
|
71
|
-
} from '../utils/snapping';
|
|
64
|
+
} from '../pm-plugins/utils/snapping';
|
|
65
|
+
import type { PluginInjectionAPI, TableSharedStateInternal } from '../types';
|
|
66
|
+
import {
|
|
67
|
+
TABLE_GUIDELINE_VISIBLE_ADJUSTMENT,
|
|
68
|
+
TABLE_HIGHLIGHT_GAP,
|
|
69
|
+
TABLE_HIGHLIGHT_TOLERANCE,
|
|
70
|
+
TABLE_SNAP_GAP,
|
|
71
|
+
} from '../ui/consts';
|
|
72
72
|
|
|
73
73
|
interface TableResizerProps {
|
|
74
74
|
width: number;
|
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
syncStickyRowToTable,
|
|
15
15
|
updateStickyMargins as updateTableMargin,
|
|
16
16
|
} from '../pm-plugins/table-resizing/utils/dom';
|
|
17
|
+
import type { TableDOMElements } from '../pm-plugins/utils/dom';
|
|
18
|
+
import { getTop, getTree } from '../pm-plugins/utils/dom';
|
|
19
|
+
import { supportedHeaderRow } from '../pm-plugins/utils/nodes';
|
|
17
20
|
import type { TablePluginState } from '../types';
|
|
18
21
|
import { TableCssClassName as ClassName, TableCssClassName } from '../types';
|
|
19
22
|
import {
|
|
@@ -22,9 +25,6 @@ import {
|
|
|
22
25
|
tableControlsSpacing,
|
|
23
26
|
tableScrollbarOffset,
|
|
24
27
|
} from '../ui/consts';
|
|
25
|
-
import type { TableDOMElements } from '../utils/dom';
|
|
26
|
-
import { getTop, getTree } from '../utils/dom';
|
|
27
|
-
import { supportedHeaderRow } from '../utils/nodes';
|
|
28
28
|
|
|
29
29
|
import TableNodeView from './TableNodeViewBase';
|
|
30
30
|
|
package/src/nodeviews/table.tsx
CHANGED
|
@@ -21,15 +21,15 @@ import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
|
21
21
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
22
22
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
23
23
|
|
|
24
|
-
import { pluginConfig as getPluginConfig } from '../create-plugin-config';
|
|
24
|
+
import { pluginConfig as getPluginConfig } from '../pm-plugins/create-plugin-config';
|
|
25
25
|
import { pluginKey as tableDragAndDropPluginKey } from '../pm-plugins/drag-and-drop';
|
|
26
26
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
27
27
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
28
28
|
import { pluginKey as tableResizingPluginKey } from '../pm-plugins/table-resizing';
|
|
29
29
|
import { generateColgroup } from '../pm-plugins/table-resizing/utils';
|
|
30
30
|
import { pluginKey as tableWidthPluginKey } from '../pm-plugins/table-width';
|
|
31
|
+
import { isTableNested } from '../pm-plugins/utils';
|
|
31
32
|
import type { PluginInjectionAPI } from '../types';
|
|
32
|
-
import { isTableNested } from '../utils';
|
|
33
33
|
|
|
34
34
|
import TableComponent from './TableComponent';
|
|
35
35
|
import { TableComponentWithSharedState } from './TableComponentWithSharedState';
|
|
@@ -8,9 +8,10 @@ import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
10
|
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
11
|
+
import { generateColgroup, getResizerMinWidth } from '../pm-plugins/table-resizing/utils/colgroup';
|
|
12
|
+
import { TABLE_MAX_WIDTH } from '../pm-plugins/table-resizing/utils/consts';
|
|
13
|
+
|
|
14
|
+
import { getAlignmentStyle } from './table-container-styles';
|
|
14
15
|
|
|
15
16
|
type Config = {
|
|
16
17
|
allowColumnResizing: boolean;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getTableElementMoveTypeBySlice,
|
|
9
9
|
getTableSelectionType,
|
|
10
10
|
isInsideFirstCellOfRowOrColumn,
|
|
11
|
-
} from '
|
|
11
|
+
} from '../commands/misc';
|
|
12
12
|
|
|
13
13
|
import { resetRowOrColumnMovedTransform, updateRowOrColumnMoved } from './commands';
|
|
14
14
|
import { createPluginState } from './plugin-factory';
|
|
@@ -17,31 +17,31 @@ import {
|
|
|
17
17
|
nextCell,
|
|
18
18
|
} from '@atlaskit/editor-tables/utils';
|
|
19
19
|
|
|
20
|
-
import {
|
|
20
|
+
import { TableDecorations } from '../../types';
|
|
21
|
+
import type { PluginInjectionAPI, TablePluginAction } from '../../types';
|
|
22
|
+
import { getDecorations } from '../decorations/plugin';
|
|
21
23
|
import {
|
|
22
24
|
buildColumnResizingDecorations,
|
|
23
25
|
clearColumnResizingDecorations,
|
|
24
|
-
} from '../
|
|
25
|
-
import { createCommand, getPluginState } from '../
|
|
26
|
+
} from '../decorations/utils';
|
|
27
|
+
import { createCommand, getPluginState } from '../plugin-factory';
|
|
26
28
|
import {
|
|
27
29
|
getPluginState as getTableResizingPluginState,
|
|
28
30
|
createCommand as tableResizingPluginCreateCommand,
|
|
29
|
-
} from '../
|
|
30
|
-
import { pluginKey as tableResizingPK } from '../
|
|
31
|
+
} from '../table-resizing/plugin-factory';
|
|
32
|
+
import { pluginKey as tableResizingPK } from '../table-resizing/plugin-key';
|
|
31
33
|
import {
|
|
32
34
|
currentColWidth,
|
|
33
35
|
getResizeState,
|
|
34
36
|
getTableMaxWidth,
|
|
35
37
|
resizeColumn,
|
|
36
38
|
updateControls,
|
|
37
|
-
} from '../
|
|
39
|
+
} from '../table-resizing/utils';
|
|
38
40
|
import {
|
|
39
41
|
getScalingPercentForTableWithoutWidth,
|
|
40
42
|
getTableScalingPercent,
|
|
41
|
-
} from '../
|
|
43
|
+
} from '../table-resizing/utils/misc';
|
|
42
44
|
import { updateColumnWidths } from '../transforms';
|
|
43
|
-
import { TableDecorations } from '../types';
|
|
44
|
-
import type { PluginInjectionAPI, TablePluginAction } from '../types';
|
|
45
45
|
import { createColumnLineResize, getSelectedColumnIndexes, updateDecorations } from '../utils';
|
|
46
46
|
|
|
47
47
|
const getTablePluginCommand = (
|
|
@@ -28,12 +28,26 @@ import {
|
|
|
28
28
|
getSelectionRect,
|
|
29
29
|
} from '@atlaskit/editor-tables/utils';
|
|
30
30
|
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
import type {
|
|
32
|
+
AlignmentOptions,
|
|
33
|
+
InsertRowMethods,
|
|
34
|
+
InsertRowOptions,
|
|
35
|
+
PluginInjectionAPI,
|
|
36
|
+
RowInsertPosition,
|
|
37
|
+
} from '../../types';
|
|
38
|
+
import { getPluginState } from '../plugin-factory';
|
|
39
|
+
import { distributeColumnsWidths } from '../table-resizing/commands';
|
|
40
|
+
import type { ResizeStateWithAnalytics } from '../table-resizing/utils';
|
|
41
|
+
import { deleteRows, mergeCells } from '../transforms';
|
|
42
|
+
import { checkIfNumberColumnEnabled, getSelectedCellInfo, getSelectedTableInfo } from '../utils';
|
|
43
|
+
import { withEditorAnalyticsAPI } from '../utils/analytics';
|
|
44
|
+
|
|
45
|
+
import { clearMultipleCells } from './clear';
|
|
46
|
+
import { wrapTableInExpand } from './collapse';
|
|
47
|
+
import { changeColumnWidthByStep } from './column-resize';
|
|
48
|
+
import { deleteColumnsCommand } from './delete';
|
|
49
|
+
import { setTableDisplayMode } from './display-mode';
|
|
50
|
+
import { insertColumn, insertRow } from './insert';
|
|
37
51
|
import {
|
|
38
52
|
deleteTable,
|
|
39
53
|
deleteTableIfSelected,
|
|
@@ -41,23 +55,10 @@ import {
|
|
|
41
55
|
setMultipleCellAttrs,
|
|
42
56
|
setTableAlignment,
|
|
43
57
|
setTableAlignmentWithTableContentWithPos,
|
|
44
|
-
} from './
|
|
45
|
-
import { sortByColumn } from './
|
|
46
|
-
import { splitCell } from './
|
|
47
|
-
import { toggleHeaderColumn, toggleHeaderRow, toggleNumberColumn } from './
|
|
48
|
-
import { getPluginState } from './pm-plugins/plugin-factory';
|
|
49
|
-
import { distributeColumnsWidths } from './pm-plugins/table-resizing/commands';
|
|
50
|
-
import type { ResizeStateWithAnalytics } from './pm-plugins/table-resizing/utils';
|
|
51
|
-
import { deleteRows, mergeCells } from './transforms';
|
|
52
|
-
import type {
|
|
53
|
-
AlignmentOptions,
|
|
54
|
-
InsertRowMethods,
|
|
55
|
-
InsertRowOptions,
|
|
56
|
-
PluginInjectionAPI,
|
|
57
|
-
RowInsertPosition,
|
|
58
|
-
} from './types';
|
|
59
|
-
import { checkIfNumberColumnEnabled, getSelectedCellInfo, getSelectedTableInfo } from './utils';
|
|
60
|
-
import { withEditorAnalyticsAPI } from './utils/analytics';
|
|
58
|
+
} from './misc';
|
|
59
|
+
import { sortByColumn } from './sort';
|
|
60
|
+
import { splitCell } from './split-cell';
|
|
61
|
+
import { toggleHeaderColumn, toggleHeaderRow, toggleNumberColumn } from './toggle';
|
|
61
62
|
|
|
62
63
|
// #region Analytics wrappers
|
|
63
64
|
export const emptyMultipleCellsWithAnalytics =
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
3
3
|
|
|
4
|
+
import type { PluginInjectionAPI } from '../../types';
|
|
4
5
|
import { deleteColumns } from '../transforms/delete-columns';
|
|
5
|
-
import type { PluginInjectionAPI } from '../types';
|
|
6
6
|
import { getAllowAddColumnCustomStep } from '../utils/get-allow-add-column-custom-step';
|
|
7
7
|
|
|
8
8
|
export const deleteColumnsCommand =
|
|
@@ -9,10 +9,10 @@ import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
|
9
9
|
import type { Direction } from '@atlaskit/editor-tables/types';
|
|
10
10
|
import { goToNextCell as baseGotoNextCell, findTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
|
|
12
|
-
import {
|
|
13
|
-
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
12
|
+
import { getPluginState } from '../plugin-factory';
|
|
14
13
|
|
|
15
14
|
import { stopKeyboardColumnResizing } from './column-resize';
|
|
15
|
+
import { insertRowWithAnalytics } from './commands-with-analytics';
|
|
16
16
|
|
|
17
17
|
const TAB_FORWARD_DIRECTION = 1;
|
|
18
18
|
const TAB_BACKWARD_DIRECTION = -1;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
3
3
|
import { findTable, getCellsInColumn, getCellsInRow } from '@atlaskit/editor-tables/utils';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
5
|
+
import type { Cell, CellColumnPositioning } from '../../types';
|
|
6
|
+
import { TableDecorations } from '../../types';
|
|
7
|
+
import { createCommand, getPluginState } from '../plugin-factory';
|
|
8
8
|
import {
|
|
9
9
|
createCellHoverDecoration,
|
|
10
10
|
createColumnLineResize,
|