@atlaskit/react-ufo 4.1.6 → 4.1.8
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/interaction-metrics/index.js +0 -10
- package/dist/cjs/vc/vc-observer/observers/rll-placeholders/index.js +0 -4
- package/dist/cjs/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
- package/dist/es2019/interaction-metrics/index.js +0 -10
- package/dist/es2019/vc/vc-observer/observers/rll-placeholders/index.js +0 -4
- package/dist/es2019/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
- package/dist/esm/interaction-metrics/index.js +0 -10
- package/dist/esm/vc/vc-observer/observers/rll-placeholders/index.js +0 -4
- package/dist/esm/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -1
- package/package.json +1 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#192707](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/192707)
|
|
8
|
+
[`400679111bbaf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/400679111bbaf) -
|
|
9
|
+
AFO-39898 cleanup ff platform_ufo_rll_placeholder_ignore
|
|
10
|
+
|
|
11
|
+
## 4.1.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#190129](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190129)
|
|
16
|
+
[`396971b979d5d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/396971b979d5d) -
|
|
17
|
+
FG cleanup - platform_ufo_ignore_extra_attributes
|
|
18
|
+
- [#190121](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190121)
|
|
19
|
+
[`5541b82436020`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5541b82436020) -
|
|
20
|
+
FG cleanup - platform_ufo_timeout_simplification
|
|
21
|
+
|
|
3
22
|
## 4.1.6
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -73,7 +73,6 @@ var postInteractionLog = exports.postInteractionLog = new _postInteractionLog.de
|
|
|
73
73
|
var interactionQueue = [];
|
|
74
74
|
var segmentCache = new Map();
|
|
75
75
|
var CLEANUP_TIMEOUT = 60 * 1000;
|
|
76
|
-
var CLEANUP_TIMEOUT_AFTER_APDEX = 15 * 1000;
|
|
77
76
|
var segmentObservers = [];
|
|
78
77
|
function getActiveInteraction() {
|
|
79
78
|
var interactionId = (0, _interactionIdContext.getInteractionId)();
|
|
@@ -929,9 +928,6 @@ function addBrowserMetricEvent(event) {
|
|
|
929
928
|
interaction.legacyMetrics = interaction.legacyMetrics || [];
|
|
930
929
|
interaction.legacyMetrics.push(event);
|
|
931
930
|
if ((interaction.type === 'page_load' || interaction.type === 'transition') && ((_event$config = event.config) === null || _event$config === void 0 ? void 0 : _event$config.type) === 'PAGE_LOAD') {
|
|
932
|
-
if (!(0, _platformFeatureFlags.fg)('platform_ufo_timeout_simplification')) {
|
|
933
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
934
|
-
}
|
|
935
931
|
removeHoldByID(interaction.id, interaction.ufoName);
|
|
936
932
|
}
|
|
937
933
|
}
|
|
@@ -950,9 +946,6 @@ function addApdexToAll(apdex) {
|
|
|
950
946
|
// do nothing
|
|
951
947
|
}
|
|
952
948
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
953
|
-
if (!(0, _platformFeatureFlags.fg)('platform_ufo_timeout_simplification')) {
|
|
954
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
955
|
-
}
|
|
956
949
|
removeHoldByID(key, interaction.ufoName);
|
|
957
950
|
}
|
|
958
951
|
});
|
|
@@ -972,9 +965,6 @@ function addApdex(interactionId, apdexInfo) {
|
|
|
972
965
|
// do nothing
|
|
973
966
|
}
|
|
974
967
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
975
|
-
if (!(0, _platformFeatureFlags.fg)('platform_ufo_timeout_simplification')) {
|
|
976
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
977
|
-
}
|
|
978
968
|
removeHoldByID(interactionId, interaction.ufoName);
|
|
979
969
|
}
|
|
980
970
|
}
|
|
@@ -9,7 +9,6 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var GLOBAL_RLL_HANDLERS_KEY = '__REACT_UFO_RLL_PLACEHOLDER_HANDLERS__';
|
|
14
13
|
var RLLPlaceholderHandlers = exports.RLLPlaceholderHandlers = /*#__PURE__*/function () {
|
|
15
14
|
function RLLPlaceholderHandlers() {
|
|
@@ -43,9 +42,6 @@ var RLLPlaceholderHandlers = exports.RLLPlaceholderHandlers = /*#__PURE__*/funct
|
|
|
43
42
|
if (typeof window === 'undefined' || typeof document === 'undefined' || typeof window.document === 'undefined') {
|
|
44
43
|
return;
|
|
45
44
|
}
|
|
46
|
-
if (!(0, _platformFeatureFlags.fg)('platform_ufo_rll_placeholder_ignore')) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
45
|
var beginElements = document.querySelectorAll('input[data-lazy-begin]');
|
|
50
46
|
var beginCount = beginElements.length;
|
|
51
47
|
if (beginCount === 0) {
|
|
@@ -56,7 +56,7 @@ var VCCalculator_FY25_03 = exports.default = /*#__PURE__*/function (_AbstractVCC
|
|
|
56
56
|
if (!attributeName || KNOWN_ATTRIBUTES_THAT_DOES_NOT_CAUSE_LAYOUT_SHIFTS.includes(attributeName)) {
|
|
57
57
|
return false;
|
|
58
58
|
}
|
|
59
|
-
if (attributeName.startsWith('data-test') && (0, _platformFeatureFlags.fg)('platform_ufo_ttvc_exclude_data_test_attribute') || attributeName === 'data-aui-version' || attributeName === 'data-testid' || attributeName === 'data-vc' || attributeName === 'data-ssr-placeholder' || attributeName === 'data-ssr-placeholder-replace' || attributeName === 'data-vc-nvs' || attributeName === 'data-media-vc-wrapper' ||
|
|
59
|
+
if (attributeName.startsWith('data-test') && (0, _platformFeatureFlags.fg)('platform_ufo_ttvc_exclude_data_test_attribute') || attributeName === 'data-aui-version' || attributeName === 'data-testid' || attributeName === 'data-vc' || attributeName === 'data-ssr-placeholder' || attributeName === 'data-ssr-placeholder-replace' || attributeName === 'data-vc-nvs' || attributeName === 'data-media-vc-wrapper' || attributeName === 'data-renderer-start-pos' || attributeName === 'data-table-local-id' || attributeName === 'spellcheck' || attributeName === 'data-auto-scrollable' || attributeName === 'id' || attributeName === 'tabindex' || attributeName === 'data-is-ttvc-ready' || NON_VISUAL_ARIA_ATTRIBUTES.includes(attributeName)) {
|
|
60
60
|
return false;
|
|
61
61
|
}
|
|
62
62
|
return true;
|
|
@@ -17,7 +17,6 @@ export const postInteractionLog = new PostInteractionLog();
|
|
|
17
17
|
const interactionQueue = [];
|
|
18
18
|
const segmentCache = new Map();
|
|
19
19
|
const CLEANUP_TIMEOUT = 60 * 1000;
|
|
20
|
-
const CLEANUP_TIMEOUT_AFTER_APDEX = 15 * 1000;
|
|
21
20
|
const segmentObservers = [];
|
|
22
21
|
export function getActiveInteraction() {
|
|
23
22
|
const interactionId = getInteractionId();
|
|
@@ -804,9 +803,6 @@ export function addBrowserMetricEvent(event) {
|
|
|
804
803
|
interaction.legacyMetrics = interaction.legacyMetrics || [];
|
|
805
804
|
interaction.legacyMetrics.push(event);
|
|
806
805
|
if ((interaction.type === 'page_load' || interaction.type === 'transition') && ((_event$config = event.config) === null || _event$config === void 0 ? void 0 : _event$config.type) === 'PAGE_LOAD') {
|
|
807
|
-
if (!fg('platform_ufo_timeout_simplification')) {
|
|
808
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
809
|
-
}
|
|
810
806
|
removeHoldByID(interaction.id, interaction.ufoName);
|
|
811
807
|
}
|
|
812
808
|
}
|
|
@@ -825,9 +821,6 @@ export function addApdexToAll(apdex) {
|
|
|
825
821
|
// do nothing
|
|
826
822
|
}
|
|
827
823
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
828
|
-
if (!fg('platform_ufo_timeout_simplification')) {
|
|
829
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
830
|
-
}
|
|
831
824
|
removeHoldByID(key, interaction.ufoName);
|
|
832
825
|
}
|
|
833
826
|
});
|
|
@@ -847,9 +840,6 @@ export function addApdex(interactionId, apdexInfo) {
|
|
|
847
840
|
// do nothing
|
|
848
841
|
}
|
|
849
842
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
850
|
-
if (!fg('platform_ufo_timeout_simplification')) {
|
|
851
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
852
|
-
}
|
|
853
843
|
removeHoldByID(interactionId, interaction.ufoName);
|
|
854
844
|
}
|
|
855
845
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
const GLOBAL_RLL_HANDLERS_KEY = '__REACT_UFO_RLL_PLACEHOLDER_HANDLERS__';
|
|
4
3
|
export class RLLPlaceholderHandlers {
|
|
5
4
|
constructor() {
|
|
@@ -39,9 +38,6 @@ export class RLLPlaceholderHandlers {
|
|
|
39
38
|
if (typeof window === 'undefined' || typeof document === 'undefined' || typeof window.document === 'undefined') {
|
|
40
39
|
return;
|
|
41
40
|
}
|
|
42
|
-
if (!fg('platform_ufo_rll_placeholder_ignore')) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
41
|
const beginElements = document.querySelectorAll('input[data-lazy-begin]');
|
|
46
42
|
const beginCount = beginElements.length;
|
|
47
43
|
if (beginCount === 0) {
|
|
@@ -38,7 +38,7 @@ export default class VCCalculator_FY25_03 extends AbstractVCCalculatorBase {
|
|
|
38
38
|
if (!attributeName || KNOWN_ATTRIBUTES_THAT_DOES_NOT_CAUSE_LAYOUT_SHIFTS.includes(attributeName)) {
|
|
39
39
|
return false;
|
|
40
40
|
}
|
|
41
|
-
if (attributeName.startsWith('data-test') && fg('platform_ufo_ttvc_exclude_data_test_attribute') || attributeName === 'data-aui-version' || attributeName === 'data-testid' || attributeName === 'data-vc' || attributeName === 'data-ssr-placeholder' || attributeName === 'data-ssr-placeholder-replace' || attributeName === 'data-vc-nvs' || attributeName === 'data-media-vc-wrapper' ||
|
|
41
|
+
if (attributeName.startsWith('data-test') && fg('platform_ufo_ttvc_exclude_data_test_attribute') || attributeName === 'data-aui-version' || attributeName === 'data-testid' || attributeName === 'data-vc' || attributeName === 'data-ssr-placeholder' || attributeName === 'data-ssr-placeholder-replace' || attributeName === 'data-vc-nvs' || attributeName === 'data-media-vc-wrapper' || attributeName === 'data-renderer-start-pos' || attributeName === 'data-table-local-id' || attributeName === 'spellcheck' || attributeName === 'data-auto-scrollable' || attributeName === 'id' || attributeName === 'tabindex' || attributeName === 'data-is-ttvc-ready' || NON_VISUAL_ARIA_ATTRIBUTES.includes(attributeName)) {
|
|
42
42
|
return false;
|
|
43
43
|
}
|
|
44
44
|
return true;
|
|
@@ -27,7 +27,6 @@ export var postInteractionLog = new PostInteractionLog();
|
|
|
27
27
|
var interactionQueue = [];
|
|
28
28
|
var segmentCache = new Map();
|
|
29
29
|
var CLEANUP_TIMEOUT = 60 * 1000;
|
|
30
|
-
var CLEANUP_TIMEOUT_AFTER_APDEX = 15 * 1000;
|
|
31
30
|
var segmentObservers = [];
|
|
32
31
|
export function getActiveInteraction() {
|
|
33
32
|
var interactionId = getInteractionId();
|
|
@@ -883,9 +882,6 @@ export function addBrowserMetricEvent(event) {
|
|
|
883
882
|
interaction.legacyMetrics = interaction.legacyMetrics || [];
|
|
884
883
|
interaction.legacyMetrics.push(event);
|
|
885
884
|
if ((interaction.type === 'page_load' || interaction.type === 'transition') && ((_event$config = event.config) === null || _event$config === void 0 ? void 0 : _event$config.type) === 'PAGE_LOAD') {
|
|
886
|
-
if (!fg('platform_ufo_timeout_simplification')) {
|
|
887
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
888
|
-
}
|
|
889
885
|
removeHoldByID(interaction.id, interaction.ufoName);
|
|
890
886
|
}
|
|
891
887
|
}
|
|
@@ -904,9 +900,6 @@ export function addApdexToAll(apdex) {
|
|
|
904
900
|
// do nothing
|
|
905
901
|
}
|
|
906
902
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
907
|
-
if (!fg('platform_ufo_timeout_simplification')) {
|
|
908
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
909
|
-
}
|
|
910
903
|
removeHoldByID(key, interaction.ufoName);
|
|
911
904
|
}
|
|
912
905
|
});
|
|
@@ -926,9 +919,6 @@ export function addApdex(interactionId, apdexInfo) {
|
|
|
926
919
|
// do nothing
|
|
927
920
|
}
|
|
928
921
|
if (interaction.type === 'page_load' || interaction.type === 'transition') {
|
|
929
|
-
if (!fg('platform_ufo_timeout_simplification')) {
|
|
930
|
-
interaction.changeTimeout(CLEANUP_TIMEOUT_AFTER_APDEX);
|
|
931
|
-
}
|
|
932
922
|
removeHoldByID(interactionId, interaction.ufoName);
|
|
933
923
|
}
|
|
934
924
|
}
|
|
@@ -2,7 +2,6 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
var GLOBAL_RLL_HANDLERS_KEY = '__REACT_UFO_RLL_PLACEHOLDER_HANDLERS__';
|
|
7
6
|
export var RLLPlaceholderHandlers = /*#__PURE__*/function () {
|
|
8
7
|
function RLLPlaceholderHandlers() {
|
|
@@ -36,9 +35,6 @@ export var RLLPlaceholderHandlers = /*#__PURE__*/function () {
|
|
|
36
35
|
if (typeof window === 'undefined' || typeof document === 'undefined' || typeof window.document === 'undefined') {
|
|
37
36
|
return;
|
|
38
37
|
}
|
|
39
|
-
if (!fg('platform_ufo_rll_placeholder_ignore')) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
38
|
var beginElements = document.querySelectorAll('input[data-lazy-begin]');
|
|
43
39
|
var beginCount = beginElements.length;
|
|
44
40
|
if (beginCount === 0) {
|
|
@@ -49,7 +49,7 @@ var VCCalculator_FY25_03 = /*#__PURE__*/function (_AbstractVCCalculator) {
|
|
|
49
49
|
if (!attributeName || KNOWN_ATTRIBUTES_THAT_DOES_NOT_CAUSE_LAYOUT_SHIFTS.includes(attributeName)) {
|
|
50
50
|
return false;
|
|
51
51
|
}
|
|
52
|
-
if (attributeName.startsWith('data-test') && fg('platform_ufo_ttvc_exclude_data_test_attribute') || attributeName === 'data-aui-version' || attributeName === 'data-testid' || attributeName === 'data-vc' || attributeName === 'data-ssr-placeholder' || attributeName === 'data-ssr-placeholder-replace' || attributeName === 'data-vc-nvs' || attributeName === 'data-media-vc-wrapper' ||
|
|
52
|
+
if (attributeName.startsWith('data-test') && fg('platform_ufo_ttvc_exclude_data_test_attribute') || attributeName === 'data-aui-version' || attributeName === 'data-testid' || attributeName === 'data-vc' || attributeName === 'data-ssr-placeholder' || attributeName === 'data-ssr-placeholder-replace' || attributeName === 'data-vc-nvs' || attributeName === 'data-media-vc-wrapper' || attributeName === 'data-renderer-start-pos' || attributeName === 'data-table-local-id' || attributeName === 'spellcheck' || attributeName === 'data-auto-scrollable' || attributeName === 'id' || attributeName === 'tabindex' || attributeName === 'data-is-ttvc-ready' || NON_VISUAL_ARIA_ATTRIBUTES.includes(attributeName)) {
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -162,12 +162,6 @@
|
|
|
162
162
|
"platform_ufo_ssr_size_field": {
|
|
163
163
|
"type": "boolean"
|
|
164
164
|
},
|
|
165
|
-
"platform_ufo_rll_placeholder_ignore": {
|
|
166
|
-
"type": "boolean"
|
|
167
|
-
},
|
|
168
|
-
"platform_ufo_timeout_simplification": {
|
|
169
|
-
"type": "boolean"
|
|
170
|
-
},
|
|
171
165
|
"platform_ufo_enable_timeout_config": {
|
|
172
166
|
"type": "boolean"
|
|
173
167
|
},
|
|
@@ -177,9 +171,6 @@
|
|
|
177
171
|
"platform_ufo_enable_interactivity_jsm": {
|
|
178
172
|
"type": "boolean"
|
|
179
173
|
},
|
|
180
|
-
"platform_ufo_ignore_extra_attributes": {
|
|
181
|
-
"type": "boolean"
|
|
182
|
-
},
|
|
183
174
|
"platform_ufo_exclude_3p_elements_from_ttai": {
|
|
184
175
|
"type": "boolean"
|
|
185
176
|
},
|