@atlaskit/editor-plugin-table 24.4.14 → 24.4.16

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 (44) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/nodeviews/TableRowNativeStickyWithFallback.js +60 -85
  3. package/dist/cjs/pm-plugins/handlers.js +13 -21
  4. package/dist/cjs/pm-plugins/table-anchor-names/plugin.js +3 -6
  5. package/dist/cjs/tablePlugin.js +2 -2
  6. package/dist/cjs/ui/FloatingContextualButton/index.js +1 -16
  7. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +31 -51
  8. package/dist/cjs/ui/FloatingDragMenu/index.js +1 -2
  9. package/dist/cjs/ui/FloatingTableMenu/index.js +1 -2
  10. package/dist/cjs/ui/TableFloatingControls/index.js +1 -10
  11. package/dist/cjs/ui/TableMenu/column/items/SortDecreasingItem.js +1 -1
  12. package/dist/cjs/ui/TableMenu/column/items/SortIncreasingItem.js +1 -1
  13. package/dist/cjs/ui/TableMenu/shared/items/BackgroundColorItem.compiled.css +0 -1
  14. package/dist/cjs/ui/TableMenu/shared/items/BackgroundColorItem.js +1 -1
  15. package/dist/cjs/ui/common-styles.js +4 -4
  16. package/dist/es2019/nodeviews/TableRowNativeStickyWithFallback.js +60 -85
  17. package/dist/es2019/pm-plugins/handlers.js +13 -22
  18. package/dist/es2019/pm-plugins/table-anchor-names/plugin.js +3 -6
  19. package/dist/es2019/tablePlugin.js +2 -2
  20. package/dist/es2019/ui/FloatingContextualButton/index.js +1 -16
  21. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +4 -23
  22. package/dist/es2019/ui/FloatingDragMenu/index.js +1 -2
  23. package/dist/es2019/ui/FloatingTableMenu/index.js +1 -2
  24. package/dist/es2019/ui/TableFloatingControls/index.js +2 -11
  25. package/dist/es2019/ui/TableMenu/column/items/SortDecreasingItem.js +1 -1
  26. package/dist/es2019/ui/TableMenu/column/items/SortIncreasingItem.js +1 -1
  27. package/dist/es2019/ui/TableMenu/shared/items/BackgroundColorItem.compiled.css +0 -1
  28. package/dist/es2019/ui/TableMenu/shared/items/BackgroundColorItem.js +1 -1
  29. package/dist/es2019/ui/common-styles.js +54 -72
  30. package/dist/esm/nodeviews/TableRowNativeStickyWithFallback.js +60 -85
  31. package/dist/esm/pm-plugins/handlers.js +13 -21
  32. package/dist/esm/pm-plugins/table-anchor-names/plugin.js +3 -6
  33. package/dist/esm/tablePlugin.js +2 -2
  34. package/dist/esm/ui/FloatingContextualButton/index.js +1 -16
  35. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +31 -51
  36. package/dist/esm/ui/FloatingDragMenu/index.js +1 -2
  37. package/dist/esm/ui/FloatingTableMenu/index.js +1 -2
  38. package/dist/esm/ui/TableFloatingControls/index.js +2 -11
  39. package/dist/esm/ui/TableMenu/column/items/SortDecreasingItem.js +1 -1
  40. package/dist/esm/ui/TableMenu/column/items/SortIncreasingItem.js +1 -1
  41. package/dist/esm/ui/TableMenu/shared/items/BackgroundColorItem.compiled.css +0 -1
  42. package/dist/esm/ui/TableMenu/shared/items/BackgroundColorItem.js +1 -1
  43. package/dist/esm/ui/common-styles.js +4 -4
  44. package/package.json +10 -31
@@ -74,29 +74,21 @@ var updateTargetCellPosition = function updateTargetCellPosition(_ref2) {
74
74
  tableHeader = _tr$doc$type$schema$n2.tableHeader;
75
75
  var cell = findParentNodeOfType([tableCell, tableHeader])(tr.selection);
76
76
  var targetCellPosition = cell ? cell.pos : undefined;
77
- if (expValEquals('platform_editor_table_close_cell_menu_on_move_exp', 'isEnabled', true)) {
78
- var targetCellPositionChanged = pluginState.targetCellPosition !== targetCellPosition;
79
- var closeContextualMenu = shouldCloseLegacyContextualMenu({
80
- pluginState: pluginState,
81
- targetCellPositionChanged: targetCellPositionChanged,
82
- tr: tr
83
- });
84
- if (!targetCellPositionChanged && !closeContextualMenu) {
85
- return pluginState;
86
- }
87
-
88
- // Close the legacy contextual menu when moving cells because the cell background
89
- // color submenu can otherwise remain open against the previous cell selection.
90
- return _objectSpread(_objectSpread(_objectSpread({}, pluginState), closeContextualMenu ? {
91
- isContextualMenuOpen: false
92
- } : {}), {}, {
93
- targetCellPosition: targetCellPosition
94
- });
95
- }
96
- if (pluginState.targetCellPosition === targetCellPosition) {
77
+ var targetCellPositionChanged = pluginState.targetCellPosition !== targetCellPosition;
78
+ var closeContextualMenu = shouldCloseLegacyContextualMenu({
79
+ pluginState: pluginState,
80
+ targetCellPositionChanged: targetCellPositionChanged,
81
+ tr: tr
82
+ });
83
+ if (!targetCellPositionChanged && !closeContextualMenu) {
97
84
  return pluginState;
98
85
  }
99
- return _objectSpread(_objectSpread({}, pluginState), {}, {
86
+
87
+ // Close the legacy contextual menu when moving cells because the cell background
88
+ // color submenu can otherwise remain open against the previous cell selection.
89
+ return _objectSpread(_objectSpread(_objectSpread({}, pluginState), closeContextualMenu ? {
90
+ isContextualMenuOpen: false
91
+ } : {}), {}, {
100
92
  targetCellPosition: targetCellPosition
101
93
  });
102
94
  };
@@ -7,8 +7,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
7
  import { isCSSAnchorSupported, isCSSAttrAnchorSupported } from '@atlaskit/editor-common/styles';
8
8
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
9
9
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
10
  var ObjHash = /*#__PURE__*/function () {
13
11
  function ObjHash() {
14
12
  _classCallCheck(this, ObjHash);
@@ -38,9 +36,8 @@ var createTableAnchorDecorations = function createTableAnchorDecorations(state)
38
36
  var _parent$attrs;
39
37
  var isTableHeader = node.type.name === 'tableHeader';
40
38
  var isTableRow = node.type.name === 'tableRow';
41
- var isParentTableRow = (parent === null || parent === void 0 ? void 0 : parent.type.name) === 'tableRow';
42
39
  var isParentTableHeaderRow = (parent === null || parent === void 0 ? void 0 : parent.type.name) === 'tableRow' && headerRowId && (parent === null || parent === void 0 || (_parent$attrs = parent.attrs) === null || _parent$attrs === void 0 ? void 0 : _parent$attrs.localId) === headerRowId;
43
- var shouldAddDecorationToHeader = expValEquals('platform_editor_table_sticky_header_patch_9', 'isEnabled', true) ? isParentTableHeaderRow && isTableHeader : isTableHeader;
40
+ var shouldAddDecorationToHeader = isParentTableHeaderRow && isTableHeader;
44
41
  var isFirstRow = isTableRow && index === 0;
45
42
  if (isFirstRow) {
46
43
  headerRowId = node.attrs.localId;
@@ -48,7 +45,7 @@ var createTableAnchorDecorations = function createTableAnchorDecorations(state)
48
45
  // only apply to header cells and the first row of a table, for performance reasons
49
46
  if (isFirstRow || shouldAddDecorationToHeader) {
50
47
  var anchorName = getNodeAnchor(node);
51
- var shouldAddAnchorNameInDecoration = !isCSSAttrAnchorSupported() && isCSSAnchorSupported() && fg('platform_editor_table_sticky_header_patch_8');
48
+ var shouldAddAnchorNameInDecoration = !isCSSAttrAnchorSupported() && isCSSAnchorSupported();
52
49
  var attributes = {
53
50
  'data-node-anchor': anchorName,
54
51
  style: "anchor-name: ".concat(anchorName, ";")
@@ -59,7 +56,7 @@ var createTableAnchorDecorations = function createTableAnchorDecorations(state)
59
56
  }
60
57
 
61
58
  // only decend if there is a possible table row or table header node after the current node, for performance reasons
62
- return expValEquals('platform_editor_table_sticky_header_patch_9', 'isEnabled', true) ? !(isTableHeader || isParentTableHeaderRow) : !(isTableHeader || isParentTableRow);
59
+ return !(isTableHeader || isParentTableHeaderRow);
63
60
  });
64
61
  return DecorationSet.create(state.doc, decs);
65
62
  };
@@ -151,7 +151,7 @@ var tablePlugin = function tablePlugin(_ref) {
151
151
  isDragMenuOpen: dragAndDropState === null || dragAndDropState === void 0 ? void 0 : dragAndDropState.isDragMenuOpen,
152
152
  isSizeSelectorOpen: sizeSelectorPluginState === null || sizeSelectorPluginState === void 0 ? void 0 : sizeSelectorPluginState.isSelectorOpen,
153
153
  sizeSelectorTargetRef: sizeSelectorPluginState === null || sizeSelectorPluginState === void 0 ? void 0 : sizeSelectorPluginState.targetRef,
154
- editorContentAreaHeight: expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && fg('platform_editor_table_sticky_header_patch_4') ? editorContentAreaHeightPluginState === null || editorContentAreaHeightPluginState === void 0 ? void 0 : editorContentAreaHeightPluginState.height : undefined
154
+ editorContentAreaHeight: expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') ? editorContentAreaHeightPluginState === null || editorContentAreaHeightPluginState === void 0 ? void 0 : editorContentAreaHeightPluginState.height : undefined
155
155
  };
156
156
  return sharedStateInternal;
157
157
  },
@@ -489,7 +489,7 @@ var tablePlugin = function tablePlugin(_ref) {
489
489
  }, {
490
490
  name: 'editorContentAreaHeightPlugin',
491
491
  plugin: function plugin() {
492
- return expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && fg('platform_editor_table_sticky_header_patch_1') ? createContentAreaHeightPlugin() : undefined;
492
+ return expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') ? createContentAreaHeightPlugin() : undefined;
493
493
  }
494
494
  }];
495
495
  if (!expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) && expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow')) {
@@ -16,7 +16,6 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
16
16
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
17
17
  import { akEditorSmallZIndex } from '@atlaskit/editor-shared-styles';
18
18
  import ExpandIcon from '@atlaskit/icon/core/chevron-down';
19
- import { fg } from '@atlaskit/platform-feature-flags';
20
19
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
20
  import { toggleActiveTableMenu, toggleContextualMenu } from '../../pm-plugins/commands';
22
21
  import { getPluginState } from '../../pm-plugins/plugin-factory';
@@ -143,7 +142,7 @@ var FloatingContextualButtonInner = /*#__PURE__*/React.memo(function (props) {
143
142
  testId: expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) ? 'pm-table-contextual-menu-button' : undefined
144
143
  }));
145
144
  var parentSticky = targetCellRef.parentElement && targetCellRef.parentElement.className.indexOf('sticky') > -1;
146
- var parentStickyNative = targetCellRef.parentElement && (fg('platform_editor_table_sticky_header_patch_4') ? tableWrapper === null || tableWrapper === void 0 ? void 0 : tableWrapper.classList.contains(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW) : targetCellRef.parentElement.classList.contains(ClassName.NATIVE_STICKY));
145
+ var parentStickyNative = targetCellRef.parentElement && (tableWrapper === null || tableWrapper === void 0 ? void 0 : tableWrapper.classList.contains(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW));
147
146
  if (parentStickyNative && targetCellRef.nodeName === 'TH' && isNativeStickySupported() && expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow')) {
148
147
  var _targetCellRef$parent;
149
148
  /* We need to default to checking the anchor style because there may be a conflict with the block controls
@@ -158,20 +157,6 @@ var FloatingContextualButtonInner = /*#__PURE__*/React.memo(function (props) {
158
157
  if (colAnchorName === '') {
159
158
  colAnchorName = targetCellRef === null || targetCellRef === void 0 ? void 0 : targetCellRef.dataset.nodeAnchor;
160
159
  }
161
- if (!expValEquals('platform_editor_table_sticky_header_patch_9', 'isEnabled', true)) {
162
- return jsx("div", {
163
- css: anchorStyles,
164
- style: {
165
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
166
- top: "calc(".concat(BUTTON_OFFSET, "px + anchor(").concat(rowAnchorName, " top))"),
167
- right: "calc(".concat(BUTTON_OFFSET, "px + anchor(").concat(colAnchorName, " right))"),
168
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
169
- positionAnchor: colAnchorName
170
- } // need to do this because CSSProperties doesn't have positionAnchor property even though it's a valid CSS property
171
- ,
172
- "data-testid": "table-cell-options-anchor-wrapper"
173
- }, button);
174
- }
175
160
  if (rowAnchorName && colAnchorName) {
176
161
  return jsx("div", {
177
162
  css: anchorStyles,
@@ -540,32 +540,21 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
540
540
  }
541
541
  });
542
542
  _defineProperty(_this, "toggleOpen", function () {
543
- var _this$props8 = _this.props,
544
- isOpen = _this$props8.isOpen,
545
- _this$props8$editorVi = _this$props8.editorView,
546
- state = _this$props8$editorVi.state,
547
- dispatch = _this$props8$editorVi.dispatch;
548
- if (expValEquals('platform_editor_table_close_cell_menu_on_move_exp', 'isEnabled', true)) {
549
- if (getPluginState(state).isContextualMenuOpen) {
550
- toggleContextualMenu()(state, dispatch);
551
- }
552
- _this.closeSubmenu();
553
- return;
554
- }
555
- toggleContextualMenu()(state, dispatch);
556
- if (!isOpen) {
557
- _this.setState({
558
- isSubmenuOpen: false
559
- });
543
+ var _this$props$editorVie = _this.props.editorView,
544
+ state = _this$props$editorVie.state,
545
+ dispatch = _this$props$editorVie.dispatch;
546
+ if (getPluginState(state).isContextualMenuOpen) {
547
+ toggleContextualMenu()(state, dispatch);
560
548
  }
549
+ _this.closeSubmenu();
561
550
  });
562
551
  _defineProperty(_this, "handleOpenChange", function (payload) {
563
- var _this$props9 = _this.props,
564
- _this$props9$editorVi = _this$props9.editorView,
565
- state = _this$props9$editorVi.state,
566
- dispatch = _this$props9$editorVi.dispatch,
567
- dom = _this$props9$editorVi.dom,
568
- isCellMenuOpenByKeyboard = _this$props9.isCellMenuOpenByKeyboard;
552
+ var _this$props8 = _this.props,
553
+ _this$props8$editorVi = _this$props8.editorView,
554
+ state = _this$props8$editorVi.state,
555
+ dispatch = _this$props8$editorVi.dispatch,
556
+ dom = _this$props8$editorVi.dom,
557
+ isCellMenuOpenByKeyboard = _this$props8.isCellMenuOpenByKeyboard;
569
558
  if (payload) {
570
559
  var event = payload.event;
571
560
  if (event && event instanceof KeyboardEvent) {
@@ -604,11 +593,11 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
604
593
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
605
594
  _defineProperty(_this, "handleItemMouseEnter", function (_ref4) {
606
595
  var item = _ref4.item;
607
- var _this$props0 = _this.props,
608
- _this$props0$editorVi = _this$props0.editorView,
609
- state = _this$props0$editorVi.state,
610
- dispatch = _this$props0$editorVi.dispatch,
611
- selectionRect = _this$props0.selectionRect;
596
+ var _this$props9 = _this.props,
597
+ _this$props9$editorVi = _this$props9.editorView,
598
+ state = _this$props9$editorVi.state,
599
+ dispatch = _this$props9$editorVi.dispatch,
600
+ selectionRect = _this$props9.selectionRect;
612
601
  if (!expValEquals('platform_editor_toolbar_submenu_open_click', 'isEnabled', true)) {
613
602
  if (item.value.name === 'background') {
614
603
  if (!_this.state.isSubmenuOpen) {
@@ -632,9 +621,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
632
621
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
633
622
  _defineProperty(_this, "handleItemMouseLeave", function (_ref5) {
634
623
  var item = _ref5.item;
635
- var _this$props$editorVie = _this.props.editorView,
636
- state = _this$props$editorVie.state,
637
- dispatch = _this$props$editorVie.dispatch;
624
+ var _this$props$editorVie2 = _this.props.editorView,
625
+ state = _this$props$editorVie2.state,
626
+ dispatch = _this$props$editorVie2.dispatch;
638
627
  if (!expValEquals('platform_editor_toolbar_submenu_open_click', 'isEnabled', true)) {
639
628
  if (item.value.name === 'background') {
640
629
  _this.closeSubmenu();
@@ -652,31 +641,22 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
652
641
  }
653
642
  });
654
643
  _defineProperty(_this, "setColor", function (color) {
655
- var _this$props1 = _this.props,
656
- editorView = _this$props1.editorView,
657
- editorAnalyticsAPI = _this$props1.editorAnalyticsAPI,
658
- isCellMenuOpenByKeyboard = _this$props1.isCellMenuOpenByKeyboard;
644
+ var _this$props0 = _this.props,
645
+ editorView = _this$props0.editorView,
646
+ editorAnalyticsAPI = _this$props0.editorAnalyticsAPI,
647
+ isCellMenuOpenByKeyboard = _this$props0.isCellMenuOpenByKeyboard;
659
648
  var state = editorView.state,
660
649
  dispatch = editorView.dispatch,
661
650
  dom = editorView.dom;
662
651
  setColorWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.CONTEXT_MENU, color)(state, dispatch);
663
652
  if (!expValEquals('platform_editor_toolbar_submenu_open_click', 'isEnabled', true)) {
664
653
  _this.toggleOpen();
665
- } else if (expValEquals('platform_editor_table_close_cell_menu_on_move_exp', 'isEnabled', true)) {
654
+ } else {
666
655
  _this.toggleOpen();
667
656
  if (isCellMenuOpenByKeyboard) {
668
657
  setFocusToCellMenu(false)(editorView.state, dispatch);
669
658
  dom.focus();
670
659
  }
671
- } else {
672
- toggleContextualMenu()(state, dispatch);
673
- _this.setState({
674
- isSubmenuOpen: false
675
- });
676
- if (isCellMenuOpenByKeyboard) {
677
- setFocusToCellMenu(false)(state, dispatch);
678
- dom.focus();
679
- }
680
660
  }
681
661
  });
682
662
  return _this;
@@ -708,12 +688,12 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
708
688
  }, {
709
689
  key: "render",
710
690
  value: function render() {
711
- var _this$props10 = this.props,
712
- isOpen = _this$props10.isOpen,
713
- offset = _this$props10.offset,
714
- boundariesElement = _this$props10.boundariesElement,
715
- isCellMenuOpenByKeyboard = _this$props10.isCellMenuOpenByKeyboard,
716
- api = _this$props10.api;
691
+ var _this$props1 = this.props,
692
+ isOpen = _this$props1.isOpen,
693
+ offset = _this$props1.offset,
694
+ boundariesElement = _this$props1.boundariesElement,
695
+ isCellMenuOpenByKeyboard = _this$props1.isCellMenuOpenByKeyboard,
696
+ api = _this$props1.api;
717
697
  var items = this.createContextMenuItems();
718
698
  var isOpenAllowed = false;
719
699
  isOpenAllowed = isCellMenuOpenByKeyboard ? this.state.isOpenAllowed : isOpen;
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { Popup } from '@atlaskit/editor-common/ui';
3
3
  import { akEditorFloatingDialogZIndex, akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { TableCssClassName as ClassName } from '../../types';
7
6
  import { dragMenuDropdownWidth, tablePopupMenuFitHeight } from '../consts';
8
7
  import DragMenu from './DragMenu';
@@ -30,7 +29,7 @@ var FloatingDragMenu = function FloatingDragMenu(_ref) {
30
29
  if (!isOpen || !targetCellPosition || editorView.state.doc.nodeSize <= targetCellPosition) {
31
30
  return null;
32
31
  }
33
- var inStickyMode = (stickyHeaders === null || stickyHeaders === void 0 ? void 0 : stickyHeaders.sticky) || (tableWrapper === null || tableWrapper === void 0 ? void 0 : tableWrapper.classList.contains(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW)) && fg('platform_editor_table_sticky_header_patch_7');
32
+ var inStickyMode = (stickyHeaders === null || stickyHeaders === void 0 ? void 0 : stickyHeaders.sticky) || (tableWrapper === null || tableWrapper === void 0 ? void 0 : tableWrapper.classList.contains(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW));
34
33
  var targetHandleRef = direction === 'row' ? document.querySelector('#drag-handle-button-row') : document.querySelector('#drag-handle-button-column');
35
34
  if (!targetHandleRef || !(editorView.state.selection instanceof CellSelection)) {
36
35
  return null;
@@ -5,7 +5,6 @@ import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from
5
5
  import { akEditorFloatingDialogZIndex, akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
7
  import { ToolbarKeyboardNavigationProvider } from '@atlaskit/editor-toolbar/toolbar-keyboard-navigation-provider';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { closeActiveTableMenu } from '../../pm-plugins/commands';
10
9
  import { TableCssClassName as ClassName } from '../../types';
11
10
  import { dragTableInsertColumnButtonSize, tablePopupMenuFitHeight } from '../consts';
@@ -124,7 +123,7 @@ var FloatingTableMenu = function FloatingTableMenu(_ref) {
124
123
  if (!isDragMenuOpen || !targetCellPosition || editorView.state.doc.nodeSize <= targetCellPosition) {
125
124
  return null;
126
125
  }
127
- var inStickyMode = (stickyHeaders === null || stickyHeaders === void 0 ? void 0 : stickyHeaders.sticky) || (tableWrapper === null || tableWrapper === void 0 ? void 0 : tableWrapper.classList.contains(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW)) && fg('platform_editor_table_sticky_header_patch_7');
126
+ var inStickyMode = (stickyHeaders === null || stickyHeaders === void 0 ? void 0 : stickyHeaders.sticky) || (tableWrapper === null || tableWrapper === void 0 ? void 0 : tableWrapper.classList.contains(ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW));
128
127
  var targetHandleRef = dragMenuDirection === 'row' ? document.querySelector('#drag-handle-button-row') : document.querySelector('#drag-handle-button-column');
129
128
  if (!targetHandleRef || !(editorView.state.selection instanceof CellSelection)) {
130
129
  return null;
@@ -5,24 +5,16 @@
5
5
  import { Fragment, useCallback } from 'react';
6
6
 
7
7
  /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
8
- import { jsx, css } from '@emotion/react';
8
+ import { jsx } from '@emotion/react';
9
9
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
10
10
  import { findTable } from '@atlaskit/editor-tables/utils';
11
11
  import { fg } from '@atlaskit/platform-feature-flags';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
12
  import { hoverCell, hoverRows, selectRow, selectRows } from '../../pm-plugins/commands';
14
13
  import { isTableNested } from '../../pm-plugins/utils/nodes';
15
14
  import { TableCssClassName as ClassName } from '../../types';
16
15
  import { DragCornerControlsWithSelection } from './CornerControls/DragCornerControls';
17
16
  import NumberColumn from './NumberColumn';
18
17
  import { DragControlsWithSelection } from './RowControls/DragControls';
19
- var styles = css({
20
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
21
- '&:has(~ .pm-table-wrapper-no-overflow)': {
22
- marginTop: 0
23
- }
24
- });
25
-
26
18
  // Row controls
27
19
  export var TableFloatingControls = function TableFloatingControls(_ref) {
28
20
  var _findTable;
@@ -94,8 +86,7 @@ export var TableFloatingControls = function TableFloatingControls(_ref) {
94
86
  var shouldShowCornerControls = isNested && !fg('platform_editor_nested_dnd_styles_changes');
95
87
  return jsx("div", {
96
88
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
97
- className: wrapperClassName,
98
- css: [expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && !fg('platform_editor_table_sticky_header_patch_7') && styles]
89
+ className: wrapperClassName
99
90
  }, jsx("div", {
100
91
  role: "none",
101
92
  onMouseDown: function onMouseDown(e) {
@@ -1,4 +1,4 @@
1
- /* SortDecreasingItem.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SortDecreasingItem.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./SortDecreasingItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* SortIncreasingItem.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SortIncreasingItem.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./SortIncreasingItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
4
3
  ._1dqonqa1{border-style:solid}
@@ -1,4 +1,4 @@
1
- /* BackgroundColorItem.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* BackgroundColorItem.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./BackgroundColorItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useMemo } from 'react';