@atlaskit/editor-plugin-analytics 1.10.13 → 1.12.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-analytics
|
|
2
2
|
|
|
3
|
+
## 1.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#105322](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105322)
|
|
8
|
+
[`8876083532adc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8876083532adc) -
|
|
9
|
+
Bumped editor-prosemirror version to 7.0.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.11.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#105399](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105399)
|
|
20
|
+
[`ed98e34b5912b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ed98e34b5912b) -
|
|
21
|
+
ED-26234 Add prop to fireAnalyticsEvent action so it will fire immediately instead of being added
|
|
22
|
+
to queue
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 1.10.13
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -37,8 +37,6 @@ function createPlugin(options, featureFlags) {
|
|
|
37
37
|
fireAnalytics: (0, _analytics.fireAnalyticsEvent)(options.createAnalyticsEvent)
|
|
38
38
|
});
|
|
39
39
|
},
|
|
40
|
-
// Ignored via go/ees005
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
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 : {},
|
|
@@ -156,6 +154,7 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
|
|
|
156
154
|
fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
|
|
157
155
|
var _api$analytics$shared2, _api$analytics2;
|
|
158
156
|
var channel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _consts.editorAnalyticsChannel;
|
|
157
|
+
var options = arguments.length > 2 ? arguments[2] : undefined;
|
|
159
158
|
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
159
|
createAnalyticsEvent = _ref6.createAnalyticsEvent;
|
|
161
160
|
if (!createAnalyticsEvent) {
|
|
@@ -165,7 +164,7 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
|
|
|
165
164
|
});
|
|
166
165
|
return;
|
|
167
166
|
}
|
|
168
|
-
(0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent)({
|
|
167
|
+
(0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent, options)({
|
|
169
168
|
payload: payload,
|
|
170
169
|
channel: channel
|
|
171
170
|
});
|
|
@@ -23,8 +23,6 @@ function createPlugin(options, featureFlags) {
|
|
|
23
23
|
fireAnalytics: fireAnalyticsEvent(options.createAnalyticsEvent)
|
|
24
24
|
};
|
|
25
25
|
},
|
|
26
|
-
// Ignored via go/ees005
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
28
26
|
apply: (tr, pluginState, _, state) => {
|
|
29
27
|
var _tr$getMeta;
|
|
30
28
|
const {
|
|
@@ -130,7 +128,7 @@ const analyticsPlugin = ({
|
|
|
130
128
|
});
|
|
131
129
|
return true;
|
|
132
130
|
},
|
|
133
|
-
fireAnalyticsEvent: (payload, channel = editorAnalyticsChannel) => {
|
|
131
|
+
fireAnalyticsEvent: (payload, channel = editorAnalyticsChannel, options) => {
|
|
134
132
|
var _api$analytics$shared2, _api$analytics2;
|
|
135
133
|
const {
|
|
136
134
|
createAnalyticsEvent
|
|
@@ -142,7 +140,7 @@ const analyticsPlugin = ({
|
|
|
142
140
|
});
|
|
143
141
|
return;
|
|
144
142
|
}
|
|
145
|
-
fireAnalyticsEvent(createAnalyticsEvent)({
|
|
143
|
+
fireAnalyticsEvent(createAnalyticsEvent, options)({
|
|
146
144
|
payload,
|
|
147
145
|
channel
|
|
148
146
|
});
|
|
@@ -29,8 +29,6 @@ function createPlugin(options, featureFlags) {
|
|
|
29
29
|
fireAnalytics: _fireAnalyticsEvent(options.createAnalyticsEvent)
|
|
30
30
|
});
|
|
31
31
|
},
|
|
32
|
-
// Ignored via go/ees005
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
34
32
|
apply: function apply(tr, pluginState, _, state) {
|
|
35
33
|
var _tr$getMeta;
|
|
36
34
|
var _ref = (_tr$getMeta = tr.getMeta(analyticsPluginKey)) !== null && _tr$getMeta !== void 0 ? _tr$getMeta : {},
|
|
@@ -148,6 +146,7 @@ var analyticsPlugin = function analyticsPlugin(_ref3) {
|
|
|
148
146
|
fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
|
|
149
147
|
var _api$analytics$shared2, _api$analytics2;
|
|
150
148
|
var channel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : editorAnalyticsChannel;
|
|
149
|
+
var options = arguments.length > 2 ? arguments[2] : undefined;
|
|
151
150
|
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
151
|
createAnalyticsEvent = _ref6.createAnalyticsEvent;
|
|
153
152
|
if (!createAnalyticsEvent) {
|
|
@@ -157,7 +156,7 @@ var analyticsPlugin = function analyticsPlugin(_ref3) {
|
|
|
157
156
|
});
|
|
158
157
|
return;
|
|
159
158
|
}
|
|
160
|
-
_fireAnalyticsEvent(createAnalyticsEvent)({
|
|
159
|
+
_fireAnalyticsEvent(createAnalyticsEvent, options)({
|
|
161
160
|
payload: payload,
|
|
162
161
|
channel: channel
|
|
163
162
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-analytics",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Analytics 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": "^46.1.0",
|
|
35
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
36
|
-
"@atlaskit/analytics-next": "^10.
|
|
37
|
-
"@atlaskit/editor-common": "^99.
|
|
38
|
-
"@atlaskit/editor-plugin-feature-flags": "^1.
|
|
39
|
-
"@atlaskit/editor-prosemirror": "
|
|
40
|
-
"@atlaskit/editor-tables": "^2.
|
|
35
|
+
"@atlaskit/analytics-listeners": "^8.14.0",
|
|
36
|
+
"@atlaskit/analytics-next": "^10.3.0",
|
|
37
|
+
"@atlaskit/editor-common": "^99.10.0",
|
|
38
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.3.0",
|
|
39
|
+
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
|
+
"@atlaskit/editor-tables": "^2.9.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|