@atlaskit/react-ufo 4.10.1 → 4.11.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 +16 -0
- package/dist/cjs/create-experimental-interaction-metrics-payload/index.js +10 -7
- package/dist/cjs/create-payload/utils/get-vc-metrics.js +13 -9
- package/dist/cjs/interaction-metrics/index.js +6 -4
- package/dist/cjs/interaction-metrics/post-interaction-log.js +13 -6
- package/dist/cjs/vc/index.js +4 -1
- package/dist/cjs/vc/vc-observer-new/index.js +10 -4
- package/dist/cjs/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +11 -18
- package/dist/es2019/create-experimental-interaction-metrics-payload/index.js +5 -2
- package/dist/es2019/create-payload/utils/get-vc-metrics.js +5 -2
- package/dist/es2019/interaction-metrics/index.js +6 -4
- package/dist/es2019/interaction-metrics/post-interaction-log.js +7 -1
- package/dist/es2019/vc/index.js +4 -1
- package/dist/es2019/vc/vc-observer-new/index.js +11 -2
- package/dist/es2019/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +10 -15
- package/dist/esm/create-experimental-interaction-metrics-payload/index.js +10 -7
- package/dist/esm/create-payload/utils/get-vc-metrics.js +13 -9
- package/dist/esm/interaction-metrics/index.js +6 -4
- package/dist/esm/interaction-metrics/post-interaction-log.js +13 -6
- package/dist/esm/vc/index.js +4 -1
- package/dist/esm/vc/vc-observer-new/index.js +10 -4
- package/dist/esm/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +11 -18
- package/dist/types/common/common/types.d.ts +1 -0
- package/dist/types/create-interaction-extra-metrics-payload/index.d.ts +1 -0
- package/dist/types/create-payload/index.d.ts +384 -0
- package/dist/types/interaction-metrics/index.d.ts +2 -2
- package/dist/types/vc/types.d.ts +4 -0
- package/dist/types/vc/vc-observer/getVCRevisionDebugDetails.d.ts +2 -0
- package/dist/types/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +1 -1
- package/dist/types/vc/vc-observer-new/metric-calculator/types.d.ts +4 -0
- package/dist/types/vc/vc-observer-new/types.d.ts +4 -0
- package/dist/types-ts4.5/common/common/types.d.ts +1 -0
- package/dist/types-ts4.5/create-interaction-extra-metrics-payload/index.d.ts +1 -0
- package/dist/types-ts4.5/create-payload/index.d.ts +384 -0
- package/dist/types-ts4.5/interaction-metrics/index.d.ts +2 -2
- package/dist/types-ts4.5/vc/types.d.ts +4 -0
- package/dist/types-ts4.5/vc/vc-observer/getVCRevisionDebugDetails.d.ts +2 -0
- package/dist/types-ts4.5/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +1 -1
- package/dist/types-ts4.5/vc/vc-observer-new/metric-calculator/types.d.ts +4 -0
- package/dist/types-ts4.5/vc/vc-observer-new/types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -35,8 +35,8 @@ export declare const ModuleLoadingProfiler: {
|
|
|
35
35
|
placeholderFallBackMounted(id: string, moduleId: string): void;
|
|
36
36
|
placeholderFallBackUnmounted(id: string): void;
|
|
37
37
|
};
|
|
38
|
-
export declare function addError(interactionId: string, name: string, labelStack: LabelStack | null, errorType: string, errorMessage: string, errorStack?: string, forcedError?: boolean, errorHash?: string): void;
|
|
39
|
-
export declare function addErrorToAll(name: string, labelStack: LabelStack | null, errorType: string, errorMessage: string, errorStack?: string, errorHash?: string): void;
|
|
38
|
+
export declare function addError(interactionId: string, name: string, labelStack: LabelStack | null, errorType: string, errorMessage: string, errorStack?: string, forcedError?: boolean, errorHash?: string, errorStatusCode?: number): void;
|
|
39
|
+
export declare function addErrorToAll(name: string, labelStack: LabelStack | null, errorType: string, errorMessage: string, errorStack?: string, errorHash?: string, errorStatusCode?: number): void;
|
|
40
40
|
export declare function addProfilerTimings(interactionId: string, labelStack: LabelStack, type: 'mount' | 'update' | 'nested-update', actualDuration: number, baseDuration: number, startTime: number, commitTime: number): void;
|
|
41
41
|
export declare function sinkInteractionHandler(sinkFn: (id: string, data: InteractionMetrics) => void): void;
|
|
42
42
|
export declare function sinkPostInteractionLogHandler(sinkFn: (output: PostInteractionLogOutput) => void | Promise<void>): void;
|
package/dist/types/vc/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { VCRawDataType, VCResult } from '../common/vc/types';
|
|
2
|
+
import type { AbortReasonType, InteractionType } from '../interaction-metrics';
|
|
2
3
|
export type GetVCResultType = {
|
|
3
4
|
start: number;
|
|
4
5
|
stop: number;
|
|
@@ -13,6 +14,9 @@ export type GetVCResultType = {
|
|
|
13
14
|
includeSSRRatio?: boolean;
|
|
14
15
|
include3p?: boolean;
|
|
15
16
|
excludeSmartAnswersInSearch?: boolean;
|
|
17
|
+
interactionType: InteractionType;
|
|
18
|
+
isPageVisible: boolean;
|
|
19
|
+
interactionAbortReason?: AbortReasonType;
|
|
16
20
|
};
|
|
17
21
|
export type SelectorConfig = {
|
|
18
22
|
id: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { InteractionType } from '../../common/common/types';
|
|
1
2
|
import type { ComponentsLogType, VCAbortReason, VCEntryType, VCIgnoreReason } from '../../common/vc/types';
|
|
2
3
|
import type { VCObserverEntryType } from '../vc-observer-new/types';
|
|
3
4
|
export type VCLogEntry = {
|
|
@@ -21,6 +22,7 @@ export interface VCRevisionDebugDetails {
|
|
|
21
22
|
abortTimestamp?: number;
|
|
22
23
|
vcLogs: VCLogEntry[];
|
|
23
24
|
interactionId?: string;
|
|
25
|
+
interactionType?: InteractionType;
|
|
24
26
|
}
|
|
25
27
|
export declare function getVCRevisionDebugDetails({ revision, isClean, abortReason, VCEntries, componentsLog, interactionId, }: {
|
|
26
28
|
revision: string;
|
|
@@ -25,5 +25,5 @@ export default abstract class AbstractVCCalculatorBase implements VCCalculator {
|
|
|
25
25
|
private calculateRatios;
|
|
26
26
|
private getLabelStacks;
|
|
27
27
|
private calculateWithDebugInfo;
|
|
28
|
-
calculate({ startTime, stopTime, orderedEntries, interactionId, isPostInteraction, include3p, excludeSmartAnswersInSearch, }: VCCalculatorParam): Promise<RevisionPayloadEntry | undefined>;
|
|
28
|
+
calculate({ startTime, stopTime, orderedEntries, interactionId, isPostInteraction, include3p, excludeSmartAnswersInSearch, interactionType, isPageVisible, interactionAbortReason, }: VCCalculatorParam): Promise<RevisionPayloadEntry | undefined>;
|
|
29
29
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AbortReasonType, InteractionType } from '../../../common/common/types';
|
|
1
2
|
import type { RevisionPayloadEntry } from '../../../common/vc/types';
|
|
2
3
|
import type { VCObserverEntry } from '../types';
|
|
3
4
|
export type VCCalculatorParam = {
|
|
@@ -8,6 +9,9 @@ export type VCCalculatorParam = {
|
|
|
8
9
|
isPostInteraction: boolean;
|
|
9
10
|
include3p?: boolean;
|
|
10
11
|
excludeSmartAnswersInSearch?: boolean;
|
|
12
|
+
interactionType: InteractionType;
|
|
13
|
+
isPageVisible: boolean;
|
|
14
|
+
interactionAbortReason?: AbortReasonType;
|
|
11
15
|
};
|
|
12
16
|
export interface VCCalculator {
|
|
13
17
|
calculate(param: VCCalculatorParam): Promise<RevisionPayloadEntry | undefined>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AbortReasonType, InteractionType } from '../../common/common/types';
|
|
1
2
|
import type { ObservedWindowEvent } from './window-event-observer';
|
|
2
3
|
export type VCObserverEntryType = 'mutation:child-element' | 'mutation:remount' | 'mutation:element' | 'mutation:element-replacement' | 'mutation:display-contents-children-element' | 'mutation:attribute:no-layout-shift' | 'mutation:attribute:non-visual-style' | 'mutation:attribute' | 'mutation:media' | 'mutation:rll-placeholder' | 'mutation:third-party-element' | 'mutation:ssr-placeholder' | 'layout-shift' | 'window:event' | 'ssr-hydration' | 'unknown';
|
|
3
4
|
export type ViewportEntryData = {
|
|
@@ -30,4 +31,7 @@ export type VCObserverGetVCResultParam = {
|
|
|
30
31
|
ssr?: number;
|
|
31
32
|
include3p?: boolean;
|
|
32
33
|
excludeSmartAnswersInSearch?: boolean;
|
|
34
|
+
interactionType: InteractionType;
|
|
35
|
+
isPageVisible: boolean;
|
|
36
|
+
interactionAbortReason?: AbortReasonType;
|
|
33
37
|
};
|