@atlaskit/editor-plugin-table 15.1.0 → 15.1.2

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,20 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 15.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7c61ac7c9ef3d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7c61ac7c9ef3d) -
8
+ Clean up platform_editor_table_drag_menu_flickers_fix
9
+
10
+ ## 15.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`1ad50530f4fdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1ad50530f4fdd) -
15
+ fix wrong experiment for table toDOM relates to table overflow shadow
16
+ - Updated dependencies
17
+
3
18
  ## 15.1.0
4
19
 
5
20
  ### Minor Changes
@@ -111,7 +111,7 @@ var tableNodeSpecWithFixedToDOM = exports.tableNodeSpecWithFixedToDOM = function
111
111
  class: 'pm-table-sticky-sentinel-bottom',
112
112
  'data-testid': 'sticky-sentinel-bottom'
113
113
  }]];
114
- var tableContainerDiv = (0, _expValEquals.expValEquals)('platform_editor_tables_scaling_css', 'isEnabled', true) ? tableContainerDivNext : tableContainerDivLegacy;
114
+ var tableContainerDiv = (0, _expValEquals.expValEquals)('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant1') || (0, _expValEquals.expValEquals)('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant2') || (0, _expValEquals.expValEquals)('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant3') ? tableContainerDivNext : tableContainerDivLegacy;
115
115
  if (!config.tableResizingEnabled || (0, _expValEquals.expValEquals)('platform_editor_tables_scaling_css', 'isEnabled', true) && config.isNested) {
116
116
  return ['div', {
117
117
  class: 'tableView-content-wrap',
@@ -14,7 +14,6 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
14
14
  var _uiReact = require("@atlaskit/editor-common/ui-react");
15
15
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
16
  var _menu = require("@atlaskit/menu");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _consts = require("../consts");
19
18
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
19
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
@@ -174,7 +173,7 @@ var DropdownMenu = exports.DropdownMenu = function DropdownMenu(_ref) {
174
173
  zIndex: _editorSharedStyles.akEditorFloatingPanelZIndex,
175
174
  offset: [offsetX, offsetY],
176
175
  allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
177
- }, (0, _platformFeatureFlags.fg)('platform_editor_table_drag_menu_flickers_fix') ? /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
176
+ }, /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
178
177
  closeOnTab: !disableKeyboardHandling,
179
178
  type: _uiMenu.ArrowKeyNavigationType.MENU,
180
179
  handleClose: onClose,
@@ -186,11 +185,6 @@ var DropdownMenu = exports.DropdownMenu = function DropdownMenu(_ref) {
186
185
  // Hence set disableArrowKeyNavigation to true when disableKeyboardHandling is true
187
186
  ,
188
187
  disableArrowKeyNavigation: disableKeyboardHandling
189
- }, innerMenu()) : disableKeyboardHandling ? innerMenu() : /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
190
- closeOnTab: true,
191
- type: _uiMenu.ArrowKeyNavigationType.MENU,
192
- handleClose: onClose,
193
- onSelection: onSelection
194
188
  }, innerMenu())))
195
189
  );
196
190
  };
@@ -96,7 +96,7 @@ export const tableNodeSpecWithFixedToDOM = config => {
96
96
  class: 'pm-table-sticky-sentinel-bottom',
97
97
  'data-testid': 'sticky-sentinel-bottom'
98
98
  }]];
99
- const tableContainerDiv = expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true) ? tableContainerDivNext : tableContainerDivLegacy;
99
+ const tableContainerDiv = expValEquals('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant1') || expValEquals('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant2') || expValEquals('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant3') ? tableContainerDivNext : tableContainerDivLegacy;
100
100
  if (!config.tableResizingEnabled || expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true) && config.isNested) {
101
101
  return ['div', {
102
102
  class: 'tableView-content-wrap',
@@ -6,7 +6,6 @@ import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenuItem }
6
6
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
7
7
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
8
8
  import { MenuGroup, Section } from '@atlaskit/menu';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { dragMenuDropdownWidth } from '../consts';
11
10
  const DropListWithOutsideClickTargetRef = props => {
12
11
  const setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
@@ -150,7 +149,7 @@ export const DropdownMenu = ({
150
149
  zIndex: akEditorFloatingPanelZIndex,
151
150
  offset: [offsetX, offsetY],
152
151
  allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
153
- }, fg('platform_editor_table_drag_menu_flickers_fix') ? /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
152
+ }, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
154
153
  closeOnTab: !disableKeyboardHandling,
155
154
  type: ArrowKeyNavigationType.MENU,
156
155
  handleClose: onClose,
@@ -162,11 +161,6 @@ export const DropdownMenu = ({
162
161
  // Hence set disableArrowKeyNavigation to true when disableKeyboardHandling is true
163
162
  ,
164
163
  disableArrowKeyNavigation: disableKeyboardHandling
165
- }, innerMenu()) : disableKeyboardHandling ? innerMenu() : /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
166
- closeOnTab: true,
167
- type: ArrowKeyNavigationType.MENU,
168
- handleClose: onClose,
169
- onSelection: onSelection
170
164
  }, innerMenu())))
171
165
  );
172
166
  };
@@ -104,7 +104,7 @@ export var tableNodeSpecWithFixedToDOM = function tableNodeSpecWithFixedToDOM(co
104
104
  class: 'pm-table-sticky-sentinel-bottom',
105
105
  'data-testid': 'sticky-sentinel-bottom'
106
106
  }]];
107
- var tableContainerDiv = expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true) ? tableContainerDivNext : tableContainerDivLegacy;
107
+ var tableContainerDiv = expValEquals('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant1') || expValEquals('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant2') || expValEquals('platform_editor_disable_table_overflow_shadows', 'cohort', 'variant3') ? tableContainerDivNext : tableContainerDivLegacy;
108
108
  if (!config.tableResizingEnabled || expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true) && config.isNested) {
109
109
  return ['div', {
110
110
  class: 'tableView-content-wrap',
@@ -7,7 +7,6 @@ import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenuItem }
7
7
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
8
8
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
9
9
  import { MenuGroup, Section } from '@atlaskit/menu';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
10
  import { dragMenuDropdownWidth } from '../consts';
12
11
  var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
13
12
  var setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
@@ -164,7 +163,7 @@ export var DropdownMenu = function DropdownMenu(_ref) {
164
163
  zIndex: akEditorFloatingPanelZIndex,
165
164
  offset: [offsetX, offsetY],
166
165
  allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
167
- }, fg('platform_editor_table_drag_menu_flickers_fix') ? /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
166
+ }, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
168
167
  closeOnTab: !disableKeyboardHandling,
169
168
  type: ArrowKeyNavigationType.MENU,
170
169
  handleClose: onClose,
@@ -176,11 +175,6 @@ export var DropdownMenu = function DropdownMenu(_ref) {
176
175
  // Hence set disableArrowKeyNavigation to true when disableKeyboardHandling is true
177
176
  ,
178
177
  disableArrowKeyNavigation: disableKeyboardHandling
179
- }, innerMenu()) : disableKeyboardHandling ? innerMenu() : /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
180
- closeOnTab: true,
181
- type: ArrowKeyNavigationType.MENU,
182
- handleClose: onClose,
183
- onSelection: onSelection
184
178
  }, innerMenu())))
185
179
  );
186
180
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "15.1.0",
3
+ "version": "15.1.2",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -145,9 +145,6 @@
145
145
  "platform_editor_fix_table_resizing_undo": {
146
146
  "type": "boolean"
147
147
  },
148
- "platform_editor_table_drag_menu_flickers_fix": {
149
- "type": "boolean"
150
- },
151
148
  "platform_editor_table_fw_numcol_overflow_fix": {
152
149
  "type": "boolean"
153
150
  },