@atlaskit/editor-plugin-interaction 10.0.1 → 11.0.0

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,19 @@
1
1
  # @atlaskit/editor-plugin-interaction
2
2
 
3
+ ## 11.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
14
+ tsignores added for help-center local consumpton removed
15
+ - Updated dependencies
16
+
3
17
  ## 10.0.1
4
18
 
5
19
  ### Patch Changes
@@ -4,7 +4,8 @@
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-plugin-interaction",
6
6
  "rootDir": "../",
7
- "composite": true
7
+ "composite": true,
8
+ "noCheck": true
8
9
  },
9
10
  "include": [
10
11
  "../src/**/*.ts",
@@ -23,7 +24,7 @@
23
24
  ],
24
25
  "references": [
25
26
  {
26
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
27
+ "path": "../../editor-prosemirror/afm-cc/tsconfig.json"
27
28
  },
28
29
  {
29
30
  "path": "../../editor-common/afm-cc/tsconfig.json"
@@ -4,7 +4,8 @@
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../jira/tsDist/@atlaskit__editor-plugin-interaction/app",
6
6
  "rootDir": "../",
7
- "composite": true
7
+ "composite": true,
8
+ "noCheck": true
8
9
  },
9
10
  "include": [
10
11
  "../src/**/*.ts",
@@ -23,7 +24,7 @@
23
24
  ],
24
25
  "references": [
25
26
  {
26
- "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
27
+ "path": "../../editor-prosemirror/afm-jira/tsconfig.json"
27
28
  },
28
29
  {
29
30
  "path": "../../editor-common/afm-jira/tsconfig.json"
@@ -4,7 +4,8 @@
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../tsDist/@atlaskit__editor-plugin-interaction/app",
6
6
  "rootDir": "../",
7
- "composite": true
7
+ "composite": true,
8
+ "noCheck": true
8
9
  },
9
10
  "include": [
10
11
  "../src/**/*.ts",
@@ -23,7 +24,7 @@
23
24
  ],
24
25
  "references": [
25
26
  {
26
- "path": "../../../platform/feature-flags/afm-products/tsconfig.json"
27
+ "path": "../../editor-prosemirror/afm-products/tsconfig.json"
27
28
  },
28
29
  {
29
30
  "path": "../../editor-common/afm-products/tsconfig.json"
@@ -22,13 +22,11 @@ var createPlugin = exports.createPlugin = function createPlugin() {
22
22
  return new _safePlugin.SafePlugin({
23
23
  key: key,
24
24
  state: {
25
- // @ts-ignore - Workaround for help-center local consumption
26
25
  init: function init() {
27
26
  return {
28
27
  hasHadInteraction: false
29
28
  };
30
29
  },
31
- // @ts-ignore - Workaround for help-center local consumption
32
30
  apply: function apply(tr, oldPluginState) {
33
31
  var meta = tr.getMeta(key);
34
32
  if ((0, _typeof2.default)(meta) === 'object') {
@@ -42,20 +40,14 @@ var createPlugin = exports.createPlugin = function createPlugin() {
42
40
  }
43
41
  },
44
42
  props: {
45
- // @ts-ignore - Workaround for help-center local consumption
46
-
47
43
  handleDOMEvents: {
48
44
  // Handle all pointer click events (includes drag inside editor)
49
- // @ts-ignore - Workaround for help-center local consumption
50
-
51
45
  mousedown: handleInteraction,
52
46
  // Handle keyboard events. Must be keyup to handle tabbing into editor (keyup occurs
53
47
  // on the "next focused" element)
54
48
  keyup: handleInteraction,
55
49
  // Handle drag and drop _into_ the editor from outside. Eg image DnD
56
50
  drop: handleInteraction,
57
- // @ts-ignore - Workaround for help-center local consumption
58
-
59
51
  focus: handleInteraction
60
52
  }
61
53
  }
@@ -13,15 +13,11 @@ const handleInteraction = view => {
13
13
  export const createPlugin = () => new SafePlugin({
14
14
  key,
15
15
  state: {
16
- // @ts-ignore - Workaround for help-center local consumption
17
-
18
16
  init() {
19
17
  return {
20
18
  hasHadInteraction: false
21
19
  };
22
20
  },
23
- // @ts-ignore - Workaround for help-center local consumption
24
-
25
21
  apply(tr, oldPluginState) {
26
22
  const meta = tr.getMeta(key);
27
23
  if (typeof meta === 'object') {
@@ -35,20 +31,14 @@ export const createPlugin = () => new SafePlugin({
35
31
  }
36
32
  },
37
33
  props: {
38
- // @ts-ignore - Workaround for help-center local consumption
39
-
40
34
  handleDOMEvents: {
41
35
  // Handle all pointer click events (includes drag inside editor)
42
- // @ts-ignore - Workaround for help-center local consumption
43
-
44
36
  mousedown: handleInteraction,
45
37
  // Handle keyboard events. Must be keyup to handle tabbing into editor (keyup occurs
46
38
  // on the "next focused" element)
47
39
  keyup: handleInteraction,
48
40
  // Handle drag and drop _into_ the editor from outside. Eg image DnD
49
41
  drop: handleInteraction,
50
- // @ts-ignore - Workaround for help-center local consumption
51
-
52
42
  focus: handleInteraction
53
43
  }
54
44
  }
@@ -15,13 +15,11 @@ export var createPlugin = function createPlugin() {
15
15
  return new SafePlugin({
16
16
  key: key,
17
17
  state: {
18
- // @ts-ignore - Workaround for help-center local consumption
19
18
  init: function init() {
20
19
  return {
21
20
  hasHadInteraction: false
22
21
  };
23
22
  },
24
- // @ts-ignore - Workaround for help-center local consumption
25
23
  apply: function apply(tr, oldPluginState) {
26
24
  var meta = tr.getMeta(key);
27
25
  if (_typeof(meta) === 'object') {
@@ -35,20 +33,14 @@ export var createPlugin = function createPlugin() {
35
33
  }
36
34
  },
37
35
  props: {
38
- // @ts-ignore - Workaround for help-center local consumption
39
-
40
36
  handleDOMEvents: {
41
37
  // Handle all pointer click events (includes drag inside editor)
42
- // @ts-ignore - Workaround for help-center local consumption
43
-
44
38
  mousedown: handleInteraction,
45
39
  // Handle keyboard events. Must be keyup to handle tabbing into editor (keyup occurs
46
40
  // on the "next focused" element)
47
41
  keyup: handleInteraction,
48
42
  // Handle drag and drop _into_ the editor from outside. Eg image DnD
49
43
  drop: handleInteraction,
50
- // @ts-ignore - Workaround for help-center local consumption
51
-
52
44
  focus: handleInteraction
53
45
  }
54
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-interaction",
3
- "version": "10.0.1",
3
+ "version": "11.0.0",
4
4
  "description": "Interaction plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -19,13 +19,12 @@
19
19
  "sideEffects": false,
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "dependencies": {
22
- "@atlaskit/editor-prosemirror": "7.0.0",
23
- "@atlaskit/platform-feature-flags": "^1.1.0",
22
+ "@atlaskit/editor-prosemirror": "^7.2.0",
24
23
  "@babel/runtime": "^7.0.0"
25
24
  },
26
25
  "peerDependencies": {
27
- "@atlaskit/editor-common": "^110.34.0",
28
- "@atlaskit/tokens": "^8.3.0",
26
+ "@atlaskit/editor-common": "^110.46.0",
27
+ "@atlaskit/tokens": "^9.0.0",
29
28
  "react": "^18.2.0",
30
29
  "react-dom": "^18.2.0"
31
30
  },