@atlaskit/react-ufo 4.2.5 → 4.2.6

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.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#201076](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/201076)
8
+ [`eda3ae04eeeb4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eda3ae04eeeb4) -
9
+ FG clean up React UFO
10
+
3
11
  ## 4.2.5
4
12
 
5
13
  ### Patch Changes
@@ -67,7 +67,7 @@ function buildSegmentTree(labelStacks) {
67
67
  if (!currentNode.c[key]) {
68
68
  currentNode.c[key] = _objectSpread({
69
69
  n: name
70
- }, type && (0, _platformFeatureFlags.fg)('platform_ufo_add_type_for_3p_segments') ? {
70
+ }, type ? {
71
71
  t: type
72
72
  } : {});
73
73
  }
@@ -93,7 +93,7 @@ function buildSegmentTree(labelStacks) {
93
93
  if (!currentNode.c[key]) {
94
94
  currentNode.c[key] = _objectSpread({
95
95
  n: name
96
- }, type && (0, _platformFeatureFlags.fg)('platform_ufo_add_type_for_3p_segments') ? {
96
+ }, type ? {
97
97
  t: type
98
98
  } : {});
99
99
  }
@@ -135,7 +135,7 @@ function optimizeLabelStack(labelStack, reactUFOVersion) {
135
135
  n: ls.name
136
136
  }, ls.segmentId ? {
137
137
  s: ls.segmentId
138
- } : {}), ls.type && (0, _platformFeatureFlags.fg)('platform_ufo_add_type_for_3p_segments') ? {
138
+ } : {}), ls.type ? {
139
139
  t: ls.type
140
140
  } : {});
141
141
  });
@@ -169,7 +169,7 @@ function getOldSegmentsLabelStack(segments, interactionType) {
169
169
  n: ls.name
170
170
  }, ls.segmentId ? {
171
171
  s: ls.segmentId
172
- } : {}), ls.type && (0, _platformFeatureFlags.fg)('platform_ufo_add_type_for_3p_segments') ? {
172
+ } : {}), ls.type ? {
173
173
  t: ls.type
174
174
  } : {}));
175
175
  }
@@ -11,7 +11,6 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _scheduler = require("scheduler");
13
13
  var _uuid = require("uuid");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _coinflip = _interopRequireDefault(require("../coinflip"));
16
15
  var _config = require("../config");
17
16
  var _experienceTraceIdContext = require("../experience-trace-id-context");
@@ -67,13 +66,13 @@ function UFOSegment(_ref) {
67
66
  return parentContext !== null && parentContext !== void 0 && parentContext.labelStack ? [].concat((0, _toConsumableArray2.default)(parentContext.labelStack), [_objectSpread({
68
67
  name: segmentName,
69
68
  segmentId: segmentId
70
- }, type !== 'first-party' && (0, _platformFeatureFlags.fg)('platform_ufo_add_type_for_3p_segments') ? {
69
+ }, type !== 'first-party' ? {
71
70
  type: type
72
71
  } : {}) // Only pass non-default types (not 'first-party') in payload to reduce size
73
72
  ]) : [_objectSpread({
74
73
  name: segmentName,
75
74
  segmentId: segmentId
76
- }, type !== 'first-party' && (0, _platformFeatureFlags.fg)('platform_ufo_add_type_for_3p_segments') ? {
75
+ }, type !== 'first-party' ? {
77
76
  type: type
78
77
  } : {})];
79
78
  }, [parentContext, segmentName, segmentId, type]);
@@ -40,7 +40,7 @@ export function buildSegmentTree(labelStacks) {
40
40
  if (!currentNode.c[key]) {
41
41
  currentNode.c[key] = {
42
42
  n: name,
43
- ...(type && fg('platform_ufo_add_type_for_3p_segments') ? {
43
+ ...(type ? {
44
44
  t: type
45
45
  } : {})
46
46
  };
@@ -62,7 +62,7 @@ export function buildSegmentTree(labelStacks) {
62
62
  if (!currentNode.c[key]) {
63
63
  currentNode.c[key] = {
64
64
  n: name,
65
- ...(type && fg('platform_ufo_add_type_for_3p_segments') ? {
65
+ ...(type ? {
66
66
  t: type
67
67
  } : {})
68
68
  };
@@ -103,7 +103,7 @@ export function optimizeLabelStack(labelStack, reactUFOVersion) {
103
103
  ...(ls.segmentId ? {
104
104
  s: ls.segmentId
105
105
  } : {}),
106
- ...(ls.type && fg('platform_ufo_add_type_for_3p_segments') ? {
106
+ ...(ls.type ? {
107
107
  t: ls.type
108
108
  } : {})
109
109
  }));
@@ -135,7 +135,7 @@ export function getOldSegmentsLabelStack(segments, interactionType) {
135
135
  ...(ls.segmentId ? {
136
136
  s: ls.segmentId
137
137
  } : {}),
138
- ...(ls.type && fg('platform_ufo_add_type_for_3p_segments') ? {
138
+ ...(ls.type ? {
139
139
  t: ls.type
140
140
  } : {})
141
141
  });
@@ -1,7 +1,6 @@
1
1
  import React, { lazy, Profiler, Suspense, useCallback, useContext, useEffect, useMemo, useRef } from 'react';
2
2
  import { unstable_NormalPriority as NormalPriority, unstable_scheduleCallback as scheduleCallback } from 'scheduler';
3
3
  import { v4 as createUUID } from 'uuid';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import coinflip from '../coinflip';
6
5
  import { getConfig, getInteractionRate } from '../config';
7
6
  import { getActiveTrace, setInteractionActiveTrace } from '../experience-trace-id-context';
@@ -46,14 +45,14 @@ export default function UFOSegment({
46
45
  const labelStack = useMemo(() => parentContext !== null && parentContext !== void 0 && parentContext.labelStack ? [...parentContext.labelStack, {
47
46
  name: segmentName,
48
47
  segmentId,
49
- ...(type !== 'first-party' && fg('platform_ufo_add_type_for_3p_segments') ? {
48
+ ...(type !== 'first-party' ? {
50
49
  type
51
50
  } : {})
52
51
  } // Only pass non-default types (not 'first-party') in payload to reduce size
53
52
  ] : [{
54
53
  name: segmentName,
55
54
  segmentId,
56
- ...(type !== 'first-party' && fg('platform_ufo_add_type_for_3p_segments') ? {
55
+ ...(type !== 'first-party' ? {
57
56
  type
58
57
  } : {})
59
58
  }], [parentContext, segmentName, segmentId, type]);
@@ -53,7 +53,7 @@ export function buildSegmentTree(labelStacks) {
53
53
  if (!currentNode.c[key]) {
54
54
  currentNode.c[key] = _objectSpread({
55
55
  n: name
56
- }, type && fg('platform_ufo_add_type_for_3p_segments') ? {
56
+ }, type ? {
57
57
  t: type
58
58
  } : {});
59
59
  }
@@ -79,7 +79,7 @@ export function buildSegmentTree(labelStacks) {
79
79
  if (!currentNode.c[key]) {
80
80
  currentNode.c[key] = _objectSpread({
81
81
  n: name
82
- }, type && fg('platform_ufo_add_type_for_3p_segments') ? {
82
+ }, type ? {
83
83
  t: type
84
84
  } : {});
85
85
  }
@@ -121,7 +121,7 @@ export function optimizeLabelStack(labelStack, reactUFOVersion) {
121
121
  n: ls.name
122
122
  }, ls.segmentId ? {
123
123
  s: ls.segmentId
124
- } : {}), ls.type && fg('platform_ufo_add_type_for_3p_segments') ? {
124
+ } : {}), ls.type ? {
125
125
  t: ls.type
126
126
  } : {});
127
127
  });
@@ -155,7 +155,7 @@ export function getOldSegmentsLabelStack(segments, interactionType) {
155
155
  n: ls.name
156
156
  }, ls.segmentId ? {
157
157
  s: ls.segmentId
158
- } : {}), ls.type && fg('platform_ufo_add_type_for_3p_segments') ? {
158
+ } : {}), ls.type ? {
159
159
  t: ls.type
160
160
  } : {}));
161
161
  }
@@ -5,7 +5,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import React, { lazy, Profiler, Suspense, useCallback, useContext, useEffect, useMemo, useRef } from 'react';
6
6
  import { unstable_NormalPriority as NormalPriority, unstable_scheduleCallback as scheduleCallback } from 'scheduler';
7
7
  import { v4 as createUUID } from 'uuid';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import coinflip from '../coinflip';
10
9
  import { getConfig, getInteractionRate } from '../config';
11
10
  import { getActiveTrace, setInteractionActiveTrace } from '../experience-trace-id-context';
@@ -56,13 +55,13 @@ export default function UFOSegment(_ref) {
56
55
  return parentContext !== null && parentContext !== void 0 && parentContext.labelStack ? [].concat(_toConsumableArray(parentContext.labelStack), [_objectSpread({
57
56
  name: segmentName,
58
57
  segmentId: segmentId
59
- }, type !== 'first-party' && fg('platform_ufo_add_type_for_3p_segments') ? {
58
+ }, type !== 'first-party' ? {
60
59
  type: type
61
60
  } : {}) // Only pass non-default types (not 'first-party') in payload to reduce size
62
61
  ]) : [_objectSpread({
63
62
  name: segmentName,
64
63
  segmentId: segmentId
65
- }, type !== 'first-party' && fg('platform_ufo_add_type_for_3p_segments') ? {
64
+ }, type !== 'first-party' ? {
66
65
  type: type
67
66
  } : {})];
68
67
  }, [parentContext, segmentName, segmentId, type]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "4.2.5",
3
+ "version": "4.2.6",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -171,9 +171,6 @@
171
171
  "platform_ufo_exclude_3p_elements_from_ttvc": {
172
172
  "type": "boolean"
173
173
  },
174
- "platform_ufo_add_type_for_3p_segments": {
175
- "type": "boolean"
176
- },
177
174
  "platform_ufo_enable_vc_press_interactions": {
178
175
  "type": "boolean"
179
176
  },