@atlaskit/editor-plugin-tasks-and-decisions 9.0.8 → 9.0.9
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-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 9.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`26917199e153a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/26917199e153a) -
|
|
8
|
+
ED-29473 Add inputMethod attribute for block menu opened and switch inputMethod and triggeredFrom
|
|
9
|
+
attributes for element converted event
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 9.0.8
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -24,8 +24,8 @@ var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlo
|
|
|
24
24
|
}, [selection]);
|
|
25
25
|
var onClick = function onClick(event) {
|
|
26
26
|
var _api$blockMenu;
|
|
27
|
-
var
|
|
28
|
-
var
|
|
27
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
28
|
+
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
29
29
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode('taskList', {
|
|
30
30
|
inputMethod: inputMethod,
|
|
31
31
|
triggeredFrom: triggeredFrom
|
|
@@ -17,8 +17,8 @@ export const TaskListBlockMenuItem = ({
|
|
|
17
17
|
}, [selection]);
|
|
18
18
|
const onClick = event => {
|
|
19
19
|
var _api$blockMenu;
|
|
20
|
-
const
|
|
21
|
-
const
|
|
20
|
+
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
21
|
+
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
22
22
|
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode('taskList', {
|
|
23
23
|
inputMethod,
|
|
24
24
|
triggeredFrom
|
|
@@ -15,8 +15,8 @@ export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
|
15
15
|
}, [selection]);
|
|
16
16
|
var onClick = function onClick(event) {
|
|
17
17
|
var _api$blockMenu;
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
19
|
+
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
20
20
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode('taskList', {
|
|
21
21
|
inputMethod: inputMethod,
|
|
22
22
|
triggeredFrom: triggeredFrom
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.9",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-block-menu": "^4.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-context-identifier": "^6.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-selection": "^6.
|
|
40
|
+
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-toolbar": "^3.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-type-ahead": "^6.2.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"@atlaskit/primitives": "^14.15.0",
|
|
52
52
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
53
53
|
"@atlaskit/task-decision": "^19.2.0",
|
|
54
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^13.4.0",
|
|
55
55
|
"@atlaskit/tokens": "^6.4.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@compiled/react": "^0.18.3",
|
|
58
58
|
"bind-event-listener": "^3.0.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@atlaskit/editor-common": "^110.
|
|
61
|
+
"@atlaskit/editor-common": "^110.7.0",
|
|
62
62
|
"react": "^18.2.0",
|
|
63
63
|
"react-dom": "^18.2.0",
|
|
64
64
|
"react-intl-next": "npm:react-intl@^5.18.1"
|