@atlaskit/editor-plugin-highlight 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-highlight
|
|
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
|
|
@@ -78,13 +78,9 @@ function HighlightColorMenuItem(_ref2) {
|
|
|
78
78
|
return color.value !== _uiColor.REMOVE_HIGHLIGHT_COLOR;
|
|
79
79
|
}).map(function (color) {
|
|
80
80
|
return _objectSpread(_objectSpread({}, color), {}, {
|
|
81
|
-
decorator:
|
|
81
|
+
decorator: /*#__PURE__*/React.createElement(TextColorIconDecorator, {
|
|
82
82
|
label: color.label,
|
|
83
83
|
isSelected: isSelected(color)
|
|
84
|
-
}) : /*#__PURE__*/React.createElement(_editorToolbar.TextColorIcon, {
|
|
85
|
-
label: color.label,
|
|
86
|
-
size: "small",
|
|
87
|
-
spacing: "spacious"
|
|
88
84
|
})
|
|
89
85
|
});
|
|
90
86
|
});
|
|
@@ -10,7 +10,7 @@ import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
|
10
10
|
import { REMOVE_HIGHLIGHT_COLOR, highlightColorPaletteNext } from '@atlaskit/editor-common/ui-color';
|
|
11
11
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
12
12
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
13
|
-
import { ColorPalette,
|
|
13
|
+
import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
14
14
|
import Heading from '@atlaskit/heading';
|
|
15
15
|
import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
|
|
16
16
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
@@ -65,13 +65,9 @@ export function HighlightColorMenuItem({
|
|
|
65
65
|
const isSelected = color => color.value === activeColor;
|
|
66
66
|
return highlightColorPaletteNext.filter(color => color.value !== REMOVE_HIGHLIGHT_COLOR).map(color => ({
|
|
67
67
|
...color,
|
|
68
|
-
decorator:
|
|
68
|
+
decorator: /*#__PURE__*/React.createElement(TextColorIconDecorator, {
|
|
69
69
|
label: color.label,
|
|
70
70
|
isSelected: isSelected(color)
|
|
71
|
-
}) : /*#__PURE__*/React.createElement(TextColorIcon, {
|
|
72
|
-
label: color.label,
|
|
73
|
-
size: "small",
|
|
74
|
-
spacing: "spacious"
|
|
75
71
|
})
|
|
76
72
|
}));
|
|
77
73
|
}, [activeColor]);
|
|
@@ -13,7 +13,7 @@ import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
|
13
13
|
import { REMOVE_HIGHLIGHT_COLOR, highlightColorPaletteNext } from '@atlaskit/editor-common/ui-color';
|
|
14
14
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
15
15
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
16
|
-
import { ColorPalette,
|
|
16
|
+
import { ColorPalette, useToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
17
17
|
import Heading from '@atlaskit/heading';
|
|
18
18
|
import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
|
|
19
19
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
@@ -69,13 +69,9 @@ export function HighlightColorMenuItem(_ref2) {
|
|
|
69
69
|
return color.value !== REMOVE_HIGHLIGHT_COLOR;
|
|
70
70
|
}).map(function (color) {
|
|
71
71
|
return _objectSpread(_objectSpread({}, color), {}, {
|
|
72
|
-
decorator:
|
|
72
|
+
decorator: /*#__PURE__*/React.createElement(TextColorIconDecorator, {
|
|
73
73
|
label: color.label,
|
|
74
74
|
isSelected: isSelected(color)
|
|
75
|
-
}) : /*#__PURE__*/React.createElement(TextColorIcon, {
|
|
76
|
-
label: color.label,
|
|
77
|
-
size: "small",
|
|
78
|
-
spacing: "spacious"
|
|
79
75
|
})
|
|
80
76
|
});
|
|
81
77
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"atlaskit:src": "src/index.ts",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^51.2.0",
|
|
36
|
-
"@atlaskit/button": "^23.
|
|
36
|
+
"@atlaskit/button": "^23.5.0",
|
|
37
37
|
"@atlaskit/css": "^0.14.0",
|
|
38
38
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^6.1.0",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
46
46
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
47
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
47
|
+
"@atlaskit/editor-toolbar": "^0.12.0",
|
|
48
48
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
49
49
|
"@atlaskit/heading": "^5.2.0",
|
|
50
50
|
"@atlaskit/icon": "^28.3.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
52
|
"@atlaskit/primitives": "^14.15.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^13.1.0",
|
|
54
54
|
"@atlaskit/tokens": "^6.4.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@emotion/react": "^11.7.1"
|