@atlaskit/link-create 1.12.0 → 1.13.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 1.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#63972](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63972) [`3fe8708a6cf0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3fe8708a6cf0) - Log error message on experience failure for debugging purposes, when ff is enabled.
8
+
9
+ ## 1.12.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.12.0
4
16
 
5
17
  ### Minor Changes
@@ -138,6 +138,10 @@ events:
138
138
  type: string
139
139
  description: the name of the error
140
140
  required: false
141
+ errorMessage:
142
+ type: string
143
+ description: the message of the error if available
144
+ required: false
141
145
  experienceStatus:
142
146
  type: ['SUCCEEDED', 'FAILED']
143
147
  previousExperienceStatus:
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  *
12
12
  * Generates Typescript types for analytics events from analytics.spec.yaml
13
13
  *
14
- * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
14
+ * @codegen <<SignedSource::1c67626e82d39af8e93ced7a11389f4f>>
15
15
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
16
16
  */
17
17
 
@@ -54,6 +54,10 @@ var Experience = exports.Experience = function Experience(_ref) {
54
54
  * The type of error that has failed the experience
55
55
  */
56
56
  errorType: (0, _errors.getErrorType)(error),
57
+ /**
58
+ * Error message if instanceof Error
59
+ */
60
+ errorMessage: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.tmp-log-error-message') && error instanceof Error ? error.message : null,
57
61
  /**
58
62
  * The current status of the experience (has failed)
59
63
  */
@@ -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.12.0" || '',
34
+ packageVersion: "1.13.0" || '',
35
35
  component: _constants.COMPONENT_NAME,
36
36
  componentName: _constants.COMPONENT_NAME
37
37
  };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
6
+ * @codegen <<SignedSource::1c67626e82d39af8e93ced7a11389f4f>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
9
 
@@ -42,6 +42,10 @@ export const Experience = ({
42
42
  * The type of error that has failed the experience
43
43
  */
44
44
  errorType: getErrorType(error),
45
+ /**
46
+ * Error message if instanceof Error
47
+ */
48
+ errorMessage: getBooleanFF('platform.linking-platform.link-create.tmp-log-error-message') && error instanceof Error ? error.message : null,
45
49
  /**
46
50
  * The current status of the experience (has failed)
47
51
  */
@@ -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.12.0" || '',
26
+ packageVersion: "1.13.0" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  *
5
5
  * Generates Typescript types for analytics events from analytics.spec.yaml
6
6
  *
7
- * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
7
+ * @codegen <<SignedSource::1c67626e82d39af8e93ced7a11389f4f>>
8
8
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
9
9
  */
10
10
 
@@ -44,6 +44,10 @@ export var Experience = function Experience(_ref) {
44
44
  * The type of error that has failed the experience
45
45
  */
46
46
  errorType: getErrorType(error),
47
+ /**
48
+ * Error message if instanceof Error
49
+ */
50
+ errorMessage: getBooleanFF('platform.linking-platform.link-create.tmp-log-error-message') && error instanceof Error ? error.message : null,
47
51
  /**
48
52
  * The current status of the experience (has failed)
49
53
  */
@@ -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.12.0" || '',
26
+ packageVersion: "1.13.0" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
6
+ * @codegen <<SignedSource::1c67626e82d39af8e93ced7a11389f4f>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -40,6 +40,7 @@ export type ObjectCreateFailedLinkCreateAttributesType = {
40
40
  };
41
41
  export type LinkCreateExperienceFailedAttributesType = {
42
42
  errorType: string | null;
43
+ errorMessage: string | null;
43
44
  experienceStatus: 'SUCCEEDED' | 'FAILED';
44
45
  previousExperienceStatus: 'STARTED' | 'SUCCEEDED' | 'FAILED';
45
46
  path: string | null;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
6
+ * @codegen <<SignedSource::1c67626e82d39af8e93ced7a11389f4f>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -40,6 +40,7 @@ export type ObjectCreateFailedLinkCreateAttributesType = {
40
40
  };
41
41
  export type LinkCreateExperienceFailedAttributesType = {
42
42
  errorType: string | null;
43
+ errorMessage: string | null;
43
44
  experienceStatus: 'SUCCEEDED' | 'FAILED';
44
45
  previousExperienceStatus: 'STARTED' | 'SUCCEEDED' | 'FAILED';
45
46
  path: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/form": "^9.0.3",
44
44
  "@atlaskit/icon": "^22.0.0",
45
45
  "@atlaskit/intl-messages-provider": "^1.0.0",
46
- "@atlaskit/linking-common": "^4.21.0",
46
+ "@atlaskit/linking-common": "^5.0.0",
47
47
  "@atlaskit/modal-dialog": "^12.10.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.2.1",
49
49
  "@atlaskit/primitives": "^1.15.0",
50
50
  "@atlaskit/select": "^17.0.3",
51
51
  "@atlaskit/spinner": "^16.0.0",
52
52
  "@atlaskit/textfield": "^6.0.0",
53
- "@atlaskit/tokens": "^1.30.0",
53
+ "@atlaskit/tokens": "^1.32.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
56
56
  "debounce-promise": "^3.1.2",
@@ -122,6 +122,9 @@
122
122
  },
123
123
  "platform.linking-platform.link-create.better-observability": {
124
124
  "type": "boolean"
125
+ },
126
+ "platform.linking-platform.link-create.tmp-log-error-message": {
127
+ "type": "boolean"
125
128
  }
126
129
  }
127
130
  }