@atlaskit/react-ufo 1.0.1 → 1.1.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 +8 -0
- package/dist/cjs/interaction-metrics/index.js +5 -3
- package/dist/es2019/interaction-metrics/index.js +5 -4
- package/dist/esm/interaction-metrics/index.js +5 -3
- package/dist/types/interaction-metrics/index.d.ts +2 -2
- package/dist/types-ts4.5/interaction-metrics/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#155735](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155735)
|
|
8
|
+
[`e5a96535fa143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e5a96535fa143) -
|
|
9
|
+
addCustomSpans accepts optional custom LabelStak object
|
|
10
|
+
|
|
3
11
|
## 1.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -6,17 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.addCustomSpans = addCustomSpans;
|
|
7
7
|
exports.interactionSpans = void 0;
|
|
8
8
|
var interactionSpans = exports.interactionSpans = [];
|
|
9
|
+
var defaultLabelStack = [{
|
|
10
|
+
name: 'custom'
|
|
11
|
+
}];
|
|
9
12
|
function addCustomSpans(name, start) {
|
|
10
13
|
var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : performance.now();
|
|
11
14
|
var size = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
15
|
+
var labelStack = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : defaultLabelStack;
|
|
12
16
|
var customSpan = {
|
|
13
17
|
type: 'custom',
|
|
14
18
|
name: name,
|
|
15
19
|
start: start,
|
|
16
20
|
end: end,
|
|
17
|
-
labelStack:
|
|
18
|
-
name: 'custom'
|
|
19
|
-
}],
|
|
21
|
+
labelStack: labelStack,
|
|
20
22
|
size: size
|
|
21
23
|
};
|
|
22
24
|
interactionSpans.push(customSpan);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export const interactionSpans = [];
|
|
2
|
-
|
|
2
|
+
const defaultLabelStack = [{
|
|
3
|
+
name: 'custom'
|
|
4
|
+
}];
|
|
5
|
+
export function addCustomSpans(name, start, end = performance.now(), size = 0, labelStack = defaultLabelStack) {
|
|
3
6
|
const customSpan = {
|
|
4
7
|
type: 'custom',
|
|
5
8
|
name,
|
|
6
9
|
start,
|
|
7
10
|
end,
|
|
8
|
-
labelStack
|
|
9
|
-
name: 'custom'
|
|
10
|
-
}],
|
|
11
|
+
labelStack,
|
|
11
12
|
size
|
|
12
13
|
};
|
|
13
14
|
interactionSpans.push(customSpan);
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
export var interactionSpans = [];
|
|
2
|
+
var defaultLabelStack = [{
|
|
3
|
+
name: 'custom'
|
|
4
|
+
}];
|
|
2
5
|
export function addCustomSpans(name, start) {
|
|
3
6
|
var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : performance.now();
|
|
4
7
|
var size = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
8
|
+
var labelStack = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : defaultLabelStack;
|
|
5
9
|
var customSpan = {
|
|
6
10
|
type: 'custom',
|
|
7
11
|
name: name,
|
|
8
12
|
start: start,
|
|
9
13
|
end: end,
|
|
10
|
-
labelStack:
|
|
11
|
-
name: 'custom'
|
|
12
|
-
}],
|
|
14
|
+
labelStack: labelStack,
|
|
13
15
|
size: size
|
|
14
16
|
};
|
|
15
17
|
interactionSpans.push(customSpan);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type Span } from '../common/types';
|
|
1
|
+
import { type LabelStack, type Span } from '../common/types';
|
|
2
2
|
export declare const interactionSpans: Span[];
|
|
3
|
-
export declare function addCustomSpans(name: string, start: number, end?: number, size?: number): void;
|
|
3
|
+
export declare function addCustomSpans(name: string, start: number, end?: number, size?: number, labelStack?: LabelStack): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type Span } from '../common/types';
|
|
1
|
+
import { type LabelStack, type Span } from '../common/types';
|
|
2
2
|
export declare const interactionSpans: Span[];
|
|
3
|
-
export declare function addCustomSpans(name: string, start: number, end?: number, size?: number): void;
|
|
3
|
+
export declare function addCustomSpans(name: string, start: number, end?: number, size?: number, labelStack?: LabelStack): void;
|