@atlaskit/react-ufo 3.5.3 → 3.6.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,13 @@
1
1
  # @atlaskit/ufo-interaction-ignore
2
2
 
3
+ ## 3.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#142786](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142786)
8
+ [`056a68c075470`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/056a68c075470) -
9
+ Added check before applying filter to postInteractionFinshVCUpdates
10
+
3
11
  ## 3.5.3
4
12
 
5
13
  ### Patch Changes
@@ -162,7 +162,7 @@ var createPostInteractionLogPayload = (0, _selfMeasurements.withProfiling)(funct
162
162
  revisedVC90 = (_postInteractionFinis = postInteractionFinishVCMetrics[90]) !== null && _postInteractionFinis !== void 0 ? _postInteractionFinis : null;
163
163
  }
164
164
  }
165
- var lateMutations = postInteractionFinishVCUpdates.filter(function (entry) {
165
+ var lateMutations = postInteractionFinishVCUpdates ? postInteractionFinishVCUpdates.filter(function (entry) {
166
166
  return entry.time > lastInteractionFinish.end;
167
167
  }).flatMap(function (_ref3) {
168
168
  var time = _ref3.time,
@@ -174,7 +174,7 @@ var createPostInteractionLogPayload = (0, _selfMeasurements.withProfiling)(funct
174
174
  viewportHeatmapPercentage: postInteractionFinishVCRatios[element]
175
175
  };
176
176
  });
177
- });
177
+ }) : [];
178
178
  return {
179
179
  actionSubject: 'experience',
180
180
  action: 'measured',
@@ -147,14 +147,14 @@ const createPostInteractionLogPayload = withProfiling(function createPostInterac
147
147
  revisedVC90 = (_postInteractionFinis = postInteractionFinishVCMetrics[90]) !== null && _postInteractionFinis !== void 0 ? _postInteractionFinis : null;
148
148
  }
149
149
  }
150
- const lateMutations = postInteractionFinishVCUpdates.filter(entry => entry.time > lastInteractionFinish.end).flatMap(({
150
+ const lateMutations = postInteractionFinishVCUpdates ? postInteractionFinishVCUpdates.filter(entry => entry.time > lastInteractionFinish.end).flatMap(({
151
151
  time,
152
152
  elements
153
153
  }) => Array.from(new Set(elements)).map(element => ({
154
154
  time,
155
155
  element,
156
156
  viewportHeatmapPercentage: postInteractionFinishVCRatios[element]
157
- })));
157
+ }))) : [];
158
158
  return {
159
159
  actionSubject: 'experience',
160
160
  action: 'measured',
@@ -155,7 +155,7 @@ var createPostInteractionLogPayload = withProfiling(function createPostInteracti
155
155
  revisedVC90 = (_postInteractionFinis = postInteractionFinishVCMetrics[90]) !== null && _postInteractionFinis !== void 0 ? _postInteractionFinis : null;
156
156
  }
157
157
  }
158
- var lateMutations = postInteractionFinishVCUpdates.filter(function (entry) {
158
+ var lateMutations = postInteractionFinishVCUpdates ? postInteractionFinishVCUpdates.filter(function (entry) {
159
159
  return entry.time > lastInteractionFinish.end;
160
160
  }).flatMap(function (_ref3) {
161
161
  var time = _ref3.time,
@@ -167,7 +167,7 @@ var createPostInteractionLogPayload = withProfiling(function createPostInteracti
167
167
  viewportHeatmapPercentage: postInteractionFinishVCRatios[element]
168
168
  };
169
169
  });
170
- });
170
+ }) : [];
171
171
  return {
172
172
  actionSubject: 'experience',
173
173
  action: 'measured',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "3.5.3",
3
+ "version": "3.6.0",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",