@atlaskit/react-ufo 2.3.3 → 2.4.1
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 +68 -50
- package/dist/cjs/global-error-handler/index.js +7 -1
- package/dist/cjs/interaction-metrics-init/index.js +0 -7
- 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 +49 -31
- package/dist/es2019/global-error-handler/index.js +4 -0
- package/dist/es2019/interaction-metrics-init/index.js +0 -7
- 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 +53 -35
- package/dist/esm/global-error-handler/index.js +6 -0
- package/dist/esm/interaction-metrics-init/index.js +0 -7
- package/dist/types/common/constants.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 +3217 -145
- package/dist/types/global-error-handler/index.d.ts +1 -0
- package/dist/types/interaction-context/index.d.ts +1 -1
- package/dist/types-ts4.5/common/constants.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 +3217 -145
- package/dist/types-ts4.5/global-error-handler/index.d.ts +1 -0
- package/dist/types-ts4.5/interaction-context/index.d.ts +1 -1
- package/package.json +7 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const sinkErrorHandler: (sinkFunc: (name: string, labelStack: null, errorType: string, errorMessage: string, errorStack?: string) => void) => void;
|
|
2
|
+
export declare const getGlobalErrorCount: () => number;
|
|
2
3
|
declare const setupUFOGlobalErrorHandler: () => void;
|
|
3
4
|
export default setupUFOGlobalErrorHandler;
|
|
@@ -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]: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const REACT_UFO_VERSION
|
|
1
|
+
export declare const REACT_UFO_VERSION: 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
|
+
}[];
|