@atlaskit/rovo-agent-analytics 1.11.0 → 2.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 +21 -0
- package/dist/cjs/common/utils/index.js +0 -2
- package/dist/es2019/common/utils/index.js +0 -2
- package/dist/esm/common/utils/index.js +0 -2
- package/dist/types/common/utils/index.d.ts +1 -1
- package/dist/types/create/index.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/create/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-analytics
|
|
2
2
|
|
|
3
|
+
## 2.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
|
+
|
|
3
24
|
## 1.11.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -14,8 +14,6 @@ var getDefaultTrackEventConfig = exports.getDefaultTrackEventConfig = function g
|
|
|
14
14
|
tags: ['atlaskit']
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
17
|
var getAttributesFromContexts = exports.getAttributesFromContexts = function getAttributesFromContexts(context) {
|
|
20
18
|
if (!context || !Array.isArray(context)) {
|
|
21
19
|
return {};
|
|
@@ -2,8 +2,6 @@ export const getDefaultTrackEventConfig = () => ({
|
|
|
2
2
|
eventType: 'track',
|
|
3
3
|
tags: ['atlaskit']
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
5
|
export const getAttributesFromContexts = context => {
|
|
8
6
|
if (!context || !Array.isArray(context)) {
|
|
9
7
|
return {};
|
|
@@ -7,8 +7,6 @@ export var getDefaultTrackEventConfig = function getDefaultTrackEventConfig() {
|
|
|
7
7
|
tags: ['atlaskit']
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
10
|
export var getAttributesFromContexts = function getAttributesFromContexts(context) {
|
|
13
11
|
if (!context || !Array.isArray(context)) {
|
|
14
12
|
return {};
|
|
@@ -2,4 +2,4 @@ export declare const getDefaultTrackEventConfig: () => {
|
|
|
2
2
|
eventType: string;
|
|
3
3
|
tags: string[];
|
|
4
4
|
};
|
|
5
|
-
export declare const getAttributesFromContexts: (context: unknown) => Record<string,
|
|
5
|
+
export declare const getAttributesFromContexts: (context: unknown) => Record<string, unknown>;
|
|
@@ -8,7 +8,7 @@ import type { CreateFlowEventPayload } from '../actions/groups/create-flow';
|
|
|
8
8
|
type AgentCreateAction = CreateFlowEventPayload['action'] | AddToolsPromptEventPayload['action'];
|
|
9
9
|
type CommonAnalyticsAttributes = {
|
|
10
10
|
touchPoint?: string;
|
|
11
|
-
} & Record<string,
|
|
11
|
+
} & Record<string, unknown>;
|
|
12
12
|
export declare const useRovoAgentCreateAnalytics: (commonAttributes: CommonAnalyticsAttributes) => readonly [string | null, {
|
|
13
13
|
readonly trackCreateSession: (action: AgentCreateAction, attributes?: CommonAnalyticsAttributes) => void;
|
|
14
14
|
readonly trackCreateSessionStart: (attributes?: CommonAnalyticsAttributes) => void;
|
|
@@ -2,4 +2,4 @@ export declare const getDefaultTrackEventConfig: () => {
|
|
|
2
2
|
eventType: string;
|
|
3
3
|
tags: string[];
|
|
4
4
|
};
|
|
5
|
-
export declare const getAttributesFromContexts: (context: unknown) => Record<string,
|
|
5
|
+
export declare const getAttributesFromContexts: (context: unknown) => Record<string, unknown>;
|
|
@@ -8,7 +8,7 @@ import type { CreateFlowEventPayload } from '../actions/groups/create-flow';
|
|
|
8
8
|
type AgentCreateAction = CreateFlowEventPayload['action'] | AddToolsPromptEventPayload['action'];
|
|
9
9
|
type CommonAnalyticsAttributes = {
|
|
10
10
|
touchPoint?: string;
|
|
11
|
-
} & Record<string,
|
|
11
|
+
} & Record<string, unknown>;
|
|
12
12
|
export declare const useRovoAgentCreateAnalytics: (commonAttributes: CommonAnalyticsAttributes) => readonly [
|
|
13
13
|
string | null,
|
|
14
14
|
{
|