@atlaskit/react-ufo 3.14.2 → 3.14.3
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 +8 -0
- package/dist/cjs/create-payload/common/utils/index.js +9 -3
- package/dist/cjs/segment/segment.js +10 -4
- package/dist/es2019/create-payload/common/utils/index.js +9 -1
- package/dist/es2019/segment/segment.js +12 -4
- package/dist/esm/create-payload/common/utils/index.js +9 -3
- package/dist/esm/segment/segment.js +10 -4
- package/dist/types/create-payload/common/utils/index.d.ts +3 -0
- package/dist/types/create-payload/index.d.ts +640 -0
- package/dist/types/create-post-interaction-log-payload/get-late-mutations.d.ts +1 -1
- package/dist/types/create-post-interaction-log-payload/index.d.ts +4 -4
- package/dist/types/interaction-context/index.d.ts +2 -0
- package/dist/types/interaction-ignore/ufo-interaction-ignore.d.ts +1 -1
- package/dist/types/segment/third-party-segment.d.ts +1 -1
- package/dist/types/vc/vc-observer-new/viewport-observer/utils/get-component-name-and-child-props.d.ts +2 -2
- package/dist/types-ts4.5/create-payload/common/utils/index.d.ts +3 -0
- package/dist/types-ts4.5/create-payload/index.d.ts +640 -0
- package/dist/types-ts4.5/create-post-interaction-log-payload/get-late-mutations.d.ts +1 -1
- package/dist/types-ts4.5/create-post-interaction-log-payload/index.d.ts +4 -4
- package/dist/types-ts4.5/interaction-context/index.d.ts +2 -0
- package/dist/types-ts4.5/interaction-ignore/ufo-interaction-ignore.d.ts +1 -1
- package/dist/types-ts4.5/segment/third-party-segment.d.ts +1 -1
- package/dist/types-ts4.5/vc/vc-observer-new/viewport-observer/utils/get-component-name-and-child-props.d.ts +2 -2
- package/package.json +4 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LastInteractionFinishInfo } from '../common';
|
|
2
|
-
import { LateMutation } from '../common/react-ufo-payload-schema';
|
|
2
|
+
import type { LateMutation } from '../common/react-ufo-payload-schema';
|
|
3
3
|
import type { RevisionPayloadVCDetails } from '../common/vc/types';
|
|
4
4
|
declare function getLateMutations(vcDetails: RevisionPayloadVCDetails, lastInteractionFinish: LastInteractionFinishInfo, postInteractionFinishVCRatios: Record<string, number>): LateMutation[];
|
|
5
5
|
export default getLateMutations;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PostInteractionLogOutput } from '../common';
|
|
2
|
-
import { LateMutation } from '../common/react-ufo-payload-schema';
|
|
2
|
+
import type { LateMutation } from '../common/react-ufo-payload-schema';
|
|
3
3
|
declare function createPostInteractionLogPayload({ lastInteractionFinish, reactProfilerTimings, lastInteractionFinishVCResult, postInteractionFinishVCResult, }: PostInteractionLogOutput): {
|
|
4
4
|
actionSubject: string;
|
|
5
5
|
action: string;
|
|
@@ -26,13 +26,13 @@ declare function createPostInteractionLogPayload({ lastInteractionFinish, reactP
|
|
|
26
26
|
vc90: number | null;
|
|
27
27
|
vcClean: boolean;
|
|
28
28
|
type: import("../common").InteractionType;
|
|
29
|
-
id: string;
|
|
30
29
|
abortReason?: import("../common").AbortReasonType | undefined;
|
|
30
|
+
id: string;
|
|
31
|
+
errors: import("../common").InteractionError[];
|
|
31
32
|
abortedByInteractionName?: string | undefined;
|
|
32
33
|
routeName: string | null;
|
|
33
|
-
experimentalVC90?: number | undefined;
|
|
34
34
|
experimentalTTAI?: number | undefined;
|
|
35
|
-
|
|
35
|
+
experimentalVC90?: number | undefined;
|
|
36
36
|
};
|
|
37
37
|
revisedEndTime: number;
|
|
38
38
|
revisedTtai: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Context } from 'react';
|
|
2
2
|
import { type InteractionContextType } from '@atlaskit/interaction-context';
|
|
3
|
+
import { UFOSegmentType } from '../segment/segment';
|
|
3
4
|
export type CustomData = {
|
|
4
5
|
[key: string]: null | string | number | boolean | undefined | CustomData;
|
|
5
6
|
};
|
|
@@ -16,6 +17,7 @@ export type SegmentLabel = Readonly<{
|
|
|
16
17
|
name: string;
|
|
17
18
|
segmentId?: string;
|
|
18
19
|
mode?: 'list' | 'single';
|
|
20
|
+
type?: UFOSegmentType;
|
|
19
21
|
}>;
|
|
20
22
|
export type LabelStack = ReadonlyArray<SegmentLabel | Label>;
|
|
21
23
|
export interface UFOInteractionContextType extends InteractionContextType {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UFOIgnoreHoldsProps } from '../ignore-holds';
|
|
2
|
+
import { type UFOIgnoreHoldsProps } from '../ignore-holds';
|
|
3
3
|
/**
|
|
4
4
|
* Legacy wrapper component that delegates to `UFOIgnoreHolds`.
|
|
5
5
|
* Use `UFOIgnoreHolds` instead for new implementations.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Props as SegmentProps } from './segment';
|
|
2
|
+
import { type Props as SegmentProps } from './segment';
|
|
3
3
|
export declare function UFOThirdPartySegment(props: Omit<SegmentProps, 'type'>): React.JSX.Element;
|
|
4
4
|
export declare namespace UFOThirdPartySegment {
|
|
5
5
|
var displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UFOIgnoreHoldsReason } from '../../../../ignore-holds';
|
|
2
|
-
import { VCObserverEntryType } from '../../types';
|
|
1
|
+
import type { UFOIgnoreHoldsReason } from '../../../../ignore-holds';
|
|
2
|
+
import type { VCObserverEntryType } from '../../types';
|
|
3
3
|
export declare function checkWithinComponentAndExtractChildProps<T = string>(node: HTMLElement, targetComponentName: string, childComponentConfig?: {
|
|
4
4
|
componentName: string;
|
|
5
5
|
propName: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { LabelStack, SegmentLabel } from '../../../interaction-context';
|
|
2
|
+
import { UFOSegmentType } from '../../../segment/segment';
|
|
2
3
|
import { getReactUFOPayloadVersion } from '../../utils/get-react-ufo-payload-version';
|
|
3
4
|
export type SegmentItem = {
|
|
4
5
|
n: string;
|
|
5
6
|
c?: Record<string, SegmentItem>;
|
|
7
|
+
t?: UFOSegmentType;
|
|
6
8
|
};
|
|
7
9
|
export type SegmentTree = {
|
|
8
10
|
r: SegmentItem;
|
|
@@ -13,6 +15,7 @@ export declare function buildSegmentTree(labelStacks: LabelStack[]): SegmentTree
|
|
|
13
15
|
export declare function stringifyLabelStackFully(labelStack: LabelStack): string;
|
|
14
16
|
export declare function labelStackStartWith(labelStack: LabelStack, startWith: LabelStack): boolean;
|
|
15
17
|
export declare function optimizeLabelStack(labelStack: LabelStack, reactUFOVersion: ReturnType<typeof getReactUFOPayloadVersion>): string | {
|
|
18
|
+
t?: UFOSegmentType | undefined;
|
|
16
19
|
s?: string | undefined;
|
|
17
20
|
n: string;
|
|
18
21
|
}[];
|