@atlaskit/editor-plugin-table 2.3.0 → 2.4.0
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/.eslintrc.js +6 -0
- package/CHANGELOG.md +12 -0
- package/dist/cjs/plugins/table/commands/go-to-next-cell.js +2 -2
- package/dist/cjs/plugins/table/commands/insert.js +3 -3
- package/dist/cjs/plugins/table/commands/misc.js +26 -26
- package/dist/cjs/plugins/table/commands/referentiality.js +1 -1
- package/dist/cjs/plugins/table/commands/selection.js +2 -2
- package/dist/cjs/plugins/table/commands/sort.js +8 -8
- package/dist/cjs/plugins/table/commands-with-analytics.js +3 -3
- package/dist/cjs/plugins/table/event-handlers.js +15 -15
- package/dist/cjs/plugins/table/handlers.js +6 -7
- package/dist/cjs/plugins/table/index.js +16 -16
- package/dist/cjs/plugins/table/nodeviews/TableComponent.js +44 -40
- package/dist/cjs/plugins/table/nodeviews/TableContainer.js +10 -8
- package/dist/cjs/plugins/table/nodeviews/TableResizer.js +2 -2
- package/dist/cjs/plugins/table/nodeviews/table.js +11 -9
- package/dist/cjs/plugins/table/nodeviews/tableCell.js +1 -1
- package/dist/cjs/plugins/table/pm-plugins/decorations/plugin.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/keymap.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/main.js +24 -21
- package/dist/cjs/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +1 -1
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-local-id.js +1 -1
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/commands.js +1 -1
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/event-handlers.js +4 -4
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +1 -1
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/column-state.js +1 -1
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/dom.js +1 -1
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/misc.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +1 -1
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +2 -3
- package/dist/cjs/plugins/table/pm-plugins/table-width.js +3 -3
- package/dist/cjs/plugins/table/toolbar.js +26 -26
- package/dist/cjs/plugins/table/transforms/column-width.js +5 -5
- package/dist/cjs/plugins/table/transforms/delete-columns.js +1 -1
- package/dist/cjs/plugins/table/transforms/merge.js +1 -1
- package/dist/cjs/plugins/table/transforms/replace-table.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/FixedButton.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +3 -3
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/styles.js +1 -1
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +11 -11
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/styles.js +6 -3
- package/dist/cjs/plugins/table/ui/FloatingDeleteButton/index.js +10 -10
- package/dist/cjs/plugins/table/ui/FloatingInsertButton/InsertButton.js +3 -3
- package/dist/cjs/plugins/table/ui/FloatingInsertButton/index.js +9 -9
- package/dist/cjs/plugins/table/ui/LayoutButton/index.js +3 -3
- package/dist/cjs/plugins/table/ui/TableFloatingControls/CornerControls/index.js +1 -1
- package/dist/cjs/plugins/table/ui/common-styles.js +2 -2
- package/dist/cjs/plugins/table/ui/consts.js +2 -2
- package/dist/cjs/plugins/table/ui/ui-styles.js +2 -2
- package/dist/cjs/plugins/table/utils/column-controls.js +11 -11
- package/dist/cjs/plugins/table/utils/decoration.js +11 -11
- package/dist/cjs/plugins/table/utils/nodes.js +1 -1
- package/dist/cjs/plugins/table/utils/row-controls.js +9 -9
- package/dist/cjs/plugins/table/utils/selection.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/table/commands/clear.js +3 -1
- package/dist/es2019/plugins/table/commands/go-to-next-cell.js +2 -2
- package/dist/es2019/plugins/table/commands/insert.js +4 -3
- package/dist/es2019/plugins/table/commands/misc.js +4 -4
- package/dist/es2019/plugins/table/commands/referentiality.js +1 -1
- package/dist/es2019/plugins/table/commands/selection.js +3 -3
- package/dist/es2019/plugins/table/commands/sort.js +3 -4
- package/dist/es2019/plugins/table/commands/toggle.js +1 -2
- package/dist/es2019/plugins/table/commands-with-analytics.js +4 -4
- package/dist/es2019/plugins/table/event-handlers.js +3 -5
- package/dist/es2019/plugins/table/handlers.js +5 -5
- package/dist/es2019/plugins/table/index.js +16 -16
- package/dist/es2019/plugins/table/nodeviews/OverflowShadowsObserver.js +1 -1
- package/dist/es2019/plugins/table/nodeviews/TableComponent.js +21 -18
- package/dist/es2019/plugins/table/nodeviews/TableContainer.js +10 -9
- package/dist/es2019/plugins/table/nodeviews/TableResizer.js +4 -4
- package/dist/es2019/plugins/table/nodeviews/table.js +11 -9
- package/dist/es2019/plugins/table/nodeviews/tableCell.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/decorations/plugin.js +2 -3
- package/dist/es2019/plugins/table/pm-plugins/keymap.js +4 -4
- package/dist/es2019/plugins/table/pm-plugins/main.js +13 -13
- package/dist/es2019/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-local-id.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/commands.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/event-handlers.js +4 -4
- 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-resizing/utils/dom.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/misc.js +2 -3
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +2 -3
- package/dist/es2019/plugins/table/pm-plugins/table-selection-keymap.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-width.js +3 -3
- package/dist/es2019/plugins/table/toolbar.js +16 -18
- package/dist/es2019/plugins/table/transforms/column-width.js +6 -7
- package/dist/es2019/plugins/table/transforms/delete-columns.js +1 -1
- package/dist/es2019/plugins/table/transforms/merge.js +2 -1
- package/dist/es2019/plugins/table/transforms/replace-table.js +2 -2
- package/dist/es2019/plugins/table/transforms/split.js +1 -0
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/FixedButton.js +2 -2
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +4 -4
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/styles.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +10 -10
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +2 -2
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/styles.js +7 -4
- package/dist/es2019/plugins/table/ui/FloatingDeleteButton/index.js +5 -5
- package/dist/es2019/plugins/table/ui/FloatingInsertButton/InsertButton.js +3 -3
- package/dist/es2019/plugins/table/ui/FloatingInsertButton/index.js +4 -5
- package/dist/es2019/plugins/table/ui/LayoutButton/index.js +3 -3
- package/dist/es2019/plugins/table/ui/TableFloatingControls/CornerControls/index.js +1 -1
- package/dist/es2019/plugins/table/ui/common-styles.js +5 -5
- package/dist/es2019/plugins/table/ui/consts.js +2 -2
- package/dist/es2019/plugins/table/ui/ui-styles.js +3 -3
- package/dist/es2019/plugins/table/utils/column-controls.js +3 -3
- package/dist/es2019/plugins/table/utils/decoration.js +2 -2
- package/dist/es2019/plugins/table/utils/guidelines.js +1 -1
- package/dist/es2019/plugins/table/utils/nodes.js +1 -1
- package/dist/es2019/plugins/table/utils/row-controls.js +3 -3
- package/dist/es2019/plugins/table/utils/selection.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/table/commands/clear.js +3 -1
- package/dist/esm/plugins/table/commands/go-to-next-cell.js +2 -2
- package/dist/esm/plugins/table/commands/insert.js +4 -3
- package/dist/esm/plugins/table/commands/misc.js +4 -4
- package/dist/esm/plugins/table/commands/referentiality.js +1 -1
- package/dist/esm/plugins/table/commands/selection.js +3 -3
- package/dist/esm/plugins/table/commands/sort.js +3 -4
- package/dist/esm/plugins/table/commands/toggle.js +1 -2
- package/dist/esm/plugins/table/commands-with-analytics.js +4 -4
- package/dist/esm/plugins/table/event-handlers.js +3 -5
- package/dist/esm/plugins/table/handlers.js +5 -5
- package/dist/esm/plugins/table/index.js +16 -16
- package/dist/esm/plugins/table/nodeviews/OverflowShadowsObserver.js +1 -1
- package/dist/esm/plugins/table/nodeviews/TableComponent.js +39 -36
- package/dist/esm/plugins/table/nodeviews/TableContainer.js +10 -9
- package/dist/esm/plugins/table/nodeviews/TableResizer.js +4 -4
- package/dist/esm/plugins/table/nodeviews/table.js +11 -9
- package/dist/esm/plugins/table/nodeviews/tableCell.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/decorations/plugin.js +2 -3
- package/dist/esm/plugins/table/pm-plugins/keymap.js +4 -4
- package/dist/esm/plugins/table/pm-plugins/main.js +13 -13
- package/dist/esm/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-local-id.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/commands.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/event-handlers.js +4 -4
- 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-resizing/utils/dom.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/misc.js +2 -3
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +2 -3
- package/dist/esm/plugins/table/pm-plugins/table-selection-keymap.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-width.js +3 -3
- package/dist/esm/plugins/table/toolbar.js +16 -18
- package/dist/esm/plugins/table/transforms/column-width.js +6 -7
- package/dist/esm/plugins/table/transforms/delete-columns.js +1 -1
- package/dist/esm/plugins/table/transforms/merge.js +2 -1
- package/dist/esm/plugins/table/transforms/replace-table.js +2 -2
- package/dist/esm/plugins/table/transforms/split.js +1 -0
- package/dist/esm/plugins/table/ui/FloatingContextualButton/FixedButton.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +4 -4
- package/dist/esm/plugins/table/ui/FloatingContextualButton/styles.js +1 -1
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +10 -10
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/styles.js +6 -3
- package/dist/esm/plugins/table/ui/FloatingDeleteButton/index.js +5 -5
- package/dist/esm/plugins/table/ui/FloatingInsertButton/InsertButton.js +3 -3
- package/dist/esm/plugins/table/ui/FloatingInsertButton/index.js +4 -5
- package/dist/esm/plugins/table/ui/LayoutButton/index.js +3 -3
- package/dist/esm/plugins/table/ui/TableFloatingControls/CornerControls/index.js +1 -1
- package/dist/esm/plugins/table/ui/common-styles.js +5 -5
- package/dist/esm/plugins/table/ui/consts.js +2 -2
- package/dist/esm/plugins/table/ui/ui-styles.js +3 -3
- package/dist/esm/plugins/table/utils/column-controls.js +3 -3
- package/dist/esm/plugins/table/utils/decoration.js +2 -2
- package/dist/esm/plugins/table/utils/guidelines.js +1 -1
- package/dist/esm/plugins/table/utils/nodes.js +1 -1
- package/dist/esm/plugins/table/utils/row-controls.js +3 -3
- package/dist/esm/plugins/table/utils/selection.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/plugins/table/commands/go-to-next-cell.d.ts +2 -2
- package/dist/types/plugins/table/commands/insert.d.ts +1 -1
- package/dist/types/plugins/table/commands/selection.d.ts +1 -1
- package/dist/types/plugins/table/commands/sort.d.ts +1 -1
- package/dist/types/plugins/table/commands-with-analytics.d.ts +4 -5
- package/dist/types/plugins/table/event-handlers.d.ts +1 -1
- package/dist/types/plugins/table/handlers.d.ts +1 -1
- package/dist/types/plugins/table/index.d.ts +4 -4
- package/dist/types/plugins/table/nodeviews/TableComponent.d.ts +3 -4
- package/dist/types/plugins/table/nodeviews/TableContainer.d.ts +2 -2
- package/dist/types/plugins/table/nodeviews/TableResizer.d.ts +1 -1
- package/dist/types/plugins/table/nodeviews/table.d.ts +3 -4
- package/dist/types/plugins/table/nodeviews/tableCell.d.ts +1 -2
- package/dist/types/plugins/table/nodeviews/types.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/decorations/plugin.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/main.d.ts +4 -6
- package/dist/types/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-local-id.d.ts +0 -12
- package/dist/types/plugins/table/pm-plugins/table-resizing/plugin.d.ts +3 -3
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +3 -4
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-state.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 +4 -5
- package/dist/types/plugins/table/transforms/column-width.d.ts +1 -1
- package/dist/types/plugins/table/transforms/replace-table.d.ts +1 -1
- package/dist/types/plugins/table/types.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingContextualButton/index.d.ts +2 -2
- package/dist/types/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
- package/dist/types/plugins/table/ui/FloatingContextualMenu/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +1 -2
- package/dist/types/plugins/table/ui/FloatingDeleteButton/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingInsertButton/index.d.ts +1 -1
- 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/index.d.ts +1 -1
- 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/decoration.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/commands/go-to-next-cell.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/commands/insert.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/commands/selection.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/commands/sort.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/commands-with-analytics.d.ts +4 -5
- package/dist/types-ts4.5/plugins/table/event-handlers.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/handlers.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/index.d.ts +4 -4
- package/dist/types-ts4.5/plugins/table/nodeviews/TableComponent.d.ts +3 -4
- package/dist/types-ts4.5/plugins/table/nodeviews/TableContainer.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/nodeviews/TableResizer.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/nodeviews/table.d.ts +3 -4
- package/dist/types-ts4.5/plugins/table/nodeviews/tableCell.d.ts +1 -2
- package/dist/types-ts4.5/plugins/table/nodeviews/types.d.ts +2 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/plugin.d.ts +2 -2
- package/dist/types-ts4.5/plugins/table/pm-plugins/keymap.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/main.d.ts +4 -6
- package/dist/types-ts4.5/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-local-id.d.ts +0 -12
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin.d.ts +3 -3
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +3 -4
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-state.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 +4 -5
- package/dist/types-ts4.5/plugins/table/transforms/column-width.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/transforms/replace-table.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/types.d.ts +1 -1
- 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 +2 -2
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +1 -2
- package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/index.d.ts +1 -1
- 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/index.d.ts +1 -1
- 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/decoration.d.ts +1 -1
- package/examples/99-testing.tsx +11 -10
- package/package.json +11 -3
- package/report.api.md +2 -0
- package/src/__tests__/integration/arrow-down-into-table.ts +3 -2
- package/src/__tests__/integration/auto-size.ts +8 -10
- package/src/__tests__/integration/cell-selection.ts +8 -7
- package/src/__tests__/integration/change-date-inside-table.ts +4 -5
- package/src/__tests__/integration/delete-columns.ts +6 -4
- package/src/__tests__/integration/delete-last-column-in-full-width.ts +4 -4
- package/src/__tests__/integration/delete-last-column-with-empty-action.ts +4 -4
- package/src/__tests__/integration/delete-last-row-with-empty-action.ts +4 -4
- package/src/__tests__/integration/delete-rows.ts +8 -6
- package/src/__tests__/integration/delete-table-when-selected.ts +10 -11
- package/src/__tests__/integration/deleting-empty-paragraph-under-table.ts +5 -4
- package/src/__tests__/integration/even-columns.ts +8 -8
- package/src/__tests__/integration/floating-toolbar.ts +3 -1
- package/src/__tests__/integration/horizontal-scroll-shadows.ts +7 -8
- package/src/__tests__/integration/horizontal-scroll.ts +8 -7
- package/src/__tests__/integration/insert-cell-header-with-strong-mark.ts +3 -4
- package/src/__tests__/integration/insert-row-inside-layout.ts +8 -6
- package/src/__tests__/integration/layout.ts +8 -11
- package/src/__tests__/integration/meta-arrowup-cursor-in-first-row.ts +3 -2
- package/src/__tests__/integration/resize-handler.ts +2 -2
- package/src/__tests__/integration/resize.ts +15 -15
- package/src/__tests__/integration/scale.ts +8 -8
- package/src/__tests__/integration/sticky-header.ts +3 -2
- package/src/__tests__/unit/analytics.ts +21 -21
- package/src/__tests__/unit/collab.ts +16 -16
- package/src/__tests__/unit/commands/go-to-next-cell.ts +14 -13
- package/src/__tests__/unit/commands/insert.ts +12 -12
- package/src/__tests__/unit/commands/misc.ts +18 -16
- package/src/__tests__/unit/commands/sort.ts +9 -8
- package/src/__tests__/unit/commands.ts +13 -14
- package/src/__tests__/unit/copy-paste.ts +31 -25
- package/src/__tests__/unit/event-handlers/index.ts +15 -13
- package/src/__tests__/unit/event-handlers.ts +18 -18
- package/src/__tests__/unit/fix-tables.ts +9 -9
- package/src/__tests__/unit/get-toolbar-config.ts +21 -21
- package/src/__tests__/unit/handlers.ts +13 -12
- package/src/__tests__/unit/hover-selection.ts +14 -13
- package/src/__tests__/unit/index-with-fake-timers.ts +6 -5
- package/src/__tests__/unit/index.ts +30 -31
- package/src/__tests__/unit/layout.ts +16 -16
- package/src/__tests__/unit/nodeviews/OverflowShadowsObserver.ts +4 -2
- package/src/__tests__/unit/nodeviews/TableComponent.tsx +21 -20
- package/src/__tests__/unit/nodeviews/TableContainer.tsx +38 -105
- package/src/__tests__/unit/nodeviews/cell.ts +17 -16
- package/src/__tests__/unit/nodeviews/table.ts +15 -13
- package/src/__tests__/unit/pm-plugins/decorations/column-controls.ts +1 -1
- package/src/__tests__/unit/pm-plugins/decorations/column-resizing.ts +7 -8
- package/src/__tests__/unit/pm-plugins/decorations/plugin.ts +45 -57
- package/src/__tests__/unit/pm-plugins/main.ts +15 -14
- package/src/__tests__/unit/pm-plugins/safari-delete-composition-text-issue-workaround.ts +7 -6
- package/src/__tests__/unit/pm-plugins/sticky-headers/tableRow.tsx +23 -21
- package/src/__tests__/unit/pm-plugins/table-local-id.ts +14 -15
- package/src/__tests__/unit/pm-plugins/table-resizing/colgroup.ts +3 -2
- package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +22 -21
- package/src/__tests__/unit/sort-column.ts +16 -14
- package/src/__tests__/unit/toolbar.ts +22 -21
- package/src/__tests__/unit/transforms/delete-columns.ts +16 -14
- package/src/__tests__/unit/transforms/delete-rows.ts +16 -14
- package/src/__tests__/unit/transforms/merging.ts +15 -13
- package/src/__tests__/unit/ui/ContextualMenu.tsx +8 -6
- package/src/__tests__/unit/ui/CornerControls.tsx +11 -9
- package/src/__tests__/unit/ui/DeleteButton.tsx +3 -1
- package/src/__tests__/unit/ui/FixedButton.tsx +4 -1
- package/src/__tests__/unit/ui/FloatingContextualButton.tsx +14 -11
- package/src/__tests__/unit/ui/FloatingContextualMenu.tsx +8 -6
- package/src/__tests__/unit/ui/FloatingDeleteButton.tsx +12 -9
- package/src/__tests__/unit/ui/FloatingInsertButton.tsx +21 -19
- package/src/__tests__/unit/ui/RowControls.tsx +15 -12
- package/src/__tests__/unit/ui/TableFloatingControls.tsx +16 -15
- package/src/__tests__/unit/undo-redo.ts +17 -15
- package/src/__tests__/unit/utils/collapse.ts +7 -8
- package/src/__tests__/unit/utils/nodes.ts +12 -11
- package/src/__tests__/unit/utils/row-controls.ts +12 -12
- package/src/__tests__/unit/utils/table.ts +5 -4
- package/src/__tests__/unit/utils.ts +18 -16
- package/src/__tests__/visual-regression/cell-options-menu.ts +2 -2
- package/src/__tests__/visual-regression/index.ts +8 -7
- package/src/__tests__/visual-regression/sticky-header.ts +6 -5
- package/src/plugins/table/commands/clear.ts +3 -2
- package/src/plugins/table/commands/collapse.ts +1 -0
- package/src/plugins/table/commands/go-to-next-cell.ts +8 -7
- package/src/plugins/table/commands/insert.ts +8 -7
- package/src/plugins/table/commands/misc.ts +15 -18
- package/src/plugins/table/commands/referentiality.ts +3 -1
- package/src/plugins/table/commands/selection.ts +11 -10
- package/src/plugins/table/commands/sort.ts +9 -9
- package/src/plugins/table/commands/split-cell.ts +1 -1
- package/src/plugins/table/commands/toggle.ts +2 -3
- package/src/plugins/table/commands-with-analytics.ts +15 -15
- package/src/plugins/table/event-handlers.ts +19 -20
- package/src/plugins/table/handlers.ts +6 -7
- package/src/plugins/table/index.tsx +51 -51
- package/src/plugins/table/nodeviews/OverflowShadowsObserver.ts +2 -1
- package/src/plugins/table/nodeviews/TableComponent.tsx +23 -30
- package/src/plugins/table/nodeviews/TableContainer.tsx +16 -23
- package/src/plugins/table/nodeviews/TableResizer.tsx +8 -7
- package/src/plugins/table/nodeviews/table.tsx +25 -18
- package/src/plugins/table/nodeviews/tableCell.tsx +9 -7
- package/src/plugins/table/nodeviews/types.ts +4 -2
- package/src/plugins/table/nodeviews/update-overflow-shadows.ts +3 -1
- package/src/plugins/table/pm-plugins/decorations/plugin.ts +4 -3
- package/src/plugins/table/pm-plugins/decorations/utils/column-controls.ts +2 -1
- package/src/plugins/table/pm-plugins/keymap.ts +8 -8
- package/src/plugins/table/pm-plugins/main.ts +38 -33
- package/src/plugins/table/pm-plugins/plugin-factory.ts +2 -0
- package/src/plugins/table/pm-plugins/plugin-key.ts +1 -0
- package/src/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.ts +2 -1
- package/src/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.ts +6 -7
- package/src/plugins/table/pm-plugins/sticky-headers/plugin-key.ts +1 -0
- package/src/plugins/table/pm-plugins/sticky-headers/plugin.ts +3 -4
- package/src/plugins/table/pm-plugins/table-local-id.ts +3 -4
- package/src/plugins/table/pm-plugins/table-resizing/commands.ts +3 -2
- package/src/plugins/table/pm-plugins/table-resizing/event-handlers.ts +13 -14
- package/src/plugins/table/pm-plugins/table-resizing/plugin-factory.ts +1 -0
- package/src/plugins/table/pm-plugins/table-resizing/plugin-key.ts +1 -0
- package/src/plugins/table/pm-plugins/table-resizing/plugin.ts +7 -6
- package/src/plugins/table/pm-plugins/table-resizing/utils/colgroup.ts +2 -1
- package/src/plugins/table/pm-plugins/table-resizing/utils/column-state.ts +1 -1
- package/src/plugins/table/pm-plugins/table-resizing/utils/dom.ts +3 -3
- package/src/plugins/table/pm-plugins/table-resizing/utils/misc.ts +8 -9
- package/src/plugins/table/pm-plugins/table-resizing/utils/resize-state.ts +8 -6
- package/src/plugins/table/pm-plugins/table-resizing/utils/scale-table.ts +4 -5
- package/src/plugins/table/pm-plugins/table-resizing/utils/types.ts +2 -1
- package/src/plugins/table/pm-plugins/table-selection-keymap.ts +4 -3
- package/src/plugins/table/pm-plugins/table-width.ts +5 -4
- package/src/plugins/table/toolbar.tsx +54 -57
- package/src/plugins/table/transforms/column-width.ts +13 -13
- package/src/plugins/table/transforms/delete-columns.ts +2 -2
- package/src/plugins/table/transforms/delete-rows.ts +2 -2
- package/src/plugins/table/transforms/merge.ts +3 -3
- package/src/plugins/table/transforms/replace-table.ts +6 -5
- package/src/plugins/table/transforms/split.ts +1 -1
- package/src/plugins/table/types.ts +3 -3
- package/src/plugins/table/ui/FloatingContextualButton/FixedButton.tsx +4 -2
- package/src/plugins/table/ui/FloatingContextualButton/index.tsx +12 -11
- package/src/plugins/table/ui/FloatingContextualButton/styles.ts +5 -3
- package/src/plugins/table/ui/FloatingContextualMenu/ContextualMenu.tsx +27 -28
- package/src/plugins/table/ui/FloatingContextualMenu/index.tsx +10 -11
- package/src/plugins/table/ui/FloatingContextualMenu/styles.ts +8 -4
- package/src/plugins/table/ui/FloatingDeleteButton/DeleteButton.tsx +5 -2
- package/src/plugins/table/ui/FloatingDeleteButton/index.tsx +9 -9
- package/src/plugins/table/ui/FloatingInsertButton/InsertButton.tsx +4 -5
- package/src/plugins/table/ui/FloatingInsertButton/index.tsx +16 -18
- package/src/plugins/table/ui/LayoutButton/index.tsx +6 -6
- package/src/plugins/table/ui/TableFloatingControls/CornerControls/index.tsx +3 -2
- package/src/plugins/table/ui/TableFloatingControls/NumberColumn/index.tsx +2 -1
- package/src/plugins/table/ui/TableFloatingControls/index.tsx +2 -3
- package/src/plugins/table/ui/common-styles.ts +33 -34
- package/src/plugins/table/ui/consts.ts +12 -13
- package/src/plugins/table/ui/ui-styles.ts +24 -22
- package/src/plugins/table/utils/analytics.ts +3 -2
- package/src/plugins/table/utils/collapse.ts +2 -2
- package/src/plugins/table/utils/column-controls.ts +5 -6
- package/src/plugins/table/utils/decoration.ts +6 -7
- package/src/plugins/table/utils/dom.ts +1 -0
- package/src/plugins/table/utils/guidelines.ts +2 -2
- package/src/plugins/table/utils/nodes.ts +2 -1
- package/src/plugins/table/utils/row-controls.ts +4 -3
- package/src/plugins/table/utils/selection.ts +2 -1
- package/src/plugins/table/utils/table.ts +2 -1
- package/tmp/api-report-tmp.d.ts +2 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
2
|
editable,
|
|
5
|
-
getDocFromElement,
|
|
6
3
|
fullpage,
|
|
4
|
+
getDocFromElement,
|
|
7
5
|
quickInsert,
|
|
8
6
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
9
|
-
import { TableCssClassName as ClassName } from '../../plugins/table/types';
|
|
10
7
|
import {
|
|
11
8
|
goToEditorTestingWDExample,
|
|
12
9
|
mountEditor,
|
|
13
10
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
11
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
12
|
+
|
|
13
|
+
import { TableCssClassName as ClassName } from '../../plugins/table/types';
|
|
14
14
|
|
|
15
15
|
BrowserTestCase(
|
|
16
16
|
'delete-last-column-with-empty-action.ts: Delete last table column with empty action',
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
2
|
editable,
|
|
5
|
-
getDocFromElement,
|
|
6
3
|
fullpage,
|
|
4
|
+
getDocFromElement,
|
|
7
5
|
quickInsert,
|
|
8
6
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
9
|
-
import { TableCssClassName as ClassName } from '../../plugins/table/types';
|
|
10
7
|
import {
|
|
11
8
|
goToEditorTestingWDExample,
|
|
12
9
|
mountEditor,
|
|
13
10
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
11
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
12
|
+
|
|
13
|
+
import { TableCssClassName as ClassName } from '../../plugins/table/types';
|
|
14
14
|
|
|
15
15
|
BrowserTestCase(
|
|
16
16
|
'delete-last-row.ts: Delete last table row with empty action',
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { createIntl } from 'react-intl-next';
|
|
2
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
3
2
|
|
|
4
3
|
import {
|
|
5
4
|
editable,
|
|
6
|
-
getDocFromElement,
|
|
7
5
|
fullpage,
|
|
6
|
+
getDocFromElement,
|
|
8
7
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
9
|
-
import {
|
|
10
|
-
import { nestedInExtension } from './__fixtures__/nested-in-extension';
|
|
11
|
-
import { TableCssClassName as ClassName } from '../../plugins/table/types';
|
|
8
|
+
import { deleteRow } from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
12
9
|
import {
|
|
13
10
|
goToEditorTestingWDExample,
|
|
14
11
|
mountEditor,
|
|
15
12
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
13
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
14
|
+
|
|
15
|
+
import { TableCssClassName as ClassName } from '../../plugins/table/types';
|
|
16
16
|
import messages from '../../plugins/table/ui/messages';
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
import { documentWithMergedCells } from './__fixtures__/merged-rows-and-cols-document';
|
|
19
|
+
import { nestedInExtension } from './__fixtures__/nested-in-extension';
|
|
18
20
|
|
|
19
21
|
BrowserTestCase(
|
|
20
22
|
'Should delete merged rows from contextual menu and append missing cells to the table',
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
|
-
editable,
|
|
5
|
-
getDocFromElement,
|
|
6
|
-
fullpage,
|
|
7
2
|
clipboardInput,
|
|
8
|
-
copyAsPlaintextButton,
|
|
9
3
|
copyAsHTMLButton,
|
|
4
|
+
copyAsPlaintextButton,
|
|
5
|
+
editable,
|
|
6
|
+
fullpage,
|
|
7
|
+
getDocFromElement,
|
|
10
8
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
11
9
|
import {
|
|
12
|
-
goToEditorTestingWDExample,
|
|
13
|
-
mountEditor,
|
|
14
|
-
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
15
|
-
import {
|
|
16
|
-
tableSelectors,
|
|
17
10
|
clickFirstCell,
|
|
11
|
+
tableSelectors,
|
|
18
12
|
waitForNoTable,
|
|
19
13
|
} from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
14
|
+
import {
|
|
15
|
+
goToEditorTestingWDExample,
|
|
16
|
+
mountEditor,
|
|
17
|
+
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
18
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
20
19
|
|
|
21
20
|
import basicTableAdf from './__fixtures__/basic-table';
|
|
22
21
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
1
|
import {
|
|
3
|
-
fullpage,
|
|
4
|
-
setProseMirrorTextSelection,
|
|
5
|
-
expectToMatchSelection,
|
|
6
2
|
editable,
|
|
3
|
+
expectToMatchSelection,
|
|
4
|
+
fullpage,
|
|
7
5
|
getDocFromElement,
|
|
6
|
+
setProseMirrorTextSelection,
|
|
8
7
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
9
8
|
import {
|
|
10
9
|
goToEditorTestingWDExample,
|
|
11
10
|
mountEditor,
|
|
12
11
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
12
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
13
|
+
|
|
13
14
|
import {
|
|
14
15
|
emptyParagraphUnderneathTable,
|
|
15
16
|
emptyParagraphUnderneathTableAtEnd,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
1
|
import {
|
|
2
|
+
doubleClickResizeHandle,
|
|
3
3
|
editable,
|
|
4
|
-
getDocFromElement,
|
|
5
4
|
fullpage,
|
|
6
|
-
|
|
5
|
+
getDocFromElement,
|
|
7
6
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
8
7
|
import {
|
|
9
8
|
clickFirstCell,
|
|
10
9
|
selectTable,
|
|
11
10
|
} from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
12
|
-
import {
|
|
13
|
-
tableWithUnevenColumns,
|
|
14
|
-
tableWithUnevenColumnsInOverflow,
|
|
15
|
-
} from './__fixtures__/even-columns';
|
|
16
|
-
|
|
17
11
|
import {
|
|
18
12
|
goToEditorTestingWDExample,
|
|
19
13
|
mountEditor,
|
|
20
14
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
15
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
tableWithUnevenColumns,
|
|
19
|
+
tableWithUnevenColumnsInOverflow,
|
|
20
|
+
} from './__fixtures__/even-columns';
|
|
21
21
|
|
|
22
22
|
// moveTo in doubleClickResizeHandle does not work for safari
|
|
23
23
|
BrowserTestCase(
|
|
@@ -14,10 +14,12 @@ import {
|
|
|
14
14
|
mountEditor,
|
|
15
15
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
16
16
|
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
17
|
+
|
|
17
18
|
import { TableCssClassName } from '../../plugins/table/types';
|
|
19
|
+
|
|
18
20
|
import basicTable from './__fixtures__/basic-table';
|
|
19
|
-
import { documentWithMergedCells } from './__fixtures__/merged-rows-and-cols-document';
|
|
20
21
|
import basicTableWithMergedCell from './__fixtures__/basic-table-with-merged-cell';
|
|
22
|
+
import { documentWithMergedCells } from './__fixtures__/merged-rows-and-cols-document';
|
|
21
23
|
|
|
22
24
|
BrowserTestCase(
|
|
23
25
|
'should floating toolbar context menu sit above other context menu layers',
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
|
-
import WebdriverPage from '@atlaskit/webdriver-runner/wd-wrapper';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
goToEditorTestingWDExample,
|
|
6
|
-
mountEditor,
|
|
7
|
-
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
8
|
-
|
|
9
1
|
import {
|
|
10
2
|
fullpage,
|
|
11
3
|
resizeColumn,
|
|
12
4
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
5
|
+
import {
|
|
6
|
+
goToEditorTestingWDExample,
|
|
7
|
+
mountEditor,
|
|
8
|
+
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
9
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
10
|
+
import WebdriverPage from '@atlaskit/webdriver-runner/wd-wrapper';
|
|
13
11
|
|
|
14
12
|
import { TableCssClassName as className } from '../../plugins/table/types';
|
|
13
|
+
|
|
15
14
|
import basicTable from './__fixtures__/basic-table';
|
|
16
15
|
|
|
17
16
|
const checkShadows = async (page: WebdriverPage, side?: 'left' | 'right') => {
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import WebdriverPage from '@atlaskit/webdriver-runner/wd-wrapper';
|
|
2
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
3
1
|
import {
|
|
4
2
|
fullpage,
|
|
5
3
|
resizeColumn,
|
|
6
4
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
7
|
-
import {
|
|
8
|
-
goToEditorTestingWDExample,
|
|
9
|
-
mountEditor,
|
|
10
|
-
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
11
5
|
import {
|
|
12
6
|
insertColumn,
|
|
13
7
|
insertTable,
|
|
14
8
|
} from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
9
|
+
import {
|
|
10
|
+
goToEditorTestingWDExample,
|
|
11
|
+
mountEditor,
|
|
12
|
+
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
13
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
14
|
+
import WebdriverPage from '@atlaskit/webdriver-runner/wd-wrapper';
|
|
15
|
+
|
|
15
16
|
import basicTableAdf from './__fixtures__/basic-table';
|
|
17
|
+
import { emptyLayout } from './__fixtures__/empty-layout';
|
|
16
18
|
import nestedInExpand from './__fixtures__/nested-in-expand';
|
|
17
19
|
import { nestedInExtension } from './__fixtures__/nested-in-extension';
|
|
18
20
|
import { table as tableInsideLayout } from './__fixtures__/table-inside-layout';
|
|
19
|
-
import { emptyLayout } from './__fixtures__/empty-layout';
|
|
20
21
|
|
|
21
22
|
// TODO - Add wider screen size here once editor-common fix is made ED-16647
|
|
22
23
|
const screenWidths = [1920];
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
2
|
editable,
|
|
5
|
-
getDocFromElement,
|
|
6
3
|
fullpage,
|
|
4
|
+
getDocFromElement,
|
|
7
5
|
quickInsert,
|
|
8
6
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
9
7
|
import {
|
|
10
|
-
mountEditor,
|
|
11
8
|
goToEditorTestingWDExample,
|
|
9
|
+
mountEditor,
|
|
12
10
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
11
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
13
12
|
|
|
14
13
|
BrowserTestCase(
|
|
15
14
|
'inside-table.ts: Insert panel into table, add text, change panel type',
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
1
|
import {
|
|
3
|
-
editable,
|
|
4
2
|
animationFrame,
|
|
5
|
-
|
|
3
|
+
editable,
|
|
6
4
|
fullpage,
|
|
5
|
+
getDocFromElement,
|
|
7
6
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import {
|
|
8
|
+
clickFirstCell,
|
|
9
|
+
insertRow,
|
|
10
|
+
} from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
10
11
|
import {
|
|
11
12
|
goToEditorTestingWDExample,
|
|
12
13
|
mountEditor,
|
|
13
14
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
15
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
14
16
|
|
|
15
|
-
import {
|
|
17
|
+
import { table as tableInsideLayout } from './__fixtures__/table-inside-layout';
|
|
16
18
|
|
|
17
19
|
BrowserTestCase(
|
|
18
20
|
'Should scale remaining columns when adding a new column preventing from going to overflow',
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
|
-
|
|
3
1
|
import {
|
|
2
|
+
animationFrame,
|
|
3
|
+
changeSelectedNodeLayout,
|
|
4
4
|
editable,
|
|
5
|
-
getDocFromElement,
|
|
6
5
|
fullpage,
|
|
7
|
-
|
|
8
|
-
animationFrame,
|
|
6
|
+
getDocFromElement,
|
|
9
7
|
toggleBreakout,
|
|
10
8
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
11
|
-
|
|
12
9
|
import { clickFirstCell } from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
10
|
+
import {
|
|
11
|
+
goToEditorTestingWDExample,
|
|
12
|
+
mountEditor,
|
|
13
|
+
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
14
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
13
15
|
|
|
14
16
|
import {
|
|
15
17
|
defaultTableInOverflow,
|
|
@@ -17,11 +19,6 @@ import {
|
|
|
17
19
|
nestedTables,
|
|
18
20
|
} from './__fixtures__/layout-documents';
|
|
19
21
|
|
|
20
|
-
import {
|
|
21
|
-
goToEditorTestingWDExample,
|
|
22
|
-
mountEditor,
|
|
23
|
-
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
24
|
-
|
|
25
22
|
BrowserTestCase(
|
|
26
23
|
'Avoid overflow when table scale to wide',
|
|
27
24
|
{ skip: ['safari', 'firefox'] },
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
1
|
import {
|
|
2
|
+
expectToMatchSelection,
|
|
3
3
|
fullpage,
|
|
4
4
|
setProseMirrorTextSelection,
|
|
5
|
-
expectToMatchSelection,
|
|
6
5
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
7
6
|
import {
|
|
8
7
|
goToEditorTestingWDExample,
|
|
9
8
|
mountEditor,
|
|
10
9
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
10
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
11
|
+
|
|
11
12
|
import tableAdf from './__fixtures__/table-and-paragraph-adf';
|
|
12
13
|
|
|
13
14
|
BrowserTestCase(
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
1
|
import {
|
|
3
2
|
fullpage,
|
|
4
|
-
quickInsert,
|
|
5
3
|
hoverResizeHandler,
|
|
4
|
+
quickInsert,
|
|
6
5
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
7
6
|
import {
|
|
8
7
|
clickFirstCell,
|
|
@@ -12,6 +11,7 @@ import {
|
|
|
12
11
|
goToEditorTestingWDExample,
|
|
13
12
|
mountEditor,
|
|
14
13
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
14
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
15
15
|
|
|
16
16
|
interface BBoxWithId {
|
|
17
17
|
left: number;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
|
-
import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
|
+
|
|
3
|
+
import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
4
4
|
import {
|
|
5
5
|
editable,
|
|
6
|
-
getDocFromElement,
|
|
7
6
|
fullpage,
|
|
7
|
+
getDocFromElement,
|
|
8
8
|
resizeColumn,
|
|
9
9
|
selectColumns,
|
|
10
10
|
updateEditorProps,
|
|
11
11
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
12
|
-
|
|
13
12
|
import {
|
|
14
|
-
insertColumn,
|
|
15
13
|
clickFirstCell,
|
|
14
|
+
insertColumn,
|
|
16
15
|
selectTable,
|
|
17
16
|
} from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
17
|
+
import {
|
|
18
|
+
goToEditorTestingWDExample,
|
|
19
|
+
mountEditor,
|
|
20
|
+
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
21
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
22
|
+
|
|
23
|
+
import { pluginKey as tableResizingPluginKey } from '../../plugins/table/pm-plugins/table-resizing';
|
|
18
24
|
|
|
19
25
|
import {
|
|
20
|
-
tableWithRowSpan,
|
|
21
|
-
tableWithRowSpanAndColSpan,
|
|
22
|
-
twoColFullWidthTableWithContent,
|
|
23
|
-
tableInsideColumns,
|
|
24
26
|
resizedTableWithStackedColumns,
|
|
25
27
|
tableForBulkResize,
|
|
26
28
|
tableForBulkResize3Cols,
|
|
27
29
|
tableForBulkResizeWithNumberCol,
|
|
30
|
+
tableInsideColumns,
|
|
31
|
+
tableWithRowSpan,
|
|
32
|
+
tableWithRowSpanAndColSpan,
|
|
33
|
+
twoColFullWidthTableWithContent,
|
|
28
34
|
} from './__fixtures__/resize-documents';
|
|
29
35
|
import { tableWithMinWidthColumnsDocument } from './__fixtures__/table-with-min-width-columns-document';
|
|
30
|
-
import { pluginKey as tableResizingPluginKey } from '../../plugins/table/pm-plugins/table-resizing';
|
|
31
|
-
|
|
32
|
-
import {
|
|
33
|
-
goToEditorTestingWDExample,
|
|
34
|
-
mountEditor,
|
|
35
|
-
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
36
36
|
|
|
37
37
|
BrowserTestCase(
|
|
38
38
|
'Can resize normally with a rowspan in the non last column.',
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
2
1
|
import {
|
|
3
2
|
editable,
|
|
4
|
-
getDocFromElement,
|
|
5
3
|
fullpage,
|
|
4
|
+
getDocFromElement,
|
|
6
5
|
} from '@atlaskit/editor-test-helpers/integration/helpers';
|
|
7
6
|
import {
|
|
8
|
-
insertColumn,
|
|
9
7
|
deleteColumn,
|
|
8
|
+
insertColumn,
|
|
10
9
|
} from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
11
|
-
import {
|
|
12
|
-
tableWithManyMinWidthCols,
|
|
13
|
-
tableInOverflow,
|
|
14
|
-
} from './__fixtures__/scale';
|
|
15
|
-
|
|
16
10
|
import {
|
|
17
11
|
goToEditorTestingWDExample,
|
|
18
12
|
mountEditor,
|
|
19
13
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
14
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
15
|
+
|
|
16
|
+
import {
|
|
17
|
+
tableInOverflow,
|
|
18
|
+
tableWithManyMinWidthCols,
|
|
19
|
+
} from './__fixtures__/scale';
|
|
20
20
|
|
|
21
21
|
BrowserTestCase(
|
|
22
22
|
'Should scale remaining columns when adding a new column preventing from going to overflow',
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import WebdriverPage from '@atlaskit/webdriver-runner/wd-wrapper';
|
|
2
|
-
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
3
1
|
import {
|
|
4
2
|
fullpage,
|
|
5
3
|
tableSelectors,
|
|
@@ -8,6 +6,9 @@ import {
|
|
|
8
6
|
goToEditorTestingWDExample,
|
|
9
7
|
mountEditor,
|
|
10
8
|
} from '@atlaskit/editor-test-helpers/testing-example-page';
|
|
9
|
+
import { BrowserTestCase } from '@atlaskit/webdriver-runner/runner';
|
|
10
|
+
import WebdriverPage from '@atlaskit/webdriver-runner/wd-wrapper';
|
|
11
|
+
|
|
11
12
|
import stickyTable from './__fixtures__/large-table-with-sticky-header';
|
|
12
13
|
|
|
13
14
|
const scrollTo = async (page: WebdriverPage, height: number) => {
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
+
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
5
|
+
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
6
|
+
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
7
|
+
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
1
8
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
2
9
|
import {
|
|
3
10
|
createProsemirrorEditorFactory,
|
|
@@ -6,46 +13,39 @@ import {
|
|
|
6
13
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
7
14
|
import {
|
|
8
15
|
doc,
|
|
16
|
+
DocBuilder,
|
|
9
17
|
p,
|
|
10
18
|
table,
|
|
11
|
-
tr,
|
|
12
|
-
thEmpty,
|
|
13
|
-
tdEmpty,
|
|
14
|
-
tdCursor,
|
|
15
19
|
td,
|
|
16
|
-
|
|
20
|
+
tdCursor,
|
|
21
|
+
tdEmpty,
|
|
22
|
+
thEmpty,
|
|
23
|
+
tr,
|
|
17
24
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
18
25
|
import sendKeyToPm from '@atlaskit/editor-test-helpers/send-key-to-pm';
|
|
19
26
|
import { B50 } from '@atlaskit/theme/colors';
|
|
20
27
|
|
|
21
|
-
import
|
|
28
|
+
import tablePlugin from '../../plugins/table-plugin';
|
|
22
29
|
import {
|
|
30
|
+
deleteColumnsWithAnalytics,
|
|
31
|
+
deleteRowsWithAnalytics,
|
|
32
|
+
deleteTableIfSelectedWithAnalytics,
|
|
23
33
|
deleteTableWithAnalytics,
|
|
24
34
|
emptyMultipleCellsWithAnalytics,
|
|
35
|
+
insertColumnWithAnalytics,
|
|
36
|
+
insertRowWithAnalytics,
|
|
25
37
|
mergeCellsWithAnalytics,
|
|
26
|
-
splitCellWithAnalytics,
|
|
27
38
|
setColorWithAnalytics,
|
|
28
|
-
|
|
39
|
+
splitCellWithAnalytics,
|
|
29
40
|
toggleHeaderColumnWithAnalytics,
|
|
41
|
+
toggleHeaderRowWithAnalytics,
|
|
30
42
|
toggleNumberColumnWithAnalytics,
|
|
31
43
|
toggleTableLayoutWithAnalytics,
|
|
32
|
-
insertRowWithAnalytics,
|
|
33
|
-
insertColumnWithAnalytics,
|
|
34
|
-
deleteRowsWithAnalytics,
|
|
35
|
-
deleteColumnsWithAnalytics,
|
|
36
|
-
deleteTableIfSelectedWithAnalytics,
|
|
37
44
|
} from '../../plugins/table/commands-with-analytics';
|
|
38
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
39
45
|
import { handleCut } from '../../plugins/table/event-handlers';
|
|
40
46
|
import { pluginKey } from '../../plugins/table/pm-plugins/plugin-key';
|
|
41
47
|
import { replaceSelectedTable } from '../../plugins/table/transforms';
|
|
42
|
-
import
|
|
43
|
-
import tablePlugin from '../../plugins/table-plugin';
|
|
44
|
-
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
45
|
-
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
46
|
-
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
47
|
-
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
48
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
48
|
+
import { PluginConfig } from '../../plugins/table/types';
|
|
49
49
|
|
|
50
50
|
const defaultTableDoc = doc(
|
|
51
51
|
table()(
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
+
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
2
|
+
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
3
|
+
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
+
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
5
|
+
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
6
|
+
import { removeColumnAt } from '@atlaskit/editor-tables/utils';
|
|
7
|
+
import {
|
|
8
|
+
createProsemirrorEditorFactory,
|
|
9
|
+
LightEditorPlugin,
|
|
10
|
+
Preset,
|
|
11
|
+
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
1
12
|
import {
|
|
2
13
|
doc,
|
|
14
|
+
DocBuilder,
|
|
3
15
|
p,
|
|
4
16
|
table,
|
|
5
|
-
tr,
|
|
6
17
|
td,
|
|
7
18
|
th,
|
|
8
|
-
|
|
19
|
+
tr,
|
|
9
20
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
10
|
-
import { removeColumnAt } from '@atlaskit/editor-tables/utils';
|
|
11
|
-
import { PluginConfig } from '../../plugins/table/types';
|
|
12
21
|
|
|
13
|
-
import { setResizeHandlePos } from '../../plugins/table/pm-plugins/table-resizing/commands';
|
|
14
|
-
import { pluginKey as tablePluginKey } from '../../plugins/table/pm-plugins/plugin-key';
|
|
15
|
-
import {
|
|
16
|
-
createProsemirrorEditorFactory,
|
|
17
|
-
LightEditorPlugin,
|
|
18
|
-
Preset,
|
|
19
|
-
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
20
22
|
import tablePlugin from '../../plugins/table-plugin';
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
25
|
-
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
23
|
+
import { pluginKey as tablePluginKey } from '../../plugins/table/pm-plugins/plugin-key';
|
|
24
|
+
import { setResizeHandlePos } from '../../plugins/table/pm-plugins/table-resizing/commands';
|
|
25
|
+
import { PluginConfig } from '../../plugins/table/types';
|
|
26
26
|
|
|
27
27
|
const TABLE_LOCAL_ID = 'test-table-local-id';
|
|
28
28
|
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
2
|
|
|
3
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
+
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
6
|
+
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
7
|
+
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
8
|
+
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
9
|
import {
|
|
4
10
|
createProsemirrorEditorFactory,
|
|
5
|
-
Preset,
|
|
6
11
|
LightEditorPlugin,
|
|
12
|
+
Preset,
|
|
7
13
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
8
14
|
import {
|
|
9
15
|
doc,
|
|
16
|
+
DocBuilder,
|
|
17
|
+
p,
|
|
10
18
|
table,
|
|
11
|
-
tr,
|
|
12
19
|
td,
|
|
13
|
-
tdEmpty,
|
|
14
20
|
tdCursor,
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
tdEmpty,
|
|
22
|
+
tr,
|
|
17
23
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
18
|
-
|
|
19
|
-
import tablePlugin from '../../../plugins/table
|
|
24
|
+
|
|
25
|
+
import tablePlugin from '../../../plugins/table';
|
|
26
|
+
import { goToNextCell } from '../../../plugins/table/commands/go-to-next-cell';
|
|
20
27
|
import { pluginKey } from '../../../plugins/table/pm-plugins/plugin-key';
|
|
21
28
|
import { TablePluginState } from '../../../plugins/table/types';
|
|
22
|
-
import { goToNextCell } from '../../../plugins/table/commands/go-to-next-cell';
|
|
23
|
-
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
24
|
-
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
25
|
-
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
26
|
-
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
27
|
-
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
28
29
|
|
|
29
30
|
const TABLE_LOCAL_ID = 'test-table-local-id';
|
|
30
31
|
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
2
|
|
|
3
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
+
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
6
|
+
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
7
|
+
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
8
|
+
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
9
|
import {
|
|
4
10
|
createProsemirrorEditorFactory,
|
|
5
|
-
Preset,
|
|
6
11
|
LightEditorPlugin,
|
|
12
|
+
Preset,
|
|
7
13
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
8
14
|
import {
|
|
9
15
|
doc,
|
|
16
|
+
DocBuilder,
|
|
17
|
+
p,
|
|
10
18
|
table,
|
|
11
|
-
tr,
|
|
12
19
|
td,
|
|
13
20
|
tdEmpty,
|
|
14
|
-
|
|
15
|
-
DocBuilder,
|
|
21
|
+
tr,
|
|
16
22
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
17
|
-
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
18
23
|
|
|
19
|
-
import tablePlugin from '../../../plugins/table
|
|
24
|
+
import tablePlugin from '../../../plugins/table';
|
|
25
|
+
import { addColumnAt } from '../../../plugins/table/commands/insert';
|
|
20
26
|
import { pluginKey } from '../../../plugins/table/pm-plugins/plugin-key';
|
|
21
27
|
import { TablePluginState } from '../../../plugins/table/types';
|
|
22
|
-
import { addColumnAt } from '../../../plugins/table/commands/insert';
|
|
23
|
-
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
24
|
-
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
25
|
-
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
26
|
-
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
27
|
-
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
28
28
|
|
|
29
29
|
const TABLE_LOCAL_ID = 'test-table-local-id';
|
|
30
30
|
|