@atlaskit/react-ufo 4.5.12 → 4.6.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/config/index.js +19 -6
- package/dist/cjs/create-payload/index.js +3 -1
- package/dist/cjs/interaction-metrics/index.js +2 -1
- package/dist/cjs/segment/segment.js +19 -2
- package/dist/cjs/trace-hover/index.js +12 -0
- package/dist/cjs/trace-interaction/internal/trace-ufo-interaction.js +23 -6
- package/dist/cjs/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +14 -3
- package/dist/es2019/config/index.js +13 -0
- package/dist/es2019/create-payload/index.js +3 -0
- package/dist/es2019/interaction-metrics/index.js +2 -1
- package/dist/es2019/segment/segment.js +21 -4
- package/dist/es2019/trace-hover/index.js +5 -0
- package/dist/es2019/trace-interaction/internal/trace-ufo-interaction.js +24 -7
- package/dist/es2019/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +15 -1
- package/dist/esm/config/index.js +18 -6
- package/dist/esm/create-payload/index.js +3 -1
- package/dist/esm/interaction-metrics/index.js +2 -1
- package/dist/esm/segment/segment.js +21 -4
- package/dist/esm/trace-hover/index.js +5 -0
- package/dist/esm/trace-interaction/internal/trace-ufo-interaction.js +24 -7
- package/dist/esm/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +14 -3
- package/dist/types/common/common/types.d.ts +5 -0
- package/dist/types/common/react-ufo-payload-schema.d.ts +2 -1
- package/dist/types/config/index.d.ts +2 -0
- package/dist/types/create-payload/index.d.ts +512 -0
- package/dist/types/trace-hover/index.d.ts +2 -0
- package/dist/types-ts4.5/common/common/types.d.ts +5 -0
- package/dist/types-ts4.5/common/react-ufo-payload-schema.d.ts +2 -1
- package/dist/types-ts4.5/config/index.d.ts +2 -0
- package/dist/types-ts4.5/create-payload/index.d.ts +512 -0
- package/dist/types-ts4.5/trace-hover/index.d.ts +2 -0
- package/package.json +7 -1
- package/trace-hover/package.json +15 -0
|
@@ -90,6 +90,10 @@ export type ResponsivenessMetric = {
|
|
|
90
90
|
visuallyComplete?: number;
|
|
91
91
|
totalBlockingTime?: number;
|
|
92
92
|
};
|
|
93
|
+
export type MinorInteraction = {
|
|
94
|
+
name: string;
|
|
95
|
+
startTime: DOMHighResTimeStamp;
|
|
96
|
+
};
|
|
93
97
|
export interface InteractionMetrics {
|
|
94
98
|
id: string;
|
|
95
99
|
start: number;
|
|
@@ -170,6 +174,7 @@ export interface InteractionMetrics {
|
|
|
170
174
|
unknownElementHierarchy?: string;
|
|
171
175
|
hold3pActive?: Map<string, HoldActive>;
|
|
172
176
|
hold3pInfo?: HoldInfo[];
|
|
177
|
+
minorInteractions?: MinorInteraction[];
|
|
173
178
|
}
|
|
174
179
|
export type LoadProfilerEventInfo = {
|
|
175
180
|
identifier: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type createPayloads } from '../create-payload';
|
|
2
2
|
import { type LabelStack } from '../interaction-context';
|
|
3
3
|
import { type VCObserver } from '../vc/vc-observer';
|
|
4
|
-
import type { AbortReasonType, ApdexType, HoldActive, InteractionError, InteractionType, SegmentInfo } from './common/types';
|
|
4
|
+
import type { AbortReasonType, ApdexType, HoldActive, InteractionError, InteractionType, MinorInteraction, SegmentInfo } from './common/types';
|
|
5
5
|
import type { RevisionPayload } from './vc/types';
|
|
6
6
|
type ExtractPromise<T> = T extends Promise<infer U> ? U : never;
|
|
7
7
|
export type PageVisibility = 'hidden' | 'mixed' | 'visible';
|
|
@@ -160,6 +160,7 @@ export type ReactUFOPayload = {
|
|
|
160
160
|
holdActive: HoldActive[];
|
|
161
161
|
unknownElementName?: string;
|
|
162
162
|
unknownElementHierarchy?: string;
|
|
163
|
+
minorInteractions?: MinorInteraction[];
|
|
163
164
|
};
|
|
164
165
|
'ufo:vc:rev': RevisionPayload;
|
|
165
166
|
'ufo:vc:ratios': Record<string, number>;
|
|
@@ -59,6 +59,7 @@ export type ReactHydrationStats = {
|
|
|
59
59
|
export type Config = {
|
|
60
60
|
readonly enabled?: boolean;
|
|
61
61
|
readonly interactionTimeout?: Record<string, number>;
|
|
62
|
+
readonly minorInteractions?: string[];
|
|
62
63
|
readonly doNotAbortActivePressInteraction?: string[];
|
|
63
64
|
readonly doNotAbortActivePressInteractionOnTransition?: string[];
|
|
64
65
|
readonly awaitBM3TTI?: string[];
|
|
@@ -169,6 +170,7 @@ type ValidTypingMethod = (typeof validTypingMethods)[number];
|
|
|
169
170
|
export declare function getTypingPerformanceTracingMethod(): ValidTypingMethod;
|
|
170
171
|
export declare function getAwaitBM3TTIList(): string[];
|
|
171
172
|
export declare function getUfoNameOverrides(): UFONameOverride | undefined;
|
|
173
|
+
export declare function getMinorInteractions(): string[] | undefined;
|
|
172
174
|
export declare function getDoNotAbortActivePressInteraction(): string[] | undefined;
|
|
173
175
|
export declare function getDoNotAbortActivePressInteractionOnTransition(): string[] | undefined;
|
|
174
176
|
export declare const CLEANUP_TIMEOUT: number;
|