@atlaskit/rovo-agent-components 1.6.1 → 1.6.3
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 +15 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +1 -1
- package/dist/cjs/ui/agent-conversation-starters/index.js +2 -2
- package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +1 -1
- package/dist/es2019/ui/agent-conversation-starters/index.js +2 -2
- package/dist/esm/ui/agent-avatar/generated-avatars/index.js +1 -1
- package/dist/esm/ui/agent-conversation-starters/index.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 1.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#149796](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/149796)
|
|
8
|
+
[`e1f44421b5b78`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e1f44421b5b78) -
|
|
9
|
+
Fix Issue Organizer avatar
|
|
10
|
+
|
|
11
|
+
## 1.6.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`047764e9916a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/047764e9916a3) -
|
|
16
|
+
Fix for custom agents showing more than 3 conversation starters
|
|
17
|
+
|
|
3
18
|
## 1.6.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -174,7 +174,7 @@ var outOfTheBoxAgentAvatar = {
|
|
|
174
174
|
},
|
|
175
175
|
color: yellowColor
|
|
176
176
|
},
|
|
177
|
-
|
|
177
|
+
issue_organizer_agent: {
|
|
178
178
|
getRender: function getRender(size) {
|
|
179
179
|
return /*#__PURE__*/_react.default.createElement(BacklogBuddyAvatar, {
|
|
180
180
|
size: _avatar.AVATAR_SIZES[size],
|
|
@@ -28,8 +28,8 @@ var getConversationStarters = exports.getConversationStarters = function getConv
|
|
|
28
28
|
var getCombinedConversationStarters = function getCombinedConversationStarters() {
|
|
29
29
|
var shouldCombine = !isAgentDefault;
|
|
30
30
|
if (shouldCombine) {
|
|
31
|
-
// Return
|
|
32
|
-
return [].concat((0, _toConsumableArray2.default)(customAgentConversationStarters.slice(0, 3
|
|
31
|
+
// Return user defined suggestions + static fallback suggestions with a max of 3 suggestions (user defined taking precendence over fallback)
|
|
32
|
+
return [].concat((0, _toConsumableArray2.default)(userDefinedConversationStarters), customAgentConversationStarters).slice(0, 3);
|
|
33
33
|
}
|
|
34
34
|
return defaultAgentConversationStarters;
|
|
35
35
|
};
|
|
@@ -74,7 +74,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
74
74
|
}),
|
|
75
75
|
color: yellowColor
|
|
76
76
|
},
|
|
77
|
-
|
|
77
|
+
issue_organizer_agent: {
|
|
78
78
|
getRender: size => /*#__PURE__*/React.createElement(BacklogBuddyAvatar, {
|
|
79
79
|
size: AVATAR_SIZES[size],
|
|
80
80
|
primaryColor: greenColor.primary,
|
|
@@ -16,8 +16,8 @@ export const getConversationStarters = ({
|
|
|
16
16
|
const getCombinedConversationStarters = () => {
|
|
17
17
|
const shouldCombine = !isAgentDefault;
|
|
18
18
|
if (shouldCombine) {
|
|
19
|
-
// Return
|
|
20
|
-
return [...customAgentConversationStarters.slice(0, 3
|
|
19
|
+
// Return user defined suggestions + static fallback suggestions with a max of 3 suggestions (user defined taking precendence over fallback)
|
|
20
|
+
return [...userDefinedConversationStarters, ...customAgentConversationStarters].slice(0, 3);
|
|
21
21
|
}
|
|
22
22
|
return defaultAgentConversationStarters;
|
|
23
23
|
};
|
|
@@ -122,7 +122,7 @@ var outOfTheBoxAgentAvatar = {
|
|
|
122
122
|
},
|
|
123
123
|
color: yellowColor
|
|
124
124
|
},
|
|
125
|
-
|
|
125
|
+
issue_organizer_agent: {
|
|
126
126
|
getRender: function getRender(size) {
|
|
127
127
|
return /*#__PURE__*/React.createElement(BacklogBuddyAvatar, {
|
|
128
128
|
size: AVATAR_SIZES[size],
|
|
@@ -18,8 +18,8 @@ export var getConversationStarters = function getConversationStarters(_ref) {
|
|
|
18
18
|
var getCombinedConversationStarters = function getCombinedConversationStarters() {
|
|
19
19
|
var shouldCombine = !isAgentDefault;
|
|
20
20
|
if (shouldCombine) {
|
|
21
|
-
// Return
|
|
22
|
-
return [].concat(_toConsumableArray(customAgentConversationStarters.slice(0, 3
|
|
21
|
+
// Return user defined suggestions + static fallback suggestions with a max of 3 suggestions (user defined taking precendence over fallback)
|
|
22
|
+
return [].concat(_toConsumableArray(userDefinedConversationStarters), customAgentConversationStarters).slice(0, 3);
|
|
23
23
|
}
|
|
24
24
|
return defaultAgentConversationStarters;
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
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",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"@atlaskit/avatar": "^21.15.0",
|
|
39
39
|
"@atlaskit/button": "^20.2.0",
|
|
40
40
|
"@atlaskit/heading": "^2.4.3",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
41
|
+
"@atlaskit/icon": "^22.22.0",
|
|
42
42
|
"@atlaskit/logo": "^14.3.0",
|
|
43
43
|
"@atlaskit/primitives": "^12.2.0",
|
|
44
44
|
"@atlaskit/skeleton": "^0.5.0",
|
|
45
45
|
"@atlaskit/tokens": "^2.0.0",
|
|
46
|
-
"@atlaskit/tooltip": "^18.
|
|
46
|
+
"@atlaskit/tooltip": "^18.8.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
49
49
|
},
|