@atlaskit/editor-plugin-table 5.4.23 → 5.4.24
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 +6 -0
- package/package.json +3 -3
- package/src/__tests__/unit/analytics.ts +3 -1
- package/src/__tests__/unit/commands/go-to-next-cell.ts +1 -0
- package/src/__tests__/unit/commands.ts +1 -0
- package/src/__tests__/unit/get-toolbar-config.ts +1 -0
- package/src/__tests__/unit/pm-plugins/table-local-id.ts +1 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.24",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/adf-schema": "^35.0.0",
|
|
31
31
|
"@atlaskit/custom-steps": "^0.0.7",
|
|
32
|
-
"@atlaskit/editor-common": "^76.
|
|
32
|
+
"@atlaskit/editor-common": "^76.26.0",
|
|
33
33
|
"@atlaskit/editor-palette": "1.5.2",
|
|
34
|
-
"@atlaskit/editor-plugin-analytics": "^0.
|
|
34
|
+
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
35
35
|
"@atlaskit/editor-plugin-content-insertion": "^0.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-guideline": "^0.5.0",
|
|
37
37
|
"@atlaskit/editor-plugin-selection": "^0.1.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { DocBuilder } from '@atlaskit/editor-common/types';
|
|
4
4
|
// eslint-disable-next-line import/no-extraneous-dependencies -- Removed import for fixing circular dependencies
|
|
5
5
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
@@ -71,6 +71,7 @@ const analyticsPluginFake = () => ({
|
|
|
71
71
|
name: 'analytics',
|
|
72
72
|
actions: {
|
|
73
73
|
attachAnalyticsEvent: mockAttachPayload.mockImplementation(() => () => {}),
|
|
74
|
+
fireAnalyticsEvent: jest.fn(),
|
|
74
75
|
},
|
|
75
76
|
});
|
|
76
77
|
|
|
@@ -81,6 +82,7 @@ describe('Table analytic events', () => {
|
|
|
81
82
|
beforeEach(() => {
|
|
82
83
|
editorAnalyticsAPIFake = {
|
|
83
84
|
attachAnalyticsEvent: analyticFireMock,
|
|
85
|
+
fireAnalyticsEvent: jest.fn(),
|
|
84
86
|
};
|
|
85
87
|
});
|
|
86
88
|
|
|
@@ -38,6 +38,7 @@ const tdNextFocus = td()(p('{nextFocus}'));
|
|
|
38
38
|
describe('table plugin: goToNextCell', () => {
|
|
39
39
|
const editorAnalyticsAPIFake: EditorAnalyticsAPI = {
|
|
40
40
|
attachAnalyticsEvent: jest.fn().mockReturnValue(() => jest.fn()),
|
|
41
|
+
fireAnalyticsEvent: jest.fn(),
|
|
41
42
|
};
|
|
42
43
|
const createEditor = createProsemirrorEditorFactory();
|
|
43
44
|
const preset = new Preset<LightEditorPlugin>()
|
|
@@ -327,6 +327,7 @@ describe('table plugin: actions', () => {
|
|
|
327
327
|
describe('#handleCut', () => {
|
|
328
328
|
const editorAnalyticsAPIFake: EditorAnalyticsAPI = {
|
|
329
329
|
attachAnalyticsEvent: jest.fn().mockReturnValue(() => jest.fn()),
|
|
330
|
+
fireAnalyticsEvent: jest.fn(),
|
|
330
331
|
};
|
|
331
332
|
|
|
332
333
|
describe('when the entire table is selected', () => {
|
|
@@ -42,6 +42,7 @@ describe('getToolbarConfig', () => {
|
|
|
42
42
|
const getEditorContainerWidth = () => ({ width: 500 });
|
|
43
43
|
const editorAnalyticsAPIFake: EditorAnalyticsAPI = {
|
|
44
44
|
attachAnalyticsEvent: jest.fn().mockReturnValue(() => jest.fn()),
|
|
45
|
+
fireAnalyticsEvent: jest.fn(),
|
|
45
46
|
};
|
|
46
47
|
const getEditorFeatureFlags: GetEditorFeatureFlags = jest
|
|
47
48
|
.fn()
|