@atlaskit/editor-plugin-block-menu 9.2.6 → 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,18 @@
|
|
|
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
|
+
|
|
10
|
+
## 9.2.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 9.2.6
|
|
4
17
|
|
|
5
18
|
### 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({
|
|
@@ -5,37 +5,39 @@
|
|
|
5
5
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
|
|
8
|
-
import type {
|
|
8
|
+
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
9
9
|
|
|
10
10
|
import packageJson from './package.json';
|
|
11
11
|
|
|
12
12
|
const packagePath = path.resolve(__dirname);
|
|
13
13
|
|
|
14
|
-
const documentation:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
usageGuidelines: [],
|
|
27
|
-
contentGuidelines: [],
|
|
28
|
-
accessibilityGuidelines: [],
|
|
29
|
-
keywords: ['editor', 'editor-plugin-block-menu', 'atlaskit'],
|
|
30
|
-
categories: ['editor'],
|
|
31
|
-
examples: [
|
|
32
|
-
{
|
|
33
|
-
name: 'Basic',
|
|
34
|
-
description: 'Block menu plugin usage.',
|
|
35
|
-
source: path.resolve(packagePath, './examples/basic.tsx'),
|
|
14
|
+
const documentation: StructuredContentSource = {
|
|
15
|
+
components: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Editor Plugin Block Menu',
|
|
18
|
+
description: 'BlockMenu plugin for @atlaskit/editor-core',
|
|
19
|
+
status: 'general-availability',
|
|
20
|
+
import: {
|
|
21
|
+
name: 'blockMenuPlugin',
|
|
22
|
+
package: '@atlaskit/editor-plugin-block-menu',
|
|
23
|
+
type: 'named',
|
|
24
|
+
packagePath,
|
|
25
|
+
packageJson,
|
|
36
26
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
]
|
|
27
|
+
usageGuidelines: [],
|
|
28
|
+
contentGuidelines: [],
|
|
29
|
+
accessibilityGuidelines: [],
|
|
30
|
+
keywords: ['editor', 'editor-plugin-block-menu', 'atlaskit'],
|
|
31
|
+
categories: ['editor'],
|
|
32
|
+
examples: [
|
|
33
|
+
{
|
|
34
|
+
name: 'Basic',
|
|
35
|
+
description: 'Block menu plugin usage.',
|
|
36
|
+
source: path.resolve(packagePath, './examples/basic.tsx'),
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
};
|
|
40
42
|
|
|
41
43
|
export default documentation;
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/browser-apis": "^0.0.2",
|
|
32
32
|
"@atlaskit/css": "^0.19.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
34
|
-
"@atlaskit/editor-plugin-block-controls": "^11.
|
|
34
|
+
"@atlaskit/editor-plugin-block-controls": "^11.5.0",
|
|
35
35
|
"@atlaskit/editor-plugin-decorations": "^10.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-selection": "^10.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-user-intent": "^8.2.0",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"@atlaskit/editor-tables": "^2.10.0",
|
|
41
41
|
"@atlaskit/editor-toolbar": "^1.7.0",
|
|
42
42
|
"@atlaskit/flag": "^17.12.0",
|
|
43
|
-
"@atlaskit/icon": "^35.
|
|
43
|
+
"@atlaskit/icon": "^35.1.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/primitives": "^19.0.0",
|
|
46
46
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^83.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^13.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
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
|
},
|
|
@@ -109,6 +112,7 @@
|
|
|
109
112
|
},
|
|
110
113
|
"devDependencies": {
|
|
111
114
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
115
|
+
"react": "^18.2.0",
|
|
112
116
|
"react-intl": "^6.6.2"
|
|
113
117
|
}
|
|
114
118
|
}
|