@atlaskit/editor-plugin-highlight 4.0.3 → 4.0.5
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 4.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`555ac8f256674`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555ac8f256674) -
|
|
14
|
+
Update menu item icon size to small, tweak paddings and font styles
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -20,6 +20,7 @@ var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
|
20
20
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
21
21
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
22
22
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
23
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
23
24
|
var _checkMarkEditorDone = _interopRequireDefault(require("@atlaskit/icon/core/migration/check-mark--editor-done"));
|
|
24
25
|
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
|
|
25
26
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -91,7 +92,9 @@ function HighlightColorMenuItem(_ref2) {
|
|
|
91
92
|
return /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
92
93
|
xcss: styles.container,
|
|
93
94
|
testId: "highlight-color-menu-item"
|
|
94
|
-
}, /*#__PURE__*/React.createElement(
|
|
95
|
+
}, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(_heading.default, {
|
|
96
|
+
size: "xxsmall"
|
|
97
|
+
}, formatMessage(_messages.highlightMessages.highlight)) : /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
95
98
|
weight: "bold"
|
|
96
99
|
}, formatMessage(_messages.highlightMessages.highlight)), /*#__PURE__*/React.createElement(_editorToolbar.ColorPalette, {
|
|
97
100
|
onClick: function onClick(color) {
|
|
@@ -110,5 +113,7 @@ function HighlightColorMenuItem(_ref2) {
|
|
|
110
113
|
onClick: function onClick() {
|
|
111
114
|
return handleHighlightColorChange(_uiColor.REMOVE_HIGHLIGHT_COLOR);
|
|
112
115
|
}
|
|
113
|
-
},
|
|
116
|
+
}, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
117
|
+
weight: "medium"
|
|
118
|
+
}, "Remove highlight") : 'Remove highlight')));
|
|
114
119
|
}
|
|
@@ -11,6 +11,7 @@ import { REMOVE_HIGHLIGHT_COLOR, highlightColorPaletteNext } from '@atlaskit/edi
|
|
|
11
11
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
12
12
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
13
13
|
import { ColorPalette, TextColorIcon, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
14
|
+
import Heading from '@atlaskit/heading';
|
|
14
15
|
import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
|
|
15
16
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
16
17
|
import { Stack, Text, Box } from '@atlaskit/primitives/compiled';
|
|
@@ -77,7 +78,9 @@ export function HighlightColorMenuItem({
|
|
|
77
78
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
78
79
|
xcss: styles.container,
|
|
79
80
|
testId: "highlight-color-menu-item"
|
|
80
|
-
}, /*#__PURE__*/React.createElement(
|
|
81
|
+
}, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Heading, {
|
|
82
|
+
size: "xxsmall"
|
|
83
|
+
}, formatMessage(messages.highlight)) : /*#__PURE__*/React.createElement(Text, {
|
|
81
84
|
weight: "bold"
|
|
82
85
|
}, formatMessage(messages.highlight)), /*#__PURE__*/React.createElement(ColorPalette, {
|
|
83
86
|
onClick: color => {
|
|
@@ -94,5 +97,7 @@ export function HighlightColorMenuItem({
|
|
|
94
97
|
shouldFitContainer: true,
|
|
95
98
|
appearance: "subtle",
|
|
96
99
|
onClick: () => handleHighlightColorChange(REMOVE_HIGHLIGHT_COLOR)
|
|
97
|
-
},
|
|
100
|
+
}, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Text, {
|
|
101
|
+
weight: "medium"
|
|
102
|
+
}, "Remove highlight") : 'Remove highlight')));
|
|
98
103
|
}
|
|
@@ -14,6 +14,7 @@ import { REMOVE_HIGHLIGHT_COLOR, highlightColorPaletteNext } from '@atlaskit/edi
|
|
|
14
14
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
15
15
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
16
16
|
import { ColorPalette, TextColorIcon, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
17
|
+
import Heading from '@atlaskit/heading';
|
|
17
18
|
import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
|
|
18
19
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
19
20
|
import { Stack, Text, Box } from '@atlaskit/primitives/compiled';
|
|
@@ -82,7 +83,9 @@ export function HighlightColorMenuItem(_ref2) {
|
|
|
82
83
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
83
84
|
xcss: styles.container,
|
|
84
85
|
testId: "highlight-color-menu-item"
|
|
85
|
-
}, /*#__PURE__*/React.createElement(
|
|
86
|
+
}, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Heading, {
|
|
87
|
+
size: "xxsmall"
|
|
88
|
+
}, formatMessage(messages.highlight)) : /*#__PURE__*/React.createElement(Text, {
|
|
86
89
|
weight: "bold"
|
|
87
90
|
}, formatMessage(messages.highlight)), /*#__PURE__*/React.createElement(ColorPalette, {
|
|
88
91
|
onClick: function onClick(color) {
|
|
@@ -101,5 +104,7 @@ export function HighlightColorMenuItem(_ref2) {
|
|
|
101
104
|
onClick: function onClick() {
|
|
102
105
|
return handleHighlightColorChange(REMOVE_HIGHLIGHT_COLOR);
|
|
103
106
|
}
|
|
104
|
-
},
|
|
107
|
+
}, expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Text, {
|
|
108
|
+
weight: "medium"
|
|
109
|
+
}, "Remove highlight") : 'Remove highlight')));
|
|
105
110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^50.2.3",
|
|
36
36
|
"@atlaskit/button": "^23.4.0",
|
|
37
|
-
"@atlaskit/css": "^0.
|
|
37
|
+
"@atlaskit/css": "^0.14.0",
|
|
38
38
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^4.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
|
|
@@ -46,16 +46,17 @@
|
|
|
46
46
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
47
47
|
"@atlaskit/editor-toolbar": "^0.8.0",
|
|
48
48
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
49
|
+
"@atlaskit/heading": "^5.2.0",
|
|
49
50
|
"@atlaskit/icon": "^28.1.0",
|
|
50
51
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
|
-
"@atlaskit/primitives": "^14.
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
53
|
-
"@atlaskit/tokens": "^6.
|
|
52
|
+
"@atlaskit/primitives": "^14.14.0",
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^12.6.0",
|
|
54
|
+
"@atlaskit/tokens": "^6.3.0",
|
|
54
55
|
"@babel/runtime": "^7.0.0",
|
|
55
56
|
"@emotion/react": "^11.7.1"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^108.
|
|
59
|
+
"@atlaskit/editor-common": "^108.5.0",
|
|
59
60
|
"react": "^18.2.0",
|
|
60
61
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
61
62
|
},
|