@atlaskit/editor-plugin-block-menu 7.0.29 → 7.0.30

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,14 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 7.0.30
4
+
5
+ ### Patch Changes
6
+
7
+ - [`91bf188b969b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/91bf188b969b7) -
8
+ Fix empty row remaining selected after deleting a block via the Block Menu by calling
9
+ stopPreservingSelection before closing the menu
10
+ - Updated dependencies
11
+
3
12
  ## 7.0.29
4
13
 
5
14
  ### Patch Changes
@@ -65,6 +65,12 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
65
65
  })({
66
66
  tr: tr
67
67
  });
68
+ if (preservedSelection && (0, _platformFeatureFlags.fg)('platform_editor_block_menu_jira_patch_1')) {
69
+ var _api$blockControls3;
70
+ api === null || api === void 0 || (_api$blockControls3 = api.blockControls) === null || _api$blockControls3 === void 0 || (_api$blockControls3 = _api$blockControls3.commands) === null || _api$blockControls3 === void 0 || _api$blockControls3.stopPreservingSelection()({
71
+ tr: tr
72
+ });
73
+ }
68
74
  return tr;
69
75
  });
70
76
  api === null || api === void 0 || api.core.actions.focus();
@@ -59,6 +59,12 @@ const DeleteDropdownItemContent = ({
59
59
  })({
60
60
  tr
61
61
  });
62
+ if (preservedSelection && fg('platform_editor_block_menu_jira_patch_1')) {
63
+ var _api$blockControls3, _api$blockControls3$c;
64
+ api === null || api === void 0 ? void 0 : (_api$blockControls3 = api.blockControls) === null || _api$blockControls3 === void 0 ? void 0 : (_api$blockControls3$c = _api$blockControls3.commands) === null || _api$blockControls3$c === void 0 ? void 0 : _api$blockControls3$c.stopPreservingSelection()({
65
+ tr
66
+ });
67
+ }
62
68
  return tr;
63
69
  });
64
70
  api === null || api === void 0 ? void 0 : api.core.actions.focus();
@@ -56,6 +56,12 @@ var DeleteDropdownItemContent = function DeleteDropdownItemContent(_ref) {
56
56
  })({
57
57
  tr: tr
58
58
  });
59
+ if (preservedSelection && fg('platform_editor_block_menu_jira_patch_1')) {
60
+ var _api$blockControls3;
61
+ api === null || api === void 0 || (_api$blockControls3 = api.blockControls) === null || _api$blockControls3 === void 0 || (_api$blockControls3 = _api$blockControls3.commands) === null || _api$blockControls3 === void 0 || _api$blockControls3.stopPreservingSelection()({
62
+ tr: tr
63
+ });
64
+ }
59
65
  return tr;
60
66
  });
61
67
  api === null || api === void 0 || api.core.actions.focus();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "7.0.29",
3
+ "version": "7.0.30",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^18.1.0",
46
46
  "@atlaskit/prosemirror-history": "^0.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^56.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^57.0.0",
48
48
  "@atlaskit/tokens": "^12.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": "^112.18.0",
53
+ "@atlaskit/editor-common": "^112.19.0",
54
54
  "react": "^18.2.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"
56
56
  },
@@ -103,6 +103,9 @@
103
103
  "platform_editor_block_menu_v2_patch_3": {
104
104
  "type": "boolean"
105
105
  },
106
+ "platform_editor_block_menu_jira_patch_1": {
107
+ "type": "boolean"
108
+ },
106
109
  "platform_editor_block_menu_divider_patch": {
107
110
  "type": "boolean"
108
111
  }