@atlaskit/rovo-agent-components 2.13.0 → 3.0.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 +17 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +1 -1
- package/dist/cjs/ui/agent-dropdown-menu/index.js +11 -20
- package/dist/cjs/ui/agent-dropdown-menu/messages.js +5 -0
- package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +1 -1
- package/dist/es2019/ui/agent-dropdown-menu/index.js +6 -13
- package/dist/es2019/ui/agent-dropdown-menu/messages.js +5 -0
- package/dist/esm/ui/agent-avatar/generated-avatars/index.js +1 -1
- package/dist/esm/ui/agent-dropdown-menu/index.js +11 -20
- package/dist/esm/ui/agent-dropdown-menu/messages.js +5 -0
- package/dist/types/ui/agent-dropdown-menu/index.d.ts +5 -5
- package/dist/types/ui/agent-dropdown-menu/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +5 -5
- package/dist/types-ts4.5/ui/agent-dropdown-menu/messages.d.ts +5 -0
- package/package.json +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#193947](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193947)
|
|
8
|
+
[`737237ee5c52f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/737237ee5c52f) -
|
|
9
|
+
Removed unused `isAgentCreatedByUser` prop from agent dropdown actions component. This has been
|
|
10
|
+
replaced by a permissions call via `loadAgentPermissions`.
|
|
11
|
+
|
|
12
|
+
## 2.13.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#188589](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188589)
|
|
17
|
+
[`c27342e248d6b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c27342e248d6b) -
|
|
18
|
+
Update to fix the workflow builder icon mapping to use the correct icon.
|
|
19
|
+
|
|
3
20
|
## 2.13.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -279,7 +279,7 @@ var outOfTheBoxAgentAvatar = {
|
|
|
279
279
|
},
|
|
280
280
|
color: yellowColor
|
|
281
281
|
},
|
|
282
|
-
|
|
282
|
+
jira_workflow_builder_agent: {
|
|
283
283
|
getRender: function getRender(size) {
|
|
284
284
|
return /*#__PURE__*/_react.default.createElement(WorkflowBuilderAvatar, {
|
|
285
285
|
size: _avatar.AVATAR_SIZES[size],
|
|
@@ -54,8 +54,7 @@ var ChatToAgentButton = exports.ChatToAgentButton = function ChatToAgentButton(_
|
|
|
54
54
|
}, formatMessage(_messages.default.chatToAgentButton))))));
|
|
55
55
|
};
|
|
56
56
|
var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
57
|
-
var
|
|
58
|
-
isAutodevTemplateAgent = _ref2.isAutodevTemplateAgent,
|
|
57
|
+
var isAutodevTemplateAgent = _ref2.isAutodevTemplateAgent,
|
|
59
58
|
onEditAgent = _ref2.onEditAgent,
|
|
60
59
|
onCopyAgent = _ref2.onCopyAgent,
|
|
61
60
|
onDuplicateAgent = _ref2.onDuplicateAgent,
|
|
@@ -73,7 +72,8 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
73
72
|
doesAgentHaveIdentityAccountId = _ref2.doesAgentHaveIdentityAccountId,
|
|
74
73
|
loadAgentPermissions = _ref2.loadAgentPermissions,
|
|
75
74
|
loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
|
|
76
|
-
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation
|
|
75
|
+
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
|
|
76
|
+
agentName = _ref2.agentName;
|
|
77
77
|
var _useState = (0, _react.useState)(false),
|
|
78
78
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
79
79
|
isLoading = _useState2[0],
|
|
@@ -95,25 +95,14 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
95
95
|
(0, _react.useEffect)(function () {
|
|
96
96
|
var fetchData = /*#__PURE__*/function () {
|
|
97
97
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
98
|
-
var
|
|
98
|
+
var _yield$loadAgentPermi, isEditEnabled, isDeleteEnabled;
|
|
99
99
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
100
100
|
while (1) switch (_context.prev = _context.next) {
|
|
101
101
|
case 0:
|
|
102
|
-
if (loadAgentPermissions) {
|
|
103
|
-
_context.next = 4;
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
canEditDelete = isAgentCreatedByUser && !isForgeAgent;
|
|
107
|
-
setPermissions({
|
|
108
|
-
isEditEnabled: canEditDelete,
|
|
109
|
-
isDeleteEnabled: canEditDelete
|
|
110
|
-
});
|
|
111
|
-
return _context.abrupt("return");
|
|
112
|
-
case 4:
|
|
113
102
|
setIsLoading(true);
|
|
114
|
-
_context.next =
|
|
103
|
+
_context.next = 3;
|
|
115
104
|
return loadAgentPermissions();
|
|
116
|
-
case
|
|
105
|
+
case 3:
|
|
117
106
|
_yield$loadAgentPermi = _context.sent;
|
|
118
107
|
isEditEnabled = _yield$loadAgentPermi.isEditEnabled;
|
|
119
108
|
isDeleteEnabled = _yield$loadAgentPermi.isDeleteEnabled;
|
|
@@ -122,7 +111,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
122
111
|
isEditEnabled: isEditEnabled,
|
|
123
112
|
isDeleteEnabled: isDeleteEnabled
|
|
124
113
|
});
|
|
125
|
-
case
|
|
114
|
+
case 8:
|
|
126
115
|
case "end":
|
|
127
116
|
return _context.stop();
|
|
128
117
|
}
|
|
@@ -137,7 +126,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
137
126
|
if (!permissions && (isOpen || loadPermissionsOnMount)) {
|
|
138
127
|
fetchData();
|
|
139
128
|
}
|
|
140
|
-
}, [
|
|
129
|
+
}, [isOpen, loadAgentPermissions, loadPermissionsOnMount, permissions]);
|
|
141
130
|
(0, _react.useEffect)(function () {
|
|
142
131
|
if (!isOpen) {
|
|
143
132
|
setHasBeenCopied(false);
|
|
@@ -164,7 +153,9 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
164
153
|
props = (0, _objectWithoutProperties2.default)(_ref4, _excluded);
|
|
165
154
|
return /*#__PURE__*/_react.default.createElement(_new.IconButton, (0, _extends2.default)({}, props, {
|
|
166
155
|
icon: _showMoreHorizontalMore.default,
|
|
167
|
-
label: formatMessage(_messages.default.
|
|
156
|
+
label: agentName && (0, _platformFeatureFlags.fg)('a11y_agents_fixes') ? formatMessage(_messages.default.moreActionsForLabel, {
|
|
157
|
+
agentName: agentName
|
|
158
|
+
}) : formatMessage(_messages.default.moreActionsLabel),
|
|
168
159
|
ref: triggerRef,
|
|
169
160
|
spacing: spacing,
|
|
170
161
|
appearance: appearance,
|
|
@@ -16,6 +16,11 @@ var _default = exports.default = (0, _reactIntlNext.defineMessages)({
|
|
|
16
16
|
defaultMessage: 'More actions',
|
|
17
17
|
description: 'More actions dropdown menu label'
|
|
18
18
|
},
|
|
19
|
+
moreActionsForLabel: {
|
|
20
|
+
id: 'rovo-chat.view-agent.more-actions-for-label',
|
|
21
|
+
defaultMessage: 'More actions for {agentName}',
|
|
22
|
+
description: 'More actions dropdown menu label'
|
|
23
|
+
},
|
|
19
24
|
duplicateAgent: {
|
|
20
25
|
id: 'rovo-chat.view-agent.duplicate-agent',
|
|
21
26
|
defaultMessage: 'Duplicate Agent',
|
|
@@ -156,7 +156,7 @@ const outOfTheBoxAgentAvatar = {
|
|
|
156
156
|
}),
|
|
157
157
|
color: yellowColor
|
|
158
158
|
},
|
|
159
|
-
|
|
159
|
+
jira_workflow_builder_agent: {
|
|
160
160
|
getRender: size => /*#__PURE__*/React.createElement(WorkflowBuilderAvatar, {
|
|
161
161
|
size: AVATAR_SIZES[size],
|
|
162
162
|
primaryColor: blueColor.primary,
|
|
@@ -42,8 +42,6 @@ export const ChatToAgentButton = ({
|
|
|
42
42
|
}, formatMessage(messages.chatToAgentButton))))));
|
|
43
43
|
};
|
|
44
44
|
export const AgentDropdownMenu = ({
|
|
45
|
-
// TODO https://product-fabric.atlassian.net/browse/RAGE-655 `isAgentCreatedByUser` is not needed if `loadAgentPermissions` is provided
|
|
46
|
-
isAgentCreatedByUser,
|
|
47
45
|
isAutodevTemplateAgent,
|
|
48
46
|
onEditAgent,
|
|
49
47
|
onCopyAgent,
|
|
@@ -61,7 +59,8 @@ export const AgentDropdownMenu = ({
|
|
|
61
59
|
doesAgentHaveIdentityAccountId,
|
|
62
60
|
loadAgentPermissions,
|
|
63
61
|
loadPermissionsOnMount,
|
|
64
|
-
shouldTriggerStopPropagation
|
|
62
|
+
shouldTriggerStopPropagation,
|
|
63
|
+
agentName
|
|
65
64
|
}) => {
|
|
66
65
|
const [isLoading, setIsLoading] = useState(false);
|
|
67
66
|
const {
|
|
@@ -72,14 +71,6 @@ export const AgentDropdownMenu = ({
|
|
|
72
71
|
const [permissions, setPermissions] = useState();
|
|
73
72
|
useEffect(() => {
|
|
74
73
|
const fetchData = async () => {
|
|
75
|
-
if (!loadAgentPermissions) {
|
|
76
|
-
const canEditDelete = isAgentCreatedByUser && !isForgeAgent;
|
|
77
|
-
setPermissions({
|
|
78
|
-
isEditEnabled: canEditDelete,
|
|
79
|
-
isDeleteEnabled: canEditDelete
|
|
80
|
-
});
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
74
|
setIsLoading(true);
|
|
84
75
|
const {
|
|
85
76
|
isEditEnabled,
|
|
@@ -96,7 +87,7 @@ export const AgentDropdownMenu = ({
|
|
|
96
87
|
if (!permissions && (isOpen || loadPermissionsOnMount)) {
|
|
97
88
|
fetchData();
|
|
98
89
|
}
|
|
99
|
-
}, [
|
|
90
|
+
}, [isOpen, loadAgentPermissions, loadPermissionsOnMount, permissions]);
|
|
100
91
|
useEffect(() => {
|
|
101
92
|
if (!isOpen) {
|
|
102
93
|
setHasBeenCopied(false);
|
|
@@ -123,7 +114,9 @@ export const AgentDropdownMenu = ({
|
|
|
123
114
|
...props
|
|
124
115
|
}) => /*#__PURE__*/React.createElement(IconButton, _extends({}, props, {
|
|
125
116
|
icon: MoreIcon,
|
|
126
|
-
label: formatMessage(messages.
|
|
117
|
+
label: agentName && fg('a11y_agents_fixes') ? formatMessage(messages.moreActionsForLabel, {
|
|
118
|
+
agentName: agentName
|
|
119
|
+
}) : formatMessage(messages.moreActionsLabel),
|
|
127
120
|
ref: triggerRef,
|
|
128
121
|
spacing: spacing,
|
|
129
122
|
appearance: appearance,
|
|
@@ -10,6 +10,11 @@ export default defineMessages({
|
|
|
10
10
|
defaultMessage: 'More actions',
|
|
11
11
|
description: 'More actions dropdown menu label'
|
|
12
12
|
},
|
|
13
|
+
moreActionsForLabel: {
|
|
14
|
+
id: 'rovo-chat.view-agent.more-actions-for-label',
|
|
15
|
+
defaultMessage: 'More actions for {agentName}',
|
|
16
|
+
description: 'More actions dropdown menu label'
|
|
17
|
+
},
|
|
13
18
|
duplicateAgent: {
|
|
14
19
|
id: 'rovo-chat.view-agent.duplicate-agent',
|
|
15
20
|
defaultMessage: 'Duplicate Agent',
|
|
@@ -226,7 +226,7 @@ var outOfTheBoxAgentAvatar = {
|
|
|
226
226
|
},
|
|
227
227
|
color: yellowColor
|
|
228
228
|
},
|
|
229
|
-
|
|
229
|
+
jira_workflow_builder_agent: {
|
|
230
230
|
getRender: function getRender(size) {
|
|
231
231
|
return /*#__PURE__*/React.createElement(WorkflowBuilderAvatar, {
|
|
232
232
|
size: AVATAR_SIZES[size],
|
|
@@ -45,8 +45,7 @@ export var ChatToAgentButton = function ChatToAgentButton(_ref) {
|
|
|
45
45
|
}, formatMessage(messages.chatToAgentButton))))));
|
|
46
46
|
};
|
|
47
47
|
export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
48
|
-
var
|
|
49
|
-
isAutodevTemplateAgent = _ref2.isAutodevTemplateAgent,
|
|
48
|
+
var isAutodevTemplateAgent = _ref2.isAutodevTemplateAgent,
|
|
50
49
|
onEditAgent = _ref2.onEditAgent,
|
|
51
50
|
onCopyAgent = _ref2.onCopyAgent,
|
|
52
51
|
onDuplicateAgent = _ref2.onDuplicateAgent,
|
|
@@ -64,7 +63,8 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
64
63
|
doesAgentHaveIdentityAccountId = _ref2.doesAgentHaveIdentityAccountId,
|
|
65
64
|
loadAgentPermissions = _ref2.loadAgentPermissions,
|
|
66
65
|
loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
|
|
67
|
-
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation
|
|
66
|
+
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
|
|
67
|
+
agentName = _ref2.agentName;
|
|
68
68
|
var _useState = useState(false),
|
|
69
69
|
_useState2 = _slicedToArray(_useState, 2),
|
|
70
70
|
isLoading = _useState2[0],
|
|
@@ -86,25 +86,14 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
86
86
|
useEffect(function () {
|
|
87
87
|
var fetchData = /*#__PURE__*/function () {
|
|
88
88
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
89
|
-
var
|
|
89
|
+
var _yield$loadAgentPermi, isEditEnabled, isDeleteEnabled;
|
|
90
90
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
91
91
|
while (1) switch (_context.prev = _context.next) {
|
|
92
92
|
case 0:
|
|
93
|
-
if (loadAgentPermissions) {
|
|
94
|
-
_context.next = 4;
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
canEditDelete = isAgentCreatedByUser && !isForgeAgent;
|
|
98
|
-
setPermissions({
|
|
99
|
-
isEditEnabled: canEditDelete,
|
|
100
|
-
isDeleteEnabled: canEditDelete
|
|
101
|
-
});
|
|
102
|
-
return _context.abrupt("return");
|
|
103
|
-
case 4:
|
|
104
93
|
setIsLoading(true);
|
|
105
|
-
_context.next =
|
|
94
|
+
_context.next = 3;
|
|
106
95
|
return loadAgentPermissions();
|
|
107
|
-
case
|
|
96
|
+
case 3:
|
|
108
97
|
_yield$loadAgentPermi = _context.sent;
|
|
109
98
|
isEditEnabled = _yield$loadAgentPermi.isEditEnabled;
|
|
110
99
|
isDeleteEnabled = _yield$loadAgentPermi.isDeleteEnabled;
|
|
@@ -113,7 +102,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
113
102
|
isEditEnabled: isEditEnabled,
|
|
114
103
|
isDeleteEnabled: isDeleteEnabled
|
|
115
104
|
});
|
|
116
|
-
case
|
|
105
|
+
case 8:
|
|
117
106
|
case "end":
|
|
118
107
|
return _context.stop();
|
|
119
108
|
}
|
|
@@ -128,7 +117,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
128
117
|
if (!permissions && (isOpen || loadPermissionsOnMount)) {
|
|
129
118
|
fetchData();
|
|
130
119
|
}
|
|
131
|
-
}, [
|
|
120
|
+
}, [isOpen, loadAgentPermissions, loadPermissionsOnMount, permissions]);
|
|
132
121
|
useEffect(function () {
|
|
133
122
|
if (!isOpen) {
|
|
134
123
|
setHasBeenCopied(false);
|
|
@@ -155,7 +144,9 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
155
144
|
props = _objectWithoutProperties(_ref4, _excluded);
|
|
156
145
|
return /*#__PURE__*/React.createElement(IconButton, _extends({}, props, {
|
|
157
146
|
icon: MoreIcon,
|
|
158
|
-
label: formatMessage(messages.
|
|
147
|
+
label: agentName && fg('a11y_agents_fixes') ? formatMessage(messages.moreActionsForLabel, {
|
|
148
|
+
agentName: agentName
|
|
149
|
+
}) : formatMessage(messages.moreActionsLabel),
|
|
159
150
|
ref: triggerRef,
|
|
160
151
|
spacing: spacing,
|
|
161
152
|
appearance: appearance,
|
|
@@ -10,6 +10,11 @@ export default defineMessages({
|
|
|
10
10
|
defaultMessage: 'More actions',
|
|
11
11
|
description: 'More actions dropdown menu label'
|
|
12
12
|
},
|
|
13
|
+
moreActionsForLabel: {
|
|
14
|
+
id: 'rovo-chat.view-agent.more-actions-for-label',
|
|
15
|
+
defaultMessage: 'More actions for {agentName}',
|
|
16
|
+
description: 'More actions dropdown menu label'
|
|
17
|
+
},
|
|
13
18
|
duplicateAgent: {
|
|
14
19
|
id: 'rovo-chat.view-agent.duplicate-agent',
|
|
15
20
|
defaultMessage: 'Duplicate Agent',
|
|
@@ -25,9 +25,9 @@ type ViewAgentFullProfileProps = {
|
|
|
25
25
|
doesAgentHaveIdentityAccountId?: undefined;
|
|
26
26
|
};
|
|
27
27
|
type AgentDropdownMenuProps = {
|
|
28
|
-
isAgentCreatedByUser: boolean;
|
|
29
28
|
isAutodevTemplateAgent?: boolean;
|
|
30
29
|
agentId: string;
|
|
30
|
+
agentName?: string;
|
|
31
31
|
onEditAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
32
32
|
onCopyAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
33
33
|
onDuplicateAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
@@ -38,12 +38,12 @@ type AgentDropdownMenuProps = {
|
|
|
38
38
|
spacing?: React.ComponentProps<typeof IconButton>['spacing'];
|
|
39
39
|
appearance?: React.ComponentProps<typeof IconButton>['appearance'];
|
|
40
40
|
dropdownMenuTestId?: React.ComponentProps<typeof DropdownMenu>['testId'];
|
|
41
|
-
|
|
41
|
+
loadPermissionsOnMount?: boolean;
|
|
42
|
+
shouldTriggerStopPropagation?: boolean;
|
|
43
|
+
loadAgentPermissions: () => Promise<{
|
|
42
44
|
isEditEnabled: boolean;
|
|
43
45
|
isDeleteEnabled: boolean;
|
|
44
46
|
}>;
|
|
45
|
-
loadPermissionsOnMount?: boolean;
|
|
46
|
-
shouldTriggerStopPropagation?: boolean;
|
|
47
47
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
48
|
-
export declare const AgentDropdownMenu: ({
|
|
48
|
+
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, }: AgentDropdownMenuProps) => JSX.Element;
|
|
49
49
|
export {};
|
|
@@ -9,6 +9,11 @@ declare const _default: {
|
|
|
9
9
|
readonly defaultMessage: "More actions";
|
|
10
10
|
readonly description: "More actions dropdown menu label";
|
|
11
11
|
};
|
|
12
|
+
readonly moreActionsForLabel: {
|
|
13
|
+
readonly id: "rovo-chat.view-agent.more-actions-for-label";
|
|
14
|
+
readonly defaultMessage: "More actions for {agentName}";
|
|
15
|
+
readonly description: "More actions dropdown menu label";
|
|
16
|
+
};
|
|
12
17
|
readonly duplicateAgent: {
|
|
13
18
|
readonly id: "rovo-chat.view-agent.duplicate-agent";
|
|
14
19
|
readonly defaultMessage: "Duplicate Agent";
|
|
@@ -25,9 +25,9 @@ type ViewAgentFullProfileProps = {
|
|
|
25
25
|
doesAgentHaveIdentityAccountId?: undefined;
|
|
26
26
|
};
|
|
27
27
|
type AgentDropdownMenuProps = {
|
|
28
|
-
isAgentCreatedByUser: boolean;
|
|
29
28
|
isAutodevTemplateAgent?: boolean;
|
|
30
29
|
agentId: string;
|
|
30
|
+
agentName?: string;
|
|
31
31
|
onEditAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
32
32
|
onCopyAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
33
33
|
onDuplicateAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
@@ -38,12 +38,12 @@ type AgentDropdownMenuProps = {
|
|
|
38
38
|
spacing?: React.ComponentProps<typeof IconButton>['spacing'];
|
|
39
39
|
appearance?: React.ComponentProps<typeof IconButton>['appearance'];
|
|
40
40
|
dropdownMenuTestId?: React.ComponentProps<typeof DropdownMenu>['testId'];
|
|
41
|
-
|
|
41
|
+
loadPermissionsOnMount?: boolean;
|
|
42
|
+
shouldTriggerStopPropagation?: boolean;
|
|
43
|
+
loadAgentPermissions: () => Promise<{
|
|
42
44
|
isEditEnabled: boolean;
|
|
43
45
|
isDeleteEnabled: boolean;
|
|
44
46
|
}>;
|
|
45
|
-
loadPermissionsOnMount?: boolean;
|
|
46
|
-
shouldTriggerStopPropagation?: boolean;
|
|
47
47
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
48
|
-
export declare const AgentDropdownMenu: ({
|
|
48
|
+
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, }: AgentDropdownMenuProps) => JSX.Element;
|
|
49
49
|
export {};
|
|
@@ -9,6 +9,11 @@ declare const _default: {
|
|
|
9
9
|
readonly defaultMessage: "More actions";
|
|
10
10
|
readonly description: "More actions dropdown menu label";
|
|
11
11
|
};
|
|
12
|
+
readonly moreActionsForLabel: {
|
|
13
|
+
readonly id: "rovo-chat.view-agent.more-actions-for-label";
|
|
14
|
+
readonly defaultMessage: "More actions for {agentName}";
|
|
15
|
+
readonly description: "More actions dropdown menu label";
|
|
16
|
+
};
|
|
12
17
|
readonly duplicateAgent: {
|
|
13
18
|
readonly id: "rovo-chat.view-agent.duplicate-agent";
|
|
14
19
|
readonly defaultMessage: "Duplicate Agent";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.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",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
39
39
|
"@atlaskit/avatar": "^25.1.0",
|
|
40
|
-
"@atlaskit/button": "^23.
|
|
40
|
+
"@atlaskit/button": "^23.3.0",
|
|
41
41
|
"@atlaskit/css": "^0.12.0",
|
|
42
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
42
|
+
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
43
43
|
"@atlaskit/heading": "^5.2.0",
|
|
44
|
-
"@atlaskit/icon": "^27.
|
|
44
|
+
"@atlaskit/icon": "^27.8.0",
|
|
45
45
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
46
46
|
"@atlaskit/link": "^3.2.0",
|
|
47
|
-
"@atlaskit/logo": "^19.
|
|
47
|
+
"@atlaskit/logo": "^19.6.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
|
-
"@atlaskit/primitives": "^14.
|
|
50
|
-
"@atlaskit/skeleton": "^2.
|
|
51
|
-
"@atlaskit/tokens": "^5.
|
|
52
|
-
"@atlaskit/tooltip": "^20.
|
|
49
|
+
"@atlaskit/primitives": "^14.11.0",
|
|
50
|
+
"@atlaskit/skeleton": "^2.1.0",
|
|
51
|
+
"@atlaskit/tokens": "^5.6.0",
|
|
52
|
+
"@atlaskit/tooltip": "^20.4.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@compiled/react": "^0.18.3",
|
|
55
55
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
@@ -118,6 +118,9 @@
|
|
|
118
118
|
},
|
|
119
119
|
"should-render-to-parent-should-be-true-ai-mate": {
|
|
120
120
|
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"a11y_agents_fixes": {
|
|
123
|
+
"type": "boolean"
|
|
121
124
|
}
|
|
122
125
|
}
|
|
123
126
|
}
|