@atlaskit/rovo-agent-components 3.32.3 → 3.32.5

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,17 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.32.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.32.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 3.32.3
4
16
 
5
17
  ### Patch Changes
@@ -80,7 +80,7 @@ var AgentVerificationDropdownItem = exports.AgentVerificationDropdownItem = func
80
80
  var payload = response === null || response === void 0 ? void 0 : response.agentStudio_updateAgentVerification;
81
81
  if (payload !== null && payload !== void 0 && payload.success) {
82
82
  onVerificationSuccess === null || onVerificationSuccess === void 0 || onVerificationSuccess(verified);
83
- trackAgentAction(verified ? _actions.AgentActions.VERIFY : _actions.AgentActions.UNVERIFY, {});
83
+ trackAgentAction(verified ? _actions.AgentCommonActions.VERIFY : _actions.AgentCommonActions.UNVERIFY, {});
84
84
  showFlag({
85
85
  title: formatMessage(verified ? _messages.default.verifySuccessTitle : _messages.default.unverifySuccessTitle),
86
86
  appearance: 'success',
@@ -94,7 +94,7 @@ var AgentVerificationDropdownItem = exports.AgentVerificationDropdownItem = func
94
94
  var _payload$errors;
95
95
  var errorMessage = payload === null || payload === void 0 || (_payload$errors = payload.errors) === null || _payload$errors === void 0 || (_payload$errors = _payload$errors[0]) === null || _payload$errors === void 0 ? void 0 : _payload$errors.message;
96
96
  if (errorMessage) {
97
- trackAgentActionError(verified ? _actions.AgentActions.VERIFY : _actions.AgentActions.UNVERIFY, new Error(errorMessage), {
97
+ trackAgentActionError(verified ? _actions.AgentCommonActions.VERIFY : _actions.AgentCommonActions.UNVERIFY, new Error(errorMessage), {
98
98
  agentId: agentId
99
99
  });
100
100
  handleError(verified, errorMessage);
@@ -102,7 +102,7 @@ var AgentVerificationDropdownItem = exports.AgentVerificationDropdownItem = func
102
102
  }
103
103
  },
104
104
  onError: function onError(error) {
105
- trackAgentActionError(verified ? _actions.AgentActions.VERIFY : _actions.AgentActions.UNVERIFY, error, {
105
+ trackAgentActionError(verified ? _actions.AgentCommonActions.VERIFY : _actions.AgentCommonActions.UNVERIFY, error, {
106
106
  agentId: agentId
107
107
  });
108
108
  handleError(verified, error.message);
@@ -8,7 +8,7 @@ import { DropdownItem } from '@atlaskit/dropdown-menu';
8
8
  import { useFlags } from '@atlaskit/flag';
9
9
  import ErrorIcon from '@atlaskit/icon/core/status-error';
10
10
  import SuccessIcon from '@atlaskit/icon/core/status-success';
11
- import { AgentActions, useRovoAgentActionAnalytics } from '@atlaskit/rovo-agent-analytics/actions';
11
+ import { AgentCommonActions, useRovoAgentActionAnalytics } from '@atlaskit/rovo-agent-analytics/actions';
12
12
  import messages from './messages';
13
13
  /**
14
14
  * A dropdown item for verifying or unverifying an agent.
@@ -71,7 +71,7 @@ export const AgentVerificationDropdownItem = ({
71
71
  const payload = response === null || response === void 0 ? void 0 : response.agentStudio_updateAgentVerification;
72
72
  if (payload !== null && payload !== void 0 && payload.success) {
73
73
  onVerificationSuccess === null || onVerificationSuccess === void 0 ? void 0 : onVerificationSuccess(verified);
74
- trackAgentAction(verified ? AgentActions.VERIFY : AgentActions.UNVERIFY, {});
74
+ trackAgentAction(verified ? AgentCommonActions.VERIFY : AgentCommonActions.UNVERIFY, {});
75
75
  showFlag({
76
76
  title: formatMessage(verified ? messages.verifySuccessTitle : messages.unverifySuccessTitle),
77
77
  appearance: 'success',
@@ -85,7 +85,7 @@ export const AgentVerificationDropdownItem = ({
85
85
  var _payload$errors, _payload$errors$;
86
86
  const errorMessage = payload === null || payload === void 0 ? void 0 : (_payload$errors = payload.errors) === null || _payload$errors === void 0 ? void 0 : (_payload$errors$ = _payload$errors[0]) === null || _payload$errors$ === void 0 ? void 0 : _payload$errors$.message;
87
87
  if (errorMessage) {
88
- trackAgentActionError(verified ? AgentActions.VERIFY : AgentActions.UNVERIFY, new Error(errorMessage), {
88
+ trackAgentActionError(verified ? AgentCommonActions.VERIFY : AgentCommonActions.UNVERIFY, new Error(errorMessage), {
89
89
  agentId
90
90
  });
91
91
  handleError(verified, errorMessage);
@@ -93,7 +93,7 @@ export const AgentVerificationDropdownItem = ({
93
93
  }
94
94
  },
95
95
  onError: error => {
96
- trackAgentActionError(verified ? AgentActions.VERIFY : AgentActions.UNVERIFY, error, {
96
+ trackAgentActionError(verified ? AgentCommonActions.VERIFY : AgentCommonActions.UNVERIFY, error, {
97
97
  agentId
98
98
  });
99
99
  handleError(verified, error.message);
@@ -9,7 +9,7 @@ import { DropdownItem } from '@atlaskit/dropdown-menu';
9
9
  import { useFlags } from '@atlaskit/flag';
10
10
  import ErrorIcon from '@atlaskit/icon/core/status-error';
11
11
  import SuccessIcon from '@atlaskit/icon/core/status-success';
12
- import { AgentActions, useRovoAgentActionAnalytics } from '@atlaskit/rovo-agent-analytics/actions';
12
+ import { AgentCommonActions, useRovoAgentActionAnalytics } from '@atlaskit/rovo-agent-analytics/actions';
13
13
  import messages from './messages';
14
14
  /**
15
15
  * A dropdown item for verifying or unverifying an agent.
@@ -71,7 +71,7 @@ export var AgentVerificationDropdownItem = function AgentVerificationDropdownIte
71
71
  var payload = response === null || response === void 0 ? void 0 : response.agentStudio_updateAgentVerification;
72
72
  if (payload !== null && payload !== void 0 && payload.success) {
73
73
  onVerificationSuccess === null || onVerificationSuccess === void 0 || onVerificationSuccess(verified);
74
- trackAgentAction(verified ? AgentActions.VERIFY : AgentActions.UNVERIFY, {});
74
+ trackAgentAction(verified ? AgentCommonActions.VERIFY : AgentCommonActions.UNVERIFY, {});
75
75
  showFlag({
76
76
  title: formatMessage(verified ? messages.verifySuccessTitle : messages.unverifySuccessTitle),
77
77
  appearance: 'success',
@@ -85,7 +85,7 @@ export var AgentVerificationDropdownItem = function AgentVerificationDropdownIte
85
85
  var _payload$errors;
86
86
  var errorMessage = payload === null || payload === void 0 || (_payload$errors = payload.errors) === null || _payload$errors === void 0 || (_payload$errors = _payload$errors[0]) === null || _payload$errors === void 0 ? void 0 : _payload$errors.message;
87
87
  if (errorMessage) {
88
- trackAgentActionError(verified ? AgentActions.VERIFY : AgentActions.UNVERIFY, new Error(errorMessage), {
88
+ trackAgentActionError(verified ? AgentCommonActions.VERIFY : AgentCommonActions.UNVERIFY, new Error(errorMessage), {
89
89
  agentId: agentId
90
90
  });
91
91
  handleError(verified, errorMessage);
@@ -93,7 +93,7 @@ export var AgentVerificationDropdownItem = function AgentVerificationDropdownIte
93
93
  }
94
94
  },
95
95
  onError: function onError(error) {
96
- trackAgentActionError(verified ? AgentActions.VERIFY : AgentActions.UNVERIFY, error, {
96
+ trackAgentActionError(verified ? AgentCommonActions.VERIFY : AgentCommonActions.UNVERIFY, error, {
97
97
  agentId: agentId
98
98
  });
99
99
  handleError(verified, error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.32.3",
3
+ "version": "3.32.5",
4
4
  "description": "This package host public components related to rovo agents, the components here are needed for other public atlaskit packages",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/logo": "^19.10.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/primitives": "^18.0.0",
48
- "@atlaskit/rovo-agent-analytics": "^0.12.0",
48
+ "@atlaskit/rovo-agent-analytics": "^0.14.0",
49
49
  "@atlaskit/skeleton": "^2.1.0",
50
50
  "@atlaskit/tokens": "^11.0.0",
51
51
  "@atlaskit/tooltip": "^20.14.0",