@atlaskit/editor-plugin-expand 7.0.8 → 7.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-expand
|
|
2
2
|
|
|
3
|
+
## 7.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
|
## 7.0.8
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -32,8 +32,8 @@ var ExpandBlockMenuItem = function ExpandBlockMenuItem(_ref) {
|
|
|
32
32
|
}, [selection]);
|
|
33
33
|
var handleClick = function handleClick(event) {
|
|
34
34
|
var _api$blockMenu;
|
|
35
|
-
var
|
|
36
|
-
var
|
|
35
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
36
|
+
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
37
37
|
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(nodeName, {
|
|
38
38
|
inputMethod: inputMethod,
|
|
39
39
|
triggeredFrom: triggeredFrom
|
|
@@ -25,8 +25,8 @@ const ExpandBlockMenuItem = ({
|
|
|
25
25
|
}, [selection]);
|
|
26
26
|
const handleClick = event => {
|
|
27
27
|
var _api$blockMenu;
|
|
28
|
-
const
|
|
29
|
-
const
|
|
28
|
+
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
29
|
+
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
30
30
|
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(nodeName, {
|
|
31
31
|
inputMethod,
|
|
32
32
|
triggeredFrom
|
|
@@ -23,8 +23,8 @@ var ExpandBlockMenuItem = function ExpandBlockMenuItem(_ref) {
|
|
|
23
23
|
}, [selection]);
|
|
24
24
|
var handleClick = function handleClick(event) {
|
|
25
25
|
var _api$blockMenu;
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
27
|
+
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
28
28
|
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(nodeName, {
|
|
29
29
|
inputMethod: inputMethod,
|
|
30
30
|
triggeredFrom: triggeredFrom
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.9",
|
|
4
4
|
"description": "Expand 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-editor-disabled": "^6.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-local-id": "^4.1.0",
|
|
40
|
-
"@atlaskit/editor-plugin-selection": "^6.
|
|
40
|
+
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-selection-marker": "^6.2.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/icon": "^28.4.0",
|
|
47
47
|
"@atlaskit/icon-lab": "^5.9.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^13.4.0",
|
|
50
50
|
"@atlaskit/tokens": "^6.4.0",
|
|
51
51
|
"@atlaskit/tooltip": "^20.5.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"w3c-keyname": "^2.1.8"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^110.
|
|
58
|
+
"@atlaskit/editor-common": "^110.7.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-dom": "^18.2.0",
|
|
61
61
|
"react-intl-next": "npm:react-intl@^5.18.1"
|