@atlaskit/link-create 1.15.3 → 1.15.4
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 +6 -0
- package/dist/cjs/controllers/experience-tracker/index.js +2 -4
- package/dist/cjs/ui/link-create/error-boundary/index.js +4 -10
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/controllers/experience-tracker/index.js +2 -4
- package/dist/es2019/ui/link-create/error-boundary/index.js +4 -10
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/controllers/experience-tracker/index.js +2 -4
- package/dist/esm/ui/link-create/error-boundary/index.js +4 -10
- package/dist/esm/ui/main.js +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 1.15.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#87422](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87422) [`54c6f458dbd6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/54c6f458dbd6) - Cleansup ff platform.linking-platform.link-create.enable-sentry-client, enabling sentry client to capture exceptions
|
|
8
|
+
|
|
3
9
|
## 1.15.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -94,10 +94,8 @@ var Experience = exports.Experience = function Experience(_ref) {
|
|
|
94
94
|
isSLOFailure: isErrorSLOFailure(error)
|
|
95
95
|
}, (0, _errors.getNetworkFields)(error)))).fire(_constants.ANALYTICS_CHANNEL);
|
|
96
96
|
if (error instanceof Error) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
(0, _sentry.captureException)(error, 'link-create');
|
|
100
|
-
}
|
|
97
|
+
// Capture exception to Sentry
|
|
98
|
+
(0, _sentry.captureException)(error, 'link-create');
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
/**
|
|
@@ -26,21 +26,15 @@ var ErrorBoundary = exports.ErrorBoundary = function ErrorBoundary(_ref) {
|
|
|
26
26
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
27
27
|
(0, _experienceTracker.useExperience)() : null;
|
|
28
28
|
var handleError = (0, _react.useCallback)(function (error, info) {
|
|
29
|
-
var _window
|
|
29
|
+
var _window;
|
|
30
30
|
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.better-observability')) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
(0, _sentry.captureException)(error, 'link-create');
|
|
34
|
-
}
|
|
31
|
+
// Capture exception to Sentry
|
|
32
|
+
(0, _sentry.captureException)(error, 'link-create');
|
|
35
33
|
}
|
|
36
|
-
createAnalyticsEvent((0, _analytics.default)('operational.linkCreate.unhandledErrorCaught',
|
|
34
|
+
createAnalyticsEvent((0, _analytics.default)('operational.linkCreate.unhandledErrorCaught', {
|
|
37
35
|
browserInfo: ((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) || 'unknown',
|
|
38
36
|
error: error.name,
|
|
39
37
|
componentStack: 'unknown'
|
|
40
|
-
} : {
|
|
41
|
-
browserInfo: ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.userAgent) || 'unknown',
|
|
42
|
-
error: error.toString(),
|
|
43
|
-
componentStack: (_info$componentStack = info === null || info === void 0 ? void 0 : info.componentStack) !== null && _info$componentStack !== void 0 ? _info$componentStack : ''
|
|
44
38
|
})).fire(_constants.ANALYTICS_CHANNEL);
|
|
45
39
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.better-observability')) {
|
|
46
40
|
// Track experience as failed for SLO
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -31,7 +31,7 @@ var LinkCreateWithAnalyticsContext = (0, _analytics.withLinkCreateAnalyticsConte
|
|
|
31
31
|
}));
|
|
32
32
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
33
33
|
packageName: "@atlaskit/link-create" || '',
|
|
34
|
-
packageVersion: "1.15.
|
|
34
|
+
packageVersion: "1.15.4" || '',
|
|
35
35
|
component: _constants.COMPONENT_NAME,
|
|
36
36
|
componentName: _constants.COMPONENT_NAME
|
|
37
37
|
};
|
|
@@ -85,10 +85,8 @@ export const Experience = ({
|
|
|
85
85
|
...getNetworkFields(error)
|
|
86
86
|
})).fire(ANALYTICS_CHANNEL);
|
|
87
87
|
if (error instanceof Error) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
captureException(error, 'link-create');
|
|
91
|
-
}
|
|
88
|
+
// Capture exception to Sentry
|
|
89
|
+
captureException(error, 'link-create');
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
/**
|
|
@@ -18,21 +18,15 @@ export const ErrorBoundary = ({
|
|
|
18
18
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
19
19
|
useExperience() : null;
|
|
20
20
|
const handleError = useCallback((error, info) => {
|
|
21
|
-
var _window, _window$navigator
|
|
21
|
+
var _window, _window$navigator;
|
|
22
22
|
if (!getBooleanFF('platform.linking-platform.link-create.better-observability')) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
captureException(error, 'link-create');
|
|
26
|
-
}
|
|
23
|
+
// Capture exception to Sentry
|
|
24
|
+
captureException(error, 'link-create');
|
|
27
25
|
}
|
|
28
|
-
createAnalyticsEvent(createEventPayload('operational.linkCreate.unhandledErrorCaught',
|
|
26
|
+
createAnalyticsEvent(createEventPayload('operational.linkCreate.unhandledErrorCaught', {
|
|
29
27
|
browserInfo: ((_window = window) === null || _window === void 0 ? void 0 : (_window$navigator = _window.navigator) === null || _window$navigator === void 0 ? void 0 : _window$navigator.userAgent) || 'unknown',
|
|
30
28
|
error: error.name,
|
|
31
29
|
componentStack: 'unknown'
|
|
32
|
-
} : {
|
|
33
|
-
browserInfo: ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$navigator = _window2.navigator) === null || _window2$navigator === void 0 ? void 0 : _window2$navigator.userAgent) || 'unknown',
|
|
34
|
-
error: error.toString(),
|
|
35
|
-
componentStack: (_info$componentStack = info === null || info === void 0 ? void 0 : info.componentStack) !== null && _info$componentStack !== void 0 ? _info$componentStack : ''
|
|
36
30
|
})).fire(ANALYTICS_CHANNEL);
|
|
37
31
|
if (getBooleanFF('platform.linking-platform.link-create.better-observability')) {
|
|
38
32
|
// Track experience as failed for SLO
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -23,7 +23,7 @@ const LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE
|
|
|
23
23
|
}));
|
|
24
24
|
export const PACKAGE_DATA = {
|
|
25
25
|
packageName: "@atlaskit/link-create" || '',
|
|
26
|
-
packageVersion: "1.15.
|
|
26
|
+
packageVersion: "1.15.4" || '',
|
|
27
27
|
component: COMPONENT_NAME,
|
|
28
28
|
componentName: COMPONENT_NAME
|
|
29
29
|
};
|
|
@@ -84,10 +84,8 @@ export var Experience = function Experience(_ref) {
|
|
|
84
84
|
isSLOFailure: isErrorSLOFailure(error)
|
|
85
85
|
}, getNetworkFields(error)))).fire(ANALYTICS_CHANNEL);
|
|
86
86
|
if (error instanceof Error) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
captureException(error, 'link-create');
|
|
90
|
-
}
|
|
87
|
+
// Capture exception to Sentry
|
|
88
|
+
captureException(error, 'link-create');
|
|
91
89
|
}
|
|
92
90
|
|
|
93
91
|
/**
|
|
@@ -16,21 +16,15 @@ export var ErrorBoundary = function ErrorBoundary(_ref) {
|
|
|
16
16
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
17
17
|
useExperience() : null;
|
|
18
18
|
var handleError = useCallback(function (error, info) {
|
|
19
|
-
var _window
|
|
19
|
+
var _window;
|
|
20
20
|
if (!getBooleanFF('platform.linking-platform.link-create.better-observability')) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
captureException(error, 'link-create');
|
|
24
|
-
}
|
|
21
|
+
// Capture exception to Sentry
|
|
22
|
+
captureException(error, 'link-create');
|
|
25
23
|
}
|
|
26
|
-
createAnalyticsEvent(createEventPayload('operational.linkCreate.unhandledErrorCaught',
|
|
24
|
+
createAnalyticsEvent(createEventPayload('operational.linkCreate.unhandledErrorCaught', {
|
|
27
25
|
browserInfo: ((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) || 'unknown',
|
|
28
26
|
error: error.name,
|
|
29
27
|
componentStack: 'unknown'
|
|
30
|
-
} : {
|
|
31
|
-
browserInfo: ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.userAgent) || 'unknown',
|
|
32
|
-
error: error.toString(),
|
|
33
|
-
componentStack: (_info$componentStack = info === null || info === void 0 ? void 0 : info.componentStack) !== null && _info$componentStack !== void 0 ? _info$componentStack : ''
|
|
34
28
|
})).fire(ANALYTICS_CHANNEL);
|
|
35
29
|
if (getBooleanFF('platform.linking-platform.link-create.better-observability')) {
|
|
36
30
|
// Track experience as failed for SLO
|
package/dist/esm/ui/main.js
CHANGED
|
@@ -23,7 +23,7 @@ var LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE__
|
|
|
23
23
|
}));
|
|
24
24
|
export var PACKAGE_DATA = {
|
|
25
25
|
packageName: "@atlaskit/link-create" || '',
|
|
26
|
-
packageVersion: "1.15.
|
|
26
|
+
packageVersion: "1.15.4" || '',
|
|
27
27
|
component: COMPONENT_NAME,
|
|
28
28
|
componentName: COMPONENT_NAME
|
|
29
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.4",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@atlaskit/linking-common": "^5.6.0",
|
|
48
48
|
"@atlaskit/modal-dialog": "^12.10.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
50
|
-
"@atlaskit/primitives": "^5.
|
|
51
|
-
"@atlaskit/select": "^17.
|
|
50
|
+
"@atlaskit/primitives": "^5.5.0",
|
|
51
|
+
"@atlaskit/select": "^17.4.0",
|
|
52
52
|
"@atlaskit/spinner": "^16.0.0",
|
|
53
53
|
"@atlaskit/textfield": "^6.1.0",
|
|
54
|
-
"@atlaskit/tokens": "^1.
|
|
54
|
+
"@atlaskit/tokens": "^1.43.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@emotion/react": "^11.7.1",
|
|
57
57
|
"debounce-promise": "^3.1.2",
|
|
@@ -118,9 +118,6 @@
|
|
|
118
118
|
},
|
|
119
119
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
120
120
|
"platform-feature-flags": {
|
|
121
|
-
"platform.linking-platform.link-create.enable-sentry-client": {
|
|
122
|
-
"type": "boolean"
|
|
123
|
-
},
|
|
124
121
|
"platform.linking-platform.link-create.better-observability": {
|
|
125
122
|
"type": "boolean"
|
|
126
123
|
},
|