@atlaskit/editor-plugin-highlight 2.5.7 → 2.5.9
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 +12 -0
- package/dist/cjs/ui/FloatingToolbarHighlightColor.js +5 -3
- package/dist/cjs/ui/PrimaryToolbarHighlightColor.js +5 -3
- package/dist/es2019/ui/FloatingToolbarHighlightColor.js +5 -3
- package/dist/es2019/ui/PrimaryToolbarHighlightColor.js +5 -3
- package/dist/esm/ui/FloatingToolbarHighlightColor.js +5 -3
- package/dist/esm/ui/PrimaryToolbarHighlightColor.js +5 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -19,7 +19,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
|
19
19
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
20
20
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
21
21
|
var _highlight = _interopRequireDefault(require("@atlaskit/icon/core/highlight"));
|
|
22
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
22
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
23
23
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
24
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
25
25
|
var _EditorHighlightIcon = require("./shared/EditorHighlightIcon");
|
|
@@ -138,7 +138,8 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
|
|
|
138
138
|
css: _styles.expandIconContainerStyle
|
|
139
139
|
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
140
140
|
label: "",
|
|
141
|
-
color: "currentColor"
|
|
141
|
+
color: "currentColor",
|
|
142
|
+
size: "small"
|
|
142
143
|
}))) : (0, _react2.jsx)("span", {
|
|
143
144
|
css: highlightIconContainerStyle
|
|
144
145
|
}, (0, _react2.jsx)(_EditorHighlightIcon.EditorHighlightIcon, {
|
|
@@ -151,7 +152,8 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
|
|
|
151
152
|
css: expandIconContainerHighlightStyle
|
|
152
153
|
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
153
154
|
label: "",
|
|
154
|
-
color: "currentColor"
|
|
155
|
+
color: "currentColor",
|
|
156
|
+
size: "small"
|
|
155
157
|
}))
|
|
156
158
|
}, (0, _experiments.editorExperiment)('platform_editor_controls', 'control') && formatMessage(_messages.highlightMessages.highlightFloatingToolbar)),
|
|
157
159
|
onColorChange: function onColorChange(color) {
|
|
@@ -18,7 +18,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
|
18
18
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
19
19
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
20
20
|
var _highlight = _interopRequireDefault(require("@atlaskit/icon/core/highlight"));
|
|
21
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
21
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
22
22
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
23
23
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
24
24
|
var _palette = require("../editor-commands/palette");
|
|
@@ -143,7 +143,8 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
|
|
|
143
143
|
css: _styles.expandIconContainerStyle
|
|
144
144
|
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
145
145
|
label: "",
|
|
146
|
-
color: "currentColor"
|
|
146
|
+
color: "currentColor",
|
|
147
|
+
size: "small"
|
|
147
148
|
}))) : (0, _react2.jsx)(_compiled.Flex, null, (0, _react2.jsx)(_EditorHighlightIcon.EditorHighlightIcon, {
|
|
148
149
|
selectedColor: activeColorToken,
|
|
149
150
|
disabled: highlightDisabled
|
|
@@ -151,7 +152,8 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
|
|
|
151
152
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
152
153
|
css: _styles.expandIconWrapperStyle
|
|
153
154
|
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
154
|
-
label: ""
|
|
155
|
+
label: "",
|
|
156
|
+
size: "small"
|
|
155
157
|
})))
|
|
156
158
|
}),
|
|
157
159
|
onColorChange: function onColorChange(color) {
|
|
@@ -17,7 +17,7 @@ import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
|
17
17
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
18
18
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
19
19
|
import HighlightIcon from '@atlaskit/icon/core/highlight';
|
|
20
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
20
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
23
23
|
import { EditorHighlightIcon } from './shared/EditorHighlightIcon';
|
|
@@ -132,7 +132,8 @@ const FloatingToolbarHighlightColor = ({
|
|
|
132
132
|
css: expandIconContainerStyle
|
|
133
133
|
}, jsx(ChevronDownIcon, {
|
|
134
134
|
label: "",
|
|
135
|
-
color: "currentColor"
|
|
135
|
+
color: "currentColor",
|
|
136
|
+
size: "small"
|
|
136
137
|
}))) : jsx("span", {
|
|
137
138
|
css: highlightIconContainerStyle
|
|
138
139
|
}, jsx(EditorHighlightIcon, {
|
|
@@ -145,7 +146,8 @@ const FloatingToolbarHighlightColor = ({
|
|
|
145
146
|
css: expandIconContainerHighlightStyle
|
|
146
147
|
}, jsx(ChevronDownIcon, {
|
|
147
148
|
label: "",
|
|
148
|
-
color: "currentColor"
|
|
149
|
+
color: "currentColor",
|
|
150
|
+
size: "small"
|
|
149
151
|
}))
|
|
150
152
|
}, editorExperiment('platform_editor_controls', 'control') && formatMessage(messages.highlightFloatingToolbar)),
|
|
151
153
|
onColorChange: color => handleColorChange({
|
|
@@ -17,7 +17,7 @@ import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
|
17
17
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
18
18
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
19
19
|
import HighlightIcon from '@atlaskit/icon/core/highlight';
|
|
20
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
20
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
23
23
|
import { setPalette } from '../editor-commands/palette';
|
|
@@ -143,7 +143,8 @@ const PrimaryToolbarHighlightColor = ({
|
|
|
143
143
|
css: expandIconContainerStyle
|
|
144
144
|
}, jsx(ChevronDownIcon, {
|
|
145
145
|
label: "",
|
|
146
|
-
color: "currentColor"
|
|
146
|
+
color: "currentColor",
|
|
147
|
+
size: "small"
|
|
147
148
|
}))) : jsx(Flex, null, jsx(EditorHighlightIcon, {
|
|
148
149
|
selectedColor: activeColorToken,
|
|
149
150
|
disabled: highlightDisabled
|
|
@@ -151,7 +152,8 @@ const PrimaryToolbarHighlightColor = ({
|
|
|
151
152
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
152
153
|
css: expandIconWrapperStyle
|
|
153
154
|
}, jsx(ChevronDownIcon, {
|
|
154
|
-
label: ""
|
|
155
|
+
label: "",
|
|
156
|
+
size: "small"
|
|
155
157
|
})))
|
|
156
158
|
}),
|
|
157
159
|
onColorChange: color => handleColorChange({
|
|
@@ -18,7 +18,7 @@ import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
|
18
18
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
19
19
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
20
20
|
import HighlightIcon from '@atlaskit/icon/core/highlight';
|
|
21
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
21
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
22
22
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
23
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
24
24
|
import { EditorHighlightIcon } from './shared/EditorHighlightIcon';
|
|
@@ -130,7 +130,8 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
|
|
|
130
130
|
css: expandIconContainerStyle
|
|
131
131
|
}, jsx(ChevronDownIcon, {
|
|
132
132
|
label: "",
|
|
133
|
-
color: "currentColor"
|
|
133
|
+
color: "currentColor",
|
|
134
|
+
size: "small"
|
|
134
135
|
}))) : jsx("span", {
|
|
135
136
|
css: highlightIconContainerStyle
|
|
136
137
|
}, jsx(EditorHighlightIcon, {
|
|
@@ -143,7 +144,8 @@ var FloatingToolbarHighlightColor = function FloatingToolbarHighlightColor(_ref)
|
|
|
143
144
|
css: expandIconContainerHighlightStyle
|
|
144
145
|
}, jsx(ChevronDownIcon, {
|
|
145
146
|
label: "",
|
|
146
|
-
color: "currentColor"
|
|
147
|
+
color: "currentColor",
|
|
148
|
+
size: "small"
|
|
147
149
|
}))
|
|
148
150
|
}, editorExperiment('platform_editor_controls', 'control') && formatMessage(messages.highlightFloatingToolbar)),
|
|
149
151
|
onColorChange: function onColorChange(color) {
|
|
@@ -17,7 +17,7 @@ import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
|
17
17
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
18
18
|
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
19
19
|
import HighlightIcon from '@atlaskit/icon/core/highlight';
|
|
20
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
20
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
23
23
|
import { setPalette } from '../editor-commands/palette';
|
|
@@ -135,7 +135,8 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
|
|
|
135
135
|
css: expandIconContainerStyle
|
|
136
136
|
}, jsx(ChevronDownIcon, {
|
|
137
137
|
label: "",
|
|
138
|
-
color: "currentColor"
|
|
138
|
+
color: "currentColor",
|
|
139
|
+
size: "small"
|
|
139
140
|
}))) : jsx(Flex, null, jsx(EditorHighlightIcon, {
|
|
140
141
|
selectedColor: activeColorToken,
|
|
141
142
|
disabled: highlightDisabled
|
|
@@ -143,7 +144,8 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
|
|
|
143
144
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
144
145
|
css: expandIconWrapperStyle
|
|
145
146
|
}, jsx(ChevronDownIcon, {
|
|
146
|
-
label: ""
|
|
147
|
+
label: "",
|
|
148
|
+
size: "small"
|
|
147
149
|
})))
|
|
148
150
|
}),
|
|
149
151
|
onColorChange: function onColorChange(color) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.9",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
40
|
-
"@atlaskit/editor-common": "^106.
|
|
40
|
+
"@atlaskit/editor-common": "^106.6.0",
|
|
41
41
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
43
43
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@atlaskit/icon": "^26.4.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^14.8.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
53
|
-
"@atlaskit/tokens": "^5.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^7.0.0",
|
|
53
|
+
"@atlaskit/tokens": "^5.1.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1"
|
|
56
56
|
},
|