@atlaskit/editor-plugin-table 9.2.0 → 9.3.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 (186) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/nodeviews/TableCell.js +0 -2
  3. package/dist/cjs/nodeviews/TableContainer.js +13 -2
  4. package/dist/cjs/nodeviews/TableNodeViewBase.js +0 -2
  5. package/dist/cjs/nodeviews/TableResizer.js +5 -10
  6. package/dist/cjs/nodeviews/TableRow.js +0 -2
  7. package/dist/cjs/nodeviews/lazy-node-views.js +4 -16
  8. package/dist/cjs/nodeviews/table.js +2 -8
  9. package/dist/cjs/pm-plugins/commands/column-resize.js +1 -4
  10. package/dist/cjs/pm-plugins/commands/commands-with-analytics.js +4 -16
  11. package/dist/cjs/pm-plugins/commands/insert.js +4 -19
  12. package/dist/cjs/pm-plugins/commands/misc.js +3 -12
  13. package/dist/cjs/pm-plugins/decorations/plugin.js +1 -6
  14. package/dist/cjs/pm-plugins/decorations/utils/column-resizing.js +1 -4
  15. package/dist/cjs/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -12
  16. package/dist/cjs/pm-plugins/drag-and-drop/commands.js +3 -12
  17. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +1 -4
  18. package/dist/cjs/pm-plugins/keymap.js +0 -2
  19. package/dist/cjs/pm-plugins/main.js +1 -6
  20. package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +1 -4
  21. package/dist/cjs/pm-plugins/table-resizing/plugin.js +0 -2
  22. package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +1 -7
  23. package/dist/cjs/pm-plugins/table-resizing/utils/column-state.js +1 -4
  24. package/dist/cjs/pm-plugins/table-resizing/utils/content-width.js +0 -8
  25. package/dist/cjs/pm-plugins/table-resizing/utils/resize-logic.js +2 -10
  26. package/dist/cjs/pm-plugins/table-resizing/utils/resize-state.js +1 -4
  27. package/dist/cjs/pm-plugins/table-width.js +1 -6
  28. package/dist/cjs/pm-plugins/transforms/column-width.js +1 -4
  29. package/dist/cjs/pm-plugins/transforms/fix-tables.js +3 -15
  30. package/dist/cjs/pm-plugins/transforms/replace-table.js +1 -4
  31. package/dist/cjs/pm-plugins/transforms/split.js +0 -2
  32. package/dist/cjs/pm-plugins/utils/alignment.js +1 -4
  33. package/dist/cjs/pm-plugins/utils/decoration.js +4 -16
  34. package/dist/cjs/pm-plugins/utils/drag-menu.js +1 -4
  35. package/dist/cjs/pm-plugins/utils/nodes.js +0 -3
  36. package/dist/cjs/pm-plugins/utils/paste.js +4 -0
  37. package/dist/cjs/pm-plugins/utils/row-controls.js +1 -4
  38. package/dist/cjs/tablePlugin.js +12 -10
  39. package/dist/cjs/ui/FloatingInsertButton/getPopupOptions.js +0 -6
  40. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -4
  41. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +1 -4
  42. package/dist/cjs/ui/TableFloatingControls/index.js +1 -4
  43. package/dist/cjs/ui/toolbar.js +3 -12
  44. package/dist/es2019/nodeviews/TableCell.js +0 -2
  45. package/dist/es2019/nodeviews/TableContainer.js +13 -2
  46. package/dist/es2019/nodeviews/TableNodeViewBase.js +0 -2
  47. package/dist/es2019/nodeviews/TableResizer.js +5 -10
  48. package/dist/es2019/nodeviews/TableRow.js +0 -2
  49. package/dist/es2019/nodeviews/lazy-node-views.js +4 -16
  50. package/dist/es2019/nodeviews/table.js +2 -8
  51. package/dist/es2019/pm-plugins/commands/column-resize.js +1 -4
  52. package/dist/es2019/pm-plugins/commands/commands-with-analytics.js +6 -24
  53. package/dist/es2019/pm-plugins/commands/delete.js +1 -4
  54. package/dist/es2019/pm-plugins/commands/insert.js +5 -23
  55. package/dist/es2019/pm-plugins/commands/misc.js +3 -12
  56. package/dist/es2019/pm-plugins/decorations/plugin.js +1 -6
  57. package/dist/es2019/pm-plugins/decorations/utils/column-resizing.js +1 -4
  58. package/dist/es2019/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -12
  59. package/dist/es2019/pm-plugins/drag-and-drop/commands.js +4 -16
  60. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +2 -8
  61. package/dist/es2019/pm-plugins/keymap.js +0 -3
  62. package/dist/es2019/pm-plugins/main.js +1 -6
  63. package/dist/es2019/pm-plugins/table-resizing/event-handlers.js +1 -4
  64. package/dist/es2019/pm-plugins/table-resizing/plugin.js +0 -3
  65. package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +2 -11
  66. package/dist/es2019/pm-plugins/table-resizing/utils/column-state.js +1 -4
  67. package/dist/es2019/pm-plugins/table-resizing/utils/content-width.js +0 -8
  68. package/dist/es2019/pm-plugins/table-resizing/utils/resize-column.js +1 -4
  69. package/dist/es2019/pm-plugins/table-resizing/utils/resize-logic.js +2 -10
  70. package/dist/es2019/pm-plugins/table-resizing/utils/resize-state.js +2 -8
  71. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +4 -16
  72. package/dist/es2019/pm-plugins/table-width.js +1 -6
  73. package/dist/es2019/pm-plugins/transforms/column-width.js +2 -8
  74. package/dist/es2019/pm-plugins/transforms/delete-columns.js +1 -4
  75. package/dist/es2019/pm-plugins/transforms/fix-tables.js +3 -15
  76. package/dist/es2019/pm-plugins/transforms/replace-table.js +1 -4
  77. package/dist/es2019/pm-plugins/transforms/split.js +0 -2
  78. package/dist/es2019/pm-plugins/utils/alignment.js +1 -4
  79. package/dist/es2019/pm-plugins/utils/decoration.js +4 -16
  80. package/dist/es2019/pm-plugins/utils/drag-menu.js +2 -8
  81. package/dist/es2019/pm-plugins/utils/nodes.js +0 -3
  82. package/dist/es2019/pm-plugins/utils/paste.js +5 -4
  83. package/dist/es2019/pm-plugins/utils/row-controls.js +1 -4
  84. package/dist/es2019/pm-plugins/utils/snapping.js +1 -4
  85. package/dist/es2019/tablePlugin.js +12 -10
  86. package/dist/es2019/ui/FloatingInsertButton/getPopupOptions.js +0 -6
  87. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -4
  88. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +1 -4
  89. package/dist/es2019/ui/TableFloatingControls/index.js +1 -5
  90. package/dist/es2019/ui/event-handlers.js +1 -4
  91. package/dist/es2019/ui/toolbar.js +9 -36
  92. package/dist/esm/nodeviews/TableCell.js +0 -2
  93. package/dist/esm/nodeviews/TableContainer.js +13 -2
  94. package/dist/esm/nodeviews/TableNodeViewBase.js +0 -2
  95. package/dist/esm/nodeviews/TableResizer.js +5 -10
  96. package/dist/esm/nodeviews/TableRow.js +0 -2
  97. package/dist/esm/nodeviews/lazy-node-views.js +4 -16
  98. package/dist/esm/nodeviews/table.js +2 -8
  99. package/dist/esm/pm-plugins/commands/column-resize.js +1 -4
  100. package/dist/esm/pm-plugins/commands/commands-with-analytics.js +4 -16
  101. package/dist/esm/pm-plugins/commands/insert.js +4 -19
  102. package/dist/esm/pm-plugins/commands/misc.js +3 -12
  103. package/dist/esm/pm-plugins/decorations/plugin.js +1 -6
  104. package/dist/esm/pm-plugins/decorations/utils/column-resizing.js +1 -4
  105. package/dist/esm/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -12
  106. package/dist/esm/pm-plugins/drag-and-drop/commands.js +3 -12
  107. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +1 -4
  108. package/dist/esm/pm-plugins/keymap.js +0 -3
  109. package/dist/esm/pm-plugins/main.js +1 -6
  110. package/dist/esm/pm-plugins/table-resizing/event-handlers.js +1 -4
  111. package/dist/esm/pm-plugins/table-resizing/plugin.js +0 -3
  112. package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +1 -7
  113. package/dist/esm/pm-plugins/table-resizing/utils/column-state.js +1 -4
  114. package/dist/esm/pm-plugins/table-resizing/utils/content-width.js +0 -8
  115. package/dist/esm/pm-plugins/table-resizing/utils/resize-logic.js +2 -10
  116. package/dist/esm/pm-plugins/table-resizing/utils/resize-state.js +1 -4
  117. package/dist/esm/pm-plugins/table-width.js +1 -6
  118. package/dist/esm/pm-plugins/transforms/column-width.js +1 -4
  119. package/dist/esm/pm-plugins/transforms/fix-tables.js +3 -15
  120. package/dist/esm/pm-plugins/transforms/replace-table.js +1 -4
  121. package/dist/esm/pm-plugins/transforms/split.js +0 -2
  122. package/dist/esm/pm-plugins/utils/alignment.js +1 -4
  123. package/dist/esm/pm-plugins/utils/decoration.js +4 -16
  124. package/dist/esm/pm-plugins/utils/drag-menu.js +1 -4
  125. package/dist/esm/pm-plugins/utils/nodes.js +0 -3
  126. package/dist/esm/pm-plugins/utils/paste.js +4 -0
  127. package/dist/esm/pm-plugins/utils/row-controls.js +1 -4
  128. package/dist/esm/tablePlugin.js +12 -10
  129. package/dist/esm/ui/FloatingInsertButton/getPopupOptions.js +0 -6
  130. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -4
  131. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +1 -4
  132. package/dist/esm/ui/TableFloatingControls/index.js +1 -4
  133. package/dist/esm/ui/toolbar.js +3 -12
  134. package/dist/types/nodeviews/TableResizer.d.ts +2 -1
  135. package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +2 -1
  136. package/package.json +11 -5
  137. package/src/nodeviews/TableCell.ts +0 -2
  138. package/src/nodeviews/TableComponent.tsx +1 -1
  139. package/src/nodeviews/TableContainer.tsx +12 -1
  140. package/src/nodeviews/TableNodeViewBase.ts +0 -2
  141. package/src/nodeviews/TableResizer.tsx +9 -5
  142. package/src/nodeviews/TableRow.ts +0 -2
  143. package/src/nodeviews/lazy-node-views.ts +0 -8
  144. package/src/nodeviews/table.tsx +0 -4
  145. package/src/pm-plugins/commands/column-resize.ts +0 -2
  146. package/src/pm-plugins/commands/commands-with-analytics.ts +0 -12
  147. package/src/pm-plugins/commands/delete.ts +0 -2
  148. package/src/pm-plugins/commands/insert.ts +0 -12
  149. package/src/pm-plugins/commands/misc.ts +0 -6
  150. package/src/pm-plugins/decorations/plugin.ts +0 -4
  151. package/src/pm-plugins/decorations/utils/column-resizing.ts +0 -2
  152. package/src/pm-plugins/drag-and-drop/commands-with-analytics.ts +0 -6
  153. package/src/pm-plugins/drag-and-drop/commands.ts +0 -8
  154. package/src/pm-plugins/drag-and-drop/plugin.ts +0 -4
  155. package/src/pm-plugins/keymap.ts +0 -2
  156. package/src/pm-plugins/main.ts +0 -4
  157. package/src/pm-plugins/table-resizing/event-handlers.ts +0 -2
  158. package/src/pm-plugins/table-resizing/plugin.ts +0 -2
  159. package/src/pm-plugins/table-resizing/utils/colgroup.ts +0 -6
  160. package/src/pm-plugins/table-resizing/utils/column-state.ts +0 -2
  161. package/src/pm-plugins/table-resizing/utils/content-width.ts +0 -6
  162. package/src/pm-plugins/table-resizing/utils/resize-column.ts +0 -2
  163. package/src/pm-plugins/table-resizing/utils/resize-logic.ts +0 -6
  164. package/src/pm-plugins/table-resizing/utils/resize-state.ts +0 -4
  165. package/src/pm-plugins/table-resizing/utils/scale-table.ts +0 -8
  166. package/src/pm-plugins/table-width.ts +0 -4
  167. package/src/pm-plugins/transforms/column-width.ts +0 -4
  168. package/src/pm-plugins/transforms/delete-columns.ts +0 -2
  169. package/src/pm-plugins/transforms/fix-tables.ts +0 -8
  170. package/src/pm-plugins/transforms/replace-table.ts +0 -2
  171. package/src/pm-plugins/transforms/split.ts +0 -2
  172. package/src/pm-plugins/utils/alignment.ts +0 -2
  173. package/src/pm-plugins/utils/decoration.ts +0 -8
  174. package/src/pm-plugins/utils/drag-menu.ts +0 -4
  175. package/src/pm-plugins/utils/nodes.ts +0 -2
  176. package/src/pm-plugins/utils/paste.ts +4 -2
  177. package/src/pm-plugins/utils/row-controls.ts +0 -2
  178. package/src/pm-plugins/utils/snapping.ts +0 -2
  179. package/src/tablePlugin.tsx +7 -2
  180. package/src/ui/FloatingInsertButton/getPopupOptions.ts +0 -4
  181. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +1 -3
  182. package/src/ui/TableFloatingColumnControls/index.tsx +1 -1
  183. package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +0 -2
  184. package/src/ui/TableFloatingControls/index.tsx +1 -5
  185. package/src/ui/event-handlers.ts +0 -2
  186. package/src/ui/toolbar.tsx +0 -18
@@ -76,10 +76,7 @@ var getResizerMinWidth = function getResizerMinWidth(node) {
76
76
  * @param isTableScalingEnabled
77
77
  * @param isFullWidthModeEnabled
78
78
  */
79
- var getVisibleGuidelines = function getVisibleGuidelines(guidelines, containerWidth, lineLength, isTableScalingEnabled, isFullWidthModeEnabled
80
- // Ignored via go/ees005
81
- // eslint-disable-next-line @typescript-eslint/max-params
82
- ) {
79
+ var getVisibleGuidelines = function getVisibleGuidelines(guidelines, containerWidth, lineLength, isTableScalingEnabled, isFullWidthModeEnabled) {
83
80
  var guidelineVisibleAdjustment = TABLE_GUIDELINE_VISIBLE_ADJUSTMENT;
84
81
  if (isTableScalingEnabled) {
85
82
  // Notes:
@@ -121,7 +118,8 @@ export var TableResizer = function TableResizer(_ref) {
121
118
  shouldUseIncreasedScalingPercent = _ref.shouldUseIncreasedScalingPercent,
122
119
  pluginInjectionApi = _ref.pluginInjectionApi,
123
120
  isFullWidthModeEnabled = _ref.isFullWidthModeEnabled,
124
- isCommentEditor = _ref.isCommentEditor;
121
+ isCommentEditor = _ref.isCommentEditor,
122
+ disabled = _ref.disabled;
125
123
  var currentGap = useRef(0);
126
124
  // track resizing state - use ref over state to avoid re-render
127
125
  var isResizing = useRef(false);
@@ -191,10 +189,7 @@ export var TableResizer = function TableResizer(_ref) {
191
189
  isFullWidthModeEnabled ? lineLength + 2 * akEditorGutterPaddingDynamic() : containerWidth, excludeGuidelineConfig) : defaultSnappingWidths
192
190
  } : undefined;
193
191
  }, [snappingEnabled, isTableScalingEnabled, excludeGuidelineConfig, containerWidth, lineLength, isFullWidthModeEnabled]);
194
- var switchToCenterAlignment = useCallback(function (pos, node, newWidth, state, dispatch
195
- // Ignored via go/ees005
196
- // eslint-disable-next-line @typescript-eslint/max-params
197
- ) {
192
+ var switchToCenterAlignment = useCallback(function (pos, node, newWidth, state, dispatch) {
198
193
  if (shouldChangeAlignmentToCenterResized(isTableAlignmentEnabled, node, lineLength, newWidth) && isResizing.current) {
199
194
  var _pluginInjectionApi$a;
200
195
  var tableNodeWithPos = {
@@ -470,7 +465,7 @@ export var TableResizer = function TableResizer(_ref) {
470
465
  var resizeRatio = !isTableAlignmentEnabled || isTableAlignmentEnabled && normaliseAlignment(node.attrs.layout) === ALIGN_CENTER ? 2 : 1;
471
466
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ResizerNext, {
472
467
  ref: resizerRef,
473
- enable: handles,
468
+ enable: fg('platform_editor_live_page_prevent_table_recreation') ? disabled ? {} : handles : handles,
474
469
  width: width,
475
470
  handleAlignmentMethod: "sticky",
476
471
  handleSize: handleSize,
@@ -26,8 +26,6 @@ var HEADER_ROW_SCROLL_THROTTLE_TIMEOUT = 200;
26
26
  // if too short it would trigger too many dom updates.
27
27
  var HEADER_ROW_SCROLL_RESET_DEBOUNCE_TIMEOUT = 400;
28
28
  var TableRow = /*#__PURE__*/function (_TableNodeView) {
29
- // Ignored via go/ees005
30
- // eslint-disable-next-line @typescript-eslint/max-params
31
29
  function TableRow(node, view, getPos, eventDispatcher) {
32
30
  var _this;
33
31
  _classCallCheck(this, TableRow);
@@ -14,10 +14,7 @@ export var lazyTableView = function lazyTableView(options) {
14
14
  var result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-table_nodeview" */
15
15
  './table').then(function (_ref) {
16
16
  var createTableView = _ref.createTableView;
17
- return function (node, view, getPos, decorations, getNodeViewOptions
18
- // Ignored via go/ees005
19
- // eslint-disable-next-line @typescript-eslint/max-params
20
- ) {
17
+ return function (node, view, getPos, decorations, getNodeViewOptions) {
21
18
  var _getNodeViewOptions = getNodeViewOptions(),
22
19
  portalProviderAPI = _getNodeViewOptions.portalProviderAPI,
23
20
  eventDispatcher = _getNodeViewOptions.eventDispatcher,
@@ -51,10 +48,7 @@ export var lazyTableCellView = function lazyTableCellView(options) {
51
48
  var result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-table_nodeview" */
52
49
  './TableCell').then(function (_ref2) {
53
50
  var TableCell = _ref2.default;
54
- return function (node, view, getPos, decorations, getNodeViewOptions
55
- // Ignored via go/ees005
56
- // eslint-disable-next-line @typescript-eslint/max-params
57
- ) {
51
+ return function (node, view, getPos, decorations, getNodeViewOptions) {
58
52
  var _pluginInjectionApi$a;
59
53
  var _getNodeViewOptions2 = getNodeViewOptions(),
60
54
  eventDispatcher = _getNodeViewOptions2.eventDispatcher,
@@ -83,10 +77,7 @@ export var lazyTableHeaderView = function lazyTableHeaderView(options) {
83
77
  var result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-table-cell_nodeview" */
84
78
  './TableCell').then(function (_ref3) {
85
79
  var TableCell = _ref3.default;
86
- return function (node, view, getPos, decorations, getNodeViewOptions
87
- // Ignored via go/ees005
88
- // eslint-disable-next-line @typescript-eslint/max-params
89
- ) {
80
+ return function (node, view, getPos, decorations, getNodeViewOptions) {
90
81
  var _pluginInjectionApi$a2;
91
82
  var _getNodeViewOptions3 = getNodeViewOptions(),
92
83
  eventDispatcher = _getNodeViewOptions3.eventDispatcher,
@@ -114,10 +105,7 @@ export var lazyTableRowView = function lazyTableRowView(options) {
114
105
  var result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-table-row_nodeview" */
115
106
  './TableRow').then(function (_ref4) {
116
107
  var TableRow = _ref4.default;
117
- return function (node, view, getPos, decorations, getNodeViewOptions
118
- // Ignored via go/ees005
119
- // eslint-disable-next-line @typescript-eslint/max-params
120
- ) {
108
+ return function (node, view, getPos, decorations, getNodeViewOptions) {
121
109
  var _getNodeViewOptions4 = getNodeViewOptions(),
122
110
  eventDispatcher = _getNodeViewOptions4.eventDispatcher;
123
111
  return new TableRow(node, view, getPos, eventDispatcher);
@@ -38,10 +38,7 @@ var tableAttributes = function tableAttributes(node) {
38
38
  'data-table-display-mode': node.attrs.displayMode
39
39
  };
40
40
  };
41
- var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing
42
- // Ignored via go/ees005
43
- // eslint-disable-next-line @typescript-eslint/max-params
44
- ) {
41
+ var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing) {
45
42
  if (!node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
46
43
  return;
47
44
  }
@@ -320,10 +317,7 @@ var TableView = /*#__PURE__*/function (_ReactNodeView) {
320
317
  }]);
321
318
  }(ReactNodeView);
322
319
  export { TableView as default };
323
- export var createTableView = function createTableView(node, view, getPos, portalProviderAPI, eventDispatcher, getEditorContainerWidth, getEditorFeatureFlags, dispatchAnalyticsEvent, pluginInjectionApi, isCommentEditor, isChromelessEditor
324
- // Ignored via go/ees005
325
- // eslint-disable-next-line @typescript-eslint/max-params
326
- ) {
320
+ export var createTableView = function createTableView(node, view, getPos, portalProviderAPI, eventDispatcher, getEditorContainerWidth, getEditorFeatureFlags, dispatchAnalyticsEvent, pluginInjectionApi, isCommentEditor, isChromelessEditor) {
327
321
  var _pluginInjectionApi$t;
328
322
  var _getPluginState2 = getPluginState(view.state),
329
323
  pluginConfig = _getPluginState2.pluginConfig,
@@ -22,10 +22,7 @@ var getTablePluginCommand = function getTablePluginCommand(actionPayload, origin
22
22
  return (originalTr || tr).setMeta('addToHistory', false);
23
23
  });
24
24
  };
25
- var updateResizeHandleAndStatePosition = function updateResizeHandleAndStatePosition(rowIndex, columnIndex, nextResizeHandlePos, nodeViewPortalProviderAPI
26
- // Ignored via go/ees005
27
- // eslint-disable-next-line @typescript-eslint/max-params
28
- ) {
25
+ var updateResizeHandleAndStatePosition = function updateResizeHandleAndStatePosition(rowIndex, columnIndex, nextResizeHandlePos, nodeViewPortalProviderAPI) {
29
26
  return function (state, dispatch) {
30
27
  var customTr = state.tr;
31
28
  var _getPluginState = getPluginState(state),
@@ -183,10 +183,7 @@ export var insertRowWithAnalytics = function insertRowWithAnalytics(editorAnalyt
183
183
  };
184
184
  };
185
185
  export var changeColumnWidthByStepWithAnalytics = function changeColumnWidthByStepWithAnalytics(editorAnalyticsAPI, api) {
186
- return function (stepSize, getEditorContainerWidth, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, inputMethod, ariaNotify, getIntl
187
- // Ignored via go/ees005
188
- // eslint-disable-next-line @typescript-eslint/max-params
189
- ) {
186
+ return function (stepSize, getEditorContainerWidth, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, inputMethod, ariaNotify, getIntl) {
190
187
  return withEditorAnalyticsAPI(function (state) {
191
188
  var _getSelectedTableInfo2 = getSelectedTableInfo(state.selection),
192
189
  table = _getSelectedTableInfo2.table,
@@ -300,10 +297,7 @@ export var deleteColumnsWithAnalytics = function deleteColumnsWithAnalytics(edit
300
297
  })(editorAnalyticsAPI)(deleteColumnsCommand(rect, api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor));
301
298
  };
302
299
  };
303
- export var deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut = function deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut(editorAnalyticsAPI, api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent
304
- // Ignored via go/ees005
305
- // eslint-disable-next-line @typescript-eslint/max-params
306
- ) {
300
+ export var deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut = function deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut(editorAnalyticsAPI, api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent) {
307
301
  return function (state, dispatch) {
308
302
  var selection = state.selection;
309
303
  var isCellSelection = selection instanceof CellSelection;
@@ -514,10 +508,7 @@ export var toggleFixedColumnWidthsOptionAnalytics = function toggleFixedColumnWi
514
508
  })(editorAnalyticsAPI)(editorCommandToPMCommand(setTableDisplayMode));
515
509
  };
516
510
  export var setTableAlignmentWithAnalytics = function setTableAlignmentWithAnalytics(editorAnalyticsAPI, isCommentEditor) {
517
- return function (newAlignment, previousAlignment, inputMethod, reason
518
- // Ignored via go/ees005
519
- // eslint-disable-next-line @typescript-eslint/max-params
520
- ) {
511
+ return function (newAlignment, previousAlignment, inputMethod, reason) {
521
512
  return withEditorAnalyticsAPI(function (state) {
522
513
  var _getSelectedTableInfo13 = getSelectedTableInfo(state.selection),
523
514
  table = _getSelectedTableInfo13.table,
@@ -542,10 +533,7 @@ export var setTableAlignmentWithAnalytics = function setTableAlignmentWithAnalyt
542
533
  };
543
534
  };
544
535
  export var setTableAlignmentWithTableContentWithPosWithAnalytics = function setTableAlignmentWithTableContentWithPosWithAnalytics(editorAnalyticsAPI) {
545
- return function (newAlignment, previousAlignment, tableNodeWithPos, inputMethod, reason
546
- // Ignored via go/ees005
547
- // eslint-disable-next-line @typescript-eslint/max-params
548
- ) {
536
+ return function (newAlignment, previousAlignment, tableNodeWithPos, inputMethod, reason) {
549
537
  return withEditorAnalyticsAPI(function () {
550
538
  var map = TableMap.get(tableNodeWithPos.node);
551
539
  var totalRowCount = map.height;
@@ -27,9 +27,6 @@ function addColumnAtCustomStep(column) {
27
27
  return tr;
28
28
  };
29
29
  }
30
-
31
- // Ignored via go/ees005
32
- // eslint-disable-next-line @typescript-eslint/max-params
33
30
  export function addColumnAt(api) {
34
31
  var isTableScalingEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
35
32
  var isTableFixedColumnWidthsOptionEnabled = arguments.length > 2 ? arguments[2] : undefined;
@@ -85,10 +82,7 @@ export var addColumnBefore = function addColumnBefore(api) {
85
82
 
86
83
  // :: (EditorState, dispatch: ?(tr: Transaction)) → bool
87
84
  // Command to add a column after the column with the selection.
88
- export var addColumnAfter = function addColumnAfter(api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor
89
- // Ignored via go/ees005
90
- // eslint-disable-next-line @typescript-eslint/max-params
91
- ) {
85
+ export var addColumnAfter = function addColumnAfter(api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor) {
92
86
  return function (state, dispatch, view) {
93
87
  var table = findTable(state.selection);
94
88
  if (!table) {
@@ -105,10 +99,7 @@ export var insertColumn = function insertColumn(api) {
105
99
  var isTableScalingEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
106
100
  var isTableFixedColumnWidthsOptionEnabled = arguments.length > 2 ? arguments[2] : undefined;
107
101
  var shouldUseIncreasedScalingPercent = arguments.length > 3 ? arguments[3] : undefined;
108
- var isCommentEditor
109
- // Ignored via go/ees005
110
- // eslint-disable-next-line @typescript-eslint/max-params
111
- = arguments.length > 4 ? arguments[4] : undefined;
102
+ var isCommentEditor = arguments.length > 4 ? arguments[4] : undefined;
112
103
  return function (column) {
113
104
  return function (state, dispatch, view) {
114
105
  var tr = addColumnAt(api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor)(column, getAllowAddColumnCustomStep(state), view)(state.tr);
@@ -164,10 +155,7 @@ export var insertRow = function insertRow(row, moveCursorToTheNewRow) {
164
155
  * @deprecated This function is deprecated - please use insertTableWithNestingSupport instead.
165
156
  * (To be removed with feature gate: `platform_editor_use_nested_table_pm_nodes`)
166
157
  */
167
- export var createTable = function createTable(isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, editorAnalyticsAPI, isCommentEditor, isChromelessEditor, isTableResizingEnabled
168
- // Ignored via go/ees005
169
- // eslint-disable-next-line @typescript-eslint/max-params
170
- ) {
158
+ export var createTable = function createTable(isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, editorAnalyticsAPI, isCommentEditor, isChromelessEditor, isTableResizingEnabled) {
171
159
  return function (state, dispatch) {
172
160
  var table = createTableWithWidth({
173
161
  isTableScalingEnabled: isTableScalingEnabled,
@@ -201,10 +189,7 @@ export var createTable = function createTable(isTableScalingEnabled, isTableAlig
201
189
  * @deprecated This function is deprecated - please use insertTableWithNestingSupport instead.
202
190
  * (To be removed with feature gate: `platform_editor_use_nested_table_pm_nodes`)
203
191
  */
204
- export var insertTableWithSize = function insertTableWithSize(isFullWidthModeEnabled, isTableScalingEnabled, isTableAlignmentEnabled, editorAnalyticsAPI, isCommentEditor, isChromelessEditor
205
- // Ignored via go/ees005
206
- // eslint-disable-next-line @typescript-eslint/max-params
207
- ) {
192
+ export var insertTableWithSize = function insertTableWithSize(isFullWidthModeEnabled, isTableScalingEnabled, isTableAlignmentEnabled, editorAnalyticsAPI, isCommentEditor, isChromelessEditor) {
208
193
  return function (rowsCount, colsCount, inputMethod) {
209
194
  return function (_ref) {
210
195
  var tr = _ref.tr;
@@ -473,10 +473,7 @@ export var hideInsertColumnOrRowButton = function hideInsertColumnOrRowButton()
473
473
  return tr.setMeta('addToHistory', false);
474
474
  });
475
475
  };
476
- export var addResizeHandleDecorations = function addResizeHandleDecorations(rowIndex, columnIndex, includeTooltip, nodeViewPortalProviderAPI, isKeyboardResize
477
- // Ignored via go/ees005
478
- // eslint-disable-next-line @typescript-eslint/max-params
479
- ) {
476
+ export var addResizeHandleDecorations = function addResizeHandleDecorations(rowIndex, columnIndex, includeTooltip, nodeViewPortalProviderAPI, isKeyboardResize) {
480
477
  return createCommand(function (state) {
481
478
  var tableNode = findTable(state.selection);
482
479
  var _getPluginState3 = getPluginState(state),
@@ -502,10 +499,7 @@ export var addResizeHandleDecorations = function addResizeHandleDecorations(rowI
502
499
  return tr.setMeta('addToHistory', false);
503
500
  });
504
501
  };
505
- export var updateResizeHandleDecorations = function updateResizeHandleDecorations(nodeViewPortalProviderAPI, rowIndex, columnIndex, includeTooltip
506
- // Ignored via go/ees005
507
- // eslint-disable-next-line @typescript-eslint/max-params
508
- ) {
502
+ export var updateResizeHandleDecorations = function updateResizeHandleDecorations(nodeViewPortalProviderAPI, rowIndex, columnIndex, includeTooltip) {
509
503
  return createCommand(function (state) {
510
504
  var tableNode = findTable(state.selection);
511
505
  var _getPluginState4 = getPluginState(state),
@@ -554,10 +548,7 @@ export var removeResizeHandleDecorations = function removeResizeHandleDecoration
554
548
  return tr.setMeta('addToHistory', false);
555
549
  });
556
550
  };
557
- export var autoSizeTable = function autoSizeTable(view, node, table, basePos, opts
558
- // Ignored via go/ees005
559
- // eslint-disable-next-line @typescript-eslint/max-params
560
- ) {
551
+ export var autoSizeTable = function autoSizeTable(view, node, table, basePos, opts) {
561
552
  if (typeof basePos !== 'number') {
562
553
  return false;
563
554
  }
@@ -9,10 +9,7 @@ export var pluginKey = new PluginKey('tableDecorationsPlugin');
9
9
  export var getDecorations = function getDecorations(state) {
10
10
  return pluginKey.getState(state);
11
11
  };
12
- export var handleDocOrSelectionChanged = function handleDocOrSelectionChanged(tr, decorationSet, oldState, newState
13
- // Ignored via go/ees005
14
- // eslint-disable-next-line @typescript-eslint/max-params
15
- ) {
12
+ export var handleDocOrSelectionChanged = function handleDocOrSelectionChanged(tr, decorationSet, oldState, newState) {
16
13
  var _tableWidthPluginKey$, _tableWidthPluginKey$2;
17
14
  var isResizing = (_tableWidthPluginKey$ = tableWidthPluginKey.getState(newState)) === null || _tableWidthPluginKey$ === void 0 ? void 0 : _tableWidthPluginKey$.resizing;
18
15
  var wasResizing = (_tableWidthPluginKey$2 = tableWidthPluginKey.getState(oldState)) === null || _tableWidthPluginKey$2 === void 0 ? void 0 : _tableWidthPluginKey$2.resizing;
@@ -49,8 +46,6 @@ export var createPlugin = function createPlugin() {
49
46
  init: function init() {
50
47
  return DecorationSet.empty;
51
48
  },
52
- // Ignored via go/ees005
53
- // eslint-disable-next-line @typescript-eslint/max-params
54
49
  apply: function apply(tr, decorationSet, oldState, newState) {
55
50
  var pluginState = decorationSet;
56
51
  // main table plugin --->
@@ -17,10 +17,7 @@ var updateLastCellElement = function updateLastCellElement(lastCellElementsDecor
17
17
  return updateDecorations(tr.doc, decorationSet, lastCellElementsDecorations, TableDecorations.LAST_CELL_ELEMENT);
18
18
  };
19
19
  };
20
- export var buildColumnResizingDecorations = function buildColumnResizingDecorations(rowEndIndex, columnEndIndex, includeTooltip, getIntl, nodeViewPortalProviderAPI
21
- // Ignored via go/ees005
22
- // eslint-disable-next-line @typescript-eslint/max-params
23
- ) {
20
+ export var buildColumnResizingDecorations = function buildColumnResizingDecorations(rowEndIndex, columnEndIndex, includeTooltip, getIntl, nodeViewPortalProviderAPI) {
24
21
  return function (_ref3) {
25
22
  var tr = _ref3.tr,
26
23
  decorationSet = _ref3.decorationSet;
@@ -8,10 +8,7 @@ import { canMove, getTargetIndex } from '../utils/drag-menu';
8
8
  import { getSelectedColumnIndexes, getSelectedRowIndexes } from '../utils/selection';
9
9
  import { clearDropTarget, cloneSource, moveSource } from './commands';
10
10
  export var clearDropTargetWithAnalytics = function clearDropTargetWithAnalytics(editorAnalyticsAPI) {
11
- return function (inputMethod, sourceType, sourceIndexes, status, tr
12
- // Ignored via go/ees005
13
- // eslint-disable-next-line @typescript-eslint/max-params
14
- ) {
11
+ return function (inputMethod, sourceType, sourceIndexes, status, tr) {
15
12
  return withEditorAnalyticsAPI(function (_ref) {
16
13
  var _sourceIndexes$length;
17
14
  var selection = _ref.selection;
@@ -41,10 +38,7 @@ export var clearDropTargetWithAnalytics = function clearDropTargetWithAnalytics(
41
38
  };
42
39
  };
43
40
  export var moveSourceWithAnalytics = function moveSourceWithAnalytics(editorAnalyticsAPI, ariaNotify, getIntl) {
44
- return function (inputMethod, sourceType, sourceIndexes, targetIndex, tr
45
- // Ignored via go/ees005
46
- // eslint-disable-next-line @typescript-eslint/max-params
47
- ) {
41
+ return function (inputMethod, sourceType, sourceIndexes, targetIndex, tr) {
48
42
  return withEditorAnalyticsAPI(function (_ref2) {
49
43
  var selection = _ref2.selection;
50
44
  var direction = sourceIndexes[0] > targetIndex ? -1 : 1;
@@ -117,10 +111,7 @@ export var moveSourceWithAnalyticsViaShortcut = function moveSourceWithAnalytics
117
111
  };
118
112
  };
119
113
  export var cloneSourceWithAnalytics = function cloneSourceWithAnalytics(editorAnalyticsAPI) {
120
- return function (inputMethod, sourceType, sourceIndexes, targetIndex, targetDirection, tr
121
- // Ignored via go/ees005
122
- // eslint-disable-next-line @typescript-eslint/max-params
123
- ) {
114
+ return function (inputMethod, sourceType, sourceIndexes, targetIndex, targetDirection, tr) {
124
115
  return withEditorAnalyticsAPI(function (_ref3) {
125
116
  var selection = _ref3.selection;
126
117
  var direction = sourceIndexes[0] > targetIndex ? -1 : 1;
@@ -14,10 +14,7 @@ var getDecorations = function getDecorations(state) {
14
14
  var updatePluginStateDecorations = function updatePluginStateDecorations(state, decorations, key) {
15
15
  return updateDecorations(state.doc, getDecorations(state), decorations, key);
16
16
  };
17
- export var setDropTarget = function setDropTarget(type, index, hasMergedCells, tr
18
- // Ignored via go/ees005
19
- // eslint-disable-next-line @typescript-eslint/max-params
20
- ) {
17
+ export var setDropTarget = function setDropTarget(type, index, hasMergedCells, tr) {
21
18
  return createCommand(function (state) {
22
19
  var _getPluginState = getPluginState(state),
23
20
  dropTargetType = _getPluginState.dropTargetType,
@@ -61,10 +58,7 @@ export var clearDropTarget = function clearDropTarget(tr) {
61
58
  return (tr || originalTr).setMeta('addToHistory', false);
62
59
  });
63
60
  };
64
- export var moveSource = function moveSource(sourceType, sourceIndexes, targetIndex, tr
65
- // Ignored via go/ees005
66
- // eslint-disable-next-line @typescript-eslint/max-params
67
- ) {
61
+ export var moveSource = function moveSource(sourceType, sourceIndexes, targetIndex, tr) {
68
62
  return createCommand(function (state) {
69
63
  return {
70
64
  type: DragAndDropActionType.CLEAR_DROP_TARGET,
@@ -119,10 +113,7 @@ export var toggleDragMenu = function toggleDragMenu(isDragMenuOpen, direction, i
119
113
  return tr.setMeta('addToHistory', false);
120
114
  });
121
115
  };
122
- export var cloneSource = function cloneSource(sourceType, sourceIndexes, targetIndex, targetDirection, tr
123
- // Ignored via go/ees005
124
- // eslint-disable-next-line @typescript-eslint/max-params
125
- ) {
116
+ export var cloneSource = function cloneSource(sourceType, sourceIndexes, targetIndex, targetDirection, tr) {
126
117
  return createCommand(function (state) {
127
118
  return {
128
119
  type: DragAndDropActionType.CLEAR_DROP_TARGET,
@@ -18,10 +18,7 @@ import { DropTargetType } from './consts';
18
18
  import { createPluginState, getPluginState } from './plugin-factory';
19
19
  import { pluginKey } from './plugin-key';
20
20
  import { getDraggableDataFromEvent } from './utils/monitor';
21
- var destroyFn = function destroyFn(editorView, editorAnalyticsAPI, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor
22
- // Ignored via go/ees005
23
- // eslint-disable-next-line @typescript-eslint/max-params
24
- ) {
21
+ var destroyFn = function destroyFn(editorView, editorAnalyticsAPI, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor) {
25
22
  var editorPageScrollContainer = document.querySelector('.fabric-editor-popup-scroll-parent');
26
23
  var rowAutoScrollers = editorPageScrollContainer ? [monitorForElements({
27
24
  canMonitor: function canMonitor(_ref) {
@@ -9,9 +9,6 @@ import { goToNextCell, moveCursorBackward, setFocusToCellMenu } from './commands
9
9
  import { activateNextResizeArea, initiateKeyboardColumnResizing, stopKeyboardColumnResizing } from './commands/column-resize';
10
10
  import { addRowAroundSelection, changeColumnWidthByStepWithAnalytics, deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut, deleteTableIfSelectedWithAnalytics, emptyMultipleCellsWithAnalytics } from './commands/commands-with-analytics';
11
11
  import { addColumnAfter as addColumnAfterCommand, addColumnBefore as addColumnBeforeCommand, createTable, insertTableWithNestingSupport } from './commands/insert';
12
-
13
- // Ignored via go/ees005
14
- // eslint-disable-next-line @typescript-eslint/max-params
15
12
  export function keymapPlugin(getEditorContainerWidth, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, dragAndDropEnabled) {
16
13
  var _pluginInjectionApi$a;
17
14
  var isTableScalingEnabled = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
@@ -24,10 +24,7 @@ import { fixTables } from './transforms/fix-tables';
24
24
  import { replaceSelectedTable } from './transforms/replace-table';
25
25
  import { findControlsHoverDecoration } from './utils/decoration';
26
26
  import { transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, transformSliceToRemoveOpenTable, transformSliceToRemoveNestedTables, isHeaderRowRequired, transformSliceTableLayoutDefaultToCenter } from './utils/paste';
27
- export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch, portalProviderAPI, nodeViewPortalProviderAPI, eventDispatcher, pluginConfig, getEditorContainerWidth, getEditorFeatureFlags, getIntl, fullWidthModeEnabled, previousFullWidthModeEnabled, dragAndDropEnabled, editorAnalyticsAPI, pluginInjectionApi, isTableScalingEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor
28
- // Ignored via go/ees005
29
- // eslint-disable-next-line @typescript-eslint/max-params
30
- ) {
27
+ export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch, portalProviderAPI, nodeViewPortalProviderAPI, eventDispatcher, pluginConfig, getEditorContainerWidth, getEditorFeatureFlags, getIntl, fullWidthModeEnabled, previousFullWidthModeEnabled, dragAndDropEnabled, editorAnalyticsAPI, pluginInjectionApi, isTableScalingEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor) {
31
28
  var _accessibilityUtils;
32
29
  var state = createPluginState(dispatch, _objectSpread(_objectSpread(_objectSpread({
33
30
  pluginConfig: pluginConfig,
@@ -242,8 +239,6 @@ export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch
242
239
  var maybeTr = closestElement(domRef, 'tr');
243
240
  return maybeTr ? maybeTr.classList.contains('sticky') : false;
244
241
  },
245
- // Ignored via go/ees005
246
- // eslint-disable-next-line @typescript-eslint/max-params
247
242
  handleTextInput: function handleTextInput(view, _from, _to, text) {
248
243
  var state = view.state,
249
244
  dispatch = view.dispatch;
@@ -15,10 +15,7 @@ import { updateControls } from './utils/dom';
15
15
  import { currentColWidth, getTableMaxWidth, pointsAtCell, getScalingPercentForTableWithoutWidth, getTableScalingPercent } from './utils/misc';
16
16
  import { resizeColumn } from './utils/resize-column';
17
17
  import { getResizeState } from './utils/resize-state';
18
- export var handleMouseDown = function handleMouseDown(view, event, localResizeHandlePos, getEditorContainerWidth, getEditorFeatureFlags, isTableScalingEnabled, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, isCommentEditor
19
- // Ignored via go/ees005
20
- // eslint-disable-next-line @typescript-eslint/max-params
21
- ) {
18
+ export var handleMouseDown = function handleMouseDown(view, event, localResizeHandlePos, getEditorContainerWidth, getEditorFeatureFlags, isTableScalingEnabled, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, isCommentEditor) {
22
19
  var _originalTable$attrs;
23
20
  var state = view.state,
24
21
  dispatch = view.dispatch;
@@ -8,9 +8,6 @@ import { handleMouseDown } from './event-handlers';
8
8
  import { createPluginState, getPluginState } from './plugin-factory';
9
9
  import { pluginKey } from './plugin-key';
10
10
  import { getResizeCellPos } from './utils/dom';
11
-
12
- // Ignored via go/ees005
13
- // eslint-disable-next-line @typescript-eslint/max-params
14
11
  export function createPlugin(dispatch, _ref, getEditorContainerWidth, getEditorFeatureFlags, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, isTableScalingEnabled, isCommentEditor) {
15
12
  var _ref$lastColumnResiza = _ref.lastColumnResizable,
16
13
  lastColumnResizable = _ref$lastColumnResiza === void 0 ? true : _ref$lastColumnResiza;
@@ -14,10 +14,7 @@ import { getScalingPercentForTableWithoutWidth, getTableScalingPercent } from '.
14
14
  export var getColWidthFix = function getColWidthFix(colwidth, tableColumnCount) {
15
15
  return colwidth - 1 / tableColumnCount;
16
16
  };
17
- export var generateColgroup = function generateColgroup(table, tableRef, shouldUseIncreasedScalingPercent, isCommentEditor
18
- // Ignored via go/ees005
19
- // eslint-disable-next-line @typescript-eslint/max-params
20
- ) {
17
+ export var generateColgroup = function generateColgroup(table, tableRef, shouldUseIncreasedScalingPercent, isCommentEditor) {
21
18
  var cols = [];
22
19
  var map = TableMap.get(table);
23
20
 
@@ -108,9 +105,6 @@ export var isMinCellWidthTable = function isMinCellWidthTable(table) {
108
105
  });
109
106
  return isTableMinCellWidth;
110
107
  };
111
-
112
- // Ignored via go/ees005
113
- // eslint-disable-next-line @typescript-eslint/max-params
114
108
  function renderColgroupFromNode(table, maybeTableRef, shouldUseIncreasedScalingPercent, isCommentEditor) {
115
109
  var rendered = DOMSerializer.renderSpec(document, ['colgroup', {}].concat(_toConsumableArray(generateColgroup(table, maybeTableRef, shouldUseIncreasedScalingPercent, isCommentEditor))));
116
110
 
@@ -20,10 +20,7 @@ export var getFreeSpace = function getFreeSpace(state) {
20
20
  };
21
21
 
22
22
  // Returns DOM refs of all cells in a column by `columnIndex`
23
- export var getCellsRefsInColumn = function getCellsRefsInColumn(columnIndex, table, tableStart, domAtPos
24
- // Ignored via go/ees005
25
- // eslint-disable-next-line @typescript-eslint/max-params
26
- ) {
23
+ export var getCellsRefsInColumn = function getCellsRefsInColumn(columnIndex, table, tableStart, domAtPos) {
27
24
  var map = TableMap.get(table);
28
25
  var cellsPositions = map.cellsInRect({
29
26
  left: columnIndex,
@@ -1,16 +1,11 @@
1
1
  import { unitToNumber } from './unit-to-number';
2
2
 
3
3
  // calculates content width of a cell
4
- // Ignored via go/ees005
5
- // eslint-disable-next-line @typescript-eslint/max-params
6
4
  export function contentWidth(elem, container) {
7
5
  var colWidths = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
8
6
  var canvas = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : document.createElement('canvas');
9
7
  return calcContentWidth(elem, container || elem, canvas, colWidths);
10
8
  }
11
-
12
- // Ignored via go/ees005
13
- // eslint-disable-next-line @typescript-eslint/max-params
14
9
  function calcContentWidth(elem, container, canvas, colWidths) {
15
10
  var flowWidths = [];
16
11
  var curWidth = 0;
@@ -80,9 +75,6 @@ function measureText(canvas, text, font) {
80
75
  }
81
76
  return Math.round(ctx.measureText(text || '').width);
82
77
  }
83
-
84
- // Ignored via go/ees005
85
- // eslint-disable-next-line @typescript-eslint/max-params
86
78
  function handlePreText(canvas, node, textContent, font) {
87
79
  var parent = node;
88
80
  if (node.nodeName === 'CODE') {
@@ -4,10 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import { getFreeSpace } from './column-state';
6
6
  import { bulkColumnsResize, getTotalWidth } from './resize-state';
7
- export var growColumn = function growColumn(state, colIndex, amount, selectedColumns
8
- // Ignored via go/ees005
9
- // eslint-disable-next-line @typescript-eslint/max-params
10
- ) {
7
+ export var growColumn = function growColumn(state, colIndex, amount, selectedColumns) {
11
8
  // can't grow if columns don't exist or it's the last column
12
9
  if (!state.cols[colIndex] || !state.cols[colIndex + 1]) {
13
10
  return state;
@@ -23,10 +20,7 @@ export var growColumn = function growColumn(state, colIndex, amount, selectedCol
23
20
  }
24
21
  return newState;
25
22
  };
26
- export var shrinkColumn = function shrinkColumn(state, colIndex, amount, selectedColumns
27
- // Ignored via go/ees005
28
- // eslint-disable-next-line @typescript-eslint/max-params
29
- ) {
23
+ export var shrinkColumn = function shrinkColumn(state, colIndex, amount, selectedColumns) {
30
24
  // can't shrink if columns don't exist
31
25
  if (!state.cols[colIndex]) {
32
26
  return state;
@@ -99,8 +93,6 @@ var ColType = /*#__PURE__*/function (ColType) {
99
93
  return ColType;
100
94
  }(ColType || {}); // TODO: should handle when destIdx:
101
95
  // - is beyond the range, and then not give it back
102
- // Ignored via go/ees005
103
- // eslint-disable-next-line @typescript-eslint/max-params
104
96
  function moveSpaceFrom(state, srcIdx, destIdx, amount) {
105
97
  var useFreeSpace = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
106
98
  var srcCol = state.cols[srcIdx];
@@ -93,10 +93,7 @@ export var getResizeState = function getResizeState(_ref) {
93
93
  };
94
94
 
95
95
  // updates Colgroup DOM node with new widths
96
- export var updateColgroup = function updateColgroup(state, tableRef, tableNode, isTableScalingEnabled, scalePercent
97
- // Ignored via go/ees005
98
- // eslint-disable-next-line @typescript-eslint/max-params
99
- ) {
96
+ export var updateColgroup = function updateColgroup(state, tableRef, tableNode, isTableScalingEnabled, scalePercent) {
100
97
  var cols = tableRef === null || tableRef === void 0 ? void 0 : tableRef.querySelectorAll('col');
101
98
  var columnsCount = cols === null || cols === void 0 ? void 0 : cols.length;
102
99
  /**
@@ -17,10 +17,7 @@ import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorWideL
17
17
  import { TABLE_MAX_WIDTH } from './table-resizing/utils/consts';
18
18
  import { ALIGN_START } from './utils/alignment';
19
19
  export var pluginKey = new PluginKey('tableWidthPlugin');
20
- var createPlugin = function createPlugin(dispatch, dispatchAnalyticsEvent, fullWidthEnabled, isTableScalingEnabled, isTableAlignmentEnabled, isCommentEditor
21
- // Ignored via go/ees005
22
- // eslint-disable-next-line @typescript-eslint/max-params
23
- ) {
20
+ var createPlugin = function createPlugin(dispatch, dispatchAnalyticsEvent, fullWidthEnabled, isTableScalingEnabled, isTableAlignmentEnabled, isCommentEditor) {
24
21
  return new SafePlugin({
25
22
  key: pluginKey,
26
23
  state: {
@@ -117,8 +114,6 @@ var createPlugin = function createPlugin(dispatch, dispatchAnalyticsEvent, fullW
117
114
  }
118
115
  if (referentialityTr) {
119
116
  referentialityTr.steps.forEach(function (step) {
120
- // Ignored via go/ees005
121
- // eslint-disable-next-line @typescript-eslint/max-params
122
117
  step.getMap().forEach(function (_, __, newStart, newEnd) {
123
118
  newState.doc.nodesBetween(newStart, newEnd, function (node, pos) {
124
119
  if (node.type === table) {
@@ -16,10 +16,7 @@ import { scaleTableTo } from '../table-resizing/utils/scale-table';
16
16
  * @param start
17
17
  * @returns
18
18
  */
19
- export var updateColumnWidths = function updateColumnWidths(resizeState, table, start, api
20
- // Ignored via go/ees005
21
- // eslint-disable-next-line @typescript-eslint/max-params
22
- ) {
19
+ export var updateColumnWidths = function updateColumnWidths(resizeState, table, start, api) {
23
20
  return function (tr) {
24
21
  var map = TableMap.get(table);
25
22
  var updatedCellsAttrs = {};