@atlaskit/editor-palette 2.1.6 → 2.1.8
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-palette
|
|
2
2
|
|
|
3
|
+
## 2.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#184251](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/184251)
|
|
8
|
+
[`be8b910f66de1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be8b910f66de1) -
|
|
9
|
+
[ED-91152] Clean up experiment editor_text_highlight_orange_to_yellow
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 2.1.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.1.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ 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");
|
|
11
10
|
// This import will be stripped on build
|
|
12
11
|
|
|
13
12
|
// Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
|
|
@@ -31,13 +30,9 @@ var textBackgroundColorPalette = exports.textBackgroundColorPalette = (0, _defin
|
|
|
31
30
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
32
31
|
*/
|
|
33
32
|
function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// @ts-expect-error Expect type error. Will modify production type
|
|
38
|
-
// if experiment proceeds post-results.
|
|
39
|
-
textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
|
|
40
|
-
}
|
|
33
|
+
// @ts-expect-error Expect type error. Will modify production type
|
|
34
|
+
// if experiment proceeds post-results.
|
|
35
|
+
textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
|
|
41
36
|
|
|
42
37
|
// Ts ignore was used to allow use of conditional return type
|
|
43
38
|
// (preferring better type on consumption over safety in implementation)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
2
1
|
// This import will be stripped on build
|
|
3
2
|
|
|
4
3
|
// Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
|
|
@@ -35,13 +34,9 @@ export const textBackgroundColorPalette = {
|
|
|
35
34
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
36
35
|
*/
|
|
37
36
|
export function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// @ts-expect-error Expect type error. Will modify production type
|
|
42
|
-
// if experiment proceeds post-results.
|
|
43
|
-
textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
|
|
44
|
-
}
|
|
37
|
+
// @ts-expect-error Expect type error. Will modify production type
|
|
38
|
+
// if experiment proceeds post-results.
|
|
39
|
+
textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
|
|
45
40
|
|
|
46
41
|
// Ts ignore was used to allow use of conditional return type
|
|
47
42
|
// (preferring better type on consumption over safety in implementation)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
2
|
// This import will be stripped on build
|
|
4
3
|
|
|
5
4
|
// Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
|
|
@@ -23,13 +22,9 @@ export var textBackgroundColorPalette = _defineProperty(_defineProperty(_defineP
|
|
|
23
22
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
24
23
|
*/
|
|
25
24
|
export function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// @ts-expect-error Expect type error. Will modify production type
|
|
30
|
-
// if experiment proceeds post-results.
|
|
31
|
-
textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
|
|
32
|
-
}
|
|
25
|
+
// @ts-expect-error Expect type error. Will modify production type
|
|
26
|
+
// if experiment proceeds post-results.
|
|
27
|
+
textBackgroundColorPalette['#FEDEC8'] = "var(--ds-background-accent-yellow-subtler, #F8E6A0)";
|
|
33
28
|
|
|
34
29
|
// Ts ignore was used to allow use of conditional return type
|
|
35
30
|
// (preferring better type on consumption over safety in implementation)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-palette",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "The editor palette",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"team": "Editor: Lego",
|
|
12
12
|
"website": {
|
|
13
13
|
"name": "Editor Palette"
|
|
14
|
-
}
|
|
15
|
-
"runReact18": true
|
|
14
|
+
}
|
|
16
15
|
},
|
|
17
16
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
17
|
"main": "dist/cjs/index.js",
|
|
@@ -33,8 +32,8 @@
|
|
|
33
32
|
".": "./src/index.ts"
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
37
|
-
"@atlaskit/tokens": "^5.
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^9.3.0",
|
|
36
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
38
37
|
"@babel/runtime": "^7.0.0"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|