@atlaskit/rovo-triggers 5.18.0 → 5.20.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,19 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 5.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b60a9e8f66f3b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b60a9e8f66f3b) -
8
+ [ux] Add new action to redirect user to landing page and auto trigger prompt
9
+
10
+ ## 5.19.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`88e83be9c053a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88e83be9c053a) -
15
+ [ux] add 'Add to dashboard' button for rovo charts
16
+
3
17
  ## 5.18.0
4
18
 
5
19
  ### Minor Changes
package/dist/cjs/types.js CHANGED
@@ -7,7 +7,8 @@ exports.Topics = void 0;
7
7
  var Topics = exports.Topics = {
8
8
  AI_MATE: 'ai-mate',
9
9
  AI_MATE_ACTIONS: 'ai-mate-actions',
10
- AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts'
10
+ AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts',
11
+ AVP: 'avp'
11
12
  };
12
13
 
13
14
  // Can only specify either `agentId` or `agentExternalConfigReference`, not both
@@ -41,4 +42,13 @@ var Topics = exports.Topics = {
41
42
  * - Used to programmatically open a specific action in the conversation actions list
42
43
  * - The action screen must be already open, and the actions list populated
43
44
  * - The action must exist in the current actions list
45
+ */
46
+
47
+ /**
48
+ * Result shape when a chart is added to an AVP dashboard.
49
+ * Matches the return type of ChartApiService.addChartToDashboard().
50
+ */
51
+
52
+ /**
53
+ * Fired when a chart is added to an AVP dashboard from a Rovo generated chart
44
54
  */
@@ -1,7 +1,8 @@
1
1
  export const Topics = {
2
2
  AI_MATE: 'ai-mate',
3
3
  AI_MATE_ACTIONS: 'ai-mate-actions',
4
- AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts'
4
+ AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts',
5
+ AVP: 'avp'
5
6
  };
6
7
 
7
8
  // Can only specify either `agentId` or `agentExternalConfigReference`, not both
@@ -35,4 +36,13 @@ export const Topics = {
35
36
  * - Used to programmatically open a specific action in the conversation actions list
36
37
  * - The action screen must be already open, and the actions list populated
37
38
  * - The action must exist in the current actions list
39
+ */
40
+
41
+ /**
42
+ * Result shape when a chart is added to an AVP dashboard.
43
+ * Matches the return type of ChartApiService.addChartToDashboard().
44
+ */
45
+
46
+ /**
47
+ * Fired when a chart is added to an AVP dashboard from a Rovo generated chart
38
48
  */
package/dist/esm/types.js CHANGED
@@ -1,7 +1,8 @@
1
1
  export var Topics = {
2
2
  AI_MATE: 'ai-mate',
3
3
  AI_MATE_ACTIONS: 'ai-mate-actions',
4
- AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts'
4
+ AI_MATE_INSERT_URLS: 'ai-mate-chat-inserts',
5
+ AVP: 'avp'
5
6
  };
6
7
 
7
8
  // Can only specify either `agentId` or `agentExternalConfigReference`, not both
@@ -35,4 +36,13 @@ export var Topics = {
35
36
  * - Used to programmatically open a specific action in the conversation actions list
36
37
  * - The action screen must be already open, and the actions list populated
37
38
  * - The action must exist in the current actions list
39
+ */
40
+
41
+ /**
42
+ * Result shape when a chart is added to an AVP dashboard.
43
+ * Matches the return type of ChartApiService.addChartToDashboard().
44
+ */
45
+
46
+ /**
47
+ * Fired when a chart is added to an AVP dashboard from a Rovo generated chart
38
48
  */
@@ -34,4 +34,10 @@ export type UpdateAgentConfigurationPayload = PayloadCore<'agent-configuration-u
34
34
  ari: string;
35
35
  };
36
36
  };
37
+ export type StudioLandingPageRedirectPayload = PayloadCore<'studio-landing-page-redirect'> & {
38
+ data: {
39
+ ari: string;
40
+ prompt: string;
41
+ };
42
+ };
37
43
  export {};
@@ -1,12 +1,13 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
2
  import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
3
3
  import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
4
- import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload, StudioAutomationBuildUpdatePayload, UpdateAgentConfigurationPayload } from './common/types/solution-architect';
4
+ import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload, StudioAutomationBuildUpdatePayload, StudioLandingPageRedirectPayload, UpdateAgentConfigurationPayload } from './common/types/solution-architect';
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
8
  readonly AI_MATE_ACTIONS: "ai-mate-actions";
9
9
  readonly AI_MATE_INSERT_URLS: "ai-mate-chat-inserts";
10
+ readonly AVP: "avp";
10
11
  };
11
12
  export type Topic = (typeof Topics)[keyof typeof Topics];
12
13
  export type PayloadCore<TKey extends string, TData = void> = {
@@ -176,6 +177,18 @@ export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
176
177
  export type SelectActionPayload = PayloadCore<'select-action', {
177
178
  actionId: string;
178
179
  }>;
180
+ /**
181
+ * Result shape when a chart is added to an AVP dashboard.
182
+ * Matches the return type of ChartApiService.addChartToDashboard().
183
+ */
184
+ export type AddChartToDashboardResult = {
185
+ chart: Record<string, unknown> | null;
186
+ canvasLayout: Record<string, unknown> | null;
187
+ };
188
+ /**
189
+ * Fired when a chart is added to an AVP dashboard from a Rovo generated chart
190
+ */
191
+ export type AddChartToDashboardPayload = PayloadCore<'add-chart-to-dashboard', AddChartToDashboardResult>;
179
192
  export type TransitionId = string;
180
193
  export type StatusId = string;
181
194
  export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'UNDEFINED';
@@ -318,7 +331,7 @@ export type OpenChatDebugModalPayload = PayloadCore<'open-chat-debug-modal'>;
318
331
  export type OpenChatFeedbackModalPayload = PayloadCore<'open-chat-feedback-modal', {
319
332
  answerQuality: 'good' | 'bad' | 'general';
320
333
  }>;
321
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload;
334
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload;
322
335
  export type Callback = (payload: Payload) => void;
323
336
  export type TopicEvents = {
324
337
  [key in Topic]?: Array<{
@@ -34,4 +34,10 @@ export type UpdateAgentConfigurationPayload = PayloadCore<'agent-configuration-u
34
34
  ari: string;
35
35
  };
36
36
  };
37
+ export type StudioLandingPageRedirectPayload = PayloadCore<'studio-landing-page-redirect'> & {
38
+ data: {
39
+ ari: string;
40
+ prompt: string;
41
+ };
42
+ };
37
43
  export {};
@@ -1,12 +1,13 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
2
  import type { SolutionDraftAgentUpdatePayload } from './common/types/agent';
3
3
  import type { JsmJourneyBuilderActionsPayload } from './common/types/jsm-journey-builder';
4
- import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload, StudioAutomationBuildUpdatePayload, UpdateAgentConfigurationPayload } from './common/types/solution-architect';
4
+ import type { SolutionArchitectAgentActivationPayload, SolutionArchitectHandoffPayload, SolutionPlanStateUpdatePayload, StudioAutomationBuildUpdatePayload, StudioLandingPageRedirectPayload, UpdateAgentConfigurationPayload } from './common/types/solution-architect';
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
8
  readonly AI_MATE_ACTIONS: "ai-mate-actions";
9
9
  readonly AI_MATE_INSERT_URLS: "ai-mate-chat-inserts";
10
+ readonly AVP: "avp";
10
11
  };
11
12
  export type Topic = (typeof Topics)[keyof typeof Topics];
12
13
  export type PayloadCore<TKey extends string, TData = void> = {
@@ -176,6 +177,18 @@ export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
176
177
  export type SelectActionPayload = PayloadCore<'select-action', {
177
178
  actionId: string;
178
179
  }>;
180
+ /**
181
+ * Result shape when a chart is added to an AVP dashboard.
182
+ * Matches the return type of ChartApiService.addChartToDashboard().
183
+ */
184
+ export type AddChartToDashboardResult = {
185
+ chart: Record<string, unknown> | null;
186
+ canvasLayout: Record<string, unknown> | null;
187
+ };
188
+ /**
189
+ * Fired when a chart is added to an AVP dashboard from a Rovo generated chart
190
+ */
191
+ export type AddChartToDashboardPayload = PayloadCore<'add-chart-to-dashboard', AddChartToDashboardResult>;
179
192
  export type TransitionId = string;
180
193
  export type StatusId = string;
181
194
  export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'UNDEFINED';
@@ -318,7 +331,7 @@ export type OpenChatDebugModalPayload = PayloadCore<'open-chat-debug-modal'>;
318
331
  export type OpenChatFeedbackModalPayload = PayloadCore<'open-chat-feedback-modal', {
319
332
  answerQuality: 'good' | 'bad' | 'general';
320
333
  }>;
321
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload;
334
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | JiraCreateContextPayload | DatabaseContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | SelectActionPayload | AddChartToDashboardPayload | GenericExternalActionErrorPayload | OpenChatDebugModalPayload | OpenChatFeedbackModalPayload | JsmJourneyBuilderActionsPayload | StudioAutomationBuildUpdatePayload | SolutionArchitectHandoffPayload | SolutionPlanStateUpdatePayload | SolutionDraftAgentUpdatePayload | SolutionArchitectAgentActivationPayload | UpdateAgentConfigurationPayload | StudioLandingPageRedirectPayload;
322
335
  export type Callback = (payload: Payload) => void;
323
336
  export type TopicEvents = {
324
337
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "5.18.0",
3
+ "version": "5.20.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": {