@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 9.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#101327](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101327)
8
+ [`0e185d4a53811`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0e185d4a53811) -
9
+ [ED-25901] Added prop to tables plugin to control use of nested tables
10
+
11
+ ## 9.2.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#107340](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107340)
16
+ [`d4a5bbf7b730d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d4a5bbf7b730d) -
17
+ [ux] ED-26057 Prevent the `unwrapContentFromTable` method in editor-plugin-table from incorrectly
18
+ attempting to unwrap nested tables, resulting in duplicate content in some circumstances when
19
+ copy/pasting nested table content
20
+
3
21
  ## 9.2.0
4
22
 
5
23
  ### Minor Changes
@@ -45,8 +45,6 @@ function delayUntilIdle(cb) {
45
45
  // eslint-disable-next-line require-unicode-regexp
46
46
  var cssVariablePattern = /^VAR\(--.*\)$/;
47
47
  var TableCell = exports.default = /*#__PURE__*/function (_TableNodeView) {
48
- // Ignored via go/ees005
49
- // eslint-disable-next-line @typescript-eslint/max-params
50
48
  function TableCell(node, view, getPos, eventDispatcher, editorAnalyticsAPI) {
51
49
  var _this;
52
50
  (0, _classCallCheck2.default)(this, TableCell);
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.TableContainer = exports.ResizableTableContainer = void 0;
9
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
11
  var _react = _interopRequireWildcard(require("react"));
11
12
  var _classnames = _interopRequireDefault(require("classnames"));
@@ -13,6 +14,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
13
14
  var _hooks = require("@atlaskit/editor-common/hooks");
14
15
  var _nodeWidth = require("@atlaskit/editor-common/node-width");
15
16
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
18
  var _commandsWithAnalytics = require("../pm-plugins/commands/commands-with-analytics");
17
19
  var _pluginFactory = require("../pm-plugins/plugin-factory");
18
20
  var _consts = require("../pm-plugins/table-resizing/utils/consts");
@@ -256,7 +258,7 @@ var ResizableTableContainer = exports.ResizableTableContainer = /*#__PURE__*/_re
256
258
  ,
257
259
  className: _types.TableCssClassName.TABLE_RESIZER_CONTAINER,
258
260
  ref: containerRef
259
- }, isLivePageViewMode ? /*#__PURE__*/_react.default.createElement(InnerContainer
261
+ }, (0, _platformFeatureFlags.fg)('platform_editor_live_page_prevent_table_recreation') ? null : isLivePageViewMode ? /*#__PURE__*/_react.default.createElement(InnerContainer
260
262
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
261
263
  , {
262
264
  className: className,
@@ -273,7 +275,16 @@ var ResizableTableContainer = exports.ResizableTableContainer = /*#__PURE__*/_re
273
275
  _react.default.createElement(_TableResizer.TableResizer, tableResizerProps, /*#__PURE__*/_react.default.createElement(InnerContainer, {
274
276
  className: className,
275
277
  node: node
276
- }, children))));
278
+ }, children)), (0, _platformFeatureFlags.fg)('platform_editor_live_page_prevent_table_recreation') ?
279
+ /*#__PURE__*/
280
+ // Ignored via go/ees005
281
+ // eslint-disable-next-line react/jsx-props-no-spreading
282
+ _react.default.createElement(_TableResizer.TableResizer, (0, _extends2.default)({}, tableResizerProps, {
283
+ disabled: isLivePageViewMode
284
+ }), /*#__PURE__*/_react.default.createElement(InnerContainer, {
285
+ className: className,
286
+ node: node
287
+ }, children)) : null));
277
288
  });
278
289
  var TableContainer = exports.TableContainer = function TableContainer(_ref6) {
279
290
  var children = _ref6.children,
@@ -12,8 +12,6 @@ var TableNodeView = exports.default = /*#__PURE__*/(0, _createClass2.default)(
12
12
  /**
13
13
  * @constructor
14
14
  */
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line @typescript-eslint/max-params
17
15
  function TableNodeView(node, view, getPos, eventDispatcher) {
18
16
  (0, _classCallCheck2.default)(this, TableNodeView);
19
17
  this.node = node;
@@ -86,10 +86,7 @@ var getResizerMinWidth = function getResizerMinWidth(node) {
86
86
  * @param isTableScalingEnabled
87
87
  * @param isFullWidthModeEnabled
88
88
  */
89
- var getVisibleGuidelines = function getVisibleGuidelines(guidelines, containerWidth, lineLength, isTableScalingEnabled, isFullWidthModeEnabled
90
- // Ignored via go/ees005
91
- // eslint-disable-next-line @typescript-eslint/max-params
92
- ) {
89
+ var getVisibleGuidelines = function getVisibleGuidelines(guidelines, containerWidth, lineLength, isTableScalingEnabled, isFullWidthModeEnabled) {
93
90
  var guidelineVisibleAdjustment = _consts2.TABLE_GUIDELINE_VISIBLE_ADJUSTMENT;
94
91
  if (isTableScalingEnabled) {
95
92
  // Notes:
@@ -131,7 +128,8 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
131
128
  shouldUseIncreasedScalingPercent = _ref.shouldUseIncreasedScalingPercent,
132
129
  pluginInjectionApi = _ref.pluginInjectionApi,
133
130
  isFullWidthModeEnabled = _ref.isFullWidthModeEnabled,
134
- isCommentEditor = _ref.isCommentEditor;
131
+ isCommentEditor = _ref.isCommentEditor,
132
+ disabled = _ref.disabled;
135
133
  var currentGap = (0, _react.useRef)(0);
136
134
  // track resizing state - use ref over state to avoid re-render
137
135
  var isResizing = (0, _react.useRef)(false);
@@ -201,10 +199,7 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
201
199
  isFullWidthModeEnabled ? lineLength + 2 * (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() : containerWidth, excludeGuidelineConfig) : _snapping.defaultSnappingWidths
202
200
  } : undefined;
203
201
  }, [snappingEnabled, isTableScalingEnabled, excludeGuidelineConfig, containerWidth, lineLength, isFullWidthModeEnabled]);
204
- var switchToCenterAlignment = (0, _react.useCallback)(function (pos, node, newWidth, state, dispatch
205
- // Ignored via go/ees005
206
- // eslint-disable-next-line @typescript-eslint/max-params
207
- ) {
202
+ var switchToCenterAlignment = (0, _react.useCallback)(function (pos, node, newWidth, state, dispatch) {
208
203
  if ((0, _alignment.shouldChangeAlignmentToCenterResized)(isTableAlignmentEnabled, node, lineLength, newWidth) && isResizing.current) {
209
204
  var _pluginInjectionApi$a;
210
205
  var tableNodeWithPos = {
@@ -480,7 +475,7 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
480
475
  var resizeRatio = !isTableAlignmentEnabled || isTableAlignmentEnabled && (0, _alignment.normaliseAlignment)(node.attrs.layout) === _alignment.ALIGN_CENTER ? 2 : 1;
481
476
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_resizer.ResizerNext, {
482
477
  ref: resizerRef,
483
- enable: handles,
478
+ enable: (0, _platformFeatureFlags.fg)('platform_editor_live_page_prevent_table_recreation') ? disabled ? {} : handles : handles,
484
479
  width: width,
485
480
  handleAlignmentMethod: "sticky",
486
481
  handleSize: handleSize,
@@ -33,8 +33,6 @@ var HEADER_ROW_SCROLL_THROTTLE_TIMEOUT = 200;
33
33
  // if too short it would trigger too many dom updates.
34
34
  var HEADER_ROW_SCROLL_RESET_DEBOUNCE_TIMEOUT = 400;
35
35
  var TableRow = exports.default = /*#__PURE__*/function (_TableNodeView) {
36
- // Ignored via go/ees005
37
- // eslint-disable-next-line @typescript-eslint/max-params
38
36
  function TableRow(node, view, getPos, eventDispatcher) {
39
37
  var _this;
40
38
  (0, _classCallCheck2.default)(this, TableRow);
@@ -25,10 +25,7 @@ var lazyTableView = exports.lazyTableView = function lazyTableView(options) {
25
25
  './table'));
26
26
  }).then(function (_ref) {
27
27
  var createTableView = _ref.createTableView;
28
- return function (node, view, getPos, decorations, getNodeViewOptions
29
- // Ignored via go/ees005
30
- // eslint-disable-next-line @typescript-eslint/max-params
31
- ) {
28
+ return function (node, view, getPos, decorations, getNodeViewOptions) {
32
29
  var _getNodeViewOptions = getNodeViewOptions(),
33
30
  portalProviderAPI = _getNodeViewOptions.portalProviderAPI,
34
31
  eventDispatcher = _getNodeViewOptions.eventDispatcher,
@@ -64,10 +61,7 @@ var lazyTableCellView = exports.lazyTableCellView = function lazyTableCellView(o
64
61
  './TableCell'));
65
62
  }).then(function (_ref2) {
66
63
  var TableCell = _ref2.default;
67
- return function (node, view, getPos, decorations, getNodeViewOptions
68
- // Ignored via go/ees005
69
- // eslint-disable-next-line @typescript-eslint/max-params
70
- ) {
64
+ return function (node, view, getPos, decorations, getNodeViewOptions) {
71
65
  var _pluginInjectionApi$a;
72
66
  var _getNodeViewOptions2 = getNodeViewOptions(),
73
67
  eventDispatcher = _getNodeViewOptions2.eventDispatcher,
@@ -98,10 +92,7 @@ var lazyTableHeaderView = exports.lazyTableHeaderView = function lazyTableHeader
98
92
  './TableCell'));
99
93
  }).then(function (_ref3) {
100
94
  var TableCell = _ref3.default;
101
- return function (node, view, getPos, decorations, getNodeViewOptions
102
- // Ignored via go/ees005
103
- // eslint-disable-next-line @typescript-eslint/max-params
104
- ) {
95
+ return function (node, view, getPos, decorations, getNodeViewOptions) {
105
96
  var _pluginInjectionApi$a2;
106
97
  var _getNodeViewOptions3 = getNodeViewOptions(),
107
98
  eventDispatcher = _getNodeViewOptions3.eventDispatcher,
@@ -131,10 +122,7 @@ var lazyTableRowView = exports.lazyTableRowView = function lazyTableRowView(opti
131
122
  './TableRow'));
132
123
  }).then(function (_ref4) {
133
124
  var TableRow = _ref4.default;
134
- return function (node, view, getPos, decorations, getNodeViewOptions
135
- // Ignored via go/ees005
136
- // eslint-disable-next-line @typescript-eslint/max-params
137
- ) {
125
+ return function (node, view, getPos, decorations, getNodeViewOptions) {
138
126
  var _getNodeViewOptions4 = getNodeViewOptions(),
139
127
  eventDispatcher = _getNodeViewOptions4.eventDispatcher;
140
128
  return new TableRow(node, view, getPos, eventDispatcher);
@@ -45,10 +45,7 @@ var tableAttributes = function tableAttributes(node) {
45
45
  'data-table-display-mode': node.attrs.displayMode
46
46
  };
47
47
  };
48
- var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing
49
- // Ignored via go/ees005
50
- // eslint-disable-next-line @typescript-eslint/max-params
51
- ) {
48
+ var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing) {
52
49
  if (!node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
53
50
  return;
54
51
  }
@@ -326,10 +323,7 @@ var TableView = exports.default = /*#__PURE__*/function (_ReactNodeView) {
326
323
  }
327
324
  }]);
328
325
  }(_reactNodeView.default);
329
- var createTableView = exports.createTableView = function createTableView(node, view, getPos, portalProviderAPI, eventDispatcher, getEditorContainerWidth, getEditorFeatureFlags, dispatchAnalyticsEvent, pluginInjectionApi, isCommentEditor, isChromelessEditor
330
- // Ignored via go/ees005
331
- // eslint-disable-next-line @typescript-eslint/max-params
332
- ) {
326
+ var createTableView = exports.createTableView = function createTableView(node, view, getPos, portalProviderAPI, eventDispatcher, getEditorContainerWidth, getEditorFeatureFlags, dispatchAnalyticsEvent, pluginInjectionApi, isCommentEditor, isChromelessEditor) {
333
327
  var _pluginInjectionApi$t;
334
328
  var _getPluginState2 = (0, _pluginFactory.getPluginState)(view.state),
335
329
  pluginConfig = _getPluginState2.pluginConfig,
@@ -28,10 +28,7 @@ var getTablePluginCommand = function getTablePluginCommand(actionPayload, origin
28
28
  return (originalTr || tr).setMeta('addToHistory', false);
29
29
  });
30
30
  };
31
- var updateResizeHandleAndStatePosition = function updateResizeHandleAndStatePosition(rowIndex, columnIndex, nextResizeHandlePos, nodeViewPortalProviderAPI
32
- // Ignored via go/ees005
33
- // eslint-disable-next-line @typescript-eslint/max-params
34
- ) {
31
+ var updateResizeHandleAndStatePosition = function updateResizeHandleAndStatePosition(rowIndex, columnIndex, nextResizeHandlePos, nodeViewPortalProviderAPI) {
35
32
  return function (state, dispatch) {
36
33
  var customTr = state.tr;
37
34
  var _getPluginState = (0, _pluginFactory.getPluginState)(state),
@@ -189,10 +189,7 @@ var insertRowWithAnalytics = exports.insertRowWithAnalytics = function insertRow
189
189
  };
190
190
  };
191
191
  var changeColumnWidthByStepWithAnalytics = exports.changeColumnWidthByStepWithAnalytics = function changeColumnWidthByStepWithAnalytics(editorAnalyticsAPI, api) {
192
- return function (stepSize, getEditorContainerWidth, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, inputMethod, ariaNotify, getIntl
193
- // Ignored via go/ees005
194
- // eslint-disable-next-line @typescript-eslint/max-params
195
- ) {
192
+ return function (stepSize, getEditorContainerWidth, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, inputMethod, ariaNotify, getIntl) {
196
193
  return (0, _analytics2.withEditorAnalyticsAPI)(function (state) {
197
194
  var _getSelectedTableInfo2 = (0, _analytics2.getSelectedTableInfo)(state.selection),
198
195
  table = _getSelectedTableInfo2.table,
@@ -306,10 +303,7 @@ var deleteColumnsWithAnalytics = exports.deleteColumnsWithAnalytics = function d
306
303
  })(editorAnalyticsAPI)((0, _delete.deleteColumnsCommand)(rect, api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor));
307
304
  };
308
305
  };
309
- var deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut = exports.deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut = function deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut(editorAnalyticsAPI, api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent
310
- // Ignored via go/ees005
311
- // eslint-disable-next-line @typescript-eslint/max-params
312
- ) {
306
+ var deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut = exports.deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut = function deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut(editorAnalyticsAPI, api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent) {
313
307
  return function (state, dispatch) {
314
308
  var selection = state.selection;
315
309
  var isCellSelection = selection instanceof _cellSelection.CellSelection;
@@ -520,10 +514,7 @@ var toggleFixedColumnWidthsOptionAnalytics = exports.toggleFixedColumnWidthsOpti
520
514
  })(editorAnalyticsAPI)((0, _preset.editorCommandToPMCommand)(_displayMode.setTableDisplayMode));
521
515
  };
522
516
  var setTableAlignmentWithAnalytics = exports.setTableAlignmentWithAnalytics = function setTableAlignmentWithAnalytics(editorAnalyticsAPI, isCommentEditor) {
523
- return function (newAlignment, previousAlignment, inputMethod, reason
524
- // Ignored via go/ees005
525
- // eslint-disable-next-line @typescript-eslint/max-params
526
- ) {
517
+ return function (newAlignment, previousAlignment, inputMethod, reason) {
527
518
  return (0, _analytics2.withEditorAnalyticsAPI)(function (state) {
528
519
  var _getSelectedTableInfo13 = (0, _analytics2.getSelectedTableInfo)(state.selection),
529
520
  table = _getSelectedTableInfo13.table,
@@ -548,10 +539,7 @@ var setTableAlignmentWithAnalytics = exports.setTableAlignmentWithAnalytics = fu
548
539
  };
549
540
  };
550
541
  var setTableAlignmentWithTableContentWithPosWithAnalytics = exports.setTableAlignmentWithTableContentWithPosWithAnalytics = function setTableAlignmentWithTableContentWithPosWithAnalytics(editorAnalyticsAPI) {
551
- return function (newAlignment, previousAlignment, tableNodeWithPos, inputMethod, reason
552
- // Ignored via go/ees005
553
- // eslint-disable-next-line @typescript-eslint/max-params
554
- ) {
542
+ return function (newAlignment, previousAlignment, tableNodeWithPos, inputMethod, reason) {
555
543
  return (0, _analytics2.withEditorAnalyticsAPI)(function () {
556
544
  var map = _tableMap.TableMap.get(tableNodeWithPos.node);
557
545
  var totalRowCount = map.height;
@@ -35,9 +35,6 @@ function addColumnAtCustomStep(column) {
35
35
  return tr;
36
36
  };
37
37
  }
38
-
39
- // Ignored via go/ees005
40
- // eslint-disable-next-line @typescript-eslint/max-params
41
38
  function addColumnAt(api) {
42
39
  var isTableScalingEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
43
40
  var isTableFixedColumnWidthsOptionEnabled = arguments.length > 2 ? arguments[2] : undefined;
@@ -93,10 +90,7 @@ var addColumnBefore = exports.addColumnBefore = function addColumnBefore(api) {
93
90
 
94
91
  // :: (EditorState, dispatch: ?(tr: Transaction)) → bool
95
92
  // Command to add a column after the column with the selection.
96
- var addColumnAfter = exports.addColumnAfter = function addColumnAfter(api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor
97
- // Ignored via go/ees005
98
- // eslint-disable-next-line @typescript-eslint/max-params
99
- ) {
93
+ var addColumnAfter = exports.addColumnAfter = function addColumnAfter(api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor) {
100
94
  return function (state, dispatch, view) {
101
95
  var table = (0, _utils2.findTable)(state.selection);
102
96
  if (!table) {
@@ -113,10 +107,7 @@ var insertColumn = exports.insertColumn = function insertColumn(api) {
113
107
  var isTableScalingEnabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
114
108
  var isTableFixedColumnWidthsOptionEnabled = arguments.length > 2 ? arguments[2] : undefined;
115
109
  var shouldUseIncreasedScalingPercent = arguments.length > 3 ? arguments[3] : undefined;
116
- var isCommentEditor
117
- // Ignored via go/ees005
118
- // eslint-disable-next-line @typescript-eslint/max-params
119
- = arguments.length > 4 ? arguments[4] : undefined;
110
+ var isCommentEditor = arguments.length > 4 ? arguments[4] : undefined;
120
111
  return function (column) {
121
112
  return function (state, dispatch, view) {
122
113
  var tr = addColumnAt(api, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor)(column, (0, _getAllowAddColumnCustomStep.getAllowAddColumnCustomStep)(state), view)(state.tr);
@@ -172,10 +163,7 @@ var insertRow = exports.insertRow = function insertRow(row, moveCursorToTheNewRo
172
163
  * @deprecated This function is deprecated - please use insertTableWithNestingSupport instead.
173
164
  * (To be removed with feature gate: `platform_editor_use_nested_table_pm_nodes`)
174
165
  */
175
- var createTable = exports.createTable = function createTable(isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, editorAnalyticsAPI, isCommentEditor, isChromelessEditor, isTableResizingEnabled
176
- // Ignored via go/ees005
177
- // eslint-disable-next-line @typescript-eslint/max-params
178
- ) {
166
+ var createTable = exports.createTable = function createTable(isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, editorAnalyticsAPI, isCommentEditor, isChromelessEditor, isTableResizingEnabled) {
179
167
  return function (state, dispatch) {
180
168
  var table = (0, _create.createTableWithWidth)({
181
169
  isTableScalingEnabled: isTableScalingEnabled,
@@ -209,10 +197,7 @@ var createTable = exports.createTable = function createTable(isTableScalingEnabl
209
197
  * @deprecated This function is deprecated - please use insertTableWithNestingSupport instead.
210
198
  * (To be removed with feature gate: `platform_editor_use_nested_table_pm_nodes`)
211
199
  */
212
- var insertTableWithSize = exports.insertTableWithSize = function insertTableWithSize(isFullWidthModeEnabled, isTableScalingEnabled, isTableAlignmentEnabled, editorAnalyticsAPI, isCommentEditor, isChromelessEditor
213
- // Ignored via go/ees005
214
- // eslint-disable-next-line @typescript-eslint/max-params
215
- ) {
200
+ var insertTableWithSize = exports.insertTableWithSize = function insertTableWithSize(isFullWidthModeEnabled, isTableScalingEnabled, isTableAlignmentEnabled, editorAnalyticsAPI, isCommentEditor, isChromelessEditor) {
216
201
  return function (rowsCount, colsCount, inputMethod) {
217
202
  return function (_ref) {
218
203
  var tr = _ref.tr;
@@ -480,10 +480,7 @@ var hideInsertColumnOrRowButton = exports.hideInsertColumnOrRowButton = function
480
480
  return tr.setMeta('addToHistory', false);
481
481
  });
482
482
  };
483
- var addResizeHandleDecorations = exports.addResizeHandleDecorations = function addResizeHandleDecorations(rowIndex, columnIndex, includeTooltip, nodeViewPortalProviderAPI, isKeyboardResize
484
- // Ignored via go/ees005
485
- // eslint-disable-next-line @typescript-eslint/max-params
486
- ) {
483
+ var addResizeHandleDecorations = exports.addResizeHandleDecorations = function addResizeHandleDecorations(rowIndex, columnIndex, includeTooltip, nodeViewPortalProviderAPI, isKeyboardResize) {
487
484
  return (0, _pluginFactory.createCommand)(function (state) {
488
485
  var tableNode = (0, _utils2.findTable)(state.selection);
489
486
  var _getPluginState3 = (0, _pluginFactory.getPluginState)(state),
@@ -509,10 +506,7 @@ var addResizeHandleDecorations = exports.addResizeHandleDecorations = function a
509
506
  return tr.setMeta('addToHistory', false);
510
507
  });
511
508
  };
512
- var updateResizeHandleDecorations = exports.updateResizeHandleDecorations = function updateResizeHandleDecorations(nodeViewPortalProviderAPI, rowIndex, columnIndex, includeTooltip
513
- // Ignored via go/ees005
514
- // eslint-disable-next-line @typescript-eslint/max-params
515
- ) {
509
+ var updateResizeHandleDecorations = exports.updateResizeHandleDecorations = function updateResizeHandleDecorations(nodeViewPortalProviderAPI, rowIndex, columnIndex, includeTooltip) {
516
510
  return (0, _pluginFactory.createCommand)(function (state) {
517
511
  var tableNode = (0, _utils2.findTable)(state.selection);
518
512
  var _getPluginState4 = (0, _pluginFactory.getPluginState)(state),
@@ -561,10 +555,7 @@ var removeResizeHandleDecorations = exports.removeResizeHandleDecorations = func
561
555
  return tr.setMeta('addToHistory', false);
562
556
  });
563
557
  };
564
- var autoSizeTable = exports.autoSizeTable = function autoSizeTable(view, node, table, basePos, opts
565
- // Ignored via go/ees005
566
- // eslint-disable-next-line @typescript-eslint/max-params
567
- ) {
558
+ var autoSizeTable = exports.autoSizeTable = function autoSizeTable(view, node, table, basePos, opts) {
568
559
  if (typeof basePos !== 'number') {
569
560
  return false;
570
561
  }
@@ -15,10 +15,7 @@ var pluginKey = exports.pluginKey = new _state.PluginKey('tableDecorationsPlugin
15
15
  var getDecorations = exports.getDecorations = function getDecorations(state) {
16
16
  return pluginKey.getState(state);
17
17
  };
18
- var handleDocOrSelectionChanged = exports.handleDocOrSelectionChanged = function handleDocOrSelectionChanged(tr, decorationSet, oldState, newState
19
- // Ignored via go/ees005
20
- // eslint-disable-next-line @typescript-eslint/max-params
21
- ) {
18
+ var handleDocOrSelectionChanged = exports.handleDocOrSelectionChanged = function handleDocOrSelectionChanged(tr, decorationSet, oldState, newState) {
22
19
  var _tableWidthPluginKey$, _tableWidthPluginKey$2;
23
20
  var isResizing = (_tableWidthPluginKey$ = _tableWidth.pluginKey.getState(newState)) === null || _tableWidthPluginKey$ === void 0 ? void 0 : _tableWidthPluginKey$.resizing;
24
21
  var wasResizing = (_tableWidthPluginKey$2 = _tableWidth.pluginKey.getState(oldState)) === null || _tableWidthPluginKey$2 === void 0 ? void 0 : _tableWidthPluginKey$2.resizing;
@@ -55,8 +52,6 @@ var createPlugin = exports.createPlugin = function createPlugin() {
55
52
  init: function init() {
56
53
  return _view.DecorationSet.empty;
57
54
  },
58
- // Ignored via go/ees005
59
- // eslint-disable-next-line @typescript-eslint/max-params
60
55
  apply: function apply(tr, decorationSet, oldState, newState) {
61
56
  var pluginState = decorationSet;
62
57
  // main table plugin --->
@@ -24,10 +24,7 @@ var updateLastCellElement = function updateLastCellElement(lastCellElementsDecor
24
24
  return (0, _decoration.updateDecorations)(tr.doc, decorationSet, lastCellElementsDecorations, _types.TableDecorations.LAST_CELL_ELEMENT);
25
25
  };
26
26
  };
27
- var buildColumnResizingDecorations = exports.buildColumnResizingDecorations = function buildColumnResizingDecorations(rowEndIndex, columnEndIndex, includeTooltip, getIntl, nodeViewPortalProviderAPI
28
- // Ignored via go/ees005
29
- // eslint-disable-next-line @typescript-eslint/max-params
30
- ) {
27
+ var buildColumnResizingDecorations = exports.buildColumnResizingDecorations = function buildColumnResizingDecorations(rowEndIndex, columnEndIndex, includeTooltip, getIntl, nodeViewPortalProviderAPI) {
31
28
  return function (_ref3) {
32
29
  var tr = _ref3.tr,
33
30
  decorationSet = _ref3.decorationSet;
@@ -15,10 +15,7 @@ var _dragMenu = require("../utils/drag-menu");
15
15
  var _selection = require("../utils/selection");
16
16
  var _commands = require("./commands");
17
17
  var clearDropTargetWithAnalytics = exports.clearDropTargetWithAnalytics = function clearDropTargetWithAnalytics(editorAnalyticsAPI) {
18
- return function (inputMethod, sourceType, sourceIndexes, status, tr
19
- // Ignored via go/ees005
20
- // eslint-disable-next-line @typescript-eslint/max-params
21
- ) {
18
+ return function (inputMethod, sourceType, sourceIndexes, status, tr) {
22
19
  return (0, _analytics2.withEditorAnalyticsAPI)(function (_ref) {
23
20
  var _sourceIndexes$length;
24
21
  var selection = _ref.selection;
@@ -48,10 +45,7 @@ var clearDropTargetWithAnalytics = exports.clearDropTargetWithAnalytics = functi
48
45
  };
49
46
  };
50
47
  var moveSourceWithAnalytics = exports.moveSourceWithAnalytics = function moveSourceWithAnalytics(editorAnalyticsAPI, ariaNotify, getIntl) {
51
- return function (inputMethod, sourceType, sourceIndexes, targetIndex, tr
52
- // Ignored via go/ees005
53
- // eslint-disable-next-line @typescript-eslint/max-params
54
- ) {
48
+ return function (inputMethod, sourceType, sourceIndexes, targetIndex, tr) {
55
49
  return (0, _analytics2.withEditorAnalyticsAPI)(function (_ref2) {
56
50
  var selection = _ref2.selection;
57
51
  var direction = sourceIndexes[0] > targetIndex ? -1 : 1;
@@ -124,10 +118,7 @@ var moveSourceWithAnalyticsViaShortcut = exports.moveSourceWithAnalyticsViaShort
124
118
  };
125
119
  };
126
120
  var cloneSourceWithAnalytics = exports.cloneSourceWithAnalytics = function cloneSourceWithAnalytics(editorAnalyticsAPI) {
127
- return function (inputMethod, sourceType, sourceIndexes, targetIndex, targetDirection, tr
128
- // Ignored via go/ees005
129
- // eslint-disable-next-line @typescript-eslint/max-params
130
- ) {
121
+ return function (inputMethod, sourceType, sourceIndexes, targetIndex, targetDirection, tr) {
131
122
  return (0, _analytics2.withEditorAnalyticsAPI)(function (_ref3) {
132
123
  var selection = _ref3.selection;
133
124
  var direction = sourceIndexes[0] > targetIndex ? -1 : 1;
@@ -20,10 +20,7 @@ var getDecorations = function getDecorations(state) {
20
20
  var updatePluginStateDecorations = function updatePluginStateDecorations(state, decorations, key) {
21
21
  return (0, _decoration.updateDecorations)(state.doc, getDecorations(state), decorations, key);
22
22
  };
23
- var setDropTarget = exports.setDropTarget = function setDropTarget(type, index, hasMergedCells, tr
24
- // Ignored via go/ees005
25
- // eslint-disable-next-line @typescript-eslint/max-params
26
- ) {
23
+ var setDropTarget = exports.setDropTarget = function setDropTarget(type, index, hasMergedCells, tr) {
27
24
  return (0, _pluginFactory.createCommand)(function (state) {
28
25
  var _getPluginState = (0, _pluginFactory.getPluginState)(state),
29
26
  dropTargetType = _getPluginState.dropTargetType,
@@ -67,10 +64,7 @@ var clearDropTarget = exports.clearDropTarget = function clearDropTarget(tr) {
67
64
  return (tr || originalTr).setMeta('addToHistory', false);
68
65
  });
69
66
  };
70
- var moveSource = exports.moveSource = function moveSource(sourceType, sourceIndexes, targetIndex, tr
71
- // Ignored via go/ees005
72
- // eslint-disable-next-line @typescript-eslint/max-params
73
- ) {
67
+ var moveSource = exports.moveSource = function moveSource(sourceType, sourceIndexes, targetIndex, tr) {
74
68
  return (0, _pluginFactory.createCommand)(function (state) {
75
69
  return {
76
70
  type: _actions.DragAndDropActionType.CLEAR_DROP_TARGET,
@@ -125,10 +119,7 @@ var toggleDragMenu = exports.toggleDragMenu = function toggleDragMenu(isDragMenu
125
119
  return tr.setMeta('addToHistory', false);
126
120
  });
127
121
  };
128
- var cloneSource = exports.cloneSource = function cloneSource(sourceType, sourceIndexes, targetIndex, targetDirection, tr
129
- // Ignored via go/ees005
130
- // eslint-disable-next-line @typescript-eslint/max-params
131
- ) {
122
+ var cloneSource = exports.cloneSource = function cloneSource(sourceType, sourceIndexes, targetIndex, targetDirection, tr) {
132
123
  return (0, _pluginFactory.createCommand)(function (state) {
133
124
  return {
134
125
  type: _actions.DragAndDropActionType.CLEAR_DROP_TARGET,
@@ -24,10 +24,7 @@ var _consts = require("./consts");
24
24
  var _pluginFactory2 = require("./plugin-factory");
25
25
  var _pluginKey2 = require("./plugin-key");
26
26
  var _monitor = require("./utils/monitor");
27
- var destroyFn = function destroyFn(editorView, editorAnalyticsAPI, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor
28
- // Ignored via go/ees005
29
- // eslint-disable-next-line @typescript-eslint/max-params
30
- ) {
27
+ var destroyFn = function destroyFn(editorView, editorAnalyticsAPI, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor) {
31
28
  var editorPageScrollContainer = document.querySelector('.fabric-editor-popup-scroll-parent');
32
29
  var rowAutoScrollers = editorPageScrollContainer ? [(0, _adapter.monitorForElements)({
33
30
  canMonitor: function canMonitor(_ref) {
@@ -16,8 +16,6 @@ var _commands2 = require("./commands");
16
16
  var _columnResize = require("./commands/column-resize");
17
17
  var _commandsWithAnalytics2 = require("./commands/commands-with-analytics");
18
18
  var _insert = require("./commands/insert");
19
- // Ignored via go/ees005
20
- // eslint-disable-next-line @typescript-eslint/max-params
21
19
  function keymapPlugin(getEditorContainerWidth, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, dragAndDropEnabled) {
22
20
  var _pluginInjectionApi$a;
23
21
  var isTableScalingEnabled = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
@@ -31,10 +31,7 @@ var _decoration = require("./utils/decoration");
31
31
  var _paste = require("./utils/paste");
32
32
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
33
33
  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) { (0, _defineProperty2.default)(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; }
34
- var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch, portalProviderAPI, nodeViewPortalProviderAPI, eventDispatcher, pluginConfig, getEditorContainerWidth, getEditorFeatureFlags, getIntl, fullWidthModeEnabled, previousFullWidthModeEnabled, dragAndDropEnabled, editorAnalyticsAPI, pluginInjectionApi, isTableScalingEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor
35
- // Ignored via go/ees005
36
- // eslint-disable-next-line @typescript-eslint/max-params
37
- ) {
34
+ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch, portalProviderAPI, nodeViewPortalProviderAPI, eventDispatcher, pluginConfig, getEditorContainerWidth, getEditorFeatureFlags, getIntl, fullWidthModeEnabled, previousFullWidthModeEnabled, dragAndDropEnabled, editorAnalyticsAPI, pluginInjectionApi, isTableScalingEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor) {
38
35
  var _accessibilityUtils;
39
36
  var state = (0, _pluginFactory.createPluginState)(dispatch, _objectSpread(_objectSpread(_objectSpread({
40
37
  pluginConfig: pluginConfig,
@@ -249,8 +246,6 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalytic
249
246
  var maybeTr = (0, _utils.closestElement)(domRef, 'tr');
250
247
  return maybeTr ? maybeTr.classList.contains('sticky') : false;
251
248
  },
252
- // Ignored via go/ees005
253
- // eslint-disable-next-line @typescript-eslint/max-params
254
249
  handleTextInput: function handleTextInput(view, _from, _to, text) {
255
250
  var state = view.state,
256
251
  dispatch = view.dispatch;
@@ -21,10 +21,7 @@ var _dom = require("./utils/dom");
21
21
  var _misc2 = require("./utils/misc");
22
22
  var _resizeColumn = require("./utils/resize-column");
23
23
  var _resizeState = require("./utils/resize-state");
24
- var handleMouseDown = exports.handleMouseDown = function handleMouseDown(view, event, localResizeHandlePos, getEditorContainerWidth, getEditorFeatureFlags, isTableScalingEnabled, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, isCommentEditor
25
- // Ignored via go/ees005
26
- // eslint-disable-next-line @typescript-eslint/max-params
27
- ) {
24
+ var handleMouseDown = exports.handleMouseDown = function handleMouseDown(view, event, localResizeHandlePos, getEditorContainerWidth, getEditorFeatureFlags, isTableScalingEnabled, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, isCommentEditor) {
28
25
  var _originalTable$attrs;
29
26
  var state = view.state,
30
27
  dispatch = view.dispatch;
@@ -15,8 +15,6 @@ var _eventHandlers = require("./event-handlers");
15
15
  var _pluginFactory2 = require("./plugin-factory");
16
16
  var _pluginKey = require("./plugin-key");
17
17
  var _dom = require("./utils/dom");
18
- // Ignored via go/ees005
19
- // eslint-disable-next-line @typescript-eslint/max-params
20
18
  function createPlugin(dispatch, _ref, getEditorContainerWidth, getEditorFeatureFlags, api, nodeViewPortalProviderAPI, editorAnalyticsAPI, isTableScalingEnabled, isCommentEditor) {
21
19
  var _ref$lastColumnResiza = _ref.lastColumnResizable,
22
20
  lastColumnResizable = _ref$lastColumnResiza === void 0 ? true : _ref$lastColumnResiza;
@@ -21,10 +21,7 @@ var _misc = require("./misc");
21
21
  var getColWidthFix = exports.getColWidthFix = function getColWidthFix(colwidth, tableColumnCount) {
22
22
  return colwidth - 1 / tableColumnCount;
23
23
  };
24
- var generateColgroup = exports.generateColgroup = function generateColgroup(table, tableRef, shouldUseIncreasedScalingPercent, isCommentEditor
25
- // Ignored via go/ees005
26
- // eslint-disable-next-line @typescript-eslint/max-params
27
- ) {
24
+ var generateColgroup = exports.generateColgroup = function generateColgroup(table, tableRef, shouldUseIncreasedScalingPercent, isCommentEditor) {
28
25
  var cols = [];
29
26
  var map = _tableMap.TableMap.get(table);
30
27
 
@@ -115,9 +112,6 @@ var isMinCellWidthTable = exports.isMinCellWidthTable = function isMinCellWidthT
115
112
  });
116
113
  return isTableMinCellWidth;
117
114
  };
118
-
119
- // Ignored via go/ees005
120
- // eslint-disable-next-line @typescript-eslint/max-params
121
115
  function renderColgroupFromNode(table, maybeTableRef, shouldUseIncreasedScalingPercent, isCommentEditor) {
122
116
  var rendered = _model.DOMSerializer.renderSpec(document, ['colgroup', {}].concat((0, _toConsumableArray2.default)(generateColgroup(table, maybeTableRef, shouldUseIncreasedScalingPercent, isCommentEditor))));
123
117
 
@@ -26,10 +26,7 @@ var getFreeSpace = exports.getFreeSpace = function getFreeSpace(state) {
26
26
  };
27
27
 
28
28
  // Returns DOM refs of all cells in a column by `columnIndex`
29
- var getCellsRefsInColumn = exports.getCellsRefsInColumn = function getCellsRefsInColumn(columnIndex, table, tableStart, domAtPos
30
- // Ignored via go/ees005
31
- // eslint-disable-next-line @typescript-eslint/max-params
32
- ) {
29
+ var getCellsRefsInColumn = exports.getCellsRefsInColumn = function getCellsRefsInColumn(columnIndex, table, tableStart, domAtPos) {
33
30
  var map = _tableMap.TableMap.get(table);
34
31
  var cellsPositions = map.cellsInRect({
35
32
  left: columnIndex,
@@ -6,16 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.contentWidth = contentWidth;
7
7
  var _unitToNumber = require("./unit-to-number");
8
8
  // calculates content width of a cell
9
- // Ignored via go/ees005
10
- // eslint-disable-next-line @typescript-eslint/max-params
11
9
  function contentWidth(elem, container) {
12
10
  var colWidths = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
13
11
  var canvas = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : document.createElement('canvas');
14
12
  return calcContentWidth(elem, container || elem, canvas, colWidths);
15
13
  }
16
-
17
- // Ignored via go/ees005
18
- // eslint-disable-next-line @typescript-eslint/max-params
19
14
  function calcContentWidth(elem, container, canvas, colWidths) {
20
15
  var flowWidths = [];
21
16
  var curWidth = 0;
@@ -85,9 +80,6 @@ function measureText(canvas, text, font) {
85
80
  }
86
81
  return Math.round(ctx.measureText(text || '').width);
87
82
  }
88
-
89
- // Ignored via go/ees005
90
- // eslint-disable-next-line @typescript-eslint/max-params
91
83
  function handlePreText(canvas, node, textContent, font) {
92
84
  var parent = node;
93
85
  if (node.nodeName === 'CODE') {