@atlaskit/editor-plugin-table 22.2.8 → 22.2.10

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 (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/pm-plugins/analytics/plugin-factory.js +4 -4
  3. package/dist/cjs/pm-plugins/decorations/utils/column-resizing.js +11 -26
  4. package/dist/cjs/pm-plugins/drag-and-drop/plugin-factory.js +19 -19
  5. package/dist/cjs/pm-plugins/plugin-factory.js +30 -30
  6. package/dist/cjs/pm-plugins/sticky-headers/plugin-state.js +16 -16
  7. package/dist/cjs/pm-plugins/utils/decoration.js +4 -65
  8. package/dist/cjs/types/index.js +0 -2
  9. package/dist/cjs/ui/common-styles.js +1 -1
  10. package/dist/es2019/pm-plugins/analytics/plugin-factory.js +4 -5
  11. package/dist/es2019/pm-plugins/decorations/utils/column-resizing.js +3 -9
  12. package/dist/es2019/pm-plugins/drag-and-drop/plugin-factory.js +6 -9
  13. package/dist/es2019/pm-plugins/plugin-factory.js +5 -6
  14. package/dist/es2019/pm-plugins/sticky-headers/plugin-state.js +3 -4
  15. package/dist/es2019/pm-plugins/utils/decoration.js +4 -65
  16. package/dist/es2019/types/index.js +0 -2
  17. package/dist/es2019/ui/common-styles.js +0 -4
  18. package/dist/esm/pm-plugins/analytics/plugin-factory.js +4 -5
  19. package/dist/esm/pm-plugins/decorations/utils/column-resizing.js +11 -25
  20. package/dist/esm/pm-plugins/drag-and-drop/plugin-factory.js +19 -20
  21. package/dist/esm/pm-plugins/plugin-factory.js +30 -31
  22. package/dist/esm/pm-plugins/sticky-headers/plugin-state.js +16 -16
  23. package/dist/esm/pm-plugins/utils/decoration.js +4 -65
  24. package/dist/esm/types/index.js +0 -2
  25. package/dist/esm/ui/common-styles.js +1 -1
  26. package/dist/types/pm-plugins/analytics/plugin-factory.d.ts +8 -1
  27. package/dist/types/pm-plugins/drag-and-drop/plugin-factory.d.ts +8 -1
  28. package/dist/types/pm-plugins/plugin-factory.d.ts +7 -1
  29. package/dist/types/pm-plugins/sticky-headers/plugin-state.d.ts +5 -1
  30. package/dist/types/pm-plugins/table-width-in-comment-fix.d.ts +1 -3
  31. package/dist/types/pm-plugins/table-width.d.ts +1 -5
  32. package/dist/types/pm-plugins/utils/decoration.d.ts +1 -1
  33. package/dist/types/pm-plugins/view-mode-sort/index.d.ts +4 -2
  34. package/dist/types/types/index.d.ts +74 -76
  35. package/dist/types/ui/FloatingContextualButton/index.d.ts +1 -2
  36. package/dist/types/ui/FloatingContextualMenu/index.d.ts +1 -6
  37. package/dist/types-ts4.5/pm-plugins/analytics/plugin-factory.d.ts +8 -1
  38. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-factory.d.ts +8 -1
  39. package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +7 -1
  40. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-state.d.ts +5 -1
  41. package/dist/types-ts4.5/pm-plugins/table-width-in-comment-fix.d.ts +1 -3
  42. package/dist/types-ts4.5/pm-plugins/table-width.d.ts +1 -5
  43. package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +1 -4
  44. package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +5 -3
  45. package/dist/types-ts4.5/types/index.d.ts +74 -76
  46. package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +1 -2
  47. package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +1 -6
  48. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 22.2.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0281a1c2161a9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0281a1c2161a9) -
8
+ [ux] cleanup platform_editor_table_remove_last_cell_decoration
9
+ - Updated dependencies
10
+
11
+ ## 22.2.9
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 22.2.8
4
18
 
5
19
  ### Patch Changes
@@ -7,7 +7,7 @@ exports.getPluginState = exports.createPluginState = exports.createCommand = voi
7
7
  var _utils = require("@atlaskit/editor-common/utils");
8
8
  var _pluginKey = require("./plugin-key");
9
9
  var _reducer = require("./reducer");
10
- var _pluginFactory = (0, _utils.pluginFactory)(_pluginKey.pluginKey, _reducer.reducer),
11
- createPluginState = exports.createPluginState = _pluginFactory.createPluginState,
12
- createCommand = exports.createCommand = _pluginFactory.createCommand,
13
- getPluginState = exports.getPluginState = _pluginFactory.getPluginState;
10
+ var dest = (0, _utils.pluginFactory)(_pluginKey.pluginKey, _reducer.reducer);
11
+ var createPluginState = exports.createPluginState = dest.createPluginState;
12
+ var createCommand = exports.createCommand = dest.createCommand;
13
+ var getPluginState = exports.getPluginState = dest.getPluginState;
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.clearColumnResizingDecorations = exports.buildColumnResizingDecorations = void 0;
8
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
7
  var _types = require("../../../types");
10
8
  var _decoration = require("../../utils/decoration");
11
9
  var _composeDecorations = require("./compose-decorations");
12
- var emptyDecorations = [[], []];
13
10
  var updateColumnResizeHandle = function updateColumnResizeHandle(columnResizesDecorations) {
14
11
  return function (_ref) {
15
12
  var decorationSet = _ref.decorationSet,
@@ -17,36 +14,24 @@ var updateColumnResizeHandle = function updateColumnResizeHandle(columnResizesDe
17
14
  return (0, _decoration.updateDecorations)(tr.doc, decorationSet, columnResizesDecorations, _types.TableDecorations.COLUMN_RESIZING_HANDLE_WIDGET);
18
15
  };
19
16
  };
20
- var updateLastCellElement = function updateLastCellElement(lastCellElementsDecorations) {
21
- return function (_ref2) {
22
- var decorationSet = _ref2.decorationSet,
23
- tr = _ref2.tr;
24
- return (0, _decoration.updateDecorations)(tr.doc, decorationSet, lastCellElementsDecorations, _types.TableDecorations.LAST_CELL_ELEMENT);
25
- };
26
- };
27
17
  var buildColumnResizingDecorations = exports.buildColumnResizingDecorations = function buildColumnResizingDecorations(rowEndIndex, columnEndIndex, includeTooltip, getIntl, nodeViewPortalProviderAPI) {
28
- return function (_ref3) {
29
- var tr = _ref3.tr,
30
- decorationSet = _ref3.decorationSet;
31
- var _ref4 = columnEndIndex < 0 ? emptyDecorations : (0, _decoration.createResizeHandleDecoration)(tr, rowEndIndex, {
32
- right: columnEndIndex
33
- }, includeTooltip, getIntl, nodeViewPortalProviderAPI),
34
- _ref5 = (0, _slicedToArray2.default)(_ref4, 2),
35
- columnResizesDecorations = _ref5[0],
36
- lastCellElementsDecorations = _ref5[1];
37
- return (0, _composeDecorations.composeDecorations)([updateColumnResizeHandle(columnResizesDecorations), updateLastCellElement(lastCellElementsDecorations)])({
18
+ return function (_ref2) {
19
+ var tr = _ref2.tr,
20
+ decorationSet = _ref2.decorationSet;
21
+ var columnResizesDecorations = columnEndIndex < 0 ? [] : (0, _decoration.createResizeHandleDecoration)(tr, rowEndIndex, {
22
+ right: columnEndIndex
23
+ }, includeTooltip, getIntl, nodeViewPortalProviderAPI);
24
+ return (0, _composeDecorations.composeDecorations)([updateColumnResizeHandle(columnResizesDecorations)])({
38
25
  decorationSet: decorationSet,
39
26
  tr: tr
40
27
  });
41
28
  };
42
29
  };
43
30
  var clearColumnResizingDecorations = exports.clearColumnResizingDecorations = function clearColumnResizingDecorations() {
44
- return function (_ref6) {
45
- var tr = _ref6.tr,
46
- decorationSet = _ref6.decorationSet;
47
- var columnResizesDecorations = emptyDecorations[0],
48
- lastCellElementsDecorations = emptyDecorations[1];
49
- return (0, _composeDecorations.composeDecorations)([updateColumnResizeHandle(columnResizesDecorations), updateLastCellElement(lastCellElementsDecorations)])({
31
+ return function (_ref3) {
32
+ var tr = _ref3.tr,
33
+ decorationSet = _ref3.decorationSet;
34
+ return (0, _composeDecorations.composeDecorations)([updateColumnResizeHandle([])])({
50
35
  decorationSet: decorationSet,
51
36
  tr: tr
52
37
  });
@@ -12,24 +12,24 @@ var _pluginKey2 = require("./plugin-key");
12
12
  var _reducer = _interopRequireDefault(require("./reducer"));
13
13
  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; }
14
14
  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; }
15
- var _pluginFactory = (0, _utils.pluginFactory)(_pluginKey2.pluginKey, _reducer.default, {
16
- mapping: function mapping(tr, pluginState) {
17
- if (tr.docChanged) {
18
- var decorationSet = pluginState.decorationSet;
19
- var meta = tr.getMeta(_pluginKey.pluginKey);
20
- if (meta && meta.data && meta.data.decorationSet) {
21
- decorationSet = meta.data.decorationSet;
22
- }
23
- if (decorationSet) {
24
- decorationSet = decorationSet.map(tr.mapping, tr.doc);
25
- }
26
- return _objectSpread(_objectSpread({}, pluginState), {
27
- decorationSet: decorationSet
28
- });
15
+ var dest = (0, _utils.pluginFactory)(_pluginKey2.pluginKey, _reducer.default, {
16
+ mapping: function mapping(tr, pluginState) {
17
+ if (tr.docChanged) {
18
+ var decorationSet = pluginState.decorationSet;
19
+ var meta = tr.getMeta(_pluginKey.pluginKey);
20
+ if (meta && meta.data && meta.data.decorationSet) {
21
+ decorationSet = meta.data.decorationSet;
29
22
  }
30
- return pluginState;
23
+ if (decorationSet) {
24
+ decorationSet = decorationSet.map(tr.mapping, tr.doc);
25
+ }
26
+ return _objectSpread(_objectSpread({}, pluginState), {}, {
27
+ decorationSet: decorationSet
28
+ });
31
29
  }
32
- }),
33
- createPluginState = exports.createPluginState = _pluginFactory.createPluginState,
34
- createCommand = exports.createCommand = _pluginFactory.createCommand,
35
- getPluginState = exports.getPluginState = _pluginFactory.getPluginState;
30
+ return pluginState;
31
+ }
32
+ });
33
+ var createPluginState = exports.createPluginState = dest.createPluginState;
34
+ var createCommand = exports.createCommand = dest.createCommand;
35
+ var getPluginState = exports.getPluginState = dest.getPluginState;
@@ -12,34 +12,34 @@ var _pluginKey = require("./plugin-key");
12
12
  var _reducer = _interopRequireDefault(require("./reducer"));
13
13
  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; }
14
14
  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; }
15
- var _pluginFactory = (0, _utils.pluginFactory)(_pluginKey.pluginKey, _reducer.default, {
16
- mapping: function mapping(tr, pluginState) {
17
- if (tr.docChanged) {
18
- var updatedTargetCell = {};
19
- if (pluginState.targetCellPosition) {
20
- var _tr$mapping$mapResult = tr.mapping.mapResult(pluginState.targetCellPosition),
21
- pos = _tr$mapping$mapResult.pos,
22
- deleted = _tr$mapping$mapResult.deleted;
23
- updatedTargetCell = {
24
- targetCellPosition: deleted ? undefined : pos
25
- };
26
- }
27
- var updatedTablePos = {};
28
- if (pluginState.tablePos) {
29
- var _tr$mapping$mapResult2 = tr.mapping.mapResult(pluginState.tablePos, -1),
30
- _pos = _tr$mapping$mapResult2.pos,
31
- _deleted = _tr$mapping$mapResult2.deleted;
32
- updatedTablePos = {
33
- tablePos: _deleted ? undefined : _pos
34
- };
35
- }
36
- return _objectSpread(_objectSpread(_objectSpread({}, pluginState), updatedTargetCell), updatedTablePos);
15
+ var dest = (0, _utils.pluginFactory)(_pluginKey.pluginKey, _reducer.default, {
16
+ mapping: function mapping(tr, pluginState) {
17
+ if (tr.docChanged) {
18
+ var updatedTargetCell = {};
19
+ if (pluginState.targetCellPosition) {
20
+ var _tr$mapping$mapResult = tr.mapping.mapResult(pluginState.targetCellPosition),
21
+ pos = _tr$mapping$mapResult.pos,
22
+ deleted = _tr$mapping$mapResult.deleted;
23
+ updatedTargetCell = {
24
+ targetCellPosition: deleted ? undefined : pos
25
+ };
37
26
  }
38
- return pluginState;
39
- },
40
- onDocChanged: _handlers.handleDocOrSelectionChanged,
41
- onSelectionChanged: _handlers.handleDocOrSelectionChanged
42
- }),
43
- createPluginState = exports.createPluginState = _pluginFactory.createPluginState,
44
- createCommand = exports.createCommand = _pluginFactory.createCommand,
45
- getPluginState = exports.getPluginState = _pluginFactory.getPluginState;
27
+ var updatedTablePos = {};
28
+ if (pluginState.tablePos) {
29
+ var _tr$mapping$mapResult2 = tr.mapping.mapResult(pluginState.tablePos, -1),
30
+ _pos = _tr$mapping$mapResult2.pos,
31
+ _deleted = _tr$mapping$mapResult2.deleted;
32
+ updatedTablePos = {
33
+ tablePos: _deleted ? undefined : _pos
34
+ };
35
+ }
36
+ return _objectSpread(_objectSpread(_objectSpread({}, pluginState), updatedTargetCell), updatedTablePos);
37
+ }
38
+ return pluginState;
39
+ },
40
+ onDocChanged: _handlers.handleDocOrSelectionChanged,
41
+ onSelectionChanged: _handlers.handleDocOrSelectionChanged
42
+ });
43
+ var createPluginState = exports.createPluginState = dest.createPluginState;
44
+ var createCommand = exports.createCommand = dest.createCommand;
45
+ var getPluginState = exports.getPluginState = dest.getPluginState;
@@ -32,20 +32,20 @@ var reducer = function reducer(pluginState, action) {
32
32
  }
33
33
  return pluginState;
34
34
  };
35
- var _pluginFactory = (0, _utils.pluginFactory)(_pluginKey.pluginKey, reducer, {
36
- mapping: function mapping(tr, pluginState) {
37
- if (tr.docChanged) {
38
- return pluginState.map(function (rowInfo) {
39
- var remapped = tr.mapping.mapResult(rowInfo.pos);
40
- return remapped ? _objectSpread(_objectSpread({}, rowInfo), {}, {
41
- pos: remapped.pos
42
- }) : undefined;
43
- }).filter(function (f) {
44
- return f !== undefined;
45
- });
46
- }
47
- return pluginState;
35
+ var dest = (0, _utils.pluginFactory)(_pluginKey.pluginKey, reducer, {
36
+ mapping: function mapping(tr, pluginState) {
37
+ if (tr.docChanged) {
38
+ return pluginState.map(function (rowInfo) {
39
+ var remapped = tr.mapping.mapResult(rowInfo.pos);
40
+ return remapped ? _objectSpread(_objectSpread({}, rowInfo), {}, {
41
+ pos: remapped.pos
42
+ }) : undefined;
43
+ }).filter(function (f) {
44
+ return f !== undefined;
45
+ });
48
46
  }
49
- }),
50
- createPluginState = exports.createPluginState = _pluginFactory.createPluginState,
51
- createCommand = exports.createCommand = _pluginFactory.createCommand;
47
+ return pluginState;
48
+ }
49
+ });
50
+ var createPluginState = exports.createPluginState = dest.createPluginState;
51
+ var createCommand = exports.createCommand = dest.createCommand;
@@ -13,7 +13,6 @@ var _utils = require("@atlaskit/editor-common/utils");
13
13
  var _view = require("@atlaskit/editor-prosemirror/view");
14
14
  var _tableMap = require("@atlaskit/editor-tables/table-map");
15
15
  var _utils2 = require("@atlaskit/editor-tables/utils");
16
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
16
  var _types = require("../../types");
18
17
  var _ColumnResizeWidget = require("../../ui/ColumnResizeWidget");
19
18
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
@@ -209,9 +208,7 @@ var makeArray = function makeArray(n) {
209
208
  * the CellColumnPositioning interface.
210
209
  *
211
210
  * Let's say the `columnEndIndexTarget.right` is 3,
212
- * so this function will return two types of decorations for each cell on that column,
213
- * that means 2 `resizerHandle` and 2 `lastCellElement`,
214
- * here is the explanation for each one of them :
211
+ * so this function will return the resize handle decoration for each cell on that column:
215
212
  *
216
213
  * - resizerHandle:
217
214
  *
@@ -226,45 +223,18 @@ var makeArray = function makeArray(n) {
226
223
  * This ▒ represents the area where table resizing will start,
227
224
  * and you can follow that using checking the class name `ClassName.RESIZE_HANDLE_DECORATION` on the code
228
225
  *
229
- * - lastCellElementDecoration
230
- *
231
- * Given the content of the cell C1
232
- * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
233
- * | |
234
- * | _____________ |
235
- * | | | |
236
- * | | <p> | |
237
- * | |_____________| |
238
- * | |
239
- * | _____________ |
240
- * | | | |
241
- * | | <media> | |
242
- * | |_____________| |
243
- * | |
244
- * | _____________ |
245
- * | | | |
246
- * | | <media> | |
247
- * | |_____________| |
248
- * | |
249
- * ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
250
- * Currently, we are removing the margin-bottom from the last media using this kind of CSS rule:
251
- * `div:last-of-type`; This is quite unstable, and after we create the `resizerHandle` div,
252
- * that logic will apply the margin in the wrong element, to avoid that,
253
- * we will add a new class on the last item for each cell,
254
- * hence the second media will receive this class `ClassName.LAST_ITEM_IN_CELL`
255
226
  */
256
227
  var createResizeHandleDecoration = exports.createResizeHandleDecoration = function createResizeHandleDecoration(tr, rowIndexTarget, columnEndIndexTarget) {
257
228
  var includeTooltip = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
258
229
  var getIntl = arguments.length > 4 ? arguments[4] : undefined;
259
230
  var nodeViewPortalProviderAPI = arguments.length > 5 ? arguments[5] : undefined;
260
- var emptyResult = [[], []];
261
231
  var table = (0, _utils2.findTable)(tr.selection);
262
232
  if (!table || !table.node) {
263
- return emptyResult;
233
+ return [];
264
234
  }
265
235
  var map = _tableMap.TableMap.get(table.node);
266
236
  if (!map.width) {
267
- return emptyResult;
237
+ return [];
268
238
  }
269
239
  var createResizerHandleDecoration = function createResizerHandleDecoration(cellColumnPositioning, columnIndex, rowIndex, cellPos, cellNode) {
270
240
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
@@ -289,33 +259,7 @@ var createResizeHandleDecoration = exports.createResizeHandleDecoration = functi
289
259
  }
290
260
  });
291
261
  };
292
- var createLastCellElementDecoration = function createLastCellElementDecoration(cellColumnPositioning, cellPos, cellNode) {
293
- if ((0, _expValEquals.expValEquals)('platform_editor_table_remove_last_cell_decoration', 'isEnabled', true)) {
294
- // no longer need to add the last cell decoration to override marginBottom as media wrapper doesn't have margin bottom. This will avoid unnecessary decoration computation/mutation and improve performance
295
- // consider clean up ClassName.LAST_ITEM_IN_CELL with platform_editor_table_remove_last_cell_decoration experiment
296
- return null;
297
- }
298
- var lastItemPositions;
299
- cellNode.forEach(function (childNode, offset, index) {
300
- if (index === cellNode.childCount - 1) {
301
- var from = offset + cellPos + 1;
302
- lastItemPositions = {
303
- from: from,
304
- to: from + childNode.nodeSize
305
- };
306
- }
307
- });
308
- if (!lastItemPositions) {
309
- return null;
310
- }
311
- return _view.Decoration.node(lastItemPositions.from, lastItemPositions.to, {
312
- class: _types.TableCssClassName.LAST_ITEM_IN_CELL
313
- }, {
314
- key: "".concat(_types.TableDecorations.LAST_CELL_ELEMENT, "_").concat(cellColumnPositioning.left, "_").concat(cellColumnPositioning.right)
315
- });
316
- };
317
262
  var resizeHandleCellDecorations = [];
318
- var lastCellElementsDecorations = [];
319
263
  for (var rowIndex = 0; rowIndex < map.height; rowIndex++) {
320
264
  var seen = {};
321
265
  if (rowIndex !== rowIndexTarget) {
@@ -342,15 +286,10 @@ var createResizeHandleDecoration = exports.createResizeHandleDecoration = functi
342
286
  left: startIndex,
343
287
  right: endIndex
344
288
  }, columnIndex, rowIndex, cellPos, cell);
345
- var lastCellDec = createLastCellElementDecoration({
346
- left: startIndex,
347
- right: endIndex
348
- }, cellPos, cell);
349
289
  resizeHandleCellDecorations.push(resizerHandleDec);
350
- lastCellElementsDecorations.push(lastCellDec);
351
290
  }
352
291
  }
353
- return [resizeHandleCellDecorations, lastCellElementsDecorations.filter(_utils.nonNullable)];
292
+ return resizeHandleCellDecorations;
354
293
  };
355
294
 
356
295
  /*
@@ -58,7 +58,6 @@ var TableDecorations = exports.TableDecorations = /*#__PURE__*/function (TableDe
58
58
  TableDecorations["COLUMN_RESIZING_HANDLE_LINE"] = "COLUMN_RESIZING_HANDLE_LINE";
59
59
  TableDecorations["COLUMN_INSERT_LINE"] = "COLUMN_INSERT_LINE";
60
60
  TableDecorations["ROW_INSERT_LINE"] = "ROW_INSERT_LINE";
61
- TableDecorations["LAST_CELL_ELEMENT"] = "LAST_CELL_ELEMENT";
62
61
  return TableDecorations;
63
62
  }({});
64
63
  var TableCssClassName = exports.TableCssClassName = _objectSpread(_objectSpread({}, _styles.TableSharedCssClassName), {}, {
@@ -153,7 +152,6 @@ var TableCssClassName = exports.TableCssClassName = _objectSpread(_objectSpread(
153
152
  TABLE_STICKY: "".concat(_adfSchema.tablePrefixSelector, "-sticky"),
154
153
  TABLE_CHROMELESS: "".concat(_adfSchema.tablePrefixSelector, "-chromeless"),
155
154
  TOP_LEFT_CELL: 'table > tbody > tr:nth-child(2) > td:nth-child(1)',
156
- LAST_ITEM_IN_CELL: "".concat(_adfSchema.tablePrefixSelector, "-last-item-in-cell"),
157
155
  WITH_COLUMN_INSERT_LINE: "".concat(_adfSchema.tablePrefixSelector, "-column-insert-line"),
158
156
  WITH_COLUMN_INSERT_LINE_INACTIVE: "".concat(_adfSchema.tablePrefixSelector, "-column-insert-line__inactive"),
159
157
  WITH_FIRST_COLUMN_INSERT_LINE: "".concat(_adfSchema.tablePrefixSelector, "-first-column-insert-line"),