@atlaskit/react-ufo 4.1.3 → 4.1.5
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 +16 -0
- package/dist/cjs/interaction-metrics/index.js +8 -14
- package/dist/cjs/vc/vc-observer/getVCRevisionsData.js +2 -3
- package/dist/cjs/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +1 -4
- package/dist/es2019/interaction-metrics/index.js +8 -14
- package/dist/es2019/vc/vc-observer/getVCRevisionsData.js +2 -3
- package/dist/es2019/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +1 -4
- package/dist/esm/interaction-metrics/index.js +8 -14
- package/dist/esm/vc/vc-observer/getVCRevisionsData.js +2 -3
- package/dist/esm/vc/vc-observer-new/metric-calculator/abstract-base-vc-calculator.js +1 -4
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#191818](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/191818)
|
|
8
|
+
[`f8f8080d07991`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f8f8080d07991) -
|
|
9
|
+
clean up ff platform_ufo_rev_ratios
|
|
10
|
+
|
|
11
|
+
## 4.1.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#191244](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/191244)
|
|
16
|
+
[`2d701ec4a7166`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2d701ec4a7166) -
|
|
17
|
+
fix name values used for post-interaction-log rate limiting
|
|
18
|
+
|
|
3
19
|
## 4.1.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -734,10 +734,8 @@ function abort(interactionId, abortReason) {
|
|
|
734
734
|
callCancelCallbacks(interaction);
|
|
735
735
|
interaction.abortReason = abortReason;
|
|
736
736
|
finishInteraction(interactionId, interaction);
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
postInteractionLog.stopVCObserver();
|
|
740
|
-
}
|
|
737
|
+
postInteractionLog.reset();
|
|
738
|
+
postInteractionLog.stopVCObserver();
|
|
741
739
|
if ((0, _coinflip.default)((0, _config.getExperimentalInteractionRate)(interaction.ufoName, interaction.type))) {
|
|
742
740
|
(0, _createExperimentalInteractionMetricsPayload.onExperimentalInteractionComplete)(interactionId, interaction);
|
|
743
741
|
remove(interactionId);
|
|
@@ -751,10 +749,8 @@ function abortByNewInteraction(interactionId, interactionName) {
|
|
|
751
749
|
interaction.abortReason = 'new_interaction';
|
|
752
750
|
interaction.abortedByInteractionName = interactionName;
|
|
753
751
|
finishInteraction(interactionId, interaction);
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
postInteractionLog.stopVCObserver();
|
|
757
|
-
}
|
|
752
|
+
postInteractionLog.reset();
|
|
753
|
+
postInteractionLog.stopVCObserver();
|
|
758
754
|
if ((0, _coinflip.default)((0, _config.getExperimentalInteractionRate)(interaction.ufoName, interaction.type))) {
|
|
759
755
|
(0, _createExperimentalInteractionMetricsPayload.onExperimentalInteractionComplete)(interactionId, interaction);
|
|
760
756
|
remove(interactionId);
|
|
@@ -772,10 +768,8 @@ function abortAll(abortReason, abortedByInteractionName) {
|
|
|
772
768
|
}
|
|
773
769
|
}
|
|
774
770
|
finishInteraction(interactionId, interaction);
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
postInteractionLog.stopVCObserver();
|
|
778
|
-
}
|
|
771
|
+
postInteractionLog.reset();
|
|
772
|
+
postInteractionLog.stopVCObserver();
|
|
779
773
|
if ((0, _coinflip.default)((0, _config.getExperimentalInteractionRate)(interaction.ufoName, interaction.type))) {
|
|
780
774
|
(0, _createExperimentalInteractionMetricsPayload.onExperimentalInteractionComplete)(interactionId, interaction);
|
|
781
775
|
remove(interactionId);
|
|
@@ -788,7 +782,7 @@ function addOnCancelCallback(id, cancelCallback) {
|
|
|
788
782
|
}
|
|
789
783
|
function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelStack, routeName) {
|
|
790
784
|
var trace = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null;
|
|
791
|
-
if ((0, _coinflip.default)((0, _config.getPostInteractionRate)(ufoName, type))) {
|
|
785
|
+
if ((0, _coinflip.default)((0, _config.getPostInteractionRate)(routeName || ufoName, type))) {
|
|
792
786
|
postInteractionLog.reset();
|
|
793
787
|
}
|
|
794
788
|
var vcObserver;
|
|
@@ -907,7 +901,7 @@ function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelS
|
|
|
907
901
|
experienceKey: ufoName
|
|
908
902
|
});
|
|
909
903
|
if (type === 'transition' || (0, _platformFeatureFlags.fg)('platform_ufo_enable_vc_observer_per_interaction')) {
|
|
910
|
-
if ((0, _coinflip.default)((0, _config.getPostInteractionRate)(ufoName, type))) {
|
|
904
|
+
if ((0, _coinflip.default)((0, _config.getPostInteractionRate)(routeName || ufoName, type))) {
|
|
911
905
|
postInteractionLog.startVCObserver({
|
|
912
906
|
startTime: startTime
|
|
913
907
|
});
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getVCRevisionsData = getVCRevisionsData;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
9
|
var _config = require("../../config");
|
|
11
10
|
var _hiddenTiming = require("../../hidden-timing");
|
|
12
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
@@ -64,7 +63,7 @@ function getVCRevisionsData(_ref) {
|
|
|
64
63
|
'metric:vc90': shouldHaveVCmetric ? calculatedVC.VC['90'] : null,
|
|
65
64
|
vcDetails: createVCDetails(calculatedVC, shouldHaveVCmetric)
|
|
66
65
|
};
|
|
67
|
-
if (shouldHaveVCmetric
|
|
66
|
+
if (shouldHaveVCmetric) {
|
|
68
67
|
revision.ratios = ratios;
|
|
69
68
|
}
|
|
70
69
|
availableVCRevisionPayloads.push(revision);
|
|
@@ -76,7 +75,7 @@ function getVCRevisionsData(_ref) {
|
|
|
76
75
|
'metric:vc90': shouldHaveVCmetric ? calculatedVCNext.VC['90'] : null,
|
|
77
76
|
vcDetails: createVCDetails(calculatedVCNext, shouldHaveVCmetric)
|
|
78
77
|
};
|
|
79
|
-
if (shouldHaveVCmetric
|
|
78
|
+
if (shouldHaveVCmetric) {
|
|
80
79
|
_revision.ratios = ratios;
|
|
81
80
|
}
|
|
82
81
|
availableVCRevisionPayloads.push(_revision);
|
|
@@ -12,7 +12,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
14
14
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _percentileCalc = require("./percentile-calc");
|
|
17
16
|
var _getViewportHeight = _interopRequireDefault(require("./utils/get-viewport-height"));
|
|
18
17
|
var _getViewportWidth = _interopRequireDefault(require("./utils/get-viewport-width"));
|
|
@@ -351,9 +350,7 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
|
|
|
351
350
|
'metric:vc90': (_vcDetails$90$t = vcDetails === null || vcDetails === void 0 || (_vcDetails$ = vcDetails['90']) === null || _vcDetails$ === void 0 ? void 0 : _vcDetails$.t) !== null && _vcDetails$90$t !== void 0 ? _vcDetails$90$t : null,
|
|
352
351
|
vcDetails: vcDetails !== null && vcDetails !== void 0 ? vcDetails : undefined
|
|
353
352
|
};
|
|
354
|
-
|
|
355
|
-
result.ratios = this.calculateRatios(filteredEntries);
|
|
356
|
-
}
|
|
353
|
+
result.ratios = this.calculateRatios(filteredEntries);
|
|
357
354
|
return _context2.abrupt("return", result);
|
|
358
355
|
case 13:
|
|
359
356
|
case "end":
|
|
@@ -610,10 +610,8 @@ export function abort(interactionId, abortReason) {
|
|
|
610
610
|
callCancelCallbacks(interaction);
|
|
611
611
|
interaction.abortReason = abortReason;
|
|
612
612
|
finishInteraction(interactionId, interaction);
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
postInteractionLog.stopVCObserver();
|
|
616
|
-
}
|
|
613
|
+
postInteractionLog.reset();
|
|
614
|
+
postInteractionLog.stopVCObserver();
|
|
617
615
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
618
616
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
619
617
|
remove(interactionId);
|
|
@@ -627,10 +625,8 @@ export function abortByNewInteraction(interactionId, interactionName) {
|
|
|
627
625
|
interaction.abortReason = 'new_interaction';
|
|
628
626
|
interaction.abortedByInteractionName = interactionName;
|
|
629
627
|
finishInteraction(interactionId, interaction);
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
postInteractionLog.stopVCObserver();
|
|
633
|
-
}
|
|
628
|
+
postInteractionLog.reset();
|
|
629
|
+
postInteractionLog.stopVCObserver();
|
|
634
630
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
635
631
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
636
632
|
remove(interactionId);
|
|
@@ -648,10 +644,8 @@ export function abortAll(abortReason, abortedByInteractionName) {
|
|
|
648
644
|
}
|
|
649
645
|
}
|
|
650
646
|
finishInteraction(interactionId, interaction);
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
postInteractionLog.stopVCObserver();
|
|
654
|
-
}
|
|
647
|
+
postInteractionLog.reset();
|
|
648
|
+
postInteractionLog.stopVCObserver();
|
|
655
649
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
656
650
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
657
651
|
remove(interactionId);
|
|
@@ -663,7 +657,7 @@ export function addOnCancelCallback(id, cancelCallback) {
|
|
|
663
657
|
interaction === null || interaction === void 0 ? void 0 : interaction.cancelCallbacks.push(cancelCallback);
|
|
664
658
|
}
|
|
665
659
|
export function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelStack, routeName, trace = null) {
|
|
666
|
-
if (coinflip(getPostInteractionRate(ufoName, type))) {
|
|
660
|
+
if (coinflip(getPostInteractionRate(routeName || ufoName, type))) {
|
|
667
661
|
postInteractionLog.reset();
|
|
668
662
|
}
|
|
669
663
|
let vcObserver;
|
|
@@ -782,7 +776,7 @@ export function addNewInteraction(interactionId, ufoName, type, startTime, rate,
|
|
|
782
776
|
experienceKey: ufoName
|
|
783
777
|
});
|
|
784
778
|
if (type === 'transition' || fg('platform_ufo_enable_vc_observer_per_interaction')) {
|
|
785
|
-
if (coinflip(getPostInteractionRate(ufoName, type))) {
|
|
779
|
+
if (coinflip(getPostInteractionRate(routeName || ufoName, type))) {
|
|
786
780
|
postInteractionLog.startVCObserver({
|
|
787
781
|
startTime
|
|
788
782
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { isVCRevisionEnabled } from '../../config';
|
|
3
2
|
import { getPageVisibilityState } from '../../hidden-timing';
|
|
4
3
|
const VCParts = ['25', '50', '75', '80', '85', '90', '95', '98', '99'];
|
|
@@ -48,7 +47,7 @@ export function getVCRevisionsData({
|
|
|
48
47
|
'metric:vc90': shouldHaveVCmetric ? calculatedVC.VC['90'] : null,
|
|
49
48
|
vcDetails: createVCDetails(calculatedVC, shouldHaveVCmetric)
|
|
50
49
|
};
|
|
51
|
-
if (shouldHaveVCmetric
|
|
50
|
+
if (shouldHaveVCmetric) {
|
|
52
51
|
revision.ratios = ratios;
|
|
53
52
|
}
|
|
54
53
|
availableVCRevisionPayloads.push(revision);
|
|
@@ -60,7 +59,7 @@ export function getVCRevisionsData({
|
|
|
60
59
|
'metric:vc90': shouldHaveVCmetric ? calculatedVCNext.VC['90'] : null,
|
|
61
60
|
vcDetails: createVCDetails(calculatedVCNext, shouldHaveVCmetric)
|
|
62
61
|
};
|
|
63
|
-
if (shouldHaveVCmetric
|
|
62
|
+
if (shouldHaveVCmetric) {
|
|
64
63
|
revision.ratios = ratios;
|
|
65
64
|
}
|
|
66
65
|
availableVCRevisionPayloads.push(revision);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { calculateTTVCPercentilesWithDebugInfo } from './percentile-calc';
|
|
3
2
|
import getViewportHeight from './utils/get-viewport-height';
|
|
4
3
|
import getViewportWidth from './utils/get-viewport-width';
|
|
@@ -241,9 +240,7 @@ export default class AbstractVCCalculatorBase {
|
|
|
241
240
|
'metric:vc90': (_vcDetails$90$t = vcDetails === null || vcDetails === void 0 ? void 0 : (_vcDetails$ = vcDetails['90']) === null || _vcDetails$ === void 0 ? void 0 : _vcDetails$.t) !== null && _vcDetails$90$t !== void 0 ? _vcDetails$90$t : null,
|
|
242
241
|
vcDetails: vcDetails !== null && vcDetails !== void 0 ? vcDetails : undefined
|
|
243
242
|
};
|
|
244
|
-
|
|
245
|
-
result.ratios = this.calculateRatios(filteredEntries);
|
|
246
|
-
}
|
|
243
|
+
result.ratios = this.calculateRatios(filteredEntries);
|
|
247
244
|
return result;
|
|
248
245
|
}
|
|
249
246
|
}
|
|
@@ -688,10 +688,8 @@ export function abort(interactionId, abortReason) {
|
|
|
688
688
|
callCancelCallbacks(interaction);
|
|
689
689
|
interaction.abortReason = abortReason;
|
|
690
690
|
finishInteraction(interactionId, interaction);
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
postInteractionLog.stopVCObserver();
|
|
694
|
-
}
|
|
691
|
+
postInteractionLog.reset();
|
|
692
|
+
postInteractionLog.stopVCObserver();
|
|
695
693
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
696
694
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
697
695
|
remove(interactionId);
|
|
@@ -705,10 +703,8 @@ export function abortByNewInteraction(interactionId, interactionName) {
|
|
|
705
703
|
interaction.abortReason = 'new_interaction';
|
|
706
704
|
interaction.abortedByInteractionName = interactionName;
|
|
707
705
|
finishInteraction(interactionId, interaction);
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
postInteractionLog.stopVCObserver();
|
|
711
|
-
}
|
|
706
|
+
postInteractionLog.reset();
|
|
707
|
+
postInteractionLog.stopVCObserver();
|
|
712
708
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
713
709
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
714
710
|
remove(interactionId);
|
|
@@ -726,10 +722,8 @@ export function abortAll(abortReason, abortedByInteractionName) {
|
|
|
726
722
|
}
|
|
727
723
|
}
|
|
728
724
|
finishInteraction(interactionId, interaction);
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
postInteractionLog.stopVCObserver();
|
|
732
|
-
}
|
|
725
|
+
postInteractionLog.reset();
|
|
726
|
+
postInteractionLog.stopVCObserver();
|
|
733
727
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
734
728
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
735
729
|
remove(interactionId);
|
|
@@ -742,7 +736,7 @@ export function addOnCancelCallback(id, cancelCallback) {
|
|
|
742
736
|
}
|
|
743
737
|
export function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelStack, routeName) {
|
|
744
738
|
var trace = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null;
|
|
745
|
-
if (coinflip(getPostInteractionRate(ufoName, type))) {
|
|
739
|
+
if (coinflip(getPostInteractionRate(routeName || ufoName, type))) {
|
|
746
740
|
postInteractionLog.reset();
|
|
747
741
|
}
|
|
748
742
|
var vcObserver;
|
|
@@ -861,7 +855,7 @@ export function addNewInteraction(interactionId, ufoName, type, startTime, rate,
|
|
|
861
855
|
experienceKey: ufoName
|
|
862
856
|
});
|
|
863
857
|
if (type === 'transition' || fg('platform_ufo_enable_vc_observer_per_interaction')) {
|
|
864
|
-
if (coinflip(getPostInteractionRate(ufoName, type))) {
|
|
858
|
+
if (coinflip(getPostInteractionRate(routeName || ufoName, type))) {
|
|
865
859
|
postInteractionLog.startVCObserver({
|
|
866
860
|
startTime: startTime
|
|
867
861
|
});
|
|
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
3
3
|
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; } }
|
|
4
4
|
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; }
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { isVCRevisionEnabled } from '../../config';
|
|
7
6
|
import { getPageVisibilityState } from '../../hidden-timing';
|
|
8
7
|
var VCParts = ['25', '50', '75', '80', '85', '90', '95', '98', '99'];
|
|
@@ -57,7 +56,7 @@ export function getVCRevisionsData(_ref) {
|
|
|
57
56
|
'metric:vc90': shouldHaveVCmetric ? calculatedVC.VC['90'] : null,
|
|
58
57
|
vcDetails: createVCDetails(calculatedVC, shouldHaveVCmetric)
|
|
59
58
|
};
|
|
60
|
-
if (shouldHaveVCmetric
|
|
59
|
+
if (shouldHaveVCmetric) {
|
|
61
60
|
revision.ratios = ratios;
|
|
62
61
|
}
|
|
63
62
|
availableVCRevisionPayloads.push(revision);
|
|
@@ -69,7 +68,7 @@ export function getVCRevisionsData(_ref) {
|
|
|
69
68
|
'metric:vc90': shouldHaveVCmetric ? calculatedVCNext.VC['90'] : null,
|
|
70
69
|
vcDetails: createVCDetails(calculatedVCNext, shouldHaveVCmetric)
|
|
71
70
|
};
|
|
72
|
-
if (shouldHaveVCmetric
|
|
71
|
+
if (shouldHaveVCmetric) {
|
|
73
72
|
_revision.ratios = ratios;
|
|
74
73
|
}
|
|
75
74
|
availableVCRevisionPayloads.push(_revision);
|
|
@@ -10,7 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
11
11
|
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; } }
|
|
12
12
|
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; }
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { calculateTTVCPercentilesWithDebugInfo } from './percentile-calc';
|
|
15
14
|
import getViewportHeight from './utils/get-viewport-height';
|
|
16
15
|
import getViewportWidth from './utils/get-viewport-width';
|
|
@@ -345,9 +344,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
|
|
|
345
344
|
'metric:vc90': (_vcDetails$90$t = vcDetails === null || vcDetails === void 0 || (_vcDetails$ = vcDetails['90']) === null || _vcDetails$ === void 0 ? void 0 : _vcDetails$.t) !== null && _vcDetails$90$t !== void 0 ? _vcDetails$90$t : null,
|
|
346
345
|
vcDetails: vcDetails !== null && vcDetails !== void 0 ? vcDetails : undefined
|
|
347
346
|
};
|
|
348
|
-
|
|
349
|
-
result.ratios = this.calculateRatios(filteredEntries);
|
|
350
|
-
}
|
|
347
|
+
result.ratios = this.calculateRatios(filteredEntries);
|
|
351
348
|
return _context2.abrupt("return", result);
|
|
352
349
|
case 13:
|
|
353
350
|
case "end":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -159,9 +159,6 @@
|
|
|
159
159
|
"platform_ufo_enable_events_observer": {
|
|
160
160
|
"type": "boolean"
|
|
161
161
|
},
|
|
162
|
-
"platform_ufo_rev_ratios": {
|
|
163
|
-
"type": "boolean"
|
|
164
|
-
},
|
|
165
162
|
"platform_ufo_ssr_size_field": {
|
|
166
163
|
"type": "boolean"
|
|
167
164
|
},
|