@atlaskit/react-ufo 4.10.1 → 4.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/create-experimental-interaction-metrics-payload/index.js +10 -7
  3. package/dist/cjs/create-payload/utils/get-vc-metrics.js +13 -9
  4. package/dist/cjs/interaction-metrics/index.js +6 -4
  5. package/dist/cjs/interaction-metrics/post-interaction-log.js +13 -6
  6. package/dist/cjs/vc/index.js +4 -1
  7. package/dist/cjs/vc/vc-observer-new/index.js +10 -4
  8. package/dist/cjs/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +11 -18
  9. package/dist/es2019/create-experimental-interaction-metrics-payload/index.js +5 -2
  10. package/dist/es2019/create-payload/utils/get-vc-metrics.js +5 -2
  11. package/dist/es2019/interaction-metrics/index.js +6 -4
  12. package/dist/es2019/interaction-metrics/post-interaction-log.js +7 -1
  13. package/dist/es2019/vc/index.js +4 -1
  14. package/dist/es2019/vc/vc-observer-new/index.js +11 -2
  15. package/dist/es2019/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +10 -15
  16. package/dist/esm/create-experimental-interaction-metrics-payload/index.js +10 -7
  17. package/dist/esm/create-payload/utils/get-vc-metrics.js +13 -9
  18. package/dist/esm/interaction-metrics/index.js +6 -4
  19. package/dist/esm/interaction-metrics/post-interaction-log.js +13 -6
  20. package/dist/esm/vc/index.js +4 -1
  21. package/dist/esm/vc/vc-observer-new/index.js +10 -4
  22. package/dist/esm/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +11 -18
  23. package/dist/types/common/common/types.d.ts +1 -0
  24. package/dist/types/create-interaction-extra-metrics-payload/index.d.ts +1 -0
  25. package/dist/types/create-payload/index.d.ts +384 -0
  26. package/dist/types/interaction-metrics/index.d.ts +2 -2
  27. package/dist/types/vc/types.d.ts +4 -0
  28. package/dist/types/vc/vc-observer/getVCRevisionDebugDetails.d.ts +2 -0
  29. package/dist/types/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +1 -1
  30. package/dist/types/vc/vc-observer-new/metric-calculator/types.d.ts +4 -0
  31. package/dist/types/vc/vc-observer-new/types.d.ts +4 -0
  32. package/dist/types-ts4.5/common/common/types.d.ts +1 -0
  33. package/dist/types-ts4.5/create-interaction-extra-metrics-payload/index.d.ts +1 -0
  34. package/dist/types-ts4.5/create-payload/index.d.ts +384 -0
  35. package/dist/types-ts4.5/interaction-metrics/index.d.ts +2 -2
  36. package/dist/types-ts4.5/vc/types.d.ts +4 -0
  37. package/dist/types-ts4.5/vc/vc-observer/getVCRevisionDebugDetails.d.ts +2 -0
  38. package/dist/types-ts4.5/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +1 -1
  39. package/dist/types-ts4.5/vc/vc-observer-new/metric-calculator/types.d.ts +4 -0
  40. package/dist/types-ts4.5/vc/vc-observer-new/types.d.ts +4 -0
  41. package/package.json +1 -1
@@ -19,6 +19,7 @@ function _getVCMetrics() {
19
19
  config,
20
20
  interactionStatus,
21
21
  pageVisibilityUpToTTAI,
22
+ isPageVisible,
22
23
  shouldReportVCMetrics,
23
24
  observer,
24
25
  isSSREnabled,
@@ -49,14 +50,15 @@ function _getVCMetrics() {
49
50
  case 7:
50
51
  interactionStatus = getInteractionStatus(interaction);
51
52
  pageVisibilityUpToTTAI = getPageVisibilityUpToTTAI(interaction);
52
- shouldReportVCMetrics = interactionStatus.originalInteractionStatus === 'SUCCEEDED' && pageVisibilityUpToTTAI === 'visible'; // Use per-interaction VC observer if available, otherwise fall back to global
53
+ isPageVisible = pageVisibilityUpToTTAI === 'visible';
54
+ shouldReportVCMetrics = interactionStatus.originalInteractionStatus === 'SUCCEEDED' && isPageVisible; // Use per-interaction VC observer if available, otherwise fall back to global
53
55
  observer = interaction.vcObserver;
54
56
  if (observer) {
55
- _context.next = 13;
57
+ _context.next = 14;
56
58
  break;
57
59
  }
58
60
  return _context.abrupt("return", {});
59
- case 13:
61
+ case 14:
60
62
  isSSREnabled = interaction.type === 'page_load' && ((config === null || config === void 0 ? void 0 : config.ssr) || (config === null || config === void 0 || (_config$vc$ssrWhiteli = config.vc.ssrWhitelist) === null || _config$vc$ssrWhiteli === void 0 ? void 0 : _config$vc$ssrWhiteli.includes(interaction.ufoName)));
61
63
  ssr = interaction.type === 'page_load' && isSSREnabled ? {
62
64
  ssr: getSSRDoneTimeValue(config)
@@ -64,7 +66,7 @@ function _getVCMetrics() {
64
66
  postInteractionLog.setVCObserverSSRConfig(ssr);
65
67
  tti = (_interaction$apdex = interaction.apdex) === null || _interaction$apdex === void 0 || (_interaction$apdex = _interaction$apdex[0]) === null || _interaction$apdex === void 0 ? void 0 : _interaction$apdex.stopTime;
66
68
  prefix = 'ufo';
67
- _context.next = 20;
69
+ _context.next = 21;
68
70
  return observer.getVCResult(_objectSpread(_objectSpread({
69
71
  start: interaction.start,
70
72
  stop: interaction.end,
@@ -78,9 +80,11 @@ function _getVCMetrics() {
78
80
  includeSSRRatio: (_config$vc3 = config.vc) === null || _config$vc3 === void 0 ? void 0 : _config$vc3.includeSSRRatio
79
81
  }, ssr), {}, {
80
82
  include3p: include3p,
81
- excludeSmartAnswersInSearch: excludeSmartAnswersInSearch
83
+ excludeSmartAnswersInSearch: excludeSmartAnswersInSearch,
84
+ interactionType: interaction.type,
85
+ isPageVisible: isPageVisible
82
86
  }));
83
- case 20:
87
+ case 21:
84
88
  result = _context.sent;
85
89
  observer.stop(interaction.ufoName);
86
90
  if (!include3p) {
@@ -93,15 +97,15 @@ function _getVCMetrics() {
93
97
  return revision === mostRecentVCRevision;
94
98
  });
95
99
  if (!(!shouldReportVCMetrics || !(mostRecentVCRevisionPayload !== null && mostRecentVCRevisionPayload !== void 0 && mostRecentVCRevisionPayload.clean))) {
96
- _context.next = 27;
100
+ _context.next = 28;
97
101
  break;
98
102
  }
99
103
  return _context.abrupt("return", result);
100
- case 27:
104
+ case 28:
101
105
  return _context.abrupt("return", _objectSpread(_objectSpread({}, result), {}, {
102
106
  'metric:vc90': mostRecentVCRevisionPayload['metric:vc90']
103
107
  }));
104
- case 28:
108
+ case 29:
105
109
  case "end":
106
110
  return _context.stop();
107
111
  }
@@ -542,7 +542,7 @@ export var ModuleLoadingProfiler = {
542
542
  removeHoldByID(currentInteractionId, id);
543
543
  }
544
544
  };
545
- export function addError(interactionId, name, labelStack, errorType, errorMessage, errorStack, forcedError, errorHash) {
545
+ export function addError(interactionId, name, labelStack, errorType, errorMessage, errorStack, forcedError, errorHash, errorStatusCode) {
546
546
  var interaction = interactions.get(interactionId);
547
547
  if (interaction != null) {
548
548
  interaction.errors.push({
@@ -552,11 +552,12 @@ export function addError(interactionId, name, labelStack, errorType, errorMessag
552
552
  errorMessage: errorMessage,
553
553
  errorStack: errorStack,
554
554
  forcedError: forcedError,
555
- errorHash: errorHash
555
+ errorHash: errorHash,
556
+ errorStatusCode: errorStatusCode
556
557
  });
557
558
  }
558
559
  }
559
- export function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, errorHash) {
560
+ export function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, errorHash, errorStatusCode) {
560
561
  interactions.forEach(function (interaction) {
561
562
  interaction.errors.push({
562
563
  name: name,
@@ -564,7 +565,8 @@ export function addErrorToAll(name, labelStack, errorType, errorMessage, errorSt
564
565
  errorType: errorType,
565
566
  errorMessage: errorMessage,
566
567
  errorStack: errorStack,
567
- errorHash: errorHash
568
+ errorHash: errorHash,
569
+ errorStatusCode: errorStatusCode
568
570
  });
569
571
  });
570
572
  }
@@ -7,6 +7,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { getConfig } from '../config';
10
+ import { getPageVisibilityState } from '../hidden-timing';
10
11
  import { VCObserverWrapper } from '../vc';
11
12
  var POST_INTERACTION_LOG_SEND_DEFAULT_TIMEOUT = 3000;
12
13
  var PostInteractionLog = /*#__PURE__*/function () {
@@ -115,7 +116,7 @@ var PostInteractionLog = /*#__PURE__*/function () {
115
116
  value: (function () {
116
117
  var _sendPostInteractionLog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
117
118
  var _this$vcObserver4, _config$vc, _config$vc2, _this$vcObserver5;
118
- var _this$vcObserver3, config, postInteractionFinishVCResult;
119
+ var _this$vcObserver3, pageVisibilityState, isPageVisible, config, postInteractionFinishVCResult;
119
120
  return _regeneratorRuntime.wrap(function _callee$(_context) {
120
121
  while (1) switch (_context.prev = _context.next) {
121
122
  case 0:
@@ -127,9 +128,11 @@ var PostInteractionLog = /*#__PURE__*/function () {
127
128
  (_this$vcObserver3 = this.vcObserver) === null || _this$vcObserver3 === void 0 || _this$vcObserver3.stop();
128
129
  return _context.abrupt("return");
129
130
  case 4:
131
+ pageVisibilityState = getPageVisibilityState(this.lastInteractionFinish.start, this.lastInteractionFinish.end);
132
+ isPageVisible = pageVisibilityState === 'visible';
130
133
  config = getConfig();
131
- _context.next = 7;
132
- return (_this$vcObserver4 = this.vcObserver) === null || _this$vcObserver4 === void 0 ? void 0 : _this$vcObserver4.getVCResult(_objectSpread({
134
+ _context.next = 9;
135
+ return (_this$vcObserver4 = this.vcObserver) === null || _this$vcObserver4 === void 0 ? void 0 : _this$vcObserver4.getVCResult(_objectSpread(_objectSpread({
133
136
  start: this.lastInteractionFinish.start,
134
137
  stop: performance.now(),
135
138
  tti: -1,
@@ -140,8 +143,12 @@ var PostInteractionLog = /*#__PURE__*/function () {
140
143
  interactionId: this.lastInteractionFinish.id,
141
144
  includeSSRInV3: config === null || config === void 0 || (_config$vc = config.vc) === null || _config$vc === void 0 ? void 0 : _config$vc.includeSSRInV3,
142
145
  includeSSRRatio: config === null || config === void 0 || (_config$vc2 = config.vc) === null || _config$vc2 === void 0 ? void 0 : _config$vc2.includeSSRRatio
143
- }, this.vcObserverSSRConfig));
144
- case 7:
146
+ }, this.vcObserverSSRConfig), {}, {
147
+ interactionType: this.lastInteractionFinish.type,
148
+ isPageVisible: isPageVisible,
149
+ interactionAbortReason: this.lastInteractionFinish.abortReason
150
+ }));
151
+ case 9:
145
152
  postInteractionFinishVCResult = _context.sent;
146
153
  (_this$vcObserver5 = this.vcObserver) === null || _this$vcObserver5 === void 0 || _this$vcObserver5.stop();
147
154
  this.sinkHandlerFn({
@@ -151,7 +158,7 @@ var PostInteractionLog = /*#__PURE__*/function () {
151
158
  lastInteractionFinishVCResult: this.lastInteractionFinishVCResult
152
159
  });
153
160
  this.reset();
154
- case 11:
161
+ case 13:
155
162
  case "end":
156
163
  return _context.stop();
157
164
  }
@@ -142,7 +142,10 @@ export var VCObserverWrapper = /*#__PURE__*/function () {
142
142
  interactionId: param.interactionId,
143
143
  ssr: param.includeSSRInV3 ? param.ssr : undefined,
144
144
  include3p: include3p,
145
- excludeSmartAnswersInSearch: excludeSmartAnswersInSearch
145
+ excludeSmartAnswersInSearch: excludeSmartAnswersInSearch,
146
+ interactionType: param.interactionType,
147
+ isPageVisible: param.isPageVisible,
148
+ interactionAbortReason: param.interactionAbortReason
146
149
  });
147
150
  case 12:
148
151
  _context.t1 = _context.sent;
@@ -231,11 +231,11 @@ var VCObserverNew = /*#__PURE__*/function () {
231
231
  key: "getVCResult",
232
232
  value: function () {
233
233
  var _getVCResult = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(param) {
234
- var start, stop, interactionId, include3p, excludeSmartAnswersInSearch, results, calculator_fy25_03, orderedEntries, fy25_03, calculator_next, vcNext;
234
+ var start, stop, interactionId, interactionType, interactionAbortReason, isPageVisible, include3p, excludeSmartAnswersInSearch, results, calculator_fy25_03, orderedEntries, fy25_03, calculator_next, vcNext;
235
235
  return _regeneratorRuntime.wrap(function _callee$(_context) {
236
236
  while (1) switch (_context.prev = _context.next) {
237
237
  case 0:
238
- start = param.start, stop = param.stop, interactionId = param.interactionId, include3p = param.include3p, excludeSmartAnswersInSearch = param.excludeSmartAnswersInSearch;
238
+ start = param.start, stop = param.stop, interactionId = param.interactionId, interactionType = param.interactionType, interactionAbortReason = param.interactionAbortReason, isPageVisible = param.isPageVisible, include3p = param.include3p, excludeSmartAnswersInSearch = param.excludeSmartAnswersInSearch;
239
239
  results = [];
240
240
  this.addStartEntry(start);
241
241
  calculator_fy25_03 = new VCCalculator_FY25_03();
@@ -252,9 +252,12 @@ var VCObserverNew = /*#__PURE__*/function () {
252
252
  startTime: start,
253
253
  stopTime: stop,
254
254
  interactionId: interactionId,
255
+ interactionType: interactionType,
255
256
  isPostInteraction: this.isPostInteraction,
256
257
  include3p: include3p,
257
- excludeSmartAnswersInSearch: excludeSmartAnswersInSearch
258
+ excludeSmartAnswersInSearch: excludeSmartAnswersInSearch,
259
+ isPageVisible: isPageVisible,
260
+ interactionAbortReason: interactionAbortReason
258
261
  });
259
262
  case 8:
260
263
  fy25_03 = _context.sent;
@@ -274,8 +277,11 @@ var VCObserverNew = /*#__PURE__*/function () {
274
277
  startTime: start,
275
278
  stopTime: stop,
276
279
  interactionId: interactionId,
280
+ interactionType: interactionType,
277
281
  isPostInteraction: this.isPostInteraction,
278
- include3p: include3p
282
+ include3p: include3p,
283
+ isPageVisible: isPageVisible,
284
+ interactionAbortReason: interactionAbortReason
279
285
  });
280
286
  case 14:
281
287
  vcNext = _context.sent;
@@ -11,9 +11,6 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
11
11
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
12
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
- import getPageVisibilityUpToTTAI from '../../../create-payload/utils/get-page-visibility-up-to-ttai';
15
- import { getInteractionId } from '../../../interaction-id-context';
16
- import { interactions } from '../../../interaction-metrics/common/constants';
17
14
  import { cssIssueOccurrence } from '../viewport-observer/utils/track-display-content-occurrence';
18
15
  import { calculateTTVCPercentilesWithDebugInfo } from './percentile-calc';
19
16
  import getViewportHeight from './utils/get-viewport-height';
@@ -105,9 +102,9 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
105
102
  }, {
106
103
  key: "calculateWithDebugInfo",
107
104
  value: function () {
108
- var _calculateWithDebugInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(filteredEntries, startTime, stopTime, isPostInteraction, isVCClean, interactionId, dirtyReason, allEntries, include3p, excludeSmartAnswersInSearch) {
105
+ var _calculateWithDebugInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(filteredEntries, startTime, stopTime, isPostInteraction, isVCClean, interactionType, isPageVisible, interactionId, dirtyReason, allEntries, include3p, excludeSmartAnswersInSearch, interactionAbortReason) {
109
106
  var _window, _window2, _window6, _window8;
110
- var percentiles, viewportEntries, vcLogs, vcDetails, percentileIndex, entryDataBuffer, _iterator4, _step4, _entry3, time, viewportPercentage, entries, elementNames, previousResult, i, percentile, enhancedVcLogs, shouldCalculate3p, shouldCalculateDebugDetails, _window3, _window4, _window5, sortedVcLogs, maxViewportPercentageAtTime, maxSoFar, _iterator5, _step5, log, getBiggestPreviousViewportPercentage, ignoredEntriesByTime, _iterator6, _step6, _entry4, _ignoredEntriesByTime, _viewportData$rect, _viewportData$previou, viewportData, timestamp, additionalVcLogs, _iterator7, _step7, _step7$value, _timestamp, ignoredEntries, _viewportPercentage, v3RevisionDebugDetails, _activeInteractionId$, activeInteractionId, activeInteraction, pageVisibilityUpToTTAI, isBackgrounded, _window7, _window7$__ufo_devtoo, _window9, _window9$__on_ufo_vc_;
107
+ var percentiles, viewportEntries, vcLogs, vcDetails, percentileIndex, entryDataBuffer, _iterator4, _step4, _entry3, time, viewportPercentage, entries, elementNames, previousResult, i, percentile, enhancedVcLogs, shouldCalculate3p, shouldCalculateDebugDetails, _window3, _window4, _window5, sortedVcLogs, maxViewportPercentageAtTime, maxSoFar, _iterator5, _step5, log, getBiggestPreviousViewportPercentage, ignoredEntriesByTime, _iterator6, _step6, _entry4, _ignoredEntriesByTime, _viewportData$rect, _viewportData$previou, viewportData, timestamp, additionalVcLogs, _iterator7, _step7, _step7$value, _timestamp, ignoredEntries, _viewportPercentage, v3RevisionDebugDetails, _window7, _window7$__ufo_devtoo, _window9, _window9$__on_ufo_vc_;
111
108
  return _regeneratorRuntime.wrap(function _callee$(_context) {
112
109
  while (1) switch (_context.prev = _context.next) {
113
110
  case 0:
@@ -308,17 +305,13 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
308
305
  v3RevisionDebugDetails = null;
309
306
  if (shouldCalculateDebugDetails) {
310
307
  if (fg('platform_ufo_unify_abort_status_in_ttvc_debug_data')) {
311
- // NOTE: using this instead of directly calling `getActiveInteraction()` to get around circular dependencies
312
- activeInteractionId = getInteractionId();
313
- activeInteraction = interactions.get((_activeInteractionId$ = activeInteractionId.current) !== null && _activeInteractionId$ !== void 0 ? _activeInteractionId$ : '');
314
- pageVisibilityUpToTTAI = activeInteraction ? getPageVisibilityUpToTTAI(activeInteraction) : null;
315
- isBackgrounded = pageVisibilityUpToTTAI !== 'visible';
316
308
  v3RevisionDebugDetails = {
317
309
  revision: this.revisionNo,
318
- isClean: isVCClean && !(activeInteraction !== null && activeInteraction !== void 0 && activeInteraction.abortReason) && !isBackgrounded,
319
- abortReason: isBackgrounded ? 'browser_backgrounded' : dirtyReason !== null && dirtyReason !== void 0 ? dirtyReason : activeInteraction === null || activeInteraction === void 0 ? void 0 : activeInteraction.abortReason,
310
+ isClean: isVCClean && !interactionAbortReason && isPageVisible,
311
+ abortReason: !isPageVisible ? 'browser_backgrounded' : dirtyReason !== null && dirtyReason !== void 0 ? dirtyReason : interactionAbortReason,
320
312
  vcLogs: enhancedVcLogs,
321
- interactionId: interactionId
313
+ interactionId: interactionId,
314
+ interactionType: interactionType
322
315
  };
323
316
  } else {
324
317
  v3RevisionDebugDetails = {
@@ -365,7 +358,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
365
358
  }
366
359
  }, _callee, this, [[10, 22, 25, 28]]);
367
360
  }));
368
- function calculateWithDebugInfo(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9, _x0) {
361
+ function calculateWithDebugInfo(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9, _x0, _x1, _x10, _x11) {
369
362
  return _calculateWithDebugInfo.apply(this, arguments);
370
363
  }
371
364
  return calculateWithDebugInfo;
@@ -377,11 +370,11 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
377
370
  var _this = this,
378
371
  _vcDetails$90$t,
379
372
  _vcDetails$;
380
- var startTime, stopTime, orderedEntries, interactionId, isPostInteraction, include3p, excludeSmartAnswersInSearch, filteredEntries, isVCClean, dirtyReason, getVCCleanStatusResult, vcDetails, result;
373
+ var startTime, stopTime, orderedEntries, interactionId, isPostInteraction, include3p, excludeSmartAnswersInSearch, interactionType, isPageVisible, interactionAbortReason, filteredEntries, isVCClean, dirtyReason, getVCCleanStatusResult, vcDetails, result;
381
374
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
382
375
  while (1) switch (_context2.prev = _context2.next) {
383
376
  case 0:
384
- startTime = _ref.startTime, stopTime = _ref.stopTime, orderedEntries = _ref.orderedEntries, interactionId = _ref.interactionId, isPostInteraction = _ref.isPostInteraction, include3p = _ref.include3p, excludeSmartAnswersInSearch = _ref.excludeSmartAnswersInSearch;
377
+ startTime = _ref.startTime, stopTime = _ref.stopTime, orderedEntries = _ref.orderedEntries, interactionId = _ref.interactionId, isPostInteraction = _ref.isPostInteraction, include3p = _ref.include3p, excludeSmartAnswersInSearch = _ref.excludeSmartAnswersInSearch, interactionType = _ref.interactionType, isPageVisible = _ref.isPageVisible, interactionAbortReason = _ref.interactionAbortReason;
385
378
  filteredEntries = orderedEntries.filter(function (entry) {
386
379
  return _this.isEntryIncluded(entry, include3p, excludeSmartAnswersInSearch);
387
380
  });
@@ -401,7 +394,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
401
394
  });
402
395
  case 7:
403
396
  _context2.next = 9;
404
- return this.calculateWithDebugInfo(filteredEntries, startTime, stopTime, isPostInteraction, isVCClean, interactionId, dirtyReason, orderedEntries, include3p, excludeSmartAnswersInSearch);
397
+ return this.calculateWithDebugInfo(filteredEntries, startTime, stopTime, isPostInteraction, isVCClean, interactionType, isPageVisible, interactionId, dirtyReason, orderedEntries, include3p, excludeSmartAnswersInSearch, interactionAbortReason);
405
398
  case 9:
406
399
  vcDetails = _context2.sent;
407
400
  result = {
@@ -424,7 +417,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
424
417
  }
425
418
  }, _callee2, this);
426
419
  }));
427
- function calculate(_x1) {
420
+ function calculate(_x12) {
428
421
  return _calculate.apply(this, arguments);
429
422
  }
430
423
  return calculate;
@@ -38,6 +38,7 @@ export interface InteractionError {
38
38
  errorStack?: string;
39
39
  forcedError?: boolean;
40
40
  errorHash?: string;
41
+ errorStatusCode?: number;
41
42
  }
42
43
  interface FlushInfo {
43
44
  label?: string;
@@ -32,6 +32,7 @@ declare function createInteractionExtraLogPayload(interactionId: string, interac
32
32
  errorStack?: string;
33
33
  forcedError?: boolean;
34
34
  errorHash?: string;
35
+ errorStatusCode?: number;
35
36
  }[];
36
37
  holdActive: import("../common").HoldActive[];
37
38
  holdInfo: any[];