@atlaskit/rovo-triggers 6.5.0 → 7.0.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,34 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`b0222d13caefe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b0222d13caefe) -
8
+ Replace `@typescript-eslint/no-explicit-any` suppressions with real types across
9
+ rovo-content-bridge and rovo-platform packages (TREX-1392).
10
+
11
+ Key changes:
12
+ - `rovo-content-bridge-api`: Replace `any` in `CommandConstructor`, type guards, handlers,
13
+ debugger, and desktop transport with `unknown`, typed event interfaces, and a new `WebContents`
14
+ interface.
15
+ - `rovo-content-bridge-api-commands`: Replace `any` fields with `SerializableValue` in chart,
16
+ Jira, and content commands.
17
+ - `rovo-playground`: Replace `any` in plugin config, settings store, and ADF utilities with
18
+ `unknown` and recursive typed nodes.
19
+ - `rovo-platform-ui-components`, `rovo-navigation`, `rovo-spaces`, `rovo-triggers`,
20
+ `rovo-agent-analytics`, `rovo-agent-components`, `rovo-chat-side-by-side-evaluation`,
21
+ `rovo-agent-debug-modal`: Replace remaining `any` occurrences with `unknown`, typed interfaces,
22
+ or properly inferred types.
23
+
24
+ ### Patch Changes
25
+
26
+ - [`18aff6350fd6a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/18aff6350fd6a) -
27
+ Add optional `tags` field to `ChatNewPayload` and forward conversation-channel tags through the
28
+ `chat-new` bridge to `createSeededConversation`. Used by the Confluence @ Mention Agents feature
29
+ to pass `mention-in-comment`, `page:<pageId>`, and `comment:<commentId>` tags so the backend can
30
+ create a `SessionAssociationPublic` record and initialize conversation state.
31
+
3
32
  ## 6.5.0
4
33
 
5
34
  ### Minor Changes
@@ -39,7 +39,6 @@ var processParams = function processParams(input) {
39
39
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
40
40
  filter: []
41
41
  };
42
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
43
42
  var output = {};
44
43
  var safeSearchParamsInput = typeof input === 'string' ? isValidURL(input) ? new URLSearchParams(new URL(input).search) : new URLSearchParams(input) : input;
45
44
  var processedInput = new URLSearchParams(safeSearchParamsInput);
@@ -21,7 +21,6 @@ export const removePrefix = param => {
21
21
  const processParams = (input, options = {
22
22
  filter: []
23
23
  }) => {
24
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
24
  const output = {};
26
25
  const safeSearchParamsInput = typeof input === 'string' ? isValidURL(input) ? new URLSearchParams(new URL(input).search) : new URLSearchParams(input) : input;
27
26
  const processedInput = new URLSearchParams(safeSearchParamsInput);
@@ -32,7 +32,6 @@ var processParams = function processParams(input) {
32
32
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
33
33
  filter: []
34
34
  };
35
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
36
35
  var output = {};
37
36
  var safeSearchParamsInput = typeof input === 'string' ? isValidURL(input) ? new URLSearchParams(new URL(input).search) : new URLSearchParams(input) : input;
38
37
  var processedInput = new URLSearchParams(safeSearchParamsInput);
@@ -92,6 +92,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
92
92
  * Sent as `search_artifact` in `body.context`.
93
93
  */
94
94
  searchArtifact?: SendMessageSearchArtifact;
95
+ /**
96
+ * Optional conversation-channel tags forwarded to the backend on conversation creation.
97
+ * Used by the agent-mention-in-comment feature to pass mention-in-comment, page:<pageId>,
98
+ * and comment:<commentId> so the backend can create a SessionAssociationPublic record.
99
+ */
100
+ tags?: string[];
95
101
  } & Partial<TargetAgentParam> & PlaceholderParam>;
96
102
  export type EditorContextPayloadData = {
97
103
  document: {
@@ -161,7 +167,7 @@ export type JiraCreateContextPayloadData = {
161
167
  projectIdOrKey: string;
162
168
  issueTypeId: string;
163
169
  summary: string;
164
- fields: Record<string, any>;
170
+ fields: Record<string, unknown>;
165
171
  }[] | null;
166
172
  };
167
173
  export type EditorContextPayload = PayloadCore<'editor-context-payload'> & {
@@ -92,6 +92,12 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
92
92
  * Sent as `search_artifact` in `body.context`.
93
93
  */
94
94
  searchArtifact?: SendMessageSearchArtifact;
95
+ /**
96
+ * Optional conversation-channel tags forwarded to the backend on conversation creation.
97
+ * Used by the agent-mention-in-comment feature to pass mention-in-comment, page:<pageId>,
98
+ * and comment:<commentId> so the backend can create a SessionAssociationPublic record.
99
+ */
100
+ tags?: string[];
95
101
  } & Partial<TargetAgentParam> & PlaceholderParam>;
96
102
  export type EditorContextPayloadData = {
97
103
  document: {
@@ -161,7 +167,7 @@ export type JiraCreateContextPayloadData = {
161
167
  projectIdOrKey: string;
162
168
  issueTypeId: string;
163
169
  summary: string;
164
- fields: Record<string, any>;
170
+ fields: Record<string, unknown>;
165
171
  }[] | null;
166
172
  };
167
173
  export type EditorContextPayload = PayloadCore<'editor-context-payload'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "6.5.0",
3
+ "version": "7.0.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": {