@atlaskit/editor-plugin-block-menu 5.0.5 → 5.0.6
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
|
+
## 5.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9aaf4b9af9258`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9aaf4b9af9258) -
|
|
8
|
+
Clean up `platform_editor_block_menu_selection_fix` feature gate
|
|
9
|
+
|
|
3
10
|
## 5.0.5
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -241,10 +241,7 @@ var formatNode = exports.formatNode = function formatNode(api) {
|
|
|
241
241
|
}
|
|
242
242
|
})(_newTr2);
|
|
243
243
|
}
|
|
244
|
-
|
|
245
|
-
return (0, _selection.setSelectionAfterTransform)(_newTr2, nodePos, targetType);
|
|
246
|
-
}
|
|
247
|
-
return _newTr2;
|
|
244
|
+
return _newTr2 ? (0, _selection.setSelectionAfterTransform)(_newTr2, nodePos, targetType) : _newTr2;
|
|
248
245
|
} catch (error) {
|
|
249
246
|
var _nodeToFormat$attrs2, _api$analytics4;
|
|
250
247
|
(0, _monitoring.logException)(error, {
|
|
@@ -246,10 +246,7 @@ export const formatNode = api => (targetType, analyticsAttrs) => {
|
|
|
246
246
|
}
|
|
247
247
|
})(newTr);
|
|
248
248
|
}
|
|
249
|
-
|
|
250
|
-
return setSelectionAfterTransform(newTr, nodePos, targetType);
|
|
251
|
-
}
|
|
252
|
-
return newTr;
|
|
249
|
+
return newTr ? setSelectionAfterTransform(newTr, nodePos, targetType) : newTr;
|
|
253
250
|
} catch (error) {
|
|
254
251
|
var _nodeToFormat$attrs2, _api$analytics4, _api$analytics4$actio;
|
|
255
252
|
logException(error, {
|
|
@@ -236,10 +236,7 @@ export var formatNode = function formatNode(api) {
|
|
|
236
236
|
}
|
|
237
237
|
})(_newTr2);
|
|
238
238
|
}
|
|
239
|
-
|
|
240
|
-
return setSelectionAfterTransform(_newTr2, nodePos, targetType);
|
|
241
|
-
}
|
|
242
|
-
return _newTr2;
|
|
239
|
+
return _newTr2 ? setSelectionAfterTransform(_newTr2, nodePos, targetType) : _newTr2;
|
|
243
240
|
} catch (error) {
|
|
244
241
|
var _nodeToFormat$attrs2, _api$analytics4;
|
|
245
242
|
logException(error, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
39
|
+
"@atlaskit/editor-shared-styles": "^3.9.0",
|
|
40
40
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
41
41
|
"@atlaskit/editor-toolbar": "^0.17.0",
|
|
42
42
|
"@atlaskit/icon": "^28.5.0",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
46
46
|
"@atlaskit/primitives": "^16.1.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^13.35.0",
|
|
48
48
|
"@atlaskit/tokens": "^8.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@atlaskit/editor-common": "^110.
|
|
52
|
+
"@atlaskit/editor-common": "^110.26.0",
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
55
55
|
},
|
|
@@ -96,9 +96,6 @@
|
|
|
96
96
|
"platform_editor_block_menu_transform_nested_node": {
|
|
97
97
|
"type": "boolean"
|
|
98
98
|
},
|
|
99
|
-
"platform_editor_block_menu_selection_fix": {
|
|
100
|
-
"type": "boolean"
|
|
101
|
-
},
|
|
102
99
|
"platform_editor_block_menu_patch_1": {
|
|
103
100
|
"type": "boolean"
|
|
104
101
|
},
|