@atlaskit/editor-plugin-table 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +12 -1
- package/dist/cjs/plugins/table/ui/consts.js +6 -4
- package/dist/cjs/plugins/table/ui/ui-styles.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +14 -3
- package/dist/es2019/plugins/table/ui/consts.js +5 -4
- package/dist/es2019/plugins/table/ui/ui-styles.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +14 -3
- package/dist/esm/plugins/table/ui/consts.js +5 -4
- package/dist/esm/plugins/table/ui/ui-styles.js +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +6 -5
- package/dist/types/plugins/table/pm-plugins/sticky-headers/util.d.ts +1 -1
- package/dist/types/plugins/table/ui/consts.d.ts +2 -1
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +6 -5
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/util.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/consts.d.ts +2 -1
- package/package.json +4 -4
- package/src/__tests__/integration/arrow-down-into-table.ts +2 -0
- package/src/__tests__/integration/auto-size.ts +3 -0
- package/src/__tests__/integration/cell-selection.ts +3 -0
- package/src/__tests__/integration/delete-columns.ts +2 -0
- package/src/__tests__/integration/delete-last-column-in-full-width.ts +2 -0
- package/src/__tests__/integration/delete-last-column-with-empty-action.ts +2 -0
- package/src/__tests__/integration/delete-last-row-with-empty-action.ts +2 -0
- package/src/__tests__/integration/delete-rows.ts +3 -0
- package/src/__tests__/integration/delete-table-when-selected.ts +3 -0
- package/src/__tests__/integration/deleting-empty-paragraph-under-table.ts +2 -0
- package/src/__tests__/integration/even-columns.ts +3 -0
- package/src/__tests__/integration/horizontal-scroll-shadows.ts +2 -0
- package/src/__tests__/integration/horizontal-scroll.ts +4 -1
- package/src/__tests__/integration/insert-cell-header-with-strong-mark.ts +2 -0
- package/src/__tests__/integration/insert-row-inside-layout.ts +3 -0
- package/src/__tests__/integration/layout.ts +3 -0
- package/src/__tests__/integration/meta-arrowup-cursor-in-first-row.ts +2 -0
- package/src/__tests__/integration/resize-handler.ts +3 -0
- package/src/__tests__/integration/resize.ts +4 -1
- package/src/__tests__/integration/scale.ts +3 -0
- package/src/__tests__/integration/sticky-header.ts +3 -1
- package/src/__tests__/unit/analytics.ts +4 -0
- package/src/__tests__/unit/collab.ts +3 -0
- package/src/__tests__/unit/commands/go-to-next-cell.ts +3 -0
- package/src/__tests__/unit/commands/insert.ts +3 -0
- package/src/__tests__/unit/commands/misc.ts +3 -0
- package/src/__tests__/unit/commands/sort.ts +3 -0
- package/src/__tests__/unit/commands.ts +3 -0
- package/src/__tests__/unit/copy-paste.ts +5 -0
- package/src/__tests__/unit/event-handlers/index.ts +3 -0
- package/src/__tests__/unit/event-handlers.ts +3 -0
- package/src/__tests__/unit/fix-tables.ts +3 -0
- package/src/__tests__/unit/get-toolbar-config.ts +3 -0
- package/src/__tests__/unit/handlers.ts +3 -0
- package/src/__tests__/unit/hover-selection.ts +4 -0
- package/src/__tests__/unit/index-with-fake-timers.ts +2 -0
- package/src/__tests__/unit/index.ts +4 -0
- package/src/__tests__/unit/layout.ts +3 -0
- package/src/__tests__/unit/nodeviews/OverflowShadowsObserver.ts +1 -0
- package/src/__tests__/unit/nodeviews/TableComponent.tsx +2 -0
- package/src/__tests__/unit/nodeviews/TableContainer.tsx +2 -0
- package/src/__tests__/unit/nodeviews/cell.ts +3 -0
- package/src/__tests__/unit/nodeviews/table.ts +4 -0
- package/src/__tests__/unit/pm-plugins/decorations/column-controls.ts +2 -0
- package/src/__tests__/unit/pm-plugins/decorations/column-resizing.ts +3 -0
- package/src/__tests__/unit/pm-plugins/decorations/plugin.ts +3 -0
- package/src/__tests__/unit/pm-plugins/main.ts +3 -0
- package/src/__tests__/unit/pm-plugins/safari-delete-composition-text-issue-workaround.ts +3 -0
- package/src/__tests__/unit/pm-plugins/sticky-headers/tableRow.tsx +5 -1
- package/src/__tests__/unit/pm-plugins/table-local-id.ts +4 -0
- package/src/__tests__/unit/pm-plugins/table-resizing/colgroup.ts +2 -0
- package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +3 -0
- package/src/__tests__/unit/pm-plugins/table-width.ts +3 -0
- package/src/__tests__/unit/sort-column.ts +3 -0
- package/src/__tests__/unit/toolbar.ts +3 -0
- package/src/__tests__/unit/transforms/delete-columns.ts +3 -0
- package/src/__tests__/unit/transforms/delete-rows.ts +3 -0
- package/src/__tests__/unit/transforms/merging.ts +3 -0
- package/src/__tests__/unit/ui/ContextualMenu.tsx +3 -0
- package/src/__tests__/unit/ui/CornerControls.tsx +3 -0
- package/src/__tests__/unit/ui/FloatingContextualButton.tsx +3 -0
- package/src/__tests__/unit/ui/FloatingContextualMenu.tsx +3 -0
- package/src/__tests__/unit/ui/FloatingDeleteButton.tsx +3 -0
- package/src/__tests__/unit/ui/FloatingInsertButton.tsx +3 -0
- package/src/__tests__/unit/ui/RowControls.tsx +4 -0
- package/src/__tests__/unit/ui/TableFloatingControls.tsx +3 -0
- package/src/__tests__/unit/undo-redo.ts +4 -0
- package/src/__tests__/unit/utils/collapse.ts +3 -0
- package/src/__tests__/unit/utils/nodes.ts +3 -0
- package/src/__tests__/unit/utils/row-controls.ts +3 -0
- package/src/__tests__/unit/utils/table.ts +2 -0
- package/src/__tests__/unit/utils.ts +3 -0
- package/src/__tests__/visual-regression/__image_snapshots__/cell-options-menu-ts-table-cell-options-menu-delete-column-menu-item-should-remove-the-table-column-on-click-1-snap.png +2 -2
- package/src/__tests__/visual-regression/__image_snapshots__/cell-options-menu-ts-table-cell-options-menu-delete-column-menu-item-visual-hints-should-be-added-to-the-table-column-on-hover-1-snap.png +2 -2
- package/src/__tests__/visual-regression/__image_snapshots__/cell-options-menu-ts-table-cell-options-menu-delete-row-menu-item-should-remove-the-table-row-on-click-1-snap.png +2 -2
- package/src/__tests__/visual-regression/__image_snapshots__/cell-options-menu-ts-table-cell-options-menu-delete-row-menu-item-visual-hints-should-be-added-to-the-table-row-on-hover-1-snap.png +2 -2
- package/src/__tests__/visual-regression/cell-options-menu.ts +3 -1
- package/src/__tests__/visual-regression/index.ts +4 -1
- package/src/__tests__/visual-regression/sticky-header.ts +4 -1
- package/src/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.ts +26 -7
- package/src/plugins/table/pm-plugins/sticky-headers/util.ts +1 -1
- package/src/plugins/table/ui/consts.ts +13 -2
- package/src/plugins/table/ui/ui-styles.ts +2 -2
- package/src/__tests__/integration/__snapshots__/floating-toolbar.ts.snap +0 -613
- package/src/__tests__/integration/floating-toolbar.ts +0 -374
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -9,10 +10,12 @@ import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
|
9
10
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
10
11
|
import { addColumnAt } from '@atlaskit/editor-tables/utils';
|
|
11
12
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
13
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
12
14
|
import {
|
|
13
15
|
createProsemirrorEditorFactory,
|
|
14
16
|
Preset,
|
|
15
17
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
18
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
16
19
|
import {
|
|
17
20
|
doc,
|
|
18
21
|
table,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -10,10 +11,12 @@ import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
|
10
11
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
11
12
|
import * as pmUtils from '@atlaskit/editor-prosemirror/utils';
|
|
12
13
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
14
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
15
|
import {
|
|
14
16
|
createProsemirrorEditorFactory,
|
|
15
17
|
Preset,
|
|
16
18
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
19
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
17
20
|
import {
|
|
18
21
|
doc,
|
|
19
22
|
p,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -6,10 +7,12 @@ import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
|
6
7
|
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
7
8
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
9
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
10
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
9
11
|
import {
|
|
10
12
|
createProsemirrorEditorFactory,
|
|
11
13
|
Preset,
|
|
12
14
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
15
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
16
|
import {
|
|
14
17
|
doc,
|
|
15
18
|
p,
|
|
@@ -7,6 +7,7 @@ import createStub from 'raf-stub';
|
|
|
7
7
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
8
8
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
9
9
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
10
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
10
11
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
11
12
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
12
13
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -16,10 +17,12 @@ import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
16
17
|
import type { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
17
18
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
18
19
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
20
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
19
21
|
import {
|
|
20
22
|
createProsemirrorEditorFactory,
|
|
21
23
|
Preset,
|
|
22
24
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
25
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
23
26
|
import {
|
|
24
27
|
doc,
|
|
25
28
|
table,
|
|
@@ -520,7 +523,7 @@ describe('TableRowNodeView', () => {
|
|
|
520
523
|
);
|
|
521
524
|
});
|
|
522
525
|
|
|
523
|
-
it('updates sticky header when sentinel is above scroll area', () => {
|
|
526
|
+
it('updates sticky header when sentinel is above scroll area', async () => {
|
|
524
527
|
renderTableComponent();
|
|
525
528
|
const sentinelBottom = screen.getByTestId('sticky-sentinel-bottom');
|
|
526
529
|
|
|
@@ -538,6 +541,7 @@ describe('TableRowNodeView', () => {
|
|
|
538
541
|
sticky: true,
|
|
539
542
|
}),
|
|
540
543
|
);
|
|
544
|
+
await new Promise((r) => setTimeout(r, 100));
|
|
541
545
|
|
|
542
546
|
(updateStickyState as jest.Mock).mockClear();
|
|
543
547
|
triggerElementIntersect({
|
|
@@ -11,8 +11,11 @@ import {
|
|
|
11
11
|
import { __serializeForClipboard } from '@atlaskit/editor-prosemirror/view';
|
|
12
12
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
13
13
|
import { selectTable } from '@atlaskit/editor-tables/utils';
|
|
14
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
14
15
|
import { createEditorFactory } from '@atlaskit/editor-test-helpers/create-editor';
|
|
16
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
15
17
|
import dispatchPasteEvent from '@atlaskit/editor-test-helpers/dispatch-paste-event';
|
|
18
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
16
19
|
import {
|
|
17
20
|
doc,
|
|
18
21
|
expand,
|
|
@@ -24,6 +27,7 @@ import {
|
|
|
24
27
|
th,
|
|
25
28
|
tr,
|
|
26
29
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
30
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
27
31
|
import { insertText } from '@atlaskit/editor-test-helpers/transactions';
|
|
28
32
|
|
|
29
33
|
import { handleCut } from '../../../plugins/table/event-handlers';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
1
2
|
import {
|
|
2
3
|
p,
|
|
3
4
|
table,
|
|
@@ -5,6 +6,7 @@ import {
|
|
|
5
6
|
th,
|
|
6
7
|
tr,
|
|
7
8
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
9
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
8
10
|
import defaultSchema from '@atlaskit/editor-test-helpers/schema';
|
|
9
11
|
import { ffTest } from '@atlassian/feature-flags-test-utils';
|
|
10
12
|
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
TABLE_ACTION,
|
|
5
5
|
} from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
7
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
7
8
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
8
9
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
10
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -19,10 +20,12 @@ import {
|
|
|
19
20
|
akEditorFullPageMaxWidth,
|
|
20
21
|
} from '@atlaskit/editor-shared-styles/consts';
|
|
21
22
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
23
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
22
24
|
import {
|
|
23
25
|
createProsemirrorEditorFactory,
|
|
24
26
|
Preset,
|
|
25
27
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
28
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
26
29
|
import {
|
|
27
30
|
doc,
|
|
28
31
|
p,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -7,10 +8,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
7
8
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
9
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
10
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
11
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
10
12
|
import {
|
|
11
13
|
createProsemirrorEditorFactory,
|
|
12
14
|
Preset,
|
|
13
15
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
14
17
|
import {
|
|
15
18
|
doc,
|
|
16
19
|
p,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
2
|
import { TableSortOrder as SortOrder } from '@atlaskit/adf-schema/steps';
|
|
3
3
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
4
5
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
5
6
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
7
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -9,10 +10,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
9
10
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
10
11
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
11
12
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
13
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
12
14
|
import {
|
|
13
15
|
createProsemirrorEditorFactory,
|
|
14
16
|
Preset,
|
|
15
17
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
18
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
16
19
|
import {
|
|
17
20
|
doc,
|
|
18
21
|
p,
|
|
@@ -3,6 +3,7 @@ import type {
|
|
|
3
3
|
DropdownOptionT,
|
|
4
4
|
FloatingToolbarDropdown,
|
|
5
5
|
} from '@atlaskit/editor-common/types';
|
|
6
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
6
7
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
7
8
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
9
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -12,10 +13,12 @@ import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
12
13
|
import { Rect } from '@atlaskit/editor-tables/table-map';
|
|
13
14
|
import { splitCell } from '@atlaskit/editor-tables/utils';
|
|
14
15
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
15
17
|
import {
|
|
16
18
|
createProsemirrorEditorFactory,
|
|
17
19
|
Preset,
|
|
18
20
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
21
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
19
22
|
import {
|
|
20
23
|
doc,
|
|
21
24
|
p,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
3
4
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
4
5
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
6
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -10,10 +11,12 @@ import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
10
11
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
11
12
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
12
13
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
14
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
15
|
import {
|
|
14
16
|
createProsemirrorEditorFactory,
|
|
15
17
|
Preset,
|
|
16
18
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
19
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
17
20
|
import {
|
|
18
21
|
doc,
|
|
19
22
|
p,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
3
4
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
4
5
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
6
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -10,10 +11,12 @@ import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
10
11
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
11
12
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
12
13
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
14
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
15
|
import {
|
|
14
16
|
createProsemirrorEditorFactory,
|
|
15
17
|
Preset,
|
|
16
18
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
19
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
17
20
|
import {
|
|
18
21
|
doc,
|
|
19
22
|
p,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
3
4
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
4
5
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
6
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -8,10 +9,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
8
9
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
10
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
11
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
12
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
11
13
|
import {
|
|
12
14
|
createProsemirrorEditorFactory,
|
|
13
15
|
Preset,
|
|
14
16
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
17
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
15
18
|
import {
|
|
16
19
|
doc,
|
|
17
20
|
p,
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import { createIntl } from 'react-intl-next';
|
|
5
5
|
|
|
6
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
6
7
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
7
8
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
9
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -11,10 +12,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
11
12
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
12
13
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
13
14
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
15
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
14
16
|
import {
|
|
15
17
|
createProsemirrorEditorFactory,
|
|
16
18
|
Preset,
|
|
17
19
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
20
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
18
21
|
import {
|
|
19
22
|
doc,
|
|
20
23
|
p,
|
|
@@ -4,6 +4,7 @@ import { fireEvent, render, screen } from '@testing-library/react';
|
|
|
4
4
|
import { IntlProvider } from 'react-intl-next';
|
|
5
5
|
|
|
6
6
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
7
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
7
8
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
8
9
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
10
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -12,10 +13,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
12
13
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
13
14
|
import { isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
14
15
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
15
17
|
import {
|
|
16
18
|
createProsemirrorEditorFactory,
|
|
17
19
|
Preset,
|
|
18
20
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
21
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
19
22
|
import {
|
|
20
23
|
doc,
|
|
21
24
|
table,
|
|
@@ -5,6 +5,7 @@ import { IntlProvider } from 'react-intl-next';
|
|
|
5
5
|
|
|
6
6
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
7
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
8
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
8
9
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
9
10
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
10
11
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -15,10 +16,12 @@ import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
|
15
16
|
import * as prosemirrorUtils from '@atlaskit/editor-prosemirror/utils';
|
|
16
17
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
17
18
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
19
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
18
20
|
import {
|
|
19
21
|
createProsemirrorEditorFactory,
|
|
20
22
|
Preset,
|
|
21
23
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
24
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
22
25
|
import {
|
|
23
26
|
doc,
|
|
24
27
|
table,
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import { IntlProvider } from 'react-intl-next';
|
|
5
5
|
|
|
6
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
6
7
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
7
8
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
9
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -11,10 +12,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
11
12
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
12
13
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
13
14
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
15
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
14
16
|
import {
|
|
15
17
|
createProsemirrorEditorFactory,
|
|
16
18
|
Preset,
|
|
17
19
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
20
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
18
21
|
import {
|
|
19
22
|
doc,
|
|
20
23
|
p,
|
|
@@ -6,7 +6,9 @@ import { IntlProvider } from 'react-intl-next';
|
|
|
6
6
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
7
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import { getCellsInColumn, selectTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
9
10
|
import { createEditorFactory } from '@atlaskit/editor-test-helpers/create-editor';
|
|
11
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
10
12
|
import {
|
|
11
13
|
doc,
|
|
12
14
|
table,
|
|
@@ -15,6 +17,7 @@ import {
|
|
|
15
17
|
thEmpty,
|
|
16
18
|
tr,
|
|
17
19
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
20
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
18
21
|
import { selectColumns, selectRows } from '@atlaskit/editor-test-helpers/table';
|
|
19
22
|
|
|
20
23
|
import tablePlugin from '../../../plugins/table-plugin';
|
|
@@ -14,7 +14,9 @@ import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
|
14
14
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
15
15
|
import * as prosemirrorUtils from '@atlaskit/editor-prosemirror/utils';
|
|
16
16
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
17
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
17
18
|
import { createEditorFactory } from '@atlaskit/editor-test-helpers/create-editor';
|
|
19
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
18
20
|
import {
|
|
19
21
|
doc,
|
|
20
22
|
table,
|
|
@@ -23,6 +25,7 @@ import {
|
|
|
23
25
|
thEmpty,
|
|
24
26
|
tr,
|
|
25
27
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
28
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
26
29
|
import {
|
|
27
30
|
selectCell,
|
|
28
31
|
selectColumns,
|
|
@@ -5,6 +5,7 @@ import { IntlProvider } from 'react-intl-next';
|
|
|
5
5
|
|
|
6
6
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
7
7
|
import { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
8
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
8
9
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
9
10
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
10
11
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -13,10 +14,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
13
14
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
14
15
|
import { getSelectionRect, selectRow } from '@atlaskit/editor-tables/utils';
|
|
15
16
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
17
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
16
18
|
import {
|
|
17
19
|
createProsemirrorEditorFactory,
|
|
18
20
|
Preset,
|
|
19
21
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
22
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
20
23
|
import {
|
|
21
24
|
doc,
|
|
22
25
|
p,
|
|
@@ -27,6 +30,7 @@ import {
|
|
|
27
30
|
thEmpty,
|
|
28
31
|
tr,
|
|
29
32
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
33
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
30
34
|
import { selectRows } from '@atlaskit/editor-test-helpers/table';
|
|
31
35
|
|
|
32
36
|
import tablePlugin from '../../../plugins/table-plugin';
|
|
@@ -4,6 +4,7 @@ import { render, screen } from '@testing-library/react';
|
|
|
4
4
|
import { IntlProvider } from 'react-intl-next';
|
|
5
5
|
|
|
6
6
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
7
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
7
8
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
8
9
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
10
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -12,10 +13,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
12
13
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
13
14
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
14
15
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
15
17
|
import {
|
|
16
18
|
createProsemirrorEditorFactory,
|
|
17
19
|
Preset,
|
|
18
20
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
21
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
19
22
|
import {
|
|
20
23
|
doc,
|
|
21
24
|
p,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import clone from 'lodash/clone';
|
|
2
2
|
|
|
3
3
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
4
5
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
5
6
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
7
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -10,10 +11,12 @@ import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
10
11
|
import { redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
11
12
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
12
13
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
14
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
15
|
import {
|
|
14
16
|
createProsemirrorEditorFactory,
|
|
15
17
|
Preset,
|
|
16
18
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
19
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
17
20
|
import {
|
|
18
21
|
doc,
|
|
19
22
|
p,
|
|
@@ -25,6 +28,7 @@ import {
|
|
|
25
28
|
thEmpty,
|
|
26
29
|
tr,
|
|
27
30
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
31
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
28
32
|
import sendKeyToPm from '@atlaskit/editor-test-helpers/send-key-to-pm';
|
|
29
33
|
|
|
30
34
|
import tablePlugin from '../../plugins/table';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -6,10 +7,12 @@ import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
|
6
7
|
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
7
8
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
9
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
10
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
9
11
|
import {
|
|
10
12
|
createProsemirrorEditorFactory,
|
|
11
13
|
Preset,
|
|
12
14
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
15
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
16
|
import {
|
|
14
17
|
doc,
|
|
15
18
|
table,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -7,10 +8,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
7
8
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
9
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
9
10
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
11
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
10
12
|
import {
|
|
11
13
|
createProsemirrorEditorFactory,
|
|
12
14
|
Preset,
|
|
13
15
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
14
17
|
import {
|
|
15
18
|
doc,
|
|
16
19
|
p,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
3
4
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
4
5
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
6
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -9,10 +10,12 @@ import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
9
10
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
10
11
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
11
12
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
13
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
12
14
|
import {
|
|
13
15
|
createProsemirrorEditorFactory,
|
|
14
16
|
Preset,
|
|
15
17
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
18
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
16
19
|
import {
|
|
17
20
|
doc,
|
|
18
21
|
p,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { getCellsInRow } from '@atlaskit/editor-tables/utils';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
3
|
import { createEditorState } from '@atlaskit/editor-test-helpers/create-editor-state';
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
3
5
|
import {
|
|
4
6
|
doc,
|
|
5
7
|
p,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -7,10 +8,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
7
8
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
9
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
10
|
import type { LightEditorPlugin } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
11
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
10
12
|
import {
|
|
11
13
|
createProsemirrorEditorFactory,
|
|
12
14
|
Preset,
|
|
13
15
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
14
17
|
import {
|
|
15
18
|
doc,
|
|
16
19
|
p,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:62f21c718cb5c25d43706c9c34275db8ed11bd33b6fe8e6ed1068c2ccc9f0e93
|
|
3
|
+
size 15405
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a477e5c2e5c14b2eb39aaf5d33020f4183de81f3a4cbead7efb5d8a13f1d5b08
|
|
3
|
+
size 33229
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ea02c0da089226d50b728af2b06dfda143df89c42f02acbb637a973d303c3850
|
|
3
|
+
size 15326
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9b38819ea18d4c8ab4aa5118d3e81c8875b95cdd7e9fbcc61e6d3bc414dc85d4
|
|
3
|
+
size 33268
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
1
2
|
import { insertTable } from '@atlaskit/editor-test-helpers/page-objects/table';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
4
|
import {
|
|
3
5
|
initFullPageEditorWithAdf,
|
|
4
6
|
snapshot,
|
|
5
7
|
} from '@atlaskit/editor-test-helpers/vr-utils/base-utils';
|
|
6
|
-
import { PuppeteerPage } from '@atlaskit/visual-regression/helper';
|
|
8
|
+
import type { PuppeteerPage } from '@atlaskit/visual-regression/helper';
|
|
7
9
|
|
|
8
10
|
const firstCellSelector = 'table tbody th p';
|
|
9
11
|
const cellOptionsSelector = '[aria-label="Cell options"]';
|