@atlaskit/link-create 1.2.0 → 1.3.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,11 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#41722](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41722) [`0bcdc0cc988`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0bcdc0cc988) - EDM-8055 Add ARI to link create callback
8
+
3
9
  ## 1.2.0
4
10
 
5
11
  ### Minor Changes
@@ -24,7 +24,7 @@ var LinkCreateWithAnalyticsContext = (0, _analytics.withLinkCreateAnalyticsConte
24
24
  }));
25
25
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
26
26
  packageName: "@atlaskit/link-create" || '',
27
- packageVersion: "1.2.0" || '',
27
+ packageVersion: "1.3.0" || '',
28
28
  componentName: _constants.COMPONENT_NAME,
29
29
  source: _constants.COMPONENT_NAME
30
30
  };
@@ -15,7 +15,7 @@ const LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE
15
15
  }));
16
16
  export const PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/link-create" || '',
18
- packageVersion: "1.2.0" || '',
18
+ packageVersion: "1.3.0" || '',
19
19
  componentName: COMPONENT_NAME,
20
20
  source: COMPONENT_NAME
21
21
  };
@@ -16,7 +16,7 @@ var LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE__
16
16
  }));
17
17
  export var PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-create" || '',
19
- packageVersion: "1.2.0" || '',
19
+ packageVersion: "1.3.0" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -48,6 +48,15 @@ export interface LinkCreatePlugin {
48
48
  export type CreatePayload = {
49
49
  /** The url to the resource created by the create plugin */
50
50
  url: string;
51
+ /**
52
+ * ARI of the created resource.
53
+ * https://developer.atlassian.com/platform/atlassian-resource-identifier/spec/ari-latest/
54
+ *
55
+ * It should be returned but it's not required to be on the Jira side:
56
+ * https://stash.atlassian.com/projects/JIRACLOUD/repos/jira-frontend/browse/src/packages/issue-create/issue-create-embed/src/ui/index.tsx
57
+ * https://stash.atlassian.com/projects/JIRACLOUD/repos/jira-frontend/pull-requests/103587/overview?commentId=5778323
58
+ */
59
+ ari: string | undefined;
51
60
  /** The object identifier for the resource created by the create plugin (for analytics) */
52
61
  objectId: string;
53
62
  /** The type of object created (for analytics) */
@@ -48,6 +48,15 @@ export interface LinkCreatePlugin {
48
48
  export type CreatePayload = {
49
49
  /** The url to the resource created by the create plugin */
50
50
  url: string;
51
+ /**
52
+ * ARI of the created resource.
53
+ * https://developer.atlassian.com/platform/atlassian-resource-identifier/spec/ari-latest/
54
+ *
55
+ * It should be returned but it's not required to be on the Jira side:
56
+ * https://stash.atlassian.com/projects/JIRACLOUD/repos/jira-frontend/browse/src/packages/issue-create/issue-create-embed/src/ui/index.tsx
57
+ * https://stash.atlassian.com/projects/JIRACLOUD/repos/jira-frontend/pull-requests/103587/overview?commentId=5778323
58
+ */
59
+ ari: string | undefined;
51
60
  /** The object identifier for the resource created by the create plugin (for analytics) */
52
61
  objectId: string;
53
62
  /** The type of object created (for analytics) */
@@ -28,6 +28,7 @@ export function MockPluginForm({ shouldThrowError }: pluginProps) {
28
28
  objectId: 'new-object-id',
29
29
  objectType: 'object-type',
30
30
  data: {},
31
+ ari: 'example-ari',
31
32
  });
32
33
  }
33
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
package/report.api.md CHANGED
@@ -100,6 +100,7 @@ export interface CreateFormProps<FormData> {
100
100
  // @public
101
101
  export type CreatePayload = {
102
102
  url: string;
103
+ ari: string | undefined;
103
104
  objectId: string;
104
105
  objectType: string;
105
106
  data?: Record<string, unknown>;
@@ -63,6 +63,7 @@ export interface CreateFormProps<FormData> {
63
63
  // @public
64
64
  export type CreatePayload = {
65
65
  url: string;
66
+ ari: string | undefined;
66
67
  objectId: string;
67
68
  objectType: string;
68
69
  data?: Record<string, unknown>;