@atlaskit/editor-plugin-selection-extension 10.1.1 → 10.2.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 +20 -0
- package/dist/cjs/ui/toolbar-components/ToolbarButton.js +2 -15
- package/dist/cjs/ui/toolbar-components/ToolbarMenu.js +2 -12
- package/dist/cjs/ui/toolbar-components/register-inline-toolbar.js +1 -2
- package/dist/cjs/ui/toolbar-components.js +11 -58
- package/dist/es2019/ui/toolbar-components/ToolbarButton.js +2 -13
- package/dist/es2019/ui/toolbar-components/ToolbarMenu.js +2 -10
- package/dist/es2019/ui/toolbar-components/register-inline-toolbar.js +2 -3
- package/dist/es2019/ui/toolbar-components.js +12 -59
- package/dist/esm/ui/toolbar-components/ToolbarButton.js +2 -15
- package/dist/esm/ui/toolbar-components/ToolbarMenu.js +2 -12
- package/dist/esm/ui/toolbar-components/register-inline-toolbar.js +2 -3
- package/dist/esm/ui/toolbar-components.js +12 -59
- package/dist/types/pm-plugins/main.d.ts +15 -14
- package/dist/types-ts4.5/pm-plugins/main.d.ts +15 -14
- package/package.json +6 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 10.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6e8029473620b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e8029473620b) -
|
|
8
|
+
[EDITOR-4496] clean up experiment platform_editor_toolbar_aifc_patch_3 and remove view-mode plugin
|
|
9
|
+
dependency from loom plugin
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 10.1.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`8708f328d5db6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8708f328d5db6) -
|
|
20
|
+
Clean up platform_editor_toolbar_aifc_overflow_menu_update feature gate
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 10.1.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -7,27 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ToolbarButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
10
|
-
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
11
10
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
12
|
-
var
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
|
-
/**
|
|
15
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
16
|
-
*/
|
|
17
|
-
var usePluginState = (0, _platformFeatureFlagsReact.conditionalHooksFactory)(function () {
|
|
18
|
-
return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
19
|
-
}, function (api) {
|
|
11
|
+
var usePluginState = function usePluginState(_api) {
|
|
20
12
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
21
13
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
22
14
|
return {
|
|
23
15
|
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
24
16
|
};
|
|
25
|
-
}
|
|
26
|
-
var editorToolbarDockingPreference = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
27
|
-
return {
|
|
28
|
-
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
29
|
-
};
|
|
30
|
-
});
|
|
17
|
+
};
|
|
31
18
|
var ToolbarButton = exports.ToolbarButton = function ToolbarButton(_ref) {
|
|
32
19
|
var api = _ref.api,
|
|
33
20
|
config = _ref.config;
|
|
@@ -7,24 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ToolbarMenu = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
10
|
-
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
11
10
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
12
|
-
var
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
|
-
var usePluginState = (0, _platformFeatureFlagsReact.conditionalHooksFactory)(function () {
|
|
15
|
-
return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
16
|
-
}, function (api) {
|
|
11
|
+
var usePluginState = function usePluginState(_api) {
|
|
17
12
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
18
13
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
19
14
|
return {
|
|
20
15
|
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
21
16
|
};
|
|
22
|
-
}
|
|
23
|
-
var editorToolbarDockingPreference = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
24
|
-
return {
|
|
25
|
-
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
26
|
-
};
|
|
27
|
-
});
|
|
17
|
+
};
|
|
28
18
|
var ToolbarMenu = exports.ToolbarMenu = function ToolbarMenu(_ref) {
|
|
29
19
|
var api = _ref.api,
|
|
30
20
|
config = _ref.config,
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.registerInlineToolbar = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _MenuItem = require("./MenuItem");
|
|
12
11
|
var _ToolbarButton = require("./ToolbarButton");
|
|
13
12
|
var _ToolbarMenu = require("./ToolbarMenu");
|
|
@@ -100,7 +99,7 @@ var registerInlineToolbar = exports.registerInlineToolbar = function registerInl
|
|
|
100
99
|
parents: [{
|
|
101
100
|
type: 'menu-section',
|
|
102
101
|
// if we have a custom menu, place items in there, otherwise in the overflow menu
|
|
103
|
-
key: getToolbarItem ? menuSectionKey :
|
|
102
|
+
key: getToolbarItem ? menuSectionKey : _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
104
103
|
rank: (index + 1) * EXTENSION_RANK_MULTIPLIER
|
|
105
104
|
}],
|
|
106
105
|
component: function component() {
|
|
@@ -8,7 +8,6 @@ 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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _MenuItem = require("./toolbar-components/MenuItem");
|
|
13
12
|
var _registerInlineToolbar = require("./toolbar-components/register-inline-toolbar");
|
|
14
13
|
var _migrateSelectionExtention = require("./utils/migrate-selection-extention");
|
|
@@ -53,45 +52,17 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
53
52
|
key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
|
|
54
53
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.APPS_SECTION.key]
|
|
55
54
|
}]
|
|
56
|
-
}].concat((0, _toConsumableArray2.default)((0,
|
|
57
|
-
// also register a section inside the overflow menu for extensions which only have menu items
|
|
58
|
-
{
|
|
59
|
-
type: _toolbar.SELECTION_EXTENSION_MENU_SECTION.type,
|
|
60
|
-
key: _toolbar.SELECTION_EXTENSION_MENU_SECTION.key,
|
|
61
|
-
parents: [{
|
|
62
|
-
key: _toolbar.OVERFLOW_MENU.key,
|
|
63
|
-
type: _toolbar.OVERFLOW_MENU.type,
|
|
64
|
-
rank: _toolbar.OVERFLOW_MENU_RANK[_toolbar.SELECTION_EXTENSION_MENU_SECTION.key]
|
|
65
|
-
}]
|
|
66
|
-
}]), (0, _toConsumableArray2.default)(extensionToolbarComponents), (0, _toConsumableArray2.default)(registerFirstPartyExtensions(api, firstPartyExtensions)), (0, _toConsumableArray2.default)(registerExternalExtensions(api, externalExtensions)));
|
|
55
|
+
}].concat((0, _toConsumableArray2.default)(extensionToolbarComponents), (0, _toConsumableArray2.default)(registerFirstPartyExtensions(api, firstPartyExtensions)), (0, _toConsumableArray2.default)(registerExternalExtensions(api, externalExtensions)));
|
|
67
56
|
};
|
|
68
57
|
var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, extensions) {
|
|
69
58
|
var components = [];
|
|
70
|
-
if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update')) {
|
|
71
|
-
components.push({
|
|
72
|
-
type: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
73
|
-
key: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
74
|
-
parents: [{
|
|
75
|
-
type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
76
|
-
key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
77
|
-
rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
|
|
78
|
-
}],
|
|
79
|
-
component: function component() {
|
|
80
|
-
return /*#__PURE__*/_react.default.createElement(_MenuItem.MenuItem, {
|
|
81
|
-
api: api,
|
|
82
|
-
extensionMenuItems: extensions
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
return components;
|
|
87
|
-
}
|
|
88
59
|
components.push({
|
|
89
|
-
type:
|
|
90
|
-
key:
|
|
60
|
+
type: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
61
|
+
key: _toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
91
62
|
parents: [{
|
|
92
|
-
type:
|
|
93
|
-
key: _toolbar.
|
|
94
|
-
rank:
|
|
63
|
+
type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
64
|
+
key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
65
|
+
rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
|
|
95
66
|
}],
|
|
96
67
|
component: function component() {
|
|
97
68
|
return /*#__PURE__*/_react.default.createElement(_MenuItem.MenuItem, {
|
|
@@ -104,31 +75,13 @@ var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, ex
|
|
|
104
75
|
};
|
|
105
76
|
var registerExternalExtensions = function registerExternalExtensions(api, extensions) {
|
|
106
77
|
var components = [];
|
|
107
|
-
if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update')) {
|
|
108
|
-
components.push({
|
|
109
|
-
type: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
110
|
-
key: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
|
111
|
-
parents: [{
|
|
112
|
-
type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
113
|
-
key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
114
|
-
rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key]
|
|
115
|
-
}],
|
|
116
|
-
component: function component() {
|
|
117
|
-
return /*#__PURE__*/_react.default.createElement(_MenuItem.MenuItem, {
|
|
118
|
-
api: api,
|
|
119
|
-
extensionMenuItems: extensions
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
return components;
|
|
124
|
-
}
|
|
125
78
|
components.push({
|
|
126
|
-
type:
|
|
127
|
-
key:
|
|
79
|
+
type: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
80
|
+
key: _toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
|
128
81
|
parents: [{
|
|
129
|
-
type:
|
|
130
|
-
key: _toolbar.
|
|
131
|
-
rank:
|
|
82
|
+
type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
83
|
+
key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
84
|
+
rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.EXTERNAL_EXTENSIONS_MENU_ITEM.key]
|
|
132
85
|
}],
|
|
133
86
|
component: function component() {
|
|
134
87
|
return /*#__PURE__*/_react.default.createElement(_MenuItem.MenuItem, {
|
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarTooltip, ToolbarButton as BaseToolbarButton } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
/**
|
|
8
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
9
|
-
*/
|
|
10
|
-
const usePluginState = conditionalHooksFactory(() => expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true), api => {
|
|
4
|
+
const usePluginState = _api => {
|
|
11
5
|
const {
|
|
12
6
|
editorToolbarDockingPreference
|
|
13
7
|
} = useEditorToolbar();
|
|
14
8
|
return {
|
|
15
9
|
editorToolbarDockingPreference
|
|
16
10
|
};
|
|
17
|
-
}
|
|
18
|
-
const editorToolbarDockingPreference = useSharedPluginStateSelector(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
19
|
-
return {
|
|
20
|
-
editorToolbarDockingPreference
|
|
21
|
-
};
|
|
22
|
-
});
|
|
11
|
+
};
|
|
23
12
|
export const ToolbarButton = ({
|
|
24
13
|
api,
|
|
25
14
|
config
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarTooltip, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
const usePluginState = conditionalHooksFactory(() => expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true), api => {
|
|
4
|
+
const usePluginState = _api => {
|
|
8
5
|
const {
|
|
9
6
|
editorToolbarDockingPreference
|
|
10
7
|
} = useEditorToolbar();
|
|
11
8
|
return {
|
|
12
9
|
editorToolbarDockingPreference
|
|
13
10
|
};
|
|
14
|
-
}
|
|
15
|
-
const editorToolbarDockingPreference = useSharedPluginStateSelector(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
16
|
-
return {
|
|
17
|
-
editorToolbarDockingPreference
|
|
18
|
-
};
|
|
19
|
-
});
|
|
11
|
+
};
|
|
20
12
|
export const ToolbarMenu = ({
|
|
21
13
|
api,
|
|
22
14
|
config,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { APPS_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION } from '@atlaskit/editor-common/toolbar';
|
|
4
3
|
import { MenuItem } from './MenuItem';
|
|
5
4
|
import { ToolbarButton } from './ToolbarButton';
|
|
6
5
|
import { ToolbarMenu } from './ToolbarMenu';
|
|
@@ -96,7 +95,7 @@ export const registerInlineToolbar = ({
|
|
|
96
95
|
parents: [{
|
|
97
96
|
type: 'menu-section',
|
|
98
97
|
// if we have a custom menu, place items in there, otherwise in the overflow menu
|
|
99
|
-
key: getToolbarItem ? menuSectionKey :
|
|
98
|
+
key: getToolbarItem ? menuSectionKey : OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
100
99
|
rank: (index + 1) * EXTENSION_RANK_MULTIPLIER
|
|
101
100
|
}],
|
|
102
101
|
component: () => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { APPS_SECTION, EXTERNAL_EXTENSIONS_MENU_ITEM, FIRST_PARTY_EXTENSIONS_MENU_ITEM, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK,
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
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';
|
|
4
3
|
import { MenuItem } from './toolbar-components/MenuItem';
|
|
5
4
|
import { registerInlineToolbar } from './toolbar-components/register-inline-toolbar';
|
|
6
5
|
import { migrateSelectionExtensionToMenuItem } from './utils/migrate-selection-extention';
|
|
@@ -36,45 +35,17 @@ export const getToolbarComponents = ({
|
|
|
36
35
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
37
36
|
rank: TOOLBAR_RANK[APPS_SECTION.key]
|
|
38
37
|
}]
|
|
39
|
-
}, ...(
|
|
40
|
-
// also register a section inside the overflow menu for extensions which only have menu items
|
|
41
|
-
{
|
|
42
|
-
type: SELECTION_EXTENSION_MENU_SECTION.type,
|
|
43
|
-
key: SELECTION_EXTENSION_MENU_SECTION.key,
|
|
44
|
-
parents: [{
|
|
45
|
-
key: OVERFLOW_MENU.key,
|
|
46
|
-
type: OVERFLOW_MENU.type,
|
|
47
|
-
rank: OVERFLOW_MENU_RANK[SELECTION_EXTENSION_MENU_SECTION.key]
|
|
48
|
-
}]
|
|
49
|
-
}]), ...extensionToolbarComponents, ...registerFirstPartyExtensions(api, firstPartyExtensions), ...registerExternalExtensions(api, externalExtensions)];
|
|
38
|
+
}, ...extensionToolbarComponents, ...registerFirstPartyExtensions(api, firstPartyExtensions), ...registerExternalExtensions(api, externalExtensions)];
|
|
50
39
|
};
|
|
51
40
|
const registerFirstPartyExtensions = (api, extensions) => {
|
|
52
41
|
const components = [];
|
|
53
|
-
if (fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
|
|
54
|
-
components.push({
|
|
55
|
-
type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
56
|
-
key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
57
|
-
parents: [{
|
|
58
|
-
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
59
|
-
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
60
|
-
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
|
|
61
|
-
}],
|
|
62
|
-
component: () => {
|
|
63
|
-
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
64
|
-
api: api,
|
|
65
|
-
extensionMenuItems: extensions
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
return components;
|
|
70
|
-
}
|
|
71
42
|
components.push({
|
|
72
|
-
type:
|
|
73
|
-
key:
|
|
43
|
+
type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
44
|
+
key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
74
45
|
parents: [{
|
|
75
|
-
type:
|
|
76
|
-
key:
|
|
77
|
-
rank:
|
|
46
|
+
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
47
|
+
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
48
|
+
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
|
|
78
49
|
}],
|
|
79
50
|
component: () => {
|
|
80
51
|
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
@@ -87,31 +58,13 @@ const registerFirstPartyExtensions = (api, extensions) => {
|
|
|
87
58
|
};
|
|
88
59
|
const registerExternalExtensions = (api, extensions) => {
|
|
89
60
|
const components = [];
|
|
90
|
-
if (fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
|
|
91
|
-
components.push({
|
|
92
|
-
type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
93
|
-
key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
|
94
|
-
parents: [{
|
|
95
|
-
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
96
|
-
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
97
|
-
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[EXTERNAL_EXTENSIONS_MENU_ITEM.key]
|
|
98
|
-
}],
|
|
99
|
-
component: () => {
|
|
100
|
-
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
101
|
-
api: api,
|
|
102
|
-
extensionMenuItems: extensions
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
return components;
|
|
107
|
-
}
|
|
108
61
|
components.push({
|
|
109
|
-
type:
|
|
110
|
-
key:
|
|
62
|
+
type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
63
|
+
key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
|
111
64
|
parents: [{
|
|
112
|
-
type:
|
|
113
|
-
key:
|
|
114
|
-
rank:
|
|
65
|
+
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
66
|
+
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
67
|
+
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[EXTERNAL_EXTENSIONS_MENU_ITEM.key]
|
|
115
68
|
}],
|
|
116
69
|
component: () => {
|
|
117
70
|
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarTooltip, ToolbarButton as BaseToolbarButton } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
/**
|
|
8
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
9
|
-
*/
|
|
10
|
-
var usePluginState = conditionalHooksFactory(function () {
|
|
11
|
-
return expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
12
|
-
}, function (api) {
|
|
4
|
+
var usePluginState = function usePluginState(_api) {
|
|
13
5
|
var _useEditorToolbar = useEditorToolbar(),
|
|
14
6
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
15
7
|
return {
|
|
16
8
|
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
17
9
|
};
|
|
18
|
-
}
|
|
19
|
-
var editorToolbarDockingPreference = useSharedPluginStateSelector(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
20
|
-
return {
|
|
21
|
-
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
22
|
-
};
|
|
23
|
-
});
|
|
10
|
+
};
|
|
24
11
|
export var ToolbarButton = function ToolbarButton(_ref) {
|
|
25
12
|
var api = _ref.api,
|
|
26
13
|
config = _ref.config;
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarTooltip, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
var usePluginState = conditionalHooksFactory(function () {
|
|
8
|
-
return expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
9
|
-
}, function (api) {
|
|
4
|
+
var usePluginState = function usePluginState(_api) {
|
|
10
5
|
var _useEditorToolbar = useEditorToolbar(),
|
|
11
6
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
12
7
|
return {
|
|
13
8
|
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
14
9
|
};
|
|
15
|
-
}
|
|
16
|
-
var editorToolbarDockingPreference = useSharedPluginStateSelector(api, 'userPreferences.preferences.toolbarDockingPosition');
|
|
17
|
-
return {
|
|
18
|
-
editorToolbarDockingPreference: editorToolbarDockingPreference
|
|
19
|
-
};
|
|
20
|
-
});
|
|
10
|
+
};
|
|
21
11
|
export var ToolbarMenu = function ToolbarMenu(_ref) {
|
|
22
12
|
var api = _ref.api,
|
|
23
13
|
config = _ref.config,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { APPS_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION } from '@atlaskit/editor-common/toolbar';
|
|
4
3
|
import { MenuItem } from './MenuItem';
|
|
5
4
|
import { ToolbarButton } from './ToolbarButton';
|
|
6
5
|
import { ToolbarMenu } from './ToolbarMenu';
|
|
@@ -93,7 +92,7 @@ export var registerInlineToolbar = function registerInlineToolbar(_ref) {
|
|
|
93
92
|
parents: [{
|
|
94
93
|
type: 'menu-section',
|
|
95
94
|
// if we have a custom menu, place items in there, otherwise in the overflow menu
|
|
96
|
-
key: getToolbarItem ? menuSectionKey :
|
|
95
|
+
key: getToolbarItem ? menuSectionKey : OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
97
96
|
rank: (index + 1) * EXTENSION_RANK_MULTIPLIER
|
|
98
97
|
}],
|
|
99
98
|
component: function component() {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { APPS_SECTION, EXTERNAL_EXTENSIONS_MENU_ITEM, FIRST_PARTY_EXTENSIONS_MENU_ITEM, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK,
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
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';
|
|
5
4
|
import { MenuItem } from './toolbar-components/MenuItem';
|
|
6
5
|
import { registerInlineToolbar } from './toolbar-components/register-inline-toolbar';
|
|
7
6
|
import { migrateSelectionExtensionToMenuItem } from './utils/migrate-selection-extention';
|
|
@@ -46,45 +45,17 @@ export var getToolbarComponents = function getToolbarComponents(_ref) {
|
|
|
46
45
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
47
46
|
rank: TOOLBAR_RANK[APPS_SECTION.key]
|
|
48
47
|
}]
|
|
49
|
-
}].concat(_toConsumableArray(
|
|
50
|
-
// also register a section inside the overflow menu for extensions which only have menu items
|
|
51
|
-
{
|
|
52
|
-
type: SELECTION_EXTENSION_MENU_SECTION.type,
|
|
53
|
-
key: SELECTION_EXTENSION_MENU_SECTION.key,
|
|
54
|
-
parents: [{
|
|
55
|
-
key: OVERFLOW_MENU.key,
|
|
56
|
-
type: OVERFLOW_MENU.type,
|
|
57
|
-
rank: OVERFLOW_MENU_RANK[SELECTION_EXTENSION_MENU_SECTION.key]
|
|
58
|
-
}]
|
|
59
|
-
}]), _toConsumableArray(extensionToolbarComponents), _toConsumableArray(registerFirstPartyExtensions(api, firstPartyExtensions)), _toConsumableArray(registerExternalExtensions(api, externalExtensions)));
|
|
48
|
+
}].concat(_toConsumableArray(extensionToolbarComponents), _toConsumableArray(registerFirstPartyExtensions(api, firstPartyExtensions)), _toConsumableArray(registerExternalExtensions(api, externalExtensions)));
|
|
60
49
|
};
|
|
61
50
|
var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, extensions) {
|
|
62
51
|
var components = [];
|
|
63
|
-
if (fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
|
|
64
|
-
components.push({
|
|
65
|
-
type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
66
|
-
key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
67
|
-
parents: [{
|
|
68
|
-
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
69
|
-
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
70
|
-
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
|
|
71
|
-
}],
|
|
72
|
-
component: function component() {
|
|
73
|
-
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
74
|
-
api: api,
|
|
75
|
-
extensionMenuItems: extensions
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
return components;
|
|
80
|
-
}
|
|
81
52
|
components.push({
|
|
82
|
-
type:
|
|
83
|
-
key:
|
|
53
|
+
type: FIRST_PARTY_EXTENSIONS_MENU_ITEM.type,
|
|
54
|
+
key: FIRST_PARTY_EXTENSIONS_MENU_ITEM.key,
|
|
84
55
|
parents: [{
|
|
85
|
-
type:
|
|
86
|
-
key:
|
|
87
|
-
rank:
|
|
56
|
+
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
57
|
+
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
58
|
+
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[FIRST_PARTY_EXTENSIONS_MENU_ITEM.key]
|
|
88
59
|
}],
|
|
89
60
|
component: function component() {
|
|
90
61
|
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
@@ -97,31 +68,13 @@ var registerFirstPartyExtensions = function registerFirstPartyExtensions(api, ex
|
|
|
97
68
|
};
|
|
98
69
|
var registerExternalExtensions = function registerExternalExtensions(api, extensions) {
|
|
99
70
|
var components = [];
|
|
100
|
-
if (fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
|
|
101
|
-
components.push({
|
|
102
|
-
type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
103
|
-
key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
|
104
|
-
parents: [{
|
|
105
|
-
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
106
|
-
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
107
|
-
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[EXTERNAL_EXTENSIONS_MENU_ITEM.key]
|
|
108
|
-
}],
|
|
109
|
-
component: function component() {
|
|
110
|
-
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
111
|
-
api: api,
|
|
112
|
-
extensionMenuItems: extensions
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
return components;
|
|
117
|
-
}
|
|
118
71
|
components.push({
|
|
119
|
-
type:
|
|
120
|
-
key:
|
|
72
|
+
type: EXTERNAL_EXTENSIONS_MENU_ITEM.type,
|
|
73
|
+
key: EXTERNAL_EXTENSIONS_MENU_ITEM.key,
|
|
121
74
|
parents: [{
|
|
122
|
-
type:
|
|
123
|
-
key:
|
|
124
|
-
rank:
|
|
75
|
+
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
76
|
+
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
77
|
+
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[EXTERNAL_EXTENSIONS_MENU_ITEM.key]
|
|
125
78
|
}],
|
|
126
79
|
component: function component() {
|
|
127
80
|
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { type SelectionExtensionPluginState } from '../types';
|
|
4
|
+
import { type ExtensionMenuItemConfiguration, type SelectionExtension, type SelectionExtensionCoords, type SelectionExtensionPluginState, type SelectionExtensionSelectionInfo } from '../types';
|
|
4
5
|
export declare const selectionExtensionPluginKey: PluginKey<SelectionExtensionPluginState>;
|
|
5
6
|
export declare const createPlugin: () => SafePlugin<SelectionExtensionPluginState | {
|
|
6
7
|
activeExtension: any;
|
|
7
8
|
docChangedAfterClick?: boolean;
|
|
8
9
|
nodePos?: number;
|
|
9
|
-
selectedNode?:
|
|
10
|
+
selectedNode?: Node;
|
|
10
11
|
startTrackChanges?: boolean;
|
|
11
12
|
} | {
|
|
12
|
-
selectedNode: any;
|
|
13
|
-
nodePos: any;
|
|
14
|
-
startTrackChanges: boolean;
|
|
15
|
-
docChangedAfterClick: boolean;
|
|
16
13
|
activeExtension?: {
|
|
17
|
-
coords:
|
|
18
|
-
extension:
|
|
19
|
-
selection:
|
|
14
|
+
coords: SelectionExtensionCoords;
|
|
15
|
+
extension: SelectionExtension | ExtensionMenuItemConfiguration;
|
|
16
|
+
selection: SelectionExtensionSelectionInfo;
|
|
20
17
|
};
|
|
18
|
+
docChangedAfterClick: boolean;
|
|
19
|
+
nodePos: any;
|
|
20
|
+
selectedNode: any;
|
|
21
|
+
startTrackChanges: boolean;
|
|
21
22
|
} | {
|
|
22
|
-
startTrackChanges: any;
|
|
23
23
|
activeExtension?: {
|
|
24
|
-
coords:
|
|
25
|
-
extension:
|
|
26
|
-
selection:
|
|
24
|
+
coords: SelectionExtensionCoords;
|
|
25
|
+
extension: SelectionExtension | ExtensionMenuItemConfiguration;
|
|
26
|
+
selection: SelectionExtensionSelectionInfo;
|
|
27
27
|
};
|
|
28
28
|
docChangedAfterClick?: boolean;
|
|
29
29
|
nodePos?: number;
|
|
30
|
-
selectedNode?:
|
|
30
|
+
selectedNode?: Node;
|
|
31
|
+
startTrackChanges: any;
|
|
31
32
|
}>;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { type SelectionExtensionPluginState } from '../types';
|
|
4
|
+
import { type ExtensionMenuItemConfiguration, type SelectionExtension, type SelectionExtensionCoords, type SelectionExtensionPluginState, type SelectionExtensionSelectionInfo } from '../types';
|
|
4
5
|
export declare const selectionExtensionPluginKey: PluginKey<SelectionExtensionPluginState>;
|
|
5
6
|
export declare const createPlugin: () => SafePlugin<SelectionExtensionPluginState | {
|
|
6
7
|
activeExtension: any;
|
|
7
8
|
docChangedAfterClick?: boolean;
|
|
8
9
|
nodePos?: number;
|
|
9
|
-
selectedNode?:
|
|
10
|
+
selectedNode?: Node;
|
|
10
11
|
startTrackChanges?: boolean;
|
|
11
12
|
} | {
|
|
12
|
-
selectedNode: any;
|
|
13
|
-
nodePos: any;
|
|
14
|
-
startTrackChanges: boolean;
|
|
15
|
-
docChangedAfterClick: boolean;
|
|
16
13
|
activeExtension?: {
|
|
17
|
-
coords:
|
|
18
|
-
extension:
|
|
19
|
-
selection:
|
|
14
|
+
coords: SelectionExtensionCoords;
|
|
15
|
+
extension: SelectionExtension | ExtensionMenuItemConfiguration;
|
|
16
|
+
selection: SelectionExtensionSelectionInfo;
|
|
20
17
|
};
|
|
18
|
+
docChangedAfterClick: boolean;
|
|
19
|
+
nodePos: any;
|
|
20
|
+
selectedNode: any;
|
|
21
|
+
startTrackChanges: boolean;
|
|
21
22
|
} | {
|
|
22
|
-
startTrackChanges: any;
|
|
23
23
|
activeExtension?: {
|
|
24
|
-
coords:
|
|
25
|
-
extension:
|
|
26
|
-
selection:
|
|
24
|
+
coords: SelectionExtensionCoords;
|
|
25
|
+
extension: SelectionExtension | ExtensionMenuItemConfiguration;
|
|
26
|
+
selection: SelectionExtensionSelectionInfo;
|
|
27
27
|
};
|
|
28
28
|
docChangedAfterClick?: boolean;
|
|
29
29
|
nodePos?: number;
|
|
30
|
-
selectedNode?:
|
|
30
|
+
selectedNode?: Node;
|
|
31
|
+
startTrackChanges: any;
|
|
31
32
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"atlaskit:src": "src/index.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-utils": "^19.
|
|
35
|
+
"@atlaskit/adf-utils": "^19.27.0",
|
|
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",
|
|
@@ -41,8 +41,8 @@
|
|
|
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",
|
|
44
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^8.
|
|
45
|
-
"@atlaskit/editor-plugin-toolbar": "^4.
|
|
44
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^8.1.0",
|
|
45
|
+
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
46
46
|
"@atlaskit/editor-plugin-user-preferences": "^5.0.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
@@ -51,10 +51,9 @@
|
|
|
51
51
|
"@atlaskit/icon": "^29.4.0",
|
|
52
52
|
"@atlaskit/lozenge": "^13.3.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
|
-
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
55
54
|
"@atlaskit/primitives": "^17.1.0",
|
|
56
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
57
|
-
"@atlaskit/tokens": "^10.
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^16.30.0",
|
|
56
|
+
"@atlaskit/tokens": "^10.1.0",
|
|
58
57
|
"@babel/runtime": "^7.0.0",
|
|
59
58
|
"lodash": "^4.17.21",
|
|
60
59
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
@@ -116,9 +115,6 @@
|
|
|
116
115
|
},
|
|
117
116
|
"platform_editor_selection_extension_improvement": {
|
|
118
117
|
"type": "boolean"
|
|
119
|
-
},
|
|
120
|
-
"platform_editor_toolbar_aifc_overflow_menu_update": {
|
|
121
|
-
"type": "boolean"
|
|
122
118
|
}
|
|
123
119
|
}
|
|
124
120
|
}
|