@atlaskit/editor-plugin-panel 10.0.8 → 10.0.10
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 +14 -0
- package/dist/cjs/panelPlugin.js +2 -2
- package/dist/es2019/panelPlugin.js +2 -2
- package/dist/esm/panelPlugin.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 10.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9ed32aea2c1d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ed32aea2c1d3) -
|
|
8
|
+
Replace feature experiment util with cross platform alternative for platform_editor_block_menu
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 10.0.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 10.0.8
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/panelPlugin.js
CHANGED
|
@@ -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
|
|
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,
|
|
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 {
|
|
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 (
|
|
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',
|
package/dist/esm/panelPlugin.js
CHANGED
|
@@ -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 {
|
|
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 (
|
|
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.
|
|
3
|
+
"version": "10.0.10",
|
|
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": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^43.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^11.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"uuid": "^3.1.0"
|