@atlaskit/editor-plugin-table 1.4.1 → 1.5.1

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.
Files changed (83) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/cjs/i18n/cs.js +2 -2
  3. package/dist/cjs/i18n/en_ZZ.js +43 -0
  4. package/dist/cjs/i18n/ja.js +4 -4
  5. package/dist/cjs/i18n/ko.js +1 -1
  6. package/dist/cjs/i18n/sv.js +1 -1
  7. package/dist/cjs/i18n/vi.js +2 -2
  8. package/dist/cjs/i18n/zh.js +3 -3
  9. package/dist/cjs/plugins/table/index.js +3 -1
  10. package/dist/cjs/plugins/table/nodeviews/TableComponent.js +5 -0
  11. package/dist/cjs/plugins/table/nodeviews/table.js +2 -1
  12. package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +10 -0
  13. package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
  14. package/dist/cjs/plugins/table/ui/consts.js +8 -3
  15. package/dist/cjs/plugins/table/ui/ui-styles.js +2 -2
  16. package/dist/cjs/version.json +1 -1
  17. package/dist/es2019/i18n/cs.js +2 -2
  18. package/dist/es2019/i18n/en_ZZ.js +36 -0
  19. package/dist/es2019/i18n/ja.js +4 -4
  20. package/dist/es2019/i18n/ko.js +1 -1
  21. package/dist/es2019/i18n/sv.js +1 -1
  22. package/dist/es2019/i18n/vi.js +2 -2
  23. package/dist/es2019/i18n/zh.js +3 -3
  24. package/dist/es2019/plugins/table/index.js +4 -2
  25. package/dist/es2019/plugins/table/nodeviews/TableComponent.js +5 -0
  26. package/dist/es2019/plugins/table/nodeviews/table.js +2 -1
  27. package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +10 -0
  28. package/dist/es2019/plugins/table/ui/common-styles.js +3 -3
  29. package/dist/es2019/plugins/table/ui/consts.js +6 -2
  30. package/dist/es2019/plugins/table/ui/ui-styles.js +3 -3
  31. package/dist/es2019/version.json +1 -1
  32. package/dist/esm/i18n/cs.js +2 -2
  33. package/dist/esm/i18n/en_ZZ.js +36 -0
  34. package/dist/esm/i18n/ja.js +4 -4
  35. package/dist/esm/i18n/ko.js +1 -1
  36. package/dist/esm/i18n/sv.js +1 -1
  37. package/dist/esm/i18n/vi.js +2 -2
  38. package/dist/esm/i18n/zh.js +3 -3
  39. package/dist/esm/plugins/table/index.js +4 -2
  40. package/dist/esm/plugins/table/nodeviews/TableComponent.js +5 -0
  41. package/dist/esm/plugins/table/nodeviews/table.js +2 -1
  42. package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +10 -0
  43. package/dist/esm/plugins/table/ui/common-styles.js +2 -2
  44. package/dist/esm/plugins/table/ui/consts.js +6 -2
  45. package/dist/esm/plugins/table/ui/ui-styles.js +3 -3
  46. package/dist/esm/version.json +1 -1
  47. package/dist/types/i18n/en_ZZ.d.ts +35 -0
  48. package/dist/types/plugins/table/ui/consts.d.ts +2 -1
  49. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +35 -0
  50. package/dist/types-ts4.5/plugins/table/ui/consts.d.ts +2 -1
  51. package/examples/99-testing.tsx +1 -4
  52. package/package.json +16 -7
  53. package/src/__tests__/integration/auto-size.ts +6 -2
  54. package/src/__tests__/integration/sticky-header.ts +6 -5
  55. package/src/__tests__/unit/collab.ts +1 -1
  56. package/src/__tests__/unit/color-picker.ts +4 -0
  57. package/src/__tests__/unit/commands/insert.ts +1 -1
  58. package/src/__tests__/unit/commands/misc.ts +2 -0
  59. package/src/__tests__/unit/commands.ts +4 -2
  60. package/src/__tests__/unit/event-handlers.ts +4 -2
  61. package/src/__tests__/unit/get-toolbar-config.ts +4 -0
  62. package/src/__tests__/unit/index.ts +4 -2
  63. package/src/__tests__/unit/keymap.ts +4 -2
  64. package/src/__tests__/unit/layout.ts +4 -0
  65. package/src/__tests__/unit/pm-plugins/main-with-allow-collapse.ts +4 -0
  66. package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +3 -1
  67. package/src/__tests__/unit/pm-plugins/table-selection-keymap.ts +2 -0
  68. package/src/__tests__/unit/undo-redo.ts +1 -1
  69. package/src/__tests__/unit/utils/collapse.ts +4 -1
  70. package/src/i18n/cs.ts +2 -2
  71. package/src/i18n/en_ZZ.ts +41 -0
  72. package/src/i18n/ja.ts +4 -4
  73. package/src/i18n/ko.ts +1 -1
  74. package/src/i18n/sv.ts +1 -1
  75. package/src/i18n/vi.ts +2 -2
  76. package/src/i18n/zh.ts +3 -3
  77. package/src/plugins/table/index.tsx +13 -2
  78. package/src/plugins/table/nodeviews/TableComponent.tsx +6 -0
  79. package/src/plugins/table/nodeviews/table.tsx +1 -0
  80. package/src/plugins/table/pm-plugins/table-resizing/utils/resize-state.ts +11 -0
  81. package/src/plugins/table/ui/common-styles.ts +3 -3
  82. package/src/plugins/table/ui/consts.ts +6 -2
  83. package/src/plugins/table/ui/ui-styles.ts +3 -3
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.editor.canNotSortTable': string;
9
+ 'fabric.editor.cellBackground': string;
10
+ 'fabric.editor.cellOptions': string;
11
+ 'fabric.editor.clearCells': string;
12
+ 'fabric.editor.collapseTable': string;
13
+ 'fabric.editor.cornerControl': string;
14
+ 'fabric.editor.distributeColumns': string;
15
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessagePrefix': string;
16
+ 'fabric.editor.extension.deleteElementTitle': string;
17
+ 'fabric.editor.extension.sourceNoTitledName': string;
18
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
19
+ 'fabric.editor.headerColumn': string;
20
+ 'fabric.editor.headerRow': string;
21
+ 'fabric.editor.insertColumn': string;
22
+ 'fabric.editor.insertRow': string;
23
+ 'fabric.editor.mergeCells': string;
24
+ 'fabric.editor.numberedColumn': string;
25
+ 'fabric.editor.removeColumns': string;
26
+ 'fabric.editor.removeRows': string;
27
+ 'fabric.editor.rowControl': string;
28
+ 'fabric.editor.sortColumnASC': string;
29
+ 'fabric.editor.sortColumnDESC': string;
30
+ 'fabric.editor.splitCell': string;
31
+ 'fabric.editor.tableOptions': string;
32
+ 'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
33
+ 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
34
+ };
35
+ export default _default;
@@ -2,9 +2,10 @@
2
2
  * Basic colors added to prevent content overflow in table cells.
3
3
  */
4
4
  export declare const tableCellBackgroundColor: import("@atlaskit/theme").ThemedValue<"var(--ds-surface)">;
5
+ export declare const tableHeaderCellBackgroundColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral)">;
5
6
  export declare const tableToolbarColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral-subtle)">;
6
7
  export declare const tableTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-subtlest)">;
7
- export declare const tableBorderColor: import("@atlaskit/theme").ThemedValue<"var(--ds-border)">;
8
+ export declare const tableBorderColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-accent-gray-subtler)">;
8
9
  export declare const tableFloatingControlsColor: "var(--ds-background-neutral)";
9
10
  export declare const tableCellSelectedColor: "var(--ds-blanket-selected)";
10
11
  export declare const tableToolbarSelectedColor: "var(--ds-background-selected-bold)";
@@ -0,0 +1,35 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.editor.canNotSortTable': string;
9
+ 'fabric.editor.cellBackground': string;
10
+ 'fabric.editor.cellOptions': string;
11
+ 'fabric.editor.clearCells': string;
12
+ 'fabric.editor.collapseTable': string;
13
+ 'fabric.editor.cornerControl': string;
14
+ 'fabric.editor.distributeColumns': string;
15
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessagePrefix': string;
16
+ 'fabric.editor.extension.deleteElementTitle': string;
17
+ 'fabric.editor.extension.sourceNoTitledName': string;
18
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
19
+ 'fabric.editor.headerColumn': string;
20
+ 'fabric.editor.headerRow': string;
21
+ 'fabric.editor.insertColumn': string;
22
+ 'fabric.editor.insertRow': string;
23
+ 'fabric.editor.mergeCells': string;
24
+ 'fabric.editor.numberedColumn': string;
25
+ 'fabric.editor.removeColumns': string;
26
+ 'fabric.editor.removeRows': string;
27
+ 'fabric.editor.rowControl': string;
28
+ 'fabric.editor.sortColumnASC': string;
29
+ 'fabric.editor.sortColumnDESC': string;
30
+ 'fabric.editor.splitCell': string;
31
+ 'fabric.editor.tableOptions': string;
32
+ 'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
33
+ 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
34
+ };
35
+ export default _default;
@@ -2,9 +2,10 @@
2
2
  * Basic colors added to prevent content overflow in table cells.
3
3
  */
4
4
  export declare const tableCellBackgroundColor: import("@atlaskit/theme").ThemedValue<"var(--ds-surface)">;
5
+ export declare const tableHeaderCellBackgroundColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral)">;
5
6
  export declare const tableToolbarColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral-subtle)">;
6
7
  export declare const tableTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-subtlest)">;
7
- export declare const tableBorderColor: import("@atlaskit/theme").ThemedValue<"var(--ds-border)">;
8
+ export declare const tableBorderColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-accent-gray-subtler)">;
8
9
  export declare const tableFloatingControlsColor: "var(--ds-background-neutral)";
9
10
  export declare const tableCellSelectedColor: "var(--ds-blanket-selected)";
10
11
  export declare const tableToolbarSelectedColor: "var(--ds-background-selected-bold)";
@@ -12,10 +12,7 @@ import {
12
12
  createEditorExampleForTests,
13
13
  mapProvidersToProps,
14
14
  } from '@atlaskit/editor-core/example-helpers/create-editor-example-for-tests';
15
- import {
16
- EditorMigrationComponent as Editor,
17
- ContextPanel,
18
- } from '@atlaskit/editor-core/src';
15
+ import { Editor, ContextPanel } from '@atlaskit/editor-core/src';
19
16
  import { SaveAndCancelButtons } from '@atlaskit/editor-core/examples/5-full-page';
20
17
  import { TitleInput } from '@atlaskit/editor-core/example-helpers/PageElements';
21
18
  import { getDefaultLinkPickerOptions } from '@atlaskit/editor-core/example-helpers/link-picker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,16 +26,17 @@
26
26
  "releaseModel": "scheduled"
27
27
  },
28
28
  "dependencies": {
29
- "@atlaskit/adf-schema": "^25.6.0",
30
- "@atlaskit/editor-common": "^74.1.0",
29
+ "@atlaskit/adf-schema": "^25.7.0",
30
+ "@atlaskit/editor-common": "^74.3.0",
31
31
  "@atlaskit/editor-palette": "1.4.2",
32
32
  "@atlaskit/editor-plugin-analytics": "^0.0.1",
33
33
  "@atlaskit/editor-plugin-content-insertion": "^0.0.1",
34
34
  "@atlaskit/editor-shared-styles": "^2.4.0",
35
35
  "@atlaskit/editor-tables": "^2.3.0",
36
36
  "@atlaskit/icon": "^21.12.0",
37
+ "@atlaskit/platform-feature-flags": "^0.2.1",
37
38
  "@atlaskit/theme": "^12.5.0",
38
- "@atlaskit/tokens": "^1.4.0",
39
+ "@atlaskit/tokens": "^1.5.0",
39
40
  "@atlaskit/tooltip": "^17.8.0",
40
41
  "@babel/runtime": "^7.0.0",
41
42
  "@emotion/react": "^11.7.1",
@@ -62,12 +63,15 @@
62
63
  "devDependencies": {
63
64
  "@atlaskit/analytics-next": "^9.1.0",
64
65
  "@atlaskit/button": "^16.7.0",
65
- "@atlaskit/editor-core": "^183.1.0",
66
+ "@atlaskit/editor-core": "^185.0.0",
67
+ "@atlaskit/editor-plugin-decorations": "^0.1.0",
66
68
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
67
- "@atlaskit/editor-test-helpers": "^18.3.0",
69
+ "@atlaskit/editor-plugin-grid": "^0.1.0",
70
+ "@atlaskit/editor-plugin-width": "^0.0.1",
71
+ "@atlaskit/editor-test-helpers": "^18.5.0",
68
72
  "@atlaskit/link-provider": "^1.6.0",
69
73
  "@atlaskit/logo": "^13.14.0",
70
- "@atlaskit/media-integration-test-helpers": "^2.6.0",
74
+ "@atlaskit/media-integration-test-helpers": "^3.0.0",
71
75
  "@atlaskit/synchrony-test-helpers": "^2.3.0",
72
76
  "@atlaskit/util-data-test": "^17.8.0",
73
77
  "@atlaskit/visual-regression": "*",
@@ -98,5 +102,10 @@
98
102
  "emotion"
99
103
  ]
100
104
  }
105
+ },
106
+ "platform-feature-flags": {
107
+ "platform.editor.custom-table-width": {
108
+ "type": "boolean"
109
+ }
101
110
  }
102
111
  }
@@ -41,7 +41,9 @@ async function loadAndRetrieveDocument(
41
41
 
42
42
  BrowserTestCase(
43
43
  'Doesnt scale past default',
44
- { skip: ['*'] },
44
+ {
45
+ skip: ['*'],
46
+ },
45
47
  async (client: any, testName: string) => {
46
48
  const page = await goToEditorTestingWDExample(
47
49
  client,
@@ -54,7 +56,9 @@ BrowserTestCase(
54
56
 
55
57
  BrowserTestCase(
56
58
  'Scales to wide',
57
- { skip: ['*'] },
59
+ {
60
+ skip: ['*'],
61
+ },
58
62
  async (client: any, testName: string) => {
59
63
  const page = await goToEditorTestingWDExample(
60
64
  client,
@@ -51,12 +51,9 @@ const insertColumn = async (page: any, cell: 'first' | 'last') => {
51
51
  await page.click(insertButton);
52
52
  };
53
53
 
54
- // FIXME: This test was automatically skipped due to failure on 01/04/2023: https://product-fabric.atlassian.net/browse/ED-17364
55
54
  BrowserTestCase(
56
55
  'Sticky header should correctly toggle on and off',
57
- {
58
- skip: ['*'],
59
- },
56
+ {},
60
57
  async (client: any, testName: string) => {
61
58
  const page = await goToEditorTestingWDExample(
62
59
  client,
@@ -133,9 +130,13 @@ BrowserTestCase(
133
130
  },
134
131
  );
135
132
 
133
+ // FIXME: This test was automatically skipped due to failure on 28/05/2023: https://product-fabric.atlassian.net/browse/ED-18110
136
134
  BrowserTestCase(
137
135
  'Sticky header should correctly toggle on and off, after table is scrolled to the bottom and a column has been added',
138
- { skip: ['safari'] },
136
+ {
137
+ // skip: ['safari']
138
+ skip: ['*'],
139
+ },
139
140
  async (client: any, testName: string) => {
140
141
  const page = await goToEditorTestingWDExample(
141
142
  client,
@@ -18,7 +18,7 @@ import {
18
18
  Preset,
19
19
  } from '@atlaskit/editor-test-helpers/create-prosemirror-editor';
20
20
  import tablePlugin from '../../plugins/table-plugin';
21
- import widthPlugin from '@atlaskit/editor-core/src/plugins/width';
21
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
22
22
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
23
23
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
24
24
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
@@ -26,6 +26,8 @@ import { getToolbarConfig } from '../../plugins/table/toolbar';
26
26
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
27
27
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
28
28
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
29
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
30
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
29
31
 
30
32
  const formatMessage: (t: { id: string }) => string = (message) =>
31
33
  `${message.id}`;
@@ -45,7 +47,9 @@ describe('color picker', () => {
45
47
  preset: new Preset<LightEditorPlugin>()
46
48
  .add([featureFlagsPlugin, {}])
47
49
  .add([analyticsPlugin, {}])
50
+ .add(decorationsPlugin)
48
51
  .add(contentInsertionPlugin)
52
+ .add(widthPlugin)
49
53
  .add(dataConsumerPlugin)
50
54
  .add(extensionPlugin)
51
55
  .add(tablePlugin),
@@ -20,7 +20,7 @@ import tablePlugin from '../../../plugins/table/index';
20
20
  import { pluginKey } from '../../../plugins/table/pm-plugins/plugin-key';
21
21
  import { TablePluginState } from '../../../plugins/table/types';
22
22
  import { addColumnAt } from '../../../plugins/table/commands/insert';
23
- import widthPlugin from '@atlaskit/editor-core/src/plugins/width';
23
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
24
24
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
25
25
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
26
26
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
@@ -30,12 +30,14 @@ import tablePlugin from '../../../plugins/table';
30
30
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
31
31
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
32
32
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
33
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
33
34
 
34
35
  describe('table plugin: commands', () => {
35
36
  const createEditor = createProsemirrorEditorFactory();
36
37
  const preset = new Preset<LightEditorPlugin>()
37
38
  .add([featureFlagsPlugin, {}])
38
39
  .add([analyticsPlugin, {}])
40
+ .add(decorationsPlugin)
39
41
  .add(panelPlugin)
40
42
  .add(contentInsertionPlugin)
41
43
  .add([
@@ -59,12 +59,13 @@ import panelPlugin from '@atlaskit/editor-core/src/plugins/panel';
59
59
  import expandPlugin from '@atlaskit/editor-core/src/plugins/expand';
60
60
  import extensionPlugin from '@atlaskit/editor-core/src/plugins/extension';
61
61
  import mediaPlugin from '@atlaskit/editor-core/src/plugins/media';
62
- import widthPlugin from '@atlaskit/editor-core/src/plugins/width';
63
- import gridPlugin from '@atlaskit/editor-core/src/plugins/grid';
62
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
63
+ import { gridPlugin } from '@atlaskit/editor-plugin-grid';
64
64
  import textFormattingPlugin from '@atlaskit/editor-core/src/plugins/text-formatting';
65
65
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
66
66
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
67
67
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
68
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
68
69
 
69
70
  const TABLE_LOCAL_ID = 'test-table-local-id';
70
71
 
@@ -86,6 +87,7 @@ describe('table plugin: actions', () => {
86
87
  .add([featureFlagsPlugin, {}])
87
88
  .add([analyticsPlugin, {}])
88
89
  .add(contentInsertionPlugin)
90
+ .add(decorationsPlugin)
89
91
  .add(widthPlugin)
90
92
  .add(gridPlugin)
91
93
  .add(tablePlugin)
@@ -35,11 +35,12 @@ import { pluginKey } from '../../plugins/table/pm-plugins/plugin-key';
35
35
  import { TableCssClassName as ClassName } from '../../plugins/table/types';
36
36
  import tablePlugin from '../../plugins/table-plugin';
37
37
  import mediaPlugin from '@atlaskit/editor-core/src/plugins/media';
38
- import widthPlugin from '@atlaskit/editor-core/src/plugins/width';
39
- import gridPlugin from '@atlaskit/editor-core/src/plugins/grid';
38
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
39
+ import { gridPlugin } from '@atlaskit/editor-plugin-grid';
40
40
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
41
41
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
42
42
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
43
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
43
44
 
44
45
  describe('table plugin: decorations', () => {
45
46
  const createEditor = createProsemirrorEditorFactory();
@@ -166,6 +167,7 @@ describe('table event handlers', () => {
166
167
  .add([featureFlagsPlugin, {}])
167
168
  .add([analyticsPlugin, {}])
168
169
  .add(contentInsertionPlugin)
170
+ .add(decorationsPlugin)
169
171
  .add(widthPlugin)
170
172
  .add(gridPlugin)
171
173
  .add(tablePlugin)
@@ -31,6 +31,8 @@ import type {
31
31
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
32
32
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
33
33
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
34
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
35
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
34
36
 
35
37
  const formatMessage: (t: { id: string }) => string = (message) =>
36
38
  `${message.id}`;
@@ -79,6 +81,8 @@ describe('getToolbarConfig', () => {
79
81
  .add([featureFlagsPlugin, {}])
80
82
  .add([analyticsPlugin, {}])
81
83
  .add(contentInsertionPlugin)
84
+ .add(decorationsPlugin)
85
+ .add(widthPlugin)
82
86
  .add(dataConsumerPlugin)
83
87
  .add(extensionPlugin)
84
88
  .add(tablePlugin),
@@ -57,8 +57,8 @@ import deprecatedAnalyticsPlugin from '@atlaskit/editor-core/src/plugins/analyti
57
57
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
58
58
  import mediaPlugin from '@atlaskit/editor-core/src/plugins/media';
59
59
  import selectionPlugin from '@atlaskit/editor-core/src/plugins/selection';
60
- import widthPlugin from '@atlaskit/editor-core/src/plugins/width';
61
- import gridPlugin from '@atlaskit/editor-core/src/plugins/grid';
60
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
61
+ import { gridPlugin } from '@atlaskit/editor-plugin-grid';
62
62
  import { insertMediaAsMediaSingle } from '@atlaskit/editor-core/src/plugins/media/utils/media-single';
63
63
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
64
64
  import { getPluginState } from '../../plugins/table/pm-plugins/plugin-factory';
@@ -67,6 +67,7 @@ import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
67
67
  import tablePlugin from '../../plugins/table-plugin';
68
68
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
69
69
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
70
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
70
71
 
71
72
  const TABLE_LOCAL_ID = 'test-table-local-id';
72
73
 
@@ -100,6 +101,7 @@ describe('table plugin', () => {
100
101
  .add([analyticsPlugin, {}])
101
102
  .add([deprecatedAnalyticsPlugin, {}])
102
103
  .add(contentInsertionPlugin)
104
+ .add(decorationsPlugin)
103
105
  .add(widthPlugin)
104
106
  .add(gridPlugin)
105
107
  .add([tablePlugin, { tableOptions }])
@@ -36,7 +36,7 @@ import {
36
36
  import { uuid } from '@atlaskit/adf-schema';
37
37
  import { uuid as tablesUuid } from '@atlaskit/editor-tables';
38
38
 
39
- import gridPlugin from '@atlaskit/editor-core/src/plugins/grid';
39
+ import { gridPlugin } from '@atlaskit/editor-plugin-grid';
40
40
  import panelPlugin from '@atlaskit/editor-core/src/plugins/panel';
41
41
  import expandPlugin from '@atlaskit/editor-core/src/plugins/expand';
42
42
  import tasksDecisionsPlugin from '@atlaskit/editor-core/src/plugins/tasks-and-decisions';
@@ -58,10 +58,11 @@ import statusPlugin from '@atlaskit/editor-core/src/plugins/status';
58
58
  import tablePlugin from '../../plugins/table';
59
59
  import { TablePluginState } from '../../plugins/table/types';
60
60
  import { pluginKey } from '../../plugins/table/pm-plugins/plugin-key';
61
- import widthPlugin from '@atlaskit/editor-core/src/plugins/width';
61
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
62
62
  import editorDisabledPlugin from '@atlaskit/editor-core/src/plugins/editor-disabled';
63
63
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
64
64
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
65
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
65
66
 
66
67
  const TABLE_LOCAL_ID = 'test-table-local-id';
67
68
 
@@ -89,6 +90,7 @@ describe('table keymap', () => {
89
90
  .add([analyticsPlugin, { createAnalyticsEvent }])
90
91
  .add([deprecatedAnalyticsPlugin, { createAnalyticsEvent }])
91
92
  .add(contentInsertionPlugin)
93
+ .add(decorationsPlugin)
92
94
  .add(widthPlugin)
93
95
  .add(gridPlugin)
94
96
  .add(selectionPlugin)
@@ -38,6 +38,8 @@ import { PluginKey } from 'prosemirror-state';
38
38
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
39
39
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
40
40
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
41
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
42
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
41
43
 
42
44
  describe('table toolbar', () => {
43
45
  const tableOptions = {
@@ -52,6 +54,8 @@ describe('table toolbar', () => {
52
54
  .add([featureFlagsPlugin, {}])
53
55
  .add([analyticsPlugin, {}])
54
56
  .add(contentInsertionPlugin)
57
+ .add(decorationsPlugin)
58
+ .add(widthPlugin)
55
59
  .add([tablePlugin, { tableOptions }])
56
60
  .add(expandPlugin)
57
61
  .add(extensionPlugin)
@@ -24,6 +24,8 @@ import extensionPlugin from '@atlaskit/editor-core/src/plugins/extension';
24
24
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
25
25
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
26
26
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
27
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
28
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
27
29
 
28
30
  describe('tables: main plugin with allowCollapse: true', () => {
29
31
  const createEditor = createProsemirrorEditorFactory();
@@ -34,6 +36,8 @@ describe('tables: main plugin with allowCollapse: true', () => {
34
36
  .add([featureFlagsPlugin, {}])
35
37
  .add([analyticsPlugin, {}])
36
38
  .add(contentInsertionPlugin)
39
+ .add(decorationsPlugin)
40
+ .add(widthPlugin)
37
41
  .add(tablePlugin)
38
42
  .add(expandPlugin)
39
43
  .add(extensionPlugin),
@@ -24,7 +24,7 @@ import { pluginKey } from '../../../../plugins/table/pm-plugins/plugin-key';
24
24
  import { TextSelection, NodeSelection, EditorState } from 'prosemirror-state';
25
25
  import { EditorView } from 'prosemirror-view';
26
26
  import panelPlugin from '@atlaskit/editor-core/src/plugins/panel';
27
- import widthPlugin from '@atlaskit/editor-core/src/plugins/width';
27
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
28
28
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
29
29
  import {
30
30
  akEditorFullPageMaxWidth,
@@ -33,6 +33,7 @@ import {
33
33
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
34
34
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
35
35
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
36
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
36
37
 
37
38
  describe('table-resizing/event-handlers', () => {
38
39
  const editorAnalyticsAPIFake: EditorAnalyticsAPI = {
@@ -49,6 +50,7 @@ describe('table-resizing/event-handlers', () => {
49
50
  .add([featureFlagsPlugin, {}])
50
51
  .add([analyticsPlugin, {}])
51
52
  .add(contentInsertionPlugin)
53
+ .add(decorationsPlugin)
52
54
  .add([
53
55
  tablePlugin,
54
56
  {
@@ -31,6 +31,7 @@ import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
31
31
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
32
32
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
33
33
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
34
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
34
35
 
35
36
  const TABLE_LOCAL_ID = 'test-table-local-id';
36
37
  describe('table selection keymap', () => {
@@ -48,6 +49,7 @@ describe('table selection keymap', () => {
48
49
  .add([featureFlagsPlugin, {}])
49
50
  .add([analyticsPlugin, {}])
50
51
  .add(contentInsertionPlugin)
52
+ .add(decorationsPlugin)
51
53
  .add(selectionPlugin)
52
54
  .add([tablePlugin, { tableOptions: {}, editorSelectionAPI }])
53
55
  .add(panelPlugin)
@@ -24,7 +24,7 @@ import { colsToRect } from '../../plugins/table/utils/table';
24
24
  import sendKeyToPm from '@atlaskit/editor-test-helpers/send-key-to-pm';
25
25
  import clone from 'lodash/clone';
26
26
  import tablePlugin from '../../plugins/table';
27
- import widthPlugin from '@atlaskit/editor-core/src/plugins/width';
27
+ import { widthPlugin } from '@atlaskit/editor-plugin-width';
28
28
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
29
29
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
30
30
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
@@ -21,6 +21,7 @@ import {
21
21
  import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
22
22
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
23
23
  import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
24
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
24
25
 
25
26
  describe('collapse', () => {
26
27
  const createEditor = createProsemirrorEditorFactory();
@@ -32,7 +33,9 @@ describe('collapse', () => {
32
33
  .add(contentInsertionPlugin)
33
34
  .add(tablePlugin);
34
35
 
35
- const finalPreset = expandInPlugins ? preset.add(expandPlugin) : preset;
36
+ const finalPreset = expandInPlugins
37
+ ? preset.add(decorationsPlugin).add(expandPlugin)
38
+ : preset;
36
39
 
37
40
  return createEditor({ doc, preset: finalPreset });
38
41
  };
package/src/i18n/cs.ts CHANGED
@@ -16,9 +16,9 @@ export default {
16
16
  'fabric.editor.cornerControl': 'Zvýraznit tabulku',
17
17
  'fabric.editor.distributeColumns': 'Rozložení sloupců',
18
18
  'fabric.editor.extension.confirmDeleteLinkedModalMessagePrefix': 'Odstraňování',
19
- 'fabric.editor.extension.deleteElementTitle': 'Vymazat prvek',
19
+ 'fabric.editor.extension.deleteElementTitle': 'Odstranit prvek',
20
20
  'fabric.editor.extension.sourceNoTitledName': 'tento prvek',
21
- 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': 'Vymazat také všechny připojené prvky',
21
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': 'Odstranit také všechny připojené prvky',
22
22
  'fabric.editor.headerColumn': 'Sloupec záhlaví',
23
23
  'fabric.editor.headerRow': 'Řádek záhlaví',
24
24
  'fabric.editor.insertColumn': 'Vložit sloupec napravo',
@@ -0,0 +1,41 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //
9
+ export default {
10
+ 'fabric.editor.canNotSortTable': "⁣⁢⚠️ You can't sort a table with merged cells⁡⁡‌⁠⁠‌‍⁣⁤",
11
+ 'fabric.editor.cellBackground': '⁣⁢Cell background‌؜‍⁠‌⁠⁡‍‍؜‍⁣⁤',
12
+ 'fabric.editor.cellOptions': '⁣⁢Cell options؜؜⁠⁠‍⁡⁡⁣⁤',
13
+ 'fabric.editor.clearCells':
14
+ '{0, plural, one {⁣⁢Clear cell؜⁡‍؜‌⁠‍⁠‌؜‌‍⁠⁣⁤} other {⁣⁢Clear cells؜⁡‍؜‌⁠‍⁠‌؜‌‍⁠⁣⁤}}',
15
+ 'fabric.editor.collapseTable': '⁣⁢Collapse table‌؜⁡‍⁠⁡⁠‌؜‍‌⁡⁡⁣⁤',
16
+ 'fabric.editor.cornerControl': '⁣⁢Highlight table؜⁡؜⁠⁠⁠‌⁣⁤',
17
+ 'fabric.editor.distributeColumns': '⁣⁢Distribute columns؜‍‍⁡‍‌؜‍‍‌⁣⁤',
18
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessagePrefix': '⁣⁢Deleting؜‌‌⁠⁠؜‍؜⁡‌؜‌‌‌‌‌⁣⁤',
19
+ 'fabric.editor.extension.deleteElementTitle': '⁣⁢Delete element؜‌⁠⁡‍‌⁠⁡‌؜؜؜‍⁣⁤',
20
+ 'fabric.editor.extension.sourceNoTitledName': '⁣⁢this element⁠⁠‍⁡‍؜⁠‌⁡؜⁡؜‍⁣⁤',
21
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel':
22
+ '⁣⁢Also delete connected elements‌⁡⁡‍‍⁡⁡⁠‌؜؜⁣⁤',
23
+ 'fabric.editor.headerColumn': '⁣⁢Header column⁡⁡‌؜‌‌⁠⁠⁠⁡⁣⁤',
24
+ 'fabric.editor.headerRow': '⁣⁢Header row‍‌⁠⁠⁡⁠⁡⁠⁠⁠‌⁣⁤',
25
+ 'fabric.editor.insertColumn': '⁣⁢Insert column right⁠‍⁡⁠⁠؜⁡⁠⁡‌‌⁣⁤',
26
+ 'fabric.editor.insertRow': '⁣⁢Insert row below⁡⁡⁠؜‌⁠⁡‌‍⁣⁤',
27
+ 'fabric.editor.mergeCells': '⁣⁢Merge cells⁠‌⁡‍⁡⁡⁡؜⁣⁤',
28
+ 'fabric.editor.numberedColumn': '⁣⁢Numbered column⁡؜؜⁡⁡‌؜؜‍‍‌‌‍⁡⁡⁣⁤',
29
+ 'fabric.editor.removeColumns':
30
+ '{0, plural, one {⁣⁢Delete column‌‍؜‌‌⁠؜⁡⁣⁤} other {⁣⁢Delete columns‌‍؜‌‌⁠؜⁡⁣⁤}}',
31
+ 'fabric.editor.removeRows':
32
+ '{0, plural, one {⁣⁢Delete row⁠‍‍‌‍⁠؜‌⁣⁤} other {⁣⁢Delete rows⁠‍‍‌‍⁠؜‌⁣⁤}}',
33
+ 'fabric.editor.rowControl': '⁣⁢Highlight row‍‌⁠⁡⁠؜‌⁠؜؜؜؜؜⁣⁤',
34
+ 'fabric.editor.sortColumnASC': '⁣⁢Sort column A → Z⁠؜‍⁠⁠‌‌⁡‌‍⁣⁤',
35
+ 'fabric.editor.sortColumnDESC': '⁣⁢Sort column Z → A؜⁡‌؜‌‌‍⁡‌‌‍‍‌‍؜؜⁡⁣⁤',
36
+ 'fabric.editor.splitCell': '⁣⁢Split cell⁠‌‍؜⁠⁠؜‍؜⁡؜‌‍⁣⁤',
37
+ 'fabric.editor.tableOptions': '⁣⁢Table options؜؜‍‌؜⁡؜⁠⁣⁤',
38
+ 'fabric.editor.tables.confirmDeleteLinkedModalMessage':
39
+ '⁣⁢Deleting {nodeName} will break anything connected to it.⁠⁡⁠‍‍⁠؜⁠⁡⁠⁣⁤',
40
+ 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': '⁣⁢Delete؜⁡‍؜؜⁡⁠⁣⁤',
41
+ };
package/src/i18n/ja.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  //Japanese
9
9
  export default {
10
- 'fabric.editor.canNotSortTable': '⚠️ 統合したセルで表を並べ替えることはできません',
10
+ 'fabric.editor.canNotSortTable': '⚠️ 結合セルを含む表は並べ替えられません。',
11
11
  'fabric.editor.cellBackground': 'セルの背景',
12
12
  'fabric.editor.cellOptions': 'セルのオプション',
13
13
  'fabric.editor.clearCells': '{0, plural, other {セルをクリア}}',
@@ -22,13 +22,13 @@ export default {
22
22
  'fabric.editor.headerRow': 'ヘッダーの行',
23
23
  'fabric.editor.insertColumn': '列を右に挿入',
24
24
  'fabric.editor.insertRow': '行を下に挿入',
25
- 'fabric.editor.mergeCells': 'セルをマージ',
25
+ 'fabric.editor.mergeCells': 'セルを結合',
26
26
  'fabric.editor.numberedColumn': '番号付き列',
27
27
  'fabric.editor.removeColumns': '{0, plural, other {列を削除}}',
28
28
  'fabric.editor.removeRows': '{0, plural, other {行を削除}}',
29
29
  'fabric.editor.rowControl': '行をハイライト',
30
- 'fabric.editor.sortColumnASC': '列の並べ替え A → Z',
31
- 'fabric.editor.sortColumnDESC': '列の並べ替え Z → A',
30
+ 'fabric.editor.sortColumnASC': '列の並べ替え: 昇順',
31
+ 'fabric.editor.sortColumnDESC': '列の並べ替え: 降順',
32
32
  'fabric.editor.splitCell': 'セルを分割',
33
33
  'fabric.editor.tableOptions': '表のオプション',
34
34
  'fabric.editor.tables.confirmDeleteLinkedModalMessage':
package/src/i18n/ko.ts CHANGED
@@ -24,7 +24,7 @@ export default {
24
24
  'fabric.editor.numberedColumn': '번호 매기기 열',
25
25
  'fabric.editor.removeColumns': '{0, plural, other {열 삭제}}',
26
26
  'fabric.editor.removeRows': '{0, plural, other {행 삭제}}',
27
- 'fabric.editor.rowControl': '열 강조',
27
+ 'fabric.editor.rowControl': '열 강조 표시',
28
28
  'fabric.editor.sortColumnASC': '열 정렬: 오름차순',
29
29
  'fabric.editor.sortColumnDESC': '열 정렬: 내림차순',
30
30
  'fabric.editor.splitCell': '셀 나누기',
package/src/i18n/sv.ts CHANGED
@@ -10,7 +10,7 @@ export default {
10
10
  'fabric.editor.canNotSortTable': '⚠️ Du kan inte sortera en panelvy med sammanslagna celler',
11
11
  'fabric.editor.cellBackground': 'Cellbakgrund',
12
12
  'fabric.editor.cellOptions': 'Cellalternativ',
13
- 'fabric.editor.clearCells': '{0, plural, one {Rensa celler} other {Rensa celler}}',
13
+ 'fabric.editor.clearCells': '{0, plural, one {Rensa cell} other {Rensa celler}}',
14
14
  'fabric.editor.collapseTable': 'Dölj tabell',
15
15
  'fabric.editor.cornerControl': 'Markera tabellen',
16
16
  'fabric.editor.distributeColumns': 'Fördela kolumner',