@atlaskit/editor-plugin-table 15.0.3 → 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,21 @@
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
+
11
+ ## 15.0.4
12
+
13
+ ### Patch Changes
14
+
15
+ - [`5292689cffab1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5292689cffab1) -
16
+ fix/ignore minor eslint issues ahead of bug fix for confirming the removal of tables
17
+ - Updated dependencies
18
+
3
19
  ## 15.0.3
4
20
 
5
21
  ### 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
  });
@@ -672,6 +672,7 @@ var getColorPicker = function getColorPicker(state, menu, _ref5, editorAnalytics
672
672
  var defaultPalette = _uiColor.cellBackgroundColorPalette.find(function (item) {
673
673
  return item.value === currentBackground;
674
674
  }) || {
675
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
675
676
  label: 'Custom',
676
677
  value: currentBackground,
677
678
  border: _uiColor.DEFAULT_BORDER_COLOR
@@ -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
  });
@@ -628,6 +628,7 @@ const getColorPicker = (state, menu, {
628
628
  const node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : undefined;
629
629
  const currentBackground = (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
630
630
  const defaultPalette = cellBackgroundColorPalette.find(item => item.value === currentBackground) || {
631
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
631
632
  label: 'Custom',
632
633
  value: currentBackground,
633
634
  border: DEFAULT_BORDER_COLOR
@@ -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
  });
@@ -665,6 +665,7 @@ var getColorPicker = function getColorPicker(state, menu, _ref5, editorAnalytics
665
665
  var defaultPalette = cellBackgroundColorPalette.find(function (item) {
666
666
  return item.value === currentBackground;
667
667
  }) || {
668
+ // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
668
669
  label: 'Custom',
669
670
  value: currentBackground,
670
671
  border: DEFAULT_BORDER_COLOR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "15.0.3",
3
+ "version": "15.0.5",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@atlaskit/adf-schema": "^51.2.0",
32
- "@atlaskit/button": "^23.4.0",
32
+ "@atlaskit/button": "^23.5.0",
33
33
  "@atlaskit/custom-steps": "^0.14.0",
34
34
  "@atlaskit/editor-palette": "^2.1.0",
35
35
  "@atlaskit/editor-plugin-accessibility-utils": "^6.0.0",
@@ -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.0.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",