@atlaskit/rovo-agent-analytics 1.1.0 → 1.2.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,20 @@
1
1
  # @atlaskit/rovo-agent-analytics
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`17f2af77c77de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/17f2af77c77de) -
8
+ Add InsightsEventPayload for insights page date filter analytics
9
+
10
+ ## 1.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`47b02f048ca4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/47b02f048ca4a) -
15
+ Enrol search and ai-mate packages into the React Compiler with platform gating via
16
+ isReactCompilerActivePlatform.
17
+
3
18
  ## 1.1.0
4
19
 
5
20
  ### Minor Changes
@@ -0,0 +1 @@
1
+ "use strict";
File without changes
File without changes
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Action Group: insights
3
+ *
4
+ * Actions related to the insights page (viewing, filtering, sorting data).
5
+ *
6
+ * ## Adding a new action
7
+ * 1. Add a new variant to the `InsightsEventPayload` union type below with a data-portal link
8
+ * 2. If this action doesn't fit this group, consider creating a new group file instead
9
+ * (see other files in this directory for the template)
10
+ */
11
+ /**
12
+ * Discriminated union payload type for insights events.
13
+ * Use with `trackAgentEvent()`.
14
+ */
15
+ export type InsightsEventPayload = {
16
+ actionSubject: 'rovoAgent';
17
+ action: 'insightsDateFilterChanged';
18
+ attributes: {
19
+ filterType: 'preset' | 'custom';
20
+ days?: number;
21
+ };
22
+ };
@@ -2,6 +2,7 @@ import type { AgentInteractionsEventPayload } from '../actions/groups/agent-inte
2
2
  import type { DebugEventPayload } from '../actions/groups/debug';
3
3
  import type { EditingEventPayload } from '../actions/groups/editing';
4
4
  import type { EvaluationEventPayload } from '../actions/groups/evaluation';
5
+ import type { InsightsEventPayload } from '../actions/groups/insights';
5
6
  import type { ToolsEventPayload } from '../actions/groups/tools';
6
7
  export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
7
8
  export type BaseAgentAnalyticsAttributes = {
@@ -28,4 +29,4 @@ export type ErrorEventPayload = {
28
29
  * Union of all event payload types.
29
30
  * Use with `trackAgentEvent()` for typed event tracking.
30
31
  */
31
- export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | ErrorEventPayload;
32
+ export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Action Group: insights
3
+ *
4
+ * Actions related to the insights page (viewing, filtering, sorting data).
5
+ *
6
+ * ## Adding a new action
7
+ * 1. Add a new variant to the `InsightsEventPayload` union type below with a data-portal link
8
+ * 2. If this action doesn't fit this group, consider creating a new group file instead
9
+ * (see other files in this directory for the template)
10
+ */
11
+ /**
12
+ * Discriminated union payload type for insights events.
13
+ * Use with `trackAgentEvent()`.
14
+ */
15
+ export type InsightsEventPayload = {
16
+ actionSubject: 'rovoAgent';
17
+ action: 'insightsDateFilterChanged';
18
+ attributes: {
19
+ filterType: 'preset' | 'custom';
20
+ days?: number;
21
+ };
22
+ };
@@ -2,6 +2,7 @@ import type { AgentInteractionsEventPayload } from '../actions/groups/agent-inte
2
2
  import type { DebugEventPayload } from '../actions/groups/debug';
3
3
  import type { EditingEventPayload } from '../actions/groups/editing';
4
4
  import type { EvaluationEventPayload } from '../actions/groups/evaluation';
5
+ import type { InsightsEventPayload } from '../actions/groups/insights';
5
6
  import type { ToolsEventPayload } from '../actions/groups/tools';
6
7
  export type RemainingRequired<T, P extends Partial<T>> = Required<Omit<T, keyof P>>;
7
8
  export type BaseAgentAnalyticsAttributes = {
@@ -28,4 +29,4 @@ export type ErrorEventPayload = {
28
29
  * Union of all event payload types.
29
30
  * Use with `trackAgentEvent()` for typed event tracking.
30
31
  */
31
- export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | ErrorEventPayload;
32
+ export type EventPayload = EditingEventPayload | AgentInteractionsEventPayload | DebugEventPayload | ToolsEventPayload | EvaluationEventPayload | InsightsEventPayload | ErrorEventPayload;
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-analytics",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Rovo Agents analytics",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
6
6
  "atlassian": {
7
+ "react-compiler": {
8
+ "enabled": true,
9
+ "gating": {
10
+ "source": "@atlassian/react-compiler-gating",
11
+ "importSpecifierName": "isReactCompilerActivePlatform"
12
+ }
13
+ },
7
14
  "team": "Rovo Agents",
8
15
  "website": {
9
16
  "name": "RovoAgentAnalytics",
@@ -33,7 +40,7 @@
33
40
  ],
34
41
  "dependencies": {
35
42
  "@atlaskit/analytics-listeners": "^10.0.0",
36
- "@atlaskit/analytics-next": "^11.1.0",
43
+ "@atlaskit/analytics-next": "^11.2.0",
37
44
  "@babel/runtime": "^7.0.0",
38
45
  "@compiled/react": "^0.20.0"
39
46
  },
@@ -41,6 +48,7 @@
41
48
  "@af/integration-testing": "workspace:^",
42
49
  "@af/visual-regression": "workspace:^",
43
50
  "@atlaskit/ssr": "workspace:^",
51
+ "@atlassian/react-compiler-gating": "workspace:^",
44
52
  "@testing-library/react": "^16.3.0",
45
53
  "react-dom": "^18.2.0"
46
54
  },