@atlaskit/rovo-triggers 7.3.0 → 7.4.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,14 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 7.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d2eb72209de52`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2eb72209de52) -
8
+ Thread ADF through the insert-prompt path so Rovo nudges can seed the chat input with full rich
9
+ content (skill pill, links, inline cards) instead of plain text. Adds optional dynamicPromptAdf on
10
+ ChatAction and promptAdf on InsertPromptPayload, gated behind rovo_insert_prompt_adf.
11
+
3
12
  ## 7.3.0
4
13
 
5
14
  ### Minor Changes
@@ -231,6 +231,12 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
231
231
  */
232
232
  export type InsertPromptPayload = PayloadCore<'insert-prompt', {
233
233
  prompt: string;
234
+ /**
235
+ * Optional complete ADF document to seed the chat input with instead of the plain-string
236
+ * `prompt`. When provided, rich nodes (skill pills, links, inline cards, mentions) are
237
+ * preserved rather than being flattened to text. `prompt` is still used as a fallback.
238
+ */
239
+ promptAdf?: DocNode;
234
240
  /**
235
241
  * Overrides the default auto-send behavior for prompts.
236
242
  * By default, prompts with backticks (`) are inserted as placeholders into the chat input
@@ -231,6 +231,12 @@ export type ForgeAppAuthFailure = PayloadCore<'forge-auth-failure', {
231
231
  */
232
232
  export type InsertPromptPayload = PayloadCore<'insert-prompt', {
233
233
  prompt: string;
234
+ /**
235
+ * Optional complete ADF document to seed the chat input with instead of the plain-string
236
+ * `prompt`. When provided, rich nodes (skill pills, links, inline cards, mentions) are
237
+ * preserved rather than being flattened to text. `prompt` is still used as a fallback.
238
+ */
239
+ promptAdf?: DocNode;
234
240
  /**
235
241
  * Overrides the default auto-send behavior for prompts.
236
242
  * By default, prompts with backticks (`) are inserted as placeholders into the chat input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "7.3.0",
3
+ "version": "7.4.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": {
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "atlaskit:src": "src/index.ts",
38
38
  "dependencies": {
39
- "@atlaskit/adf-schema": "^52.15.0",
39
+ "@atlaskit/adf-schema": "^52.16.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "bind-event-listener": "^3.0.0"