@atlaskit/editor-plugin-annotation 1.15.2 → 1.17.0

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,30 @@
1
1
  # @atlaskit/editor-plugin-annotation
2
2
 
3
+ ## 1.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#122895](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122895)
8
+ [`49b8c7658f3b5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/49b8c7658f3b5) -
9
+ [ED-24173] bump @atlaskit/adf-schema to 40.3.0 and @atlassian/adf-schema-json to 1.18.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 1.16.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#123058](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123058)
20
+ [`2f8d14c320506`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f8d14c320506) -
21
+ ED-24314 Adds new analytics event that fires editors inline comment selection dialog comment
22
+ button appears
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 1.15.2
4
29
 
5
30
  ### Patch Changes
@@ -42,6 +42,21 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(editorAnalyticsA
42
42
  keymap: _keymaps.addInlineComment
43
43
  }),
44
44
  title: createCommentMessage,
45
+ onMount: function onMount() {
46
+ if (editorAnalyticsAPI) {
47
+ editorAnalyticsAPI.fireAnalyticsEvent({
48
+ action: _analytics.ACTION.VIEWED,
49
+ actionSubject: _analytics.ACTION_SUBJECT.BUTTON,
50
+ actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT,
51
+ eventType: _analytics.EVENT_TYPE.UI,
52
+ attributes: {
53
+ isDisabled: selectionValid === _types.AnnotationSelectionType.DISABLED,
54
+ inputMethod: _analytics.INPUT_METHOD.FLOATING_TB,
55
+ mode: _analytics.MODE.EDITOR
56
+ }
57
+ });
58
+ }
59
+ },
45
60
  onClick: function onClick(state, dispatch) {
46
61
  if (editorAnalyticsAPI) {
47
62
  editorAnalyticsAPI.fireAnalyticsEvent({
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
2
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, MODE } from '@atlaskit/editor-common/analytics';
3
3
  import { addInlineComment, ToolTipContent } from '@atlaskit/editor-common/keymaps';
4
4
  import { currentMediaNodeWithPos } from '@atlaskit/editor-common/media-single';
5
5
  import { annotationMessages } from '@atlaskit/editor-common/messages';
@@ -33,6 +33,21 @@ export const buildToolbar = editorAnalyticsAPI => (state, intl, isToolbarAbove =
33
33
  keymap: addInlineComment
34
34
  }),
35
35
  title: createCommentMessage,
36
+ onMount: () => {
37
+ if (editorAnalyticsAPI) {
38
+ editorAnalyticsAPI.fireAnalyticsEvent({
39
+ action: ACTION.VIEWED,
40
+ actionSubject: ACTION_SUBJECT.BUTTON,
41
+ actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
42
+ eventType: EVENT_TYPE.UI,
43
+ attributes: {
44
+ isDisabled: selectionValid === AnnotationSelectionType.DISABLED,
45
+ inputMethod: INPUT_METHOD.FLOATING_TB,
46
+ mode: MODE.EDITOR
47
+ }
48
+ });
49
+ }
50
+ },
36
51
  onClick: (state, dispatch) => {
37
52
  if (editorAnalyticsAPI) {
38
53
  editorAnalyticsAPI.fireAnalyticsEvent({
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
2
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, MODE } from '@atlaskit/editor-common/analytics';
3
3
  import { addInlineComment, ToolTipContent } from '@atlaskit/editor-common/keymaps';
4
4
  import { currentMediaNodeWithPos } from '@atlaskit/editor-common/media-single';
5
5
  import { annotationMessages } from '@atlaskit/editor-common/messages';
@@ -35,6 +35,21 @@ export var buildToolbar = function buildToolbar(editorAnalyticsAPI) {
35
35
  keymap: addInlineComment
36
36
  }),
37
37
  title: createCommentMessage,
38
+ onMount: function onMount() {
39
+ if (editorAnalyticsAPI) {
40
+ editorAnalyticsAPI.fireAnalyticsEvent({
41
+ action: ACTION.VIEWED,
42
+ actionSubject: ACTION_SUBJECT.BUTTON,
43
+ actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
44
+ eventType: EVENT_TYPE.UI,
45
+ attributes: {
46
+ isDisabled: selectionValid === AnnotationSelectionType.DISABLED,
47
+ inputMethod: INPUT_METHOD.FLOATING_TB,
48
+ mode: MODE.EDITOR
49
+ }
50
+ });
51
+ }
52
+ },
38
53
  onClick: function onClick(state, dispatch) {
39
54
  if (editorAnalyticsAPI) {
40
55
  editorAnalyticsAPI.fireAnalyticsEvent({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "1.15.2",
3
+ "version": "1.17.0",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,13 +32,13 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^39.0.3",
36
- "@atlaskit/editor-common": "^86.3.0",
37
- "@atlaskit/editor-plugin-analytics": "^1.4.0",
35
+ "@atlaskit/adf-schema": "^40.3.0",
36
+ "@atlaskit/editor-common": "^86.7.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.5.0",
38
38
  "@atlaskit/editor-plugin-editor-viewmode-effects": "^1.0.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
40
40
  "@atlaskit/editor-prosemirror": "4.0.1",
41
- "@atlaskit/icon": "^22.6.0",
41
+ "@atlaskit/icon": "^22.7.0",
42
42
  "@atlaskit/platform-feature-flags": "^0.3.0",
43
43
  "@babel/runtime": "^7.0.0"
44
44
  },