@atlaskit/editor-plugin-text-color 12.1.2 → 12.1.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,14 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 12.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6f7b6c498b07c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f7b6c498b07c) -
8
+ [EDITOR-7591] Align the no-color highlight palette tile icon with the updated transparent
9
+ highlight styling for the experiment `platform_editor_lovability_text_bg_color`.
10
+ - Updated dependencies
11
+
3
12
  ## 12.1.2
4
13
 
5
14
  ### Patch Changes
@@ -25,6 +25,7 @@ var _editorPalette = require("@atlaskit/editor-palette");
25
25
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
26
26
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
27
27
  var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
28
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
28
29
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
29
30
  var _changeColor = require("../../pm-plugins/commands/change-color");
30
31
  var _inputType = require("../../pm-plugins/utils/inputType");
@@ -143,7 +144,7 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
143
144
  disabled = _this$props.disabled,
144
145
  pluginInjectionApi = _this$props.pluginInjectionApi;
145
146
  var palette = pluginState.palette;
146
- var isNewColorPaletteEnabled = (0, _experiments.editorExperiment)('platform_editor_lovability_text_bg_color', true);
147
+ var isNewColorPaletteEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
147
148
  var colorPickerColumns = isNewColorPaletteEnabled ? 10 : undefined;
148
149
  var fitWidth;
149
150
  if (document.body.clientWidth <= 740) {
@@ -18,6 +18,7 @@ import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
18
18
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
19
19
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
20
20
  import TextStyleIcon from '@atlaskit/icon/core/text-style';
21
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
22
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
22
23
  import { changeColor as changeColorWithAnalytics } from '../../pm-plugins/commands/change-color';
23
24
  import { getInputMethod } from '../../pm-plugins/utils/inputType';
@@ -124,7 +125,7 @@ export class ToolbarTextColor extends React.Component {
124
125
  pluginInjectionApi
125
126
  } = this.props;
126
127
  const palette = pluginState.palette;
127
- const isNewColorPaletteEnabled = editorExperiment('platform_editor_lovability_text_bg_color', true);
128
+ const isNewColorPaletteEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
128
129
  const colorPickerColumns = isNewColorPaletteEnabled ? 10 : undefined;
129
130
  let fitWidth;
130
131
  if (document.body.clientWidth <= 740) {
@@ -28,6 +28,7 @@ import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
28
28
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
29
29
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
30
30
  import TextStyleIcon from '@atlaskit/icon/core/text-style';
31
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
31
32
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
32
33
  import { changeColor as changeColorWithAnalytics } from '../../pm-plugins/commands/change-color';
33
34
  import { getInputMethod } from '../../pm-plugins/utils/inputType';
@@ -139,7 +140,7 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
139
140
  disabled = _this$props.disabled,
140
141
  pluginInjectionApi = _this$props.pluginInjectionApi;
141
142
  var palette = pluginState.palette;
142
- var isNewColorPaletteEnabled = editorExperiment('platform_editor_lovability_text_bg_color', true);
143
+ var isNewColorPaletteEnabled = expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true);
143
144
  var colorPickerColumns = isNewColorPaletteEnabled ? 10 : undefined;
144
145
  var fitWidth;
145
146
  if (document.body.clientWidth <= 740) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "12.1.2",
3
+ "version": "12.1.3",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/platform-feature-flags": "^2.0.0",
42
42
  "@atlaskit/platform-feature-flags-react": "^1.0.0",
43
43
  "@atlaskit/primitives": "^20.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^108.3.0",
44
+ "@atlaskit/tmp-editor-statsig": "^108.4.0",
45
45
  "@atlaskit/tokens": "^14.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1"