@atlaskit/rovo-triggers 2.4.0 → 2.6.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 +17 -0
- package/dist/types/types.d.ts +4 -1
- package/dist/types-ts4.5/types.d.ts +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 2.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#131371](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131371)
|
|
8
|
+
[`bcdda396edf72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bcdda396edf72) -
|
|
9
|
+
Support mimeType as optional prop in ChatNewPayload type
|
|
10
|
+
|
|
11
|
+
## 2.5.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#130965](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130965)
|
|
16
|
+
[`224b0a23d3ee0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/224b0a23d3ee0) -
|
|
17
|
+
EDF-2621 Added open-browse-agent-sidebar payload type to open rovo chat with browse agent tab
|
|
18
|
+
active.
|
|
19
|
+
|
|
3
20
|
## 2.4.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -19,9 +19,11 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
19
19
|
dialogues: Array<{
|
|
20
20
|
human_message: {
|
|
21
21
|
content: string;
|
|
22
|
+
mimeType?: 'text/markdown' | 'text/adf';
|
|
22
23
|
};
|
|
23
24
|
agent_message: {
|
|
24
25
|
content: string;
|
|
26
|
+
mimeType?: 'text/markdown' | 'text/adf';
|
|
25
27
|
};
|
|
26
28
|
}>;
|
|
27
29
|
prompt?: string;
|
|
@@ -53,6 +55,7 @@ export type BrowserContextPayload = PayloadCore<'browser-context-payload'> & {
|
|
|
53
55
|
};
|
|
54
56
|
export type ChatDraftPayload = PayloadCore<'chat-draft'>;
|
|
55
57
|
export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
|
|
58
|
+
export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
|
|
56
59
|
export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
|
|
57
60
|
mode: 'insert' | 'replace';
|
|
58
61
|
content: string;
|
|
@@ -113,7 +116,7 @@ export type JiraWorkflowWizardAction = {
|
|
|
113
116
|
export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
|
|
114
117
|
actions: JiraWorkflowWizardAction[];
|
|
115
118
|
}>;
|
|
116
|
-
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
119
|
+
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
117
120
|
export type Callback = (payload: Payload) => void;
|
|
118
121
|
export type TopicEvents = {
|
|
119
122
|
[key in Topic]?: Array<{
|
|
@@ -19,9 +19,11 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
19
19
|
dialogues: Array<{
|
|
20
20
|
human_message: {
|
|
21
21
|
content: string;
|
|
22
|
+
mimeType?: 'text/markdown' | 'text/adf';
|
|
22
23
|
};
|
|
23
24
|
agent_message: {
|
|
24
25
|
content: string;
|
|
26
|
+
mimeType?: 'text/markdown' | 'text/adf';
|
|
25
27
|
};
|
|
26
28
|
}>;
|
|
27
29
|
prompt?: string;
|
|
@@ -53,6 +55,7 @@ export type BrowserContextPayload = PayloadCore<'browser-context-payload'> & {
|
|
|
53
55
|
};
|
|
54
56
|
export type ChatDraftPayload = PayloadCore<'chat-draft'>;
|
|
55
57
|
export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
|
|
58
|
+
export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
|
|
56
59
|
export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
|
|
57
60
|
mode: 'insert' | 'replace';
|
|
58
61
|
content: string;
|
|
@@ -113,7 +116,7 @@ export type JiraWorkflowWizardAction = {
|
|
|
113
116
|
export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
|
|
114
117
|
actions: JiraWorkflowWizardAction[];
|
|
115
118
|
}>;
|
|
116
|
-
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
119
|
+
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
117
120
|
export type Callback = (payload: Payload) => void;
|
|
118
121
|
export type TopicEvents = {
|
|
119
122
|
[key in Topic]?: Array<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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
|
"@af/integration-testing": "^0.5.0",
|
|
43
43
|
"@af/visual-regression": "^1.3.0",
|
|
44
44
|
"@atlaskit/css": "^0.10.0",
|
|
45
|
-
"@atlaskit/primitives": "^14.
|
|
45
|
+
"@atlaskit/primitives": "^14.2.0",
|
|
46
46
|
"@atlaskit/ssr": "^0.4.0",
|
|
47
47
|
"@atlaskit/visual-regression": "^0.10.0",
|
|
48
48
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|