@atlaskit/editor-plugin-table 24.5.2 → 24.5.3

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 (27) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/pm-plugins/commands/commands-with-analytics.js +1 -3
  3. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +4 -8
  4. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +3 -8
  5. package/dist/cjs/ui/TableMenu/column/items/SortDecreasingItem.js +1 -1
  6. package/dist/cjs/ui/TableMenu/column/items/SortIncreasingItem.js +1 -1
  7. package/dist/cjs/ui/TableMenu/shared/items/BackgroundColorItem.js +5 -10
  8. package/dist/cjs/ui/consts.js +2 -3
  9. package/dist/cjs/ui/toolbar.js +2 -7
  10. package/dist/es2019/pm-plugins/commands/commands-with-analytics.js +2 -4
  11. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +6 -10
  12. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +5 -10
  13. package/dist/es2019/ui/TableMenu/column/items/SortDecreasingItem.js +1 -1
  14. package/dist/es2019/ui/TableMenu/column/items/SortIncreasingItem.js +1 -1
  15. package/dist/es2019/ui/TableMenu/shared/items/BackgroundColorItem.js +6 -11
  16. package/dist/es2019/ui/consts.js +1 -2
  17. package/dist/es2019/ui/toolbar.js +3 -8
  18. package/dist/esm/pm-plugins/commands/commands-with-analytics.js +2 -4
  19. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +6 -10
  20. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +5 -10
  21. package/dist/esm/ui/TableMenu/column/items/SortDecreasingItem.js +1 -1
  22. package/dist/esm/ui/TableMenu/column/items/SortIncreasingItem.js +1 -1
  23. package/dist/esm/ui/TableMenu/shared/items/BackgroundColorItem.js +6 -11
  24. package/dist/esm/ui/consts.js +1 -2
  25. package/dist/esm/ui/toolbar.js +3 -8
  26. package/dist/types/ui/consts.d.ts +1 -2
  27. package/package.json +5 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 24.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7cecf41634d18`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7cecf41634d18) -
8
+ Revert the lime, orange, and magenta table cell background color options.
9
+ - Updated dependencies
10
+
3
11
  ## 24.5.2
4
12
 
5
13
  ### Patch Changes
@@ -12,8 +12,6 @@ var _preset = require("@atlaskit/editor-common/preset");
12
12
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
13
13
  var _tableMap = require("@atlaskit/editor-tables/table-map");
14
14
  var _utils = require("@atlaskit/editor-tables/utils");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
15
  var _pluginFactory = require("../plugin-factory");
18
16
  var _commands = require("../table-resizing/commands");
19
17
  var _deleteRows = require("../transforms/delete-rows");
@@ -136,7 +134,7 @@ var setColorWithAnalytics = exports.setColorWithAnalytics = function setColorWit
136
134
  actionSubjectId: null,
137
135
  attributes: {
138
136
  inputMethod: inputMethod,
139
- cellColor: (((0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_lovability_text_bg_color_patch_2') ? _tableNodes.tableBackgroundColorPaletteNew : _tableNodes.tableBackgroundColorPalette).get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
137
+ cellColor: (_tableNodes.tableBackgroundColorPalette.get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
140
138
  horizontalCells: horizontalCells,
141
139
  verticalCells: verticalCells,
142
140
  totalCells: totalCells,
@@ -38,7 +38,6 @@ var _tableColumnDelete = _interopRequireDefault(require("@atlaskit/icon/core/tab
38
38
  var _tableColumnsDistribute = _interopRequireDefault(require("@atlaskit/icon/core/table-columns-distribute"));
39
39
  var _tableRowAddBelow = _interopRequireDefault(require("@atlaskit/icon/core/table-row-add-below"));
40
40
  var _tableRowDelete = _interopRequireDefault(require("@atlaskit/icon/core/table-row-delete"));
41
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
42
41
  var _primitives = require("@atlaskit/primitives");
43
42
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
44
43
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
@@ -134,13 +133,10 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
134
133
  var _node$attrs, _node$attrs2;
135
134
  var node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
136
135
  var background = (0, _editorPalette.hexToEditorBackgroundPaletteColor)((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
137
- var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_lovability_text_bg_color_patch_2');
138
- var activePalette = isMoreColorsEnabled ? _uiColor.cellBackgroundColorPaletteNew : _uiColor.cellBackgroundColorPalette;
139
- var activeCols = isMoreColorsEnabled ? _consts.colorPaletteColumns : _consts.colorPaletteColumnsOld;
140
- var selectedRowAndColumnFromPalette = (0, _uiColor.getSelectedRowAndColumnFromPalette)(activePalette,
136
+ var selectedRowAndColumnFromPalette = (0, _uiColor.getSelectedRowAndColumnFromPalette)(_uiColor.cellBackgroundColorPalette,
141
137
  // Ignored via go/ees005
142
138
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
143
- background, activeCols);
139
+ background, _consts.colorPalletteColumns);
144
140
  var selectedRowIndex = selectedRowAndColumnFromPalette.selectedRowIndex;
145
141
  var selectedColumnIndex = selectedRowAndColumnFromPalette.selectedColumnIndex;
146
142
  return {
@@ -192,13 +188,13 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
192
188
  ,
193
189
  isOpenedByKeyboard: isCellMenuOpenByKeyboard
194
190
  }, (0, _react2.jsx)(_uiColor.ColorPalette, {
195
- cols: activeCols,
191
+ cols: 7,
196
192
  onClick: _this.setColor,
197
193
  selectedColor: (node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
198
194
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
199
195
  ,
200
196
  paletteOptions: {
201
- palette: activePalette,
197
+ palette: _uiColor.cellBackgroundColorPalette,
202
198
  paletteColorTooltipMessages: _uiColor.backgroundPaletteTooltipMessages,
203
199
  hexToPaletteColor: _editorPalette.hexToEditorBackgroundPaletteColor
204
200
  }
@@ -23,9 +23,7 @@ var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
23
23
  var _tableMap = require("@atlaskit/editor-tables/table-map");
24
24
  var _utils2 = require("@atlaskit/editor-tables/utils");
25
25
  var _paintBucket = _interopRequireDefault(require("@atlaskit/icon/core/paint-bucket"));
26
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
27
26
  var _primitives = require("@atlaskit/primitives");
28
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
29
27
  var _toggle = _interopRequireDefault(require("@atlaskit/toggle"));
30
28
  var _commands = require("../../pm-plugins/commands");
31
29
  var _commandsWithAnalytics = require("../../pm-plugins/commands/commands-with-analytics");
@@ -284,10 +282,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
284
282
  targetCellPosition = _getTablePluginState.targetCellPosition;
285
283
  var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
286
284
  var background = (0, _editorPalette.hexToEditorBackgroundPaletteColor)((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
287
- var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_lovability_text_bg_color_patch_2');
288
- var activePalette = isMoreColorsEnabled ? _uiColor.cellBackgroundColorPaletteNew : _uiColor.cellBackgroundColorPalette;
289
- var activeCols = isMoreColorsEnabled ? _consts.colorPaletteColumns : _consts.colorPaletteColumnsOld;
290
- var _getSelectedRowAndCol = (0, _uiColor.getSelectedRowAndColumnFromPalette)(activePalette, background, activeCols),
285
+ var _getSelectedRowAndCol = (0, _uiColor.getSelectedRowAndColumnFromPalette)(_uiColor.cellBackgroundColorPalette, background, _consts.colorPalletteColumns),
291
286
  selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
292
287
  selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
293
288
  return {
@@ -340,7 +335,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
340
335
  isPopupPositioned: true,
341
336
  isOpenedByKeyboard: isKeyboardModeActive
342
337
  }, (0, _react2.jsx)(_uiColor.ColorPalette, {
343
- cols: activeCols
338
+ cols: _consts.colorPalletteColumns
344
339
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
345
340
  ,
346
341
  onClick: function onClick(color) {
@@ -350,7 +345,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
350
345
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
351
346
  ,
352
347
  paletteOptions: {
353
- palette: activePalette,
348
+ palette: _uiColor.cellBackgroundColorPalette,
354
349
  paletteColorTooltipMessages: _uiColor.backgroundPaletteTooltipMessages,
355
350
  hexToPaletteColor: _editorPalette.hexToEditorBackgroundPaletteColor
356
351
  }
@@ -1,4 +1,4 @@
1
- /* SortDecreasingItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SortDecreasingItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* SortIncreasingItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SortIncreasingItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* BackgroundColorItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* BackgroundColorItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -15,15 +15,13 @@ var _messages = require("@atlaskit/editor-common/messages");
15
15
  var _uiColor = require("@atlaskit/editor-common/ui-color");
16
16
  var _editorPalette = require("@atlaskit/editor-palette");
17
17
  var _editorToolbar = require("@atlaskit/editor-toolbar");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _compiled = require("@atlaskit/primitives/compiled");
20
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
21
19
  var _commands = require("../../../../pm-plugins/commands");
22
20
  var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
23
21
  var _pluginFactory = require("../../../../pm-plugins/plugin-factory");
24
- var _consts = require("../../../../ui/consts");
25
22
  var _TableMenuContext = require("../TableMenuContext");
26
23
  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); }
24
+ var colorPaletteColumns = 7;
27
25
  var colorPaletteStyles = {
28
26
  container: "_1rjcu2gc",
29
27
  elemAfter: "_zulp1b66 _1e0c1txw _4cvr1h6o",
@@ -61,16 +59,13 @@ var BackgroundColorItem = exports.BackgroundColorItem = function BackgroundColor
61
59
  backgroundColor: selectedColor
62
60
  };
63
61
  }, [selectedColor]);
64
- var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_lovability_text_bg_color_patch_2');
65
- var activePalette = isMoreColorsEnabled ? _uiColor.cellBackgroundColorPaletteNew : _uiColor.cellBackgroundColorPalette;
66
- var activeCols = isMoreColorsEnabled ? _consts.colorPaletteColumns : _consts.colorPaletteColumnsOld;
67
62
  var paletteOptions = (0, _react.useMemo)(function () {
68
63
  return {
69
- palette: activePalette,
64
+ palette: _uiColor.cellBackgroundColorPalette,
70
65
  paletteColorTooltipMessages: _uiColor.backgroundPaletteTooltipMessages,
71
66
  hexToPaletteColor: _editorPalette.hexToEditorBackgroundPaletteColor
72
67
  };
73
- }, [activePalette]);
68
+ }, []);
74
69
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarNestedDropdownMenu, {
75
70
  elemBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.PaintBucketIcon, {
76
71
  color: "currentColor",
@@ -90,7 +85,7 @@ var BackgroundColorItem = exports.BackgroundColorItem = function BackgroundColor
90
85
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
91
86
  xcss: colorPaletteStyles.container
92
87
  }, /*#__PURE__*/_react.default.createElement(_uiColor.ColorPalette, {
93
- cols: activeCols,
88
+ cols: colorPaletteColumns,
94
89
  onClick: onClick,
95
90
  selectedColor: colorPreviewStyle.backgroundColor,
96
91
  paletteOptions: paletteOptions
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.tableToolbarSize = exports.tableToolbarSelectedColor = exports.tableToolbarDeleteColor = exports.tableToolbarColor = exports.tableTextColor = exports.tableScrollbarOffset = exports.tableResizerWidth = exports.tablePopupMenuFitHeight = exports.tablePadding = exports.tableOverflowShadowWidthWide = exports.tableOverflowShadowWidth = exports.tableMarginFullWidthMode = exports.tableInsertColumnButtonSize = exports.tableInsertColumnButtonOffset = exports.tableHeaderCellSelectedColor = exports.tableHeaderCellBackgroundColor = exports.tableFloatingControlsColor = exports.tableDeleteButtonSize = exports.tableDeleteButtonOffset = exports.tableControlsSpacing = exports.tableColumnControlsHeight = exports.tableCellSelectedDeleteIconColor = exports.tableCellSelectedDeleteIconBackground = exports.tableCellSelectedColor = exports.tableCellHoverDeleteIconColor = exports.tableCellHoverDeleteIconBackground = exports.tableCellDeleteColor = exports.tableCellBackgroundColor = exports.tableBorderSelectedColor = exports.tableBorderRadiusSize = exports.tableBorderDeleteColor = exports.tableBorderColor = exports.stickyRowZIndex = exports.stickyRowOffsetTop = exports.stickyHeaderBorderBottomWidth = exports.rowControlsZIndex = exports.resizeLineWidth = exports.resizeHandlerZIndex = exports.resizeHandlerAreaWidth = exports.nativeStickyHeaderZIndex = exports.lineMarkerSize = exports.lineMarkerOffsetFromColumnControls = exports.layoutButtonSize = exports.insertLineWidth = exports.dropTargetsZIndex = exports.dropTargetExtendedWidth = exports.dragTableInsertColumnButtonSize = exports.dragRowControlsWidth = exports.dragMenuDropdownWidth = exports.contextualMenuTriggerSize = exports.contextualMenuDropdownWidthDnD = exports.columnResizeHandleZIndex = exports.columnControlsZIndex = exports.columnControlsSelectedZIndex = exports.columnControlsDecorationHeight = exports.colorPaletteColumnsOld = exports.colorPaletteColumns = exports.belowNativeStickyHeaderZIndex = exports.aboveNativeStickyHeaderZIndex = exports.TABLE_SNAP_GAP = exports.TABLE_HIGHLIGHT_TOLERANCE = exports.TABLE_HIGHLIGHT_GAP = exports.TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = exports.TABLE_DRAG_MENU_SORT_GROUP_HEIGHT = exports.TABLE_DRAG_MENU_PADDING_TOP = exports.TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT = exports.STICKY_HEADER_TOGGLE_TOLERANCE_MS = void 0;
6
+ exports.tableToolbarSize = exports.tableToolbarSelectedColor = exports.tableToolbarDeleteColor = exports.tableToolbarColor = exports.tableTextColor = exports.tableScrollbarOffset = exports.tableResizerWidth = exports.tablePopupMenuFitHeight = exports.tablePadding = exports.tableOverflowShadowWidthWide = exports.tableOverflowShadowWidth = exports.tableMarginFullWidthMode = exports.tableInsertColumnButtonSize = exports.tableInsertColumnButtonOffset = exports.tableHeaderCellSelectedColor = exports.tableHeaderCellBackgroundColor = exports.tableFloatingControlsColor = exports.tableDeleteButtonSize = exports.tableDeleteButtonOffset = exports.tableControlsSpacing = exports.tableColumnControlsHeight = exports.tableCellSelectedDeleteIconColor = exports.tableCellSelectedDeleteIconBackground = exports.tableCellSelectedColor = exports.tableCellHoverDeleteIconColor = exports.tableCellHoverDeleteIconBackground = exports.tableCellDeleteColor = exports.tableCellBackgroundColor = exports.tableBorderSelectedColor = exports.tableBorderRadiusSize = exports.tableBorderDeleteColor = exports.tableBorderColor = exports.stickyRowZIndex = exports.stickyRowOffsetTop = exports.stickyHeaderBorderBottomWidth = exports.rowControlsZIndex = exports.resizeLineWidth = exports.resizeHandlerZIndex = exports.resizeHandlerAreaWidth = exports.nativeStickyHeaderZIndex = exports.lineMarkerSize = exports.lineMarkerOffsetFromColumnControls = exports.layoutButtonSize = exports.insertLineWidth = exports.dropTargetsZIndex = exports.dropTargetExtendedWidth = exports.dragTableInsertColumnButtonSize = exports.dragRowControlsWidth = exports.dragMenuDropdownWidth = exports.contextualMenuTriggerSize = exports.contextualMenuDropdownWidthDnD = exports.columnResizeHandleZIndex = exports.columnControlsZIndex = exports.columnControlsSelectedZIndex = exports.columnControlsDecorationHeight = exports.colorPalletteColumns = exports.belowNativeStickyHeaderZIndex = exports.aboveNativeStickyHeaderZIndex = exports.TABLE_SNAP_GAP = exports.TABLE_HIGHLIGHT_TOLERANCE = exports.TABLE_HIGHLIGHT_GAP = exports.TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = exports.TABLE_DRAG_MENU_SORT_GROUP_HEIGHT = exports.TABLE_DRAG_MENU_PADDING_TOP = exports.TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT = exports.STICKY_HEADER_TOGGLE_TOLERANCE_MS = void 0;
7
7
  var _styles = require("@atlaskit/editor-common/styles");
8
8
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
9
9
  var _types = require("../types");
@@ -85,6 +85,5 @@ var dragMenuDropdownWidth = exports.dragMenuDropdownWidth = 250;
85
85
  var dragTableInsertColumnButtonSize = exports.dragTableInsertColumnButtonSize = 16;
86
86
  var dropTargetExtendedWidth = exports.dropTargetExtendedWidth = 150;
87
87
  var dragRowControlsWidth = exports.dragRowControlsWidth = 14;
88
- var colorPaletteColumnsOld = exports.colorPaletteColumnsOld = 7;
89
- var colorPaletteColumns = exports.colorPaletteColumns = 10;
88
+ var colorPalletteColumns = exports.colorPalletteColumns = 7;
90
89
  var tableResizerWidth = exports.tableResizerWidth = 8;
@@ -35,7 +35,6 @@ var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize")
35
35
  var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
36
36
  var _shrinkHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/shrink-horizontal"));
37
37
  var _tableColumnsDistribute = _interopRequireDefault(require("@atlaskit/icon/core/table-columns-distribute"));
38
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
39
38
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
40
39
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
41
40
  var _commands = require("../pm-plugins/commands");
@@ -54,7 +53,6 @@ var _table = require("../pm-plugins/utils/table");
54
53
  var _applyMeasuredWidthToSelectedTable = require("../pm-plugins/utils/tableMode/apply-measured-width-to-selected-table");
55
54
  var _isContentModeSupported = require("../pm-plugins/utils/tableMode/is-content-mode-supported");
56
55
  var _types = require("../types");
57
- var _consts = require("./consts");
58
56
  var _FloatingAlignmentButtons = require("./FloatingAlignmentButtons/FloatingAlignmentButtons");
59
57
  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); }
60
58
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -671,9 +669,7 @@ var getColorPicker = function getColorPicker(state, menu, _ref4, editorAnalytics
671
669
  }
672
670
  var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : undefined;
673
671
  var currentBackground = (node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
674
- var isMoreColorsEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_lovability_text_bg_color_patch_2');
675
- var activePalette = isMoreColorsEnabled ? _uiColor.cellBackgroundColorPaletteNew : _uiColor.cellBackgroundColorPalette;
676
- var defaultPalette = activePalette.find(function (item) {
672
+ var defaultPalette = _uiColor.cellBackgroundColorPalette.find(function (item) {
677
673
  return item.value === currentBackground;
678
674
  }) || {
679
675
  // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
@@ -687,9 +683,8 @@ var getColorPicker = function getColorPicker(state, menu, _ref4, editorAnalytics
687
683
  type: 'select',
688
684
  isAriaExpanded: true,
689
685
  selectType: 'color',
690
- cols: isMoreColorsEnabled ? _consts.colorPaletteColumns : _consts.colorPaletteColumnsOld,
691
686
  defaultValue: defaultPalette,
692
- options: activePalette,
687
+ options: _uiColor.cellBackgroundColorPalette,
693
688
  returnEscToButton: true,
694
689
  // Ignored via go/ees005
695
690
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1,11 +1,9 @@
1
- import { tableBackgroundColorPalette, tableBackgroundColorPaletteNew } from '@atlaskit/adf-schema/tableNodes';
1
+ import { tableBackgroundColorPalette } from '@atlaskit/adf-schema/tableNodes';
2
2
  import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION, TABLE_DISPLAY_MODE } from '@atlaskit/editor-common/analytics';
3
3
  import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
5
  import { TableMap } from '@atlaskit/editor-tables/table-map';
6
6
  import { findCellClosestToPos, findCellRectClosestToPos, getSelectionRect } from '@atlaskit/editor-tables/utils';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
7
  import { getPluginState } from '../plugin-factory';
10
8
  import { distributeColumnsWidths } from '../table-resizing/commands';
11
9
  import { deleteRows } from '../transforms/delete-rows';
@@ -121,7 +119,7 @@ export const setColorWithAnalytics = editorAnalyticsAPI => (inputMethod, cellCol
121
119
  actionSubjectId: null,
122
120
  attributes: {
123
121
  inputMethod,
124
- cellColor: ((expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2') ? tableBackgroundColorPaletteNew : tableBackgroundColorPalette).get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
122
+ cellColor: (tableBackgroundColorPalette.get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
125
123
  horizontalCells,
126
124
  verticalCells,
127
125
  totalCells,
@@ -16,7 +16,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
16
16
  import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
17
17
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
18
18
  import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
19
- import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, cellBackgroundColorPaletteNew, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
19
+ import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
20
20
  import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenu } from '@atlaskit/editor-common/ui-menu';
21
21
  import { UserIntentPopupWrapper } from '@atlaskit/editor-common/user-intent';
22
22
  import { closestElement } from '@atlaskit/editor-common/utils';
@@ -32,7 +32,6 @@ import TableColumnDeleteIcon from '@atlaskit/icon/core/table-column-delete';
32
32
  import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
33
33
  import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
34
34
  import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
35
- import { fg } from '@atlaskit/platform-feature-flags';
36
35
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
37
36
  import { Box, xcss } from '@atlaskit/primitives';
38
37
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -46,7 +45,7 @@ import { canMergeCells } from '../../pm-plugins/transforms/merge';
46
45
  import { getSelectedColumnIndexes, getSelectedRowIndexes } from '../../pm-plugins/utils/selection';
47
46
  import { getMergedCellsPositions } from '../../pm-plugins/utils/table';
48
47
  import { TableCssClassName as ClassName } from '../../types';
49
- import { colorPaletteColumns, colorPaletteColumnsOld, contextualMenuDropdownWidthDnD } from '../consts';
48
+ import { colorPalletteColumns, contextualMenuDropdownWidthDnD } from '../consts';
50
49
  import { cellColourPreviewStyles } from './styles';
51
50
  const dropdownMenuSection = {
52
51
  hasSeparator: true
@@ -122,13 +121,10 @@ export class ContextualMenu extends Component {
122
121
  var _node$attrs, _node$attrs2;
123
122
  const node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
124
123
  const background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
125
- const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
126
- const activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
127
- const activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPaletteColumnsOld;
128
- const selectedRowAndColumnFromPalette = getSelectedRowAndColumnFromPalette(activePalette,
124
+ const selectedRowAndColumnFromPalette = getSelectedRowAndColumnFromPalette(cellBackgroundColorPalette,
129
125
  // Ignored via go/ees005
130
126
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
131
- background, activeCols);
127
+ background, colorPalletteColumns);
132
128
  const selectedRowIndex = selectedRowAndColumnFromPalette.selectedRowIndex;
133
129
  const selectedColumnIndex = selectedRowAndColumnFromPalette.selectedColumnIndex;
134
130
  return {
@@ -180,13 +176,13 @@ export class ContextualMenu extends Component {
180
176
  ,
181
177
  isOpenedByKeyboard: isCellMenuOpenByKeyboard
182
178
  }, jsx(ColorPalette, {
183
- cols: activeCols,
179
+ cols: 7,
184
180
  onClick: this.setColor,
185
181
  selectedColor: (node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
186
182
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
187
183
  ,
188
184
  paletteOptions: {
189
- palette: activePalette,
185
+ palette: cellBackgroundColorPalette,
190
186
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
191
187
  hexToPaletteColor: hexToEditorBackgroundPaletteColor
192
188
  }
@@ -12,7 +12,7 @@ import { injectIntl } from 'react-intl';
12
12
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
13
13
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
14
14
  import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
15
- import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, cellBackgroundColorPaletteNew, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
15
+ import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
16
16
  import { ArrowKeyNavigationProvider, ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
17
17
  import { UserIntentPopupWrapper } from '@atlaskit/editor-common/user-intent';
18
18
  import { closestElement } from '@atlaskit/editor-common/utils';
@@ -21,10 +21,8 @@ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
21
21
  import { TableMap } from '@atlaskit/editor-tables/table-map';
22
22
  import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
23
23
  import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
24
- import { fg } from '@atlaskit/platform-feature-flags';
25
24
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
26
25
  import { Box, xcss } from '@atlaskit/primitives';
27
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
28
26
  import Toggle from '@atlaskit/toggle';
29
27
  import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
30
28
  import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
@@ -35,7 +33,7 @@ import { getDragMenuConfig } from '../../pm-plugins/utils/drag-menu';
35
33
  import { checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled } from '../../pm-plugins/utils/nodes';
36
34
  import { getSelectedColumnIndexes, getSelectedRowIndexes } from '../../pm-plugins/utils/selection';
37
35
  import { TableCssClassName as ClassName } from '../../types';
38
- import { colorPaletteColumns, colorPaletteColumnsOld } from '../consts';
36
+ import { colorPalletteColumns } from '../consts';
39
37
  import { DropdownMenu } from './DropdownMenu';
40
38
  import { cellColourPreviewStyles, dragMenuBackgroundColorStyles, toggleStyles } from './styles';
41
39
  const MapDragMenuOptionIdToMessage = {
@@ -277,13 +275,10 @@ const DragMenu = /*#__PURE__*/React.memo(({
277
275
  } = getTablePluginState(editorView.state);
278
276
  const node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
279
277
  const background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
280
- const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
281
- const activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
282
- const activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPaletteColumnsOld;
283
278
  const {
284
279
  selectedRowIndex,
285
280
  selectedColumnIndex
286
- } = getSelectedRowAndColumnFromPalette(activePalette, background, activeCols);
281
+ } = getSelectedRowAndColumnFromPalette(cellBackgroundColorPalette, background, colorPalletteColumns);
287
282
  return {
288
283
  key: 'background',
289
284
  content: formatMessage(messages.backgroundColor),
@@ -334,7 +329,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
334
329
  isPopupPositioned: true,
335
330
  isOpenedByKeyboard: isKeyboardModeActive
336
331
  }, jsx(ColorPalette, {
337
- cols: activeCols
332
+ cols: colorPalletteColumns
338
333
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
339
334
  ,
340
335
  onClick: color => {
@@ -344,7 +339,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
344
339
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
345
340
  ,
346
341
  paletteOptions: {
347
- palette: activePalette,
342
+ palette: cellBackgroundColorPalette,
348
343
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
349
344
  hexToPaletteColor: hexToEditorBackgroundPaletteColor
350
345
  }
@@ -1,4 +1,4 @@
1
- /* SortDecreasingItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SortDecreasingItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./SortDecreasingItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* SortIncreasingItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SortIncreasingItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./SortIncreasingItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,21 +1,19 @@
1
- /* BackgroundColorItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* BackgroundColorItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import "./BackgroundColorItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useMemo } from 'react';
5
5
  import { useIntl } from 'react-intl';
6
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
8
- import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, cellBackgroundColorPaletteNew, ColorPalette } from '@atlaskit/editor-common/ui-color';
8
+ import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, ColorPalette } from '@atlaskit/editor-common/ui-color';
9
9
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
10
10
  import { NestedDropdownRightIcon, PaintBucketIcon, ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { Box } from '@atlaskit/primitives/compiled';
13
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
12
  import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
15
13
  import { setColorWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
16
14
  import { getPluginState } from '../../../../pm-plugins/plugin-factory';
17
- import { colorPaletteColumns, colorPaletteColumnsOld } from '../../../../ui/consts';
18
15
  import { useTableMenuContext } from '../TableMenuContext';
16
+ const colorPaletteColumns = 7;
19
17
  const colorPaletteStyles = {
20
18
  container: "_1rjcu2gc",
21
19
  elemAfter: "_zulp1b66 _1e0c1txw _4cvr1h6o",
@@ -55,16 +53,13 @@ export const BackgroundColorItem = ({
55
53
  const colorPreviewStyle = useMemo(() => ({
56
54
  backgroundColor: selectedColor
57
55
  }), [selectedColor]);
58
- const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
59
- const activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
60
- const activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPaletteColumnsOld;
61
56
  const paletteOptions = useMemo(() => {
62
57
  return {
63
- palette: activePalette,
58
+ palette: cellBackgroundColorPalette,
64
59
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
65
60
  hexToPaletteColor: hexToEditorBackgroundPaletteColor
66
61
  };
67
- }, [activePalette]);
62
+ }, []);
68
63
  return /*#__PURE__*/React.createElement(ToolbarNestedDropdownMenu, {
69
64
  elemBefore: /*#__PURE__*/React.createElement(PaintBucketIcon, {
70
65
  color: "currentColor",
@@ -84,7 +79,7 @@ export const BackgroundColorItem = ({
84
79
  }, /*#__PURE__*/React.createElement(Box, {
85
80
  xcss: colorPaletteStyles.container
86
81
  }, /*#__PURE__*/React.createElement(ColorPalette, {
87
- cols: activeCols,
82
+ cols: colorPaletteColumns,
88
83
  onClick: onClick,
89
84
  selectedColor: colorPreviewStyle.backgroundColor,
90
85
  paletteOptions: paletteOptions
@@ -80,6 +80,5 @@ export const dragMenuDropdownWidth = 250;
80
80
  export const dragTableInsertColumnButtonSize = 16;
81
81
  export const dropTargetExtendedWidth = 150;
82
82
  export const dragRowControlsWidth = 14;
83
- export const colorPaletteColumnsOld = 7;
84
- export const colorPaletteColumns = 10;
83
+ export const colorPalletteColumns = 7;
85
84
  export const tableResizerWidth = 8;
@@ -15,7 +15,7 @@ import commonMessages, { tableMessages as messages } from '@atlaskit/editor-comm
15
15
  import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
16
16
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
17
17
  import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
18
- import { DEFAULT_BORDER_COLOR, cellBackgroundColorPalette, cellBackgroundColorPaletteNew } from '@atlaskit/editor-common/ui-color';
18
+ import { DEFAULT_BORDER_COLOR, cellBackgroundColorPalette } from '@atlaskit/editor-common/ui-color';
19
19
  import { closestElement, getChildrenInfo, getNodeName, isReferencedSource } from '@atlaskit/editor-common/utils';
20
20
  import { findParentDomRefOfType } from '@atlaskit/editor-prosemirror/utils';
21
21
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
@@ -29,7 +29,6 @@ import CustomizeIcon from '@atlaskit/icon/core/customize';
29
29
  import DeleteIcon from '@atlaskit/icon/core/delete';
30
30
  import ShrinkHorizontalIcon from '@atlaskit/icon/core/shrink-horizontal';
31
31
  import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
32
- import { fg } from '@atlaskit/platform-feature-flags';
33
32
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
34
33
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
35
34
  import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, hoverTable, removeDescendantNodes } from '../pm-plugins/commands';
@@ -48,7 +47,6 @@ import { getMergedCellsPositions } from '../pm-plugins/utils/table';
48
47
  import { applyMeasuredWidthToSelectedTable } from '../pm-plugins/utils/tableMode/apply-measured-width-to-selected-table';
49
48
  import { isContentModeSupported } from '../pm-plugins/utils/tableMode/is-content-mode-supported';
50
49
  import { TableCssClassName } from '../types';
51
- import { colorPaletteColumns, colorPaletteColumnsOld } from './consts';
52
50
  import { FloatingAlignmentButtons } from './FloatingAlignmentButtons/FloatingAlignmentButtons';
53
51
  export const getToolbarMenuConfig = (config, state, {
54
52
  formatMessage
@@ -627,9 +625,7 @@ const getColorPicker = (state, menu, {
627
625
  }
628
626
  const node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : undefined;
629
627
  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
- const isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
631
- const activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
632
- const defaultPalette = activePalette.find(item => item.value === currentBackground) || {
628
+ const defaultPalette = cellBackgroundColorPalette.find(item => item.value === currentBackground) || {
633
629
  // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
634
630
  label: 'Custom',
635
631
  value: currentBackground,
@@ -641,9 +637,8 @@ const getColorPicker = (state, menu, {
641
637
  type: 'select',
642
638
  isAriaExpanded: true,
643
639
  selectType: 'color',
644
- cols: isMoreColorsEnabled ? colorPaletteColumns : colorPaletteColumnsOld,
645
640
  defaultValue: defaultPalette,
646
- options: activePalette,
641
+ options: cellBackgroundColorPalette,
647
642
  returnEscToButton: true,
648
643
  // Ignored via go/ees005
649
644
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1,14 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import { tableBackgroundColorPalette, tableBackgroundColorPaletteNew } from '@atlaskit/adf-schema/tableNodes';
4
+ import { tableBackgroundColorPalette } from '@atlaskit/adf-schema/tableNodes';
5
5
  import { ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION, TABLE_DISPLAY_MODE } from '@atlaskit/editor-common/analytics';
6
6
  import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
7
7
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
8
8
  import { TableMap } from '@atlaskit/editor-tables/table-map';
9
9
  import { findCellClosestToPos, findCellRectClosestToPos, getSelectionRect } from '@atlaskit/editor-tables/utils';
10
- import { fg } from '@atlaskit/platform-feature-flags';
11
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
10
  import { getPluginState } from '../plugin-factory';
13
11
  import { distributeColumnsWidths } from '../table-resizing/commands';
14
12
  import { deleteRows } from '../transforms/delete-rows';
@@ -129,7 +127,7 @@ export var setColorWithAnalytics = function setColorWithAnalytics(editorAnalytic
129
127
  actionSubjectId: null,
130
128
  attributes: {
131
129
  inputMethod: inputMethod,
132
- cellColor: ((expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2') ? tableBackgroundColorPaletteNew : tableBackgroundColorPalette).get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
130
+ cellColor: (tableBackgroundColorPalette.get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
133
131
  horizontalCells: horizontalCells,
134
132
  verticalCells: verticalCells,
135
133
  totalCells: totalCells,
@@ -26,7 +26,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
26
26
  import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
27
27
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
28
28
  import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
29
- import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, cellBackgroundColorPaletteNew, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
29
+ import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
30
30
  import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenu } from '@atlaskit/editor-common/ui-menu';
31
31
  import { UserIntentPopupWrapper } from '@atlaskit/editor-common/user-intent';
32
32
  import { closestElement } from '@atlaskit/editor-common/utils';
@@ -42,7 +42,6 @@ import TableColumnDeleteIcon from '@atlaskit/icon/core/table-column-delete';
42
42
  import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
43
43
  import TableRowAddBelowIcon from '@atlaskit/icon/core/table-row-add-below';
44
44
  import TableRowDeleteIcon from '@atlaskit/icon/core/table-row-delete';
45
- import { fg } from '@atlaskit/platform-feature-flags';
46
45
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
47
46
  import { Box, xcss } from '@atlaskit/primitives';
48
47
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -56,7 +55,7 @@ import { canMergeCells } from '../../pm-plugins/transforms/merge';
56
55
  import { getSelectedColumnIndexes, getSelectedRowIndexes } from '../../pm-plugins/utils/selection';
57
56
  import { getMergedCellsPositions } from '../../pm-plugins/utils/table';
58
57
  import { TableCssClassName as ClassName } from '../../types';
59
- import { colorPaletteColumns, colorPaletteColumnsOld, contextualMenuDropdownWidthDnD } from '../consts';
58
+ import { colorPalletteColumns, contextualMenuDropdownWidthDnD } from '../consts';
60
59
  import { cellColourPreviewStyles } from './styles';
61
60
  var dropdownMenuSection = {
62
61
  hasSeparator: true
@@ -131,13 +130,10 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
131
130
  var _node$attrs, _node$attrs2;
132
131
  var node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
133
132
  var background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
134
- var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
135
- var activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
136
- var activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPaletteColumnsOld;
137
- var selectedRowAndColumnFromPalette = getSelectedRowAndColumnFromPalette(activePalette,
133
+ var selectedRowAndColumnFromPalette = getSelectedRowAndColumnFromPalette(cellBackgroundColorPalette,
138
134
  // Ignored via go/ees005
139
135
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
140
- background, activeCols);
136
+ background, colorPalletteColumns);
141
137
  var selectedRowIndex = selectedRowAndColumnFromPalette.selectedRowIndex;
142
138
  var selectedColumnIndex = selectedRowAndColumnFromPalette.selectedColumnIndex;
143
139
  return {
@@ -189,13 +185,13 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
189
185
  ,
190
186
  isOpenedByKeyboard: isCellMenuOpenByKeyboard
191
187
  }, jsx(ColorPalette, {
192
- cols: activeCols,
188
+ cols: 7,
193
189
  onClick: _this.setColor,
194
190
  selectedColor: (node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
195
191
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
196
192
  ,
197
193
  paletteOptions: {
198
- palette: activePalette,
194
+ palette: cellBackgroundColorPalette,
199
195
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
200
196
  hexToPaletteColor: hexToEditorBackgroundPaletteColor
201
197
  }
@@ -14,7 +14,7 @@ import { injectIntl } from 'react-intl';
14
14
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
15
15
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
16
16
  import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
17
- import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, cellBackgroundColorPaletteNew, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
17
+ import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
18
18
  import { ArrowKeyNavigationProvider, ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
19
19
  import { UserIntentPopupWrapper } from '@atlaskit/editor-common/user-intent';
20
20
  import { closestElement } from '@atlaskit/editor-common/utils';
@@ -23,10 +23,8 @@ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
23
23
  import { TableMap } from '@atlaskit/editor-tables/table-map';
24
24
  import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
25
25
  import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
26
- import { fg } from '@atlaskit/platform-feature-flags';
27
26
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
28
27
  import { Box, xcss } from '@atlaskit/primitives';
29
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
30
28
  import Toggle from '@atlaskit/toggle';
31
29
  import { clearHoverSelection, hoverColumns, hoverRows } from '../../pm-plugins/commands';
32
30
  import { setColorWithAnalytics, toggleHeaderColumnWithAnalytics, toggleHeaderRowWithAnalytics, toggleNumberColumnWithAnalytics } from '../../pm-plugins/commands/commands-with-analytics';
@@ -37,7 +35,7 @@ import { getDragMenuConfig } from '../../pm-plugins/utils/drag-menu';
37
35
  import { checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled } from '../../pm-plugins/utils/nodes';
38
36
  import { getSelectedColumnIndexes, getSelectedRowIndexes } from '../../pm-plugins/utils/selection';
39
37
  import { TableCssClassName as ClassName } from '../../types';
40
- import { colorPaletteColumns, colorPaletteColumnsOld } from '../consts';
38
+ import { colorPalletteColumns } from '../consts';
41
39
  import { DropdownMenu } from './DropdownMenu';
42
40
  import { cellColourPreviewStyles, dragMenuBackgroundColorStyles, toggleStyles } from './styles';
43
41
  var MapDragMenuOptionIdToMessage = {
@@ -273,10 +271,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
273
271
  targetCellPosition = _getTablePluginState.targetCellPosition;
274
272
  var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
275
273
  var background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
276
- var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
277
- var activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
278
- var activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPaletteColumnsOld;
279
- var _getSelectedRowAndCol = getSelectedRowAndColumnFromPalette(activePalette, background, activeCols),
274
+ var _getSelectedRowAndCol = getSelectedRowAndColumnFromPalette(cellBackgroundColorPalette, background, colorPalletteColumns),
280
275
  selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
281
276
  selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
282
277
  return {
@@ -329,7 +324,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
329
324
  isPopupPositioned: true,
330
325
  isOpenedByKeyboard: isKeyboardModeActive
331
326
  }, jsx(ColorPalette, {
332
- cols: activeCols
327
+ cols: colorPalletteColumns
333
328
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
334
329
  ,
335
330
  onClick: function onClick(color) {
@@ -339,7 +334,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
339
334
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
340
335
  ,
341
336
  paletteOptions: {
342
- palette: activePalette,
337
+ palette: cellBackgroundColorPalette,
343
338
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
344
339
  hexToPaletteColor: hexToEditorBackgroundPaletteColor
345
340
  }
@@ -1,4 +1,4 @@
1
- /* SortDecreasingItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SortDecreasingItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./SortDecreasingItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* SortIncreasingItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* SortIncreasingItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./SortIncreasingItem.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,21 +1,19 @@
1
- /* BackgroundColorItem.tsx generated by @compiled/babel-plugin v0.40.0 */
1
+ /* BackgroundColorItem.tsx generated by @compiled/babel-plugin v2.0.0 */
2
2
  import "./BackgroundColorItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useMemo } from 'react';
5
5
  import { useIntl } from 'react-intl';
6
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
8
- import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, cellBackgroundColorPaletteNew, ColorPalette } from '@atlaskit/editor-common/ui-color';
8
+ import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, ColorPalette } from '@atlaskit/editor-common/ui-color';
9
9
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
10
10
  import { NestedDropdownRightIcon, PaintBucketIcon, ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { Box } from '@atlaskit/primitives/compiled';
13
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
12
  import { closeActiveTableMenu } from '../../../../pm-plugins/commands';
15
13
  import { setColorWithAnalytics } from '../../../../pm-plugins/commands/commands-with-analytics';
16
14
  import { getPluginState } from '../../../../pm-plugins/plugin-factory';
17
- import { colorPaletteColumns, colorPaletteColumnsOld } from '../../../../ui/consts';
18
15
  import { useTableMenuContext } from '../TableMenuContext';
16
+ var colorPaletteColumns = 7;
19
17
  var colorPaletteStyles = {
20
18
  container: "_1rjcu2gc",
21
19
  elemAfter: "_zulp1b66 _1e0c1txw _4cvr1h6o",
@@ -53,16 +51,13 @@ export var BackgroundColorItem = function BackgroundColorItem(_ref) {
53
51
  backgroundColor: selectedColor
54
52
  };
55
53
  }, [selectedColor]);
56
- var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
57
- var activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
58
- var activeCols = isMoreColorsEnabled ? colorPaletteColumns : colorPaletteColumnsOld;
59
54
  var paletteOptions = useMemo(function () {
60
55
  return {
61
- palette: activePalette,
56
+ palette: cellBackgroundColorPalette,
62
57
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
63
58
  hexToPaletteColor: hexToEditorBackgroundPaletteColor
64
59
  };
65
- }, [activePalette]);
60
+ }, []);
66
61
  return /*#__PURE__*/React.createElement(ToolbarNestedDropdownMenu, {
67
62
  elemBefore: /*#__PURE__*/React.createElement(PaintBucketIcon, {
68
63
  color: "currentColor",
@@ -82,7 +77,7 @@ export var BackgroundColorItem = function BackgroundColorItem(_ref) {
82
77
  }, /*#__PURE__*/React.createElement(Box, {
83
78
  xcss: colorPaletteStyles.container
84
79
  }, /*#__PURE__*/React.createElement(ColorPalette, {
85
- cols: activeCols,
80
+ cols: colorPaletteColumns,
86
81
  onClick: onClick,
87
82
  selectedColor: colorPreviewStyle.backgroundColor,
88
83
  paletteOptions: paletteOptions
@@ -80,6 +80,5 @@ export var dragMenuDropdownWidth = 250;
80
80
  export var dragTableInsertColumnButtonSize = 16;
81
81
  export var dropTargetExtendedWidth = 150;
82
82
  export var dragRowControlsWidth = 14;
83
- export var colorPaletteColumnsOld = 7;
84
- export var colorPaletteColumns = 10;
83
+ export var colorPalletteColumns = 7;
85
84
  export var tableResizerWidth = 8;
@@ -21,7 +21,7 @@ import commonMessages, { tableMessages as messages } from '@atlaskit/editor-comm
21
21
  import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
22
22
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
23
23
  import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
24
- import { DEFAULT_BORDER_COLOR, cellBackgroundColorPalette, cellBackgroundColorPaletteNew } from '@atlaskit/editor-common/ui-color';
24
+ import { DEFAULT_BORDER_COLOR, cellBackgroundColorPalette } from '@atlaskit/editor-common/ui-color';
25
25
  import { closestElement, getChildrenInfo as _getChildrenInfo, getNodeName, isReferencedSource } from '@atlaskit/editor-common/utils';
26
26
  import { findParentDomRefOfType } from '@atlaskit/editor-prosemirror/utils';
27
27
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
@@ -35,7 +35,6 @@ import CustomizeIcon from '@atlaskit/icon/core/customize';
35
35
  import DeleteIcon from '@atlaskit/icon/core/delete';
36
36
  import ShrinkHorizontalIcon from '@atlaskit/icon/core/shrink-horizontal';
37
37
  import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
38
- import { fg } from '@atlaskit/platform-feature-flags';
39
38
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
40
39
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
41
40
  import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, hoverTable, removeDescendantNodes } from '../pm-plugins/commands';
@@ -54,7 +53,6 @@ import { getMergedCellsPositions } from '../pm-plugins/utils/table';
54
53
  import { applyMeasuredWidthToSelectedTable } from '../pm-plugins/utils/tableMode/apply-measured-width-to-selected-table';
55
54
  import { isContentModeSupported } from '../pm-plugins/utils/tableMode/is-content-mode-supported';
56
55
  import { TableCssClassName } from '../types';
57
- import { colorPaletteColumns, colorPaletteColumnsOld } from './consts';
58
56
  import { FloatingAlignmentButtons } from './FloatingAlignmentButtons/FloatingAlignmentButtons';
59
57
  export var getToolbarMenuConfig = function getToolbarMenuConfig(config, state, _ref, editorAnalyticsAPI) {
60
58
  var formatMessage = _ref.formatMessage;
@@ -664,9 +662,7 @@ var getColorPicker = function getColorPicker(state, menu, _ref4, editorAnalytics
664
662
  }
665
663
  var node = targetCellPosition ? state.doc.nodeAt(targetCellPosition) : undefined;
666
664
  var currentBackground = (node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
667
- var isMoreColorsEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
668
- var activePalette = isMoreColorsEnabled ? cellBackgroundColorPaletteNew : cellBackgroundColorPalette;
669
- var defaultPalette = activePalette.find(function (item) {
665
+ var defaultPalette = cellBackgroundColorPalette.find(function (item) {
670
666
  return item.value === currentBackground;
671
667
  }) || {
672
668
  // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
@@ -680,9 +676,8 @@ var getColorPicker = function getColorPicker(state, menu, _ref4, editorAnalytics
680
676
  type: 'select',
681
677
  isAriaExpanded: true,
682
678
  selectType: 'color',
683
- cols: isMoreColorsEnabled ? colorPaletteColumns : colorPaletteColumnsOld,
684
679
  defaultValue: defaultPalette,
685
- options: activePalette,
680
+ options: cellBackgroundColorPalette,
686
681
  returnEscToButton: true,
687
682
  // Ignored via go/ees005
688
683
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -65,6 +65,5 @@ export declare const dragMenuDropdownWidth = 250;
65
65
  export declare const dragTableInsertColumnButtonSize = 16;
66
66
  export declare const dropTargetExtendedWidth = 150;
67
67
  export declare const dragRowControlsWidth = 14;
68
- export declare const colorPaletteColumnsOld = 7;
69
- export declare const colorPaletteColumns = 10;
68
+ export declare const colorPalletteColumns = 7;
70
69
  export declare const tableResizerWidth = 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "24.5.2",
3
+ "version": "24.5.3",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,10 +20,10 @@
20
20
  "singleton": true
21
21
  },
22
22
  "dependencies": {
23
- "@atlaskit/adf-schema": "^56.3.0",
23
+ "@atlaskit/adf-schema": "^56.4.0",
24
24
  "@atlaskit/button": "^24.3.0",
25
25
  "@atlaskit/custom-steps": "^1.0.0",
26
- "@atlaskit/editor-palette": "^3.3.0",
26
+ "@atlaskit/editor-palette": "^3.4.0",
27
27
  "@atlaskit/editor-plugin-accessibility-utils": "^12.1.0",
28
28
  "@atlaskit/editor-plugin-analytics": "^12.1.0",
29
29
  "@atlaskit/editor-plugin-batch-attribute-updates": "^12.1.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
53
53
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.0.0",
54
54
  "@atlaskit/primitives": "^22.2.0",
55
- "@atlaskit/tmp-editor-statsig": "^135.9.0",
55
+ "@atlaskit/tmp-editor-statsig": "^135.10.0",
56
56
  "@atlaskit/toggle": "^17.1.0",
57
57
  "@atlaskit/tokens": "^16.3.0",
58
58
  "@atlaskit/tooltip": "^24.0.0",
@@ -67,7 +67,7 @@
67
67
  "uuid": "^3.1.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "@atlaskit/editor-common": "^116.46.0",
70
+ "@atlaskit/editor-common": "^116.48.0",
71
71
  "react": "^18.2.0 || ^19.2.0",
72
72
  "react-dom": "^18.2.0 || ^19.2.0",
73
73
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -162,9 +162,6 @@
162
162
  },
163
163
  "platform_editor_table_flicker_issue": {
164
164
  "type": "boolean"
165
- },
166
- "platform_editor_lovability_text_bg_color_patch_2": {
167
- "type": "boolean"
168
165
  }
169
166
  },
170
167
  "devDependencies": {