@atlaskit/rovo-agent-components 7.4.3 → 7.5.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 +23 -0
- package/compass.yml +1 -1
- package/dist/cjs/ui/agent-dropdown-menu/index.js +3 -1
- package/dist/cjs/ui/agent-profile-info/index.js +5 -3
- package/dist/es2019/ui/agent-dropdown-menu/index.js +2 -1
- package/dist/es2019/ui/agent-profile-info/index.js +4 -3
- package/dist/esm/ui/agent-dropdown-menu/index.js +3 -1
- package/dist/esm/ui/agent-profile-info/index.js +5 -3
- package/dist/types/ui/agent-dropdown-menu/index.d.ts +2 -1
- package/dist/types/ui/agent-profile-info/index.d.ts +5 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 7.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`aa85779ad72a8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aa85779ad72a8) -
|
|
8
|
+
[ux] Update agent profile and make delete option optional
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`f3f5ada0cba94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f3f5ada0cba94) -
|
|
13
|
+
Align the agent profile card styling with Figma, gated on
|
|
14
|
+
`platform_editor_agent_mentions_drop_one_fixes` and the `platform_editor_agent_mentions`
|
|
15
|
+
experiment
|
|
16
|
+
|
|
17
|
+
## 7.4.4
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`9965db56641a6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9965db56641a6) -
|
|
22
|
+
Update the Slack channel link in compass.yml for Agents FE owned packages to point to
|
|
23
|
+
#rovo-agents-frontend.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 7.4.3
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -16,7 +16,7 @@ links:
|
|
|
16
16
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
17
17
|
- name: Slack Channel
|
|
18
18
|
type: CHAT_CHANNEL
|
|
19
|
-
url: https://atlassian.enterprise.slack.com/archives/
|
|
19
|
+
url: https://atlassian.enterprise.slack.com/archives/C08UY102KSA # #rovo-agents-frontend
|
|
20
20
|
- name: Rovo Agent Components
|
|
21
21
|
type: REPOSITORY
|
|
22
22
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/ai-mate/rovo-agent-components
|
|
@@ -64,6 +64,8 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
64
64
|
onViewAgentFullProfileClick = _ref2.onViewAgentFullProfileClick,
|
|
65
65
|
_onOpenChange = _ref2.onOpenChange,
|
|
66
66
|
isForgeAgent = _ref2.isForgeAgent,
|
|
67
|
+
_ref2$showDeleteOptio = _ref2.showDeleteOption,
|
|
68
|
+
showDeleteOption = _ref2$showDeleteOptio === void 0 ? true : _ref2$showDeleteOptio,
|
|
67
69
|
_ref2$showViewAgentOp = _ref2.showViewAgentOption,
|
|
68
70
|
showViewAgentOption = _ref2$showViewAgentOp === void 0 ? false : _ref2$showViewAgentOp,
|
|
69
71
|
onViewAgentClick = _ref2.onViewAgentClick,
|
|
@@ -153,7 +155,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
153
155
|
hasSeparator: true
|
|
154
156
|
}, permissions.isEditEnabled && /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
|
|
155
157
|
onClick: onEditAgent
|
|
156
|
-
}, formatMessage(_messages.default.editAgent)), permissions.isDeleteEnabled && /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
|
|
158
|
+
}, formatMessage(_messages.default.editAgent)), permissions.isDeleteEnabled && showDeleteOption && /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
|
|
157
159
|
onClick: onDeleteAgent
|
|
158
160
|
}, formatMessage(_messages.default.deleteAgent)));
|
|
159
161
|
};
|
|
@@ -77,7 +77,9 @@ var getAgentCreator = exports.getAgentCreator = function getAgentCreator(_ref) {
|
|
|
77
77
|
var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
78
78
|
var creator = _ref2.creator,
|
|
79
79
|
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
80
|
-
isLoading = _ref2.isLoading
|
|
80
|
+
isLoading = _ref2.isLoading,
|
|
81
|
+
_ref2$hideCreatorIcon = _ref2.hideCreatorIcon,
|
|
82
|
+
hideCreatorIcon = _ref2$hideCreatorIcon === void 0 ? false : _ref2$hideCreatorIcon;
|
|
81
83
|
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
82
84
|
formatMessage = _useIntl.formatMessage;
|
|
83
85
|
var getCreatorRender = function getCreatorRender() {
|
|
@@ -136,7 +138,7 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
136
138
|
};
|
|
137
139
|
var creatorRender = getCreatorRender();
|
|
138
140
|
if ((0, _platformFeatureFlags.fg)('jira_improve_agent_profile_for_a2a')) {
|
|
139
|
-
var showRovoIcon = (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
141
|
+
var showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
140
142
|
return creatorRender ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
141
143
|
xcss: styles.clickableItem
|
|
142
144
|
}, showRovoIcon ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -150,7 +152,7 @@ var AgentProfileCreator = exports.AgentProfileCreator = function AgentProfileCre
|
|
|
150
152
|
}
|
|
151
153
|
return creatorRender ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
152
154
|
xcss: styles.clickableItem
|
|
153
|
-
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
155
|
+
}, !hideCreatorIcon && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
154
156
|
xcss: styles.rovoIconWrapper,
|
|
155
157
|
testId: "rovo-icon-wrapper",
|
|
156
158
|
"aria-hidden": "true"
|
|
@@ -52,6 +52,7 @@ export const AgentDropdownMenu = ({
|
|
|
52
52
|
onViewAgentFullProfileClick,
|
|
53
53
|
onOpenChange,
|
|
54
54
|
isForgeAgent,
|
|
55
|
+
showDeleteOption = true,
|
|
55
56
|
showViewAgentOption = false,
|
|
56
57
|
onViewAgentClick,
|
|
57
58
|
onDropdownTriggerClick,
|
|
@@ -111,7 +112,7 @@ export const AgentDropdownMenu = ({
|
|
|
111
112
|
hasSeparator: true
|
|
112
113
|
}, permissions.isEditEnabled && /*#__PURE__*/React.createElement(DropdownItem, {
|
|
113
114
|
onClick: onEditAgent
|
|
114
|
-
}, formatMessage(messages.editAgent)), permissions.isDeleteEnabled && /*#__PURE__*/React.createElement(DropdownItem, {
|
|
115
|
+
}, formatMessage(messages.editAgent)), permissions.isDeleteEnabled && showDeleteOption && /*#__PURE__*/React.createElement(DropdownItem, {
|
|
115
116
|
onClick: onDeleteAgent
|
|
116
117
|
}, formatMessage(messages.deleteAgent)));
|
|
117
118
|
};
|
|
@@ -71,7 +71,8 @@ export const getAgentCreator = ({
|
|
|
71
71
|
export const AgentProfileCreator = ({
|
|
72
72
|
creator,
|
|
73
73
|
onCreatorLinkClick,
|
|
74
|
-
isLoading
|
|
74
|
+
isLoading,
|
|
75
|
+
hideCreatorIcon = false
|
|
75
76
|
}) => {
|
|
76
77
|
const {
|
|
77
78
|
formatMessage
|
|
@@ -130,7 +131,7 @@ export const AgentProfileCreator = ({
|
|
|
130
131
|
};
|
|
131
132
|
const creatorRender = getCreatorRender();
|
|
132
133
|
if (fg('jira_improve_agent_profile_for_a2a')) {
|
|
133
|
-
const showRovoIcon = (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
134
|
+
const showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
134
135
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
135
136
|
xcss: styles.clickableItem
|
|
136
137
|
}, showRovoIcon ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -144,7 +145,7 @@ export const AgentProfileCreator = ({
|
|
|
144
145
|
}
|
|
145
146
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
146
147
|
xcss: styles.clickableItem
|
|
147
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
148
|
+
}, !hideCreatorIcon && /*#__PURE__*/React.createElement(Box, {
|
|
148
149
|
xcss: styles.rovoIconWrapper,
|
|
149
150
|
testId: "rovo-icon-wrapper",
|
|
150
151
|
"aria-hidden": "true"
|
|
@@ -55,6 +55,8 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
55
55
|
onViewAgentFullProfileClick = _ref2.onViewAgentFullProfileClick,
|
|
56
56
|
_onOpenChange = _ref2.onOpenChange,
|
|
57
57
|
isForgeAgent = _ref2.isForgeAgent,
|
|
58
|
+
_ref2$showDeleteOptio = _ref2.showDeleteOption,
|
|
59
|
+
showDeleteOption = _ref2$showDeleteOptio === void 0 ? true : _ref2$showDeleteOptio,
|
|
58
60
|
_ref2$showViewAgentOp = _ref2.showViewAgentOption,
|
|
59
61
|
showViewAgentOption = _ref2$showViewAgentOp === void 0 ? false : _ref2$showViewAgentOp,
|
|
60
62
|
onViewAgentClick = _ref2.onViewAgentClick,
|
|
@@ -144,7 +146,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
144
146
|
hasSeparator: true
|
|
145
147
|
}, permissions.isEditEnabled && /*#__PURE__*/React.createElement(DropdownItem, {
|
|
146
148
|
onClick: onEditAgent
|
|
147
|
-
}, formatMessage(messages.editAgent)), permissions.isDeleteEnabled && /*#__PURE__*/React.createElement(DropdownItem, {
|
|
149
|
+
}, formatMessage(messages.editAgent)), permissions.isDeleteEnabled && showDeleteOption && /*#__PURE__*/React.createElement(DropdownItem, {
|
|
148
150
|
onClick: onDeleteAgent
|
|
149
151
|
}, formatMessage(messages.deleteAgent)));
|
|
150
152
|
};
|
|
@@ -70,7 +70,9 @@ export var getAgentCreator = function getAgentCreator(_ref) {
|
|
|
70
70
|
export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
71
71
|
var creator = _ref2.creator,
|
|
72
72
|
onCreatorLinkClick = _ref2.onCreatorLinkClick,
|
|
73
|
-
isLoading = _ref2.isLoading
|
|
73
|
+
isLoading = _ref2.isLoading,
|
|
74
|
+
_ref2$hideCreatorIcon = _ref2.hideCreatorIcon,
|
|
75
|
+
hideCreatorIcon = _ref2$hideCreatorIcon === void 0 ? false : _ref2$hideCreatorIcon;
|
|
74
76
|
var _useIntl = useIntl(),
|
|
75
77
|
formatMessage = _useIntl.formatMessage;
|
|
76
78
|
var getCreatorRender = function getCreatorRender() {
|
|
@@ -129,7 +131,7 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
|
129
131
|
};
|
|
130
132
|
var creatorRender = getCreatorRender();
|
|
131
133
|
if (fg('jira_improve_agent_profile_for_a2a')) {
|
|
132
|
-
var showRovoIcon = (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
134
|
+
var showRovoIcon = !hideCreatorIcon && (creator === null || creator === void 0 ? void 0 : creator.type) !== 'REMOTE_A2A';
|
|
133
135
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
134
136
|
xcss: styles.clickableItem
|
|
135
137
|
}, showRovoIcon ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -143,7 +145,7 @@ export var AgentProfileCreator = function AgentProfileCreator(_ref2) {
|
|
|
143
145
|
}
|
|
144
146
|
return creatorRender ? /*#__PURE__*/React.createElement(Box, {
|
|
145
147
|
xcss: styles.clickableItem
|
|
146
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
148
|
+
}, !hideCreatorIcon && /*#__PURE__*/React.createElement(Box, {
|
|
147
149
|
xcss: styles.rovoIconWrapper,
|
|
148
150
|
testId: "rovo-icon-wrapper",
|
|
149
151
|
"aria-hidden": "true"
|
|
@@ -31,6 +31,7 @@ type ViewAgentFullProfileProps = {
|
|
|
31
31
|
doesAgentHaveIdentityAccountId?: undefined;
|
|
32
32
|
};
|
|
33
33
|
type AgentDropdownMenuProps = {
|
|
34
|
+
showDeleteOption?: boolean;
|
|
34
35
|
isAutodevTemplateAgent?: boolean;
|
|
35
36
|
agentId: string;
|
|
36
37
|
agentName?: string;
|
|
@@ -54,5 +55,5 @@ type AgentDropdownMenuProps = {
|
|
|
54
55
|
}>;
|
|
55
56
|
customDropdownOptions?: CustomDropdownOption[];
|
|
56
57
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps & Partial<Pick<AgentVerificationDropdownItemProps, 'agentRef' | 'userPermissionsRef' | 'onVerificationSuccess'>>;
|
|
57
|
-
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, shouldRenderToParent, agentName, agentRef, userPermissionsRef, onVerificationSuccess, customDropdownOptions, }: AgentDropdownMenuProps) => JSX.Element;
|
|
58
|
+
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showDeleteOption, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, shouldRenderToParent, agentName, agentRef, userPermissionsRef, onVerificationSuccess, customDropdownOptions, }: AgentDropdownMenuProps) => JSX.Element;
|
|
58
59
|
export {};
|
|
@@ -29,13 +29,17 @@ export declare const getAgentCreator: ({ creatorType, authoringTeam, userCreator
|
|
|
29
29
|
};
|
|
30
30
|
forgeCreator?: string;
|
|
31
31
|
}) => AgentCreator | undefined;
|
|
32
|
-
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading, }: {
|
|
32
|
+
export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading, hideCreatorIcon, }: {
|
|
33
33
|
/**
|
|
34
34
|
* Get this value from `getAgentCreator`
|
|
35
35
|
*/
|
|
36
36
|
creator?: AgentCreator;
|
|
37
37
|
isLoading: boolean;
|
|
38
38
|
onCreatorLinkClick: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Hides the leading Rovo icon shown next to the creator label
|
|
41
|
+
*/
|
|
42
|
+
hideCreatorIcon?: boolean;
|
|
39
43
|
}) => JSX.Element | null;
|
|
40
44
|
export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, renderAdditionalContent, }: {
|
|
41
45
|
agentName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.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
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
6
6
|
"atlassian": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/afm-i18n-platform-ai-mate-rovo-agent-components": "2.172.0",
|
|
35
|
-
"@atlaskit/analytics-next": "^12.
|
|
35
|
+
"@atlaskit/analytics-next": "^12.3.0",
|
|
36
36
|
"@atlaskit/avatar": "^26.1.0",
|
|
37
37
|
"@atlaskit/button": "^24.3.0",
|
|
38
38
|
"@atlaskit/css": "^1.0.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/flag": "^18.1.0",
|
|
42
42
|
"@atlaskit/heading": "^6.2.0",
|
|
43
43
|
"@atlaskit/icon": "^37.0.0",
|
|
44
|
-
"@atlaskit/link": "^4.
|
|
44
|
+
"@atlaskit/link": "^4.3.0",
|
|
45
45
|
"@atlaskit/logo": "^21.4.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
47
47
|
"@atlaskit/primitives": "^20.6.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/rovo-agent-analytics": "^5.3.0",
|
|
50
50
|
"@atlaskit/skeleton": "^4.2.0",
|
|
51
51
|
"@atlaskit/spinner": "^20.1.0",
|
|
52
|
-
"@atlaskit/tokens": "^15.
|
|
52
|
+
"@atlaskit/tokens": "^15.8.0",
|
|
53
53
|
"@atlaskit/tooltip": "^23.1.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.20.0",
|