@atlaskit/react-ufo 4.16.0 → 4.16.1
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 +7 -0
- package/dist/cjs/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -3
- package/dist/cjs/vc/vc-observer-new/metric-calculator/fy26_04/index.js +1 -4
- package/dist/cjs/vc/vc-observer-new/viewport-observer/utils/is-input-name-mutation.js +0 -4
- package/dist/es2019/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -3
- package/dist/es2019/vc/vc-observer-new/metric-calculator/fy26_04/index.js +1 -4
- package/dist/es2019/vc/vc-observer-new/viewport-observer/utils/is-input-name-mutation.js +0 -5
- package/dist/esm/vc/vc-observer-new/metric-calculator/fy25_03/index.js +1 -3
- package/dist/esm/vc/vc-observer-new/metric-calculator/fy26_04/index.js +1 -4
- package/dist/esm/vc/vc-observer-new/viewport-observer/utils/is-input-name-mutation.js +0 -5
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bfcf360d7d973`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bfcf360d7d973) -
|
|
8
|
+
FG cleanup - platform_ufo_ttvc_v4_exclude_input_name_mutation
|
|
9
|
+
|
|
3
10
|
## 4.16.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -35,9 +35,7 @@ var getConsideredEntryTypes = function getConsideredEntryTypes(include3p) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// Still included as part of TTVC v3
|
|
38
|
-
|
|
39
|
-
entryTypes.push('mutation:attribute:non-visual-input-name');
|
|
40
|
-
}
|
|
38
|
+
entryTypes.push('mutation:attribute:non-visual-input-name');
|
|
41
39
|
return entryTypes;
|
|
42
40
|
};
|
|
43
41
|
var VCCalculator_FY25_03 = exports.default = /*#__PURE__*/function (_AbstractVCCalculator) {
|
|
@@ -26,10 +26,7 @@ var getConsideredEntryTypes = function getConsideredEntryTypes() {
|
|
|
26
26
|
return consideredEntryTypes;
|
|
27
27
|
};
|
|
28
28
|
var getExcludedEntryTypes = function getExcludedEntryTypes() {
|
|
29
|
-
var excludedEntryTypes = ['layout-shift:same-rect'];
|
|
30
|
-
if ((0, _platformFeatureFlags.fg)('platform_ufo_ttvc_v4_exclude_input_name_mutation')) {
|
|
31
|
-
excludedEntryTypes.push('mutation:attribute:non-visual-input-name');
|
|
32
|
-
}
|
|
29
|
+
var excludedEntryTypes = ['layout-shift:same-rect', 'mutation:attribute:non-visual-input-name'];
|
|
33
30
|
return excludedEntryTypes;
|
|
34
31
|
};
|
|
35
32
|
var VCCalculator_FY26_04 = exports.default = /*#__PURE__*/function (_VCCalculator_FY25_) {
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isInputNameMutation = isInputNameMutation;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
// Detecting this is required due to a React/Chromium bug, where React itself triggers an attribute mutation for input elements
|
|
9
8
|
// Reference: https://atlassian.slack.com/archives/C08EK6TCUP6/p1764129900970719
|
|
10
9
|
function isInputNameMutation(_ref) {
|
|
@@ -12,8 +11,5 @@ function isInputNameMutation(_ref) {
|
|
|
12
11
|
attributeName = _ref.attributeName,
|
|
13
12
|
oldValue = _ref.oldValue,
|
|
14
13
|
newValue = _ref.newValue;
|
|
15
|
-
if (!(0, _platformFeatureFlags.fg)('platform_ufo_ttvc_v4_exclude_input_name_mutation')) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
14
|
return target instanceof HTMLInputElement && attributeName === 'name' && (oldValue === '' || newValue === '');
|
|
19
15
|
}
|
|
@@ -21,9 +21,7 @@ const getConsideredEntryTypes = include3p => {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// Still included as part of TTVC v3
|
|
24
|
-
|
|
25
|
-
entryTypes.push('mutation:attribute:non-visual-input-name');
|
|
26
|
-
}
|
|
24
|
+
entryTypes.push('mutation:attribute:non-visual-input-name');
|
|
27
25
|
return entryTypes;
|
|
28
26
|
};
|
|
29
27
|
export default class VCCalculator_FY25_03 extends AbstractVCCalculatorBase {
|
|
@@ -10,10 +10,7 @@ const getConsideredEntryTypes = () => {
|
|
|
10
10
|
return consideredEntryTypes;
|
|
11
11
|
};
|
|
12
12
|
const getExcludedEntryTypes = () => {
|
|
13
|
-
const excludedEntryTypes = ['layout-shift:same-rect'];
|
|
14
|
-
if (fg('platform_ufo_ttvc_v4_exclude_input_name_mutation')) {
|
|
15
|
-
excludedEntryTypes.push('mutation:attribute:non-visual-input-name');
|
|
16
|
-
}
|
|
13
|
+
const excludedEntryTypes = ['layout-shift:same-rect', 'mutation:attribute:non-visual-input-name'];
|
|
17
14
|
return excludedEntryTypes;
|
|
18
15
|
};
|
|
19
16
|
export default class VCCalculator_FY26_04 extends VCCalculator_FY25_03 {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
|
|
3
1
|
// Detecting this is required due to a React/Chromium bug, where React itself triggers an attribute mutation for input elements
|
|
4
2
|
// Reference: https://atlassian.slack.com/archives/C08EK6TCUP6/p1764129900970719
|
|
5
3
|
export function isInputNameMutation({
|
|
@@ -8,8 +6,5 @@ export function isInputNameMutation({
|
|
|
8
6
|
oldValue,
|
|
9
7
|
newValue
|
|
10
8
|
}) {
|
|
11
|
-
if (!fg('platform_ufo_ttvc_v4_exclude_input_name_mutation')) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
9
|
return target instanceof HTMLInputElement && attributeName === 'name' && (oldValue === '' || newValue === '');
|
|
15
10
|
}
|
|
@@ -28,9 +28,7 @@ var getConsideredEntryTypes = function getConsideredEntryTypes(include3p) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// Still included as part of TTVC v3
|
|
31
|
-
|
|
32
|
-
entryTypes.push('mutation:attribute:non-visual-input-name');
|
|
33
|
-
}
|
|
31
|
+
entryTypes.push('mutation:attribute:non-visual-input-name');
|
|
34
32
|
return entryTypes;
|
|
35
33
|
};
|
|
36
34
|
var VCCalculator_FY25_03 = /*#__PURE__*/function (_AbstractVCCalculator) {
|
|
@@ -19,10 +19,7 @@ var getConsideredEntryTypes = function getConsideredEntryTypes() {
|
|
|
19
19
|
return consideredEntryTypes;
|
|
20
20
|
};
|
|
21
21
|
var getExcludedEntryTypes = function getExcludedEntryTypes() {
|
|
22
|
-
var excludedEntryTypes = ['layout-shift:same-rect'];
|
|
23
|
-
if (fg('platform_ufo_ttvc_v4_exclude_input_name_mutation')) {
|
|
24
|
-
excludedEntryTypes.push('mutation:attribute:non-visual-input-name');
|
|
25
|
-
}
|
|
22
|
+
var excludedEntryTypes = ['layout-shift:same-rect', 'mutation:attribute:non-visual-input-name'];
|
|
26
23
|
return excludedEntryTypes;
|
|
27
24
|
};
|
|
28
25
|
var VCCalculator_FY26_04 = /*#__PURE__*/function (_VCCalculator_FY25_) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
|
|
3
1
|
// Detecting this is required due to a React/Chromium bug, where React itself triggers an attribute mutation for input elements
|
|
4
2
|
// Reference: https://atlassian.slack.com/archives/C08EK6TCUP6/p1764129900970719
|
|
5
3
|
export function isInputNameMutation(_ref) {
|
|
@@ -7,8 +5,5 @@ export function isInputNameMutation(_ref) {
|
|
|
7
5
|
attributeName = _ref.attributeName,
|
|
8
6
|
oldValue = _ref.oldValue,
|
|
9
7
|
newValue = _ref.newValue;
|
|
10
|
-
if (!fg('platform_ufo_ttvc_v4_exclude_input_name_mutation')) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
8
|
return target instanceof HTMLInputElement && attributeName === 'name' && (oldValue === '' || newValue === '');
|
|
14
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.1",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -110,9 +110,6 @@
|
|
|
110
110
|
"platform_ufo_critical_metrics_payload": {
|
|
111
111
|
"type": "boolean"
|
|
112
112
|
},
|
|
113
|
-
"platform_ufo_ttvc_v4_exclude_input_name_mutation": {
|
|
114
|
-
"type": "boolean"
|
|
115
|
-
},
|
|
116
113
|
"platform_ufo_disable_vcnext_observations": {
|
|
117
114
|
"type": "boolean"
|
|
118
115
|
},
|