@atlaskit/editor-plugin-panel 6.0.3 → 6.0.4

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
+ ## 6.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
8
+ replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
9
+ - Updated dependencies
10
+
3
11
  ## 6.0.3
4
12
 
5
13
  ### Patch Changes
@@ -28,7 +28,7 @@ var _statusSuccessEditorSuccess = _interopRequireDefault(require("@atlaskit/icon
28
28
  var _statusWarningEditorWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/status-warning--editor-warning"));
29
29
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
30
30
  var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
31
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
31
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
32
32
  var _actions = require("../editor-actions/actions");
33
33
  var _utils2 = require("../pm-plugins/utils/utils");
34
34
  var _panelTypeDropdown = require("./panelTypeDropdown");
@@ -101,7 +101,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
101
101
  activePanelType: activePanelType,
102
102
  editorAnalyticsAPI: editorAnalyticsAPI,
103
103
  formatMessage: formatMessage
104
- })].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true) ? [] : [{
104
+ })].concat((0, _toConsumableArray2.default)((0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) ? [] : [{
105
105
  type: 'separator'
106
106
  }]));
107
107
  if (isCustomPanelEnabled) {
@@ -18,7 +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
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
22
22
  import { changePanelType, removePanel } from '../editor-actions/actions';
23
23
  import { findPanel } from '../pm-plugins/utils/utils';
24
24
  import { panelTypeDropdown } from './panelTypeDropdown';
@@ -95,7 +95,7 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
95
95
  activePanelType,
96
96
  editorAnalyticsAPI,
97
97
  formatMessage
98
- }), ...(expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) ? [] : [{
98
+ }), ...(editorExperiment('platform_editor_toolbar_aifc', true) ? [] : [{
99
99
  type: 'separator'
100
100
  }])];
101
101
  if (isCustomPanelEnabled) {
@@ -22,7 +22,7 @@ import SuccessIcon from '@atlaskit/icon/core/migration/status-success--editor-su
22
22
  import WarningIcon from '@atlaskit/icon/core/migration/status-warning--editor-warning';
23
23
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
24
24
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
25
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
25
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
26
26
  import { changePanelType, removePanel } from '../editor-actions/actions';
27
27
  import { findPanel } from '../pm-plugins/utils/utils';
28
28
  import { panelTypeDropdown } from './panelTypeDropdown';
@@ -92,7 +92,7 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
92
92
  activePanelType: activePanelType,
93
93
  editorAnalyticsAPI: editorAnalyticsAPI,
94
94
  formatMessage: formatMessage
95
- })].concat(_toConsumableArray(expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) ? [] : [{
95
+ })].concat(_toConsumableArray(editorExperiment('platform_editor_toolbar_aifc', true) ? [] : [{
96
96
  type: 'separator'
97
97
  }]));
98
98
  if (isCustomPanelEnabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,13 +41,13 @@
41
41
  "@atlaskit/icon": "^28.1.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
43
  "@atlaskit/theme": "^20.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^12.4.0",
44
+ "@atlaskit/tmp-editor-statsig": "^12.5.0",
45
45
  "@atlaskit/tokens": "^6.2.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "uuid": "^3.1.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^108.2.0",
50
+ "@atlaskit/editor-common": "^108.3.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"