@atlaskit/editor-plugin-analytics 6.2.4 → 6.2.5
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 +8 -0
- package/dist/cjs/analyticsPlugin.js +2 -14
- package/dist/es2019/analyticsPlugin.js +1 -13
- package/dist/esm/analyticsPlugin.js +2 -14
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-analytics
|
|
2
2
|
|
|
3
|
+
## 6.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
|
|
8
|
+
tsignores added for help-center local consumpton removed
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 6.2.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -37,8 +37,6 @@ function createPlugin(options, featureFlags) {
|
|
|
37
37
|
fireAnalytics: (0, _analytics.fireAnalyticsEvent)(options.createAnalyticsEvent)
|
|
38
38
|
});
|
|
39
39
|
},
|
|
40
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
41
|
-
|
|
42
40
|
apply: function apply(tr, pluginState, _, state) {
|
|
43
41
|
var _tr$getMeta;
|
|
44
42
|
var _ref = (_tr$getMeta = tr.getMeta(_pluginKey.analyticsPluginKey)) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : {},
|
|
@@ -194,8 +192,6 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
|
|
|
194
192
|
dispatch(tr);
|
|
195
193
|
|
|
196
194
|
// Attach all analytics events to the transaction
|
|
197
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
198
|
-
|
|
199
195
|
analyticsEventPropQueue.forEach(function (_ref8) {
|
|
200
196
|
var _createAnalyticsEvent;
|
|
201
197
|
var payload = _ref8.payload,
|
|
@@ -231,17 +227,12 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
|
|
|
231
227
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
232
228
|
var payloads = tr.steps
|
|
233
229
|
// Ignored via go/ees005
|
|
234
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
235
230
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
236
231
|
.filter(function (step) {
|
|
237
232
|
return step instanceof _steps.AnalyticsStep;
|
|
238
|
-
})
|
|
239
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
240
|
-
.map(function (x) {
|
|
233
|
+
}).map(function (x) {
|
|
241
234
|
return x.analyticsEvents;
|
|
242
|
-
})
|
|
243
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
244
|
-
.reduce(function (acc, val) {
|
|
235
|
+
}).reduce(function (acc, val) {
|
|
245
236
|
return acc.concat(val);
|
|
246
237
|
}, []);
|
|
247
238
|
acc.push.apply(acc, (0, _toConsumableArray2.default)(payloads));
|
|
@@ -252,9 +243,6 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
|
|
|
252
243
|
}
|
|
253
244
|
var createAnalyticsEvent = pluginState.createAnalyticsEvent;
|
|
254
245
|
var undoAnaltyicsEventTransformer = (0, _undoRedoInputSource.generateUndoRedoInputSoucePayload)(originalTransaction);
|
|
255
|
-
|
|
256
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
257
|
-
|
|
258
246
|
steps.forEach(function (_ref0) {
|
|
259
247
|
var payload = _ref0.payload,
|
|
260
248
|
channel = _ref0.channel;
|
|
@@ -24,8 +24,6 @@ function createPlugin(options, featureFlags) {
|
|
|
24
24
|
fireAnalytics: fireAnalyticsEvent(options.createAnalyticsEvent)
|
|
25
25
|
};
|
|
26
26
|
},
|
|
27
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
28
|
-
|
|
29
27
|
apply: (tr, pluginState, _, state) => {
|
|
30
28
|
var _tr$getMeta;
|
|
31
29
|
const {
|
|
@@ -177,8 +175,6 @@ const analyticsPlugin = ({
|
|
|
177
175
|
dispatch(tr);
|
|
178
176
|
|
|
179
177
|
// Attach all analytics events to the transaction
|
|
180
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
181
|
-
|
|
182
178
|
analyticsEventPropQueue.forEach(({
|
|
183
179
|
payload,
|
|
184
180
|
channel
|
|
@@ -214,13 +210,8 @@ const analyticsPlugin = ({
|
|
|
214
210
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
215
211
|
const payloads = tr.steps
|
|
216
212
|
// Ignored via go/ees005
|
|
217
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
218
213
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
219
|
-
.filter(step => step instanceof AnalyticsStep)
|
|
220
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
221
|
-
.map(x => x.analyticsEvents)
|
|
222
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
223
|
-
.reduce((acc, val) => acc.concat(val), []);
|
|
214
|
+
.filter(step => step instanceof AnalyticsStep).map(x => x.analyticsEvents).reduce((acc, val) => acc.concat(val), []);
|
|
224
215
|
acc.push(...payloads);
|
|
225
216
|
return acc;
|
|
226
217
|
}, []);
|
|
@@ -231,9 +222,6 @@ const analyticsPlugin = ({
|
|
|
231
222
|
createAnalyticsEvent
|
|
232
223
|
} = pluginState;
|
|
233
224
|
const undoAnaltyicsEventTransformer = generateUndoRedoInputSoucePayload(originalTransaction);
|
|
234
|
-
|
|
235
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
236
|
-
|
|
237
225
|
steps.forEach(({
|
|
238
226
|
payload,
|
|
239
227
|
channel
|
|
@@ -30,8 +30,6 @@ function createPlugin(options, featureFlags) {
|
|
|
30
30
|
fireAnalytics: _fireAnalyticsEvent(options.createAnalyticsEvent)
|
|
31
31
|
});
|
|
32
32
|
},
|
|
33
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
34
|
-
|
|
35
33
|
apply: function apply(tr, pluginState, _, state) {
|
|
36
34
|
var _tr$getMeta;
|
|
37
35
|
var _ref = (_tr$getMeta = tr.getMeta(analyticsPluginKey)) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : {},
|
|
@@ -187,8 +185,6 @@ var analyticsPlugin = function analyticsPlugin(_ref3) {
|
|
|
187
185
|
dispatch(tr);
|
|
188
186
|
|
|
189
187
|
// Attach all analytics events to the transaction
|
|
190
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
191
|
-
|
|
192
188
|
analyticsEventPropQueue.forEach(function (_ref8) {
|
|
193
189
|
var _createAnalyticsEvent;
|
|
194
190
|
var payload = _ref8.payload,
|
|
@@ -224,17 +220,12 @@ var analyticsPlugin = function analyticsPlugin(_ref3) {
|
|
|
224
220
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
225
221
|
var payloads = tr.steps
|
|
226
222
|
// Ignored via go/ees005
|
|
227
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
228
223
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
229
224
|
.filter(function (step) {
|
|
230
225
|
return step instanceof AnalyticsStep;
|
|
231
|
-
})
|
|
232
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
233
|
-
.map(function (x) {
|
|
226
|
+
}).map(function (x) {
|
|
234
227
|
return x.analyticsEvents;
|
|
235
|
-
})
|
|
236
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
237
|
-
.reduce(function (acc, val) {
|
|
228
|
+
}).reduce(function (acc, val) {
|
|
238
229
|
return acc.concat(val);
|
|
239
230
|
}, []);
|
|
240
231
|
acc.push.apply(acc, _toConsumableArray(payloads));
|
|
@@ -245,9 +236,6 @@ var analyticsPlugin = function analyticsPlugin(_ref3) {
|
|
|
245
236
|
}
|
|
246
237
|
var createAnalyticsEvent = pluginState.createAnalyticsEvent;
|
|
247
238
|
var undoAnaltyicsEventTransformer = generateUndoRedoInputSoucePayload(originalTransaction);
|
|
248
|
-
|
|
249
|
-
// @ts-ignore - Workaround for help-center local consumption
|
|
250
|
-
|
|
251
239
|
steps.forEach(function (_ref0) {
|
|
252
240
|
var payload = _ref0.payload,
|
|
253
241
|
channel = _ref0.channel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-analytics",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.5",
|
|
4
4
|
"description": "Analytics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@babel/runtime": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^110.
|
|
39
|
+
"@atlaskit/editor-common": "^110.36.0",
|
|
40
40
|
"react": "^18.2.0"
|
|
41
41
|
},
|
|
42
42
|
"techstack": {
|