@atlaskit/editor-plugin-table 22.2.4 → 22.2.7

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 (171) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/nodeviews/TableComponent.js +3 -2
  3. package/dist/cjs/nodeviews/TableContainer.js +16 -7
  4. package/dist/cjs/nodeviews/TableResizer.js +30 -16
  5. package/dist/cjs/pm-plugins/analytics/commands.js +4 -0
  6. package/dist/cjs/pm-plugins/commands/hover.js +4 -0
  7. package/dist/cjs/pm-plugins/commands/referentiality.js +4 -0
  8. package/dist/cjs/pm-plugins/drag-and-drop/commands.js +4 -0
  9. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +2 -0
  10. package/dist/cjs/pm-plugins/drag-and-drop/utils/autoscrollers.js +4 -0
  11. package/dist/cjs/pm-plugins/sticky-headers/commands.js +2 -0
  12. package/dist/cjs/pm-plugins/table-resizing/plugin-factory.js +5 -0
  13. package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  14. package/dist/cjs/pm-plugins/table-resizing/utils/consts.js +3 -2
  15. package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  16. package/dist/cjs/pm-plugins/utils/drag-menu.js +2 -2
  17. package/dist/cjs/ui/ColumnResizeWidget/index.js +1 -1
  18. package/dist/cjs/ui/DragHandle/index.js +2 -0
  19. package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
  20. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
  21. package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +4 -1
  22. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +4 -1
  23. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +6 -1
  24. package/dist/cjs/ui/FloatingInsertButton/index.js +3 -2
  25. package/dist/cjs/ui/SizeSelector/index.js +1 -1
  26. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  27. package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
  28. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
  29. package/dist/cjs/ui/TableFloatingControls/index.js +1 -1
  30. package/dist/cjs/ui/global-styles.js +1 -1
  31. package/dist/es2019/nodeviews/TableComponent.js +4 -1
  32. package/dist/es2019/nodeviews/TableContainer.js +17 -8
  33. package/dist/es2019/nodeviews/TableResizer.js +31 -17
  34. package/dist/es2019/pm-plugins/analytics/commands.js +3 -0
  35. package/dist/es2019/pm-plugins/commands/hover.js +3 -0
  36. package/dist/es2019/pm-plugins/commands/referentiality.js +3 -0
  37. package/dist/es2019/pm-plugins/drag-and-drop/commands.js +4 -0
  38. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +2 -0
  39. package/dist/es2019/pm-plugins/drag-and-drop/utils/autoscrollers.js +3 -0
  40. package/dist/es2019/pm-plugins/sticky-headers/commands.js +2 -0
  41. package/dist/es2019/pm-plugins/table-resizing/plugin-factory.js +5 -0
  42. package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  43. package/dist/es2019/pm-plugins/table-resizing/utils/consts.js +2 -1
  44. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  45. package/dist/es2019/pm-plugins/utils/drag-menu.js +2 -2
  46. package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
  47. package/dist/es2019/ui/DragHandle/index.js +2 -0
  48. package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
  49. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +5 -2
  50. package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +4 -1
  51. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +4 -1
  52. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +6 -1
  53. package/dist/es2019/ui/FloatingInsertButton/index.js +4 -1
  54. package/dist/es2019/ui/SizeSelector/index.js +1 -1
  55. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
  56. package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
  57. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -0
  58. package/dist/es2019/ui/TableFloatingControls/index.js +2 -2
  59. package/dist/es2019/ui/global-styles.js +2 -2
  60. package/dist/esm/nodeviews/TableComponent.js +3 -2
  61. package/dist/esm/nodeviews/TableContainer.js +17 -8
  62. package/dist/esm/nodeviews/TableResizer.js +31 -17
  63. package/dist/esm/pm-plugins/analytics/commands.js +3 -0
  64. package/dist/esm/pm-plugins/commands/hover.js +3 -0
  65. package/dist/esm/pm-plugins/commands/referentiality.js +3 -0
  66. package/dist/esm/pm-plugins/drag-and-drop/commands.js +4 -0
  67. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +2 -0
  68. package/dist/esm/pm-plugins/drag-and-drop/utils/autoscrollers.js +3 -0
  69. package/dist/esm/pm-plugins/sticky-headers/commands.js +2 -0
  70. package/dist/esm/pm-plugins/table-resizing/plugin-factory.js +5 -0
  71. package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  72. package/dist/esm/pm-plugins/table-resizing/utils/consts.js +2 -1
  73. package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  74. package/dist/esm/pm-plugins/utils/drag-menu.js +2 -2
  75. package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
  76. package/dist/esm/ui/DragHandle/index.js +2 -0
  77. package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
  78. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +5 -2
  79. package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +4 -1
  80. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +4 -1
  81. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +6 -1
  82. package/dist/esm/ui/FloatingInsertButton/index.js +4 -1
  83. package/dist/esm/ui/SizeSelector/index.js +1 -1
  84. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  85. package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
  86. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
  87. package/dist/esm/ui/TableFloatingControls/index.js +2 -2
  88. package/dist/esm/ui/global-styles.js +2 -2
  89. package/dist/types/nodeviews/TableComponent.d.ts +3 -3
  90. package/dist/types/nodeviews/TableResizer.d.ts +2 -1
  91. package/dist/types/nodeviews/table-node-views.d.ts +3 -3
  92. package/dist/types/nodeviews/table.d.ts +2 -2
  93. package/dist/types/pm-plugins/analytics/commands.d.ts +2 -1
  94. package/dist/types/pm-plugins/analytics/plugin.d.ts +2 -1
  95. package/dist/types/pm-plugins/commands/hover.d.ts +10 -9
  96. package/dist/types/pm-plugins/commands/misc.d.ts +1 -1
  97. package/dist/types/pm-plugins/commands/referentiality.d.ts +2 -1
  98. package/dist/types/pm-plugins/commands/toggle.d.ts +1 -1
  99. package/dist/types/pm-plugins/decorations/plugin.d.ts +1 -1
  100. package/dist/types/pm-plugins/drag-and-drop/commands.d.ts +6 -5
  101. package/dist/types/pm-plugins/drag-and-drop/plugin.d.ts +2 -1
  102. package/dist/types/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +2 -1
  103. package/dist/types/pm-plugins/main.d.ts +2 -2
  104. package/dist/types/pm-plugins/sticky-headers/commands.d.ts +3 -2
  105. package/dist/types/pm-plugins/sticky-headers/plugin.d.ts +2 -1
  106. package/dist/types/pm-plugins/sticky-headers/util.d.ts +2 -2
  107. package/dist/types/pm-plugins/table-anchor-names/plugin.d.ts +1 -1
  108. package/dist/types/pm-plugins/table-resizing/plugin-factory.d.ts +7 -4
  109. package/dist/types/pm-plugins/table-resizing/utils/colgroup.d.ts +2 -2
  110. package/dist/types/pm-plugins/table-resizing/utils/consts.d.ts +1 -0
  111. package/dist/types/pm-plugins/table-resizing/utils/scale-table.d.ts +2 -2
  112. package/dist/types/pm-plugins/utils/create.d.ts +2 -2
  113. package/dist/types/pm-plugins/utils/sticky-header.d.ts +2 -1
  114. package/dist/types/types/index.d.ts +26 -26
  115. package/dist/types/ui/ColumnResizeWidget/index.d.ts +1 -1
  116. package/dist/types/ui/DragHandle/index.d.ts +2 -2
  117. package/dist/types/ui/FloatingContextualButton/styles.d.ts +3 -2
  118. package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +3 -3
  119. package/dist/types/ui/FloatingContextualMenu/styles.d.ts +3 -2
  120. package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +3 -3
  121. package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +3 -3
  122. package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +4 -4
  123. package/dist/types/ui/FloatingInsertButton/index.d.ts +3 -3
  124. package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
  125. package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
  126. package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
  127. package/dist/types/ui/common-styles.d.ts +5 -4
  128. package/dist/types/ui/consts.d.ts +18 -18
  129. package/dist/types/ui/ui-styles.d.ts +21 -20
  130. package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +3 -3
  131. package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +2 -1
  132. package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +3 -3
  133. package/dist/types-ts4.5/nodeviews/table.d.ts +2 -2
  134. package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +2 -1
  135. package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +2 -1
  136. package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +10 -9
  137. package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +1 -1
  138. package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +2 -1
  139. package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +1 -1
  140. package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +1 -1
  141. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +6 -5
  142. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +2 -1
  143. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +2 -1
  144. package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
  145. package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +3 -2
  146. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +2 -1
  147. package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +2 -2
  148. package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +1 -1
  149. package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +7 -4
  150. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +2 -2
  151. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +1 -0
  152. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +2 -2
  153. package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +2 -2
  154. package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +2 -1
  155. package/dist/types-ts4.5/types/index.d.ts +26 -26
  156. package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +1 -1
  157. package/dist/types-ts4.5/ui/DragHandle/index.d.ts +2 -2
  158. package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +3 -2
  159. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +3 -3
  160. package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +3 -2
  161. package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +3 -3
  162. package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +3 -3
  163. package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +4 -4
  164. package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +3 -3
  165. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
  166. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
  167. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
  168. package/dist/types-ts4.5/ui/common-styles.d.ts +5 -4
  169. package/dist/types-ts4.5/ui/consts.d.ts +18 -18
  170. package/dist/types-ts4.5/ui/ui-styles.d.ts +21 -20
  171. package/package.json +4 -4
@@ -10,7 +10,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
11
  import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
12
12
  import { getPluginState } from '../pm-plugins/plugin-factory';
13
- import { TABLE_MAX_WIDTH, TABLE_FULL_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from '../pm-plugins/table-resizing/utils/consts';
13
+ import { TABLE_MAX_WIDTH, TABLE_FULL_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR, RESIZE_HANDLE_SPACING } from '../pm-plugins/table-resizing/utils/consts';
14
14
  import { getTableResizerContainerMaxWidthInCSS, getTableResizerContainerForFullPageWidthInCSS } from '../pm-plugins/table-resizing/utils/misc';
15
15
  import { ALIGN_CENTER, ALIGN_START } from '../pm-plugins/utils/alignment';
16
16
  import { TableCssClassName as ClassName } from '../types';
@@ -213,7 +213,6 @@ export const ResizableTableContainer = /*#__PURE__*/React.memo(({
213
213
  maxResizerWidth
214
214
  } = useMemo(() => {
215
215
  let responsiveContainerWidth = 0;
216
- const resizeHandleSpacing = 12;
217
216
  const padding = getPadding(containerWidth);
218
217
  // When Full width or Max width editor enabled, a Mac OS user can change "ak-editor-content-area" width by
219
218
  // updating Settings -> Appearance -> Show scroll bars from "When scrolling" to "Always". It causes
@@ -231,30 +230,39 @@ export const ResizableTableContainer = /*#__PURE__*/React.memo(({
231
230
  if (isTableScalingEnabled && Number.isFinite(lineLength) && lineLength !== undefined) {
232
231
  responsiveContainerWidth = lineLength;
233
232
  } else {
234
- responsiveContainerWidth = containerWidth - padding * 2 - resizeHandleSpacing;
233
+ responsiveContainerWidth = containerWidth - padding * 2 - RESIZE_HANDLE_SPACING;
235
234
  }
236
235
  } else if (isCommentEditor) {
237
236
  responsiveContainerWidth = containerWidth - TABLE_OFFSET_IN_COMMENT_EDITOR;
237
+ } else if (isChromelessEditor && expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true)) {
238
+ // there's no padding included in chromeless appearance, so we need to reduce table
239
+ // width to ensure all controls are visible.
240
+ // use lineLength as the value is updated by scrollbar visibility changes
241
+ responsiveContainerWidth = Number.isFinite(lineLength) && lineLength !== undefined ? lineLength : containerWidth - RESIZE_HANDLE_SPACING;
238
242
  } else {
239
243
  // 76 is currently an accepted padding value considering the spacing for resizer handle
240
244
  // containerWidth = width of a DIV with test id="ak-editor-fp-content-area". It is a parent of
241
245
  // a DIV with className="ak-editor-content-area". This DIV has padding left and padding right.
242
246
  // padding left = padding right = akEditorGutterPadding = 32
243
- responsiveContainerWidth = isTableScalingEnabled ? containerWidth - padding * 2 : containerWidth - padding * 2 - resizeHandleSpacing;
247
+ responsiveContainerWidth = isTableScalingEnabled ? containerWidth - padding * 2 : containerWidth - padding * 2 - RESIZE_HANDLE_SPACING;
244
248
  }
245
249
 
246
250
  // Fix for HOT-119925: Ensure table width is properly constrained and responsive
247
251
  // For wide tables, ensure they don't exceed container width and can be scrolled
248
- const calculatedWidth = !node.attrs.width && isCommentEditor ? responsiveContainerWidth : Math.min(tableWidth, responsiveContainerWidth);
252
+ const calculatedWidth =
253
+ // remove isCommentEditor check if platform_editor_table_resize_chromeless is cleaned up
254
+ !node.attrs.width && (expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) && !isFullPageAppearance || isCommentEditor) ? responsiveContainerWidth : Math.min(tableWidth, responsiveContainerWidth);
249
255
 
250
256
  // Ensure minimum width for usability while respecting container constraints
251
257
  const width = Math.max(calculatedWidth, Math.min(responsiveContainerWidth * 0.5, 300));
252
- const maxResizerWidth = isCommentEditor ? responsiveContainerWidth : Math.min(responsiveContainerWidth, expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true) ? TABLE_MAX_WIDTH : TABLE_FULL_WIDTH);
258
+
259
+ // remove isCommentEditor check if platform_editor_table_resize_chromeless is cleaned up
260
+ const maxResizerWidth = expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) && !isFullPageAppearance || isCommentEditor ? responsiveContainerWidth : Math.min(responsiveContainerWidth, expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true) ? TABLE_MAX_WIDTH : TABLE_FULL_WIDTH);
253
261
  return {
254
262
  width,
255
263
  maxResizerWidth
256
264
  };
257
- }, [containerWidth, isCommentEditor, isFullWidthModeEnabled, isMaxWidthModeEnabled, isTableScalingEnabled, lineLength, node.attrs.width, tableWidth]);
265
+ }, [containerWidth, isCommentEditor, isChromelessEditor, isFullWidthModeEnabled, isMaxWidthModeEnabled, isFullPageAppearance, isTableScalingEnabled, lineLength, node.attrs.width, tableWidth]);
258
266
  useEffect(() => {
259
267
  if (!isResizing) {
260
268
  tableWidthRef.current = width;
@@ -302,7 +310,8 @@ export const ResizableTableContainer = /*#__PURE__*/React.memo(({
302
310
  pluginInjectionApi,
303
311
  onResizeStart,
304
312
  onResizeStop,
305
- isCommentEditor
313
+ isCommentEditor,
314
+ isChromelessEditor
306
315
  };
307
316
  const isLivePageViewMode = mode === 'view';
308
317
  return /*#__PURE__*/React.createElement(AlignmentTableContainerWrapper, {
@@ -20,7 +20,7 @@ import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plu
20
20
  import { updateWidthToWidest } from '../pm-plugins/commands/misc';
21
21
  import { META_KEYS } from '../pm-plugins/table-analytics';
22
22
  import { getColgroupChildrenLength } from '../pm-plugins/table-resizing/utils/colgroup';
23
- import { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_FULL_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from '../pm-plugins/table-resizing/utils/consts';
23
+ import { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_FULL_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR, RESIZE_HANDLE_SPACING } from '../pm-plugins/table-resizing/utils/consts';
24
24
  import { previewScaleTable, scaleTable } from '../pm-plugins/table-resizing/utils/scale-table';
25
25
  import { pluginKey as tableWidthPluginKey } from '../pm-plugins/table-width';
26
26
  import { ALIGN_CENTER, ALIGN_START, normaliseAlignment, shouldChangeAlignmentToCenterResized } from '../pm-plugins/utils/alignment';
@@ -43,12 +43,12 @@ const getResizerHandleHeight = tableRef => {
43
43
  var _tableRef$clientHeigh;
44
44
  const tableHeight = (_tableRef$clientHeigh = tableRef === null || tableRef === void 0 ? void 0 : tableRef.clientHeight) !== null && _tableRef$clientHeigh !== void 0 ? _tableRef$clientHeigh : 0;
45
45
  /*
46
- - One row table height (minimum possible table height) ~ 45px
47
- - Two row table height ~ 90px
48
- - Three row table height ~ 134px
49
- In the if below we need to use:
50
- - > 46 because the height of the table can be a float number like 45.44.
51
- - < 96 is the height of large resize handle.
46
+ - One row table height (minimum possible table height) ~ 45px
47
+ - Two row table height ~ 90px
48
+ - Three row table height ~ 134px
49
+ In the if below we need to use:
50
+ - > 46 because the height of the table can be a float number like 45.44.
51
+ - < 96 is the height of large resize handle.
52
52
  */
53
53
  if (tableHeight >= 96) {
54
54
  return 'large';
@@ -70,6 +70,15 @@ const getPadding = containerWidth => {
70
70
  exposure: true
71
71
  }) ? akEditorGutterPaddingReduced : akEditorGutterPaddingDynamic();
72
72
  };
73
+ const getTableMaxWidth = (containerWidth, lineLength, isCommentEditor, isChromelessEditor) => {
74
+ if (isCommentEditor) {
75
+ return Math.floor(containerWidth - TABLE_OFFSET_IN_COMMENT_EDITOR);
76
+ } else if (isChromelessEditor) {
77
+ return Number.isFinite(lineLength) && lineLength !== undefined ? lineLength : Math.floor(containerWidth - RESIZE_HANDLE_SPACING);
78
+ } else {
79
+ return expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true) ? TABLE_MAX_WIDTH : TABLE_FULL_WIDTH;
80
+ }
81
+ };
73
82
 
74
83
  /**
75
84
  * When guidelines are outside the viewport, filter them out, do not show
@@ -129,6 +138,7 @@ export const TableResizer = ({
129
138
  pluginInjectionApi,
130
139
  isFullWidthModeEnabled,
131
140
  isCommentEditor,
141
+ isChromelessEditor,
132
142
  disabled
133
143
  }) => {
134
144
  var _editorView$state, _pluginInjectionApi$a2, _pluginInjectionApi$u2;
@@ -148,6 +158,7 @@ export const TableResizer = ({
148
158
  const {
149
159
  formatMessage
150
160
  } = useIntl();
161
+ const isFullPageAppearance = !isCommentEditor && !isChromelessEditor;
151
162
  const currentSelection = (_editorView$state = editorView.state) === null || _editorView$state === void 0 ? void 0 : _editorView$state.selection;
152
163
  const tableFromSelection = useMemo(() => {
153
164
  return findTable(currentSelection);
@@ -285,7 +296,9 @@ export const TableResizer = ({
285
296
  return;
286
297
  }
287
298
  const editorContainerWidth = isFullWidthModeEnabled ? lineLength + 2 * getPadding(containerWidth) : containerWidth;
288
- const closestSnap = !isCommentEditor && findClosestSnap(newWidth, isTableScalingEnabled ? defaultTablePreserveSnappingWidths(PRESERVE_TABLE_SNAPPING_LENGTH_OFFSET, editorContainerWidth, excludeGuidelineConfig) : defaultSnappingWidths, isTableScalingEnabled ? defaultGuidelinesForPreserveTable(PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET, editorContainerWidth, excludeGuidelineConfig) : defaultGuidelines, TABLE_HIGHLIGHT_GAP, TABLE_HIGHLIGHT_TOLERANCE);
299
+ const closestSnap =
300
+ // remove isCommentEditor check if platform_editor_table_resize_chromeless is cleaned up
301
+ (expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) && isFullPageAppearance || !isCommentEditor) && findClosestSnap(newWidth, isTableScalingEnabled ? defaultTablePreserveSnappingWidths(PRESERVE_TABLE_SNAPPING_LENGTH_OFFSET, editorContainerWidth, excludeGuidelineConfig) : defaultSnappingWidths, isTableScalingEnabled ? defaultGuidelinesForPreserveTable(PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET, editorContainerWidth, excludeGuidelineConfig) : defaultGuidelines, TABLE_HIGHLIGHT_GAP, TABLE_HIGHLIGHT_TOLERANCE);
289
302
  closestSnap && updateActiveGuidelines(closestSnap);
290
303
 
291
304
  // When snapping to the full width guideline, resize the table to be 1800px
@@ -296,15 +309,15 @@ export const TableResizer = ({
296
309
  const currentTableNodeLocalId = (_node$attrs$localId = node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.localId) !== null && _node$attrs$localId !== void 0 ? _node$attrs$localId : '';
297
310
  const fullWidthGuideline = defaultGuidelinesForPreserveTable(PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET, editorContainerWidth, excludeGuidelineConfig).filter(guideline => guideline.isFullWidth)[0];
298
311
  const isFullWidthGuidelineActive = expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true) ? closestSnap && fullWidthGuideline && closestSnap.keys.includes(fullWidthGuideline.key) : closestSnap && closestSnap.keys.includes(fullWidthGuideline.key);
299
- const tableMaxWidth = isCommentEditor ? Math.floor(containerWidth - TABLE_OFFSET_IN_COMMENT_EDITOR) : expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true) ? TABLE_MAX_WIDTH : TABLE_FULL_WIDTH;
300
- const shouldUpdateWidthToWidest = isCommentEditor ? tableMaxWidth <= newWidth : !!isTableScalingEnabled && isFullWidthGuidelineActive;
301
- const previewParentWidth = isCommentEditor && shouldUpdateWidthToWidest ? tableMaxWidth : newWidth;
312
+ const tableMaxWidth = expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) ? getTableMaxWidth(containerWidth, lineLength, isCommentEditor, isChromelessEditor) : isCommentEditor ? Math.floor(containerWidth - TABLE_OFFSET_IN_COMMENT_EDITOR) : expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true) ? TABLE_MAX_WIDTH : TABLE_FULL_WIDTH;
313
+ const shouldUpdateWidthToWidest = expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) && !isFullPageAppearance || isCommentEditor ? tableMaxWidth <= newWidth : !!isTableScalingEnabled && isFullWidthGuidelineActive;
314
+ const previewParentWidth = (expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) && !isFullPageAppearance || isCommentEditor) && shouldUpdateWidthToWidest ? tableMaxWidth : newWidth;
302
315
  previewScaleTable(tableRef, {
303
316
  node,
304
317
  prevNode: node,
305
318
  start: pos + 1,
306
319
  parentWidth: previewParentWidth
307
- }, editorView.domAtPos.bind(editorView), isTableScalingEnabled, allowFixedColumnWidthOption, isCommentEditor);
320
+ }, editorView.domAtPos.bind(editorView), isTableScalingEnabled, allowFixedColumnWidthOption, expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) ? !isFullPageAppearance : isCommentEditor);
308
321
  chainCommands((state, dispatch) => {
309
322
  return switchToCenterAlignment(pos, node, newWidth, state, dispatch);
310
323
  }, updateWidthToWidest({
@@ -312,7 +325,7 @@ export const TableResizer = ({
312
325
  }))(state, dispatch);
313
326
  updateWidth(shouldUpdateWidthToWidest ? tableMaxWidth : newWidth);
314
327
  return newWidth;
315
- }, [countFrames, isCommentEditor, isTableScalingEnabled, allowFixedColumnWidthOption, isFullWidthModeEnabled, excludeGuidelineConfig, tableRef, node, editorView, updateActiveGuidelines, containerWidth, lineLength, updateWidth, getPos, switchToCenterAlignment]);
328
+ }, [countFrames, isCommentEditor, isChromelessEditor, isFullPageAppearance, isTableScalingEnabled, allowFixedColumnWidthOption, isFullWidthModeEnabled, excludeGuidelineConfig, tableRef, node, editorView, updateActiveGuidelines, containerWidth, lineLength, updateWidth, getPos, switchToCenterAlignment]);
316
329
  const scheduleResize = useMemo(() => rafSchd(handleResize), [handleResize]);
317
330
  const handleResizeStop = useCallback((originalState, delta) => {
318
331
  var _node$attrs$localId2, _node$attrs2, _pluginInjectionApi$u3;
@@ -325,7 +338,7 @@ export const TableResizer = ({
325
338
  } = editorView;
326
339
  const pos = getPos();
327
340
  const currentTableNodeLocalId = (_node$attrs$localId2 = node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.localId) !== null && _node$attrs$localId2 !== void 0 ? _node$attrs$localId2 : '';
328
- const tableMaxWidth = isCommentEditor ? undefined // Table's full-width in comment appearance inherit the width of the Editor/Renderer
341
+ const tableMaxWidth = expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) && !isFullPageAppearance || isCommentEditor ? undefined // Table's full-width in comment appearance inherit the width of the Editor/Renderer
329
342
  : expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true) ? TABLE_MAX_WIDTH : TABLE_FULL_WIDTH;
330
343
  newWidth = widthToWidest && currentTableNodeLocalId && widthToWidest[currentTableNodeLocalId] ? tableMaxWidth : newWidth;
331
344
  let tr = state.tr.setMeta(tableWidthPluginKey, {
@@ -367,8 +380,9 @@ export const TableResizer = ({
367
380
  // We use originalNewWidth in comment editor, because in comment editor
368
381
  // newWidth can be underined when table is resized to 'full-width'
369
382
  // scaleTable function needs number value to work correctly.
370
- parentWidth: isCommentEditor ? originalNewWidth : newWidth
371
- }, editorView.domAtPos.bind(editorView), pluginInjectionApi, isTableScalingEnabled, shouldUseIncreasedScalingPercent || false, isCommentEditor)(tr);
383
+ // remove isCommentEditor check when platform_editor_table_resize_chromeless is removed
384
+ parentWidth: expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) && !isFullPageAppearance || isCommentEditor ? originalNewWidth : newWidth
385
+ }, editorView.domAtPos.bind(editorView), pluginInjectionApi, isTableScalingEnabled, shouldUseIncreasedScalingPercent || false, expValEquals('platform_editor_table_resize_chromeless', 'isEnabled', true) ? !isFullPageAppearance : isCommentEditor)(tr);
372
386
 
373
387
  // Ignored via go/ees005
374
388
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -404,7 +418,7 @@ export const TableResizer = ({
404
418
  (_insm$session2 = insm.session) === null || _insm$session2 === void 0 ? void 0 : _insm$session2.endFeature('tableResize');
405
419
  }
406
420
  return newWidth;
407
- }, [editorView, getPos, node, isCommentEditor, widthToWidest, endMeasure, displayGapCursor, displayGuideline, updateWidth, scheduleResize, onResizeStop, pluginInjectionApi, attachAnalyticsEvent, tableRef, isTableScalingEnabled, shouldUseIncreasedScalingPercent, formatMessage]);
421
+ }, [editorView, getPos, node, isCommentEditor, widthToWidest, endMeasure, displayGapCursor, displayGuideline, updateWidth, scheduleResize, onResizeStop, pluginInjectionApi, attachAnalyticsEvent, tableRef, isTableScalingEnabled, shouldUseIncreasedScalingPercent, formatMessage, isFullPageAppearance]);
408
422
  const handleTableSizeChangeOnKeypress = useCallback(step => {
409
423
  const newWidth = width + step;
410
424
  if (newWidth < resizerMinWidth) {
@@ -1,7 +1,10 @@
1
1
  import { AnalyticPluginTypes } from './actions';
2
2
  import { createCommand, getPluginState } from './plugin-factory';
3
3
  import { pluginKey } from './plugin-key';
4
+ // eslint-disable-next-line import/order
4
5
  import { getMovedPayload } from './utils/moved-event';
6
+ // eslint-disable-next-line import/order
7
+
5
8
  export const updateRowOrColumnMoved = (nextState, nextAction) => createCommand(state => {
6
9
  const {
7
10
  rowOrColumnMoved
@@ -5,7 +5,10 @@ import { TableDecorations } from '../../types';
5
5
  import { createCommand, getPluginState } from '../plugin-factory';
6
6
  import { createCellHoverDecoration, createColumnLineResize, createControlsHoverDecoration } from '../utils/decoration';
7
7
  import { getMergedCellsPositions } from '../utils/table';
8
+ // eslint-disable-next-line import/order
8
9
  import { updatePluginStateDecorations } from '../utils/update-plugin-state-decorations';
10
+ // eslint-disable-next-line import/order
11
+
9
12
  const makeArray = n => Array.from(Array(n).keys());
10
13
  export const hoverMergedCells = () => createCommand(state => {
11
14
  const mergedCellsPositions = getMergedCellsPositions(state.tr);
@@ -1,5 +1,8 @@
1
1
  import { removeConnectedNodes } from '@atlaskit/editor-common/utils';
2
+ // eslint-disable-next-line import/order
2
3
  import { createCommand } from '../plugin-factory';
4
+ // eslint-disable-next-line import/order
5
+
3
6
  export const removeDescendantNodes = sourceNode => createCommand({
4
7
  type: 'UPDATE_STATE',
5
8
  data: {
@@ -6,6 +6,10 @@ import { DragAndDropActionType } from './actions';
6
6
  import { DropTargetType } from './consts';
7
7
  import { createCommand, getPluginState } from './plugin-factory';
8
8
  import { pluginKey } from './plugin-key';
9
+ // eslint-disable-next-line import/order
10
+
11
+ // eslint-disable-next-line import/order
12
+
9
13
  // TODO: ED-26961 - This command is a placeholder example. Please replace this if required.
10
14
  const getDecorations = state => {
11
15
  var _pluginKey$getState;
@@ -20,6 +20,8 @@ import { DropTargetType } from './consts';
20
20
  import { createPluginState, getPluginState } from './plugin-factory';
21
21
  import { pluginKey } from './plugin-key';
22
22
  import { getDraggableDataFromEvent } from './utils/monitor';
23
+ // eslint-disable-next-line import/order
24
+
23
25
  const destroyFn = (editorView, editorAnalyticsAPI, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, api) => {
24
26
  const editorPageScrollContainer = document.querySelector('.fabric-editor-popup-scroll-parent');
25
27
  const rowAutoScrollers = editorPageScrollContainer ? [monitorForElements({
@@ -1,6 +1,9 @@
1
1
  import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
2
2
  import { unsafeOverflowAutoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/unsafe-overflow/element';
3
+ // eslint-disable-next-line import/order
3
4
  import { dropTargetExtendedWidth } from '../../../ui/consts';
5
+ // eslint-disable-next-line import/order
6
+
4
7
  export const autoScrollerFactory = ({
5
8
  tableWrapper,
6
9
  getNode
@@ -1,3 +1,5 @@
1
+ // eslint-disable-next-line import/order
2
+
1
3
  import { createCommand } from './plugin-state';
2
4
  export const updateStickyState = rowState => createCommand({
3
5
  name: 'UPDATE',
@@ -1,7 +1,12 @@
1
1
  // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
2
2
  import { pluginFactory } from '@atlaskit/editor-common/utils';
3
3
  import { pluginKey } from './plugin-key';
4
+ // eslint-disable-next-line import/order
4
5
  import reducer from './reducer';
6
+ // eslint-disable-next-line import/order
7
+
8
+ // eslint-disable-next-line import/order
9
+
5
10
  function mapping(tr, pluginState) {
6
11
  if (pluginState && pluginState.resizeHandlePos !== null) {
7
12
  return {
@@ -87,7 +87,7 @@ export const generateColgroupFromNode = (table, isCommentEditor, isChromelessEdi
87
87
  });
88
88
  return cols;
89
89
  };
90
- export const generateColgroup = (table, tableRef, shouldUseIncreasedScalingPercent, isCommentEditor) => {
90
+ export const generateColgroup = (table, tableRef, shouldUseIncreasedScalingPercent, isCommentOrChromelessEditor) => {
91
91
  const cols = [];
92
92
  const map = TableMap.get(table);
93
93
 
@@ -102,7 +102,7 @@ export const generateColgroup = (table, tableRef, shouldUseIncreasedScalingPerce
102
102
  var _table$attrs;
103
103
  // if we have tableRef here, isTableScalingEnabled is true
104
104
  let scalePercent = 1;
105
- if (isCommentEditor && !((_table$attrs = table.attrs) !== null && _table$attrs !== void 0 && _table$attrs.width)) {
105
+ if (isCommentOrChromelessEditor && !((_table$attrs = table.attrs) !== null && _table$attrs !== void 0 && _table$attrs.width)) {
106
106
  scalePercent = getScalingPercentForTableWithoutWidth(table, tableRef);
107
107
  } else {
108
108
  scalePercent = getTableScalingPercent(table, tableRef, shouldUseIncreasedScalingPercent);
@@ -136,14 +136,14 @@ export const generateColgroup = (table, tableRef, shouldUseIncreasedScalingPerce
136
136
  });
137
137
  return cols;
138
138
  };
139
- export const insertColgroupFromNode = (tableRef, table, isTableScalingEnabled = false, shouldRemove = true, shouldUseIncreasedScalingPercent = false, isCommentEditor = false) => {
139
+ export const insertColgroupFromNode = (tableRef, table, isTableScalingEnabled = false, shouldRemove = true, shouldUseIncreasedScalingPercent = false, isCommentOrChromelessEditor = false) => {
140
140
  // Ignored via go/ees005
141
141
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
142
142
  let colgroup = tableRef === null || tableRef === void 0 ? void 0 : tableRef.querySelector('colgroup');
143
143
  if (colgroup && shouldRemove) {
144
144
  tableRef === null || tableRef === void 0 ? void 0 : tableRef.removeChild(colgroup);
145
145
  }
146
- colgroup = renderColgroupFromNode(table, isTableScalingEnabled ? tableRef !== null && tableRef !== void 0 ? tableRef : undefined : undefined, shouldUseIncreasedScalingPercent, isCommentEditor);
146
+ colgroup = renderColgroupFromNode(table, isTableScalingEnabled ? tableRef !== null && tableRef !== void 0 ? tableRef : undefined : undefined, shouldUseIncreasedScalingPercent, isCommentOrChromelessEditor);
147
147
  if (shouldRemove) {
148
148
  tableRef === null || tableRef === void 0 ? void 0 : tableRef.insertBefore(colgroup, tableRef === null || tableRef === void 0 ? void 0 : tableRef.firstChild);
149
149
  }
@@ -171,8 +171,8 @@ export const isMinCellWidthTable = table => {
171
171
  });
172
172
  return isTableMinCellWidth;
173
173
  };
174
- function renderColgroupFromNode(table, maybeTableRef, shouldUseIncreasedScalingPercent, isCommentEditor) {
175
- const rendered = DOMSerializer.renderSpec(document, ['colgroup', {}, ...generateColgroup(table, maybeTableRef, shouldUseIncreasedScalingPercent, isCommentEditor)]);
174
+ function renderColgroupFromNode(table, maybeTableRef, shouldUseIncreasedScalingPercent, isCommentOrChromelessEditor) {
175
+ const rendered = DOMSerializer.renderSpec(document, ['colgroup', {}, ...generateColgroup(table, maybeTableRef, shouldUseIncreasedScalingPercent, isCommentOrChromelessEditor)]);
176
176
 
177
177
  // Ignored via go/ees005
178
178
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
@@ -8,4 +8,5 @@ export const MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION = 0.4;
8
8
  export const TABLE_EDITOR_MARGIN = 76;
9
9
  const COMMENT_AK_EDITOR_CONTENT_AREA_PADDING = 20;
10
10
  const COMMENT_PM_TABLE_RESIZING_PLUGIN_MARGIN = 12;
11
- export const TABLE_OFFSET_IN_COMMENT_EDITOR = 2 * (COMMENT_AK_EDITOR_CONTENT_AREA_PADDING + COMMENT_PM_TABLE_RESIZING_PLUGIN_MARGIN);
11
+ export const TABLE_OFFSET_IN_COMMENT_EDITOR = 2 * (COMMENT_AK_EDITOR_CONTENT_AREA_PADDING + COMMENT_PM_TABLE_RESIZING_PLUGIN_MARGIN);
12
+ export const RESIZE_HANDLE_SPACING = 12;
@@ -101,7 +101,7 @@ export function scaleTableTo(state, maxSize) {
101
101
  }
102
102
  return adjustColumnsWidths(newState, maxSize);
103
103
  }
104
- export const previewScaleTable = (tableRef, options, domAtPos, isTableScalingEnabled = false, allowFixedColumnWidthOption = false, isCommentEditor = false) => {
104
+ export const previewScaleTable = (tableRef, options, domAtPos, isTableScalingEnabled = false, allowFixedColumnWidthOption = false, isCommentOrChromelessEditor = false) => {
105
105
  const {
106
106
  node,
107
107
  start,
@@ -126,7 +126,7 @@ export const previewScaleTable = (tableRef, options, domAtPos, isTableScalingEna
126
126
  syncStickyRowToTable(tableRef);
127
127
  return;
128
128
  }
129
- const shouldUseIncreasedScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled || isTableScalingEnabled && isCommentEditor;
129
+ const shouldUseIncreasedScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled || isTableScalingEnabled && isCommentOrChromelessEditor;
130
130
  const resizeState = parentWidth ? scaleWithParent(tableRef, parentWidth, node, start, domAtPos, false,
131
131
  // Here isTableScalingEnabled = false
132
132
  shouldUseIncreasedScalingPercent) : scale(tableRef, options, domAtPos, false, shouldUseIncreasedScalingPercent);
@@ -136,7 +136,7 @@ export const previewScaleTable = (tableRef, options, domAtPos, isTableScalingEna
136
136
  };
137
137
 
138
138
  // Scale the table to meet new requirements (col, layout change etc)
139
- export const scaleTable = (tableRef, options, domAtPos, api, isTableScalingEnabledOnCurrentTable = false, shouldUseIncreasedScalingPercent = false, isCommentEditor = false) => tr => {
139
+ export const scaleTable = (tableRef, options, domAtPos, api, isTableScalingEnabledOnCurrentTable = false, shouldUseIncreasedScalingPercent = false, isCommentOrChromelessEditor = false) => tr => {
140
140
  if (!tableRef) {
141
141
  return tr;
142
142
  }
@@ -152,7 +152,7 @@ export const scaleTable = (tableRef, options, domAtPos, api, isTableScalingEnabl
152
152
  // To force reflow of columns upon delete.
153
153
  if (!isTableScalingEnabledOnCurrentTable) {
154
154
  const isTableScalingEnabled = false;
155
- insertColgroupFromNode(tableRef, node, isTableScalingEnabled, undefined, shouldUseIncreasedScalingPercent, isCommentEditor);
155
+ insertColgroupFromNode(tableRef, node, isTableScalingEnabled, undefined, shouldUseIncreasedScalingPercent, isCommentOrChromelessEditor);
156
156
  }
157
157
  tr.setMeta('scrollIntoView', false);
158
158
  return tr;
@@ -171,7 +171,7 @@ export const getDragMenuConfig = (direction, getEditorContainerWidth, hasMergedC
171
171
  label: ''
172
172
  })
173
173
  }] : [];
174
- const sortConfigs = [...sortOptions.map(({
174
+ const sortConfigs = sortOptions.map(({
175
175
  label,
176
176
  order,
177
177
  icon
@@ -184,7 +184,7 @@ export const getDragMenuConfig = (direction, getEditorContainerWidth, hasMergedC
184
184
  sortColumnWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.TABLE_CONTEXT_MENU, index !== null && index !== void 0 ? index : 0, order)(state, dispatch);
185
185
  return true;
186
186
  }
187
- }))];
187
+ }));
188
188
  const restConfigs = [...addOptions.map(({
189
189
  label,
190
190
  offset,
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  * @jsxRuntime classic
4
4
  * @jsx jsx
5
5
  */
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
7
7
  import { jsx } from '@emotion/react';
8
8
  import { useIntl } from 'react-intl';
9
9
  import { startColumnResizing, ToolTipContent } from '@atlaskit/editor-common/keymaps';
@@ -246,4 +246,6 @@ const DragHandleComponent = ({
246
246
  height: previewHeight
247
247
  }), previewContainer));
248
248
  };
249
+
250
+ // eslint-disable-next-line @typescript-eslint/ban-types
249
251
  export const DragHandle = injectIntl(DragHandleComponent);
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
+ /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
6
6
  import { jsx } from '@emotion/react';
7
7
  import { ButtonGroup } from '@atlaskit/button';
8
8
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator } from '@atlaskit/editor-common/ui';
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  * @jsx jsx
6
6
  */
7
7
  import React, { Component } from 'react';
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
9
9
  import { jsx } from '@emotion/react';
10
10
  import { injectIntl } from 'react-intl';
11
11
  import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
@@ -875,7 +875,10 @@ export class ContextualMenu extends Component {
875
875
  })));
876
876
  }
877
877
  }
878
+
879
+ // eslint-disable-next-line @typescript-eslint/ban-types
878
880
  _defineProperty(ContextualMenu, "defaultProps", {
879
881
  boundariesElement: typeof document !== 'undefined' ? document.body : undefined
880
882
  });
881
- export default injectIntl(ContextualMenu);
883
+ const _default_1 = injectIntl(ContextualMenu);
884
+ export default _default_1;
@@ -38,4 +38,7 @@ const DeleteButton = ({
38
38
  fill: "currentColor",
39
39
  fillRule: "evenodd"
40
40
  }))));
41
- export default injectIntl(DeleteButton);
41
+
42
+ // eslint-disable-next-line @typescript-eslint/ban-types
43
+ const _default_1 = injectIntl(DeleteButton);
44
+ export default _default_1;
@@ -585,4 +585,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
585
585
  scrollableElement: scrollableElement
586
586
  }));
587
587
  });
588
- export default injectIntl(DragMenu);
588
+
589
+ // eslint-disable-next-line @typescript-eslint/ban-types
590
+ const _default_1 = injectIntl(DragMenu);
591
+ export default _default_1;
@@ -126,6 +126,8 @@ const InsertButtonForDragAndDrop = ({
126
126
  }, content))
127
127
  );
128
128
  };
129
+
130
+ // eslint-disable-next-line @typescript-eslint/ban-types
129
131
  export const DragAndDropInsertButton = injectIntl(InsertButtonForDragAndDrop);
130
132
  const InsertButton = ({
131
133
  onMouseDown,
@@ -180,4 +182,7 @@ const InsertButton = ({
180
182
  }, content))
181
183
  );
182
184
  };
183
- export default injectIntl(InsertButton);
185
+
186
+ // eslint-disable-next-line @typescript-eslint/ban-types
187
+ const _default_1 = injectIntl(InsertButton);
188
+ export default _default_1;
@@ -217,5 +217,8 @@ export class FloatingInsertButton extends React.Component {
217
217
  }
218
218
  }
219
219
  }
220
+
221
+ // eslint-disable-next-line @typescript-eslint/ban-types
220
222
  _defineProperty(FloatingInsertButton, "displayName", 'FloatingInsertButton');
221
- export default injectIntl(FloatingInsertButton);
223
+ const _default_1 = injectIntl(FloatingInsertButton);
224
+ export default _default_1;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { useCallback } from 'react';
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
7
+ /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
8
8
  import { jsx } from '@emotion/react';
9
9
  import { TableSelectorPopup } from '@atlaskit/editor-common/ui';
10
10
  import { pluginKey } from '../../pm-plugins/table-size-selector';
@@ -105,4 +105,6 @@ class CornerControlComponent extends Component {
105
105
  })));
106
106
  }
107
107
  }
108
+
109
+ // eslint-disable-next-line @typescript-eslint/ban-types
108
110
  export const CornerControls = injectIntl(CornerControlComponent);
@@ -118,5 +118,9 @@ const DragCornerControlsComponentWithSelection = ({
118
118
  className: ClassName.DRAG_CORNER_BUTTON_INNER
119
119
  }));
120
120
  };
121
+
122
+ // eslint-disable-next-line @typescript-eslint/ban-types
121
123
  export const DragCornerControlsWithSelection = injectIntl(DragCornerControlsComponentWithSelection);
124
+
125
+ // eslint-disable-next-line @typescript-eslint/ban-types
122
126
  export const DragCornerControls = injectIntl(DragCornerControlsComponent);
@@ -96,4 +96,6 @@ class RowControlsComponent extends Component {
96
96
  );
97
97
  }
98
98
  }
99
+
100
+ // eslint-disable-next-line @typescript-eslint/ban-types
99
101
  export const RowControls = injectIntl(RowControlsComponent);
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import { Fragment, useCallback } from 'react';
6
6
 
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
7
+ /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
8
+ import { jsx, css } from '@emotion/react';
9
9
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
10
10
  import { findTable } from '@atlaskit/editor-tables/utils';
11
11
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -2,8 +2,8 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { Global, jsx } from '@emotion/react';
5
+ /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
6
+ import { jsx, Global } from '@emotion/react';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
8
  import { tableStyles } from './common-styles';
9
9
  export const GlobalStylesWrapper = ({
@@ -1022,6 +1022,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
1022
1022
  }));
1023
1023
  }
1024
1024
  }]);
1025
- }(React.Component);
1025
+ }(React.Component); // eslint-disable-next-line @typescript-eslint/ban-types
1026
1026
  _defineProperty(TableComponent, "displayName", 'TableComponent');
1027
- export default injectIntl(TableComponent);
1027
+ var _default_1 = injectIntl(TableComponent);
1028
+ export default _default_1;