@atlaskit/rovo-triggers 2.10.0 → 2.11.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 +8 -0
- package/dist/cjs/types.js +2 -0
- package/dist/es2019/types.js +2 -0
- package/dist/esm/types.js +2 -0
- package/dist/types/types.d.ts +8 -2
- package/dist/types-ts4.5/types.d.ts +8 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 2.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#144867](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/144867)
|
|
8
|
+
[`ccdd14f4bdaef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ccdd14f4bdaef) -
|
|
9
|
+
Add support for agent-external-config-reference pubsub payload behind fg
|
|
10
|
+
|
|
3
11
|
## 2.10.0
|
|
4
12
|
|
|
5
13
|
### 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
|
|
package/dist/es2019/types.js
CHANGED
|
@@ -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
|
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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
|
-
|
|
33
|
-
}>;
|
|
39
|
+
} & Partial<TargetAgentParam>>;
|
|
34
40
|
export type EditorContextPayloadData = {
|
|
35
41
|
document: {
|
|
36
42
|
type: 'text/markdown' | 'text/adf';
|
|
@@ -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
|
-
|
|
33
|
-
}>;
|
|
39
|
+
} & Partial<TargetAgentParam>>;
|
|
34
40
|
export type EditorContextPayloadData = {
|
|
35
41
|
document: {
|
|
36
42
|
type: 'text/markdown' | 'text/adf';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.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": "
|
|
44
|
-
"@af/visual-regression": "
|
|
43
|
+
"@af/integration-testing": "workspace:^",
|
|
44
|
+
"@af/visual-regression": "workspace:^",
|
|
45
45
|
"@atlaskit/css": "^0.10.0",
|
|
46
|
-
"@atlaskit/primitives": "^14.
|
|
47
|
-
"@atlaskit/ssr": "
|
|
48
|
-
"@atlaskit/visual-regression": "
|
|
46
|
+
"@atlaskit/primitives": "^14.4.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",
|