@atlaskit/react-ufo 2.4.5 → 2.4.7
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 +25 -0
- package/create-experimental-interaction-metrics-payload/package.json +15 -0
- package/dist/cjs/config/index.js +40 -18
- package/dist/cjs/create-experimental-interaction-metrics-payload/index.js +89 -0
- package/dist/cjs/create-payload/common/utils/index.js +85 -1
- package/dist/cjs/create-payload/index.js +49 -85
- package/dist/cjs/create-post-interaction-log-payload/index.js +1 -4
- package/dist/cjs/interaction-metrics/common/constants.js +7 -1
- package/dist/cjs/interaction-metrics/common/index.js +151 -0
- package/dist/cjs/interaction-metrics/index.js +139 -204
- package/dist/cjs/interaction-metrics/post-interaction-log.js +6 -2
- package/dist/cjs/interaction-metrics-init/index.js +27 -9
- package/dist/cjs/load-hold/UFOLoadHold.js +3 -4
- package/dist/cjs/segment/segment.js +7 -9
- package/dist/cjs/trace-pageload/index.js +2 -1
- package/dist/cjs/vc/vc-observer/observers/index.js +1 -40
- package/dist/es2019/config/index.js +22 -0
- package/dist/es2019/create-experimental-interaction-metrics-payload/index.js +67 -0
- package/dist/es2019/create-payload/common/utils/index.js +86 -1
- package/dist/es2019/create-payload/index.js +40 -81
- package/dist/es2019/create-post-interaction-log-payload/index.js +1 -4
- package/dist/es2019/interaction-metrics/common/constants.js +6 -0
- package/dist/es2019/interaction-metrics/common/index.js +103 -0
- package/dist/es2019/interaction-metrics/index.js +92 -129
- package/dist/es2019/interaction-metrics/post-interaction-log.js +6 -2
- package/dist/es2019/interaction-metrics-init/index.js +21 -8
- package/dist/es2019/load-hold/UFOLoadHold.js +3 -4
- package/dist/es2019/segment/segment.js +6 -12
- package/dist/es2019/trace-pageload/index.js +1 -1
- package/dist/es2019/vc/vc-observer/observers/index.js +1 -20
- package/dist/esm/config/index.js +39 -18
- package/dist/esm/create-experimental-interaction-metrics-payload/index.js +81 -0
- package/dist/esm/create-payload/common/utils/index.js +80 -1
- package/dist/esm/create-payload/index.js +45 -83
- package/dist/esm/create-post-interaction-log-payload/index.js +1 -4
- package/dist/esm/interaction-metrics/common/constants.js +6 -0
- package/dist/esm/interaction-metrics/common/index.js +132 -0
- package/dist/esm/interaction-metrics/index.js +87 -156
- package/dist/esm/interaction-metrics/post-interaction-log.js +6 -2
- package/dist/esm/interaction-metrics-init/index.js +24 -10
- package/dist/esm/load-hold/UFOLoadHold.js +3 -4
- package/dist/esm/segment/segment.js +7 -9
- package/dist/esm/trace-pageload/index.js +1 -1
- package/dist/esm/vc/vc-observer/observers/index.js +1 -40
- package/dist/types/common/common/types.d.ts +9 -5
- package/dist/types/config/index.d.ts +6 -0
- package/dist/types/create-experimental-interaction-metrics-payload/index.d.ts +31 -0
- package/dist/types/create-payload/common/utils/index.d.ts +12 -0
- package/dist/types/create-payload/index.d.ts +13 -5716
- package/dist/types/create-post-interaction-log-payload/index.d.ts +2 -0
- package/dist/types/interaction-metrics/common/constants.d.ts +31 -1
- package/dist/types/interaction-metrics/common/index.d.ts +16 -0
- package/dist/types/interaction-metrics/index.d.ts +4 -15
- package/dist/types/interaction-metrics/post-interaction-log.d.ts +1 -1
- package/dist/types/load-hold/UFOLoadHold.d.ts +1 -2
- package/dist/types/trace-pageload/index.d.ts +1 -0
- package/dist/types/vc/vc-observer/observers/index.d.ts +0 -1
- package/dist/types-ts4.5/common/common/types.d.ts +9 -5
- package/dist/types-ts4.5/config/index.d.ts +6 -0
- package/dist/types-ts4.5/create-experimental-interaction-metrics-payload/index.d.ts +31 -0
- package/dist/types-ts4.5/create-payload/common/utils/index.d.ts +12 -0
- package/dist/types-ts4.5/create-payload/index.d.ts +13 -5716
- package/dist/types-ts4.5/create-post-interaction-log-payload/index.d.ts +2 -0
- package/dist/types-ts4.5/interaction-metrics/common/constants.d.ts +31 -1
- package/dist/types-ts4.5/interaction-metrics/common/index.d.ts +16 -0
- package/dist/types-ts4.5/interaction-metrics/index.d.ts +4 -15
- package/dist/types-ts4.5/interaction-metrics/post-interaction-log.d.ts +1 -1
- package/dist/types-ts4.5/load-hold/UFOLoadHold.d.ts +1 -2
- package/dist/types-ts4.5/trace-pageload/index.d.ts +1 -0
- package/dist/types-ts4.5/vc/vc-observer/observers/index.d.ts +0 -1
- package/package.json +2 -1
|
@@ -30,6 +30,8 @@ export default function createPostInteractionLogPayload({ lastInteractionFinish,
|
|
|
30
30
|
abortReason?: import("../common").AbortReasonType | undefined;
|
|
31
31
|
abortedByInteractionName?: string | undefined;
|
|
32
32
|
routeName: string | null;
|
|
33
|
+
experimentalVC90?: number | undefined;
|
|
34
|
+
experimentalTTAI?: number | undefined;
|
|
33
35
|
};
|
|
34
36
|
revisedEndTime: number;
|
|
35
37
|
revisedTtai: number;
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
import type { InteractionMetrics } from '../../common';
|
|
1
|
+
import type { InteractionMetrics, SegmentInfo } from '../../common';
|
|
2
|
+
import type { FeatureFlagValue } from '../../feature-flags-accessed';
|
|
2
3
|
declare const interactions: Map<string, InteractionMetrics>;
|
|
4
|
+
export declare const CLEANUP_TIMEOUT: number;
|
|
5
|
+
export declare const CLEANUP_TIMEOUT_AFTER_APDEX: number;
|
|
6
|
+
export type SegmentObserver = {
|
|
7
|
+
onAdd: (segment: SegmentInfo) => void;
|
|
8
|
+
onRemove: (segment: SegmentInfo) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const interactionQueue: {
|
|
11
|
+
id: string;
|
|
12
|
+
data: InteractionMetrics;
|
|
13
|
+
}[];
|
|
14
|
+
export declare const segmentCache: Map<string, SegmentInfo>;
|
|
15
|
+
export declare const segmentObservers: SegmentObserver[];
|
|
16
|
+
export declare const moduleLoadingRequests: Record<string, {
|
|
17
|
+
start: number;
|
|
18
|
+
timeoutId: ReturnType<typeof setTimeout> | number | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
declare global {
|
|
21
|
+
interface Window {
|
|
22
|
+
__REACT_UFO_ENABLE_PERF_TRACING?: boolean;
|
|
23
|
+
__UFO_COMPACT_PAYLOAD__?: boolean;
|
|
24
|
+
__CRITERION__?: {
|
|
25
|
+
addFeatureFlagAccessed?: (flagName: string, flagValue: FeatureFlagValue) => void;
|
|
26
|
+
addUFOHold?: (id: string, name: string, labelStack: string, startTime: number) => void;
|
|
27
|
+
removeUFOHold?: (id: string) => void;
|
|
28
|
+
getFeatureFlagOverride?: (flagName: string) => boolean | undefined;
|
|
29
|
+
getExperimentValueOverride?: <T>(experimentName: string, parameterName: string) => T;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
3
33
|
export default interactions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { InteractionMetrics } from '../../common';
|
|
2
|
+
import type { LabelStack, SegmentLabel } from '../../interaction-context';
|
|
3
|
+
import { type SegmentObserver } from './constants';
|
|
4
|
+
export declare function isPerformanceTracingEnabled(): boolean;
|
|
5
|
+
export declare function labelStackToString(labelStack: LabelStack | null | undefined, name?: string): string;
|
|
6
|
+
export declare function labelStackToIdString(labelStack: LabelStack | null | undefined): string | undefined;
|
|
7
|
+
export declare function addSegmentObserver(observer: SegmentObserver): void;
|
|
8
|
+
export declare function removeSegmentObserver(observer: SegmentObserver): void;
|
|
9
|
+
export declare function addHoldCriterion(id: string, labelStack: LabelStack, name: string, startTime: number): void;
|
|
10
|
+
export declare function removeHoldCriterion(id: string): void;
|
|
11
|
+
export declare const pushToQueue: (id: string, data: InteractionMetrics) => void;
|
|
12
|
+
export declare function callCleanUpCallbacks(interaction: InteractionMetrics): void;
|
|
13
|
+
export declare function reactProfilerTimingMap(data: InteractionMetrics): void;
|
|
14
|
+
export declare function callCancelCallbacks(interaction: InteractionMetrics): void;
|
|
15
|
+
export declare function isSegmentLabel(obj: any): obj is SegmentLabel;
|
|
16
|
+
export declare function getSegmentCacheKey(labelStack: LabelStack): string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { AbortReasonType, ApdexType, BM3Event, CustomData, CustomTiming, InteractionError, InteractionMetrics, InteractionType, LifecycleMarkType, LoadProfilerEventInfo, Mark, MarkType, PostInteractionLogOutput, ReactProfilerTiming, RequestInfo, Span, SpanType } from '../common';
|
|
2
|
+
import { ExperimentalInteractionMetrics } from '../create-experimental-interaction-metrics-payload';
|
|
2
3
|
import { type TraceIdContext } from '../experience-trace-id-context';
|
|
3
|
-
import { type FeatureFlagValue } from '../feature-flags-accessed';
|
|
4
4
|
import type { LabelStack } from '../interaction-context';
|
|
5
5
|
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
|
+
export declare const experimentalInteractionLog: ExperimentalInteractionMetrics;
|
|
8
9
|
export declare function getActiveInteraction(): InteractionMetrics | undefined;
|
|
9
10
|
export declare function remove(interactionId: string): void;
|
|
10
11
|
export declare function updatePageLoadInteractionName(ufoName: string, routeName?: string | null | undefined): void;
|
|
@@ -18,7 +19,7 @@ export declare function addSpanToAll(type: SpanType, name: string, labelStack: L
|
|
|
18
19
|
export declare function addPreload(moduleId: string, timestamp: number): void;
|
|
19
20
|
export declare function addLoad(identifier: string, start: number, end: number): void;
|
|
20
21
|
export declare function extractModuleName(input: string): string;
|
|
21
|
-
export declare function addHold(interactionId: string, labelStack: LabelStack, name: string): () => void;
|
|
22
|
+
export declare function addHold(interactionId: string, labelStack: LabelStack, name: string, experimental: boolean): () => void;
|
|
22
23
|
export declare function addHoldByID(interactionId: string, labelStack: LabelStack, name: string, id: string, ignoreOnSubmit?: boolean): () => void;
|
|
23
24
|
export declare function removeHoldByID(interactionId: string, id: string): void;
|
|
24
25
|
export declare function getCurrentInteractionType(interactionId: string): InteractionType | null;
|
|
@@ -33,6 +34,7 @@ export declare function addError(interactionId: string, name: string, labelStack
|
|
|
33
34
|
export declare function addErrorToAll(name: string, labelStack: LabelStack | null, errorType: string, errorMessage: string, errorStack?: string): void;
|
|
34
35
|
export declare const addProfilerTimings: (interactionId: string, labelStack: LabelStack, type: 'mount' | 'update' | 'nested-update', actualDuration: number, baseDuration: number, startTime: number, commitTime: number) => void;
|
|
35
36
|
export declare const sinkInteractionHandler: (sinkFn: (id: string, data: InteractionMetrics) => void) => void;
|
|
37
|
+
export declare const sinkExperimentalHandler: (sinkFn: (interactionId: string, interaction: InteractionMetrics) => void | Promise<void>) => void;
|
|
36
38
|
export declare const sinkPostInteractionLogHandler: (sinkFn: (output: PostInteractionLogOutput) => void | Promise<void>) => void;
|
|
37
39
|
export declare function tryComplete(interactionId: string, endTime?: number): void;
|
|
38
40
|
export declare function abort(interactionId: string, abortReason: AbortReasonType): void;
|
|
@@ -52,18 +54,5 @@ export declare function addRequestInfo(interactionId: string, labelStack: LabelS
|
|
|
52
54
|
export declare function addSegment(labelStack: LabelStack): void;
|
|
53
55
|
export declare function removeSegment(labelStack: LabelStack): void;
|
|
54
56
|
export declare function addRedirect(interactionId: string, fromUfoName: string, nextUfoName: string, nextRouteName: string, time: number): void;
|
|
55
|
-
declare global {
|
|
56
|
-
interface Window {
|
|
57
|
-
__REACT_UFO_ENABLE_PERF_TRACING?: boolean;
|
|
58
|
-
__UFO_COMPACT_PAYLOAD__?: boolean;
|
|
59
|
-
__CRITERION__?: {
|
|
60
|
-
addFeatureFlagAccessed?: (flagName: string, flagValue: FeatureFlagValue) => void;
|
|
61
|
-
addUFOHold?: (id: string, name: string, labelStack: string, startTime: number) => void;
|
|
62
|
-
removeUFOHold?: (id: string) => void;
|
|
63
|
-
getFeatureFlagOverride?: (flagName: string) => boolean | undefined;
|
|
64
|
-
getExperimentValueOverride?: <T>(experimentName: string, parameterName: string) => T;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
57
|
export declare const interactionSpans: Span[];
|
|
69
58
|
export declare function addCustomSpans(name: string, start: number, end?: number, size?: number, labelStack?: LabelStack): void;
|
|
@@ -61,7 +61,7 @@ export default class PostInteractionLog {
|
|
|
61
61
|
* Basic details about the finished interaction will be recorded
|
|
62
62
|
* A timeout will be setup to send the post interaction observation after some time.
|
|
63
63
|
*/
|
|
64
|
-
onInteractionComplete({ ufoName, start, end, id, abortReason, abortedByInteractionName, routeName, type, }: LastInteractionFinishInfo): void;
|
|
64
|
+
onInteractionComplete({ ufoName, start, end, id, abortReason, abortedByInteractionName, routeName, type, experimentalTTAI, experimentalVC90, }: LastInteractionFinishInfo): void;
|
|
65
65
|
/**
|
|
66
66
|
* This fn should be invoked when a React render happens after interaction has finished
|
|
67
67
|
*/
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
export declare const AWAITING_PAGELOAD_NAME = "awaiting_pageload_name";
|
|
1
2
|
export default function traceUFOPageLoad(ufoName?: string | null | undefined, routeName?: string | null | undefined): void;
|
|
2
3
|
export declare function updatePageloadName(ufoName: string, routeName?: string | null | undefined): void;
|
|
@@ -33,7 +33,6 @@ export declare class Observers implements BrowserObservers {
|
|
|
33
33
|
setReactRootRenderStop(stopTime?: number): void;
|
|
34
34
|
private observeElement;
|
|
35
35
|
private getMutationObserver;
|
|
36
|
-
private getStyleDisplay;
|
|
37
36
|
private getElementName;
|
|
38
37
|
private getIntersectionObserver;
|
|
39
38
|
private measureStart;
|
|
@@ -63,7 +63,7 @@ export interface SegmentInfo {
|
|
|
63
63
|
labelStack: LabelStack;
|
|
64
64
|
}
|
|
65
65
|
export interface CustomData {
|
|
66
|
-
[key: string]: null |
|
|
66
|
+
[key: string]: null | string | number | boolean | undefined | CustomData | Record<string, CustomData>;
|
|
67
67
|
}
|
|
68
68
|
export type CustomTiming = Record<string, {
|
|
69
69
|
startTime: number;
|
|
@@ -104,7 +104,9 @@ export interface InteractionMetrics {
|
|
|
104
104
|
labelStack: LabelStack;
|
|
105
105
|
})[];
|
|
106
106
|
holdInfo: HoldInfo[];
|
|
107
|
+
holdExpInfo: HoldInfo[];
|
|
107
108
|
holdActive: Map<string, HoldActive>;
|
|
109
|
+
holdExpActive: Map<string, HoldActive>;
|
|
108
110
|
reactProfilerTimings: ReactProfilerTiming[];
|
|
109
111
|
measureStart: number;
|
|
110
112
|
rate: number;
|
|
@@ -115,11 +117,11 @@ export interface InteractionMetrics {
|
|
|
115
117
|
abortReason?: AbortReasonType;
|
|
116
118
|
abortedByInteractionName?: string;
|
|
117
119
|
/**
|
|
118
|
-
* Apdex is legacy performance measurement where it is
|
|
120
|
+
* Apdex is a legacy performance measurement where it is
|
|
119
121
|
* capturing TTI at arbitrary point in the code (bm3/UFOv1)
|
|
120
122
|
*
|
|
121
123
|
* We are intercepting its values now just so we can use it for
|
|
122
|
-
* topline metric, but should encourage teams adopt TTAI
|
|
124
|
+
* topline metric, but should encourage teams to adopt TTAI
|
|
123
125
|
*
|
|
124
126
|
* This field might be ignored/dropped in the future.
|
|
125
127
|
*/
|
|
@@ -150,6 +152,8 @@ export interface InteractionMetrics {
|
|
|
150
152
|
trace: TraceIdContext | null;
|
|
151
153
|
legacyMetrics?: BM3Event[];
|
|
152
154
|
vc?: VCRawDataType | null;
|
|
155
|
+
experimentalTTAI?: number;
|
|
156
|
+
experimentalVC90?: number;
|
|
153
157
|
}
|
|
154
158
|
export type LoadProfilerEventInfo = {
|
|
155
159
|
identifier: string;
|
|
@@ -162,7 +166,7 @@ export interface LazyLoadProfilerContext {
|
|
|
162
166
|
addLoad(identifier: string, start: number, end: number): void;
|
|
163
167
|
}
|
|
164
168
|
export interface EnhancedUFOInteractionContextType extends UFOInteractionContextType, RelayMetricsRecorder, LazyLoadProfilerContext {
|
|
165
|
-
_internalHold(labelStack: LabelStack, name: string): void | (() => void);
|
|
169
|
+
_internalHold(labelStack: LabelStack, name: string, experimental: boolean): void | (() => void);
|
|
166
170
|
_internalHoldByID(labelStack: LabelStack, id: string, name: string, remove: boolean): void | (() => void);
|
|
167
171
|
addHoldByID(labelStack: LabelStack, id: string, name?: string): void;
|
|
168
172
|
removeHoldByID(labelStack: LabelStack, id: string, name?: string): void;
|
|
@@ -191,7 +195,7 @@ export type BM3Event = {
|
|
|
191
195
|
pageVisibleState?: string;
|
|
192
196
|
type: string;
|
|
193
197
|
};
|
|
194
|
-
export type LastInteractionFinishInfo = Pick<InteractionMetrics, 'ufoName' | 'start' | 'end' | 'id' | 'abortReason' | 'abortedByInteractionName' | 'routeName' | 'type'>;
|
|
198
|
+
export type LastInteractionFinishInfo = Pick<InteractionMetrics, 'ufoName' | 'start' | 'end' | 'id' | 'abortReason' | 'abortedByInteractionName' | 'routeName' | 'type' | 'experimentalVC90' | 'experimentalTTAI'>;
|
|
195
199
|
export type PostInteractionLogOutput = {
|
|
196
200
|
lastInteractionFinish: LastInteractionFinishInfo;
|
|
197
201
|
reactProfilerTimings?: ReactProfilerTiming[];
|
|
@@ -72,6 +72,11 @@ export type Config = {
|
|
|
72
72
|
readonly rates?: Rates;
|
|
73
73
|
readonly kind?: Record<InteractionType, number>;
|
|
74
74
|
};
|
|
75
|
+
readonly experimentalInteractionMetrics?: {
|
|
76
|
+
readonly enabled?: boolean;
|
|
77
|
+
readonly rates?: Rates;
|
|
78
|
+
readonly kind?: Record<InteractionType, number>;
|
|
79
|
+
};
|
|
75
80
|
readonly enableSegmentHighlighting?: boolean;
|
|
76
81
|
readonly enableAdditionalPerformanceMarks?: boolean;
|
|
77
82
|
readonly shouldCalculateLighthouseMetricsFromTTAI?: boolean;
|
|
@@ -85,6 +90,7 @@ export type Config = {
|
|
|
85
90
|
export declare function setUFOConfig(newConfig: Config): void;
|
|
86
91
|
export declare function getConfig(): Config | undefined;
|
|
87
92
|
export declare function getInteractionRate(name: string, interactionKind: InteractionKind): number;
|
|
93
|
+
export declare function getExperimentalInteractionRate(name: string, interactionType: InteractionType): number;
|
|
88
94
|
export declare function getPostInteractionRate(name: string, interactionType: InteractionType): number;
|
|
89
95
|
export declare function getCapabilityRate(capability: Capability): number;
|
|
90
96
|
declare const validTypingMethods: readonly [
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { InteractionMetrics } from '../common';
|
|
2
|
+
import { VCObserver, type VCObserverOptions } from '../vc/vc-observer';
|
|
3
|
+
export declare class ExperimentalInteractionMetrics {
|
|
4
|
+
/**
|
|
5
|
+
* Handler function to process / send the observation data
|
|
6
|
+
*/
|
|
7
|
+
sinkHandlerFn: (interactionId: string, interactionMetrics: InteractionMetrics) => void | Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Set the fn that would be invoked to process / send the observation data
|
|
10
|
+
*/
|
|
11
|
+
sinkHandler(sinkHandlerFn: (interactionId: string, interaction: InteractionMetrics) => void | Promise<void>): void;
|
|
12
|
+
onInteractionComplete(interactionId: string, data: InteractionMetrics, endTime?: number): void;
|
|
13
|
+
/**
|
|
14
|
+
* independent VC observer that observes until `custom.post-interaction-logs` event is sent
|
|
15
|
+
*/
|
|
16
|
+
vcObserver: VCObserver | null;
|
|
17
|
+
initializeVCObserver(options: VCObserverOptions): this;
|
|
18
|
+
startVCObserver({ startTime }: {
|
|
19
|
+
startTime: number;
|
|
20
|
+
}): void;
|
|
21
|
+
}
|
|
22
|
+
export declare function createExperimentalInteractionMetricsPayload(interactionId: string, interaction: InteractionMetrics): {
|
|
23
|
+
actionSubject: string;
|
|
24
|
+
action: string;
|
|
25
|
+
eventType: string;
|
|
26
|
+
source: string;
|
|
27
|
+
tags: string[];
|
|
28
|
+
attributes: {
|
|
29
|
+
properties: any;
|
|
30
|
+
};
|
|
31
|
+
} | null;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { InteractionMetrics } from '../../../common';
|
|
2
|
+
import { type Config } from '../../../config';
|
|
1
3
|
import type { LabelStack, SegmentLabel } from '../../../interaction-context';
|
|
2
4
|
export type SegmentItem = {
|
|
3
5
|
n: string;
|
|
@@ -15,3 +17,13 @@ export declare function optimizeLabelStack(labelStack: LabelStack): string | {
|
|
|
15
17
|
s?: string | undefined;
|
|
16
18
|
n: string;
|
|
17
19
|
}[];
|
|
20
|
+
export declare const getInteractionStatus: (interaction: InteractionMetrics) => {
|
|
21
|
+
readonly originalInteractionStatus: "ABORTED" | "SUCCEEDED";
|
|
22
|
+
readonly overrideStatus: "ABORTED" | "SUCCEEDED";
|
|
23
|
+
};
|
|
24
|
+
export declare const getPageVisibilityUpToTTAI: (interaction: InteractionMetrics) => import("../../../hidden-timing").PageVisibility;
|
|
25
|
+
export declare const calculateVCMetrics: (interaction: InteractionMetrics, prefix: string, getVCResultFn: (props: any) => any) => any;
|
|
26
|
+
export declare function getSSRDoneTimeValue(config: Config | undefined): number | undefined;
|
|
27
|
+
export declare const getVCMetrics: (interaction: InteractionMetrics) => any;
|
|
28
|
+
export declare const getExperimentalVCMetrics: (interaction: InteractionMetrics) => any;
|
|
29
|
+
export declare const getTTAI: (interaction: InteractionMetrics) => number | undefined;
|