@atlaskit/editor-plugin-analytics 1.10.12 → 1.11.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,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-analytics
|
|
2
2
|
|
|
3
|
+
## 1.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#105399](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105399)
|
|
8
|
+
[`ed98e34b5912b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ed98e34b5912b) -
|
|
9
|
+
ED-26234 Add prop to fireAnalyticsEvent action so it will fire immediately instead of being added
|
|
10
|
+
to queue
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 1.10.13
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#103591](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103591)
|
|
21
|
+
[`8ef82b4195e85`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ef82b4195e85) -
|
|
22
|
+
ED-23460 - Fix to make sure fireAnalyticsEvent action stores channel in queue
|
|
23
|
+
|
|
3
24
|
## 1.10.12
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -156,15 +156,17 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
|
|
|
156
156
|
fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
|
|
157
157
|
var _api$analytics$shared2, _api$analytics2;
|
|
158
158
|
var channel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _consts.editorAnalyticsChannel;
|
|
159
|
+
var options = arguments.length > 2 ? arguments[2] : undefined;
|
|
159
160
|
var _ref6 = (_api$analytics$shared2 = api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.sharedState.currentState()) !== null && _api$analytics$shared2 !== void 0 ? _api$analytics$shared2 : {},
|
|
160
161
|
createAnalyticsEvent = _ref6.createAnalyticsEvent;
|
|
161
162
|
if (!createAnalyticsEvent) {
|
|
162
163
|
analyticsEventPropQueue.add({
|
|
163
|
-
payload: payload
|
|
164
|
+
payload: payload,
|
|
165
|
+
channel: channel
|
|
164
166
|
});
|
|
165
167
|
return;
|
|
166
168
|
}
|
|
167
|
-
(0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent)({
|
|
169
|
+
(0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent, options)({
|
|
168
170
|
payload: payload,
|
|
169
171
|
channel: channel
|
|
170
172
|
});
|
|
@@ -119,7 +119,7 @@ const analyticsPlugin = ({
|
|
|
119
119
|
if (!tr || !createAnalyticsEvent || !attachAnalyticsEvent) {
|
|
120
120
|
analyticsEventPropQueue.add({
|
|
121
121
|
payload,
|
|
122
|
-
channel
|
|
122
|
+
channel
|
|
123
123
|
});
|
|
124
124
|
return false;
|
|
125
125
|
}
|
|
@@ -130,18 +130,19 @@ const analyticsPlugin = ({
|
|
|
130
130
|
});
|
|
131
131
|
return true;
|
|
132
132
|
},
|
|
133
|
-
fireAnalyticsEvent: (payload, channel = editorAnalyticsChannel) => {
|
|
133
|
+
fireAnalyticsEvent: (payload, channel = editorAnalyticsChannel, options) => {
|
|
134
134
|
var _api$analytics$shared2, _api$analytics2;
|
|
135
135
|
const {
|
|
136
136
|
createAnalyticsEvent
|
|
137
137
|
} = (_api$analytics$shared2 = api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.sharedState.currentState()) !== null && _api$analytics$shared2 !== void 0 ? _api$analytics$shared2 : {};
|
|
138
138
|
if (!createAnalyticsEvent) {
|
|
139
139
|
analyticsEventPropQueue.add({
|
|
140
|
-
payload
|
|
140
|
+
payload,
|
|
141
|
+
channel
|
|
141
142
|
});
|
|
142
143
|
return;
|
|
143
144
|
}
|
|
144
|
-
fireAnalyticsEvent(createAnalyticsEvent)({
|
|
145
|
+
fireAnalyticsEvent(createAnalyticsEvent, options)({
|
|
145
146
|
payload,
|
|
146
147
|
channel
|
|
147
148
|
});
|
|
@@ -148,15 +148,17 @@ var analyticsPlugin = function analyticsPlugin(_ref3) {
|
|
|
148
148
|
fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
|
|
149
149
|
var _api$analytics$shared2, _api$analytics2;
|
|
150
150
|
var channel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : editorAnalyticsChannel;
|
|
151
|
+
var options = arguments.length > 2 ? arguments[2] : undefined;
|
|
151
152
|
var _ref6 = (_api$analytics$shared2 = api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.sharedState.currentState()) !== null && _api$analytics$shared2 !== void 0 ? _api$analytics$shared2 : {},
|
|
152
153
|
createAnalyticsEvent = _ref6.createAnalyticsEvent;
|
|
153
154
|
if (!createAnalyticsEvent) {
|
|
154
155
|
analyticsEventPropQueue.add({
|
|
155
|
-
payload: payload
|
|
156
|
+
payload: payload,
|
|
157
|
+
channel: channel
|
|
156
158
|
});
|
|
157
159
|
return;
|
|
158
160
|
}
|
|
159
|
-
_fireAnalyticsEvent(createAnalyticsEvent)({
|
|
161
|
+
_fireAnalyticsEvent(createAnalyticsEvent, options)({
|
|
160
162
|
payload: payload,
|
|
161
163
|
channel: channel
|
|
162
164
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-analytics",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Analytics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/analytics-listeners": "^8.13.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^10.2.0",
|
|
37
|
-
"@atlaskit/editor-common": "^99.
|
|
37
|
+
"@atlaskit/editor-common": "^99.5.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
40
40
|
"@atlaskit/editor-tables": "^2.8.0",
|