@atlaskit/rovo-agent-components 3.25.0 → 3.26.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 +7 -0
- package/dist/cjs/ui/agent-dropdown-menu/index.js +10 -5
- package/dist/es2019/ui/agent-dropdown-menu/index.js +10 -5
- package/dist/esm/ui/agent-dropdown-menu/index.js +10 -5
- package/dist/types/ui/agent-dropdown-menu/index.d.ts +3 -4
- package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +3 -4
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/rovo-agent-components
|
|
2
2
|
|
|
3
|
+
## 3.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d0e843139fc33`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d0e843139fc33) -
|
|
8
|
+
[ux] use agent verification dropdown item for view agent in browse agent
|
|
9
|
+
|
|
3
10
|
## 3.25.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -22,6 +22,7 @@ var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/sh
|
|
|
22
22
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
23
23
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
24
24
|
var _chatIcon = require("../../common/ui/chat-icon");
|
|
25
|
+
var _agentVerificationDropdownItem = require("../agent-verification-dropdown-item");
|
|
25
26
|
var _messages = _interopRequireDefault(require("./messages"));
|
|
26
27
|
var _excluded = ["triggerRef"];
|
|
27
28
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -55,6 +56,7 @@ var ChatToAgentButton = exports.ChatToAgentButton = function ChatToAgentButton(_
|
|
|
55
56
|
};
|
|
56
57
|
var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
57
58
|
var isAutodevTemplateAgent = _ref2.isAutodevTemplateAgent,
|
|
59
|
+
agentId = _ref2.agentId,
|
|
58
60
|
onEditAgent = _ref2.onEditAgent,
|
|
59
61
|
onCopyAgent = _ref2.onCopyAgent,
|
|
60
62
|
onDuplicateAgent = _ref2.onDuplicateAgent,
|
|
@@ -74,8 +76,8 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
74
76
|
loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
|
|
75
77
|
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
|
|
76
78
|
agentName = _ref2.agentName,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
agentRef = _ref2.agentRef,
|
|
80
|
+
userPermissionsRef = _ref2.userPermissionsRef;
|
|
79
81
|
var _useState = (0, _react.useState)(false),
|
|
80
82
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
81
83
|
isLoading = _useState2[0],
|
|
@@ -195,7 +197,10 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
|
|
|
195
197
|
setHasBeenCopied(true);
|
|
196
198
|
onCopyAgent === null || onCopyAgent === void 0 || onCopyAgent(e);
|
|
197
199
|
}
|
|
198
|
-
}, formatMessage(hasBeenCopied ? _messages.default.linkedCopiedToProfile : _messages.default.copyLinkToProfile)),
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
}, formatMessage(hasBeenCopied ? _messages.default.linkedCopiedToProfile : _messages.default.copyLinkToProfile)), agentRef && userPermissionsRef && (0, _platformFeatureFlags.fg)('rovo_agents_agent_verification') && /*#__PURE__*/_react.default.createElement(_agentVerificationDropdownItem.AgentVerificationDropdownItem, {
|
|
201
|
+
agentId: agentId,
|
|
202
|
+
agentRef: agentRef !== null && agentRef !== void 0 ? agentRef : null,
|
|
203
|
+
userPermissionsRef: userPermissionsRef !== null && userPermissionsRef !== void 0 ? userPermissionsRef : null,
|
|
204
|
+
testId: "agent-actions-menu-verification"
|
|
205
|
+
})), renderEditDelete());
|
|
201
206
|
};
|
|
@@ -10,6 +10,7 @@ import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import { ChatPillIcon } from '../../common/ui/chat-icon';
|
|
13
|
+
import { AgentVerificationDropdownItem } from '../agent-verification-dropdown-item';
|
|
13
14
|
import messages from './messages';
|
|
14
15
|
const styles = {
|
|
15
16
|
chatToAgentButtonContainer: "_1bsb1osq",
|
|
@@ -43,6 +44,7 @@ export const ChatToAgentButton = ({
|
|
|
43
44
|
};
|
|
44
45
|
export const AgentDropdownMenu = ({
|
|
45
46
|
isAutodevTemplateAgent,
|
|
47
|
+
agentId,
|
|
46
48
|
onEditAgent,
|
|
47
49
|
onCopyAgent,
|
|
48
50
|
onDuplicateAgent,
|
|
@@ -61,8 +63,8 @@ export const AgentDropdownMenu = ({
|
|
|
61
63
|
loadPermissionsOnMount,
|
|
62
64
|
shouldTriggerStopPropagation,
|
|
63
65
|
agentName,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
agentRef,
|
|
67
|
+
userPermissionsRef
|
|
66
68
|
}) => {
|
|
67
69
|
const [isLoading, setIsLoading] = useState(false);
|
|
68
70
|
const {
|
|
@@ -155,7 +157,10 @@ export const AgentDropdownMenu = ({
|
|
|
155
157
|
setHasBeenCopied(true);
|
|
156
158
|
onCopyAgent === null || onCopyAgent === void 0 ? void 0 : onCopyAgent(e);
|
|
157
159
|
}
|
|
158
|
-
}, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile)),
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
}, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile)), agentRef && userPermissionsRef && fg('rovo_agents_agent_verification') && /*#__PURE__*/React.createElement(AgentVerificationDropdownItem, {
|
|
161
|
+
agentId: agentId,
|
|
162
|
+
agentRef: agentRef !== null && agentRef !== void 0 ? agentRef : null,
|
|
163
|
+
userPermissionsRef: userPermissionsRef !== null && userPermissionsRef !== void 0 ? userPermissionsRef : null,
|
|
164
|
+
testId: "agent-actions-menu-verification"
|
|
165
|
+
})), renderEditDelete());
|
|
161
166
|
};
|
|
@@ -15,6 +15,7 @@ import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
16
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
17
17
|
import { ChatPillIcon } from '../../common/ui/chat-icon';
|
|
18
|
+
import { AgentVerificationDropdownItem } from '../agent-verification-dropdown-item';
|
|
18
19
|
import messages from './messages';
|
|
19
20
|
var styles = {
|
|
20
21
|
chatToAgentButtonContainer: "_1bsb1osq",
|
|
@@ -46,6 +47,7 @@ export var ChatToAgentButton = function ChatToAgentButton(_ref) {
|
|
|
46
47
|
};
|
|
47
48
|
export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
48
49
|
var isAutodevTemplateAgent = _ref2.isAutodevTemplateAgent,
|
|
50
|
+
agentId = _ref2.agentId,
|
|
49
51
|
onEditAgent = _ref2.onEditAgent,
|
|
50
52
|
onCopyAgent = _ref2.onCopyAgent,
|
|
51
53
|
onDuplicateAgent = _ref2.onDuplicateAgent,
|
|
@@ -65,8 +67,8 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
65
67
|
loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
|
|
66
68
|
shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
|
|
67
69
|
agentName = _ref2.agentName,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
agentRef = _ref2.agentRef,
|
|
71
|
+
userPermissionsRef = _ref2.userPermissionsRef;
|
|
70
72
|
var _useState = useState(false),
|
|
71
73
|
_useState2 = _slicedToArray(_useState, 2),
|
|
72
74
|
isLoading = _useState2[0],
|
|
@@ -186,7 +188,10 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
|
|
|
186
188
|
setHasBeenCopied(true);
|
|
187
189
|
onCopyAgent === null || onCopyAgent === void 0 || onCopyAgent(e);
|
|
188
190
|
}
|
|
189
|
-
}, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile)),
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
}, formatMessage(hasBeenCopied ? messages.linkedCopiedToProfile : messages.copyLinkToProfile)), agentRef && userPermissionsRef && fg('rovo_agents_agent_verification') && /*#__PURE__*/React.createElement(AgentVerificationDropdownItem, {
|
|
192
|
+
agentId: agentId,
|
|
193
|
+
agentRef: agentRef !== null && agentRef !== void 0 ? agentRef : null,
|
|
194
|
+
userPermissionsRef: userPermissionsRef !== null && userPermissionsRef !== void 0 ? userPermissionsRef : null,
|
|
195
|
+
testId: "agent-actions-menu-verification"
|
|
196
|
+
})), renderEditDelete());
|
|
192
197
|
};
|
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
7
|
import { type ButtonProps, IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import DropdownMenu, { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
9
|
+
import { type AgentVerificationDropdownItemProps } from '../agent-verification-dropdown-item';
|
|
9
10
|
type ChatToAgentButtonProps = {
|
|
10
11
|
onClick: ButtonProps['onClick'];
|
|
11
12
|
};
|
|
@@ -45,8 +46,6 @@ type AgentDropdownMenuProps = {
|
|
|
45
46
|
isEditEnabled: boolean;
|
|
46
47
|
isDeleteEnabled: boolean;
|
|
47
48
|
}>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
51
|
-
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, isVerified, isAbleToGovernAgents, }: AgentDropdownMenuProps) => JSX.Element;
|
|
49
|
+
} & ViewAgentOptionProps & ViewAgentFullProfileProps & Partial<Pick<AgentVerificationDropdownItemProps, 'agentRef' | 'userPermissionsRef'>>;
|
|
50
|
+
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, agentId, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, agentRef, userPermissionsRef, }: AgentDropdownMenuProps) => JSX.Element;
|
|
52
51
|
export {};
|
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
7
|
import { type ButtonProps, IconButton } from '@atlaskit/button/new';
|
|
8
8
|
import DropdownMenu, { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
9
|
+
import { type AgentVerificationDropdownItemProps } from '../agent-verification-dropdown-item';
|
|
9
10
|
type ChatToAgentButtonProps = {
|
|
10
11
|
onClick: ButtonProps['onClick'];
|
|
11
12
|
};
|
|
@@ -45,8 +46,6 @@ type AgentDropdownMenuProps = {
|
|
|
45
46
|
isEditEnabled: boolean;
|
|
46
47
|
isDeleteEnabled: boolean;
|
|
47
48
|
}>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} & ViewAgentOptionProps & ViewAgentFullProfileProps;
|
|
51
|
-
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, isVerified, isAbleToGovernAgents, }: AgentDropdownMenuProps) => JSX.Element;
|
|
49
|
+
} & ViewAgentOptionProps & ViewAgentFullProfileProps & Partial<Pick<AgentVerificationDropdownItemProps, 'agentRef' | 'userPermissionsRef'>>;
|
|
50
|
+
export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, agentId, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, agentRef, userPermissionsRef, }: AgentDropdownMenuProps) => JSX.Element;
|
|
52
51
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-agent-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.26.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",
|
|
@@ -74,9 +74,6 @@
|
|
|
74
74
|
},
|
|
75
75
|
"techstack": {
|
|
76
76
|
"@atlassian/frontend": {
|
|
77
|
-
"code-structure": [
|
|
78
|
-
"tangerine-next"
|
|
79
|
-
],
|
|
80
77
|
"import-structure": [
|
|
81
78
|
"atlassian-conventions"
|
|
82
79
|
],
|