@atlaskit/rovo-triggers 2.12.0 → 2.14.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,21 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 2.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#159942](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/159942)
8
+ [`96479556c8a49`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/96479556c8a49) -
9
+ DXAI-477: Add new dashboard-insights-actions payload event to Rovo pubsub"
10
+
11
+ ## 2.13.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#155265](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/155265)
16
+ [`39e13851ab159`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39e13851ab159) -
17
+ Add the ability to take in and store workflow context from jira for the workflow builder agent
18
+
3
19
  ## 2.12.0
4
20
 
5
21
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
- export type { Payload, Callback, Topic, EditorContextPayloadData, BrowserContextPayloadData, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, AddStatusRovoPayload, DeleteStatusRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, } from './types';
2
+ export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, BrowserContextPayloadData, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, AddStatusRovoPayload, DeleteStatusRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
3
3
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
4
4
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
5
5
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -54,6 +54,9 @@ export type BrowserContextPayloadData = {
54
54
  canvasText?: string;
55
55
  } | undefined;
56
56
  };
57
+ export type WorkflowContextPayloadData = {
58
+ currentWorkflowDocument?: Record<string, unknown>;
59
+ };
57
60
  export type EditorContextPayload = PayloadCore<'editor-context-payload'> & {
58
61
  data: EditorContextPayloadData;
59
62
  };
@@ -182,8 +185,15 @@ export type JiraWorkflowWizardAction = {
182
185
  payload: DeleteStatusRovoPayload;
183
186
  };
184
187
  export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
185
- operations: JiraWorkflowWizardAction[];
188
+ operations?: JiraWorkflowWizardAction[];
189
+ currentWorkflowDocument?: Record<string, unknown>;
186
190
  }>;
191
+ export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
192
+ data?: DashboardInsightsActionsPayloadData;
193
+ };
194
+ export type DashboardInsightsActionsPayloadData = {
195
+ content: string;
196
+ } | undefined;
187
197
  type ChildIssues = {
188
198
  summary: string;
189
199
  description: string;
@@ -196,7 +206,7 @@ export type JiraIssueWorkBreakdownAction = {
196
206
  export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-breakdown-actions', {
197
207
  operations: JiraIssueWorkBreakdownAction;
198
208
  }>;
199
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload;
209
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload;
200
210
  export type Callback = (payload: Payload) => void;
201
211
  export type TopicEvents = {
202
212
  [key in Topic]?: Array<{
@@ -1,5 +1,5 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
- export type { Payload, Callback, Topic, EditorContextPayloadData, BrowserContextPayloadData, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, AddStatusRovoPayload, DeleteStatusRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, } from './types';
2
+ export type { Payload, Callback, Topic, WorkflowContextPayloadData, EditorContextPayloadData, BrowserContextPayloadData, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, AddStatusRovoPayload, DeleteStatusRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, DashboardInsightsActionsPayload, DashboardInsightsActionsPayloadData, } from './types';
3
3
  export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
4
4
  export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
5
5
  export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
@@ -54,6 +54,9 @@ export type BrowserContextPayloadData = {
54
54
  canvasText?: string;
55
55
  } | undefined;
56
56
  };
57
+ export type WorkflowContextPayloadData = {
58
+ currentWorkflowDocument?: Record<string, unknown>;
59
+ };
57
60
  export type EditorContextPayload = PayloadCore<'editor-context-payload'> & {
58
61
  data: EditorContextPayloadData;
59
62
  };
@@ -182,8 +185,15 @@ export type JiraWorkflowWizardAction = {
182
185
  payload: DeleteStatusRovoPayload;
183
186
  };
184
187
  export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
185
- operations: JiraWorkflowWizardAction[];
188
+ operations?: JiraWorkflowWizardAction[];
189
+ currentWorkflowDocument?: Record<string, unknown>;
186
190
  }>;
191
+ export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
192
+ data?: DashboardInsightsActionsPayloadData;
193
+ };
194
+ export type DashboardInsightsActionsPayloadData = {
195
+ content: string;
196
+ } | undefined;
187
197
  type ChildIssues = {
188
198
  summary: string;
189
199
  description: string;
@@ -196,7 +206,7 @@ export type JiraIssueWorkBreakdownAction = {
196
206
  export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-breakdown-actions', {
197
207
  operations: JiraIssueWorkBreakdownAction;
198
208
  }>;
199
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload;
209
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload | DashboardInsightsActionsPayload;
200
210
  export type Callback = (payload: Payload) => void;
201
211
  export type TopicEvents = {
202
212
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "2.12.0",
3
+ "version": "2.14.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": {