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