@atlaskit/editor-plugin-table 15.0.4 → 15.0.5

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,13 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 15.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a3254a75cdfb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3254a75cdfb7) -
8
+ [ED-29448] clean up experiment platform_editor_toolbar_aifc_patch_2
9
+ - Updated dependencies
10
+
3
11
  ## 15.0.4
4
12
 
5
13
  ### Patch Changes
@@ -266,7 +266,7 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
266
266
  tr.setMeta(_tableAnalytics.META_KEYS.OVERFLOW_TRIGGER, {
267
267
  name: _analytics.TABLE_OVERFLOW_CHANGE_TRIGGER.RESIZED
268
268
  });
269
- if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) || (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true)) {
269
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) || (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true)) {
270
270
  var _pluginInjectionApi$u;
271
271
  pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$u = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u === void 0 || _pluginInjectionApi$u.commands.setCurrentUserIntent('resizing')({
272
272
  tr: tr
@@ -343,7 +343,7 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
343
343
  tableRef: null
344
344
  });
345
345
  tr.setMeta('is-resizer-resizing', false);
346
- if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) || (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true)) {
346
+ if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) || (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true)) {
347
347
  var _pluginInjectionApi$u2;
348
348
  pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$u2 = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u2 === void 0 || _pluginInjectionApi$u2.commands.setCurrentUserIntent('default')({
349
349
  tr: tr
@@ -526,7 +526,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
526
526
  boundariesElement: boundariesElement,
527
527
  scrollableElement: scrollableElement
528
528
  });
529
- return (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? (0, _react2.jsx)(_userIntent.UserIntentPopupWrapper, {
529
+ return (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) ? (0, _react2.jsx)(_userIntent.UserIntentPopupWrapper, {
530
530
  api: api
531
531
  }, Menu) : Menu;
532
532
  });
@@ -259,7 +259,7 @@ export const TableResizer = ({
259
259
  tr.setMeta(META_KEYS.OVERFLOW_TRIGGER, {
260
260
  name: TABLE_OVERFLOW_CHANGE_TRIGGER.RESIZED
261
261
  });
262
- if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true)) {
262
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || editorExperiment('platform_editor_toolbar_aifc', true)) {
263
263
  var _pluginInjectionApi$u;
264
264
  pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$u = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u === void 0 ? void 0 : _pluginInjectionApi$u.commands.setCurrentUserIntent('resizing')({
265
265
  tr
@@ -338,7 +338,7 @@ export const TableResizer = ({
338
338
  tableRef: null
339
339
  });
340
340
  tr.setMeta('is-resizer-resizing', false);
341
- if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true)) {
341
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || editorExperiment('platform_editor_toolbar_aifc', true)) {
342
342
  var _pluginInjectionApi$u2;
343
343
  pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$u2 = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u2 === void 0 ? void 0 : _pluginInjectionApi$u2.commands.setCurrentUserIntent('default')({
344
344
  tr
@@ -525,7 +525,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
525
525
  boundariesElement: boundariesElement,
526
526
  scrollableElement: scrollableElement
527
527
  });
528
- return editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? jsx(UserIntentPopupWrapper, {
528
+ return editorExperiment('platform_editor_toolbar_aifc', true) ? jsx(UserIntentPopupWrapper, {
529
529
  api: api
530
530
  }, Menu) : Menu;
531
531
  });
@@ -257,7 +257,7 @@ export var TableResizer = function TableResizer(_ref) {
257
257
  tr.setMeta(META_KEYS.OVERFLOW_TRIGGER, {
258
258
  name: TABLE_OVERFLOW_CHANGE_TRIGGER.RESIZED
259
259
  });
260
- if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true)) {
260
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || editorExperiment('platform_editor_toolbar_aifc', true)) {
261
261
  var _pluginInjectionApi$u;
262
262
  pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$u = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u === void 0 || _pluginInjectionApi$u.commands.setCurrentUserIntent('resizing')({
263
263
  tr: tr
@@ -334,7 +334,7 @@ export var TableResizer = function TableResizer(_ref) {
334
334
  tableRef: null
335
335
  });
336
336
  tr.setMeta('is-resizer-resizing', false);
337
- if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true)) {
337
+ if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) || editorExperiment('platform_editor_toolbar_aifc', true)) {
338
338
  var _pluginInjectionApi$u2;
339
339
  pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$u2 = pluginInjectionApi.userIntent) === null || _pluginInjectionApi$u2 === void 0 || _pluginInjectionApi$u2.commands.setCurrentUserIntent('default')({
340
340
  tr: tr
@@ -515,7 +515,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
515
515
  boundariesElement: boundariesElement,
516
516
  scrollableElement: scrollableElement
517
517
  });
518
- return editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? jsx(UserIntentPopupWrapper, {
518
+ return editorExperiment('platform_editor_toolbar_aifc', true) ? jsx(UserIntentPopupWrapper, {
519
519
  api: api
520
520
  }, Menu) : Menu;
521
521
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "15.0.4",
3
+ "version": "15.0.5",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/primitives": "^14.15.0",
60
60
  "@atlaskit/react-ufo": "^4.11.0",
61
61
  "@atlaskit/theme": "^21.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^13.1.0",
62
+ "@atlaskit/tmp-editor-statsig": "^13.2.0",
63
63
  "@atlaskit/toggle": "^15.1.0",
64
64
  "@atlaskit/tokens": "^6.4.0",
65
65
  "@atlaskit/tooltip": "^20.5.0",