@atlaskit/react-ufo 5.5.1 → 5.5.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/AGENTS.md +0 -1
- package/CHANGELOG.md +8 -0
- package/dist/cjs/interaction-metrics/index.js +2 -2
- package/dist/es2019/interaction-metrics/index.js +2 -2
- package/dist/esm/interaction-metrics/index.js +2 -2
- package/dist/types/interaction-metrics/index.d.ts +1 -1
- package/dist/types-ts4.5/interaction-metrics/index.d.ts +1 -1
- package/package.json +1 -4
package/AGENTS.md
CHANGED
|
@@ -261,7 +261,6 @@ The package uses platform feature flags for gradual rollouts. Key flags are defi
|
|
|
261
261
|
| `platform_ufo_segment_critical_metrics` | Segment-level metrics |
|
|
262
262
|
| `platform_ufo_enable_terminal_errors` | Terminal error tracking |
|
|
263
263
|
| `platform_ufo_raw_data_thirdparty` | Third-party raw data behavior |
|
|
264
|
-
| `platform_ufo_enable_finish_interaction_transition` | Finish interaction on transition |
|
|
265
264
|
|
|
266
265
|
## Testing
|
|
267
266
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 5.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`74b7d44630b84`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/74b7d44630b84) -
|
|
8
|
+
Clean up feature gate platform_ufo_enable_finish_interaction_transition - gate always evaluates to
|
|
9
|
+
true
|
|
10
|
+
|
|
3
11
|
## 5.5.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -404,7 +404,7 @@ function removeHoldCriterion(id) {
|
|
|
404
404
|
}
|
|
405
405
|
window.__CRITERION__.removeUFOHold(id);
|
|
406
406
|
}
|
|
407
|
-
function addHold(interactionId, labelStack, name,
|
|
407
|
+
function addHold(interactionId, labelStack, name, _experimental) {
|
|
408
408
|
var interaction = _constants.interactions.get(interactionId);
|
|
409
409
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
410
410
|
var id = (0, _uuid.v4)();
|
|
@@ -1033,7 +1033,7 @@ function abortAll(abortReason, abortedByInteractionName) {
|
|
|
1033
1033
|
_constants.interactions.forEach(function (interaction, interactionId) {
|
|
1034
1034
|
var isActiveInteraction = activeInteraction === interaction;
|
|
1035
1035
|
var hasFinished = interaction.holdActive.size === 0;
|
|
1036
|
-
if (isActiveInteraction && abortReason === 'transition' && interaction.type === 'press' && finishInteractions !== null && finishInteractions !== void 0 && finishInteractions.includes(interaction.ufoName)
|
|
1036
|
+
if (isActiveInteraction && abortReason === 'transition' && interaction.type === 'press' && finishInteractions !== null && finishInteractions !== void 0 && finishInteractions.includes(interaction.ufoName)) {
|
|
1037
1037
|
hasFinished = true;
|
|
1038
1038
|
}
|
|
1039
1039
|
var shouldUseRawDataThirdParty = (0, _config.shouldUseRawDataThirdPartyBehavior)(interaction.ufoName, interaction.type);
|
|
@@ -316,7 +316,7 @@ function removeHoldCriterion(id) {
|
|
|
316
316
|
}
|
|
317
317
|
window.__CRITERION__.removeUFOHold(id);
|
|
318
318
|
}
|
|
319
|
-
export function addHold(interactionId, labelStack, name,
|
|
319
|
+
export function addHold(interactionId, labelStack, name, _experimental) {
|
|
320
320
|
const interaction = interactions.get(interactionId);
|
|
321
321
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
322
322
|
const id = createUUID();
|
|
@@ -908,7 +908,7 @@ export function abortAll(abortReason, abortedByInteractionName) {
|
|
|
908
908
|
interactions.forEach((interaction, interactionId) => {
|
|
909
909
|
const isActiveInteraction = activeInteraction === interaction;
|
|
910
910
|
let hasFinished = interaction.holdActive.size === 0;
|
|
911
|
-
if (isActiveInteraction && abortReason === 'transition' && interaction.type === 'press' && finishInteractions !== null && finishInteractions !== void 0 && finishInteractions.includes(interaction.ufoName)
|
|
911
|
+
if (isActiveInteraction && abortReason === 'transition' && interaction.type === 'press' && finishInteractions !== null && finishInteractions !== void 0 && finishInteractions.includes(interaction.ufoName)) {
|
|
912
912
|
hasFinished = true;
|
|
913
913
|
}
|
|
914
914
|
const shouldUseRawDataThirdParty = shouldUseRawDataThirdPartyBehavior(interaction.ufoName, interaction.type);
|
|
@@ -357,7 +357,7 @@ function removeHoldCriterion(id) {
|
|
|
357
357
|
}
|
|
358
358
|
window.__CRITERION__.removeUFOHold(id);
|
|
359
359
|
}
|
|
360
|
-
export function addHold(interactionId, labelStack, name,
|
|
360
|
+
export function addHold(interactionId, labelStack, name, _experimental) {
|
|
361
361
|
var interaction = interactions.get(interactionId);
|
|
362
362
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
363
363
|
var id = createUUID();
|
|
@@ -986,7 +986,7 @@ export function abortAll(abortReason, abortedByInteractionName) {
|
|
|
986
986
|
interactions.forEach(function (interaction, interactionId) {
|
|
987
987
|
var isActiveInteraction = activeInteraction === interaction;
|
|
988
988
|
var hasFinished = interaction.holdActive.size === 0;
|
|
989
|
-
if (isActiveInteraction && abortReason === 'transition' && interaction.type === 'press' && finishInteractions !== null && finishInteractions !== void 0 && finishInteractions.includes(interaction.ufoName)
|
|
989
|
+
if (isActiveInteraction && abortReason === 'transition' && interaction.type === 'press' && finishInteractions !== null && finishInteractions !== void 0 && finishInteractions.includes(interaction.ufoName)) {
|
|
990
990
|
hasFinished = true;
|
|
991
991
|
}
|
|
992
992
|
var shouldUseRawDataThirdParty = shouldUseRawDataThirdPartyBehavior(interaction.ufoName, interaction.type);
|
|
@@ -33,7 +33,7 @@ export declare function addSpanToAll(type: SpanType, name: string, labelStack: L
|
|
|
33
33
|
export declare function addPreload(moduleId: string, timestamp: number): void;
|
|
34
34
|
export declare function addLoad(identifier: string, start: number, end: number): void;
|
|
35
35
|
export declare function extractModuleName(input: string): string;
|
|
36
|
-
export declare function addHold(interactionId: string, labelStack: LabelStack, name: string,
|
|
36
|
+
export declare function addHold(interactionId: string, labelStack: LabelStack, name: string, _experimental: boolean): () => void;
|
|
37
37
|
export declare function addHoldByID(interactionId: string, labelStack: LabelStack, name: string, id: string, ignoreOnSubmit?: boolean): () => void;
|
|
38
38
|
export declare function removeHoldByID(interactionId: string, id: string): void;
|
|
39
39
|
export declare function getCurrentInteractionType(interactionId: string): InteractionType | null;
|
|
@@ -33,7 +33,7 @@ export declare function addSpanToAll(type: SpanType, name: string, labelStack: L
|
|
|
33
33
|
export declare function addPreload(moduleId: string, timestamp: number): void;
|
|
34
34
|
export declare function addLoad(identifier: string, start: number, end: number): void;
|
|
35
35
|
export declare function extractModuleName(input: string): string;
|
|
36
|
-
export declare function addHold(interactionId: string, labelStack: LabelStack, name: string,
|
|
36
|
+
export declare function addHold(interactionId: string, labelStack: LabelStack, name: string, _experimental: boolean): () => void;
|
|
37
37
|
export declare function addHoldByID(interactionId: string, labelStack: LabelStack, name: string, id: string, ignoreOnSubmit?: boolean): () => void;
|
|
38
38
|
export declare function removeHoldByID(interactionId: string, id: string): void;
|
|
39
39
|
export declare function getCurrentInteractionType(interactionId: string): InteractionType | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.2",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -143,9 +143,6 @@
|
|
|
143
143
|
"platform_ufo_ssr_render_profiler": {
|
|
144
144
|
"type": "boolean"
|
|
145
145
|
},
|
|
146
|
-
"platform_ufo_enable_finish_interaction_transition": {
|
|
147
|
-
"type": "boolean"
|
|
148
|
-
},
|
|
149
146
|
"platform_ufo_drop_prior_fg_interactions": {
|
|
150
147
|
"type": "boolean"
|
|
151
148
|
},
|