@atlaskit/rovo-triggers 2.8.0 → 2.10.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.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#136531](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/136531)
8
+ [`bf09e88468d38`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bf09e88468d38) -
9
+ Allow New Chat Payload to support ADF prompts.
10
+
11
+ ## 2.9.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#133407](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/133407)
16
+ [`9e51ca53f3752`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e51ca53f3752) -
17
+ Add JiraIssueWorkBreakdownAction type and support JiraIssueWorkBreakdownUIAction
18
+
3
19
  ## 2.8.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, } from './types';
2
+ export type { Payload, Callback, Topic, EditorContextPayloadData, BrowserContextPayloadData, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, AddStatusRovoPayload, DeleteStatusRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, } 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';
@@ -1,3 +1,4 @@
1
+ import type { DocNode } from '@atlaskit/adf-schema';
1
2
  export declare const Topics: {
2
3
  readonly AI_MATE: "ai-mate";
3
4
  };
@@ -26,7 +27,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
26
27
  mimeType?: 'text/markdown' | 'text/adf';
27
28
  };
28
29
  }>;
29
- prompt?: string;
30
+ prompt?: string | DocNode;
30
31
  sourceId?: string;
31
32
  agentId?: string;
32
33
  }>;
@@ -177,7 +178,19 @@ export type JiraWorkflowWizardAction = {
177
178
  export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
178
179
  operations: JiraWorkflowWizardAction[];
179
180
  }>;
180
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
181
+ type ChildIssues = {
182
+ summary: string;
183
+ description: string;
184
+ issueType: string;
185
+ };
186
+ export type JiraIssueWorkBreakdownAction = {
187
+ operationType: 'UPDATE';
188
+ childIssues: ChildIssues[];
189
+ };
190
+ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-breakdown-actions', {
191
+ operations: JiraIssueWorkBreakdownAction;
192
+ }>;
193
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload;
181
194
  export type Callback = (payload: Payload) => void;
182
195
  export type TopicEvents = {
183
196
  [key in Topic]?: Array<{
@@ -188,3 +201,4 @@ export type TopicEvents = {
188
201
  export type TopicEventQueue = {
189
202
  [key in Topic]?: Payload;
190
203
  };
204
+ export {};
@@ -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, } from './types';
2
+ export type { Payload, Callback, Topic, EditorContextPayloadData, BrowserContextPayloadData, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, AddStatusRovoPayload, DeleteStatusRovoPayload, JiraWorkflowWizardAction, JiraIssueWorkBreakdownAction, } 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';
@@ -1,3 +1,4 @@
1
+ import type { DocNode } from '@atlaskit/adf-schema';
1
2
  export declare const Topics: {
2
3
  readonly AI_MATE: "ai-mate";
3
4
  };
@@ -26,7 +27,7 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
26
27
  mimeType?: 'text/markdown' | 'text/adf';
27
28
  };
28
29
  }>;
29
- prompt?: string;
30
+ prompt?: string | DocNode;
30
31
  sourceId?: string;
31
32
  agentId?: string;
32
33
  }>;
@@ -177,7 +178,19 @@ export type JiraWorkflowWizardAction = {
177
178
  export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
178
179
  operations: JiraWorkflowWizardAction[];
179
180
  }>;
180
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
181
+ type ChildIssues = {
182
+ summary: string;
183
+ description: string;
184
+ issueType: string;
185
+ };
186
+ export type JiraIssueWorkBreakdownAction = {
187
+ operationType: 'UPDATE';
188
+ childIssues: ChildIssues[];
189
+ };
190
+ export type JiraIssueWorkBreakdownActionPayload = PayloadCore<'jira-issue-work-breakdown-actions', {
191
+ operations: JiraIssueWorkBreakdownAction;
192
+ }>;
193
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | JiraIssueWorkBreakdownActionPayload;
181
194
  export type Callback = (payload: Payload) => void;
182
195
  export type TopicEvents = {
183
196
  [key in Topic]?: Array<{
@@ -188,3 +201,4 @@ export type TopicEvents = {
188
201
  export type TopicEventQueue = {
189
202
  [key in Topic]?: Payload;
190
203
  };
204
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "2.8.0",
3
+ "version": "2.10.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": {
@@ -32,6 +32,7 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
+ "@atlaskit/adf-schema": "^47.6.0",
35
36
  "@babel/runtime": "^7.0.0",
36
37
  "bind-event-listener": "^3.0.0"
37
38
  },
@@ -42,7 +43,7 @@
42
43
  "@af/integration-testing": "^0.5.0",
43
44
  "@af/visual-regression": "^1.3.0",
44
45
  "@atlaskit/css": "^0.10.0",
45
- "@atlaskit/primitives": "^14.2.0",
46
+ "@atlaskit/primitives": "^14.3.0",
46
47
  "@atlaskit/ssr": "^0.4.0",
47
48
  "@atlaskit/visual-regression": "^0.10.0",
48
49
  "@atlassian/feature-flags-test-utils": "^0.3.0",