@atlaskit/editor-plugin-analytics 1.10.13 → 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,18 @@
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
+
3
16
  ## 1.10.13
4
17
 
5
18
  ### Patch Changes
@@ -156,6 +156,7 @@ 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) {
@@ -165,7 +166,7 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
165
166
  });
166
167
  return;
167
168
  }
168
- (0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent)({
169
+ (0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent, options)({
169
170
  payload: payload,
170
171
  channel: channel
171
172
  });
@@ -130,7 +130,7 @@ 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
@@ -142,7 +142,7 @@ const analyticsPlugin = ({
142
142
  });
143
143
  return;
144
144
  }
145
- fireAnalyticsEvent(createAnalyticsEvent)({
145
+ fireAnalyticsEvent(createAnalyticsEvent, options)({
146
146
  payload,
147
147
  channel
148
148
  });
@@ -148,6 +148,7 @@ 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) {
@@ -157,7 +158,7 @@ var analyticsPlugin = function analyticsPlugin(_ref3) {
157
158
  });
158
159
  return;
159
160
  }
160
- _fireAnalyticsEvent(createAnalyticsEvent)({
161
+ _fireAnalyticsEvent(createAnalyticsEvent, options)({
161
162
  payload: payload,
162
163
  channel: channel
163
164
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-analytics",
3
- "version": "1.10.13",
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.4.0",
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",