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