@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,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
|
-
|
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
|
-
|
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
|
-
|
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