@atlaskit/editor-plugin-block-menu 5.0.5 → 5.0.7

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
+ ## 5.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9aaf4b9af9258`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9aaf4b9af9258) -
14
+ Clean up `platform_editor_block_menu_selection_fix` feature gate
15
+
3
16
  ## 5.0.5
4
17
 
5
18
  ### Patch Changes
@@ -241,10 +241,7 @@ var formatNode = exports.formatNode = function formatNode(api) {
241
241
  }
242
242
  })(_newTr2);
243
243
  }
244
- if (_newTr2 && (0, _platformFeatureFlags.fg)('platform_editor_block_menu_selection_fix')) {
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
- if (newTr && fg('platform_editor_block_menu_selection_fix')) {
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
- if (_newTr2 && fg('platform_editor_block_menu_selection_fix')) {
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.5",
3
+ "version": "5.0.7",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,20 +36,20 @@
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.8.0",
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
- "@atlaskit/icon": "^28.5.0",
42
+ "@atlaskit/icon": "^29.0.0",
43
43
  "@atlaskit/icon-lab": "^5.12.0",
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.33.0",
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.25.0",
52
+ "@atlaskit/editor-common": "^110.27.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
  },