@atlaskit/rovo-agent-components 3.20.0 → 3.22.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 +17 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/assets/jsm-rovo-service-agent.js +49 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +29 -0
- package/dist/cjs/ui/agent-avatar/index.js +2 -0
- package/dist/cjs/ui/agent-profile-info/agent-profile-info.stories.js +35 -0
- package/dist/cjs/ui/agent-profile-info/index.js +9 -3
- package/dist/es2019/ui/agent-avatar/generated-avatars/assets/jsm-rovo-service-agent.js +41 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +23 -0
- package/dist/es2019/ui/agent-avatar/index.js +2 -0
- package/dist/es2019/ui/agent-profile-info/agent-profile-info.stories.js +24 -0
- package/dist/es2019/ui/agent-profile-info/index.js +8 -3
- package/dist/esm/ui/agent-avatar/generated-avatars/assets/jsm-rovo-service-agent.js +42 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/index.js +27 -0
- package/dist/esm/ui/agent-avatar/index.js +2 -0
- package/dist/esm/ui/agent-profile-info/agent-profile-info.stories.js +28 -0
- package/dist/esm/ui/agent-profile-info/index.js +9 -3
- package/dist/types/ui/agent-avatar/generated-avatars/assets/jsm-rovo-service-agent.d.ts +4 -0
- package/dist/types/ui/agent-avatar/generated-avatars/index.d.ts +2 -1
- package/dist/types/ui/agent-avatar/index.d.ts +2 -1
- package/dist/types/ui/agent-profile-info/index.d.ts +3 -1
- package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/jsm-rovo-service-agent.d.ts +4 -0
- package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/agent-avatar/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +3 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 3.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`04077f2897e0e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04077f2897e0e) -
|
|
8
|
+
[ux] Changing the UI for the user identity profile card when the user is the Rovo Dev agent.
|
|
9
|
+
Change is feature gated.
|
|
10
|
+
- [`b7e850efc9f82`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b7e850efc9f82) -
|
|
11
|
+
[ux] Rovo agents view profile - show verified icon
|
|
12
|
+
|
|
13
|
+
## 3.21.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`023f008de3d39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/023f008de3d39) -
|
|
18
|
+
Added agent icon for rovo service agent
|
|
19
|
+
|
|
3
20
|
## 3.20.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
20
|
+
d: "M19.2938 1.13426C21.0414 0.127121 23.1945 0.12712 24.9421 1.13426L41.4117 10.6258C43.1593 11.633 44.2359 13.4943 44.2359 15.5085V34.4917C44.2359 36.506 43.1593 38.3673 41.4117 39.3744L24.9421 48.866C23.1945 49.8731 21.0414 49.8731 19.2938 48.866L2.82414 39.3744C1.07656 38.3673 0 36.506 0 34.4917V15.5085C0 13.4943 1.07656 11.633 2.82414 10.6258L19.2938 1.13426Z",
|
|
21
|
+
fill: "#FFC716"
|
|
22
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
23
|
+
d: "M20.4468 9.87926C21.5285 9.2834 22.8488 9.29435 23.9218 9.9121L32.3595 14.7735L34.3604 15.9264C35.4529 16.5553 36.1291 17.7223 36.1291 18.9794V31.0081C36.1291 32.2702 35.457 33.432 34.3613 34.0606L26.5145 38.5816C26.5317 38.5334 26.548 38.4849 26.5636 38.4361C26.7093 37.9854 26.7865 37.5092 26.7865 37.0224V24.9937C26.7865 23.3413 25.9057 21.8174 24.4692 20.9931L23.0198 20.1584L18.6199 17.6245V12.9651C18.6199 12.5979 18.6768 12.2392 18.7844 11.8997C19.049 11.078 19.6118 10.3667 20.3818 9.92259L20.3841 9.92124C20.4062 9.90853 20.4272 9.89442 20.4468 9.87926Z",
|
|
24
|
+
fill: "#101214"
|
|
25
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
26
|
+
d: "M17.7904 11.4175L9.94363 15.9385C8.8479 16.5671 8.17578 17.7289 8.17578 18.991V31.0197C8.17578 32.2768 8.85186 33.4437 9.94434 34.0726L11.8048 35.1446L20.3831 40.087C21.4561 40.7046 22.7764 40.7156 23.8581 40.1198C23.8777 40.1047 23.8986 40.0906 23.9206 40.0779C24.6914 39.6342 25.2551 38.9226 25.5201 38.1005C25.628 37.7606 25.685 37.4016 25.685 37.034V32.3746L21.1444 29.7597L19.8361 29.0062C18.3998 28.1818 17.5184 26.6577 17.5184 25.0053V12.9767C17.5184 12.4906 17.5954 12.015 17.7407 11.5648C17.7564 11.5154 17.773 11.4663 17.7904 11.4175Z",
|
|
27
|
+
fill: "#101214"
|
|
28
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
clipRule: "evenodd",
|
|
31
|
+
d: "M21.1444 29.7597L11.8048 35.1446L9.94434 34.0726C8.85186 33.4437 8.17578 32.2768 8.17578 31.0197V18.991C8.17578 17.7289 8.8479 16.5671 9.94363 15.9385L17.7904 11.4175C17.773 11.4663 17.7564 11.5154 17.7407 11.5648C17.5954 12.015 17.5184 12.4906 17.5184 12.9767V25.0053C17.5184 26.6577 18.3998 28.1818 19.8361 29.0062L21.1444 29.7597Z",
|
|
32
|
+
fill: "#101214"
|
|
33
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
34
|
+
fillRule: "evenodd",
|
|
35
|
+
clipRule: "evenodd",
|
|
36
|
+
d: "M23.0198 20.1584L18.6199 17.6245V12.9651C18.6199 12.5979 18.6768 12.2392 18.7844 11.8997C19.049 11.078 19.6118 10.3667 20.3818 9.92259L20.3841 9.92124C20.4062 9.90853 20.4272 9.89442 20.4468 9.87926C21.5285 9.2834 22.8488 9.29435 23.9218 9.9121L32.3595 14.7735L23.0198 20.1584Z",
|
|
37
|
+
fill: "#101214"
|
|
38
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
39
|
+
fillRule: "evenodd",
|
|
40
|
+
clipRule: "evenodd",
|
|
41
|
+
d: "M34.3604 15.9264L32.3595 14.7735L23.0198 20.1584L24.4692 20.9931C25.9057 21.8174 26.7865 23.3413 26.7865 24.9937V37.0224C26.7865 37.5092 26.7093 37.9854 26.5636 38.4361C26.548 38.4849 26.5317 38.5334 26.5145 38.5816L34.3613 34.0606C35.457 33.432 36.1291 32.2702 36.1291 31.0081V18.9794C36.1291 17.7223 35.4529 16.5553 34.3604 15.9264Z",
|
|
42
|
+
fill: "#101214"
|
|
43
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
44
|
+
fillRule: "evenodd",
|
|
45
|
+
clipRule: "evenodd",
|
|
46
|
+
d: "M21.1444 29.7597L11.8048 35.1446L20.3831 40.087C21.4561 40.7046 22.7764 40.7156 23.8581 40.1198C23.8777 40.1047 23.8986 40.0906 23.9206 40.0779C24.6914 39.6342 25.2551 38.9226 25.5201 38.1005C25.628 37.7606 25.685 37.4016 25.685 37.034V32.3746L21.1444 29.7597Z",
|
|
47
|
+
fill: "#101214"
|
|
48
|
+
}));
|
|
49
|
+
};
|
|
@@ -147,6 +147,11 @@ var TrialGuideAvatar = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
|
147
147
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-rovo-avatar-TrialGuideAvatar"*/'./assets/trial-guide'));
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
|
+
var JsmRovoServiceAgentAvatar = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
151
|
+
return Promise.resolve().then(function () {
|
|
152
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRovoServiceAgentAvatar"*/'./assets/jsm-rovo-service-agent'));
|
|
153
|
+
});
|
|
154
|
+
});
|
|
150
155
|
var yellowColor = exports.yellowColor = {
|
|
151
156
|
primary: '#FCA700',
|
|
152
157
|
secondary: '#FFC716'
|
|
@@ -326,6 +331,16 @@ var outOfTheBoxAgentAvatar = {
|
|
|
326
331
|
});
|
|
327
332
|
},
|
|
328
333
|
color: blueColor
|
|
334
|
+
},
|
|
335
|
+
jsm_rovo_service_agent: {
|
|
336
|
+
getRender: function getRender(size) {
|
|
337
|
+
return /*#__PURE__*/_react.default.createElement(JsmRovoServiceAgentAvatar, {
|
|
338
|
+
size: _avatar.AVATAR_SIZES[size],
|
|
339
|
+
primaryColor: "",
|
|
340
|
+
secondaryColor: ""
|
|
341
|
+
});
|
|
342
|
+
},
|
|
343
|
+
color: yellowColor
|
|
329
344
|
}
|
|
330
345
|
};
|
|
331
346
|
|
|
@@ -360,7 +375,19 @@ var getAvatarRender = function getAvatarRender(_ref3) {
|
|
|
360
375
|
var agentNamedId = _ref3.agentNamedId,
|
|
361
376
|
agentId = _ref3.agentId,
|
|
362
377
|
agentIdentityAccountId = _ref3.agentIdentityAccountId,
|
|
378
|
+
isRovoDev = _ref3.isRovoDev,
|
|
363
379
|
size = _ref3.size;
|
|
380
|
+
if (isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card')) {
|
|
381
|
+
return {
|
|
382
|
+
render: /*#__PURE__*/_react.default.createElement(RovoDevAvatar, {
|
|
383
|
+
size: _avatar.AVATAR_SIZES[size],
|
|
384
|
+
primaryColor: "",
|
|
385
|
+
secondaryColor: ""
|
|
386
|
+
}),
|
|
387
|
+
color: greenColor
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
|
|
364
391
|
//@TODO CRCS-3129: Remove Rovo Dev hardcoded icon after TeamEU demos
|
|
365
392
|
// Handle Rovo Dev agent avatar for TeamEU Demo
|
|
366
393
|
if (agentId === ROVO_DEV_AGENT_ID && (0, _platformFeatureFlags.fg)('jira_ai_force_rovo_dev_avatar')) {
|
|
@@ -418,12 +445,14 @@ var AgentBanner = exports.AgentBanner = function AgentBanner(_ref4) {
|
|
|
418
445
|
var agentNamedId = _ref4.agentNamedId,
|
|
419
446
|
agentId = _ref4.agentId,
|
|
420
447
|
agentIdentityAccountId = _ref4.agentIdentityAccountId,
|
|
448
|
+
isRovoDev = _ref4.isRovoDev,
|
|
421
449
|
height = _ref4.height,
|
|
422
450
|
fillSpace = _ref4.fillSpace;
|
|
423
451
|
var _getAvatarRender = getAvatarRender({
|
|
424
452
|
agentNamedId: agentNamedId,
|
|
425
453
|
agentId: agentId,
|
|
426
454
|
agentIdentityAccountId: agentIdentityAccountId,
|
|
455
|
+
isRovoDev: isRovoDev,
|
|
427
456
|
size: 'medium'
|
|
428
457
|
}),
|
|
429
458
|
color = _getAvatarRender.color;
|
|
@@ -47,6 +47,7 @@ var AgentAvatar = exports.AgentAvatar = function AgentAvatar(_ref) {
|
|
|
47
47
|
agentNamedId = _ref.agentNamedId,
|
|
48
48
|
_ref$showBorder = _ref.showBorder,
|
|
49
49
|
showBorder = _ref$showBorder === void 0 ? true : _ref$showBorder,
|
|
50
|
+
isRovoDev = _ref.isRovoDev,
|
|
50
51
|
isForgeAgent = _ref.isForgeAgent,
|
|
51
52
|
forgeAgentIconUrl = _ref.forgeAgentIconUrl;
|
|
52
53
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
@@ -81,6 +82,7 @@ var AgentAvatar = exports.AgentAvatar = function AgentAvatar(_ref) {
|
|
|
81
82
|
agentId: agentId,
|
|
82
83
|
agentNamedId: agentNamedId,
|
|
83
84
|
agentIdentityAccountId: agentIdentityAccountId,
|
|
85
|
+
isRovoDev: isRovoDev,
|
|
84
86
|
size: size
|
|
85
87
|
}))));
|
|
86
88
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.Default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactMagneticDi = require("react-magnetic-di");
|
|
10
|
+
var _reactRelay = require("react-relay");
|
|
11
|
+
var _storybookDecorators = require("@atlassian/agent-studio-test-utils/storybook-decorators");
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
var commonDeps = [(0, _reactMagneticDi.injectable)(_reactRelay.useFragment, function () {
|
|
14
|
+
return {
|
|
15
|
+
isVerified: true
|
|
16
|
+
};
|
|
17
|
+
})];
|
|
18
|
+
var meta = {
|
|
19
|
+
decorators: [(0, _storybookDecorators.withUseIntl)(), (0, _storybookDecorators.withDi)(commonDeps)]
|
|
20
|
+
};
|
|
21
|
+
var _default = exports.default = meta;
|
|
22
|
+
var Default = exports.Default = {
|
|
23
|
+
render: function render() {
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_index.AgentProfileInfo, {
|
|
25
|
+
agentName: "Code Documentation Writer",
|
|
26
|
+
agentDescription: "Create or modify documentation files in your codebase to ensure that they are up to date",
|
|
27
|
+
creatorRender: /*#__PURE__*/_react.default.createElement("div", null, "Creator Render"),
|
|
28
|
+
starCountRender: /*#__PURE__*/_react.default.createElement("div", null, "Star Count Render"),
|
|
29
|
+
headingRender: /*#__PURE__*/_react.default.createElement("div", null, "Heading Render"),
|
|
30
|
+
isStarred: true,
|
|
31
|
+
isHidden: false,
|
|
32
|
+
onStarToggle: function onStarToggle() {}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -27,7 +27,8 @@ var styles = {
|
|
|
27
27
|
descriptionRefresh: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
28
28
|
wrapper: "_otyru2gc",
|
|
29
29
|
tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
|
|
30
|
-
headingWrapper: "_kqswh2mm"
|
|
30
|
+
headingWrapper: "_kqswh2mm",
|
|
31
|
+
headingContentWrapper: "_195gu2gc"
|
|
31
32
|
};
|
|
32
33
|
var getAgentCreator = exports.getAgentCreator = function getAgentCreator(_ref) {
|
|
33
34
|
var creatorType = _ref.creatorType,
|
|
@@ -148,9 +149,12 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
|
|
|
148
149
|
agentDescription = _ref3.agentDescription,
|
|
149
150
|
creatorRender = _ref3.creatorRender,
|
|
150
151
|
starCountRender = _ref3.starCountRender,
|
|
152
|
+
headingRender = _ref3.headingRender,
|
|
151
153
|
isStarred = _ref3.isStarred,
|
|
152
154
|
isHidden = _ref3.isHidden,
|
|
153
|
-
onStarToggle = _ref3.onStarToggle
|
|
155
|
+
onStarToggle = _ref3.onStarToggle,
|
|
156
|
+
_ref3$showStarButton = _ref3.showStarButton,
|
|
157
|
+
showStarButton = _ref3$showStarButton === void 0 ? true : _ref3$showStarButton;
|
|
154
158
|
var _useIntl2 = (0, _reactIntlNext.useIntl)(),
|
|
155
159
|
formatMessage = _useIntl2.formatMessage;
|
|
156
160
|
return /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
@@ -173,7 +177,9 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
|
|
|
173
177
|
position: "top"
|
|
174
178
|
}, /*#__PURE__*/_react.default.createElement(_hiddenIcon.HiddenIcon, {
|
|
175
179
|
label: formatMessage(_messages.messages.hiddenIcon)
|
|
176
|
-
})))
|
|
180
|
+
}))), headingRender && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
181
|
+
xcss: styles.headingContentWrapper
|
|
182
|
+
}, headingRender)), showStarButton && /*#__PURE__*/_react.default.createElement(_starIconButton.StarIconButton, {
|
|
177
183
|
isStarred: isStarred,
|
|
178
184
|
handleToggle: onStarToggle
|
|
179
185
|
})), creatorRender, !!agentDescription && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
d: "M19.2938 1.13426C21.0414 0.127121 23.1945 0.12712 24.9421 1.13426L41.4117 10.6258C43.1593 11.633 44.2359 13.4943 44.2359 15.5085V34.4917C44.2359 36.506 43.1593 38.3673 41.4117 39.3744L24.9421 48.866C23.1945 49.8731 21.0414 49.8731 19.2938 48.866L2.82414 39.3744C1.07656 38.3673 0 36.506 0 34.4917V15.5085C0 13.4943 1.07656 11.633 2.82414 10.6258L19.2938 1.13426Z",
|
|
14
|
+
fill: "#FFC716"
|
|
15
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16
|
+
d: "M20.4468 9.87926C21.5285 9.2834 22.8488 9.29435 23.9218 9.9121L32.3595 14.7735L34.3604 15.9264C35.4529 16.5553 36.1291 17.7223 36.1291 18.9794V31.0081C36.1291 32.2702 35.457 33.432 34.3613 34.0606L26.5145 38.5816C26.5317 38.5334 26.548 38.4849 26.5636 38.4361C26.7093 37.9854 26.7865 37.5092 26.7865 37.0224V24.9937C26.7865 23.3413 25.9057 21.8174 24.4692 20.9931L23.0198 20.1584L18.6199 17.6245V12.9651C18.6199 12.5979 18.6768 12.2392 18.7844 11.8997C19.049 11.078 19.6118 10.3667 20.3818 9.92259L20.3841 9.92124C20.4062 9.90853 20.4272 9.89442 20.4468 9.87926Z",
|
|
17
|
+
fill: "#101214"
|
|
18
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
d: "M17.7904 11.4175L9.94363 15.9385C8.8479 16.5671 8.17578 17.7289 8.17578 18.991V31.0197C8.17578 32.2768 8.85186 33.4437 9.94434 34.0726L11.8048 35.1446L20.3831 40.087C21.4561 40.7046 22.7764 40.7156 23.8581 40.1198C23.8777 40.1047 23.8986 40.0906 23.9206 40.0779C24.6914 39.6342 25.2551 38.9226 25.5201 38.1005C25.628 37.7606 25.685 37.4016 25.685 37.034V32.3746L21.1444 29.7597L19.8361 29.0062C18.3998 28.1818 17.5184 26.6577 17.5184 25.0053V12.9767C17.5184 12.4906 17.5954 12.015 17.7407 11.5648C17.7564 11.5154 17.773 11.4663 17.7904 11.4175Z",
|
|
20
|
+
fill: "#101214"
|
|
21
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
clipRule: "evenodd",
|
|
24
|
+
d: "M21.1444 29.7597L11.8048 35.1446L9.94434 34.0726C8.85186 33.4437 8.17578 32.2768 8.17578 31.0197V18.991C8.17578 17.7289 8.8479 16.5671 9.94363 15.9385L17.7904 11.4175C17.773 11.4663 17.7564 11.5154 17.7407 11.5648C17.5954 12.015 17.5184 12.4906 17.5184 12.9767V25.0053C17.5184 26.6577 18.3998 28.1818 19.8361 29.0062L21.1444 29.7597Z",
|
|
25
|
+
fill: "#101214"
|
|
26
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
27
|
+
fillRule: "evenodd",
|
|
28
|
+
clipRule: "evenodd",
|
|
29
|
+
d: "M23.0198 20.1584L18.6199 17.6245V12.9651C18.6199 12.5979 18.6768 12.2392 18.7844 11.8997C19.049 11.078 19.6118 10.3667 20.3818 9.92259L20.3841 9.92124C20.4062 9.90853 20.4272 9.89442 20.4468 9.87926C21.5285 9.2834 22.8488 9.29435 23.9218 9.9121L32.3595 14.7735L23.0198 20.1584Z",
|
|
30
|
+
fill: "#101214"
|
|
31
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
d: "M34.3604 15.9264L32.3595 14.7735L23.0198 20.1584L24.4692 20.9931C25.9057 21.8174 26.7865 23.3413 26.7865 24.9937V37.0224C26.7865 37.5092 26.7093 37.9854 26.5636 38.4361C26.548 38.4849 26.5317 38.5334 26.5145 38.5816L34.3613 34.0606C35.457 33.432 36.1291 32.2702 36.1291 31.0081V18.9794C36.1291 17.7223 35.4529 16.5553 34.3604 15.9264Z",
|
|
35
|
+
fill: "#101214"
|
|
36
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
clipRule: "evenodd",
|
|
39
|
+
d: "M21.1444 29.7597L11.8048 35.1446L20.3831 40.087C21.4561 40.7046 22.7764 40.7156 23.8581 40.1198C23.8777 40.1047 23.8986 40.0906 23.9206 40.0779C24.6914 39.6342 25.2551 38.9226 25.5201 38.1005C25.628 37.7606 25.685 37.4016 25.685 37.034V32.3746L21.1444 29.7597Z",
|
|
40
|
+
fill: "#101214"
|
|
41
|
+
})));
|
|
@@ -43,6 +43,7 @@ const SocialMediaScribeAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkN
|
|
|
43
43
|
const TeamConnectionAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-TeamConnectionAvatar"*/'./assets/team-connection'));
|
|
44
44
|
const WorkflowBuilderAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-WorkflowBuilderAvatar"*/'./assets/workflow-builder'));
|
|
45
45
|
const TrialGuideAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-TrialGuideAvatar"*/'./assets/trial-guide'));
|
|
46
|
+
const JsmRovoServiceAgentAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRovoServiceAgentAvatar"*/'./assets/jsm-rovo-service-agent'));
|
|
46
47
|
export const yellowColor = {
|
|
47
48
|
primary: '#FCA700',
|
|
48
49
|
secondary: '#FFC716'
|
|
@@ -190,6 +191,14 @@ const outOfTheBoxAgentAvatar = {
|
|
|
190
191
|
secondaryColor: blueColor.secondary
|
|
191
192
|
}),
|
|
192
193
|
color: blueColor
|
|
194
|
+
},
|
|
195
|
+
jsm_rovo_service_agent: {
|
|
196
|
+
getRender: size => /*#__PURE__*/React.createElement(JsmRovoServiceAgentAvatar, {
|
|
197
|
+
size: AVATAR_SIZES[size],
|
|
198
|
+
primaryColor: "",
|
|
199
|
+
secondaryColor: ""
|
|
200
|
+
}),
|
|
201
|
+
color: yellowColor
|
|
193
202
|
}
|
|
194
203
|
};
|
|
195
204
|
|
|
@@ -225,8 +234,20 @@ const getAvatarRender = ({
|
|
|
225
234
|
agentNamedId,
|
|
226
235
|
agentId,
|
|
227
236
|
agentIdentityAccountId,
|
|
237
|
+
isRovoDev,
|
|
228
238
|
size
|
|
229
239
|
}) => {
|
|
240
|
+
if (isRovoDev && fg('rovo_dev_themed_identity_card')) {
|
|
241
|
+
return {
|
|
242
|
+
render: /*#__PURE__*/React.createElement(RovoDevAvatar, {
|
|
243
|
+
size: AVATAR_SIZES[size],
|
|
244
|
+
primaryColor: "",
|
|
245
|
+
secondaryColor: ""
|
|
246
|
+
}),
|
|
247
|
+
color: greenColor
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
|
|
230
251
|
//@TODO CRCS-3129: Remove Rovo Dev hardcoded icon after TeamEU demos
|
|
231
252
|
// Handle Rovo Dev agent avatar for TeamEU Demo
|
|
232
253
|
if (agentId === ROVO_DEV_AGENT_ID && fg('jira_ai_force_rovo_dev_avatar')) {
|
|
@@ -284,6 +305,7 @@ export const AgentBanner = ({
|
|
|
284
305
|
agentNamedId,
|
|
285
306
|
agentId,
|
|
286
307
|
agentIdentityAccountId,
|
|
308
|
+
isRovoDev,
|
|
287
309
|
height,
|
|
288
310
|
fillSpace
|
|
289
311
|
}) => {
|
|
@@ -293,6 +315,7 @@ export const AgentBanner = ({
|
|
|
293
315
|
agentNamedId,
|
|
294
316
|
agentId,
|
|
295
317
|
agentIdentityAccountId,
|
|
318
|
+
isRovoDev,
|
|
296
319
|
size: 'medium'
|
|
297
320
|
});
|
|
298
321
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -33,6 +33,7 @@ export const AgentAvatar = ({
|
|
|
33
33
|
agentIdentityAccountId,
|
|
34
34
|
agentNamedId,
|
|
35
35
|
showBorder = true,
|
|
36
|
+
isRovoDev,
|
|
36
37
|
isForgeAgent,
|
|
37
38
|
forgeAgentIconUrl
|
|
38
39
|
}) => {
|
|
@@ -73,6 +74,7 @@ export const AgentAvatar = ({
|
|
|
73
74
|
agentId: agentId,
|
|
74
75
|
agentNamedId: agentNamedId,
|
|
75
76
|
agentIdentityAccountId: agentIdentityAccountId,
|
|
77
|
+
isRovoDev: isRovoDev,
|
|
76
78
|
size: size
|
|
77
79
|
}))));
|
|
78
80
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { injectable } from 'react-magnetic-di';
|
|
3
|
+
import { useFragment } from 'react-relay';
|
|
4
|
+
import { withDi, withUseIntl } from '@atlassian/agent-studio-test-utils/storybook-decorators';
|
|
5
|
+
import { AgentProfileInfo } from './index';
|
|
6
|
+
const commonDeps = [injectable(useFragment, () => ({
|
|
7
|
+
isVerified: true
|
|
8
|
+
}))];
|
|
9
|
+
const meta = {
|
|
10
|
+
decorators: [withUseIntl(), withDi(commonDeps)]
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
export const Default = {
|
|
14
|
+
render: () => /*#__PURE__*/React.createElement(AgentProfileInfo, {
|
|
15
|
+
agentName: "Code Documentation Writer",
|
|
16
|
+
agentDescription: "Create or modify documentation files in your codebase to ensure that they are up to date",
|
|
17
|
+
creatorRender: /*#__PURE__*/React.createElement("div", null, "Creator Render"),
|
|
18
|
+
starCountRender: /*#__PURE__*/React.createElement("div", null, "Star Count Render"),
|
|
19
|
+
headingRender: /*#__PURE__*/React.createElement("div", null, "Heading Render"),
|
|
20
|
+
isStarred: true,
|
|
21
|
+
isHidden: false,
|
|
22
|
+
onStarToggle: () => {}
|
|
23
|
+
})
|
|
24
|
+
};
|
|
@@ -20,7 +20,8 @@ const styles = {
|
|
|
20
20
|
descriptionRefresh: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
21
21
|
wrapper: "_otyru2gc",
|
|
22
22
|
tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
|
|
23
|
-
headingWrapper: "_kqswh2mm"
|
|
23
|
+
headingWrapper: "_kqswh2mm",
|
|
24
|
+
headingContentWrapper: "_195gu2gc"
|
|
24
25
|
};
|
|
25
26
|
export const getAgentCreator = ({
|
|
26
27
|
creatorType,
|
|
@@ -140,9 +141,11 @@ export const AgentProfileInfo = ({
|
|
|
140
141
|
agentDescription,
|
|
141
142
|
creatorRender,
|
|
142
143
|
starCountRender,
|
|
144
|
+
headingRender,
|
|
143
145
|
isStarred,
|
|
144
146
|
isHidden,
|
|
145
|
-
onStarToggle
|
|
147
|
+
onStarToggle,
|
|
148
|
+
showStarButton = true
|
|
146
149
|
}) => {
|
|
147
150
|
const {
|
|
148
151
|
formatMessage
|
|
@@ -167,7 +170,9 @@ export const AgentProfileInfo = ({
|
|
|
167
170
|
position: "top"
|
|
168
171
|
}, /*#__PURE__*/React.createElement(HiddenIcon, {
|
|
169
172
|
label: formatMessage(messages.hiddenIcon)
|
|
170
|
-
})))
|
|
173
|
+
}))), headingRender && /*#__PURE__*/React.createElement(Box, {
|
|
174
|
+
xcss: styles.headingContentWrapper
|
|
175
|
+
}, headingRender)), showStarButton && /*#__PURE__*/React.createElement(StarIconButton, {
|
|
171
176
|
isStarred: isStarred,
|
|
172
177
|
handleToggle: onStarToggle
|
|
173
178
|
})), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(Box, {
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
d: "M19.2938 1.13426C21.0414 0.127121 23.1945 0.12712 24.9421 1.13426L41.4117 10.6258C43.1593 11.633 44.2359 13.4943 44.2359 15.5085V34.4917C44.2359 36.506 43.1593 38.3673 41.4117 39.3744L24.9421 48.866C23.1945 49.8731 21.0414 49.8731 19.2938 48.866L2.82414 39.3744C1.07656 38.3673 0 36.506 0 34.4917V15.5085C0 13.4943 1.07656 11.633 2.82414 10.6258L19.2938 1.13426Z",
|
|
14
|
+
fill: "#FFC716"
|
|
15
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16
|
+
d: "M20.4468 9.87926C21.5285 9.2834 22.8488 9.29435 23.9218 9.9121L32.3595 14.7735L34.3604 15.9264C35.4529 16.5553 36.1291 17.7223 36.1291 18.9794V31.0081C36.1291 32.2702 35.457 33.432 34.3613 34.0606L26.5145 38.5816C26.5317 38.5334 26.548 38.4849 26.5636 38.4361C26.7093 37.9854 26.7865 37.5092 26.7865 37.0224V24.9937C26.7865 23.3413 25.9057 21.8174 24.4692 20.9931L23.0198 20.1584L18.6199 17.6245V12.9651C18.6199 12.5979 18.6768 12.2392 18.7844 11.8997C19.049 11.078 19.6118 10.3667 20.3818 9.92259L20.3841 9.92124C20.4062 9.90853 20.4272 9.89442 20.4468 9.87926Z",
|
|
17
|
+
fill: "#101214"
|
|
18
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
d: "M17.7904 11.4175L9.94363 15.9385C8.8479 16.5671 8.17578 17.7289 8.17578 18.991V31.0197C8.17578 32.2768 8.85186 33.4437 9.94434 34.0726L11.8048 35.1446L20.3831 40.087C21.4561 40.7046 22.7764 40.7156 23.8581 40.1198C23.8777 40.1047 23.8986 40.0906 23.9206 40.0779C24.6914 39.6342 25.2551 38.9226 25.5201 38.1005C25.628 37.7606 25.685 37.4016 25.685 37.034V32.3746L21.1444 29.7597L19.8361 29.0062C18.3998 28.1818 17.5184 26.6577 17.5184 25.0053V12.9767C17.5184 12.4906 17.5954 12.015 17.7407 11.5648C17.7564 11.5154 17.773 11.4663 17.7904 11.4175Z",
|
|
20
|
+
fill: "#101214"
|
|
21
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
clipRule: "evenodd",
|
|
24
|
+
d: "M21.1444 29.7597L11.8048 35.1446L9.94434 34.0726C8.85186 33.4437 8.17578 32.2768 8.17578 31.0197V18.991C8.17578 17.7289 8.8479 16.5671 9.94363 15.9385L17.7904 11.4175C17.773 11.4663 17.7564 11.5154 17.7407 11.5648C17.5954 12.015 17.5184 12.4906 17.5184 12.9767V25.0053C17.5184 26.6577 18.3998 28.1818 19.8361 29.0062L21.1444 29.7597Z",
|
|
25
|
+
fill: "#101214"
|
|
26
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
27
|
+
fillRule: "evenodd",
|
|
28
|
+
clipRule: "evenodd",
|
|
29
|
+
d: "M23.0198 20.1584L18.6199 17.6245V12.9651C18.6199 12.5979 18.6768 12.2392 18.7844 11.8997C19.049 11.078 19.6118 10.3667 20.3818 9.92259L20.3841 9.92124C20.4062 9.90853 20.4272 9.89442 20.4468 9.87926C21.5285 9.2834 22.8488 9.29435 23.9218 9.9121L32.3595 14.7735L23.0198 20.1584Z",
|
|
30
|
+
fill: "#101214"
|
|
31
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
d: "M34.3604 15.9264L32.3595 14.7735L23.0198 20.1584L24.4692 20.9931C25.9057 21.8174 26.7865 23.3413 26.7865 24.9937V37.0224C26.7865 37.5092 26.7093 37.9854 26.5636 38.4361C26.548 38.4849 26.5317 38.5334 26.5145 38.5816L34.3613 34.0606C35.457 33.432 36.1291 32.2702 36.1291 31.0081V18.9794C36.1291 17.7223 35.4529 16.5553 34.3604 15.9264Z",
|
|
35
|
+
fill: "#101214"
|
|
36
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
clipRule: "evenodd",
|
|
39
|
+
d: "M21.1444 29.7597L11.8048 35.1446L20.3831 40.087C21.4561 40.7046 22.7764 40.7156 23.8581 40.1198C23.8777 40.1047 23.8986 40.0906 23.9206 40.0779C24.6914 39.6342 25.2551 38.9226 25.5201 38.1005C25.628 37.7606 25.685 37.4016 25.685 37.034V32.3746L21.1444 29.7597Z",
|
|
40
|
+
fill: "#101214"
|
|
41
|
+
}));
|
|
42
|
+
});
|
|
@@ -90,6 +90,9 @@ var WorkflowBuilderAvatar = /*#__PURE__*/lazy(function () {
|
|
|
90
90
|
var TrialGuideAvatar = /*#__PURE__*/lazy(function () {
|
|
91
91
|
return import( /* webpackChunkName: "@atlaskit-rovo-avatar-TrialGuideAvatar"*/'./assets/trial-guide');
|
|
92
92
|
});
|
|
93
|
+
var JsmRovoServiceAgentAvatar = /*#__PURE__*/lazy(function () {
|
|
94
|
+
return import( /* webpackChunkName: "@atlaskit-rovo-avatar-JsmRovoServiceAgentAvatar"*/'./assets/jsm-rovo-service-agent');
|
|
95
|
+
});
|
|
93
96
|
export var yellowColor = {
|
|
94
97
|
primary: '#FCA700',
|
|
95
98
|
secondary: '#FFC716'
|
|
@@ -269,6 +272,16 @@ var outOfTheBoxAgentAvatar = {
|
|
|
269
272
|
});
|
|
270
273
|
},
|
|
271
274
|
color: blueColor
|
|
275
|
+
},
|
|
276
|
+
jsm_rovo_service_agent: {
|
|
277
|
+
getRender: function getRender(size) {
|
|
278
|
+
return /*#__PURE__*/React.createElement(JsmRovoServiceAgentAvatar, {
|
|
279
|
+
size: AVATAR_SIZES[size],
|
|
280
|
+
primaryColor: "",
|
|
281
|
+
secondaryColor: ""
|
|
282
|
+
});
|
|
283
|
+
},
|
|
284
|
+
color: yellowColor
|
|
272
285
|
}
|
|
273
286
|
};
|
|
274
287
|
|
|
@@ -303,7 +316,19 @@ var getAvatarRender = function getAvatarRender(_ref3) {
|
|
|
303
316
|
var agentNamedId = _ref3.agentNamedId,
|
|
304
317
|
agentId = _ref3.agentId,
|
|
305
318
|
agentIdentityAccountId = _ref3.agentIdentityAccountId,
|
|
319
|
+
isRovoDev = _ref3.isRovoDev,
|
|
306
320
|
size = _ref3.size;
|
|
321
|
+
if (isRovoDev && fg('rovo_dev_themed_identity_card')) {
|
|
322
|
+
return {
|
|
323
|
+
render: /*#__PURE__*/React.createElement(RovoDevAvatar, {
|
|
324
|
+
size: AVATAR_SIZES[size],
|
|
325
|
+
primaryColor: "",
|
|
326
|
+
secondaryColor: ""
|
|
327
|
+
}),
|
|
328
|
+
color: greenColor
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
|
|
307
332
|
//@TODO CRCS-3129: Remove Rovo Dev hardcoded icon after TeamEU demos
|
|
308
333
|
// Handle Rovo Dev agent avatar for TeamEU Demo
|
|
309
334
|
if (agentId === ROVO_DEV_AGENT_ID && fg('jira_ai_force_rovo_dev_avatar')) {
|
|
@@ -361,12 +386,14 @@ export var AgentBanner = function AgentBanner(_ref4) {
|
|
|
361
386
|
var agentNamedId = _ref4.agentNamedId,
|
|
362
387
|
agentId = _ref4.agentId,
|
|
363
388
|
agentIdentityAccountId = _ref4.agentIdentityAccountId,
|
|
389
|
+
isRovoDev = _ref4.isRovoDev,
|
|
364
390
|
height = _ref4.height,
|
|
365
391
|
fillSpace = _ref4.fillSpace;
|
|
366
392
|
var _getAvatarRender = getAvatarRender({
|
|
367
393
|
agentNamedId: agentNamedId,
|
|
368
394
|
agentId: agentId,
|
|
369
395
|
agentIdentityAccountId: agentIdentityAccountId,
|
|
396
|
+
isRovoDev: isRovoDev,
|
|
370
397
|
size: 'medium'
|
|
371
398
|
}),
|
|
372
399
|
color = _getAvatarRender.color;
|
|
@@ -38,6 +38,7 @@ export var AgentAvatar = function AgentAvatar(_ref) {
|
|
|
38
38
|
agentNamedId = _ref.agentNamedId,
|
|
39
39
|
_ref$showBorder = _ref.showBorder,
|
|
40
40
|
showBorder = _ref$showBorder === void 0 ? true : _ref$showBorder,
|
|
41
|
+
isRovoDev = _ref.isRovoDev,
|
|
41
42
|
isForgeAgent = _ref.isForgeAgent,
|
|
42
43
|
forgeAgentIconUrl = _ref.forgeAgentIconUrl;
|
|
43
44
|
var _useIntl = useIntl(),
|
|
@@ -72,6 +73,7 @@ export var AgentAvatar = function AgentAvatar(_ref) {
|
|
|
72
73
|
agentId: agentId,
|
|
73
74
|
agentNamedId: agentNamedId,
|
|
74
75
|
agentIdentityAccountId: agentIdentityAccountId,
|
|
76
|
+
isRovoDev: isRovoDev,
|
|
75
77
|
size: size
|
|
76
78
|
}))));
|
|
77
79
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { injectable } from 'react-magnetic-di';
|
|
3
|
+
import { useFragment } from 'react-relay';
|
|
4
|
+
import { withDi, withUseIntl } from '@atlassian/agent-studio-test-utils/storybook-decorators';
|
|
5
|
+
import { AgentProfileInfo } from './index';
|
|
6
|
+
var commonDeps = [injectable(useFragment, function () {
|
|
7
|
+
return {
|
|
8
|
+
isVerified: true
|
|
9
|
+
};
|
|
10
|
+
})];
|
|
11
|
+
var meta = {
|
|
12
|
+
decorators: [withUseIntl(), withDi(commonDeps)]
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
export var Default = {
|
|
16
|
+
render: function render() {
|
|
17
|
+
return /*#__PURE__*/React.createElement(AgentProfileInfo, {
|
|
18
|
+
agentName: "Code Documentation Writer",
|
|
19
|
+
agentDescription: "Create or modify documentation files in your codebase to ensure that they are up to date",
|
|
20
|
+
creatorRender: /*#__PURE__*/React.createElement("div", null, "Creator Render"),
|
|
21
|
+
starCountRender: /*#__PURE__*/React.createElement("div", null, "Star Count Render"),
|
|
22
|
+
headingRender: /*#__PURE__*/React.createElement("div", null, "Heading Render"),
|
|
23
|
+
isStarred: true,
|
|
24
|
+
isHidden: false,
|
|
25
|
+
onStarToggle: function onStarToggle() {}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -20,7 +20,8 @@ var styles = {
|
|
|
20
20
|
descriptionRefresh: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
21
21
|
wrapper: "_otyru2gc",
|
|
22
22
|
tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
|
|
23
|
-
headingWrapper: "_kqswh2mm"
|
|
23
|
+
headingWrapper: "_kqswh2mm",
|
|
24
|
+
headingContentWrapper: "_195gu2gc"
|
|
24
25
|
};
|
|
25
26
|
export var getAgentCreator = function getAgentCreator(_ref) {
|
|
26
27
|
var creatorType = _ref.creatorType,
|
|
@@ -141,9 +142,12 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
|
|
|
141
142
|
agentDescription = _ref3.agentDescription,
|
|
142
143
|
creatorRender = _ref3.creatorRender,
|
|
143
144
|
starCountRender = _ref3.starCountRender,
|
|
145
|
+
headingRender = _ref3.headingRender,
|
|
144
146
|
isStarred = _ref3.isStarred,
|
|
145
147
|
isHidden = _ref3.isHidden,
|
|
146
|
-
onStarToggle = _ref3.onStarToggle
|
|
148
|
+
onStarToggle = _ref3.onStarToggle,
|
|
149
|
+
_ref3$showStarButton = _ref3.showStarButton,
|
|
150
|
+
showStarButton = _ref3$showStarButton === void 0 ? true : _ref3$showStarButton;
|
|
147
151
|
var _useIntl2 = useIntl(),
|
|
148
152
|
formatMessage = _useIntl2.formatMessage;
|
|
149
153
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -166,7 +170,9 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
|
|
|
166
170
|
position: "top"
|
|
167
171
|
}, /*#__PURE__*/React.createElement(HiddenIcon, {
|
|
168
172
|
label: formatMessage(messages.hiddenIcon)
|
|
169
|
-
})))
|
|
173
|
+
}))), headingRender && /*#__PURE__*/React.createElement(Box, {
|
|
174
|
+
xcss: styles.headingContentWrapper
|
|
175
|
+
}, headingRender)), showStarButton && /*#__PURE__*/React.createElement(StarIconButton, {
|
|
170
176
|
isStarred: isStarred,
|
|
171
177
|
handleToggle: onStarToggle
|
|
172
178
|
})), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(Box, {
|
|
@@ -20,6 +20,7 @@ type GeneratedAvatarProps = {
|
|
|
20
20
|
agentNamedId?: string;
|
|
21
21
|
agentId?: string;
|
|
22
22
|
agentIdentityAccountId?: string | null | undefined;
|
|
23
|
+
isRovoDev?: boolean;
|
|
23
24
|
size: SizeType;
|
|
24
25
|
onLoad?: () => void;
|
|
25
26
|
};
|
|
@@ -32,7 +33,7 @@ type GeneratedAvatarProps = {
|
|
|
32
33
|
* cd002f25-46e4-4023-80ff-32e4d90849b4
|
|
33
34
|
*/
|
|
34
35
|
export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId">) => number | null;
|
|
35
|
-
export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentId" | "agentNamedId" | "agentIdentityAccountId"> & {
|
|
36
|
+
export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, isRovoDev, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentId" | "agentNamedId" | "agentIdentityAccountId" | "isRovoDev"> & {
|
|
36
37
|
height?: number;
|
|
37
38
|
fillSpace?: boolean;
|
|
38
39
|
}) => JSX.Element;
|
|
@@ -9,6 +9,7 @@ type AgentAvatarProps = {
|
|
|
9
9
|
agentIdentityAccountId?: string | null | undefined;
|
|
10
10
|
agentNamedId?: string;
|
|
11
11
|
agentId?: string;
|
|
12
|
+
isRovoDev?: boolean;
|
|
12
13
|
isForgeAgent?: boolean;
|
|
13
14
|
forgeAgentIconUrl?: string | null;
|
|
14
15
|
};
|
|
@@ -19,5 +20,5 @@ type AgentAvatarProps = {
|
|
|
19
20
|
* @param agentIdentityAccountId - This is Atlassian identity account ID for the agent(aaid). This id is prioritised to generate random avatar for non OOTB agents
|
|
20
21
|
* @param agentId - This is agent.id
|
|
21
22
|
*/
|
|
22
|
-
export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => JSX.Element;
|
|
23
|
+
export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isRovoDev, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => JSX.Element;
|
|
23
24
|
export {};
|
|
@@ -37,13 +37,15 @@ export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoad
|
|
|
37
37
|
isLoading: boolean;
|
|
38
38
|
onCreatorLinkClick: () => void;
|
|
39
39
|
}) => JSX.Element | null;
|
|
40
|
-
export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, isStarred, isHidden, onStarToggle, }: {
|
|
40
|
+
export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, }: {
|
|
41
41
|
agentName: string;
|
|
42
42
|
agentDescription?: string | null;
|
|
43
43
|
creatorRender: React.ReactNode;
|
|
44
44
|
starCountRender: React.ReactNode;
|
|
45
|
+
headingRender?: React.ReactNode;
|
|
45
46
|
isStarred: boolean;
|
|
46
47
|
isHidden: boolean;
|
|
47
48
|
onStarToggle: () => void;
|
|
49
|
+
showStarButton?: boolean;
|
|
48
50
|
}) => JSX.Element;
|
|
49
51
|
export {};
|
|
@@ -20,6 +20,7 @@ type GeneratedAvatarProps = {
|
|
|
20
20
|
agentNamedId?: string;
|
|
21
21
|
agentId?: string;
|
|
22
22
|
agentIdentityAccountId?: string | null | undefined;
|
|
23
|
+
isRovoDev?: boolean;
|
|
23
24
|
size: SizeType;
|
|
24
25
|
onLoad?: () => void;
|
|
25
26
|
};
|
|
@@ -32,7 +33,7 @@ type GeneratedAvatarProps = {
|
|
|
32
33
|
* cd002f25-46e4-4023-80ff-32e4d90849b4
|
|
33
34
|
*/
|
|
34
35
|
export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId">) => number | null;
|
|
35
|
-
export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentId" | "agentNamedId" | "agentIdentityAccountId"> & {
|
|
36
|
+
export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, isRovoDev, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentId" | "agentNamedId" | "agentIdentityAccountId" | "isRovoDev"> & {
|
|
36
37
|
height?: number;
|
|
37
38
|
fillSpace?: boolean;
|
|
38
39
|
}) => JSX.Element;
|
|
@@ -9,6 +9,7 @@ type AgentAvatarProps = {
|
|
|
9
9
|
agentIdentityAccountId?: string | null | undefined;
|
|
10
10
|
agentNamedId?: string;
|
|
11
11
|
agentId?: string;
|
|
12
|
+
isRovoDev?: boolean;
|
|
12
13
|
isForgeAgent?: boolean;
|
|
13
14
|
forgeAgentIconUrl?: string | null;
|
|
14
15
|
};
|
|
@@ -19,5 +20,5 @@ type AgentAvatarProps = {
|
|
|
19
20
|
* @param agentIdentityAccountId - This is Atlassian identity account ID for the agent(aaid). This id is prioritised to generate random avatar for non OOTB agents
|
|
20
21
|
* @param agentId - This is agent.id
|
|
21
22
|
*/
|
|
22
|
-
export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => JSX.Element;
|
|
23
|
+
export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isRovoDev, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => JSX.Element;
|
|
23
24
|
export {};
|
|
@@ -37,13 +37,15 @@ export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoad
|
|
|
37
37
|
isLoading: boolean;
|
|
38
38
|
onCreatorLinkClick: () => void;
|
|
39
39
|
}) => JSX.Element | null;
|
|
40
|
-
export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, isStarred, isHidden, onStarToggle, }: {
|
|
40
|
+
export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, }: {
|
|
41
41
|
agentName: string;
|
|
42
42
|
agentDescription?: string | null;
|
|
43
43
|
creatorRender: React.ReactNode;
|
|
44
44
|
starCountRender: React.ReactNode;
|
|
45
|
+
headingRender?: React.ReactNode;
|
|
45
46
|
isStarred: boolean;
|
|
46
47
|
isHidden: boolean;
|
|
47
48
|
onStarToggle: () => void;
|
|
49
|
+
showStarButton?: boolean;
|
|
48
50
|
}) => JSX.Element;
|
|
49
51
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.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",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/primitives": "^17.1.0",
|
|
47
47
|
"@atlaskit/skeleton": "^2.1.0",
|
|
48
|
-
"@atlaskit/tokens": "^10.
|
|
48
|
+
"@atlaskit/tokens": "^10.1.0",
|
|
49
49
|
"@atlaskit/tooltip": "^20.14.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@compiled/react": "^0.18.6",
|
|
@@ -127,6 +127,9 @@
|
|
|
127
127
|
"rovo_agent_empty_state_refresh": {
|
|
128
128
|
"type": "boolean"
|
|
129
129
|
},
|
|
130
|
+
"rovo_dev_themed_identity_card": {
|
|
131
|
+
"type": "boolean"
|
|
132
|
+
},
|
|
130
133
|
"rovo_agents_agent_verification": {
|
|
131
134
|
"type": "boolean"
|
|
132
135
|
}
|