@atlaskit/rovo-triggers 9.8.1 → 9.9.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 +45 -0
- package/dist/types/types.d.ts +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 9.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`995c1ca2d4166`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/995c1ca2d4166) -
|
|
8
|
+
[ux] Publish Lumina insert/replace responses as structured editor ADF behind
|
|
9
|
+
`kd_lumina_insert_replace_response_as_adf` so Smart Link lists and profile-card mentions survive
|
|
10
|
+
insertion.
|
|
11
|
+
|
|
12
|
+
Populate bare people mention labels in editor-insert ADF fragments so profile-card mentions render
|
|
13
|
+
with their visible names.
|
|
14
|
+
|
|
15
|
+
`@atlaskit/rovo-triggers` now exposes optional rich ADF content on
|
|
16
|
+
`EditorSuggestionPayload.data.richContent`. Consumers can prefer the ADF fragment when present and
|
|
17
|
+
fall back to markdown otherwise:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import type { EditorSuggestionPayload } from '@atlaskit/rovo-triggers';
|
|
21
|
+
|
|
22
|
+
function handleEditorSuggestion(payload: EditorSuggestionPayload) {
|
|
23
|
+
if (payload.data.richContent?.type === 'text/adf') {
|
|
24
|
+
return payload.data.richContent.content;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return payload.data.content;
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 9.8.2
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- [`3459b8faed8ba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3459b8faed8ba) -
|
|
36
|
+
Clean up the shipped `rovo_chat_3p_app_discovery_m1_experiment` and the shadowed
|
|
37
|
+
`post-office_rovo-chat_thinking-deeper` menu path. This removes the obsolete ChatModeMenu UI, its
|
|
38
|
+
popup variants, and its spotlight code.
|
|
39
|
+
|
|
40
|
+
Breaking changes:
|
|
41
|
+
- Remove `changeChatModeMenuAlignmentToBottomStart` from `RovoChatPromptInput`. The `ChatModeMenu`
|
|
42
|
+
implementation it configured has been removed.
|
|
43
|
+
|
|
44
|
+
`showChatModeMenu`, `shouldRenderChatModeMenusInPortal`, `customSlotBeforeChatModeMenu`, and
|
|
45
|
+
`UIConfig.elements.chatModeMenuButton` remain supported. They now apply to the surviving source
|
|
46
|
+
and reasoning footer controls.
|
|
47
|
+
|
|
3
48
|
## 9.8.1
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -278,10 +278,16 @@ export type ChatSmartLink3PPostAuthLaunchPayload = PayloadCore<'chat-smartlink-3
|
|
|
278
278
|
}>;
|
|
279
279
|
export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
|
|
280
280
|
export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
|
|
281
|
+
export type EditorSuggestionRichContent = {
|
|
282
|
+
type: 'text/adf';
|
|
283
|
+
version: 1;
|
|
284
|
+
content: NonNullable<DocNode['content']>;
|
|
285
|
+
};
|
|
281
286
|
export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
|
|
282
287
|
mode: 'insert' | 'replace';
|
|
283
288
|
content: string;
|
|
284
289
|
agentId?: string;
|
|
290
|
+
richContent?: EditorSuggestionRichContent;
|
|
285
291
|
}>;
|
|
286
292
|
export type UploadAndInsertMediaPayload = PayloadCore<'upload-and-insert-media', {
|
|
287
293
|
sourceUrl: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.9.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": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@af/integration-testing": "workspace:^",
|
|
42
42
|
"@af/visual-regression": "workspace:^",
|
|
43
43
|
"@atlaskit/css": "^1.0.0",
|
|
44
|
-
"@atlaskit/primitives": "^20.
|
|
44
|
+
"@atlaskit/primitives": "^20.6.0",
|
|
45
45
|
"@atlaskit/ssr": "workspace:^",
|
|
46
46
|
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
47
47
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|