@atlaskit/react-ufo 4.5.12 → 4.6.1

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 (53) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/config/index.js +19 -6
  3. package/dist/cjs/create-payload/index.js +3 -1
  4. package/dist/cjs/create-post-interaction-log-payload/get-late-mutations.js +15 -3
  5. package/dist/cjs/create-post-interaction-log-payload/index.js +2 -1
  6. package/dist/cjs/interaction-metrics/index.js +2 -1
  7. package/dist/cjs/segment/segment.js +19 -2
  8. package/dist/cjs/trace-hover/index.js +12 -0
  9. package/dist/cjs/trace-interaction/internal/trace-ufo-interaction.js +23 -6
  10. package/dist/cjs/vc/vc-observer-new/index.js +74 -11
  11. package/dist/cjs/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +91 -36
  12. package/dist/es2019/config/index.js +13 -0
  13. package/dist/es2019/create-payload/index.js +3 -0
  14. package/dist/es2019/create-post-interaction-log-payload/get-late-mutations.js +12 -3
  15. package/dist/es2019/create-post-interaction-log-payload/index.js +2 -1
  16. package/dist/es2019/interaction-metrics/index.js +2 -1
  17. package/dist/es2019/segment/segment.js +21 -4
  18. package/dist/es2019/trace-hover/index.js +5 -0
  19. package/dist/es2019/trace-interaction/internal/trace-ufo-interaction.js +24 -7
  20. package/dist/es2019/vc/vc-observer-new/index.js +67 -10
  21. package/dist/es2019/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +56 -8
  22. package/dist/esm/config/index.js +18 -6
  23. package/dist/esm/create-payload/index.js +3 -1
  24. package/dist/esm/create-post-interaction-log-payload/get-late-mutations.js +15 -3
  25. package/dist/esm/create-post-interaction-log-payload/index.js +2 -1
  26. package/dist/esm/interaction-metrics/index.js +2 -1
  27. package/dist/esm/segment/segment.js +21 -4
  28. package/dist/esm/trace-hover/index.js +5 -0
  29. package/dist/esm/trace-interaction/internal/trace-ufo-interaction.js +24 -7
  30. package/dist/esm/vc/vc-observer-new/index.js +74 -11
  31. package/dist/esm/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +91 -36
  32. package/dist/types/common/common/types.d.ts +5 -0
  33. package/dist/types/common/react-ufo-payload-schema.d.ts +4 -1
  34. package/dist/types/common/vc/types.d.ts +7 -0
  35. package/dist/types/config/index.d.ts +2 -0
  36. package/dist/types/create-payload/index.d.ts +512 -0
  37. package/dist/types/create-post-interaction-log-payload/get-late-mutations.d.ts +2 -2
  38. package/dist/types/trace-hover/index.d.ts +2 -0
  39. package/dist/types/vc/vc-observer/getVCRevisionDebugDetails.d.ts +1 -1
  40. package/dist/types/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +1 -0
  41. package/dist/types/vc/vc-observer-new/types.d.ts +5 -0
  42. package/dist/types-ts4.5/common/common/types.d.ts +5 -0
  43. package/dist/types-ts4.5/common/react-ufo-payload-schema.d.ts +4 -1
  44. package/dist/types-ts4.5/common/vc/types.d.ts +7 -0
  45. package/dist/types-ts4.5/config/index.d.ts +2 -0
  46. package/dist/types-ts4.5/create-payload/index.d.ts +512 -0
  47. package/dist/types-ts4.5/create-post-interaction-log-payload/get-late-mutations.d.ts +2 -2
  48. package/dist/types-ts4.5/trace-hover/index.d.ts +2 -0
  49. package/dist/types-ts4.5/vc/vc-observer/getVCRevisionDebugDetails.d.ts +1 -1
  50. package/dist/types-ts4.5/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +1 -0
  51. package/dist/types-ts4.5/vc/vc-observer-new/types.d.ts +5 -0
  52. package/package.json +13 -1
  53. package/trace-hover/package.json +15 -0
@@ -1,5 +1,5 @@
1
1
  import type { LastInteractionFinishInfo } from '../common';
2
2
  import type { LateMutation } from '../common/react-ufo-payload-schema';
3
- import type { RevisionPayloadVCDetails } from '../common/vc/types';
4
- declare function getLateMutations(vcDetails: RevisionPayloadVCDetails, lastInteractionFinish: LastInteractionFinishInfo, postInteractionFinishVCRatios?: Record<string, number>): LateMutation[];
3
+ import type { RevisionPayloadVCDetails, VCLabelStacks } from '../common/vc/types';
4
+ declare function getLateMutations(vcDetails: RevisionPayloadVCDetails, labelStacks: VCLabelStacks | undefined, lastInteractionFinish: LastInteractionFinishInfo, postInteractionFinishVCRatios?: Record<string, number>): LateMutation[];
5
5
  export default getLateMutations;
@@ -0,0 +1,2 @@
1
+ declare function traceUFOHover(name: string, timestamp?: number): void;
2
+ export default traceUFOHover;
@@ -17,7 +17,7 @@ export type VCLogEntry = {
17
17
  export interface VCRevisionDebugDetails {
18
18
  revision: string;
19
19
  isClean: boolean;
20
- abortReason?: VCAbortReason | null;
20
+ abortReason?: string | null;
21
21
  abortTimestamp?: number;
22
22
  vcLogs: VCLogEntry[];
23
23
  interactionId?: string;
@@ -23,6 +23,7 @@ export default abstract class AbstractVCCalculatorBase implements VCCalculator {
23
23
  * Calculate ratios for each element based on their viewport coverage.
24
24
  */
25
25
  private calculateRatios;
26
+ private getLabelStacks;
26
27
  private calculateWithDebugInfo;
27
28
  calculate({ startTime, stopTime, orderedEntries, interactionId, isPostInteraction, include3p, }: VCCalculatorParam): Promise<RevisionPayloadEntry | undefined>;
28
29
  }
@@ -9,6 +9,11 @@ export type ViewportEntryData = {
9
9
  readonly attributeName?: string | null | undefined;
10
10
  readonly oldValue?: string | null | undefined;
11
11
  readonly newValue?: string | null | undefined;
12
+ readonly labelStacks?: VCObserverLabelStacks;
13
+ };
14
+ export type VCObserverLabelStacks = {
15
+ segment: string;
16
+ labelStack: string;
12
17
  };
13
18
  export type WindowEventEntryData = {
14
19
  readonly type: VCObserverEntryType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "4.5.12",
3
+ "version": "4.6.1",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -84,6 +84,9 @@
84
84
  "platform_ufo_canvas_heatmap_full_precision": {
85
85
  "type": "boolean"
86
86
  },
87
+ "platform_ufo_enable_minor_interactions": {
88
+ "type": "boolean"
89
+ },
87
90
  "platform_ufo_enable_media_for_ttvc_v3": {
88
91
  "type": "boolean"
89
92
  },
@@ -102,6 +105,9 @@
102
105
  "ufo_payload_use_idle_callback": {
103
106
  "type": "boolean"
104
107
  },
108
+ "platform_ufo_serialise_ttvc_v3_debug_data": {
109
+ "type": "boolean"
110
+ },
105
111
  "platform_ufo_assets_check_for_nan": {
106
112
  "type": "boolean"
107
113
  },
@@ -114,6 +120,9 @@
114
120
  "platform_ufo_enable_interactivity_jsm": {
115
121
  "type": "boolean"
116
122
  },
123
+ "platform_ufo_unify_abort_status_in_ttvc_debug_data": {
124
+ "type": "boolean"
125
+ },
117
126
  "platform_ufo_exclude_3p_elements_from_ttai": {
118
127
  "type": "boolean"
119
128
  },
@@ -149,6 +158,9 @@
149
158
  },
150
159
  "platform_ufo_display_content_track_occurrence": {
151
160
  "type": "boolean"
161
+ },
162
+ "platform_ufo_enable_late_mutation_label_stacks": {
163
+ "type": "boolean"
152
164
  }
153
165
  }
154
166
  }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/react-ufo/trace-hover",
3
+ "main": "../dist/cjs/trace-hover/index.js",
4
+ "module": "../dist/esm/trace-hover/index.js",
5
+ "module:es2019": "../dist/es2019/trace-hover/index.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/trace-hover/index.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/trace-hover/index.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }