@atlaskit/editor-plugin-panel 5.2.0 → 5.2.2

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
+ ## 5.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#189903](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/189903)
8
+ [`f5ccd32e607db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f5ccd32e607db) -
9
+ [ED-28567] Add/remove missing/extra separators in media, table and panel toolbars shown in Jira
10
+ - Updated dependencies
11
+
12
+ ## 5.2.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#188952](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188952)
17
+ [`1a88e6e2601ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a88e6e2601ae) -
18
+ Migrated usage of renamed/deprecated icons
19
+ - Updated dependencies
20
+
3
21
  ## 5.2.0
4
22
 
5
23
  ### Minor Changes
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.panelIconMap = exports.getToolbarItems = exports.getToolbarConfig = void 0;
9
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
11
  var _react = _interopRequireDefault(require("react"));
11
12
  var _adfSchema = require("@atlaskit/adf-schema");
@@ -22,11 +23,12 @@ var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
22
23
  var _emojiRemove = _interopRequireDefault(require("@atlaskit/icon/core/emoji-remove"));
23
24
  var _crossCircleEditorError = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle--editor-error"));
24
25
  var _discoveryEditorNote = _interopRequireDefault(require("@atlaskit/icon/core/migration/discovery--editor-note"));
25
- var _informationEditorInfo = _interopRequireDefault(require("@atlaskit/icon/core/migration/information--editor-info"));
26
- var _successEditorSuccess = _interopRequireDefault(require("@atlaskit/icon/core/migration/success--editor-success"));
27
- var _warningEditorWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/warning--editor-warning"));
26
+ var _statusInformationEditorInfo = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-information--editor-info"));
27
+ var _statusSuccessEditorSuccess = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-success--editor-success"));
28
+ var _statusWarningEditorWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-warning--editor-warning"));
28
29
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
29
30
  var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
31
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
30
32
  var _actions = require("../editor-actions/actions");
31
33
  var _utils2 = require("../pm-plugins/utils/utils");
32
34
  var _panelTypeDropdown = require("./panelTypeDropdown");
@@ -58,7 +60,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
58
60
  var items = isNewEditorToolbarDisabled ? [{
59
61
  id: 'editor.panel.info',
60
62
  type: 'button',
61
- icon: _informationEditorInfo.default,
63
+ icon: _statusInformationEditorInfo.default,
62
64
  onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.INFO),
63
65
  selected: activePanelType === _adfSchema.PanelType.INFO,
64
66
  title: formatMessage(_messages.panelMessages.info),
@@ -74,7 +76,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
74
76
  }, {
75
77
  id: 'editor.panel.success',
76
78
  type: 'button',
77
- icon: _successEditorSuccess.default,
79
+ icon: _statusSuccessEditorSuccess.default,
78
80
  onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.SUCCESS),
79
81
  selected: activePanelType === _adfSchema.PanelType.SUCCESS,
80
82
  title: formatMessage(_messages.panelMessages.success),
@@ -82,7 +84,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
82
84
  }, {
83
85
  id: 'editor.panel.warning',
84
86
  type: 'button',
85
- icon: _warningEditorWarning.default,
87
+ icon: _statusWarningEditorWarning.default,
86
88
  onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.WARNING),
87
89
  selected: activePanelType === _adfSchema.PanelType.WARNING,
88
90
  title: formatMessage(_messages.panelMessages.warning),
@@ -99,9 +101,9 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
99
101
  activePanelType: activePanelType,
100
102
  editorAnalyticsAPI: editorAnalyticsAPI,
101
103
  formatMessage: formatMessage
102
- }), {
104
+ })].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true) ? [] : [{
103
105
  type: 'separator'
104
- }];
106
+ }]));
105
107
  if (isCustomPanelEnabled) {
106
108
  var changeColor = function changeColor(color) {
107
109
  return function (state, dispatch) {
@@ -13,11 +13,12 @@ import DeleteIcon from '@atlaskit/icon/core/delete';
13
13
  import EmojiRemoveIcon from '@atlaskit/icon/core/emoji-remove';
14
14
  import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle--editor-error';
15
15
  import DiscoveryIcon from '@atlaskit/icon/core/migration/discovery--editor-note';
16
- import InformationIcon from '@atlaskit/icon/core/migration/information--editor-info';
17
- import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
18
- import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
16
+ import InformationIcon from '@atlaskit/icon/core/migration/status-information--editor-info';
17
+ import SuccessIcon from '@atlaskit/icon/core/migration/status-success--editor-success';
18
+ import WarningIcon from '@atlaskit/icon/core/migration/status-warning--editor-warning';
19
19
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
20
20
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
21
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
22
  import { changePanelType, removePanel } from '../editor-actions/actions';
22
23
  import { findPanel } from '../pm-plugins/utils/utils';
23
24
  import { panelTypeDropdown } from './panelTypeDropdown';
@@ -94,9 +95,9 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
94
95
  activePanelType,
95
96
  editorAnalyticsAPI,
96
97
  formatMessage
97
- }), {
98
+ }), ...(expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) ? [] : [{
98
99
  type: 'separator'
99
- }];
100
+ }])];
100
101
  if (isCustomPanelEnabled) {
101
102
  const changeColor = color => (state, dispatch) => {
102
103
  const panelNode = findPanel(state);
@@ -1,3 +1,4 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
1
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -16,11 +17,12 @@ import DeleteIcon from '@atlaskit/icon/core/delete';
16
17
  import EmojiRemoveIcon from '@atlaskit/icon/core/emoji-remove';
17
18
  import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle--editor-error';
18
19
  import DiscoveryIcon from '@atlaskit/icon/core/migration/discovery--editor-note';
19
- import InformationIcon from '@atlaskit/icon/core/migration/information--editor-info';
20
- import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
21
- import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
20
+ import InformationIcon from '@atlaskit/icon/core/migration/status-information--editor-info';
21
+ import SuccessIcon from '@atlaskit/icon/core/migration/status-success--editor-success';
22
+ import WarningIcon from '@atlaskit/icon/core/migration/status-warning--editor-warning';
22
23
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
23
24
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
25
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
24
26
  import { changePanelType, removePanel } from '../editor-actions/actions';
25
27
  import { findPanel } from '../pm-plugins/utils/utils';
26
28
  import { panelTypeDropdown } from './panelTypeDropdown';
@@ -90,9 +92,9 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
90
92
  activePanelType: activePanelType,
91
93
  editorAnalyticsAPI: editorAnalyticsAPI,
92
94
  formatMessage: formatMessage
93
- }), {
95
+ })].concat(_toConsumableArray(expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) ? [] : [{
94
96
  type: 'separator'
95
- }];
97
+ }]));
96
98
  if (isCustomPanelEnabled) {
97
99
  var changeColor = function changeColor(color) {
98
100
  return function (state, dispatch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,20 +34,20 @@
34
34
  "@atlaskit/editor-palette": "^2.1.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
36
36
  "@atlaskit/editor-plugin-decorations": "^3.0.0",
37
- "@atlaskit/editor-plugin-emoji": "^4.1.0",
37
+ "@atlaskit/editor-plugin-emoji": "^4.2.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.5.0",
40
40
  "@atlaskit/emoji": "^69.3.0",
41
- "@atlaskit/icon": "^27.5.0",
41
+ "@atlaskit/icon": "^27.6.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
43
  "@atlaskit/theme": "^19.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^9.9.0",
44
+ "@atlaskit/tmp-editor-statsig": "^9.10.0",
45
45
  "@atlaskit/tokens": "^5.6.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "uuid": "^3.1.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^107.9.0",
50
+ "@atlaskit/editor-common": "^107.12.0",
51
51
  "react": "^18.2.0",
52
52
  "react-dom": "^18.2.0",
53
53
  "react-intl-next": "npm:react-intl@^5.18.1"