@atlaskit/editor-plugin-table 37.0.3 → 38.0.1

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 (36) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/nodeviews/table.js +1 -2
  3. package/dist/cjs/pm-plugins/commands/misc.js +2 -13
  4. package/dist/cjs/pm-plugins/utils/selection.js +1 -7
  5. package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +2 -2
  6. package/dist/cjs/ui/FloatingDeleteButton/index.js +2 -2
  7. package/dist/cjs/ui/FloatingInsertButton/index.js +10 -6
  8. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -13
  9. package/dist/cjs/ui/common-styles.js +4 -3
  10. package/dist/cjs/ui/rounded-table-styles.js +2 -1
  11. package/dist/cjs/ui/sticky-header-z-index.js +35 -0
  12. package/dist/cjs/ui/ui-styles.js +3 -2
  13. package/dist/es2019/nodeviews/table.js +1 -2
  14. package/dist/es2019/pm-plugins/commands/misc.js +2 -13
  15. package/dist/es2019/pm-plugins/utils/selection.js +1 -7
  16. package/dist/es2019/ui/FloatingContextualButton/FixedButton.js +2 -2
  17. package/dist/es2019/ui/FloatingDeleteButton/index.js +2 -2
  18. package/dist/es2019/ui/FloatingInsertButton/index.js +10 -6
  19. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -13
  20. package/dist/es2019/ui/common-styles.js +21 -16
  21. package/dist/es2019/ui/rounded-table-styles.js +3 -2
  22. package/dist/es2019/ui/sticky-header-z-index.js +29 -0
  23. package/dist/es2019/ui/ui-styles.js +6 -5
  24. package/dist/esm/nodeviews/table.js +1 -2
  25. package/dist/esm/pm-plugins/commands/misc.js +2 -13
  26. package/dist/esm/pm-plugins/utils/selection.js +1 -7
  27. package/dist/esm/ui/FloatingContextualButton/FixedButton.js +2 -2
  28. package/dist/esm/ui/FloatingDeleteButton/index.js +2 -2
  29. package/dist/esm/ui/FloatingInsertButton/index.js +10 -6
  30. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -13
  31. package/dist/esm/ui/common-styles.js +6 -5
  32. package/dist/esm/ui/rounded-table-styles.js +3 -2
  33. package/dist/esm/ui/sticky-header-z-index.js +29 -0
  34. package/dist/esm/ui/ui-styles.js +4 -3
  35. package/dist/types/ui/sticky-header-z-index.d.ts +11 -0
  36. package/package.json +18 -18
@@ -12,6 +12,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
12
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
13
13
  var _types = require("../types");
14
14
  var _consts = require("./consts");
15
+ var _stickyHeaderZIndex = require("./sticky-header-z-index");
15
16
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
16
17
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- needs mahual remediation */
17
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -124,7 +125,7 @@ var rowControlsWrapperDotStyle = exports.rowControlsWrapperDotStyle = function r
124
125
  return (0, _react.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\t\t/* override for DnD controls */\n\t\tdiv.", ">.", "::after {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\tdiv.", ">.", "::after {\n\t\t\tcontent: ' ';\n\t\t\tbackground-color: ", ";\n\t\t\tposition: absolute;\n\t\t\theight: ", "px;\n\t\t\twidth: ", "px;\n\t\t\tborder-radius: 50%;\n\t\t\tpointer-events: none;\n\t\t\ttop: -", "px;\n\t\t\tright: -1px;\n\t\t}\n\t"])), _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.DRAG_ROW_CONTROLS_WRAPPER, _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.ROW_CONTROLS_WRAPPER, _consts.tableBorderColor, _consts.lineMarkerSize, _consts.lineMarkerSize, _consts.tableToolbarSize + _styles.tableCellBorderWidth);
125
126
  };
126
127
  var columnControlsDecoration = exports.columnControlsDecoration = function columnControlsDecoration() {
127
- return (0, _react.css)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n\t\t.", " {\n\t\t\tdisplay: none;\n\t\t\tcursor: pointer;\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\tleft: 0;\n\t\t\ttop: -", "px;\n\t\t\theight: ", "px;\n\t\t\t/* floating dot for adding column button */\n\t\t\t&::before {\n\t\t\t\tcontent: ' ';\n\t\t\t\tbackground-color: ", ";\n\t\t\t\tposition: absolute;\n\t\t\t\theight: ", "px;\n\t\t\t\twidth: ", "px;\n\t\t\t\tborder-radius: 50%;\n\t\t\t\tpointer-events: none;\n\t\t\t\ttop: 2px;\n\t\t\t\tright: ", ";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: ' ';\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t/* floating dot for adding column button - overriding style on last column to avoid scroll */\n\t\t", "\n\n\t\t.", " .", " {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\ttable\n\t\t\ttr:first-of-type\n\t\t\ttd.", ",table\n\t\t\ttr:first-of-type\n\t\t\tth.", " {\n\t\t\t&.", ", &.", " {\n\t\t\t\t.", "::after {\n\t\t\t\t\t", ";\n\t\t\t\t}\n\n\t\t\t\t&.", " .", "::after {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\tz-index: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttable\n\t\t\ttr:first-of-type\n\t\t\ttd.", ",table\n\t\t\ttr:first-of-type\n\t\t\tth.", " {\n\t\t\t&.", ", &.", " {\n\t\t\t\t.", "::after {\n\t\t\t\t\t", ";\n\t\t\t\t\tborder-left: ", "px solid ", ";\n\t\t\t\t\tleft: -", "px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttable\n\t\t\ttr:first-of-type\n\t\t\ttd.", ",\n\t\t\ttable\n\t\t\ttr:first-of-type\n\t\t\tth.", " {\n\t\t\t&.", " {\n\t\t\t\t.", "::after {\n\t\t\t\t\t", ";\n\t\t\t\t}\n\n\t\t\t\t&.", " .", "::after {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\tborder-left: ", "px solid ", ";\n\t\t\t\t\tleft: -", "px;\n\t\t\t\t\tz-index: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", "\n\t\t\ttable\n\t\t\ttr:first-of-type\n\t\t\ttd.", ",\n\t\t\t.", "\n\t\t\ttable\n\t\t\ttr:first-of-type\n\t\t\tth.", " {\n\t\t\t.", "::after {\n\t\t\t\t", ";\n\t\t\t}\n\t\t}\n\t"])), _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _consts.columnControlsDecorationHeight + _styles.tableCellBorderWidth, _consts.columnControlsDecorationHeight, _consts.tableBorderColor, _consts.lineMarkerSize, _consts.lineMarkerSize, "var(--ds-space-negative-025, -2px)", columnHeaderButton("\n border-right: ".concat(_styles.tableCellBorderWidth, "px solid ").concat(_consts.tableBorderColor, ";\n border-top: ").concat(_styles.tableCellBorderWidth, "px solid ").concat(_consts.tableBorderColor, ";\n border-bottom: ").concat(_styles.tableCellBorderWidth, "px solid ").concat(_consts.tableBorderColor, ";\n box-sizing: content-box;\n height: ").concat(_consts.tableToolbarSize - 1, "px;\n width: 100%;\n position: absolute;\n top: ").concat(_consts.columnControlsDecorationHeight - _consts.tableToolbarSize, "px;\n left: 0px;\n z-index: ").concat(_consts.columnControlsZIndex, ";\n ")), getFloatingDotOverrides(), _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.COLUMN_SELECTED, _types.TableCssClassName.HOVERED_TABLE, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, columnHeaderButtonSelected(), _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _consts.tableToolbarDeleteColor, _consts.tableBorderDeleteColor, _editorSharedStyles.akEditorUnitZIndex * 100, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.COLUMN_SELECTED, _types.TableCssClassName.HOVERED_COLUMN, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, columnHeaderButtonSelected(), _styles.tableCellBorderWidth, _consts.tableBorderSelectedColor, _styles.tableCellBorderWidth, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.HOVERED_COLUMN, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, columnHeaderButtonSelected(), _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _consts.tableToolbarDeleteColor, _consts.tableBorderDeleteColor, _styles.tableCellBorderWidth, _consts.tableBorderDeleteColor, _styles.tableCellBorderWidth, _editorSharedStyles.akEditorUnitZIndex * 100, _types.TableCssClassName.TABLE_SELECTED, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_SELECTED, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, columnHeaderButtonSelected());
128
+ return (0, _react.css)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n\t\t.", " {\n\t\t\tdisplay: none;\n\t\t\tcursor: pointer;\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\tleft: 0;\n\t\t\ttop: -", "px;\n\t\t\theight: ", "px;\n\t\t\t/* floating dot for adding column button */\n\t\t\t&::before {\n\t\t\t\tcontent: ' ';\n\t\t\t\tbackground-color: ", ";\n\t\t\t\tposition: absolute;\n\t\t\t\theight: ", "px;\n\t\t\t\twidth: ", "px;\n\t\t\t\tborder-radius: 50%;\n\t\t\t\tpointer-events: none;\n\t\t\t\ttop: 2px;\n\t\t\t\tright: ", ";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: ' ';\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t/* floating dot for adding column button - overriding style on last column to avoid scroll */\n\t\t", "\n\n\t\t.", " .", " {\n\t\t\tdisplay: block;\n\t\t}\n\n\t\ttable\n\t\t\ttr:first-of-type\n\t\t\ttd.", ",table\n\t\t\ttr:first-of-type\n\t\t\tth.", " {\n\t\t\t&.", ", &.", " {\n\t\t\t\t.", "::after {\n\t\t\t\t\t", ";\n\t\t\t\t}\n\n\t\t\t\t&.", " .", "::after {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\tz-index: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttable\n\t\t\ttr:first-of-type\n\t\t\ttd.", ",table\n\t\t\ttr:first-of-type\n\t\t\tth.", " {\n\t\t\t&.", ", &.", " {\n\t\t\t\t.", "::after {\n\t\t\t\t\t", ";\n\t\t\t\t\tborder-left: ", "px solid ", ";\n\t\t\t\t\tleft: -", "px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttable\n\t\t\ttr:first-of-type\n\t\t\ttd.", ",\n\t\t\ttable\n\t\t\ttr:first-of-type\n\t\t\tth.", " {\n\t\t\t&.", " {\n\t\t\t\t.", "::after {\n\t\t\t\t\t", ";\n\t\t\t\t}\n\n\t\t\t\t&.", " .", "::after {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\tborder-left: ", "px solid ", ";\n\t\t\t\t\tleft: -", "px;\n\t\t\t\t\tz-index: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", "\n\t\t\ttable\n\t\t\ttr:first-of-type\n\t\t\ttd.", ",\n\t\t\t.", "\n\t\t\ttable\n\t\t\ttr:first-of-type\n\t\t\tth.", " {\n\t\t\t.", "::after {\n\t\t\t\t", ";\n\t\t\t}\n\t\t}\n\t"])), _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _consts.columnControlsDecorationHeight + _styles.tableCellBorderWidth, _consts.columnControlsDecorationHeight, _consts.tableBorderColor, _consts.lineMarkerSize, _consts.lineMarkerSize, "var(--ds-space-negative-025, -2px)", columnHeaderButton("\n border-right: ".concat(_styles.tableCellBorderWidth, "px solid ").concat(_consts.tableBorderColor, ";\n border-top: ").concat(_styles.tableCellBorderWidth, "px solid ").concat(_consts.tableBorderColor, ";\n border-bottom: ").concat(_styles.tableCellBorderWidth, "px solid ").concat(_consts.tableBorderColor, ";\n box-sizing: content-box;\n height: ").concat(_consts.tableToolbarSize - 1, "px;\n width: 100%;\n position: absolute;\n top: ").concat(_consts.columnControlsDecorationHeight - _consts.tableToolbarSize, "px;\n left: 0px;\n z-index: ").concat(_consts.columnControlsZIndex, ";\n ")), getFloatingDotOverrides(), _types.TableCssClassName.WITH_CONTROLS, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.COLUMN_SELECTED, _types.TableCssClassName.HOVERED_TABLE, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, columnHeaderButtonSelected(), _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _consts.tableToolbarDeleteColor, _consts.tableBorderDeleteColor, (0, _stickyHeaderZIndex.getTableZIndexes)().dangerOverlay, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.COLUMN_SELECTED, _types.TableCssClassName.HOVERED_COLUMN, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, columnHeaderButtonSelected(), _styles.tableCellBorderWidth, _consts.tableBorderSelectedColor, _styles.tableCellBorderWidth, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.HOVERED_COLUMN, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, columnHeaderButtonSelected(), _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, _consts.tableToolbarDeleteColor, _consts.tableBorderDeleteColor, _styles.tableCellBorderWidth, _consts.tableBorderDeleteColor, _styles.tableCellBorderWidth, (0, _stickyHeaderZIndex.getTableZIndexes)().dangerOverlay, _types.TableCssClassName.TABLE_SELECTED, _types.TableCssClassName.TABLE_CELL, _types.TableCssClassName.TABLE_SELECTED, _types.TableCssClassName.TABLE_HEADER_CELL, _types.TableCssClassName.COLUMN_CONTROLS_DECORATIONS, columnHeaderButtonSelected());
128
129
  };
129
130
  var hoveredDeleteButton = exports.hoveredDeleteButton = function hoveredDeleteButton() {
130
131
  return (0, _react.css)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ".", " {\n\t\t.", ", .", ", .", " {\n\t\t\t", "\n\t\t}\n\t\t.", "::after {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t.", " > table {\n\t\t\ttd.", "::after {\n\t\t\t\tbackground: ", ";\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t}\n\t\t\tth.", " {\n\t\t\t\tbackground-color: unset;\n\t\t\t}\n\t\t\tth.", "::after {\n\t\t\t\tbackground: ", ";\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t}\n\t\t}\n\t}\n"])), _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.HOVERED_DELETE_BUTTON, _types.TableCssClassName.SELECTED_CELL, _types.TableCssClassName.COLUMN_SELECTED, _types.TableCssClassName.HOVERED_CELL, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? '' /* Cell borders handled by ::after overlay in rounded mode. */ : "border: 1px solid ".concat(_consts.tableBorderDeleteColor, ";"), _types.TableCssClassName.SELECTED_CELL, _consts.tableCellDeleteColor, _types.TableCssClassName.TABLE_NODE_WRAPPER, _types.TableCssClassName.HOVERED_NO_HIGHLIGHT, _consts.tableCellDeleteColor, _consts.tableBorderDeleteColor, _types.TableCssClassName.HOVERED_NO_HIGHLIGHT, _types.TableCssClassName.HOVERED_NO_HIGHLIGHT, _consts.tableCellDeleteColor, _consts.tableBorderDeleteColor);
@@ -142,7 +143,7 @@ var resizeLineStyles = function resizeLineStyles() {
142
143
  return (0, _react.css)(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n\t\tth.", "::before, td.", "::before {\n\t\t\tcontent: ' ';\n\t\t\tposition: absolute;\n\t\t\tleft: ", ";\n\t\t\ttop: -1px;\n\t\t\twidth: ", "px;\n\t\t\theight: calc(100% + 2px);\n\t\t\tbackground-color: ", ";\n\t\t\tz-index: ", ";\n\t\t}\n\n\t\tth.", "::before,\n\t\t\ttd.", "::before {\n\t\t\tcontent: ' ';\n\t\t\tposition: absolute;\n\t\t\tright: -1px;\n\t\t\ttop: -1px;\n\t\t\twidth: ", "px;\n\t\t\theight: calc(100% + 2px);\n\t\t\tbackground-color: ", ";\n\t\t\tz-index: ", ";\n\t\t}\n\n\t\t/* Styles when drag and drop is disabled - will be removed */\n\t\ttd.", "::before {\n\t\t\tcontent: ' ';\n\t\t\tposition: absolute;\n\t\t\tleft: ", ";\n\t\t\ttop: -1px;\n\t\t\twidth: ", "px;\n\t\t\theight: calc(100% + 2px);\n\t\t\tbackground-color: ", ";\n\t\t\tz-index: ", ";\n\t\t}\n\n\t\tth.", "::before {\n\t\t\tcontent: ' ';\n\t\t\tleft: ", ";\n\t\t\tposition: absolute;\n\t\t\twidth: ", "px;\n\t\t\theight: calc(100% + ", "px);\n\t\t\tbackground-color: ", ";\n\t\t\tz-index: ", ";\n\t\t\ttop: -", "px;\n\t\t}\n\n\t\ttd.", "::before {\n\t\t\tcontent: ' ';\n\t\t\tposition: absolute;\n\t\t\tright: -1px;\n\t\t\ttop: -1px;\n\t\t\twidth: ", "px;\n\t\t\theight: calc(100% + 2px);\n\t\t\tbackground-color: ", ";\n\t\t\tz-index: ", ";\n\t\t}\n\n\t\tth.", "::before {\n\t\t\tcontent: ' ';\n\t\t\tright: -1px;\n\t\t\tposition: absolute;\n\t\t\twidth: ", "px;\n\t\t\theight: calc(100% + ", "px);\n\t\t\tbackground-color: ", ";\n\t\t\tz-index: ", ";\n\t\t\ttop: -", "px;\n\t\t}\n\t"])), _types.TableCssClassName.WITH_DRAG_RESIZE_LINE, _types.TableCssClassName.WITH_DRAG_RESIZE_LINE, "var(--ds-space-negative-025, -2px)", _consts.resizeLineWidth, _consts.tableBorderSelectedColor, _consts.columnControlsZIndex * 2, _types.TableCssClassName.WITH_DRAG_RESIZE_LINE_LAST_COLUMN, _types.TableCssClassName.WITH_DRAG_RESIZE_LINE_LAST_COLUMN, _consts.resizeLineWidth, _consts.tableBorderSelectedColor, _consts.columnControlsZIndex * 2, _types.TableCssClassName.WITH_RESIZE_LINE, "var(--ds-space-negative-025, -2px)", _consts.resizeLineWidth, _consts.tableBorderSelectedColor, _consts.columnControlsZIndex * 2, _types.TableCssClassName.WITH_RESIZE_LINE, "var(--ds-space-negative-025, -2px)", _consts.resizeLineWidth, _consts.tableToolbarSize + _styles.tableCellBorderWidth, _consts.tableBorderSelectedColor, _consts.columnControlsZIndex * 2, _consts.tableToolbarSize + _styles.tableCellBorderWidth, _types.TableCssClassName.WITH_RESIZE_LINE_LAST_COLUMN, _consts.resizeLineWidth, _consts.tableBorderSelectedColor, _consts.columnControlsZIndex * 2, _types.TableCssClassName.WITH_RESIZE_LINE_LAST_COLUMN, _consts.resizeLineWidth, _consts.tableToolbarSize + _styles.tableCellBorderWidth, _consts.tableBorderSelectedColor, _consts.columnControlsZIndex * 2, _consts.tableToolbarSize + _styles.tableCellBorderWidth);
143
144
  };
144
145
  var resizeHandle = exports.resizeHandle = function resizeHandle() {
145
- return (0, _react.css)(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\t.", " {\n\t\t\tbackground-color: transparent;\n\t\t\tposition: absolute;\n\t\t\twidth: ", "px;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: -", "px;\n\t\t\tcursor: col-resize;\n\t\t\tz-index: ", ";\n\t\t}\n\n\t\ttr\n\t\t\tth:last-child\n\t\t\t.", ",\n\t\t\ttr\n\t\t\ttd:last-child\n\t\t\t.", " {\n\t\t\tbackground-color: transparent;\n\t\t\tposition: absolute;\n\t\t\twidth: ", "px;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 0;\n\t\t\tcursor: col-resize;\n\t\t\tz-index: ", ";\n\t\t}\n\n\t\t", "\n\n\t\ttable\n tr:first-of-type\n th.", "\n .", "::after,\n table\n tr:first-of-type\n td.", "\n .", "::after,\n\t /* Styles when drag and drop is disabled - will be removed */\n\t\ttable\n tr:first-of-type\n th.", "\n .", "::after,\n table\n tr:first-of-type\n td.", "\n .", "::after {\n\t\t\ttop: -", "px;\n\t\t\theight: calc(100% + ", "px);\n\t\t}\n\t}\n"])), _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _consts.resizeHandlerAreaWidth, _consts.resizeHandlerAreaWidth / 2, _consts.resizeHandlerZIndex, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _consts.resizeHandlerAreaWidth / 2, _consts.resizeHandlerZIndex, resizeLineStyles(), _types.TableCssClassName.WITH_DRAG_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _types.TableCssClassName.WITH_DRAG_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _consts.tableToolbarSize + _styles.tableCellBorderWidth, _consts.tableToolbarSize + _styles.tableCellBorderWidth);
146
+ return (0, _react.css)(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\t.", " {\n\t\t\tbackground-color: transparent;\n\t\t\tposition: absolute;\n\t\t\twidth: ", "px;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: -", "px;\n\t\t\tcursor: col-resize;\n\t\t\tz-index: ", ";\n\t\t}\n\n\t\ttr\n\t\t\tth:last-child\n\t\t\t.", ",\n\t\t\ttr\n\t\t\ttd:last-child\n\t\t\t.", " {\n\t\t\tbackground-color: transparent;\n\t\t\tposition: absolute;\n\t\t\twidth: ", "px;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 0;\n\t\t\tcursor: col-resize;\n\t\t\tz-index: ", ";\n\t\t}\n\n\t\t", "\n\n\t\ttable\n tr:first-of-type\n th.", "\n .", "::after,\n table\n tr:first-of-type\n td.", "\n .", "::after,\n\t /* Styles when drag and drop is disabled - will be removed */\n\t\ttable\n tr:first-of-type\n th.", "\n .", "::after,\n table\n tr:first-of-type\n td.", "\n .", "::after {\n\t\t\ttop: -", "px;\n\t\t\theight: calc(100% + ", "px);\n\t\t}\n\t}\n"])), _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _consts.resizeHandlerAreaWidth, _consts.resizeHandlerAreaWidth / 2, (0, _stickyHeaderZIndex.getTableZIndexes)().resizeHandle, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _consts.resizeHandlerAreaWidth / 2, (0, _stickyHeaderZIndex.getTableZIndexes)().resizeHandle, resizeLineStyles(), _types.TableCssClassName.WITH_DRAG_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _types.TableCssClassName.WITH_DRAG_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _types.TableCssClassName.WITH_RESIZE_LINE, _types.TableCssClassName.RESIZE_HANDLE_DECORATION, _consts.tableToolbarSize + _styles.tableCellBorderWidth, _consts.tableToolbarSize + _styles.tableCellBorderWidth);
146
147
  };
147
148
 
148
149
  // Drag and Drop: drop target insert line
@@ -9,7 +9,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
9
9
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
10
10
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
11
11
  import { TableMap } from '@atlaskit/editor-tables/table-map';
12
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
13
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
13
  import { pluginConfig as getPluginConfig } from '../pm-plugins/create-plugin-config';
15
14
  import { getPluginState } from '../pm-plugins/plugin-factory';
@@ -119,7 +118,7 @@ export default class TableView extends ReactNodeView {
119
118
  if (node && this.table && !node.contains(this.table)) {
120
119
  // Patch to prevent selection collapsing when moving the table down with ctrl + shift + down
121
120
  const selectionBeforeMove = this.view.state.selection;
122
- const shouldPreserveCellSelection = isExperimentEnabled('platform_editor_fix_table_move_shortcut') && selectionBeforeMove instanceof CellSelection;
121
+ const shouldPreserveCellSelection = selectionBeforeMove instanceof CellSelection;
123
122
 
124
123
  // Store the current ignoreMutation handler so we can restore it later
125
124
  oldIgnoreMutation = this.ignoreMutation;
@@ -5,7 +5,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
6
6
  import { TableMap } from '@atlaskit/editor-tables/table-map';
7
7
  import { findCellClosestToPos, findTable, getCellsInColumn, getCellsInRow, getSelectionRect, isSelectionType, isTableSelected, removeTable, selectColumns as selectColumnsTransform, selectColumn as selectColumnTransform, selectionCell, selectRows as selectRowsTransform, selectRow as selectRowTransform, setCellAttrs } from '@atlaskit/editor-tables/utils';
8
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
8
  import { TableCssClassName as ClassName, TableDecorations } from '../../types';
10
9
  import { getDecorations } from '../decorations/plugin';
11
10
  import { buildColumnResizingDecorations, clearColumnResizingDecorations } from '../decorations/utils/column-resizing';
@@ -428,12 +427,7 @@ export const selectColumn = (column, expand, triggeredByKeyboard = false) => cre
428
427
  if (!cells || !cells.length || typeof cells[0].pos !== 'number') {
429
428
  return false;
430
429
  }
431
- let selectionTransaction;
432
- if (isExperimentEnabled('platform_editor_table_menu_updates_patch_5')) {
433
- selectionTransaction = selectColumnWithMergedEdgeRows(state.tr, column, expand);
434
- } else {
435
- selectionTransaction = selectColumnTransform(column, expand)(state.tr);
436
- }
430
+ const selectionTransaction = selectColumnWithMergedEdgeRows(state.tr, column, expand);
437
431
  const decorations = createColumnSelectedDecoration(selectionTransaction);
438
432
  const decorationSet = updatePluginStateDecorations(state, decorations, TableDecorations.COLUMN_SELECTED);
439
433
  const targetCellPosition = cells[0].pos;
@@ -445,12 +439,7 @@ export const selectColumn = (column, expand, triggeredByKeyboard = false) => cre
445
439
  }
446
440
  };
447
441
  }, tr => {
448
- let selectionTransaction;
449
- if (isExperimentEnabled('platform_editor_table_menu_updates_patch_5')) {
450
- selectionTransaction = selectColumnWithMergedEdgeRows(tr, column, expand);
451
- } else {
452
- selectionTransaction = selectColumnTransform(column, expand)(tr);
453
- }
442
+ const selectionTransaction = selectColumnWithMergedEdgeRows(tr, column, expand);
454
443
  return selectionTransaction.setMeta('addToHistory', false).setMeta('selectedColumnViaKeyboard', triggeredByKeyboard);
455
444
  });
456
445
  export const selectColumns = columnIndexes => createCommand(state => {
@@ -1,7 +1,6 @@
1
1
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
2
2
  import { TableMap } from '@atlaskit/editor-tables/table-map';
3
3
  import { findTableClosestToPos, getSelectionRect } from '@atlaskit/editor-tables/utils';
4
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
5
4
  export const getSelectedColumnIndexes = selectionRect => {
6
5
  const columnIndexes = [];
7
6
  for (let i = selectionRect.left; i < selectionRect.right; i++) {
@@ -113,10 +112,5 @@ export const isFullRowOrColumnSelected = selection => {
113
112
  if (!(selection instanceof CellSelection)) {
114
113
  return false;
115
114
  }
116
- const isExistingFullRowOrColumnSelection = selection.isRowSelection() || selection.isColSelection() || isRowSelectionWithMergedFirstColumn(selection) || isColumnSelectionWithMergedFirstRow(selection);
117
- if (isExperimentEnabled('platform_editor_table_menu_updates_patch_5')) {
118
- return isExistingFullRowOrColumnSelection || isColumnSelectionWithMergedLastRow(selection);
119
- } else {
120
- return isExistingFullRowOrColumnSelection;
121
- }
115
+ return selection.isRowSelection() || selection.isColSelection() || isRowSelectionWithMergedFirstColumn(selection) || isColumnSelectionWithMergedFirstRow(selection) || isColumnSelectionWithMergedLastRow(selection);
122
116
  };
@@ -1,9 +1,9 @@
1
1
  import React, { useEffect, useMemo, useRef } from 'react';
2
2
  import { createPortal } from 'react-dom';
3
3
  import rafSchedule from 'raf-schd';
4
- import { akEditorTableCellOnStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
5
4
  import { TableCssClassName as ClassName } from '../../types';
6
5
  import { insertColumnButtonOffset } from '../common-styles';
6
+ import { getTableZIndexes } from '../sticky-header-z-index';
7
7
  const BUTTON_WIDTH = 20;
8
8
  export const calcLeftPos = ({
9
9
  buttonWidth,
@@ -131,7 +131,7 @@ export const FixedButton = ({
131
131
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
132
132
  top: fixedButtonTop + stickyHeader.padding + offset * 2,
133
133
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
134
- zIndex: akEditorTableCellOnStickyHeaderZIndex,
134
+ zIndex: getTableZIndexes().headerButton,
135
135
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
136
136
  left,
137
137
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -15,7 +15,7 @@ import { getPluginState as getTablePluginState } from '../../pm-plugins/plugin-f
15
15
  import { getColumnDeleteButtonParams, getColumnsWidths } from '../../pm-plugins/utils/column-controls';
16
16
  import { getRowDeleteButtonParams, getRowHeights } from '../../pm-plugins/utils/row-controls';
17
17
  import { TableCssClassName as ClassName } from '../../types';
18
- import { stickyRowZIndex } from '../consts';
18
+ import { getTableZIndexes } from '../sticky-header-z-index';
19
19
  import DeleteButton from './DeleteButton';
20
20
  import getPopupOptions from './getPopUpOptions';
21
21
  function getSelectionType(selection) {
@@ -275,7 +275,7 @@ class FloatingDeleteButton extends Component {
275
275
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
276
276
  top: pos.top,
277
277
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
278
- zIndex: stickyRowZIndex,
278
+ zIndex: getTableZIndexes().mask,
279
279
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
280
280
  left: rect.left + (pos.left || 0) - (this.state.selectionType === 'column' ? this.state.scrollLeft : 0) - (
281
281
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -6,15 +6,16 @@ import { ACTION, ACTION_SUBJECT, CONTENT_COMPONENT, EVENT_TYPE, INPUT_METHOD } f
6
6
  import { Popup } from '@atlaskit/editor-common/ui';
7
7
  import { closestElement } from '@atlaskit/editor-common/utils';
8
8
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
9
- import { akEditorTableCellOnStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
10
9
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
11
10
  import { TableMap } from '@atlaskit/editor-tables/table-map';
12
11
  import { findTable } from '@atlaskit/editor-tables/utils';
12
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
13
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
14
  import { insertColumnWithAnalytics, insertRowWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
15
15
  import { checkIfNumberColumnEnabled } from '../../pm-plugins/utils/nodes';
16
16
  import { isFullRowOrColumnSelected } from '../../pm-plugins/utils/selection';
17
17
  import { TableCssClassName as ClassName } from '../../types';
18
+ import { getTableZIndexes } from '../sticky-header-z-index';
18
19
  import getPopupOptions from './getPopupOptions';
19
20
  import { DragAndDropInsertButton } from './InsertButton';
20
21
  // Ignored via go/ees005
@@ -128,11 +129,14 @@ export class FloatingInsertButton extends React.Component {
128
129
  if (type === 'column' && expValEquals('platform_editor_table_menu_updates', 'isEnabled', true)) {
129
130
  verticalOffsetCorrection = Math.max(0, targetCellRef.getBoundingClientRect().top - tableRef.getBoundingClientRect().top);
130
131
  }
131
- // Fixed the 'add column button' not visible issue when sticky header is enabled
132
- // By setting the Popup z-index higher than the sticky header z-index ( common-styles.ts tr.sticky)
133
- // Only when inserting a column, otherwise set to undefined
134
- // Need to set z-index in the Popup, set z-index in the <DragAndDropInsertButton /> will not work
135
- const zIndex = expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') || type === 'column' ? akEditorTableCellOnStickyHeaderZIndex : undefined;
132
+ // Column inserts sit above the header; row inserts scroll behind it.
133
+ // Set the layer on the Popup because its children share its stacking context.
134
+ let zIndex;
135
+ if (type === 'row' && isExperimentEnabled('platform_editor_sticky_headers_zindex')) {
136
+ zIndex = getTableZIndexes().belowHeader;
137
+ } else if (expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') || type === 'column') {
138
+ zIndex = getTableZIndexes().headerButton;
139
+ }
136
140
  return /*#__PURE__*/React.createElement(Popup, _extends({
137
141
  target: targetCellRef,
138
142
  mountTo: tableContainerWrapper || mountPoint,
@@ -7,7 +7,6 @@ import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
7
7
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
8
8
  import { CellSelection } from '@atlaskit/editor-tables';
9
9
  import { getSelectionRect } from '@atlaskit/editor-tables/utils';
10
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
11
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
11
  import { clearHoverSelection, hoverCell, hoverColumns, selectColumn, selectColumns, toggleActiveTableMenu } from '../../../pm-plugins/commands';
13
12
  import { toggleDragMenuWithAnalytics } from '../../../pm-plugins/drag-and-drop/commands-with-analytics';
@@ -21,12 +20,7 @@ const getSelectedColumns = selection => {
21
20
  return [];
22
21
  }
23
22
  if (expValEquals('platform_editor_table_menu_updates', 'isEnabled', true)) {
24
- let isColumnSelection;
25
- if (isExperimentEnabled('platform_editor_table_menu_updates_patch_5')) {
26
- isColumnSelection = selection.isColSelection() || isColumnSelectionWithMergedFirstRow(selection) || isColumnSelectionWithMergedLastRow(selection);
27
- } else {
28
- isColumnSelection = selection.isColSelection() || isColumnSelectionWithMergedFirstRow(selection);
29
- }
23
+ const isColumnSelection = selection.isColSelection() || isColumnSelectionWithMergedFirstRow(selection) || isColumnSelectionWithMergedLastRow(selection);
30
24
  if (!isColumnSelection) {
31
25
  return [];
32
26
  }
@@ -81,12 +75,7 @@ export const ColumnControls = ({
81
75
  const columnParams = getRowsParams(colWidths !== null && colWidths !== void 0 ? colWidths : []);
82
76
  const colIndex = hoveredCell === null || hoveredCell === void 0 ? void 0 : hoveredCell.colIndex;
83
77
  const selectedColIndexes = getSelectedColumns(selection || editorView.state.selection);
84
- let renderedSelectedColIndexes;
85
- if (isExperimentEnabled('platform_editor_table_menu_updates_patch_5')) {
86
- renderedSelectedColIndexes = (activeTableMenu === null || activeTableMenu === void 0 ? void 0 : activeTableMenu.type) === 'column' ? [activeTableMenu.index] : selectedColIndexes;
87
- } else {
88
- renderedSelectedColIndexes = selectedColIndexes;
89
- }
78
+ const renderedSelectedColIndexes = (activeTableMenu === null || activeTableMenu === void 0 ? void 0 : activeTableMenu.type) === 'column' ? [activeTableMenu.index] : selectedColIndexes;
90
79
  const firstRow = tableRef.querySelector('tr');
91
80
  const hasHeaderRow = firstRow ? firstRow.getAttribute('data-header-row') : false;
92
81
  const rowControlStickyTop = 45;
@@ -8,7 +8,7 @@ import { css } from '@emotion/react';
8
8
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
9
9
  import { ANCHOR_VARIABLE_NAME, DRAG_HANDLE_WIDTH, tableMarginTop, tableSharedStyle, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
10
10
  import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
11
- import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorStickyHeaderZIndex, akEditorTableCellOnStickyHeaderZIndex, akEditorTableNumberColumnWidth, akEditorTableToolbarSize, akEditorUnitZIndex, getSelectionStyles, MAX_BROWSER_SCROLLBAR_HEIGHT, SelectionStyle, relativeSizeToBaseFontSize, akEditorSelectedBorderColor } from '@atlaskit/editor-shared-styles';
11
+ import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorStickyHeaderZIndex, akEditorTableNumberColumnWidth, akEditorTableToolbarSize, akEditorUnitZIndex, getSelectionStyles, MAX_BROWSER_SCROLLBAR_HEIGHT, SelectionStyle, relativeSizeToBaseFontSize, akEditorSelectedBorderColor } from '@atlaskit/editor-shared-styles';
12
12
  import { akEditorTableContainerBg } from '@atlaskit/editor-shared-styles/consts';
13
13
  import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
14
14
  import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
@@ -17,8 +17,9 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
17
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
18
  import { SORTING_ICON_CLASS_NAME } from '../pm-plugins/view-mode-sort/consts';
19
19
  import { TableCssClassName as ClassName } from '../types';
20
- import { aboveNativeStickyHeaderZIndex, belowNativeStickyHeaderZIndex, columnControlsDecorationHeight, dragRowControlsWidth, nativeStickyHeaderZIndex, resizeHandlerAreaWidth, resizeHandlerZIndex, resizeLineWidth, rowControlsZIndex, stickyHeaderBorderBottomWidth, stickyRowOffsetTop, stickyRowZIndex, tableBorderColor, tableBorderDeleteColor, tableBorderRadiusSize, tableBorderSelectedColor, tableCellBackgroundColor, tableCellDeleteColor, tableCellSelectedColor, tableColumnControlsHeight, tableControlsSpacing, tableHeaderCellBackgroundColor, tableHeaderCellSelectedColor, tableInsertColumnButtonSize, tablePadding, tableScrollbarOffset, tableTextColor, tableToolbarDeleteColor, tableToolbarSelectedColor, tableToolbarSize } from './consts';
20
+ import { columnControlsDecorationHeight, dragRowControlsWidth, resizeHandlerAreaWidth, resizeLineWidth, rowControlsZIndex, stickyHeaderBorderBottomWidth, stickyRowOffsetTop, tableBorderColor, tableBorderDeleteColor, tableBorderRadiusSize, tableBorderSelectedColor, tableCellBackgroundColor, tableCellDeleteColor, tableCellSelectedColor, tableColumnControlsHeight, tableControlsSpacing, tableHeaderCellBackgroundColor, tableHeaderCellSelectedColor, tableInsertColumnButtonSize, tablePadding, tableScrollbarOffset, tableTextColor, tableToolbarDeleteColor, tableToolbarSelectedColor, tableToolbarSize } from './consts';
21
21
  import { roundedTableOverrides } from './rounded-table-styles';
22
+ import { getTableZIndexes } from './sticky-header-z-index';
22
23
  import { columnControlsDecoration, columnControlsLineMarker, DeleteButton, dragCornerControlButton, dragInsertButtonWrapper, floatingColumnControls, HeaderButton, HeaderButtonDanger, HeaderButtonHover, hoveredCell, hoveredDeleteButton, hoveredWarningCell, insertColumnButtonWrapper, insertLine, InsertMarker, insertRowButtonWrapper, resizeHandle, rowControlsWrapperDotStyle } from './ui-styles';
23
24
  const cornerControlHeight = tableToolbarSize + 1;
24
25
 
@@ -249,6 +250,10 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
249
250
  ${rangeSelectionStylesForFakeBorders};
250
251
  ${viewModeSortStyles()};
251
252
 
253
+ ${isExperimentEnabled('platform_editor_sticky_headers_zindex') ? `.${ClassName.TABLE_CONTAINER} {
254
+ --ak-editor-table-resize-handle-z-index: ${getTableZIndexes().resizeHandle};
255
+ }` : ''}
256
+
252
257
  ${expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) ? `
253
258
  .ak-editor-panel:not([data-panel-type="custom"]) .${ClassName.TABLE_CONTAINER} {
254
259
  ${akEditorTableContainerBg}: ${"var(--ds-background-accent-blue-subtlest, #E9F2FE)"};
@@ -383,7 +388,7 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
383
388
  display: grid;
384
389
 
385
390
  /* to keep it above cell selection but below date and other nodes popups that are inside sticky header */
386
- z-index: ${akEditorTableCellOnStickyHeaderZIndex - 5};
391
+ z-index: ${getTableZIndexes().header};
387
392
 
388
393
  overflow-y: visible;
389
394
  overflow-x: hidden;
@@ -493,13 +498,13 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
493
498
  tr.${ClassName.NATIVE_STICKY} {
494
499
  position: sticky;
495
500
  top: ${tableMarginTop}px;
496
- z-index: ${expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? akEditorSmallZIndex : `calc(${akEditorTableCellOnStickyHeaderZIndex} - 5)`};
501
+ z-index: ${expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? akEditorSmallZIndex : `calc(${getTableZIndexes().header})`};
497
502
  box-shadow:
498
503
  inset -1px 1px ${tableBorderColor},
499
504
  inset 1px -1px ${tableBorderColor};
500
505
 
501
506
  &.${ClassName.NATIVE_STICKY_ACTIVE} {
502
- ${expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? `z-index: ${nativeStickyHeaderZIndex};` : ''}
507
+ ${expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? `z-index: ${getTableZIndexes().header};` : ''}
503
508
  box-shadow:
504
509
  inset -1px 1px ${tableBorderColor},
505
510
  inset 1px -1px ${tableBorderColor},
@@ -532,7 +537,7 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
532
537
  margin-bottom: -${tableMarginTop}px;
533
538
  position: sticky;
534
539
  border-top: ${tableMarginTop}px solid transparent;
535
- z-index: ${stickyRowZIndex};
540
+ z-index: ${getTableZIndexes().mask};
536
541
  }
537
542
 
538
543
  .${ClassName.TABLE_NODE_WRAPPER}:has(tr.${ClassName.NATIVE_STICKY_ACTIVE})::before {
@@ -561,7 +566,7 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
561
566
  > div
562
567
  > .${ClassName.DRAG_ROW_CONTROLS} {
563
568
  top: ${tableColumnControlsHeight}px;
564
- z-index: ${aboveNativeStickyHeaderZIndex};
569
+ z-index: ${getTableZIndexes().aboveHeader};
565
570
  }
566
571
 
567
572
  .${ClassName.TABLE_CONTAINER}:has(> .${ClassName.TABLE_NODE_WRAPPER_NO_OVERFLOW})
@@ -573,7 +578,7 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
573
578
  > .${ClassName.DRAG_ROW_CONTROLS_WRAPPER}
574
579
  > div
575
580
  > .${ClassName.DRAG_ROW_CONTROLS} {
576
- z-index: ${belowNativeStickyHeaderZIndex};
581
+ z-index: ${getTableZIndexes().belowHeader};
577
582
  }
578
583
 
579
584
  /** Corrects position of numbered column when sticky header top mask is present */
@@ -824,7 +829,7 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
824
829
  height: ${tableColumnControlsHeight}px;
825
830
  position: absolute;
826
831
  top: ${"var(--ds-space-negative-150, -12px)"};
827
- z-index: ${resizeHandlerZIndex};
832
+ z-index: ${getTableZIndexes().resizeHandle};
828
833
  }
829
834
 
830
835
  .${ClassName.DRAG_COLUMN_FLOATING_INSERT_DOT_WRAPPER} {
@@ -1145,7 +1150,7 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
1145
1150
  left: -1px;
1146
1151
  top: -1px;
1147
1152
  bottom: 0;
1148
- z-index: ${akEditorUnitZIndex * 100};
1153
+ z-index: ${getTableZIndexes().dangerOverlay};
1149
1154
  display: inline-block;
1150
1155
  pointer-events: none;
1151
1156
  background: ${tableCellDeleteColor};
@@ -1170,13 +1175,13 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
1170
1175
  }
1171
1176
  &.${ClassName.HOVERED_CELL_IN_DANGER}::after {
1172
1177
  ${tableBorderStyles()};
1173
- z-index: ${akEditorUnitZIndex * 100};
1178
+ z-index: ${getTableZIndexes().dangerOverlay};
1174
1179
  background: ${tableCellDeleteColor};
1175
1180
  }
1176
1181
 
1177
1182
  &.${ClassName.HOVERED_NO_HIGHLIGHT}.${ClassName.HOVERED_CELL_IN_DANGER}::after {
1178
1183
  ${tableBorderStyles()};
1179
- z-index: ${akEditorUnitZIndex * 100};
1184
+ z-index: ${getTableZIndexes().dangerOverlay};
1180
1185
  background: ${tableCellDeleteColor};
1181
1186
  }
1182
1187
  }
@@ -1220,7 +1225,7 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
1220
1225
  position: fixed;
1221
1226
  position-area: top center;
1222
1227
  position-visibility: anchors-visible;
1223
- z-index: ${nativeStickyHeaderZIndex + 1};
1228
+ z-index: ${getTableZIndexes().aboveHeader};
1224
1229
  ${expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? isExperimentEnabled('platform_editor_table_q4_patch_8') ? `
1225
1230
  /* Transparent bottom 1px so the sticky header row's top border stays visible. */
1226
1231
  padding-bottom: 1px;
@@ -1241,7 +1246,7 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
1241
1246
  width: ${akEditorTableNumberColumnWidth + dragRowControlsWidth}px;
1242
1247
  height: ${expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_q4_patch_8') ? tableMarginTop - 1 : tableMarginTop}px;
1243
1248
  background: ${expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) ? `var(${akEditorTableContainerBg}, ${"var(--ds-surface, #FFFFFF)"})` : "var(--ds-surface, #FFFFFF)"};
1244
- z-index: ${nativeStickyHeaderZIndex - 1};
1249
+ z-index: ${getTableZIndexes().belowHeader};
1245
1250
  }
1246
1251
 
1247
1252
  /** Mask for numbered column content to the left of the header row */
@@ -1318,8 +1323,8 @@ expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? rangeS
1318
1323
 
1319
1324
  .${ClassName.TABLE_STICKY} .${ClassName.DRAG_COLUMN_CONTROLS_WRAPPER} {
1320
1325
  position: fixed;
1321
- /* higher zIndex than sticky header which is akEditorTableCellOnStickyHeaderZIndex - 5 */
1322
- z-index: ${akEditorTableCellOnStickyHeaderZIndex - 4};
1326
+ /* Keep column controls above the sticky header in both experiment cohorts. */
1327
+ z-index: ${getTableZIndexes().aboveHeader};
1323
1328
  }
1324
1329
 
1325
1330
  ${expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') ? `.${ClassName.TABLE_CONTAINER}.${ClassName.WITH_CONTROLS}:has(tr.sticky) .${ClassName.NUMBERED_COLUMN} .${ClassName.NUMBERED_COLUMN_BUTTON}:first-of-type {
@@ -7,7 +7,8 @@ import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorTableNumber
7
7
  import { akEditorTableContainerBg } from '@atlaskit/editor-shared-styles/consts';
8
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
9
  import { TableCssClassName as ClassName } from '../types';
10
- import { nativeStickyHeaderZIndex, tableBorderColor, tableBorderDeleteColor, tableBorderSelectedColor, tableCellSelectedColor } from './consts';
10
+ import { tableBorderColor, tableBorderDeleteColor, tableBorderSelectedColor, tableCellSelectedColor } from './consts';
11
+ import { getTableZIndexes } from './sticky-header-z-index';
11
12
  const roundedTableCellCornerStyles = () => css`
12
13
  .${ClassName.TABLE_NODE_WRAPPER} > table {
13
14
  /* Round table corner cells (including merged cells that span to the edge)
@@ -464,7 +465,7 @@ const roundedTableStickyHeaderCornerMaskStyles = () => css`
464
465
  margin-bottom: -12px;
465
466
  background: ${expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) ? `var(${akEditorTableContainerBg}, ${"var(--ds-surface, #FFFFFF)"})` : "var(--ds-surface, #FFFFFF)"};
466
467
  pointer-events: none;
467
- z-index: ${nativeStickyHeaderZIndex};
468
+ z-index: ${getTableZIndexes().header};
468
469
  }
469
470
 
470
471
  .${ClassName.TABLE_CONTAINER}[data-number-column='true']
@@ -0,0 +1,29 @@
1
+ import { akEditorTableCellOnStickyHeaderZIndex, akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
2
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
3
+ import { aboveNativeStickyHeaderZIndex, belowNativeStickyHeaderZIndex, nativeStickyHeaderZIndex, resizeHandlerZIndex, stickyRowZIndex } from './consts';
4
+ // Keep table content below its sticky masks and header, and the entire table chrome
5
+ // below block controls (100) and Object Sidebar controls (300).
6
+ export const getTableZIndexes = () => {
7
+ if (isExperimentEnabled('platform_editor_sticky_headers_zindex')) {
8
+ const headerZIndex = 90;
9
+ const tableLayerGap = 10;
10
+ return {
11
+ header: headerZIndex,
12
+ aboveHeader: headerZIndex + akEditorUnitZIndex,
13
+ belowHeader: headerZIndex - akEditorUnitZIndex,
14
+ headerButton: headerZIndex + akEditorUnitZIndex * 2,
15
+ mask: headerZIndex - akEditorUnitZIndex * 2,
16
+ resizeHandle: headerZIndex - tableLayerGap,
17
+ dangerOverlay: headerZIndex - tableLayerGap * 2
18
+ };
19
+ }
20
+ return {
21
+ header: nativeStickyHeaderZIndex,
22
+ aboveHeader: aboveNativeStickyHeaderZIndex,
23
+ belowHeader: belowNativeStickyHeaderZIndex,
24
+ headerButton: akEditorTableCellOnStickyHeaderZIndex,
25
+ mask: stickyRowZIndex,
26
+ resizeHandle: resizeHandlerZIndex,
27
+ dangerOverlay: 100
28
+ };
29
+ };
@@ -5,7 +5,8 @@ import { tableCellBorderWidth } from '@atlaskit/editor-common/styles';
5
5
  import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
7
  import { TableCssClassName as ClassName } from '../types';
8
- import { columnControlsDecorationHeight, columnControlsSelectedZIndex, columnControlsZIndex, dragTableInsertColumnButtonSize, insertLineWidth, lineMarkerSize, resizeHandlerAreaWidth, resizeHandlerZIndex, resizeLineWidth, tableBorderColor, tableBorderDeleteColor, tableBorderSelectedColor, tableCellDeleteColor, tableCellHoverDeleteIconBackground, tableCellHoverDeleteIconColor, tableCellSelectedDeleteIconBackground, tableCellSelectedDeleteIconColor, tableDeleteButtonSize, tableHeaderCellBackgroundColor, tableInsertColumnButtonSize, tableToolbarDeleteColor, tableToolbarSelectedColor, tableToolbarSize } from './consts';
8
+ import { columnControlsDecorationHeight, columnControlsSelectedZIndex, columnControlsZIndex, dragTableInsertColumnButtonSize, insertLineWidth, lineMarkerSize, resizeHandlerAreaWidth, resizeLineWidth, tableBorderColor, tableBorderDeleteColor, tableBorderSelectedColor, tableCellDeleteColor, tableCellHoverDeleteIconBackground, tableCellHoverDeleteIconColor, tableCellSelectedDeleteIconBackground, tableCellSelectedDeleteIconColor, tableDeleteButtonSize, tableHeaderCellBackgroundColor, tableInsertColumnButtonSize, tableToolbarDeleteColor, tableToolbarSelectedColor, tableToolbarSize } from './consts';
9
+ import { getTableZIndexes } from './sticky-header-z-index';
9
10
  const InsertLine = cssString => css`
10
11
  .${ClassName.CONTROLS_INSERT_LINE} {
11
12
  background: ${tableBorderSelectedColor};
@@ -421,7 +422,7 @@ export const columnControlsDecoration = () => {
421
422
  &.${ClassName.HOVERED_CELL_IN_DANGER} .${ClassName.COLUMN_CONTROLS_DECORATIONS}::after {
422
423
  background-color: ${tableToolbarDeleteColor};
423
424
  border-color: ${tableBorderDeleteColor};
424
- z-index: ${akEditorUnitZIndex * 100};
425
+ z-index: ${getTableZIndexes().dangerOverlay};
425
426
  }
426
427
  }
427
428
  }
@@ -456,7 +457,7 @@ export const columnControlsDecoration = () => {
456
457
  border-color: ${tableBorderDeleteColor};
457
458
  border-left: ${tableCellBorderWidth}px solid ${tableBorderDeleteColor};
458
459
  left: -${tableCellBorderWidth}px;
459
- z-index: ${akEditorUnitZIndex * 100};
460
+ z-index: ${getTableZIndexes().dangerOverlay};
460
461
  }
461
462
  }
462
463
  }
@@ -607,7 +608,7 @@ export const resizeHandle = () => css`
607
608
  top: 0;
608
609
  right: -${resizeHandlerAreaWidth / 2}px;
609
610
  cursor: col-resize;
610
- z-index: ${resizeHandlerZIndex};
611
+ z-index: ${getTableZIndexes().resizeHandle};
611
612
  }
612
613
 
613
614
  tr
@@ -623,7 +624,7 @@ export const resizeHandle = () => css`
623
624
  top: 0;
624
625
  right: 0;
625
626
  cursor: col-resize;
626
- z-index: ${resizeHandlerZIndex};
627
+ z-index: ${getTableZIndexes().resizeHandle};
627
628
  }
628
629
 
629
630
  ${resizeLineStyles()}
@@ -19,7 +19,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
19
19
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
20
20
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
21
21
  import { TableMap } from '@atlaskit/editor-tables/table-map';
22
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
23
22
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
24
23
  import { pluginConfig as getPluginConfig } from '../pm-plugins/create-plugin-config';
25
24
  import { getPluginState } from '../pm-plugins/plugin-factory';
@@ -142,7 +141,7 @@ var TableView = /*#__PURE__*/function (_ReactNodeView) {
142
141
  if (node && this.table && !node.contains(this.table)) {
143
142
  // Patch to prevent selection collapsing when moving the table down with ctrl + shift + down
144
143
  var selectionBeforeMove = this.view.state.selection;
145
- var shouldPreserveCellSelection = isExperimentEnabled('platform_editor_fix_table_move_shortcut') && selectionBeforeMove instanceof CellSelection;
144
+ var shouldPreserveCellSelection = selectionBeforeMove instanceof CellSelection;
146
145
 
147
146
  // Store the current ignoreMutation handler so we can restore it later
148
147
  oldIgnoreMutation = this.ignoreMutation;
@@ -9,7 +9,6 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
9
9
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
10
10
  import { TableMap } from '@atlaskit/editor-tables/table-map';
11
11
  import { findCellClosestToPos, findTable, getCellsInColumn, getCellsInRow, getSelectionRect, isSelectionType, isTableSelected, removeTable, selectColumns as selectColumnsTransform, selectColumn as selectColumnTransform, selectionCell, selectRows as selectRowsTransform, selectRow as selectRowTransform, setCellAttrs } from '@atlaskit/editor-tables/utils';
12
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
13
12
  import { TableCssClassName as ClassName, TableDecorations } from '../../types';
14
13
  import { getDecorations } from '../decorations/plugin';
15
14
  import { buildColumnResizingDecorations, clearColumnResizingDecorations } from '../decorations/utils/column-resizing';
@@ -415,12 +414,7 @@ export var selectColumn = function selectColumn(column, expand) {
415
414
  if (!cells || !cells.length || typeof cells[0].pos !== 'number') {
416
415
  return false;
417
416
  }
418
- var selectionTransaction;
419
- if (isExperimentEnabled('platform_editor_table_menu_updates_patch_5')) {
420
- selectionTransaction = selectColumnWithMergedEdgeRows(state.tr, column, expand);
421
- } else {
422
- selectionTransaction = selectColumnTransform(column, expand)(state.tr);
423
- }
417
+ var selectionTransaction = selectColumnWithMergedEdgeRows(state.tr, column, expand);
424
418
  var decorations = createColumnSelectedDecoration(selectionTransaction);
425
419
  var decorationSet = updatePluginStateDecorations(state, decorations, TableDecorations.COLUMN_SELECTED);
426
420
  var targetCellPosition = cells[0].pos;
@@ -432,12 +426,7 @@ export var selectColumn = function selectColumn(column, expand) {
432
426
  }
433
427
  };
434
428
  }, function (tr) {
435
- var selectionTransaction;
436
- if (isExperimentEnabled('platform_editor_table_menu_updates_patch_5')) {
437
- selectionTransaction = selectColumnWithMergedEdgeRows(tr, column, expand);
438
- } else {
439
- selectionTransaction = selectColumnTransform(column, expand)(tr);
440
- }
429
+ var selectionTransaction = selectColumnWithMergedEdgeRows(tr, column, expand);
441
430
  return selectionTransaction.setMeta('addToHistory', false).setMeta('selectedColumnViaKeyboard', triggeredByKeyboard);
442
431
  });
443
432
  };
@@ -1,7 +1,6 @@
1
1
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
2
2
  import { TableMap } from '@atlaskit/editor-tables/table-map';
3
3
  import { findTableClosestToPos, getSelectionRect } from '@atlaskit/editor-tables/utils';
4
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
5
4
  export var getSelectedColumnIndexes = function getSelectedColumnIndexes(selectionRect) {
6
5
  var columnIndexes = [];
7
6
  for (var i = selectionRect.left; i < selectionRect.right; i++) {
@@ -113,10 +112,5 @@ export var isFullRowOrColumnSelected = function isFullRowOrColumnSelected(select
113
112
  if (!(selection instanceof CellSelection)) {
114
113
  return false;
115
114
  }
116
- var isExistingFullRowOrColumnSelection = selection.isRowSelection() || selection.isColSelection() || isRowSelectionWithMergedFirstColumn(selection) || isColumnSelectionWithMergedFirstRow(selection);
117
- if (isExperimentEnabled('platform_editor_table_menu_updates_patch_5')) {
118
- return isExistingFullRowOrColumnSelection || isColumnSelectionWithMergedLastRow(selection);
119
- } else {
120
- return isExistingFullRowOrColumnSelection;
121
- }
115
+ return selection.isRowSelection() || selection.isColSelection() || isRowSelectionWithMergedFirstColumn(selection) || isColumnSelectionWithMergedFirstRow(selection) || isColumnSelectionWithMergedLastRow(selection);
122
116
  };
@@ -1,9 +1,9 @@
1
1
  import React, { useEffect, useMemo, useRef } from 'react';
2
2
  import { createPortal } from 'react-dom';
3
3
  import rafSchedule from 'raf-schd';
4
- import { akEditorTableCellOnStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
5
4
  import { TableCssClassName as ClassName } from '../../types';
6
5
  import { insertColumnButtonOffset } from '../common-styles';
6
+ import { getTableZIndexes } from '../sticky-header-z-index';
7
7
  var BUTTON_WIDTH = 20;
8
8
  export var calcLeftPos = function calcLeftPos(_ref) {
9
9
  var buttonWidth = _ref.buttonWidth,
@@ -129,7 +129,7 @@ export var FixedButton = function FixedButton(_ref2) {
129
129
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
130
130
  top: fixedButtonTop + stickyHeader.padding + offset * 2,
131
131
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
132
- zIndex: akEditorTableCellOnStickyHeaderZIndex,
132
+ zIndex: getTableZIndexes().headerButton,
133
133
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
134
134
  left: left,
135
135
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -24,7 +24,7 @@ import { getPluginState as getTablePluginState } from '../../pm-plugins/plugin-f
24
24
  import { getColumnDeleteButtonParams, getColumnsWidths } from '../../pm-plugins/utils/column-controls';
25
25
  import { getRowDeleteButtonParams, getRowHeights } from '../../pm-plugins/utils/row-controls';
26
26
  import { TableCssClassName as ClassName } from '../../types';
27
- import { stickyRowZIndex } from '../consts';
27
+ import { getTableZIndexes } from '../sticky-header-z-index';
28
28
  import DeleteButton from './DeleteButton';
29
29
  import getPopupOptions from './getPopUpOptions';
30
30
  function getSelectionType(selection) {
@@ -219,7 +219,7 @@ var FloatingDeleteButton = /*#__PURE__*/function (_Component) {
219
219
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
220
220
  top: pos.top,
221
221
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
222
- zIndex: stickyRowZIndex,
222
+ zIndex: getTableZIndexes().mask,
223
223
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
224
224
  left: rect.left + (pos.left || 0) - (this.state.selectionType === 'column' ? this.state.scrollLeft : 0) - (
225
225
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766