@atlaskit/react-ufo 5.0.11 → 5.0.12

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,16 @@
1
1
  # @atlaskit/ufo-interaction-ignore
2
2
 
3
+ ## 5.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`898be43686c8a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/898be43686c8a) -
8
+ FG cleanup - platform_ufo_fix_post_interaction_check_vc_debug
9
+ - [`36667747cf1b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/36667747cf1b8) -
10
+ FG cleanup - platform_ufo_auto_add_ssr_entry_in_ttvc_v4
11
+ - [`18a9917b5d23d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/18a9917b5d23d) -
12
+ FG cleanup - platform_ufo_round_vc_ratios
13
+
3
14
  ## 5.0.11
4
15
 
5
16
  ### Patch Changes
@@ -298,8 +298,7 @@ var VCObserverNew = exports.default = /*#__PURE__*/function () {
298
298
  }
299
299
 
300
300
  // From TTVC v4 onwards, ensuring that SSR entry is always auto-added, whenever it is configured.
301
- // From the next major version release (where TTVC v4 becomes the default TTVC version), the config for `includeSSRInV3` will be deprecated
302
- if (param.ssr && !param.includeSSRInV3 && (0, _platformFeatureFlags.fg)('platform_ufo_auto_add_ssr_entry_in_ttvc_v4')) {
301
+ if (param.ssr) {
303
302
  this.addSSR(param.ssr);
304
303
  }
305
304
  calculator_fy26_04 = new _fy26_.default();
@@ -79,11 +79,7 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
79
79
  elementName = _step2$value[0],
80
80
  rect = _step2$value[1];
81
81
  var elementArea = rect.width * rect.height;
82
- if ((0, _platformFeatureFlags.fg)('platform_ufo_round_vc_ratios')) {
83
- ratios[elementName] = roundDecimal(elementArea / totalViewportArea);
84
- } else {
85
- ratios[elementName] = elementArea / totalViewportArea;
86
- }
82
+ ratios[elementName] = roundDecimal(elementArea / totalViewportArea);
87
83
  }
88
84
  } catch (err) {
89
85
  _iterator2.e(err);
@@ -123,8 +119,8 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
123
119
  key: "calculateWithDebugInfo",
124
120
  value: function () {
125
121
  var _calculateWithDebugInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(filteredEntries, startTime, stopTime, isPostInteraction, isVCClean, interactionType, isPageVisible, interactionId, dirtyReason, allEntries, include3p, excludeSmartAnswersInSearch, interactionAbortReason, includeSSRRatio) {
126
- var _window, _window2, _window6, _window8;
127
- var percentiles, viewportEntries, vcLogs, vcDetails, percentileIndex, entryDataBuffer, ssrRatio, _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_;
122
+ var _window, _window2, _window3, _window4, _window6;
123
+ var percentiles, viewportEntries, vcLogs, vcDetails, percentileIndex, entryDataBuffer, ssrRatio, _iterator4, _step4, _entry3, time, viewportPercentage, entries, elementNames, previousResult, i, percentile, enhancedVcLogs, shouldCalculate3p, shouldCalculateDebugDetails, 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, _window5, _window5$__ufo_devtoo, _window7, _window7$__on_ufo_vc_;
128
124
  return _regenerator.default.wrap(function _callee$(_context) {
129
125
  while (1) switch (_context.prev = _context.next) {
130
126
  case 0:
@@ -244,10 +240,7 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
244
240
  });
245
241
  }) : []; // If 3p metric enabled - calculate the debug details
246
242
  shouldCalculate3p = include3p && (0, _platformFeatureFlags.fg)('platform_ufo_enable_ttai_with_3p'); // Only calculate enhanced debug details if devtool callbacks exist
247
- shouldCalculateDebugDetails = (!isPostInteraction || shouldCalculate3p) && (typeof ((_window = window) === null || _window === void 0 ? void 0 : _window.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.__on_ufo_vc_debug_data_ready) === 'function');
248
- if ((0, _platformFeatureFlags.fg)('platform_ufo_fix_post_interaction_check_vc_debug')) {
249
- shouldCalculateDebugDetails = !isPostInteraction && (typeof ((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window4 = window) === null || _window4 === void 0 ? void 0 : _window4.__on_ufo_vc_debug_data_ready) === 'function' || typeof ((_window5 = window) === null || _window5 === void 0 ? void 0 : _window5.__ufo_devtool_vc_3p_debug_data) === 'function');
250
- }
243
+ shouldCalculateDebugDetails = !isPostInteraction && (typeof ((_window = window) === null || _window === void 0 ? void 0 : _window.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.__on_ufo_vc_debug_data_ready) === 'function' || typeof ((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.__ufo_devtool_vc_3p_debug_data) === 'function');
251
244
  if (shouldCalculateDebugDetails && allEntries && vcLogs) {
252
245
  // Pre-sort vcLogs by time for efficient lookups
253
246
  sortedVcLogs = (0, _toConsumableArray2.default)(vcLogs).sort(function (a, b) {
@@ -352,18 +345,18 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
352
345
  }
353
346
 
354
347
  // Handle devtool callback
355
- if (v3RevisionDebugDetails && typeof ((_window6 = window) === null || _window6 === void 0 ? void 0 : _window6.__ufo_devtool_onVCRevisionReady__) === 'function' && !include3p) {
348
+ if (v3RevisionDebugDetails && typeof ((_window4 = window) === null || _window4 === void 0 ? void 0 : _window4.__ufo_devtool_onVCRevisionReady__) === 'function' && !include3p) {
356
349
  try {
357
- (_window7 = window) === null || _window7 === void 0 || (_window7$__ufo_devtoo = _window7.__ufo_devtool_onVCRevisionReady__) === null || _window7$__ufo_devtoo === void 0 || _window7$__ufo_devtoo.call(_window7, v3RevisionDebugDetails);
350
+ (_window5 = window) === null || _window5 === void 0 || (_window5$__ufo_devtoo = _window5.__ufo_devtool_onVCRevisionReady__) === null || _window5$__ufo_devtoo === void 0 || _window5$__ufo_devtoo.call(_window5, v3RevisionDebugDetails);
358
351
  } catch (e) {
359
352
  // if any error communicating with devtool, we don't want to break the app
360
353
  // eslint-disable-next-line no-console
361
354
  console.error('Error in onVCRevisionReady', e);
362
355
  }
363
356
  }
364
- if (v3RevisionDebugDetails && typeof ((_window8 = window) === null || _window8 === void 0 ? void 0 : _window8.__on_ufo_vc_debug_data_ready) === 'function' && !include3p) {
357
+ if (v3RevisionDebugDetails && typeof ((_window6 = window) === null || _window6 === void 0 ? void 0 : _window6.__on_ufo_vc_debug_data_ready) === 'function' && !include3p) {
365
358
  try {
366
- (_window9 = window) === null || _window9 === void 0 || (_window9$__on_ufo_vc_ = _window9.__on_ufo_vc_debug_data_ready) === null || _window9$__on_ufo_vc_ === void 0 || _window9$__on_ufo_vc_.call(_window9, v3RevisionDebugDetails);
359
+ (_window7 = window) === null || _window7 === void 0 || (_window7$__on_ufo_vc_ = _window7.__on_ufo_vc_debug_data_ready) === null || _window7$__on_ufo_vc_ === void 0 || _window7$__on_ufo_vc_.call(_window7, v3RevisionDebugDetails);
367
360
  } catch (e) {
368
361
  // eslint-disable-next-line no-console
369
362
  console.error('Error in onVCRevisionReady', e);
@@ -382,7 +375,7 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
382
375
  vcDetails: vcDetails,
383
376
  ssrRatio: ssrRatio
384
377
  });
385
- case 43:
378
+ case 42:
386
379
  case "end":
387
380
  return _context.stop();
388
381
  }
@@ -247,8 +247,7 @@ export default class VCObserverNew {
247
247
  }
248
248
 
249
249
  // From TTVC v4 onwards, ensuring that SSR entry is always auto-added, whenever it is configured.
250
- // From the next major version release (where TTVC v4 becomes the default TTVC version), the config for `includeSSRInV3` will be deprecated
251
- if (param.ssr && !param.includeSSRInV3 && fg('platform_ufo_auto_add_ssr_entry_in_ttvc_v4')) {
250
+ if (param.ssr) {
252
251
  this.addSSR(param.ssr);
253
252
  }
254
253
  const calculator_fy26_04 = new VCCalculator_FY26_04();
@@ -40,11 +40,7 @@ export default class AbstractVCCalculatorBase {
40
40
  }
41
41
  for (const [elementName, rect] of elementRects) {
42
42
  const elementArea = rect.width * rect.height;
43
- if (fg('platform_ufo_round_vc_ratios')) {
44
- ratios[elementName] = roundDecimal(elementArea / totalViewportArea);
45
- } else {
46
- ratios[elementName] = elementArea / totalViewportArea;
47
- }
43
+ ratios[elementName] = roundDecimal(elementArea / totalViewportArea);
48
44
  }
49
45
  return ratios;
50
46
  }
@@ -65,7 +61,7 @@ export default class AbstractVCCalculatorBase {
65
61
  return labelStacks;
66
62
  }
67
63
  async calculateWithDebugInfo(filteredEntries, startTime, stopTime, isPostInteraction, isVCClean, interactionType, isPageVisible, interactionId, dirtyReason, allEntries, include3p, excludeSmartAnswersInSearch, interactionAbortReason, includeSSRRatio) {
68
- var _window, _window2, _window6, _window8;
64
+ var _window, _window2, _window3, _window4, _window6;
69
65
  const percentiles = [25, 50, 75, 80, 85, 90, 95, 98, 99, 100];
70
66
  const viewportEntries = this.filterViewportEntries(filteredEntries);
71
67
  const vcLogs = await calculateTTVCPercentilesWithDebugInfo({
@@ -153,11 +149,8 @@ export default class AbstractVCCalculatorBase {
153
149
  // If 3p metric enabled - calculate the debug details
154
150
  const shouldCalculate3p = include3p && fg('platform_ufo_enable_ttai_with_3p');
155
151
  // Only calculate enhanced debug details if devtool callbacks exist
156
- let shouldCalculateDebugDetails = (!isPostInteraction || shouldCalculate3p) && (typeof ((_window = window) === null || _window === void 0 ? void 0 : _window.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.__on_ufo_vc_debug_data_ready) === 'function');
157
- if (fg('platform_ufo_fix_post_interaction_check_vc_debug')) {
158
- var _window3, _window4, _window5;
159
- shouldCalculateDebugDetails = !isPostInteraction && (typeof ((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window4 = window) === null || _window4 === void 0 ? void 0 : _window4.__on_ufo_vc_debug_data_ready) === 'function' || typeof ((_window5 = window) === null || _window5 === void 0 ? void 0 : _window5.__ufo_devtool_vc_3p_debug_data) === 'function');
160
- }
152
+
153
+ const shouldCalculateDebugDetails = !isPostInteraction && (typeof ((_window = window) === null || _window === void 0 ? void 0 : _window.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.__on_ufo_vc_debug_data_ready) === 'function' || typeof ((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.__ufo_devtool_vc_3p_debug_data) === 'function');
161
154
  if (shouldCalculateDebugDetails && allEntries && vcLogs) {
162
155
  // Pre-sort vcLogs by time for efficient lookups
163
156
  const sortedVcLogs = [...vcLogs].sort((a, b) => a.time - b.time);
@@ -240,20 +233,20 @@ export default class AbstractVCCalculatorBase {
240
233
  }
241
234
 
242
235
  // Handle devtool callback
243
- if (v3RevisionDebugDetails && typeof ((_window6 = window) === null || _window6 === void 0 ? void 0 : _window6.__ufo_devtool_onVCRevisionReady__) === 'function' && !include3p) {
236
+ if (v3RevisionDebugDetails && typeof ((_window4 = window) === null || _window4 === void 0 ? void 0 : _window4.__ufo_devtool_onVCRevisionReady__) === 'function' && !include3p) {
244
237
  try {
245
- var _window7, _window7$__ufo_devtoo;
246
- (_window7 = window) === null || _window7 === void 0 ? void 0 : (_window7$__ufo_devtoo = _window7.__ufo_devtool_onVCRevisionReady__) === null || _window7$__ufo_devtoo === void 0 ? void 0 : _window7$__ufo_devtoo.call(_window7, v3RevisionDebugDetails);
238
+ var _window5, _window5$__ufo_devtoo;
239
+ (_window5 = window) === null || _window5 === void 0 ? void 0 : (_window5$__ufo_devtoo = _window5.__ufo_devtool_onVCRevisionReady__) === null || _window5$__ufo_devtoo === void 0 ? void 0 : _window5$__ufo_devtoo.call(_window5, v3RevisionDebugDetails);
247
240
  } catch (e) {
248
241
  // if any error communicating with devtool, we don't want to break the app
249
242
  // eslint-disable-next-line no-console
250
243
  console.error('Error in onVCRevisionReady', e);
251
244
  }
252
245
  }
253
- if (v3RevisionDebugDetails && typeof ((_window8 = window) === null || _window8 === void 0 ? void 0 : _window8.__on_ufo_vc_debug_data_ready) === 'function' && !include3p) {
246
+ if (v3RevisionDebugDetails && typeof ((_window6 = window) === null || _window6 === void 0 ? void 0 : _window6.__on_ufo_vc_debug_data_ready) === 'function' && !include3p) {
254
247
  try {
255
- var _window9, _window9$__on_ufo_vc_;
256
- (_window9 = window) === null || _window9 === void 0 ? void 0 : (_window9$__on_ufo_vc_ = _window9.__on_ufo_vc_debug_data_ready) === null || _window9$__on_ufo_vc_ === void 0 ? void 0 : _window9$__on_ufo_vc_.call(_window9, v3RevisionDebugDetails);
248
+ var _window7, _window7$__on_ufo_vc_;
249
+ (_window7 = window) === null || _window7 === void 0 ? void 0 : (_window7$__on_ufo_vc_ = _window7.__on_ufo_vc_debug_data_ready) === null || _window7$__on_ufo_vc_ === void 0 ? void 0 : _window7$__on_ufo_vc_.call(_window7, v3RevisionDebugDetails);
257
250
  } catch (e) {
258
251
  // eslint-disable-next-line no-console
259
252
  console.error('Error in onVCRevisionReady', e);
@@ -291,8 +291,7 @@ var VCObserverNew = /*#__PURE__*/function () {
291
291
  }
292
292
 
293
293
  // From TTVC v4 onwards, ensuring that SSR entry is always auto-added, whenever it is configured.
294
- // From the next major version release (where TTVC v4 becomes the default TTVC version), the config for `includeSSRInV3` will be deprecated
295
- if (param.ssr && !param.includeSSRInV3 && fg('platform_ufo_auto_add_ssr_entry_in_ttvc_v4')) {
294
+ if (param.ssr) {
296
295
  this.addSSR(param.ssr);
297
296
  }
298
297
  calculator_fy26_04 = new VCCalculator_FY26_04();
@@ -73,11 +73,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
73
73
  elementName = _step2$value[0],
74
74
  rect = _step2$value[1];
75
75
  var elementArea = rect.width * rect.height;
76
- if (fg('platform_ufo_round_vc_ratios')) {
77
- ratios[elementName] = roundDecimal(elementArea / totalViewportArea);
78
- } else {
79
- ratios[elementName] = elementArea / totalViewportArea;
80
- }
76
+ ratios[elementName] = roundDecimal(elementArea / totalViewportArea);
81
77
  }
82
78
  } catch (err) {
83
79
  _iterator2.e(err);
@@ -117,8 +113,8 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
117
113
  key: "calculateWithDebugInfo",
118
114
  value: function () {
119
115
  var _calculateWithDebugInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(filteredEntries, startTime, stopTime, isPostInteraction, isVCClean, interactionType, isPageVisible, interactionId, dirtyReason, allEntries, include3p, excludeSmartAnswersInSearch, interactionAbortReason, includeSSRRatio) {
120
- var _window, _window2, _window6, _window8;
121
- var percentiles, viewportEntries, vcLogs, vcDetails, percentileIndex, entryDataBuffer, ssrRatio, _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_;
116
+ var _window, _window2, _window3, _window4, _window6;
117
+ var percentiles, viewportEntries, vcLogs, vcDetails, percentileIndex, entryDataBuffer, ssrRatio, _iterator4, _step4, _entry3, time, viewportPercentage, entries, elementNames, previousResult, i, percentile, enhancedVcLogs, shouldCalculate3p, shouldCalculateDebugDetails, 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, _window5, _window5$__ufo_devtoo, _window7, _window7$__on_ufo_vc_;
122
118
  return _regeneratorRuntime.wrap(function _callee$(_context) {
123
119
  while (1) switch (_context.prev = _context.next) {
124
120
  case 0:
@@ -238,10 +234,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
238
234
  });
239
235
  }) : []; // If 3p metric enabled - calculate the debug details
240
236
  shouldCalculate3p = include3p && fg('platform_ufo_enable_ttai_with_3p'); // Only calculate enhanced debug details if devtool callbacks exist
241
- shouldCalculateDebugDetails = (!isPostInteraction || shouldCalculate3p) && (typeof ((_window = window) === null || _window === void 0 ? void 0 : _window.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.__on_ufo_vc_debug_data_ready) === 'function');
242
- if (fg('platform_ufo_fix_post_interaction_check_vc_debug')) {
243
- shouldCalculateDebugDetails = !isPostInteraction && (typeof ((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window4 = window) === null || _window4 === void 0 ? void 0 : _window4.__on_ufo_vc_debug_data_ready) === 'function' || typeof ((_window5 = window) === null || _window5 === void 0 ? void 0 : _window5.__ufo_devtool_vc_3p_debug_data) === 'function');
244
- }
237
+ shouldCalculateDebugDetails = !isPostInteraction && (typeof ((_window = window) === null || _window === void 0 ? void 0 : _window.__ufo_devtool_onVCRevisionReady__) === 'function' || typeof ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.__on_ufo_vc_debug_data_ready) === 'function' || typeof ((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.__ufo_devtool_vc_3p_debug_data) === 'function');
245
238
  if (shouldCalculateDebugDetails && allEntries && vcLogs) {
246
239
  // Pre-sort vcLogs by time for efficient lookups
247
240
  sortedVcLogs = _toConsumableArray(vcLogs).sort(function (a, b) {
@@ -346,18 +339,18 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
346
339
  }
347
340
 
348
341
  // Handle devtool callback
349
- if (v3RevisionDebugDetails && typeof ((_window6 = window) === null || _window6 === void 0 ? void 0 : _window6.__ufo_devtool_onVCRevisionReady__) === 'function' && !include3p) {
342
+ if (v3RevisionDebugDetails && typeof ((_window4 = window) === null || _window4 === void 0 ? void 0 : _window4.__ufo_devtool_onVCRevisionReady__) === 'function' && !include3p) {
350
343
  try {
351
- (_window7 = window) === null || _window7 === void 0 || (_window7$__ufo_devtoo = _window7.__ufo_devtool_onVCRevisionReady__) === null || _window7$__ufo_devtoo === void 0 || _window7$__ufo_devtoo.call(_window7, v3RevisionDebugDetails);
344
+ (_window5 = window) === null || _window5 === void 0 || (_window5$__ufo_devtoo = _window5.__ufo_devtool_onVCRevisionReady__) === null || _window5$__ufo_devtoo === void 0 || _window5$__ufo_devtoo.call(_window5, v3RevisionDebugDetails);
352
345
  } catch (e) {
353
346
  // if any error communicating with devtool, we don't want to break the app
354
347
  // eslint-disable-next-line no-console
355
348
  console.error('Error in onVCRevisionReady', e);
356
349
  }
357
350
  }
358
- if (v3RevisionDebugDetails && typeof ((_window8 = window) === null || _window8 === void 0 ? void 0 : _window8.__on_ufo_vc_debug_data_ready) === 'function' && !include3p) {
351
+ if (v3RevisionDebugDetails && typeof ((_window6 = window) === null || _window6 === void 0 ? void 0 : _window6.__on_ufo_vc_debug_data_ready) === 'function' && !include3p) {
359
352
  try {
360
- (_window9 = window) === null || _window9 === void 0 || (_window9$__on_ufo_vc_ = _window9.__on_ufo_vc_debug_data_ready) === null || _window9$__on_ufo_vc_ === void 0 || _window9$__on_ufo_vc_.call(_window9, v3RevisionDebugDetails);
353
+ (_window7 = window) === null || _window7 === void 0 || (_window7$__on_ufo_vc_ = _window7.__on_ufo_vc_debug_data_ready) === null || _window7$__on_ufo_vc_ === void 0 || _window7$__on_ufo_vc_.call(_window7, v3RevisionDebugDetails);
361
354
  } catch (e) {
362
355
  // eslint-disable-next-line no-console
363
356
  console.error('Error in onVCRevisionReady', e);
@@ -376,7 +369,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
376
369
  vcDetails: vcDetails,
377
370
  ssrRatio: ssrRatio
378
371
  });
379
- case 43:
372
+ case 42:
380
373
  case "end":
381
374
  return _context.stop();
382
375
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "5.0.11",
3
+ "version": "5.0.12",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -109,9 +109,6 @@
109
109
  "platform_ufo_assets_check_for_nan": {
110
110
  "type": "boolean"
111
111
  },
112
- "platform_ufo_fix_post_interaction_check_vc_debug": {
113
- "type": "boolean"
114
- },
115
112
  "platform_ufo_data-is-hovered-v4-exclusion": {
116
113
  "type": "boolean"
117
114
  },
@@ -124,9 +121,6 @@
124
121
  "platform_ufo_exclude_3p_elements_from_ttai": {
125
122
  "type": "boolean"
126
123
  },
127
- "platform_ufo_round_vc_ratios": {
128
- "type": "boolean"
129
- },
130
124
  "platform_ufo_exclude_3p_elements_from_ttvc": {
131
125
  "type": "boolean"
132
126
  },
@@ -184,9 +178,6 @@
184
178
  "platform_ufo_exclude_3p_attribute_changes": {
185
179
  "type": "boolean"
186
180
  },
187
- "platform_ufo_auto_add_ssr_entry_in_ttvc_v4": {
188
- "type": "boolean"
189
- },
190
181
  "platform_ufo_use_native_page_visibility_api": {
191
182
  "type": "boolean"
192
183
  },