@atlaskit/rovo-agent-components 3.18.0 → 3.19.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/common/ui/chat-pill/index.compiled.css +1 -1
  3. package/dist/cjs/common/ui/chat-pill/index.js +1 -1
  4. package/dist/cjs/common/ui/star-icon-button/index.js +0 -2
  5. package/dist/cjs/ui/agent-conversation-starters/index.compiled.css +1 -1
  6. package/dist/cjs/ui/agent-conversation-starters/index.js +1 -1
  7. package/dist/cjs/ui/agent-dropdown-menu/index.js +7 -2
  8. package/dist/cjs/ui/agent-dropdown-menu/messages.js +10 -0
  9. package/dist/cjs/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
  10. package/dist/cjs/ui/agent-profile-info/agent-star-count/index.js +1 -1
  11. package/dist/es2019/common/ui/chat-pill/index.compiled.css +1 -1
  12. package/dist/es2019/common/ui/chat-pill/index.js +1 -1
  13. package/dist/es2019/common/ui/star-icon-button/index.js +0 -2
  14. package/dist/es2019/ui/agent-conversation-starters/index.compiled.css +1 -1
  15. package/dist/es2019/ui/agent-conversation-starters/index.js +1 -1
  16. package/dist/es2019/ui/agent-dropdown-menu/index.js +7 -2
  17. package/dist/es2019/ui/agent-dropdown-menu/messages.js +10 -0
  18. package/dist/es2019/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
  19. package/dist/es2019/ui/agent-profile-info/agent-star-count/index.js +1 -1
  20. package/dist/esm/common/ui/chat-pill/index.compiled.css +1 -1
  21. package/dist/esm/common/ui/chat-pill/index.js +1 -1
  22. package/dist/esm/common/ui/star-icon-button/index.js +0 -2
  23. package/dist/esm/ui/agent-conversation-starters/index.compiled.css +1 -1
  24. package/dist/esm/ui/agent-conversation-starters/index.js +1 -1
  25. package/dist/esm/ui/agent-dropdown-menu/index.js +7 -2
  26. package/dist/esm/ui/agent-dropdown-menu/messages.js +10 -0
  27. package/dist/esm/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
  28. package/dist/esm/ui/agent-profile-info/agent-star-count/index.js +1 -1
  29. package/dist/types/ui/agent-dropdown-menu/index.d.ts +3 -1
  30. package/dist/types/ui/agent-dropdown-menu/messages.d.ts +10 -0
  31. package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +3 -1
  32. package/dist/types-ts4.5/ui/agent-dropdown-menu/messages.d.ts +10 -0
  33. package/package.json +9 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`61adbaa3e8ae1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/61adbaa3e8ae1) -
8
+ [ux] add agent verfication option in dropdown menu
9
+
10
+ ## 3.18.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 3.18.0
4
17
 
5
18
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
4
4
  ._18zrv77o{padding-inline:var(--ds-space-025,2px)}
@@ -25,7 +25,7 @@ var stylesCompiled = {
25
25
  pillLineHeight: "_vwz47vkz"
26
26
  };
27
27
  var styles = {
28
- button: "_2rko12b0 _11c82smr _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
28
+ button: "_2rko12b0 _11c8fhey _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
29
29
  buttonInline: "_18zrv77o",
30
30
  queryText: "_1nmz1hna _y3gn1e5h",
31
31
  whiteSpacePreWrap: "_o5721jtm"
@@ -44,12 +44,10 @@ var StarIconButton = exports.StarIconButton = function StarIconButton(_ref) {
44
44
  return setIsHovered(false);
45
45
  }
46
46
  }, isStarred || isHovered ? /*#__PURE__*/React.createElement(_starStarred.default, {
47
- LEGACY_size: "medium",
48
47
  spacing: "spacious",
49
48
  label: formatMessage(_messages.default.removeFromFavouritesLabel),
50
49
  color: "var(--ds-icon-accent-orange, #E06C00)"
51
50
  }) : /*#__PURE__*/React.createElement(_starUnstarred.default, {
52
- LEGACY_size: "medium",
53
51
  spacing: "spacious",
54
52
  label: formatMessage(_messages.default.clickToFavouriteLabel),
55
53
  color: "var(--ds-icon, #292A2E)"
@@ -1,4 +1,4 @@
1
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._qtt8glyw{list-style:none}
4
4
  ._18m915vq{overflow-y:hidden}
@@ -29,7 +29,7 @@ var styles = {
29
29
  conversationStartersListRefresh: "_1bsb1osq",
30
30
  conversationStarterIcon: "_1o9zidpf",
31
31
  conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
32
- button: "_11c82smr _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
32
+ button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
33
33
  };
34
34
  var getConversationStarters = exports.getConversationStarters = function getConversationStarters(_ref) {
35
35
  var userDefinedConversationStartersParam = _ref.userDefinedConversationStarters,
@@ -19,6 +19,7 @@ var _reactIntlNext = require("react-intl-next");
19
19
  var _new = _interopRequireWildcard(require("@atlaskit/button/new"));
20
20
  var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
21
21
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
22
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
23
  var _compiled = require("@atlaskit/primitives/compiled");
23
24
  var _chatIcon = require("../../common/ui/chat-icon");
24
25
  var _messages = _interopRequireDefault(require("./messages"));
@@ -72,7 +73,9 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
72
73
  loadAgentPermissions = _ref2.loadAgentPermissions,
73
74
  loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
74
75
  shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
75
- agentName = _ref2.agentName;
76
+ agentName = _ref2.agentName,
77
+ isVerified = _ref2.isVerified,
78
+ isAbleToGovernAgents = _ref2.isAbleToGovernAgents;
76
79
  var _useState = (0, _react.useState)(false),
77
80
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
78
81
  isLoading = _useState2[0],
@@ -192,5 +195,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
192
195
  setHasBeenCopied(true);
193
196
  onCopyAgent === null || onCopyAgent === void 0 || onCopyAgent(e);
194
197
  }
195
- }, formatMessage(hasBeenCopied ? _messages.default.linkedCopiedToProfile : _messages.default.copyLinkToProfile))), renderEditDelete());
198
+ }, formatMessage(hasBeenCopied ? _messages.default.linkedCopiedToProfile : _messages.default.copyLinkToProfile)), isAbleToGovernAgents && (0, _platformFeatureFlags.fg)('rovo_agents_agent_verification') && /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
199
+ onClick: function onClick() {}
200
+ }, formatMessage(isVerified ? _messages.default.unverifyAgent : _messages.default.verifyAgent))), renderEditDelete());
196
201
  };
@@ -60,5 +60,15 @@ var _default = exports.default = (0, _reactIntlNext.defineMessages)({
60
60
  id: 'rovo-chat.view-agents.use-template-button',
61
61
  defaultMessage: 'Use template',
62
62
  description: 'Button to copy and use a template'
63
+ },
64
+ verifyAgent: {
65
+ id: 'rovo-chat.view-agents.verify-agent',
66
+ defaultMessage: 'Verify agent',
67
+ description: 'Button to verify an agent'
68
+ },
69
+ unverifyAgent: {
70
+ id: 'rovo-chat.view-agents.unverify-agent',
71
+ defaultMessage: 'Unverify agent',
72
+ description: 'Button to unverify an agent'
63
73
  }
64
74
  });
@@ -1,4 +1,4 @@
1
- ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._4cvr1h6o{align-items:center}
@@ -18,7 +18,7 @@ var _messages = require("./messages");
18
18
  var _utils = require("./utils");
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var styles = {
21
- count: "_11c81o8v _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
21
+ count: "_11c8wadc _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
22
22
  };
23
23
  var AgentStarCount = exports.AgentStarCount = function AgentStarCount(_ref) {
24
24
  var starCount = _ref.starCount,
@@ -1,4 +1,4 @@
1
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
4
4
  ._18zrv77o{padding-inline:var(--ds-space-025,2px)}
@@ -14,7 +14,7 @@ const stylesCompiled = {
14
14
  pillLineHeight: "_vwz47vkz"
15
15
  };
16
16
  const styles = {
17
- button: "_2rko12b0 _11c82smr _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
17
+ button: "_2rko12b0 _11c8fhey _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
18
18
  buttonInline: "_18zrv77o",
19
19
  queryText: "_1nmz1hna _y3gn1e5h",
20
20
  whiteSpacePreWrap: "_o5721jtm"
@@ -28,12 +28,10 @@ export const StarIconButton = ({
28
28
  onMouseEnter: () => setIsHovered(true),
29
29
  onMouseLeave: () => setIsHovered(false)
30
30
  }, isStarred || isHovered ? /*#__PURE__*/React.createElement(StarIconMigration, {
31
- LEGACY_size: "medium",
32
31
  spacing: "spacious",
33
32
  label: formatMessage(messages.removeFromFavouritesLabel),
34
33
  color: "var(--ds-icon-accent-orange, #E06C00)"
35
34
  }) : /*#__PURE__*/React.createElement(StarUnstarredIconMigration, {
36
- LEGACY_size: "medium",
37
35
  spacing: "spacious",
38
36
  label: formatMessage(messages.clickToFavouriteLabel),
39
37
  color: "var(--ds-icon, #292A2E)"
@@ -1,4 +1,4 @@
1
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._qtt8glyw{list-style:none}
4
4
  ._18m915vq{overflow-y:hidden}
@@ -17,7 +17,7 @@ const styles = {
17
17
  conversationStartersListRefresh: "_1bsb1osq",
18
18
  conversationStarterIcon: "_1o9zidpf",
19
19
  conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
20
- button: "_11c82smr _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
20
+ button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
21
21
  };
22
22
  export const getConversationStarters = ({
23
23
  userDefinedConversationStarters: userDefinedConversationStartersParam,
@@ -7,6 +7,7 @@ import { useIntl } from 'react-intl-next';
7
7
  import Button, { IconButton } from '@atlaskit/button/new';
8
8
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
9
9
  import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
10
11
  import { Box, Inline } from '@atlaskit/primitives/compiled';
11
12
  import { ChatPillIcon } from '../../common/ui/chat-icon';
12
13
  import messages from './messages';
@@ -59,7 +60,9 @@ export const AgentDropdownMenu = ({
59
60
  loadAgentPermissions,
60
61
  loadPermissionsOnMount,
61
62
  shouldTriggerStopPropagation,
62
- agentName
63
+ agentName,
64
+ isVerified,
65
+ isAbleToGovernAgents
63
66
  }) => {
64
67
  const [isLoading, setIsLoading] = useState(false);
65
68
  const {
@@ -152,5 +155,7 @@ export const AgentDropdownMenu = ({
152
155
  setHasBeenCopied(true);
153
156
  onCopyAgent === null || onCopyAgent === void 0 ? void 0 : onCopyAgent(e);
154
157
  }
155
- }, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile))), renderEditDelete());
158
+ }, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile)), isAbleToGovernAgents && fg('rovo_agents_agent_verification') && /*#__PURE__*/React.createElement(DropdownItem, {
159
+ onClick: () => {}
160
+ }, formatMessage(isVerified ? messages.unverifyAgent : messages.verifyAgent))), renderEditDelete());
156
161
  };
@@ -54,5 +54,15 @@ export default defineMessages({
54
54
  id: 'rovo-chat.view-agents.use-template-button',
55
55
  defaultMessage: 'Use template',
56
56
  description: 'Button to copy and use a template'
57
+ },
58
+ verifyAgent: {
59
+ id: 'rovo-chat.view-agents.verify-agent',
60
+ defaultMessage: 'Verify agent',
61
+ description: 'Button to verify an agent'
62
+ },
63
+ unverifyAgent: {
64
+ id: 'rovo-chat.view-agents.unverify-agent',
65
+ defaultMessage: 'Unverify agent',
66
+ description: 'Button to unverify an agent'
57
67
  }
58
68
  });
@@ -1,4 +1,4 @@
1
- ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._4cvr1h6o{align-items:center}
@@ -9,7 +9,7 @@ import Skeleton from '@atlaskit/skeleton';
9
9
  import { messages } from './messages';
10
10
  import { formatNumber } from './utils';
11
11
  const styles = {
12
- count: "_11c81o8v _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
12
+ count: "_11c8wadc _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
13
13
  };
14
14
  export const AgentStarCount = ({
15
15
  starCount,
@@ -1,4 +1,4 @@
1
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
4
4
  ._18zrv77o{padding-inline:var(--ds-space-025,2px)}
@@ -16,7 +16,7 @@ var stylesCompiled = {
16
16
  pillLineHeight: "_vwz47vkz"
17
17
  };
18
18
  var styles = {
19
- button: "_2rko12b0 _11c82smr _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
19
+ button: "_2rko12b0 _11c8fhey _189ee4h9 _1dqonqa1 _1h6d1l7x _syazazsu _ca0q12x7 _u5f3utpp _n3td12x7 _19bvutpp _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhksm61 _irr31dpa _1di6fcek",
20
20
  buttonInline: "_18zrv77o",
21
21
  queryText: "_1nmz1hna _y3gn1e5h",
22
22
  whiteSpacePreWrap: "_o5721jtm"
@@ -35,12 +35,10 @@ export var StarIconButton = function StarIconButton(_ref) {
35
35
  return setIsHovered(false);
36
36
  }
37
37
  }, isStarred || isHovered ? /*#__PURE__*/React.createElement(StarIconMigration, {
38
- LEGACY_size: "medium",
39
38
  spacing: "spacious",
40
39
  label: formatMessage(messages.removeFromFavouritesLabel),
41
40
  color: "var(--ds-icon-accent-orange, #E06C00)"
42
41
  }) : /*#__PURE__*/React.createElement(StarUnstarredIconMigration, {
43
- LEGACY_size: "medium",
44
42
  spacing: "spacious",
45
43
  label: formatMessage(messages.clickToFavouriteLabel),
46
44
  color: "var(--ds-icon, #292A2E)"
@@ -1,4 +1,4 @@
1
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._qtt8glyw{list-style:none}
4
4
  ._18m915vq{overflow-y:hidden}
@@ -20,7 +20,7 @@ var styles = {
20
20
  conversationStartersListRefresh: "_1bsb1osq",
21
21
  conversationStarterIcon: "_1o9zidpf",
22
22
  conversationStarterText: "_1reo15vq _18m915vq _1bto1l2s _o5721q9c _1o9zkb7n _1ul9idpf",
23
- button: "_11c82smr _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
23
+ button: "_11c8fhey _2rko12b0 _syazazsu _ca0q12x7 _u5f312x7 _n3td12x7 _19bv12x7 _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _1bsb1osq _bfhksm61 _irr31dpa _1di6fcek"
24
24
  };
25
25
  export var getConversationStarters = function getConversationStarters(_ref) {
26
26
  var userDefinedConversationStartersParam = _ref.userDefinedConversationStarters,
@@ -12,6 +12,7 @@ import { useIntl } from 'react-intl-next';
12
12
  import Button, { IconButton } from '@atlaskit/button/new';
13
13
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
14
14
  import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
15
16
  import { Box, Inline } from '@atlaskit/primitives/compiled';
16
17
  import { ChatPillIcon } from '../../common/ui/chat-icon';
17
18
  import messages from './messages';
@@ -63,7 +64,9 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
63
64
  loadAgentPermissions = _ref2.loadAgentPermissions,
64
65
  loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
65
66
  shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
66
- agentName = _ref2.agentName;
67
+ agentName = _ref2.agentName,
68
+ isVerified = _ref2.isVerified,
69
+ isAbleToGovernAgents = _ref2.isAbleToGovernAgents;
67
70
  var _useState = useState(false),
68
71
  _useState2 = _slicedToArray(_useState, 2),
69
72
  isLoading = _useState2[0],
@@ -183,5 +186,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
183
186
  setHasBeenCopied(true);
184
187
  onCopyAgent === null || onCopyAgent === void 0 || onCopyAgent(e);
185
188
  }
186
- }, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile))), renderEditDelete());
189
+ }, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile)), isAbleToGovernAgents && fg('rovo_agents_agent_verification') && /*#__PURE__*/React.createElement(DropdownItem, {
190
+ onClick: function onClick() {}
191
+ }, formatMessage(isVerified ? messages.unverifyAgent : messages.verifyAgent))), renderEditDelete());
187
192
  };
@@ -54,5 +54,15 @@ export default defineMessages({
54
54
  id: 'rovo-chat.view-agents.use-template-button',
55
55
  defaultMessage: 'Use template',
56
56
  description: 'Button to copy and use a template'
57
+ },
58
+ verifyAgent: {
59
+ id: 'rovo-chat.view-agents.verify-agent',
60
+ defaultMessage: 'Verify agent',
61
+ description: 'Button to verify an agent'
62
+ },
63
+ unverifyAgent: {
64
+ id: 'rovo-chat.view-agents.unverify-agent',
65
+ defaultMessage: 'Unverify agent',
66
+ description: 'Button to unverify an agent'
57
67
  }
58
68
  });
@@ -1,4 +1,4 @@
1
- ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._4cvr1h6o{align-items:center}
@@ -9,7 +9,7 @@ import Skeleton from '@atlaskit/skeleton';
9
9
  import { messages } from './messages';
10
10
  import { formatNumber } from './utils';
11
11
  var styles = {
12
- count: "_11c81o8v _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
12
+ count: "_11c8wadc _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
13
13
  };
14
14
  export var AgentStarCount = function AgentStarCount(_ref) {
15
15
  var starCount = _ref.starCount,
@@ -45,6 +45,8 @@ type AgentDropdownMenuProps = {
45
45
  isEditEnabled: boolean;
46
46
  isDeleteEnabled: boolean;
47
47
  }>;
48
+ isVerified?: boolean | null;
49
+ isAbleToGovernAgents?: boolean | null;
48
50
  } & ViewAgentOptionProps & ViewAgentFullProfileProps;
49
- export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, }: AgentDropdownMenuProps) => JSX.Element;
51
+ export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, isVerified, isAbleToGovernAgents, }: AgentDropdownMenuProps) => JSX.Element;
50
52
  export {};
@@ -54,5 +54,15 @@ declare const _default: {
54
54
  readonly defaultMessage: "Use template";
55
55
  readonly description: "Button to copy and use a template";
56
56
  };
57
+ readonly verifyAgent: {
58
+ readonly id: "rovo-chat.view-agents.verify-agent";
59
+ readonly defaultMessage: "Verify agent";
60
+ readonly description: "Button to verify an agent";
61
+ };
62
+ readonly unverifyAgent: {
63
+ readonly id: "rovo-chat.view-agents.unverify-agent";
64
+ readonly defaultMessage: "Unverify agent";
65
+ readonly description: "Button to unverify an agent";
66
+ };
57
67
  };
58
68
  export default _default;
@@ -45,6 +45,8 @@ type AgentDropdownMenuProps = {
45
45
  isEditEnabled: boolean;
46
46
  isDeleteEnabled: boolean;
47
47
  }>;
48
+ isVerified?: boolean | null;
49
+ isAbleToGovernAgents?: boolean | null;
48
50
  } & ViewAgentOptionProps & ViewAgentFullProfileProps;
49
- export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, }: AgentDropdownMenuProps) => JSX.Element;
51
+ export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, isVerified, isAbleToGovernAgents, }: AgentDropdownMenuProps) => JSX.Element;
50
52
  export {};
@@ -54,5 +54,15 @@ declare const _default: {
54
54
  readonly defaultMessage: "Use template";
55
55
  readonly description: "Button to copy and use a template";
56
56
  };
57
+ readonly verifyAgent: {
58
+ readonly id: "rovo-chat.view-agents.verify-agent";
59
+ readonly defaultMessage: "Verify agent";
60
+ readonly description: "Button to verify an agent";
61
+ };
62
+ readonly unverifyAgent: {
63
+ readonly id: "rovo-chat.view-agents.unverify-agent";
64
+ readonly defaultMessage: "Unverify agent";
65
+ readonly description: "Button to unverify an agent";
66
+ };
57
67
  };
58
68
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.18.0",
3
+ "version": "3.19.0",
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",
@@ -41,12 +41,12 @@
41
41
  "@atlaskit/heading": "^5.2.0",
42
42
  "@atlaskit/icon": "^29.4.0",
43
43
  "@atlaskit/link": "^3.3.0",
44
- "@atlaskit/logo": "^19.9.0",
44
+ "@atlaskit/logo": "^19.10.0",
45
45
  "@atlaskit/platform-feature-flags": "^1.1.0",
46
- "@atlaskit/primitives": "^17.0.0",
46
+ "@atlaskit/primitives": "^17.1.0",
47
47
  "@atlaskit/skeleton": "^2.1.0",
48
- "@atlaskit/tokens": "^9.1.0",
49
- "@atlaskit/tooltip": "^20.12.0",
48
+ "@atlaskit/tokens": "^10.0.0",
49
+ "@atlaskit/tooltip": "^20.14.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@compiled/react": "^0.18.6",
52
52
  "react-dom": "^18.2.0",
@@ -62,8 +62,7 @@
62
62
  "@atlaskit/ssr": "workspace:^",
63
63
  "@atlassian/feature-flags-test-utils": "^1.0.0",
64
64
  "@atlassian/testing-library": "^0.4.0",
65
- "@testing-library/react": "^13.4.0",
66
- "@testing-library/react-hooks": "^8.0.1",
65
+ "@testing-library/react": "^16.3.0",
67
66
  "@testing-library/user-event": "^14.4.3",
68
67
  "wait-for-expect": "^1.2.0"
69
68
  },
@@ -120,6 +119,9 @@
120
119
  },
121
120
  "rovo_agent_empty_state_refresh": {
122
121
  "type": "boolean"
122
+ },
123
+ "rovo_agents_agent_verification": {
124
+ "type": "boolean"
123
125
  }
124
126
  }
125
127
  }