@atlaskit/link-create 1.15.3 → 1.15.5

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,18 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 1.15.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#88102](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88102) [`e424cbf4d842`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e424cbf4d842) - Cleans up internal observability feature flag. No expected functional changes.
8
+ - Updated dependencies
9
+
10
+ ## 1.15.4
11
+
12
+ ### Patch Changes
13
+
14
+ - [#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
15
+
3
16
  ## 1.15.3
4
17
 
5
18
  ### Patch Changes
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _analyticsNext = require("@atlaskit/analytics-next");
12
12
  var _sentry = require("@atlaskit/linking-common/sentry");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _constants = require("../../common/constants");
15
14
  var _analytics = _interopRequireDefault(require("../../common/utils/analytics/analytics.codegen"));
16
15
  var _errors = require("../../common/utils/errors");
@@ -78,7 +77,7 @@ var Experience = exports.Experience = function Experience(_ref) {
78
77
  /**
79
78
  * Error message if instanceof Error
80
79
  */
81
- errorMessage: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.tmp-log-error-message') && error instanceof Error ? error.message : null,
80
+ errorMessage: error instanceof Error ? error.message : null,
82
81
  /**
83
82
  * The current status of the experience (has failed)
84
83
  */
@@ -94,10 +93,8 @@ var Experience = exports.Experience = function Experience(_ref) {
94
93
  isSLOFailure: isErrorSLOFailure(error)
95
94
  }, (0, _errors.getNetworkFields)(error)))).fire(_constants.ANALYTICS_CHANNEL);
96
95
  if (error instanceof Error) {
97
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.enable-sentry-client')) {
98
- // Capture exception to Sentry
99
- (0, _sentry.captureException)(error, 'link-create');
100
- }
96
+ // Capture exception to Sentry
97
+ (0, _sentry.captureException)(error, 'link-create');
101
98
  }
102
99
 
103
100
  /**
@@ -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, _window2, _info$componentStack;
29
+ var _window;
30
30
  if (!(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.better-observability')) {
31
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.enable-sentry-client')) {
32
- // Capture exception to Sentry
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', (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.enable-sentry-client') ? {
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
@@ -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.3" || '',
34
+ packageVersion: "1.15.5" || '',
35
35
  component: _constants.COMPONENT_NAME,
36
36
  componentName: _constants.COMPONENT_NAME
37
37
  };
@@ -1,7 +1,6 @@
1
1
  import React, { createContext, useContext, useMemo, useRef } from 'react';
2
2
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
3
3
  import { captureException } from '@atlaskit/linking-common/sentry';
4
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
4
  import { ANALYTICS_CHANNEL } from '../../common/constants';
6
5
  import createEventPayload from '../../common/utils/analytics/analytics.codegen';
7
6
  import { getErrorType, getNetworkFields } from '../../common/utils/errors';
@@ -64,7 +63,7 @@ export const Experience = ({
64
63
  /**
65
64
  * Error message if instanceof Error
66
65
  */
67
- errorMessage: getBooleanFF('platform.linking-platform.link-create.tmp-log-error-message') && error instanceof Error ? error.message : null,
66
+ errorMessage: error instanceof Error ? error.message : null,
68
67
  /**
69
68
  * The current status of the experience (has failed)
70
69
  */
@@ -85,10 +84,8 @@ export const Experience = ({
85
84
  ...getNetworkFields(error)
86
85
  })).fire(ANALYTICS_CHANNEL);
87
86
  if (error instanceof Error) {
88
- if (getBooleanFF('platform.linking-platform.link-create.enable-sentry-client')) {
89
- // Capture exception to Sentry
90
- captureException(error, 'link-create');
91
- }
87
+ // Capture exception to Sentry
88
+ captureException(error, 'link-create');
92
89
  }
93
90
 
94
91
  /**
@@ -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, _window2, _window2$navigator, _info$componentStack;
21
+ var _window, _window$navigator;
22
22
  if (!getBooleanFF('platform.linking-platform.link-create.better-observability')) {
23
- if (getBooleanFF('platform.linking-platform.link-create.enable-sentry-client')) {
24
- // Capture exception to Sentry
25
- captureException(error, 'link-create');
26
- }
23
+ // Capture exception to Sentry
24
+ captureException(error, 'link-create');
27
25
  }
28
- createAnalyticsEvent(createEventPayload('operational.linkCreate.unhandledErrorCaught', getBooleanFF('platform.linking-platform.link-create.enable-sentry-client') ? {
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
@@ -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.3" || '',
26
+ packageVersion: "1.15.5" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import React, { createContext, useContext, useMemo, useRef } from 'react';
5
5
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
6
6
  import { captureException } from '@atlaskit/linking-common/sentry';
7
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
7
  import { ANALYTICS_CHANNEL } from '../../common/constants';
9
8
  import createEventPayload from '../../common/utils/analytics/analytics.codegen';
10
9
  import { getErrorType, getNetworkFields } from '../../common/utils/errors';
@@ -68,7 +67,7 @@ export var Experience = function Experience(_ref) {
68
67
  /**
69
68
  * Error message if instanceof Error
70
69
  */
71
- errorMessage: getBooleanFF('platform.linking-platform.link-create.tmp-log-error-message') && error instanceof Error ? error.message : null,
70
+ errorMessage: error instanceof Error ? error.message : null,
72
71
  /**
73
72
  * The current status of the experience (has failed)
74
73
  */
@@ -84,10 +83,8 @@ export var Experience = function Experience(_ref) {
84
83
  isSLOFailure: isErrorSLOFailure(error)
85
84
  }, getNetworkFields(error)))).fire(ANALYTICS_CHANNEL);
86
85
  if (error instanceof Error) {
87
- if (getBooleanFF('platform.linking-platform.link-create.enable-sentry-client')) {
88
- // Capture exception to Sentry
89
- captureException(error, 'link-create');
90
- }
86
+ // Capture exception to Sentry
87
+ captureException(error, 'link-create');
91
88
  }
92
89
 
93
90
  /**
@@ -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, _window2, _info$componentStack;
19
+ var _window;
20
20
  if (!getBooleanFF('platform.linking-platform.link-create.better-observability')) {
21
- if (getBooleanFF('platform.linking-platform.link-create.enable-sentry-client')) {
22
- // Capture exception to Sentry
23
- captureException(error, 'link-create');
24
- }
21
+ // Capture exception to Sentry
22
+ captureException(error, 'link-create');
25
23
  }
26
- createAnalyticsEvent(createEventPayload('operational.linkCreate.unhandledErrorCaught', getBooleanFF('platform.linking-platform.link-create.enable-sentry-client') ? {
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
@@ -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.3" || '',
26
+ packageVersion: "1.15.5" || '',
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",
3
+ "version": "1.15.5",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@atlaskit/analytics-next": "^9.2.0",
42
- "@atlaskit/button": "^17.8.0",
42
+ "@atlaskit/button": "^17.10.0",
43
43
  "@atlaskit/empty-state": "^7.7.0",
44
44
  "@atlaskit/form": "^9.1.0",
45
45
  "@atlaskit/icon": "^22.1.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.2.0",
51
- "@atlaskit/select": "^17.3.0",
50
+ "@atlaskit/primitives": "^5.5.0",
51
+ "@atlaskit/select": "^17.5.0",
52
52
  "@atlaskit/spinner": "^16.0.0",
53
53
  "@atlaskit/textfield": "^6.1.0",
54
- "@atlaskit/tokens": "^1.42.0",
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,15 +118,9 @@
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
  },
127
- "platform.linking-platform.link-create.tmp-log-error-message": {
128
- "type": "boolean"
129
- },
130
124
  "platform.linking-platform.link-create.enable-expected-field-errors": {
131
125
  "type": "boolean"
132
126
  }