@atlaskit/rovo-triggers 10.26.0 → 10.26.2

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,20 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 10.26.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`321a559f40e21`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/321a559f40e21) -
8
+ Exclude structured Rovo offering documentation from published package artifacts.
9
+
10
+ ## 10.26.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`0ee70433d8996`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ee70433d8996) -
15
+ Pass inline editor content and creation context through to Rovo Chat for selected-agent
16
+ submissions behind the `platform_inline_rovo_agent_editor_context` experiment.
17
+
3
18
  ## 10.26.0
4
19
 
5
20
  ### Minor Changes
package/dist/cjs/types.js CHANGED
@@ -24,6 +24,8 @@ var Topics = exports.Topics = {
24
24
  * A test keeps it aligned with the assistance service contract.
25
25
  */
26
26
 
27
+ /** Creation metadata forwarded when an editor surface launches Rovo Chat. */
28
+
27
29
  /**
28
30
  * Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
29
31
  * reproducing the same experience as clicking an insight inside the in-panel
@@ -18,6 +18,8 @@ export const Topics = {
18
18
  * A test keeps it aligned with the assistance service contract.
19
19
  */
20
20
 
21
+ /** Creation metadata forwarded when an editor surface launches Rovo Chat. */
22
+
21
23
  /**
22
24
  * Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
23
25
  * reproducing the same experience as clicking an insight inside the in-panel
package/dist/esm/types.js CHANGED
@@ -18,6 +18,8 @@ export var Topics = {
18
18
  * A test keeps it aligned with the assistance service contract.
19
19
  */
20
20
 
21
+ /** Creation metadata forwarded when an editor surface launches Rovo Chat. */
22
+
21
23
  /**
22
24
  * Opens the Rovo conversation assistant and seeds a chat from a Rovo Insight,
23
25
  * reproducing the same experience as clicking an insight inside the in-panel
@@ -81,6 +81,31 @@ export type ResultAttributionContextPayload = {
81
81
  */
82
82
  launchSource?: string;
83
83
  };
84
+ type SerializableCreationContextValue = string | number | boolean | null | undefined | {
85
+ [key: string | number]: SerializableCreationContextValue;
86
+ } | SerializableCreationContextValue[];
87
+ /** Creation metadata forwarded when an editor surface launches Rovo Chat. */
88
+ export type ChatCreationContextParams = {
89
+ templateInput?: {
90
+ templateId: string;
91
+ templateType: string;
92
+ };
93
+ jiraContext?: unknown;
94
+ dynamicUiType?: string;
95
+ dynamicUiSubtype?: string;
96
+ dynamicUiSource?: unknown;
97
+ forcedContentType?: string;
98
+ contentMauiId?: string;
99
+ mediaFileId?: string;
100
+ source?: string;
101
+ shouldUseExistingContent?: boolean;
102
+ isViewMode?: boolean;
103
+ experience?: 'cwr' | 'cwr_type' | 'cwr_edit' | 'cwr_existing' | 'inline_edit' | 'remix' | 'remix_edit' | 'remix_object' | 'remix_custom' | 'chat_edit' | 'chat_view' | 'keep_existing_page_structure';
104
+ contentTypes?: string[];
105
+ blocks?: string[];
106
+ spaceKey?: string;
107
+ additionalContext?: Record<string, SerializableCreationContextValue>;
108
+ };
84
109
  export type ChatNewPayload = PayloadCore<'chat-new', {
85
110
  name?: string;
86
111
  dialogues: Array<{
@@ -94,6 +119,10 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
94
119
  };
95
120
  }>;
96
121
  prompt?: string | DocNode;
122
+ /** Content targeted by the prompt when an editor surface launches chat. */
123
+ contentId?: string | number;
124
+ /** Creation context supplied by the launching editor surface. */
125
+ creationContextParams?: ChatCreationContextParams;
97
126
  /**
98
127
  * Overrides the default auto-send behavior for prompts.
99
128
  * Set this to true to insert prompts not containing backticks into the chat input for dynamic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "10.26.0",
3
+ "version": "10.26.2",
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": {
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^57.2.0",
31
+ "@atlaskit/adf-schema": "^57.3.0",
32
32
  "@atlaskit/platform-feature-flags": "^2.2.0",
33
33
  "@atlaskit/react-compiler-gating": "^0.2.0",
34
34
  "@babel/runtime": "^7.0.0",