@atlaskit/editor-plugin-table 2.6.4 → 2.6.6
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 +13 -0
- package/dist/cjs/plugins/table/commands/clear.js +3 -3
- package/dist/cjs/plugins/table/commands/go-to-next-cell.js +5 -5
- package/dist/cjs/plugins/table/commands/insert.js +19 -19
- package/dist/cjs/plugins/table/commands/misc.js +4 -4
- package/dist/cjs/plugins/table/commands/selection.js +5 -5
- package/dist/cjs/plugins/table/commands/sort.js +2 -2
- package/dist/cjs/plugins/table/event-handlers.js +4 -4
- package/dist/cjs/plugins/table/handlers.js +5 -5
- package/dist/cjs/plugins/table/nodeviews/TableContainer.js +2 -2
- package/dist/cjs/plugins/table/nodeviews/table.js +2 -2
- package/dist/cjs/plugins/table/nodeviews/tableCell.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/decorations/plugin.js +5 -5
- package/dist/cjs/plugins/table/pm-plugins/keymap.js +10 -10
- package/dist/cjs/plugins/table/pm-plugins/main.js +12 -12
- package/dist/cjs/plugins/table/pm-plugins/plugin-key.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +7 -7
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/plugin-key.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-local-id.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/plugin-key.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/column-state.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-selection-keymap.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-width.js +4 -4
- package/dist/cjs/plugins/table/toolbar.js +12 -12
- package/dist/cjs/plugins/table/transforms/delete-columns.js +4 -4
- package/dist/cjs/plugins/table/transforms/delete-rows.js +2 -2
- package/dist/cjs/plugins/table/transforms/merge.js +5 -5
- package/dist/cjs/plugins/table/transforms/replace-table.js +4 -4
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +4 -4
- package/dist/cjs/plugins/table/ui/FloatingInsertButton/index.js +6 -6
- package/dist/cjs/plugins/table/ui/LayoutButton/index.js +2 -2
- package/dist/cjs/plugins/table/ui/TableFloatingControls/NumberColumn/index.js +3 -3
- package/dist/cjs/plugins/table/utils/collapse.js +4 -4
- package/dist/cjs/plugins/table/utils/column-controls.js +8 -8
- package/dist/cjs/plugins/table/utils/decoration.js +8 -8
- package/dist/cjs/plugins/table/utils/nodes.js +6 -6
- package/dist/cjs/plugins/table/utils/paste.js +7 -7
- package/dist/cjs/plugins/table/utils/row-controls.js +7 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/table/commands/clear.js +2 -1
- package/dist/es2019/plugins/table/commands/go-to-next-cell.js +2 -1
- package/dist/es2019/plugins/table/commands/insert.js +2 -2
- package/dist/es2019/plugins/table/commands/misc.js +1 -1
- package/dist/es2019/plugins/table/commands/selection.js +1 -1
- package/dist/es2019/plugins/table/commands/sort.js +1 -1
- package/dist/es2019/plugins/table/event-handlers.js +1 -1
- package/dist/es2019/plugins/table/handlers.js +3 -3
- package/dist/es2019/plugins/table/nodeviews/TableContainer.js +2 -2
- package/dist/es2019/plugins/table/nodeviews/table.js +1 -1
- package/dist/es2019/plugins/table/nodeviews/tableCell.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/decorations/plugin.js +3 -3
- package/dist/es2019/plugins/table/pm-plugins/keymap.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/plugin-key.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/sticky-headers/plugin-key.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-local-id.js +1 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/plugin-factory.js +0 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/plugin-key.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/column-state.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-selection-keymap.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-width.js +3 -2
- package/dist/es2019/plugins/table/toolbar.js +1 -1
- package/dist/es2019/plugins/table/transforms/delete-columns.js +1 -1
- package/dist/es2019/plugins/table/transforms/delete-rows.js +1 -1
- package/dist/es2019/plugins/table/transforms/merge.js +2 -2
- package/dist/es2019/plugins/table/transforms/replace-table.js +2 -2
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingInsertButton/index.js +1 -1
- package/dist/es2019/plugins/table/ui/LayoutButton/index.js +1 -1
- package/dist/es2019/plugins/table/ui/TableFloatingControls/NumberColumn/index.js +1 -1
- package/dist/es2019/plugins/table/utils/collapse.js +2 -2
- package/dist/es2019/plugins/table/utils/column-controls.js +1 -1
- package/dist/es2019/plugins/table/utils/decoration.js +3 -2
- package/dist/es2019/plugins/table/utils/nodes.js +1 -1
- package/dist/es2019/plugins/table/utils/paste.js +2 -2
- package/dist/es2019/plugins/table/utils/row-controls.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/table/commands/clear.js +2 -1
- package/dist/esm/plugins/table/commands/go-to-next-cell.js +2 -1
- package/dist/esm/plugins/table/commands/insert.js +2 -2
- package/dist/esm/plugins/table/commands/misc.js +1 -1
- package/dist/esm/plugins/table/commands/selection.js +1 -1
- package/dist/esm/plugins/table/commands/sort.js +1 -1
- package/dist/esm/plugins/table/event-handlers.js +1 -1
- package/dist/esm/plugins/table/handlers.js +3 -3
- package/dist/esm/plugins/table/nodeviews/TableContainer.js +2 -2
- package/dist/esm/plugins/table/nodeviews/table.js +1 -1
- package/dist/esm/plugins/table/nodeviews/tableCell.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/decorations/plugin.js +3 -3
- package/dist/esm/plugins/table/pm-plugins/keymap.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/plugin-key.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/plugin-key.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-local-id.js +1 -2
- package/dist/esm/plugins/table/pm-plugins/table-resizing/plugin-factory.js +0 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/plugin-key.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/column-state.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-selection-keymap.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-width.js +3 -2
- package/dist/esm/plugins/table/toolbar.js +1 -1
- package/dist/esm/plugins/table/transforms/delete-columns.js +1 -1
- package/dist/esm/plugins/table/transforms/delete-rows.js +1 -1
- package/dist/esm/plugins/table/transforms/merge.js +2 -2
- package/dist/esm/plugins/table/transforms/replace-table.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +1 -1
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +1 -1
- package/dist/esm/plugins/table/ui/FloatingInsertButton/index.js +1 -1
- package/dist/esm/plugins/table/ui/LayoutButton/index.js +1 -1
- package/dist/esm/plugins/table/ui/TableFloatingControls/NumberColumn/index.js +1 -1
- package/dist/esm/plugins/table/utils/collapse.js +2 -2
- package/dist/esm/plugins/table/utils/column-controls.js +1 -1
- package/dist/esm/plugins/table/utils/decoration.js +3 -2
- package/dist/esm/plugins/table/utils/nodes.js +1 -1
- package/dist/esm/plugins/table/utils/paste.js +2 -2
- package/dist/esm/plugins/table/utils/row-controls.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/plugins/table/commands/insert.d.ts +2 -2
- package/dist/types/plugins/table/commands/misc.d.ts +4 -4
- package/dist/types/plugins/table/commands/referentiality.d.ts +1 -1
- package/dist/types/plugins/table/event-handlers.d.ts +2 -2
- package/dist/types/plugins/table/handlers.d.ts +1 -1
- package/dist/types/plugins/table/nodeviews/TableComponent.d.ts +2 -2
- package/dist/types/plugins/table/nodeviews/TableContainer.d.ts +2 -2
- package/dist/types/plugins/table/nodeviews/TableResizer.d.ts +3 -3
- package/dist/types/plugins/table/nodeviews/table.d.ts +2 -2
- package/dist/types/plugins/table/nodeviews/tableCell.d.ts +2 -2
- package/dist/types/plugins/table/nodeviews/types.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/decorations/plugin.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/decorations/utils/types.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/commands.d.ts +3 -3
- package/dist/types/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +3 -3
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +3 -3
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-width.d.ts +1 -1
- package/dist/types/plugins/table/toolbar.d.ts +2 -2
- package/dist/types/plugins/table/transforms/column-width.d.ts +4 -4
- package/dist/types/plugins/table/transforms/delete-columns.d.ts +1 -1
- package/dist/types/plugins/table/transforms/delete-rows.d.ts +1 -1
- package/dist/types/plugins/table/transforms/fix-tables.d.ts +3 -3
- package/dist/types/plugins/table/transforms/merge.d.ts +2 -2
- package/dist/types/plugins/table/transforms/replace-table.d.ts +2 -2
- package/dist/types/plugins/table/transforms/split.d.ts +1 -1
- package/dist/types/plugins/table/types.d.ts +3 -3
- package/dist/types/plugins/table/ui/FloatingContextualButton/index.d.ts +2 -2
- package/dist/types/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingContextualMenu/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingDeleteButton/index.d.ts +2 -2
- package/dist/types/plugins/table/ui/FloatingInsertButton/index.d.ts +2 -2
- package/dist/types/plugins/table/ui/LayoutButton/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/TableFloatingControls/index.d.ts +2 -2
- package/dist/types/plugins/table/utils/analytics.d.ts +1 -1
- package/dist/types/plugins/table/utils/collapse.d.ts +2 -2
- package/dist/types/plugins/table/utils/column-controls.d.ts +2 -2
- package/dist/types/plugins/table/utils/decoration.d.ts +3 -3
- package/dist/types/plugins/table/utils/get-allow-add-column-custom-step.d.ts +1 -1
- package/dist/types/plugins/table/utils/nodes.d.ts +2 -2
- package/dist/types/plugins/table/utils/paste.d.ts +2 -2
- package/dist/types/plugins/table/utils/row-controls.d.ts +2 -2
- package/dist/types/plugins/table/utils/selection.d.ts +1 -1
- package/dist/types/plugins/table/utils/table.d.ts +1 -1
- package/dist/types/plugins/table/utils/update-plugin-state-decorations.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/commands/insert.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/commands/misc.d.ts +4 -4
- package/dist/types-ts4.5/plugins/table/commands/referentiality.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/event-handlers.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/handlers.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/nodeviews/TableComponent.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/nodeviews/TableContainer.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/nodeviews/TableResizer.d.ts +3 -3
- package/dist/types-ts4.5/plugins/table/nodeviews/table.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/nodeviews/tableCell.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/nodeviews/types.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/plugin.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/types.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/commands.d.ts +3 -3
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +3 -3
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +3 -3
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-width.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/toolbar.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/transforms/column-width.d.ts +4 -4
- package/dist/types-ts4.5/plugins/table/transforms/delete-columns.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/transforms/delete-rows.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/transforms/fix-tables.d.ts +3 -3
- package/dist/types-ts4.5/plugins/table/transforms/merge.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/transforms/replace-table.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/transforms/split.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/types.d.ts +3 -3
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/ui/LayoutButton/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/utils/analytics.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/utils/collapse.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/utils/column-controls.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/utils/decoration.d.ts +3 -3
- package/dist/types-ts4.5/plugins/table/utils/get-allow-add-column-custom-step.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/utils/nodes.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/utils/paste.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/utils/row-controls.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/utils/selection.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/utils/table.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/utils/update-plugin-state-decorations.d.ts +2 -2
- package/package.json +4 -11
- package/src/__tests__/integration/resize.ts +1 -2
- package/src/__tests__/unit/commands/go-to-next-cell.ts +1 -2
- package/src/__tests__/unit/commands/insert.ts +1 -2
- package/src/__tests__/unit/commands/misc.ts +1 -2
- package/src/__tests__/unit/commands.ts +4 -5
- package/src/__tests__/unit/copy-paste.ts +15 -8
- package/src/__tests__/unit/event-handlers/index.ts +1 -2
- package/src/__tests__/unit/event-handlers.ts +1 -2
- package/src/__tests__/unit/get-toolbar-config.ts +1 -2
- package/src/__tests__/unit/handlers.ts +1 -2
- package/src/__tests__/unit/hover-selection.ts +2 -3
- package/src/__tests__/unit/index.ts +1 -2
- package/src/__tests__/unit/layout.ts +1 -2
- package/src/__tests__/unit/nodeviews/TableComponent.tsx +1 -1
- package/src/__tests__/unit/nodeviews/table.ts +2 -3
- package/src/__tests__/unit/pm-plugins/decorations/column-controls.ts +1 -2
- package/src/__tests__/unit/pm-plugins/decorations/column-resizing.ts +3 -4
- package/src/__tests__/unit/pm-plugins/decorations/plugin.ts +2 -3
- package/src/__tests__/unit/pm-plugins/main.ts +8 -7
- package/src/__tests__/unit/pm-plugins/sticky-headers/tableRow.tsx +2 -2
- package/src/__tests__/unit/pm-plugins/table-local-id.ts +5 -2
- package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +2 -3
- package/src/__tests__/unit/sort-column.ts +1 -2
- package/src/__tests__/unit/transforms/delete-columns.ts +1 -2
- package/src/__tests__/unit/transforms/delete-rows.ts +1 -2
- package/src/__tests__/unit/transforms/merging.ts +1 -2
- package/src/__tests__/unit/ui/ContextualMenu.tsx +1 -1
- package/src/__tests__/unit/ui/FloatingContextualButton.tsx +7 -5
- package/src/__tests__/unit/ui/FloatingContextualMenu.tsx +1 -1
- package/src/__tests__/unit/ui/FloatingDeleteButton.tsx +1 -1
- package/src/__tests__/unit/ui/FloatingInsertButton.tsx +7 -5
- package/src/__tests__/unit/ui/TableFloatingControls.tsx +1 -1
- package/src/__tests__/unit/undo-redo.ts +2 -2
- package/src/__tests__/unit/utils.ts +1 -2
- package/src/plugins/table/commands/clear.ts +1 -2
- package/src/plugins/table/commands/go-to-next-cell.ts +1 -1
- package/src/plugins/table/commands/insert.ts +3 -4
- package/src/plugins/table/commands/misc.ts +8 -5
- package/src/plugins/table/commands/referentiality.ts +1 -2
- package/src/plugins/table/commands/selection.ts +5 -3
- package/src/plugins/table/commands/sort.ts +6 -3
- package/src/plugins/table/commands/toggle.ts +1 -1
- package/src/plugins/table/commands-with-analytics.ts +1 -2
- package/src/plugins/table/event-handlers.ts +8 -9
- package/src/plugins/table/handlers.ts +10 -5
- package/src/plugins/table/index.tsx +2 -3
- package/src/plugins/table/nodeviews/TableComponent.tsx +2 -2
- package/src/plugins/table/nodeviews/TableContainer.tsx +3 -3
- package/src/plugins/table/nodeviews/TableResizer.tsx +3 -3
- package/src/plugins/table/nodeviews/table.tsx +7 -8
- package/src/plugins/table/nodeviews/tableCell.tsx +2 -2
- package/src/plugins/table/nodeviews/types.ts +2 -3
- package/src/plugins/table/pm-plugins/decorations/plugin.ts +3 -4
- package/src/plugins/table/pm-plugins/decorations/utils/column-controls.ts +5 -3
- package/src/plugins/table/pm-plugins/decorations/utils/column-resizing.ts +1 -1
- package/src/plugins/table/pm-plugins/decorations/utils/compose-decorations.ts +1 -1
- package/src/plugins/table/pm-plugins/decorations/utils/types.ts +5 -2
- package/src/plugins/table/pm-plugins/keymap.ts +2 -3
- package/src/plugins/table/pm-plugins/main.ts +11 -8
- package/src/plugins/table/pm-plugins/plugin-key.ts +1 -1
- package/src/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.ts +6 -3
- package/src/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.ts +2 -2
- package/src/plugins/table/pm-plugins/sticky-headers/plugin-key.ts +1 -1
- package/src/plugins/table/pm-plugins/table-local-id.ts +2 -2
- package/src/plugins/table/pm-plugins/table-resizing/commands.ts +3 -4
- package/src/plugins/table/pm-plugins/table-resizing/event-handlers.ts +1 -2
- package/src/plugins/table/pm-plugins/table-resizing/plugin-factory.ts +1 -2
- package/src/plugins/table/pm-plugins/table-resizing/plugin-key.ts +1 -1
- package/src/plugins/table/pm-plugins/table-resizing/utils/colgroup.ts +4 -2
- package/src/plugins/table/pm-plugins/table-resizing/utils/column-state.ts +2 -3
- package/src/plugins/table/pm-plugins/table-resizing/utils/dom.ts +2 -3
- package/src/plugins/table/pm-plugins/table-resizing/utils/misc.ts +7 -4
- package/src/plugins/table/pm-plugins/table-resizing/utils/resize-state.ts +2 -3
- package/src/plugins/table/pm-plugins/table-resizing/utils/scale-table.ts +3 -4
- package/src/plugins/table/pm-plugins/table-resizing/utils/types.ts +1 -1
- package/src/plugins/table/pm-plugins/table-selection-keymap.ts +1 -2
- package/src/plugins/table/pm-plugins/table-width.ts +2 -2
- package/src/plugins/table/toolbar.tsx +4 -4
- package/src/plugins/table/transforms/column-width.ts +4 -5
- package/src/plugins/table/transforms/delete-columns.ts +2 -3
- package/src/plugins/table/transforms/delete-rows.ts +2 -3
- package/src/plugins/table/transforms/fix-tables.ts +3 -4
- package/src/plugins/table/transforms/merge.ts +2 -3
- package/src/plugins/table/transforms/replace-table.ts +6 -3
- package/src/plugins/table/transforms/split.ts +2 -3
- package/src/plugins/table/types.ts +3 -3
- package/src/plugins/table/ui/FloatingContextualButton/index.tsx +3 -3
- package/src/plugins/table/ui/FloatingContextualMenu/ContextualMenu.tsx +1 -1
- package/src/plugins/table/ui/FloatingContextualMenu/index.tsx +2 -2
- package/src/plugins/table/ui/FloatingDeleteButton/index.tsx +2 -2
- package/src/plugins/table/ui/FloatingInsertButton/index.tsx +3 -3
- package/src/plugins/table/ui/LayoutButton/index.tsx +2 -2
- package/src/plugins/table/ui/TableFloatingControls/CornerControls/index.tsx +1 -1
- package/src/plugins/table/ui/TableFloatingControls/NumberColumn/index.tsx +2 -3
- package/src/plugins/table/ui/TableFloatingControls/RowControls/index.tsx +2 -1
- package/src/plugins/table/ui/TableFloatingControls/index.tsx +2 -3
- package/src/plugins/table/utils/analytics.ts +1 -2
- package/src/plugins/table/utils/collapse.ts +6 -4
- package/src/plugins/table/utils/column-controls.ts +3 -4
- package/src/plugins/table/utils/decoration.ts +9 -6
- package/src/plugins/table/utils/get-allow-add-column-custom-step.ts +1 -1
- package/src/plugins/table/utils/nodes.ts +3 -4
- package/src/plugins/table/utils/paste.ts +8 -4
- package/src/plugins/table/utils/row-controls.ts +3 -4
- package/src/plugins/table/utils/selection.ts +1 -2
- package/src/plugins/table/utils/table.ts +1 -2
- package/src/plugins/table/utils/update-plugin-state-decorations.ts +2 -2
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
// #region Imports
|
|
2
|
-
import { Node as PMNode, Schema, Slice } from 'prosemirror-model';
|
|
3
|
-
import { TextSelection, Transaction } from 'prosemirror-state';
|
|
4
|
-
import { ContentNodeWithPos } from 'prosemirror-utils';
|
|
5
|
-
import { EditorView } from 'prosemirror-view';
|
|
6
|
-
|
|
7
2
|
import { CellAttributes } from '@atlaskit/adf-schema';
|
|
8
3
|
import { Command } from '@atlaskit/editor-common/types';
|
|
9
4
|
import {
|
|
@@ -12,6 +7,14 @@ import {
|
|
|
12
7
|
isTextSelection,
|
|
13
8
|
mapSlice,
|
|
14
9
|
} from '@atlaskit/editor-common/utils';
|
|
10
|
+
import {
|
|
11
|
+
Node as PMNode,
|
|
12
|
+
Schema,
|
|
13
|
+
Slice,
|
|
14
|
+
} from '@atlaskit/editor-prosemirror/model';
|
|
15
|
+
import { TextSelection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
16
|
+
import { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
17
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
15
18
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
16
19
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
17
20
|
import {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Node as PmNode, ResolvedPos } from 'prosemirror-model';
|
|
2
|
-
import { Selection, TextSelection } from 'prosemirror-state';
|
|
3
|
-
|
|
4
1
|
import {
|
|
5
2
|
EditorSelectionAPI,
|
|
6
3
|
GapCursorSelection,
|
|
@@ -10,6 +7,11 @@ import {
|
|
|
10
7
|
Side,
|
|
11
8
|
} from '@atlaskit/editor-common/selection';
|
|
12
9
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
10
|
+
import {
|
|
11
|
+
Node as PmNode,
|
|
12
|
+
ResolvedPos,
|
|
13
|
+
} from '@atlaskit/editor-prosemirror/model';
|
|
14
|
+
import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
15
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
14
16
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
15
17
|
import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import { EditorState, Selection, Transaction } from 'prosemirror-state';
|
|
3
|
-
|
|
4
1
|
import { CardAttributes, DataType, UrlType } from '@atlaskit/adf-schema';
|
|
5
2
|
import {
|
|
6
3
|
TableSortOrder as SortOrder,
|
|
@@ -8,6 +5,12 @@ import {
|
|
|
8
5
|
} from '@atlaskit/adf-schema/steps';
|
|
9
6
|
import { Command } from '@atlaskit/editor-common/types';
|
|
10
7
|
import { createCompareNodes } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
|
+
import {
|
|
10
|
+
EditorState,
|
|
11
|
+
Selection,
|
|
12
|
+
Transaction,
|
|
13
|
+
} from '@atlaskit/editor-prosemirror/state';
|
|
11
14
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
12
15
|
import {
|
|
13
16
|
convertArrayOfRowsToTableNode,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region Imports
|
|
2
|
-
import { Transaction } from 'prosemirror-state';
|
|
3
2
|
|
|
4
3
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
5
4
|
import { Command } from '@atlaskit/editor-common/types';
|
|
5
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { findTable, toggleHeader } from '@atlaskit/editor-tables/utils';
|
|
7
7
|
|
|
8
8
|
import { createCommand } from '../pm-plugins/plugin-factory';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Selection } from 'prosemirror-state';
|
|
2
|
-
|
|
3
1
|
import { tableBackgroundColorPalette, TableLayout } from '@atlaskit/adf-schema';
|
|
4
2
|
import { TableSortOrder as SortOrder } from '@atlaskit/adf-schema/steps';
|
|
5
3
|
import {
|
|
@@ -17,6 +15,7 @@ import type {
|
|
|
17
15
|
Command,
|
|
18
16
|
GetEditorContainerWidth,
|
|
19
17
|
} from '@atlaskit/editor-common/types';
|
|
18
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
20
19
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
21
20
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
22
21
|
import {
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
2
|
-
import {
|
|
3
|
-
EditorState,
|
|
4
|
-
Selection,
|
|
5
|
-
TextSelection,
|
|
6
|
-
Transaction,
|
|
7
|
-
} from 'prosemirror-state';
|
|
8
|
-
import { EditorView } from 'prosemirror-view';
|
|
9
|
-
|
|
10
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
11
2
|
import {
|
|
12
3
|
ACTION_SUBJECT,
|
|
@@ -21,6 +12,14 @@ import {
|
|
|
21
12
|
isLastItemMediaGroup,
|
|
22
13
|
setNodeSelection,
|
|
23
14
|
} from '@atlaskit/editor-common/utils';
|
|
15
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
16
|
+
import {
|
|
17
|
+
EditorState,
|
|
18
|
+
Selection,
|
|
19
|
+
TextSelection,
|
|
20
|
+
Transaction,
|
|
21
|
+
} from '@atlaskit/editor-prosemirror/state';
|
|
22
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
24
23
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
25
24
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
26
25
|
import {
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
// #region Imports
|
|
2
|
-
import { NodeType } from 'prosemirror-model';
|
|
3
|
-
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
4
|
-
import { ReadonlyTransaction, Transaction } from 'prosemirror-state';
|
|
5
|
-
import { ContentNodeWithPos, findParentNodeOfType } from 'prosemirror-utils';
|
|
6
|
-
|
|
7
2
|
import { TableColumnOrdering, TableSortStep } from '@atlaskit/adf-schema/steps';
|
|
8
3
|
import { isTextInput } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
6
|
+
import {
|
|
7
|
+
ReadonlyTransaction,
|
|
8
|
+
Transaction,
|
|
9
|
+
} from '@atlaskit/editor-prosemirror/state';
|
|
10
|
+
import {
|
|
11
|
+
ContentNodeWithPos,
|
|
12
|
+
findParentNodeOfType,
|
|
13
|
+
} from '@atlaskit/editor-prosemirror/utils';
|
|
9
14
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
10
15
|
|
|
11
16
|
import { defaultTableSelection } from './pm-plugins/default-table-selection';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Transaction } from 'prosemirror-state';
|
|
4
|
-
import type { EditorView } from 'prosemirror-view';
|
|
5
|
-
|
|
6
3
|
import {
|
|
7
4
|
table,
|
|
8
5
|
tableCell,
|
|
@@ -38,6 +35,8 @@ import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
|
38
35
|
import type { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
39
36
|
import type { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
40
37
|
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
38
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
39
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
41
40
|
import { tableEditing } from '@atlaskit/editor-tables/pm-plugins';
|
|
42
41
|
import { createTable } from '@atlaskit/editor-tables/utils';
|
|
43
42
|
|
|
@@ -2,8 +2,6 @@ import React, { CSSProperties } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import memoizeOne from 'memoize-one';
|
|
5
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
6
|
-
import { EditorView } from 'prosemirror-view';
|
|
7
5
|
import rafSchedule from 'raf-schd';
|
|
8
6
|
|
|
9
7
|
import type { TableColumnOrdering } from '@atlaskit/adf-schema/steps';
|
|
@@ -15,6 +13,8 @@ import type {
|
|
|
15
13
|
GetEditorFeatureFlags,
|
|
16
14
|
} from '@atlaskit/editor-common/types';
|
|
17
15
|
import { browser, isValidPosition } from '@atlaskit/editor-common/utils';
|
|
16
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
17
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
18
18
|
import { akEditorTableToolbarSize as tableToolbarSize } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
20
20
|
|
|
@@ -6,14 +6,14 @@ import React, {
|
|
|
6
6
|
} from 'react';
|
|
7
7
|
|
|
8
8
|
import classNames from 'classnames';
|
|
9
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
10
|
-
import { EditorView } from 'prosemirror-view';
|
|
11
9
|
|
|
12
10
|
import { TableEventPayload } from '@atlaskit/editor-common/analytics';
|
|
13
11
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
14
12
|
import { calcTableWidth } from '@atlaskit/editor-common/styles';
|
|
15
13
|
import { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
16
14
|
import type { GuidelineConfig } from '@atlaskit/editor-plugin-guideline';
|
|
15
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
16
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
17
17
|
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
18
18
|
|
|
19
19
|
import { TABLE_MAX_WIDTH } from '../pm-plugins/table-resizing/utils';
|
|
@@ -118,7 +118,7 @@ export const ResizableTableContainer = ({
|
|
|
118
118
|
|
|
119
119
|
const attachAnalyticsEvent = useCallback(
|
|
120
120
|
(payload: TableEventPayload) => {
|
|
121
|
-
return pluginInjectionApi?.dependencies?.analytics
|
|
121
|
+
return pluginInjectionApi?.dependencies?.analytics?.actions.attachAnalyticsEvent(
|
|
122
122
|
payload,
|
|
123
123
|
);
|
|
124
124
|
},
|
|
@@ -6,9 +6,6 @@ import React, {
|
|
|
6
6
|
useState,
|
|
7
7
|
} from 'react';
|
|
8
8
|
|
|
9
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
10
|
-
import { Transaction } from 'prosemirror-state';
|
|
11
|
-
import { EditorView } from 'prosemirror-view';
|
|
12
9
|
import rafSchd from 'raf-schd';
|
|
13
10
|
|
|
14
11
|
import {
|
|
@@ -24,6 +21,9 @@ import {
|
|
|
24
21
|
ResizerNext,
|
|
25
22
|
} from '@atlaskit/editor-common/resizer';
|
|
26
23
|
import type { GuidelineConfig } from '@atlaskit/editor-plugin-guideline';
|
|
24
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
25
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
26
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
27
27
|
import { TableMap } from '@atlaskit/editor-tables';
|
|
28
28
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
29
29
|
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
DOMOutputSpec,
|
|
5
|
-
DOMSerializer,
|
|
6
|
-
Node as PmNode,
|
|
7
|
-
} from 'prosemirror-model';
|
|
8
|
-
import { EditorState, PluginKey } from 'prosemirror-state';
|
|
9
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
10
|
-
|
|
11
3
|
import type { TableColumnOrdering } from '@atlaskit/adf-schema/steps';
|
|
12
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
13
5
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
@@ -20,6 +12,13 @@ import type {
|
|
|
20
12
|
getPosHandlerNode,
|
|
21
13
|
} from '@atlaskit/editor-common/types';
|
|
22
14
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
15
|
+
import {
|
|
16
|
+
DOMOutputSpec,
|
|
17
|
+
DOMSerializer,
|
|
18
|
+
Node as PmNode,
|
|
19
|
+
} from '@atlaskit/editor-prosemirror/model';
|
|
20
|
+
import { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
21
|
+
import { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
23
22
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
24
23
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
25
24
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { DOMSerializer, Node } from 'prosemirror-model';
|
|
2
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
3
1
|
import uuid from 'uuid';
|
|
4
2
|
|
|
5
3
|
import {
|
|
@@ -12,6 +10,8 @@ import type {
|
|
|
12
10
|
GetEditorFeatureFlags,
|
|
13
11
|
getPosHandler,
|
|
14
12
|
} from '@atlaskit/editor-common/types';
|
|
13
|
+
import { DOMSerializer, Node } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
+
import { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
15
15
|
|
|
16
16
|
const DEFAULT_COL_SPAN = 1;
|
|
17
17
|
const DEFAULT_ROW_SPAN = 1;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
|
|
4
1
|
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
2
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
6
3
|
import type {
|
|
7
4
|
GetEditorContainerWidth,
|
|
8
5
|
GetEditorFeatureFlags,
|
|
9
6
|
} from '@atlaskit/editor-common/types';
|
|
7
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
9
|
|
|
11
10
|
import type { PluginInjectionAPI } from '../types';
|
|
12
11
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
1
2
|
import {
|
|
2
3
|
EditorState,
|
|
3
4
|
PluginKey,
|
|
4
5
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
5
6
|
ReadonlyTransaction,
|
|
6
7
|
Transaction,
|
|
7
|
-
} from 'prosemirror
|
|
8
|
-
import { DecorationSet } from 'prosemirror
|
|
9
|
-
|
|
10
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
|
+
} from '@atlaskit/editor-prosemirror/state';
|
|
9
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
11
10
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
12
11
|
|
|
13
12
|
import { pluginKey as tablePluginKey } from '../plugin-key';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import {
|
|
3
|
+
ReadonlyTransaction,
|
|
4
|
+
Transaction,
|
|
5
|
+
} from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
5
7
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
6
8
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
7
9
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
ReadonlyTransaction,
|
|
4
|
+
Transaction,
|
|
5
|
+
} from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
7
|
|
|
5
8
|
export type DecorationTransformer = ({
|
|
6
9
|
decorationSet,
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { chainCommands } from 'prosemirror-commands';
|
|
2
|
-
import { keymap } from 'prosemirror-keymap';
|
|
3
|
-
|
|
4
1
|
import {
|
|
5
2
|
ACTION,
|
|
6
3
|
ACTION_SUBJECT,
|
|
@@ -12,6 +9,8 @@ import {
|
|
|
12
9
|
import * as keymaps from '@atlaskit/editor-common/keymaps';
|
|
13
10
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
14
11
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
12
|
+
import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
13
|
+
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
15
14
|
|
|
16
15
|
import {
|
|
17
16
|
createTable,
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { Node as ProseMirrorNode } from 'prosemirror-model';
|
|
2
|
-
import { EditorState, TextSelection, Transaction } from 'prosemirror-state';
|
|
3
|
-
import {
|
|
4
|
-
findParentDomRefOfType,
|
|
5
|
-
findParentNodeOfType,
|
|
6
|
-
} from 'prosemirror-utils';
|
|
7
|
-
import { EditorView } from 'prosemirror-view';
|
|
8
|
-
|
|
9
1
|
import {
|
|
10
2
|
ACTION,
|
|
11
3
|
ACTION_SUBJECT,
|
|
@@ -34,6 +26,17 @@ import type {
|
|
|
34
26
|
getPosHandler,
|
|
35
27
|
} from '@atlaskit/editor-common/types';
|
|
36
28
|
import { browser, closestElement } from '@atlaskit/editor-common/utils';
|
|
29
|
+
import { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
30
|
+
import {
|
|
31
|
+
EditorState,
|
|
32
|
+
TextSelection,
|
|
33
|
+
Transaction,
|
|
34
|
+
} from '@atlaskit/editor-prosemirror/state';
|
|
35
|
+
import {
|
|
36
|
+
findParentDomRefOfType,
|
|
37
|
+
findParentNodeOfType,
|
|
38
|
+
} from '@atlaskit/editor-prosemirror/utils';
|
|
39
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
37
40
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
38
41
|
|
|
39
42
|
import {
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
* https://github.com/ProseMirror/prosemirror/issues/934
|
|
4
4
|
* We will remove this plugin when Webkit fix the problem itself.
|
|
5
5
|
*/
|
|
6
|
-
import { PluginKey } from 'prosemirror-state';
|
|
7
|
-
import { Decoration, DecorationSet, EditorView } from 'prosemirror-view';
|
|
8
|
-
|
|
9
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
import {
|
|
9
|
+
Decoration,
|
|
10
|
+
DecorationSet,
|
|
11
|
+
EditorView,
|
|
12
|
+
} from '@atlaskit/editor-prosemirror/view';
|
|
10
13
|
|
|
11
14
|
interface SafariDeleteCompositionTextIssueWorkaroundPluginState {
|
|
12
15
|
renderSpan: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import debounce from 'lodash/debounce';
|
|
2
2
|
import throttle from 'lodash/throttle';
|
|
3
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
4
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
5
3
|
|
|
6
4
|
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
7
5
|
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
6
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
9
7
|
import { mapChildren } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
|
+
import { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
TableCssClassName as ClassName,
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
* TODO: https://product-fabric.atlassian.net/browse/ED-12714
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
-
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
14
|
-
import { EditorState, PluginKey } from 'prosemirror-state';
|
|
15
13
|
import rafSchedule from 'raf-schd';
|
|
16
14
|
|
|
17
15
|
import { uuid } from '@atlaskit/adf-schema';
|
|
18
16
|
import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
19
17
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
20
18
|
import { stepHasSlice } from '@atlaskit/editor-common/utils';
|
|
19
|
+
import { Node as ProsemirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
20
|
+
import { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
21
21
|
|
|
22
22
|
interface TableLocalIdPluginState {
|
|
23
23
|
// One time parse for initial load with existing tables without localIds
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import { Transaction } from 'prosemirror-state';
|
|
3
|
-
import { ContentNodeWithPos } from 'prosemirror-utils';
|
|
4
|
-
|
|
5
1
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
6
5
|
import { isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
7
6
|
|
|
8
7
|
import { updateColumnWidths } from '../../transforms';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
|
-
|
|
3
1
|
import { CellAttributes, TableLayout } from '@atlaskit/adf-schema';
|
|
4
2
|
import {
|
|
5
3
|
ACTION_SUBJECT,
|
|
@@ -13,6 +11,7 @@ import type {
|
|
|
13
11
|
GetEditorContainerWidth,
|
|
14
12
|
GetEditorFeatureFlags,
|
|
15
13
|
} from '@atlaskit/editor-common/types';
|
|
14
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
16
15
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
17
16
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
18
17
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
2
|
-
import { ReadonlyTransaction } from 'prosemirror-state';
|
|
3
|
-
|
|
4
2
|
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
4
|
|
|
6
5
|
import { ColumnResizingPluginState } from '../../types';
|
|
7
6
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { DOMSerializer, Node as PmNode } from 'prosemirror-model';
|
|
2
|
-
|
|
3
1
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
4
2
|
import { getFragmentBackingArray } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import {
|
|
4
|
+
DOMSerializer,
|
|
5
|
+
Node as PmNode,
|
|
6
|
+
} from '@atlaskit/editor-prosemirror/model';
|
|
5
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
3
|
-
|
|
4
1
|
import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
2
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
5
|
|
|
7
6
|
import { contentWidth } from './content-width';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { EditorState } from 'prosemirror-state';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
|
|
4
1
|
import {
|
|
5
2
|
tableCellBorderWidth,
|
|
6
3
|
tableMarginTop,
|
|
@@ -11,6 +8,8 @@ import {
|
|
|
11
8
|
containsClassName,
|
|
12
9
|
parsePx,
|
|
13
10
|
} from '@atlaskit/editor-common/utils';
|
|
11
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
12
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
14
13
|
|
|
15
14
|
import { updateOverflowShadows } from '../../../nodeviews/update-overflow-shadows';
|
|
16
15
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { NodeSpec, Node as PMNode, ResolvedPos } from 'prosemirror-model';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
|
|
5
1
|
import { CellAttributes, TableLayout } from '@atlaskit/adf-schema';
|
|
6
2
|
import {
|
|
7
3
|
getParentNodeWidth,
|
|
@@ -14,6 +10,13 @@ import {
|
|
|
14
10
|
mapBreakpointToLayoutMaxWidth,
|
|
15
11
|
} from '@atlaskit/editor-common/ui';
|
|
16
12
|
import { containsClassName } from '@atlaskit/editor-common/utils';
|
|
13
|
+
import {
|
|
14
|
+
NodeSpec,
|
|
15
|
+
Node as PMNode,
|
|
16
|
+
ResolvedPos,
|
|
17
|
+
} from '@atlaskit/editor-prosemirror/model';
|
|
18
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
19
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
17
20
|
import {
|
|
18
21
|
akEditorFullWidthLayoutWidth,
|
|
19
22
|
akEditorGutterPadding,
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
|
|
4
1
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
5
2
|
import {
|
|
6
3
|
tableCellMinWidth,
|
|
@@ -8,6 +5,8 @@ import {
|
|
|
8
5
|
} from '@atlaskit/editor-common/styles';
|
|
9
6
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
10
7
|
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
11
10
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
12
11
|
|
|
13
12
|
import { getSelectedTableInfo } from '../../../utils';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import { Transaction } from 'prosemirror-state';
|
|
3
|
-
import type { DomAtPos } from 'prosemirror-utils';
|
|
4
|
-
|
|
5
1
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
6
2
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import type { DomAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
7
6
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
8
7
|
|
|
9
8
|
import { updateColumnWidths } from '../../../transforms';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { keymap } from 'prosemirror-keymap';
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
2
|
bindKeymapWithCommand,
|
|
5
3
|
moveLeft,
|
|
@@ -7,6 +5,7 @@ import {
|
|
|
7
5
|
} from '@atlaskit/editor-common/keymaps';
|
|
8
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
9
7
|
import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
|
|
8
|
+
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
10
9
|
|
|
11
10
|
import { arrowLeftFromTable, arrowRightFromTable } from '../commands/selection';
|
|
12
11
|
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Has login to scan the document, add width value to table's width attribute when necessary
|
|
4
4
|
* Also holds resizing state to hide / show table controls
|
|
5
5
|
*/
|
|
6
|
-
import { PluginKey } from 'prosemirror-state';
|
|
7
|
-
import { ReplaceStep } from 'prosemirror-transform';
|
|
8
6
|
|
|
9
7
|
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
10
8
|
import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
11
9
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
10
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
11
|
+
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
12
12
|
import {
|
|
13
13
|
akEditorFullWidthLayoutWidth,
|
|
14
14
|
akEditorWideLayoutWidth,
|