@atlaskit/rovo-triggers 3.16.0 → 3.17.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
+ ## 3.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8c79d013d1465`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8c79d013d1465) -
8
+ [ux] Added Drag-and-Drop URL Support
9
+
10
+ Added ability to drag and drop card URLs (e.g., Trello cards) directly into chat input
11
+ - URLs are automatically formatted as inline cards
12
+ - Duplicate URLs are automatically detected and prevented
13
+ - Proper spacing and formatting maintained between multiple cards
14
+
15
+ Enhanced
16
+ - File upload dropzone now supports both file attachments and URL card drops
17
+ - Chat input editor can now receive URLs from external sources via drag-and-drop
18
+
3
19
  ## 3.16.0
4
20
 
5
21
  ### Minor Changes
package/dist/cjs/types.js CHANGED
@@ -22,4 +22,10 @@ var Topics = exports.Topics = {
22
22
  /** Inserts a prompt into the chat input - either:
23
23
  * - A prompt without a placeholder - sends as a message
24
24
  * - A prompt with a placeholder - inserts the prompt into the chat input
25
+ */
26
+
27
+ /** Inserts URLs as inline nodes into the chat input
28
+ * - URLs are deduplicated against existing content
29
+ * - Formatted as inline card nodes in the editor
30
+ * - Supports multiple card types (Jira, Confluence, Trello, etc.)
25
31
  */
@@ -16,4 +16,10 @@ export const Topics = {
16
16
  /** Inserts a prompt into the chat input - either:
17
17
  * - A prompt without a placeholder - sends as a message
18
18
  * - A prompt with a placeholder - inserts the prompt into the chat input
19
+ */
20
+
21
+ /** Inserts URLs as inline nodes into the chat input
22
+ * - URLs are deduplicated against existing content
23
+ * - Formatted as inline card nodes in the editor
24
+ * - Supports multiple card types (Jira, Confluence, Trello, etc.)
19
25
  */
package/dist/esm/types.js CHANGED
@@ -16,4 +16,10 @@ export var Topics = {
16
16
  /** Inserts a prompt into the chat input - either:
17
17
  * - A prompt without a placeholder - sends as a message
18
18
  * - A prompt with a placeholder - inserts the prompt into the chat input
19
+ */
20
+
21
+ /** Inserts URLs as inline nodes into the chat input
22
+ * - URLs are deduplicated against existing content
23
+ * - Formatted as inline card nodes in the editor
24
+ * - Supports multiple card types (Jira, Confluence, Trello, etc.)
19
25
  */
@@ -125,6 +125,15 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
125
125
  */
126
126
  placeholderType?: 'person' | 'link' | 'generic';
127
127
  }>;
128
+ /** Inserts URLs as inline nodes into the chat input
129
+ * - URLs are deduplicated against existing content
130
+ * - Formatted as inline card nodes in the editor
131
+ * - Supports multiple card types (Jira, Confluence, Trello, etc.)
132
+ */
133
+ export type InsertUrlsPayload = PayloadCore<'insert-urls', {
134
+ urls: string[];
135
+ urlType: 'trello/card';
136
+ }>;
128
137
  export type TransitionId = string;
129
138
  export type StatusId = string;
130
139
  export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'UNDEFINED';
@@ -233,7 +242,7 @@ export type DashboardInsightsActionsPayloadData = {
233
242
  content: string;
234
243
  } | undefined;
235
244
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
236
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
245
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload;
237
246
  export type Callback = (payload: Payload) => void;
238
247
  export type TopicEvents = {
239
248
  [key in Topic]?: Array<{
@@ -125,6 +125,15 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
125
125
  */
126
126
  placeholderType?: 'person' | 'link' | 'generic';
127
127
  }>;
128
+ /** Inserts URLs as inline nodes into the chat input
129
+ * - URLs are deduplicated against existing content
130
+ * - Formatted as inline card nodes in the editor
131
+ * - Supports multiple card types (Jira, Confluence, Trello, etc.)
132
+ */
133
+ export type InsertUrlsPayload = PayloadCore<'insert-urls', {
134
+ urls: string[];
135
+ urlType: 'trello/card';
136
+ }>;
128
137
  export type TransitionId = string;
129
138
  export type StatusId = string;
130
139
  export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE' | 'UNDEFINED';
@@ -233,7 +242,7 @@ export type DashboardInsightsActionsPayloadData = {
233
242
  content: string;
234
243
  } | undefined;
235
244
  export type SetChatContextPayload = PayloadCore<'set-message-context', ChatContextPayload>;
236
- export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload;
245
+ export type Payload = MessageSendPayload | ChatClosePayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | WhiteboardContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload | DashboardInsightsActionsPayload | SetChatContextPayload | InsertUrlsPayload;
237
246
  export type Callback = (payload: Payload) => void;
238
247
  export type TopicEvents = {
239
248
  [key in Topic]?: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "3.16.0",
3
+ "version": "3.17.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": {