@atlaskit/rovo-triggers 3.14.0 → 3.15.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,20 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 3.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`534bece8a4fe1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/534bece8a4fe1) -
8
+ Adds the ability to add uploaded files to the chat-new pubsub listener event
9
+
10
+ ## 3.14.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`b7c4ffd0fd579`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b7c4ffd0fd579) -
15
+ [ux] Adding isViewMode property to send to chat if the user is in view/readonly mode on a
16
+ whiteboard
17
+
3
18
  ## 3.14.0
4
19
 
5
20
  ### Minor Changes
@@ -38,6 +38,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
38
38
  };
39
39
  }>;
40
40
  prompt?: string | DocNode;
41
+ files?: UploadedFile[];
41
42
  contentContext?: 'staging-area' | 'global';
42
43
  sourceId?: string;
43
44
  minionAlias?: string;
@@ -59,6 +60,7 @@ export type WhiteboardContextPayloadData = {
59
60
  type: 'image/svg+xml' | 'text/plain';
60
61
  content: string;
61
62
  contentId?: string;
63
+ isViewMode?: boolean;
62
64
  } | undefined;
63
65
  export type BrowserContextPayloadData = {
64
66
  context: {
@@ -235,4 +237,17 @@ export type TopicEvents = {
235
237
  export type TopicEventQueue = {
236
238
  [key in Topic]?: Payload;
237
239
  };
240
+ export type UploadedFile = {
241
+ id: string;
242
+ conversation_channel_id?: string;
243
+ blob_id?: string;
244
+ name: string;
245
+ size?: number;
246
+ type?: string;
247
+ created_at?: string;
248
+ owner?: string;
249
+ isLoading: boolean;
250
+ error?: string;
251
+ fileObject?: File;
252
+ };
238
253
  export {};
@@ -38,6 +38,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
38
38
  };
39
39
  }>;
40
40
  prompt?: string | DocNode;
41
+ files?: UploadedFile[];
41
42
  contentContext?: 'staging-area' | 'global';
42
43
  sourceId?: string;
43
44
  minionAlias?: string;
@@ -59,6 +60,7 @@ export type WhiteboardContextPayloadData = {
59
60
  type: 'image/svg+xml' | 'text/plain';
60
61
  content: string;
61
62
  contentId?: string;
63
+ isViewMode?: boolean;
62
64
  } | undefined;
63
65
  export type BrowserContextPayloadData = {
64
66
  context: {
@@ -235,4 +237,17 @@ export type TopicEvents = {
235
237
  export type TopicEventQueue = {
236
238
  [key in Topic]?: Payload;
237
239
  };
240
+ export type UploadedFile = {
241
+ id: string;
242
+ conversation_channel_id?: string;
243
+ blob_id?: string;
244
+ name: string;
245
+ size?: number;
246
+ type?: string;
247
+ created_at?: string;
248
+ owner?: string;
249
+ isLoading: boolean;
250
+ error?: string;
251
+ fileObject?: File;
252
+ };
238
253
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "3.14.0",
3
+ "version": "3.15.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": {
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/css": "^0.15.0",
43
43
  "@atlaskit/primitives": "^16.0.0",
44
44
  "@atlaskit/ssr": "workspace:^",
45
- "@atlassian/feature-flags-test-utils": "^0.3.0",
45
+ "@atlassian/feature-flags-test-utils": "^1.0.0",
46
46
  "@testing-library/react": "^13.4.0",
47
47
  "@testing-library/react-hooks": "^8.0.1",
48
48
  "react-dom": "^18.2.0",