@atlaskit/editor-plugin-selection-toolbar 1.1.4 → 1.1.5

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,13 @@
1
1
  # @atlaskit/editor-plugin-selection-toolbar
2
2
 
3
+ ## 1.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#99563](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99563)
8
+ [`3d4ddbef36b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3d4ddbef36b8) -
9
+ [ux] [EDF-629] Revert floating toolbar click handler changes
10
+
3
11
  ## 1.1.4
4
12
 
5
13
  ### Patch Changes
@@ -57,19 +57,9 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
57
57
  }));
58
58
  }
59
59
  });
60
- var unbindMousedown = (0, _bindEventListener.bind)(_view.root, {
61
- type: 'mousedown',
62
- listener: function listener(event) {
63
- // prevent default to avoid blur event on floating toolbar
64
- if (event.target instanceof Element && event.target.closest('[data-testid="editor-floating-toolbar"]')) {
65
- event.preventDefault();
66
- }
67
- }
68
- });
69
60
  return {
70
61
  destroy: function destroy() {
71
62
  unbind();
72
- unbindMousedown();
73
63
  }
74
64
  };
75
65
  },
@@ -49,19 +49,9 @@ export const selectionToolbarPlugin = options => {
49
49
  }));
50
50
  }
51
51
  });
52
- const unbindMousedown = bind(view.root, {
53
- type: 'mousedown',
54
- listener: event => {
55
- // prevent default to avoid blur event on floating toolbar
56
- if (event.target instanceof Element && event.target.closest('[data-testid="editor-floating-toolbar"]')) {
57
- event.preventDefault();
58
- }
59
- }
60
- });
61
52
  return {
62
53
  destroy() {
63
54
  unbind();
64
- unbindMousedown();
65
55
  }
66
56
  };
67
57
  },
@@ -50,19 +50,9 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(options) {
50
50
  }));
51
51
  }
52
52
  });
53
- var unbindMousedown = bind(_view.root, {
54
- type: 'mousedown',
55
- listener: function listener(event) {
56
- // prevent default to avoid blur event on floating toolbar
57
- if (event.target instanceof Element && event.target.closest('[data-testid="editor-floating-toolbar"]')) {
58
- event.preventDefault();
59
- }
60
- }
61
- });
62
53
  return {
63
54
  destroy: function destroy() {
64
55
  unbind();
65
- unbindMousedown();
66
56
  }
67
57
  };
68
58
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^79.1.0",
36
+ "@atlaskit/editor-common": "^79.3.0",
37
37
  "@atlaskit/editor-plugin-editor-viewmode": "^1.1.0",
38
38
  "@atlaskit/editor-prosemirror": "4.0.1",
39
39
  "@babel/runtime": "^7.0.0",