@atlaskit/rovo-triggers 3.17.0 → 3.18.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
+ ## 3.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`28b001c5985f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/28b001c5985f4) -
8
+ Introduced:
9
+ - URL validation utility with pattern matching (wildcards \* and \*\*)
10
+ - Add promptInputDroppableUr config for configurable URL validation
11
+ - Unit tests for URL validation
12
+
13
+ Changed:
14
+ - Simplified useUrlInsertion hook (removed type-specific logic)
15
+ - Updated FileUploadDropzone to validate URLs using new config
16
+ - Event payload: insert-urls → insert-urls-into-prompt-input
17
+ - Removed urlType field from event data structure
18
+
19
+ - [`15e36868e69c6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15e36868e69c6) -
20
+ [ux] Introduce a capability for Rovo to listen to generic external action errors fired to surface
21
+ an error message.
22
+
3
23
  ## 3.17.0
4
24
 
5
25
  ### 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 GenericActionErrorPayload = PayloadCore<'generic-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 | GenericActionErrorPayload;
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 GenericActionErrorPayload = PayloadCore<'generic-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 | GenericActionErrorPayload;
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": "3.18.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": {