@atlaskit/rovo-agent-analytics 0.7.0 → 0.9.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,19 @@
1
1
  # @atlaskit/rovo-agent-analytics
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`30b1a6e6f786c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/30b1a6e6f786c) -
8
+ [ux] add verify agent in rovo agent landing page dropdown
9
+
10
+ ## 0.8.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`613e539d201d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/613e539d201d3) -
15
+ Update rovo agents overview page analytics
16
+
3
17
  ## 0.7.0
4
18
 
5
19
  ### Minor Changes
@@ -17,8 +17,6 @@ var AgentActions = exports.AgentActions = /*#__PURE__*/function (AgentActions) {
17
17
  AgentActions["VIEW"] = "view";
18
18
  /* Edit agent clicked */
19
19
  AgentActions["EDIT"] = "edit";
20
- /* Create agent clicked */
21
- AgentActions["CREATE"] = "create";
22
20
  /* Agent updated */
23
21
  AgentActions["UPDATED"] = "updated";
24
22
  /* Copy link clicked */
@@ -31,6 +29,10 @@ var AgentActions = exports.AgentActions = /*#__PURE__*/function (AgentActions) {
31
29
  AgentActions["STAR"] = "star";
32
30
  /* Chat with agent clicked */
33
31
  AgentActions["CHAT"] = "chat";
32
+ /* Verify agent clicked */
33
+ AgentActions["VERIFY"] = "verify";
34
+ /* Unverify agent clicked */
35
+ AgentActions["UNVERIFY"] = "unverify";
34
36
  return AgentActions;
35
37
  }({});
36
38
  var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = _analyticsListeners.FabricChannel.aiMate;
@@ -19,6 +19,7 @@ var getAttributesFromContexts = exports.getAttributesFromContexts = function get
19
19
  return {};
20
20
  }
21
21
  return context.reduce(function (acc, x) {
22
- return _objectSpread(_objectSpread({}, acc), x);
22
+ var _x$attributes;
23
+ return _objectSpread(_objectSpread({}, acc), (_x$attributes = x.attributes) !== null && _x$attributes !== void 0 ? _x$attributes : {});
23
24
  }, {});
24
25
  };
@@ -7,8 +7,6 @@ export let AgentActions = /*#__PURE__*/function (AgentActions) {
7
7
  AgentActions["VIEW"] = "view";
8
8
  /* Edit agent clicked */
9
9
  AgentActions["EDIT"] = "edit";
10
- /* Create agent clicked */
11
- AgentActions["CREATE"] = "create";
12
10
  /* Agent updated */
13
11
  AgentActions["UPDATED"] = "updated";
14
12
  /* Copy link clicked */
@@ -21,6 +19,10 @@ export let AgentActions = /*#__PURE__*/function (AgentActions) {
21
19
  AgentActions["STAR"] = "star";
22
20
  /* Chat with agent clicked */
23
21
  AgentActions["CHAT"] = "chat";
22
+ /* Verify agent clicked */
23
+ AgentActions["VERIFY"] = "verify";
24
+ /* Unverify agent clicked */
25
+ AgentActions["UNVERIFY"] = "unverify";
24
26
  return AgentActions;
25
27
  }({});
26
28
  export const ANALYTICS_CHANNEL = FabricChannel.aiMate;
@@ -7,9 +7,10 @@ export const getAttributesFromContexts = context => {
7
7
  return {};
8
8
  }
9
9
  return context.reduce((acc, x) => {
10
+ var _x$attributes;
10
11
  return {
11
12
  ...acc,
12
- ...x
13
+ ...((_x$attributes = x.attributes) !== null && _x$attributes !== void 0 ? _x$attributes : {})
13
14
  };
14
15
  }, {});
15
16
  };
@@ -10,8 +10,6 @@ export var AgentActions = /*#__PURE__*/function (AgentActions) {
10
10
  AgentActions["VIEW"] = "view";
11
11
  /* Edit agent clicked */
12
12
  AgentActions["EDIT"] = "edit";
13
- /* Create agent clicked */
14
- AgentActions["CREATE"] = "create";
15
13
  /* Agent updated */
16
14
  AgentActions["UPDATED"] = "updated";
17
15
  /* Copy link clicked */
@@ -24,6 +22,10 @@ export var AgentActions = /*#__PURE__*/function (AgentActions) {
24
22
  AgentActions["STAR"] = "star";
25
23
  /* Chat with agent clicked */
26
24
  AgentActions["CHAT"] = "chat";
25
+ /* Verify agent clicked */
26
+ AgentActions["VERIFY"] = "verify";
27
+ /* Unverify agent clicked */
28
+ AgentActions["UNVERIFY"] = "unverify";
27
29
  return AgentActions;
28
30
  }({});
29
31
  export var ANALYTICS_CHANNEL = FabricChannel.aiMate;
@@ -12,6 +12,7 @@ export var getAttributesFromContexts = function getAttributesFromContexts(contex
12
12
  return {};
13
13
  }
14
14
  return context.reduce(function (acc, x) {
15
- return _objectSpread(_objectSpread({}, acc), x);
15
+ var _x$attributes;
16
+ return _objectSpread(_objectSpread({}, acc), (_x$attributes = x.attributes) !== null && _x$attributes !== void 0 ? _x$attributes : {});
16
17
  }, {});
17
18
  };
@@ -3,13 +3,14 @@ import type { RemainingRequired } from '../common/types';
3
3
  export declare enum AgentActions {
4
4
  VIEW = "view",
5
5
  EDIT = "edit",
6
- CREATE = "create",
7
6
  UPDATED = "updated",
8
7
  COPY_LINK = "copyLink",
9
8
  DELETE = "delete",
10
9
  DUPLICATE = "duplicate",
11
10
  STAR = "star",
12
- CHAT = "chat"
11
+ CHAT = "chat",
12
+ VERIFY = "verify",
13
+ UNVERIFY = "unverify"
13
14
  }
14
15
  type CommonAnalyticsAttributes = {
15
16
  touchPoint: string;
@@ -3,13 +3,14 @@ import type { RemainingRequired } from '../common/types';
3
3
  export declare enum AgentActions {
4
4
  VIEW = "view",
5
5
  EDIT = "edit",
6
- CREATE = "create",
7
6
  UPDATED = "updated",
8
7
  COPY_LINK = "copyLink",
9
8
  DELETE = "delete",
10
9
  DUPLICATE = "duplicate",
11
10
  STAR = "star",
12
- CHAT = "chat"
11
+ CHAT = "chat",
12
+ VERIFY = "verify",
13
+ UNVERIFY = "unverify"
13
14
  }
14
15
  type CommonAnalyticsAttributes = {
15
16
  touchPoint: string;
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "atlaskit:src": "src/index.ts",
26
26
  "dependencies": {
27
- "@atlaskit/analytics-listeners": "^9.1.0",
27
+ "@atlaskit/analytics-listeners": "^9.2.0",
28
28
  "@atlaskit/analytics-next": "^11.1.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "@compiled/react": "^0.18.6"
@@ -36,7 +36,7 @@
36
36
  "@af/integration-testing": "workspace:^",
37
37
  "@af/visual-regression": "workspace:^",
38
38
  "@atlaskit/ssr": "workspace:^",
39
- "@testing-library/react": "^13.4.0",
39
+ "@testing-library/react": "^16.3.0",
40
40
  "react-dom": "^18.2.0"
41
41
  },
42
42
  "techstack": {
@@ -83,7 +83,7 @@
83
83
  ]
84
84
  },
85
85
  "name": "@atlaskit/rovo-agent-analytics",
86
- "version": "0.7.0",
86
+ "version": "0.9.0",
87
87
  "description": "Rovo Agents analytics",
88
88
  "author": "Atlassian Pty Ltd",
89
89
  "license": "Apache-2.0",