@atlaskit/rovo-triggers 5.25.0 → 5.27.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,22 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 5.27.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c64cf3b384b98`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c64cf3b384b98) -
8
+ Adds query param `rovoChatPromptLibraryOpen` which can be `true | false` for opening the prompt
9
+ library in full page chat when the query param is set to true.
10
+
11
+ ## 5.26.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`ab89ee97c67c5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab89ee97c67c5) -
16
+ Updates the ChatNewPayload data object to take in mode information since it is already supported
17
+ in the pubsub listener but was never added to the type definition which means typecheck failed for
18
+ consumers that wanted to set mode information.
19
+
3
20
  ## 5.25.0
4
21
 
5
22
  ### Minor Changes
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ROVO_VALID_PARAMS = exports.ROVO_PARAM_PREFIX = void 0;
7
7
  var ROVO_PARAM_PREFIX = exports.ROVO_PARAM_PREFIX = 'rovoChat';
8
- var ROVO_VALID_PARAMS = exports.ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt'];
8
+ var ROVO_VALID_PARAMS = exports.ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'promptLibraryOpen'];
@@ -1,2 +1,2 @@
1
1
  export const ROVO_PARAM_PREFIX = 'rovoChat';
2
- export const ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt'];
2
+ export const ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'promptLibraryOpen'];
@@ -1,2 +1,2 @@
1
1
  export var ROVO_PARAM_PREFIX = 'rovoChat';
2
- export var ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt'];
2
+ export var ROVO_VALID_PARAMS = ['pathway', 'agentId', 'conversationId', 'prompt', 'cloudId', 'triggerOpen', 'insertPrompt', 'promptLibraryOpen'];
@@ -10,6 +10,7 @@ export interface BaseRovoChatParams {
10
10
  insertPrompt: 'highlight-action';
11
11
  stagingAreaOpen: boolean;
12
12
  messageIdSelectedForPreview: string;
13
+ promptLibraryOpen: boolean;
13
14
  }
14
15
  export type ValidPrefix = 'rovoChat';
15
16
  export type ValidParam = keyof BaseRovoChatParams;
@@ -37,6 +37,14 @@ type TargetAgentParam = {
37
37
  type PlaceholderParam = {
38
38
  placeholderType?: 'person' | 'link' | 'generic' | 'skill';
39
39
  };
40
+ type ChatModeParam = {
41
+ deepResearchEnabled?: boolean;
42
+ thinkDeeperEnabled?: boolean;
43
+ fastModeEnabled?: boolean;
44
+ webSearchEnabled?: boolean;
45
+ useCurrentPageContext?: boolean;
46
+ appFilters?: unknown[];
47
+ };
40
48
  export type ChatNewPayload = PayloadCore<'chat-new', {
41
49
  name?: string;
42
50
  dialogues: Array<{
@@ -57,6 +65,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
57
65
  minionAlias?: string;
58
66
  skipCreatingSeededConversation?: boolean;
59
67
  resetActiveMenu?: boolean;
68
+ mode?: ChatModeParam;
60
69
  } & Partial<TargetAgentParam> & PlaceholderParam>;
61
70
  export type EditorContextPayloadData = {
62
71
  document: {
@@ -10,6 +10,7 @@ export interface BaseRovoChatParams {
10
10
  insertPrompt: 'highlight-action';
11
11
  stagingAreaOpen: boolean;
12
12
  messageIdSelectedForPreview: string;
13
+ promptLibraryOpen: boolean;
13
14
  }
14
15
  export type ValidPrefix = 'rovoChat';
15
16
  export type ValidParam = keyof BaseRovoChatParams;
@@ -37,6 +37,14 @@ type TargetAgentParam = {
37
37
  type PlaceholderParam = {
38
38
  placeholderType?: 'person' | 'link' | 'generic' | 'skill';
39
39
  };
40
+ type ChatModeParam = {
41
+ deepResearchEnabled?: boolean;
42
+ thinkDeeperEnabled?: boolean;
43
+ fastModeEnabled?: boolean;
44
+ webSearchEnabled?: boolean;
45
+ useCurrentPageContext?: boolean;
46
+ appFilters?: unknown[];
47
+ };
40
48
  export type ChatNewPayload = PayloadCore<'chat-new', {
41
49
  name?: string;
42
50
  dialogues: Array<{
@@ -57,6 +65,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
57
65
  minionAlias?: string;
58
66
  skipCreatingSeededConversation?: boolean;
59
67
  resetActiveMenu?: boolean;
68
+ mode?: ChatModeParam;
60
69
  } & Partial<TargetAgentParam> & PlaceholderParam>;
61
70
  export type EditorContextPayloadData = {
62
71
  document: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "5.25.0",
3
+ "version": "5.27.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": {
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.2.0",
32
+ "@atlaskit/adf-schema": "^52.4.0",
33
33
  "@atlaskit/platform-feature-flags": "^1.1.0",
34
34
  "@babel/runtime": "^7.0.0",
35
35
  "bind-event-listener": "^3.0.0"