@atlaskit/react-ufo 4.4.2 → 4.4.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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fc8202b0f6195`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc8202b0f6195) -
|
|
8
|
+
FG cleanup - platform_ufo_abort_measurement_fix
|
|
9
|
+
|
|
3
10
|
## 4.4.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _uuid = require("uuid");
|
|
9
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
9
|
var _coinflip = _interopRequireDefault(require("../../coinflip"));
|
|
11
10
|
var _config = require("../../config");
|
|
12
11
|
var _experienceTraceIdContext = require("../../experience-trace-id-context");
|
|
@@ -22,15 +21,11 @@ function traceUFOInteraction(name, interactionType, startTime) {
|
|
|
22
21
|
return;
|
|
23
22
|
}
|
|
24
23
|
} else {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
24
|
+
// Abort any existing interaction regardless of the coinflip outcome
|
|
25
|
+
// Ensures measurements are not carried over between distinct interactions
|
|
26
|
+
(0, _interactionMetrics.abortAll)('new_interaction', name);
|
|
29
27
|
}
|
|
30
28
|
if ((0, _coinflip.default)(rate)) {
|
|
31
|
-
if (!(0, _platformFeatureFlags.fg)('platform_ufo_abort_measurement_fix')) {
|
|
32
|
-
(0, _interactionMetrics.abortAll)('new_interaction', name);
|
|
33
|
-
}
|
|
34
29
|
var startTimestamp = startTime !== null && startTime !== void 0 ? startTime : performance.now();
|
|
35
30
|
var newId = (0, _uuid.v4)();
|
|
36
31
|
_interactionIdContext.DefaultInteractionID.current = newId;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { v4 as createUUID } from 'uuid';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import coinflip from '../../coinflip';
|
|
4
3
|
import { getDoNotAbortActivePressInteraction, getInteractionRate } from '../../config';
|
|
5
4
|
import { getActiveTrace, setInteractionActiveTrace } from '../../experience-trace-id-context';
|
|
@@ -15,15 +14,11 @@ function traceUFOInteraction(name, interactionType, startTime) {
|
|
|
15
14
|
return;
|
|
16
15
|
}
|
|
17
16
|
} else {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
17
|
+
// Abort any existing interaction regardless of the coinflip outcome
|
|
18
|
+
// Ensures measurements are not carried over between distinct interactions
|
|
19
|
+
abortAll('new_interaction', name);
|
|
22
20
|
}
|
|
23
21
|
if (coinflip(rate)) {
|
|
24
|
-
if (!fg('platform_ufo_abort_measurement_fix')) {
|
|
25
|
-
abortAll('new_interaction', name);
|
|
26
|
-
}
|
|
27
22
|
const startTimestamp = startTime !== null && startTime !== void 0 ? startTime : performance.now();
|
|
28
23
|
const newId = createUUID();
|
|
29
24
|
DefaultInteractionID.current = newId;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { v4 as createUUID } from 'uuid';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import coinflip from '../../coinflip';
|
|
4
3
|
import { getDoNotAbortActivePressInteraction, getInteractionRate } from '../../config';
|
|
5
4
|
import { getActiveTrace, setInteractionActiveTrace } from '../../experience-trace-id-context';
|
|
@@ -15,15 +14,11 @@ function traceUFOInteraction(name, interactionType, startTime) {
|
|
|
15
14
|
return;
|
|
16
15
|
}
|
|
17
16
|
} else {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
17
|
+
// Abort any existing interaction regardless of the coinflip outcome
|
|
18
|
+
// Ensures measurements are not carried over between distinct interactions
|
|
19
|
+
abortAll('new_interaction', name);
|
|
22
20
|
}
|
|
23
21
|
if (coinflip(rate)) {
|
|
24
|
-
if (!fg('platform_ufo_abort_measurement_fix')) {
|
|
25
|
-
abortAll('new_interaction', name);
|
|
26
|
-
}
|
|
27
22
|
var startTimestamp = startTime !== null && startTime !== void 0 ? startTime : performance.now();
|
|
28
23
|
var newId = createUUID();
|
|
29
24
|
DefaultInteractionID.current = newId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.3",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -175,9 +175,6 @@
|
|
|
175
175
|
"platform_ufo_enable_vc_press_interactions": {
|
|
176
176
|
"type": "boolean"
|
|
177
177
|
},
|
|
178
|
-
"platform_ufo_abort_measurement_fix": {
|
|
179
|
-
"type": "boolean"
|
|
180
|
-
},
|
|
181
178
|
"platform_ufo_handle_non_react_element_for_3p": {
|
|
182
179
|
"type": "boolean"
|
|
183
180
|
},
|