@atlaskit/editor-plugin-panel 4.2.11 → 4.3.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 +8 -0
- package/dist/cjs/nodeviews/panel.js +2 -2
- package/dist/cjs/ui/toolbar.js +24 -24
- package/dist/es2019/nodeviews/panel.js +2 -2
- package/dist/es2019/ui/toolbar.js +15 -19
- package/dist/esm/nodeviews/panel.js +2 -2
- package/dist/esm/ui/toolbar.js +19 -19
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 4.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#128788](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128788)
|
|
8
|
+
[`83a4d1ba203b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83a4d1ba203b0) -
|
|
9
|
+
[ux] update icons
|
|
10
|
+
|
|
3
11
|
## 4.2.11
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ var _icons = require("@atlaskit/editor-common/icons");
|
|
|
16
16
|
var _panel = require("@atlaskit/editor-common/panel");
|
|
17
17
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
18
18
|
var _consts = require("@atlaskit/editor-shared-styles/consts");
|
|
19
|
-
var
|
|
19
|
+
var _lightbulbEditorHint = _interopRequireDefault(require("@atlaskit/icon/core/migration/lightbulb--editor-hint"));
|
|
20
20
|
var _utils = require("../pm-plugins/utils/utils");
|
|
21
21
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
22
22
|
// Mapping export
|
|
@@ -24,7 +24,7 @@ var panelIcons = exports.panelIcons = {
|
|
|
24
24
|
info: _icons.PanelInfoIcon,
|
|
25
25
|
success: _icons.PanelSuccessIcon,
|
|
26
26
|
note: _icons.PanelNoteIcon,
|
|
27
|
-
tip:
|
|
27
|
+
tip: _lightbulbEditorHint.default,
|
|
28
28
|
warning: _icons.PanelWarningIcon,
|
|
29
29
|
error: _icons.PanelErrorIcon,
|
|
30
30
|
custom: _icons.PanelInfoIcon
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -16,20 +16,15 @@ var _panel = require("@atlaskit/editor-common/panel");
|
|
|
16
16
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
17
17
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
18
18
|
var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
|
|
19
|
-
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
20
19
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
21
|
-
var _discovery = _interopRequireDefault(require("@atlaskit/icon/core/discovery"));
|
|
22
20
|
var _emojiRemove = _interopRequireDefault(require("@atlaskit/icon/core/emoji-remove"));
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var _note = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/note"));
|
|
21
|
+
var _crossCircleEditorError = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle--editor-error"));
|
|
22
|
+
var _discoveryEditorNote = _interopRequireDefault(require("@atlaskit/icon/core/migration/discovery--editor-note"));
|
|
23
|
+
var _informationEditorInfo = _interopRequireDefault(require("@atlaskit/icon/core/migration/information--editor-info"));
|
|
24
|
+
var _successEditorSuccess = _interopRequireDefault(require("@atlaskit/icon/core/migration/success--editor-success"));
|
|
25
|
+
var _warningEditorWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/warning--editor-warning"));
|
|
29
26
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
30
27
|
var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
|
|
31
|
-
var _success2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/success"));
|
|
32
|
-
var _warning2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/warning"));
|
|
33
28
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
34
29
|
var _actions = require("../editor-actions/actions");
|
|
35
30
|
var _utils2 = require("../pm-plugins/utils/utils");
|
|
@@ -62,8 +57,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
62
57
|
var items = (0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? [{
|
|
63
58
|
id: 'editor.panel.info',
|
|
64
59
|
type: 'button',
|
|
65
|
-
icon:
|
|
66
|
-
iconFallback: _info.default,
|
|
60
|
+
icon: _informationEditorInfo.default,
|
|
67
61
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.INFO),
|
|
68
62
|
selected: activePanelType === _adfSchema.PanelType.INFO,
|
|
69
63
|
title: formatMessage(_messages.panelMessages.info),
|
|
@@ -71,8 +65,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
71
65
|
}, {
|
|
72
66
|
id: 'editor.panel.note',
|
|
73
67
|
type: 'button',
|
|
74
|
-
icon:
|
|
75
|
-
iconFallback: _note.default,
|
|
68
|
+
icon: _discoveryEditorNote.default,
|
|
76
69
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.NOTE),
|
|
77
70
|
selected: activePanelType === _adfSchema.PanelType.NOTE,
|
|
78
71
|
title: formatMessage(_messages.panelMessages.note),
|
|
@@ -80,8 +73,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
80
73
|
}, {
|
|
81
74
|
id: 'editor.panel.success',
|
|
82
75
|
type: 'button',
|
|
83
|
-
icon:
|
|
84
|
-
iconFallback: _success2.default,
|
|
76
|
+
icon: _successEditorSuccess.default,
|
|
85
77
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.SUCCESS),
|
|
86
78
|
selected: activePanelType === _adfSchema.PanelType.SUCCESS,
|
|
87
79
|
title: formatMessage(_messages.panelMessages.success),
|
|
@@ -89,8 +81,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
89
81
|
}, {
|
|
90
82
|
id: 'editor.panel.warning',
|
|
91
83
|
type: 'button',
|
|
92
|
-
icon:
|
|
93
|
-
iconFallback: _warning2.default,
|
|
84
|
+
icon: _warningEditorWarning.default,
|
|
94
85
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.WARNING),
|
|
95
86
|
selected: activePanelType === _adfSchema.PanelType.WARNING,
|
|
96
87
|
title: formatMessage(_messages.panelMessages.warning),
|
|
@@ -98,8 +89,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
98
89
|
}, {
|
|
99
90
|
id: 'editor.panel.error',
|
|
100
91
|
type: 'button',
|
|
101
|
-
icon:
|
|
102
|
-
iconFallback: _error.default,
|
|
92
|
+
icon: _crossCircleEditorError.default,
|
|
103
93
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.ERROR),
|
|
104
94
|
selected: activePanelType === _adfSchema.PanelType.ERROR,
|
|
105
95
|
title: formatMessage(_messages.panelMessages.error),
|
|
@@ -241,8 +231,13 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
241
231
|
var removeEmojiButton = {
|
|
242
232
|
id: 'editor.panel.removeEmoji',
|
|
243
233
|
type: 'button',
|
|
244
|
-
icon:
|
|
245
|
-
|
|
234
|
+
icon: function icon() {
|
|
235
|
+
return /*#__PURE__*/_react.default.createElement(_emojiRemove.default, {
|
|
236
|
+
LEGACY_fallbackIcon: _removeEmoji.default,
|
|
237
|
+
spacing: 'spacious',
|
|
238
|
+
label: ''
|
|
239
|
+
});
|
|
240
|
+
},
|
|
246
241
|
onClick: removeEmoji(),
|
|
247
242
|
title: formatMessage(_messages.default.removeEmoji),
|
|
248
243
|
disabled: activePanelIcon ? false : true
|
|
@@ -273,8 +268,13 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
273
268
|
type: 'button',
|
|
274
269
|
appearance: 'danger',
|
|
275
270
|
focusEditoronEnter: true,
|
|
276
|
-
icon:
|
|
277
|
-
|
|
271
|
+
icon: function icon() {
|
|
272
|
+
return /*#__PURE__*/_react.default.createElement(_delete.default, {
|
|
273
|
+
LEGACY_fallbackIcon: _remove.default,
|
|
274
|
+
spacing: 'spacious',
|
|
275
|
+
label: ''
|
|
276
|
+
});
|
|
277
|
+
},
|
|
278
278
|
onClick: (0, _actions.removePanel)(editorAnalyticsAPI),
|
|
279
279
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, true),
|
|
280
280
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, false),
|
|
@@ -7,7 +7,7 @@ import { PanelErrorIcon, PanelInfoIcon, PanelNoteIcon, PanelSuccessIcon, PanelWa
|
|
|
7
7
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
8
8
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
10
|
-
import
|
|
10
|
+
import LightbulbIcon from '@atlaskit/icon/core/migration/lightbulb--editor-hint';
|
|
11
11
|
import { panelAttrsToDom } from '../pm-plugins/utils/utils';
|
|
12
12
|
|
|
13
13
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
@@ -16,7 +16,7 @@ export const panelIcons = {
|
|
|
16
16
|
info: PanelInfoIcon,
|
|
17
17
|
success: PanelSuccessIcon,
|
|
18
18
|
note: PanelNoteIcon,
|
|
19
|
-
tip:
|
|
19
|
+
tip: LightbulbIcon,
|
|
20
20
|
warning: PanelWarningIcon,
|
|
21
21
|
error: PanelErrorIcon,
|
|
22
22
|
custom: PanelInfoIcon
|
|
@@ -7,20 +7,15 @@ import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
|
7
7
|
import { DEFAULT_BORDER_COLOR, panelBackgroundPalette } from '@atlaskit/editor-common/ui-color';
|
|
8
8
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
9
9
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
10
|
-
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
11
10
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
12
|
-
import DiscoveryIcon from '@atlaskit/icon/core/discovery';
|
|
13
11
|
import EmojiRemoveIcon from '@atlaskit/icon/core/emoji-remove';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import LegacyNoteIcon from '@atlaskit/icon/glyph/editor/note';
|
|
12
|
+
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle--editor-error';
|
|
13
|
+
import DiscoveryIcon from '@atlaskit/icon/core/migration/discovery--editor-note';
|
|
14
|
+
import InformationIcon from '@atlaskit/icon/core/migration/information--editor-info';
|
|
15
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
|
|
16
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
|
|
20
17
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
21
18
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
22
|
-
import LegacySuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
23
|
-
import LegacyWarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
24
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
25
20
|
import { changePanelType, removePanel } from '../editor-actions/actions';
|
|
26
21
|
import { findPanel } from '../pm-plugins/utils/utils';
|
|
@@ -57,7 +52,6 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
57
52
|
id: 'editor.panel.info',
|
|
58
53
|
type: 'button',
|
|
59
54
|
icon: InformationIcon,
|
|
60
|
-
iconFallback: InfoIcon,
|
|
61
55
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.INFO),
|
|
62
56
|
selected: activePanelType === PanelType.INFO,
|
|
63
57
|
title: formatMessage(messages.info),
|
|
@@ -66,7 +60,6 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
66
60
|
id: 'editor.panel.note',
|
|
67
61
|
type: 'button',
|
|
68
62
|
icon: DiscoveryIcon,
|
|
69
|
-
iconFallback: LegacyNoteIcon,
|
|
70
63
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.NOTE),
|
|
71
64
|
selected: activePanelType === PanelType.NOTE,
|
|
72
65
|
title: formatMessage(messages.note),
|
|
@@ -75,7 +68,6 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
75
68
|
id: 'editor.panel.success',
|
|
76
69
|
type: 'button',
|
|
77
70
|
icon: SuccessIcon,
|
|
78
|
-
iconFallback: LegacySuccessIcon,
|
|
79
71
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.SUCCESS),
|
|
80
72
|
selected: activePanelType === PanelType.SUCCESS,
|
|
81
73
|
title: formatMessage(messages.success),
|
|
@@ -84,7 +76,6 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
84
76
|
id: 'editor.panel.warning',
|
|
85
77
|
type: 'button',
|
|
86
78
|
icon: WarningIcon,
|
|
87
|
-
iconFallback: LegacyWarningIcon,
|
|
88
79
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.WARNING),
|
|
89
80
|
selected: activePanelType === PanelType.WARNING,
|
|
90
81
|
title: formatMessage(messages.warning),
|
|
@@ -93,7 +84,6 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
93
84
|
id: 'editor.panel.error',
|
|
94
85
|
type: 'button',
|
|
95
86
|
icon: CrossCircleIcon,
|
|
96
|
-
iconFallback: ErrorIcon,
|
|
97
87
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.ERROR),
|
|
98
88
|
selected: activePanelType === PanelType.ERROR,
|
|
99
89
|
title: formatMessage(messages.error),
|
|
@@ -225,8 +215,11 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
225
215
|
const removeEmojiButton = {
|
|
226
216
|
id: 'editor.panel.removeEmoji',
|
|
227
217
|
type: 'button',
|
|
228
|
-
icon: EmojiRemoveIcon,
|
|
229
|
-
|
|
218
|
+
icon: () => /*#__PURE__*/React.createElement(EmojiRemoveIcon, {
|
|
219
|
+
LEGACY_fallbackIcon: RemoveEmojiIcon,
|
|
220
|
+
spacing: 'spacious',
|
|
221
|
+
label: ''
|
|
222
|
+
}),
|
|
230
223
|
onClick: removeEmoji(),
|
|
231
224
|
title: formatMessage(commonMessages.removeEmoji),
|
|
232
225
|
disabled: activePanelIcon ? false : true
|
|
@@ -257,8 +250,11 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
257
250
|
type: 'button',
|
|
258
251
|
appearance: 'danger',
|
|
259
252
|
focusEditoronEnter: true,
|
|
260
|
-
icon: DeleteIcon,
|
|
261
|
-
|
|
253
|
+
icon: () => /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
254
|
+
LEGACY_fallbackIcon: RemoveIcon,
|
|
255
|
+
spacing: 'spacious',
|
|
256
|
+
label: ''
|
|
257
|
+
}),
|
|
262
258
|
onClick: removePanel(editorAnalyticsAPI),
|
|
263
259
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, true),
|
|
264
260
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, false),
|
|
@@ -9,7 +9,7 @@ import { PanelErrorIcon, PanelInfoIcon, PanelNoteIcon, PanelSuccessIcon, PanelWa
|
|
|
9
9
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
10
10
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
12
|
-
import
|
|
12
|
+
import LightbulbIcon from '@atlaskit/icon/core/migration/lightbulb--editor-hint';
|
|
13
13
|
import { panelAttrsToDom } from '../pm-plugins/utils/utils';
|
|
14
14
|
|
|
15
15
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
@@ -18,7 +18,7 @@ export var panelIcons = {
|
|
|
18
18
|
info: PanelInfoIcon,
|
|
19
19
|
success: PanelSuccessIcon,
|
|
20
20
|
note: PanelNoteIcon,
|
|
21
|
-
tip:
|
|
21
|
+
tip: LightbulbIcon,
|
|
22
22
|
warning: PanelWarningIcon,
|
|
23
23
|
error: PanelErrorIcon,
|
|
24
24
|
custom: PanelInfoIcon
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -10,20 +10,15 @@ import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
|
10
10
|
import { DEFAULT_BORDER_COLOR, panelBackgroundPalette } from '@atlaskit/editor-common/ui-color';
|
|
11
11
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
12
12
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
13
|
-
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
14
13
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
15
|
-
import DiscoveryIcon from '@atlaskit/icon/core/discovery';
|
|
16
14
|
import EmojiRemoveIcon from '@atlaskit/icon/core/emoji-remove';
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import LegacyNoteIcon from '@atlaskit/icon/glyph/editor/note';
|
|
15
|
+
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle--editor-error';
|
|
16
|
+
import DiscoveryIcon from '@atlaskit/icon/core/migration/discovery--editor-note';
|
|
17
|
+
import InformationIcon from '@atlaskit/icon/core/migration/information--editor-info';
|
|
18
|
+
import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
|
|
19
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
|
|
23
20
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
24
21
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
25
|
-
import LegacySuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
26
|
-
import LegacyWarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
27
22
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
28
23
|
import { changePanelType, removePanel } from '../editor-actions/actions';
|
|
29
24
|
import { findPanel } from '../pm-plugins/utils/utils';
|
|
@@ -53,7 +48,6 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
53
48
|
id: 'editor.panel.info',
|
|
54
49
|
type: 'button',
|
|
55
50
|
icon: InformationIcon,
|
|
56
|
-
iconFallback: InfoIcon,
|
|
57
51
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.INFO),
|
|
58
52
|
selected: activePanelType === PanelType.INFO,
|
|
59
53
|
title: formatMessage(messages.info),
|
|
@@ -62,7 +56,6 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
62
56
|
id: 'editor.panel.note',
|
|
63
57
|
type: 'button',
|
|
64
58
|
icon: DiscoveryIcon,
|
|
65
|
-
iconFallback: LegacyNoteIcon,
|
|
66
59
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.NOTE),
|
|
67
60
|
selected: activePanelType === PanelType.NOTE,
|
|
68
61
|
title: formatMessage(messages.note),
|
|
@@ -71,7 +64,6 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
71
64
|
id: 'editor.panel.success',
|
|
72
65
|
type: 'button',
|
|
73
66
|
icon: SuccessIcon,
|
|
74
|
-
iconFallback: LegacySuccessIcon,
|
|
75
67
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.SUCCESS),
|
|
76
68
|
selected: activePanelType === PanelType.SUCCESS,
|
|
77
69
|
title: formatMessage(messages.success),
|
|
@@ -80,7 +72,6 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
80
72
|
id: 'editor.panel.warning',
|
|
81
73
|
type: 'button',
|
|
82
74
|
icon: WarningIcon,
|
|
83
|
-
iconFallback: LegacyWarningIcon,
|
|
84
75
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.WARNING),
|
|
85
76
|
selected: activePanelType === PanelType.WARNING,
|
|
86
77
|
title: formatMessage(messages.warning),
|
|
@@ -89,7 +80,6 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
89
80
|
id: 'editor.panel.error',
|
|
90
81
|
type: 'button',
|
|
91
82
|
icon: CrossCircleIcon,
|
|
92
|
-
iconFallback: ErrorIcon,
|
|
93
83
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.ERROR),
|
|
94
84
|
selected: activePanelType === PanelType.ERROR,
|
|
95
85
|
title: formatMessage(messages.error),
|
|
@@ -231,8 +221,13 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
231
221
|
var removeEmojiButton = {
|
|
232
222
|
id: 'editor.panel.removeEmoji',
|
|
233
223
|
type: 'button',
|
|
234
|
-
icon:
|
|
235
|
-
|
|
224
|
+
icon: function icon() {
|
|
225
|
+
return /*#__PURE__*/React.createElement(EmojiRemoveIcon, {
|
|
226
|
+
LEGACY_fallbackIcon: RemoveEmojiIcon,
|
|
227
|
+
spacing: 'spacious',
|
|
228
|
+
label: ''
|
|
229
|
+
});
|
|
230
|
+
},
|
|
236
231
|
onClick: removeEmoji(),
|
|
237
232
|
title: formatMessage(commonMessages.removeEmoji),
|
|
238
233
|
disabled: activePanelIcon ? false : true
|
|
@@ -263,8 +258,13 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
263
258
|
type: 'button',
|
|
264
259
|
appearance: 'danger',
|
|
265
260
|
focusEditoronEnter: true,
|
|
266
|
-
icon:
|
|
267
|
-
|
|
261
|
+
icon: function icon() {
|
|
262
|
+
return /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
263
|
+
LEGACY_fallbackIcon: RemoveIcon,
|
|
264
|
+
spacing: 'spacious',
|
|
265
|
+
label: ''
|
|
266
|
+
});
|
|
267
|
+
},
|
|
268
268
|
onClick: removePanel(editorAnalyticsAPI),
|
|
269
269
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, true),
|
|
270
270
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, false),
|