@atlaskit/rovo-agent-components 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/common/ui/chat-pill/index.compiled.css +25 -0
  3. package/dist/cjs/common/ui/chat-pill/index.js +51 -79
  4. package/dist/cjs/common/ui/link-icon-button/index.compiled.css +1 -0
  5. package/dist/cjs/common/ui/link-icon-button/index.js +16 -9
  6. package/dist/cjs/common/ui/star-icon-button/index.compiled.css +8 -0
  7. package/dist/cjs/common/ui/star-icon-button/index.js +15 -15
  8. package/dist/cjs/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  9. package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +24 -30
  10. package/dist/cjs/ui/agent-avatar/index.compiled.css +9 -0
  11. package/dist/cjs/ui/agent-avatar/index.js +25 -37
  12. package/dist/cjs/ui/agent-dropdown-menu/index.compiled.css +10 -0
  13. package/dist/cjs/ui/agent-dropdown-menu/index.js +33 -43
  14. package/dist/cjs/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  15. package/dist/cjs/ui/agent-profile-info/agent-star-count/index.js +15 -13
  16. package/dist/cjs/ui/agent-profile-info/index.compiled.css +11 -0
  17. package/dist/cjs/ui/agent-profile-info/index.js +38 -49
  18. package/dist/es2019/common/ui/chat-pill/index.compiled.css +25 -0
  19. package/dist/es2019/common/ui/chat-pill/index.js +41 -72
  20. package/dist/es2019/common/ui/link-icon-button/index.compiled.css +1 -0
  21. package/dist/es2019/common/ui/link-icon-button/index.js +10 -6
  22. package/dist/es2019/common/ui/star-icon-button/index.compiled.css +8 -0
  23. package/dist/es2019/common/ui/star-icon-button/index.js +12 -12
  24. package/dist/es2019/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  25. package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +14 -20
  26. package/dist/es2019/ui/agent-avatar/index.compiled.css +9 -0
  27. package/dist/es2019/ui/agent-avatar/index.js +18 -34
  28. package/dist/es2019/ui/agent-dropdown-menu/index.compiled.css +10 -0
  29. package/dist/es2019/ui/agent-dropdown-menu/index.js +18 -28
  30. package/dist/es2019/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  31. package/dist/es2019/ui/agent-profile-info/agent-star-count/index.js +9 -10
  32. package/dist/es2019/ui/agent-profile-info/index.compiled.css +11 -0
  33. package/dist/es2019/ui/agent-profile-info/index.js +19 -33
  34. package/dist/esm/common/ui/chat-pill/index.compiled.css +25 -0
  35. package/dist/esm/common/ui/chat-pill/index.js +41 -72
  36. package/dist/esm/common/ui/link-icon-button/index.compiled.css +1 -0
  37. package/dist/esm/common/ui/link-icon-button/index.js +10 -6
  38. package/dist/esm/common/ui/star-icon-button/index.compiled.css +8 -0
  39. package/dist/esm/common/ui/star-icon-button/index.js +12 -12
  40. package/dist/esm/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  41. package/dist/esm/ui/agent-avatar/generated-avatars/index.js +14 -20
  42. package/dist/esm/ui/agent-avatar/index.compiled.css +9 -0
  43. package/dist/esm/ui/agent-avatar/index.js +18 -34
  44. package/dist/esm/ui/agent-dropdown-menu/index.compiled.css +10 -0
  45. package/dist/esm/ui/agent-dropdown-menu/index.js +18 -28
  46. package/dist/esm/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  47. package/dist/esm/ui/agent-profile-info/agent-star-count/index.js +9 -10
  48. package/dist/esm/ui/agent-profile-info/index.compiled.css +11 -0
  49. package/dist/esm/ui/agent-profile-info/index.js +19 -33
  50. package/dist/types/common/ui/chat-pill/index.d.ts +6 -6
  51. package/dist/types/common/ui/link-icon-button/index.d.ts +7 -2
  52. package/dist/types/common/ui/star-icon-button/index.d.ts +6 -2
  53. package/dist/types/ui/agent-avatar/generated-avatars/index.d.ts +3 -3
  54. package/dist/types/ui/agent-avatar/index.d.ts +2 -2
  55. package/dist/types/ui/agent-dropdown-menu/index.d.ts +3 -3
  56. package/dist/types/ui/agent-profile-info/agent-star-count/index.d.ts +2 -2
  57. package/dist/types/ui/agent-profile-info/index.d.ts +3 -3
  58. package/dist/types-ts4.5/common/ui/chat-pill/index.d.ts +6 -6
  59. package/dist/types-ts4.5/common/ui/link-icon-button/index.d.ts +7 -2
  60. package/dist/types-ts4.5/common/ui/star-icon-button/index.d.ts +6 -2
  61. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/index.d.ts +3 -3
  62. package/dist/types-ts4.5/ui/agent-avatar/index.d.ts +2 -2
  63. package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +3 -3
  64. package/dist/types-ts4.5/ui/agent-profile-info/agent-star-count/index.d.ts +2 -2
  65. package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +3 -3
  66. package/package.json +9 -7
@@ -1,19 +1,19 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import React, { useState } from 'react';
3
+ import "./index.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ import { useState } from 'react';
3
7
  import { useIntl } from 'react-intl-next';
8
+ import { cx } from '@atlaskit/css';
4
9
  import StarIconMigration from '@atlaskit/icon/core/migration/star-starred--star-filled';
5
10
  import StarUnstarredIconMigration from '@atlaskit/icon/core/migration/star-unstarred--star';
6
- import { Pressable, xcss } from '@atlaskit/primitives';
11
+ import { Pressable } from '@atlaskit/primitives/compiled';
7
12
  import messages from './messages';
8
- var pressableStarIconStyles = xcss({
9
- background: 'transparent',
10
- padding: 'space.0',
11
- height: '24px',
12
- width: '24px'
13
- });
14
- var hiddenStyles = xcss({
15
- opacity: 0
16
- });
13
+ var styles = {
14
+ pressableStarIcon: "_bfhk1j28 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _4t3i1tcg _1bsb1tcg",
15
+ hidden: "_tzy4idpf"
16
+ };
17
17
  export var StarIconButton = function StarIconButton(_ref) {
18
18
  var isStarred = _ref.isStarred,
19
19
  handleToggle = _ref.handleToggle,
@@ -26,7 +26,7 @@ export var StarIconButton = function StarIconButton(_ref) {
26
26
  isHovered = _useState2[0],
27
27
  setIsHovered = _useState2[1];
28
28
  return /*#__PURE__*/React.createElement(Pressable, {
29
- xcss: [pressableStarIconStyles, !visible && hiddenStyles],
29
+ xcss: cx(styles.pressableStarIcon, !visible && styles.hidden),
30
30
  onClick: handleToggle,
31
31
  onMouseEnter: function onMouseEnter() {
32
32
  return setIsHovered(true);
@@ -0,0 +1,6 @@
1
+ ._1bah1h6o{justify-content:center}
2
+ ._1bsb1osq{width:100%}
3
+ ._1e0c1txw{display:flex}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._4t3i1osq{height:100%}
6
+ ._5ral1dfr{object-fit:cover}
@@ -1,6 +1,16 @@
1
- import React, { lazy, Suspense } from 'react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import { lazy, Suspense } from 'react';
2
6
  import { AVATAR_SIZES } from '@atlaskit/avatar';
3
- import { Box, xcss } from '@atlaskit/primitives';
7
+ import { cx } from '@atlaskit/css';
8
+ import { Box } from '@atlaskit/primitives/compiled';
9
+ var styles = {
10
+ image: "_5ral1dfr _4t3i1osq _1bsb1osq _1e0c1txw _1bah1h6o _4cvr1h6o",
11
+ banner: "_1bsb1osq",
12
+ bannerFillSpace: "_1bsb1osq _4t3i1osq _5ral1dfr"
13
+ };
4
14
  var AutoDevAvatar = /*#__PURE__*/lazy(function () {
5
15
  return import( /* webpackChunkName: "@atlaskit-rovo-avatar-AutoDevAvatar"*/'./assets/auto-dev');
6
16
  });
@@ -83,14 +93,6 @@ var blueColor = {
83
93
  var colorList = [yellowColor, purpleColor, greenColor, blueColor];
84
94
  var avatarList = [CustomerInsightAvatar, BacklogBuddyAvatar, DecisionDirectorAvatar, CommsCrafterAvatar, AutoDevAvatar, OkrOracleAvatar, CultureAvatar, SocialMediaScribeAvatar, TeamConnectionAvatar, HireWriterAvatar, OpsAgentAvatar, ResearchScoutAvatar, ReleaseNotesAvatar, MyUserManualAvatar, PitchPerfectorAvatar, AutoDevAvatar, AutoFixAvatar, AutoReviewAvatar, MarketingMessageMaestroAvatar, FeatureFlagAvatar, ProductRequirementAvatar];
85
95
  export var TOTAL_AVATAR_COMBINATIONS = avatarList.length * colorList.length;
86
- var imageStyles = xcss({
87
- objectFit: 'cover',
88
- height: '100%',
89
- width: '100%',
90
- display: 'flex',
91
- justifyContent: 'center',
92
- alignItems: 'center'
93
- });
94
96
  var outOfTheBoxAgentAvatar = {
95
97
  decision_director_agent: {
96
98
  getRender: function getRender(size) {
@@ -216,14 +218,6 @@ var getAvatarRender = function getAvatarRender(_ref2) {
216
218
  color: blueColor
217
219
  };
218
220
  };
219
- var bannerStyles = xcss({
220
- width: '100%'
221
- });
222
- var bannerFillSpaceStyles = xcss({
223
- width: '100%',
224
- height: '100%',
225
- objectFit: 'cover'
226
- });
227
221
  export var AgentBanner = function AgentBanner(_ref3) {
228
222
  var agentNamedId = _ref3.agentNamedId,
229
223
  agentId = _ref3.agentId,
@@ -238,7 +232,7 @@ export var AgentBanner = function AgentBanner(_ref3) {
238
232
  }),
239
233
  color = _getAvatarRender.color;
240
234
  return /*#__PURE__*/React.createElement(Box, {
241
- xcss: [bannerStyles, fillSpace ? bannerFillSpaceStyles : undefined],
235
+ xcss: cx(styles.banner, fillSpace ? styles.bannerFillSpace : undefined),
242
236
  style: {
243
237
  backgroundColor: color.primary,
244
238
  height: height ? "".concat(height, "px") : undefined
@@ -250,7 +244,7 @@ export var GeneratedAvatar = function GeneratedAvatar(props) {
250
244
  render = _getAvatarRender2.render,
251
245
  color = _getAvatarRender2.color;
252
246
  return /*#__PURE__*/React.createElement(Box, {
253
- xcss: imageStyles,
247
+ xcss: styles.image,
254
248
  style: {
255
249
  backgroundColor: color.primary
256
250
  }
@@ -0,0 +1,9 @@
1
+ ._1bah1h6o{justify-content:center}
2
+ ._1bsb1lk2{width:95%}
3
+ ._1bsb1osq{width:100%}
4
+ ._1e0c1txw{display:flex}
5
+ ._4cvr1h6o{align-items:center}
6
+ ._4t3i1lk2{height:95%}
7
+ ._4t3i1osq{height:100%}
8
+ ._5ral1dfr{object-fit:cover}
9
+ ._mkrz1k6g{clip-path:polygon(45% 1.33975%,46.5798% .60307%,48.26352% .15192%,50% 0,51.73648% .15192%,53.4202% .60307%,55% 1.33975%,89.64102% 21.33975%,91.06889% 22.33956%,92.30146% 23.57212%,93.30127% 25%,94.03794% 26.5798%,94.48909% 28.26352%,94.64102% 30%,94.64102% 70%,94.48909% 71.73648%,94.03794% 73.4202%,93.30127% 75%,92.30146% 76.42788%,91.06889% 77.66044%,89.64102% 78.66025%,55% 98.66025%,53.4202% 99.39693%,51.73648% 99.84808%,50% 100%,48.26352% 99.84808%,46.5798% 99.39693%,45% 98.66025%,10.35898% 78.66025%,8.93111% 77.66044%,7.69854% 76.42788%,6.69873% 75%,5.96206% 73.4202%,5.51091% 71.73648%,5.35898% 70%,5.35898% 30%,5.51091% 28.26352%,5.96206% 26.5798%,6.69873% 25%,7.69854% 23.57212%,8.93111% 22.33956%,10.35898% 21.33975%)}
@@ -1,37 +1,21 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import "./index.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
2
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import React from 'react';
5
8
  import { AVATAR_SIZES } from '@atlaskit/avatar';
6
- import { Box, xcss } from '@atlaskit/primitives';
9
+ import { Box } from '@atlaskit/primitives/compiled';
7
10
  import { GeneratedAvatar } from './generated-avatars';
8
-
9
- /**
10
- * This solution has been derived from this codepen: https://codepen.io/anyen-ltovn/pen/qBYYzea
11
- */
12
- var agentAvatarStyles = xcss({
13
- display: 'flex',
14
- justifyContent: 'center',
15
- alignItems: 'center',
16
- clipPath: "polygon(45% 1.33975%, 46.5798% 0.60307%, 48.26352% 0.15192%, 50% 0%, 51.73648% 0.15192%, 53.4202% 0.60307%, 55% 1.33975%, 89.64102% 21.33975%, 91.06889% 22.33956%, 92.30146% 23.57212%, 93.30127% 25%, 94.03794% 26.5798%, 94.48909% 28.26352%, 94.64102% 30%, 94.64102% 70%, 94.48909% 71.73648%, 94.03794% 73.4202%, 93.30127% 75%, 92.30146% 76.42788%, 91.06889% 77.66044%, 89.64102% 78.66025%, 55% 98.66025%, 53.4202% 99.39693%, 51.73648% 99.84808%, 50% 100%, 48.26352% 99.84808%, 46.5798% 99.39693%, 45% 98.66025%, 10.35898% 78.66025%, 8.93111% 77.66044%, 7.69854% 76.42788%, 6.69873% 75%, 5.96206% 73.4202%, 5.51091% 71.73648%, 5.35898% 70%, 5.35898% 30%, 5.51091% 28.26352%, 5.96206% 26.5798%, 6.69873% 25%, 7.69854% 23.57212%, 8.93111% 22.33956%, 10.35898% 21.33975%)"
17
- });
18
- var innerShapeStyles = xcss({
19
- height: '95%',
20
- width: '95%',
21
- clipPath: "polygon(45% 1.33975%, 46.5798% 0.60307%, 48.26352% 0.15192%, 50% 0%, 51.73648% 0.15192%, 53.4202% 0.60307%, 55% 1.33975%, 89.64102% 21.33975%, 91.06889% 22.33956%, 92.30146% 23.57212%, 93.30127% 25%, 94.03794% 26.5798%, 94.48909% 28.26352%, 94.64102% 30%, 94.64102% 70%, 94.48909% 71.73648%, 94.03794% 73.4202%, 93.30127% 75%, 92.30146% 76.42788%, 91.06889% 77.66044%, 89.64102% 78.66025%, 55% 98.66025%, 53.4202% 99.39693%, 51.73648% 99.84808%, 50% 100%, 48.26352% 99.84808%, 46.5798% 99.39693%, 45% 98.66025%, 10.35898% 78.66025%, 8.93111% 77.66044%, 7.69854% 76.42788%, 6.69873% 75%, 5.96206% 73.4202%, 5.51091% 71.73648%, 5.35898% 70%, 5.35898% 30%, 5.51091% 28.26352%, 5.96206% 26.5798%, 6.69873% 25%, 7.69854% 23.57212%, 8.93111% 22.33956%, 10.35898% 21.33975%)"
22
- });
23
- var imageStyles = xcss({
24
- objectFit: 'cover',
25
- height: '100%',
26
- width: '100%'
27
- });
28
- var avatarContentContainer = xcss({
29
- width: '100%',
30
- height: '100%',
31
- display: 'flex',
32
- justifyContent: 'center',
33
- alignItems: 'center'
34
- });
11
+ var styles = {
12
+ agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
13
+ image: "_5ral1dfr _4t3i1osq _1bsb1osq",
14
+ avatarContentContainer: "_1bsb1osq _4t3i1osq _1e0c1txw _1bah1h6o _4cvr1h6o"
15
+ };
16
+ var stylesCompiled = {
17
+ innerShape: "_4t3i1lk2 _1bsb1lk2 _mkrz1k6g"
18
+ };
35
19
  export var AgentAvatar = function AgentAvatar(_ref) {
36
20
  var imageUrl = _ref.imageUrl,
37
21
  _ref$size = _ref.size,
@@ -48,7 +32,7 @@ export var AgentAvatar = function AgentAvatar(_ref) {
48
32
  var imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
49
33
  return /*#__PURE__*/React.createElement(Box, {
50
34
  "aria-label": label,
51
- xcss: agentAvatarStyles,
35
+ xcss: styles.agentAvatar,
52
36
  style: _objectSpread({
53
37
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
54
38
  height: AVATAR_SIZES[size],
@@ -57,13 +41,13 @@ export var AgentAvatar = function AgentAvatar(_ref) {
57
41
  }, showBorder ? {
58
42
  backgroundColor: '#fff'
59
43
  } : {})
44
+ }, /*#__PURE__*/React.createElement("div", {
45
+ className: ax([stylesCompiled.innerShape])
60
46
  }, /*#__PURE__*/React.createElement(Box, {
61
- xcss: innerShapeStyles
62
- }, /*#__PURE__*/React.createElement(Box, {
63
- xcss: avatarContentContainer
47
+ xcss: styles.avatarContentContainer
64
48
  }, imgUrl ? /*#__PURE__*/React.createElement(Box, {
65
49
  as: "img",
66
- xcss: imageStyles,
50
+ xcss: styles.image,
67
51
  src: imgUrl,
68
52
  alt: name
69
53
  }) : /*#__PURE__*/React.createElement(GeneratedAvatar, {
@@ -0,0 +1,10 @@
1
+ ._18zrv77o{padding-inline:var(--ds-space-025,2px)}
2
+ ._1bah1h6o{justify-content:center}
3
+ ._1bsb1osq{width:100%}
4
+ ._1e0c1txw{display:flex}
5
+ ._1nmz1hna{word-break:break-word}
6
+ ._1ul9gktf{min-width:20px}
7
+ ._4t3igktf{height:20px}
8
+ ._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
9
+ ._o5721jtm{white-space:pre-wrap}
10
+ ._y3gn1e5h{text-align:left}
@@ -1,58 +1,48 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
4
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
5
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
6
  var _excluded = ["triggerRef"];
7
+ import "./index.compiled.css";
8
+ import * as React from 'react';
9
+ import { ax, ix } from "@compiled/react/runtime";
6
10
  import _regeneratorRuntime from "@babel/runtime/regenerator";
7
- import React, { useEffect, useState } from 'react';
11
+ import { useEffect, useState } from 'react';
8
12
  import { useIntl } from 'react-intl-next';
9
13
  import Button, { IconButton } from '@atlaskit/button/new';
10
14
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
11
15
  import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
12
16
  import { fg } from '@atlaskit/platform-feature-flags';
13
- import { Box, Inline, xcss } from '@atlaskit/primitives';
17
+ import { Box, Inline } from '@atlaskit/primitives/compiled';
14
18
  import { ChatPillIcon } from '../../common/ui/chat-icon';
15
19
  import messages from './messages';
16
- var chatToAgentButtonContainer = xcss({
17
- width: '100%'
18
- });
19
- var chatToAgentButtonWrapper = xcss({
20
- display: 'flex',
21
- justifyContent: 'center',
22
- lineHeight: '20px',
23
- fontWeight: 'font.weight.medium'
24
- });
25
- var chatPillButtonInlineStyles = xcss({
26
- paddingInline: 'space.025'
27
- });
28
- var chatPillTextStyles = xcss({
29
- wordBreak: 'break-word',
30
- textAlign: 'left',
31
- whiteSpace: 'pre-wrap'
32
- });
33
- var chatPillIconWrapper = xcss({
34
- minWidth: '20px',
35
- height: '20px'
36
- });
20
+ var styles = {
21
+ chatToAgentButtonContainer: "_1bsb1osq",
22
+ chatToAgentButtonWrapper: "_1e0c1txw _1bah1h6o _k48p1wq8",
23
+ chatPillButtonInline: "_18zrv77o",
24
+ chatPillText: "_1nmz1hna _y3gn1e5h _o5721jtm",
25
+ chatPillIconWrapper: "_1ul9gktf _4t3igktf"
26
+ };
37
27
  export var ChatToAgentButton = function ChatToAgentButton(_ref) {
38
28
  var onClick = _ref.onClick;
39
29
  var _useIntl = useIntl(),
40
30
  formatMessage = _useIntl.formatMessage;
41
31
  return /*#__PURE__*/React.createElement(Box, {
42
- xcss: chatToAgentButtonContainer
32
+ xcss: styles.chatToAgentButtonContainer
43
33
  }, /*#__PURE__*/React.createElement(Button, {
44
34
  testId: "view-agent-modal-chat-to-agent-button",
45
35
  shouldFitContainer: true,
46
36
  onClick: onClick
47
37
  }, /*#__PURE__*/React.createElement(Box, {
48
- xcss: chatToAgentButtonWrapper
38
+ xcss: styles.chatToAgentButtonWrapper
49
39
  }, /*#__PURE__*/React.createElement(Inline, {
50
40
  space: "space.050",
51
- xcss: chatPillButtonInlineStyles
41
+ xcss: styles.chatPillButtonInline
52
42
  }, /*#__PURE__*/React.createElement(Box, {
53
- xcss: chatPillIconWrapper
43
+ xcss: styles.chatPillIconWrapper
54
44
  }, /*#__PURE__*/React.createElement(ChatPillIcon, null)), /*#__PURE__*/React.createElement(Box, {
55
- xcss: chatPillTextStyles
45
+ xcss: styles.chatPillText
56
46
  }, formatMessage(messages.chatToAgentButton))))));
57
47
  };
58
48
  export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
@@ -0,0 +1,5 @@
1
+ ._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}
3
+ ._1e0c1txw{display:flex}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
@@ -1,17 +1,16 @@
1
- import React from 'react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
2
5
  import { useIntl } from 'react-intl-next';
3
6
  import StarIcon from '@atlaskit/icon/utility/migration/star-unstarred--star';
4
- import { Box, xcss } from '@atlaskit/primitives';
7
+ import { Box } from '@atlaskit/primitives/compiled';
5
8
  import Skeleton from '@atlaskit/skeleton';
6
9
  import { messages } from './messages';
7
10
  import { formatNumber } from './utils';
8
- var countStyles = xcss({
9
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
10
- display: 'flex',
11
- alignItems: 'center',
12
- gap: 'space.050',
13
- paddingInlineStart: 'space.025'
14
- });
11
+ var styles = {
12
+ count: "_11c81vlj _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
13
+ };
15
14
  export var AgentStarCount = function AgentStarCount(_ref) {
16
15
  var starCount = _ref.starCount,
17
16
  isLoading = _ref.isLoading;
@@ -21,7 +20,7 @@ export var AgentStarCount = function AgentStarCount(_ref) {
21
20
  return null;
22
21
  }
23
22
  return /*#__PURE__*/React.createElement(Box, {
24
- xcss: countStyles
23
+ xcss: styles.count
25
24
  }, /*#__PURE__*/React.createElement(StarIcon, {
26
25
  LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)"),
27
26
  color: "currentColor",
@@ -0,0 +1,11 @@
1
+
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._195gu2gc{margin-inline:var(--ds-space-100,8px)}
3
+ ._19pkze3t{margin-top:var(--ds-space-0,0)}
4
+ ._1bah1yb4{justify-content:space-between}
5
+ ._1e0c116y{display:inline-flex}
6
+ ._1e0c1txw{display:flex}
7
+ ._4cvr1h6o{align-items:center}
8
+ ._4cvr1y6m{align-items:flex-start}
9
+ ._94n5v77o{bottom:var(--ds-space-025,2px)}
10
+ ._kqswh2mm{position:relative}
11
+ ._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
@@ -1,26 +1,24 @@
1
- import React from 'react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
2
5
  import { useIntl } from 'react-intl-next';
3
6
  import Heading from '@atlaskit/heading';
4
7
  import { AtlassianIcon, RovoIcon } from '@atlaskit/logo';
5
- import { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
8
+ import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
6
9
  import Skeleton from '@atlaskit/skeleton';
7
10
  import Tooltip from '@atlaskit/tooltip';
8
11
  import { HiddenIcon } from '../../common/ui/hidden-icon';
9
12
  import { StarIconButton } from '../../common/ui/star-icon-button';
10
13
  import { messages } from './messages';
11
- var clickableItemStyles = xcss({
12
- display: 'flex',
13
- alignItems: 'center',
14
- gap: 'space.050'
15
- });
16
- var nameStyles = xcss({
17
- justifyContent: 'space-between',
18
- alignItems: 'flex-start'
19
- });
20
- var descriptionStyles = xcss({
21
- marginTop: 'space.0',
22
- marginBottom: 'space.100'
23
- });
14
+ var styles = {
15
+ clickableItem: "_zulp1b66 _1e0c1txw _4cvr1h6o",
16
+ name: "_1bah1yb4 _4cvr1y6m",
17
+ description: "_19pkze3t _otyru2gc",
18
+ wrapper: "_otyru2gc",
19
+ tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
20
+ headingWrapper: "_kqswh2mm"
21
+ };
24
22
  export var AgentProfileCreator = function AgentProfileCreator(_ref) {
25
23
  var creator = _ref.creator,
26
24
  onCreatorLinkClick = _ref.onCreatorLinkClick,
@@ -73,24 +71,12 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
73
71
  };
74
72
  var creatorRender = getCreatorRender();
75
73
  return creatorRender ? /*#__PURE__*/React.createElement(Box, {
76
- xcss: clickableItemStyles
74
+ xcss: styles.clickableItem
77
75
  }, /*#__PURE__*/React.createElement(RovoIcon, {
78
76
  appearance: "brand",
79
77
  size: "small"
80
78
  }), creatorRender) : null;
81
79
  };
82
- var wrapperStyles = xcss({
83
- marginBottom: 'space.100'
84
- });
85
- var tooltipWrapperStyles = xcss({
86
- display: 'inline-flex',
87
- marginInline: 'space.100',
88
- position: 'relative',
89
- bottom: 'space.025'
90
- });
91
- var headingWrapperStyles = xcss({
92
- position: 'relative'
93
- });
94
80
  export var AgentProfileInfo = function AgentProfileInfo(_ref2) {
95
81
  var agentName = _ref2.agentName,
96
82
  agentDescription = _ref2.agentDescription,
@@ -103,18 +89,18 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref2) {
103
89
  formatMessage = _useIntl2.formatMessage;
104
90
  return /*#__PURE__*/React.createElement(Stack, {
105
91
  space: "space.100",
106
- xcss: wrapperStyles
92
+ xcss: styles.wrapper
107
93
  }, /*#__PURE__*/React.createElement(Inline, {
108
- xcss: nameStyles,
94
+ xcss: styles.name,
109
95
  space: "space.100",
110
96
  alignBlock: "center"
111
97
  }, /*#__PURE__*/React.createElement(Box, {
112
- xcss: headingWrapperStyles
98
+ xcss: styles.headingWrapper
113
99
  }, /*#__PURE__*/React.createElement(Heading, {
114
100
  as: "span",
115
101
  size: "xlarge"
116
102
  }, agentName), isHidden && /*#__PURE__*/React.createElement(Box, {
117
- xcss: tooltipWrapperStyles
103
+ xcss: styles.tooltipWrapper
118
104
  }, /*#__PURE__*/React.createElement(Tooltip, {
119
105
  content: formatMessage(messages.hiddenTooltip),
120
106
  position: "top"
@@ -124,7 +110,7 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref2) {
124
110
  isStarred: isStarred,
125
111
  handleToggle: onStarToggle
126
112
  })), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(Box, {
127
- xcss: descriptionStyles,
113
+ xcss: styles.description,
128
114
  as: "p"
129
115
  }, agentDescription), starCountRender);
130
116
  };
@@ -1,16 +1,16 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { type ButtonProps } from '@atlaskit/button';
3
3
  export type ChatPillProps = Omit<ButtonProps, 'iconBefore'> & {
4
4
  whiteSpacePreWrap?: boolean;
5
5
  renderIcon?: boolean;
6
6
  };
7
- export declare const ChatPill: React.ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
7
+ export declare const ChatPill: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
8
8
  whiteSpacePreWrap?: boolean | undefined;
9
9
  renderIcon?: boolean | undefined;
10
- } & React.RefAttributes<HTMLButtonElement>>;
10
+ } & import("react").RefAttributes<HTMLButtonElement>>;
11
11
  export type BrowseAgentsPillProps = Omit<ButtonProps, 'iconBefore' | 'children'>;
12
- export declare const BrowseAgentsPill: React.ForwardRefExoticComponent<BrowseAgentsPillProps & React.RefAttributes<HTMLButtonElement>>;
13
- export declare const ConversationStarterPill: React.ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
12
+ export declare const BrowseAgentsPill: import("react").ForwardRefExoticComponent<BrowseAgentsPillProps & import("react").RefAttributes<HTMLButtonElement>>;
13
+ export declare const ConversationStarterPill: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
14
14
  whiteSpacePreWrap?: boolean | undefined;
15
15
  renderIcon?: boolean | undefined;
16
- } & React.RefAttributes<HTMLButtonElement>>;
16
+ } & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,10 @@
1
- import React, { type KeyboardEvent, type MouseEvent } from 'react';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ * @jsxFrag jsx
5
+ */
6
+ import { type KeyboardEvent, type MouseEvent } from 'react';
2
7
  export declare const LinkIconButton: ({ handleCopy, visible, }: {
3
8
  handleCopy: (e: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element>) => void;
4
9
  visible?: boolean | undefined;
5
- }) => React.JSX.Element;
10
+ }) => JSX.Element;
@@ -1,6 +1,10 @@
1
- import React, { type KeyboardEvent, type MouseEvent } from 'react';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type KeyboardEvent, type MouseEvent } from 'react';
2
6
  export declare const StarIconButton: ({ isStarred, handleToggle, visible, }: {
3
7
  isStarred: boolean;
4
8
  handleToggle: (e: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element>) => void;
5
9
  visible?: boolean | undefined;
6
- }) => React.JSX.Element;
10
+ }) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { type SizeType } from '@atlaskit/avatar';
3
3
  export declare const TOTAL_AVATAR_COMBINATIONS: number;
4
4
  type GeneratedAvatarProps = {
@@ -19,6 +19,6 @@ export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }
19
19
  export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId" | "agentNamedId"> & {
20
20
  height?: number | undefined;
21
21
  fillSpace?: boolean | undefined;
22
- }) => React.JSX.Element;
23
- export declare const GeneratedAvatar: (props: GeneratedAvatarProps) => React.JSX.Element;
22
+ }) => JSX.Element;
23
+ export declare const GeneratedAvatar: (props: GeneratedAvatarProps) => JSX.Element;
24
24
  export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { type SizeType } from '@atlaskit/avatar';
3
3
  type AgentAvatarProps = {
4
4
  imageUrl?: string;
@@ -12,5 +12,5 @@ type AgentAvatarProps = {
12
12
  isForgeAgent?: boolean;
13
13
  forgeAgentIconUrl?: string | null;
14
14
  };
15
- export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => React.JSX.Element;
15
+ export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => JSX.Element;
16
16
  export {};
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import { type ButtonProps, IconButton } from '@atlaskit/button/new';
4
4
  import DropdownMenu, { DropdownItem } from '@atlaskit/dropdown-menu';
5
5
  type ChatToAgentButtonProps = {
6
6
  onClick: ButtonProps['onClick'];
7
7
  };
8
- export declare const ChatToAgentButton: ({ onClick }: ChatToAgentButtonProps) => React.JSX.Element;
8
+ export declare const ChatToAgentButton: ({ onClick }: ChatToAgentButtonProps) => JSX.Element;
9
9
  type ViewAgentOptionProps = {
10
10
  showViewAgentOption: true;
11
11
  onViewAgentClick: React.ComponentProps<typeof DropdownItem>['onClick'];
@@ -40,5 +40,5 @@ type AgentDropdownMenuProps = {
40
40
  loadPermissionsOnMount?: boolean;
41
41
  shouldTriggerStopPropagation?: boolean;
42
42
  } & ViewAgentOptionProps & ViewAgentFullProfileProps;
43
- export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, }: AgentDropdownMenuProps) => React.JSX.Element;
43
+ export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, }: AgentDropdownMenuProps) => JSX.Element;
44
44
  export {};
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  export declare const AgentStarCount: ({ starCount, isLoading, }: {
3
3
  starCount: number | null | undefined;
4
4
  isLoading: boolean;
5
- }) => React.JSX.Element | null;
5
+ }) => JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading: isLoading, }: {
3
3
  creator?: {
4
4
  type: 'CUSTOMER';
@@ -19,7 +19,7 @@ export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoad
19
19
  } | undefined;
20
20
  isLoading: boolean;
21
21
  onCreatorLinkClick: () => void;
22
- }) => React.JSX.Element | null;
22
+ }) => JSX.Element | null;
23
23
  export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, isStarred, isHidden, onStarToggle, }: {
24
24
  agentName: string;
25
25
  agentDescription?: string | null | undefined;
@@ -28,4 +28,4 @@ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRe
28
28
  isStarred: boolean;
29
29
  isHidden: boolean;
30
30
  onStarToggle: () => void;
31
- }) => React.JSX.Element;
31
+ }) => JSX.Element;
@@ -1,16 +1,16 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { type ButtonProps } from '@atlaskit/button';
3
3
  export type ChatPillProps = Omit<ButtonProps, 'iconBefore'> & {
4
4
  whiteSpacePreWrap?: boolean;
5
5
  renderIcon?: boolean;
6
6
  };
7
- export declare const ChatPill: React.ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
7
+ export declare const ChatPill: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
8
8
  whiteSpacePreWrap?: boolean | undefined;
9
9
  renderIcon?: boolean | undefined;
10
- } & React.RefAttributes<HTMLButtonElement>>;
10
+ } & import("react").RefAttributes<HTMLButtonElement>>;
11
11
  export type BrowseAgentsPillProps = Omit<ButtonProps, 'iconBefore' | 'children'>;
12
- export declare const BrowseAgentsPill: React.ForwardRefExoticComponent<BrowseAgentsPillProps & React.RefAttributes<HTMLButtonElement>>;
13
- export declare const ConversationStarterPill: React.ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
12
+ export declare const BrowseAgentsPill: import("react").ForwardRefExoticComponent<BrowseAgentsPillProps & import("react").RefAttributes<HTMLButtonElement>>;
13
+ export declare const ConversationStarterPill: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
14
14
  whiteSpacePreWrap?: boolean | undefined;
15
15
  renderIcon?: boolean | undefined;
16
- } & React.RefAttributes<HTMLButtonElement>>;
16
+ } & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,10 @@
1
- import React, { type KeyboardEvent, type MouseEvent } from 'react';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ * @jsxFrag jsx
5
+ */
6
+ import { type KeyboardEvent, type MouseEvent } from 'react';
2
7
  export declare const LinkIconButton: ({ handleCopy, visible, }: {
3
8
  handleCopy: (e: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element>) => void;
4
9
  visible?: boolean | undefined;
5
- }) => React.JSX.Element;
10
+ }) => JSX.Element;
@@ -1,6 +1,10 @@
1
- import React, { type KeyboardEvent, type MouseEvent } from 'react';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type KeyboardEvent, type MouseEvent } from 'react';
2
6
  export declare const StarIconButton: ({ isStarred, handleToggle, visible, }: {
3
7
  isStarred: boolean;
4
8
  handleToggle: (e: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element>) => void;
5
9
  visible?: boolean | undefined;
6
- }) => React.JSX.Element;
10
+ }) => JSX.Element;