@atlaskit/react-ufo 3.12.1 → 3.12.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,14 @@
1
1
  # @atlaskit/ufo-interaction-ignore
2
2
 
3
+ ## 3.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#152526](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152526)
8
+ [`418c1f18e4a6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/418c1f18e4a6e) -
9
+ FG cleanup for platform_ufo_set_event_failed_status_in_client and
10
+ platform_ufo_ignore_bm3_tti_event_status
11
+
3
12
  ## 3.12.1
4
13
 
5
14
  ### Patch Changes
@@ -4,40 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
- /**
9
- * Determines the interaction status based on abort reason and BM3 TTI presence.
10
- *
11
- * @param {InteractionMetrics} interaction - The interaction metrics object containing abort reason and apdex data
12
- * @returns {{
13
- * originalInteractionStatus: 'ABORTED' | 'SUCCEEDED',
14
- * overrideStatus: 'ABORTED' | 'SUCCEEDED'
15
- * }} An object containing both the original and override status
16
- *
17
- * @description
18
- * This function evaluates the interaction status in two ways:
19
- * 1. originalInteractionStatus: Based on whether there's an abort reason
20
- * 2. overrideStatus: Based on the presence of BM3 TTI (apdex data)
21
- *
22
- * @example
23
- * const interaction = {
24
- * abortReason: null,
25
- * apdex: [1, 2, 3]
26
- * };
27
- * const result = getInteractionStatus(interaction);
28
- * // Returns: { originalInteractionStatus: 'SUCCEEDED', overrideStatus: 'SUCCEEDED' }
29
- */
30
7
  function getInteractionStatus(interaction) {
31
8
  var originalInteractionStatus = interaction.abortReason ? 'ABORTED' : 'SUCCEEDED';
32
9
  var hasErrors = interaction.errors.length > 0;
33
- if ((0, _platformFeatureFlags.fg)('platform_ufo_set_event_failed_status_in_client')) {
34
- originalInteractionStatus = hasErrors ? 'FAILED' : originalInteractionStatus;
35
- }
36
- var hasBm3TTI = interaction.apdex.length > 0;
37
- var overrideStatus = hasBm3TTI && !(0, _platformFeatureFlags.fg)('platform_ufo_ignore_bm3_tti_event_status') ? 'SUCCEEDED' : originalInteractionStatus;
10
+ originalInteractionStatus = hasErrors ? 'FAILED' : originalInteractionStatus;
11
+
12
+ // `overrideStatus` is to be deprecated - https://product-fabric.atlassian.net/browse/AFO-3760
38
13
  return {
39
14
  originalInteractionStatus: originalInteractionStatus,
40
- overrideStatus: overrideStatus
15
+ overrideStatus: originalInteractionStatus
41
16
  };
42
17
  }
43
18
  var _default = exports.default = getInteractionStatus;
@@ -1,37 +1,12 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
- /**
3
- * Determines the interaction status based on abort reason and BM3 TTI presence.
4
- *
5
- * @param {InteractionMetrics} interaction - The interaction metrics object containing abort reason and apdex data
6
- * @returns {{
7
- * originalInteractionStatus: 'ABORTED' | 'SUCCEEDED',
8
- * overrideStatus: 'ABORTED' | 'SUCCEEDED'
9
- * }} An object containing both the original and override status
10
- *
11
- * @description
12
- * This function evaluates the interaction status in two ways:
13
- * 1. originalInteractionStatus: Based on whether there's an abort reason
14
- * 2. overrideStatus: Based on the presence of BM3 TTI (apdex data)
15
- *
16
- * @example
17
- * const interaction = {
18
- * abortReason: null,
19
- * apdex: [1, 2, 3]
20
- * };
21
- * const result = getInteractionStatus(interaction);
22
- * // Returns: { originalInteractionStatus: 'SUCCEEDED', overrideStatus: 'SUCCEEDED' }
23
- */
24
1
  function getInteractionStatus(interaction) {
25
2
  let originalInteractionStatus = interaction.abortReason ? 'ABORTED' : 'SUCCEEDED';
26
3
  const hasErrors = interaction.errors.length > 0;
27
- if (fg('platform_ufo_set_event_failed_status_in_client')) {
28
- originalInteractionStatus = hasErrors ? 'FAILED' : originalInteractionStatus;
29
- }
30
- const hasBm3TTI = interaction.apdex.length > 0;
31
- const overrideStatus = hasBm3TTI && !fg('platform_ufo_ignore_bm3_tti_event_status') ? 'SUCCEEDED' : originalInteractionStatus;
4
+ originalInteractionStatus = hasErrors ? 'FAILED' : originalInteractionStatus;
5
+
6
+ // `overrideStatus` is to be deprecated - https://product-fabric.atlassian.net/browse/AFO-3760
32
7
  return {
33
8
  originalInteractionStatus,
34
- overrideStatus
9
+ overrideStatus: originalInteractionStatus
35
10
  };
36
11
  }
37
12
  export default getInteractionStatus;
@@ -1,37 +1,12 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
- /**
3
- * Determines the interaction status based on abort reason and BM3 TTI presence.
4
- *
5
- * @param {InteractionMetrics} interaction - The interaction metrics object containing abort reason and apdex data
6
- * @returns {{
7
- * originalInteractionStatus: 'ABORTED' | 'SUCCEEDED',
8
- * overrideStatus: 'ABORTED' | 'SUCCEEDED'
9
- * }} An object containing both the original and override status
10
- *
11
- * @description
12
- * This function evaluates the interaction status in two ways:
13
- * 1. originalInteractionStatus: Based on whether there's an abort reason
14
- * 2. overrideStatus: Based on the presence of BM3 TTI (apdex data)
15
- *
16
- * @example
17
- * const interaction = {
18
- * abortReason: null,
19
- * apdex: [1, 2, 3]
20
- * };
21
- * const result = getInteractionStatus(interaction);
22
- * // Returns: { originalInteractionStatus: 'SUCCEEDED', overrideStatus: 'SUCCEEDED' }
23
- */
24
1
  function getInteractionStatus(interaction) {
25
2
  var originalInteractionStatus = interaction.abortReason ? 'ABORTED' : 'SUCCEEDED';
26
3
  var hasErrors = interaction.errors.length > 0;
27
- if (fg('platform_ufo_set_event_failed_status_in_client')) {
28
- originalInteractionStatus = hasErrors ? 'FAILED' : originalInteractionStatus;
29
- }
30
- var hasBm3TTI = interaction.apdex.length > 0;
31
- var overrideStatus = hasBm3TTI && !fg('platform_ufo_ignore_bm3_tti_event_status') ? 'SUCCEEDED' : originalInteractionStatus;
4
+ originalInteractionStatus = hasErrors ? 'FAILED' : originalInteractionStatus;
5
+
6
+ // `overrideStatus` is to be deprecated - https://product-fabric.atlassian.net/browse/AFO-3760
32
7
  return {
33
8
  originalInteractionStatus: originalInteractionStatus,
34
- overrideStatus: overrideStatus
9
+ overrideStatus: originalInteractionStatus
35
10
  };
36
11
  }
37
12
  export default getInteractionStatus;
@@ -1,26 +1,4 @@
1
1
  import type { InteractionMetrics } from '../../common';
2
- /**
3
- * Determines the interaction status based on abort reason and BM3 TTI presence.
4
- *
5
- * @param {InteractionMetrics} interaction - The interaction metrics object containing abort reason and apdex data
6
- * @returns {{
7
- * originalInteractionStatus: 'ABORTED' | 'SUCCEEDED',
8
- * overrideStatus: 'ABORTED' | 'SUCCEEDED'
9
- * }} An object containing both the original and override status
10
- *
11
- * @description
12
- * This function evaluates the interaction status in two ways:
13
- * 1. originalInteractionStatus: Based on whether there's an abort reason
14
- * 2. overrideStatus: Based on the presence of BM3 TTI (apdex data)
15
- *
16
- * @example
17
- * const interaction = {
18
- * abortReason: null,
19
- * apdex: [1, 2, 3]
20
- * };
21
- * const result = getInteractionStatus(interaction);
22
- * // Returns: { originalInteractionStatus: 'SUCCEEDED', overrideStatus: 'SUCCEEDED' }
23
- */
24
2
  declare function getInteractionStatus(interaction: InteractionMetrics): {
25
3
  readonly originalInteractionStatus: string;
26
4
  readonly overrideStatus: string;
@@ -1,26 +1,4 @@
1
1
  import type { InteractionMetrics } from '../../common';
2
- /**
3
- * Determines the interaction status based on abort reason and BM3 TTI presence.
4
- *
5
- * @param {InteractionMetrics} interaction - The interaction metrics object containing abort reason and apdex data
6
- * @returns {{
7
- * originalInteractionStatus: 'ABORTED' | 'SUCCEEDED',
8
- * overrideStatus: 'ABORTED' | 'SUCCEEDED'
9
- * }} An object containing both the original and override status
10
- *
11
- * @description
12
- * This function evaluates the interaction status in two ways:
13
- * 1. originalInteractionStatus: Based on whether there's an abort reason
14
- * 2. overrideStatus: Based on the presence of BM3 TTI (apdex data)
15
- *
16
- * @example
17
- * const interaction = {
18
- * abortReason: null,
19
- * apdex: [1, 2, 3]
20
- * };
21
- * const result = getInteractionStatus(interaction);
22
- * // Returns: { originalInteractionStatus: 'SUCCEEDED', overrideStatus: 'SUCCEEDED' }
23
- */
24
2
  declare function getInteractionStatus(interaction: InteractionMetrics): {
25
3
  readonly originalInteractionStatus: string;
26
4
  readonly overrideStatus: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-ufo",
3
- "version": "3.12.1",
3
+ "version": "3.12.2",
4
4
  "description": "Parts of React UFO that are publicly available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -154,12 +154,6 @@
154
154
  "platform_ufo_no_vc_on_aborted": {
155
155
  "type": "boolean"
156
156
  },
157
- "platform_ufo_set_event_failed_status_in_client": {
158
- "type": "boolean"
159
- },
160
- "platform_ufo_ignore_bm3_tti_event_status": {
161
- "type": "boolean"
162
- },
163
157
  "ufo_payload_use_idle_callback": {
164
158
  "type": "boolean"
165
159
  },