@atlaskit/editor-palette 2.1.21 → 2.1.22

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-palette
2
2
 
3
+ ## 2.1.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [`25c388e0f807a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/25c388e0f807a) -
8
+ EDITOR-4684 Clean up platform_editor_add_orange_highlight_color experiment - orange highlight
9
+ color is now permanently enabled
10
+
3
11
  ## 2.1.21
4
12
 
5
13
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.hexToEditorTextBackgroundPaletteColor = hexToEditorTextBackgroundPaletteColor;
8
8
  exports.textBackgroundColorPalette = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
10
  // This import will be stripped on build
12
11
 
13
12
  // Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
@@ -31,12 +30,6 @@ var textBackgroundColorPalette = exports.textBackgroundColorPalette = (0, _defin
31
30
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
32
31
  */
33
32
  function hexToEditorTextBackgroundPaletteColor(hexColor) {
34
- if (!(0, _expValEquals.expValEquals)('platform_editor_add_orange_highlight_color', 'cohort', 'test')) {
35
- // @ts-expect-error Expect type error. Will modify production type
36
- // if experiment proceeds post-results.
37
- textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
38
- }
39
-
40
33
  // Ts ignore was used to allow use of conditional return type
41
34
  // (preferring better type on consumption over safety in implementation)
42
35
  // @ts-ignore
@@ -1,4 +1,3 @@
1
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
1
  // This import will be stripped on build
3
2
 
4
3
  // Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
@@ -37,12 +36,6 @@ export const textBackgroundColorPalette = {
37
36
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
38
37
  */
39
38
  export function hexToEditorTextBackgroundPaletteColor(hexColor) {
40
- if (!expValEquals('platform_editor_add_orange_highlight_color', 'cohort', 'test')) {
41
- // @ts-expect-error Expect type error. Will modify production type
42
- // if experiment proceeds post-results.
43
- textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
44
- }
45
-
46
39
  // Ts ignore was used to allow use of conditional return type
47
40
  // (preferring better type on consumption over safety in implementation)
48
41
  // @ts-ignore
@@ -1,5 +1,4 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
2
  // This import will be stripped on build
4
3
 
5
4
  // Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
@@ -23,12 +22,6 @@ export var textBackgroundColorPalette = _defineProperty(_defineProperty(_defineP
23
22
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
24
23
  */
25
24
  export function hexToEditorTextBackgroundPaletteColor(hexColor) {
26
- if (!expValEquals('platform_editor_add_orange_highlight_color', 'cohort', 'test')) {
27
- // @ts-expect-error Expect type error. Will modify production type
28
- // if experiment proceeds post-results.
29
- textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
30
- }
31
-
32
25
  // Ts ignore was used to allow use of conditional return type
33
26
  // (preferring better type on consumption over safety in implementation)
34
27
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-palette",
3
- "version": "2.1.21",
3
+ "version": "2.1.22",
4
4
  "description": "The editor palette",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,8 +29,7 @@
29
29
  "sideEffects": false,
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/tmp-editor-statsig": "^16.23.0",
33
- "@atlaskit/tokens": "^10.0.0",
32
+ "@atlaskit/tokens": "^10.1.0",
34
33
  "@babel/runtime": "^7.0.0"
35
34
  },
36
35
  "devDependencies": {