@atlaskit/editor-plugin-table 5.4.6 → 5.4.8

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 (135) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/plugins/table/commands/insert.js +12 -2
  3. package/dist/cjs/plugins/table/commands/misc.js +63 -13
  4. package/dist/cjs/plugins/table/index.js +46 -35
  5. package/dist/cjs/plugins/table/nodeviews/TableComponent.js +14 -20
  6. package/dist/cjs/plugins/table/nodeviews/TableResizer.js +1 -1
  7. package/dist/cjs/plugins/table/nodeviews/table.js +3 -1
  8. package/dist/cjs/plugins/table/pm-plugins/analytics/actions.js +14 -0
  9. package/dist/cjs/plugins/table/pm-plugins/analytics/commands.js +45 -0
  10. package/dist/cjs/plugins/table/pm-plugins/analytics/plugin-factory.js +13 -0
  11. package/dist/cjs/plugins/table/pm-plugins/analytics/plugin-key.js +8 -0
  12. package/dist/cjs/plugins/table/pm-plugins/analytics/plugin.js +74 -0
  13. package/dist/cjs/plugins/table/pm-plugins/analytics/reducer.js +26 -0
  14. package/dist/cjs/plugins/table/pm-plugins/analytics/types.js +13 -0
  15. package/dist/cjs/plugins/table/pm-plugins/analytics/utils/moved-event.js +38 -0
  16. package/dist/cjs/plugins/table/pm-plugins/decorations/plugin.js +9 -3
  17. package/dist/cjs/plugins/table/pm-plugins/decorations/utils/column-controls.js +8 -3
  18. package/dist/cjs/plugins/table/pm-plugins/main.js +1 -1
  19. package/dist/cjs/plugins/table/pm-plugins/table-analytics.js +1 -1
  20. package/dist/cjs/plugins/table/types.js +2 -1
  21. package/dist/cjs/plugins/table/ui/TableFloatingControls/index.js +4 -1
  22. package/dist/cjs/plugins/table/ui/common-styles.js +6 -9
  23. package/dist/cjs/plugins/table/ui/ui-styles.js +12 -16
  24. package/dist/cjs/plugins/table/utils/decoration.js +20 -25
  25. package/dist/es2019/plugins/table/commands/insert.js +12 -3
  26. package/dist/es2019/plugins/table/commands/misc.js +54 -4
  27. package/dist/es2019/plugins/table/index.js +14 -4
  28. package/dist/es2019/plugins/table/nodeviews/TableComponent.js +15 -21
  29. package/dist/es2019/plugins/table/nodeviews/TableResizer.js +1 -1
  30. package/dist/es2019/plugins/table/nodeviews/table.js +3 -1
  31. package/dist/es2019/plugins/table/pm-plugins/analytics/actions.js +8 -0
  32. package/dist/es2019/plugins/table/pm-plugins/analytics/commands.js +33 -0
  33. package/dist/es2019/plugins/table/pm-plugins/analytics/plugin-factory.js +8 -0
  34. package/dist/es2019/plugins/table/pm-plugins/analytics/plugin-key.js +2 -0
  35. package/dist/es2019/plugins/table/pm-plugins/analytics/plugin.js +72 -0
  36. package/dist/es2019/plugins/table/pm-plugins/analytics/reducer.js +21 -0
  37. package/dist/es2019/plugins/table/pm-plugins/analytics/types.js +7 -0
  38. package/dist/es2019/plugins/table/pm-plugins/analytics/utils/moved-event.js +30 -0
  39. package/dist/es2019/plugins/table/pm-plugins/decorations/plugin.js +9 -3
  40. package/dist/es2019/plugins/table/pm-plugins/decorations/utils/column-controls.js +8 -3
  41. package/dist/es2019/plugins/table/pm-plugins/main.js +1 -1
  42. package/dist/es2019/plugins/table/pm-plugins/table-analytics.js +1 -1
  43. package/dist/es2019/plugins/table/types.js +2 -1
  44. package/dist/es2019/plugins/table/ui/TableFloatingControls/index.js +4 -1
  45. package/dist/es2019/plugins/table/ui/common-styles.js +20 -20
  46. package/dist/es2019/plugins/table/ui/ui-styles.js +18 -21
  47. package/dist/es2019/plugins/table/utils/decoration.js +20 -25
  48. package/dist/esm/plugins/table/commands/insert.js +12 -3
  49. package/dist/esm/plugins/table/commands/misc.js +61 -13
  50. package/dist/esm/plugins/table/index.js +43 -32
  51. package/dist/esm/plugins/table/nodeviews/TableComponent.js +15 -21
  52. package/dist/esm/plugins/table/nodeviews/TableResizer.js +1 -1
  53. package/dist/esm/plugins/table/nodeviews/table.js +3 -1
  54. package/dist/esm/plugins/table/pm-plugins/analytics/actions.js +8 -0
  55. package/dist/esm/plugins/table/pm-plugins/analytics/commands.js +39 -0
  56. package/dist/esm/plugins/table/pm-plugins/analytics/plugin-factory.js +8 -0
  57. package/dist/esm/plugins/table/pm-plugins/analytics/plugin-key.js +2 -0
  58. package/dist/esm/plugins/table/pm-plugins/analytics/plugin.js +68 -0
  59. package/dist/esm/plugins/table/pm-plugins/analytics/reducer.js +19 -0
  60. package/dist/esm/plugins/table/pm-plugins/analytics/types.js +7 -0
  61. package/dist/esm/plugins/table/pm-plugins/analytics/utils/moved-event.js +31 -0
  62. package/dist/esm/plugins/table/pm-plugins/decorations/plugin.js +9 -3
  63. package/dist/esm/plugins/table/pm-plugins/decorations/utils/column-controls.js +8 -3
  64. package/dist/esm/plugins/table/pm-plugins/main.js +1 -1
  65. package/dist/esm/plugins/table/pm-plugins/table-analytics.js +1 -1
  66. package/dist/esm/plugins/table/types.js +2 -1
  67. package/dist/esm/plugins/table/ui/TableFloatingControls/index.js +4 -1
  68. package/dist/esm/plugins/table/ui/common-styles.js +6 -9
  69. package/dist/esm/plugins/table/ui/ui-styles.js +12 -16
  70. package/dist/esm/plugins/table/utils/decoration.js +20 -25
  71. package/dist/types/plugins/table/commands/misc.d.ts +5 -1
  72. package/dist/types/plugins/table/nodeviews/TableComponent.d.ts +2 -0
  73. package/dist/types/plugins/table/nodeviews/table.d.ts +2 -1
  74. package/dist/types/plugins/table/nodeviews/types.d.ts +2 -0
  75. package/dist/types/plugins/table/pm-plugins/analytics/actions.d.ts +17 -0
  76. package/dist/types/plugins/table/pm-plugins/analytics/commands.d.ts +5 -0
  77. package/dist/types/plugins/table/pm-plugins/analytics/plugin-factory.d.ts +1 -0
  78. package/dist/types/plugins/table/pm-plugins/analytics/plugin-key.d.ts +3 -0
  79. package/dist/types/plugins/table/pm-plugins/analytics/plugin.d.ts +4 -0
  80. package/dist/types/plugins/table/pm-plugins/analytics/reducer.d.ts +3 -0
  81. package/dist/types/plugins/table/pm-plugins/analytics/types.d.ts +11 -0
  82. package/dist/types/plugins/table/pm-plugins/analytics/utils/moved-event.d.ts +6 -0
  83. package/dist/types/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -2
  84. package/dist/types/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +1 -1
  85. package/dist/types/plugins/table/pm-plugins/decorations/utils/types.d.ts +10 -4
  86. package/dist/types/plugins/table/types.d.ts +2 -1
  87. package/dist/types-ts4.5/plugins/table/commands/misc.d.ts +5 -1
  88. package/dist/types-ts4.5/plugins/table/nodeviews/TableComponent.d.ts +2 -0
  89. package/dist/types-ts4.5/plugins/table/nodeviews/table.d.ts +2 -1
  90. package/dist/types-ts4.5/plugins/table/nodeviews/types.d.ts +2 -0
  91. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/actions.d.ts +17 -0
  92. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/commands.d.ts +5 -0
  93. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/plugin-factory.d.ts +1 -0
  94. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/plugin-key.d.ts +3 -0
  95. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/plugin.d.ts +4 -0
  96. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/reducer.d.ts +3 -0
  97. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/types.d.ts +11 -0
  98. package/dist/types-ts4.5/plugins/table/pm-plugins/analytics/utils/moved-event.d.ts +6 -0
  99. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -2
  100. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +1 -1
  101. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/types.d.ts +10 -4
  102. package/dist/types-ts4.5/plugins/table/types.d.ts +2 -1
  103. package/package.json +4 -1
  104. package/src/__tests__/unit/event-handlers.ts +37 -38
  105. package/src/__tests__/unit/index-with-fake-timers.ts +1 -0
  106. package/src/__tests__/unit/nodeviews/table.ts +1 -0
  107. package/src/__tests__/unit/pm-plugins/analytics.ts +327 -0
  108. package/src/__tests__/unit/pm-plugins/decorations/column-controls.ts +46 -36
  109. package/src/plugins/table/commands/insert.ts +23 -2
  110. package/src/plugins/table/commands/misc.ts +93 -8
  111. package/src/plugins/table/index.tsx +13 -6
  112. package/src/plugins/table/nodeviews/TableComponent.tsx +35 -44
  113. package/src/plugins/table/nodeviews/TableResizer.tsx +1 -2
  114. package/src/plugins/table/nodeviews/table.tsx +4 -0
  115. package/src/plugins/table/nodeviews/types.ts +2 -0
  116. package/src/plugins/table/pm-plugins/analytics/actions.ts +23 -0
  117. package/src/plugins/table/pm-plugins/analytics/commands.ts +53 -0
  118. package/src/plugins/table/pm-plugins/analytics/plugin-factory.ts +7 -0
  119. package/src/plugins/table/pm-plugins/analytics/plugin-key.ts +7 -0
  120. package/src/plugins/table/pm-plugins/analytics/plugin.ts +98 -0
  121. package/src/plugins/table/pm-plugins/analytics/reducer.ts +27 -0
  122. package/src/plugins/table/pm-plugins/analytics/types.ts +20 -0
  123. package/src/plugins/table/pm-plugins/analytics/utils/moved-event.ts +51 -0
  124. package/src/plugins/table/pm-plugins/decorations/plugin.ts +7 -2
  125. package/src/plugins/table/pm-plugins/decorations/utils/column-controls.ts +20 -11
  126. package/src/plugins/table/pm-plugins/decorations/utils/compose-decorations.ts +2 -4
  127. package/src/plugins/table/pm-plugins/decorations/utils/types.ts +14 -7
  128. package/src/plugins/table/pm-plugins/main.ts +1 -0
  129. package/src/plugins/table/pm-plugins/table-analytics.ts +1 -1
  130. package/src/plugins/table/types.ts +2 -1
  131. package/src/plugins/table/ui/TableFloatingControls/index.tsx +73 -67
  132. package/src/plugins/table/ui/common-styles.ts +20 -23
  133. package/src/plugins/table/ui/ui-styles.ts +18 -21
  134. package/src/plugins/table/utils/decoration.ts +27 -32
  135. package/tsconfig.dev.json +3 -0
@@ -158,75 +158,81 @@ export default class TableFloatingControls extends Component<Props, State> {
158
158
  ? stickyHeader.top
159
159
  : undefined;
160
160
 
161
+ const wrapperClassName = isDragAndDropEnabled
162
+ ? ClassName.DRAG_ROW_CONTROLS_WRAPPER
163
+ : ClassName.ROW_CONTROLS_WRAPPER;
164
+
161
165
  return (
162
- <div onMouseDown={(e) => !isDragAndDropEnabled && e.preventDefault()}>
163
- {isNumberColumnEnabled ? (
164
- <NumberColumn
165
- editorView={editorView}
166
- hoverRows={this.hoverRows}
167
- tableRef={tableRef}
168
- tableActive={tableActive}
169
- hoveredRows={hoveredRows}
170
- hasHeaderRow={hasHeaderRow}
171
- isInDanger={isInDanger}
172
- isResizing={isResizing}
173
- selectRow={this.selectRow}
174
- updateCellHoverLocation={this.updateCellHoverLocation}
175
- stickyTop={stickyTop}
176
- isDragAndDropEnabled={isDragAndDropEnabled}
177
- />
178
- ) : null}
166
+ <div className={wrapperClassName}>
167
+ <div onMouseDown={(e) => !isDragAndDropEnabled && e.preventDefault()}>
168
+ {isNumberColumnEnabled ? (
169
+ <NumberColumn
170
+ editorView={editorView}
171
+ hoverRows={this.hoverRows}
172
+ tableRef={tableRef}
173
+ tableActive={tableActive}
174
+ hoveredRows={hoveredRows}
175
+ hasHeaderRow={hasHeaderRow}
176
+ isInDanger={isInDanger}
177
+ isResizing={isResizing}
178
+ selectRow={this.selectRow}
179
+ updateCellHoverLocation={this.updateCellHoverLocation}
180
+ stickyTop={stickyTop}
181
+ isDragAndDropEnabled={isDragAndDropEnabled}
182
+ />
183
+ ) : null}
179
184
 
180
- {tableActive && (
181
- <>
182
- {isDragAndDropEnabled ? (
183
- <>
184
- <DragCornerControls
185
- editorView={editorView}
186
- tableRef={tableRef}
187
- isInDanger={isInDanger}
188
- isResizing={isResizing}
189
- />
190
- <DragControls
191
- tableRef={tableRef}
192
- tableNode={tableNode}
193
- hoveredCell={hoveredCell}
194
- editorView={editorView}
195
- tableActive={tableActive}
196
- isInDanger={isInDanger}
197
- isResizing={isResizing}
198
- tableWidth={this.state.tableWrapperWidth}
199
- hoverRows={this.hoverRows}
200
- selectRow={this.selectRow}
201
- updateCellHoverLocation={this.updateCellHoverLocation}
202
- />
203
- </>
204
- ) : (
205
- <>
206
- <CornerControls
207
- editorView={editorView}
208
- tableRef={tableRef}
209
- isInDanger={isInDanger}
210
- isResizing={isResizing}
211
- isHeaderRowEnabled={isHeaderRowEnabled}
212
- isHeaderColumnEnabled={isHeaderColumnEnabled}
213
- hoveredRows={hoveredRows}
214
- stickyTop={tableActive ? stickyTop : undefined}
215
- />
216
- <RowControls
217
- editorView={editorView}
218
- tableRef={tableRef}
219
- hoverRows={this.hoverRows}
220
- hoveredRows={hoveredRows}
221
- isInDanger={isInDanger}
222
- isResizing={isResizing}
223
- selectRow={this.selectRow}
224
- stickyTop={tableActive ? stickyTop : undefined}
225
- />
226
- </>
227
- )}
228
- </>
229
- )}
185
+ {tableActive && (
186
+ <>
187
+ {isDragAndDropEnabled ? (
188
+ <>
189
+ <DragCornerControls
190
+ editorView={editorView}
191
+ tableRef={tableRef}
192
+ isInDanger={isInDanger}
193
+ isResizing={isResizing}
194
+ />
195
+ <DragControls
196
+ tableRef={tableRef}
197
+ tableNode={tableNode}
198
+ hoveredCell={hoveredCell}
199
+ editorView={editorView}
200
+ tableActive={tableActive}
201
+ isInDanger={isInDanger}
202
+ isResizing={isResizing}
203
+ tableWidth={this.state.tableWrapperWidth}
204
+ hoverRows={this.hoverRows}
205
+ selectRow={this.selectRow}
206
+ updateCellHoverLocation={this.updateCellHoverLocation}
207
+ />
208
+ </>
209
+ ) : (
210
+ <>
211
+ <CornerControls
212
+ editorView={editorView}
213
+ tableRef={tableRef}
214
+ isInDanger={isInDanger}
215
+ isResizing={isResizing}
216
+ isHeaderRowEnabled={isHeaderRowEnabled}
217
+ isHeaderColumnEnabled={isHeaderColumnEnabled}
218
+ hoveredRows={hoveredRows}
219
+ stickyTop={tableActive ? stickyTop : undefined}
220
+ />
221
+ <RowControls
222
+ editorView={editorView}
223
+ tableRef={tableRef}
224
+ hoverRows={this.hoverRows}
225
+ hoveredRows={hoveredRows}
226
+ isInDanger={isInDanger}
227
+ isResizing={isResizing}
228
+ selectRow={this.selectRow}
229
+ stickyTop={tableActive ? stickyTop : undefined}
230
+ />
231
+ </>
232
+ )}
233
+ </>
234
+ )}
235
+ </div>
230
236
  </div>
231
237
  );
232
238
  }
@@ -265,26 +265,6 @@ const tableStickyHeaderFirefoxFixStyle = (
265
265
  }
266
266
  };
267
267
 
268
- const tableRowControlStyles = () => {
269
- return getBooleanFF('platform.editor.table.drag-and-drop')
270
- ? css`
271
- .${ClassName.ROW_CONTROLS_WRAPPER} {
272
- position: absolute;
273
- margin-top: ${tableMarginTop}px;
274
- left: -${tableToolbarSize + 1}px;
275
- z-index: ${rowControlsZIndex + 4};
276
- }
277
- `
278
- : css`
279
- .${ClassName.ROW_CONTROLS_WRAPPER} {
280
- position: absolute;
281
- /* top of corner control is table margin top - corner control height + 1 pixel of table border. */
282
- top: ${tableMarginTop - cornerControlHeight + 1}px;
283
- left: -${tableToolbarSize}px;
284
- }
285
- `;
286
- };
287
-
288
268
  const tableWrapperStyles = () => {
289
269
  if (getBooleanFF('platform.editor.custom-table-width')) {
290
270
  return css`
@@ -558,7 +538,8 @@ export const tableStyles = (
558
538
  .less-padding {
559
539
  padding: 0 ${tablePadding}px;
560
540
 
561
- .${ClassName.ROW_CONTROLS_WRAPPER} {
541
+ .${ClassName.DRAG_ROW_CONTROLS_WRAPPER},
542
+ .${ClassName.ROW_CONTROLS_WRAPPER} {
562
543
  padding: 0 ${tablePadding}px;
563
544
 
564
545
  // https://product-fabric.atlassian.net/browse/ED-16386
@@ -1056,8 +1037,24 @@ export const tableStyles = (
1056
1037
  }
1057
1038
  }
1058
1039
  }
1059
- ${tableRowControlStyles()}
1060
- .${ClassName.ROW_CONTROLS_WRAPPER}.${ClassName.TABLE_LEFT_SHADOW} {
1040
+
1041
+ // override for DnD controls
1042
+ .${ClassName.DRAG_ROW_CONTROLS_WRAPPER} {
1043
+ position: absolute;
1044
+ margin-top: ${tableMarginTop}px;
1045
+ left: -${tableToolbarSize + 1}px;
1046
+ z-index: ${rowControlsZIndex + 4};
1047
+ }
1048
+
1049
+ .${ClassName.ROW_CONTROLS_WRAPPER} {
1050
+ position: absolute;
1051
+ /* top of corner control is table margin top - corner control height + 1 pixel of table border. */
1052
+ top: ${tableMarginTop - cornerControlHeight + 1}px;
1053
+ left: -${tableToolbarSize}px;
1054
+ }
1055
+
1056
+ .${ClassName.DRAG_ROW_CONTROLS_WRAPPER}.${ClassName.TABLE_LEFT_SHADOW},
1057
+ .${ClassName.ROW_CONTROLS_WRAPPER}.${ClassName.TABLE_LEFT_SHADOW} {
1061
1058
  z-index: ${akEditorUnitZIndex};
1062
1059
  }
1063
1060
 
@@ -500,27 +500,24 @@ export const floatingColumnControls = (props: ThemeProps) => {
500
500
  };
501
501
 
502
502
  export const rowControlsWrapperDotStyle = (props: ThemeProps) => {
503
- if (getBooleanFF('platform.editor.table.drag-and-drop')) {
504
- return css`
505
- div.${ClassName.WITH_CONTROLS}>.${ClassName.ROW_CONTROLS_WRAPPER}::after {
506
- display: none;
507
- }
508
- `;
509
- } else {
510
- return css`
511
- div.${ClassName.WITH_CONTROLS}>.${ClassName.ROW_CONTROLS_WRAPPER}::after {
512
- content: ' ';
513
- background-color: ${tableBorderColor(props)};
514
- position: absolute;
515
- height: ${lineMarkerSize}px;
516
- width: ${lineMarkerSize}px;
517
- border-radius: 50%;
518
- pointer-events: none;
519
- top: -${tableToolbarSize + tableCellBorderWidth}px;
520
- right: -1px;
521
- }
522
- `;
523
- }
503
+ return css`
504
+ // override for DnD controls
505
+ div.${ClassName.WITH_CONTROLS}>.${ClassName.DRAG_ROW_CONTROLS_WRAPPER}::after {
506
+ display: none;
507
+ }
508
+
509
+ div.${ClassName.WITH_CONTROLS}>.${ClassName.ROW_CONTROLS_WRAPPER}::after {
510
+ content: ' ';
511
+ background-color: ${tableBorderColor(props)};
512
+ position: absolute;
513
+ height: ${lineMarkerSize}px;
514
+ width: ${lineMarkerSize}px;
515
+ border-radius: 50%;
516
+ pointer-events: none;
517
+ top: -${tableToolbarSize + tableCellBorderWidth}px;
518
+ right: -1px;
519
+ }
520
+ `;
524
521
  };
525
522
 
526
523
  export const columnControlsDecoration = (props: ThemeProps) => {
@@ -22,7 +22,6 @@ import {
22
22
  getCellsInRow,
23
23
  getSelectionRect,
24
24
  } from '@atlaskit/editor-tables/utils';
25
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
26
25
 
27
26
  import type { Cell, CellColumnPositioning } from '../types';
28
27
  import { TableCssClassName as ClassName, TableDecorations } from '../types';
@@ -219,37 +218,33 @@ export const createColumnControlsDecoration = (
219
218
  ): Decoration[] => {
220
219
  const cells: ContentNodeWithPos[] = getCellsInRow(0)(selection) || [];
221
220
 
222
- if (getBooleanFF('platform.editor.table.drag-and-drop')) {
223
- return [];
224
- } else {
225
- let index = 0;
226
- return cells.map((cell) => {
227
- const colspan = (cell.node.attrs as CellAttributes).colspan || 1;
228
- // It's important these values are scoped locally as the widget callback could be executed anytime in the future
229
- // and we want to avoid value leak
230
- const startIndex = index;
231
- const endIndex = startIndex + colspan;
232
-
233
- // The next cell start index will commence from the current cell end index.
234
- index = endIndex;
235
-
236
- return Decoration.widget(
237
- cell.pos + 1,
238
- () => {
239
- const element = document.createElement('div');
240
- element.classList.add(ClassName.COLUMN_CONTROLS_DECORATIONS);
241
- element.dataset.startIndex = `${startIndex}`;
242
- element.dataset.endIndex = `${endIndex}`;
243
- return element;
244
- },
245
- {
246
- key: `${TableDecorations.COLUMN_CONTROLS_DECORATIONS}_${endIndex}`,
247
- // this decoration should be the first one, even before gap cursor.
248
- side: -100,
249
- },
250
- );
251
- });
252
- }
221
+ let index = 0;
222
+ return cells.map((cell) => {
223
+ const colspan = (cell.node.attrs as CellAttributes).colspan || 1;
224
+ // It's important these values are scoped locally as the widget callback could be executed anytime in the future
225
+ // and we want to avoid value leak
226
+ const startIndex = index;
227
+ const endIndex = startIndex + colspan;
228
+
229
+ // The next cell start index will commence from the current cell end index.
230
+ index = endIndex;
231
+
232
+ return Decoration.widget(
233
+ cell.pos + 1,
234
+ () => {
235
+ const element = document.createElement('div');
236
+ element.classList.add(ClassName.COLUMN_CONTROLS_DECORATIONS);
237
+ element.dataset.startIndex = `${startIndex}`;
238
+ element.dataset.endIndex = `${endIndex}`;
239
+ return element;
240
+ },
241
+ {
242
+ key: `${TableDecorations.COLUMN_CONTROLS_DECORATIONS}_${endIndex}`,
243
+ // this decoration should be the first one, even before gap cursor.
244
+ side: -100,
245
+ },
246
+ );
247
+ });
253
248
  };
254
249
 
255
250
  export const updateDecorations = (
package/tsconfig.dev.json CHANGED
@@ -96,6 +96,9 @@
96
96
  {
97
97
  "path": "../../media/media-integration-test-helpers/tsconfig.app.json"
98
98
  },
99
+ {
100
+ "path": "../../platform/feature-flags/tsconfig.app.json"
101
+ },
99
102
  {
100
103
  "path": "../synchrony-test-helpers/tsconfig.app.json"
101
104
  },