@atlaskit/rovo-triggers 2.14.0 → 2.16.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,25 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 2.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#170731](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/170731)
8
+ [`8d3ba2716ca4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8d3ba2716ca4a) -
9
+ add get/set AI Feature Context
10
+
11
+ ## 2.15.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#168884](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/168884)
16
+ [`62d1dcae72ca1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/62d1dcae72ca1) -
17
+ Now the consumers of Rava chat that launch chat with URL mostly for full screen experience can
18
+ provide a new url param `rovoChatInitiator` to enable `initiator` logging in message sent and
19
+ agentMessage received events. Refer this
20
+ [doc](https://hello.atlassian.net/wiki/spaces/AA6/pages/5413278975/RFC-009+Rovo+Chat+Initiator+Tracking)
21
+ for more details.
22
+
3
23
  ## 2.14.0
4
24
 
5
25
  ### Minor Changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ export type { ChatContextState, ChatContextPayload } from './types';
@@ -0,0 +1,7 @@
1
+ export type ChatContextState = {
2
+ [contextKey: string]: unknown;
3
+ };
4
+ export type ChatContextPayload = {
5
+ contextKey: string;
6
+ context: <T>(chatContext: T) => T;
7
+ };
@@ -6,6 +6,7 @@ export interface BaseRovoChatParams {
6
6
  prompt: string;
7
7
  cloudId: string;
8
8
  triggerOpen: boolean;
9
+ initiator: string;
9
10
  }
10
11
  export type ValidPrefix = 'rovoChat';
11
12
  export type ValidParam = keyof BaseRovoChatParams;
@@ -3,3 +3,4 @@ export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContex
3
3
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
4
4
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
5
5
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
6
+ export type { ChatContextState, ChatContextPayload } from './common/utils/chat-context';
@@ -0,0 +1 @@
1
+ export type { ChatContextState, ChatContextPayload } from './types';
@@ -0,0 +1,7 @@
1
+ export type ChatContextState = {
2
+ [contextKey: string]: unknown;
3
+ };
4
+ export type ChatContextPayload = {
5
+ contextKey: string;
6
+ context: <T>(chatContext: T) => T;
7
+ };
@@ -6,6 +6,7 @@ export interface BaseRovoChatParams {
6
6
  prompt: string;
7
7
  cloudId: string;
8
8
  triggerOpen: boolean;
9
+ initiator: string;
9
10
  }
10
11
  export type ValidPrefix = 'rovoChat';
11
12
  export type ValidParam = keyof BaseRovoChatParams;
@@ -3,3 +3,4 @@ export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContex
3
3
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
4
4
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
5
5
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
6
+ export type { ChatContextState, ChatContextPayload } from './common/utils/chat-context';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "2.14.0",
3
+ "version": "2.16.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": {