@atlaskit/react-ufo 4.1.1 → 4.1.2

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.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#188412](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188412)
8
+ [`4c4fdba396a9f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4c4fdba396a9f) -
9
+ Clean up fg for unknown elements
10
+
3
11
  ## 4.1.1
4
12
 
5
13
  ### Patch Changes
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.setInteractionPerformanceEvent = exports.getPerformanceObserver = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
9
  var _interactionMetrics = require("../interaction-metrics");
11
10
  var _getUniqueElementName = _interopRequireDefault(require("../vc/vc-observer-new/get-unique-element-name"));
12
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -104,7 +103,7 @@ var setInteractionPerformanceEvent = exports.setInteractionPerformanceEvent = fu
104
103
  experimentalInputToNextPaint: ((_interaction$responsi2 = interaction.responsiveness) === null || _interaction$responsi2 === void 0 ? void 0 : _interaction$responsi2.experimentalInputToNextPaint) || entry.duration,
105
104
  inputDelay: ((_interaction$responsi3 = interaction.responsiveness) === null || _interaction$responsi3 === void 0 ? void 0 : _interaction$responsi3.inputDelay) || entry.processingStart - entry.startTime
106
105
  });
107
- if (interaction.ufoName === 'unknown' && (0, _platformFeatureFlags.fg)('platform_ufo_enable_unknown_interactions_elements')) {
106
+ if (interaction.ufoName === 'unknown') {
108
107
  if (entry.target) {
109
108
  var componentHierarchy = getReactComponentHierarchy(entry.target);
110
109
  interaction.unknownElementHierarchy = componentHierarchy;
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { getActiveInteraction } from '../interaction-metrics';
3
2
  import getElementName from '../vc/vc-observer-new/get-unique-element-name';
4
3
  let performanceEventObserver;
@@ -81,7 +80,7 @@ export const setInteractionPerformanceEvent = entry => {
81
80
  experimentalInputToNextPaint: ((_interaction$responsi2 = interaction.responsiveness) === null || _interaction$responsi2 === void 0 ? void 0 : _interaction$responsi2.experimentalInputToNextPaint) || entry.duration,
82
81
  inputDelay: ((_interaction$responsi3 = interaction.responsiveness) === null || _interaction$responsi3 === void 0 ? void 0 : _interaction$responsi3.inputDelay) || entry.processingStart - entry.startTime
83
82
  };
84
- if (interaction.ufoName === 'unknown' && fg('platform_ufo_enable_unknown_interactions_elements')) {
83
+ if (interaction.ufoName === 'unknown') {
85
84
  if (entry.target) {
86
85
  const componentHierarchy = getReactComponentHierarchy(entry.target);
87
86
  interaction.unknownElementHierarchy = componentHierarchy;
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  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; } } }; }
5
5
  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; } }
6
6
  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; }
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { getActiveInteraction } from '../interaction-metrics';
9
8
  import getElementName from '../vc/vc-observer-new/get-unique-element-name';
10
9
  var performanceEventObserver;
@@ -97,7 +96,7 @@ export var setInteractionPerformanceEvent = function setInteractionPerformanceEv
97
96
  experimentalInputToNextPaint: ((_interaction$responsi2 = interaction.responsiveness) === null || _interaction$responsi2 === void 0 ? void 0 : _interaction$responsi2.experimentalInputToNextPaint) || entry.duration,
98
97
  inputDelay: ((_interaction$responsi3 = interaction.responsiveness) === null || _interaction$responsi3 === void 0 ? void 0 : _interaction$responsi3.inputDelay) || entry.processingStart - entry.startTime
99
98
  });
100
- if (interaction.ufoName === 'unknown' && fg('platform_ufo_enable_unknown_interactions_elements')) {
99
+ if (interaction.ufoName === 'unknown') {
101
100
  if (entry.target) {
102
101
  var componentHierarchy = getReactComponentHierarchy(entry.target);
103
102
  interaction.unknownElementHierarchy = componentHierarchy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -183,9 +183,6 @@
183
183
  "platform_ufo_ignore_extra_attributes": {
184
184
  "type": "boolean"
185
185
  },
186
- "platform_ufo_enable_unknown_interactions_elements": {
187
- "type": "boolean"
188
- },
189
186
  "platform_ufo_exclude_3p_elements_from_ttai": {
190
187
  "type": "boolean"
191
188
  },