@atlaskit/react-ufo 4.10.2 → 4.11.0
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 +7 -0
- package/dist/cjs/interaction-metrics/index.js +6 -4
- package/dist/es2019/interaction-metrics/index.js +6 -4
- package/dist/esm/interaction-metrics/index.js +6 -4
- package/dist/types/common/common/types.d.ts +1 -0
- package/dist/types/create-interaction-extra-metrics-payload/index.d.ts +1 -0
- package/dist/types/create-payload/index.d.ts +384 -0
- package/dist/types/interaction-metrics/index.d.ts +2 -2
- package/dist/types-ts4.5/common/common/types.d.ts +1 -0
- package/dist/types-ts4.5/create-interaction-extra-metrics-payload/index.d.ts +1 -0
- package/dist/types-ts4.5/create-payload/index.d.ts +384 -0
- package/dist/types-ts4.5/interaction-metrics/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`53cdd8bde9bff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/53cdd8bde9bff) -
|
|
8
|
+
add optional errorStatusCode param to ufo's addError() and addErrorToAll() api
|
|
9
|
+
|
|
3
10
|
## 4.10.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -588,7 +588,7 @@ var ModuleLoadingProfiler = exports.ModuleLoadingProfiler = {
|
|
|
588
588
|
removeHoldByID(currentInteractionId, id);
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
|
-
function addError(interactionId, name, labelStack, errorType, errorMessage, errorStack, forcedError, errorHash) {
|
|
591
|
+
function addError(interactionId, name, labelStack, errorType, errorMessage, errorStack, forcedError, errorHash, errorStatusCode) {
|
|
592
592
|
var interaction = _constants.interactions.get(interactionId);
|
|
593
593
|
if (interaction != null) {
|
|
594
594
|
interaction.errors.push({
|
|
@@ -598,11 +598,12 @@ function addError(interactionId, name, labelStack, errorType, errorMessage, erro
|
|
|
598
598
|
errorMessage: errorMessage,
|
|
599
599
|
errorStack: errorStack,
|
|
600
600
|
forcedError: forcedError,
|
|
601
|
-
errorHash: errorHash
|
|
601
|
+
errorHash: errorHash,
|
|
602
|
+
errorStatusCode: errorStatusCode
|
|
602
603
|
});
|
|
603
604
|
}
|
|
604
605
|
}
|
|
605
|
-
function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, errorHash) {
|
|
606
|
+
function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, errorHash, errorStatusCode) {
|
|
606
607
|
_constants.interactions.forEach(function (interaction) {
|
|
607
608
|
interaction.errors.push({
|
|
608
609
|
name: name,
|
|
@@ -610,7 +611,8 @@ function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, er
|
|
|
610
611
|
errorType: errorType,
|
|
611
612
|
errorMessage: errorMessage,
|
|
612
613
|
errorStack: errorStack,
|
|
613
|
-
errorHash: errorHash
|
|
614
|
+
errorHash: errorHash,
|
|
615
|
+
errorStatusCode: errorStatusCode
|
|
614
616
|
});
|
|
615
617
|
});
|
|
616
618
|
}
|
|
@@ -507,7 +507,7 @@ export const ModuleLoadingProfiler = {
|
|
|
507
507
|
removeHoldByID(currentInteractionId, id);
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
|
-
export function addError(interactionId, name, labelStack, errorType, errorMessage, errorStack, forcedError, errorHash) {
|
|
510
|
+
export function addError(interactionId, name, labelStack, errorType, errorMessage, errorStack, forcedError, errorHash, errorStatusCode) {
|
|
511
511
|
const interaction = interactions.get(interactionId);
|
|
512
512
|
if (interaction != null) {
|
|
513
513
|
interaction.errors.push({
|
|
@@ -517,11 +517,12 @@ export function addError(interactionId, name, labelStack, errorType, errorMessag
|
|
|
517
517
|
errorMessage,
|
|
518
518
|
errorStack,
|
|
519
519
|
forcedError,
|
|
520
|
-
errorHash
|
|
520
|
+
errorHash,
|
|
521
|
+
errorStatusCode
|
|
521
522
|
});
|
|
522
523
|
}
|
|
523
524
|
}
|
|
524
|
-
export function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, errorHash) {
|
|
525
|
+
export function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, errorHash, errorStatusCode) {
|
|
525
526
|
interactions.forEach(interaction => {
|
|
526
527
|
interaction.errors.push({
|
|
527
528
|
name,
|
|
@@ -529,7 +530,8 @@ export function addErrorToAll(name, labelStack, errorType, errorMessage, errorSt
|
|
|
529
530
|
errorType,
|
|
530
531
|
errorMessage,
|
|
531
532
|
errorStack,
|
|
532
|
-
errorHash
|
|
533
|
+
errorHash,
|
|
534
|
+
errorStatusCode
|
|
533
535
|
});
|
|
534
536
|
});
|
|
535
537
|
}
|
|
@@ -542,7 +542,7 @@ export var ModuleLoadingProfiler = {
|
|
|
542
542
|
removeHoldByID(currentInteractionId, id);
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
|
-
export function addError(interactionId, name, labelStack, errorType, errorMessage, errorStack, forcedError, errorHash) {
|
|
545
|
+
export function addError(interactionId, name, labelStack, errorType, errorMessage, errorStack, forcedError, errorHash, errorStatusCode) {
|
|
546
546
|
var interaction = interactions.get(interactionId);
|
|
547
547
|
if (interaction != null) {
|
|
548
548
|
interaction.errors.push({
|
|
@@ -552,11 +552,12 @@ export function addError(interactionId, name, labelStack, errorType, errorMessag
|
|
|
552
552
|
errorMessage: errorMessage,
|
|
553
553
|
errorStack: errorStack,
|
|
554
554
|
forcedError: forcedError,
|
|
555
|
-
errorHash: errorHash
|
|
555
|
+
errorHash: errorHash,
|
|
556
|
+
errorStatusCode: errorStatusCode
|
|
556
557
|
});
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
export function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, errorHash) {
|
|
560
|
+
export function addErrorToAll(name, labelStack, errorType, errorMessage, errorStack, errorHash, errorStatusCode) {
|
|
560
561
|
interactions.forEach(function (interaction) {
|
|
561
562
|
interaction.errors.push({
|
|
562
563
|
name: name,
|
|
@@ -564,7 +565,8 @@ export function addErrorToAll(name, labelStack, errorType, errorMessage, errorSt
|
|
|
564
565
|
errorType: errorType,
|
|
565
566
|
errorMessage: errorMessage,
|
|
566
567
|
errorStack: errorStack,
|
|
567
|
-
errorHash: errorHash
|
|
568
|
+
errorHash: errorHash,
|
|
569
|
+
errorStatusCode: errorStatusCode
|
|
568
570
|
});
|
|
569
571
|
});
|
|
570
572
|
}
|