@atlaskit/rovo-triggers 5.7.0 → 5.8.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 +7 -0
- package/dist/cjs/types.js +7 -0
- package/dist/es2019/types.js +7 -0
- package/dist/esm/types.js +7 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +10 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 5.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7b27558330c14`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b27558330c14) -
|
|
8
|
+
Adds a pub-sub event to trigger a conversation action from outside Rovo
|
|
9
|
+
|
|
3
10
|
## 5.7.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/cjs/types.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Topics = void 0;
|
|
7
7
|
var Topics = exports.Topics = {
|
|
8
8
|
AI_MATE: 'ai-mate',
|
|
9
|
+
AI_MATE_ACTIONS: 'ai-mate-actions',
|
|
9
10
|
AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts'
|
|
10
11
|
};
|
|
11
12
|
|
|
@@ -29,4 +30,10 @@ var Topics = exports.Topics = {
|
|
|
29
30
|
* - URLs are deduplicated against existing content
|
|
30
31
|
* - Formatted as inline card nodes in the editor
|
|
31
32
|
* - Supports multiple card types (Jira, Confluence, Trello, etc.)
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/** Selects a conversation action by ID
|
|
36
|
+
* - Used to programmatically open a specific action in the conversation actions list
|
|
37
|
+
* - The action screen must be already open, and the actions list populated
|
|
38
|
+
* - The action must exist in the current actions list
|
|
32
39
|
*/
|
package/dist/es2019/types.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const Topics = {
|
|
2
2
|
AI_MATE: 'ai-mate',
|
|
3
|
+
AI_MATE_ACTIONS: 'ai-mate-actions',
|
|
3
4
|
AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts'
|
|
4
5
|
};
|
|
5
6
|
|
|
@@ -23,4 +24,10 @@ export const Topics = {
|
|
|
23
24
|
* - URLs are deduplicated against existing content
|
|
24
25
|
* - Formatted as inline card nodes in the editor
|
|
25
26
|
* - Supports multiple card types (Jira, Confluence, Trello, etc.)
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/** Selects a conversation action by ID
|
|
30
|
+
* - Used to programmatically open a specific action in the conversation actions list
|
|
31
|
+
* - The action screen must be already open, and the actions list populated
|
|
32
|
+
* - The action must exist in the current actions list
|
|
26
33
|
*/
|
package/dist/esm/types.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export var Topics = {
|
|
2
2
|
AI_MATE: 'ai-mate',
|
|
3
|
+
AI_MATE_ACTIONS: 'ai-mate-actions',
|
|
3
4
|
AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts'
|
|
4
5
|
};
|
|
5
6
|
|
|
@@ -23,4 +24,10 @@ export var Topics = {
|
|
|
23
24
|
* - URLs are deduplicated against existing content
|
|
24
25
|
* - Formatted as inline card nodes in the editor
|
|
25
26
|
* - Supports multiple card types (Jira, Confluence, Trello, etc.)
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/** Selects a conversation action by ID
|
|
30
|
+
* - Used to programmatically open a specific action in the conversation actions list
|
|
31
|
+
* - The action screen must be already open, and the actions list populated
|
|
32
|
+
* - The action must exist in the current actions list
|
|
26
33
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
|
-
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, DeleteTransitionRovoPayloadOld, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, OpenChatDebugModalPayload, OpenChatFeedbackModalPayload, } from './types';
|
|
2
|
+
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, DeleteTransitionRovoPayloadOld, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, OpenChatDebugModalPayload, OpenChatFeedbackModalPayload, SelectActionPayload, } from './types';
|
|
3
3
|
export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, StudioAutomationBuildUpdatePayload, } from './common/types/solution-architect';
|
|
4
4
|
export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
|
|
5
5
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffP
|
|
|
5
5
|
import type { ChatContextPayload } from './common/utils/chat-context/types';
|
|
6
6
|
export declare const Topics: {
|
|
7
7
|
readonly AI_MATE: "ai-mate";
|
|
8
|
+
readonly AI_MATE_ACTIONS: "ai-mate-actions";
|
|
8
9
|
readonly AI_MATE_INSERT_URLS: "ai-mate-chat-inserts";
|
|
9
10
|
};
|
|
10
11
|
export type Topic = (typeof Topics)[keyof typeof Topics];
|
|
@@ -140,6 +141,14 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
140
141
|
export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
|
|
141
142
|
urls: string[];
|
|
142
143
|
}>;
|
|
144
|
+
/** Selects a conversation action by ID
|
|
145
|
+
* - Used to programmatically open a specific action in the conversation actions list
|
|
146
|
+
* - The action screen must be already open, and the actions list populated
|
|
147
|
+
* - The action must exist in the current actions list
|
|
148
|
+
*/
|
|
149
|
+
export type SelectActionPayload = PayloadCore<'select-action', {
|
|
150
|
+
actionId: string;
|
|
151
|
+
}>;
|
|
143
152
|
export type TransitionId = string;
|
|
144
153
|
export type StatusId = string;
|
|
145
154
|
export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'UNDEFINED';
|
|
@@ -275,7 +284,7 @@ export type OpenChatDebugModalPayload = PayloadCore<'open-chat-debug-modal'>;
|
|
|
275
284
|
export type OpenChatFeedbackModalPayload = PayloadCore<'open-chat-feedback-modal', {
|
|
276
285
|
answerQuality: 'good' | 'bad' | 'general';
|
|
277
286
|
}>;
|
|
278
|
-
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload;
|
|
287
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload;
|
|
279
288
|
export type Callback = (payload: Payload) => void;
|
|
280
289
|
export type TopicEvents = {
|
|
281
290
|
[key in Topic]?: Array<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
|
-
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, DeleteTransitionRovoPayloadOld, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, OpenChatDebugModalPayload, OpenChatFeedbackModalPayload, } from './types';
|
|
2
|
+
export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, WhiteboardContextPayloadData, BrowserContextPayloadData, DatabaseContextPayloadData, AddStatusRovoPayload, UpdateStatusRovoPayload, DeleteStatusRovoPayload, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, DeleteTransitionRovoPayloadOld, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, JiraWorkflowWizardAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, OpenChatDebugModalPayload, OpenChatFeedbackModalPayload, SelectActionPayload, } from './types';
|
|
3
3
|
export type { SolutionArchitectHandoffPayload, NonAppHandoffPayload, AppHandoffPayload, SolutionArchitectAgentActivationPayload, StudioAutomationBuildUpdatePayload, } from './common/types/solution-architect';
|
|
4
4
|
export type { JsmJourneyBuilderActionsPayload, JsmJourneyBuilderAgentAction, } from './common/types/jsm-journey-builder';
|
|
5
5
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
@@ -5,6 +5,7 @@ import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffP
|
|
|
5
5
|
import type { ChatContextPayload } from './common/utils/chat-context/types';
|
|
6
6
|
export declare const Topics: {
|
|
7
7
|
readonly AI_MATE: "ai-mate";
|
|
8
|
+
readonly AI_MATE_ACTIONS: "ai-mate-actions";
|
|
8
9
|
readonly AI_MATE_INSERT_URLS: "ai-mate-chat-inserts";
|
|
9
10
|
};
|
|
10
11
|
export type Topic = (typeof Topics)[keyof typeof Topics];
|
|
@@ -140,6 +141,14 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
140
141
|
export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
|
|
141
142
|
urls: string[];
|
|
142
143
|
}>;
|
|
144
|
+
/** Selects a conversation action by ID
|
|
145
|
+
* - Used to programmatically open a specific action in the conversation actions list
|
|
146
|
+
* - The action screen must be already open, and the actions list populated
|
|
147
|
+
* - The action must exist in the current actions list
|
|
148
|
+
*/
|
|
149
|
+
export type SelectActionPayload = PayloadCore<'select-action', {
|
|
150
|
+
actionId: string;
|
|
151
|
+
}>;
|
|
143
152
|
export type TransitionId = string;
|
|
144
153
|
export type StatusId = string;
|
|
145
154
|
export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'UNDEFINED';
|
|
@@ -275,7 +284,7 @@ export type OpenChatDebugModalPayload = PayloadCore<'open-chat-debug-modal'>;
|
|
|
275
284
|
export type OpenChatFeedbackModalPayload = PayloadCore<'open-chat-feedback-modal', {
|
|
276
285
|
answerQuality: 'good' | 'bad' | 'general';
|
|
277
286
|
}>;
|
|
278
|
-
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload;
|
|
287
|
+
export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload;
|
|
279
288
|
export type Callback = (payload: Payload) => void;
|
|
280
289
|
export type TopicEvents = {
|
|
281
290
|
[key in Topic]?: Array<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.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": {
|