@atlaskit/rovo-agent-components 10.9.2 → 10.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 10.9.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`080910a39cbbe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/080910a39cbbe) -
8
+ Clean up feature gate `platform_editor_agent_card_fixes`
9
+
10
+ ## 10.9.3
11
+
12
+ ### Patch Changes
13
+
14
+ - [`60a0fe732eef9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/60a0fe732eef9) -
15
+ Render the Codex SVG for `codex_for_jira_agent` through the OOTB avatar mapping.
16
+ - Updated dependencies
17
+
3
18
  ## 10.9.2
4
19
 
5
20
  ### Patch Changes
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = CodexAvatar;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ function CodexAvatar(_ref) {
10
+ var size = _ref.size;
11
+ return /*#__PURE__*/_react.default.createElement("svg", {
12
+ width: size,
13
+ height: size,
14
+ viewBox: "0 0 24 27",
15
+ fill: "none",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ "aria-hidden": "true",
18
+ "data-testid": "codex-agent-avatar"
19
+ }, /*#__PURE__*/_react.default.createElement("use", {
20
+ xlinkHref: "#stroke0_2544_35538",
21
+ fill: "white"
22
+ }), /*#__PURE__*/_react.default.createElement("mask", {
23
+ id: "stroke1_2544_35538",
24
+ maskUnits: "userSpaceOnUse",
25
+ x: "0",
26
+ y: "-0.778564",
27
+ width: "24",
28
+ height: "28",
29
+ fill: "black"
30
+ }, /*#__PURE__*/_react.default.createElement("rect", {
31
+ fill: "white",
32
+ y: "-0.778564",
33
+ width: "24",
34
+ height: "28"
35
+ }), /*#__PURE__*/_react.default.createElement("use", {
36
+ xlinkHref: "#stroke0_2544_35538"
37
+ })), /*#__PURE__*/_react.default.createElement("path", {
38
+ d: "M1.6077 8.26067V18.1822C1.6077 18.8253 1.95077 19.4195 2.5077 19.7411L11.1 24.7018C11.6569 25.0234 12.3431 25.0234 12.9 24.7018L21.4923 19.7411C22.0492 19.4195 22.3923 18.8253 22.3923 18.1822V8.26067C22.3923 7.61759 22.0492 7.02336 21.4923 6.70182L12.9 1.74105C12.3431 1.41951 11.6569 1.41951 11.1 1.74105L2.5077 6.70182C1.95077 7.02336 1.6077 7.61759 1.6077 8.26067Z",
39
+ strokeWidth: "3",
40
+ stroke: "white",
41
+ mask: "url(#stroke1_2544_35538)"
42
+ }), /*#__PURE__*/_react.default.createElement("path", {
43
+ transform: "translate(12 13.2228) scale(1.15) translate(-12 -13.2228)",
44
+ d: "M9.06384 4.56674C9.78641 4.26946 10.573 4.16205 11.3489 4.25474C12.3488 4.36975 13.2398 4.79475 14.0219 5.52976C14.0318 5.53975 14.0458 5.54675 14.0588 5.55075C14.0729 5.55422 14.0877 5.55422 14.1019 5.55075C15.1185 5.28821 16.1946 5.38537 17.1479 5.82575L17.1949 5.84775L17.3109 5.90475C18.3086 6.41047 19.087 7.26377 19.4989 8.30376C19.7078 8.81376 19.8119 9.34476 19.8139 9.89877C19.829 10.3108 19.7838 10.7228 19.6799 11.1218C19.6748 11.1419 19.6748 11.163 19.6801 11.1831C19.6853 11.2032 19.6956 11.2217 19.7099 11.2368C20.3039 11.8438 20.6978 12.5668 20.8929 13.4068C21.1819 14.8318 20.8859 16.1168 20.0059 17.2608L19.8698 17.4268C19.287 18.094 18.522 18.5764 17.6688 18.8149C17.6503 18.8203 17.6333 18.8299 17.6193 18.8431C17.6052 18.8564 17.5945 18.8727 17.5878 18.8908C17.3969 19.4418 17.2048 19.9139 16.8479 20.3848C15.9479 21.5718 14.6258 22.2309 13.1368 22.2228C11.9499 22.2169 10.8979 21.7828 9.97984 20.9209C9.96603 20.9079 9.94904 20.8989 9.93059 20.8946C9.91214 20.8904 9.8929 20.8912 9.87485 20.8968C9.48685 21.0218 9.09485 21.0398 8.67085 21.0348C7.99551 21.0294 7.3303 20.8701 6.72583 20.5688C6.09266 20.2551 5.54139 19.7979 5.11582 19.2339C4.96383 19.0318 4.81282 18.8419 4.70182 18.6169C4.55029 18.308 4.42648 17.9865 4.33182 17.6558C4.13202 16.9034 4.1272 16.1125 4.31782 15.3578C4.32409 15.3398 4.32615 15.3207 4.32382 15.3018C4.3204 15.2833 4.3109 15.2664 4.29682 15.2538C3.83489 14.7862 3.48182 14.2225 3.26282 13.6028C3.11717 13.2211 3.03247 12.8188 3.01182 12.4108C2.97548 11.8734 3.02306 11.3336 3.15282 10.8108C3.48982 9.69877 4.13482 8.82577 5.08583 8.19276C5.29783 8.05176 5.49882 7.94177 5.68683 7.86276C5.90183 7.77376 6.11683 7.69877 6.33283 7.63577C6.34827 7.63097 6.36228 7.62245 6.37362 7.61093C6.38496 7.59941 6.39328 7.58527 6.39783 7.56976C6.56185 6.9808 6.8439 6.43134 7.22684 5.95475C7.70957 5.34176 8.3423 4.86368 9.06384 4.56674ZM12.5459 15.1318C12.3834 15.1409 12.2305 15.2119 12.1187 15.3302C12.0068 15.4485 11.9446 15.6051 11.9446 15.7678C11.9446 15.9306 12.0068 16.0872 12.1187 16.2054C12.2305 16.3237 12.3834 16.3946 12.5459 16.4038H16.1819C16.2684 16.4086 16.355 16.3958 16.4363 16.3661C16.5177 16.3363 16.5922 16.2902 16.6552 16.2307C16.7182 16.1712 16.7683 16.0994 16.8026 16.0198C16.8368 15.9403 16.8546 15.8545 16.8546 15.7678C16.8546 15.6812 16.8368 15.5954 16.8026 15.5158C16.7683 15.4363 16.7182 15.3645 16.6552 15.305C16.5922 15.2453 16.5177 15.1993 16.4363 15.1696C16.355 15.1398 16.2684 15.1269 16.1819 15.1318H12.5459ZM8.46184 10.4528C8.3753 10.3118 8.23733 10.2101 8.07712 10.169C7.91689 10.1279 7.74698 10.1508 7.60333 10.2328C7.45967 10.3147 7.35352 10.4494 7.30733 10.6082C7.26114 10.767 7.27853 10.9376 7.35583 11.0838L8.62784 13.3078L7.36184 15.4438C7.31923 15.5157 7.29119 15.5953 7.27933 15.678C7.26748 15.7608 7.27203 15.845 7.29274 15.926C7.31344 16.007 7.3499 16.0831 7.40002 16.15C7.45014 16.2168 7.51293 16.2731 7.58484 16.3158C7.65674 16.3584 7.73633 16.3864 7.81906 16.3984C7.9018 16.4102 7.98605 16.4056 8.06702 16.3849C8.148 16.3642 8.2241 16.3278 8.29098 16.2776C8.35786 16.2275 8.41423 16.1647 8.45684 16.0927L9.91085 13.6378C9.96817 13.5411 9.99883 13.4309 9.99972 13.3184C10.0006 13.206 9.97165 13.0954 9.91585 12.9978L8.46184 10.4528Z",
45
+ fill: "url(#paint0_linear_2544_35538)"
46
+ }), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("linearGradient", {
47
+ id: "paint0_linear_2544_35538",
48
+ x1: "11.9999",
49
+ y1: "4.22275",
50
+ x2: "11.9999",
51
+ y2: "22.2228",
52
+ gradientUnits: "userSpaceOnUse"
53
+ }, /*#__PURE__*/_react.default.createElement("stop", {
54
+ stopColor: "#B1A7FF"
55
+ }), /*#__PURE__*/_react.default.createElement("stop", {
56
+ offset: "0.5",
57
+ stopColor: "#7A9DFF"
58
+ }), /*#__PURE__*/_react.default.createElement("stop", {
59
+ offset: "1",
60
+ stopColor: "#3941FF"
61
+ })), /*#__PURE__*/_react.default.createElement("path", {
62
+ id: "stroke0_2544_35538",
63
+ d: "M11.1 1.74105C11.6569 1.41951 12.3431 1.41951 12.9 1.74105L21.4923 6.70182C22.0492 7.02336 22.3923 7.61759 22.3923 8.26067V18.1822C22.3923 18.8253 22.0492 19.4195 21.4923 19.7411L12.9 24.7018C12.3431 25.0234 11.6569 25.0234 11.1 24.7018L2.5077 19.7411C1.95077 19.4195 1.6077 18.8253 1.6077 18.1822V8.26067C1.6077 7.61759 1.95077 7.02336 2.5077 6.70182L11.1 1.74105Z"
64
+ })));
65
+ }
@@ -305,6 +305,11 @@ var JsmRequestResolverAgentAvatar = /*#__PURE__*/(0, _react.lazy)(function () {
305
305
  /**
306
306
  * OOTB Agents avatars - start
307
307
  */
308
+ var CodexAvatar = /*#__PURE__*/(0, _react.lazy)(function () {
309
+ return Promise.resolve().then(function () {
310
+ return _interopRequireWildcard(require('./assets/codex'));
311
+ });
312
+ });
308
313
  var AmplitudeAgentAvatar = /*#__PURE__*/(0, _react.lazy)(function () {
309
314
  return Promise.resolve().then(function () {
310
315
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-rovo-avatar-AmplitudeAgentAvatar"*/'./assets/amplitude-agent'));
@@ -518,6 +523,16 @@ var avatarList = [{
518
523
  }];
519
524
  var TOTAL_AVATAR_COMBINATIONS = exports.TOTAL_AVATAR_COMBINATIONS = avatarList.length * colorList.length;
520
525
  var outOfTheBoxAgentAvatar = {
526
+ codex_for_jira_agent: {
527
+ getRender: function getRender(size) {
528
+ return /*#__PURE__*/_react.default.createElement(CodexAvatar, {
529
+ size: _avatarSizes.AVATAR_SIZES[size]
530
+ });
531
+ },
532
+ getColor: function getColor() {
533
+ return blueColor.v1;
534
+ }
535
+ },
521
536
  ai_mate_agent: {
522
537
  getRender: function getRender(size) {
523
538
  return /*#__PURE__*/_react.default.createElement(RovoChatAvatar, {
@@ -13,13 +13,11 @@ var _reactIntl = require("react-intl");
13
13
  var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
14
14
  var _link = _interopRequireDefault(require("@atlaskit/link/link"));
15
15
  var _atlassianIcon = require("@atlaskit/logo/atlassian-icon");
16
- var _icon = require("@atlaskit/logo/rovo/icon");
17
16
  var _fg = require("@atlaskit/platform-feature-flags/fg");
18
17
  var _box = require("@atlaskit/primitives/compiled/box");
19
18
  var _inline = require("@atlaskit/primitives/compiled/inline");
20
19
  var _stack = require("@atlaskit/primitives/compiled/stack");
21
20
  var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
22
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
23
21
  var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
24
22
  var _hiddenIcon = require("../../common/ui/hidden-icon");
25
23
  var _starIconButton = require("../../common/ui/star-icon-button");
@@ -27,7 +25,6 @@ var _isForgeAgent = require("../../common/utils/is-forge-agent");
27
25
  var _messages = require("./messages");
28
26
  var styles = {
29
27
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
30
- rovoIconWrapper: "_1e0c1txw",
31
28
  name: "_1bah1yb4 _4cvr1y6m",
32
29
  description: "_1mouze3t _1i4qfg65 _1nmz1hna",
33
30
  headingWrapper: "_kqswh2mm",
@@ -138,30 +135,9 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
138
135
  return null;
139
136
  };
140
137
  var creatorRender = getCreatorRender();
141
- var hideCreatorIcon = (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') || (0, _fg.fg)('platform_editor_agent_card_fixes');
142
- if ((0, _fg.fg)('jira_improve_agent_profile_for_a2a')) {
143
- var showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
144
- return creatorRender ? /*#__PURE__*/_react.default.createElement(_box.Box, {
145
- xcss: styles.clickableItem
146
- }, showRovoIcon ? /*#__PURE__*/_react.default.createElement(_box.Box, {
147
- xcss: styles.rovoIconWrapper,
148
- testId: "rovo-icon-wrapper",
149
- "aria-hidden": "true"
150
- }, /*#__PURE__*/_react.default.createElement(_icon.RovoIcon, {
151
- appearance: "brand",
152
- size: "small"
153
- })) : null, creatorRender) : null;
154
- }
155
138
  return creatorRender ? /*#__PURE__*/_react.default.createElement(_box.Box, {
156
139
  xcss: styles.clickableItem
157
- }, !hideCreatorIcon && /*#__PURE__*/_react.default.createElement(_box.Box, {
158
- xcss: styles.rovoIconWrapper,
159
- testId: "rovo-icon-wrapper",
160
- "aria-hidden": "true"
161
- }, /*#__PURE__*/_react.default.createElement(_icon.RovoIcon, {
162
- appearance: "brand",
163
- size: "small"
164
- })), creatorRender) : null;
140
+ }, creatorRender) : null;
165
141
  };
166
142
  var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref3) {
167
143
  var agentName = _ref3.agentName,
@@ -0,0 +1,59 @@
1
+ import React from 'react';
2
+ export default function CodexAvatar({
3
+ size
4
+ }) {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ width: size,
7
+ height: size,
8
+ viewBox: "0 0 24 27",
9
+ fill: "none",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ "aria-hidden": "true",
12
+ "data-testid": "codex-agent-avatar"
13
+ }, /*#__PURE__*/React.createElement("use", {
14
+ xlinkHref: "#stroke0_2544_35538",
15
+ fill: "white"
16
+ }), /*#__PURE__*/React.createElement("mask", {
17
+ id: "stroke1_2544_35538",
18
+ maskUnits: "userSpaceOnUse",
19
+ x: "0",
20
+ y: "-0.778564",
21
+ width: "24",
22
+ height: "28",
23
+ fill: "black"
24
+ }, /*#__PURE__*/React.createElement("rect", {
25
+ fill: "white",
26
+ y: "-0.778564",
27
+ width: "24",
28
+ height: "28"
29
+ }), /*#__PURE__*/React.createElement("use", {
30
+ xlinkHref: "#stroke0_2544_35538"
31
+ })), /*#__PURE__*/React.createElement("path", {
32
+ d: "M1.6077 8.26067V18.1822C1.6077 18.8253 1.95077 19.4195 2.5077 19.7411L11.1 24.7018C11.6569 25.0234 12.3431 25.0234 12.9 24.7018L21.4923 19.7411C22.0492 19.4195 22.3923 18.8253 22.3923 18.1822V8.26067C22.3923 7.61759 22.0492 7.02336 21.4923 6.70182L12.9 1.74105C12.3431 1.41951 11.6569 1.41951 11.1 1.74105L2.5077 6.70182C1.95077 7.02336 1.6077 7.61759 1.6077 8.26067Z",
33
+ strokeWidth: "3",
34
+ stroke: "white",
35
+ mask: "url(#stroke1_2544_35538)"
36
+ }), /*#__PURE__*/React.createElement("path", {
37
+ transform: "translate(12 13.2228) scale(1.15) translate(-12 -13.2228)",
38
+ d: "M9.06384 4.56674C9.78641 4.26946 10.573 4.16205 11.3489 4.25474C12.3488 4.36975 13.2398 4.79475 14.0219 5.52976C14.0318 5.53975 14.0458 5.54675 14.0588 5.55075C14.0729 5.55422 14.0877 5.55422 14.1019 5.55075C15.1185 5.28821 16.1946 5.38537 17.1479 5.82575L17.1949 5.84775L17.3109 5.90475C18.3086 6.41047 19.087 7.26377 19.4989 8.30376C19.7078 8.81376 19.8119 9.34476 19.8139 9.89877C19.829 10.3108 19.7838 10.7228 19.6799 11.1218C19.6748 11.1419 19.6748 11.163 19.6801 11.1831C19.6853 11.2032 19.6956 11.2217 19.7099 11.2368C20.3039 11.8438 20.6978 12.5668 20.8929 13.4068C21.1819 14.8318 20.8859 16.1168 20.0059 17.2608L19.8698 17.4268C19.287 18.094 18.522 18.5764 17.6688 18.8149C17.6503 18.8203 17.6333 18.8299 17.6193 18.8431C17.6052 18.8564 17.5945 18.8727 17.5878 18.8908C17.3969 19.4418 17.2048 19.9139 16.8479 20.3848C15.9479 21.5718 14.6258 22.2309 13.1368 22.2228C11.9499 22.2169 10.8979 21.7828 9.97984 20.9209C9.96603 20.9079 9.94904 20.8989 9.93059 20.8946C9.91214 20.8904 9.8929 20.8912 9.87485 20.8968C9.48685 21.0218 9.09485 21.0398 8.67085 21.0348C7.99551 21.0294 7.3303 20.8701 6.72583 20.5688C6.09266 20.2551 5.54139 19.7979 5.11582 19.2339C4.96383 19.0318 4.81282 18.8419 4.70182 18.6169C4.55029 18.308 4.42648 17.9865 4.33182 17.6558C4.13202 16.9034 4.1272 16.1125 4.31782 15.3578C4.32409 15.3398 4.32615 15.3207 4.32382 15.3018C4.3204 15.2833 4.3109 15.2664 4.29682 15.2538C3.83489 14.7862 3.48182 14.2225 3.26282 13.6028C3.11717 13.2211 3.03247 12.8188 3.01182 12.4108C2.97548 11.8734 3.02306 11.3336 3.15282 10.8108C3.48982 9.69877 4.13482 8.82577 5.08583 8.19276C5.29783 8.05176 5.49882 7.94177 5.68683 7.86276C5.90183 7.77376 6.11683 7.69877 6.33283 7.63577C6.34827 7.63097 6.36228 7.62245 6.37362 7.61093C6.38496 7.59941 6.39328 7.58527 6.39783 7.56976C6.56185 6.9808 6.8439 6.43134 7.22684 5.95475C7.70957 5.34176 8.3423 4.86368 9.06384 4.56674ZM12.5459 15.1318C12.3834 15.1409 12.2305 15.2119 12.1187 15.3302C12.0068 15.4485 11.9446 15.6051 11.9446 15.7678C11.9446 15.9306 12.0068 16.0872 12.1187 16.2054C12.2305 16.3237 12.3834 16.3946 12.5459 16.4038H16.1819C16.2684 16.4086 16.355 16.3958 16.4363 16.3661C16.5177 16.3363 16.5922 16.2902 16.6552 16.2307C16.7182 16.1712 16.7683 16.0994 16.8026 16.0198C16.8368 15.9403 16.8546 15.8545 16.8546 15.7678C16.8546 15.6812 16.8368 15.5954 16.8026 15.5158C16.7683 15.4363 16.7182 15.3645 16.6552 15.305C16.5922 15.2453 16.5177 15.1993 16.4363 15.1696C16.355 15.1398 16.2684 15.1269 16.1819 15.1318H12.5459ZM8.46184 10.4528C8.3753 10.3118 8.23733 10.2101 8.07712 10.169C7.91689 10.1279 7.74698 10.1508 7.60333 10.2328C7.45967 10.3147 7.35352 10.4494 7.30733 10.6082C7.26114 10.767 7.27853 10.9376 7.35583 11.0838L8.62784 13.3078L7.36184 15.4438C7.31923 15.5157 7.29119 15.5953 7.27933 15.678C7.26748 15.7608 7.27203 15.845 7.29274 15.926C7.31344 16.007 7.3499 16.0831 7.40002 16.15C7.45014 16.2168 7.51293 16.2731 7.58484 16.3158C7.65674 16.3584 7.73633 16.3864 7.81906 16.3984C7.9018 16.4102 7.98605 16.4056 8.06702 16.3849C8.148 16.3642 8.2241 16.3278 8.29098 16.2776C8.35786 16.2275 8.41423 16.1647 8.45684 16.0927L9.91085 13.6378C9.96817 13.5411 9.99883 13.4309 9.99972 13.3184C10.0006 13.206 9.97165 13.0954 9.91585 12.9978L8.46184 10.4528Z",
39
+ fill: "url(#paint0_linear_2544_35538)"
40
+ }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
41
+ id: "paint0_linear_2544_35538",
42
+ x1: "11.9999",
43
+ y1: "4.22275",
44
+ x2: "11.9999",
45
+ y2: "22.2228",
46
+ gradientUnits: "userSpaceOnUse"
47
+ }, /*#__PURE__*/React.createElement("stop", {
48
+ stopColor: "#B1A7FF"
49
+ }), /*#__PURE__*/React.createElement("stop", {
50
+ offset: "0.5",
51
+ stopColor: "#7A9DFF"
52
+ }), /*#__PURE__*/React.createElement("stop", {
53
+ offset: "1",
54
+ stopColor: "#3941FF"
55
+ })), /*#__PURE__*/React.createElement("path", {
56
+ id: "stroke0_2544_35538",
57
+ d: "M11.1 1.74105C11.6569 1.41951 12.3431 1.41951 12.9 1.74105L21.4923 6.70182C22.0492 7.02336 22.3923 7.61759 22.3923 8.26067V18.1822C22.3923 18.8253 22.0492 19.4195 21.4923 19.7411L12.9 24.7018C12.3431 25.0234 11.6569 25.0234 11.1 24.7018L2.5077 19.7411C1.95077 19.4195 1.6077 18.8253 1.6077 18.1822V8.26067C1.6077 7.61759 1.95077 7.02336 2.5077 6.70182L11.1 1.74105Z"
58
+ })));
59
+ }
@@ -78,6 +78,7 @@ const JsmRequestResolverAgentAvatar = /*#__PURE__*/lazy(() => import( /* webpack
78
78
  /**
79
79
  * OOTB Agents avatars - start
80
80
  */
81
+ const CodexAvatar = /*#__PURE__*/lazy(() => import('./assets/codex'));
81
82
  const AmplitudeAgentAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-AmplitudeAgentAvatar"*/'./assets/amplitude-agent'));
82
83
  const AmplitudeAgentAvatarV2 = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-AmplitudeAgentAvatarV2" */'./assets/amplitude-agent-v2'));
83
84
  const BoxAgentAvatar = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-rovo-avatar-BoxAgentAvatar"*/'./assets/box-agent'));
@@ -219,6 +220,12 @@ const avatarList = [{
219
220
  }];
220
221
  export const TOTAL_AVATAR_COMBINATIONS = avatarList.length * colorList.length;
221
222
  const outOfTheBoxAgentAvatar = {
223
+ codex_for_jira_agent: {
224
+ getRender: size => /*#__PURE__*/React.createElement(CodexAvatar, {
225
+ size: AVATAR_SIZES[size]
226
+ }),
227
+ getColor: () => blueColor.v1
228
+ },
222
229
  ai_mate_agent: {
223
230
  getRender: size => /*#__PURE__*/React.createElement(RovoChatAvatar, {
224
231
  size: AVATAR_SIZES[size],
@@ -6,13 +6,11 @@ import { useIntl } from 'react-intl';
6
6
  import Heading from '@atlaskit/heading/heading';
7
7
  import Link from '@atlaskit/link/link';
8
8
  import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
9
- import { RovoIcon } from '@atlaskit/logo/rovo/icon';
10
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
11
10
  import { Box } from '@atlaskit/primitives/compiled/box';
12
11
  import { Inline } from '@atlaskit/primitives/compiled/inline';
13
12
  import { Stack } from '@atlaskit/primitives/compiled/stack';
14
13
  import Skeleton from '@atlaskit/skeleton';
15
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
14
  import Tooltip from '@atlaskit/tooltip/Tooltip';
17
15
  import { HiddenIcon } from '../../common/ui/hidden-icon';
18
16
  import { StarIconButton } from '../../common/ui/star-icon-button';
@@ -20,7 +18,6 @@ import { isForgeAgentByCreatorType } from '../../common/utils/is-forge-agent';
20
18
  import { messages } from './messages';
21
19
  const styles = {
22
20
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
23
- rovoIconWrapper: "_1e0c1txw",
24
21
  name: "_1bah1yb4 _4cvr1y6m",
25
22
  description: "_1mouze3t _1i4qfg65 _1nmz1hna",
26
23
  headingWrapper: "_kqswh2mm",
@@ -131,30 +128,9 @@ export const AgentProfileCreator = ({
131
128
  return null;
132
129
  };
133
130
  const creatorRender = getCreatorRender();
134
- const hideCreatorIcon = expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes');
135
- if (fg('jira_improve_agent_profile_for_a2a')) {
136
- const showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
137
- return creatorRender ? /*#__PURE__*/React.createElement(Box, {
138
- xcss: styles.clickableItem
139
- }, showRovoIcon ? /*#__PURE__*/React.createElement(Box, {
140
- xcss: styles.rovoIconWrapper,
141
- testId: "rovo-icon-wrapper",
142
- "aria-hidden": "true"
143
- }, /*#__PURE__*/React.createElement(RovoIcon, {
144
- appearance: "brand",
145
- size: "small"
146
- })) : null, creatorRender) : null;
147
- }
148
131
  return creatorRender ? /*#__PURE__*/React.createElement(Box, {
149
132
  xcss: styles.clickableItem
150
- }, !hideCreatorIcon && /*#__PURE__*/React.createElement(Box, {
151
- xcss: styles.rovoIconWrapper,
152
- testId: "rovo-icon-wrapper",
153
- "aria-hidden": "true"
154
- }, /*#__PURE__*/React.createElement(RovoIcon, {
155
- appearance: "brand",
156
- size: "small"
157
- })), creatorRender) : null;
133
+ }, creatorRender) : null;
158
134
  };
159
135
  export const AgentProfileInfo = ({
160
136
  agentName,
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+ export default function CodexAvatar(_ref) {
3
+ var size = _ref.size;
4
+ return /*#__PURE__*/React.createElement("svg", {
5
+ width: size,
6
+ height: size,
7
+ viewBox: "0 0 24 27",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ "aria-hidden": "true",
11
+ "data-testid": "codex-agent-avatar"
12
+ }, /*#__PURE__*/React.createElement("use", {
13
+ xlinkHref: "#stroke0_2544_35538",
14
+ fill: "white"
15
+ }), /*#__PURE__*/React.createElement("mask", {
16
+ id: "stroke1_2544_35538",
17
+ maskUnits: "userSpaceOnUse",
18
+ x: "0",
19
+ y: "-0.778564",
20
+ width: "24",
21
+ height: "28",
22
+ fill: "black"
23
+ }, /*#__PURE__*/React.createElement("rect", {
24
+ fill: "white",
25
+ y: "-0.778564",
26
+ width: "24",
27
+ height: "28"
28
+ }), /*#__PURE__*/React.createElement("use", {
29
+ xlinkHref: "#stroke0_2544_35538"
30
+ })), /*#__PURE__*/React.createElement("path", {
31
+ d: "M1.6077 8.26067V18.1822C1.6077 18.8253 1.95077 19.4195 2.5077 19.7411L11.1 24.7018C11.6569 25.0234 12.3431 25.0234 12.9 24.7018L21.4923 19.7411C22.0492 19.4195 22.3923 18.8253 22.3923 18.1822V8.26067C22.3923 7.61759 22.0492 7.02336 21.4923 6.70182L12.9 1.74105C12.3431 1.41951 11.6569 1.41951 11.1 1.74105L2.5077 6.70182C1.95077 7.02336 1.6077 7.61759 1.6077 8.26067Z",
32
+ strokeWidth: "3",
33
+ stroke: "white",
34
+ mask: "url(#stroke1_2544_35538)"
35
+ }), /*#__PURE__*/React.createElement("path", {
36
+ transform: "translate(12 13.2228) scale(1.15) translate(-12 -13.2228)",
37
+ d: "M9.06384 4.56674C9.78641 4.26946 10.573 4.16205 11.3489 4.25474C12.3488 4.36975 13.2398 4.79475 14.0219 5.52976C14.0318 5.53975 14.0458 5.54675 14.0588 5.55075C14.0729 5.55422 14.0877 5.55422 14.1019 5.55075C15.1185 5.28821 16.1946 5.38537 17.1479 5.82575L17.1949 5.84775L17.3109 5.90475C18.3086 6.41047 19.087 7.26377 19.4989 8.30376C19.7078 8.81376 19.8119 9.34476 19.8139 9.89877C19.829 10.3108 19.7838 10.7228 19.6799 11.1218C19.6748 11.1419 19.6748 11.163 19.6801 11.1831C19.6853 11.2032 19.6956 11.2217 19.7099 11.2368C20.3039 11.8438 20.6978 12.5668 20.8929 13.4068C21.1819 14.8318 20.8859 16.1168 20.0059 17.2608L19.8698 17.4268C19.287 18.094 18.522 18.5764 17.6688 18.8149C17.6503 18.8203 17.6333 18.8299 17.6193 18.8431C17.6052 18.8564 17.5945 18.8727 17.5878 18.8908C17.3969 19.4418 17.2048 19.9139 16.8479 20.3848C15.9479 21.5718 14.6258 22.2309 13.1368 22.2228C11.9499 22.2169 10.8979 21.7828 9.97984 20.9209C9.96603 20.9079 9.94904 20.8989 9.93059 20.8946C9.91214 20.8904 9.8929 20.8912 9.87485 20.8968C9.48685 21.0218 9.09485 21.0398 8.67085 21.0348C7.99551 21.0294 7.3303 20.8701 6.72583 20.5688C6.09266 20.2551 5.54139 19.7979 5.11582 19.2339C4.96383 19.0318 4.81282 18.8419 4.70182 18.6169C4.55029 18.308 4.42648 17.9865 4.33182 17.6558C4.13202 16.9034 4.1272 16.1125 4.31782 15.3578C4.32409 15.3398 4.32615 15.3207 4.32382 15.3018C4.3204 15.2833 4.3109 15.2664 4.29682 15.2538C3.83489 14.7862 3.48182 14.2225 3.26282 13.6028C3.11717 13.2211 3.03247 12.8188 3.01182 12.4108C2.97548 11.8734 3.02306 11.3336 3.15282 10.8108C3.48982 9.69877 4.13482 8.82577 5.08583 8.19276C5.29783 8.05176 5.49882 7.94177 5.68683 7.86276C5.90183 7.77376 6.11683 7.69877 6.33283 7.63577C6.34827 7.63097 6.36228 7.62245 6.37362 7.61093C6.38496 7.59941 6.39328 7.58527 6.39783 7.56976C6.56185 6.9808 6.8439 6.43134 7.22684 5.95475C7.70957 5.34176 8.3423 4.86368 9.06384 4.56674ZM12.5459 15.1318C12.3834 15.1409 12.2305 15.2119 12.1187 15.3302C12.0068 15.4485 11.9446 15.6051 11.9446 15.7678C11.9446 15.9306 12.0068 16.0872 12.1187 16.2054C12.2305 16.3237 12.3834 16.3946 12.5459 16.4038H16.1819C16.2684 16.4086 16.355 16.3958 16.4363 16.3661C16.5177 16.3363 16.5922 16.2902 16.6552 16.2307C16.7182 16.1712 16.7683 16.0994 16.8026 16.0198C16.8368 15.9403 16.8546 15.8545 16.8546 15.7678C16.8546 15.6812 16.8368 15.5954 16.8026 15.5158C16.7683 15.4363 16.7182 15.3645 16.6552 15.305C16.5922 15.2453 16.5177 15.1993 16.4363 15.1696C16.355 15.1398 16.2684 15.1269 16.1819 15.1318H12.5459ZM8.46184 10.4528C8.3753 10.3118 8.23733 10.2101 8.07712 10.169C7.91689 10.1279 7.74698 10.1508 7.60333 10.2328C7.45967 10.3147 7.35352 10.4494 7.30733 10.6082C7.26114 10.767 7.27853 10.9376 7.35583 11.0838L8.62784 13.3078L7.36184 15.4438C7.31923 15.5157 7.29119 15.5953 7.27933 15.678C7.26748 15.7608 7.27203 15.845 7.29274 15.926C7.31344 16.007 7.3499 16.0831 7.40002 16.15C7.45014 16.2168 7.51293 16.2731 7.58484 16.3158C7.65674 16.3584 7.73633 16.3864 7.81906 16.3984C7.9018 16.4102 7.98605 16.4056 8.06702 16.3849C8.148 16.3642 8.2241 16.3278 8.29098 16.2776C8.35786 16.2275 8.41423 16.1647 8.45684 16.0927L9.91085 13.6378C9.96817 13.5411 9.99883 13.4309 9.99972 13.3184C10.0006 13.206 9.97165 13.0954 9.91585 12.9978L8.46184 10.4528Z",
38
+ fill: "url(#paint0_linear_2544_35538)"
39
+ }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
40
+ id: "paint0_linear_2544_35538",
41
+ x1: "11.9999",
42
+ y1: "4.22275",
43
+ x2: "11.9999",
44
+ y2: "22.2228",
45
+ gradientUnits: "userSpaceOnUse"
46
+ }, /*#__PURE__*/React.createElement("stop", {
47
+ stopColor: "#B1A7FF"
48
+ }), /*#__PURE__*/React.createElement("stop", {
49
+ offset: "0.5",
50
+ stopColor: "#7A9DFF"
51
+ }), /*#__PURE__*/React.createElement("stop", {
52
+ offset: "1",
53
+ stopColor: "#3941FF"
54
+ })), /*#__PURE__*/React.createElement("path", {
55
+ id: "stroke0_2544_35538",
56
+ d: "M11.1 1.74105C11.6569 1.41951 12.3431 1.41951 12.9 1.74105L21.4923 6.70182C22.0492 7.02336 22.3923 7.61759 22.3923 8.26067V18.1822C22.3923 18.8253 22.0492 19.4195 21.4923 19.7411L12.9 24.7018C12.3431 25.0234 11.6569 25.0234 11.1 24.7018L2.5077 19.7411C1.95077 19.4195 1.6077 18.8253 1.6077 18.1822V8.26067C1.6077 7.61759 1.95077 7.02336 2.5077 6.70182L11.1 1.74105Z"
57
+ })));
58
+ }
@@ -188,6 +188,9 @@ var JsmRequestResolverAgentAvatar = /*#__PURE__*/lazy(function () {
188
188
  /**
189
189
  * OOTB Agents avatars - start
190
190
  */
191
+ var CodexAvatar = /*#__PURE__*/lazy(function () {
192
+ return import('./assets/codex');
193
+ });
191
194
  var AmplitudeAgentAvatar = /*#__PURE__*/lazy(function () {
192
195
  return import( /* webpackChunkName: "@atlaskit-rovo-avatar-AmplitudeAgentAvatar"*/'./assets/amplitude-agent');
193
196
  });
@@ -365,6 +368,16 @@ var avatarList = [{
365
368
  }];
366
369
  export var TOTAL_AVATAR_COMBINATIONS = avatarList.length * colorList.length;
367
370
  var outOfTheBoxAgentAvatar = {
371
+ codex_for_jira_agent: {
372
+ getRender: function getRender(size) {
373
+ return /*#__PURE__*/React.createElement(CodexAvatar, {
374
+ size: AVATAR_SIZES[size]
375
+ });
376
+ },
377
+ getColor: function getColor() {
378
+ return blueColor.v1;
379
+ }
380
+ },
368
381
  ai_mate_agent: {
369
382
  getRender: function getRender(size) {
370
383
  return /*#__PURE__*/React.createElement(RovoChatAvatar, {
@@ -6,13 +6,11 @@ import { useIntl } from 'react-intl';
6
6
  import Heading from '@atlaskit/heading/heading';
7
7
  import Link from '@atlaskit/link/link';
8
8
  import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
9
- import { RovoIcon } from '@atlaskit/logo/rovo/icon';
10
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
11
10
  import { Box } from '@atlaskit/primitives/compiled/box';
12
11
  import { Inline } from '@atlaskit/primitives/compiled/inline';
13
12
  import { Stack } from '@atlaskit/primitives/compiled/stack';
14
13
  import Skeleton from '@atlaskit/skeleton';
15
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
14
  import Tooltip from '@atlaskit/tooltip/Tooltip';
17
15
  import { HiddenIcon } from '../../common/ui/hidden-icon';
18
16
  import { StarIconButton } from '../../common/ui/star-icon-button';
@@ -20,7 +18,6 @@ import { isForgeAgentByCreatorType } from '../../common/utils/is-forge-agent';
20
18
  import { messages } from './messages';
21
19
  var styles = {
22
20
  clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
23
- rovoIconWrapper: "_1e0c1txw",
24
21
  name: "_1bah1yb4 _4cvr1y6m",
25
22
  description: "_1mouze3t _1i4qfg65 _1nmz1hna",
26
23
  headingWrapper: "_kqswh2mm",
@@ -131,30 +128,9 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
131
128
  return null;
132
129
  };
133
130
  var creatorRender = getCreatorRender();
134
- var hideCreatorIcon = expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') || fg('platform_editor_agent_card_fixes');
135
- if (fg('jira_improve_agent_profile_for_a2a')) {
136
- var showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
137
- return creatorRender ? /*#__PURE__*/React.createElement(Box, {
138
- xcss: styles.clickableItem
139
- }, showRovoIcon ? /*#__PURE__*/React.createElement(Box, {
140
- xcss: styles.rovoIconWrapper,
141
- testId: "rovo-icon-wrapper",
142
- "aria-hidden": "true"
143
- }, /*#__PURE__*/React.createElement(RovoIcon, {
144
- appearance: "brand",
145
- size: "small"
146
- })) : null, creatorRender) : null;
147
- }
148
131
  return creatorRender ? /*#__PURE__*/React.createElement(Box, {
149
132
  xcss: styles.clickableItem
150
- }, !hideCreatorIcon && /*#__PURE__*/React.createElement(Box, {
151
- xcss: styles.rovoIconWrapper,
152
- testId: "rovo-icon-wrapper",
153
- "aria-hidden": "true"
154
- }, /*#__PURE__*/React.createElement(RovoIcon, {
155
- appearance: "brand",
156
- size: "small"
157
- })), creatorRender) : null;
133
+ }, creatorRender) : null;
158
134
  };
159
135
  export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
160
136
  var agentName = _ref3.agentName,
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { AvatarIconProps } from './types';
3
+ export default function CodexAvatar({ size }: Pick<AvatarIconProps, 'size'>): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "10.9.2",
3
+ "version": "10.9.4",
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": {
@@ -86,9 +86,6 @@
86
86
  "platform_editor_agent_mentions_drop_one_fixes": {
87
87
  "type": "boolean"
88
88
  },
89
- "platform_editor_agent_card_fixes": {
90
- "type": "boolean"
91
- },
92
89
  "rovo_chat_bugfix_agent_avatar_squish": {
93
90
  "type": "boolean"
94
91
  },