@atlaskit/editor-plugin-table 4.2.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/plugins/table/commands/selection.js +19 -22
  3. package/dist/cjs/plugins/table/index.js +1 -3
  4. package/dist/cjs/plugins/table/transforms/column-width.js +2 -2
  5. package/dist/es2019/plugins/table/commands/selection.js +14 -20
  6. package/dist/es2019/plugins/table/index.js +1 -4
  7. package/dist/es2019/plugins/table/transforms/column-width.js +2 -2
  8. package/dist/esm/plugins/table/commands/selection.js +19 -22
  9. package/dist/esm/plugins/table/index.js +1 -4
  10. package/dist/esm/plugins/table/transforms/column-width.js +2 -2
  11. package/dist/types/plugins/table/commands/selection.d.ts +4 -4
  12. package/dist/types/plugins/table/index.d.ts +3 -10
  13. package/dist/types/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -3
  14. package/package.json +3 -2
  15. package/src/__tests__/unit/analytics.ts +1 -1
  16. package/src/__tests__/unit/collab.ts +1 -1
  17. package/src/__tests__/unit/commands/go-to-next-cell.ts +1 -1
  18. package/src/__tests__/unit/commands/insert.ts +1 -1
  19. package/src/__tests__/unit/commands/misc.ts +1 -1
  20. package/src/__tests__/unit/commands/sort.ts +1 -1
  21. package/src/__tests__/unit/commands.ts +1 -1
  22. package/src/__tests__/unit/copy-paste.ts +1 -1
  23. package/src/__tests__/unit/event-handlers/index.ts +1 -1
  24. package/src/__tests__/unit/event-handlers.ts +1 -1
  25. package/src/__tests__/unit/fix-tables.ts +1 -1
  26. package/src/__tests__/unit/get-toolbar-config.ts +1 -1
  27. package/src/__tests__/unit/handlers.ts +1 -2
  28. package/src/__tests__/unit/hover-selection.ts +1 -2
  29. package/src/__tests__/unit/index.ts +1 -2
  30. package/src/__tests__/unit/layout.ts +1 -2
  31. package/src/__tests__/unit/nodeviews/cell.ts +1 -1
  32. package/src/__tests__/unit/nodeviews/table.ts +1 -1
  33. package/src/__tests__/unit/pm-plugins/decorations/column-resizing.ts +1 -1
  34. package/src/__tests__/unit/pm-plugins/decorations/plugin.ts +1 -1
  35. package/src/__tests__/unit/pm-plugins/main.ts +1 -1
  36. package/src/__tests__/unit/pm-plugins/safari-delete-composition-text-issue-workaround.ts +1 -1
  37. package/src/__tests__/unit/pm-plugins/sticky-headers/tableRow.tsx +1 -1
  38. package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +1 -1
  39. package/src/__tests__/unit/pm-plugins/table-width.ts +1 -1
  40. package/src/__tests__/unit/sort-column.ts +1 -1
  41. package/src/__tests__/unit/toolbar.ts +1 -1
  42. package/src/__tests__/unit/transforms/delete-columns.ts +1 -1
  43. package/src/__tests__/unit/transforms/delete-rows.ts +1 -1
  44. package/src/__tests__/unit/transforms/merging.ts +1 -1
  45. package/src/__tests__/unit/ui/ContextualMenu.tsx +1 -1
  46. package/src/__tests__/unit/ui/CornerControls.tsx +1 -1
  47. package/src/__tests__/unit/ui/FloatingContextualButton.tsx +1 -1
  48. package/src/__tests__/unit/ui/FloatingContextualMenu.tsx +1 -1
  49. package/src/__tests__/unit/ui/RowControls.tsx +1 -1
  50. package/src/__tests__/unit/ui/TableFloatingControls.tsx +1 -1
  51. package/src/__tests__/unit/undo-redo.ts +1 -1
  52. package/src/__tests__/unit/utils/collapse.ts +1 -1
  53. package/src/__tests__/unit/utils/nodes.ts +1 -1
  54. package/src/__tests__/unit/utils/row-controls.ts +1 -1
  55. package/src/__tests__/unit/utils.ts +1 -1
  56. package/src/plugins/table/commands/selection.ts +101 -33
  57. package/src/plugins/table/index.tsx +3 -17
  58. package/src/plugins/table/pm-plugins/table-selection-keymap.ts +6 -3
  59. package/src/plugins/table/transforms/column-width.ts +8 -2
  60. package/tsconfig.app.json +3 -0
  61. package/tsconfig.dev.json +3 -0
  62. package/dist/types-ts4.5/i18n/cs.d.ts +0 -37
  63. package/dist/types-ts4.5/i18n/da.d.ts +0 -35
  64. package/dist/types-ts4.5/i18n/de.d.ts +0 -35
  65. package/dist/types-ts4.5/i18n/en.d.ts +0 -37
  66. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -37
  67. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -37
  68. package/dist/types-ts4.5/i18n/es.d.ts +0 -35
  69. package/dist/types-ts4.5/i18n/fi.d.ts +0 -35
  70. package/dist/types-ts4.5/i18n/fr.d.ts +0 -37
  71. package/dist/types-ts4.5/i18n/hu.d.ts +0 -37
  72. package/dist/types-ts4.5/i18n/it.d.ts +0 -37
  73. package/dist/types-ts4.5/i18n/ja.d.ts +0 -37
  74. package/dist/types-ts4.5/i18n/ko.d.ts +0 -35
  75. package/dist/types-ts4.5/i18n/nb.d.ts +0 -35
  76. package/dist/types-ts4.5/i18n/nl.d.ts +0 -37
  77. package/dist/types-ts4.5/i18n/pl.d.ts +0 -37
  78. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -37
  79. package/dist/types-ts4.5/i18n/ru.d.ts +0 -37
  80. package/dist/types-ts4.5/i18n/sv.d.ts +0 -35
  81. package/dist/types-ts4.5/i18n/th.d.ts +0 -35
  82. package/dist/types-ts4.5/i18n/tr.d.ts +0 -37
  83. package/dist/types-ts4.5/i18n/uk.d.ts +0 -37
  84. package/dist/types-ts4.5/i18n/vi.d.ts +0 -35
  85. package/dist/types-ts4.5/i18n/zh.d.ts +0 -37
  86. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -37
  87. package/dist/types-ts4.5/index.d.ts +0 -2
  88. package/dist/types-ts4.5/plugins/table/commands/clear.d.ts +0 -3
  89. package/dist/types-ts4.5/plugins/table/commands/collapse.d.ts +0 -2
  90. package/dist/types-ts4.5/plugins/table/commands/delete.d.ts +0 -3
  91. package/dist/types-ts4.5/plugins/table/commands/go-to-next-cell.d.ts +0 -4
  92. package/dist/types-ts4.5/plugins/table/commands/hover.d.ts +0 -8
  93. package/dist/types-ts4.5/plugins/table/commands/index.d.ts +0 -8
  94. package/dist/types-ts4.5/plugins/table/commands/insert.d.ts +0 -9
  95. package/dist/types-ts4.5/plugins/table/commands/misc.d.ts +0 -29
  96. package/dist/types-ts4.5/plugins/table/commands/referentiality.d.ts +0 -2
  97. package/dist/types-ts4.5/plugins/table/commands/selection.d.ts +0 -8
  98. package/dist/types-ts4.5/plugins/table/commands/sort.d.ts +0 -3
  99. package/dist/types-ts4.5/plugins/table/commands/split-cell.d.ts +0 -6
  100. package/dist/types-ts4.5/plugins/table/commands/toggle.d.ts +0 -12
  101. package/dist/types-ts4.5/plugins/table/commands-with-analytics.d.ts +0 -25
  102. package/dist/types-ts4.5/plugins/table/create-plugin-config.d.ts +0 -2
  103. package/dist/types-ts4.5/plugins/table/event-handlers.d.ts +0 -15
  104. package/dist/types-ts4.5/plugins/table/handlers.d.ts +0 -3
  105. package/dist/types-ts4.5/plugins/table/index.d.ts +0 -45
  106. package/dist/types-ts4.5/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +0 -24
  107. package/dist/types-ts4.5/plugins/table/nodeviews/TableComponent.d.ts +0 -73
  108. package/dist/types-ts4.5/plugins/table/nodeviews/TableContainer.d.ts +0 -44
  109. package/dist/types-ts4.5/plugins/table/nodeviews/TableResizer.d.ts +0 -25
  110. package/dist/types-ts4.5/plugins/table/nodeviews/TableStickyScrollbar.d.ts +0 -24
  111. package/dist/types-ts4.5/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +0 -9
  112. package/dist/types-ts4.5/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +0 -9
  113. package/dist/types-ts4.5/plugins/table/nodeviews/table.d.ts +0 -33
  114. package/dist/types-ts4.5/plugins/table/nodeviews/tableCell.d.ts +0 -17
  115. package/dist/types-ts4.5/plugins/table/nodeviews/types.d.ts +0 -26
  116. package/dist/types-ts4.5/plugins/table/nodeviews/update-overflow-shadows.d.ts +0 -1
  117. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/plugin.d.ts +0 -7
  118. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +0 -3
  119. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +0 -4
  120. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +0 -2
  121. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/index.d.ts +0 -3
  122. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/types.d.ts +0 -6
  123. package/dist/types-ts4.5/plugins/table/pm-plugins/default-table-selection.d.ts +0 -4
  124. package/dist/types-ts4.5/plugins/table/pm-plugins/keymap.d.ts +0 -5
  125. package/dist/types-ts4.5/plugins/table/pm-plugins/main.d.ts +0 -8
  126. package/dist/types-ts4.5/plugins/table/pm-plugins/plugin-factory.d.ts +0 -1
  127. package/dist/types-ts4.5/plugins/table/pm-plugins/plugin-key.d.ts +0 -3
  128. package/dist/types-ts4.5/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -15
  129. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/commands.d.ts +0 -3
  130. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/index.d.ts +0 -6
  131. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +0 -6
  132. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +0 -73
  133. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +0 -3
  134. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +0 -3
  135. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +0 -4
  136. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/types.d.ts +0 -16
  137. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/util.d.ts +0 -2
  138. package/dist/types-ts4.5/plugins/table/pm-plugins/table-analytics.d.ts +0 -23
  139. package/dist/types-ts4.5/plugins/table/pm-plugins/table-local-id.d.ts +0 -10
  140. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/commands.d.ts +0 -23
  141. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +0 -4
  142. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/index.d.ts +0 -3
  143. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +0 -4
  144. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +0 -3
  145. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin.d.ts +0 -6
  146. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/reducer.d.ts +0 -3
  147. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +0 -23
  148. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +0 -14
  149. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/consts.d.ts +0 -2
  150. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +0 -4
  151. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +0 -12
  152. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +0 -13
  153. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +0 -20
  154. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +0 -2
  155. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +0 -4
  156. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +0 -29
  157. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +0 -21
  158. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +0 -22
  159. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +0 -1
  160. package/dist/types-ts4.5/plugins/table/pm-plugins/table-selection-keymap.d.ts +0 -4
  161. package/dist/types-ts4.5/plugins/table/pm-plugins/table-width.d.ts +0 -17
  162. package/dist/types-ts4.5/plugins/table/reducer.d.ts +0 -3
  163. package/dist/types-ts4.5/plugins/table/toolbar.d.ts +0 -36
  164. package/dist/types-ts4.5/plugins/table/transforms/column-width.d.ts +0 -37
  165. package/dist/types-ts4.5/plugins/table/transforms/delete-columns.d.ts +0 -4
  166. package/dist/types-ts4.5/plugins/table/transforms/delete-rows.d.ts +0 -3
  167. package/dist/types-ts4.5/plugins/table/transforms/fix-tables.d.ts +0 -9
  168. package/dist/types-ts4.5/plugins/table/transforms/index.d.ts +0 -6
  169. package/dist/types-ts4.5/plugins/table/transforms/merge.d.ts +0 -5
  170. package/dist/types-ts4.5/plugins/table/transforms/replace-table.d.ts +0 -5
  171. package/dist/types-ts4.5/plugins/table/transforms/split.d.ts +0 -9
  172. package/dist/types-ts4.5/plugins/table/types.d.ts +0 -342
  173. package/dist/types-ts4.5/plugins/table/ui/ColumnResizeWidget/index.d.ts +0 -9
  174. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/FixedButton.d.ts +0 -23
  175. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/index.d.ts +0 -21
  176. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/styles.d.ts +0 -3
  177. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +0 -87
  178. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/index.d.ts +0 -23
  179. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/styles.d.ts +0 -2
  180. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +0 -13
  181. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +0 -10
  182. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/index.d.ts +0 -54
  183. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/types.d.ts +0 -1
  184. package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +0 -13
  185. package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +0 -3
  186. package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/index.d.ts +0 -35
  187. package/dist/types-ts4.5/plugins/table/ui/LayoutButton/index.d.ts +0 -21
  188. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +0 -16
  189. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +0 -21
  190. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +0 -17
  191. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/index.d.ts +0 -39
  192. package/dist/types-ts4.5/plugins/table/ui/common-styles.d.ts +0 -9
  193. package/dist/types-ts4.5/plugins/table/ui/consts.d.ts +0 -50
  194. package/dist/types-ts4.5/plugins/table/ui/messages.d.ts +0 -63
  195. package/dist/types-ts4.5/plugins/table/ui/ui-styles.d.ts +0 -15
  196. package/dist/types-ts4.5/plugins/table/utils/analytics.d.ts +0 -45
  197. package/dist/types-ts4.5/plugins/table/utils/collapse.d.ts +0 -29
  198. package/dist/types-ts4.5/plugins/table/utils/column-controls.d.ts +0 -10
  199. package/dist/types-ts4.5/plugins/table/utils/decoration.d.ts +0 -19
  200. package/dist/types-ts4.5/plugins/table/utils/dom.d.ts +0 -20
  201. package/dist/types-ts4.5/plugins/table/utils/get-allow-add-column-custom-step.d.ts +0 -2
  202. package/dist/types-ts4.5/plugins/table/utils/guidelines.d.ts +0 -2
  203. package/dist/types-ts4.5/plugins/table/utils/index.d.ts +0 -11
  204. package/dist/types-ts4.5/plugins/table/utils/nodes.d.ts +0 -13
  205. package/dist/types-ts4.5/plugins/table/utils/paste.d.ts +0 -14
  206. package/dist/types-ts4.5/plugins/table/utils/row-controls.d.ts +0 -16
  207. package/dist/types-ts4.5/plugins/table/utils/selection.d.ts +0 -6
  208. package/dist/types-ts4.5/plugins/table/utils/snapping.d.ts +0 -10
  209. package/dist/types-ts4.5/plugins/table/utils/table.d.ts +0 -4
  210. package/dist/types-ts4.5/plugins/table/utils/update-plugin-state-decorations.d.ts +0 -4
  211. package/dist/types-ts4.5/plugins/table-plugin.d.ts +0 -2
  212. package/dist/types-ts4.5/types/i18n.d.ts +0 -5
  213. package/tmp/api-report-tmp.d.ts +0 -112
@@ -1,13 +1,16 @@
1
+ import type { SelectionSharedState } from '@atlaskit/editor-common/selection';
1
2
  import {
2
- EditorSelectionAPI,
3
3
  GapCursorSelection,
4
4
  isSelectionAtEndOfNode,
5
5
  isSelectionAtStartOfNode,
6
6
  RelativeSelectionPos,
7
7
  Side,
8
8
  } from '@atlaskit/editor-common/selection';
9
- import type { Command } from '@atlaskit/editor-common/types';
10
- import {
9
+ import type {
10
+ Command,
11
+ ExtractInjectionAPI,
12
+ } from '@atlaskit/editor-common/types';
13
+ import type {
11
14
  Node as PmNode,
12
15
  ResolvedPos,
13
16
  } from '@atlaskit/editor-prosemirror/model';
@@ -16,13 +19,19 @@ import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
16
19
  import { TableMap } from '@atlaskit/editor-tables/table-map';
17
20
  import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
18
21
 
22
+ import type tablePlugin from '../index';
23
+
19
24
  export enum TableSelectionDirection {
20
25
  TopToBottom = 'TopToBottom',
21
26
  BottomToTop = 'BottomToTop',
22
27
  }
23
28
 
24
29
  export const arrowLeftFromTable =
25
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
30
+ (
31
+ editorSelectionAPI:
32
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
33
+ | undefined,
34
+ ) =>
26
35
  (): Command =>
27
36
  (state, dispatch) => {
28
37
  const { selection } = state;
@@ -43,7 +52,11 @@ export const arrowLeftFromTable =
43
52
  };
44
53
 
45
54
  export const arrowRightFromTable =
46
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
55
+ (
56
+ editorSelectionAPI:
57
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
58
+ | undefined,
59
+ ) =>
47
60
  (): Command =>
48
61
  (state, dispatch) => {
49
62
  const { selection } = state;
@@ -65,22 +78,30 @@ export const arrowRightFromTable =
65
78
  };
66
79
 
67
80
  const arrowLeftFromCellSelection =
68
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
81
+ (
82
+ editorSelectionAPI:
83
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
84
+ | undefined,
85
+ ) =>
69
86
  (selection: CellSelection): Command =>
70
87
  (state, dispatch) => {
71
88
  if (isTableSelected(state.selection) && editorSelectionAPI) {
72
- const { selectionRelativeToNode } =
73
- editorSelectionAPI.getSelectionPluginState(state);
74
- if (selectionRelativeToNode === RelativeSelectionPos.Start) {
89
+ const selectionState: SelectionSharedState =
90
+ editorSelectionAPI.sharedState.currentState() || {};
91
+ if (
92
+ selectionState?.selectionRelativeToNode === RelativeSelectionPos.Start
93
+ ) {
75
94
  // we have full table cell selection and want to set gap cursor selection before table
76
95
  return setGapCursorBeforeTable(editorSelectionAPI)()(state, dispatch);
77
- } else if (selectionRelativeToNode === RelativeSelectionPos.End) {
96
+ } else if (
97
+ selectionState?.selectionRelativeToNode === RelativeSelectionPos.End
98
+ ) {
78
99
  // we have full table cell selection and want to set selection at end of last cell
79
100
  return setSelectionAtEndOfLastCell(editorSelectionAPI)(selection)(
80
101
  state,
81
102
  dispatch,
82
103
  );
83
- } else if (selectionRelativeToNode === undefined) {
104
+ } else if (selectionState?.selectionRelativeToNode === undefined) {
84
105
  // we have full table cell selection and want to set selection at start of first cell
85
106
  return setSelectionAtStartOfFirstCell(editorSelectionAPI)(
86
107
  selection,
@@ -92,12 +113,16 @@ const arrowLeftFromCellSelection =
92
113
  };
93
114
 
94
115
  const arrowRightFromCellSelection =
95
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
116
+ (
117
+ editorSelectionAPI:
118
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
119
+ | undefined,
120
+ ) =>
96
121
  (selection: CellSelection): Command =>
97
122
  (state, dispatch) => {
98
123
  if (isTableSelected(state.selection) && editorSelectionAPI) {
99
124
  const { selectionRelativeToNode } =
100
- editorSelectionAPI.getSelectionPluginState(state);
125
+ editorSelectionAPI.sharedState.currentState() || {};
101
126
 
102
127
  if (selectionRelativeToNode === RelativeSelectionPos.Start) {
103
128
  // we have full table cell selection and want to set selection at start of first cell
@@ -117,7 +142,11 @@ const arrowRightFromCellSelection =
117
142
  };
118
143
 
119
144
  const arrowLeftFromGapCursor =
120
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
145
+ (
146
+ editorSelectionAPI:
147
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
148
+ | undefined,
149
+ ) =>
121
150
  (selection: GapCursorSelection): Command =>
122
151
  (state, dispatch) => {
123
152
  const { doc } = state;
@@ -139,9 +168,12 @@ const arrowLeftFromGapCursor =
139
168
  isSelectionAtStartOfTable($from, selection) &&
140
169
  editorSelectionAPI
141
170
  ) {
142
- const { selectionRelativeToNode } =
143
- editorSelectionAPI.getSelectionPluginState(state);
144
- if (selectionRelativeToNode === RelativeSelectionPos.Before) {
171
+ const selectionState: SelectionSharedState =
172
+ editorSelectionAPI.sharedState.currentState() || {};
173
+ if (
174
+ selectionState?.selectionRelativeToNode ===
175
+ RelativeSelectionPos.Before
176
+ ) {
145
177
  // we have a gap cursor at start of first table cell and want to set a gap cursor selection before table
146
178
  return setGapCursorBeforeTable(editorSelectionAPI)()(state, dispatch);
147
179
  } else {
@@ -158,7 +190,11 @@ const arrowLeftFromGapCursor =
158
190
  };
159
191
 
160
192
  const arrowRightFromGapCursor =
161
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
193
+ (
194
+ editorSelectionAPI:
195
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
196
+ | undefined,
197
+ ) =>
162
198
  (selection: GapCursorSelection): Command =>
163
199
  (state, dispatch) => {
164
200
  const { $from, from, $to, side } = selection;
@@ -187,7 +223,11 @@ const arrowRightFromGapCursor =
187
223
  };
188
224
 
189
225
  const arrowLeftFromText =
190
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
226
+ (
227
+ editorSelectionAPI:
228
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
229
+ | undefined,
230
+ ) =>
191
231
  (selection: TextSelection): Command =>
192
232
  (state, dispatch) => {
193
233
  const table = findTable(selection);
@@ -199,9 +239,13 @@ const arrowLeftFromText =
199
239
  $from.depth === table.depth + 3 && // + 3 for: row, cell & paragraph nodes
200
240
  editorSelectionAPI
201
241
  ) {
202
- const { selectionRelativeToNode } =
203
- editorSelectionAPI.getSelectionPluginState(state);
204
- if (selectionRelativeToNode === RelativeSelectionPos.Before) {
242
+ const selectionState: SelectionSharedState =
243
+ editorSelectionAPI.sharedState.currentState() || {};
244
+
245
+ if (
246
+ selectionState?.selectionRelativeToNode ===
247
+ RelativeSelectionPos.Before
248
+ ) {
205
249
  // we have a text selection at start of first table cell, directly inside a top level paragraph,
206
250
  // and want to set gap cursor selection before table
207
251
  return setGapCursorBeforeTable(editorSelectionAPI)()(state, dispatch);
@@ -220,7 +264,11 @@ const arrowLeftFromText =
220
264
  };
221
265
 
222
266
  const arrowRightFromText =
223
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
267
+ (
268
+ editorSelectionAPI:
269
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
270
+ | undefined,
271
+ ) =>
224
272
  (selection: TextSelection): Command =>
225
273
  (state, dispatch) => {
226
274
  const table = findTable(selection);
@@ -250,7 +298,11 @@ const arrowRightFromText =
250
298
  * pos in the selection plugin
251
299
  */
252
300
  const selectFullTable =
253
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
301
+ (
302
+ editorSelectionAPI:
303
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
304
+ | undefined,
305
+ ) =>
254
306
  ({
255
307
  node,
256
308
  startPos,
@@ -276,7 +328,7 @@ const selectFullTable =
276
328
  selectionRelativeToNode = RelativeSelectionPos.Start;
277
329
  }
278
330
  if (editorSelectionAPI) {
279
- const tr = editorSelectionAPI.setSelectionRelativeToNode({
331
+ const tr = editorSelectionAPI.actions.selectNearNode({
280
332
  selectionRelativeToNode,
281
333
  selection: fullTableSelection,
282
334
  })(state);
@@ -290,7 +342,11 @@ const selectFullTable =
290
342
  };
291
343
 
292
344
  const setSelectionAtStartOfFirstCell =
293
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
345
+ (
346
+ editorSelectionAPI:
347
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
348
+ | undefined,
349
+ ) =>
294
350
  (
295
351
  selection: CellSelection,
296
352
  selectionRelativeToNode?: RelativeSelectionPos,
@@ -307,7 +363,7 @@ const setSelectionAtStartOfFirstCell =
307
363
  : Selection.findFrom($firstPosInsideCell, 1);
308
364
 
309
365
  if (editorSelectionAPI) {
310
- const tr = editorSelectionAPI.setSelectionRelativeToNode({
366
+ const tr = editorSelectionAPI.actions.selectNearNode({
311
367
  selectionRelativeToNode,
312
368
  selection: selectionAtStartOfCell,
313
369
  })(state);
@@ -321,7 +377,11 @@ const setSelectionAtStartOfFirstCell =
321
377
  };
322
378
 
323
379
  const setSelectionAtEndOfLastCell =
324
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
380
+ (
381
+ editorSelectionAPI:
382
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
383
+ | undefined,
384
+ ) =>
325
385
  (
326
386
  selection: CellSelection,
327
387
  selectionRelativeToNode?: RelativeSelectionPos,
@@ -341,7 +401,7 @@ const setSelectionAtEndOfLastCell =
341
401
  : Selection.findFrom($lastPosInsideCell, -1);
342
402
 
343
403
  if (editorSelectionAPI) {
344
- const tr = editorSelectionAPI.setSelectionRelativeToNode({
404
+ const tr = editorSelectionAPI.actions.selectNearNode({
345
405
  selectionRelativeToNode,
346
406
  selection: selectionAtEndOfCell,
347
407
  })(state);
@@ -355,7 +415,11 @@ const setSelectionAtEndOfLastCell =
355
415
  };
356
416
 
357
417
  const setGapCursorBeforeTable =
358
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
418
+ (
419
+ editorSelectionAPI:
420
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
421
+ | undefined,
422
+ ) =>
359
423
  (): Command =>
360
424
  (state, dispatch) => {
361
425
  const table = findTable(state.selection);
@@ -367,7 +431,7 @@ const setGapCursorBeforeTable =
367
431
  Side.LEFT,
368
432
  );
369
433
  if (editorSelectionAPI) {
370
- const tr = editorSelectionAPI.setSelectionRelativeToNode({
434
+ const tr = editorSelectionAPI.actions.selectNearNode({
371
435
  selectionRelativeToNode: undefined,
372
436
  selection: selectionBeforeTable,
373
437
  })(state);
@@ -383,7 +447,11 @@ const setGapCursorBeforeTable =
383
447
  };
384
448
 
385
449
  const setGapCursorAfterTable =
386
- (editorSelectionAPI: EditorSelectionAPI | undefined | null) =>
450
+ (
451
+ editorSelectionAPI:
452
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
453
+ | undefined,
454
+ ) =>
387
455
  (): Command =>
388
456
  (state, dispatch) => {
389
457
  const table = findTable(state.selection);
@@ -396,7 +464,7 @@ const setGapCursorAfterTable =
396
464
  );
397
465
 
398
466
  if (editorSelectionAPI) {
399
- const tr = editorSelectionAPI.setSelectionRelativeToNode({
467
+ const tr = editorSelectionAPI.actions.selectNearNode({
400
468
  selectionRelativeToNode: undefined,
401
469
  selection: selectionAfterTable,
402
470
  })(state);
@@ -21,21 +21,19 @@ import { IconTable } from '@atlaskit/editor-common/icons';
21
21
  import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
22
22
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
23
23
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
24
- import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
25
24
  import type {
26
25
  Command,
27
- EditorCommand,
28
26
  EditorPlugin,
29
27
  GetEditorContainerWidth,
30
28
  GetEditorFeatureFlags,
31
29
  NextEditorPlugin,
32
- OptionalPlugin,
33
30
  } from '@atlaskit/editor-common/types';
34
31
  import { browser } from '@atlaskit/editor-common/utils';
35
32
  import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
36
33
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
37
34
  import type { ContentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
38
35
  import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
36
+ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
39
37
  import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
40
38
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
41
39
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -76,7 +74,6 @@ import FloatingDeleteButton from './ui/FloatingDeleteButton';
76
74
  import FloatingInsertButton from './ui/FloatingInsertButton';
77
75
  import LayoutButton from './ui/LayoutButton';
78
76
  import { isLayoutSupported } from './utils';
79
-
80
77
  interface TablePluginOptions {
81
78
  tableOptions: PluginConfig;
82
79
  // experimental custom table resizing experience, set inside editor-core behind a feature flag
@@ -88,22 +85,11 @@ interface TablePluginOptions {
88
85
  // TODO these two need to be rethought
89
86
  fullWidthEnabled?: boolean;
90
87
  wasFullWidthEnabled?: boolean;
91
- editorSelectionAPI?: EditorSelectionAPI;
92
88
  getEditorFeatureFlags?: GetEditorFeatureFlags;
93
89
  }
94
90
 
95
91
  type InsertTableAction = (analyticsPayload: AnalyticsEventPayload) => Command;
96
92
 
97
- // TODO: duplicated SelectionPlugin type as it's still in editor-core, doing this avoid
98
- // circular dependencies
99
- type SelectionPlugin = NextEditorPlugin<
100
- 'selection',
101
- {
102
- pluginConfiguration: unknown;
103
- commands: { displayGapCursor: (toggle: boolean) => EditorCommand };
104
- }
105
- >;
106
-
107
93
  const defaultGetEditorFeatureFlags = () => ({});
108
94
 
109
95
  export type TablePlugin = NextEditorPlugin<
@@ -118,7 +104,7 @@ export type TablePlugin = NextEditorPlugin<
118
104
  ContentInsertionPlugin,
119
105
  WidthPlugin,
120
106
  GuidelinePlugin,
121
- OptionalPlugin<SelectionPlugin>,
107
+ SelectionPlugin,
122
108
  ];
123
109
  }
124
110
  >;
@@ -242,7 +228,7 @@ const tablesPlugin: TablePlugin = ({ config: options, api }) => {
242
228
  },
243
229
  {
244
230
  name: 'tableSelectionKeymap',
245
- plugin: () => tableSelectionKeymapPlugin(options?.editorSelectionAPI),
231
+ plugin: () => tableSelectionKeymapPlugin(api?.selection),
246
232
  },
247
233
  {
248
234
  name: 'tableEditing',
@@ -3,14 +3,17 @@ import {
3
3
  moveLeft,
4
4
  moveRight,
5
5
  } from '@atlaskit/editor-common/keymaps';
6
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
- import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
6
+ import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
8
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
9
9
 
10
10
  import { arrowLeftFromTable, arrowRightFromTable } from '../commands/selection';
11
+ import type tablePlugin from '../index';
11
12
 
12
13
  export function tableSelectionKeymapPlugin(
13
- editorSelectionAPI: EditorSelectionAPI | undefined | null,
14
+ editorSelectionAPI:
15
+ | ExtractInjectionAPI<typeof tablePlugin>['selection']
16
+ | undefined,
14
17
  ): SafePlugin {
15
18
  const list = {};
16
19
 
@@ -1,9 +1,9 @@
1
1
  import type { CellAttributes } from '@atlaskit/adf-schema';
2
- import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
3
2
  import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
4
3
  import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
5
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
5
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
6
+ import { AttrStep } from '@atlaskit/editor-prosemirror/transform';
7
7
  import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
8
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
9
  import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
@@ -87,7 +87,13 @@ export const updateColumnWidths =
87
87
  const cell = table.nodeAt(pos);
88
88
  if (!seen[pos] && cell) {
89
89
  if (updatedCellsAttrs[pos]) {
90
- tr.step(new SetAttrsStep(pos + start, updatedCellsAttrs[pos]));
90
+ tr.step(
91
+ new AttrStep(
92
+ pos + start,
93
+ 'colwidth',
94
+ updatedCellsAttrs[pos].colwidth,
95
+ ),
96
+ );
91
97
  }
92
98
  seen[pos] = true;
93
99
  }
package/tsconfig.app.json CHANGED
@@ -51,6 +51,9 @@
51
51
  {
52
52
  "path": "../editor-plugin-guideline/tsconfig.app.json"
53
53
  },
54
+ {
55
+ "path": "../editor-plugin-selection/tsconfig.app.json"
56
+ },
54
57
  {
55
58
  "path": "../editor-plugin-width/tsconfig.app.json"
56
59
  },
package/tsconfig.dev.json CHANGED
@@ -72,6 +72,9 @@
72
72
  {
73
73
  "path": "../editor-plugin-guideline/tsconfig.app.json"
74
74
  },
75
+ {
76
+ "path": "../editor-plugin-selection/tsconfig.app.json"
77
+ },
75
78
  {
76
79
  "path": "../editor-plugin-width/tsconfig.app.json"
77
80
  },
@@ -1,37 +0,0 @@
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.adjustColumn': string;
33
- 'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
34
- 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
35
- 'fabric.editor.tables.resizeTable': string;
36
- };
37
- export default _default;
@@ -1,35 +0,0 @@
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.deleteElementTitle': string;
16
- 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
17
- 'fabric.editor.headerColumn': string;
18
- 'fabric.editor.headerRow': string;
19
- 'fabric.editor.insertColumn': string;
20
- 'fabric.editor.insertRow': string;
21
- 'fabric.editor.mergeCells': string;
22
- 'fabric.editor.numberedColumn': string;
23
- 'fabric.editor.removeColumns': string;
24
- 'fabric.editor.removeRows': string;
25
- 'fabric.editor.rowControl': string;
26
- 'fabric.editor.sortColumnASC': string;
27
- 'fabric.editor.sortColumnDESC': string;
28
- 'fabric.editor.splitCell': string;
29
- 'fabric.editor.tableOptions': string;
30
- 'fabric.editor.tables.adjustColumn': string;
31
- 'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
32
- 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
33
- 'fabric.editor.tables.resizeTable': string;
34
- };
35
- export default _default;
@@ -1,35 +0,0 @@
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.deleteElementTitle': string;
16
- 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
17
- 'fabric.editor.headerColumn': string;
18
- 'fabric.editor.headerRow': string;
19
- 'fabric.editor.insertColumn': string;
20
- 'fabric.editor.insertRow': string;
21
- 'fabric.editor.mergeCells': string;
22
- 'fabric.editor.numberedColumn': string;
23
- 'fabric.editor.removeColumns': string;
24
- 'fabric.editor.removeRows': string;
25
- 'fabric.editor.rowControl': string;
26
- 'fabric.editor.sortColumnASC': string;
27
- 'fabric.editor.sortColumnDESC': string;
28
- 'fabric.editor.splitCell': string;
29
- 'fabric.editor.tableOptions': string;
30
- 'fabric.editor.tables.adjustColumn': string;
31
- 'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
32
- 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
33
- 'fabric.editor.tables.resizeTable': string;
34
- };
35
- export default _default;
@@ -1,37 +0,0 @@
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.adjustColumn': string;
33
- 'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
34
- 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
35
- 'fabric.editor.tables.resizeTable': string;
36
- };
37
- export default _default;
@@ -1,37 +0,0 @@
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.adjustColumn': string;
33
- 'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
34
- 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
35
- 'fabric.editor.tables.resizeTable': string;
36
- };
37
- export default _default;
@@ -1,37 +0,0 @@
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.adjustColumn': string;
33
- 'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
34
- 'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
35
- 'fabric.editor.tables.resizeTable': string;
36
- };
37
- export default _default;