@atlaskit/editor-plugin-panel 18.0.1 → 18.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-panel
2
2
 
3
+ ## 18.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d82ea790b5c1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82ea790b5c1c) -
8
+ Update registered slash-command menu icons, including the Jira datasource WorkItems icon, when the
9
+ `platform_editor_slash_command` experiment is enabled.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 18.0.2
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 18.0.1
4
22
 
5
23
  ### Patch Changes
@@ -44,7 +44,9 @@ var PanelQuickInsertMenuItem = exports.PanelQuickInsertMenuItem = function Panel
44
44
  });
45
45
  }, [api, panelType]);
46
46
  return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
47
- iconBefore: /*#__PURE__*/_react.default.createElement(Icon, null),
47
+ iconBefore: /*#__PURE__*/_react.default.createElement(Icon, {
48
+ label: ""
49
+ }),
48
50
  onSelect: onSelect,
49
51
  title: formatMessage(title)
50
52
  });
@@ -9,47 +9,52 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _panel = require("@atlaskit/adf-schema/panel");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
- var _quickInsert = require("@atlaskit/editor-common/quick-insert");
13
12
  var _createQuickInsertMatcher = require("@atlaskit/editor-common/quick-insert/create-quick-insert-matcher");
14
13
  var _keys = require("@atlaskit/editor-common/quick-insert/keys");
15
14
  var _rank = require("@atlaskit/editor-common/quick-insert/rank");
15
+ var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/core/check-circle"));
16
+ var _informationCircle = _interopRequireDefault(require("@atlaskit/icon/core/information-circle"));
17
+ var _note = _interopRequireDefault(require("@atlaskit/icon/core/note"));
18
+ var _pencil = _interopRequireDefault(require("@atlaskit/icon-lab/core/pencil"));
19
+ var _statusWorkflowCancelled = _interopRequireDefault(require("@atlaskit/icon-lab/core/status-workflow-cancelled"));
20
+ var _warningOutline = _interopRequireDefault(require("@atlaskit/icon-lab/core/warning-outline"));
16
21
  var _PanelQuickInsertMenuItem = require("./PanelQuickInsertMenuItem");
17
22
  var standardPanelItems = [{
18
23
  description: _messages.blockTypeMessages.infoPanelDescription,
19
- icon: _quickInsert.IconPanel,
24
+ icon: _informationCircle.default,
20
25
  keywords: ['panel'],
21
26
  menuItem: _keys.INFO_PANEL_MENU_ITEM,
22
27
  panelType: _panel.PanelType.INFO,
23
28
  title: _messages.blockTypeMessages.infoPanel
24
29
  }, {
25
30
  description: _messages.blockTypeMessages.notePanelDescription,
26
- icon: _quickInsert.IconPanelNote,
31
+ icon: _note.default,
27
32
  menuItem: _keys.NOTE_PANEL_MENU_ITEM,
28
33
  panelType: _panel.PanelType.NOTE,
29
34
  title: _messages.blockTypeMessages.notePanel
30
35
  }, {
31
36
  description: _messages.blockTypeMessages.successPanelDescription,
32
- icon: _quickInsert.IconPanelSuccess,
37
+ icon: _checkCircle.default,
33
38
  keywords: ['tip'],
34
39
  menuItem: _keys.SUCCESS_PANEL_MENU_ITEM,
35
40
  panelType: _panel.PanelType.SUCCESS,
36
41
  title: _messages.blockTypeMessages.successPanel
37
42
  }, {
38
43
  description: _messages.blockTypeMessages.warningPanelDescription,
39
- icon: _quickInsert.IconPanelWarning,
44
+ icon: _warningOutline.default,
40
45
  menuItem: _keys.WARNING_PANEL_MENU_ITEM,
41
46
  panelType: _panel.PanelType.WARNING,
42
47
  title: _messages.blockTypeMessages.warningPanel
43
48
  }, {
44
49
  description: _messages.blockTypeMessages.errorPanelDescription,
45
- icon: _quickInsert.IconPanelError,
50
+ icon: _statusWorkflowCancelled.default,
46
51
  menuItem: _keys.ERROR_PANEL_MENU_ITEM,
47
52
  panelType: _panel.PanelType.ERROR,
48
53
  title: _messages.blockTypeMessages.errorPanel
49
54
  }];
50
55
  var customPanelItem = {
51
56
  description: _messages.blockTypeMessages.customPanelDescription,
52
- icon: _quickInsert.IconCustomPanel,
57
+ icon: _pencil.default,
53
58
  menuItem: _keys.CUSTOM_PANEL_MENU_ITEM,
54
59
  panelType: _panel.PanelType.CUSTOM,
55
60
  title: _messages.blockTypeMessages.customPanel
@@ -35,7 +35,9 @@ export const PanelQuickInsertMenuItem = ({
35
35
  typeAheadInsert: insert
36
36
  }), [api, panelType]);
37
37
  return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
38
- iconBefore: /*#__PURE__*/React.createElement(Icon, null),
38
+ iconBefore: /*#__PURE__*/React.createElement(Icon, {
39
+ label: ""
40
+ }),
39
41
  onSelect: onSelect,
40
42
  title: formatMessage(title)
41
43
  });
@@ -1,47 +1,52 @@
1
1
  import React from 'react';
2
2
  import { PanelType } from '@atlaskit/adf-schema/panel';
3
3
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
4
- import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
5
4
  import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
6
5
  import { CUSTOM_PANEL_MENU_ITEM, ERROR_PANEL_MENU_ITEM, INFO_PANEL_MENU_ITEM, NOTE_PANEL_MENU_ITEM, STRUCTURE_SECTION, SUCCESS_PANEL_MENU_ITEM, WARNING_PANEL_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
7
6
  import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
7
+ import CheckCircleIcon from '@atlaskit/icon/core/check-circle';
8
+ import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
9
+ import NoteIcon from '@atlaskit/icon/core/note';
10
+ import PencilIcon from '@atlaskit/icon-lab/core/pencil';
11
+ import StatusWorkflowCancelledIcon from '@atlaskit/icon-lab/core/status-workflow-cancelled';
12
+ import WarningOutlineIcon from '@atlaskit/icon-lab/core/warning-outline';
8
13
  import { PanelQuickInsertMenuItem } from './PanelQuickInsertMenuItem';
9
14
  const standardPanelItems = [{
10
15
  description: blockTypeMessages.infoPanelDescription,
11
- icon: IconPanel,
16
+ icon: InformationCircleIcon,
12
17
  keywords: ['panel'],
13
18
  menuItem: INFO_PANEL_MENU_ITEM,
14
19
  panelType: PanelType.INFO,
15
20
  title: blockTypeMessages.infoPanel
16
21
  }, {
17
22
  description: blockTypeMessages.notePanelDescription,
18
- icon: IconPanelNote,
23
+ icon: NoteIcon,
19
24
  menuItem: NOTE_PANEL_MENU_ITEM,
20
25
  panelType: PanelType.NOTE,
21
26
  title: blockTypeMessages.notePanel
22
27
  }, {
23
28
  description: blockTypeMessages.successPanelDescription,
24
- icon: IconPanelSuccess,
29
+ icon: CheckCircleIcon,
25
30
  keywords: ['tip'],
26
31
  menuItem: SUCCESS_PANEL_MENU_ITEM,
27
32
  panelType: PanelType.SUCCESS,
28
33
  title: blockTypeMessages.successPanel
29
34
  }, {
30
35
  description: blockTypeMessages.warningPanelDescription,
31
- icon: IconPanelWarning,
36
+ icon: WarningOutlineIcon,
32
37
  menuItem: WARNING_PANEL_MENU_ITEM,
33
38
  panelType: PanelType.WARNING,
34
39
  title: blockTypeMessages.warningPanel
35
40
  }, {
36
41
  description: blockTypeMessages.errorPanelDescription,
37
- icon: IconPanelError,
42
+ icon: StatusWorkflowCancelledIcon,
38
43
  menuItem: ERROR_PANEL_MENU_ITEM,
39
44
  panelType: PanelType.ERROR,
40
45
  title: blockTypeMessages.errorPanel
41
46
  }];
42
47
  const customPanelItem = {
43
48
  description: blockTypeMessages.customPanelDescription,
44
- icon: IconCustomPanel,
49
+ icon: PencilIcon,
45
50
  menuItem: CUSTOM_PANEL_MENU_ITEM,
46
51
  panelType: PanelType.CUSTOM,
47
52
  title: blockTypeMessages.customPanel
@@ -36,7 +36,9 @@ export var PanelQuickInsertMenuItem = function PanelQuickInsertMenuItem(_ref) {
36
36
  });
37
37
  }, [api, panelType]);
38
38
  return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
39
- iconBefore: /*#__PURE__*/React.createElement(Icon, null),
39
+ iconBefore: /*#__PURE__*/React.createElement(Icon, {
40
+ label: ""
41
+ }),
40
42
  onSelect: onSelect,
41
43
  title: formatMessage(title)
42
44
  });
@@ -2,47 +2,52 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import React from 'react';
3
3
  import { PanelType } from '@atlaskit/adf-schema/panel';
4
4
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
5
- import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
6
5
  import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
7
6
  import { CUSTOM_PANEL_MENU_ITEM, ERROR_PANEL_MENU_ITEM, INFO_PANEL_MENU_ITEM, NOTE_PANEL_MENU_ITEM, STRUCTURE_SECTION, SUCCESS_PANEL_MENU_ITEM, WARNING_PANEL_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
8
7
  import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
8
+ import CheckCircleIcon from '@atlaskit/icon/core/check-circle';
9
+ import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
10
+ import NoteIcon from '@atlaskit/icon/core/note';
11
+ import PencilIcon from '@atlaskit/icon-lab/core/pencil';
12
+ import StatusWorkflowCancelledIcon from '@atlaskit/icon-lab/core/status-workflow-cancelled';
13
+ import WarningOutlineIcon from '@atlaskit/icon-lab/core/warning-outline';
9
14
  import { PanelQuickInsertMenuItem } from './PanelQuickInsertMenuItem';
10
15
  var standardPanelItems = [{
11
16
  description: blockTypeMessages.infoPanelDescription,
12
- icon: IconPanel,
17
+ icon: InformationCircleIcon,
13
18
  keywords: ['panel'],
14
19
  menuItem: INFO_PANEL_MENU_ITEM,
15
20
  panelType: PanelType.INFO,
16
21
  title: blockTypeMessages.infoPanel
17
22
  }, {
18
23
  description: blockTypeMessages.notePanelDescription,
19
- icon: IconPanelNote,
24
+ icon: NoteIcon,
20
25
  menuItem: NOTE_PANEL_MENU_ITEM,
21
26
  panelType: PanelType.NOTE,
22
27
  title: blockTypeMessages.notePanel
23
28
  }, {
24
29
  description: blockTypeMessages.successPanelDescription,
25
- icon: IconPanelSuccess,
30
+ icon: CheckCircleIcon,
26
31
  keywords: ['tip'],
27
32
  menuItem: SUCCESS_PANEL_MENU_ITEM,
28
33
  panelType: PanelType.SUCCESS,
29
34
  title: blockTypeMessages.successPanel
30
35
  }, {
31
36
  description: blockTypeMessages.warningPanelDescription,
32
- icon: IconPanelWarning,
37
+ icon: WarningOutlineIcon,
33
38
  menuItem: WARNING_PANEL_MENU_ITEM,
34
39
  panelType: PanelType.WARNING,
35
40
  title: blockTypeMessages.warningPanel
36
41
  }, {
37
42
  description: blockTypeMessages.errorPanelDescription,
38
- icon: IconPanelError,
43
+ icon: StatusWorkflowCancelledIcon,
39
44
  menuItem: ERROR_PANEL_MENU_ITEM,
40
45
  panelType: PanelType.ERROR,
41
46
  title: blockTypeMessages.errorPanel
42
47
  }];
43
48
  var customPanelItem = {
44
49
  description: blockTypeMessages.customPanelDescription,
45
- icon: IconCustomPanel,
50
+ icon: PencilIcon,
46
51
  menuItem: CUSTOM_PANEL_MENU_ITEM,
47
52
  panelType: PanelType.CUSTOM,
48
53
  title: blockTypeMessages.customPanel
@@ -6,7 +6,9 @@ import type { PanelPlugin } from '../../panelPluginType';
6
6
  export type QuickInsertPanelType = Exclude<PanelType, PanelType.TIP>;
7
7
  export declare const PanelQuickInsertMenuItem: ({ api, icon: Icon, panelType, title, }: {
8
8
  api: ExtractInjectionAPI<PanelPlugin> | undefined;
9
- icon: React.ComponentType;
9
+ icon: React.ComponentType<{
10
+ label: string;
11
+ }>;
10
12
  panelType: QuickInsertPanelType;
11
13
  title: MessageDescriptor;
12
14
  }) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "18.0.1",
3
+ "version": "18.1.0",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,15 +34,16 @@
34
34
  "@atlaskit/editor-ui-control-model": "^2.8.0",
35
35
  "@atlaskit/emoji": "^72.1.0",
36
36
  "@atlaskit/icon": "^37.5.0",
37
+ "@atlaskit/icon-lab": "^7.7.0",
37
38
  "@atlaskit/platform-feature-experiments": "^0.3.0",
38
39
  "@atlaskit/platform-feature-flags": "^2.1.0",
39
- "@atlaskit/tmp-editor-statsig": "^161.0.0",
40
+ "@atlaskit/tmp-editor-statsig": "^162.0.0",
40
41
  "@atlaskit/tokens": "^16.8.0",
41
42
  "@babel/runtime": "^7.0.0",
42
43
  "uuid": "^3.1.0"
43
44
  },
44
45
  "peerDependencies": {
45
- "@atlaskit/editor-common": "^120.0.0",
46
+ "@atlaskit/editor-common": "^120.3.0",
46
47
  "react": "^18.2.0 || ^19.2.0",
47
48
  "react-dom": "^18.2.0 || ^19.2.0",
48
49
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"