@atlaskit/react-ufo 4.5.8 → 4.5.9
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,12 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.5.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7cd8d49ea4953`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7cd8d49ea4953) -
|
|
8
|
+
update parameters for useUFOReportError callback
|
|
9
|
+
|
|
3
10
|
## 4.5.8
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -22,9 +22,9 @@ var _interactionMetrics = require("../interaction-metrics");
|
|
|
22
22
|
* @returns `reportError` function
|
|
23
23
|
*/
|
|
24
24
|
function useUFOReportError() {
|
|
25
|
-
var interaction = (0, _interactionMetrics.getActiveInteraction)();
|
|
26
25
|
var ufoContext = (0, _interactionContext.useInteractionContext)();
|
|
27
26
|
var reportError = function reportError(error) {
|
|
27
|
+
var interaction = (0, _interactionMetrics.getActiveInteraction)();
|
|
28
28
|
if (interaction !== null && interaction !== void 0 && interaction.id) {
|
|
29
29
|
(0, _interactionMetrics.addError)(interaction.id, error.name, (ufoContext === null || ufoContext === void 0 ? void 0 : ufoContext.labelStack) || null, error.name, error.errorMessage, error.errorStack, error.forcedError);
|
|
30
30
|
} else {
|
|
@@ -17,9 +17,9 @@ import { addError, addErrorToAll, getActiveInteraction } from '../interaction-me
|
|
|
17
17
|
* @returns `reportError` function
|
|
18
18
|
*/
|
|
19
19
|
export function useUFOReportError() {
|
|
20
|
-
const interaction = getActiveInteraction();
|
|
21
20
|
const ufoContext = useInteractionContext();
|
|
22
21
|
const reportError = error => {
|
|
22
|
+
const interaction = getActiveInteraction();
|
|
23
23
|
if (interaction !== null && interaction !== void 0 && interaction.id) {
|
|
24
24
|
addError(interaction.id, error.name, (ufoContext === null || ufoContext === void 0 ? void 0 : ufoContext.labelStack) || null, error.name, error.errorMessage, error.errorStack, error.forcedError);
|
|
25
25
|
} else {
|
|
@@ -17,9 +17,9 @@ import { addError, addErrorToAll, getActiveInteraction } from '../interaction-me
|
|
|
17
17
|
* @returns `reportError` function
|
|
18
18
|
*/
|
|
19
19
|
export function useUFOReportError() {
|
|
20
|
-
var interaction = getActiveInteraction();
|
|
21
20
|
var ufoContext = useInteractionContext();
|
|
22
21
|
var reportError = function reportError(error) {
|
|
22
|
+
var interaction = getActiveInteraction();
|
|
23
23
|
if (interaction !== null && interaction !== void 0 && interaction.id) {
|
|
24
24
|
addError(interaction.id, error.name, (ufoContext === null || ufoContext === void 0 ? void 0 : ufoContext.labelStack) || null, error.name, error.errorMessage, error.errorStack, error.forcedError);
|
|
25
25
|
} else {
|
|
@@ -14,4 +14,4 @@ import { type InteractionError } from '../interaction-metrics';
|
|
|
14
14
|
* ```
|
|
15
15
|
* @returns `reportError` function
|
|
16
16
|
*/
|
|
17
|
-
export declare function useUFOReportError(): (error: InteractionError) => void;
|
|
17
|
+
export declare function useUFOReportError(): (error: Omit<InteractionError, "labelStack" | "errorType">) => void;
|
|
@@ -14,4 +14,4 @@ import { type InteractionError } from '../interaction-metrics';
|
|
|
14
14
|
* ```
|
|
15
15
|
* @returns `reportError` function
|
|
16
16
|
*/
|
|
17
|
-
export declare function useUFOReportError(): (error: InteractionError) => void;
|
|
17
|
+
export declare function useUFOReportError(): (error: Omit<InteractionError, "labelStack" | "errorType">) => void;
|