@atlaskit/adf-schema 49.0.3 → 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 +14 -0
- package/dist/cjs/schema/marks/background-color.js +2 -2
- package/dist/cjs/utils/editor-palette.js +1 -1
- package/dist/es2019/schema/marks/background-color.js +2 -2
- package/dist/es2019/utils/editor-palette.js +1 -1
- package/dist/esm/schema/marks/background-color.js +2 -2
- package/dist/esm/utils/editor-palette.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
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
|
+
|
9
|
+
## 49.0.4
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 522c857: Unpin version of @babel/runtime to allow minor version variance
|
14
|
+
- Updated dependencies [522c857]
|
15
|
+
- @atlaskit/editor-prosemirror@7.1.3
|
16
|
+
|
3
17
|
## 49.0.3
|
4
18
|
|
5
19
|
### 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
|
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
|
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 (
|
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
|
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
|
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 (
|
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
|
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
|
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 (
|
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.
|
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/"
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"dependencies": {
|
41
41
|
"@atlaskit/editor-prosemirror": "*",
|
42
42
|
"@atlaskit/feature-gate-js-client": "^4.26.4",
|
43
|
-
"@babel/runtime": "7.26.10",
|
43
|
+
"@babel/runtime": "^7.26.10",
|
44
44
|
"css-color-names": "0.0.4",
|
45
45
|
"linkify-it": "^2.0.3",
|
46
46
|
"memoize-one": "^6.0.0"
|