@atlaskit/rovo-agent-components 3.8.0 → 3.9.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 +27 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/ui/agent-profile-info/index.js +59 -16
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/agent-profile-info/index.js +48 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/agent-profile-info/index.js +58 -15
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ui/agent-profile-info/index.d.ts +30 -16
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +30 -16
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 3.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7cdfbaea2c495`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7cdfbaea2c495) -
|
|
8
|
+
Create AgentCreatorDataComponent for relay component for AgentCreator, share between viewAgent and
|
|
9
|
+
agentProfile; Above implies that creator logic now purely relying on GraphQL endpoint, before it
|
|
10
|
+
was mix of GQL and REST;
|
|
11
|
+
|
|
12
|
+
Consolidate creator product logic to atlaskit/rovo-agent-components to reduce duplication;
|
|
13
|
+
|
|
14
|
+
Undo some relay changes added behind agent_studio_permissions_settings_m3_profiles, left the old
|
|
15
|
+
component how it was before, and move relay into the new component;
|
|
16
|
+
|
|
17
|
+
Remove the usage of useAtlasURL, instead generate home URL with just `cloudId` without the orgId;
|
|
18
|
+
|
|
19
|
+
Fix forge author to use forgeCreator from graphql
|
|
20
|
+
|
|
21
|
+
See
|
|
22
|
+
https://hello.atlassian.net/wiki/spaces/agents/pages/5926999212/Consolidating+Agent+creator+component
|
|
23
|
+
|
|
24
|
+
## 3.8.1
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 3.8.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -99,6 +99,12 @@ Object.defineProperty(exports, "StarIconButton", {
|
|
|
99
99
|
return _starIconButton.StarIconButton;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
+
Object.defineProperty(exports, "getAgentCreator", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _agentProfileInfo.getAgentCreator;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
102
108
|
Object.defineProperty(exports, "getConversationStarters", {
|
|
103
109
|
enumerable: true,
|
|
104
110
|
get: function get() {
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.AgentProfileInfo = exports.AgentProfileCreator = void 0;
|
|
8
|
+
exports.getAgentCreator = exports.AgentProfileInfo = exports.AgentProfileCreator = void 0;
|
|
9
9
|
require("./index.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -28,10 +28,53 @@ var styles = {
|
|
|
28
28
|
tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
|
|
29
29
|
headingWrapper: "_kqswh2mm"
|
|
30
30
|
};
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
var getAgentCreator = exports.getAgentCreator = function getAgentCreator(_ref) {
|
|
32
|
+
var creatorType = _ref.creatorType,
|
|
33
|
+
authoringTeam = _ref.authoringTeam,
|
|
34
|
+
userCreator = _ref.userCreator,
|
|
35
|
+
forgeCreator = _ref.forgeCreator;
|
|
36
|
+
if (creatorType === 'SYSTEM') {
|
|
37
|
+
return {
|
|
38
|
+
type: 'SYSTEM'
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// THIRD_PARTY is deprecated in convo-ai, use FORGE instead
|
|
43
|
+
if (creatorType === 'FORGE' || creatorType === 'THIRD_PARTY') {
|
|
44
|
+
return {
|
|
45
|
+
type: 'FORGE',
|
|
46
|
+
name: forgeCreator !== null && forgeCreator !== void 0 ? forgeCreator : ''
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
if (creatorType === 'OOTB') {
|
|
50
|
+
return {
|
|
51
|
+
type: 'OOTB'
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
if (creatorType === 'CUSTOMER') {
|
|
55
|
+
if (authoringTeam && (0, _platformFeatureFlags.fg)('agent_studio_permissions_settings_m3_profiles')) {
|
|
56
|
+
var _authoringTeam$profil;
|
|
57
|
+
return {
|
|
58
|
+
type: 'CUSTOMER',
|
|
59
|
+
name: authoringTeam.displayName,
|
|
60
|
+
profileLink: (_authoringTeam$profil = authoringTeam.profileLink) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : ''
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (!(userCreator !== null && userCreator !== void 0 && userCreator.profileLink)) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
type: 'CUSTOMER',
|
|
68
|
+
name: userCreator.name,
|
|
69
|
+
profileLink: userCreator.profileLink,
|
|
70
|
+
status: userCreator.status
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
75
|
+
var creator = _ref2.creator,
|
|
76
|
+
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
77
|
+
isLoading = _ref2.isLoading;
|
|
35
78
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
36
79
|
formatMessage = _useIntl.formatMessage;
|
|
37
80
|
var getCreatorRender = function getCreatorRender() {
|
|
@@ -64,7 +107,6 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
64
107
|
if (creator.type === 'CUSTOMER') {
|
|
65
108
|
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
66
109
|
creatorNameWithLink: (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__ai-mate') ? /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
67
|
-
"aria-label": creator.name || formatMessage(_messages.messages.creatorLabel),
|
|
68
110
|
href: creator.profileLink,
|
|
69
111
|
onClick: function onClick() {
|
|
70
112
|
return onCreatorLinkClick();
|
|
@@ -74,7 +116,6 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
74
116
|
/*#__PURE__*/
|
|
75
117
|
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
76
118
|
_react.default.createElement("a", {
|
|
77
|
-
"aria-label": creator.name || formatMessage(_messages.messages.creatorLabel),
|
|
78
119
|
href: creator.profileLink,
|
|
79
120
|
onClick: function onClick() {
|
|
80
121
|
return onCreatorLinkClick();
|
|
@@ -83,7 +124,9 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
83
124
|
}, creator.name, ' ', creator.status === 'inactive' && formatMessage(_messages.messages.agentDeactivated))
|
|
84
125
|
});
|
|
85
126
|
}
|
|
86
|
-
|
|
127
|
+
|
|
128
|
+
// THIRD_PARTY is deprecated in convo-ai, use FORGE instead
|
|
129
|
+
if (creator.type === 'THIRD_PARTY' || creator.type === 'FORGE') {
|
|
87
130
|
return formatMessage(_messages.messages.agentCreatedBy, {
|
|
88
131
|
creatorNameWithLink: creator.name
|
|
89
132
|
});
|
|
@@ -98,14 +141,14 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
98
141
|
size: "small"
|
|
99
142
|
}), creatorRender) : null;
|
|
100
143
|
};
|
|
101
|
-
var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(
|
|
102
|
-
var agentName =
|
|
103
|
-
agentDescription =
|
|
104
|
-
creatorRender =
|
|
105
|
-
starCountRender =
|
|
106
|
-
isStarred =
|
|
107
|
-
isHidden =
|
|
108
|
-
onStarToggle =
|
|
144
|
+
var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref3) {
|
|
145
|
+
var agentName = _ref3.agentName,
|
|
146
|
+
agentDescription = _ref3.agentDescription,
|
|
147
|
+
creatorRender = _ref3.creatorRender,
|
|
148
|
+
starCountRender = _ref3.starCountRender,
|
|
149
|
+
isStarred = _ref3.isStarred,
|
|
150
|
+
isHidden = _ref3.isHidden,
|
|
151
|
+
onStarToggle = _ref3.onStarToggle;
|
|
109
152
|
var _useIntl2 = (0, _reactIntlNext.useIntl)(),
|
|
110
153
|
formatMessage = _useIntl2.formatMessage;
|
|
111
154
|
return /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AgentProfileInfo, AgentProfileCreator } from './ui/agent-profile-info';
|
|
1
|
+
export { AgentProfileInfo, AgentProfileCreator, getAgentCreator } from './ui/agent-profile-info';
|
|
2
2
|
export { AgentStarCount } from './ui/agent-profile-info/agent-star-count';
|
|
3
3
|
export { StarIconButton } from './common/ui/star-icon-button';
|
|
4
4
|
export { LinkIconButton } from './common/ui/link-icon-button';
|
|
@@ -21,10 +21,54 @@ const styles = {
|
|
|
21
21
|
tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
|
|
22
22
|
headingWrapper: "_kqswh2mm"
|
|
23
23
|
};
|
|
24
|
+
export const getAgentCreator = ({
|
|
25
|
+
creatorType,
|
|
26
|
+
authoringTeam,
|
|
27
|
+
userCreator,
|
|
28
|
+
forgeCreator
|
|
29
|
+
}) => {
|
|
30
|
+
if (creatorType === 'SYSTEM') {
|
|
31
|
+
return {
|
|
32
|
+
type: 'SYSTEM'
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// THIRD_PARTY is deprecated in convo-ai, use FORGE instead
|
|
37
|
+
if (creatorType === 'FORGE' || creatorType === 'THIRD_PARTY') {
|
|
38
|
+
return {
|
|
39
|
+
type: 'FORGE',
|
|
40
|
+
name: forgeCreator !== null && forgeCreator !== void 0 ? forgeCreator : ''
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (creatorType === 'OOTB') {
|
|
44
|
+
return {
|
|
45
|
+
type: 'OOTB'
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
if (creatorType === 'CUSTOMER') {
|
|
49
|
+
if (authoringTeam && fg('agent_studio_permissions_settings_m3_profiles')) {
|
|
50
|
+
var _authoringTeam$profil;
|
|
51
|
+
return {
|
|
52
|
+
type: 'CUSTOMER',
|
|
53
|
+
name: authoringTeam.displayName,
|
|
54
|
+
profileLink: (_authoringTeam$profil = authoringTeam.profileLink) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : ''
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (!(userCreator !== null && userCreator !== void 0 && userCreator.profileLink)) {
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
type: 'CUSTOMER',
|
|
62
|
+
name: userCreator.name,
|
|
63
|
+
profileLink: userCreator.profileLink,
|
|
64
|
+
status: userCreator.status
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
24
68
|
export const AgentProfileCreator = ({
|
|
25
69
|
creator,
|
|
26
70
|
onCreatorLinkClick,
|
|
27
|
-
isLoading
|
|
71
|
+
isLoading
|
|
28
72
|
}) => {
|
|
29
73
|
const {
|
|
30
74
|
formatMessage
|
|
@@ -59,7 +103,6 @@ export const AgentProfileCreator = ({
|
|
|
59
103
|
if (creator.type === 'CUSTOMER') {
|
|
60
104
|
return formatMessage(messages.agentCreatedBy, {
|
|
61
105
|
creatorNameWithLink: fg('dst-a11y__replace-anchor-with-link__ai-mate') ? /*#__PURE__*/React.createElement(Link, {
|
|
62
|
-
"aria-label": creator.name || formatMessage(messages.creatorLabel),
|
|
63
106
|
href: creator.profileLink,
|
|
64
107
|
onClick: () => onCreatorLinkClick(),
|
|
65
108
|
target: "_blank"
|
|
@@ -67,14 +110,15 @@ export const AgentProfileCreator = ({
|
|
|
67
110
|
/*#__PURE__*/
|
|
68
111
|
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
69
112
|
React.createElement("a", {
|
|
70
|
-
"aria-label": creator.name || formatMessage(messages.creatorLabel),
|
|
71
113
|
href: creator.profileLink,
|
|
72
114
|
onClick: () => onCreatorLinkClick(),
|
|
73
115
|
target: "_blank"
|
|
74
116
|
}, creator.name, ' ', creator.status === 'inactive' && formatMessage(messages.agentDeactivated))
|
|
75
117
|
});
|
|
76
118
|
}
|
|
77
|
-
|
|
119
|
+
|
|
120
|
+
// THIRD_PARTY is deprecated in convo-ai, use FORGE instead
|
|
121
|
+
if (creator.type === 'THIRD_PARTY' || creator.type === 'FORGE') {
|
|
78
122
|
return formatMessage(messages.agentCreatedBy, {
|
|
79
123
|
creatorNameWithLink: creator.name
|
|
80
124
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AgentProfileInfo, AgentProfileCreator } from './ui/agent-profile-info';
|
|
1
|
+
export { AgentProfileInfo, AgentProfileCreator, getAgentCreator } from './ui/agent-profile-info';
|
|
2
2
|
export { AgentStarCount } from './ui/agent-profile-info/agent-star-count';
|
|
3
3
|
export { StarIconButton } from './common/ui/star-icon-button';
|
|
4
4
|
export { LinkIconButton } from './common/ui/link-icon-button';
|
|
@@ -21,10 +21,53 @@ var styles = {
|
|
|
21
21
|
tooltipWrapper: "_195gu2gc _1e0c116y _kqswh2mm _94n5v77o",
|
|
22
22
|
headingWrapper: "_kqswh2mm"
|
|
23
23
|
};
|
|
24
|
-
export var
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
export var getAgentCreator = function getAgentCreator(_ref) {
|
|
25
|
+
var creatorType = _ref.creatorType,
|
|
26
|
+
authoringTeam = _ref.authoringTeam,
|
|
27
|
+
userCreator = _ref.userCreator,
|
|
28
|
+
forgeCreator = _ref.forgeCreator;
|
|
29
|
+
if (creatorType === 'SYSTEM') {
|
|
30
|
+
return {
|
|
31
|
+
type: 'SYSTEM'
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// THIRD_PARTY is deprecated in convo-ai, use FORGE instead
|
|
36
|
+
if (creatorType === 'FORGE' || creatorType === 'THIRD_PARTY') {
|
|
37
|
+
return {
|
|
38
|
+
type: 'FORGE',
|
|
39
|
+
name: forgeCreator !== null && forgeCreator !== void 0 ? forgeCreator : ''
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
if (creatorType === 'OOTB') {
|
|
43
|
+
return {
|
|
44
|
+
type: 'OOTB'
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (creatorType === 'CUSTOMER') {
|
|
48
|
+
if (authoringTeam && fg('agent_studio_permissions_settings_m3_profiles')) {
|
|
49
|
+
var _authoringTeam$profil;
|
|
50
|
+
return {
|
|
51
|
+
type: 'CUSTOMER',
|
|
52
|
+
name: authoringTeam.displayName,
|
|
53
|
+
profileLink: (_authoringTeam$profil = authoringTeam.profileLink) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : ''
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
if (!(userCreator !== null && userCreator !== void 0 && userCreator.profileLink)) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
type: 'CUSTOMER',
|
|
61
|
+
name: userCreator.name,
|
|
62
|
+
profileLink: userCreator.profileLink,
|
|
63
|
+
status: userCreator.status
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
68
|
+
var creator = _ref2.creator,
|
|
69
|
+
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
70
|
+
isLoading = _ref2.isLoading;
|
|
28
71
|
var _useIntl = useIntl(),
|
|
29
72
|
formatMessage = _useIntl.formatMessage;
|
|
30
73
|
var getCreatorRender = function getCreatorRender() {
|
|
@@ -57,7 +100,6 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
|
|
|
57
100
|
if (creator.type === 'CUSTOMER') {
|
|
58
101
|
return formatMessage(messages.agentCreatedBy, {
|
|
59
102
|
creatorNameWithLink: fg('dst-a11y__replace-anchor-with-link__ai-mate') ? /*#__PURE__*/React.createElement(Link, {
|
|
60
|
-
"aria-label": creator.name || formatMessage(messages.creatorLabel),
|
|
61
103
|
href: creator.profileLink,
|
|
62
104
|
onClick: function onClick() {
|
|
63
105
|
return onCreatorLinkClick();
|
|
@@ -67,7 +109,6 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
|
|
|
67
109
|
/*#__PURE__*/
|
|
68
110
|
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
69
111
|
React.createElement("a", {
|
|
70
|
-
"aria-label": creator.name || formatMessage(messages.creatorLabel),
|
|
71
112
|
href: creator.profileLink,
|
|
72
113
|
onClick: function onClick() {
|
|
73
114
|
return onCreatorLinkClick();
|
|
@@ -76,7 +117,9 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
|
|
|
76
117
|
}, creator.name, ' ', creator.status === 'inactive' && formatMessage(messages.agentDeactivated))
|
|
77
118
|
});
|
|
78
119
|
}
|
|
79
|
-
|
|
120
|
+
|
|
121
|
+
// THIRD_PARTY is deprecated in convo-ai, use FORGE instead
|
|
122
|
+
if (creator.type === 'THIRD_PARTY' || creator.type === 'FORGE') {
|
|
80
123
|
return formatMessage(messages.agentCreatedBy, {
|
|
81
124
|
creatorNameWithLink: creator.name
|
|
82
125
|
});
|
|
@@ -91,14 +134,14 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref) {
|
|
|
91
134
|
size: "small"
|
|
92
135
|
}), creatorRender) : null;
|
|
93
136
|
};
|
|
94
|
-
export var AgentProfileInfo = function AgentProfileInfo(
|
|
95
|
-
var agentName =
|
|
96
|
-
agentDescription =
|
|
97
|
-
creatorRender =
|
|
98
|
-
starCountRender =
|
|
99
|
-
isStarred =
|
|
100
|
-
isHidden =
|
|
101
|
-
onStarToggle =
|
|
137
|
+
export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
|
|
138
|
+
var agentName = _ref3.agentName,
|
|
139
|
+
agentDescription = _ref3.agentDescription,
|
|
140
|
+
creatorRender = _ref3.creatorRender,
|
|
141
|
+
starCountRender = _ref3.starCountRender,
|
|
142
|
+
isStarred = _ref3.isStarred,
|
|
143
|
+
isHidden = _ref3.isHidden,
|
|
144
|
+
onStarToggle = _ref3.onStarToggle;
|
|
102
145
|
var _useIntl2 = useIntl(),
|
|
103
146
|
formatMessage = _useIntl2.formatMessage;
|
|
104
147
|
return /*#__PURE__*/React.createElement(Stack, {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AgentProfileInfo, AgentProfileCreator } from './ui/agent-profile-info';
|
|
1
|
+
export { AgentProfileInfo, AgentProfileCreator, getAgentCreator } from './ui/agent-profile-info';
|
|
2
2
|
export { AgentStarCount } from './ui/agent-profile-info/agent-star-count';
|
|
3
3
|
export { StarIconButton } from './common/ui/star-icon-button';
|
|
4
4
|
export { LinkIconButton } from './common/ui/link-icon-button';
|
|
@@ -3,24 +3,37 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
type AgentCreator = {
|
|
7
|
+
type: 'CUSTOMER';
|
|
8
|
+
name: string;
|
|
9
|
+
profileLink: string;
|
|
10
|
+
status?: 'active' | 'inactive' | 'closed' | string;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'SYSTEM';
|
|
13
|
+
} | {
|
|
14
|
+
type: 'THIRD_PARTY' | 'FORGE';
|
|
15
|
+
name: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'OOTB';
|
|
18
|
+
};
|
|
19
|
+
export declare const getAgentCreator: ({ creatorType, authoringTeam, userCreator, forgeCreator, }: {
|
|
20
|
+
creatorType: string;
|
|
21
|
+
authoringTeam?: {
|
|
22
|
+
displayName: string;
|
|
23
|
+
profileLink?: string;
|
|
24
|
+
};
|
|
25
|
+
userCreator?: {
|
|
22
26
|
name: string;
|
|
27
|
+
status?: string;
|
|
28
|
+
profileLink?: string;
|
|
23
29
|
};
|
|
30
|
+
forgeCreator?: string;
|
|
31
|
+
}) => AgentCreator | undefined;
|
|
32
|
+
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading, }: {
|
|
33
|
+
/**
|
|
34
|
+
* Get this value from `getAgentCreator`
|
|
35
|
+
*/
|
|
36
|
+
creator?: AgentCreator;
|
|
24
37
|
isLoading: boolean;
|
|
25
38
|
onCreatorLinkClick: () => void;
|
|
26
39
|
}) => JSX.Element | null;
|
|
@@ -33,3 +46,4 @@ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRe
|
|
|
33
46
|
isHidden: boolean;
|
|
34
47
|
onStarToggle: () => void;
|
|
35
48
|
}) => JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AgentProfileInfo, AgentProfileCreator } from './ui/agent-profile-info';
|
|
1
|
+
export { AgentProfileInfo, AgentProfileCreator, getAgentCreator } from './ui/agent-profile-info';
|
|
2
2
|
export { AgentStarCount } from './ui/agent-profile-info/agent-star-count';
|
|
3
3
|
export { StarIconButton } from './common/ui/star-icon-button';
|
|
4
4
|
export { LinkIconButton } from './common/ui/link-icon-button';
|
|
@@ -3,24 +3,37 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
type AgentCreator = {
|
|
7
|
+
type: 'CUSTOMER';
|
|
8
|
+
name: string;
|
|
9
|
+
profileLink: string;
|
|
10
|
+
status?: 'active' | 'inactive' | 'closed' | string;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'SYSTEM';
|
|
13
|
+
} | {
|
|
14
|
+
type: 'THIRD_PARTY' | 'FORGE';
|
|
15
|
+
name: string;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'OOTB';
|
|
18
|
+
};
|
|
19
|
+
export declare const getAgentCreator: ({ creatorType, authoringTeam, userCreator, forgeCreator, }: {
|
|
20
|
+
creatorType: string;
|
|
21
|
+
authoringTeam?: {
|
|
22
|
+
displayName: string;
|
|
23
|
+
profileLink?: string;
|
|
24
|
+
};
|
|
25
|
+
userCreator?: {
|
|
22
26
|
name: string;
|
|
27
|
+
status?: string;
|
|
28
|
+
profileLink?: string;
|
|
23
29
|
};
|
|
30
|
+
forgeCreator?: string;
|
|
31
|
+
}) => AgentCreator | undefined;
|
|
32
|
+
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading, }: {
|
|
33
|
+
/**
|
|
34
|
+
* Get this value from `getAgentCreator`
|
|
35
|
+
*/
|
|
36
|
+
creator?: AgentCreator;
|
|
24
37
|
isLoading: boolean;
|
|
25
38
|
onCreatorLinkClick: () => void;
|
|
26
39
|
}) => JSX.Element | null;
|
|
@@ -33,3 +46,4 @@ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRe
|
|
|
33
46
|
isHidden: boolean;
|
|
34
47
|
onStarToggle: () => void;
|
|
35
48
|
}) => JSX.Element;
|
|
49
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.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",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/afm-i18n-platform-ai-mate-rovo-agent-components": "2.10.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
37
|
-
"@atlaskit/avatar": "^25.
|
|
37
|
+
"@atlaskit/avatar": "^25.4.0",
|
|
38
38
|
"@atlaskit/button": "^23.5.0",
|
|
39
|
-
"@atlaskit/css": "^0.
|
|
39
|
+
"@atlaskit/css": "^0.15.0",
|
|
40
40
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
42
42
|
"@atlaskit/icon": "^28.5.0",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@atlaskit/link": "^3.2.0",
|
|
45
45
|
"@atlaskit/logo": "^19.9.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/primitives": "^
|
|
47
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
48
48
|
"@atlaskit/skeleton": "^2.1.0",
|
|
49
|
-
"@atlaskit/tokens": "^6.
|
|
49
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
50
50
|
"@atlaskit/tooltip": "^20.5.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
|
-
"@compiled/react": "^0.18.
|
|
52
|
+
"@compiled/react": "^0.18.6",
|
|
53
53
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
54
54
|
"react-magnetic-di": "^3.1.4"
|
|
55
55
|
},
|
|
@@ -121,6 +121,9 @@
|
|
|
121
121
|
"agent_studio_fe_permissions_settings_m1": {
|
|
122
122
|
"type": "boolean"
|
|
123
123
|
},
|
|
124
|
+
"agent_studio_permissions_settings_m3_profiles": {
|
|
125
|
+
"type": "boolean"
|
|
126
|
+
},
|
|
124
127
|
"jira_ai_force_rovo_dev_avatar": {
|
|
125
128
|
"type": "boolean"
|
|
126
129
|
}
|