@atlaskit/editor-plugin-panel 3.0.0 → 3.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 +16 -0
- package/dist/cjs/toolbar.js +2 -1
- package/dist/es2019/toolbar.js +2 -1
- package/dist/esm/toolbar.js +2 -1
- package/package.json +12 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#159018](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159018)
|
|
8
|
+
[`14d5e189df870`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14d5e189df870) -
|
|
9
|
+
[ux] ED-25367-remove-copy-button-from-view-mode-when-its-the-only-item
|
|
10
|
+
|
|
11
|
+
## 3.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#159176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159176)
|
|
16
|
+
[`8f1d77592a9dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8f1d77592a9dc) -
|
|
17
|
+
Bump adf-schema to 44.2.0
|
|
18
|
+
|
|
3
19
|
## 3.0.0
|
|
4
20
|
|
|
5
21
|
### Major Changes
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -28,6 +28,7 @@ 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");
|
|
31
32
|
var _actions = require("./actions");
|
|
32
33
|
var _utils2 = require("./utils");
|
|
33
34
|
var _panelIconMap;
|
|
@@ -249,7 +250,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
249
250
|
});
|
|
250
251
|
items.push({
|
|
251
252
|
type: 'copy-button',
|
|
252
|
-
supportsViewMode:
|
|
253
|
+
supportsViewMode: !(0, _platformFeatureFlags.fg)('platform_editor_remove_copy_button_from_view_mode'),
|
|
253
254
|
items: [{
|
|
254
255
|
state: state,
|
|
255
256
|
formatMessage: formatMessage,
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -19,6 +19,7 @@ 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';
|
|
22
23
|
import { changePanelType, removePanel } from './actions';
|
|
23
24
|
import { findPanel } from './utils';
|
|
24
25
|
export const panelIconMap = {
|
|
@@ -232,7 +233,7 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
232
233
|
});
|
|
233
234
|
items.push({
|
|
234
235
|
type: 'copy-button',
|
|
235
|
-
supportsViewMode:
|
|
236
|
+
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
236
237
|
items: [{
|
|
237
238
|
state,
|
|
238
239
|
formatMessage,
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -23,6 +23,7 @@ import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
|
23
23
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
24
24
|
import LegacySuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
25
25
|
import LegacyWarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
26
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
27
|
import { changePanelType, removePanel } from './actions';
|
|
27
28
|
import { findPanel } from './utils';
|
|
28
29
|
export var panelIconMap = (_panelIconMap = {}, _defineProperty(_panelIconMap, PanelType.INFO, {
|
|
@@ -239,7 +240,7 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
239
240
|
});
|
|
240
241
|
items.push({
|
|
241
242
|
type: 'copy-button',
|
|
242
|
-
supportsViewMode:
|
|
243
|
+
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
243
244
|
items: [{
|
|
244
245
|
state: state,
|
|
245
246
|
formatMessage: formatMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,18 +31,19 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
-
"@atlaskit/editor-common": "^94.
|
|
34
|
+
"@atlaskit/adf-schema": "^44.2.0",
|
|
35
|
+
"@atlaskit/editor-common": "^94.13.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.6.3",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-emoji": "^2.7.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
41
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
42
|
-
"@atlaskit/emoji": "^67.
|
|
41
|
+
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
42
|
+
"@atlaskit/emoji": "^67.9.0",
|
|
43
43
|
"@atlaskit/icon": "^22.24.0",
|
|
44
|
+
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
45
|
"@atlaskit/theme": "^14.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^2.12.0",
|
|
46
47
|
"@babel/runtime": "^7.0.0"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
@@ -86,6 +87,11 @@
|
|
|
86
87
|
]
|
|
87
88
|
}
|
|
88
89
|
},
|
|
90
|
+
"platform-feature-flags": {
|
|
91
|
+
"platform_editor_remove_copy_button_from_view_mode": {
|
|
92
|
+
"type": "boolean"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
89
95
|
"stricter": {
|
|
90
96
|
"no-unused-dependencies": {
|
|
91
97
|
"checkDevDependencies": true
|