@atlaskit/react-ufo 3.13.13 → 3.13.15

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 (43) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/config/index.js +4 -4
  3. package/dist/cjs/create-payload/index.js +1 -2
  4. package/dist/cjs/create-payload/utils/get-ssr-done-time-value.js +1 -2
  5. package/dist/cjs/interaction-ignore/ufo-interaction-ignore.js +1 -2
  6. package/dist/cjs/interaction-metrics/index.js +10 -10
  7. package/dist/cjs/interaction-metrics-init/index.js +1 -2
  8. package/dist/cjs/label/UFOLabel.js +1 -2
  9. package/dist/cjs/load-hold/UFOLoadHold.js +1 -2
  10. package/dist/cjs/placeholder/Placeholder.js +1 -2
  11. package/dist/cjs/placeholder/loosely-lazy/lazy-suspense.js +1 -2
  12. package/dist/cjs/segment/segment-highlight.js +1 -2
  13. package/dist/cjs/segment/segment.js +1 -2
  14. package/dist/cjs/trace-transition/index.js +1 -2
  15. package/dist/cjs/vc/vc-observer/getVCRevisionsData.js +15 -5
  16. package/dist/cjs/vc/vc-observer/index.js +25 -25
  17. package/dist/cjs/vc/vc-observer/media-wrapper/index.js +1 -2
  18. package/dist/cjs/vc/vc-observer-new/index.js +1 -3
  19. package/dist/cjs/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +93 -90
  20. package/dist/cjs/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
  21. package/dist/cjs/vc/vc-observer-new/metric-calculator/percentile-calc/canvas-heatmap/index.js +2 -2
  22. package/dist/cjs/vc/vc-observer-new/metric-calculator/percentile-calc/index.js +1 -2
  23. package/dist/es2019/interaction-metrics/index.js +10 -10
  24. package/dist/es2019/vc/vc-observer/getVCRevisionsData.js +15 -5
  25. package/dist/es2019/vc/vc-observer/index.js +3 -3
  26. package/dist/es2019/vc/vc-observer-new/index.js +1 -3
  27. package/dist/es2019/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +32 -19
  28. package/dist/es2019/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
  29. package/dist/esm/config/index.js +4 -4
  30. package/dist/esm/interaction-metrics/index.js +10 -10
  31. package/dist/esm/vc/vc-observer/getVCRevisionsData.js +15 -5
  32. package/dist/esm/vc/vc-observer/index.js +25 -25
  33. package/dist/esm/vc/vc-observer-new/index.js +1 -3
  34. package/dist/esm/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +95 -92
  35. package/dist/esm/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
  36. package/dist/esm/vc/vc-observer-new/metric-calculator/percentile-calc/canvas-heatmap/index.js +2 -2
  37. package/dist/types/common/vc/types.d.ts +1 -0
  38. package/dist/types/vc/vc-observer/getVCRevisionsData.d.ts +3 -2
  39. package/dist/types/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +4 -1
  40. package/dist/types-ts4.5/common/vc/types.d.ts +1 -0
  41. package/dist/types-ts4.5/vc/vc-observer/getVCRevisionsData.d.ts +3 -2
  42. package/dist/types-ts4.5/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +4 -1
  43. package/package.json +3 -9
@@ -1,5 +1,5 @@
1
1
  import type { InteractionMetrics } from '../../common/common/types';
2
- import type { RevisionPayload } from '../../common/vc/types';
2
+ import type { RevisionPayload, VCRatioType } from '../../common/vc/types';
3
3
  type CalculatedVC = {
4
4
  VC: {
5
5
  [key: string]: number | null;
@@ -8,7 +8,7 @@ type CalculatedVC = {
8
8
  [key: string]: string[] | null;
9
9
  };
10
10
  };
11
- export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean, isEventAborted, calculatedVC, calculatedVCNext, experienceKey, }: {
11
+ export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean, isEventAborted, calculatedVC, calculatedVCNext, experienceKey, ratios, }: {
12
12
  fullPrefix?: string;
13
13
  interaction: Pick<InteractionMetrics, 'start' | 'end'>;
14
14
  isVCClean: boolean;
@@ -16,6 +16,7 @@ export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean,
16
16
  calculatedVC: CalculatedVC;
17
17
  calculatedVCNext: CalculatedVC;
18
18
  experienceKey: string;
19
+ ratios: VCRatioType;
19
20
  }): {
20
21
  [x: string]: RevisionPayload;
21
22
  };
@@ -10,7 +10,10 @@ export default abstract class AbstractVCCalculatorBase implements VCCalculator {
10
10
  dirtyReason?: VCAbortReason;
11
11
  };
12
12
  private filterViewportEntries;
13
- private calculateBasic;
13
+ /**
14
+ * Calculate ratios for each element based on their viewport coverage.
15
+ */
16
+ private calculateRatios;
14
17
  private calculateWithDebugInfo;
15
18
  calculate({ startTime, stopTime, orderedEntries, interactionId, isPostInteraction, }: VCCalculatorParam): Promise<RevisionPayloadEntry | undefined>;
16
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "3.13.13",
3
+ "version": "3.13.15",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -151,22 +151,16 @@
151
151
  "platform_ufo_enable_events_observer": {
152
152
  "type": "boolean"
153
153
  },
154
- "platform_ufo_ttvc_v3_devtool": {
155
- "type": "boolean"
156
- },
157
154
  "platform_ufo_filter_out_aui_attribute_changes": {
158
155
  "type": "boolean"
159
156
  },
160
157
  "platform_ufo_vc_observer_new_ssr_abort_listener": {
161
158
  "type": "boolean"
162
159
  },
163
- "platform_ufo_ignore_non_vis_attributes": {
164
- "type": "boolean"
165
- },
166
- "platform_ufo_v3_add_start_entry": {
160
+ "platform_ufo_hold_cross_interaction": {
167
161
  "type": "boolean"
168
162
  },
169
- "platform_ufo_hold_cross_interaction": {
163
+ "platform_ufo_rev_ratios": {
170
164
  "type": "boolean"
171
165
  }
172
166
  }