@atlaskit/rovo-triggers 9.8.2 → 9.10.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 +37 -0
- package/dist/types/types.d.ts +7 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 9.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e93be45d5a13b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e93be45d5a13b) -
|
|
8
|
+
Send the current media's collectionId on Ask Rovo image-edit requests via
|
|
9
|
+
creationContext.additionalContext.mediaCollection, so the backend can resolve the media collection
|
|
10
|
+
when editing an existing image (image-create). Gated behind cc-maui-experiment / jira_maui_remix.
|
|
11
|
+
|
|
12
|
+
## 9.9.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`995c1ca2d4166`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/995c1ca2d4166) -
|
|
17
|
+
[ux] Publish Lumina insert/replace responses as structured editor ADF behind
|
|
18
|
+
`kd_lumina_insert_replace_response_as_adf` so Smart Link lists and profile-card mentions survive
|
|
19
|
+
insertion.
|
|
20
|
+
|
|
21
|
+
Populate bare people mention labels in editor-insert ADF fragments so profile-card mentions render
|
|
22
|
+
with their visible names.
|
|
23
|
+
|
|
24
|
+
`@atlaskit/rovo-triggers` now exposes optional rich ADF content on
|
|
25
|
+
`EditorSuggestionPayload.data.richContent`. Consumers can prefer the ADF fragment when present and
|
|
26
|
+
fall back to markdown otherwise:
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import type { EditorSuggestionPayload } from '@atlaskit/rovo-triggers';
|
|
30
|
+
|
|
31
|
+
function handleEditorSuggestion(payload: EditorSuggestionPayload) {
|
|
32
|
+
if (payload.data.richContent?.type === 'text/adf') {
|
|
33
|
+
return payload.data.richContent.content;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return payload.data.content;
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
3
40
|
## 9.8.2
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -186,6 +186,7 @@ export type EditorContextPayloadData = {
|
|
|
186
186
|
selectionLocalIds?: string;
|
|
187
187
|
contentMauiId?: string;
|
|
188
188
|
mediaFileId?: string;
|
|
189
|
+
mediaCollection?: string;
|
|
189
190
|
dynamicUiSource?: {
|
|
190
191
|
contentType: string;
|
|
191
192
|
startLocalId?: string;
|
|
@@ -278,10 +279,16 @@ export type ChatSmartLink3PPostAuthLaunchPayload = PayloadCore<'chat-smartlink-3
|
|
|
278
279
|
}>;
|
|
279
280
|
export type OpenBrowseAgentPayload = PayloadCore<'open-browse-agent-modal'>;
|
|
280
281
|
export type OpenBrowseAgentSidebarPayload = PayloadCore<'open-browse-agent-sidebar'>;
|
|
282
|
+
export type EditorSuggestionRichContent = {
|
|
283
|
+
type: 'text/adf';
|
|
284
|
+
version: 1;
|
|
285
|
+
content: NonNullable<DocNode['content']>;
|
|
286
|
+
};
|
|
281
287
|
export type EditorSuggestionPayload = PayloadCore<'editor-suggestion', {
|
|
282
288
|
mode: 'insert' | 'replace';
|
|
283
289
|
content: string;
|
|
284
290
|
agentId?: string;
|
|
291
|
+
richContent?: EditorSuggestionRichContent;
|
|
285
292
|
}>;
|
|
286
293
|
export type UploadAndInsertMediaPayload = PayloadCore<'upload-and-insert-media', {
|
|
287
294
|
sourceUrl: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.10.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": "^
|
|
44
|
+
"@atlaskit/primitives": "^21.0.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",
|