@atlaskit/rovo-agent-components 5.2.1 → 5.2.3

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.
Files changed (134) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/agent-name-side-nav/package.json +1 -8
  3. package/agent-verification-dropdown-item/package.json +1 -8
  4. package/agent-verified/package.json +1 -8
  5. package/common/types/package.json +1 -8
  6. package/common/ui/ChatIcon/package.json +1 -8
  7. package/common/ui/ChatPill/package.json +1 -8
  8. package/common/ui/HiddenIcon/package.json +1 -8
  9. package/common/ui/LinkIconButton/package.json +1 -8
  10. package/common/ui/ShowIcon/package.json +1 -8
  11. package/common/ui/StarIconButton/package.json +1 -8
  12. package/common/utils/is-agent-creator-type/package.json +1 -8
  13. package/common/utils/is-forge-agent/package.json +1 -8
  14. package/dist/cjs/ui/agent-avatar/generated-avatars/assets/jira-coding-agent.js +25 -0
  15. package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +15 -0
  16. package/dist/es2019/ui/agent-avatar/generated-avatars/assets/jira-coding-agent.js +17 -0
  17. package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +9 -0
  18. package/dist/esm/ui/agent-avatar/generated-avatars/assets/jira-coding-agent.js +18 -0
  19. package/dist/esm/ui/agent-avatar/generated-avatars/index.js +13 -0
  20. package/package.json +6 -6
  21. package/ui/AgentAvatar/package.json +1 -8
  22. package/ui/AgentConversationStarters/package.json +1 -8
  23. package/ui/AgentDropdownMenu/package.json +1 -8
  24. package/ui/AgentMenuItemSkeleton/package.json +1 -8
  25. package/ui/AgentProfileInfo/package.json +1 -8
  26. package/ui/agent-avatar/GeneratedAvatar/package.json +1 -8
  27. package/ui/agent-identity/derive-agent-identity/package.json +1 -8
  28. package/ui/agent-profile-info/AgentStarCount/package.json +1 -8
  29. package/dist/types-ts4.5/common/types.d.ts +0 -1
  30. package/dist/types-ts4.5/common/ui/agent-chat-icon/index.d.ts +0 -2
  31. package/dist/types-ts4.5/common/ui/chat-icon/index.d.ts +0 -3
  32. package/dist/types-ts4.5/common/ui/chat-pill/index.d.ts +0 -16
  33. package/dist/types-ts4.5/common/ui/chat-pill/messages.d.ts +0 -7
  34. package/dist/types-ts4.5/common/ui/hidden-icon/index.d.ts +0 -3
  35. package/dist/types-ts4.5/common/ui/link-icon-button/index.d.ts +0 -11
  36. package/dist/types-ts4.5/common/ui/link-icon-button/messages.d.ts +0 -7
  37. package/dist/types-ts4.5/common/ui/show-icon/index.d.ts +0 -3
  38. package/dist/types-ts4.5/common/ui/star-icon-button/index.d.ts +0 -11
  39. package/dist/types-ts4.5/common/ui/star-icon-button/messages.d.ts +0 -7
  40. package/dist/types-ts4.5/common/utils/is-agent-creator-type.d.ts +0 -2
  41. package/dist/types-ts4.5/common/utils/is-forge-agent.d.ts +0 -2
  42. package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
  43. package/dist/types-ts4.5/i18n/da.d.ts +0 -8
  44. package/dist/types-ts4.5/i18n/de.d.ts +0 -8
  45. package/dist/types-ts4.5/i18n/en.d.ts +0 -8
  46. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
  47. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
  48. package/dist/types-ts4.5/i18n/es.d.ts +0 -8
  49. package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
  50. package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
  51. package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
  52. package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
  53. package/dist/types-ts4.5/i18n/it.d.ts +0 -8
  54. package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
  55. package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
  56. package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
  57. package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
  58. package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
  59. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
  60. package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
  61. package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
  62. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
  63. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
  64. package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
  65. package/dist/types-ts4.5/i18n/th.d.ts +0 -8
  66. package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
  67. package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
  68. package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
  69. package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
  70. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
  71. package/dist/types-ts4.5/index.d.ts +0 -14
  72. package/dist/types-ts4.5/ui/agent-avatar/agent-avatar-skeleton/index.d.ts +0 -29
  73. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/auto-dev.d.ts +0 -4
  74. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/auto-fix.d.ts +0 -4
  75. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/auto-review.d.ts +0 -4
  76. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/backlog-buddy.d.ts +0 -4
  77. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/box-agent.d.ts +0 -4
  78. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/canva-agent.d.ts +0 -4
  79. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/comms-crafter.d.ts +0 -4
  80. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/culture.d.ts +0 -4
  81. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/customer-insight.d.ts +0 -4
  82. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/decision-director.d.ts +0 -4
  83. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/feature-flag-avatar.d.ts +0 -4
  84. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/figma-agent.d.ts +0 -4
  85. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/gamma-agent.d.ts +0 -4
  86. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/generic-avatar.d.ts +0 -4
  87. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/hire-writer.d.ts +0 -4
  88. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/hubspot-agent.d.ts +0 -4
  89. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/intercom-agent.d.ts +0 -4
  90. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/jira-intelligent-triage-agent.d.ts +0 -4
  91. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/jira-work-agent.d.ts +0 -4
  92. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/jsm-rovo-service-agent.d.ts +0 -4
  93. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/lovable-agent.d.ts +0 -4
  94. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/marketing-message-maestro.d.ts +0 -4
  95. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/my-user-manual.d.ts +0 -4
  96. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/okr-oracle.d.ts +0 -4
  97. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/ops-agent.d.ts +0 -4
  98. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/pitch-perfector.d.ts +0 -4
  99. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/product-requirement.d.ts +0 -4
  100. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/release-notes.d.ts +0 -4
  101. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/replit-agent.d.ts +0 -4
  102. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/research-scout.d.ts +0 -4
  103. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/rovo-agent.d.ts +0 -4
  104. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/rovo-dev.d.ts +0 -8
  105. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/social-media-scribe.d.ts +0 -4
  106. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/team-connection.d.ts +0 -4
  107. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/trial-guide.d.ts +0 -4
  108. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/types.d.ts +0 -5
  109. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/assets/workflow-builder.d.ts +0 -4
  110. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/index.d.ts +0 -45
  111. package/dist/types-ts4.5/ui/agent-avatar/index.d.ts +0 -24
  112. package/dist/types-ts4.5/ui/agent-avatar/messages.d.ts +0 -7
  113. package/dist/types-ts4.5/ui/agent-conversation-starters/index.d.ts +0 -37
  114. package/dist/types-ts4.5/ui/agent-conversation-starters/messages.d.ts +0 -32
  115. package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +0 -57
  116. package/dist/types-ts4.5/ui/agent-dropdown-menu/messages.d.ts +0 -7
  117. package/dist/types-ts4.5/ui/agent-identity/derive-agent-identity.d.ts +0 -62
  118. package/dist/types-ts4.5/ui/agent-menu-item-skeleton/index.d.ts +0 -16
  119. package/dist/types-ts4.5/ui/agent-name-side-nav/index.d.ts +0 -9
  120. package/dist/types-ts4.5/ui/agent-profile-info/agent-star-count/index.d.ts +0 -4
  121. package/dist/types-ts4.5/ui/agent-profile-info/agent-star-count/messages.d.ts +0 -7
  122. package/dist/types-ts4.5/ui/agent-profile-info/agent-star-count/utils.d.ts +0 -1
  123. package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +0 -52
  124. package/dist/types-ts4.5/ui/agent-profile-info/messages.d.ts +0 -42
  125. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql.d.ts +0 -19
  126. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation.graphql.d.ts +0 -30
  127. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql.d.ts +0 -18
  128. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/__generated__/testAgentVerificationDropdownItemQuery.graphql.d.ts +0 -26
  129. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/index.d.ts +0 -36
  130. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/messages.d.ts +0 -7
  131. package/dist/types-ts4.5/ui/agent-verified/__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql.d.ts +0 -18
  132. package/dist/types-ts4.5/ui/agent-verified/index.d.ts +0 -14
  133. package/dist/types-ts4.5/ui/agent-verified/messages.d.ts +0 -13
  134. /package/dist/{types-ts4.5/ui/agent-avatar/generated-avatars/assets/amplitude-agent.d.ts → types/ui/agent-avatar/generated-avatars/assets/jira-coding-agent.d.ts} +0 -0
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { type MessageDescriptor } from 'react-intl';
3
- export type ConversationStarter = {
4
- message: string;
5
- type: ConversationStarterType;
6
- };
7
- type ConversationStarterType = 'static' | 'user-defined' | 'llm-generated';
8
- type GetConversationStartersParams = {
9
- userDefinedConversationStarters?: ConversationStarter[] | null | undefined;
10
- isAgentDefault: boolean;
11
- };
12
- export type StaticAgentConversationStarter = {
13
- message: MessageDescriptor;
14
- type: ConversationStarterType;
15
- };
16
- type ConversationStarters = {
17
- userDefinedConversationStarters: ConversationStarter[];
18
- customAgentConversationStarters: StaticAgentConversationStarter[];
19
- defaultAgentConversationStarters: StaticAgentConversationStarter[];
20
- combinedConversationStarters: Array<ConversationStarter | StaticAgentConversationStarter>;
21
- };
22
- export declare const getConversationStarters: ({ userDefinedConversationStarters: userDefinedConversationStartersParam, isAgentDefault, }: GetConversationStartersParams) => ConversationStarters;
23
- export type AgentConversationStartersProps = {
24
- userDefinedConversationStarters?: GetConversationStartersParams['userDefinedConversationStarters'];
25
- isAgentDefault: GetConversationStartersParams['isAgentDefault'];
26
- } & Omit<ConversationStartersProps, 'starters'>;
27
- export declare const AgentConversationStarters: ({ userDefinedConversationStarters, isAgentDefault, ...props }: AgentConversationStartersProps) => React.JSX.Element;
28
- export type ConversationStartersProps = {
29
- refreshDesignEnabled?: boolean;
30
- starters: ConversationStarter[];
31
- onConversationStarterClick: (conversationStarter: ConversationStarter) => void;
32
- showReloadButton?: boolean;
33
- onReloadButtonClick?: () => void;
34
- onBrowseAgentsClick?: () => void;
35
- };
36
- export declare const ConversationStarters: ({ starters, onConversationStarterClick, showReloadButton, onReloadButtonClick, onBrowseAgentsClick, refreshDesignEnabled, }: ConversationStartersProps) => React.JSX.Element;
37
- export {};
@@ -1,32 +0,0 @@
1
- export declare const messages: {
2
- emptyStateSuggestion1: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- emptyStateSuggestion2: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- emptyStateSuggestion3: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- agentEmptyStateSuggestion1: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- agentEmptyStateSuggestion2: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- agentEmptyStateSuggestion3: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- };
@@ -1,57 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
7
- import { type ButtonProps, IconButton } from '@atlaskit/button/new';
8
- import DropdownMenu, { DropdownItem } from '@atlaskit/dropdown-menu';
9
- import { type AgentVerificationDropdownItemProps } from '../agent-verification-dropdown-item';
10
- type ChatToAgentButtonProps = {
11
- onClick: ButtonProps['onClick'];
12
- };
13
- type CustomDropdownOption = {
14
- id: string;
15
- label: string;
16
- onClick: () => void;
17
- };
18
- export declare const ChatToAgentButton: ({ onClick }: ChatToAgentButtonProps) => JSX.Element;
19
- type ViewAgentOptionProps = {
20
- showViewAgentOption: true;
21
- onViewAgentClick: React.ComponentProps<typeof DropdownItem>['onClick'];
22
- } | {
23
- showViewAgentOption?: false;
24
- onViewAgentClick?: undefined;
25
- };
26
- type ViewAgentFullProfileProps = {
27
- onViewAgentFullProfileClick: React.ComponentProps<typeof DropdownItem>['onClick'];
28
- doesAgentHaveIdentityAccountId: boolean;
29
- } | {
30
- onViewAgentFullProfileClick?: undefined;
31
- doesAgentHaveIdentityAccountId?: undefined;
32
- };
33
- type AgentDropdownMenuProps = {
34
- isAutodevTemplateAgent?: boolean;
35
- agentId: string;
36
- agentName?: string;
37
- onEditAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
38
- onCopyAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
39
- onDuplicateAgent?: (e: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => Promise<void>;
40
- onDeleteAgent?: React.ComponentProps<typeof DropdownItem>['onClick'];
41
- isForgeAgent: boolean;
42
- onDropdownTriggerClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent) => void;
43
- onOpenChange?: React.ComponentProps<typeof DropdownMenu>['onOpenChange'];
44
- spacing?: React.ComponentProps<typeof IconButton>['spacing'];
45
- appearance?: React.ComponentProps<typeof IconButton>['appearance'];
46
- dropdownMenuTestId?: React.ComponentProps<typeof DropdownMenu>['testId'];
47
- loadPermissionsOnMount?: boolean;
48
- shouldTriggerStopPropagation?: boolean;
49
- loadAgentPermissions: () => Promise<{
50
- isCreateEnabled?: boolean;
51
- isEditEnabled: boolean;
52
- isDeleteEnabled: boolean;
53
- }>;
54
- customDropdownOptions?: CustomDropdownOption[];
55
- } & 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 {};
@@ -1,7 +0,0 @@
1
- type MessageKeys = 'chatToAgentButton' | 'moreActionsLabel' | 'moreActionsForLabel' | 'duplicateAgent' | 'editAgent' | 'deleteAgent' | 'copyLinkToProfile' | 'linkedCopiedToProfile' | 'viewAgent' | 'viewAgentFullProfile' | 'useTemplateButton';
2
- declare const message: Record<MessageKeys, {
3
- id: string;
4
- defaultMessage: string;
5
- description?: string;
6
- }>;
7
- export default message;
@@ -1,62 +0,0 @@
1
- /**
2
- * Shared identity-derivation helper used by AgentInputHat (above the prompt
3
- * input) and AgentResponseHat (above an assistant message). Both components
4
- * need to translate raw agent identity props into the inputs that AgentAvatar
5
- * expects, plus an accessible/visible name pair, with the same fallback
6
- * semantics. Centralising the logic here avoids drift between the two hats —
7
- * historically every change to one needed a paired change to the other.
8
- */
9
- /** Raw identity input — typically a subset of `Agent` or `message.author`. */
10
- export type AgentIdentityInput = {
11
- /** Specialist agent id. Falsy/empty/whitespace = default Rovo turn. */
12
- agentId?: string;
13
- agentName?: string;
14
- agentNamedId?: string;
15
- agentIdentityAccountId?: string;
16
- imageUrl?: string;
17
- /**
18
- * Raw backend `creator_type` (e.g. "FORGE", "REMOTE_A2A"). Validated via
19
- * `isAgentCreatorType` internally so callers don't need an unsafe cast.
20
- * Ignored when `isForgeAgent` is provided explicitly.
21
- */
22
- creatorType?: string;
23
- /** Pre-resolved Forge/REMOTE_A2A flag. Takes precedence over `creatorType`. */
24
- isForgeAgent?: boolean;
25
- forgeAgentIconUrl?: string;
26
- /** Localized fallback used when the default Rovo path renders text. */
27
- defaultName: string;
28
- };
29
- /** Derived props ready to forward to AgentAvatar + the visible name slot. */
30
- export type DerivedAgentIdentity = {
31
- /** True when either UUID id or named id selects the specialist path. */
32
- hasSpecialistIdentity: boolean;
33
- /** Non-empty UUID agentId when available; undefined for namedId-only specialists. */
34
- specialistAgentId: string | undefined;
35
- /** Visible label to render in the hat's text slot, or undefined to omit. */
36
- visibleName: string | undefined;
37
- /** Always-non-empty accessible label for the avatar. */
38
- accessibleName: string;
39
- /** Props to spread onto AgentAvatar — only meaningful on the specialist path. */
40
- avatarProps: {
41
- agentId: string | undefined;
42
- agentNamedId: string | undefined;
43
- agentIdentityAccountId: string | undefined;
44
- imageUrl: string | undefined;
45
- isForgeAgent: boolean | undefined;
46
- forgeAgentIconUrl: string | undefined;
47
- };
48
- };
49
- /**
50
- * Derive `AgentAvatar` inputs and visible/accessible labels from raw identity.
51
- *
52
- * Behaviour:
53
- * - Specialist path (`agentId` or `agentNamedId` is a non-empty string):
54
- * visible text is the supplied `agentName`, omitted entirely if absent (no
55
- * "Rovo" text next to a specialist avatar). Accessible label falls back to
56
- * the UUID id, then named id, so the avatar is never announced as "Rovo".
57
- * - Default Rovo path (no `agentId` or `agentNamedId`): visible and accessible
58
- * labels are the localized default name (typically "Rovo").
59
- * - Forge identity props are gated internally via `rovo_agent_support_a2a_avatar`
60
- * so callers don't have to.
61
- */
62
- export declare function deriveAgentIdentity({ agentId, agentName, agentNamedId, agentIdentityAccountId, imageUrl, creatorType, isForgeAgent: isForgeAgentOverride, forgeAgentIconUrl, defaultName, }: AgentIdentityInput): DerivedAgentIdentity;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { SizeType } from '@atlaskit/avatar';
3
- interface AgentMenuItemSkeletonProps {
4
- index: number;
5
- containerHeight?: number;
6
- skeletonTextHeight?: number;
7
- skeletonTextWidth?: number;
8
- skeletonAvatarSize?: SizeType;
9
- /**
10
- * Horizontal padding for the skeleton container.
11
- * @default 'space.075'.
12
- */
13
- paddingHorizontal?: string;
14
- }
15
- export declare const AgentMenuItemSkeleton: ({ index, containerHeight, skeletonTextHeight, skeletonTextWidth, skeletonAvatarSize, paddingHorizontal, }: AgentMenuItemSkeletonProps) => React.JSX.Element;
16
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- export declare const AgentNameSideNav: ({ children, name, }: {
7
- children: React.ReactNode;
8
- name: string;
9
- }) => JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare const AgentStarCount: ({ starCount, isLoading, }: {
2
- starCount: number | null | undefined;
3
- isLoading: boolean;
4
- }) => JSX.Element | null;
@@ -1,7 +0,0 @@
1
- export declare const messages: {
2
- starredCount: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- };
@@ -1 +0,0 @@
1
- export declare const formatNumber: (inputNumber: number) => string;
@@ -1,52 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- type AgentCreator = {
7
- type: 'CUSTOMER';
8
- name: string;
9
- profileLink: string;
10
- status?: 'active' | 'inactive' | 'closed' | string;
11
- } | {
12
- type: 'SYSTEM';
13
- } | {
14
- type: 'THIRD_PARTY' | 'FORGE' | 'REMOTE_A2A';
15
- name: string;
16
- } | {
17
- type: 'OOTB';
18
- };
19
- export declare const getAgentCreator: ({ creatorType, authoringTeam, userCreator, forgeCreator, }: {
20
- creatorType: string;
21
- authoringTeam?: {
22
- displayName: string;
23
- profileLink?: string;
24
- };
25
- userCreator?: {
26
- name: string;
27
- status?: string;
28
- profileLink?: string;
29
- };
30
- forgeCreator?: string;
31
- }) => AgentCreator | undefined;
32
- export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading, }: {
33
- /**
34
- * Get this value from `getAgentCreator`
35
- */
36
- creator?: AgentCreator;
37
- isLoading: boolean;
38
- onCreatorLinkClick: () => void;
39
- }) => JSX.Element | null;
40
- export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, renderAdditionalContent, }: {
41
- agentName: string;
42
- agentDescription?: string | null;
43
- creatorRender: React.ReactNode;
44
- starCountRender: React.ReactNode;
45
- headingRender?: React.ReactNode;
46
- isStarred: boolean;
47
- isHidden: boolean;
48
- onStarToggle: () => void;
49
- showStarButton?: boolean;
50
- renderAdditionalContent?: () => React.ReactNode;
51
- }) => JSX.Element;
52
- export {};
@@ -1,42 +0,0 @@
1
- export declare const messages: {
2
- agentCreatedBy: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- remoteAgentCreatedBy: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- agentDeactivated: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- starredCount: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- hiddenIcon: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- hiddenTooltip: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- starAgentTooltip: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- creatorLabel: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * @generated SignedSource<<f56f2021fc78abc88eb1eed18de6132d>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- * @codegen-command: yarn relay
6
- */
7
- import type { ReaderFragment } from 'relay-runtime';
8
- import type { FragmentRefs } from "relay-runtime";
9
- export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$data = {
10
- readonly id: string;
11
- readonly isVerified: boolean | null | undefined;
12
- readonly " $fragmentType": "agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef";
13
- };
14
- export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$key = {
15
- readonly " $data"?: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$data;
16
- readonly " $fragmentSpreads": FragmentRefs<"agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef">;
17
- };
18
- declare const node: ReaderFragment;
19
- export default node;
@@ -1,30 +0,0 @@
1
- /**
2
- * @generated SignedSource<<40be805679705c17d93b6a404d0208ac>>
3
- * @relayHash 426410e11638597e4a12069dd5a8be16
4
- * @lightSyntaxTransform
5
- * @nogrep
6
- * @codegen-command: yarn relay
7
- */
8
- import type { ConcreteRequest } from 'relay-runtime';
9
- export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation$variables = {
10
- id: string;
11
- verified: boolean;
12
- };
13
- export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation$data = {
14
- readonly agentStudio_updateAgentVerification: {
15
- readonly agent: {
16
- readonly id?: string;
17
- readonly isVerified?: boolean | null | undefined;
18
- } | null | undefined;
19
- readonly errors: ReadonlyArray<{
20
- readonly message: string | null | undefined;
21
- }> | null | undefined;
22
- readonly success: boolean;
23
- } | null | undefined;
24
- };
25
- export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation = {
26
- response: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation$data;
27
- variables: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation$variables;
28
- };
29
- declare const node: ConcreteRequest;
30
- export default node;
@@ -1,18 +0,0 @@
1
- /**
2
- * @generated SignedSource<<e33eacf789c2eba52ca6f706d67fa268>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- * @codegen-command: yarn relay
6
- */
7
- import type { ReaderFragment } from 'relay-runtime';
8
- import type { FragmentRefs } from "relay-runtime";
9
- export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef$data = {
10
- readonly isAbleToGovernAgents: boolean | null | undefined;
11
- readonly " $fragmentType": "agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef";
12
- };
13
- export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef$key = {
14
- readonly " $data"?: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef$data;
15
- readonly " $fragmentSpreads": FragmentRefs<"agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef">;
16
- };
17
- declare const node: ReaderFragment;
18
- export default node;
@@ -1,26 +0,0 @@
1
- /**
2
- * @generated SignedSource<<6976169d85be7545c35821ac2ecd2c10>>
3
- * @relayHash c95a4b89f332b56ac41d44591442026c
4
- * @lightSyntaxTransform
5
- * @nogrep
6
- * @codegen-command: yarn relay
7
- */
8
- import type { ConcreteRequest } from 'relay-runtime';
9
- import type { FragmentRefs } from "relay-runtime";
10
- export type testAgentVerificationDropdownItemQuery$variables = Record<PropertyKey, never>;
11
- export type testAgentVerificationDropdownItemQuery$data = {
12
- readonly agentStudio_agentById: {
13
- readonly " $fragmentSpreads": FragmentRefs<"agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef">;
14
- };
15
- readonly atlassianStudio_userSiteContext: {
16
- readonly userPermissions?: {
17
- readonly " $fragmentSpreads": FragmentRefs<"agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef">;
18
- } | null | undefined;
19
- } | null | undefined;
20
- };
21
- export type testAgentVerificationDropdownItemQuery = {
22
- response: testAgentVerificationDropdownItemQuery$data;
23
- variables: testAgentVerificationDropdownItemQuery$variables;
24
- };
25
- declare const node: ConcreteRequest;
26
- export default node;
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import type { agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$key } from './__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql';
3
- import type { agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef$key } from './__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql';
4
- export type AgentVerificationDropdownItemProps = {
5
- agentRef: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$key | null;
6
- userPermissionsRef: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef$key | null;
7
- /**
8
- * Optional callback fired when the dropdown item is clicked, before the mutation is executed.
9
- */
10
- onClick?: () => void;
11
- /**
12
- * Optional callback fired when verification mutation succeeds.
13
- * Called with the new verified state.
14
- */
15
- onVerificationSuccess?: (verified: boolean) => void;
16
- /**
17
- * Test ID for the dropdown item.
18
- */
19
- testId?: string;
20
- /**
21
- * Render function for custom dropdown component.
22
- * If not provided, defaults to DropdownItem.
23
- */
24
- renderItem?: (props: {
25
- isPending: boolean;
26
- isVerified: boolean;
27
- labelText: string;
28
- onClick: () => void;
29
- }) => React.ReactNode;
30
- };
31
- /**
32
- * A dropdown item for verifying or unverifying an agent.
33
- * Renders "Verify agent" if the agent is not verified, or "Remove verification" if it is.
34
- * Returns null if the user doesn't have permission to govern agents or the feature flag is off.
35
- */
36
- export declare const AgentVerificationDropdownItem: ({ agentRef, userPermissionsRef, onClick, onVerificationSuccess, testId, renderItem, }: AgentVerificationDropdownItemProps) => React.JSX.Element | null;
@@ -1,7 +0,0 @@
1
- type MessageKeys = 'verifyAgentLabel' | 'unverifyAgentLabel' | 'verifySuccessTitle' | 'unverifySuccessTitle' | 'verifyErrorTitle' | 'unverifyErrorTitle' | 'errorDescription';
2
- declare const message: Record<MessageKeys, {
3
- id: string;
4
- defaultMessage: string;
5
- description?: string;
6
- }>;
7
- export default message;
@@ -1,18 +0,0 @@
1
- /**
2
- * @generated SignedSource<<6f994eb6cfc0b034529be90d45643687>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- * @codegen-command: yarn relay
6
- */
7
- import type { ReaderFragment } from 'relay-runtime';
8
- import type { FragmentRefs } from "relay-runtime";
9
- export type agentVerified_AtlaskitRovoAgentComponents$data = {
10
- readonly isVerified: boolean | null | undefined;
11
- readonly " $fragmentType": "agentVerified_AtlaskitRovoAgentComponents";
12
- };
13
- export type agentVerified_AtlaskitRovoAgentComponents$key = {
14
- readonly " $data"?: agentVerified_AtlaskitRovoAgentComponents$data;
15
- readonly " $fragmentSpreads": FragmentRefs<"agentVerified_AtlaskitRovoAgentComponents">;
16
- };
17
- declare const node: ReaderFragment;
18
- export default node;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { agentVerified_AtlaskitRovoAgentComponents$key } from './__generated__/agentVerified_AtlaskitRovoAgentComponents.graphql';
3
- export type AgentVerifiedProps = AgentVerifiedIconProps & {
4
- agentRef: agentVerified_AtlaskitRovoAgentComponents$key | null;
5
- };
6
- export declare const AgentVerified: ({ agentRef, adjacentTextSize, }: AgentVerifiedProps) => React.JSX.Element | null;
7
- export type AgentVerifiedIconProps = {
8
- /**
9
- * Height matches line-height of adjacent text for proper vertical alignment
10
- * when inline content wraps to multiple lines.
11
- */
12
- adjacentTextSize?: 'body' | 'textLarge' | 'headingMedium' | 'headingLarge';
13
- };
14
- export declare const AgentVerifiedIcon: ({ adjacentTextSize, }: AgentVerifiedIconProps) => React.JSX.Element;
@@ -1,13 +0,0 @@
1
- declare const _default_1: {
2
- verifiedAgentTooltip: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- verifiedIconLabel: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- };
13
- export default _default_1;