@atlaskit/react-ufo 2.3.2 → 2.4.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/common/constants.js +2 -1
- package/dist/cjs/create-payload/common/utils/index.js +61 -2
- package/dist/cjs/create-payload/index.js +22 -47
- package/dist/cjs/vc/index.js +3 -4
- package/dist/cjs/vc/vc-observer/index.js +6 -0
- package/dist/es2019/common/constants.js +2 -1
- package/dist/es2019/create-payload/common/utils/index.js +53 -2
- package/dist/es2019/create-payload/index.js +5 -31
- package/dist/es2019/vc/index.js +3 -4
- package/dist/es2019/vc/vc-observer/index.js +3 -0
- package/dist/esm/common/constants.js +2 -1
- package/dist/esm/create-payload/common/utils/index.js +57 -2
- package/dist/esm/create-payload/index.js +7 -32
- package/dist/esm/vc/index.js +3 -4
- package/dist/esm/vc/vc-observer/index.js +6 -0
- package/dist/types/common/constants.d.ts +1 -1
- package/dist/types/common/vc/types.d.ts +1 -1
- package/dist/types/create-payload/common/types.d.ts +1 -1
- package/dist/types/create-payload/common/utils/index.d.ts +15 -1
- package/dist/types/create-payload/index.d.ts +144 -144
- package/dist/types/interaction-context/index.d.ts +1 -1
- package/dist/types/vc/index.d.ts +3 -0
- package/dist/types/vc/vc-observer/index.d.ts +2 -1
- package/dist/types-ts4.5/common/constants.d.ts +1 -1
- package/dist/types-ts4.5/common/vc/types.d.ts +1 -1
- package/dist/types-ts4.5/create-payload/common/types.d.ts +1 -1
- package/dist/types-ts4.5/create-payload/common/utils/index.d.ts +15 -1
- package/dist/types-ts4.5/create-payload/index.d.ts +144 -144
- package/dist/types-ts4.5/interaction-context/index.d.ts +1 -1
- package/dist/types-ts4.5/vc/index.d.ts +3 -0
- package/dist/types-ts4.5/vc/vc-observer/index.d.ts +2 -1
- package/package.json +4 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Context } from 'react';
|
|
2
2
|
import { type InteractionContextType } from '@atlaskit/interaction-context';
|
|
3
3
|
export type CustomData = {
|
|
4
|
-
[key: string]: null |
|
|
4
|
+
[key: string]: null | string | number | boolean | undefined | CustomData;
|
|
5
5
|
};
|
|
6
6
|
export type CustomTiming = {
|
|
7
7
|
[key: string]: {
|
package/dist/types/vc/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UnbindFn } from 'bind-event-listener';
|
|
2
|
-
import type { ComponentsLogType, VCAbortReasonType, VCEntryType, VCIgnoreReason, VCRatioType, VCRawDataType, VCResult } from '../../common/vc/types';
|
|
2
|
+
import type { ComponentsLogType, VCAbortReason, VCAbortReasonType, VCEntryType, VCIgnoreReason, VCRatioType, VCRawDataType, VCResult } from '../../common/vc/types';
|
|
3
3
|
import { Observers, type SelectorConfig } from './observers';
|
|
4
4
|
type GetVCResultType = {
|
|
5
5
|
start: number;
|
|
@@ -79,6 +79,7 @@ export declare class VCObserver {
|
|
|
79
79
|
setReactRootRenderStart(startTime?: number): void;
|
|
80
80
|
setReactRootRenderStop(stopTime?: number): void;
|
|
81
81
|
private handleUpdate;
|
|
82
|
+
abortObservation(abortReason?: VCAbortReason): void;
|
|
82
83
|
private setAbortReason;
|
|
83
84
|
private resetState;
|
|
84
85
|
private getCleanHeatmap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const REACT_UFO_VERSION
|
|
1
|
+
export declare const REACT_UFO_VERSION: string;
|
|
@@ -4,7 +4,7 @@ export declare const AbortEvent: {
|
|
|
4
4
|
readonly keydown: "keydown";
|
|
5
5
|
readonly resize: "resize";
|
|
6
6
|
};
|
|
7
|
-
export type VCAbortReason = 'scroll' | 'keypress' | 'resize' | 'error' | 'not-supported';
|
|
7
|
+
export type VCAbortReason = 'custom' | 'scroll' | 'keypress' | 'resize' | 'error' | 'not-supported';
|
|
8
8
|
export type VCAbortReasonType = {
|
|
9
9
|
reason: null | VCAbortReason;
|
|
10
10
|
info: string;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LabelStack, SegmentLabel } from '../../../interaction-context';
|
|
2
|
+
export type SegmentItem = {
|
|
3
|
+
n: string;
|
|
4
|
+
c?: Record<string, SegmentItem>;
|
|
5
|
+
};
|
|
6
|
+
export type SegmentTree = {
|
|
7
|
+
r: SegmentItem;
|
|
8
|
+
};
|
|
2
9
|
export declare const sanitizeUfoName: (name: string) => string;
|
|
3
10
|
export declare function isSegmentLabel(obj: any): obj is SegmentLabel;
|
|
11
|
+
export declare function buildSegmentTree(labelStacks: LabelStack[]): SegmentTree;
|
|
12
|
+
export declare function stringifyLabelStackFully(labelStack: LabelStack): string;
|
|
13
|
+
export declare function labelStackStartWith(labelStack: LabelStack, startWith: LabelStack): boolean;
|
|
14
|
+
export declare function optimizeLabelStack(labelStack: LabelStack): string | {
|
|
15
|
+
s?: string | undefined;
|
|
16
|
+
n: string;
|
|
17
|
+
}[];
|