@atlaskit/rovo-agent-components 3.1.2 → 3.2.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`a3c753aa3c2e6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3c753aa3c2e6) -
8
+ added agent avatar skeleton component
9
+
3
10
  ## 3.1.2
4
11
 
5
12
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "AgentDropdownMenu", {
27
27
  return _agentDropdownMenu.AgentDropdownMenu;
28
28
  }
29
29
  });
30
+ Object.defineProperty(exports, "AgentMenuItemSkeleton", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _agentMenuItemSkeleton.AgentMenuItemSkeleton;
34
+ }
35
+ });
30
36
  Object.defineProperty(exports, "AgentProfileCreator", {
31
37
  enumerable: true,
32
38
  get: function get() {
@@ -110,4 +116,5 @@ var _showIcon = require("./common/ui/show-icon");
110
116
  var _hiddenIcon = require("./common/ui/hidden-icon");
111
117
  var _agentAvatar = require("./ui/agent-avatar");
112
118
  var _generatedAvatars = require("./ui/agent-avatar/generated-avatars");
113
- var _agentDropdownMenu = require("./ui/agent-dropdown-menu");
119
+ var _agentDropdownMenu = require("./ui/agent-dropdown-menu");
120
+ var _agentMenuItemSkeleton = require("./ui/agent-menu-item-skeleton");
@@ -0,0 +1,49 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.AgentAvatarSkeleton = void 0;
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
+ var _avatar = require("@atlaskit/avatar");
13
+ var _compiled = require("@atlaskit/primitives/compiled");
14
+ var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
15
+ var _index = require("../index");
16
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
+ // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
18
+ /**
19
+ * Skeleton wrapper with hexagon clip-path to match the AgentAvatar component shape.
20
+ * Uses the same clip-path as AgentAvatar to provide a consistent loading experience.
21
+ */
22
+ var AgentAvatarSkeleton = exports.AgentAvatarSkeleton = function AgentAvatarSkeleton(_ref) {
23
+ var _ref$size = _ref.size,
24
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
25
+ _ref$isShimmering = _ref.isShimmering,
26
+ isShimmering = _ref$isShimmering === void 0 ? true : _ref$isShimmering,
27
+ color = _ref.color,
28
+ shimmeringEndColor = _ref.shimmeringEndColor,
29
+ testId = _ref.testId;
30
+ return /*#__PURE__*/React.createElement(_compiled.Box, {
31
+ style: {
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
33
+ width: _avatar.AVATAR_SIZES[size],
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
35
+ height: _avatar.AVATAR_SIZES[size],
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-unsafe-values
37
+ clipPath: _index.AGENT_AVATAR_CLIP_PATH
38
+ },
39
+ testId: testId ? "".concat(testId, "-wrapper") : "agent-avatar-skeleton-wrapper"
40
+ }, /*#__PURE__*/React.createElement(_skeleton.default, {
41
+ width: "100%",
42
+ height: "100%",
43
+ borderRadius: 0,
44
+ isShimmering: isShimmering,
45
+ color: color,
46
+ ShimmeringEndColor: shimmeringEndColor,
47
+ testId: testId !== null && testId !== void 0 ? testId : "agent-avatar-skeleton"
48
+ }));
49
+ };
@@ -6,7 +6,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
6
6
  Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
- exports.AgentAvatar = void 0;
9
+ exports.AgentAvatar = exports.AGENT_AVATAR_CLIP_PATH = void 0;
10
10
  require("./index.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
@@ -20,6 +20,7 @@ var _messages = require("./messages");
20
20
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
21
21
  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; }
22
22
  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) { (0, _defineProperty2.default)(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; }
23
+ var AGENT_AVATAR_CLIP_PATH = exports.AGENT_AVATAR_CLIP_PATH = "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%)";
23
24
  var styles = {
24
25
  agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
25
26
  image: "_5ral1dfr _4t3i1osq _1bsb1osq",
@@ -0,0 +1,6 @@
1
+
2
+ ._zulp12x7{gap:var(--ds-space-075,6px)}._19bv12x7{padding-left:var(--ds-space-075,6px)}
3
+ ._1bsb1osq{width:100%}
4
+ ._1e0c1txw{display:flex}
5
+ ._4cvr1h6o{align-items:center}
6
+ ._u5f312x7{padding-right:var(--ds-space-075,6px)}
@@ -0,0 +1,47 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.AgentMenuItemSkeleton = void 0;
9
+ require("./index.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
11
+ var _react = _interopRequireDefault(require("react"));
12
+ var _compiled = require("@atlaskit/primitives/compiled");
13
+ var _skeleton = _interopRequireDefault(require("@atlaskit/skeleton"));
14
+ var _agentAvatarSkeleton = require("../agent-avatar/agent-avatar-skeleton");
15
+ // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
16
+ var styles = {
17
+ skeletonContainer: "_zulp12x7 _1bsb1osq _1e0c1txw _4cvr1h6o _19bv12x7 _u5f312x7"
18
+ };
19
+ var AgentMenuItemSkeleton = exports.AgentMenuItemSkeleton = function AgentMenuItemSkeleton(_ref) {
20
+ var index = _ref.index,
21
+ _ref$containerHeight = _ref.containerHeight,
22
+ containerHeight = _ref$containerHeight === void 0 ? 32 : _ref$containerHeight,
23
+ _ref$skeletonTextHeig = _ref.skeletonTextHeight,
24
+ skeletonTextHeight = _ref$skeletonTextHeig === void 0 ? 16 : _ref$skeletonTextHeig,
25
+ _ref$skeletonTextWidt = _ref.skeletonTextWidth,
26
+ skeletonTextWidth = _ref$skeletonTextWidt === void 0 ? 170 : _ref$skeletonTextWidt,
27
+ _ref$skeletonAvatarSi = _ref.skeletonAvatarSize,
28
+ skeletonAvatarSize = _ref$skeletonAvatarSi === void 0 ? 'small' : _ref$skeletonAvatarSi;
29
+ return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
30
+ key: "skeleton-container-".concat(index),
31
+ testId: "skeleton-container-".concat(index),
32
+ xcss: styles.skeletonContainer,
33
+ style: {
34
+ height: "".concat(containerHeight, "px")
35
+ }
36
+ }, /*#__PURE__*/_react.default.createElement(_agentAvatarSkeleton.AgentAvatarSkeleton, {
37
+ size: skeletonAvatarSize,
38
+ isShimmering: true,
39
+ testId: "loading-agents-avatar-skeleton-".concat(index)
40
+ }), /*#__PURE__*/_react.default.createElement(_skeleton.default, {
41
+ width: skeletonTextWidth,
42
+ height: skeletonTextHeight,
43
+ borderRadius: 4,
44
+ isShimmering: true,
45
+ testId: "loading-agents-text-skeleton-".concat(index)
46
+ }));
47
+ };
@@ -9,4 +9,5 @@ export { ShowIcon } from './common/ui/show-icon';
9
9
  export { HiddenIcon } from './common/ui/hidden-icon';
10
10
  export { AgentAvatar } from './ui/agent-avatar';
11
11
  export { AgentBanner } from './ui/agent-avatar/generated-avatars';
12
- export { AgentDropdownMenu } from './ui/agent-dropdown-menu';
12
+ export { AgentDropdownMenu } from './ui/agent-dropdown-menu';
13
+ export { AgentMenuItemSkeleton } from './ui/agent-menu-item-skeleton';
@@ -0,0 +1,40 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import * as React from 'react';
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import { AVATAR_SIZES } from '@atlaskit/avatar';
5
+ import { Box } from '@atlaskit/primitives/compiled';
6
+ import Skeleton from '@atlaskit/skeleton';
7
+
8
+ // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
9
+ import { AGENT_AVATAR_CLIP_PATH } from '../index';
10
+ /**
11
+ * Skeleton wrapper with hexagon clip-path to match the AgentAvatar component shape.
12
+ * Uses the same clip-path as AgentAvatar to provide a consistent loading experience.
13
+ */
14
+ export const AgentAvatarSkeleton = ({
15
+ size = 'medium',
16
+ isShimmering = true,
17
+ color,
18
+ shimmeringEndColor,
19
+ testId
20
+ }) => {
21
+ return /*#__PURE__*/React.createElement(Box, {
22
+ style: {
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
24
+ width: AVATAR_SIZES[size],
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
26
+ height: AVATAR_SIZES[size],
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-unsafe-values
28
+ clipPath: AGENT_AVATAR_CLIP_PATH
29
+ },
30
+ testId: testId ? `${testId}-wrapper` : "agent-avatar-skeleton-wrapper"
31
+ }, /*#__PURE__*/React.createElement(Skeleton, {
32
+ width: "100%",
33
+ height: "100%",
34
+ borderRadius: 0,
35
+ isShimmering: isShimmering,
36
+ color: color,
37
+ ShimmeringEndColor: shimmeringEndColor,
38
+ testId: testId !== null && testId !== void 0 ? testId : "agent-avatar-skeleton"
39
+ }));
40
+ };
@@ -8,6 +8,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import { Box } from '@atlaskit/primitives/compiled';
9
9
  import { GeneratedAvatar } from './generated-avatars';
10
10
  import { messages } from './messages';
11
+ export const AGENT_AVATAR_CLIP_PATH = `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%)`;
11
12
  const styles = {
12
13
  agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
13
14
  image: "_5ral1dfr _4t3i1osq _1bsb1osq",
@@ -0,0 +1,6 @@
1
+
2
+ ._zulp12x7{gap:var(--ds-space-075,6px)}._19bv12x7{padding-left:var(--ds-space-075,6px)}
3
+ ._1bsb1osq{width:100%}
4
+ ._1e0c1txw{display:flex}
5
+ ._4cvr1h6o{align-items:center}
6
+ ._u5f312x7{padding-right:var(--ds-space-075,6px)}
@@ -0,0 +1,37 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { Box } from "@atlaskit/primitives/compiled";
6
+ import Skeleton from '@atlaskit/skeleton';
7
+ // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
8
+ import { AgentAvatarSkeleton } from '../agent-avatar/agent-avatar-skeleton';
9
+ const styles = {
10
+ skeletonContainer: "_zulp12x7 _1bsb1osq _1e0c1txw _4cvr1h6o _19bv12x7 _u5f312x7"
11
+ };
12
+ export const AgentMenuItemSkeleton = ({
13
+ index,
14
+ containerHeight = 32,
15
+ skeletonTextHeight = 16,
16
+ skeletonTextWidth = 170,
17
+ skeletonAvatarSize = 'small'
18
+ }) => {
19
+ return /*#__PURE__*/React.createElement(Box, {
20
+ key: `skeleton-container-${index}`,
21
+ testId: `skeleton-container-${index}`,
22
+ xcss: styles.skeletonContainer,
23
+ style: {
24
+ height: `${containerHeight}px`
25
+ }
26
+ }, /*#__PURE__*/React.createElement(AgentAvatarSkeleton, {
27
+ size: skeletonAvatarSize,
28
+ isShimmering: true,
29
+ testId: `loading-agents-avatar-skeleton-${index}`
30
+ }), /*#__PURE__*/React.createElement(Skeleton, {
31
+ width: skeletonTextWidth,
32
+ height: skeletonTextHeight,
33
+ borderRadius: 4,
34
+ isShimmering: true,
35
+ testId: `loading-agents-text-skeleton-${index}`
36
+ }));
37
+ };
package/dist/esm/index.js CHANGED
@@ -9,4 +9,5 @@ export { ShowIcon } from './common/ui/show-icon';
9
9
  export { HiddenIcon } from './common/ui/hidden-icon';
10
10
  export { AgentAvatar } from './ui/agent-avatar';
11
11
  export { AgentBanner } from './ui/agent-avatar/generated-avatars';
12
- export { AgentDropdownMenu } from './ui/agent-dropdown-menu';
12
+ export { AgentDropdownMenu } from './ui/agent-dropdown-menu';
13
+ export { AgentMenuItemSkeleton } from './ui/agent-menu-item-skeleton';
@@ -0,0 +1,41 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import * as React from 'react';
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import { AVATAR_SIZES } from '@atlaskit/avatar';
5
+ import { Box } from '@atlaskit/primitives/compiled';
6
+ import Skeleton from '@atlaskit/skeleton';
7
+
8
+ // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
9
+ import { AGENT_AVATAR_CLIP_PATH } from '../index';
10
+ /**
11
+ * Skeleton wrapper with hexagon clip-path to match the AgentAvatar component shape.
12
+ * Uses the same clip-path as AgentAvatar to provide a consistent loading experience.
13
+ */
14
+ export var AgentAvatarSkeleton = function AgentAvatarSkeleton(_ref) {
15
+ var _ref$size = _ref.size,
16
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
17
+ _ref$isShimmering = _ref.isShimmering,
18
+ isShimmering = _ref$isShimmering === void 0 ? true : _ref$isShimmering,
19
+ color = _ref.color,
20
+ shimmeringEndColor = _ref.shimmeringEndColor,
21
+ testId = _ref.testId;
22
+ return /*#__PURE__*/React.createElement(Box, {
23
+ style: {
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
25
+ width: AVATAR_SIZES[size],
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values
27
+ height: AVATAR_SIZES[size],
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-unsafe-values
29
+ clipPath: AGENT_AVATAR_CLIP_PATH
30
+ },
31
+ testId: testId ? "".concat(testId, "-wrapper") : "agent-avatar-skeleton-wrapper"
32
+ }, /*#__PURE__*/React.createElement(Skeleton, {
33
+ width: "100%",
34
+ height: "100%",
35
+ borderRadius: 0,
36
+ isShimmering: isShimmering,
37
+ color: color,
38
+ ShimmeringEndColor: shimmeringEndColor,
39
+ testId: testId !== null && testId !== void 0 ? testId : "agent-avatar-skeleton"
40
+ }));
41
+ };
@@ -11,6 +11,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
11
11
  import { Box } from '@atlaskit/primitives/compiled';
12
12
  import { GeneratedAvatar } from './generated-avatars';
13
13
  import { messages } from './messages';
14
+ export var AGENT_AVATAR_CLIP_PATH = "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%)";
14
15
  var styles = {
15
16
  agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
16
17
  image: "_5ral1dfr _4t3i1osq _1bsb1osq",
@@ -0,0 +1,6 @@
1
+
2
+ ._zulp12x7{gap:var(--ds-space-075,6px)}._19bv12x7{padding-left:var(--ds-space-075,6px)}
3
+ ._1bsb1osq{width:100%}
4
+ ._1e0c1txw{display:flex}
5
+ ._4cvr1h6o{align-items:center}
6
+ ._u5f312x7{padding-right:var(--ds-space-075,6px)}
@@ -0,0 +1,40 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { Box } from "@atlaskit/primitives/compiled";
6
+ import Skeleton from '@atlaskit/skeleton';
7
+ // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
8
+ import { AgentAvatarSkeleton } from '../agent-avatar/agent-avatar-skeleton';
9
+ var styles = {
10
+ skeletonContainer: "_zulp12x7 _1bsb1osq _1e0c1txw _4cvr1h6o _19bv12x7 _u5f312x7"
11
+ };
12
+ export var AgentMenuItemSkeleton = function AgentMenuItemSkeleton(_ref) {
13
+ var index = _ref.index,
14
+ _ref$containerHeight = _ref.containerHeight,
15
+ containerHeight = _ref$containerHeight === void 0 ? 32 : _ref$containerHeight,
16
+ _ref$skeletonTextHeig = _ref.skeletonTextHeight,
17
+ skeletonTextHeight = _ref$skeletonTextHeig === void 0 ? 16 : _ref$skeletonTextHeig,
18
+ _ref$skeletonTextWidt = _ref.skeletonTextWidth,
19
+ skeletonTextWidth = _ref$skeletonTextWidt === void 0 ? 170 : _ref$skeletonTextWidt,
20
+ _ref$skeletonAvatarSi = _ref.skeletonAvatarSize,
21
+ skeletonAvatarSize = _ref$skeletonAvatarSi === void 0 ? 'small' : _ref$skeletonAvatarSi;
22
+ return /*#__PURE__*/React.createElement(Box, {
23
+ key: "skeleton-container-".concat(index),
24
+ testId: "skeleton-container-".concat(index),
25
+ xcss: styles.skeletonContainer,
26
+ style: {
27
+ height: "".concat(containerHeight, "px")
28
+ }
29
+ }, /*#__PURE__*/React.createElement(AgentAvatarSkeleton, {
30
+ size: skeletonAvatarSize,
31
+ isShimmering: true,
32
+ testId: "loading-agents-avatar-skeleton-".concat(index)
33
+ }), /*#__PURE__*/React.createElement(Skeleton, {
34
+ width: skeletonTextWidth,
35
+ height: skeletonTextHeight,
36
+ borderRadius: 4,
37
+ isShimmering: true,
38
+ testId: "loading-agents-text-skeleton-".concat(index)
39
+ }));
40
+ };
@@ -10,3 +10,4 @@ export { HiddenIcon } from './common/ui/hidden-icon';
10
10
  export { AgentAvatar } from './ui/agent-avatar';
11
11
  export { AgentBanner } from './ui/agent-avatar/generated-avatars';
12
12
  export { AgentDropdownMenu } from './ui/agent-dropdown-menu';
13
+ export { AgentMenuItemSkeleton } from './ui/agent-menu-item-skeleton';
@@ -0,0 +1,29 @@
1
+ import { type SizeType } from '@atlaskit/avatar';
2
+ type AgentAvatarSkeletonProps = {
3
+ /**
4
+ * Size of the skeleton.
5
+ */
6
+ size?: SizeType;
7
+ /**
8
+ * Enables the shimmering animation.
9
+ */
10
+ isShimmering?: boolean;
11
+ /**
12
+ * Overrides the default color of skeleton.
13
+ */
14
+ color?: string;
15
+ /**
16
+ * Overrides the default shimmering ending color of skeleton.
17
+ */
18
+ shimmeringEndColor?: string;
19
+ /**
20
+ * Applied as a data-attribute for testing.
21
+ */
22
+ testId?: string;
23
+ };
24
+ /**
25
+ * Skeleton wrapper with hexagon clip-path to match the AgentAvatar component shape.
26
+ * Uses the same clip-path as AgentAvatar to provide a consistent loading experience.
27
+ */
28
+ export declare const AgentAvatarSkeleton: ({ size, isShimmering, color, shimmeringEndColor, testId, }: AgentAvatarSkeletonProps) => JSX.Element;
29
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { type SizeType } from '@atlaskit/avatar';
2
+ export declare const AGENT_AVATAR_CLIP_PATH = "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%)";
2
3
  type AgentAvatarProps = {
3
4
  imageUrl?: string;
4
5
  size?: SizeType;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { SizeType } from '@atlaskit/avatar';
3
+ interface AgentMenuItemSkeletonProps {
4
+ index: number;
5
+ containerHeight?: number;
6
+ skeletonTextHeight?: number;
7
+ skeletonTextWidth?: number;
8
+ skeletonAvatarSize?: SizeType;
9
+ }
10
+ export declare const AgentMenuItemSkeleton: ({ index, containerHeight, skeletonTextHeight, skeletonTextWidth, skeletonAvatarSize }: AgentMenuItemSkeletonProps) => React.JSX.Element;
11
+ export {};
@@ -10,3 +10,4 @@ export { HiddenIcon } from './common/ui/hidden-icon';
10
10
  export { AgentAvatar } from './ui/agent-avatar';
11
11
  export { AgentBanner } from './ui/agent-avatar/generated-avatars';
12
12
  export { AgentDropdownMenu } from './ui/agent-dropdown-menu';
13
+ export { AgentMenuItemSkeleton } from './ui/agent-menu-item-skeleton';
@@ -0,0 +1,29 @@
1
+ import { type SizeType } from '@atlaskit/avatar';
2
+ type AgentAvatarSkeletonProps = {
3
+ /**
4
+ * Size of the skeleton.
5
+ */
6
+ size?: SizeType;
7
+ /**
8
+ * Enables the shimmering animation.
9
+ */
10
+ isShimmering?: boolean;
11
+ /**
12
+ * Overrides the default color of skeleton.
13
+ */
14
+ color?: string;
15
+ /**
16
+ * Overrides the default shimmering ending color of skeleton.
17
+ */
18
+ shimmeringEndColor?: string;
19
+ /**
20
+ * Applied as a data-attribute for testing.
21
+ */
22
+ testId?: string;
23
+ };
24
+ /**
25
+ * Skeleton wrapper with hexagon clip-path to match the AgentAvatar component shape.
26
+ * Uses the same clip-path as AgentAvatar to provide a consistent loading experience.
27
+ */
28
+ export declare const AgentAvatarSkeleton: ({ size, isShimmering, color, shimmeringEndColor, testId, }: AgentAvatarSkeletonProps) => JSX.Element;
29
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { type SizeType } from '@atlaskit/avatar';
2
+ export declare const AGENT_AVATAR_CLIP_PATH = "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%)";
2
3
  type AgentAvatarProps = {
3
4
  imageUrl?: string;
4
5
  size?: SizeType;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { SizeType } from '@atlaskit/avatar';
3
+ interface AgentMenuItemSkeletonProps {
4
+ index: number;
5
+ containerHeight?: number;
6
+ skeletonTextHeight?: number;
7
+ skeletonTextWidth?: number;
8
+ skeletonAvatarSize?: SizeType;
9
+ }
10
+ export declare const AgentMenuItemSkeleton: ({ index, containerHeight, skeletonTextHeight, skeletonTextWidth, skeletonAvatarSize }: AgentMenuItemSkeletonProps) => React.JSX.Element;
11
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.1.2",
3
+ "version": "3.2.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",