@atlaskit/rovo-triggers 3.0.0 → 3.1.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 +9 -0
- package/dist/types/types.d.ts +2 -1
- package/dist/types-ts4.5/types.d.ts +2 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#175516](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175516)
|
|
8
|
+
[`7ac176c5546bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ac176c5546bf) -
|
|
9
|
+
Added support for a 'chat-close' payload within Rovo Triggers to allow users to remotely close the
|
|
10
|
+
Rovo chat.
|
|
11
|
+
|
|
3
12
|
## 3.0.0
|
|
4
13
|
|
|
5
14
|
### Major Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type PayloadCore<TKey extends string, TData = void> = {
|
|
|
16
16
|
export type MessageSendPayload = PayloadCore<'message-send', {
|
|
17
17
|
prompt: string;
|
|
18
18
|
}>;
|
|
19
|
+
export type ChatClosePayload = PayloadCore<'chat-close', {}>;
|
|
19
20
|
type TargetAgentParam = {
|
|
20
21
|
agentId: string;
|
|
21
22
|
agentExternalConfigReference?: never;
|
|
@@ -208,7 +209,7 @@ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-b
|
|
|
208
209
|
operations: JiraIssueWorkBreakdownAction;
|
|
209
210
|
}>;
|
|
210
211
|
export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
|
|
211
|
-
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
|
|
212
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
|
|
212
213
|
export type Callback = (payload: Payload) => void;
|
|
213
214
|
export type TopicEvents = {
|
|
214
215
|
[key in Topic]?: Array<{
|
|
@@ -16,6 +16,7 @@ export type PayloadCore<TKey extends string, TData = void> = {
|
|
|
16
16
|
export type MessageSendPayload = PayloadCore<'message-send', {
|
|
17
17
|
prompt: string;
|
|
18
18
|
}>;
|
|
19
|
+
export type ChatClosePayload = PayloadCore<'chat-close', {}>;
|
|
19
20
|
type TargetAgentParam = {
|
|
20
21
|
agentId: string;
|
|
21
22
|
agentExternalConfigReference?: never;
|
|
@@ -208,7 +209,7 @@ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-b
|
|
|
208
209
|
operations: JiraIssueWorkBreakdownAction;
|
|
209
210
|
}>;
|
|
210
211
|
export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
|
|
211
|
-
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
|
|
212
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
|
|
212
213
|
export type Callback = (payload: Payload) => void;
|
|
213
214
|
export type TopicEvents = {
|
|
214
215
|
[key in Topic]?: Array<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.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": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"atlassian": {
|
|
10
10
|
"team": "AI Mate",
|
|
11
|
-
"runReact18": true
|
|
11
|
+
"runReact18": true,
|
|
12
|
+
"singleton": true
|
|
12
13
|
},
|
|
13
14
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
14
15
|
"license": "Apache-2.0",
|