@atlaskit/editor-plugin-block-menu 6.0.23 → 6.0.25
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-block-menu
|
|
2
2
|
|
|
3
|
+
## 6.0.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ba6391ff5fd6b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ba6391ff5fd6b) -
|
|
8
|
+
update block menu transformed analytics event
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.0.24
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.0.23
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -78,17 +78,18 @@ var transformNode = exports.transformNode = function transformNode(api) {
|
|
|
78
78
|
api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.fireAnalyticsEvent({
|
|
79
79
|
action: _analytics.ACTION.TRANSFORMED,
|
|
80
80
|
actionSubject: _analytics.ACTION_SUBJECT.ELEMENT,
|
|
81
|
-
actionSubjectId: _analytics.ACTION_SUBJECT_ID.TRANSFORM,
|
|
82
81
|
attributes: {
|
|
83
82
|
duration: duration,
|
|
84
83
|
isList: isList,
|
|
85
84
|
isNested: isNested,
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
sourceNodesCount: sourceNodes.length,
|
|
86
|
+
sourceNodesCountByType: sourceNodeTypes,
|
|
88
87
|
startTime: startTime,
|
|
89
|
-
targetNodeType: targetType.name
|
|
88
|
+
targetNodeType: targetType.name,
|
|
89
|
+
outputNodesCount: content.length,
|
|
90
|
+
inputMethod: _analytics.INPUT_METHOD.BLOCK_MENU
|
|
90
91
|
},
|
|
91
|
-
eventType: _analytics.EVENT_TYPE.
|
|
92
|
+
eventType: _analytics.EVENT_TYPE.TRACK
|
|
92
93
|
});
|
|
93
94
|
});
|
|
94
95
|
return tr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT,
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
3
3
|
import { expandSelectionToBlockRange, getSourceNodesFromSelectionRange } from '@atlaskit/editor-common/selection';
|
|
4
4
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -70,17 +70,18 @@ export const transformNode = api => (targetType, metadata) => ({
|
|
|
70
70
|
api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : (_api$analytics$action = _api$analytics.actions) === null || _api$analytics$action === void 0 ? void 0 : _api$analytics$action.fireAnalyticsEvent({
|
|
71
71
|
action: ACTION.TRANSFORMED,
|
|
72
72
|
actionSubject: ACTION_SUBJECT.ELEMENT,
|
|
73
|
-
actionSubjectId: ACTION_SUBJECT_ID.TRANSFORM,
|
|
74
73
|
attributes: {
|
|
75
74
|
duration,
|
|
76
75
|
isList,
|
|
77
76
|
isNested,
|
|
78
|
-
|
|
79
|
-
sourceNodeTypes,
|
|
77
|
+
sourceNodesCount: sourceNodes.length,
|
|
78
|
+
sourceNodesCountByType: sourceNodeTypes,
|
|
80
79
|
startTime,
|
|
81
|
-
targetNodeType: targetType.name
|
|
80
|
+
targetNodeType: targetType.name,
|
|
81
|
+
outputNodesCount: content.length,
|
|
82
|
+
inputMethod: INPUT_METHOD.BLOCK_MENU
|
|
82
83
|
},
|
|
83
|
-
eventType: EVENT_TYPE.
|
|
84
|
+
eventType: EVENT_TYPE.TRACK
|
|
84
85
|
});
|
|
85
86
|
});
|
|
86
87
|
return tr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT,
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
3
3
|
import { expandSelectionToBlockRange, getSourceNodesFromSelectionRange } from '@atlaskit/editor-common/selection';
|
|
4
4
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -72,17 +72,18 @@ export var transformNode = function transformNode(api) {
|
|
|
72
72
|
api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.fireAnalyticsEvent({
|
|
73
73
|
action: ACTION.TRANSFORMED,
|
|
74
74
|
actionSubject: ACTION_SUBJECT.ELEMENT,
|
|
75
|
-
actionSubjectId: ACTION_SUBJECT_ID.TRANSFORM,
|
|
76
75
|
attributes: {
|
|
77
76
|
duration: duration,
|
|
78
77
|
isList: isList,
|
|
79
78
|
isNested: isNested,
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
sourceNodesCount: sourceNodes.length,
|
|
80
|
+
sourceNodesCountByType: sourceNodeTypes,
|
|
82
81
|
startTime: startTime,
|
|
83
|
-
targetNodeType: targetType.name
|
|
82
|
+
targetNodeType: targetType.name,
|
|
83
|
+
outputNodesCount: content.length,
|
|
84
|
+
inputMethod: INPUT_METHOD.BLOCK_MENU
|
|
84
85
|
},
|
|
85
|
-
eventType: EVENT_TYPE.
|
|
86
|
+
eventType: EVENT_TYPE.TRACK
|
|
86
87
|
});
|
|
87
88
|
});
|
|
88
89
|
return tr;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.25",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
42
42
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
43
43
|
"@atlaskit/flag": "^17.8.0",
|
|
44
|
-
"@atlaskit/icon": "^
|
|
44
|
+
"@atlaskit/icon": "^30.0.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
47
47
|
"@atlaskit/primitives": "^17.1.0",
|
|
48
48
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^16.32.0",
|
|
50
50
|
"@atlaskit/tokens": "^10.1.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0"
|
|
52
52
|
},
|