@atlaskit/rovo-agent-components 7.1.0 → 7.3.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 7.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b84f653c93be0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b84f653c93be0) -
8
+ Update i18n NPM package versions for ai-mate,ai,ai-opt-in,insights-ai-platform (Group 2)
9
+
10
+ ## 7.2.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`6cee291426484`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6cee291426484) -
15
+ Added `shouldRenderToParent` prop to `AgentDropdownMenu` and enabled for the actions dropdown on
16
+ the View Agent modal
17
+
3
18
  ## 7.1.0
4
19
 
5
20
  ### Minor Changes
package/compass.yml ADDED
@@ -0,0 +1,38 @@
1
+ configVersion: 1
2
+ id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/a0d02bd7-4039-4185-a7bc-2e4463c8a506
3
+ name: '@atlaskit/rovo-agent-components'
4
+ ownerId: ari:cloud:identity::team/ad3999f9-904f-4f76-a228-dc255feb581a # Rovo Agents
5
+ labels:
6
+ - platform-code
7
+ - platform-afm
8
+ typeId: OTHER
9
+ fields:
10
+ tier: 4
11
+ lifecycle: Active
12
+ isMonorepoProject: true
13
+ links:
14
+ - name: Root Repository
15
+ type: REPOSITORY
16
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
17
+ - name: Slack Channel
18
+ type: CHAT_CHANNEL
19
+ url: https://atlassian.enterprise.slack.com/archives/C09GAQ45Z38 # #rovo-agents-frontend-alerts
20
+ - name: Rovo Agent Components
21
+ type: REPOSITORY
22
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/ai-mate/rovo-agent-components
23
+ customFields:
24
+ - name: Department
25
+ type: text
26
+ value: Eng - Rovo Agents - RAGEnts
27
+ - name: Technical Owner
28
+ type: user
29
+ value: ari:cloud:identity::user/5b985e7c96cb052b5f65c830 # Andi Tjong
30
+ - name: Required Reviewers Opt In
31
+ type: boolean
32
+ value: true
33
+ - name: Reviewer Selection Mechanism
34
+ type: text
35
+ value: random(2)
36
+ - name: Required Reviewer Approvals
37
+ type: number
38
+ value: 1
@@ -75,6 +75,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
75
75
  loadAgentPermissions = _ref2.loadAgentPermissions,
76
76
  loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
77
77
  shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
78
+ shouldRenderToParent = _ref2.shouldRenderToParent,
78
79
  agentName = _ref2.agentName,
79
80
  agentRef = _ref2.agentRef,
80
81
  userPermissionsRef = _ref2.userPermissionsRef,
@@ -158,6 +159,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
158
159
  };
159
160
  var isCreateAgentsEnabled = permissions === null || permissions === void 0 ? void 0 : permissions.isCreateEnabled;
160
161
  return /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, {
162
+ shouldRenderToParent: shouldRenderToParent,
161
163
  isLoading: isLoading,
162
164
  isOpen: isOpen,
163
165
  testId: dropdownMenuTestId,
@@ -9,7 +9,7 @@ var message = (0, _reactIntl.defineMessages)({
9
9
  chatToAgentButton: {
10
10
  id: 'rovo-chat.view-agent.chat-to-agent-button',
11
11
  defaultMessage: 'Chat to agent',
12
- description: 'Button to chat to agent'
12
+ description: 'Button in the agent dropdown menu that initiates a chat session with the selected Rovo agent.'
13
13
  },
14
14
  moreActionsLabel: {
15
15
  id: 'rovo-chat.view-agent.more-actions-label',
@@ -24,17 +24,17 @@ var message = (0, _reactIntl.defineMessages)({
24
24
  duplicateAgent: {
25
25
  id: 'rovo-chat.view-agent.duplicate-agent',
26
26
  defaultMessage: 'Duplicate agent',
27
- description: 'Button to duplicate an agent'
27
+ description: 'Button in the agent dropdown menu that creates a duplicate copy of the selected Rovo agent.'
28
28
  },
29
29
  editAgent: {
30
30
  id: 'rovo-chat.view-agent.edit-agent',
31
31
  defaultMessage: 'Edit agent',
32
- description: 'Button to edit an agent'
32
+ description: 'Button in the agent dropdown menu that opens the editor for the selected Rovo agent.'
33
33
  },
34
34
  deleteAgent: {
35
35
  id: 'rovo-chat.view-agent.delete-agent',
36
36
  defaultMessage: 'Delete agent',
37
- description: 'Button to delete an agent'
37
+ description: 'Button in the agent dropdown menu that permanently removes the selected Rovo agent.'
38
38
  },
39
39
  copyLinkToProfile: {
40
40
  id: 'rovo-chat.view-agent.copy-link-to-profile',
@@ -49,7 +49,7 @@ var message = (0, _reactIntl.defineMessages)({
49
49
  viewAgent: {
50
50
  id: 'rovo-chat.view-agents.view-agent',
51
51
  defaultMessage: 'View agent',
52
- description: 'Button to view an agent'
52
+ description: 'Button in the agent dropdown menu that opens the profile page for the selected Rovo agent.'
53
53
  },
54
54
  viewAgentFullProfile: {
55
55
  id: 'rovo-chat.view-agents.view-agent-full-profile',
@@ -62,6 +62,7 @@ export const AgentDropdownMenu = ({
62
62
  loadAgentPermissions,
63
63
  loadPermissionsOnMount,
64
64
  shouldTriggerStopPropagation,
65
+ shouldRenderToParent,
65
66
  agentName,
66
67
  agentRef,
67
68
  userPermissionsRef,
@@ -116,6 +117,7 @@ export const AgentDropdownMenu = ({
116
117
  };
117
118
  const isCreateAgentsEnabled = permissions === null || permissions === void 0 ? void 0 : permissions.isCreateEnabled;
118
119
  return /*#__PURE__*/React.createElement(DropdownMenu, {
120
+ shouldRenderToParent: shouldRenderToParent,
119
121
  isLoading: isLoading,
120
122
  isOpen: isOpen,
121
123
  testId: dropdownMenuTestId,
@@ -3,7 +3,7 @@ const message = defineMessages({
3
3
  chatToAgentButton: {
4
4
  id: 'rovo-chat.view-agent.chat-to-agent-button',
5
5
  defaultMessage: 'Chat to agent',
6
- description: 'Button to chat to agent'
6
+ description: 'Button in the agent dropdown menu that initiates a chat session with the selected Rovo agent.'
7
7
  },
8
8
  moreActionsLabel: {
9
9
  id: 'rovo-chat.view-agent.more-actions-label',
@@ -18,17 +18,17 @@ const message = defineMessages({
18
18
  duplicateAgent: {
19
19
  id: 'rovo-chat.view-agent.duplicate-agent',
20
20
  defaultMessage: 'Duplicate agent',
21
- description: 'Button to duplicate an agent'
21
+ description: 'Button in the agent dropdown menu that creates a duplicate copy of the selected Rovo agent.'
22
22
  },
23
23
  editAgent: {
24
24
  id: 'rovo-chat.view-agent.edit-agent',
25
25
  defaultMessage: 'Edit agent',
26
- description: 'Button to edit an agent'
26
+ description: 'Button in the agent dropdown menu that opens the editor for the selected Rovo agent.'
27
27
  },
28
28
  deleteAgent: {
29
29
  id: 'rovo-chat.view-agent.delete-agent',
30
30
  defaultMessage: 'Delete agent',
31
- description: 'Button to delete an agent'
31
+ description: 'Button in the agent dropdown menu that permanently removes the selected Rovo agent.'
32
32
  },
33
33
  copyLinkToProfile: {
34
34
  id: 'rovo-chat.view-agent.copy-link-to-profile',
@@ -43,7 +43,7 @@ const message = defineMessages({
43
43
  viewAgent: {
44
44
  id: 'rovo-chat.view-agents.view-agent',
45
45
  defaultMessage: 'View agent',
46
- description: 'Button to view an agent'
46
+ description: 'Button in the agent dropdown menu that opens the profile page for the selected Rovo agent.'
47
47
  },
48
48
  viewAgentFullProfile: {
49
49
  id: 'rovo-chat.view-agents.view-agent-full-profile',
@@ -66,6 +66,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
66
66
  loadAgentPermissions = _ref2.loadAgentPermissions,
67
67
  loadPermissionsOnMount = _ref2.loadPermissionsOnMount,
68
68
  shouldTriggerStopPropagation = _ref2.shouldTriggerStopPropagation,
69
+ shouldRenderToParent = _ref2.shouldRenderToParent,
69
70
  agentName = _ref2.agentName,
70
71
  agentRef = _ref2.agentRef,
71
72
  userPermissionsRef = _ref2.userPermissionsRef,
@@ -149,6 +150,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
149
150
  };
150
151
  var isCreateAgentsEnabled = permissions === null || permissions === void 0 ? void 0 : permissions.isCreateEnabled;
151
152
  return /*#__PURE__*/React.createElement(DropdownMenu, {
153
+ shouldRenderToParent: shouldRenderToParent,
152
154
  isLoading: isLoading,
153
155
  isOpen: isOpen,
154
156
  testId: dropdownMenuTestId,
@@ -3,7 +3,7 @@ var message = defineMessages({
3
3
  chatToAgentButton: {
4
4
  id: 'rovo-chat.view-agent.chat-to-agent-button',
5
5
  defaultMessage: 'Chat to agent',
6
- description: 'Button to chat to agent'
6
+ description: 'Button in the agent dropdown menu that initiates a chat session with the selected Rovo agent.'
7
7
  },
8
8
  moreActionsLabel: {
9
9
  id: 'rovo-chat.view-agent.more-actions-label',
@@ -18,17 +18,17 @@ var message = defineMessages({
18
18
  duplicateAgent: {
19
19
  id: 'rovo-chat.view-agent.duplicate-agent',
20
20
  defaultMessage: 'Duplicate agent',
21
- description: 'Button to duplicate an agent'
21
+ description: 'Button in the agent dropdown menu that creates a duplicate copy of the selected Rovo agent.'
22
22
  },
23
23
  editAgent: {
24
24
  id: 'rovo-chat.view-agent.edit-agent',
25
25
  defaultMessage: 'Edit agent',
26
- description: 'Button to edit an agent'
26
+ description: 'Button in the agent dropdown menu that opens the editor for the selected Rovo agent.'
27
27
  },
28
28
  deleteAgent: {
29
29
  id: 'rovo-chat.view-agent.delete-agent',
30
30
  defaultMessage: 'Delete agent',
31
- description: 'Button to delete an agent'
31
+ description: 'Button in the agent dropdown menu that permanently removes the selected Rovo agent.'
32
32
  },
33
33
  copyLinkToProfile: {
34
34
  id: 'rovo-chat.view-agent.copy-link-to-profile',
@@ -43,7 +43,7 @@ var message = defineMessages({
43
43
  viewAgent: {
44
44
  id: 'rovo-chat.view-agents.view-agent',
45
45
  defaultMessage: 'View agent',
46
- description: 'Button to view an agent'
46
+ description: 'Button in the agent dropdown menu that opens the profile page for the selected Rovo agent.'
47
47
  },
48
48
  viewAgentFullProfile: {
49
49
  id: 'rovo-chat.view-agents.view-agent-full-profile',
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
7
7
  import { type ButtonProps, IconButton } from '@atlaskit/button/new';
8
- import DropdownMenu, { DropdownItem } from '@atlaskit/dropdown-menu';
8
+ import DropdownMenu, { type DropdownMenuProps, DropdownItem } from '@atlaskit/dropdown-menu';
9
9
  import { type AgentVerificationDropdownItemProps } from '../agent-verification-dropdown-item';
10
10
  type ChatToAgentButtonProps = {
11
11
  onClick: ButtonProps['onClick'];
@@ -46,6 +46,7 @@ type AgentDropdownMenuProps = {
46
46
  dropdownMenuTestId?: React.ComponentProps<typeof DropdownMenu>['testId'];
47
47
  loadPermissionsOnMount?: boolean;
48
48
  shouldTriggerStopPropagation?: boolean;
49
+ shouldRenderToParent?: DropdownMenuProps['shouldRenderToParent'];
49
50
  loadAgentPermissions: () => Promise<{
50
51
  isCreateEnabled?: boolean;
51
52
  isEditEnabled: boolean;
@@ -53,5 +54,5 @@ type AgentDropdownMenuProps = {
53
54
  }>;
54
55
  customDropdownOptions?: CustomDropdownOption[];
55
56
  } & ViewAgentOptionProps & ViewAgentFullProfileProps & Partial<Pick<AgentVerificationDropdownItemProps, 'agentRef' | 'userPermissionsRef' | 'onVerificationSuccess'>>;
56
- export declare const AgentDropdownMenu: ({ isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, onOpenChange, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, agentName, agentRef, userPermissionsRef, onVerificationSuccess, customDropdownOptions, }: AgentDropdownMenuProps) => JSX.Element;
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;
57
58
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "7.1.0",
3
+ "version": "7.3.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": {
@@ -31,10 +31,10 @@
31
31
  "*.compiled.css"
32
32
  ],
33
33
  "dependencies": {
34
- "@atlaskit/afm-i18n-platform-ai-mate-rovo-agent-components": "2.10.0",
34
+ "@atlaskit/afm-i18n-platform-ai-mate-rovo-agent-components": "2.172.0",
35
35
  "@atlaskit/analytics-next": "^12.1.0",
36
36
  "@atlaskit/avatar": "^26.1.0",
37
- "@atlaskit/button": "^24.2.0",
37
+ "@atlaskit/button": "^24.3.0",
38
38
  "@atlaskit/css": "^1.0.0",
39
39
  "@atlaskit/dropdown-menu": "^17.1.0",
40
40
  "@atlaskit/feature-gate-js-client": "^6.0.0",
@@ -42,14 +42,14 @@
42
42
  "@atlaskit/heading": "^6.1.0",
43
43
  "@atlaskit/icon": "^36.1.0",
44
44
  "@atlaskit/link": "^4.1.0",
45
- "@atlaskit/logo": "^21.2.0",
45
+ "@atlaskit/logo": "^21.3.0",
46
46
  "@atlaskit/platform-feature-flags": "^2.0.0",
47
- "@atlaskit/primitives": "^20.1.0",
47
+ "@atlaskit/primitives": "^20.3.0",
48
48
  "@atlaskit/react-compiler-gating": "^0.2.0",
49
- "@atlaskit/rovo-agent-analytics": "^5.1.0",
49
+ "@atlaskit/rovo-agent-analytics": "^5.2.0",
50
50
  "@atlaskit/skeleton": "^3.1.0",
51
51
  "@atlaskit/spinner": "^20.1.0",
52
- "@atlaskit/tokens": "^15.1.0",
52
+ "@atlaskit/tokens": "^15.3.0",
53
53
  "@atlaskit/tooltip": "^23.1.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.20.0",
@@ -0,0 +1,71 @@
1
+ import path from 'path';
2
+
3
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
4
+
5
+ import packageJson from './package.json';
6
+
7
+ const packagePath = path.resolve(__dirname);
8
+
9
+ const documentation: StructuredContentSource = {
10
+ components: [
11
+ {
12
+ name: 'AgentAvatar',
13
+ description:
14
+ 'A visual representation of a Rovo agent, supporting both custom images and generated avatars.',
15
+ status: 'general-availability',
16
+ import: {
17
+ name: 'AgentAvatar',
18
+ package: '@atlaskit/rovo-agent-components',
19
+ type: 'named',
20
+ packagePath,
21
+ packageJson,
22
+ },
23
+ usageGuidelines: [
24
+ 'Use AgentAvatar to identify a Rovo agent visually.',
25
+ "Supports displaying a custom image or a generated avatar based on the agent's identity.",
26
+ ],
27
+ examples: [
28
+ {
29
+ name: 'Basic Avatar',
30
+ description: 'Standard agent avatar display.',
31
+ source: path.resolve(packagePath, './examples/02-agent-avatar.tsx'),
32
+ },
33
+ {
34
+ name: 'Generated Avatar',
35
+ description: 'Agent avatar with a generated image.',
36
+ source: path.resolve(packagePath, './examples/03-agent-avatar-generated.tsx'),
37
+ },
38
+ ],
39
+ keywords: ['rovo', 'agent', 'avatar', 'identity', 'ai'],
40
+ categories: ['media', 'data-display'],
41
+ },
42
+ {
43
+ name: 'AgentProfileInfo',
44
+ description:
45
+ 'A component for displaying information about a Rovo agent, including name, description, and star count.',
46
+ status: 'general-availability',
47
+ import: {
48
+ name: 'AgentProfileInfo',
49
+ package: '@atlaskit/rovo-agent-components',
50
+ type: 'named',
51
+ packagePath,
52
+ packageJson,
53
+ },
54
+ usageGuidelines: [
55
+ 'Use AgentProfileInfo to show details about a Rovo agent.',
56
+ 'Typically used in agent selection or profile views.',
57
+ ],
58
+ examples: [
59
+ {
60
+ name: 'Profile Info',
61
+ description: 'Standard agent profile information display.',
62
+ source: path.resolve(packagePath, './examples/01-agent-profile-info.tsx'),
63
+ },
64
+ ],
65
+ keywords: ['rovo', 'agent', 'profile', 'info', 'ai'],
66
+ categories: ['data-display'],
67
+ },
68
+ ],
69
+ };
70
+
71
+ export default documentation;