@atlaskit/react-ufo 4.12.5 → 4.13.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,12 @@
1
1
  # @atlaskit/ufo-interaction-ignore
2
2
 
3
+ ## 4.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b0fe1aee585a6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b0fe1aee585a6) -
8
+ Updated ssrRatio to 0-1 from 0-100 to be backwards compatibile
9
+
3
10
  ## 4.12.5
4
11
 
5
12
  ### Patch Changes
@@ -147,8 +147,8 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
147
147
  time = _entry3.time, viewportPercentage = _entry3.viewportPercentage, entries = _entry3.entries;
148
148
  if (includeSSRRatio && ssrRatio === -1 && entries.some(function (e) {
149
149
  return e.elementName === 'SSR';
150
- }) && (0, _platformFeatureFlags.fg)('platform_report_ssr_ratio_in_v3')) {
151
- ssrRatio = viewportPercentage / 100;
150
+ }) && (0, _platformFeatureFlags.fg)('vc_v3_ssr_ratio_fixed_range')) {
151
+ ssrRatio = viewportPercentage;
152
152
  }
153
153
 
154
154
  // Only process entries if we haven't reached all percentiles
@@ -75,8 +75,8 @@ export default class AbstractVCCalculatorBase {
75
75
  viewportPercentage,
76
76
  entries
77
77
  } = entry;
78
- if (includeSSRRatio && ssrRatio === -1 && entries.some(e => e.elementName === 'SSR') && fg('platform_report_ssr_ratio_in_v3')) {
79
- ssrRatio = viewportPercentage / 100;
78
+ if (includeSSRRatio && ssrRatio === -1 && entries.some(e => e.elementName === 'SSR') && fg('vc_v3_ssr_ratio_fixed_range')) {
79
+ ssrRatio = viewportPercentage;
80
80
  }
81
81
 
82
82
  // Only process entries if we haven't reached all percentiles
@@ -141,8 +141,8 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
141
141
  time = _entry3.time, viewportPercentage = _entry3.viewportPercentage, entries = _entry3.entries;
142
142
  if (includeSSRRatio && ssrRatio === -1 && entries.some(function (e) {
143
143
  return e.elementName === 'SSR';
144
- }) && fg('platform_report_ssr_ratio_in_v3')) {
145
- ssrRatio = viewportPercentage / 100;
144
+ }) && fg('vc_v3_ssr_ratio_fixed_range')) {
145
+ ssrRatio = viewportPercentage;
146
146
  }
147
147
 
148
148
  // Only process entries if we haven't reached all percentiles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "4.12.5",
3
+ "version": "4.13.0",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -158,7 +158,7 @@
158
158
  "platform_ufo_always_send_post_interaction_log": {
159
159
  "type": "boolean"
160
160
  },
161
- "platform_report_ssr_ratio_in_v3": {
161
+ "vc_v3_ssr_ratio_fixed_range": {
162
162
  "type": "boolean"
163
163
  },
164
164
  "platform_ufo_drop_prior_fg_interactions": {