@atlaskit/rovo-triggers 3.17.0 → 4.0.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,32 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`7df1d25b57424`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7df1d25b57424) -
8
+ Rovo types have been updated for generic external action errors for consistent naming.
9
+
10
+ ## 3.18.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`28b001c5985f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/28b001c5985f4) -
15
+ Introduced:
16
+ - URL validation utility with pattern matching (wildcards \* and \*\*)
17
+ - Add promptInputDroppableUr config for configurable URL validation
18
+ - Unit tests for URL validation
19
+
20
+ Changed:
21
+ - Simplified useUrlInsertion hook (removed type-specific logic)
22
+ - Updated FileUploadDropzone to validate URLs using new config
23
+ - Event payload: insert-urls → insert-urls-into-prompt-input
24
+ - Removed urlType field from event data structure
25
+
26
+ - [`15e36868e69c6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15e36868e69c6) -
27
+ [ux] Introduce a capability for Rovo to listen to generic external action errors fired to surface
28
+ an error message.
29
+
3
30
  ## 3.17.0
4
31
 
5
32
  ### Minor Changes
@@ -130,9 +130,8 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
130
130
  * - Formatted as inline card nodes in the editor
131
131
  * - Supports multiple card types (Jira, Confluence, Trello, etc.)
132
132
  */
133
- export type InsertUrlsPayload = PayloadCore<'insert-urls', {
133
+ export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
134
134
  urls: string[];
135
- urlType: 'trello/card';
136
135
  }>;
137
136
  export type TransitionId = string;
138
137
  export type StatusId = string;
@@ -232,9 +231,14 @@ export type JiraWorkflowWizardAction = {
232
231
  payload: DeleteRuleRovoPayload;
233
232
  };
234
233
  export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
234
+ invocationId?: string;
235
235
  operations?: JiraWorkflowWizardAction[];
236
236
  currentWorkflowDocument?: Record<string, unknown>;
237
237
  }>;
238
+ export type GenericExternalActionErrorPayload = PayloadCore<'generic-external-action-error', {
239
+ invocationId: string;
240
+ errors: string[];
241
+ }>;
238
242
  export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
239
243
  data?: DashboardInsightsActionsPayloadData;
240
244
  };
@@ -242,7 +246,7 @@ export type DashboardInsightsActionsPayloadData = {
242
246
  content: string;
243
247
  } | undefined;
244
248
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
245
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload;
249
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload;
246
250
  export type Callback = (payload: Payload) => void;
247
251
  export type TopicEvents = {
248
252
  [key in Topic]?: Array<{
@@ -130,9 +130,8 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
130
130
  * - Formatted as inline card nodes in the editor
131
131
  * - Supports multiple card types (Jira, Confluence, Trello, etc.)
132
132
  */
133
- export type InsertUrlsPayload = PayloadCore<'insert-urls', {
133
+ export type InsertUrlsPayload = PayloadCore<'insert-urls-into-prompt-input', {
134
134
  urls: string[];
135
- urlType: 'trello/card';
136
135
  }>;
137
136
  export type TransitionId = string;
138
137
  export type StatusId = string;
@@ -232,9 +231,14 @@ export type JiraWorkflowWizardAction = {
232
231
  payload: DeleteRuleRovoPayload;
233
232
  };
234
233
  export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
234
+ invocationId?: string;
235
235
  operations?: JiraWorkflowWizardAction[];
236
236
  currentWorkflowDocument?: Record<string, unknown>;
237
237
  }>;
238
+ export type GenericExternalActionErrorPayload = PayloadCore<'generic-external-action-error', {
239
+ invocationId: string;
240
+ errors: string[];
241
+ }>;
238
242
  export type DashboardInsightsActionsPayload = PayloadCore<'dashboard-insights-actions'> & {
239
243
  data?: DashboardInsightsActionsPayloadData;
240
244
  };
@@ -242,7 +246,7 @@ export type DashboardInsightsActionsPayloadData = {
242
246
  content: string;
243
247
  } | undefined;
244
248
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
245
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload;
249
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload | GenericExternalActionErrorPayload;
246
250
  export type Callback = (payload: Payload) => void;
247
251
  export type TopicEvents = {
248
252
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "3.17.0",
3
+ "version": "4.0.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": {