@atlaskit/editor-plugin-selection-toolbar 0.1.0 → 0.1.1

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 +1,7 @@
1
1
  # @atlaskit/editor-plugin-selection-toolbar
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#42201](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42201) [`36241a43553`](https://bitbucket.org/atlassian/atlassian-frontend/commits/36241a43553) - ED-20653 Removes the selection toolbar when the view loses focus.
@@ -65,6 +65,12 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
65
65
  selectionStable: false
66
66
  }));
67
67
  return false;
68
+ },
69
+ blur: function blur(view) {
70
+ view.dispatch(view.state.tr.setMeta(_pluginKey.selectionToolbarPluginKey, {
71
+ selectionStable: false
72
+ }));
73
+ return false;
68
74
  }
69
75
  }
70
76
  }
@@ -57,6 +57,12 @@ export const selectionToolbarPlugin = options => {
57
57
  selectionStable: false
58
58
  }));
59
59
  return false;
60
+ },
61
+ blur: view => {
62
+ view.dispatch(view.state.tr.setMeta(selectionToolbarPluginKey, {
63
+ selectionStable: false
64
+ }));
65
+ return false;
60
66
  }
61
67
  }
62
68
  }
@@ -58,6 +58,12 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(options) {
58
58
  selectionStable: false
59
59
  }));
60
60
  return false;
61
+ },
62
+ blur: function blur(view) {
63
+ view.dispatch(view.state.tr.setMeta(selectionToolbarPluginKey, {
64
+ selectionStable: false
65
+ }));
66
+ return false;
61
67
  }
62
68
  }
63
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  ".": "./src/index.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@atlaskit/editor-common": "^76.11.4",
38
+ "@atlaskit/editor-common": "^76.15.0",
39
39
  "@atlaskit/editor-prosemirror": "1.1.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "bind-event-listener": "^2.1.1"