@atlaskit/editor-plugin-panel 24.0.2 → 24.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 24.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a13383c3c99b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a13383c3c99b2) -
8
+ [FFCLEANUP-192944] clean up code references to patch gates
9
+ `platform_editor_lovability_text_bg_color_patch_1` and
10
+ `platform_editor_lovability_text_bg_color_patch_2`.
11
+ - Updated dependencies
12
+
3
13
  ## 24.0.2
4
14
 
5
15
  ### Patch Changes
@@ -26,7 +26,6 @@ var _statusDiscovery = _interopRequireDefault(require("@atlaskit/icon/core/statu
26
26
  var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
27
27
  var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
28
28
  var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
29
- var _fg = require("@atlaskit/platform-feature-flags/fg");
30
29
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
31
30
  var _actions = require("../editor-actions/actions");
32
31
  var _utils2 = require("../pm-plugins/utils/utils");
@@ -200,7 +199,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
200
199
  };
201
200
  };
202
201
  var panelColor = activePanelType === _panel.PanelType.CUSTOM ? activePanelColor || (0, _panel2.getPanelTypeBackgroundNoTokens)(_panel.PanelType.INFO) : (0, _panel2.getPanelTypeBackgroundNoTokens)(activePanelType);
203
- var isNewPanelPaletteEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _fg.fg)('platform_editor_lovability_text_bg_color_patch_2');
202
+ var isNewPanelPaletteEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
204
203
  var colorPalette = isNewPanelPaletteEnabled ? _uiColor.panelBackgroundPaletteNew : _uiColor.panelBackgroundPalette;
205
204
  var defaultPalette = colorPalette.find(function (item) {
206
205
  return item.value === panelColor;
@@ -16,7 +16,6 @@ import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
16
16
  import InformationIcon from '@atlaskit/icon/core/status-information';
17
17
  import SuccessIcon from '@atlaskit/icon/core/status-success';
18
18
  import WarningIcon from '@atlaskit/icon/core/status-warning';
19
- import { fg } from '@atlaskit/platform-feature-flags/fg';
20
19
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
20
  import { changePanelType, removePanel } from '../editor-actions/actions';
22
21
  import { findPanel } from '../pm-plugins/utils/utils';
@@ -190,7 +189,7 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
190
189
  return false;
191
190
  };
192
191
  const panelColor = activePanelType === PanelType.CUSTOM ? activePanelColor || getPanelTypeBackgroundNoTokens(PanelType.INFO) : getPanelTypeBackgroundNoTokens(activePanelType);
193
- const isNewPanelPaletteEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
192
+ const isNewPanelPaletteEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
194
193
  const colorPalette = isNewPanelPaletteEnabled ? panelBackgroundPaletteNew : panelBackgroundPalette;
195
194
  const defaultPalette = colorPalette.find(item => item.value === panelColor) || {
196
195
  // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
@@ -20,7 +20,6 @@ import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
20
20
  import InformationIcon from '@atlaskit/icon/core/status-information';
21
21
  import SuccessIcon from '@atlaskit/icon/core/status-success';
22
22
  import WarningIcon from '@atlaskit/icon/core/status-warning';
23
- import { fg } from '@atlaskit/platform-feature-flags/fg';
24
23
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
25
24
  import { changePanelType, removePanel } from '../editor-actions/actions';
26
25
  import { findPanel } from '../pm-plugins/utils/utils';
@@ -191,7 +190,7 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
191
190
  };
192
191
  };
193
192
  var panelColor = activePanelType === PanelType.CUSTOM ? activePanelColor || getPanelTypeBackgroundNoTokens(PanelType.INFO) : getPanelTypeBackgroundNoTokens(activePanelType);
194
- var isNewPanelPaletteEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && fg('platform_editor_lovability_text_bg_color_patch_2');
193
+ var isNewPanelPaletteEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
195
194
  var colorPalette = isNewPanelPaletteEnabled ? panelBackgroundPaletteNew : panelBackgroundPalette;
196
195
  var defaultPalette = colorPalette.find(function (item) {
197
196
  return item.value === panelColor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "24.0.2",
3
+ "version": "24.0.3",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,9 +51,6 @@
51
51
  "platform-feature-flags": {
52
52
  "platform_editor_adf_with_localid": {
53
53
  "type": "boolean"
54
- },
55
- "platform_editor_lovability_text_bg_color_patch_2": {
56
- "type": "boolean"
57
54
  }
58
55
  },
59
56
  "devDependencies": {