@atlaskit/adf-schema 49.0.4 → 49.0.5

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,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 49.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 076fe56: [ED-28432] Replace feature gate with experiment platform_editor_add_orange_highlight_color
8
+
3
9
  ## 49.0.4
4
10
 
5
11
  ### Patch Changes
@@ -16,7 +16,7 @@ var _lchColorInversion = require("../../utils/lch-color-inversion");
16
16
  * @name backgroundColor_mark
17
17
  */
18
18
 
19
- // Remove this when cleaning up platform_editor_add_back_orange_highlight_color
19
+ // Remove this when cleaning up platform_editor_add_orange_highlight_color
20
20
 
21
21
  var colorArrayPalette = [[_colors.Neutral300, 'Gray'],
22
22
  // token: color.background.accent.gray.subtler
@@ -46,7 +46,7 @@ var colorArrayPaletteNext = [[_colors.Neutral300, 'Gray'],
46
46
  ];
47
47
 
48
48
  // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
49
- // Remove this when cleaning up platform_editor_add_back_orange_highlight_color
49
+ // Remove this when cleaning up platform_editor_add_orange_highlight_color
50
50
  /**
51
51
  * @deprecated use backgroundColorPaletteNext instead, which in addition supports yellow highlight
52
52
  */
@@ -127,7 +127,7 @@ var editorTextPalette = exports.editorTextPalette = {
127
127
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
128
128
  */
129
129
  function hexToEditorTextBackgroundPaletteColor(hexColor) {
130
- if (!_featureGateJsClient.default.checkGate('platform_editor_add_back_orange_highlight_color')) {
130
+ if (_featureGateJsClient.default.getExperimentValue('platform_editor_add_orange_highlight_color', 'cohort', 'control') !== 'test') {
131
131
  textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
132
132
  }
133
133
 
@@ -8,7 +8,7 @@ import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
8
8
  * @name backgroundColor_mark
9
9
  */
10
10
 
11
- // Remove this when cleaning up platform_editor_add_back_orange_highlight_color
11
+ // Remove this when cleaning up platform_editor_add_orange_highlight_color
12
12
 
13
13
  const colorArrayPalette = [[Neutral300, 'Gray'],
14
14
  // token: color.background.accent.gray.subtler
@@ -38,7 +38,7 @@ const colorArrayPaletteNext = [[Neutral300, 'Gray'],
38
38
  ];
39
39
 
40
40
  // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
41
- // Remove this when cleaning up platform_editor_add_back_orange_highlight_color
41
+ // Remove this when cleaning up platform_editor_add_orange_highlight_color
42
42
  /**
43
43
  * @deprecated use backgroundColorPaletteNext instead, which in addition supports yellow highlight
44
44
  */
@@ -116,7 +116,7 @@ export const editorTextPalette = {
116
116
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
117
117
  */
118
118
  export function hexToEditorTextBackgroundPaletteColor(hexColor) {
119
- if (!FeatureGates.checkGate('platform_editor_add_back_orange_highlight_color')) {
119
+ if (FeatureGates.getExperimentValue('platform_editor_add_orange_highlight_color', 'cohort', 'control') !== 'test') {
120
120
  textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
121
121
  }
122
122
 
@@ -10,7 +10,7 @@ import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
10
10
  * @name backgroundColor_mark
11
11
  */
12
12
 
13
- // Remove this when cleaning up platform_editor_add_back_orange_highlight_color
13
+ // Remove this when cleaning up platform_editor_add_orange_highlight_color
14
14
 
15
15
  var colorArrayPalette = [[Neutral300, 'Gray'],
16
16
  // token: color.background.accent.gray.subtler
@@ -40,7 +40,7 @@ var colorArrayPaletteNext = [[Neutral300, 'Gray'],
40
40
  ];
41
41
 
42
42
  // @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/55979455/Colour+picker+decisions#Colourpickerdecisions-Visualdesigndecisions
43
- // Remove this when cleaning up platform_editor_add_back_orange_highlight_color
43
+ // Remove this when cleaning up platform_editor_add_orange_highlight_color
44
44
  /**
45
45
  * @deprecated use backgroundColorPaletteNext instead, which in addition supports yellow highlight
46
46
  */
@@ -116,7 +116,7 @@ export var editorTextPalette = {
116
116
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
117
117
  */
118
118
  export function hexToEditorTextBackgroundPaletteColor(hexColor) {
119
- if (!FeatureGates.checkGate('platform_editor_add_back_orange_highlight_color')) {
119
+ if (FeatureGates.getExperimentValue('platform_editor_add_orange_highlight_color', 'cohort', 'control') !== 'test') {
120
120
  textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
121
121
  }
122
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "49.0.4",
3
+ "version": "49.0.5",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"