@atlaskit/editor-plugin-floating-toolbar 2.0.1 → 2.0.2

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-floating-toolbar
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#118581](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/118581)
8
+ [`8e3b48ccfe22f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e3b48ccfe22f) -
9
+ Persist block menu while mouse moving
10
+ - Updated dependencies
11
+
3
12
  ## 2.0.1
4
13
 
5
14
  ### Patch Changes
@@ -238,6 +238,9 @@ function ContentComponent(_ref6) {
238
238
  if (blockControlsState !== null && blockControlsState !== void 0 && blockControlsState.isDragging) {
239
239
  return null;
240
240
  }
241
+ if (blockControlsState !== null && blockControlsState !== void 0 && blockControlsState.isMenuOpen && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
242
+ return null;
243
+ }
241
244
  var config = configWithNodeInfo.config,
242
245
  node = configWithNodeInfo.node;
243
246
  var items = config.items;
@@ -222,6 +222,9 @@ export function ContentComponent({
222
222
  if (blockControlsState !== null && blockControlsState !== void 0 && blockControlsState.isDragging) {
223
223
  return null;
224
224
  }
225
+ if (blockControlsState !== null && blockControlsState !== void 0 && blockControlsState.isMenuOpen && editorExperiment('platform_editor_controls', 'variant1')) {
226
+ return null;
227
+ }
225
228
  const {
226
229
  config,
227
230
  node
@@ -226,6 +226,9 @@ export function ContentComponent(_ref6) {
226
226
  if (blockControlsState !== null && blockControlsState !== void 0 && blockControlsState.isDragging) {
227
227
  return null;
228
228
  }
229
+ if (blockControlsState !== null && blockControlsState !== void 0 && blockControlsState.isMenuOpen && editorExperiment('platform_editor_controls', 'variant1')) {
230
+ return null;
231
+ }
229
232
  var config = configWithNodeInfo.config,
230
233
  node = configWithNodeInfo.node;
231
234
  var items = config.items;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,7 +26,7 @@
26
26
  "@atlaskit/adf-utils": "^19.18.0",
27
27
  "@atlaskit/button": "^21.1.0",
28
28
  "@atlaskit/checkbox": "^16.0.0",
29
- "@atlaskit/editor-common": "^100.1.0",
29
+ "@atlaskit/editor-common": "^100.2.0",
30
30
  "@atlaskit/editor-palette": "2.0.0",
31
31
  "@atlaskit/editor-plugin-block-controls": "^3.1.0",
32
32
  "@atlaskit/editor-plugin-context-panel": "^3.0.0",