@atlaskit/editor-plugin-selection-extension 11.1.2 → 11.1.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
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.registerBlockMenuItems = registerBlockMenuItems;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
11
|
var _SelectionExtensionMenuItems = require("../menu/SelectionExtensionMenuItems");
|
|
11
12
|
var _SelectionExtensionComponentContext = require("../SelectionExtensionComponentContext");
|
|
12
13
|
function registerBlockMenuItems(_ref) {
|
|
@@ -34,8 +35,8 @@ function registerBlockMenuItems(_ref) {
|
|
|
34
35
|
key: "selection-extension-".concat(key),
|
|
35
36
|
parent: {
|
|
36
37
|
type: 'block-menu-section',
|
|
37
|
-
key: _blockMenu.BLOCK_ACTIONS_MENU_SECTION.key,
|
|
38
|
-
rank: _blockMenu.BLOCK_ACTIONS_MENU_SECTION_RANK[_blockMenu.BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key]
|
|
38
|
+
key: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_divider_patch') ? _blockMenu.TRANSFORM_MENU_SECTION.key : _blockMenu.BLOCK_ACTIONS_MENU_SECTION.key,
|
|
39
|
+
rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_divider_patch') ? _blockMenu.TRANSFORM_MENU_SECTION_RANK[_blockMenu.BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key] : _blockMenu.BLOCK_ACTIONS_MENU_SECTION_RANK[_blockMenu.BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key]
|
|
39
40
|
},
|
|
40
41
|
component: function component() {
|
|
41
42
|
var editorView = editorViewRef === null || editorViewRef === void 0 ? void 0 : editorViewRef.current;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM,
|
|
2
|
+
import { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_CREATE_MENU_SECTION_RANK, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
import { SelectionExtensionMenuItems } from '../menu/SelectionExtensionMenuItems';
|
|
4
5
|
import { SelectionExtensionComponentContextProvider } from '../SelectionExtensionComponentContext';
|
|
5
6
|
export function registerBlockMenuItems({
|
|
@@ -29,8 +30,8 @@ export function registerBlockMenuItems({
|
|
|
29
30
|
key: `selection-extension-${key}`,
|
|
30
31
|
parent: {
|
|
31
32
|
type: 'block-menu-section',
|
|
32
|
-
key: BLOCK_ACTIONS_MENU_SECTION.key,
|
|
33
|
-
rank: BLOCK_ACTIONS_MENU_SECTION_RANK[BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key]
|
|
33
|
+
key: fg('platform_editor_block_menu_divider_patch') ? TRANSFORM_MENU_SECTION.key : BLOCK_ACTIONS_MENU_SECTION.key,
|
|
34
|
+
rank: fg('platform_editor_block_menu_divider_patch') ? TRANSFORM_MENU_SECTION_RANK[BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key] : BLOCK_ACTIONS_MENU_SECTION_RANK[BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key]
|
|
34
35
|
},
|
|
35
36
|
component: () => {
|
|
36
37
|
const editorView = editorViewRef === null || editorViewRef === void 0 ? void 0 : editorViewRef.current;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM,
|
|
2
|
+
import { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_CREATE_MENU_SECTION_RANK, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
import { SelectionExtensionMenuItems } from '../menu/SelectionExtensionMenuItems';
|
|
4
5
|
import { SelectionExtensionComponentContextProvider } from '../SelectionExtensionComponentContext';
|
|
5
6
|
export function registerBlockMenuItems(_ref) {
|
|
@@ -27,8 +28,8 @@ export function registerBlockMenuItems(_ref) {
|
|
|
27
28
|
key: "selection-extension-".concat(key),
|
|
28
29
|
parent: {
|
|
29
30
|
type: 'block-menu-section',
|
|
30
|
-
key: BLOCK_ACTIONS_MENU_SECTION.key,
|
|
31
|
-
rank: BLOCK_ACTIONS_MENU_SECTION_RANK[BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key]
|
|
31
|
+
key: fg('platform_editor_block_menu_divider_patch') ? TRANSFORM_MENU_SECTION.key : BLOCK_ACTIONS_MENU_SECTION.key,
|
|
32
|
+
rank: fg('platform_editor_block_menu_divider_patch') ? TRANSFORM_MENU_SECTION_RANK[BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key] : BLOCK_ACTIONS_MENU_SECTION_RANK[BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM.key]
|
|
32
33
|
},
|
|
33
34
|
component: function component() {
|
|
34
35
|
var editorView = editorViewRef === null || editorViewRef === void 0 ? void 0 : editorViewRef.current;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.4",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/lozenge": "^13.5.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": "^43.0.0",
|
|
56
56
|
"@atlaskit/tokens": "^11.1.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": "^112.
|
|
63
|
+
"@atlaskit/editor-common": "^112.7.0",
|
|
64
64
|
"react": "^18.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
@@ -127,6 +127,9 @@
|
|
|
127
127
|
},
|
|
128
128
|
"confluence_fronend_labels_categorization_migration": {
|
|
129
129
|
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"platform_editor_block_menu_divider_patch": {
|
|
132
|
+
"type": "boolean"
|
|
130
133
|
}
|
|
131
134
|
}
|
|
132
135
|
}
|