@atlaskit/rovo-triggers 2.10.0 → 2.12.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
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#153961](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153961)
8
+ [`0c9bdadc81cb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c9bdadc81cb7) -
9
+ Added support for highlight action placeholder to be inserted into editor when clicking Chat from
10
+ highlight actions menu
11
+
12
+ ## 2.11.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#144867](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/144867)
17
+ [`ccdd14f4bdaef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ccdd14f4bdaef) -
18
+ Add support for agent-external-config-reference pubsub payload behind fg
19
+
3
20
  ## 2.10.0
4
21
 
5
22
  ### Minor Changes
package/dist/cjs/types.js CHANGED
@@ -8,6 +8,8 @@ var Topics = exports.Topics = {
8
8
  AI_MATE: 'ai-mate'
9
9
  };
10
10
 
11
+ // Can only specify either `agentId` or `agentExternalConfigReference`, not both
12
+
11
13
  // Not using the PayloadCore because the `data: type | undefined` is necessary
12
14
  // but `| undefined` will cause `data` to be removed by PayloadCore
13
15
 
@@ -2,6 +2,8 @@ export const Topics = {
2
2
  AI_MATE: 'ai-mate'
3
3
  };
4
4
 
5
+ // Can only specify either `agentId` or `agentExternalConfigReference`, not both
6
+
5
7
  // Not using the PayloadCore because the `data: type | undefined` is necessary
6
8
  // but `| undefined` will cause `data` to be removed by PayloadCore
7
9
 
package/dist/esm/types.js CHANGED
@@ -2,6 +2,8 @@ export var Topics = {
2
2
  AI_MATE: 'ai-mate'
3
3
  };
4
4
 
5
+ // Can only specify either `agentId` or `agentExternalConfigReference`, not both
6
+
5
7
  // Not using the PayloadCore because the `data: type | undefined` is necessary
6
8
  // but `| undefined` will cause `data` to be removed by PayloadCore
7
9
 
@@ -15,6 +15,13 @@ export type PayloadCore<TKey extends string, TData = void> = {
15
15
  export type MessageSendPayload = PayloadCore<'message-send', {
16
16
  prompt: string;
17
17
  }>;
18
+ type TargetAgentParam = {
19
+ agentId: string;
20
+ agentExternalConfigReference?: never;
21
+ } | {
22
+ agentId?: never;
23
+ agentExternalConfigReference: string;
24
+ };
18
25
  export type ChatNewPayload = PayloadCore<'chat-new', {
19
26
  name: string;
20
27
  dialogues: Array<{
@@ -29,8 +36,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
29
36
  }>;
30
37
  prompt?: string | DocNode;
31
38
  sourceId?: string;
32
- agentId?: string;
33
- }>;
39
+ } & Partial<TargetAgentParam>>;
34
40
  export type EditorContextPayloadData = {
35
41
  document: {
36
42
  type: 'text/markdown' | 'text/adf';
@@ -89,7 +95,7 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
89
95
  /**
90
96
  * Overrides the default placeholder type
91
97
  */
92
- placeholderType?: 'person' | 'link' | 'generic';
98
+ placeholderType?: 'person' | 'link' | 'generic' | 'highlight-action';
93
99
  }>;
94
100
  export type TransitionId = string;
95
101
  export type StatusId = string;
@@ -15,6 +15,13 @@ export type PayloadCore<TKey extends string, TData = void> = {
15
15
  export type MessageSendPayload = PayloadCore<'message-send', {
16
16
  prompt: string;
17
17
  }>;
18
+ type TargetAgentParam = {
19
+ agentId: string;
20
+ agentExternalConfigReference?: never;
21
+ } | {
22
+ agentId?: never;
23
+ agentExternalConfigReference: string;
24
+ };
18
25
  export type ChatNewPayload = PayloadCore<'chat-new', {
19
26
  name: string;
20
27
  dialogues: Array<{
@@ -29,8 +36,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
29
36
  }>;
30
37
  prompt?: string | DocNode;
31
38
  sourceId?: string;
32
- agentId?: string;
33
- }>;
39
+ } & Partial<TargetAgentParam>>;
34
40
  export type EditorContextPayloadData = {
35
41
  document: {
36
42
  type: 'text/markdown' | 'text/adf';
@@ -89,7 +95,7 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
89
95
  /**
90
96
  * Overrides the default placeholder type
91
97
  */
92
- placeholderType?: 'person' | 'link' | 'generic';
98
+ placeholderType?: 'person' | 'link' | 'generic' | 'highlight-action';
93
99
  }>;
94
100
  export type TransitionId = string;
95
101
  export type StatusId = string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "2.10.0",
3
+ "version": "2.12.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": {
@@ -40,12 +40,12 @@
40
40
  "react": "^18.2.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@af/integration-testing": "^0.5.0",
44
- "@af/visual-regression": "^1.3.0",
43
+ "@af/integration-testing": "workspace:^",
44
+ "@af/visual-regression": "workspace:^",
45
45
  "@atlaskit/css": "^0.10.0",
46
- "@atlaskit/primitives": "^14.3.0",
47
- "@atlaskit/ssr": "^0.4.0",
48
- "@atlaskit/visual-regression": "^0.10.0",
46
+ "@atlaskit/primitives": "^14.8.0",
47
+ "@atlaskit/ssr": "workspace:^",
48
+ "@atlaskit/visual-regression": "workspace:^",
49
49
  "@atlassian/feature-flags-test-utils": "^0.3.0",
50
50
  "@testing-library/react": "^13.4.0",
51
51
  "@testing-library/react-hooks": "^8.0.1",