@atlaskit/adf-schema 49.0.1 → 49.0.2

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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - f22895a: [FD-91152] Clean up experiment editor_text_highlight_orange_to_yellow
8
+
3
9
  ## 49.0.1
4
10
 
5
11
  ### Patch Changes
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -10,7 +9,6 @@ exports.hexToEditorBorderPaletteColor = hexToEditorBorderPaletteColor;
10
9
  exports.hexToEditorTextBackgroundPaletteColor = hexToEditorTextBackgroundPaletteColor;
11
10
  exports.hexToEditorTextPaletteColor = hexToEditorTextPaletteColor;
12
11
  exports.textBackgroundColorPalette = void 0;
13
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
14
12
  /**
15
13
  * This takes an adf hex color and returns a matching border palette color.
16
14
  *
@@ -127,12 +125,7 @@ var editorTextPalette = exports.editorTextPalette = {
127
125
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
128
126
  */
129
127
  function hexToEditorTextBackgroundPaletteColor(hexColor) {
130
- var orangeToYellowEnabled = _featureGateJsClient.default.getExperimentValue('editor_text_highlight_orange_to_yellow', 'cohort', 'control', {
131
- fireExperimentExposure: true
132
- });
133
- if (orangeToYellowEnabled === 'test') {
134
- textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
135
- }
128
+ textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
136
129
 
137
130
  // Ts ignore was used to allow use of conditional return type
138
131
  // (preferring better type on consumption over safety in implementation)
@@ -1,5 +1,3 @@
1
- import FeatureGates from '@atlaskit/feature-gate-js-client';
2
-
3
1
  /**
4
2
  * This takes an adf hex color and returns a matching border palette color.
5
3
  *
@@ -116,12 +114,7 @@ export const editorTextPalette = {
116
114
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
117
115
  */
118
116
  export function hexToEditorTextBackgroundPaletteColor(hexColor) {
119
- const orangeToYellowEnabled = FeatureGates.getExperimentValue('editor_text_highlight_orange_to_yellow', 'cohort', 'control', {
120
- fireExperimentExposure: true
121
- });
122
- if (orangeToYellowEnabled === 'test') {
123
- textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
124
- }
117
+ textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
125
118
 
126
119
  // Ts ignore was used to allow use of conditional return type
127
120
  // (preferring better type on consumption over safety in implementation)
@@ -1,5 +1,3 @@
1
- import FeatureGates from '@atlaskit/feature-gate-js-client';
2
-
3
1
  /**
4
2
  * This takes an adf hex color and returns a matching border palette color.
5
3
  *
@@ -116,12 +114,7 @@ export var editorTextPalette = {
116
114
  * - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
117
115
  */
118
116
  export function hexToEditorTextBackgroundPaletteColor(hexColor) {
119
- var orangeToYellowEnabled = FeatureGates.getExperimentValue('editor_text_highlight_orange_to_yellow', 'cohort', 'control', {
120
- fireExperimentExposure: true
121
- });
122
- if (orangeToYellowEnabled === 'test') {
123
- textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
124
- }
117
+ textBackgroundColorPalette['#FEDEC8'] = 'var(--ds-background-accent-yellow-subtler, #F8E6A0)';
125
118
 
126
119
  // Ts ignore was used to allow use of conditional return type
127
120
  // (preferring better type on consumption over safety in implementation)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "49.0.1",
3
+ "version": "49.0.2",
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/"