@atlaskit/rovo-agent-components 2.11.6 → 2.13.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 +20 -0
- package/dist/cjs/ui/agent-dropdown-menu/index.js +2 -0
- package/dist/es2019/ui/agent-dropdown-menu/index.js +3 -0
- package/dist/esm/ui/agent-dropdown-menu/index.js +2 -0
- package/dist/types/ui/agent-dropdown-menu/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +2 -1
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 2.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#186683](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/186683)
|
|
8
|
+
[`538ec6ba100e3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/538ec6ba100e3) -
|
|
9
|
+
Deprecate useBrowseAgentsUI, split BrowseAgentsContent to BrowseAgentsContentNew and
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 2.12.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#182035](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/182035)
|
|
20
|
+
[`6cb80ec4edf85`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6cb80ec4edf85) -
|
|
21
|
+
[ux] Show "More" btn on hover / focus only, and when dropdown is opened (Chat Item and Agent Item)
|
|
22
|
+
|
|
3
23
|
## 2.11.6
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -61,6 +61,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
61
61
|
onDuplicateAgent = _ref2.onDuplicateAgent,
|
|
62
62
|
onDeleteAgent = _ref2.onDeleteAgent,
|
|
63
63
|
onViewAgentFullProfileClick = _ref2.onViewAgentFullProfileClick,
|
|
64
|
+
_onOpenChange = _ref2.onOpenChange,
|
|
64
65
|
isForgeAgent = _ref2.isForgeAgent,
|
|
65
66
|
_ref2$showViewAgentOp = _ref2.showViewAgentOption,
|
|
66
67
|
showViewAgentOption = _ref2$showViewAgentOp === void 0 ? false : _ref2$showViewAgentOp,
|
|
@@ -181,6 +182,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
181
182
|
},
|
|
182
183
|
onOpenChange: function onOpenChange(args) {
|
|
183
184
|
setIsOpen(args.isOpen);
|
|
185
|
+
_onOpenChange === null || _onOpenChange === void 0 || _onOpenChange(args);
|
|
184
186
|
if (!args.isOpen) {
|
|
185
187
|
setHasBeenCopied(false);
|
|
186
188
|
}
|
|
@@ -42,6 +42,7 @@ 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
|
|
45
46
|
isAgentCreatedByUser,
|
|
46
47
|
isAutodevTemplateAgent,
|
|
47
48
|
onEditAgent,
|
|
@@ -49,6 +50,7 @@ export const AgentDropdownMenu = ({
|
|
|
49
50
|
onDuplicateAgent,
|
|
50
51
|
onDeleteAgent,
|
|
51
52
|
onViewAgentFullProfileClick,
|
|
53
|
+
onOpenChange,
|
|
52
54
|
isForgeAgent,
|
|
53
55
|
showViewAgentOption = false,
|
|
54
56
|
onViewAgentClick,
|
|
@@ -138,6 +140,7 @@ export const AgentDropdownMenu = ({
|
|
|
138
140
|
})),
|
|
139
141
|
onOpenChange: args => {
|
|
140
142
|
setIsOpen(args.isOpen);
|
|
143
|
+
onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(args);
|
|
141
144
|
if (!args.isOpen) {
|
|
142
145
|
setHasBeenCopied(false);
|
|
143
146
|
}
|
|
@@ -52,6 +52,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
52
52
|
onDuplicateAgent = _ref2.onDuplicateAgent,
|
|
53
53
|
onDeleteAgent = _ref2.onDeleteAgent,
|
|
54
54
|
onViewAgentFullProfileClick = _ref2.onViewAgentFullProfileClick,
|
|
55
|
+
_onOpenChange = _ref2.onOpenChange,
|
|
55
56
|
isForgeAgent = _ref2.isForgeAgent,
|
|
56
57
|
_ref2$showViewAgentOp = _ref2.showViewAgentOption,
|
|
57
58
|
showViewAgentOption = _ref2$showViewAgentOp === void 0 ? false : _ref2$showViewAgentOp,
|
|
@@ -172,6 +173,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
172
173
|
},
|
|
173
174
|
onOpenChange: function onOpenChange(args) {
|
|
174
175
|
setIsOpen(args.isOpen);
|
|
176
|
+
_onOpenChange === null || _onOpenChange === void 0 || _onOpenChange(args);
|
|
175
177
|
if (!args.isOpen) {
|
|
176
178
|
setHasBeenCopied(false);
|
|
177
179
|
}
|
|
@@ -34,6 +34,7 @@ type AgentDropdownMenuProps = {
|
|
|
34
34
|
onDeleteAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
35
35
|
isForgeAgent: boolean;
|
|
36
36
|
onDropdownTriggerClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
37
|
+
onOpenChange?: React.ComponentProps<typeof DropdownMenu>['onOpenChange'];
|
|
37
38
|
spacing?: React.ComponentProps<typeof IconButton>['spacing'];
|
|
38
39
|
appearance?: React.ComponentProps<typeof IconButton>['appearance'];
|
|
39
40
|
dropdownMenuTestId?: React.ComponentProps<typeof DropdownMenu>['testId'];
|
|
@@ -44,5 +45,5 @@ type AgentDropdownMenuProps = {
|
|
|
44
45
|
loadPermissionsOnMount?: boolean;
|
|
45
46
|
shouldTriggerStopPropagation?: boolean;
|
|
46
47
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
47
|
-
export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, }: AgentDropdownMenuProps) => JSX.Element;
|
|
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;
|
|
48
49
|
export {};
|
|
@@ -34,6 +34,7 @@ type AgentDropdownMenuProps = {
|
|
|
34
34
|
onDeleteAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
|
|
35
35
|
isForgeAgent: boolean;
|
|
36
36
|
onDropdownTriggerClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
37
|
+
onOpenChange?: React.ComponentProps<typeof DropdownMenu>['onOpenChange'];
|
|
37
38
|
spacing?: React.ComponentProps<typeof IconButton>['spacing'];
|
|
38
39
|
appearance?: React.ComponentProps<typeof IconButton>['appearance'];
|
|
39
40
|
dropdownMenuTestId?: React.ComponentProps<typeof DropdownMenu>['testId'];
|
|
@@ -44,5 +45,5 @@ type AgentDropdownMenuProps = {
|
|
|
44
45
|
loadPermissionsOnMount?: boolean;
|
|
45
46
|
shouldTriggerStopPropagation?: boolean;
|
|
46
47
|
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
47
|
-
export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, }: AgentDropdownMenuProps) => JSX.Element;
|
|
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;
|
|
48
49
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.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",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "AI Mate",
|
|
12
|
-
"runReact18": true,
|
|
13
12
|
"website": {
|
|
14
13
|
"name": "RovoAgentComponents",
|
|
15
14
|
"category": "Components"
|
|
@@ -40,16 +39,16 @@
|
|
|
40
39
|
"@atlaskit/avatar": "^25.1.0",
|
|
41
40
|
"@atlaskit/button": "^23.2.0",
|
|
42
41
|
"@atlaskit/css": "^0.12.0",
|
|
43
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
42
|
+
"@atlaskit/dropdown-menu": "^16.2.0",
|
|
44
43
|
"@atlaskit/heading": "^5.2.0",
|
|
45
|
-
"@atlaskit/icon": "^27.
|
|
44
|
+
"@atlaskit/icon": "^27.3.0",
|
|
46
45
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
47
46
|
"@atlaskit/link": "^3.2.0",
|
|
48
|
-
"@atlaskit/logo": "^19.
|
|
47
|
+
"@atlaskit/logo": "^19.5.0",
|
|
49
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
49
|
"@atlaskit/primitives": "^14.10.0",
|
|
51
50
|
"@atlaskit/skeleton": "^2.0.0",
|
|
52
|
-
"@atlaskit/tokens": "^5.
|
|
51
|
+
"@atlaskit/tokens": "^5.5.0",
|
|
53
52
|
"@atlaskit/tooltip": "^20.3.0",
|
|
54
53
|
"@babel/runtime": "^7.0.0",
|
|
55
54
|
"@compiled/react": "^0.18.3",
|