@atlaskit/rovo-agent-components 1.6.0 → 1.6.2
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,18 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`047764e9916a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/047764e9916a3) -
|
|
8
|
+
Fix for custom agents showing more than 3 conversation starters
|
|
9
|
+
|
|
10
|
+
## 1.6.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.6.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
|
@@ -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.2",
|
|
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.20.0",
|
|
42
42
|
"@atlaskit/logo": "^14.3.0",
|
|
43
43
|
"@atlaskit/primitives": "^12.2.0",
|
|
44
44
|
"@atlaskit/skeleton": "^0.5.0",
|
|
45
|
-
"@atlaskit/tokens": "^
|
|
46
|
-
"@atlaskit/tooltip": "^18.
|
|
45
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
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
|
},
|