@atlaskit/editor-plugin-panel 5.2.1 → 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 +9 -0
- package/dist/cjs/ui/toolbar.js +4 -2
- package/dist/es2019/ui/toolbar.js +3 -2
- package/dist/esm/ui/toolbar.js +4 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
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
|
+
|
|
3
12
|
## 5.2.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -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");
|
|
@@ -27,6 +28,7 @@ var _statusSuccessEditorSuccess = _interopRequireDefault(require("@atlaskit/icon
|
|
|
27
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");
|
|
@@ -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) {
|
|
@@ -18,6 +18,7 @@ import SuccessIcon from '@atlaskit/icon/core/migration/status-success--editor-su
|
|
|
18
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);
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -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; }
|
|
@@ -21,6 +22,7 @@ import SuccessIcon from '@atlaskit/icon/core/migration/status-success--editor-su
|
|
|
21
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.
|
|
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",
|
|
@@ -38,16 +38,16 @@
|
|
|
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.
|
|
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.
|
|
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.
|
|
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"
|