@atlaskit/editor-plugin-interaction 1.0.1 → 1.0.3

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,20 @@
1
1
  # @atlaskit/editor-plugin-interaction
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#140969](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140969)
14
+ [`b4ac22e73d43c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b4ac22e73d43c) -
15
+ [ux] [ED-27253] hide selection states until editor has been interacted with
16
+ - Updated dependencies
17
+
3
18
  ## 1.0.1
4
19
 
5
20
  ### Patch Changes
@@ -41,8 +41,12 @@ var createPlugin = exports.createPlugin = function createPlugin() {
41
41
  },
42
42
  props: {
43
43
  handleDOMEvents: {
44
+ // Handle all pointer click events (includes drag inside editor)
44
45
  mousedown: handleInteraction,
46
+ // Handle keyboard events. Must be keyup to handle tabbing into editor (keyup occurs
47
+ // on the "next focused" element)
45
48
  keyup: handleInteraction,
49
+ // Handle drag and drop _into_ the editor from outside. Eg image DnD
46
50
  drop: handleInteraction
47
51
  }
48
52
  }
@@ -32,8 +32,12 @@ export const createPlugin = () => new SafePlugin({
32
32
  },
33
33
  props: {
34
34
  handleDOMEvents: {
35
+ // Handle all pointer click events (includes drag inside editor)
35
36
  mousedown: handleInteraction,
37
+ // Handle keyboard events. Must be keyup to handle tabbing into editor (keyup occurs
38
+ // on the "next focused" element)
36
39
  keyup: handleInteraction,
40
+ // Handle drag and drop _into_ the editor from outside. Eg image DnD
37
41
  drop: handleInteraction
38
42
  }
39
43
  }
@@ -34,8 +34,12 @@ export var createPlugin = function createPlugin() {
34
34
  },
35
35
  props: {
36
36
  handleDOMEvents: {
37
+ // Handle all pointer click events (includes drag inside editor)
37
38
  mousedown: handleInteraction,
39
+ // Handle keyboard events. Must be keyup to handle tabbing into editor (keyup occurs
40
+ // on the "next focused" element)
38
41
  keyup: handleInteraction,
42
+ // Handle drag and drop _into_ the editor from outside. Eg image DnD
39
43
  drop: handleInteraction
40
44
  }
41
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-interaction",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Interaction plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,7 +23,7 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/editor-common": "^103.9.0",
26
+ "@atlaskit/editor-common": "^104.0.0",
27
27
  "@atlaskit/editor-prosemirror": "7.0.0",
28
28
  "@babel/runtime": "^7.0.0"
29
29
  },