@atlaskit/editor-plugin-panel 3.0.1 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 3.0.1
4
12
 
5
13
  ### Patch Changes
@@ -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: true,
253
+ supportsViewMode: !(0, _platformFeatureFlags.fg)('platform_editor_remove_copy_button_from_view_mode'),
253
254
  items: [{
254
255
  state: state,
255
256
  formatMessage: formatMessage,
@@ -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: true,
236
+ supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
236
237
  items: [{
237
238
  state,
238
239
  formatMessage,
@@ -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: true,
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.0.1",
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",
@@ -32,17 +32,18 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^44.2.0",
35
- "@atlaskit/editor-common": "^94.9.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.1.0",
41
+ "@atlaskit/editor-shared-styles": "^3.2.0",
42
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.10.0",
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