@atlaskit/editor-plugin-table 2.6.4 → 2.6.5
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 +7 -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/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/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/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 +3 -10
- 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 +2 -2
- 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,3 +1,3 @@
|
|
|
1
|
-
import { ReadonlyTransaction, Transaction } from 'prosemirror
|
|
1
|
+
import { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { TablePluginState } from './types';
|
|
3
3
|
export declare const handleDocOrSelectionChanged: (tr: Transaction | ReadonlyTransaction, pluginState: TablePluginState) => TablePluginState;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
2
|
import type { TableColumnOrdering } from '@atlaskit/adf-schema/steps';
|
|
5
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
4
|
import type { EditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import { RowStickyState, StickyPluginState } from '../pm-plugins/sticky-headers';
|
|
8
8
|
import { PluginInjectionAPI, ShadowEvent } from '../types';
|
|
9
9
|
import type { TableOptions } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
2
|
import { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import { PluginInjectionAPI } from '../types';
|
|
6
6
|
type InnerContainerProps = {
|
|
7
7
|
className: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
3
|
-
import { Transaction } from 'prosemirror-state';
|
|
4
|
-
import { EditorView } from 'prosemirror-view';
|
|
5
2
|
import { TableEventPayload } from '@atlaskit/editor-common/analytics';
|
|
6
3
|
import type { GuidelineConfig } from '@atlaskit/editor-plugin-guideline';
|
|
4
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
interface TableResizerProps {
|
|
8
8
|
width: number;
|
|
9
9
|
maxWidth: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
3
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
4
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
6
4
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
7
5
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
6
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import { PluginInjectionAPI } from '../types';
|
|
9
9
|
import { Props, TableOptions } from './types';
|
|
10
10
|
type ForwardRef = (node: HTMLElement | null) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Node } from 'prosemirror-model';
|
|
2
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
3
1
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
2
|
import type { GetEditorFeatureFlags, getPosHandler } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
export default class TableCellNodeView implements NodeView {
|
|
6
6
|
node: Node;
|
|
7
7
|
dom: HTMLElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
1
|
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
2
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
3
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import type { PluginInjectionAPI } from '../types';
|
|
7
7
|
export type TableOptions = {
|
|
8
8
|
isBreakoutEnabled?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorState, PluginKey, ReadonlyTransaction, Transaction } from 'prosemirror-state';
|
|
2
|
-
import { DecorationSet } from 'prosemirror-view';
|
|
3
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import { EditorState, PluginKey, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
export declare const pluginKey: PluginKey<any>;
|
|
5
5
|
export declare const getDecorations: (state: EditorState) => DecorationSet;
|
|
6
6
|
export declare const handleDocOrSelectionChanged: (tr: Transaction | ReadonlyTransaction, decorationSet: DecorationSet, oldState: EditorState, newState: EditorState) => DecorationSet;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReadonlyTransaction, Transaction } from 'prosemirror
|
|
2
|
-
import { DecorationSet } from 'prosemirror
|
|
1
|
+
import { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
export type DecorationTransformer = ({ decorationSet, tr, }: {
|
|
4
4
|
decorationSet: DecorationSet;
|
|
5
5
|
tr: Transaction | ReadonlyTransaction;
|
package/dist/types/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts
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 { DecorationSet } from 'prosemirror-view';
|
|
8
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
interface SafariDeleteCompositionTextIssueWorkaroundPluginState {
|
|
10
10
|
renderSpan: boolean;
|
|
11
11
|
decorations: DecorationSet;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
3
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
4
2
|
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
3
|
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { TablePluginState } from '../../../types';
|
|
7
7
|
import { TableDOMElements } from './dom';
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import { Transaction } from 'prosemirror-state';
|
|
3
|
-
import { ContentNodeWithPos } from 'prosemirror-utils';
|
|
4
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';
|
|
5
5
|
import { ResizeState } from './utils';
|
|
6
6
|
export declare const evenColumns: ({ resizeState, table, start, event, }: {
|
|
7
7
|
resizeState: ResizeState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
export declare const handleMouseDown: (view: EditorView, event: MouseEvent, localResizeHandlePos: number, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, editorAnalyticsAPI?: EditorAnalyticsAPI) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorState } from 'prosemirror-state';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
1
|
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
export declare const updateControls: (getEditorFeatureFlags: GetEditorFeatureFlags) => (state: EditorState) => void;
|
|
5
5
|
export declare const isClickNear: (event: MouseEvent, click: {
|
|
6
6
|
x: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Node as PMNode, ResolvedPos } from 'prosemirror-model';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
1
|
import { CellAttributes, TableLayout } from '@atlaskit/adf-schema';
|
|
5
2
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { TableOptions } from '../../../nodeviews/types';
|
|
7
7
|
export declare function getLayoutSize(tableLayout: TableLayout, containerWidth: number | undefined, options: TableOptions): number;
|
|
8
8
|
export declare function getDefaultLayoutMaxWidth(containerWidth?: number): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import { EditorState } from 'prosemirror-state';
|
|
3
1
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
4
2
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { ResizeState, ResizeStateWithAnalytics } from './types';
|
|
7
7
|
export declare const getResizeState: ({ minWidth, maxSize, table, tableRef, start, domAtPos, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror
|
|
2
|
-
import { Transaction } from 'prosemirror
|
|
3
|
-
import type { DomAtPos } from 'prosemirror
|
|
1
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { DomAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
import { ResizeState } from '../utils/types';
|
|
5
5
|
export interface ScaleOptions {
|
|
6
6
|
node: PMNode;
|
|
@@ -3,9 +3,9 @@
|
|
|
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
6
|
import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
8
7
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
type TableWidthPluginState = {
|
|
10
10
|
resizing: boolean;
|
|
11
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EditorState } from 'prosemirror-state';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
2
|
import type { Command, FloatingToolbarDropdown, FloatingToolbarHandler, FloatingToolbarItem, GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
6
6
|
import { PluginConfig, ToolbarMenuConfig, ToolbarMenuContext, ToolbarMenuState } from './types';
|
|
7
7
|
export declare const messages: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import { Transaction } from 'prosemirror-state';
|
|
3
|
-
import { ContentNodeWithPos } from 'prosemirror-utils';
|
|
4
|
-
import { EditorView } from 'prosemirror-view';
|
|
5
1
|
import type { GetEditorContainerWidth } 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';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { ResizeState } from '../pm-plugins/table-resizing/utils';
|
|
7
7
|
export declare const updateColumnWidths: (resizeState: ResizeState, table: PMNode, start: number) => (tr: Transaction) => Transaction;
|
|
8
8
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Transaction } from 'prosemirror
|
|
1
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
3
3
|
export declare const deleteColumns: (rect: Rect, allowAddColumnCustomStep?: boolean) => (tr: Transaction) => Transaction;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Transaction } from 'prosemirror
|
|
1
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
3
3
|
export declare const deleteRows: (rect: Rect, isHeaderRowRequired?: boolean) => (tr: Transaction) => Transaction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror
|
|
2
|
-
import { Transaction } from 'prosemirror
|
|
3
|
-
import { EditorView } from 'prosemirror
|
|
1
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import { ReportInvalidNodeAttrs } from '../types';
|
|
5
5
|
export declare const removeExtraneousColumnWidths: (node: PMNode, basePos: number, tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs) => boolean;
|
|
6
6
|
export declare const fixTables: (tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs) => Transaction | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror
|
|
2
|
-
import { Transaction } from 'prosemirror
|
|
1
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare function mergeCells(tr: Transaction): Transaction;
|
|
4
4
|
export declare function canMergeCells(tr: Transaction): boolean;
|
|
5
5
|
export declare function mergeEmptyColumns(table: PMNode): PMNode | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Slice } from 'prosemirror-model';
|
|
2
|
-
import { EditorState, Transaction } from 'prosemirror-state';
|
|
3
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
export declare const replaceSelectedTable: (state: EditorState, content: string | Slice, inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.CLIPBOARD, editorAnalyticsAPI?: EditorAnalyticsAPI) => Transaction;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
2
|
-
import { Transaction } from 'prosemirror-state';
|
|
3
|
-
import { DecorationSet } from 'prosemirror-view';
|
|
4
1
|
import { IntlShape } from 'react-intl-next';
|
|
5
2
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
6
3
|
import { TableColumnOrdering } from '@atlaskit/adf-schema/steps';
|
|
7
4
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
5
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
+
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
10
10
|
import type tablePlugin from './index';
|
|
11
11
|
export declare const RESIZE_HANDLE_AREA_DECORATION_GAP = 30;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
2
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
5
3
|
import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
7
7
|
export interface Props {
|
|
8
8
|
editorView: EditorView;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { EditorView } from 'prosemirror-view';
|
|
5
4
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
5
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
6
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
9
9
|
export declare const messages: {
|
|
10
10
|
cellBackground: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
4
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { PluginConfig } from '../../types';
|
|
7
7
|
export interface Props {
|
|
8
8
|
editorView: EditorView;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { Selection } from 'prosemirror-state';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
6
6
|
import { CellSelectionType } from './types';
|
|
7
7
|
export interface Props {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Node as PmNode } from 'prosemirror-model';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
4
|
import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
7
5
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
6
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
export interface Props {
|
|
9
9
|
editorView: EditorView;
|
|
10
10
|
getEditorContainerWidth: GetEditorContainerWidth;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
3
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
5
4
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
7
7
|
export interface Props {
|
|
8
8
|
editorView: EditorView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
export interface Props {
|
|
5
5
|
editorView: EditorView;
|
|
6
6
|
tableRef?: HTMLTableElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
export interface Props {
|
|
5
5
|
editorView: EditorView;
|
|
6
6
|
tableRef: HTMLTableElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { Selection } from 'prosemirror-state';
|
|
3
|
-
import { EditorView } from 'prosemirror-view';
|
|
4
2
|
import type { TableColumnOrdering } from '@atlaskit/adf-schema/steps';
|
|
5
3
|
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
7
7
|
export interface Props {
|
|
8
8
|
editorView: EditorView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Selection } from 'prosemirror-state';
|
|
2
1
|
import type { AnalyticsEventPayload, AnalyticsEventPayloadCallback, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import { HigherOrderCommand } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
5
5
|
export declare function getSelectedTableInfo(selection: Selection): {
|
|
6
6
|
table: import("prosemirror-utils").ContentNodeWithPos | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NodeRange, NodeType } from 'prosemirror
|
|
2
|
-
import { ReadonlyTransaction, Transaction } from 'prosemirror
|
|
1
|
+
import { NodeRange, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
interface IsTableCollapsibleResult {
|
|
4
4
|
tableIsCollapsible: boolean;
|
|
5
5
|
range?: NodeRange;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Selection } from 'prosemirror
|
|
2
|
-
import { EditorView } from 'prosemirror
|
|
1
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
export declare const getColumnsWidths: (view: EditorView) => Array<number | undefined>;
|
|
4
4
|
export declare const isColumnDeleteButtonVisible: (selection: Selection) => boolean;
|
|
5
5
|
export declare const getColumnDeleteButtonParams: (columnsWidths: Array<number | undefined>, selection: Selection) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Node as PmNode } from 'prosemirror
|
|
2
|
-
import { ReadonlyTransaction, Selection, Transaction } from 'prosemirror
|
|
3
|
-
import { Decoration, DecorationSet } from 'prosemirror
|
|
1
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { ReadonlyTransaction, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import { Cell, CellColumnPositioning, TableDecorations } from '../types';
|
|
5
5
|
export declare const findColumnControlSelectedDecoration: (decorationSet: DecorationSet) => Decoration[];
|
|
6
6
|
export declare const findControlsHoverDecoration: (decorationSet: DecorationSet) => Decoration[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EditorState } from 'prosemirror
|
|
1
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
export declare function getAllowAddColumnCustomStep(state: EditorState): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node as PmNode } from 'prosemirror
|
|
2
|
-
import { EditorState, Selection } from 'prosemirror
|
|
1
|
+
import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare const isIsolating: (node: PmNode) => boolean;
|
|
4
4
|
export declare const containsHeaderColumn: (table: PmNode) => boolean;
|
|
5
5
|
export declare const containsHeaderRow: (table: PmNode) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fragment, Node as PMNode, Schema, Slice } from 'prosemirror
|
|
2
|
-
import { EditorState } from 'prosemirror
|
|
1
|
+
import { Fragment, Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare const unwrapContentFromTable: (maybeTable: PMNode) => PMNode | PMNode[];
|
|
4
4
|
export declare const removeTableFromFirstChild: (node: PMNode, i: number) => PMNode | PMNode[];
|
|
5
5
|
export declare const removeTableFromLastChild: (node: PMNode, i: number, fragment: Fragment) => PMNode | PMNode[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schema } from 'prosemirror
|
|
2
|
-
import { Selection, Transaction } from 'prosemirror
|
|
1
|
+
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export interface RowParams {
|
|
4
4
|
startIndex: number;
|
|
5
5
|
endIndex: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Selection, Transaction } from 'prosemirror
|
|
1
|
+
import { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
3
3
|
export declare const isSelectionUpdated: (oldSelection: Selection, newSelection?: Selection) => boolean;
|
|
4
4
|
export declare const normalizeSelection: (tr: Transaction) => Transaction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Transaction } from 'prosemirror
|
|
1
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
3
3
|
export declare const getMergedCellsPositions: (tr: Transaction) => number[];
|
|
4
4
|
export declare const colsToRect: (cols: Array<number>, noOfRows: number) => Rect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorState } from 'prosemirror
|
|
2
|
-
import { Decoration, DecorationSet } from 'prosemirror
|
|
1
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import { TableDecorations } from '../types';
|
|
4
4
|
export declare const updatePluginStateDecorations: (state: EditorState, decorations: Decoration[], key: TableDecorations) => DecorationSet;
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Node as PMNode, Schema, Slice } from 'prosemirror-model';
|
|
2
|
-
import { Transaction } from 'prosemirror-state';
|
|
3
|
-
import { ContentNodeWithPos } from 'prosemirror-utils';
|
|
4
|
-
import { EditorView } from 'prosemirror-view';
|
|
5
1
|
import { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const setEditorFocus: (editorHasFocus: boolean) => Command;
|
|
7
7
|
export declare const setTableRef: (ref?: HTMLTableElement) => Command;
|
|
8
8
|
export declare const setCellAttr: (name: string, value: any) => Command;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Node as PMNode } from 'prosemirror
|
|
1
|
+
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const removeDescendantNodes: (sourceNode: PMNode) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
|
-
import { EditorView } from 'prosemirror-view';
|
|
3
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
2
|
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import { ElementContentRects } from './types';
|
|
6
6
|
export declare const handleBlur: (view: EditorView, event: Event) => boolean;
|
|
7
7
|
export declare const handleFocus: (view: EditorView, event: Event) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReadonlyTransaction, Transaction } from 'prosemirror
|
|
1
|
+
import { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { TablePluginState } from './types';
|
|
3
3
|
export declare const handleDocOrSelectionChanged: (tr: Transaction | ReadonlyTransaction, pluginState: TablePluginState) => TablePluginState;
|