@atlaskit/rovo-triggers 2.3.0 → 2.5.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,22 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 2.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#130965](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130965)
8
+ [`224b0a23d3ee0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/224b0a23d3ee0) -
9
+ EDF-2621 Added open-browse-agent-sidebar payload type to open rovo chat with browse agent tab
10
+ active.
11
+
12
+ ## 2.4.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#127018](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127018)
17
+ [`a6014f18c038f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a6014f18c038f) -
18
+ Adding types for rovo trigger to invoke workflow editor actions via pub sub
19
+
3
20
  ## 2.3.0
4
21
 
5
22
  ### Minor Changes
@@ -53,6 +53,7 @@ export type BrowserContextPayload = PayloadCore<'browser-context-payload'> & {
53
53
  };
54
54
  export type ChatDraftPayload = PayloadCore<'chat-draft'>;
55
55
  export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
56
+ export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
56
57
  export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
57
58
  mode: 'insert' | 'replace';
58
59
  content: string;
@@ -87,7 +88,33 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
87
88
  */
88
89
  placeholderType?: 'person' | 'link' | 'generic';
89
90
  }>;
90
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | InsertPromptPayload;
91
+ export type TransitionId = string;
92
+ export type StatusId = string;
93
+ export type AddNewTransitionPayload = {
94
+ id: TransitionId;
95
+ name: string;
96
+ toRef?: StatusId;
97
+ links: {
98
+ fromRef: StatusId;
99
+ fromPort?: number;
100
+ toPort?: number;
101
+ }[];
102
+ };
103
+ export type AddRulePayload = {
104
+ id: TransitionId;
105
+ ruleId: string;
106
+ };
107
+ export type JiraWorkflowWizardAction = {
108
+ type: 'addTransition';
109
+ payload: AddNewTransitionPayload;
110
+ } | {
111
+ type: 'ADD_RULE';
112
+ payload: AddRulePayload;
113
+ };
114
+ export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
115
+ actions: JiraWorkflowWizardAction[];
116
+ }>;
117
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
91
118
  export type Callback = (payload: Payload) => void;
92
119
  export type TopicEvents = {
93
120
  [key in Topic]?: Array<{
@@ -53,6 +53,7 @@ export type BrowserContextPayload = PayloadCore<'browser-context-payload'> & {
53
53
  };
54
54
  export type ChatDraftPayload = PayloadCore<'chat-draft'>;
55
55
  export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
56
+ export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
56
57
  export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
57
58
  mode: 'insert' | 'replace';
58
59
  content: string;
@@ -87,7 +88,33 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
87
88
  */
88
89
  placeholderType?: 'person' | 'link' | 'generic';
89
90
  }>;
90
- export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | InsertPromptPayload;
91
+ export type TransitionId = string;
92
+ export type StatusId = string;
93
+ export type AddNewTransitionPayload = {
94
+ id: TransitionId;
95
+ name: string;
96
+ toRef?: StatusId;
97
+ links: {
98
+ fromRef: StatusId;
99
+ fromPort?: number;
100
+ toPort?: number;
101
+ }[];
102
+ };
103
+ export type AddRulePayload = {
104
+ id: TransitionId;
105
+ ruleId: string;
106
+ };
107
+ export type JiraWorkflowWizardAction = {
108
+ type: 'addTransition';
109
+ payload: AddNewTransitionPayload;
110
+ } | {
111
+ type: 'ADD_RULE';
112
+ payload: AddRulePayload;
113
+ };
114
+ export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
115
+ actions: JiraWorkflowWizardAction[];
116
+ }>;
117
+ export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
91
118
  export type Callback = (payload: Payload) => void;
92
119
  export type TopicEvents = {
93
120
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "2.3.0",
3
+ "version": "2.5.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": {
@@ -42,7 +42,7 @@
42
42
  "@af/integration-testing": "^0.5.0",
43
43
  "@af/visual-regression": "^1.3.0",
44
44
  "@atlaskit/css": "^0.10.0",
45
- "@atlaskit/primitives": "^14.1.0",
45
+ "@atlaskit/primitives": "^14.2.0",
46
46
  "@atlaskit/ssr": "^0.4.0",
47
47
  "@atlaskit/visual-regression": "^0.10.0",
48
48
  "@atlassian/feature-flags-test-utils": "^0.3.0",