@atlaskit/editor-plugin-text-color 1.8.2 → 1.8.4
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-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 1.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#116760](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116760)
|
|
8
|
+
[`2e309117f02c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2e309117f02c6) -
|
|
9
|
+
[ED-23062] Clean up feature flag for highlight palette dark mode improvements
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.8.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.8.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -18,7 +18,6 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
18
18
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
19
19
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
20
20
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
21
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
21
|
var _color = require("../utils/color");
|
|
23
22
|
var _constants = require("../utils/constants");
|
|
24
23
|
var _disabled = require("../utils/disabled");
|
|
@@ -29,8 +28,8 @@ function createInitialPluginState(editorState, pluginConfig) {
|
|
|
29
28
|
var palette = [{
|
|
30
29
|
value: defaultColor.color,
|
|
31
30
|
label: defaultColor.label,
|
|
32
|
-
border:
|
|
33
|
-
}].concat((0, _toConsumableArray2.default)(
|
|
31
|
+
border: "var(--ds-border, #091E4224)"
|
|
32
|
+
}].concat((0, _toConsumableArray2.default)(_uiColor.textColorPalette));
|
|
34
33
|
var state = {
|
|
35
34
|
color: (0, _color.getActiveColor)(editorState),
|
|
36
35
|
disabled: (0, _disabled.getDisabledState)(editorState),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import {
|
|
2
|
+
import { textColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
3
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { getActiveColor } from '../utils/color';
|
|
6
5
|
import { DEFAULT_COLOR } from '../utils/constants';
|
|
7
6
|
import { getDisabledState } from '../utils/disabled';
|
|
@@ -11,8 +10,8 @@ function createInitialPluginState(editorState, pluginConfig) {
|
|
|
11
10
|
const palette = [{
|
|
12
11
|
value: defaultColor.color,
|
|
13
12
|
label: defaultColor.label,
|
|
14
|
-
border:
|
|
15
|
-
}, ...
|
|
13
|
+
border: "var(--ds-border, #091E4224)"
|
|
14
|
+
}, ...textColorPalette];
|
|
16
15
|
const state = {
|
|
17
16
|
color: getActiveColor(editorState),
|
|
18
17
|
disabled: getDisabledState(editorState),
|
|
@@ -3,9 +3,8 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
|
-
import {
|
|
6
|
+
import { textColorPalette } from '@atlaskit/editor-common/ui-color';
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { getActiveColor } from '../utils/color';
|
|
10
9
|
import { DEFAULT_COLOR } from '../utils/constants';
|
|
11
10
|
import { getDisabledState } from '../utils/disabled';
|
|
@@ -15,8 +14,8 @@ function createInitialPluginState(editorState, pluginConfig) {
|
|
|
15
14
|
var palette = [{
|
|
16
15
|
value: defaultColor.color,
|
|
17
16
|
label: defaultColor.label,
|
|
18
|
-
border:
|
|
19
|
-
}].concat(_toConsumableArray(
|
|
17
|
+
border: "var(--ds-border, #091E4224)"
|
|
18
|
+
}].concat(_toConsumableArray(textColorPalette));
|
|
20
19
|
var state = {
|
|
21
20
|
color: getActiveColor(editorState),
|
|
22
21
|
disabled: getDisabledState(editorState),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,15 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^39.0.3",
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
37
|
+
"@atlaskit/editor-common": "^84.2.0",
|
|
38
38
|
"@atlaskit/editor-palette": "1.6.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
44
|
-
"@atlaskit/icon": "^22.
|
|
45
|
-
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
|
+
"@atlaskit/icon": "^22.6.0",
|
|
46
45
|
"@atlaskit/theme": "^12.11.0",
|
|
47
46
|
"@atlaskit/tokens": "^1.53.0",
|
|
48
47
|
"@babel/runtime": "^7.0.0",
|
|
@@ -93,10 +92,5 @@
|
|
|
93
92
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
94
93
|
]
|
|
95
94
|
}
|
|
96
|
-
},
|
|
97
|
-
"platform-feature-flags": {
|
|
98
|
-
"platform.editor.dynamic-palette-borders": {
|
|
99
|
-
"type": "boolean"
|
|
100
|
-
}
|
|
101
95
|
}
|
|
102
96
|
}
|