@atlaskit/rovo-agent-components 2.13.0 → 2.13.1
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 +8 -0
- package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +1 -1
- package/dist/cjs/ui/agent-dropdown-menu/index.js +5 -2
- 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 +5 -2
- 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 +5 -2
- package/dist/esm/ui/agent-dropdown-menu/messages.js +5 -0
- package/dist/types/ui/agent-dropdown-menu/index.d.ts +2 -1
- package/dist/types/ui/agent-dropdown-menu/messages.d.ts +5 -0
- package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/agent-dropdown-menu/messages.d.ts +5 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 2.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#188589](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188589)
|
|
8
|
+
[`c27342e248d6b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c27342e248d6b) -
|
|
9
|
+
Update to fix the workflow builder icon mapping to use the correct icon.
|
|
10
|
+
|
|
3
11
|
## 2.13.0
|
|
4
12
|
|
|
5
13
|
### 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],
|
|
@@ -73,7 +73,8 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
73
73
|
doesAgentHaveIdentityAccountId = _ref2.doesAgentHaveIdentityAccountId,
|
|
74
74
|
loadAgentPermissions = _ref2.loadAgentPermissions,
|
|
75
75
|
loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
|
|
76
|
-
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation
|
|
76
|
+
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
|
|
77
|
+
agentName = _ref2.agentName;
|
|
77
78
|
var _useState = (0, _react.useState)(false),
|
|
78
79
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
79
80
|
isLoading = _useState2[0],
|
|
@@ -164,7 +165,9 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
164
165
|
props = (0, _objectWithoutProperties2.default)(_ref4, _excluded);
|
|
165
166
|
return /*#__PURE__*/_react.default.createElement(_new.IconButton, (0, _extends2.default)({}, props, {
|
|
166
167
|
icon: _showMoreHorizontalMore.default,
|
|
167
|
-
label: formatMessage(_messages.default.
|
|
168
|
+
label: agentName && (0, _platformFeatureFlags.fg)('a11y_agents_fixes') ? formatMessage(_messages.default.moreActionsForLabel, {
|
|
169
|
+
agentName: agentName
|
|
170
|
+
}) : formatMessage(_messages.default.moreActionsLabel),
|
|
168
171
|
ref: triggerRef,
|
|
169
172
|
spacing: spacing,
|
|
170
173
|
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,
|
|
@@ -61,7 +61,8 @@ export const AgentDropdownMenu = ({
|
|
|
61
61
|
doesAgentHaveIdentityAccountId,
|
|
62
62
|
loadAgentPermissions,
|
|
63
63
|
loadPermissionsOnMount,
|
|
64
|
-
shouldTriggerStopPropagation
|
|
64
|
+
shouldTriggerStopPropagation,
|
|
65
|
+
agentName
|
|
65
66
|
}) => {
|
|
66
67
|
const [isLoading, setIsLoading] = useState(false);
|
|
67
68
|
const {
|
|
@@ -123,7 +124,9 @@ export const AgentDropdownMenu = ({
|
|
|
123
124
|
...props
|
|
124
125
|
}) => /*#__PURE__*/React.createElement(IconButton, _extends({}, props, {
|
|
125
126
|
icon: MoreIcon,
|
|
126
|
-
label: formatMessage(messages.
|
|
127
|
+
label: agentName && fg('a11y_agents_fixes') ? formatMessage(messages.moreActionsForLabel, {
|
|
128
|
+
agentName: agentName
|
|
129
|
+
}) : formatMessage(messages.moreActionsLabel),
|
|
127
130
|
ref: triggerRef,
|
|
128
131
|
spacing: spacing,
|
|
129
132
|
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],
|
|
@@ -64,7 +64,8 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
64
64
|
doesAgentHaveIdentityAccountId = _ref2.doesAgentHaveIdentityAccountId,
|
|
65
65
|
loadAgentPermissions = _ref2.loadAgentPermissions,
|
|
66
66
|
loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
|
|
67
|
-
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation
|
|
67
|
+
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
|
|
68
|
+
agentName = _ref2.agentName;
|
|
68
69
|
var _useState = useState(false),
|
|
69
70
|
_useState2 = _slicedToArray(_useState, 2),
|
|
70
71
|
isLoading = _useState2[0],
|
|
@@ -155,7 +156,9 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
155
156
|
props = _objectWithoutProperties(_ref4, _excluded);
|
|
156
157
|
return /*#__PURE__*/React.createElement(IconButton, _extends({}, props, {
|
|
157
158
|
icon: MoreIcon,
|
|
158
|
-
label: formatMessage(messages.
|
|
159
|
+
label: agentName && fg('a11y_agents_fixes') ? formatMessage(messages.moreActionsForLabel, {
|
|
160
|
+
agentName: agentName
|
|
161
|
+
}) : formatMessage(messages.moreActionsLabel),
|
|
159
162
|
ref: triggerRef,
|
|
160
163
|
spacing: spacing,
|
|
161
164
|
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',
|
|
@@ -28,6 +28,7 @@ type AgentDropdownMenuProps = {
|
|
|
28
28
|
isAgentCreatedByUser: boolean;
|
|
29
29
|
isAutodevTemplateAgent?: boolean;
|
|
30
30
|
agentId: string;
|
|
31
|
+
agentName?: string;
|
|
31
32
|
onEditAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
32
33
|
onCopyAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
33
34
|
onDuplicateAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
@@ -45,5 +46,5 @@ type AgentDropdownMenuProps = {
|
|
|
45
46
|
loadPermissionsOnMount?: boolean;
|
|
46
47
|
shouldTriggerStopPropagation?: boolean;
|
|
47
48
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
48
|
-
export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, }: AgentDropdownMenuProps) => JSX.Element;
|
|
49
|
+
export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, }: AgentDropdownMenuProps) => JSX.Element;
|
|
49
50
|
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";
|
|
@@ -28,6 +28,7 @@ type AgentDropdownMenuProps = {
|
|
|
28
28
|
isAgentCreatedByUser: boolean;
|
|
29
29
|
isAutodevTemplateAgent?: boolean;
|
|
30
30
|
agentId: string;
|
|
31
|
+
agentName?: string;
|
|
31
32
|
onEditAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
32
33
|
onCopyAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
33
34
|
onDuplicateAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
@@ -45,5 +46,5 @@ type AgentDropdownMenuProps = {
|
|
|
45
46
|
loadPermissionsOnMount?: boolean;
|
|
46
47
|
shouldTriggerStopPropagation?: boolean;
|
|
47
48
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
48
|
-
export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, }: AgentDropdownMenuProps) => JSX.Element;
|
|
49
|
+
export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, }: AgentDropdownMenuProps) => JSX.Element;
|
|
49
50
|
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": "2.13.
|
|
3
|
+
"version": "2.13.1",
|
|
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",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@atlaskit/css": "^0.12.0",
|
|
42
42
|
"@atlaskit/dropdown-menu": "^16.2.0",
|
|
43
43
|
"@atlaskit/heading": "^5.2.0",
|
|
44
|
-
"@atlaskit/icon": "^27.
|
|
44
|
+
"@atlaskit/icon": "^27.5.0",
|
|
45
45
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
46
46
|
"@atlaskit/link": "^3.2.0",
|
|
47
47
|
"@atlaskit/logo": "^19.5.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^14.10.0",
|
|
50
50
|
"@atlaskit/skeleton": "^2.0.0",
|
|
51
|
-
"@atlaskit/tokens": "^5.
|
|
51
|
+
"@atlaskit/tokens": "^5.6.0",
|
|
52
52
|
"@atlaskit/tooltip": "^20.3.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@compiled/react": "^0.18.3",
|
|
@@ -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
|
}
|