@atlaskit/editor-plugin-selection-extension 10.3.15 → 10.3.17
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 10.3.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`52d4b8fab3118`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/52d4b8fab3118) -
|
|
8
|
+
Add platform_editor_toolbar_hide_overflow_menu experiment, add logic to hide menu button if there
|
|
9
|
+
are no menu items rendered
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 10.3.16
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 10.3.15
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -8,6 +8,7 @@ exports.getToolbarComponents = void 0;
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
11
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
12
|
var _MenuItem = require("./toolbar-components/MenuItem");
|
|
12
13
|
var _registerInlineToolbar = require("./toolbar-components/register-inline-toolbar");
|
|
13
14
|
var _migrateSelectionExtention = require("./utils/migrate-selection-extention");
|
|
@@ -56,6 +57,9 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
56
57
|
};
|
|
57
58
|
var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, extensions) {
|
|
58
59
|
var components = [];
|
|
60
|
+
if (extensions.length === 0 && (0, _expValEquals.expValEquals)('platform_editor_toolbar_hide_overflow_menu', 'isEnabled', true)) {
|
|
61
|
+
return components;
|
|
62
|
+
}
|
|
59
63
|
components.push({
|
|
60
64
|
type: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
61
65
|
key: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
@@ -75,6 +79,9 @@ var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, ex
|
|
|
75
79
|
};
|
|
76
80
|
var registerExternalExtensions = function registerExternalExtensions(api, extensions) {
|
|
77
81
|
var components = [];
|
|
82
|
+
if (extensions.length === 0 && (0, _expValEquals.expValEquals)('platform_editor_toolbar_hide_overflow_menu', 'isEnabled', true)) {
|
|
83
|
+
return components;
|
|
84
|
+
}
|
|
78
85
|
components.push({
|
|
79
86
|
type: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
80
87
|
key: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { APPS_SECTION, EXTERNAL_EXTENSIONS_MENU_ITEM, FIRST_PARTY_EXTENSIONS_MENU_ITEM, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
3
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
4
|
import { MenuItem } from './toolbar-components/MenuItem';
|
|
4
5
|
import { registerInlineToolbar } from './toolbar-components/register-inline-toolbar';
|
|
5
6
|
import { migrateSelectionExtensionToMenuItem } from './utils/migrate-selection-extention';
|
|
@@ -39,6 +40,9 @@ export const getToolbarComponents = ({
|
|
|
39
40
|
};
|
|
40
41
|
const registerFirstPartyExtensions = (api, extensions) => {
|
|
41
42
|
const components = [];
|
|
43
|
+
if (extensions.length === 0 && expValEquals('platform_editor_toolbar_hide_overflow_menu', 'isEnabled', true)) {
|
|
44
|
+
return components;
|
|
45
|
+
}
|
|
42
46
|
components.push({
|
|
43
47
|
type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
44
48
|
key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
@@ -58,6 +62,9 @@ const registerFirstPartyExtensions = (api, extensions) => {
|
|
|
58
62
|
};
|
|
59
63
|
const registerExternalExtensions = (api, extensions) => {
|
|
60
64
|
const components = [];
|
|
65
|
+
if (extensions.length === 0 && expValEquals('platform_editor_toolbar_hide_overflow_menu', 'isEnabled', true)) {
|
|
66
|
+
return components;
|
|
67
|
+
}
|
|
61
68
|
components.push({
|
|
62
69
|
type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
63
70
|
key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { APPS_SECTION, EXTERNAL_EXTENSIONS_MENU_ITEM, FIRST_PARTY_EXTENSIONS_MENU_ITEM, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK, TOOLBAR_RANK, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
import { MenuItem } from './toolbar-components/MenuItem';
|
|
5
6
|
import { registerInlineToolbar } from './toolbar-components/register-inline-toolbar';
|
|
6
7
|
import { migrateSelectionExtensionToMenuItem } from './utils/migrate-selection-extention';
|
|
@@ -49,6 +50,9 @@ export var getToolbarComponents = function getToolbarComponents(_ref) {
|
|
|
49
50
|
};
|
|
50
51
|
var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, extensions) {
|
|
51
52
|
var components = [];
|
|
53
|
+
if (extensions.length === 0 && expValEquals('platform_editor_toolbar_hide_overflow_menu', 'isEnabled', true)) {
|
|
54
|
+
return components;
|
|
55
|
+
}
|
|
52
56
|
components.push({
|
|
53
57
|
type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
54
58
|
key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
@@ -68,6 +72,9 @@ var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, ex
|
|
|
68
72
|
};
|
|
69
73
|
var registerExternalExtensions = function registerExternalExtensions(api, extensions) {
|
|
70
74
|
var components = [];
|
|
75
|
+
if (extensions.length === 0 && expValEquals('platform_editor_toolbar_hide_overflow_menu', 'isEnabled', true)) {
|
|
76
|
+
return components;
|
|
77
|
+
}
|
|
71
78
|
components.push({
|
|
72
79
|
type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
73
80
|
key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.17",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@atlaskit/css": "^0.19.0",
|
|
37
37
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
39
|
-
"@atlaskit/editor-plugin-block-controls": "^8.
|
|
40
|
-
"@atlaskit/editor-plugin-block-menu": "^6.
|
|
39
|
+
"@atlaskit/editor-plugin-block-controls": "^8.5.0",
|
|
40
|
+
"@atlaskit/editor-plugin-block-menu": "^6.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^7.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/lozenge": "^13.4.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/primitives": "^18.0.0",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^29.5.0",
|
|
56
56
|
"@atlaskit/tokens": "^11.0.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"uuid": "^3.1.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/editor-common": "^111.
|
|
63
|
+
"@atlaskit/editor-common": "^111.19.0",
|
|
64
64
|
"react": "^18.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|