@atlaskit/react-ufo 3.6.7 → 3.7.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.
@@ -23,7 +23,6 @@ var AsyncSegmentHighlight = /*#__PURE__*/lazy(function () {
23
23
  };
24
24
  });
25
25
  });
26
- var noopIdMap = new Map();
27
26
 
28
27
  // KARL TODO: finish self profiling
29
28
  /** A portion of the page we apply measurement to */
@@ -35,19 +34,12 @@ export default function UFOSegment(_ref) {
35
34
  mode = _ref$mode === void 0 ? 'single' : _ref$mode;
36
35
  var parentContext = useContext(UFOInteractionContext);
37
36
  var segmentIdMap = useMemo(function () {
38
- if (!fg('platform_ufo_segment_list_mode')) {
39
- // just in case we cause rerender issues, use noop map
40
- return noopIdMap;
41
- }
42
37
  if (!(parentContext !== null && parentContext !== void 0 && parentContext.segmentIdMap)) {
43
38
  return new Map();
44
39
  }
45
40
  return parentContext.segmentIdMap;
46
41
  }, [parentContext]);
47
42
  var segmentId = useMemo(function () {
48
- if (!fg('platform_ufo_segment_list_mode')) {
49
- return generateId();
50
- }
51
43
  if (mode === 'single') {
52
44
  return generateId();
53
45
  }
@@ -82,6 +82,12 @@ export interface Redirect {
82
82
  fromInteractionName: string;
83
83
  time: number;
84
84
  }
85
+ export type ResponsivenessMetric = {
86
+ experimentalInputToNextPaint?: number;
87
+ inputDelay?: number;
88
+ visuallyComplete?: number;
89
+ totalBlockingTime?: number;
90
+ };
85
91
  export interface InteractionMetrics {
86
92
  id: string;
87
93
  start: number;
@@ -138,6 +144,7 @@ export interface InteractionMetrics {
138
144
  * ]
139
145
  * ```
140
146
  */
147
+ responsiveness?: ResponsivenessMetric;
141
148
  labelStack: LabelStack | null;
142
149
  routeName: string | null;
143
150
  featureFlags?: {