@atlaskit/react-ufo 5.0.3 → 5.0.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.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`461f1fb9cf949`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/461f1fb9cf949) -
8
+ FG cleanup - platform_ufo_add_segment_names_to_dom_offenders
9
+
3
10
  ## 5.0.3
4
11
 
5
12
  ### Patch Changes
@@ -93,7 +93,7 @@ var VCObserverNew = exports.default = /*#__PURE__*/function () {
93
93
  oldValue: mutationData === null || mutationData === void 0 ? void 0 : mutationData.oldValue,
94
94
  newValue: mutationData === null || mutationData === void 0 ? void 0 : mutationData.newValue
95
95
  };
96
- if (element && (_this.isPostInteraction || (0, _platformFeatureFlags.fg)('platform_ufo_add_segment_names_to_dom_offenders'))) {
96
+ if (element) {
97
97
  var labelStacks = getLabelStacks(element);
98
98
  if (labelStacks) {
99
99
  Object.assign(data, {
@@ -107,7 +107,7 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
107
107
  segment: _entry2.data.labelStacks.segment,
108
108
  labelStack: _entry2.data.labelStacks.labelStack
109
109
  };
110
- } else if ((0, _platformFeatureFlags.fg)('platform_ufo_add_segment_names_to_dom_offenders')) {
110
+ } else {
111
111
  labelStacks[_entry2.data.elementName] = _entry2.data.labelStacks.labelStack;
112
112
  }
113
113
  }
@@ -439,9 +439,7 @@ var AbstractVCCalculatorBase = exports.default = /*#__PURE__*/function () {
439
439
  if (ssrRatio !== -1) {
440
440
  result.ssrRatio = ssrRatio;
441
441
  }
442
- if (isPostInteraction || (0, _platformFeatureFlags.fg)('platform_ufo_add_segment_names_to_dom_offenders')) {
443
- result.labelStacks = this.getLabelStacks(filteredEntries, isPostInteraction);
444
- }
442
+ result.labelStacks = this.getLabelStacks(filteredEntries, isPostInteraction);
445
443
  return _context2.abrupt("return", result);
446
444
  case 17:
447
445
  case "end":
@@ -77,7 +77,7 @@ export default class VCObserverNew {
77
77
  oldValue: mutationData === null || mutationData === void 0 ? void 0 : mutationData.oldValue,
78
78
  newValue: mutationData === null || mutationData === void 0 ? void 0 : mutationData.newValue
79
79
  };
80
- if (element && (this.isPostInteraction || fg('platform_ufo_add_segment_names_to_dom_offenders'))) {
80
+ if (element) {
81
81
  const labelStacks = getLabelStacks(element);
82
82
  if (labelStacks) {
83
83
  Object.assign(data, {
@@ -57,7 +57,7 @@ export default class AbstractVCCalculatorBase {
57
57
  segment: entry.data.labelStacks.segment,
58
58
  labelStack: entry.data.labelStacks.labelStack
59
59
  };
60
- } else if (fg('platform_ufo_add_segment_names_to_dom_offenders')) {
60
+ } else {
61
61
  labelStacks[entry.data.elementName] = entry.data.labelStacks.labelStack;
62
62
  }
63
63
  }
@@ -318,9 +318,7 @@ export default class AbstractVCCalculatorBase {
318
318
  if (ssrRatio !== -1) {
319
319
  result.ssrRatio = ssrRatio;
320
320
  }
321
- if (isPostInteraction || fg('platform_ufo_add_segment_names_to_dom_offenders')) {
322
- result.labelStacks = this.getLabelStacks(filteredEntries, isPostInteraction);
323
- }
321
+ result.labelStacks = this.getLabelStacks(filteredEntries, isPostInteraction);
324
322
  return result;
325
323
  }
326
324
  }
@@ -86,7 +86,7 @@ var VCObserverNew = /*#__PURE__*/function () {
86
86
  oldValue: mutationData === null || mutationData === void 0 ? void 0 : mutationData.oldValue,
87
87
  newValue: mutationData === null || mutationData === void 0 ? void 0 : mutationData.newValue
88
88
  };
89
- if (element && (_this.isPostInteraction || fg('platform_ufo_add_segment_names_to_dom_offenders'))) {
89
+ if (element) {
90
90
  var labelStacks = getLabelStacks(element);
91
91
  if (labelStacks) {
92
92
  Object.assign(data, {
@@ -101,7 +101,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
101
101
  segment: _entry2.data.labelStacks.segment,
102
102
  labelStack: _entry2.data.labelStacks.labelStack
103
103
  };
104
- } else if (fg('platform_ufo_add_segment_names_to_dom_offenders')) {
104
+ } else {
105
105
  labelStacks[_entry2.data.elementName] = _entry2.data.labelStacks.labelStack;
106
106
  }
107
107
  }
@@ -433,9 +433,7 @@ var AbstractVCCalculatorBase = /*#__PURE__*/function () {
433
433
  if (ssrRatio !== -1) {
434
434
  result.ssrRatio = ssrRatio;
435
435
  }
436
- if (isPostInteraction || fg('platform_ufo_add_segment_names_to_dom_offenders')) {
437
- result.labelStacks = this.getLabelStacks(filteredEntries, isPostInteraction);
438
- }
436
+ result.labelStacks = this.getLabelStacks(filteredEntries, isPostInteraction);
439
437
  return _context2.abrupt("return", result);
440
438
  case 17:
441
439
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -156,9 +156,6 @@
156
156
  "platform_ufo_enable_late_holds_post_interaction": {
157
157
  "type": "boolean"
158
158
  },
159
- "platform_ufo_add_segment_names_to_dom_offenders": {
160
- "type": "boolean"
161
- },
162
159
  "platform_ufo_filter_cls_logs_same_rects_positions": {
163
160
  "type": "boolean"
164
161
  },