@atlaskit/rovo-agent-components 8.3.4 → 8.5.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 +18 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/assets/jsm-request-resolver-agent.js +36 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +10 -1
- package/dist/cjs/ui/agent-profile-info/index.js +6 -3
- package/dist/es2019/ui/agent-avatar/generated-avatars/assets/jsm-request-resolver-agent.js +28 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +6 -1
- package/dist/es2019/ui/agent-profile-info/index.js +5 -3
- package/dist/esm/ui/agent-avatar/generated-avatars/assets/jsm-request-resolver-agent.js +29 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/index.js +8 -1
- package/dist/esm/ui/agent-profile-info/index.js +6 -3
- package/dist/types/ui/agent-avatar/generated-avatars/assets/jsm-request-resolver-agent.d.ts +4 -0
- package/dist/types/ui/agent-profile-info/index.d.ts +5 -1
- package/package.json +5 -2
- package/rovo-agent-components.docs.tsx +0 -71
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 8.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6997a74055219`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6997a74055219) -
|
|
8
|
+
Add profile card on hover in the mentions typeahead for agent mentions
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 8.4.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`4041e39ab85ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4041e39ab85ea) -
|
|
19
|
+
updating icon for rovo service agent
|
|
20
|
+
|
|
3
21
|
## 8.3.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _default = exports.default = function _default(_ref) {
|
|
10
|
+
var _size = _ref.size,
|
|
11
|
+
_primaryColor = _ref.primaryColor,
|
|
12
|
+
_secondaryColor = _ref.secondaryColor;
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
|
+
width: "45",
|
|
15
|
+
height: "50",
|
|
16
|
+
viewBox: "0 0 45 50",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
21
|
+
d: "M11.0157 0.460898C11.6314 0.105482 12.3923 0.105482 13.013 0.460898L21.523 5.35163C22.1437 5.70705 22.5292 6.37283 22.5292 7.08867V16.8551C22.5292 17.571 22.1437 18.2317 21.523 18.5922L13.013 23.4829C12.3973 23.8383 11.6364 23.8383 11.0157 23.4829L2.50569 18.5871C1.88496 18.2317 1.49951 17.566 1.49951 16.8501V7.08366C1.49951 6.36782 1.88496 5.70705 2.50569 5.34663L11.0157 0.460898Z",
|
|
22
|
+
fill: "#FFC716"
|
|
23
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
24
|
+
d: "M3.84986 14.7098C4.04289 15.1401 4.56794 14.9528 4.49615 14.5108C4.3848 13.8824 4.27309 13.2334 4.15956 12.4036C4.02236 11.466 3.91148 11.2263 3.94069 10.581C3.96068 10.0367 4.10395 9.31419 4.32702 8.71544C4.54396 8.11316 4.84457 7.6491 4.96916 7.47579C5.00715 7.42416 5.03417 7.37027 5.06603 7.3151C5.17446 7.1202 5.47274 6.5894 6.00994 6.04123C6.54231 5.49435 7.32845 4.94685 8.13515 4.61149C9.26573 4.11162 10.0514 3.96848 10.4373 3.88063C11.3715 3.69249 12.0695 3.6091 12.774 3.5499C13.1561 3.52525 13.2294 3.04438 12.8197 2.94685C12.0727 2.78942 11.2733 2.76522 10.2578 2.95959C9.86454 3.03906 9.00911 3.07652 7.88492 3.52286C7.70282 3.59756 7.52461 3.68677 7.36125 3.79274C6.64141 4.23955 5.87177 4.82928 5.33811 5.37132C5.07305 5.63928 4.85988 5.88815 4.71112 6.06794C4.56849 6.25126 4.48898 6.36067 4.48898 6.36067C4.48898 6.36067 3.99383 7.02714 3.64767 7.95945C3.2844 8.88598 3.13745 10.0396 3.1331 10.7196C3.11627 11.7399 3.20455 12.2241 3.23748 12.5211C3.36915 13.4186 3.58084 14.0927 3.85824 14.7024L3.84986 14.7098Z",
|
|
25
|
+
fill: "#FFE48F"
|
|
26
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
27
|
+
d: "M19.5854 8.44686C19.3437 8.00893 18.8364 8.24332 18.9582 8.69784C19.1209 9.34352 19.2974 10.0218 19.4832 10.8893C19.6988 11.868 19.8268 12.1135 19.8492 12.7968C19.8686 13.372 19.787 14.1506 19.5988 14.8021C19.4168 15.4573 19.1449 15.9706 19.0365 16.1655C18.9998 16.222 18.9741 16.2807 18.9435 16.3407C18.8512 16.5572 18.5769 17.1386 18.0468 17.7522C17.5216 18.3645 16.722 18.9778 15.8822 19.3635C14.7078 19.9321 13.8874 20.1002 13.4773 20.1945C12.4973 20.4053 11.758 20.4893 11.0122 20.5492C10.6095 20.5742 10.5363 21.0551 10.9714 21.151C11.7596 21.3077 12.6003 21.3312 13.6761 21.1104C14.0861 21.016 14.9935 20.9595 16.1663 20.4431C16.3567 20.361 16.5359 20.256 16.7112 20.1364C17.4532 19.637 18.2398 18.9754 18.7663 18.3679C19.2928 17.7604 19.5879 17.2564 19.5879 17.2564C19.5879 17.2564 19.6162 17.2073 19.6609 17.1228C19.7105 17.037 19.7813 16.9143 19.854 16.7601C20.0152 16.4526 20.191 16.0065 20.3368 15.5061C20.6381 14.5029 20.694 13.2804 20.6493 12.5721C20.5838 11.4961 20.4552 10.9968 20.3978 10.6857C20.1938 9.75047 19.9151 9.05817 19.5877 8.43589L19.5854 8.44686Z",
|
|
28
|
+
fill: "#FFE48F"
|
|
29
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
30
|
+
d: "M18.0742 17.1757H5.49988V15.1554H18.0742V17.1757ZM13.882 7.01954H12.784V7.854H13.2406C15.5456 7.854 16.9822 10.0871 17.2368 12.3781L18.0742 13.9257C13.8915 13.9257 9.68254 13.9257 5.49988 13.9257L6.31097 12.3781C6.56552 10.0871 8.00215 7.854 10.3072 7.854H10.7637V7.01954H9.66577V5.49927H13.882V7.01954Z",
|
|
31
|
+
fill: "#101214"
|
|
32
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
33
|
+
d: "M12.7729 7.82959H13.23C15.5349 7.8296 16.9714 10.0622 17.2261 12.353L17.3052 12.4985H6.22412L6.30029 12.353C6.55495 10.0623 7.99159 7.8297 10.2964 7.82959H10.7534V6.99854H12.7729V7.82959Z",
|
|
34
|
+
fill: "white"
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
@@ -156,6 +156,11 @@ var JsmRovoServiceAgentAvatar = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
|
156
156
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRovoServiceAgentAvatar"*/'./assets/jsm-rovo-service-agent'));
|
|
157
157
|
});
|
|
158
158
|
});
|
|
159
|
+
var JsmRequestResolverAgentAvatar = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
160
|
+
return Promise.resolve().then(function () {
|
|
161
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRequestResolverAgentAvatar"*/'./assets/jsm-request-resolver-agent'));
|
|
162
|
+
});
|
|
163
|
+
});
|
|
159
164
|
|
|
160
165
|
/**
|
|
161
166
|
* OOTB Agents avatars - start
|
|
@@ -469,7 +474,11 @@ var outOfTheBoxAgentAvatar = {
|
|
|
469
474
|
},
|
|
470
475
|
jsm_rovo_service_agent: {
|
|
471
476
|
getRender: function getRender(size) {
|
|
472
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
477
|
+
return (0, _platformFeatureFlags.fg)('rename-rovo-service-to-request-resolver') ? /*#__PURE__*/_react.default.createElement(JsmRequestResolverAgentAvatar, {
|
|
478
|
+
size: _avatar.AVATAR_SIZES[size],
|
|
479
|
+
primaryColor: "",
|
|
480
|
+
secondaryColor: ""
|
|
481
|
+
}) : /*#__PURE__*/_react.default.createElement(JsmRovoServiceAgentAvatar, {
|
|
473
482
|
size: _avatar.AVATAR_SIZES[size],
|
|
474
483
|
primaryColor: "",
|
|
475
484
|
secondaryColor: ""
|
|
@@ -78,7 +78,9 @@ var getAgentCreator = exports.getAgentCreator = function getAgentCreator(_ref) {
|
|
|
78
78
|
var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
79
79
|
var creator = _ref2.creator,
|
|
80
80
|
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
81
|
-
isLoading = _ref2.isLoading
|
|
81
|
+
isLoading = _ref2.isLoading,
|
|
82
|
+
_ref2$showCreatorName = _ref2.showCreatorNameWithoutLink,
|
|
83
|
+
showCreatorNameWithoutLink = _ref2$showCreatorName === void 0 ? false : _ref2$showCreatorName;
|
|
82
84
|
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
83
85
|
formatMessage = _useIntl.formatMessage;
|
|
84
86
|
var getCreatorRender = function getCreatorRender() {
|
|
@@ -108,14 +110,15 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
108
110
|
});
|
|
109
111
|
}
|
|
110
112
|
if (creator.type === 'CUSTOMER') {
|
|
113
|
+
var creatorName = "".concat(creator.name, " ").concat(creator.status === 'inactive' ? formatMessage(_messages.messages.agentDeactivated) : '');
|
|
111
114
|
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
112
|
-
creatorNameWithLink: /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
115
|
+
creatorNameWithLink: showCreatorNameWithoutLink ? creatorName : /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
113
116
|
href: creator.profileLink,
|
|
114
117
|
onClick: function onClick() {
|
|
115
118
|
return onCreatorLinkClick();
|
|
116
119
|
},
|
|
117
120
|
target: "_blank"
|
|
118
|
-
},
|
|
121
|
+
}, creatorName)
|
|
119
122
|
});
|
|
120
123
|
}
|
|
121
124
|
if (creator.type === 'REMOTE_A2A') {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default (({
|
|
3
|
+
size: _size,
|
|
4
|
+
primaryColor: _primaryColor,
|
|
5
|
+
secondaryColor: _secondaryColor
|
|
6
|
+
}) => /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: "45",
|
|
8
|
+
height: "50",
|
|
9
|
+
viewBox: "0 0 45 50",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
"aria-hidden": "true"
|
|
13
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
d: "M11.0157 0.460898C11.6314 0.105482 12.3923 0.105482 13.013 0.460898L21.523 5.35163C22.1437 5.70705 22.5292 6.37283 22.5292 7.08867V16.8551C22.5292 17.571 22.1437 18.2317 21.523 18.5922L13.013 23.4829C12.3973 23.8383 11.6364 23.8383 11.0157 23.4829L2.50569 18.5871C1.88496 18.2317 1.49951 17.566 1.49951 16.8501V7.08366C1.49951 6.36782 1.88496 5.70705 2.50569 5.34663L11.0157 0.460898Z",
|
|
15
|
+
fill: "#FFC716"
|
|
16
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
17
|
+
d: "M3.84986 14.7098C4.04289 15.1401 4.56794 14.9528 4.49615 14.5108C4.3848 13.8824 4.27309 13.2334 4.15956 12.4036C4.02236 11.466 3.91148 11.2263 3.94069 10.581C3.96068 10.0367 4.10395 9.31419 4.32702 8.71544C4.54396 8.11316 4.84457 7.6491 4.96916 7.47579C5.00715 7.42416 5.03417 7.37027 5.06603 7.3151C5.17446 7.1202 5.47274 6.5894 6.00994 6.04123C6.54231 5.49435 7.32845 4.94685 8.13515 4.61149C9.26573 4.11162 10.0514 3.96848 10.4373 3.88063C11.3715 3.69249 12.0695 3.6091 12.774 3.5499C13.1561 3.52525 13.2294 3.04438 12.8197 2.94685C12.0727 2.78942 11.2733 2.76522 10.2578 2.95959C9.86454 3.03906 9.00911 3.07652 7.88492 3.52286C7.70282 3.59756 7.52461 3.68677 7.36125 3.79274C6.64141 4.23955 5.87177 4.82928 5.33811 5.37132C5.07305 5.63928 4.85988 5.88815 4.71112 6.06794C4.56849 6.25126 4.48898 6.36067 4.48898 6.36067C4.48898 6.36067 3.99383 7.02714 3.64767 7.95945C3.2844 8.88598 3.13745 10.0396 3.1331 10.7196C3.11627 11.7399 3.20455 12.2241 3.23748 12.5211C3.36915 13.4186 3.58084 14.0927 3.85824 14.7024L3.84986 14.7098Z",
|
|
18
|
+
fill: "#FFE48F"
|
|
19
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
20
|
+
d: "M19.5854 8.44686C19.3437 8.00893 18.8364 8.24332 18.9582 8.69784C19.1209 9.34352 19.2974 10.0218 19.4832 10.8893C19.6988 11.868 19.8268 12.1135 19.8492 12.7968C19.8686 13.372 19.787 14.1506 19.5988 14.8021C19.4168 15.4573 19.1449 15.9706 19.0365 16.1655C18.9998 16.222 18.9741 16.2807 18.9435 16.3407C18.8512 16.5572 18.5769 17.1386 18.0468 17.7522C17.5216 18.3645 16.722 18.9778 15.8822 19.3635C14.7078 19.9321 13.8874 20.1002 13.4773 20.1945C12.4973 20.4053 11.758 20.4893 11.0122 20.5492C10.6095 20.5742 10.5363 21.0551 10.9714 21.151C11.7596 21.3077 12.6003 21.3312 13.6761 21.1104C14.0861 21.016 14.9935 20.9595 16.1663 20.4431C16.3567 20.361 16.5359 20.256 16.7112 20.1364C17.4532 19.637 18.2398 18.9754 18.7663 18.3679C19.2928 17.7604 19.5879 17.2564 19.5879 17.2564C19.5879 17.2564 19.6162 17.2073 19.6609 17.1228C19.7105 17.037 19.7813 16.9143 19.854 16.7601C20.0152 16.4526 20.191 16.0065 20.3368 15.5061C20.6381 14.5029 20.694 13.2804 20.6493 12.5721C20.5838 11.4961 20.4552 10.9968 20.3978 10.6857C20.1938 9.75047 19.9151 9.05817 19.5877 8.43589L19.5854 8.44686Z",
|
|
21
|
+
fill: "#FFE48F"
|
|
22
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
d: "M18.0742 17.1757H5.49988V15.1554H18.0742V17.1757ZM13.882 7.01954H12.784V7.854H13.2406C15.5456 7.854 16.9822 10.0871 17.2368 12.3781L18.0742 13.9257C13.8915 13.9257 9.68254 13.9257 5.49988 13.9257L6.31097 12.3781C6.56552 10.0871 8.00215 7.854 10.3072 7.854H10.7637V7.01954H9.66577V5.49927H13.882V7.01954Z",
|
|
24
|
+
fill: "#101214"
|
|
25
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
d: "M12.7729 7.82959H13.23C15.5349 7.8296 16.9714 10.0622 17.2261 12.353L17.3052 12.4985H6.22412L6.30029 12.353C6.55495 10.0623 7.99159 7.8297 10.2964 7.82959H10.7534V6.99854H12.7729V7.82959Z",
|
|
27
|
+
fill: "white"
|
|
28
|
+
})));
|
|
@@ -45,6 +45,7 @@ const TeamConnectionAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName
|
|
|
45
45
|
const WorkflowBuilderAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-WorkflowBuilderAvatar"*/'./assets/workflow-builder'));
|
|
46
46
|
const TrialGuideAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-TrialGuideAvatar"*/'./assets/trial-guide'));
|
|
47
47
|
const JsmRovoServiceAgentAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRovoServiceAgentAvatar"*/'./assets/jsm-rovo-service-agent'));
|
|
48
|
+
const JsmRequestResolverAgentAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRequestResolverAgentAvatar"*/'./assets/jsm-request-resolver-agent'));
|
|
48
49
|
|
|
49
50
|
/**
|
|
50
51
|
* OOTB Agents avatars - start
|
|
@@ -263,7 +264,11 @@ const outOfTheBoxAgentAvatar = {
|
|
|
263
264
|
color: blueColor
|
|
264
265
|
},
|
|
265
266
|
jsm_rovo_service_agent: {
|
|
266
|
-
getRender: size => /*#__PURE__*/React.createElement(
|
|
267
|
+
getRender: size => fg('rename-rovo-service-to-request-resolver') ? /*#__PURE__*/React.createElement(JsmRequestResolverAgentAvatar, {
|
|
268
|
+
size: AVATAR_SIZES[size],
|
|
269
|
+
primaryColor: "",
|
|
270
|
+
secondaryColor: ""
|
|
271
|
+
}) : /*#__PURE__*/React.createElement(JsmRovoServiceAgentAvatar, {
|
|
267
272
|
size: AVATAR_SIZES[size],
|
|
268
273
|
primaryColor: "",
|
|
269
274
|
secondaryColor: ""
|
|
@@ -72,7 +72,8 @@ export const getAgentCreator = ({
|
|
|
72
72
|
export const AgentProfileCreator = ({
|
|
73
73
|
creator,
|
|
74
74
|
onCreatorLinkClick,
|
|
75
|
-
isLoading
|
|
75
|
+
isLoading,
|
|
76
|
+
showCreatorNameWithoutLink = false
|
|
76
77
|
}) => {
|
|
77
78
|
const {
|
|
78
79
|
formatMessage
|
|
@@ -104,12 +105,13 @@ export const AgentProfileCreator = ({
|
|
|
104
105
|
});
|
|
105
106
|
}
|
|
106
107
|
if (creator.type === 'CUSTOMER') {
|
|
108
|
+
const creatorName = `${creator.name} ${creator.status === 'inactive' ? formatMessage(messages.agentDeactivated) : ''}`;
|
|
107
109
|
return formatMessage(messages.agentCreatedBy, {
|
|
108
|
-
creatorNameWithLink: /*#__PURE__*/React.createElement(Link, {
|
|
110
|
+
creatorNameWithLink: showCreatorNameWithoutLink ? creatorName : /*#__PURE__*/React.createElement(Link, {
|
|
109
111
|
href: creator.profileLink,
|
|
110
112
|
onClick: () => onCreatorLinkClick(),
|
|
111
113
|
target: "_blank"
|
|
112
|
-
},
|
|
114
|
+
}, creatorName)
|
|
113
115
|
});
|
|
114
116
|
}
|
|
115
117
|
if (creator.type === 'REMOTE_A2A') {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default (function (_ref) {
|
|
3
|
+
var _size = _ref.size,
|
|
4
|
+
_primaryColor = _ref.primaryColor,
|
|
5
|
+
_secondaryColor = _ref.secondaryColor;
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: "45",
|
|
8
|
+
height: "50",
|
|
9
|
+
viewBox: "0 0 45 50",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
"aria-hidden": "true"
|
|
13
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
14
|
+
d: "M11.0157 0.460898C11.6314 0.105482 12.3923 0.105482 13.013 0.460898L21.523 5.35163C22.1437 5.70705 22.5292 6.37283 22.5292 7.08867V16.8551C22.5292 17.571 22.1437 18.2317 21.523 18.5922L13.013 23.4829C12.3973 23.8383 11.6364 23.8383 11.0157 23.4829L2.50569 18.5871C1.88496 18.2317 1.49951 17.566 1.49951 16.8501V7.08366C1.49951 6.36782 1.88496 5.70705 2.50569 5.34663L11.0157 0.460898Z",
|
|
15
|
+
fill: "#FFC716"
|
|
16
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
17
|
+
d: "M3.84986 14.7098C4.04289 15.1401 4.56794 14.9528 4.49615 14.5108C4.3848 13.8824 4.27309 13.2334 4.15956 12.4036C4.02236 11.466 3.91148 11.2263 3.94069 10.581C3.96068 10.0367 4.10395 9.31419 4.32702 8.71544C4.54396 8.11316 4.84457 7.6491 4.96916 7.47579C5.00715 7.42416 5.03417 7.37027 5.06603 7.3151C5.17446 7.1202 5.47274 6.5894 6.00994 6.04123C6.54231 5.49435 7.32845 4.94685 8.13515 4.61149C9.26573 4.11162 10.0514 3.96848 10.4373 3.88063C11.3715 3.69249 12.0695 3.6091 12.774 3.5499C13.1561 3.52525 13.2294 3.04438 12.8197 2.94685C12.0727 2.78942 11.2733 2.76522 10.2578 2.95959C9.86454 3.03906 9.00911 3.07652 7.88492 3.52286C7.70282 3.59756 7.52461 3.68677 7.36125 3.79274C6.64141 4.23955 5.87177 4.82928 5.33811 5.37132C5.07305 5.63928 4.85988 5.88815 4.71112 6.06794C4.56849 6.25126 4.48898 6.36067 4.48898 6.36067C4.48898 6.36067 3.99383 7.02714 3.64767 7.95945C3.2844 8.88598 3.13745 10.0396 3.1331 10.7196C3.11627 11.7399 3.20455 12.2241 3.23748 12.5211C3.36915 13.4186 3.58084 14.0927 3.85824 14.7024L3.84986 14.7098Z",
|
|
18
|
+
fill: "#FFE48F"
|
|
19
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
20
|
+
d: "M19.5854 8.44686C19.3437 8.00893 18.8364 8.24332 18.9582 8.69784C19.1209 9.34352 19.2974 10.0218 19.4832 10.8893C19.6988 11.868 19.8268 12.1135 19.8492 12.7968C19.8686 13.372 19.787 14.1506 19.5988 14.8021C19.4168 15.4573 19.1449 15.9706 19.0365 16.1655C18.9998 16.222 18.9741 16.2807 18.9435 16.3407C18.8512 16.5572 18.5769 17.1386 18.0468 17.7522C17.5216 18.3645 16.722 18.9778 15.8822 19.3635C14.7078 19.9321 13.8874 20.1002 13.4773 20.1945C12.4973 20.4053 11.758 20.4893 11.0122 20.5492C10.6095 20.5742 10.5363 21.0551 10.9714 21.151C11.7596 21.3077 12.6003 21.3312 13.6761 21.1104C14.0861 21.016 14.9935 20.9595 16.1663 20.4431C16.3567 20.361 16.5359 20.256 16.7112 20.1364C17.4532 19.637 18.2398 18.9754 18.7663 18.3679C19.2928 17.7604 19.5879 17.2564 19.5879 17.2564C19.5879 17.2564 19.6162 17.2073 19.6609 17.1228C19.7105 17.037 19.7813 16.9143 19.854 16.7601C20.0152 16.4526 20.191 16.0065 20.3368 15.5061C20.6381 14.5029 20.694 13.2804 20.6493 12.5721C20.5838 11.4961 20.4552 10.9968 20.3978 10.6857C20.1938 9.75047 19.9151 9.05817 19.5877 8.43589L19.5854 8.44686Z",
|
|
21
|
+
fill: "#FFE48F"
|
|
22
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
d: "M18.0742 17.1757H5.49988V15.1554H18.0742V17.1757ZM13.882 7.01954H12.784V7.854H13.2406C15.5456 7.854 16.9822 10.0871 17.2368 12.3781L18.0742 13.9257C13.8915 13.9257 9.68254 13.9257 5.49988 13.9257L6.31097 12.3781C6.56552 10.0871 8.00215 7.854 10.3072 7.854H10.7637V7.01954H9.66577V5.49927H13.882V7.01954Z",
|
|
24
|
+
fill: "#101214"
|
|
25
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
d: "M12.7729 7.82959H13.23C15.5349 7.8296 16.9714 10.0622 17.2261 12.353L17.3052 12.4985H6.22412L6.30029 12.353C6.55495 10.0623 7.99159 7.8297 10.2964 7.82959H10.7534V6.99854H12.7729V7.82959Z",
|
|
27
|
+
fill: "white"
|
|
28
|
+
}));
|
|
29
|
+
});
|
|
@@ -97,6 +97,9 @@ var TrialGuideAvatar = /*#__PURE__*/lazy(function () {
|
|
|
97
97
|
var JsmRovoServiceAgentAvatar = /*#__PURE__*/lazy(function () {
|
|
98
98
|
return import( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRovoServiceAgentAvatar"*/'./assets/jsm-rovo-service-agent');
|
|
99
99
|
});
|
|
100
|
+
var JsmRequestResolverAgentAvatar = /*#__PURE__*/lazy(function () {
|
|
101
|
+
return import( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRequestResolverAgentAvatar"*/'./assets/jsm-request-resolver-agent');
|
|
102
|
+
});
|
|
100
103
|
|
|
101
104
|
/**
|
|
102
105
|
* OOTB Agents avatars - start
|
|
@@ -384,7 +387,11 @@ var outOfTheBoxAgentAvatar = {
|
|
|
384
387
|
},
|
|
385
388
|
jsm_rovo_service_agent: {
|
|
386
389
|
getRender: function getRender(size) {
|
|
387
|
-
return /*#__PURE__*/React.createElement(
|
|
390
|
+
return fg('rename-rovo-service-to-request-resolver') ? /*#__PURE__*/React.createElement(JsmRequestResolverAgentAvatar, {
|
|
391
|
+
size: AVATAR_SIZES[size],
|
|
392
|
+
primaryColor: "",
|
|
393
|
+
secondaryColor: ""
|
|
394
|
+
}) : /*#__PURE__*/React.createElement(JsmRovoServiceAgentAvatar, {
|
|
388
395
|
size: AVATAR_SIZES[size],
|
|
389
396
|
primaryColor: "",
|
|
390
397
|
secondaryColor: ""
|
|
@@ -71,7 +71,9 @@ export var getAgentCreator = function getAgentCreator(_ref) {
|
|
|
71
71
|
export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
72
72
|
var creator = _ref2.creator,
|
|
73
73
|
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
74
|
-
isLoading = _ref2.isLoading
|
|
74
|
+
isLoading = _ref2.isLoading,
|
|
75
|
+
_ref2$showCreatorName = _ref2.showCreatorNameWithoutLink,
|
|
76
|
+
showCreatorNameWithoutLink = _ref2$showCreatorName === void 0 ? false : _ref2$showCreatorName;
|
|
75
77
|
var _useIntl = useIntl(),
|
|
76
78
|
formatMessage = _useIntl.formatMessage;
|
|
77
79
|
var getCreatorRender = function getCreatorRender() {
|
|
@@ -101,14 +103,15 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
|
101
103
|
});
|
|
102
104
|
}
|
|
103
105
|
if (creator.type === 'CUSTOMER') {
|
|
106
|
+
var creatorName = "".concat(creator.name, " ").concat(creator.status === 'inactive' ? formatMessage(messages.agentDeactivated) : '');
|
|
104
107
|
return formatMessage(messages.agentCreatedBy, {
|
|
105
|
-
creatorNameWithLink: /*#__PURE__*/React.createElement(Link, {
|
|
108
|
+
creatorNameWithLink: showCreatorNameWithoutLink ? creatorName : /*#__PURE__*/React.createElement(Link, {
|
|
106
109
|
href: creator.profileLink,
|
|
107
110
|
onClick: function onClick() {
|
|
108
111
|
return onCreatorLinkClick();
|
|
109
112
|
},
|
|
110
113
|
target: "_blank"
|
|
111
|
-
},
|
|
114
|
+
}, creatorName)
|
|
112
115
|
});
|
|
113
116
|
}
|
|
114
117
|
if (creator.type === 'REMOTE_A2A') {
|
|
@@ -29,13 +29,17 @@ export declare const getAgentCreator: ({ creatorType, authoringTeam, userCreator
|
|
|
29
29
|
};
|
|
30
30
|
forgeCreator?: string;
|
|
31
31
|
}) => AgentCreator | undefined;
|
|
32
|
-
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading, }: {
|
|
32
|
+
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading, showCreatorNameWithoutLink, }: {
|
|
33
33
|
/**
|
|
34
34
|
* Get this value from `getAgentCreator`
|
|
35
35
|
*/
|
|
36
36
|
creator?: AgentCreator;
|
|
37
37
|
isLoading: boolean;
|
|
38
38
|
onCreatorLinkClick: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Render the creator as plain text instead of a link.
|
|
41
|
+
*/
|
|
42
|
+
showCreatorNameWithoutLink?: boolean;
|
|
39
43
|
}) => JSX.Element | null;
|
|
40
44
|
export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, renderAdditionalContent, }: {
|
|
41
45
|
agentName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.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
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
6
6
|
"atlassian": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/rovo-agent-analytics": "^6.1.0",
|
|
50
50
|
"@atlaskit/skeleton": "^4.2.0",
|
|
51
51
|
"@atlaskit/spinner": "^20.1.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^147.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^147.1.0",
|
|
53
53
|
"@atlaskit/tokens": "^16.7.0",
|
|
54
54
|
"@atlaskit/tooltip": "^24.0.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
},
|
|
140
140
|
"jira_improve_agent_profile_for_a2a": {
|
|
141
141
|
"type": "boolean"
|
|
142
|
+
},
|
|
143
|
+
"rename-rovo-service-to-request-resolver": {
|
|
144
|
+
"type": "boolean"
|
|
142
145
|
}
|
|
143
146
|
}
|
|
144
147
|
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
|
|
3
|
-
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
4
|
-
|
|
5
|
-
import packageJson from './package.json';
|
|
6
|
-
|
|
7
|
-
const packagePath = path.resolve(__dirname);
|
|
8
|
-
|
|
9
|
-
const documentation: StructuredContentSource = {
|
|
10
|
-
components: [
|
|
11
|
-
{
|
|
12
|
-
name: 'AgentAvatar',
|
|
13
|
-
description:
|
|
14
|
-
'A visual representation of a Rovo agent, supporting both custom images and generated avatars.',
|
|
15
|
-
status: 'general-availability',
|
|
16
|
-
import: {
|
|
17
|
-
name: 'AgentAvatar',
|
|
18
|
-
package: '@atlaskit/rovo-agent-components',
|
|
19
|
-
type: 'named',
|
|
20
|
-
packagePath,
|
|
21
|
-
packageJson,
|
|
22
|
-
},
|
|
23
|
-
usageGuidelines: [
|
|
24
|
-
'Use AgentAvatar to identify a Rovo agent visually.',
|
|
25
|
-
"Supports displaying a custom image or a generated avatar based on the agent's identity.",
|
|
26
|
-
],
|
|
27
|
-
examples: [
|
|
28
|
-
{
|
|
29
|
-
name: 'Basic Avatar',
|
|
30
|
-
description: 'Standard agent avatar display.',
|
|
31
|
-
source: path.resolve(packagePath, './examples/02-agent-avatar.vr.ap.tsx'),
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'Generated Avatar',
|
|
35
|
-
description: 'Agent avatar with a generated image.',
|
|
36
|
-
source: path.resolve(packagePath, './examples/03-agent-avatar-generated.vr.ap.tsx'),
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
keywords: ['rovo', 'agent', 'avatar', 'identity', 'ai'],
|
|
40
|
-
categories: ['media', 'data-display'],
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'AgentProfileInfo',
|
|
44
|
-
description:
|
|
45
|
-
'A component for displaying information about a Rovo agent, including name, description, and star count.',
|
|
46
|
-
status: 'general-availability',
|
|
47
|
-
import: {
|
|
48
|
-
name: 'AgentProfileInfo',
|
|
49
|
-
package: '@atlaskit/rovo-agent-components',
|
|
50
|
-
type: 'named',
|
|
51
|
-
packagePath,
|
|
52
|
-
packageJson,
|
|
53
|
-
},
|
|
54
|
-
usageGuidelines: [
|
|
55
|
-
'Use AgentProfileInfo to show details about a Rovo agent.',
|
|
56
|
-
'Typically used in agent selection or profile views.',
|
|
57
|
-
],
|
|
58
|
-
examples: [
|
|
59
|
-
{
|
|
60
|
-
name: 'Profile Info',
|
|
61
|
-
description: 'Standard agent profile information display.',
|
|
62
|
-
source: path.resolve(packagePath, './examples/01-agent-profile-info.vr.ap.tsx'),
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
keywords: ['rovo', 'agent', 'profile', 'info', 'ai'],
|
|
66
|
-
categories: ['data-display'],
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export default documentation;
|