@atlaskit/editor-plugin-annotation 1.5.1 → 1.5.2

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,11 @@
1
1
  # @atlaskit/editor-plugin-annotation
2
2
 
3
+ ## 1.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#84685](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84685) [`8884904b3f36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8884904b3f36) - fix insert annotation analytics to include selectionType and nodeLocation
8
+
3
9
  ## 1.5.1
4
10
 
5
11
  ### Patch Changes
@@ -68,7 +68,8 @@ var addInsertAnalytics = function addInsertAnalytics(editorAnalyticsAPI) {
68
68
  action: _analytics.ACTION.INSERTED,
69
69
  actionSubject: _analytics.ACTION_SUBJECT.ANNOTATION,
70
70
  eventType: _analytics.EVENT_TYPE.TRACK,
71
- actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT
71
+ actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT,
72
+ attributes: {}
72
73
  })(transaction);
73
74
  return transaction;
74
75
  };
@@ -52,7 +52,8 @@ const addInsertAnalytics = editorAnalyticsAPI => (transaction, state) => {
52
52
  action: ACTION.INSERTED,
53
53
  actionSubject: ACTION_SUBJECT.ANNOTATION,
54
54
  eventType: EVENT_TYPE.TRACK,
55
- actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT
55
+ actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
56
+ attributes: {}
56
57
  })(transaction);
57
58
  return transaction;
58
59
  };
@@ -62,7 +62,8 @@ var addInsertAnalytics = function addInsertAnalytics(editorAnalyticsAPI) {
62
62
  action: ACTION.INSERTED,
63
63
  actionSubject: ACTION_SUBJECT.ANNOTATION,
64
64
  eventType: EVENT_TYPE.TRACK,
65
- actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT
65
+ actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
66
+ attributes: {}
66
67
  })(transaction);
67
68
  return transaction;
68
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^35.7.0",
36
- "@atlaskit/editor-common": "^78.19.0",
36
+ "@atlaskit/editor-common": "^78.20.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
38
38
  "@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",