@atlaskit/editor-plugin-annotation 1.19.9 → 1.19.11
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-annotation
|
|
2
2
|
|
|
3
|
+
## 1.19.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.19.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#147094](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147094)
|
|
14
|
+
[`9e12a8f47cfef`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9e12a8f47cfef) -
|
|
15
|
+
[ED-24721] Clean up FF `confluence.frontend.fabric.editor.comments-on-media-analytics`
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.19.9
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -15,8 +15,6 @@ var _commands = require("../commands");
|
|
|
15
15
|
var _types = require("../types");
|
|
16
16
|
var _utils3 = require("../utils");
|
|
17
17
|
var _AnnotationViewWrapper = require("./AnnotationViewWrapper");
|
|
18
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
18
|
var findPosForDOM = function findPosForDOM(sel) {
|
|
21
19
|
var $from = sel.$from,
|
|
22
20
|
from = sel.from;
|
|
@@ -123,9 +121,7 @@ function InlineCommentView(_ref) {
|
|
|
123
121
|
return;
|
|
124
122
|
}
|
|
125
123
|
var _ref3 = inlineCommentState || {},
|
|
126
|
-
selectAnnotationMethod = _ref3.selectAnnotationMethod
|
|
127
|
-
featureFlagsPluginState = _ref3.featureFlagsPluginState;
|
|
128
|
-
var isCommentsOnMediaAnalyticsEnabled = featureFlagsPluginState === null || featureFlagsPluginState === void 0 ? void 0 : featureFlagsPluginState.commentsOnMediaAnalytics;
|
|
124
|
+
selectAnnotationMethod = _ref3.selectAnnotationMethod;
|
|
129
125
|
|
|
130
126
|
// fire analytics
|
|
131
127
|
var payload = {
|
|
@@ -133,12 +129,11 @@ function InlineCommentView(_ref) {
|
|
|
133
129
|
actionSubject: _analytics.ACTION_SUBJECT.ANNOTATION,
|
|
134
130
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
135
131
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
136
|
-
attributes:
|
|
137
|
-
overlap: activeAnnotations.length ? activeAnnotations.length - 1 : 0
|
|
138
|
-
}, isCommentsOnMediaAnalyticsEnabled && {
|
|
132
|
+
attributes: {
|
|
133
|
+
overlap: activeAnnotations.length ? activeAnnotations.length - 1 : 0,
|
|
139
134
|
targetNodeType: (_editorView$state$doc = editorView.state.doc.nodeAt(position)) === null || _editorView$state$doc === void 0 ? void 0 : _editorView$state$doc.type.name,
|
|
140
135
|
method: selectAnnotationMethod
|
|
141
|
-
}
|
|
136
|
+
}
|
|
142
137
|
};
|
|
143
138
|
dispatchAnalyticsEvent(payload);
|
|
144
139
|
};
|
|
@@ -119,10 +119,8 @@ export function InlineCommentView({
|
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
const {
|
|
122
|
-
selectAnnotationMethod
|
|
123
|
-
featureFlagsPluginState
|
|
122
|
+
selectAnnotationMethod
|
|
124
123
|
} = inlineCommentState || {};
|
|
125
|
-
const isCommentsOnMediaAnalyticsEnabled = featureFlagsPluginState === null || featureFlagsPluginState === void 0 ? void 0 : featureFlagsPluginState.commentsOnMediaAnalytics;
|
|
126
124
|
|
|
127
125
|
// fire analytics
|
|
128
126
|
const payload = {
|
|
@@ -132,10 +130,8 @@ export function InlineCommentView({
|
|
|
132
130
|
eventType: EVENT_TYPE.TRACK,
|
|
133
131
|
attributes: {
|
|
134
132
|
overlap: activeAnnotations.length ? activeAnnotations.length - 1 : 0,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
method: selectAnnotationMethod
|
|
138
|
-
})
|
|
133
|
+
targetNodeType: (_editorView$state$doc = editorView.state.doc.nodeAt(position)) === null || _editorView$state$doc === void 0 ? void 0 : _editorView$state$doc.type.name,
|
|
134
|
+
method: selectAnnotationMethod
|
|
139
135
|
}
|
|
140
136
|
};
|
|
141
137
|
dispatchAnalyticsEvent(payload);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
6
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, EVENT_TYPE, RESOLVE_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -116,9 +114,7 @@ export function InlineCommentView(_ref) {
|
|
|
116
114
|
return;
|
|
117
115
|
}
|
|
118
116
|
var _ref3 = inlineCommentState || {},
|
|
119
|
-
selectAnnotationMethod = _ref3.selectAnnotationMethod
|
|
120
|
-
featureFlagsPluginState = _ref3.featureFlagsPluginState;
|
|
121
|
-
var isCommentsOnMediaAnalyticsEnabled = featureFlagsPluginState === null || featureFlagsPluginState === void 0 ? void 0 : featureFlagsPluginState.commentsOnMediaAnalytics;
|
|
117
|
+
selectAnnotationMethod = _ref3.selectAnnotationMethod;
|
|
122
118
|
|
|
123
119
|
// fire analytics
|
|
124
120
|
var payload = {
|
|
@@ -126,12 +122,11 @@ export function InlineCommentView(_ref) {
|
|
|
126
122
|
actionSubject: ACTION_SUBJECT.ANNOTATION,
|
|
127
123
|
actionSubjectId: ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
128
124
|
eventType: EVENT_TYPE.TRACK,
|
|
129
|
-
attributes:
|
|
130
|
-
overlap: activeAnnotations.length ? activeAnnotations.length - 1 : 0
|
|
131
|
-
}, isCommentsOnMediaAnalyticsEnabled && {
|
|
125
|
+
attributes: {
|
|
126
|
+
overlap: activeAnnotations.length ? activeAnnotations.length - 1 : 0,
|
|
132
127
|
targetNodeType: (_editorView$state$doc = editorView.state.doc.nodeAt(position)) === null || _editorView$state$doc === void 0 ? void 0 : _editorView$state$doc.type.name,
|
|
133
128
|
method: selectAnnotationMethod
|
|
134
|
-
}
|
|
129
|
+
}
|
|
135
130
|
};
|
|
136
131
|
dispatchAnalyticsEvent(payload);
|
|
137
132
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-annotation",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.11",
|
|
4
4
|
"description": "Annotation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^40.9.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^93.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^1.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
40
|
-
"@atlaskit/icon": "^22.
|
|
40
|
+
"@atlaskit/icon": "^22.20.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0"
|
|
43
43
|
},
|