@atlaskit/editor-plugin-panel 10.0.9 → 10.0.11

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,19 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 10.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.0.10
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9ed32aea2c1d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ed32aea2c1d3) -
14
+ Replace feature experiment util with cross platform alternative for platform_editor_block_menu
15
+ - Updated dependencies
16
+
3
17
  ## 10.0.9
4
18
 
5
19
  ### Patch Changes
@@ -16,7 +16,7 @@ var _quickInsert = require("@atlaskit/editor-common/quick-insert");
16
16
  var _utils = require("@atlaskit/editor-common/utils");
17
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
18
  var _colors = require("@atlaskit/theme/colors");
19
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
19
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
20
20
  var _keymaps = _interopRequireDefault(require("./pm-plugins/keymaps"));
21
21
  var _main = require("./pm-plugins/main");
22
22
  var _panelBlockMenuItem = require("./ui/panelBlockMenuItem");
@@ -32,7 +32,7 @@ var panelPlugin = function panelPlugin(_ref) {
32
32
  _ref$config2$allowCus2 = _ref$config2.allowCustomPanelEdit,
33
33
  allowCustomPanelEdit = _ref$config2$allowCus2 === void 0 ? false : _ref$config2$allowCus2,
34
34
  api = _ref.api;
35
- if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true)) {
35
+ if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
36
36
  var _api$blockMenu;
37
37
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
38
38
  type: 'block-menu-item',
@@ -8,7 +8,7 @@ import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuc
8
8
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
10
10
  import { T50 } from '@atlaskit/theme/colors';
11
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
11
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
12
  import keymap from './pm-plugins/keymaps';
13
13
  import { createPlugin } from './pm-plugins/main';
14
14
  import { createPanelBlockMenuItem } from './ui/panelBlockMenuItem';
@@ -21,7 +21,7 @@ const panelPlugin = ({
21
21
  } = {},
22
22
  api
23
23
  }) => {
24
- if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
24
+ if (editorExperiment('platform_editor_block_menu', true)) {
25
25
  var _api$blockMenu;
26
26
  api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents([{
27
27
  type: 'block-menu-item',
@@ -11,7 +11,7 @@ import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuc
11
11
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
13
  import { T50 } from '@atlaskit/theme/colors';
14
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
14
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
15
  import keymap from './pm-plugins/keymaps';
16
16
  import { createPlugin } from './pm-plugins/main';
17
17
  import { createPanelBlockMenuItem } from './ui/panelBlockMenuItem';
@@ -25,7 +25,7 @@ var panelPlugin = function panelPlugin(_ref) {
25
25
  _ref$config2$allowCus2 = _ref$config2.allowCustomPanelEdit,
26
26
  allowCustomPanelEdit = _ref$config2$allowCus2 === void 0 ? false : _ref$config2$allowCus2,
27
27
  api = _ref.api;
28
- if (expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
28
+ if (editorExperiment('platform_editor_block_menu', true)) {
29
29
  var _api$blockMenu;
30
30
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
31
31
  type: 'block-menu-item',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "10.0.9",
3
+ "version": "10.0.11",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/icon": "^33.0.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/theme": "^22.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^43.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^44.0.0",
46
46
  "@atlaskit/tokens": "^11.1.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "uuid": "^3.1.0"