@atlaskit/react-ufo 3.9.3 → 3.9.5

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,21 @@
1
1
  # @atlaskit/ufo-interaction-ignore
2
2
 
3
+ ## 3.9.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#149485](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149485)
8
+ [`e496da2bdb127`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e496da2bdb127) -
9
+ AFO-3615 cleanup fg platform_ufo_log_attr_mutation_values
10
+
11
+ ## 3.9.4
12
+
13
+ ### Patch Changes
14
+
15
+ - [#148802](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148802)
16
+ [`47aa048599ddc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/47aa048599ddc) -
17
+ FF cleanup - ufo_capture_stylesheet_metrics
18
+
3
19
  ## 3.9.3
4
20
 
5
21
  ### Patch Changes
@@ -14,7 +14,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
16
16
  var _bowserUltralight = _interopRequireDefault(require("bowser-ultralight"));
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _additionalPayload = require("../additional-payload");
19
18
  var _assets = require("../assets");
20
19
  var bundleEvalTiming = _interopRequireWildcard(require("../bundle-eval-timing"));
@@ -652,10 +651,6 @@ function getPayloadSize(payload) {
652
651
  return Math.round(new TextEncoder().encode(JSON.stringify(payload)).length / 1024);
653
652
  }
654
653
  function getStylesheetMetrics() {
655
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
656
- if (!(0, _platformFeatureFlags.fg)('ufo_capture_stylesheet_metrics')) {
657
- return {};
658
- }
659
654
  try {
660
655
  var stylesheets = Array.from(document.styleSheets);
661
656
  var stylesheetCount = stylesheets.length;
@@ -8,7 +8,6 @@ exports.Observers = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _vcUtils = require("../media-wrapper/vc-utils");
13
12
  var _isNonVisualStyleMutation = _interopRequireDefault(require("./non-visual-styles/is-non-visual-style-mutation"));
14
13
  var _ssrPlaceholders = require("./ssr-placeholders");
@@ -60,22 +59,14 @@ var Observers = exports.Observers = /*#__PURE__*/function () {
60
59
  var oldValue = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
61
60
  var newValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
62
61
  (_this$intersectionObs = _this.intersectionObserver) === null || _this$intersectionObs === void 0 || _this$intersectionObs.observe(node);
63
- if ((0, _platformFeatureFlags.fg)('platform_ufo_log_attr_mutation_values')) {
64
- _this.observedMutations.set(node, {
65
- mutation: mutation,
66
- ignoreReason: ignoreReason,
67
- type: type,
68
- attributeName: attributeName,
69
- oldValue: oldValue,
70
- newValue: newValue
71
- });
72
- } else {
73
- _this.observedMutations.set(node, {
74
- mutation: mutation,
75
- ignoreReason: ignoreReason,
76
- type: type
77
- });
78
- }
62
+ _this.observedMutations.set(node, {
63
+ mutation: mutation,
64
+ ignoreReason: ignoreReason,
65
+ type: type,
66
+ attributeName: attributeName,
67
+ oldValue: oldValue,
68
+ newValue: newValue
69
+ });
79
70
  });
80
71
  this.selectorConfig = _objectSpread(_objectSpread({}, this.selectorConfig), opts.selectorConfig);
81
72
  this.intersectionObserver = this.getIntersectionObserver();
@@ -1,5 +1,4 @@
1
1
  import Bowser from 'bowser-ultralight';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { getLighthouseMetrics } from '../additional-payload';
4
3
  import { CHRReporter } from '../assets';
5
4
  import * as bundleEvalTiming from '../bundle-eval-timing';
@@ -626,10 +625,6 @@ function getPayloadSize(payload) {
626
625
  return Math.round(new TextEncoder().encode(JSON.stringify(payload)).length / 1024);
627
626
  }
628
627
  function getStylesheetMetrics() {
629
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
630
- if (!fg('ufo_capture_stylesheet_metrics')) {
631
- return {};
632
- }
633
628
  try {
634
629
  const stylesheets = Array.from(document.styleSheets);
635
630
  const stylesheetCount = stylesheets.length;
@@ -1,5 +1,4 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { isContainedWithinMediaWrapper } from '../media-wrapper/vc-utils';
4
3
  import isNonVisualStyleMutation from './non-visual-styles/is-non-visual-style-mutation';
5
4
  import { SSRPlaceholderHandlers } from './ssr-placeholders';
@@ -45,22 +44,14 @@ export class Observers {
45
44
  _defineProperty(this, "observeElement", (node, mutation, type, ignoreReason, attributeName, oldValue = null, newValue = null) => {
46
45
  var _this$intersectionObs;
47
46
  (_this$intersectionObs = this.intersectionObserver) === null || _this$intersectionObs === void 0 ? void 0 : _this$intersectionObs.observe(node);
48
- if (fg('platform_ufo_log_attr_mutation_values')) {
49
- this.observedMutations.set(node, {
50
- mutation,
51
- ignoreReason,
52
- type,
53
- attributeName,
54
- oldValue,
55
- newValue
56
- });
57
- } else {
58
- this.observedMutations.set(node, {
59
- mutation,
60
- ignoreReason,
61
- type
62
- });
63
- }
47
+ this.observedMutations.set(node, {
48
+ mutation,
49
+ ignoreReason,
50
+ type,
51
+ attributeName,
52
+ oldValue,
53
+ newValue
54
+ });
64
55
  });
65
56
  this.selectorConfig = {
66
57
  ...this.selectorConfig,
@@ -11,7 +11,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
11
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; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  import Bowser from 'bowser-ultralight';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { getLighthouseMetrics } from '../additional-payload';
16
15
  import { CHRReporter } from '../assets';
17
16
  import * as bundleEvalTiming from '../bundle-eval-timing';
@@ -641,10 +640,6 @@ function getPayloadSize(payload) {
641
640
  return Math.round(new TextEncoder().encode(JSON.stringify(payload)).length / 1024);
642
641
  }
643
642
  function getStylesheetMetrics() {
644
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
645
- if (!fg('ufo_capture_stylesheet_metrics')) {
646
- return {};
647
- }
648
643
  try {
649
644
  var stylesheets = Array.from(document.styleSheets);
650
645
  var stylesheetCount = stylesheets.length;
@@ -3,7 +3,6 @@ import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  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; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { isContainedWithinMediaWrapper } from '../media-wrapper/vc-utils';
8
7
  import isNonVisualStyleMutation from './non-visual-styles/is-non-visual-style-mutation';
9
8
  import { SSRPlaceholderHandlers } from './ssr-placeholders';
@@ -53,22 +52,14 @@ export var Observers = /*#__PURE__*/function () {
53
52
  var oldValue = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
54
53
  var newValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
55
54
  (_this$intersectionObs = _this.intersectionObserver) === null || _this$intersectionObs === void 0 || _this$intersectionObs.observe(node);
56
- if (fg('platform_ufo_log_attr_mutation_values')) {
57
- _this.observedMutations.set(node, {
58
- mutation: mutation,
59
- ignoreReason: ignoreReason,
60
- type: type,
61
- attributeName: attributeName,
62
- oldValue: oldValue,
63
- newValue: newValue
64
- });
65
- } else {
66
- _this.observedMutations.set(node, {
67
- mutation: mutation,
68
- ignoreReason: ignoreReason,
69
- type: type
70
- });
71
- }
55
+ _this.observedMutations.set(node, {
56
+ mutation: mutation,
57
+ ignoreReason: ignoreReason,
58
+ type: type,
59
+ attributeName: attributeName,
60
+ oldValue: oldValue,
61
+ newValue: newValue
62
+ });
72
63
  });
73
64
  this.selectorConfig = _objectSpread(_objectSpread({}, this.selectorConfig), opts.selectorConfig);
74
65
  this.intersectionObserver = this.getIntersectionObserver();