@atlaskit/react-ufo 3.13.19 → 3.13.20
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.13.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#169139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169139)
|
|
8
|
+
[`b4d6e4e5e7a39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b4d6e4e5e7a39) -
|
|
9
|
+
AFO-4009 simplify UFO timeout to be 60s uniformly (behind fg)
|
|
10
|
+
|
|
3
11
|
## 3.13.19
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -49,6 +49,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
49
49
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
50
50
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
51
51
|
var _uuid = require("uuid");
|
|
52
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
52
53
|
var _coinflip = _interopRequireDefault(require("../coinflip"));
|
|
53
54
|
var _config = require("../config");
|
|
54
55
|
var _createExperimentalInteractionMetricsPayload = require("../create-experimental-interaction-metrics-payload");
|
|
@@ -863,7 +864,9 @@ function addBrowserMetricEvent(event) {
|
|
|
863
864
|
interaction.legacyMetrics = interaction.legacyMetrics || [];
|
|
864
865
|
interaction.legacyMetrics.push(event);
|
|
865
866
|
if ((interaction.type === 'page_load' || interaction.type === 'transition') && ((_event$config = event.config) === null || _event$config === void 0 ? void 0 : _event$config.type) === 'PAGE_LOAD') {
|
|
866
|
-
|
|
867
|
+
if (!(0, _platformFeatureFlags.fg)('platform_ufo_timeout_simplification')) {
|
|
868
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
869
|
+
}
|
|
867
870
|
removeHoldByID(interaction.id, interaction.ufoName);
|
|
868
871
|
}
|
|
869
872
|
}
|
|
@@ -882,7 +885,9 @@ function addApdexToAll(apdex) {
|
|
|
882
885
|
// do nothing
|
|
883
886
|
}
|
|
884
887
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
885
|
-
|
|
888
|
+
if (!(0, _platformFeatureFlags.fg)('platform_ufo_timeout_simplification')) {
|
|
889
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
890
|
+
}
|
|
886
891
|
removeHoldByID(key, interaction.ufoName);
|
|
887
892
|
}
|
|
888
893
|
});
|
|
@@ -902,7 +907,9 @@ function addApdex(interactionId, apdexInfo) {
|
|
|
902
907
|
// do nothing
|
|
903
908
|
}
|
|
904
909
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
905
|
-
|
|
910
|
+
if (!(0, _platformFeatureFlags.fg)('platform_ufo_timeout_simplification')) {
|
|
911
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
912
|
+
}
|
|
906
913
|
removeHoldByID(interactionId, interaction.ufoName);
|
|
907
914
|
}
|
|
908
915
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { v4 as createUUID } from 'uuid';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import coinflip from '../coinflip';
|
|
3
4
|
import { getAwaitBM3TTIList, getCapabilityRate, getConfig } from '../config';
|
|
4
5
|
import { experimentalVC, getExperimentalVCMetrics, onExperimentalInteractionComplete } from '../create-experimental-interaction-metrics-payload';
|
|
@@ -739,7 +740,9 @@ export function addBrowserMetricEvent(event) {
|
|
|
739
740
|
interaction.legacyMetrics = interaction.legacyMetrics || [];
|
|
740
741
|
interaction.legacyMetrics.push(event);
|
|
741
742
|
if ((interaction.type === 'page_load' || interaction.type === 'transition') && ((_event$config = event.config) === null || _event$config === void 0 ? void 0 : _event$config.type) === 'PAGE_LOAD') {
|
|
742
|
-
|
|
743
|
+
if (!fg('platform_ufo_timeout_simplification')) {
|
|
744
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
745
|
+
}
|
|
743
746
|
removeHoldByID(interaction.id, interaction.ufoName);
|
|
744
747
|
}
|
|
745
748
|
}
|
|
@@ -758,7 +761,9 @@ export function addApdexToAll(apdex) {
|
|
|
758
761
|
// do nothing
|
|
759
762
|
}
|
|
760
763
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
761
|
-
|
|
764
|
+
if (!fg('platform_ufo_timeout_simplification')) {
|
|
765
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
766
|
+
}
|
|
762
767
|
removeHoldByID(key, interaction.ufoName);
|
|
763
768
|
}
|
|
764
769
|
});
|
|
@@ -778,7 +783,9 @@ export function addApdex(interactionId, apdexInfo) {
|
|
|
778
783
|
// do nothing
|
|
779
784
|
}
|
|
780
785
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
781
|
-
|
|
786
|
+
if (!fg('platform_ufo_timeout_simplification')) {
|
|
787
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
788
|
+
}
|
|
782
789
|
removeHoldByID(interactionId, interaction.ufoName);
|
|
783
790
|
}
|
|
784
791
|
}
|
|
@@ -9,6 +9,7 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
9
9
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
10
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
11
|
import { v4 as createUUID } from 'uuid';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import coinflip from '../coinflip';
|
|
13
14
|
import { getAwaitBM3TTIList, getCapabilityRate, getConfig } from '../config';
|
|
14
15
|
import { experimentalVC, getExperimentalVCMetrics, onExperimentalInteractionComplete } from '../create-experimental-interaction-metrics-payload';
|
|
@@ -818,7 +819,9 @@ export function addBrowserMetricEvent(event) {
|
|
|
818
819
|
interaction.legacyMetrics = interaction.legacyMetrics || [];
|
|
819
820
|
interaction.legacyMetrics.push(event);
|
|
820
821
|
if ((interaction.type === 'page_load' || interaction.type === 'transition') && ((_event$config = event.config) === null || _event$config === void 0 ? void 0 : _event$config.type) === 'PAGE_LOAD') {
|
|
821
|
-
|
|
822
|
+
if (!fg('platform_ufo_timeout_simplification')) {
|
|
823
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
824
|
+
}
|
|
822
825
|
removeHoldByID(interaction.id, interaction.ufoName);
|
|
823
826
|
}
|
|
824
827
|
}
|
|
@@ -837,7 +840,9 @@ export function addApdexToAll(apdex) {
|
|
|
837
840
|
// do nothing
|
|
838
841
|
}
|
|
839
842
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
840
|
-
|
|
843
|
+
if (!fg('platform_ufo_timeout_simplification')) {
|
|
844
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
845
|
+
}
|
|
841
846
|
removeHoldByID(key, interaction.ufoName);
|
|
842
847
|
}
|
|
843
848
|
});
|
|
@@ -857,7 +862,9 @@ export function addApdex(interactionId, apdexInfo) {
|
|
|
857
862
|
// do nothing
|
|
858
863
|
}
|
|
859
864
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
860
|
-
|
|
865
|
+
if (!fg('platform_ufo_timeout_simplification')) {
|
|
866
|
+
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
867
|
+
}
|
|
861
868
|
removeHoldByID(interactionId, interaction.ufoName);
|
|
862
869
|
}
|
|
863
870
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.20",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -168,6 +168,9 @@
|
|
|
168
168
|
},
|
|
169
169
|
"platform_ufo_rll_placeholder_ignore": {
|
|
170
170
|
"type": "boolean"
|
|
171
|
+
},
|
|
172
|
+
"platform_ufo_timeout_simplification": {
|
|
173
|
+
"type": "boolean"
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
176
|
}
|