@atlaskit/editor-plugin-text-color 6.0.2 → 6.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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 6.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`4ad69354a021d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4ad69354a021d) -
|
|
8
|
+
Remove references to platform_editor_toolbar_aifc_patch_1 experiment, remove
|
|
9
|
+
useToolbarDropdownMenuOld export from @atlaskit/editor-toolbar package
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 6.0.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 6.0.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -40,7 +40,7 @@ var TextColorHighlightMenu = exports.TextColorHighlightMenu = function TextColor
|
|
|
40
40
|
var defaultColor = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'textColor.defaultColor');
|
|
41
41
|
var iconColor = getIconColor(textColor, defaultColor, highlightColor);
|
|
42
42
|
var highlightColorIcon = highlightColor ? highlightColor : (0, _editorToolbar.getContrastingBackgroundColor)(iconColor);
|
|
43
|
-
return
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
44
44
|
content: formatMessage(isHighlightPluginExisted ? _messages.textColorMessages.textColorHighlightTooltip : _messages.textColorMessages.textColorTooltip)
|
|
45
45
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenuProvider, null, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
46
46
|
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarColorSwatch, {
|
|
@@ -58,21 +58,5 @@ var TextColorHighlightMenu = exports.TextColorHighlightMenu = function TextColor
|
|
|
58
58
|
hasSectionMargin: false
|
|
59
59
|
}, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? children : /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
60
60
|
xcss: styles.menu
|
|
61
|
-
}, children))))
|
|
62
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarColorSwatch, {
|
|
63
|
-
highlightColor: highlightColorIcon
|
|
64
|
-
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.TextColorIcon, {
|
|
65
|
-
label: formatMessage(_messages.textColorMessages.textColorTooltip),
|
|
66
|
-
iconColor: iconColor,
|
|
67
|
-
shouldRecommendSmallIcon: true,
|
|
68
|
-
size: 'small',
|
|
69
|
-
isDisabled: isDisabled,
|
|
70
|
-
spacing: 'compact'
|
|
71
|
-
})),
|
|
72
|
-
isDisabled: isDisabled,
|
|
73
|
-
testId: "text-color-highlight-menu",
|
|
74
|
-
hasSectionMargin: false
|
|
75
|
-
}, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? children : /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
76
|
-
xcss: styles.menu
|
|
77
|
-
}, children));
|
|
61
|
+
}, children))));
|
|
78
62
|
};
|
|
@@ -36,7 +36,7 @@ export const TextColorHighlightMenu = ({
|
|
|
36
36
|
const defaultColor = useSharedPluginStateSelector(api, 'textColor.defaultColor');
|
|
37
37
|
const iconColor = getIconColor(textColor, defaultColor, highlightColor);
|
|
38
38
|
const highlightColorIcon = highlightColor ? highlightColor : getContrastingBackgroundColor(iconColor);
|
|
39
|
-
return
|
|
39
|
+
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
40
40
|
content: formatMessage(isHighlightPluginExisted ? messages.textColorHighlightTooltip : messages.textColorTooltip)
|
|
41
41
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenuProvider, null, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
42
42
|
iconBefore: /*#__PURE__*/React.createElement(ToolbarColorSwatch, {
|
|
@@ -54,21 +54,5 @@ export const TextColorHighlightMenu = ({
|
|
|
54
54
|
hasSectionMargin: false
|
|
55
55
|
}, expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? children : /*#__PURE__*/React.createElement(Box, {
|
|
56
56
|
xcss: styles.menu
|
|
57
|
-
}, children))))
|
|
58
|
-
iconBefore: /*#__PURE__*/React.createElement(ToolbarColorSwatch, {
|
|
59
|
-
highlightColor: highlightColorIcon
|
|
60
|
-
}, /*#__PURE__*/React.createElement(TextColorIcon, {
|
|
61
|
-
label: formatMessage(messages.textColorTooltip),
|
|
62
|
-
iconColor: iconColor,
|
|
63
|
-
shouldRecommendSmallIcon: true,
|
|
64
|
-
size: 'small',
|
|
65
|
-
isDisabled: isDisabled,
|
|
66
|
-
spacing: 'compact'
|
|
67
|
-
})),
|
|
68
|
-
isDisabled: isDisabled,
|
|
69
|
-
testId: "text-color-highlight-menu",
|
|
70
|
-
hasSectionMargin: false
|
|
71
|
-
}, expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? children : /*#__PURE__*/React.createElement(Box, {
|
|
72
|
-
xcss: styles.menu
|
|
73
|
-
}, children));
|
|
57
|
+
}, children))));
|
|
74
58
|
};
|
|
@@ -33,7 +33,7 @@ export var TextColorHighlightMenu = function TextColorHighlightMenu(_ref) {
|
|
|
33
33
|
var defaultColor = useSharedPluginStateSelector(api, 'textColor.defaultColor');
|
|
34
34
|
var iconColor = getIconColor(textColor, defaultColor, highlightColor);
|
|
35
35
|
var highlightColorIcon = highlightColor ? highlightColor : getContrastingBackgroundColor(iconColor);
|
|
36
|
-
return
|
|
36
|
+
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
37
37
|
content: formatMessage(isHighlightPluginExisted ? messages.textColorHighlightTooltip : messages.textColorTooltip)
|
|
38
38
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenuProvider, null, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
39
39
|
iconBefore: /*#__PURE__*/React.createElement(ToolbarColorSwatch, {
|
|
@@ -51,21 +51,5 @@ export var TextColorHighlightMenu = function TextColorHighlightMenu(_ref) {
|
|
|
51
51
|
hasSectionMargin: false
|
|
52
52
|
}, expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? children : /*#__PURE__*/React.createElement(Box, {
|
|
53
53
|
xcss: styles.menu
|
|
54
|
-
}, children))))
|
|
55
|
-
iconBefore: /*#__PURE__*/React.createElement(ToolbarColorSwatch, {
|
|
56
|
-
highlightColor: highlightColorIcon
|
|
57
|
-
}, /*#__PURE__*/React.createElement(TextColorIcon, {
|
|
58
|
-
label: formatMessage(messages.textColorTooltip),
|
|
59
|
-
iconColor: iconColor,
|
|
60
|
-
shouldRecommendSmallIcon: true,
|
|
61
|
-
size: 'small',
|
|
62
|
-
isDisabled: isDisabled,
|
|
63
|
-
spacing: 'compact'
|
|
64
|
-
})),
|
|
65
|
-
isDisabled: isDisabled,
|
|
66
|
-
testId: "text-color-highlight-menu",
|
|
67
|
-
hasSectionMargin: false
|
|
68
|
-
}, expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? children : /*#__PURE__*/React.createElement(Box, {
|
|
69
|
-
xcss: styles.menu
|
|
70
|
-
}, children));
|
|
54
|
+
}, children))));
|
|
71
55
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,25 +30,25 @@
|
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/adf-schema": "^51.2.0",
|
|
33
|
-
"@atlaskit/button": "^23.
|
|
33
|
+
"@atlaskit/button": "^23.5.0",
|
|
34
34
|
"@atlaskit/css": "^0.14.0",
|
|
35
35
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^6.1.0",
|
|
37
|
-
"@atlaskit/editor-plugin-highlight": "^6.
|
|
37
|
+
"@atlaskit/editor-plugin-highlight": "^6.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-toolbar": "^3.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
44
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
44
|
+
"@atlaskit/editor-toolbar": "^0.12.0",
|
|
45
45
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
46
46
|
"@atlaskit/heading": "^5.2.0",
|
|
47
47
|
"@atlaskit/icon": "^28.3.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^14.15.0",
|
|
50
50
|
"@atlaskit/theme": "^21.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^13.1.0",
|
|
52
52
|
"@atlaskit/tokens": "^6.4.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1"
|