@atlaskit/react-ufo 5.5.3 → 5.5.4

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,12 @@
1
1
  # @atlaskit/ufo-interaction-ignore
2
2
 
3
+ ## 5.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fe2db5c510193`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fe2db5c510193) -
8
+ Clean up feature gate platform_ufo_exclude_3p_elements_from_ttvc - gate always evaluates to true
9
+
3
10
  ## 5.5.3
4
11
 
5
12
  ### Patch Changes
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.containsDnDMutationInStyle = containsDnDMutationInStyle;
7
7
  exports.default = void 0;
8
8
  exports.isDnDStyleMutation = isDnDStyleMutation;
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
9
  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
10
  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
11
  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; }
@@ -48,9 +47,6 @@ function isDnDStyleMutation(_ref) {
48
47
  attributeName = _ref.attributeName,
49
48
  oldValue = _ref.oldValue,
50
49
  newValue = _ref.newValue;
51
- if (!(0, _platformFeatureFlags.fg)('platform_editor_exclude_dnd_anchor_name_from_ttvc')) {
52
- return false;
53
- }
54
50
  if (!(target instanceof Element)) {
55
51
  return false;
56
52
  }
@@ -24,9 +24,8 @@ var REVISION_NO = 'fy25.03';
24
24
  var getConsideredEntryTypes = function getConsideredEntryTypes(include3p, excludeSmartAnswersInSearch) {
25
25
  var entryTypes = ['mutation:child-element', 'mutation:element', 'mutation:attribute', 'layout-shift', 'layout-shift:same-rect', 'window:event'];
26
26
 
27
- // If not exclude 3p elements from ttvc,
28
- // including the tags into the ConsideredEntryTypes so that it won't be ignored for TTVC calculation
29
- if (!(0, _platformFeatureFlags.fg)('platform_ufo_exclude_3p_elements_from_ttvc') || include3p) {
27
+ // Only include third-party elements in TTVC calculation when explicitly requested
28
+ if (include3p) {
30
29
  entryTypes.push('mutation:third-party-element');
31
30
  entryTypes.push('mutation:third-party-attribute');
32
31
  }
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  const isDnDStyleChange = style => {
3
2
  return style.startsWith('anchor-name: --node-anchor');
4
3
  };
@@ -29,9 +28,6 @@ function isDnDStyleMutation({
29
28
  oldValue,
30
29
  newValue
31
30
  }) {
32
- if (!fg('platform_editor_exclude_dnd_anchor_name_from_ttvc')) {
33
- return false;
34
- }
35
31
  if (!(target instanceof Element)) {
36
32
  return false;
37
33
  }
@@ -10,9 +10,8 @@ const REVISION_NO = 'fy25.03';
10
10
  const getConsideredEntryTypes = (include3p, excludeSmartAnswersInSearch) => {
11
11
  const entryTypes = ['mutation:child-element', 'mutation:element', 'mutation:attribute', 'layout-shift', 'layout-shift:same-rect', 'window:event'];
12
12
 
13
- // If not exclude 3p elements from ttvc,
14
- // including the tags into the ConsideredEntryTypes so that it won't be ignored for TTVC calculation
15
- if (!fg('platform_ufo_exclude_3p_elements_from_ttvc') || include3p) {
13
+ // Only include third-party elements in TTVC calculation when explicitly requested
14
+ if (include3p) {
16
15
  entryTypes.push('mutation:third-party-element');
17
16
  entryTypes.push('mutation:third-party-attribute');
18
17
  }
@@ -1,7 +1,6 @@
1
1
  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; } } }; }
2
2
  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; } }
3
3
  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; }
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  var isDnDStyleChange = function isDnDStyleChange(style) {
6
5
  return style.startsWith('anchor-name: --node-anchor');
7
6
  };
@@ -40,9 +39,6 @@ function isDnDStyleMutation(_ref) {
40
39
  attributeName = _ref.attributeName,
41
40
  oldValue = _ref.oldValue,
42
41
  newValue = _ref.newValue;
43
- if (!fg('platform_editor_exclude_dnd_anchor_name_from_ttvc')) {
44
- return false;
45
- }
46
42
  if (!(target instanceof Element)) {
47
43
  return false;
48
44
  }
@@ -17,9 +17,8 @@ var REVISION_NO = 'fy25.03';
17
17
  var getConsideredEntryTypes = function getConsideredEntryTypes(include3p, excludeSmartAnswersInSearch) {
18
18
  var entryTypes = ['mutation:child-element', 'mutation:element', 'mutation:attribute', 'layout-shift', 'layout-shift:same-rect', 'window:event'];
19
19
 
20
- // If not exclude 3p elements from ttvc,
21
- // including the tags into the ConsideredEntryTypes so that it won't be ignored for TTVC calculation
22
- if (!fg('platform_ufo_exclude_3p_elements_from_ttvc') || include3p) {
20
+ // Only include third-party elements in TTVC calculation when explicitly requested
21
+ if (include3p) {
23
22
  entryTypes.push('mutation:third-party-element');
24
23
  entryTypes.push('mutation:third-party-attribute');
25
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "5.5.3",
3
+ "version": "5.5.4",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -113,9 +113,6 @@
113
113
  "ufo_fix_aborting_interaction_detection_during_ssr": {
114
114
  "type": "boolean"
115
115
  },
116
- "platform_ufo_exclude_3p_elements_from_ttvc": {
117
- "type": "boolean"
118
- },
119
116
  "platform_ufo_segment_critical_metrics": {
120
117
  "type": "boolean"
121
118
  },
@@ -137,9 +134,6 @@
137
134
  "platform_ufo_filter_cls_logs_same_rects_positions": {
138
135
  "type": "boolean"
139
136
  },
140
- "platform_editor_exclude_dnd_anchor_name_from_ttvc": {
141
- "type": "boolean"
142
- },
143
137
  "platform_ufo_ssr_render_profiler": {
144
138
  "type": "boolean"
145
139
  },