@atlaskit/editor-palette 2.1.7 → 2.1.9

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,23 @@
1
1
  # @atlaskit/editor-palette
2
2
 
3
+ ## 2.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#185643](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185643)
8
+ [`5954e6c1fbac5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5954e6c1fbac5) -
9
+ [ux] [ED-28432] Add orange highlight color and reorder color swatches
10
+ - Updated dependencies
11
+
12
+ ## 2.1.8
13
+
14
+ ### Patch Changes
15
+
16
+ - [#184251](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/184251)
17
+ [`be8b910f66de1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be8b910f66de1) -
18
+ [ED-91152] Clean up experiment editor_text_highlight_orange_to_yellow
19
+ - Updated dependencies
20
+
3
21
  ## 2.1.7
4
22
 
5
23
  ### Patch Changes
@@ -7,12 +7,12 @@ 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 _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
10
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
11
  // This import will be stripped on build
12
12
 
13
13
  // Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
14
14
  // values are asserted to improve generated type declarations
15
- var textBackgroundColorPalette = exports.textBackgroundColorPalette = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, '#DCDFE4', "var(--ds-background-accent-gray-subtler, #DCDFE4)"), '#C6EDFB', "var(--ds-background-accent-teal-subtler, #C6EDFB)"), '#D3F1A7', "var(--ds-background-accent-lime-subtler, #D3F1A7)"), '#FEDEC8', "var(--ds-background-accent-orange-subtler, #FEDEC8)"), '#FDD0EC', "var(--ds-background-accent-magenta-subtler, #FDD0EC)"), '#DFD8FD', "var(--ds-background-accent-purple-subtler, #DFD8FD)");
15
+ var textBackgroundColorPalette = exports.textBackgroundColorPalette = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, '#DCDFE4', "var(--ds-background-accent-gray-subtler, #DCDFE4)"), '#C6EDFB', "var(--ds-background-accent-teal-subtler, #C6EDFB)"), '#D3F1A7', "var(--ds-background-accent-lime-subtler, #D3F1A7)"), '#F8E6A0', "var(--ds-background-accent-yellow-subtler, #F8E6A0)"), '#FEDEC8', "var(--ds-background-accent-orange-subtler, #FEDEC8)"), '#FDD0EC', "var(--ds-background-accent-magenta-subtler, #FDD0EC)"), '#DFD8FD', "var(--ds-background-accent-purple-subtler, #DFD8FD)");
16
16
  /**
17
17
  * This takes an ADF hex color and returns a matching text background palette color.
18
18
  *
@@ -31,9 +31,7 @@ var textBackgroundColorPalette = exports.textBackgroundColorPalette = (0, _defin
31
31
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
32
32
  */
33
33
  function hexToEditorTextBackgroundPaletteColor(hexColor) {
34
- if ((0, _experiments.editorExperiment)('editor_text_highlight_orange_to_yellow', 'test', {
35
- exposure: true
36
- })) {
34
+ if (!(0, _expValEquals.expValEquals)('platform_editor_add_orange_highlight_color', 'cohort', 'test')) {
37
35
  // @ts-expect-error Expect type error. Will modify production type
38
36
  // if experiment proceeds post-results.
39
37
  textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
@@ -1,4 +1,4 @@
1
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
1
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
2
  // This import will be stripped on build
3
3
 
4
4
  // Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
@@ -10,6 +10,8 @@ export const textBackgroundColorPalette = {
10
10
  ['#C6EDFB']: "var(--ds-background-accent-teal-subtler, #C6EDFB)",
11
11
  /** Lime - light */
12
12
  ['#D3F1A7']: "var(--ds-background-accent-lime-subtler, #D3F1A7)",
13
+ /** Yellow - light */
14
+ ['#F8E6A0']: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
13
15
  /** Orange - light */
14
16
  ['#FEDEC8']: "var(--ds-background-accent-orange-subtler, #FEDEC8)",
15
17
  /** Magenta - light */
@@ -35,9 +37,7 @@ export const textBackgroundColorPalette = {
35
37
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
36
38
  */
37
39
  export function hexToEditorTextBackgroundPaletteColor(hexColor) {
38
- if (editorExperiment('editor_text_highlight_orange_to_yellow', 'test', {
39
- exposure: true
40
- })) {
40
+ if (!expValEquals('platform_editor_add_orange_highlight_color', 'cohort', 'test')) {
41
41
  // @ts-expect-error Expect type error. Will modify production type
42
42
  // if experiment proceeds post-results.
43
43
  textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
@@ -1,10 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
3
  // This import will be stripped on build
4
4
 
5
5
  // Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
6
6
  // values are asserted to improve generated type declarations
7
- export var textBackgroundColorPalette = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '#DCDFE4', "var(--ds-background-accent-gray-subtler, #DCDFE4)"), '#C6EDFB', "var(--ds-background-accent-teal-subtler, #C6EDFB)"), '#D3F1A7', "var(--ds-background-accent-lime-subtler, #D3F1A7)"), '#FEDEC8', "var(--ds-background-accent-orange-subtler, #FEDEC8)"), '#FDD0EC', "var(--ds-background-accent-magenta-subtler, #FDD0EC)"), '#DFD8FD', "var(--ds-background-accent-purple-subtler, #DFD8FD)");
7
+ export var textBackgroundColorPalette = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '#DCDFE4', "var(--ds-background-accent-gray-subtler, #DCDFE4)"), '#C6EDFB', "var(--ds-background-accent-teal-subtler, #C6EDFB)"), '#D3F1A7', "var(--ds-background-accent-lime-subtler, #D3F1A7)"), '#F8E6A0', "var(--ds-background-accent-yellow-subtler, #F8E6A0)"), '#FEDEC8', "var(--ds-background-accent-orange-subtler, #FEDEC8)"), '#FDD0EC', "var(--ds-background-accent-magenta-subtler, #FDD0EC)"), '#DFD8FD', "var(--ds-background-accent-purple-subtler, #DFD8FD)");
8
8
  /**
9
9
  * This takes an ADF hex color and returns a matching text background palette color.
10
10
  *
@@ -23,9 +23,7 @@ export var textBackgroundColorPalette = _defineProperty(_defineProperty(_defineP
23
23
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
24
24
  */
25
25
  export function hexToEditorTextBackgroundPaletteColor(hexColor) {
26
- if (editorExperiment('editor_text_highlight_orange_to_yellow', 'test', {
27
- exposure: true
28
- })) {
26
+ if (!expValEquals('platform_editor_add_orange_highlight_color', 'cohort', 'test')) {
29
27
  // @ts-expect-error Expect type error. Will modify production type
30
28
  // if experiment proceeds post-results.
31
29
  textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
@@ -5,6 +5,8 @@ export declare const textBackgroundColorPalette: {
5
5
  "#C6EDFB": "var(--ds-background-accent-teal-subtler, #C6EDFB)";
6
6
  /** Lime - light */
7
7
  "#D3F1A7": "var(--ds-background-accent-lime-subtler, #D3F1A7)";
8
+ /** Yellow - light */
9
+ "#F8E6A0": "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
8
10
  /** Orange - light */
9
11
  "#FEDEC8": "var(--ds-background-accent-orange-subtler, #FEDEC8)";
10
12
  /** Magenta - light */
@@ -5,6 +5,8 @@ export declare const textBackgroundColorPalette: {
5
5
  "#C6EDFB": "var(--ds-background-accent-teal-subtler, #C6EDFB)";
6
6
  /** Lime - light */
7
7
  "#D3F1A7": "var(--ds-background-accent-lime-subtler, #D3F1A7)";
8
+ /** Yellow - light */
9
+ "#F8E6A0": "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
8
10
  /** Orange - light */
9
11
  "#FEDEC8": "var(--ds-background-accent-orange-subtler, #FEDEC8)";
10
12
  /** Magenta - light */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-palette",
3
- "version": "2.1.7",
3
+ "version": "2.1.9",
4
4
  "description": "The editor palette",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,8 +32,8 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/tmp-editor-statsig": "^9.0.0",
36
- "@atlaskit/tokens": "^5.4.0",
35
+ "@atlaskit/tmp-editor-statsig": "^9.6.0",
36
+ "@atlaskit/tokens": "^5.5.0",
37
37
  "@babel/runtime": "^7.0.0"
38
38
  },
39
39
  "devDependencies": {