@atlaskit/editor-plugin-panel 8.1.18 → 8.2.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 +19 -0
- package/dist/cjs/nodeviews/panel.js +2 -2
- package/dist/cjs/ui/toolbar.js +10 -14
- package/dist/es2019/nodeviews/panel.js +1 -1
- package/dist/es2019/ui/toolbar.js +6 -10
- package/dist/esm/nodeviews/panel.js +1 -1
- package/dist/esm/ui/toolbar.js +6 -10
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 8.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
|
|
8
|
+
Migrated and cleaned up legacy iconography usage.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 8.1.19
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`90abe9b926a6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90abe9b926a6f) -
|
|
19
|
+
Icon entrypoint migration
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 8.1.18
|
|
4
23
|
|
|
5
24
|
### 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 _lightbulb = _interopRequireDefault(require("@atlaskit/icon/core/lightbulb"));
|
|
20
20
|
var _utils = require("../pm-plugins/utils/utils");
|
|
21
21
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ var panelIcons = exports.panelIcons = {
|
|
|
26
26
|
info: _icons.PanelInfoIcon,
|
|
27
27
|
success: _icons.PanelSuccessIcon,
|
|
28
28
|
note: _icons.PanelNoteIcon,
|
|
29
|
-
tip:
|
|
29
|
+
tip: _lightbulb.default,
|
|
30
30
|
warning: _icons.PanelWarningIcon,
|
|
31
31
|
error: _icons.PanelErrorIcon,
|
|
32
32
|
custom: _icons.PanelInfoIcon
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -19,15 +19,13 @@ var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
|
19
19
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
20
20
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
21
21
|
var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
|
|
22
|
+
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
22
23
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
23
24
|
var _emojiRemove = _interopRequireDefault(require("@atlaskit/icon/core/emoji-remove"));
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var _statusWarningEditorWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-warning--editor-warning"));
|
|
29
|
-
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
30
|
-
var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
|
|
25
|
+
var _statusDiscovery = _interopRequireDefault(require("@atlaskit/icon/core/status-discovery"));
|
|
26
|
+
var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
|
|
27
|
+
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
28
|
+
var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
|
|
31
29
|
var _actions = require("../editor-actions/actions");
|
|
32
30
|
var _utils2 = require("../pm-plugins/utils/utils");
|
|
33
31
|
var _panelTypeDropdown = require("./panelTypeDropdown");
|
|
@@ -60,7 +58,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
60
58
|
var items = areAllNewToolbarFlagsDisabled ? [{
|
|
61
59
|
id: 'editor.panel.info',
|
|
62
60
|
type: 'button',
|
|
63
|
-
icon:
|
|
61
|
+
icon: _statusInformation.default,
|
|
64
62
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.INFO),
|
|
65
63
|
selected: activePanelType === _adfSchema.PanelType.INFO,
|
|
66
64
|
title: formatMessage(_messages.panelMessages.info),
|
|
@@ -68,7 +66,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
68
66
|
}, {
|
|
69
67
|
id: 'editor.panel.note',
|
|
70
68
|
type: 'button',
|
|
71
|
-
icon:
|
|
69
|
+
icon: _statusDiscovery.default,
|
|
72
70
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.NOTE),
|
|
73
71
|
selected: activePanelType === _adfSchema.PanelType.NOTE,
|
|
74
72
|
title: formatMessage(_messages.panelMessages.note),
|
|
@@ -76,7 +74,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
76
74
|
}, {
|
|
77
75
|
id: 'editor.panel.success',
|
|
78
76
|
type: 'button',
|
|
79
|
-
icon:
|
|
77
|
+
icon: _statusSuccess.default,
|
|
80
78
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.SUCCESS),
|
|
81
79
|
selected: activePanelType === _adfSchema.PanelType.SUCCESS,
|
|
82
80
|
title: formatMessage(_messages.panelMessages.success),
|
|
@@ -84,7 +82,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
84
82
|
}, {
|
|
85
83
|
id: 'editor.panel.warning',
|
|
86
84
|
type: 'button',
|
|
87
|
-
icon:
|
|
85
|
+
icon: _statusWarning.default,
|
|
88
86
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.WARNING),
|
|
89
87
|
selected: activePanelType === _adfSchema.PanelType.WARNING,
|
|
90
88
|
title: formatMessage(_messages.panelMessages.warning),
|
|
@@ -92,7 +90,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
92
90
|
}, {
|
|
93
91
|
id: 'editor.panel.error',
|
|
94
92
|
type: 'button',
|
|
95
|
-
icon:
|
|
93
|
+
icon: _crossCircle.default,
|
|
96
94
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.ERROR),
|
|
97
95
|
selected: activePanelType === _adfSchema.PanelType.ERROR,
|
|
98
96
|
title: formatMessage(_messages.panelMessages.error),
|
|
@@ -237,7 +235,6 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
237
235
|
type: 'button',
|
|
238
236
|
icon: function icon() {
|
|
239
237
|
return /*#__PURE__*/_react.default.createElement(_emojiRemove.default, {
|
|
240
|
-
LEGACY_fallbackIcon: _removeEmoji.default,
|
|
241
238
|
spacing: 'spacious',
|
|
242
239
|
label: ''
|
|
243
240
|
});
|
|
@@ -274,7 +271,6 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
274
271
|
focusEditoronEnter: true,
|
|
275
272
|
icon: function icon() {
|
|
276
273
|
return /*#__PURE__*/_react.default.createElement(_delete.default, {
|
|
277
|
-
LEGACY_fallbackIcon: _remove.default,
|
|
278
274
|
spacing: 'spacious',
|
|
279
275
|
label: ''
|
|
280
276
|
});
|
|
@@ -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 LightbulbIcon from '@atlaskit/icon/core/
|
|
12
|
+
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
|
13
13
|
import { panelAttrsToDom } from '../pm-plugins/utils/utils';
|
|
14
14
|
|
|
15
15
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
@@ -9,15 +9,13 @@ import { DEFAULT_BORDER_COLOR, panelBackgroundPalette } from '@atlaskit/editor-c
|
|
|
9
9
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
12
|
+
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
12
13
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
13
14
|
import EmojiRemoveIcon from '@atlaskit/icon/core/emoji-remove';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import WarningIcon from '@atlaskit/icon/core/migration/status-warning--editor-warning';
|
|
19
|
-
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
20
|
-
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
15
|
+
import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
|
|
16
|
+
import InformationIcon from '@atlaskit/icon/core/status-information';
|
|
17
|
+
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
18
|
+
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
21
19
|
import { changePanelType, removePanel } from '../editor-actions/actions';
|
|
22
20
|
import { findPanel } from '../pm-plugins/utils/utils';
|
|
23
21
|
import { panelTypeDropdown } from './panelTypeDropdown';
|
|
@@ -62,7 +60,7 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
62
60
|
}, {
|
|
63
61
|
id: 'editor.panel.note',
|
|
64
62
|
type: 'button',
|
|
65
|
-
icon:
|
|
63
|
+
icon: StatusDiscoveryIcon,
|
|
66
64
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.NOTE),
|
|
67
65
|
selected: activePanelType === PanelType.NOTE,
|
|
68
66
|
title: formatMessage(messages.note),
|
|
@@ -220,7 +218,6 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
220
218
|
id: 'editor.panel.removeEmoji',
|
|
221
219
|
type: 'button',
|
|
222
220
|
icon: () => /*#__PURE__*/React.createElement(EmojiRemoveIcon, {
|
|
223
|
-
LEGACY_fallbackIcon: RemoveEmojiIcon,
|
|
224
221
|
spacing: 'spacious',
|
|
225
222
|
label: ''
|
|
226
223
|
}),
|
|
@@ -255,7 +252,6 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
255
252
|
appearance: 'danger',
|
|
256
253
|
focusEditoronEnter: true,
|
|
257
254
|
icon: () => /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
258
|
-
LEGACY_fallbackIcon: RemoveIcon,
|
|
259
255
|
spacing: 'spacious',
|
|
260
256
|
label: ''
|
|
261
257
|
}),
|
|
@@ -11,7 +11,7 @@ import { PanelErrorIcon, PanelInfoIcon, PanelNoteIcon, PanelSuccessIcon, PanelWa
|
|
|
11
11
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
12
12
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
13
13
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
14
|
-
import LightbulbIcon from '@atlaskit/icon/core/
|
|
14
|
+
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
|
15
15
|
import { panelAttrsToDom } from '../pm-plugins/utils/utils';
|
|
16
16
|
|
|
17
17
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -13,15 +13,13 @@ import { DEFAULT_BORDER_COLOR, panelBackgroundPalette } from '@atlaskit/editor-c
|
|
|
13
13
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
14
14
|
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
16
|
+
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
16
17
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
17
18
|
import EmojiRemoveIcon from '@atlaskit/icon/core/emoji-remove';
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import WarningIcon from '@atlaskit/icon/core/migration/status-warning--editor-warning';
|
|
23
|
-
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
24
|
-
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
19
|
+
import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
|
|
20
|
+
import InformationIcon from '@atlaskit/icon/core/status-information';
|
|
21
|
+
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
22
|
+
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
25
23
|
import { changePanelType, removePanel } from '../editor-actions/actions';
|
|
26
24
|
import { findPanel } from '../pm-plugins/utils/utils';
|
|
27
25
|
import { panelTypeDropdown } from './panelTypeDropdown';
|
|
@@ -59,7 +57,7 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
59
57
|
}, {
|
|
60
58
|
id: 'editor.panel.note',
|
|
61
59
|
type: 'button',
|
|
62
|
-
icon:
|
|
60
|
+
icon: StatusDiscoveryIcon,
|
|
63
61
|
onClick: changePanelType(editorAnalyticsAPI)(PanelType.NOTE),
|
|
64
62
|
selected: activePanelType === PanelType.NOTE,
|
|
65
63
|
title: formatMessage(messages.note),
|
|
@@ -228,7 +226,6 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
228
226
|
type: 'button',
|
|
229
227
|
icon: function icon() {
|
|
230
228
|
return /*#__PURE__*/React.createElement(EmojiRemoveIcon, {
|
|
231
|
-
LEGACY_fallbackIcon: RemoveEmojiIcon,
|
|
232
229
|
spacing: 'spacious',
|
|
233
230
|
label: ''
|
|
234
231
|
});
|
|
@@ -265,7 +262,6 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
265
262
|
focusEditoronEnter: true,
|
|
266
263
|
icon: function icon() {
|
|
267
264
|
return /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
268
|
-
LEGACY_fallbackIcon: RemoveIcon,
|
|
269
265
|
spacing: 'spacious',
|
|
270
266
|
label: ''
|
|
271
267
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,28 +27,28 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^51.5.
|
|
30
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
31
31
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
33
|
-
"@atlaskit/editor-plugin-block-menu": "^5.
|
|
33
|
+
"@atlaskit/editor-plugin-block-menu": "^5.2.0",
|
|
34
34
|
"@atlaskit/editor-plugin-decorations": "^6.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-emoji": "^7.7.0",
|
|
36
36
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-toolbar": "^3.4.0",
|
|
38
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
38
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
40
40
|
"@atlaskit/editor-toolbar": "^0.18.0",
|
|
41
41
|
"@atlaskit/emoji": "^69.9.0",
|
|
42
|
-
"@atlaskit/icon": "^29.
|
|
42
|
+
"@atlaskit/icon": "^29.2.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/theme": "^21.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^15.
|
|
46
|
-
"@atlaskit/tokens": "^8.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^15.12.0",
|
|
46
|
+
"@atlaskit/tokens": "^8.6.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"uuid": "^3.1.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^110.
|
|
51
|
+
"@atlaskit/editor-common": "^110.45.0",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
54
|
"react-intl-next": "npm:react-intl@^5.18.1"
|