@atlaskit/editor-plugin-text-color 7.2.0 → 7.2.1
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 7.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`20d29306fb10e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20d29306fb10e) -
|
|
8
|
+
[ED-29451] clean up platform_editor_toolbar_aifc_patch_5
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -42,7 +42,7 @@ var TextColorHighlightMenu = exports.TextColorHighlightMenu = function TextColor
|
|
|
42
42
|
var isTextColorDisabled = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'textColor.disabled');
|
|
43
43
|
var _useToolbarUI = (0, _editorToolbar.useToolbarUI)(),
|
|
44
44
|
isToolbarDisabled = _useToolbarUI.isDisabled;
|
|
45
|
-
var isDisabled =
|
|
45
|
+
var isDisabled = Boolean(isToolbarDisabled || isTextColorDisabled);
|
|
46
46
|
var highlightColor = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'highlight.activeColor');
|
|
47
47
|
var textColor = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'textColor.color');
|
|
48
48
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
@@ -36,7 +36,7 @@ export const TextColorHighlightMenu = ({
|
|
|
36
36
|
const {
|
|
37
37
|
isDisabled: isToolbarDisabled
|
|
38
38
|
} = useToolbarUI();
|
|
39
|
-
const isDisabled =
|
|
39
|
+
const isDisabled = Boolean(isToolbarDisabled || isTextColorDisabled);
|
|
40
40
|
const highlightColor = useSharedPluginStateSelector(api, 'highlight.activeColor');
|
|
41
41
|
const textColor = useSharedPluginStateSelector(api, 'textColor.color');
|
|
42
42
|
const {
|
|
@@ -34,7 +34,7 @@ export var TextColorHighlightMenu = function TextColorHighlightMenu(_ref) {
|
|
|
34
34
|
var isTextColorDisabled = useSharedPluginStateSelector(api, 'textColor.disabled');
|
|
35
35
|
var _useToolbarUI = useToolbarUI(),
|
|
36
36
|
isToolbarDisabled = _useToolbarUI.isDisabled;
|
|
37
|
-
var isDisabled =
|
|
37
|
+
var isDisabled = Boolean(isToolbarDisabled || isTextColorDisabled);
|
|
38
38
|
var highlightColor = useSharedPluginStateSelector(api, 'highlight.activeColor');
|
|
39
39
|
var textColor = useSharedPluginStateSelector(api, 'textColor.color');
|
|
40
40
|
var _useIntl = useIntl(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/primitives": "^17.0.0",
|
|
49
49
|
"@atlaskit/theme": "^21.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^16.19.0",
|
|
51
51
|
"@atlaskit/tokens": "^9.1.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^111.
|
|
56
|
+
"@atlaskit/editor-common": "^111.8.0",
|
|
57
57
|
"react": "^18.2.0",
|
|
58
58
|
"react-dom": "^18.2.0",
|
|
59
59
|
"react-intl-next": "npm:react-intl@^5.18.1"
|