@atlaskit/editor-plugin-table 7.19.5 → 7.19.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/commands/misc.js +14 -12
  3. package/dist/cjs/commands-with-analytics.js +2 -2
  4. package/dist/cjs/plugin.js +1 -2
  5. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +1 -1
  6. package/dist/cjs/toolbar.js +1 -1
  7. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +15 -18
  8. package/dist/cjs/ui/FloatingContextualMenu/styles.js +1 -1
  9. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +4 -6
  10. package/dist/cjs/ui/FloatingDragMenu/styles.js +2 -2
  11. package/dist/cjs/ui/common-styles.js +2 -2
  12. package/dist/cjs/ui/ui-styles.js +1 -1
  13. package/dist/es2019/commands/misc.js +4 -1
  14. package/dist/es2019/commands-with-analytics.js +2 -2
  15. package/dist/es2019/plugin.js +31 -34
  16. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +2 -2
  17. package/dist/es2019/toolbar.js +1 -1
  18. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +14 -18
  19. package/dist/es2019/ui/FloatingContextualMenu/styles.js +1 -1
  20. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +3 -6
  21. package/dist/es2019/ui/FloatingDragMenu/styles.js +2 -2
  22. package/dist/es2019/ui/common-styles.js +2 -2
  23. package/dist/es2019/ui/ui-styles.js +1 -1
  24. package/dist/esm/commands/misc.js +14 -12
  25. package/dist/esm/commands-with-analytics.js +2 -2
  26. package/dist/esm/plugin.js +1 -2
  27. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +2 -2
  28. package/dist/esm/toolbar.js +1 -1
  29. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +16 -19
  30. package/dist/esm/ui/FloatingContextualMenu/styles.js +1 -1
  31. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +5 -7
  32. package/dist/esm/ui/FloatingDragMenu/styles.js +2 -2
  33. package/dist/esm/ui/common-styles.js +2 -2
  34. package/dist/esm/ui/ui-styles.js +1 -1
  35. package/dist/types/commands/misc.d.ts +1 -1
  36. package/dist/types/commands-with-analytics.d.ts +1 -1
  37. package/dist/types-ts4.5/commands/misc.d.ts +1 -1
  38. package/dist/types-ts4.5/commands-with-analytics.d.ts +1 -1
  39. package/package.json +6 -6
  40. package/src/commands/misc.ts +2 -1
  41. package/src/commands-with-analytics.ts +1 -4
  42. package/src/plugin.tsx +1 -3
  43. package/src/pm-plugins/drag-and-drop/plugin.ts +2 -2
  44. package/src/toolbar.tsx +1 -2
  45. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +17 -24
  46. package/src/ui/FloatingContextualMenu/styles.ts +1 -1
  47. package/src/ui/FloatingDragMenu/DragMenu.tsx +3 -8
  48. package/src/ui/FloatingDragMenu/styles.ts +2 -2
  49. package/src/ui/common-styles.ts +2 -2
  50. package/src/ui/ui-styles.ts +1 -1
@@ -19,7 +19,7 @@ import { splitCell } from '@atlaskit/editor-tables/utils';
19
19
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
20
20
  import EditorBackgroundColorIcon from '@atlaskit/icon/glyph/editor/background-color';
21
21
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
22
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
22
+ import { fg } from '@atlaskit/platform-feature-flags';
23
23
  import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../commands';
24
24
  import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, mergeCellsWithAnalytics, setColorWithAnalytics, sortColumnWithAnalytics, splitCellWithAnalytics } from '../../commands-with-analytics';
25
25
  import { getPluginState } from '../../pm-plugins/plugin-factory';
@@ -77,7 +77,7 @@ export class ContextualMenu extends Component {
77
77
  const background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
78
78
  let selectedRowIndex;
79
79
  let selectedColumnIndex;
80
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c')) {
80
+ if (fg('platform.editor.a11y-table-context-menu_y4c9c')) {
81
81
  const selectedRowAndColumnFromPalette = getSelectedRowAndColumnFromPalette(cellBackgroundColorPalette, background, colorPalletteColumns);
82
82
  selectedRowIndex = selectedRowAndColumnFromPalette.selectedRowIndex;
83
83
  selectedColumnIndex = selectedRowAndColumnFromPalette.selectedColumnIndex;
@@ -105,7 +105,7 @@ export class ContextualMenu extends Component {
105
105
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
106
106
  ,
107
107
  className: isDragAndDropEnabled ? ClassName.CONTEXTUAL_MENU_ICON_SMALL : ClassName.CONTEXTUAL_MENU_ICON
108
- }), getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') ? isSubmenuOpen && jsx("div", {
108
+ }), fg('platform.editor.a11y-table-context-menu_y4c9c') ? isSubmenuOpen && jsx("div", {
109
109
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
110
110
  className: ClassName.CONTEXTUAL_SUBMENU,
111
111
  ref: this.handleSubMenuRef
@@ -150,7 +150,7 @@ export class ContextualMenu extends Component {
150
150
  hexToPaletteColor: hexToEditorBackgroundPaletteColor
151
151
  }
152
152
  }))),
153
- 'aria-expanded': getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') ? isSubmenuOpen : undefined
153
+ 'aria-expanded': fg('platform.editor.a11y-table-context-menu_y4c9c') ? isSubmenuOpen : undefined
154
154
  };
155
155
  }
156
156
  });
@@ -500,7 +500,7 @@ export class ContextualMenu extends Component {
500
500
  } = getEditorFeatureFlags ? getEditorFeatureFlags() : {};
501
501
  // context menu opened by keyboard and any item except 'background' activated
502
502
  // or color has been chosen from color palette
503
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') && isCellMenuOpenByKeyboard && (item.value.name !== 'background' || item.value.name === 'background' && this.state.isSubmenuOpen)) {
503
+ if (isCellMenuOpenByKeyboard && (item.value.name !== 'background' || item.value.name === 'background' && this.state.isSubmenuOpen) && fg('platform.editor.a11y-table-context-menu_y4c9c')) {
504
504
  const {
505
505
  tr
506
506
  } = state;
@@ -513,7 +513,7 @@ export class ContextualMenu extends Component {
513
513
  dispatch(tr);
514
514
  editorView.dom.focus(); // otherwise cursor disappears from cell
515
515
  }
516
- const shouldUseIncreasedScalingPercent = isTableScalingEnabled && tableWithFixedColumnWidthsOption && getBooleanFF('platform.editor.table.use-increased-scaling-percent');
516
+ const shouldUseIncreasedScalingPercent = isTableScalingEnabled && tableWithFixedColumnWidthsOption && fg('platform.editor.table.use-increased-scaling-percent');
517
517
  switch (item.value.name) {
518
518
  case 'sort_column_desc':
519
519
  sortColumnWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, selectionRect.left, SortOrder.DESC)(state, dispatch);
@@ -572,7 +572,7 @@ export class ContextualMenu extends Component {
572
572
  // 1st time when user chooses the background color item.
573
573
  // 2nd when color has been chosen from color palette.
574
574
  // here we are handling the 1st call relying on the isSubmenuOpen state value
575
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') && isCellMenuOpenByKeyboard && !this.state.isSubmenuOpen) {
575
+ if (isCellMenuOpenByKeyboard && !this.state.isSubmenuOpen && fg('platform.editor.a11y-table-context-menu_y4c9c')) {
576
576
  this.setState({
577
577
  isSubmenuOpen: true
578
578
  });
@@ -605,7 +605,7 @@ export class ContextualMenu extends Component {
605
605
  },
606
606
  isCellMenuOpenByKeyboard
607
607
  } = this.props;
608
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c')) {
608
+ if (fg('platform.editor.a11y-table-context-menu_y4c9c')) {
609
609
  if (payload) {
610
610
  const {
611
611
  event
@@ -695,20 +695,16 @@ export class ContextualMenu extends Component {
695
695
  editorView,
696
696
  editorAnalyticsAPI
697
697
  } = this.props;
698
- // TargetCellPosition could be outdated: https://product-fabric.atlassian.net/browse/ED-8129
699
- const {
700
- targetCellPosition
701
- } = getPluginState(editorView.state);
702
698
  const {
703
699
  state,
704
700
  dispatch
705
701
  } = editorView;
706
- setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color, targetCellPosition)(state, dispatch);
702
+ setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color)(state, dispatch);
707
703
  this.toggleOpen();
708
704
  });
709
705
  }
710
706
  componentDidMount() {
711
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c')) {
707
+ if (fg('platform.editor.a11y-table-context-menu_y4c9c')) {
712
708
  // ArrowKeyNavigationProvider in DropdownMenu expects that menu handle will stay focused
713
709
  // until user pressed ArrowDown.
714
710
  // Behavior above fails the A11Y requirement about first item in menu should be focused immediately.
@@ -738,7 +734,7 @@ export class ContextualMenu extends Component {
738
734
  } = getPluginState(editorView.state);
739
735
  const items = isDragAndDropEnabled ? this.createNewContextMenuItems() : this.createOriginalContextMenuItems();
740
736
  let isOpenAllowed = false;
741
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c')) {
737
+ if (fg('platform.editor.a11y-table-context-menu_y4c9c')) {
742
738
  isOpenAllowed = isCellMenuOpenByKeyboard ? this.state.isOpenAllowed : isOpen;
743
739
  } else {
744
740
  isOpenAllowed = isOpen;
@@ -754,7 +750,7 @@ export class ContextualMenu extends Component {
754
750
  ,
755
751
  arrowKeyNavigationProviderOptions: {
756
752
  type: ArrowKeyNavigationType.MENU,
757
- disableArrowKeyNavigation: getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') && isCellMenuOpenByKeyboard && !this.state.isSubmenuOpen ? false : true
753
+ disableArrowKeyNavigation: isCellMenuOpenByKeyboard && !this.state.isSubmenuOpen && fg('platform.editor.a11y-table-context-menu_y4c9c') ? false : true
758
754
  },
759
755
  items: items,
760
756
  isOpen: isOpenAllowed,
@@ -764,7 +760,7 @@ export class ContextualMenu extends Component {
764
760
  onMouseLeave: this.handleItemMouseLeave,
765
761
  fitHeight: 188,
766
762
  fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth,
767
- shouldFocusFirstItem: getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') ? () => {
763
+ shouldFocusFirstItem: fg('platform.editor.a11y-table-context-menu_y4c9c') ? () => {
768
764
  return Boolean(isCellMenuOpenByKeyboard);
769
765
  } : undefined,
770
766
  boundariesElement: boundariesElement,
@@ -772,7 +768,7 @@ export class ContextualMenu extends Component {
772
768
  section: isDragAndDropEnabled ? {
773
769
  hasSeparator: true
774
770
  } : undefined,
775
- isAllowEnterDefaultBehavior: getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') ? this.state.isSubmenuOpen : false
771
+ isAllowEnterDefaultBehavior: fg('platform.editor.a11y-table-context-menu_y4c9c') ? this.state.isSubmenuOpen : false
776
772
  }));
777
773
  }
778
774
  }
@@ -11,7 +11,7 @@ export const cellColourPreviewStyles = selectedColor => css({
11
11
  }
12
12
  });
13
13
 
14
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
15
15
  export const elementBeforeIconStyles = css({
16
16
  marginRight: "var(--ds-space-negative-075, -6px)",
17
17
  display: 'flex'
@@ -18,7 +18,7 @@ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
18
18
  import { TableMap } from '@atlaskit/editor-tables/table-map';
19
19
  import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
20
20
  import EditorBackgroundColorIcon from '@atlaskit/icon/glyph/editor/background-color';
21
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
21
+ import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Toggle from '@atlaskit/toggle';
23
23
  import { clearHoverSelection, hoverColumns, hoverRows } from '../../commands';
24
24
  import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../commands-with-analytics';
@@ -209,7 +209,7 @@ export const DragMenu = /*#__PURE__*/React.memo(({
209
209
  const selectionRect = isSelectionType(selection, 'cell') ? getSelectionRect(selection) : findCellRectClosestToPos(selection.$from);
210
210
  let shouldMoveDisabled;
211
211
  let hasMergedCellsInTable;
212
- if (getBooleanFF('platform.editor.table.drag-move-options-logic-update_fp7xw')) {
212
+ if (fg('platform.editor.table.drag-move-options-logic-update_fp7xw')) {
213
213
  var _tableMap$hasMergedCe;
214
214
  shouldMoveDisabled = false;
215
215
  hasMergedCellsInTable = (_tableMap$hasMergedCe = tableMap === null || tableMap === void 0 ? void 0 : tableMap.hasMergedCells()) !== null && _tableMap$hasMergedCe !== void 0 ? _tableMap$hasMergedCe : false;
@@ -236,14 +236,11 @@ export const DragMenu = /*#__PURE__*/React.memo(({
236
236
  }
237
237
  };
238
238
  const setColor = color => {
239
- const {
240
- targetCellPosition
241
- } = getTablePluginState(editorView.state);
242
239
  const {
243
240
  state,
244
241
  dispatch
245
242
  } = editorView;
246
- setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color, targetCellPosition)(state, dispatch);
243
+ setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color)(state, dispatch);
247
244
  closeMenu();
248
245
  setIsSubmenuOpen(false);
249
246
  };
@@ -11,7 +11,7 @@ export const cellColourPreviewStyles = selectedColor => css({
11
11
  }
12
12
  });
13
13
 
14
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
15
15
  export const elementBeforeIconStyles = css({
16
16
  marginRight: "var(--ds-space-negative-075, -6px)",
17
17
  display: 'flex'
@@ -55,7 +55,7 @@ export const dragMenuBackgroundColorStyles = (tableSortColumnReorder = false) =>
55
55
  }
56
56
  `;
57
57
 
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
59
59
  export const toggleStyles = css({
60
60
  display: 'flex',
61
61
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -1002,7 +1002,7 @@ export const tableStyles = props => css`
1002
1002
  ${shadowSentinelStyles}
1003
1003
  `;
1004
1004
 
1005
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
1005
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
1006
1006
  export const tableFullPageEditorStyles = css`
1007
1007
  .ProseMirror .${ClassName.TABLE_NODE_WRAPPER} > table {
1008
1008
  margin-left: 0;
@@ -1012,7 +1012,7 @@ export const tableFullPageEditorStyles = css`
1012
1012
  }
1013
1013
  `;
1014
1014
 
1015
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
1015
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
1016
1016
  export const tableCommentEditorStyles = css`
1017
1017
  .ProseMirror .${ClassName.TABLE_NODE_WRAPPER} > table {
1018
1018
  margin-left: 0;
@@ -565,7 +565,7 @@ export const hoveredCell = () => css`
565
565
  }
566
566
  `;
567
567
 
568
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
568
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
569
569
  export const hoveredWarningCell = css`
570
570
  :not(.${ClassName.IS_RESIZING})
571
571
  .${ClassName.TABLE_CONTAINER}:not(.${ClassName.HOVERED_DELETE_BUTTON}) {
@@ -302,10 +302,12 @@ export var moveCursorBackward = function moveCursorBackward(state, dispatch) {
302
302
  }
303
303
  return true;
304
304
  };
305
- export var setMultipleCellAttrs = function setMultipleCellAttrs(attrs, targetCellPosition, editorView) {
305
+ export var setMultipleCellAttrs = function setMultipleCellAttrs(attrs, editorView) {
306
306
  return function (state, dispatch) {
307
307
  var cursorPos;
308
308
  var tr = state.tr;
309
+ var _getPluginState2 = getPluginState(state),
310
+ targetCellPosition = _getPluginState2.targetCellPosition;
309
311
  if (isSelectionType(tr.selection, 'cell')) {
310
312
  var selection = tr.selection;
311
313
  selection.forEachCell(function (_cell, pos) {
@@ -463,9 +465,9 @@ export var hideInsertColumnOrRowButton = function hideInsertColumnOrRowButton()
463
465
  export var addResizeHandleDecorations = function addResizeHandleDecorations(rowIndex, columnIndex, includeTooltip, isKeyboardResize) {
464
466
  return createCommand(function (state) {
465
467
  var tableNode = findTable(state.selection);
466
- var _getPluginState2 = getPluginState(state),
467
- allowColumnResizing = _getPluginState2.pluginConfig.allowColumnResizing,
468
- getIntl = _getPluginState2.getIntl;
468
+ var _getPluginState3 = getPluginState(state),
469
+ allowColumnResizing = _getPluginState3.pluginConfig.allowColumnResizing,
470
+ getIntl = _getPluginState3.getIntl;
469
471
  if (!tableNode || !allowColumnResizing) {
470
472
  return false;
471
473
  }
@@ -489,12 +491,12 @@ export var addResizeHandleDecorations = function addResizeHandleDecorations(rowI
489
491
  export var updateResizeHandleDecorations = function updateResizeHandleDecorations(rowIndex, columnIndex, includeTooltip) {
490
492
  return createCommand(function (state) {
491
493
  var tableNode = findTable(state.selection);
492
- var _getPluginState3 = getPluginState(state),
493
- resizeHandleRowIndex = _getPluginState3.resizeHandleRowIndex,
494
- resizeHandleColumnIndex = _getPluginState3.resizeHandleColumnIndex,
495
- resizeHandleIncludeTooltip = _getPluginState3.resizeHandleIncludeTooltip,
496
- allowColumnResizing = _getPluginState3.pluginConfig.allowColumnResizing,
497
- getIntl = _getPluginState3.getIntl;
494
+ var _getPluginState4 = getPluginState(state),
495
+ resizeHandleRowIndex = _getPluginState4.resizeHandleRowIndex,
496
+ resizeHandleColumnIndex = _getPluginState4.resizeHandleColumnIndex,
497
+ resizeHandleIncludeTooltip = _getPluginState4.resizeHandleIncludeTooltip,
498
+ allowColumnResizing = _getPluginState4.pluginConfig.allowColumnResizing,
499
+ getIntl = _getPluginState4.getIntl;
498
500
  if (!tableNode || !allowColumnResizing) {
499
501
  return false;
500
502
  }
@@ -568,8 +570,8 @@ export var addBoldInEmptyHeaderCells = function addBoldInEmptyHeaderCells(tableC
568
570
  };
569
571
  export var updateWidthToWidest = function updateWidthToWidest(widthToWidest) {
570
572
  return createCommand(function (state) {
571
- var _getPluginState4 = getPluginState(state),
572
- prevWidthToWidest = _getPluginState4.widthToWidest;
573
+ var _getPluginState5 = getPluginState(state),
574
+ prevWidthToWidest = _getPluginState5.widthToWidest;
573
575
  if (isEqual(widthToWidest, prevWidthToWidest)) {
574
576
  return false;
575
577
  }
@@ -118,7 +118,7 @@ export var splitCellWithAnalytics = function splitCellWithAnalytics(editorAnalyt
118
118
  };
119
119
  };
120
120
  export var setColorWithAnalytics = function setColorWithAnalytics(editorAnalyticsAPI) {
121
- return function (inputMethod, cellColor, targetCellPosition, editorView) {
121
+ return function (inputMethod, cellColor, editorView) {
122
122
  return withEditorAnalyticsAPI(function (_ref4) {
123
123
  var selection = _ref4.selection;
124
124
  var _getSelectedCellInfo4 = getSelectedCellInfo(selection),
@@ -144,7 +144,7 @@ export var setColorWithAnalytics = function setColorWithAnalytics(editorAnalytic
144
144
  };
145
145
  })(editorAnalyticsAPI)(setMultipleCellAttrs({
146
146
  background: cellColor
147
- }, targetCellPosition, editorView));
147
+ }, editorView));
148
148
  };
149
149
  };
150
150
  export var addRowAroundSelection = function addRowAroundSelection(editorAnalyticsAPI) {
@@ -435,14 +435,13 @@ var tablesPlugin = function tablesPlugin(_ref) {
435
435
  },
436
436
  pluginsOptions: {
437
437
  quickInsert: function quickInsert(_ref19) {
438
- var _options$getEditorFea3;
439
438
  var formatMessage = _ref19.formatMessage;
440
439
  return [{
441
440
  id: 'table',
442
441
  title: formatMessage(messages.table),
443
442
  description: formatMessage(messages.tableDescription),
444
443
  keywords: ['cell', 'table'],
445
- priority: options !== null && options !== void 0 && (_options$getEditorFea3 = options.getEditorFeatureFlags) !== null && _options$getEditorFea3 !== void 0 && _options$getEditorFea3.call(options).platformEditorTypeaheadImprovedRelevancy ? 800 : 600,
444
+ priority: 600,
446
445
  keyshortcut: tooltip(toggleTable),
447
446
  icon: function icon() {
448
447
  return /*#__PURE__*/React.createElement(IconTable, null);
@@ -3,7 +3,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
5
  import { getCellsInRow, getSelectedCellInfo } from '@atlaskit/editor-tables/utils';
6
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
8
8
  import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
9
9
  import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
@@ -159,7 +159,7 @@ var destroyFn = function destroyFn(editorView, editorAnalyticsAPI, isTableScalin
159
159
  if (isTableScalingWithFixedColumnWidthsOptionEnabled) {
160
160
  isTableScalingEnabledOnCurrentTable = tableNode.attrs.displayMode !== 'fixed';
161
161
  }
162
- var shouldUseIncreasedScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled && getBooleanFF('platform.editor.table.use-increased-scaling-percent');
162
+ var shouldUseIncreasedScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled && fg('platform.editor.table.use-increased-scaling-percent');
163
163
  insertColgroupFromNode(tableRef, tableNode, isTableScalingEnabledOnCurrentTable, undefined, shouldUseIncreasedScalingPercent);
164
164
  }
165
165
  }
@@ -547,7 +547,7 @@ var getColorPicker = function getColorPicker(state, menu, _ref5, editorAnalytics
547
547
  options: cellBackgroundColorPalette,
548
548
  returnEscToButton: true,
549
549
  onChange: function onChange(option) {
550
- return setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.FLOATING_TB, option.value, targetCellPosition, getEditorView());
550
+ return setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.FLOATING_TB, option.value, getEditorView());
551
551
  }
552
552
  }, separator(menu.hidden)];
553
553
  };
@@ -30,7 +30,7 @@ import { splitCell } from '@atlaskit/editor-tables/utils';
30
30
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
31
31
  import EditorBackgroundColorIcon from '@atlaskit/icon/glyph/editor/background-color';
32
32
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
33
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
33
+ import { fg } from '@atlaskit/platform-feature-flags';
34
34
  import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, setFocusToCellMenu, toggleContextualMenu } from '../../commands';
35
35
  import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, mergeCellsWithAnalytics, setColorWithAnalytics, sortColumnWithAnalytics, splitCellWithAnalytics } from '../../commands-with-analytics';
36
36
  import { getPluginState } from '../../pm-plugins/plugin-factory';
@@ -87,7 +87,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
87
87
  var background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
88
88
  var selectedRowIndex;
89
89
  var selectedColumnIndex;
90
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c')) {
90
+ if (fg('platform.editor.a11y-table-context-menu_y4c9c')) {
91
91
  var selectedRowAndColumnFromPalette = getSelectedRowAndColumnFromPalette(cellBackgroundColorPalette, background, colorPalletteColumns);
92
92
  selectedRowIndex = selectedRowAndColumnFromPalette.selectedRowIndex;
93
93
  selectedColumnIndex = selectedRowAndColumnFromPalette.selectedColumnIndex;
@@ -115,7 +115,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
115
115
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
116
116
  ,
117
117
  className: isDragAndDropEnabled ? ClassName.CONTEXTUAL_MENU_ICON_SMALL : ClassName.CONTEXTUAL_MENU_ICON
118
- }), getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') ? isSubmenuOpen && jsx("div", {
118
+ }), fg('platform.editor.a11y-table-context-menu_y4c9c') ? isSubmenuOpen && jsx("div", {
119
119
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
120
120
  className: ClassName.CONTEXTUAL_SUBMENU,
121
121
  ref: _this.handleSubMenuRef
@@ -160,7 +160,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
160
160
  hexToPaletteColor: hexToEditorBackgroundPaletteColor
161
161
  }
162
162
  }))),
163
- 'aria-expanded': getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') ? isSubmenuOpen : undefined
163
+ 'aria-expanded': fg('platform.editor.a11y-table-context-menu_y4c9c') ? isSubmenuOpen : undefined
164
164
  };
165
165
  }
166
166
  });
@@ -462,7 +462,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
462
462
  tableWithFixedColumnWidthsOption = _ref4$tableWithFixedC === void 0 ? false : _ref4$tableWithFixedC;
463
463
  // context menu opened by keyboard and any item except 'background' activated
464
464
  // or color has been chosen from color palette
465
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') && isCellMenuOpenByKeyboard && (item.value.name !== 'background' || item.value.name === 'background' && _this.state.isSubmenuOpen)) {
465
+ if (isCellMenuOpenByKeyboard && (item.value.name !== 'background' || item.value.name === 'background' && _this.state.isSubmenuOpen) && fg('platform.editor.a11y-table-context-menu_y4c9c')) {
466
466
  var tr = state.tr;
467
467
  tr.setMeta(tablePluginKey, {
468
468
  type: 'SET_CELL_MENU_OPEN',
@@ -473,7 +473,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
473
473
  dispatch(tr);
474
474
  editorView.dom.focus(); // otherwise cursor disappears from cell
475
475
  }
476
- var shouldUseIncreasedScalingPercent = isTableScalingEnabled && tableWithFixedColumnWidthsOption && getBooleanFF('platform.editor.table.use-increased-scaling-percent');
476
+ var shouldUseIncreasedScalingPercent = isTableScalingEnabled && tableWithFixedColumnWidthsOption && fg('platform.editor.table.use-increased-scaling-percent');
477
477
  switch (item.value.name) {
478
478
  case 'sort_column_desc':
479
479
  sortColumnWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, selectionRect.left, SortOrder.DESC)(state, dispatch);
@@ -529,7 +529,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
529
529
  // 1st time when user chooses the background color item.
530
530
  // 2nd when color has been chosen from color palette.
531
531
  // here we are handling the 1st call relying on the isSubmenuOpen state value
532
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') && isCellMenuOpenByKeyboard && !_this.state.isSubmenuOpen) {
532
+ if (isCellMenuOpenByKeyboard && !_this.state.isSubmenuOpen && fg('platform.editor.a11y-table-context-menu_y4c9c')) {
533
533
  _this.setState({
534
534
  isSubmenuOpen: true
535
535
  });
@@ -558,7 +558,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
558
558
  dispatch = _this$props12$editorV.dispatch,
559
559
  dom = _this$props12$editorV.dom,
560
560
  isCellMenuOpenByKeyboard = _this$props12.isCellMenuOpenByKeyboard;
561
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c')) {
561
+ if (fg('platform.editor.a11y-table-context-menu_y4c9c')) {
562
562
  if (payload) {
563
563
  var event = payload.event;
564
564
  if (event && event instanceof KeyboardEvent) {
@@ -640,12 +640,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
640
640
  var _this$props14 = _this.props,
641
641
  editorView = _this$props14.editorView,
642
642
  editorAnalyticsAPI = _this$props14.editorAnalyticsAPI;
643
- // TargetCellPosition could be outdated: https://product-fabric.atlassian.net/browse/ED-8129
644
- var _getPluginState13 = getPluginState(editorView.state),
645
- targetCellPosition = _getPluginState13.targetCellPosition;
646
643
  var state = editorView.state,
647
644
  dispatch = editorView.dispatch;
648
- setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color, targetCellPosition)(state, dispatch);
645
+ setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color)(state, dispatch);
649
646
  _this.toggleOpen();
650
647
  });
651
648
  return _this;
@@ -653,7 +650,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
653
650
  _createClass(ContextualMenu, [{
654
651
  key: "componentDidMount",
655
652
  value: function componentDidMount() {
656
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c')) {
653
+ if (fg('platform.editor.a11y-table-context-menu_y4c9c')) {
657
654
  // ArrowKeyNavigationProvider in DropdownMenu expects that menu handle will stay focused
658
655
  // until user pressed ArrowDown.
659
656
  // Behavior above fails the A11Y requirement about first item in menu should be focused immediately.
@@ -676,11 +673,11 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
676
673
  boundariesElement = _this$props15.boundariesElement,
677
674
  editorView = _this$props15.editorView,
678
675
  isCellMenuOpenByKeyboard = _this$props15.isCellMenuOpenByKeyboard;
679
- var _getPluginState14 = getPluginState(editorView.state),
680
- isDragAndDropEnabled = _getPluginState14.isDragAndDropEnabled;
676
+ var _getPluginState13 = getPluginState(editorView.state),
677
+ isDragAndDropEnabled = _getPluginState13.isDragAndDropEnabled;
681
678
  var items = isDragAndDropEnabled ? this.createNewContextMenuItems() : this.createOriginalContextMenuItems();
682
679
  var isOpenAllowed = false;
683
- if (getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c')) {
680
+ if (fg('platform.editor.a11y-table-context-menu_y4c9c')) {
684
681
  isOpenAllowed = isCellMenuOpenByKeyboard ? this.state.isOpenAllowed : isOpen;
685
682
  } else {
686
683
  isOpenAllowed = isOpen;
@@ -696,7 +693,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
696
693
  ,
697
694
  arrowKeyNavigationProviderOptions: {
698
695
  type: ArrowKeyNavigationType.MENU,
699
- disableArrowKeyNavigation: getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') && isCellMenuOpenByKeyboard && !this.state.isSubmenuOpen ? false : true
696
+ disableArrowKeyNavigation: isCellMenuOpenByKeyboard && !this.state.isSubmenuOpen && fg('platform.editor.a11y-table-context-menu_y4c9c') ? false : true
700
697
  },
701
698
  items: items,
702
699
  isOpen: isOpenAllowed,
@@ -706,7 +703,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
706
703
  onMouseLeave: this.handleItemMouseLeave,
707
704
  fitHeight: 188,
708
705
  fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth,
709
- shouldFocusFirstItem: getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') ? function () {
706
+ shouldFocusFirstItem: fg('platform.editor.a11y-table-context-menu_y4c9c') ? function () {
710
707
  return Boolean(isCellMenuOpenByKeyboard);
711
708
  } : undefined,
712
709
  boundariesElement: boundariesElement,
@@ -714,7 +711,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
714
711
  section: isDragAndDropEnabled ? {
715
712
  hasSeparator: true
716
713
  } : undefined,
717
- isAllowEnterDefaultBehavior: getBooleanFF('platform.editor.a11y-table-context-menu_y4c9c') ? this.state.isSubmenuOpen : false
714
+ isAllowEnterDefaultBehavior: fg('platform.editor.a11y-table-context-menu_y4c9c') ? this.state.isSubmenuOpen : false
718
715
  }));
719
716
  }
720
717
  }]);
@@ -15,7 +15,7 @@ export var cellColourPreviewStyles = function cellColourPreviewStyles(selectedCo
15
15
  });
16
16
  };
17
17
 
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
19
19
  export var elementBeforeIconStyles = css({
20
20
  marginRight: "var(--ds-space-negative-075, -6px)",
21
21
  display: 'flex'
@@ -20,7 +20,7 @@ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
20
20
  import { TableMap } from '@atlaskit/editor-tables/table-map';
21
21
  import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
22
22
  import EditorBackgroundColorIcon from '@atlaskit/icon/glyph/editor/background-color';
23
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
23
+ import { fg } from '@atlaskit/platform-feature-flags';
24
24
  import Toggle from '@atlaskit/toggle';
25
25
  import { clearHoverSelection, hoverColumns, hoverRows } from '../../commands';
26
26
  import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../commands-with-analytics';
@@ -211,7 +211,7 @@ export var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
211
211
  var selectionRect = isSelectionType(selection, 'cell') ? getSelectionRect(selection) : findCellRectClosestToPos(selection.$from);
212
212
  var shouldMoveDisabled;
213
213
  var hasMergedCellsInTable;
214
- if (getBooleanFF('platform.editor.table.drag-move-options-logic-update_fp7xw')) {
214
+ if (fg('platform.editor.table.drag-move-options-logic-update_fp7xw')) {
215
215
  var _tableMap$hasMergedCe;
216
216
  shouldMoveDisabled = false;
217
217
  hasMergedCellsInTable = (_tableMap$hasMergedCe = tableMap === null || tableMap === void 0 ? void 0 : tableMap.hasMergedCells()) !== null && _tableMap$hasMergedCe !== void 0 ? _tableMap$hasMergedCe : false;
@@ -237,18 +237,16 @@ export var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
237
237
  }
238
238
  };
239
239
  var setColor = function setColor(color) {
240
- var _getTablePluginState = getTablePluginState(editorView.state),
241
- targetCellPosition = _getTablePluginState.targetCellPosition;
242
240
  var state = editorView.state,
243
241
  dispatch = editorView.dispatch;
244
- setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color, targetCellPosition)(state, dispatch);
242
+ setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color)(state, dispatch);
245
243
  closeMenu();
246
244
  setIsSubmenuOpen(false);
247
245
  };
248
246
  var createBackgroundColorMenuItem = function createBackgroundColorMenuItem() {
249
247
  var _node$attrs;
250
- var _getTablePluginState2 = getTablePluginState(editorView.state),
251
- targetCellPosition = _getTablePluginState2.targetCellPosition;
248
+ var _getTablePluginState = getTablePluginState(editorView.state),
249
+ targetCellPosition = _getTablePluginState.targetCellPosition;
252
250
  var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
253
251
  var background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
254
252
  var _getSelectedRowAndCol = getSelectedRowAndColumnFromPalette(cellBackgroundColorPalette, background, colorPalletteColumns),
@@ -15,7 +15,7 @@ export var cellColourPreviewStyles = function cellColourPreviewStyles(selectedCo
15
15
  });
16
16
  };
17
17
 
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
19
19
  export var elementBeforeIconStyles = css({
20
20
  marginRight: "var(--ds-space-negative-075, -6px)",
21
21
  display: 'flex'
@@ -27,7 +27,7 @@ export var dragMenuBackgroundColorStyles = function dragMenuBackgroundColorStyle
27
27
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tborder-radius: ", ";\n\t\tbackground: ", ";\n\t\tbox-shadow: ", ";\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: ", "px; // move the submenu down when 'sort increasing/decreasing' appear before background color picker\n\t\tleft: ", "px;\n\t\tpadding: ", ";\n\n\t\t> div {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tborder: 1px solid ", ";\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 14px;\n\t\t\theight: 14px;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '\u203A';\n\t\t\tmargin-left: ", ";\n\t\t\tline-height: 14px;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n"])), ClassName.DRAG_SUBMENU, "var(--ds-border-radius, 3px)", "var(--ds-surface-overlay, white)", "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"), tableSortColumnReorder ? TABLE_DRAG_MENU_PADDING_TOP + TABLE_DRAG_MENU_SORT_GROUP_HEIGHT + TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT : 0, dragMenuDropdownWidth, "var(--ds-space-100, 8px)", ClassName.DRAG_SUBMENU_ICON, tableBackgroundBorderColor, "var(--ds-border-radius, 3px)", "var(--ds-space-050, 4px)", "var(--ds-icon, ".concat(N90, ")"));
28
28
  };
29
29
 
30
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
31
31
  export var toggleStyles = css({
32
32
  display: 'flex',
33
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -77,8 +77,8 @@ export var tableStyles = function tableStyles(props) {
77
77
  return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t}\n\n\t.ProseMirror.", " {\n\t\t.", " {\n\t\t\toverflow-x: auto;\n\t\t\t", ";\n\t\t}\n\t}\n\n\t.ProseMirror.", " {\n\t\tcursor: col-resize;\n\t}\n\n\t", "\n"])), baseTableStyles(props), ClassName.IS_RESIZING, ClassName.TABLE_NODE_WRAPPER, scrollbarStyles, ClassName.RESIZE_CURSOR, shadowSentinelStyles);
78
78
  };
79
79
 
80
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
80
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
81
81
  export var tableFullPageEditorStyles = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t.ProseMirror .", " > table {\n\t\tmargin-left: 0;\n\t\t// 1px border width offset added here to prevent unwanted overflow and scolling - ED-16212\n\t\tmargin-right: -1px;\n\t\twidth: 100%;\n\t}\n"])), ClassName.TABLE_NODE_WRAPPER);
82
82
 
83
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
84
84
  export var tableCommentEditorStyles = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t.ProseMirror .", " > table {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t\t", ";\n\t}\n"])), ClassName.TABLE_NODE_WRAPPER, scrollbarStyles);
@@ -134,7 +134,7 @@ export var hoveredCell = function hoveredCell() {
134
134
  return css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n\t:not(.", ")\n\t\t.", ":not(.", ") {\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\t\t.", ".", " {\n\t\t\tposition: relative;\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\t}\n"])), ClassName.IS_RESIZING, ClassName.TABLE_CONTAINER, ClassName.HOVERED_DELETE_BUTTON, ClassName.HOVERED_CELL, tableBorderSelectedColor, ClassName.HOVERED_CELL, ClassName.HOVERED_NO_HIGHLIGHT, tableBorderColor);
135
135
  };
136
136
 
137
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
137
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
138
138
  export var hoveredWarningCell = css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n\t:not(.", ")\n\t\t.", ":not(.", ") {\n\t\ttd.", " {\n\t\t\tbackground-color: ", " !important; // We need to override the background-color added to the cell\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\t}\n"])), ClassName.IS_RESIZING, ClassName.TABLE_CONTAINER, ClassName.HOVERED_DELETE_BUTTON, ClassName.HOVERED_CELL_WARNING, "var(--ds-background-warning, ".concat(Y50, ")"), "var(--ds-border-warning, ".concat(Y200, ")"));
139
139
 
140
140
  // Explicit pixel values required here to ensure correct positioning and sizes of column resize handle
@@ -20,7 +20,7 @@ export declare const deleteTable: Command;
20
20
  export declare const deleteTableIfSelected: Command;
21
21
  export declare const convertFirstRowToHeader: (schema: Schema) => (tr: Transaction) => Transaction;
22
22
  export declare const moveCursorBackward: Command;
23
- export declare const setMultipleCellAttrs: (attrs: Object, targetCellPosition?: number, editorView?: EditorView | null) => Command;
23
+ export declare const setMultipleCellAttrs: (attrs: Object, editorView?: EditorView | null) => Command;
24
24
  export declare const selectColumn: (column: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
25
25
  export declare const selectColumns: (columnIndexes: number[]) => Command;
26
26
  export declare const selectRow: (row: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
@@ -13,7 +13,7 @@ import type { AlignmentOptions, InsertRowMethods, InsertRowOptions, RowInsertPos
13
13
  export declare const emptyMultipleCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, targetCellPosition?: number) => Command;
14
14
  export declare const mergeCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | null | undefined) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
15
15
  export declare const splitCellWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
16
- export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, cellColor: string, targetCellPosition?: number, editorView?: EditorView | null) => Command;
16
+ export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, cellColor: string, editorView?: EditorView | null) => Command;
17
17
  export declare const addRowAroundSelection: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (side: RowInsertPosition) => Command;
18
18
  export declare const insertRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isCellbackgroundDuplicated?: boolean) => (inputMethod: InsertRowMethods, options: InsertRowOptions) => Command;
19
19
  export declare const changeColumnWidthByStepWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (stepSize: number, getEditorContainerWidth: GetEditorContainerWidth, isTableScalingEnabled: boolean, isTableFixedColumnWidthsOptionEnabled: boolean, inputMethod: INPUT_METHOD.SHORTCUT, ariaNotify?: ((message: string) => void) | undefined, getIntl?: () => IntlShape) => Command;
@@ -20,7 +20,7 @@ export declare const deleteTable: Command;
20
20
  export declare const deleteTableIfSelected: Command;
21
21
  export declare const convertFirstRowToHeader: (schema: Schema) => (tr: Transaction) => Transaction;
22
22
  export declare const moveCursorBackward: Command;
23
- export declare const setMultipleCellAttrs: (attrs: Object, targetCellPosition?: number, editorView?: EditorView | null) => Command;
23
+ export declare const setMultipleCellAttrs: (attrs: Object, editorView?: EditorView | null) => Command;
24
24
  export declare const selectColumn: (column: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
25
25
  export declare const selectColumns: (columnIndexes: number[]) => Command;
26
26
  export declare const selectRow: (row: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;