@atlaskit/react-ufo 3.13.24 → 3.13.26
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 +19 -0
- package/dist/cjs/config/index.js +3 -0
- package/dist/cjs/create-post-interaction-log-payload/index.js +7 -2
- package/dist/cjs/experience-trace-id-context/index.js +1 -1
- package/dist/cjs/vc/vc-observer-new/viewport-observer/performance-observer/index.js +2 -3
- package/dist/es2019/config/index.js +3 -0
- package/dist/es2019/create-post-interaction-log-payload/index.js +8 -3
- package/dist/es2019/experience-trace-id-context/index.js +1 -1
- package/dist/es2019/vc/vc-observer-new/viewport-observer/performance-observer/index.js +2 -3
- package/dist/esm/config/index.js +3 -0
- package/dist/esm/create-post-interaction-log-payload/index.js +8 -3
- package/dist/esm/experience-trace-id-context/index.js +1 -1
- package/dist/esm/vc/vc-observer-new/viewport-observer/performance-observer/index.js +2 -3
- package/dist/types/common/react-ufo-payload-schema.d.ts +2 -2
- 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 +1 -1
- package/dist/types/experience-trace-id-context/index.d.ts +2 -2
- package/dist/types-ts4.5/common/react-ufo-payload-schema.d.ts +2 -2
- 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 +1 -1
- package/dist/types-ts4.5/experience-trace-id-context/index.d.ts +2 -2
- package/package.json +4 -1
- package/dist/cjs/create-post-interaction-log-payload/types.js +0 -1
- package/dist/es2019/create-post-interaction-log-payload/types.js +0 -0
- package/dist/esm/create-post-interaction-log-payload/types.js +0 -0
- package/dist/types/create-post-interaction-log-payload/types.d.ts +0 -5
- package/dist/types-ts4.5/create-post-interaction-log-payload/types.d.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 3.13.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#175577](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175577)
|
|
8
|
+
[`ab132e5fd6642`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab132e5fd6642) -
|
|
9
|
+
ensure post-interaction-log events are only for page_load and transition events
|
|
10
|
+
- [#175545](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175545)
|
|
11
|
+
[`b16b0a70a3516`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b16b0a70a3516) -
|
|
12
|
+
bugfix: correctly layout shift entry sources being undefined in TTVC v3 logic
|
|
13
|
+
|
|
14
|
+
## 3.13.25
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#174299](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174299)
|
|
19
|
+
[`d5a2065348f4d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d5a2065348f4d) -
|
|
20
|
+
Use most recent VC revision for post interaction log late mutation
|
|
21
|
+
|
|
3
22
|
## 3.13.24
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/cjs/config/index.js
CHANGED
|
@@ -177,6 +177,9 @@ function getPostInteractionRate(name, interactionType) {
|
|
|
177
177
|
if (!(postInteractionLog !== null && postInteractionLog !== void 0 && postInteractionLog.enabled)) {
|
|
178
178
|
return 0;
|
|
179
179
|
}
|
|
180
|
+
if (interactionType !== 'page_load' && interactionType !== 'transition') {
|
|
181
|
+
return 0;
|
|
182
|
+
}
|
|
180
183
|
if (postInteractionLog.rates && typeof postInteractionLog.rates[name] === 'number') {
|
|
181
184
|
return postInteractionLog.rates[name];
|
|
182
185
|
}
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
11
|
var _coinflip = _interopRequireDefault(require("../coinflip"));
|
|
11
12
|
var _config = require("../config");
|
|
12
13
|
var _utils = require("../create-payload/common/utils");
|
|
@@ -123,6 +124,9 @@ function createPostInteractionLogPayload(_ref2) {
|
|
|
123
124
|
if (!config) {
|
|
124
125
|
throw Error('UFO Configuration not provided');
|
|
125
126
|
}
|
|
127
|
+
if (!lastInteractionFinish) {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
126
130
|
var ufoName = (0, _utils.sanitizeUfoName)(lastInteractionFinish.ufoName);
|
|
127
131
|
var rate = (0, _config.getPostInteractionRate)(ufoName, lastInteractionFinish.type);
|
|
128
132
|
if (!(0, _coinflip.default)(rate)) {
|
|
@@ -150,12 +154,13 @@ function createPostInteractionLogPayload(_ref2) {
|
|
|
150
154
|
var lastInteractionFinishStart = Math.round(lastInteractionFinish.start);
|
|
151
155
|
var lastInteractionFinishEnd = Math.round(lastInteractionFinish.end);
|
|
152
156
|
var lastInteractionFinishTTAI = Math.round(lastInteractionFinish.end - lastInteractionFinish.start);
|
|
157
|
+
var mostRecentVCRevision = (0, _platformFeatureFlags.fg)('platform_ufo_post_interaction_most_recent_vc_rev') ? (0, _config.getMostRecentVCRevision)(lastInteractionFinish.ufoName) : 'fy25.02';
|
|
153
158
|
var lastInteractionFinishVC90 = null;
|
|
154
159
|
var lastInteractionFinishVCClean = false;
|
|
155
160
|
var lastInteractionFinishVCRev = lastInteractionFinishVCResult === null || lastInteractionFinishVCResult === void 0 ? void 0 : lastInteractionFinishVCResult['ufo:vc:rev'];
|
|
156
161
|
var lastInteractionFinishRevision = lastInteractionFinishVCRev === null || lastInteractionFinishVCRev === void 0 ? void 0 : lastInteractionFinishVCRev.find(function (_ref3) {
|
|
157
162
|
var revision = _ref3.revision;
|
|
158
|
-
return revision ===
|
|
163
|
+
return revision === mostRecentVCRevision;
|
|
159
164
|
});
|
|
160
165
|
if (lastInteractionFinishRevision !== null && lastInteractionFinishRevision !== void 0 && lastInteractionFinishRevision.clean) {
|
|
161
166
|
var _lastInteractionFinis;
|
|
@@ -169,7 +174,7 @@ function createPostInteractionLogPayload(_ref2) {
|
|
|
169
174
|
var postInteractionFinishVCRev = postInteractionFinishVCResult === null || postInteractionFinishVCResult === void 0 ? void 0 : postInteractionFinishVCResult['ufo:vc:rev'];
|
|
170
175
|
var postInteractionFinishRevision = postInteractionFinishVCRev === null || postInteractionFinishVCRev === void 0 ? void 0 : postInteractionFinishVCRev.find(function (_ref4) {
|
|
171
176
|
var revision = _ref4.revision;
|
|
172
|
-
return revision ===
|
|
177
|
+
return revision === mostRecentVCRevision;
|
|
173
178
|
});
|
|
174
179
|
if (postInteractionFinishRevision !== null && postInteractionFinishRevision !== void 0 && postInteractionFinishRevision.clean) {
|
|
175
180
|
postInteractionFinishVCClean = true;
|
|
@@ -45,6 +45,6 @@ function getActiveTraceHttpRequestHeaders(_url) {
|
|
|
45
45
|
return (0, _makeTraceHttpRequestHeaders.makeTraceHttpRequestHeaders)(traceId, spanId);
|
|
46
46
|
}
|
|
47
47
|
function getActiveTraceAsQueryParams(_url) {
|
|
48
|
-
var traceHeaders = getActiveTraceHttpRequestHeaders(
|
|
48
|
+
var traceHeaders = getActiveTraceHttpRequestHeaders();
|
|
49
49
|
return traceHeaders ? new URLSearchParams(traceHeaders).toString().toLowerCase() : null;
|
|
50
50
|
}
|
|
@@ -31,9 +31,8 @@ function createPerformanceObserver(_ref) {
|
|
|
31
31
|
try {
|
|
32
32
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
33
33
|
var entry = _step.value;
|
|
34
|
-
if (entry.entryType === 'layout-shift') {
|
|
35
|
-
//
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
+
if (entry.entryType === 'layout-shift' && 'sources' in entry) {
|
|
35
|
+
// see https://developer.mozilla.org/en-US/docs/Web/API/LayoutShiftAttribution for more info
|
|
37
36
|
var changedRects = entry.sources.reduceRight(function (acc, attr) {
|
|
38
37
|
acc.push({
|
|
39
38
|
rect: convertPhysicalToLogicalResolution(attr.currentRect),
|
|
@@ -157,6 +157,9 @@ export function getPostInteractionRate(name, interactionType) {
|
|
|
157
157
|
if (!(postInteractionLog !== null && postInteractionLog !== void 0 && postInteractionLog.enabled)) {
|
|
158
158
|
return 0;
|
|
159
159
|
}
|
|
160
|
+
if (interactionType !== 'page_load' && interactionType !== 'transition') {
|
|
161
|
+
return 0;
|
|
162
|
+
}
|
|
160
163
|
if (postInteractionLog.rates && typeof postInteractionLog.rates[name] === 'number') {
|
|
161
164
|
return postInteractionLog.rates[name];
|
|
162
165
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import coinflip from '../coinflip';
|
|
2
|
-
import { getConfig, getPostInteractionRate } from '../config';
|
|
3
|
+
import { getConfig, getMostRecentVCRevision, getPostInteractionRate } from '../config';
|
|
3
4
|
import { isSegmentLabel, sanitizeUfoName } from '../create-payload/common/utils';
|
|
4
5
|
import { getReactUFOPayloadVersion } from '../create-payload/utils/get-react-ufo-payload-version';
|
|
5
6
|
import { getPageVisibilityState } from '../hidden-timing';
|
|
@@ -110,6 +111,9 @@ function createPostInteractionLogPayload({
|
|
|
110
111
|
if (!config) {
|
|
111
112
|
throw Error('UFO Configuration not provided');
|
|
112
113
|
}
|
|
114
|
+
if (!lastInteractionFinish) {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
113
117
|
const ufoName = sanitizeUfoName(lastInteractionFinish.ufoName);
|
|
114
118
|
const rate = getPostInteractionRate(ufoName, lastInteractionFinish.type);
|
|
115
119
|
if (!coinflip(rate)) {
|
|
@@ -135,12 +139,13 @@ function createPostInteractionLogPayload({
|
|
|
135
139
|
const lastInteractionFinishStart = Math.round(lastInteractionFinish.start);
|
|
136
140
|
const lastInteractionFinishEnd = Math.round(lastInteractionFinish.end);
|
|
137
141
|
const lastInteractionFinishTTAI = Math.round(lastInteractionFinish.end - lastInteractionFinish.start);
|
|
142
|
+
const mostRecentVCRevision = fg('platform_ufo_post_interaction_most_recent_vc_rev') ? getMostRecentVCRevision(lastInteractionFinish.ufoName) : 'fy25.02';
|
|
138
143
|
let lastInteractionFinishVC90 = null;
|
|
139
144
|
let lastInteractionFinishVCClean = false;
|
|
140
145
|
const lastInteractionFinishVCRev = lastInteractionFinishVCResult === null || lastInteractionFinishVCResult === void 0 ? void 0 : lastInteractionFinishVCResult['ufo:vc:rev'];
|
|
141
146
|
const lastInteractionFinishRevision = lastInteractionFinishVCRev === null || lastInteractionFinishVCRev === void 0 ? void 0 : lastInteractionFinishVCRev.find(({
|
|
142
147
|
revision
|
|
143
|
-
}) => revision ===
|
|
148
|
+
}) => revision === mostRecentVCRevision);
|
|
144
149
|
if (lastInteractionFinishRevision !== null && lastInteractionFinishRevision !== void 0 && lastInteractionFinishRevision.clean) {
|
|
145
150
|
var _lastInteractionFinis;
|
|
146
151
|
lastInteractionFinishVCClean = true;
|
|
@@ -153,7 +158,7 @@ function createPostInteractionLogPayload({
|
|
|
153
158
|
const postInteractionFinishVCRev = postInteractionFinishVCResult === null || postInteractionFinishVCResult === void 0 ? void 0 : postInteractionFinishVCResult['ufo:vc:rev'];
|
|
154
159
|
const postInteractionFinishRevision = postInteractionFinishVCRev === null || postInteractionFinishVCRev === void 0 ? void 0 : postInteractionFinishVCRev.find(({
|
|
155
160
|
revision
|
|
156
|
-
}) => revision ===
|
|
161
|
+
}) => revision === mostRecentVCRevision);
|
|
157
162
|
if (postInteractionFinishRevision !== null && postInteractionFinishRevision !== void 0 && postInteractionFinishRevision.clean) {
|
|
158
163
|
postInteractionFinishVCClean = true;
|
|
159
164
|
postInteractionFinishVCRatios = postInteractionFinishVCResult === null || postInteractionFinishVCResult === void 0 ? void 0 : postInteractionFinishVCResult['ufo:vc:ratios'];
|
|
@@ -32,6 +32,6 @@ export function getActiveTraceHttpRequestHeaders(_url) {
|
|
|
32
32
|
return makeTraceHttpRequestHeaders(traceId, spanId);
|
|
33
33
|
}
|
|
34
34
|
export function getActiveTraceAsQueryParams(_url) {
|
|
35
|
-
const traceHeaders = getActiveTraceHttpRequestHeaders(
|
|
35
|
+
const traceHeaders = getActiveTraceHttpRequestHeaders();
|
|
36
36
|
return traceHeaders ? new URLSearchParams(traceHeaders).toString().toLowerCase() : null;
|
|
37
37
|
}
|
|
@@ -18,9 +18,8 @@ function createPerformanceObserver({
|
|
|
18
18
|
}
|
|
19
19
|
const performanceObserverCallback = entries => {
|
|
20
20
|
for (const entry of entries.getEntries()) {
|
|
21
|
-
if (entry.entryType === 'layout-shift') {
|
|
22
|
-
//
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
+
if (entry.entryType === 'layout-shift' && 'sources' in entry) {
|
|
22
|
+
// see https://developer.mozilla.org/en-US/docs/Web/API/LayoutShiftAttribution for more info
|
|
24
23
|
const changedRects = entry.sources.reduceRight((acc, attr) => {
|
|
25
24
|
acc.push({
|
|
26
25
|
rect: convertPhysicalToLogicalResolution(attr.currentRect),
|
package/dist/esm/config/index.js
CHANGED
|
@@ -153,6 +153,9 @@ export function getPostInteractionRate(name, interactionType) {
|
|
|
153
153
|
if (!(postInteractionLog !== null && postInteractionLog !== void 0 && postInteractionLog.enabled)) {
|
|
154
154
|
return 0;
|
|
155
155
|
}
|
|
156
|
+
if (interactionType !== 'page_load' && interactionType !== 'transition') {
|
|
157
|
+
return 0;
|
|
158
|
+
}
|
|
156
159
|
if (postInteractionLog.rates && typeof postInteractionLog.rates[name] === 'number') {
|
|
157
160
|
return postInteractionLog.rates[name];
|
|
158
161
|
}
|
|
@@ -2,8 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import coinflip from '../coinflip';
|
|
6
|
-
import { getConfig, getPostInteractionRate } from '../config';
|
|
7
|
+
import { getConfig, getMostRecentVCRevision, getPostInteractionRate } from '../config';
|
|
7
8
|
import { isSegmentLabel, sanitizeUfoName } from '../create-payload/common/utils';
|
|
8
9
|
import { getReactUFOPayloadVersion } from '../create-payload/utils/get-react-ufo-payload-version';
|
|
9
10
|
import { getPageVisibilityState } from '../hidden-timing';
|
|
@@ -116,6 +117,9 @@ function createPostInteractionLogPayload(_ref2) {
|
|
|
116
117
|
if (!config) {
|
|
117
118
|
throw Error('UFO Configuration not provided');
|
|
118
119
|
}
|
|
120
|
+
if (!lastInteractionFinish) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
119
123
|
var ufoName = sanitizeUfoName(lastInteractionFinish.ufoName);
|
|
120
124
|
var rate = getPostInteractionRate(ufoName, lastInteractionFinish.type);
|
|
121
125
|
if (!coinflip(rate)) {
|
|
@@ -143,12 +147,13 @@ function createPostInteractionLogPayload(_ref2) {
|
|
|
143
147
|
var lastInteractionFinishStart = Math.round(lastInteractionFinish.start);
|
|
144
148
|
var lastInteractionFinishEnd = Math.round(lastInteractionFinish.end);
|
|
145
149
|
var lastInteractionFinishTTAI = Math.round(lastInteractionFinish.end - lastInteractionFinish.start);
|
|
150
|
+
var mostRecentVCRevision = fg('platform_ufo_post_interaction_most_recent_vc_rev') ? getMostRecentVCRevision(lastInteractionFinish.ufoName) : 'fy25.02';
|
|
146
151
|
var lastInteractionFinishVC90 = null;
|
|
147
152
|
var lastInteractionFinishVCClean = false;
|
|
148
153
|
var lastInteractionFinishVCRev = lastInteractionFinishVCResult === null || lastInteractionFinishVCResult === void 0 ? void 0 : lastInteractionFinishVCResult['ufo:vc:rev'];
|
|
149
154
|
var lastInteractionFinishRevision = lastInteractionFinishVCRev === null || lastInteractionFinishVCRev === void 0 ? void 0 : lastInteractionFinishVCRev.find(function (_ref3) {
|
|
150
155
|
var revision = _ref3.revision;
|
|
151
|
-
return revision ===
|
|
156
|
+
return revision === mostRecentVCRevision;
|
|
152
157
|
});
|
|
153
158
|
if (lastInteractionFinishRevision !== null && lastInteractionFinishRevision !== void 0 && lastInteractionFinishRevision.clean) {
|
|
154
159
|
var _lastInteractionFinis;
|
|
@@ -162,7 +167,7 @@ function createPostInteractionLogPayload(_ref2) {
|
|
|
162
167
|
var postInteractionFinishVCRev = postInteractionFinishVCResult === null || postInteractionFinishVCResult === void 0 ? void 0 : postInteractionFinishVCResult['ufo:vc:rev'];
|
|
163
168
|
var postInteractionFinishRevision = postInteractionFinishVCRev === null || postInteractionFinishVCRev === void 0 ? void 0 : postInteractionFinishVCRev.find(function (_ref4) {
|
|
164
169
|
var revision = _ref4.revision;
|
|
165
|
-
return revision ===
|
|
170
|
+
return revision === mostRecentVCRevision;
|
|
166
171
|
});
|
|
167
172
|
if (postInteractionFinishRevision !== null && postInteractionFinishRevision !== void 0 && postInteractionFinishRevision.clean) {
|
|
168
173
|
postInteractionFinishVCClean = true;
|
|
@@ -33,6 +33,6 @@ export function getActiveTraceHttpRequestHeaders(_url) {
|
|
|
33
33
|
return makeTraceHttpRequestHeaders(traceId, spanId);
|
|
34
34
|
}
|
|
35
35
|
export function getActiveTraceAsQueryParams(_url) {
|
|
36
|
-
var traceHeaders = getActiveTraceHttpRequestHeaders(
|
|
36
|
+
var traceHeaders = getActiveTraceHttpRequestHeaders();
|
|
37
37
|
return traceHeaders ? new URLSearchParams(traceHeaders).toString().toLowerCase() : null;
|
|
38
38
|
}
|
|
@@ -24,9 +24,8 @@ function createPerformanceObserver(_ref) {
|
|
|
24
24
|
try {
|
|
25
25
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
26
26
|
var entry = _step.value;
|
|
27
|
-
if (entry.entryType === 'layout-shift') {
|
|
28
|
-
//
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
|
+
if (entry.entryType === 'layout-shift' && 'sources' in entry) {
|
|
28
|
+
// see https://developer.mozilla.org/en-US/docs/Web/API/LayoutShiftAttribution for more info
|
|
30
29
|
var changedRects = entry.sources.reduceRight(function (acc, attr) {
|
|
31
30
|
acc.push({
|
|
32
31
|
rect: convertPhysicalToLogicalResolution(attr.currentRect),
|
|
@@ -174,7 +174,7 @@ export type ReactUFOPayload = {
|
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
type
|
|
177
|
+
export type LateMutation = {
|
|
178
178
|
time: number;
|
|
179
179
|
element: string;
|
|
180
180
|
viewportHeatmapPercentage: number;
|
|
@@ -213,7 +213,7 @@ export type PostInteractionLogPayload = {
|
|
|
213
213
|
revisedTtai: number;
|
|
214
214
|
revisedVC90: number;
|
|
215
215
|
vcClean: boolean;
|
|
216
|
-
lateMutations:
|
|
216
|
+
lateMutations: LateMutation[];
|
|
217
217
|
reactProfilerTimings: ReactProfilerTiming[];
|
|
218
218
|
};
|
|
219
219
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LastInteractionFinishInfo } from '../common';
|
|
2
|
+
import { LateMutation } from '../common/react-ufo-payload-schema';
|
|
2
3
|
import type { RevisionPayloadVCDetails } from '../common/vc/types';
|
|
3
|
-
import type { LateMutation } from './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
|
|
2
|
+
import { 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;
|
|
@@ -4,8 +4,8 @@ export declare function setInteractionActiveTrace(interactionId: string, experie
|
|
|
4
4
|
export declare function setActiveTrace(traceId: string, spanId: string, type: string): void;
|
|
5
5
|
export declare function getActiveTrace(): import("./types").TraceIdContext | undefined;
|
|
6
6
|
export declare function clearActiveTrace(): void;
|
|
7
|
-
export declare function getActiveTraceHttpRequestHeaders(_url
|
|
7
|
+
export declare function getActiveTraceHttpRequestHeaders(_url?: string): {
|
|
8
8
|
'X-B3-TraceId': string;
|
|
9
9
|
'X-B3-SpanId': string;
|
|
10
10
|
} | null;
|
|
11
|
-
export declare function getActiveTraceAsQueryParams(_url
|
|
11
|
+
export declare function getActiveTraceAsQueryParams(_url?: string): string | null;
|
|
@@ -176,7 +176,7 @@ export type ReactUFOPayload = {
|
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
|
-
type
|
|
179
|
+
export type LateMutation = {
|
|
180
180
|
time: number;
|
|
181
181
|
element: string;
|
|
182
182
|
viewportHeatmapPercentage: number;
|
|
@@ -217,7 +217,7 @@ export type PostInteractionLogPayload = {
|
|
|
217
217
|
revisedTtai: number;
|
|
218
218
|
revisedVC90: number;
|
|
219
219
|
vcClean: boolean;
|
|
220
|
-
lateMutations:
|
|
220
|
+
lateMutations: LateMutation[];
|
|
221
221
|
reactProfilerTimings: ReactProfilerTiming[];
|
|
222
222
|
};
|
|
223
223
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LastInteractionFinishInfo } from '../common';
|
|
2
|
+
import { LateMutation } from '../common/react-ufo-payload-schema';
|
|
2
3
|
import type { RevisionPayloadVCDetails } from '../common/vc/types';
|
|
3
|
-
import type { LateMutation } from './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
|
|
2
|
+
import { 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;
|
|
@@ -4,8 +4,8 @@ export declare function setInteractionActiveTrace(interactionId: string, experie
|
|
|
4
4
|
export declare function setActiveTrace(traceId: string, spanId: string, type: string): void;
|
|
5
5
|
export declare function getActiveTrace(): import("./types").TraceIdContext | undefined;
|
|
6
6
|
export declare function clearActiveTrace(): void;
|
|
7
|
-
export declare function getActiveTraceHttpRequestHeaders(_url
|
|
7
|
+
export declare function getActiveTraceHttpRequestHeaders(_url?: string): {
|
|
8
8
|
'X-B3-TraceId': string;
|
|
9
9
|
'X-B3-SpanId': string;
|
|
10
10
|
} | null;
|
|
11
|
-
export declare function getActiveTraceAsQueryParams(_url
|
|
11
|
+
export declare function getActiveTraceAsQueryParams(_url?: string): string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.26",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -180,6 +180,9 @@
|
|
|
180
180
|
},
|
|
181
181
|
"platform_ufo_enable_interactivity_jsm": {
|
|
182
182
|
"type": "boolean"
|
|
183
|
+
},
|
|
184
|
+
"platform_ufo_post_interaction_most_recent_vc_rev": {
|
|
185
|
+
"type": "boolean"
|
|
183
186
|
}
|
|
184
187
|
}
|
|
185
188
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
File without changes
|