@atlaskit/rovo-triggers 2.13.0 → 2.15.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,25 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 2.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#168884](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/168884)
8
+ [`62d1dcae72ca1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/62d1dcae72ca1) -
9
+ Now the consumers of Rava chat that launch chat with URL mostly for full screen experience can
10
+ provide a new url param `rovoChatInitiator` to enable `initiator` logging in message sent and
11
+ agentMessage received events. Refer this
12
+ [doc](https://hello.atlassian.net/wiki/spaces/AA6/pages/5413278975/RFC-009+Rovo+Chat+Initiator+Tracking)
13
+ for more details.
14
+
15
+ ## 2.14.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#159942](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/159942)
20
+ [`96479556c8a49`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/96479556c8a49) -
21
+ DXAI-477: Add new dashboard-insights-actions payload event to Rovo pubsub"
22
+
3
23
  ## 2.13.0
4
24
 
5
25
  ### Minor Changes
@@ -6,6 +6,7 @@ export interface BaseRovoChatParams {
6
6
  prompt: string;
7
7
  cloudId: string;
8
8
  triggerOpen: boolean;
9
+ initiator: string;
9
10
  }
10
11
  export type ValidPrefix = 'rovoChat';
11
12
  export type ValidParam = keyof BaseRovoChatParams;
@@ -1,5 +1,5 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
- export type { Payload, Callback, Topic, WorkflowContextPayloadData, 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';
@@ -188,6 +188,12 @@ export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard
188
188
  operations?: JiraWorkflowWizardAction[];
189
189
  currentWorkflowDocument?: Record<string, unknown>;
190
190
  }>;
191
+ export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
192
+ data?: DashboardInsightsActionsPayloadData;
193
+ };
194
+ export type DashboardInsightsActionsPayloadData = {
195
+ content: string;
196
+ } | undefined;
191
197
  type ChildIssues = {
192
198
  summary: string;
193
199
  description: string;
@@ -200,7 +206,7 @@ export type JiraIssueWorkBreakdownAction = {
200
206
  export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-breakdown-actions', {
201
207
  operations: JiraIssueWorkBreakdownAction;
202
208
  }>;
203
- 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;
204
210
  export type Callback = (payload: Payload) => void;
205
211
  export type TopicEvents = {
206
212
  [key in Topic]?: Array<{
@@ -6,6 +6,7 @@ export interface BaseRovoChatParams {
6
6
  prompt: string;
7
7
  cloudId: string;
8
8
  triggerOpen: boolean;
9
+ initiator: string;
9
10
  }
10
11
  export type ValidPrefix = 'rovoChat';
11
12
  export type ValidParam = keyof BaseRovoChatParams;
@@ -1,5 +1,5 @@
1
1
  export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
2
- export type { Payload, Callback, Topic, WorkflowContextPayloadData, 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';
@@ -188,6 +188,12 @@ export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard
188
188
  operations?: JiraWorkflowWizardAction[];
189
189
  currentWorkflowDocument?: Record<string, unknown>;
190
190
  }>;
191
+ export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
192
+ data?: DashboardInsightsActionsPayloadData;
193
+ };
194
+ export type DashboardInsightsActionsPayloadData = {
195
+ content: string;
196
+ } | undefined;
191
197
  type ChildIssues = {
192
198
  summary: string;
193
199
  description: string;
@@ -200,7 +206,7 @@ export type JiraIssueWorkBreakdownAction = {
200
206
  export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-breakdown-actions', {
201
207
  operations: JiraIssueWorkBreakdownAction;
202
208
  }>;
203
- 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;
204
210
  export type Callback = (payload: Payload) => void;
205
211
  export type TopicEvents = {
206
212
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "2.13.0",
3
+ "version": "2.15.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": {