@atlaskit/rovo-agent-components 2.1.1 → 2.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 +8 -0
- package/dist/cjs/common/ui/chat-pill/index.compiled.css +1 -1
- package/dist/cjs/common/ui/chat-pill/index.js +2 -2
- package/dist/cjs/ui/agent-avatar/index.js +5 -1
- package/dist/cjs/ui/agent-avatar/messages.js +14 -0
- package/dist/cjs/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
- package/dist/cjs/ui/agent-profile-info/agent-star-count/index.js +1 -1
- package/dist/cjs/ui/agent-profile-info/index.js +1 -0
- package/dist/cjs/ui/agent-profile-info/messages.js +5 -0
- package/dist/es2019/common/ui/chat-pill/index.compiled.css +1 -1
- package/dist/es2019/common/ui/chat-pill/index.js +2 -2
- package/dist/es2019/ui/agent-avatar/index.js +6 -1
- package/dist/es2019/ui/agent-avatar/messages.js +8 -0
- package/dist/es2019/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
- package/dist/es2019/ui/agent-profile-info/agent-star-count/index.js +1 -1
- package/dist/es2019/ui/agent-profile-info/index.js +1 -0
- package/dist/es2019/ui/agent-profile-info/messages.js +5 -0
- package/dist/esm/common/ui/chat-pill/index.compiled.css +1 -1
- package/dist/esm/common/ui/chat-pill/index.js +2 -2
- package/dist/esm/ui/agent-avatar/index.js +5 -1
- package/dist/esm/ui/agent-avatar/messages.js +8 -0
- package/dist/esm/ui/agent-profile-info/agent-star-count/index.compiled.css +1 -1
- package/dist/esm/ui/agent-profile-info/agent-star-count/index.js +1 -1
- package/dist/esm/ui/agent-profile-info/index.js +1 -0
- package/dist/esm/ui/agent-profile-info/messages.js +5 -0
- package/dist/types/ui/agent-avatar/messages.d.ts +7 -0
- package/dist/types/ui/agent-profile-info/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/agent-avatar/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/agent-profile-info/messages.d.ts +5 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#122015](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122015)
|
|
8
|
+
[`23c02e413685e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/23c02e413685e) -
|
|
9
|
+
Fix a11y violations
|
|
10
|
+
|
|
3
11
|
## 2.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
@@ -27,8 +27,8 @@ var stylesCompiled = {
|
|
|
27
27
|
pillLineHeight: "_vwz47vkz"
|
|
28
28
|
};
|
|
29
29
|
var styles = {
|
|
30
|
-
conversationStarterPill: "_2rkopd34
|
|
31
|
-
button: "_2rkopd34
|
|
30
|
+
conversationStarterPill: "_2rkopd34 _11c82smr _189ee4h9 _1dqonqa1 _1h6dmuej _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhk1j28 _1bsb1osq _irr315ej _1di6ip91",
|
|
31
|
+
button: "_2rkopd34 _11c82smr _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhkm7j4 _irr315ej _1di6ip91",
|
|
32
32
|
buttonInline: "_18zrv77o",
|
|
33
33
|
queryText: "_1nmz1hna _y3gn1e5h",
|
|
34
34
|
whiteSpacePreWrap: "_o5721jtm"
|
|
@@ -11,9 +11,11 @@ require("./index.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
+
var _reactIntlNext = require("react-intl-next");
|
|
14
15
|
var _avatar = require("@atlaskit/avatar");
|
|
15
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
17
|
var _generatedAvatars = require("./generated-avatars");
|
|
18
|
+
var _messages = require("./messages");
|
|
17
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
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; }
|
|
@@ -39,6 +41,8 @@ var AgentAvatar = exports.AgentAvatar = function AgentAvatar(_ref) {
|
|
|
39
41
|
showBorder = _ref$showBorder === void 0 ? true : _ref$showBorder,
|
|
40
42
|
isForgeAgent = _ref.isForgeAgent,
|
|
41
43
|
forgeAgentIconUrl = _ref.forgeAgentIconUrl;
|
|
44
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
45
|
+
formatMessage = _useIntl.formatMessage;
|
|
42
46
|
var imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
|
|
43
47
|
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
44
48
|
"aria-label": label,
|
|
@@ -59,7 +63,7 @@ var AgentAvatar = exports.AgentAvatar = function AgentAvatar(_ref) {
|
|
|
59
63
|
as: "img",
|
|
60
64
|
xcss: styles.image,
|
|
61
65
|
src: imgUrl,
|
|
62
|
-
alt: name
|
|
66
|
+
alt: name || label || formatMessage(_messages.messages.agentAvatarLabel)
|
|
63
67
|
}) : /*#__PURE__*/React.createElement(_generatedAvatars.GeneratedAvatar, {
|
|
64
68
|
agentId: agentId,
|
|
65
69
|
agentNamedId: agentNamedId,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.messages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
agentAvatarLabel: {
|
|
10
|
+
id: 'ai-mate.agent-avatar-label',
|
|
11
|
+
defaultMessage: 'Agent avatar',
|
|
12
|
+
description: 'Accessible label for agent avatar img'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
4
|
._4cvr1h6o{align-items:center}
|
|
@@ -19,7 +19,7 @@ var _utils = require("./utils");
|
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
var styles = {
|
|
22
|
-
count: "
|
|
22
|
+
count: "_11c81o8v _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
|
|
23
23
|
};
|
|
24
24
|
var AgentStarCount = exports.AgentStarCount = function AgentStarCount(_ref) {
|
|
25
25
|
var starCount = _ref.starCount,
|
|
@@ -64,6 +64,7 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
64
64
|
if (creator.type === 'CUSTOMER') {
|
|
65
65
|
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
66
66
|
creatorNameWithLink: /*#__PURE__*/React.createElement("a", {
|
|
67
|
+
"aria-label": creator.name || formatMessage(_messages.messages.creatorLabel),
|
|
67
68
|
href: creator.profileLink,
|
|
68
69
|
onClick: function onClick() {
|
|
69
70
|
return onCreatorLinkClick();
|
|
@@ -35,5 +35,10 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
35
35
|
id: 'ai-mate.agent-profile-info.star-agent-tooltip',
|
|
36
36
|
defaultMessage: 'Star Agent',
|
|
37
37
|
description: 'Tooltip to explain what star icon does'
|
|
38
|
+
},
|
|
39
|
+
creatorLabel: {
|
|
40
|
+
id: 'ai-mate.agent-profile-info.creator',
|
|
41
|
+
defaultMessage: 'Creator',
|
|
42
|
+
description: 'Accessible label for creator link'
|
|
38
43
|
}
|
|
39
44
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
@@ -14,8 +14,8 @@ const stylesCompiled = {
|
|
|
14
14
|
pillLineHeight: "_vwz47vkz"
|
|
15
15
|
};
|
|
16
16
|
const styles = {
|
|
17
|
-
conversationStarterPill: "_2rkopd34
|
|
18
|
-
button: "_2rkopd34
|
|
17
|
+
conversationStarterPill: "_2rkopd34 _11c82smr _189ee4h9 _1dqonqa1 _1h6dmuej _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhk1j28 _1bsb1osq _irr315ej _1di6ip91",
|
|
18
|
+
button: "_2rkopd34 _11c82smr _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhkm7j4 _irr315ej _1di6ip91",
|
|
19
19
|
buttonInline: "_18zrv77o",
|
|
20
20
|
queryText: "_1nmz1hna _y3gn1e5h",
|
|
21
21
|
whiteSpacePreWrap: "_o5721jtm"
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { useIntl } from 'react-intl-next';
|
|
5
6
|
import { AVATAR_SIZES } from '@atlaskit/avatar';
|
|
6
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import { GeneratedAvatar } from './generated-avatars';
|
|
9
|
+
import { messages } from './messages';
|
|
8
10
|
const styles = {
|
|
9
11
|
agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
|
|
10
12
|
image: "_5ral1dfr _4t3i1osq _1bsb1osq",
|
|
@@ -25,6 +27,9 @@ export const AgentAvatar = ({
|
|
|
25
27
|
isForgeAgent,
|
|
26
28
|
forgeAgentIconUrl
|
|
27
29
|
}) => {
|
|
30
|
+
const {
|
|
31
|
+
formatMessage
|
|
32
|
+
} = useIntl();
|
|
28
33
|
const imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
|
|
29
34
|
return /*#__PURE__*/React.createElement(Box, {
|
|
30
35
|
"aria-label": label,
|
|
@@ -47,7 +52,7 @@ export const AgentAvatar = ({
|
|
|
47
52
|
as: "img",
|
|
48
53
|
xcss: styles.image,
|
|
49
54
|
src: imgUrl,
|
|
50
|
-
alt: name
|
|
55
|
+
alt: name || label || formatMessage(messages.agentAvatarLabel)
|
|
51
56
|
}) : /*#__PURE__*/React.createElement(GeneratedAvatar, {
|
|
52
57
|
agentId: agentId,
|
|
53
58
|
agentNamedId: agentNamedId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
4
|
._4cvr1h6o{align-items:center}
|
|
@@ -9,7 +9,7 @@ import Skeleton from '@atlaskit/skeleton';
|
|
|
9
9
|
import { messages } from './messages';
|
|
10
10
|
import { formatNumber } from './utils';
|
|
11
11
|
const styles = {
|
|
12
|
-
count: "
|
|
12
|
+
count: "_11c81o8v _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
|
|
13
13
|
};
|
|
14
14
|
export const AgentStarCount = ({
|
|
15
15
|
starCount,
|
|
@@ -56,6 +56,7 @@ export const AgentProfileCreator = ({
|
|
|
56
56
|
if (creator.type === 'CUSTOMER') {
|
|
57
57
|
return formatMessage(messages.agentCreatedBy, {
|
|
58
58
|
creatorNameWithLink: /*#__PURE__*/React.createElement("a", {
|
|
59
|
+
"aria-label": creator.name || formatMessage(messages.creatorLabel),
|
|
59
60
|
href: creator.profileLink,
|
|
60
61
|
onClick: () => onCreatorLinkClick(),
|
|
61
62
|
target: "_blank"
|
|
@@ -29,5 +29,10 @@ export const messages = defineMessages({
|
|
|
29
29
|
id: 'ai-mate.agent-profile-info.star-agent-tooltip',
|
|
30
30
|
defaultMessage: 'Star Agent',
|
|
31
31
|
description: 'Tooltip to explain what star icon does'
|
|
32
|
+
},
|
|
33
|
+
creatorLabel: {
|
|
34
|
+
id: 'ai-mate.agent-profile-info.creator',
|
|
35
|
+
defaultMessage: 'Creator',
|
|
36
|
+
description: 'Accessible label for creator link'
|
|
32
37
|
}
|
|
33
38
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
3
3
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
4
4
|
._18zrv77o{padding-inline:var(--ds-space-025,2px)}
|
|
@@ -17,8 +17,8 @@ var stylesCompiled = {
|
|
|
17
17
|
pillLineHeight: "_vwz47vkz"
|
|
18
18
|
};
|
|
19
19
|
var styles = {
|
|
20
|
-
conversationStarterPill: "_2rkopd34
|
|
21
|
-
button: "_2rkopd34
|
|
20
|
+
conversationStarterPill: "_2rkopd34 _11c82smr _189ee4h9 _1dqonqa1 _1h6dmuej _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhk1j28 _1bsb1osq _irr315ej _1di6ip91",
|
|
21
|
+
button: "_2rkopd34 _11c82smr _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1o0zgqwt _k48p1wq8 _1bto1l2s _o5721q9c _1o9zkb7n _bfhkm7j4 _irr315ej _1di6ip91",
|
|
22
22
|
buttonInline: "_18zrv77o",
|
|
23
23
|
queryText: "_1nmz1hna _y3gn1e5h",
|
|
24
24
|
whiteSpacePreWrap: "_o5721jtm"
|
|
@@ -5,9 +5,11 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
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; }
|
|
7
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; }
|
|
8
|
+
import { useIntl } from 'react-intl-next';
|
|
8
9
|
import { AVATAR_SIZES } from '@atlaskit/avatar';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
11
|
import { GeneratedAvatar } from './generated-avatars';
|
|
12
|
+
import { messages } from './messages';
|
|
11
13
|
var styles = {
|
|
12
14
|
agentAvatar: "_1e0c1txw _1bah1h6o _4cvr1h6o _mkrz1k6g",
|
|
13
15
|
image: "_5ral1dfr _4t3i1osq _1bsb1osq",
|
|
@@ -29,6 +31,8 @@ export var AgentAvatar = function AgentAvatar(_ref) {
|
|
|
29
31
|
showBorder = _ref$showBorder === void 0 ? true : _ref$showBorder,
|
|
30
32
|
isForgeAgent = _ref.isForgeAgent,
|
|
31
33
|
forgeAgentIconUrl = _ref.forgeAgentIconUrl;
|
|
34
|
+
var _useIntl = useIntl(),
|
|
35
|
+
formatMessage = _useIntl.formatMessage;
|
|
32
36
|
var imgUrl = isForgeAgent && forgeAgentIconUrl ? forgeAgentIconUrl : imageUrl;
|
|
33
37
|
return /*#__PURE__*/React.createElement(Box, {
|
|
34
38
|
"aria-label": label,
|
|
@@ -49,7 +53,7 @@ export var AgentAvatar = function AgentAvatar(_ref) {
|
|
|
49
53
|
as: "img",
|
|
50
54
|
xcss: styles.image,
|
|
51
55
|
src: imgUrl,
|
|
52
|
-
alt: name
|
|
56
|
+
alt: name || label || formatMessage(messages.agentAvatarLabel)
|
|
53
57
|
}) : /*#__PURE__*/React.createElement(GeneratedAvatar, {
|
|
54
58
|
agentId: agentId,
|
|
55
59
|
agentNamedId: agentNamedId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
4
|
._4cvr1h6o{align-items:center}
|
|
@@ -9,7 +9,7 @@ import Skeleton from '@atlaskit/skeleton';
|
|
|
9
9
|
import { messages } from './messages';
|
|
10
10
|
import { formatNumber } from './utils';
|
|
11
11
|
var styles = {
|
|
12
|
-
count: "
|
|
12
|
+
count: "_11c81o8v _zulp1b66 _1e0c1txw _4cvr1h6o _bozgv77o"
|
|
13
13
|
};
|
|
14
14
|
export var AgentStarCount = function AgentStarCount(_ref) {
|
|
15
15
|
var starCount = _ref.starCount,
|
|
@@ -54,6 +54,7 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
|
|
|
54
54
|
if (creator.type === 'CUSTOMER') {
|
|
55
55
|
return formatMessage(messages.agentCreatedBy, {
|
|
56
56
|
creatorNameWithLink: /*#__PURE__*/React.createElement("a", {
|
|
57
|
+
"aria-label": creator.name || formatMessage(messages.creatorLabel),
|
|
57
58
|
href: creator.profileLink,
|
|
58
59
|
onClick: function onClick() {
|
|
59
60
|
return onCreatorLinkClick();
|
|
@@ -29,5 +29,10 @@ export var messages = defineMessages({
|
|
|
29
29
|
id: 'ai-mate.agent-profile-info.star-agent-tooltip',
|
|
30
30
|
defaultMessage: 'Star Agent',
|
|
31
31
|
description: 'Tooltip to explain what star icon does'
|
|
32
|
+
},
|
|
33
|
+
creatorLabel: {
|
|
34
|
+
id: 'ai-mate.agent-profile-info.creator',
|
|
35
|
+
defaultMessage: 'Creator',
|
|
36
|
+
description: 'Accessible label for creator link'
|
|
32
37
|
}
|
|
33
38
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/analytics-next": "11.0.0",
|
|
39
|
+
"@atlaskit/analytics-next": "^11.0.0",
|
|
40
40
|
"@atlaskit/avatar": "^24.0.0",
|
|
41
41
|
"@atlaskit/button": "^21.1.0",
|
|
42
42
|
"@atlaskit/css": "^0.10.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^14.1.0",
|
|
50
50
|
"@atlaskit/skeleton": "^2.0.0",
|
|
51
|
-
"@atlaskit/tokens": "^4.
|
|
51
|
+
"@atlaskit/tokens": "^4.3.0",
|
|
52
52
|
"@atlaskit/tooltip": "^20.0.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@compiled/react": "^0.18.2",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"react": "^18.2.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@af/integration-testing": "
|
|
63
|
-
"@af/visual-regression": "
|
|
64
|
-
"@atlaskit/ssr": "
|
|
65
|
-
"@atlaskit/visual-regression": "
|
|
62
|
+
"@af/integration-testing": "^0.5.0",
|
|
63
|
+
"@af/visual-regression": "^1.3.0",
|
|
64
|
+
"@atlaskit/ssr": "^0.4.0",
|
|
65
|
+
"@atlaskit/visual-regression": "^0.10.0",
|
|
66
66
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
67
67
|
"@testing-library/react": "^13.4.0",
|
|
68
68
|
"@testing-library/react-hooks": "^8.0.1",
|