@atlaskit/editor-plugin-table 3.0.1 → 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 +15 -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 +5 -1
- package/src/__tests__/unit/collab.ts +4 -1
- package/src/__tests__/unit/commands/go-to-next-cell.ts +4 -1
- package/src/__tests__/unit/commands/insert.ts +7 -2
- package/src/__tests__/unit/commands/misc.ts +4 -1
- package/src/__tests__/unit/commands/sort.ts +3 -0
- package/src/__tests__/unit/commands.ts +4 -1
- package/src/__tests__/unit/copy-paste.ts +6 -1
- package/src/__tests__/unit/event-handlers/index.ts +4 -1
- package/src/__tests__/unit/event-handlers.ts +4 -1
- package/src/__tests__/unit/fix-tables.ts +4 -1
- package/src/__tests__/unit/get-toolbar-config.ts +4 -1
- package/src/__tests__/unit/handlers.ts +4 -1
- package/src/__tests__/unit/hover-selection.ts +5 -1
- package/src/__tests__/unit/index-with-fake-timers.ts +4 -2
- package/src/__tests__/unit/index.ts +8 -2
- package/src/__tests__/unit/layout.ts +4 -1
- package/src/__tests__/unit/nodeviews/OverflowShadowsObserver.ts +1 -0
- package/src/__tests__/unit/nodeviews/TableComponent.tsx +3 -2
- package/src/__tests__/unit/nodeviews/TableContainer.tsx +3 -1
- package/src/__tests__/unit/nodeviews/cell.ts +4 -1
- package/src/__tests__/unit/nodeviews/table.ts +5 -1
- package/src/__tests__/unit/pm-plugins/decorations/column-controls.ts +2 -0
- package/src/__tests__/unit/pm-plugins/decorations/column-resizing.ts +4 -1
- package/src/__tests__/unit/pm-plugins/decorations/plugin.ts +4 -1
- package/src/__tests__/unit/pm-plugins/main.ts +4 -1
- package/src/__tests__/unit/pm-plugins/safari-delete-composition-text-issue-workaround.ts +4 -1
- package/src/__tests__/unit/pm-plugins/sticky-headers/tableRow.tsx +6 -2
- package/src/__tests__/unit/pm-plugins/table-local-id.ts +9 -2
- package/src/__tests__/unit/pm-plugins/table-resizing/colgroup.ts +2 -0
- package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +4 -1
- package/src/__tests__/unit/pm-plugins/table-width.ts +4 -1
- package/src/__tests__/unit/sort-column.ts +4 -1
- package/src/__tests__/unit/toolbar.ts +3 -0
- package/src/__tests__/unit/transforms/delete-columns.ts +4 -1
- package/src/__tests__/unit/transforms/delete-rows.ts +4 -1
- package/src/__tests__/unit/transforms/merging.ts +4 -1
- package/src/__tests__/unit/ui/ContextualMenu.tsx +3 -0
- package/src/__tests__/unit/ui/CornerControls.tsx +4 -1
- package/src/__tests__/unit/ui/FloatingContextualButton.tsx +4 -1
- package/src/__tests__/unit/ui/FloatingContextualMenu.tsx +3 -0
- package/src/__tests__/unit/ui/FloatingDeleteButton.tsx +4 -1
- package/src/__tests__/unit/ui/FloatingInsertButton.tsx +4 -1
- package/src/__tests__/unit/ui/RowControls.tsx +5 -1
- package/src/__tests__/unit/ui/TableFloatingControls.tsx +4 -1
- package/src/__tests__/unit/undo-redo.ts +5 -1
- package/src/__tests__/unit/utils/collapse.ts +4 -1
- package/src/__tests__/unit/utils/nodes.ts +4 -1
- package/src/__tests__/unit/utils/row-controls.ts +4 -1
- package/src/__tests__/unit/utils/table.ts +2 -0
- package/src/__tests__/unit/utils.ts +4 -1
- 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,6 @@
|
|
|
1
1
|
import type { TableAttributes } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
4
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
5
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
6
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -8,11 +10,12 @@ import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
8
10
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
11
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
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
|
|
11
14
|
import {
|
|
12
15
|
createProsemirrorEditorFactory,
|
|
13
16
|
Preset,
|
|
14
17
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
15
|
-
import
|
|
18
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
16
19
|
import {
|
|
17
20
|
doc,
|
|
18
21
|
p,
|
|
@@ -22,6 +25,7 @@ import {
|
|
|
22
25
|
tdEmpty,
|
|
23
26
|
tr,
|
|
24
27
|
} from '@atlaskit/editor-test-helpers/doc-builder';
|
|
28
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
25
29
|
import defaultSchema from '@atlaskit/editor-test-helpers/schema';
|
|
26
30
|
|
|
27
31
|
import tablePlugin from '../../../plugins/table';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
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
|
table,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
1
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
2
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -10,11 +12,12 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
10
12
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
11
13
|
import { getCellsInColumn } from '@atlaskit/editor-tables/utils';
|
|
12
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
|
|
13
16
|
import {
|
|
14
17
|
createProsemirrorEditorFactory,
|
|
15
18
|
Preset,
|
|
16
19
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
17
|
-
import
|
|
20
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
18
21
|
import {
|
|
19
22
|
doc,
|
|
20
23
|
p,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
1
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
2
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -8,11 +10,12 @@ import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
|
8
10
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
9
11
|
import { addColumnAt } from '@atlaskit/editor-tables/utils';
|
|
10
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
|
|
11
14
|
import {
|
|
12
15
|
createProsemirrorEditorFactory,
|
|
13
16
|
Preset,
|
|
14
17
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
15
|
-
import
|
|
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,3 +1,5 @@
|
|
|
1
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
1
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
2
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -9,11 +11,12 @@ import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
|
9
11
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
10
12
|
import * as pmUtils from '@atlaskit/editor-prosemirror/utils';
|
|
11
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
|
|
12
15
|
import {
|
|
13
16
|
createProsemirrorEditorFactory,
|
|
14
17
|
Preset,
|
|
15
18
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
-
import
|
|
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,3 +1,5 @@
|
|
|
1
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
1
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
2
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -5,11 +7,12 @@ import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
|
5
7
|
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
6
8
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
7
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
|
|
8
11
|
import {
|
|
9
12
|
createProsemirrorEditorFactory,
|
|
10
13
|
Preset,
|
|
11
14
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
12
|
-
import
|
|
15
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
16
|
import {
|
|
14
17
|
doc,
|
|
15
18
|
p,
|
|
@@ -5,7 +5,9 @@ import type { Stub } from 'raf-stub';
|
|
|
5
5
|
import createStub from 'raf-stub';
|
|
6
6
|
|
|
7
7
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
8
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
8
9
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
10
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
9
11
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
10
12
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
11
13
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -15,11 +17,12 @@ import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
15
17
|
import type { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
16
18
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
17
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
|
|
18
21
|
import {
|
|
19
22
|
createProsemirrorEditorFactory,
|
|
20
23
|
Preset,
|
|
21
24
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
22
|
-
import
|
|
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({
|
|
@@ -3,6 +3,7 @@ import { replaceRaf } from 'raf-stub';
|
|
|
3
3
|
|
|
4
4
|
import { uuid } from '@atlaskit/adf-schema';
|
|
5
5
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
6
7
|
import {
|
|
7
8
|
NodeSelection,
|
|
8
9
|
TextSelection,
|
|
@@ -10,11 +11,13 @@ import {
|
|
|
10
11
|
import { __serializeForClipboard } from '@atlaskit/editor-prosemirror/view';
|
|
11
12
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
12
13
|
import { selectTable } from '@atlaskit/editor-tables/utils';
|
|
14
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
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
|
|
14
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
|
|
15
19
|
import {
|
|
16
20
|
doc,
|
|
17
|
-
DocBuilder,
|
|
18
21
|
expand,
|
|
19
22
|
layoutColumn,
|
|
20
23
|
layoutSection,
|
|
@@ -24,11 +27,15 @@ 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';
|
|
30
34
|
import { pluginKey as tablePluginKey } from '../../../plugins/table/pm-plugins/plugin-key';
|
|
31
|
-
import {
|
|
35
|
+
import type {
|
|
36
|
+
PluginConfig,
|
|
37
|
+
TablePluginState,
|
|
38
|
+
} from '../../../plugins/table/types';
|
|
32
39
|
|
|
33
40
|
replaceRaf();
|
|
34
41
|
const requestAnimationFrame = window.requestAnimationFrame as any;
|
|
@@ -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
|
|
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
EVENT_TYPE,
|
|
4
4
|
TABLE_ACTION,
|
|
5
5
|
} from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
7
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
6
8
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
7
9
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
10
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -18,11 +20,12 @@ import {
|
|
|
18
20
|
akEditorFullPageMaxWidth,
|
|
19
21
|
} from '@atlaskit/editor-shared-styles/consts';
|
|
20
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
|
|
21
24
|
import {
|
|
22
25
|
createProsemirrorEditorFactory,
|
|
23
26
|
Preset,
|
|
24
27
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
25
|
-
import
|
|
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,3 +1,5 @@
|
|
|
1
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
1
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
2
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -6,11 +8,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
6
8
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
7
9
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
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
|
|
9
12
|
import {
|
|
10
13
|
createProsemirrorEditorFactory,
|
|
11
14
|
Preset,
|
|
12
15
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
13
|
-
import
|
|
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,7 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
2
|
import { TableSortOrder as SortOrder } from '@atlaskit/adf-schema/steps';
|
|
3
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
3
5
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
4
6
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
7
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -8,11 +10,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
8
10
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
9
11
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
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
|
|
11
14
|
import {
|
|
12
15
|
createProsemirrorEditorFactory,
|
|
13
16
|
Preset,
|
|
14
17
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
15
|
-
import
|
|
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,4 +1,6 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
4
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
5
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
6
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -9,11 +11,12 @@ import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
9
11
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
10
12
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
11
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
|
|
12
15
|
import {
|
|
13
16
|
createProsemirrorEditorFactory,
|
|
14
17
|
Preset,
|
|
15
18
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
-
import
|
|
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,6 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
4
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
5
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
6
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -9,11 +11,12 @@ import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
9
11
|
import type { Rect } from '@atlaskit/editor-tables/table-map';
|
|
10
12
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
11
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
|
|
12
15
|
import {
|
|
13
16
|
createProsemirrorEditorFactory,
|
|
14
17
|
Preset,
|
|
15
18
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
-
import
|
|
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,6 @@
|
|
|
1
1
|
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
2
4
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
3
5
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
6
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -7,11 +9,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
7
9
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
8
10
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
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
|
|
10
13
|
import {
|
|
11
14
|
createProsemirrorEditorFactory,
|
|
12
15
|
Preset,
|
|
13
16
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
14
|
-
import
|
|
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,
|
|
@@ -3,6 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import { fireEvent, render, screen } from '@testing-library/react';
|
|
4
4
|
import { IntlProvider } from 'react-intl-next';
|
|
5
5
|
|
|
6
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
7
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
6
8
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
7
9
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
10
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -11,11 +13,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
11
13
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
12
14
|
import { isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
13
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
|
|
14
17
|
import {
|
|
15
18
|
createProsemirrorEditorFactory,
|
|
16
19
|
Preset,
|
|
17
20
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
18
|
-
import
|
|
21
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
19
22
|
import {
|
|
20
23
|
doc,
|
|
21
24
|
table,
|
|
@@ -4,6 +4,8 @@ import { render, screen } from '@testing-library/react';
|
|
|
4
4
|
import { IntlProvider } from 'react-intl-next';
|
|
5
5
|
|
|
6
6
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
8
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
7
9
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
8
10
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
11
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -14,11 +16,12 @@ import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
|
14
16
|
import * as prosemirrorUtils from '@atlaskit/editor-prosemirror/utils';
|
|
15
17
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
16
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
|
|
17
20
|
import {
|
|
18
21
|
createProsemirrorEditorFactory,
|
|
19
22
|
Preset,
|
|
20
23
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
21
|
-
import
|
|
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,
|
|
@@ -3,10 +3,12 @@ import React from 'react';
|
|
|
3
3
|
import { fireEvent, render, screen } from '@testing-library/react';
|
|
4
4
|
import { IntlProvider } from 'react-intl-next';
|
|
5
5
|
|
|
6
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
8
|
import { getCellsInColumn, selectTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
8
10
|
import { createEditorFactory } from '@atlaskit/editor-test-helpers/create-editor';
|
|
9
|
-
import
|
|
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';
|
|
@@ -10,11 +10,13 @@ import {
|
|
|
10
10
|
CONTENT_COMPONENT,
|
|
11
11
|
EVENT_TYPE,
|
|
12
12
|
} from '@atlaskit/editor-common/analytics';
|
|
13
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
13
14
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
14
15
|
import * as prosemirrorUtils from '@atlaskit/editor-prosemirror/utils';
|
|
15
16
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
17
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
16
18
|
import { createEditorFactory } from '@atlaskit/editor-test-helpers/create-editor';
|
|
17
|
-
import
|
|
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,
|
|
@@ -3,7 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import { fireEvent, render, screen } from '@testing-library/react';
|
|
4
4
|
import { IntlProvider } from 'react-intl-next';
|
|
5
5
|
|
|
6
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
6
7
|
import { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
8
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
7
9
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
8
10
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
11
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -12,11 +14,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
12
14
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
13
15
|
import { getSelectionRect, selectRow } from '@atlaskit/editor-tables/utils';
|
|
14
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
|
|
15
18
|
import {
|
|
16
19
|
createProsemirrorEditorFactory,
|
|
17
20
|
Preset,
|
|
18
21
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
19
|
-
import
|
|
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';
|
|
@@ -3,6 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import { IntlProvider } from 'react-intl-next';
|
|
5
5
|
|
|
6
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
7
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
6
8
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
7
9
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
10
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -11,11 +13,12 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
11
13
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
12
14
|
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
13
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
|
|
14
17
|
import {
|
|
15
18
|
createProsemirrorEditorFactory,
|
|
16
19
|
Preset,
|
|
17
20
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
18
|
-
import
|
|
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,7 @@
|
|
|
1
1
|
import clone from 'lodash/clone';
|
|
2
2
|
|
|
3
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
4
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
3
5
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
4
6
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
7
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -9,11 +11,12 @@ import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
9
11
|
import { redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
10
12
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
11
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
|
|
12
15
|
import {
|
|
13
16
|
createProsemirrorEditorFactory,
|
|
14
17
|
Preset,
|
|
15
18
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
16
|
-
import
|
|
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,3 +1,5 @@
|
|
|
1
|
+
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
1
3
|
import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
|
|
2
4
|
import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
5
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
@@ -5,11 +7,12 @@ import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
|
5
7
|
import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
6
8
|
import { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
7
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
|
|
8
11
|
import {
|
|
9
12
|
createProsemirrorEditorFactory,
|
|
10
13
|
Preset,
|
|
11
14
|
} from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
|
|
12
|
-
import
|
|
15
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
13
16
|
import {
|
|
14
17
|
doc,
|
|
15
18
|
table,
|