@atlaskit/editor-plugin-panel 3.3.1 → 3.3.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
|
@@ -17,6 +17,7 @@ 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
19
|
var _hint = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/hint"));
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _utils = require("../pm-plugins/utils/utils");
|
|
21
22
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
22
23
|
// Mapping export
|
|
@@ -59,7 +60,9 @@ var PanelIcon = exports.PanelIcon = function PanelIcon(props) {
|
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
62
|
var Icon = panelIcons[panelType];
|
|
62
|
-
return /*#__PURE__*/_react.default.createElement(Icon, {
|
|
63
|
+
return (0, _platformFeatureFlags.fg)('platform_editor_update_panel_icon_aria_label') ? /*#__PURE__*/_react.default.createElement(Icon, {
|
|
64
|
+
label: "".concat(panelType, " panel")
|
|
65
|
+
}) : /*#__PURE__*/_react.default.createElement(Icon, {
|
|
63
66
|
label: "Panel ".concat(panelType)
|
|
64
67
|
});
|
|
65
68
|
};
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -28,7 +28,6 @@ var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove
|
|
|
28
28
|
var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
|
|
29
29
|
var _success2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/success"));
|
|
30
30
|
var _warning2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/warning"));
|
|
31
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
32
31
|
var _actions = require("../editor-actions/actions");
|
|
33
32
|
var _utils2 = require("../pm-plugins/utils/utils");
|
|
34
33
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -249,7 +248,6 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
249
248
|
});
|
|
250
249
|
items.push({
|
|
251
250
|
type: 'copy-button',
|
|
252
|
-
supportsViewMode: !(0, _platformFeatureFlags.fg)('platform_editor_remove_copy_button_from_view_mode'),
|
|
253
251
|
items: [{
|
|
254
252
|
state: state,
|
|
255
253
|
formatMessage: formatMessage,
|
|
@@ -8,6 +8,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
10
|
import TipIcon from '@atlaskit/icon/glyph/editor/hint';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { panelAttrsToDom } from '../pm-plugins/utils/utils';
|
|
12
13
|
|
|
13
14
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
@@ -55,7 +56,9 @@ export const PanelIcon = props => {
|
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
58
|
const Icon = panelIcons[panelType];
|
|
58
|
-
return /*#__PURE__*/React.createElement(Icon, {
|
|
59
|
+
return fg('platform_editor_update_panel_icon_aria_label') ? /*#__PURE__*/React.createElement(Icon, {
|
|
60
|
+
label: `${panelType} panel`
|
|
61
|
+
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
59
62
|
label: `Panel ${panelType}`
|
|
60
63
|
});
|
|
61
64
|
};
|
|
@@ -19,7 +19,6 @@ import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
|
19
19
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
20
20
|
import LegacySuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
21
21
|
import LegacyWarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
22
|
import { changePanelType, removePanel } from '../editor-actions/actions';
|
|
24
23
|
import { findPanel } from '../pm-plugins/utils/utils';
|
|
25
24
|
export const panelIconMap = {
|
|
@@ -233,7 +232,6 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
233
232
|
});
|
|
234
233
|
items.push({
|
|
235
234
|
type: 'copy-button',
|
|
236
|
-
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
237
235
|
items: [{
|
|
238
236
|
state,
|
|
239
237
|
formatMessage,
|
|
@@ -10,6 +10,7 @@ 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
12
|
import TipIcon from '@atlaskit/icon/glyph/editor/hint';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { panelAttrsToDom } from '../pm-plugins/utils/utils';
|
|
14
15
|
|
|
15
16
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
@@ -53,7 +54,9 @@ export var PanelIcon = function PanelIcon(props) {
|
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
var Icon = panelIcons[panelType];
|
|
56
|
-
return /*#__PURE__*/React.createElement(Icon, {
|
|
57
|
+
return fg('platform_editor_update_panel_icon_aria_label') ? /*#__PURE__*/React.createElement(Icon, {
|
|
58
|
+
label: "".concat(panelType, " panel")
|
|
59
|
+
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
57
60
|
label: "Panel ".concat(panelType)
|
|
58
61
|
});
|
|
59
62
|
};
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -22,7 +22,6 @@ import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
|
22
22
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
23
23
|
import LegacySuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
24
24
|
import LegacyWarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
25
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
25
|
import { changePanelType, removePanel } from '../editor-actions/actions';
|
|
27
26
|
import { findPanel } from '../pm-plugins/utils/utils';
|
|
28
27
|
export var panelIconMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, PanelType.INFO, {
|
|
@@ -239,7 +238,6 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
239
238
|
});
|
|
240
239
|
items.push({
|
|
241
240
|
type: 'copy-button',
|
|
242
|
-
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
243
241
|
items: [{
|
|
244
242
|
state: state,
|
|
245
243
|
formatMessage: formatMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
35
|
-
"@atlaskit/editor-common": "^99.
|
|
35
|
+
"@atlaskit/editor-common": "^99.17.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.7.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.12.0",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^1.5.0",
|
|
39
39
|
"@atlaskit/editor-plugin-emoji": "^2.9.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
41
|
+
"@atlaskit/editor-shared-styles": "^3.3.0",
|
|
42
42
|
"@atlaskit/emoji": "^67.14.0",
|
|
43
43
|
"@atlaskit/icon": "^23.9.0",
|
|
44
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
45
|
-
"@atlaskit/theme": "^
|
|
44
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
|
+
"@atlaskit/theme": "^16.0.0",
|
|
46
46
|
"@atlaskit/tmp-editor-statsig": "^2.46.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"uuid": "^3.1.0"
|
|
@@ -92,7 +92,10 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"platform-feature-flags": {
|
|
95
|
-
"
|
|
95
|
+
"platform_editor_update_panel_icon_aria_label": {
|
|
96
|
+
"type": "boolean"
|
|
97
|
+
},
|
|
98
|
+
"platform_editor_react18_plugin_portalprovider": {
|
|
96
99
|
"type": "boolean"
|
|
97
100
|
}
|
|
98
101
|
},
|