@atlaskit/editor-plugin-table 15.4.16 → 15.4.17

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 15.4.17
4
+
5
+ ### Patch Changes
6
+
7
+ - [`193738561b24f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/193738561b24f) -
8
+ [ux] Fix bug where contextual table cell button not rendered when overflowing
9
+
3
10
  ## 15.4.16
4
11
 
5
12
  ### Patch Changes
@@ -106,7 +106,8 @@ var FloatingContextualButtonInner = /*#__PURE__*/_react.default.memo(function (p
106
106
  "aria-expanded": isContextualMenuOpen
107
107
  }));
108
108
  var parentSticky = targetCellRef.parentElement && targetCellRef.parentElement.className.indexOf('sticky') > -1;
109
- if ((0, _expValEquals.expValEquals)('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && (0, _anchor.isAnchorSupported)() && targetCellRef.nodeName === 'TH') {
109
+ var parentStickyNative = targetCellRef.parentElement && targetCellRef.parentElement.classList.contains(_types.TableCssClassName.NATIVE_STICKY);
110
+ if ((0, _expValEquals.expValEquals)('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && (0, _anchor.isAnchorSupported)() && targetCellRef.nodeName === 'TH' && parentStickyNative) {
110
111
  var _targetCellRef$datase;
111
112
  var anchorName = (_targetCellRef$datase = targetCellRef.dataset.nodeAnchor) !== null && _targetCellRef$datase !== void 0 ? _targetCellRef$datase : '';
112
113
  return (0, _react2.jsx)("div", {
@@ -104,7 +104,8 @@ const FloatingContextualButtonInner = /*#__PURE__*/React.memo(props => {
104
104
  "aria-expanded": isContextualMenuOpen
105
105
  }));
106
106
  const parentSticky = targetCellRef.parentElement && targetCellRef.parentElement.className.indexOf('sticky') > -1;
107
- if (expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && isAnchorSupported() && targetCellRef.nodeName === 'TH') {
107
+ const parentStickyNative = targetCellRef.parentElement && targetCellRef.parentElement.classList.contains(ClassName.NATIVE_STICKY);
108
+ if (expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && isAnchorSupported() && targetCellRef.nodeName === 'TH' && parentStickyNative) {
108
109
  var _targetCellRef$datase;
109
110
  const anchorName = (_targetCellRef$datase = targetCellRef.dataset.nodeAnchor) !== null && _targetCellRef$datase !== void 0 ? _targetCellRef$datase : '';
110
111
  return jsx("div", {
@@ -96,7 +96,8 @@ var FloatingContextualButtonInner = /*#__PURE__*/React.memo(function (props) {
96
96
  "aria-expanded": isContextualMenuOpen
97
97
  }));
98
98
  var parentSticky = targetCellRef.parentElement && targetCellRef.parentElement.className.indexOf('sticky') > -1;
99
- if (expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && isAnchorSupported() && targetCellRef.nodeName === 'TH') {
99
+ var parentStickyNative = targetCellRef.parentElement && targetCellRef.parentElement.classList.contains(ClassName.NATIVE_STICKY);
100
+ if (expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && isAnchorSupported() && targetCellRef.nodeName === 'TH' && parentStickyNative) {
100
101
  var _targetCellRef$datase;
101
102
  var anchorName = (_targetCellRef$datase = targetCellRef.dataset.nodeAnchor) !== null && _targetCellRef$datase !== void 0 ? _targetCellRef$datase : '';
102
103
  return jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "15.4.16",
3
+ "version": "15.4.17",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"