@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.
@@ -6,6 +6,8 @@ import PostInteractionLog from './post-interaction-log';
6
6
  export type { InteractionMetrics, LifecycleMarkType, Span, Mark, MarkType, InteractionType, AbortReasonType, ReactProfilerTiming, RequestInfo, ApdexType, CustomData, CustomTiming, InteractionError, };
7
7
  export declare const postInteractionLog: PostInteractionLog;
8
8
  export declare function getActiveInteraction(): InteractionMetrics | undefined;
9
+ export declare const getPerformanceObserver: () => PerformanceObserver;
10
+ export declare const setInteractionPerformanceEvent: (entry: PerformanceEventTiming) => void;
9
11
  export declare function remove(interactionId: string): void;
10
12
  export declare function updatePageLoadInteractionName(ufoName: string, routeName?: string | null | undefined): void;
11
13
  export declare function addMetadata(interactionId: string, data: Record<string, unknown>): void;
@@ -0,0 +1,2 @@
1
+ export declare const getPerformanceObserver: () => PerformanceObserver;
2
+ export declare const setInteractionPerformanceEvent: (entry: PerformanceEventTiming) => void;
@@ -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?: {