@atlaskit/editor-plugin-block-menu 9.2.7 → 9.2.8
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,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 9.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`30afd84934977`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/30afd84934977) -
|
|
8
|
+
[ux] EDITOR-7312 Close block menu after transform
|
|
9
|
+
|
|
3
10
|
## 9.2.7
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -12,6 +12,7 @@ var _selection = require("@atlaskit/editor-common/selection");
|
|
|
12
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
13
13
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
14
14
|
var _editorTables = require("@atlaskit/editor-tables");
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _isNestedNode = require("../ui/utils/isNestedNode");
|
|
16
17
|
var _transform2 = require("./transform-node-utils/transform");
|
|
17
18
|
var _utils = require("./transform-node-utils/utils");
|
|
@@ -99,6 +100,14 @@ var transformNode = exports.transformNode = function transformNode(api) {
|
|
|
99
100
|
});
|
|
100
101
|
}
|
|
101
102
|
}
|
|
103
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_block_menu_jira_patch_3')) {
|
|
104
|
+
var _api$blockControls4;
|
|
105
|
+
api === null || api === void 0 || (_api$blockControls4 = api.blockControls) === null || _api$blockControls4 === void 0 || _api$blockControls4.commands.toggleBlockMenu({
|
|
106
|
+
closeMenu: true
|
|
107
|
+
})({
|
|
108
|
+
tr: tr
|
|
109
|
+
});
|
|
110
|
+
}
|
|
102
111
|
(0, _performanceMeasures.stopMeasure)(measureId, function (duration, startTime) {
|
|
103
112
|
var _api$analytics;
|
|
104
113
|
api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.attachAnalyticsEvent({
|
|
@@ -6,6 +6,7 @@ import { expandSelectionToBlockRange, getSourceNodesFromSelectionRange } from '@
|
|
|
6
6
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { Mapping, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
|
8
8
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { isNestedNode } from '../ui/utils/isNestedNode';
|
|
10
11
|
import { convertNodesToTargetType } from './transform-node-utils/transform';
|
|
11
12
|
import { isListNode } from './transform-node-utils/utils';
|
|
@@ -93,6 +94,14 @@ export const transformNode = api => (targetType, metadata) => ({
|
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
}
|
|
97
|
+
if (fg('platform_editor_block_menu_jira_patch_3')) {
|
|
98
|
+
var _api$blockControls4;
|
|
99
|
+
api === null || api === void 0 ? void 0 : (_api$blockControls4 = api.blockControls) === null || _api$blockControls4 === void 0 ? void 0 : _api$blockControls4.commands.toggleBlockMenu({
|
|
100
|
+
closeMenu: true
|
|
101
|
+
})({
|
|
102
|
+
tr
|
|
103
|
+
});
|
|
104
|
+
}
|
|
96
105
|
stopMeasure(measureId, (duration, startTime) => {
|
|
97
106
|
var _api$analytics, _api$analytics$action;
|
|
98
107
|
api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : (_api$analytics$action = _api$analytics.actions) === null || _api$analytics$action === void 0 ? void 0 : _api$analytics$action.attachAnalyticsEvent({
|
|
@@ -6,6 +6,7 @@ import { expandSelectionToBlockRange, getSourceNodesFromSelectionRange } from '@
|
|
|
6
6
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { Mapping, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
|
8
8
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { isNestedNode } from '../ui/utils/isNestedNode';
|
|
10
11
|
import { convertNodesToTargetType } from './transform-node-utils/transform';
|
|
11
12
|
import { isListNode } from './transform-node-utils/utils';
|
|
@@ -93,6 +94,14 @@ export var transformNode = function transformNode(api) {
|
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
}
|
|
97
|
+
if (fg('platform_editor_block_menu_jira_patch_3')) {
|
|
98
|
+
var _api$blockControls4;
|
|
99
|
+
api === null || api === void 0 || (_api$blockControls4 = api.blockControls) === null || _api$blockControls4 === void 0 || _api$blockControls4.commands.toggleBlockMenu({
|
|
100
|
+
closeMenu: true
|
|
101
|
+
})({
|
|
102
|
+
tr: tr
|
|
103
|
+
});
|
|
104
|
+
}
|
|
96
105
|
stopMeasure(measureId, function (duration, startTime) {
|
|
97
106
|
var _api$analytics;
|
|
98
107
|
api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.attachAnalyticsEvent({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.8",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"bind-event-listener": "^3.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^114.
|
|
53
|
+
"@atlaskit/editor-common": "^114.47.0",
|
|
54
54
|
"react": "^18.2.0",
|
|
55
55
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
56
56
|
},
|
|
@@ -97,6 +97,9 @@
|
|
|
97
97
|
"platform_editor_block_menu_jira_patch_1": {
|
|
98
98
|
"type": "boolean"
|
|
99
99
|
},
|
|
100
|
+
"platform_editor_block_menu_jira_patch_3": {
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
},
|
|
100
103
|
"cc_blocks_changeboarding": {
|
|
101
104
|
"type": "boolean"
|
|
102
105
|
},
|