@atlaskit/editor-palette 1.7.0 → 2.1.0
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,33 @@
|
|
|
1
1
|
# @atlaskit/editor-palette
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#126627](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/126627)
|
|
8
|
+
[`5842a0b7641b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5842a0b7641b7) -
|
|
9
|
+
[ux] EDF-2580: Swap Orange to Yellow in editor text background color palette toolbar behind
|
|
10
|
+
experiment editor_text_highlight_orange_to_yellow, minor bump adf-schema in resolutions to pick up
|
|
11
|
+
toDOM mark render update
|
|
12
|
+
|
|
13
|
+
## 2.0.0
|
|
14
|
+
|
|
15
|
+
### Major Changes
|
|
16
|
+
|
|
17
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
18
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
19
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
20
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
21
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
22
|
+
React 17 may come via non-major semver releases.
|
|
23
|
+
|
|
24
|
+
Please refer this community post for more details:
|
|
25
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 1.7.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
@@ -7,6 +7,7 @@ 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");
|
|
10
11
|
// This import will be stripped on build
|
|
11
12
|
|
|
12
13
|
// Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
|
|
@@ -30,6 +31,14 @@ var textBackgroundColorPalette = exports.textBackgroundColorPalette = (0, _defin
|
|
|
30
31
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
31
32
|
*/
|
|
32
33
|
function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
34
|
+
if ((0, _experiments.editorExperiment)('editor_text_highlight_orange_to_yellow', 'test', {
|
|
35
|
+
exposure: true
|
|
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
|
+
}
|
|
41
|
+
|
|
33
42
|
// Ts ignore was used to allow use of conditional return type
|
|
34
43
|
// (preferring better type on consumption over safety in implementation)
|
|
35
44
|
// @ts-ignore
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
1
2
|
// This import will be stripped on build
|
|
2
3
|
|
|
3
4
|
// Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
|
|
@@ -34,6 +35,14 @@ export const textBackgroundColorPalette = {
|
|
|
34
35
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
35
36
|
*/
|
|
36
37
|
export function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
38
|
+
if (editorExperiment('editor_text_highlight_orange_to_yellow', 'test', {
|
|
39
|
+
exposure: true
|
|
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
|
+
}
|
|
45
|
+
|
|
37
46
|
// Ts ignore was used to allow use of conditional return type
|
|
38
47
|
// (preferring better type on consumption over safety in implementation)
|
|
39
48
|
// @ts-ignore
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
2
3
|
// This import will be stripped on build
|
|
3
4
|
|
|
4
5
|
// Color tokens defined on https://hello.atlassian.net/wiki/spaces/EOU/pages/3587733210/Text+highlighting+-+designs#Colour-palette
|
|
@@ -22,6 +23,14 @@ export var textBackgroundColorPalette = _defineProperty(_defineProperty(_defineP
|
|
|
22
23
|
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
23
24
|
*/
|
|
24
25
|
export function hexToEditorTextBackgroundPaletteColor(hexColor) {
|
|
26
|
+
if (editorExperiment('editor_text_highlight_orange_to_yellow', 'test', {
|
|
27
|
+
exposure: true
|
|
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
|
+
}
|
|
33
|
+
|
|
25
34
|
// Ts ignore was used to allow use of conditional return type
|
|
26
35
|
// (preferring better type on consumption over safety in implementation)
|
|
27
36
|
// @ts-ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-palette",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "The editor palette",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/
|
|
36
|
+
"@atlaskit/tmp-editor-statsig": "^3.6.0",
|
|
37
|
+
"@atlaskit/tokens": "^4.5.0",
|
|
37
38
|
"@babel/runtime": "^7.0.0"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
@@ -42,8 +43,8 @@
|
|
|
42
43
|
"wait-for-expect": "^1.2.0"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
|
-
"react": "^
|
|
46
|
-
"react-dom": "^
|
|
46
|
+
"react": "^18.2.0",
|
|
47
|
+
"react-dom": "^18.2.0"
|
|
47
48
|
},
|
|
48
49
|
"techstack": {
|
|
49
50
|
"@atlassian/frontend": {
|