@atlaskit/react-ufo 4.12.0 → 4.12.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`eec573b4a7a6a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eec573b4a7a6a) -
|
|
8
|
+
Excluded data-test* data-file* and data-context\* attributes from media fy25_03 as they are non
|
|
9
|
+
visual change required internally for testing and supporting copy and paste functionality
|
|
10
|
+
|
|
3
11
|
## 4.12.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -64,13 +64,20 @@ var VCCalculator_FY25_03 = exports.default = /*#__PURE__*/function (_AbstractVCC
|
|
|
64
64
|
if (excludeSmartAnswersInSearch && (0, _isEntrySmartAnswersInSearch.isEntrySmartAnswersInSearch)(entry)) {
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
|
-
if (entry.data.type === 'mutation:
|
|
67
|
+
if (entry.data.type === 'mutation:media' && (0, _platformFeatureFlags.fg)('media-perf-uplift-mutation-fix')) {
|
|
68
68
|
var entryData = entry.data;
|
|
69
69
|
var attributeName = entryData.attributeName;
|
|
70
|
-
if (
|
|
70
|
+
if (attributeName && (/data-(test|file|context)-\S+/g.test(attributeName) || attributeName === 'alt')) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (entry.data.type === 'mutation:attribute') {
|
|
75
|
+
var _entryData = entry.data;
|
|
76
|
+
var _attributeName = _entryData.attributeName;
|
|
77
|
+
if (!_attributeName || KNOWN_ATTRIBUTES_THAT_DOES_NOT_CAUSE_LAYOUT_SHIFTS.includes(_attributeName)) {
|
|
71
78
|
return false;
|
|
72
79
|
}
|
|
73
|
-
if (
|
|
80
|
+
if (_attributeName.startsWith('data-test') || _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' || _attributeName === 'contenteditable' || _attributeName === 'data-has-collab-initialised' || _attributeName === 'translate' || NON_VISUAL_ARIA_ATTRIBUTES.includes(_attributeName) || THIRD_PARTY_BROWSER_EXTENSION_ATTRIBUTES.includes(_attributeName) && (0, _platformFeatureFlags.fg)('platform_ufo_exclude_3p_extensions_from_ttvc')) {
|
|
74
81
|
return false;
|
|
75
82
|
}
|
|
76
83
|
return true;
|
|
@@ -46,6 +46,13 @@ export default class VCCalculator_FY25_03 extends AbstractVCCalculatorBase {
|
|
|
46
46
|
if (excludeSmartAnswersInSearch && isEntrySmartAnswersInSearch(entry)) {
|
|
47
47
|
return false;
|
|
48
48
|
}
|
|
49
|
+
if (entry.data.type === 'mutation:media' && fg('media-perf-uplift-mutation-fix')) {
|
|
50
|
+
const entryData = entry.data;
|
|
51
|
+
const attributeName = entryData.attributeName;
|
|
52
|
+
if (attributeName && (/data-(test|file|context)-\S+/g.test(attributeName) || attributeName === 'alt')) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
49
56
|
if (entry.data.type === 'mutation:attribute') {
|
|
50
57
|
const entryData = entry.data;
|
|
51
58
|
const attributeName = entryData.attributeName;
|
|
@@ -57,13 +57,20 @@ var VCCalculator_FY25_03 = /*#__PURE__*/function (_AbstractVCCalculator) {
|
|
|
57
57
|
if (excludeSmartAnswersInSearch && isEntrySmartAnswersInSearch(entry)) {
|
|
58
58
|
return false;
|
|
59
59
|
}
|
|
60
|
-
if (entry.data.type === 'mutation:
|
|
60
|
+
if (entry.data.type === 'mutation:media' && fg('media-perf-uplift-mutation-fix')) {
|
|
61
61
|
var entryData = entry.data;
|
|
62
62
|
var attributeName = entryData.attributeName;
|
|
63
|
-
if (
|
|
63
|
+
if (attributeName && (/data-(test|file|context)-\S+/g.test(attributeName) || attributeName === 'alt')) {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (entry.data.type === 'mutation:attribute') {
|
|
68
|
+
var _entryData = entry.data;
|
|
69
|
+
var _attributeName = _entryData.attributeName;
|
|
70
|
+
if (!_attributeName || KNOWN_ATTRIBUTES_THAT_DOES_NOT_CAUSE_LAYOUT_SHIFTS.includes(_attributeName)) {
|
|
64
71
|
return false;
|
|
65
72
|
}
|
|
66
|
-
if (
|
|
73
|
+
if (_attributeName.startsWith('data-test') || _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' || _attributeName === 'contenteditable' || _attributeName === 'data-has-collab-initialised' || _attributeName === 'translate' || NON_VISUAL_ARIA_ATTRIBUTES.includes(_attributeName) || THIRD_PARTY_BROWSER_EXTENSION_ATTRIBUTES.includes(_attributeName) && fg('platform_ufo_exclude_3p_extensions_from_ttvc')) {
|
|
67
74
|
return false;
|
|
68
75
|
}
|
|
69
76
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -162,6 +162,9 @@
|
|
|
162
162
|
},
|
|
163
163
|
"platform_ufo_drop_prior_fg_interactions": {
|
|
164
164
|
"type": "boolean"
|
|
165
|
+
},
|
|
166
|
+
"media-perf-uplift-mutation-fix": {
|
|
167
|
+
"type": "boolean"
|
|
165
168
|
}
|
|
166
169
|
}
|
|
167
170
|
}
|