@atlaskit/react-ufo 3.13.13 → 3.13.14
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 +11 -0
- package/dist/cjs/config/index.js +4 -4
- package/dist/cjs/create-payload/index.js +1 -2
- package/dist/cjs/create-payload/utils/get-ssr-done-time-value.js +1 -2
- package/dist/cjs/interaction-ignore/ufo-interaction-ignore.js +1 -2
- package/dist/cjs/interaction-metrics/index.js +10 -10
- package/dist/cjs/interaction-metrics-init/index.js +1 -2
- package/dist/cjs/label/UFOLabel.js +1 -2
- package/dist/cjs/load-hold/UFOLoadHold.js +1 -2
- package/dist/cjs/placeholder/Placeholder.js +1 -2
- package/dist/cjs/placeholder/loosely-lazy/lazy-suspense.js +1 -2
- package/dist/cjs/segment/segment-highlight.js +1 -2
- package/dist/cjs/segment/segment.js +1 -2
- package/dist/cjs/trace-transition/index.js +1 -2
- package/dist/cjs/vc/vc-observer/getVCRevisionsData.js +15 -5
- package/dist/cjs/vc/vc-observer/index.js +24 -23
- package/dist/cjs/vc/vc-observer/media-wrapper/index.js +1 -2
- package/dist/cjs/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +66 -14
- package/dist/cjs/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
- package/dist/cjs/vc/vc-observer-new/metric-calculator/percentile-calc/canvas-heatmap/index.js +2 -2
- package/dist/cjs/vc/vc-observer-new/metric-calculator/percentile-calc/index.js +1 -2
- package/dist/es2019/interaction-metrics/index.js +10 -10
- package/dist/es2019/vc/vc-observer/getVCRevisionsData.js +15 -5
- package/dist/es2019/vc/vc-observer/index.js +2 -1
- package/dist/es2019/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +30 -1
- package/dist/es2019/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
- package/dist/esm/config/index.js +4 -4
- package/dist/esm/interaction-metrics/index.js +10 -10
- package/dist/esm/vc/vc-observer/getVCRevisionsData.js +15 -5
- package/dist/esm/vc/vc-observer/index.js +24 -23
- package/dist/esm/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +67 -15
- package/dist/esm/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
- package/dist/esm/vc/vc-observer-new/metric-calculator/percentile-calc/canvas-heatmap/index.js +2 -2
- package/dist/types/common/vc/types.d.ts +1 -0
- package/dist/types/vc/vc-observer/getVCRevisionsData.d.ts +3 -2
- package/dist/types/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +4 -0
- package/dist/types-ts4.5/common/vc/types.d.ts +1 -0
- package/dist/types-ts4.5/vc/vc-observer/getVCRevisionsData.d.ts +3 -2
- package/dist/types-ts4.5/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts +4 -0
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InteractionMetrics } from '../../common/common/types';
|
|
2
|
-
import type { RevisionPayload } from '../../common/vc/types';
|
|
2
|
+
import type { RevisionPayload, VCRatioType } from '../../common/vc/types';
|
|
3
3
|
type CalculatedVC = {
|
|
4
4
|
VC: {
|
|
5
5
|
[key: string]: number | null;
|
|
@@ -8,7 +8,7 @@ type CalculatedVC = {
|
|
|
8
8
|
[key: string]: string[] | null;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean, isEventAborted, calculatedVC, calculatedVCNext, experienceKey, }: {
|
|
11
|
+
export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean, isEventAborted, calculatedVC, calculatedVCNext, experienceKey, ratios, }: {
|
|
12
12
|
fullPrefix?: string;
|
|
13
13
|
interaction: Pick<InteractionMetrics, 'start' | 'end'>;
|
|
14
14
|
isVCClean: boolean;
|
|
@@ -16,6 +16,7 @@ export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean,
|
|
|
16
16
|
calculatedVC: CalculatedVC;
|
|
17
17
|
calculatedVCNext: CalculatedVC;
|
|
18
18
|
experienceKey: string;
|
|
19
|
+
ratios: VCRatioType;
|
|
19
20
|
}): {
|
|
20
21
|
[x: string]: RevisionPayload;
|
|
21
22
|
};
|
|
@@ -10,6 +10,10 @@ export default abstract class AbstractVCCalculatorBase implements VCCalculator {
|
|
|
10
10
|
dirtyReason?: VCAbortReason;
|
|
11
11
|
};
|
|
12
12
|
private filterViewportEntries;
|
|
13
|
+
/**
|
|
14
|
+
* Calculate ratios for each element based on their viewport coverage.
|
|
15
|
+
*/
|
|
16
|
+
private calculateRatios;
|
|
13
17
|
private calculateBasic;
|
|
14
18
|
private calculateWithDebugInfo;
|
|
15
19
|
calculate({ startTime, stopTime, orderedEntries, interactionId, isPostInteraction, }: VCCalculatorParam): Promise<RevisionPayloadEntry | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InteractionMetrics } from '../../common/common/types';
|
|
2
|
-
import type { RevisionPayload } from '../../common/vc/types';
|
|
2
|
+
import type { RevisionPayload, VCRatioType } from '../../common/vc/types';
|
|
3
3
|
type CalculatedVC = {
|
|
4
4
|
VC: {
|
|
5
5
|
[key: string]: number | null;
|
|
@@ -8,7 +8,7 @@ type CalculatedVC = {
|
|
|
8
8
|
[key: string]: string[] | null;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean, isEventAborted, calculatedVC, calculatedVCNext, experienceKey, }: {
|
|
11
|
+
export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean, isEventAborted, calculatedVC, calculatedVCNext, experienceKey, ratios, }: {
|
|
12
12
|
fullPrefix?: string;
|
|
13
13
|
interaction: Pick<InteractionMetrics, 'start' | 'end'>;
|
|
14
14
|
isVCClean: boolean;
|
|
@@ -16,6 +16,7 @@ export declare function getVCRevisionsData({ fullPrefix, interaction, isVCClean,
|
|
|
16
16
|
calculatedVC: CalculatedVC;
|
|
17
17
|
calculatedVCNext: CalculatedVC;
|
|
18
18
|
experienceKey: string;
|
|
19
|
+
ratios: VCRatioType;
|
|
19
20
|
}): {
|
|
20
21
|
[x: string]: RevisionPayload;
|
|
21
22
|
};
|
package/dist/types-ts4.5/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export default abstract class AbstractVCCalculatorBase implements VCCalculator {
|
|
|
10
10
|
dirtyReason?: VCAbortReason;
|
|
11
11
|
};
|
|
12
12
|
private filterViewportEntries;
|
|
13
|
+
/**
|
|
14
|
+
* Calculate ratios for each element based on their viewport coverage.
|
|
15
|
+
*/
|
|
16
|
+
private calculateRatios;
|
|
13
17
|
private calculateBasic;
|
|
14
18
|
private calculateWithDebugInfo;
|
|
15
19
|
calculate({ startTime, stopTime, orderedEntries, interactionId, isPostInteraction, }: VCCalculatorParam): Promise<RevisionPayloadEntry | undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.14",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -160,14 +160,14 @@
|
|
|
160
160
|
"platform_ufo_vc_observer_new_ssr_abort_listener": {
|
|
161
161
|
"type": "boolean"
|
|
162
162
|
},
|
|
163
|
-
"platform_ufo_ignore_non_vis_attributes": {
|
|
164
|
-
"type": "boolean"
|
|
165
|
-
},
|
|
166
163
|
"platform_ufo_v3_add_start_entry": {
|
|
167
164
|
"type": "boolean"
|
|
168
165
|
},
|
|
169
166
|
"platform_ufo_hold_cross_interaction": {
|
|
170
167
|
"type": "boolean"
|
|
168
|
+
},
|
|
169
|
+
"platform_ufo_rev_ratios": {
|
|
170
|
+
"type": "boolean"
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}
|