@atlaskit/react-ufo 3.6.1 → 3.6.2
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,13 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 3.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143078](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/143078)
|
|
8
|
+
[`194c184c53045`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/194c184c53045) -
|
|
9
|
+
FF cleanup - platform-ufo-add-segment-use-effect and ufo_chr_config
|
|
10
|
+
|
|
3
11
|
## 3.6.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -82,10 +82,6 @@ function UFOSegment(_ref) {
|
|
|
82
82
|
}, [parentContext, segmentName, segmentId]);
|
|
83
83
|
var interactionId = (0, _react.useContext)(_interactionIdContext.default);
|
|
84
84
|
var interactionContext = (0, _react.useMemo)(function () {
|
|
85
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
86
|
-
if (!(0, _platformFeatureFlags.fg)('platform-ufo-add-segment-use-effect')) {
|
|
87
|
-
(0, _interactionMetrics.addSegment)(labelStack);
|
|
88
|
-
}
|
|
89
85
|
var lastCompleteEndTime = 0;
|
|
90
86
|
var complete = (0, _selfMeasurements.withProfiling)(function complete() {
|
|
91
87
|
var endTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : performance.now();
|
|
@@ -274,9 +270,7 @@ function UFOSegment(_ref) {
|
|
|
274
270
|
}
|
|
275
271
|
}, [interactionContext]);
|
|
276
272
|
(0, _react.useEffect)(function () {
|
|
277
|
-
|
|
278
|
-
(0, _interactionMetrics.addSegment)(labelStack);
|
|
279
|
-
}
|
|
273
|
+
(0, _interactionMetrics.addSegment)(labelStack);
|
|
280
274
|
return function () {
|
|
281
275
|
(0, _interactionMetrics.removeSegment)(labelStack);
|
|
282
276
|
};
|
|
@@ -60,10 +60,6 @@ export default function UFOSegment({
|
|
|
60
60
|
}], [parentContext, segmentName, segmentId]);
|
|
61
61
|
const interactionId = useContext(UFOInteractionIDContext);
|
|
62
62
|
const interactionContext = useMemo(() => {
|
|
63
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
64
|
-
if (!fg('platform-ufo-add-segment-use-effect')) {
|
|
65
|
-
addSegment(labelStack);
|
|
66
|
-
}
|
|
67
63
|
let lastCompleteEndTime = 0;
|
|
68
64
|
const complete = withProfiling(function complete(endTime = performance.now()) {
|
|
69
65
|
if (interactionId.current) {
|
|
@@ -247,9 +243,7 @@ export default function UFOSegment({
|
|
|
247
243
|
}
|
|
248
244
|
}, [interactionContext]);
|
|
249
245
|
useEffect(() => {
|
|
250
|
-
|
|
251
|
-
addSegment(labelStack);
|
|
252
|
-
}
|
|
246
|
+
addSegment(labelStack);
|
|
253
247
|
return () => {
|
|
254
248
|
removeSegment(labelStack);
|
|
255
249
|
};
|
|
@@ -70,10 +70,6 @@ export default function UFOSegment(_ref) {
|
|
|
70
70
|
}, [parentContext, segmentName, segmentId]);
|
|
71
71
|
var interactionId = useContext(UFOInteractionIDContext);
|
|
72
72
|
var interactionContext = useMemo(function () {
|
|
73
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
74
|
-
if (!fg('platform-ufo-add-segment-use-effect')) {
|
|
75
|
-
addSegment(labelStack);
|
|
76
|
-
}
|
|
77
73
|
var lastCompleteEndTime = 0;
|
|
78
74
|
var complete = withProfiling(function complete() {
|
|
79
75
|
var endTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : performance.now();
|
|
@@ -262,9 +258,7 @@ export default function UFOSegment(_ref) {
|
|
|
262
258
|
}
|
|
263
259
|
}, [interactionContext]);
|
|
264
260
|
useEffect(function () {
|
|
265
|
-
|
|
266
|
-
addSegment(labelStack);
|
|
267
|
-
}
|
|
261
|
+
addSegment(labelStack);
|
|
268
262
|
return function () {
|
|
269
263
|
removeSegment(labelStack);
|
|
270
264
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -139,12 +139,6 @@
|
|
|
139
139
|
"ufo-calc-speed-index": {
|
|
140
140
|
"type": "boolean"
|
|
141
141
|
},
|
|
142
|
-
"platform-ufo-add-segment-use-effect": {
|
|
143
|
-
"type": "boolean"
|
|
144
|
-
},
|
|
145
|
-
"ufo_chr_config": {
|
|
146
|
-
"type": "boolean"
|
|
147
|
-
},
|
|
148
142
|
"ufo_support_other_resource_type_js": {
|
|
149
143
|
"type": "boolean"
|
|
150
144
|
},
|