@atlaskit/rovo-triggers 6.2.0 → 6.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,13 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 6.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b8323b0e8414e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b8323b0e8414e) -
8
+ Add searchArtifact parameter to the sendMessage API Integrate searchArtifact to chat-new pubsub
9
+ event and add to search
10
+
3
11
  ## 6.2.0
4
12
 
5
13
  ### Minor Changes
@@ -86,6 +86,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
86
86
  versionNumber?: number;
87
87
  };
88
88
  spaceId?: string;
89
+ /**
90
+ * Optional artifact representing the object the user is currently interacting with or
91
+ * acting on (e.g. 3P forge artifacts that are not resolvable without an ARI).
92
+ * Sent as `search_artifact` in `body.context`.
93
+ */
94
+ searchArtifact?: SendMessageSearchArtifact;
89
95
  } & Partial<TargetAgentParam> & PlaceholderParam>;
90
96
  export type EditorContextPayloadData = {
91
97
  document: {
@@ -501,4 +507,10 @@ export type UploadedFile = {
501
507
  error?: string;
502
508
  fileObject?: File;
503
509
  };
510
+ type SendMessageSearchArtifact = {
511
+ /** The Atlassian Resource Identifier (ARI) of the object. */
512
+ ari?: string;
513
+ /** The URL of the object. */
514
+ url?: string;
515
+ };
504
516
  export {};
@@ -86,6 +86,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
86
86
  versionNumber?: number;
87
87
  };
88
88
  spaceId?: string;
89
+ /**
90
+ * Optional artifact representing the object the user is currently interacting with or
91
+ * acting on (e.g. 3P forge artifacts that are not resolvable without an ARI).
92
+ * Sent as `search_artifact` in `body.context`.
93
+ */
94
+ searchArtifact?: SendMessageSearchArtifact;
89
95
  } & Partial<TargetAgentParam> & PlaceholderParam>;
90
96
  export type EditorContextPayloadData = {
91
97
  document: {
@@ -501,4 +507,10 @@ export type UploadedFile = {
501
507
  error?: string;
502
508
  fileObject?: File;
503
509
  };
510
+ type SendMessageSearchArtifact = {
511
+ /** The Atlassian Resource Identifier (ARI) of the object. */
512
+ ari?: string;
513
+ /** The URL of the object. */
514
+ url?: string;
515
+ };
504
516
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "description": "Provides various trigger events to drive Rovo Chat functionality, such as a publish-subscribe and URL parameter hooks",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "atlaskit:src": "src/index.ts",
38
38
  "dependencies": {
39
- "@atlaskit/adf-schema": "^52.11.0",
39
+ "@atlaskit/adf-schema": "^52.12.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "bind-event-listener": "^3.0.0"