@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,11 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
5
4
|
import { injectIntl } from 'react-intl-next';
|
|
6
5
|
import { ACTION, ACTION_SUBJECT, CONTENT_COMPONENT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
6
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
8
7
|
import { closestElement } from '@atlaskit/editor-common/utils';
|
|
8
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
9
9
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
10
10
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
11
11
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { createRef } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
5
4
|
import { injectIntl } from 'react-intl-next';
|
|
6
5
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
7
6
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
8
7
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
8
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
9
9
|
import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
|
|
10
10
|
import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
|
|
11
11
|
import { toggleTableLayoutWithAnalytics } from '../../commands-with-analytics';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
|
-
import { Selection } from 'prosemirror
|
|
3
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { isRowSelected } from '@atlaskit/editor-tables/utils';
|
|
5
5
|
import { clearHoverSelection } from '../../../commands';
|
|
6
6
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NodeRange } from 'prosemirror
|
|
1
|
+
import { NodeRange } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
3
3
|
|
|
4
|
-
import { findWrapping } from 'prosemirror
|
|
4
|
+
import { findWrapping } from '@atlaskit/editor-prosemirror/transform';
|
|
5
5
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
6
6
|
const bail = () => ({
|
|
7
7
|
tableIsCollapsible: false
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
2
1
|
import { maphElem } from '@atlaskit/editor-common/utils';
|
|
2
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
5
|
import { findTable, getCellsInColumn, getSelectionRect, isColumnSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { nonNullable } from '@atlaskit/editor-common/utils';
|
|
2
|
+
|
|
1
3
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
2
4
|
|
|
3
|
-
import { Decoration } from 'prosemirror
|
|
4
|
-
import { nonNullable } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
7
|
import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
7
8
|
import { TableCssClassName as ClassName, TableDecorations } from '../types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasParentNodeOfType } from 'prosemirror
|
|
1
|
+
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
3
3
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
4
4
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fragment, Slice } from 'prosemirror-model';
|
|
2
|
-
import { flatten } from 'prosemirror-utils';
|
|
3
1
|
import { flatmap, mapSlice } from '@atlaskit/editor-common/utils';
|
|
2
|
+
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { flatten } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
5
5
|
|
|
6
6
|
// lifts up the content of each cell, returning an array of nodes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { safeInsert } from 'prosemirror-utils';
|
|
2
1
|
import { parsePx } from '@atlaskit/editor-common/utils';
|
|
2
|
+
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
5
|
import { findTable, getSelectionRect, isRowSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// #region Constants
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
4
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
6
|
import { goToNextCell as baseGotoNextCell, findTable } from '@atlaskit/editor-tables/utils';
|
|
6
7
|
import { insertRowWithAnalytics } from '../commands-with-analytics';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// #region Imports
|
|
2
|
-
import { Selection } from 'prosemirror-state';
|
|
3
|
-
import { safeInsert } from 'prosemirror-utils';
|
|
4
2
|
import { AddColumnStep } from '@atlaskit/adf-schema/steps';
|
|
3
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { addColumnAt as addColumnAtPMUtils, addRowAt, createTable as createTableNode, findTable, selectedRect } from '@atlaskit/editor-tables/utils';
|
|
7
7
|
import { rescaleColumns } from '../transforms/column-width';
|
|
@@ -3,8 +3,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
// #region Imports
|
|
5
5
|
|
|
6
|
-
import { TextSelection } from 'prosemirror-state';
|
|
7
6
|
import { closestElement, isParagraph, isTextSelection, mapSlice } from '@atlaskit/editor-common/utils';
|
|
7
|
+
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
9
9
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
10
10
|
import { findCellClosestToPos, findTable, getCellsInColumn, getCellsInRow, getSelectionRect, isSelectionType, isTableSelected, removeTable, selectColumn as selectColumnTransform, selectionCell, selectRow as selectRowTransform, setCellAttrs } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Selection, TextSelection } from 'prosemirror-state';
|
|
2
1
|
import { GapCursorSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
|
|
2
|
+
import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
5
|
import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Selection } from 'prosemirror-state';
|
|
2
1
|
import { TableSortOrder as SortOrder, TableSortStep } from '@atlaskit/adf-schema/steps';
|
|
3
2
|
import { createCompareNodes } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
5
|
import { convertArrayOfRowsToTableNode, convertTableNodeToArrayOfRows, findCellRectClosestToPos, findTable, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
6
6
|
import { createCommand, getPluginState } from '../pm-plugins/plugin-factory';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import { Selection, TextSelection } from 'prosemirror-state';
|
|
3
2
|
import { ACTION_SUBJECT, EVENT_TYPE, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
|
|
4
3
|
import { browser, closestElement, isElementInTableCell, isLastItemMediaGroup, setNodeSelection } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
6
6
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
7
7
|
import { cellAround, findCellRectClosestToPos, findTable, getSelectionRect, removeTable } from '@atlaskit/editor-tables/utils';
|
|
@@ -2,12 +2,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
// #region Imports
|
|
5
|
+
import { TableSortStep } from '@atlaskit/adf-schema/steps';
|
|
6
|
+
import { isTextInput } from '@atlaskit/editor-common/utils';
|
|
5
7
|
|
|
6
8
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
7
9
|
|
|
8
|
-
import { findParentNodeOfType } from 'prosemirror
|
|
9
|
-
import { TableSortStep } from '@atlaskit/adf-schema/steps';
|
|
10
|
-
import { isTextInput } from '@atlaskit/editor-common/utils';
|
|
10
|
+
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
11
11
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
12
12
|
import { defaultTableSelection } from './pm-plugins/default-table-selection';
|
|
13
13
|
import { pluginKey as tableResizingPluginKey } from './pm-plugins/table-resizing';
|
|
@@ -61,8 +61,8 @@ export var ResizableTableContainer = function ResizableTableContainer(_ref2) {
|
|
|
61
61
|
})) !== null && _pluginInjectionApi$d !== void 0 ? _pluginInjectionApi$d : false;
|
|
62
62
|
}, [pluginInjectionApi, editorView]);
|
|
63
63
|
var attachAnalyticsEvent = useCallback(function (payload) {
|
|
64
|
-
var _pluginInjectionApi$d5;
|
|
65
|
-
return pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d5 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d5 === void 0 ? void 0 : _pluginInjectionApi$d5.analytics.actions.attachAnalyticsEvent(payload);
|
|
64
|
+
var _pluginInjectionApi$d5, _pluginInjectionApi$d6;
|
|
65
|
+
return pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d5 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d5 === void 0 ? void 0 : (_pluginInjectionApi$d6 = _pluginInjectionApi$d5.analytics) === null || _pluginInjectionApi$d6 === void 0 ? void 0 : _pluginInjectionApi$d6.actions.attachAnalyticsEvent(payload);
|
|
66
66
|
}, [pluginInjectionApi]);
|
|
67
67
|
var tableWidth = getTableContainerWidth(node);
|
|
68
68
|
// 76 is currently an accepted padding value considering the spacing for resizer handle
|
|
@@ -11,10 +11,10 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
12
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import { DOMSerializer } from 'prosemirror-model';
|
|
15
14
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
16
15
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
17
16
|
import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
|
|
17
|
+
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
18
18
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
20
20
|
import { pluginConfig as getPluginConfig } from '../create-plugin-config';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import { DOMSerializer } from 'prosemirror-model';
|
|
5
4
|
import uuid from 'uuid';
|
|
6
5
|
import { getCellAttrs, getCellDomAttrs } from '@atlaskit/adf-schema';
|
|
6
|
+
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
7
7
|
var DEFAULT_COL_SPAN = 1;
|
|
8
8
|
var DEFAULT_ROW_SPAN = 1;
|
|
9
9
|
var TableCellNodeView = /*#__PURE__*/function () {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
1
2
|
import { PluginKey
|
|
2
3
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
3
|
-
} from 'prosemirror
|
|
4
|
-
import { DecorationSet } from 'prosemirror
|
|
5
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
+
} from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
7
7
|
import { pluginKey as tablePluginKey } from '../plugin-key';
|
|
8
8
|
import { pluginKey as tableWidthPluginKey } from '../table-width';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { chainCommands } from 'prosemirror-commands';
|
|
2
|
-
import { keymap } from 'prosemirror-keymap';
|
|
3
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
2
|
import * as keymaps from '@atlaskit/editor-common/keymaps';
|
|
3
|
+
import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
4
|
+
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
5
5
|
import { createTable, goToNextCell, moveCursorBackward, triggerUnlessTableHeader } from '../commands';
|
|
6
6
|
import { addRowAroundSelection, deleteTableIfSelectedWithAnalytics, emptyMultipleCellsWithAnalytics } from '../commands-with-analytics';
|
|
7
7
|
import { addColumnAfter, addColumnBefore } from '../commands/insert';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
import { findParentDomRefOfType, findParentNodeOfType } from 'prosemirror-utils';
|
|
5
4
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
5
|
import { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
7
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
7
|
import { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenLayoutNodes } from '@atlaskit/editor-common/transforms';
|
|
9
8
|
import { browser, closestElement } from '@atlaskit/editor-common/utils';
|
|
9
|
+
import { findParentDomRefOfType, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { addBoldInEmptyHeaderCells, clearHoverSelection, setTableRef } from '../commands';
|
|
12
12
|
import { transformSliceRemoveCellBackgroundColor, transformSliceToAddTableHeaders, transformSliceToRemoveColumnsWidths } from '../commands/misc';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PluginKey } from 'prosemirror
|
|
1
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
export var pluginKey = new PluginKey('tablePlugin');
|
package/dist/esm/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
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 } from 'prosemirror-view';
|
|
8
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
export var tableSafariDeleteCompositionTextIssueWorkaroundKey = new PluginKey('tableSafariDeleteCompositionTextIssueWorkaround');
|
|
10
10
|
export var createPlugin = function createPlugin() {
|
|
11
11
|
return new SafePlugin({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PluginKey } from 'prosemirror
|
|
1
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
export var pluginKey = new PluginKey('stickyHeadersPlugin');
|
|
@@ -16,12 +16,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
16
16
|
* TODO: https://product-fabric.atlassian.net/browse/ED-12714
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
import { PluginKey } from 'prosemirror-state';
|
|
21
19
|
import rafSchedule from 'raf-schd';
|
|
22
20
|
import { uuid } from '@atlaskit/adf-schema';
|
|
23
21
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
24
22
|
import { stepHasSlice } from '@atlaskit/editor-common/utils';
|
|
23
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
25
24
|
var pluginKey = new PluginKey('tableLocalIdPlugin');
|
|
26
25
|
var getPluginState = function getPluginState(state) {
|
|
27
26
|
return state && pluginKey.getState(state);
|
|
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
5
|
-
|
|
6
5
|
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
7
6
|
import { pluginKey } from './plugin-key';
|
|
8
7
|
import reducer from './reducer';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PluginKey } from 'prosemirror
|
|
1
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
export var pluginKey = new PluginKey('tableFlexiColumnResizing');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { DOMSerializer } from 'prosemirror-model';
|
|
3
2
|
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
4
3
|
import { getFragmentBackingArray } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
export var generateColgroup = function generateColgroup(table) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
2
1
|
import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
2
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
4
|
import { contentWidth } from './content-width';
|
|
5
5
|
import { unitToNumber } from './unit-to-number';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { keymap } from 'prosemirror-keymap';
|
|
2
1
|
import { bindKeymapWithCommand, moveLeft, moveRight } from '@atlaskit/editor-common/keymaps';
|
|
2
|
+
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
3
3
|
import { arrowLeftFromTable, arrowRightFromTable } from '../commands/selection';
|
|
4
4
|
export function tableSelectionKeymapPlugin(editorSelectionAPI) {
|
|
5
5
|
var list = {};
|
|
@@ -8,10 +8,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8
8
|
* Has login to scan the document, add width value to table's width attribute when necessary
|
|
9
9
|
* Also holds resizing state to hide / show table controls
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
import { ReplaceStep } from 'prosemirror-transform';
|
|
11
|
+
|
|
13
12
|
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
14
13
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
14
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
15
|
+
import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
15
16
|
import { akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
16
17
|
export var pluginKey = new PluginKey('tableWidthPlugin');
|
|
17
18
|
var createPlugin = function createPlugin(dispatch, fullWidthEnabled) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { findParentDomRefOfType } from 'prosemirror-utils';
|
|
4
3
|
import { defineMessages } from 'react-intl-next';
|
|
5
4
|
import { TableSortOrder as SortOrder } from '@atlaskit/adf-schema/steps';
|
|
6
5
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -8,6 +7,7 @@ import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/edito
|
|
|
8
7
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
9
8
|
import { cellBackgroundColorPalette, DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
10
9
|
import { closestElement, getChildrenInfo as _getChildrenInfo, getNodeName, isReferencedSource } from '@atlaskit/editor-common/utils';
|
|
10
|
+
import { findParentDomRefOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
11
11
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
13
13
|
import { findCellRectClosestToPos, findTable, getSelectionRect, isSelectionType, splitCell } from '@atlaskit/editor-tables/utils';
|
|
@@ -2,8 +2,8 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
-
import { Selection } from 'prosemirror-state';
|
|
6
5
|
import { AddColumnStep } from '@atlaskit/adf-schema/steps';
|
|
6
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
8
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
9
9
|
import { splitCellsInColumns } from './split';
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
-
import { Selection } from 'prosemirror
|
|
5
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
7
7
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
8
8
|
import { mergeEmptyColumns } from './merge';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
import { Fragment } from 'prosemirror
|
|
5
|
-
import { Selection } from 'prosemirror
|
|
4
|
+
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
7
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
8
|
import { findTable, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fragment, Slice } from 'prosemirror-model';
|
|
2
|
-
import { TextSelection } from 'prosemirror-state';
|
|
3
1
|
import { ACTION_SUBJECT, EVENT_TYPE, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
5
5
|
import { getSelectedTableInfo } from '../utils';
|
|
6
6
|
export var replaceSelectedTable = function replaceSelectedTable(state, content, inputMethod, editorAnalyticsAPI) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
5
4
|
import { injectIntl } from 'react-intl-next';
|
|
6
5
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
7
6
|
import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
|
|
8
7
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
9
8
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
9
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
import { akEditorSmallZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
12
12
|
import { toggleContextualMenu } from '../../commands';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
4
3
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
4
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { akEditorFloatingDialogZIndex, akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
7
7
|
import { getPluginState } from '../../pm-plugins/plugin-factory';
|
|
@@ -9,11 +9,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
13
12
|
import { injectIntl } from 'react-intl-next';
|
|
14
13
|
import { ACTION, ACTION_SUBJECT, CONTENT_COMPONENT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
15
14
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
16
15
|
import { closestElement } from '@atlaskit/editor-common/utils';
|
|
16
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
17
17
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
18
18
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
19
19
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
@@ -11,11 +11,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
12
|
import React, { createRef } from 'react';
|
|
13
13
|
import classnames from 'classnames';
|
|
14
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
15
14
|
import { injectIntl } from 'react-intl-next';
|
|
16
15
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
17
16
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
18
17
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
18
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
19
19
|
import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
|
|
20
20
|
import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
|
|
21
21
|
import { toggleTableLayoutWithAnalytics } from '../../commands-with-analytics';
|
|
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
import React, { Component } from 'react';
|
|
11
|
-
import { Selection } from 'prosemirror
|
|
11
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import { isRowSelected } from '@atlaskit/editor-tables/utils';
|
|
13
13
|
import { clearHoverSelection } from '../../../commands';
|
|
14
14
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NodeRange } from 'prosemirror
|
|
1
|
+
import { NodeRange } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
3
3
|
|
|
4
|
-
import { findWrapping } from 'prosemirror
|
|
4
|
+
import { findWrapping } from '@atlaskit/editor-prosemirror/transform';
|
|
5
5
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
6
6
|
var bail = function bail() {
|
|
7
7
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
3
2
|
import { maphElem } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
5
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { findTable, getCellsInColumn, getSelectionRect, isColumnSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import { nonNullable } from '@atlaskit/editor-common/utils';
|
|
3
|
+
|
|
2
4
|
// @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
|
|
3
5
|
|
|
4
|
-
import { Decoration } from 'prosemirror
|
|
5
|
-
import { nonNullable } from '@atlaskit/editor-common/utils';
|
|
6
|
+
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
6
7
|
import { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
7
8
|
import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
8
9
|
import { TableCssClassName as ClassName, TableDecorations } from '../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { hasParentNodeOfType } from 'prosemirror
|
|
2
|
+
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
4
4
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
5
5
|
import { pluginKey } from '../pm-plugins/plugin-key';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { Fragment, Slice } from 'prosemirror-model';
|
|
3
|
-
import { flatten } from 'prosemirror-utils';
|
|
4
2
|
import { flatmap, mapSlice } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { flatten } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
6
6
|
|
|
7
7
|
// lifts up the content of each cell, returning an array of nodes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
import { safeInsert } from 'prosemirror-utils';
|
|
5
4
|
import { parsePx } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
7
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
8
|
import { findTable, getSelectionRect, isRowSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Transaction } from 'prosemirror-state';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
1
|
import { Command } from '@atlaskit/editor-common/types';
|
|
4
2
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
export declare function addColumnAt(getEditorContainerWidth: GetEditorContainerWidth): (column: number, allowAddColumnCustomStep: boolean | undefined, view: EditorView | undefined) => (tr: Transaction) => Transaction;
|
|
6
6
|
export declare const addColumnBefore: (getEditorContainerWidth: GetEditorContainerWidth) => Command;
|
|
7
7
|
export declare const addColumnAfter: (getEditorContainerWidth: GetEditorContainerWidth) => Command;
|