@atlaskit/rovo-agent-components 3.21.0 → 3.23.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/agent-verification-dropdown-item/package.json +17 -0
  3. package/dist/cjs/index.js +8 -1
  4. package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +14 -0
  5. package/dist/cjs/ui/agent-avatar/index.js +2 -0
  6. package/dist/cjs/ui/agent-profile-info/agent-profile-info.stories.js +35 -0
  7. package/dist/cjs/ui/agent-profile-info/index.js +9 -3
  8. package/dist/cjs/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql.js +29 -0
  9. package/dist/cjs/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation.graphql.js +122 -0
  10. package/dist/cjs/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql.js +29 -0
  11. package/dist/cjs/ui/agent-verification-dropdown-item/__generated__/testAgentVerificationDropdownItemQuery.graphql.js +186 -0
  12. package/dist/cjs/ui/agent-verification-dropdown-item/index.js +112 -0
  13. package/dist/cjs/ui/agent-verification-dropdown-item/messages.js +44 -0
  14. package/dist/es2019/index.js +2 -1
  15. package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +14 -0
  16. package/dist/es2019/ui/agent-avatar/index.js +2 -0
  17. package/dist/es2019/ui/agent-profile-info/agent-profile-info.stories.js +24 -0
  18. package/dist/es2019/ui/agent-profile-info/index.js +8 -3
  19. package/dist/es2019/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql.js +23 -0
  20. package/dist/es2019/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation.graphql.js +116 -0
  21. package/dist/es2019/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql.js +23 -0
  22. package/dist/es2019/ui/agent-verification-dropdown-item/__generated__/testAgentVerificationDropdownItemQuery.graphql.js +180 -0
  23. package/dist/es2019/ui/agent-verification-dropdown-item/index.js +102 -0
  24. package/dist/es2019/ui/agent-verification-dropdown-item/messages.js +38 -0
  25. package/dist/esm/index.js +2 -1
  26. package/dist/esm/ui/agent-avatar/generated-avatars/index.js +14 -0
  27. package/dist/esm/ui/agent-avatar/index.js +2 -0
  28. package/dist/esm/ui/agent-profile-info/agent-profile-info.stories.js +28 -0
  29. package/dist/esm/ui/agent-profile-info/index.js +9 -3
  30. package/dist/esm/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql.js +23 -0
  31. package/dist/esm/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation.graphql.js +116 -0
  32. package/dist/esm/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql.js +23 -0
  33. package/dist/esm/ui/agent-verification-dropdown-item/__generated__/testAgentVerificationDropdownItemQuery.graphql.js +180 -0
  34. package/dist/esm/ui/agent-verification-dropdown-item/index.js +103 -0
  35. package/dist/esm/ui/agent-verification-dropdown-item/messages.js +38 -0
  36. package/dist/types/index.d.ts +1 -0
  37. package/dist/types/ui/agent-avatar/generated-avatars/index.d.ts +2 -1
  38. package/dist/types/ui/agent-avatar/index.d.ts +2 -1
  39. package/dist/types/ui/agent-profile-info/index.d.ts +3 -1
  40. package/dist/types/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql.d.ts +18 -0
  41. package/dist/types/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation.graphql.d.ts +30 -0
  42. package/dist/types/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql.d.ts +18 -0
  43. package/dist/types/ui/agent-verification-dropdown-item/__generated__/testAgentVerificationDropdownItemQuery.graphql.d.ts +26 -0
  44. package/dist/types/ui/agent-verification-dropdown-item/index.d.ts +22 -0
  45. package/dist/types/ui/agent-verification-dropdown-item/messages.d.ts +38 -0
  46. package/dist/types-ts4.5/index.d.ts +1 -0
  47. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/index.d.ts +2 -1
  48. package/dist/types-ts4.5/ui/agent-avatar/index.d.ts +2 -1
  49. package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +3 -1
  50. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef.graphql.d.ts +18 -0
  51. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_updateAgentVerificationMutation.graphql.d.ts +30 -0
  52. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/__generated__/agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef.graphql.d.ts +18 -0
  53. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/__generated__/testAgentVerificationDropdownItemQuery.graphql.d.ts +26 -0
  54. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/index.d.ts +22 -0
  55. package/dist/types-ts4.5/ui/agent-verification-dropdown-item/messages.d.ts +38 -0
  56. package/package.json +9 -2
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @generated SignedSource<<9817b3677a18810cda2656cb77948845>>
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 isVerified: boolean | null | undefined;
11
+ readonly " $fragmentType": "agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef";
12
+ };
13
+ export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$key = {
14
+ readonly " $data"?: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$data;
15
+ readonly " $fragmentSpreads": FragmentRefs<"agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef">;
16
+ };
17
+ declare const node: ReaderFragment;
18
+ export default node;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @generated SignedSource<<e119306497999ac48bfef5821a96f2eb>>
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;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @generated SignedSource<<3ba8bcbc18cbb9766a1547794c6c98af>>
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;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @generated SignedSource<<251e7c171e33da0a0b2e0e8041d77493>>
3
+ * @relayHash 79a628a32ef254ccf6142a38adf8ecca
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;
@@ -0,0 +1,22 @@
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
+ agentId: string;
6
+ agentRef: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$key | null;
7
+ userPermissionsRef: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef$key | null;
8
+ /**
9
+ * Optional callback fired when the dropdown item is clicked, before the mutation is executed.
10
+ */
11
+ onClick?: () => void;
12
+ /**
13
+ * Test ID for the dropdown item.
14
+ */
15
+ testId?: string;
16
+ };
17
+ /**
18
+ * A dropdown item for verifying or unverifying an agent.
19
+ * Renders "Verify agent" if the agent is not verified, or "Unverify agent" if it is.
20
+ * Returns null if the user doesn't have permission to govern agents or the feature flag is off.
21
+ */
22
+ export declare const AgentVerificationDropdownItem: ({ agentId, agentRef, userPermissionsRef, onClick, testId, }: AgentVerificationDropdownItemProps) => React.JSX.Element | null;
@@ -0,0 +1,38 @@
1
+ declare const _default: {
2
+ verifyAgentLabel: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ unverifyAgentLabel: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ verifySuccessTitle: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ unverifySuccessTitle: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ verifyErrorTitle: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ unverifyErrorTitle: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ errorDescription: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ };
38
+ export default _default;
@@ -11,3 +11,4 @@ export { AgentAvatar } from './ui/agent-avatar';
11
11
  export { AgentBanner, GeneratedAvatar } from './ui/agent-avatar/generated-avatars';
12
12
  export { AgentDropdownMenu } from './ui/agent-dropdown-menu';
13
13
  export { AgentMenuItemSkeleton } from './ui/agent-menu-item-skeleton';
14
+ export { AgentVerificationDropdownItem, type AgentVerificationDropdownItemProps, } from './ui/agent-verification-dropdown-item';
@@ -20,6 +20,7 @@ type GeneratedAvatarProps = {
20
20
  agentNamedId?: string;
21
21
  agentId?: string;
22
22
  agentIdentityAccountId?: string | null | undefined;
23
+ isRovoDev?: boolean;
23
24
  size: SizeType;
24
25
  onLoad?: () => void;
25
26
  };
@@ -32,7 +33,7 @@ type GeneratedAvatarProps = {
32
33
  * cd002f25-46e4-4023-80ff-32e4d90849b4
33
34
  */
34
35
  export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId">) => number | null;
35
- export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentId" | "agentNamedId" | "agentIdentityAccountId"> & {
36
+ export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, isRovoDev, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentId" | "agentNamedId" | "agentIdentityAccountId" | "isRovoDev"> & {
36
37
  height?: number;
37
38
  fillSpace?: boolean;
38
39
  }) => JSX.Element;
@@ -9,6 +9,7 @@ type AgentAvatarProps = {
9
9
  agentIdentityAccountId?: string | null | undefined;
10
10
  agentNamedId?: string;
11
11
  agentId?: string;
12
+ isRovoDev?: boolean;
12
13
  isForgeAgent?: boolean;
13
14
  forgeAgentIconUrl?: string | null;
14
15
  };
@@ -19,5 +20,5 @@ type AgentAvatarProps = {
19
20
  * @param agentIdentityAccountId - This is Atlassian identity account ID for the agent(aaid). This id is prioritised to generate random avatar for non OOTB agents
20
21
  * @param agentId - This is agent.id
21
22
  */
22
- export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => JSX.Element;
23
+ export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isRovoDev, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => JSX.Element;
23
24
  export {};
@@ -37,13 +37,15 @@ export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoad
37
37
  isLoading: boolean;
38
38
  onCreatorLinkClick: () => void;
39
39
  }) => JSX.Element | null;
40
- export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, isStarred, isHidden, onStarToggle, }: {
40
+ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, }: {
41
41
  agentName: string;
42
42
  agentDescription?: string | null;
43
43
  creatorRender: React.ReactNode;
44
44
  starCountRender: React.ReactNode;
45
+ headingRender?: React.ReactNode;
45
46
  isStarred: boolean;
46
47
  isHidden: boolean;
47
48
  onStarToggle: () => void;
49
+ showStarButton?: boolean;
48
50
  }) => JSX.Element;
49
51
  export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @generated SignedSource<<9817b3677a18810cda2656cb77948845>>
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 isVerified: boolean | null | undefined;
11
+ readonly " $fragmentType": "agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef";
12
+ };
13
+ export type agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$key = {
14
+ readonly " $data"?: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$data;
15
+ readonly " $fragmentSpreads": FragmentRefs<"agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef">;
16
+ };
17
+ declare const node: ReaderFragment;
18
+ export default node;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @generated SignedSource<<e119306497999ac48bfef5821a96f2eb>>
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;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @generated SignedSource<<3ba8bcbc18cbb9766a1547794c6c98af>>
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;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @generated SignedSource<<251e7c171e33da0a0b2e0e8041d77493>>
3
+ * @relayHash 79a628a32ef254ccf6142a38adf8ecca
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;
@@ -0,0 +1,22 @@
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
+ agentId: string;
6
+ agentRef: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_agentRef$key | null;
7
+ userPermissionsRef: agentVerificationDropdownItem_AtlaskitRovoAgentComponents_userPermissionsRef$key | null;
8
+ /**
9
+ * Optional callback fired when the dropdown item is clicked, before the mutation is executed.
10
+ */
11
+ onClick?: () => void;
12
+ /**
13
+ * Test ID for the dropdown item.
14
+ */
15
+ testId?: string;
16
+ };
17
+ /**
18
+ * A dropdown item for verifying or unverifying an agent.
19
+ * Renders "Verify agent" if the agent is not verified, or "Unverify agent" if it is.
20
+ * Returns null if the user doesn't have permission to govern agents or the feature flag is off.
21
+ */
22
+ export declare const AgentVerificationDropdownItem: ({ agentId, agentRef, userPermissionsRef, onClick, testId, }: AgentVerificationDropdownItemProps) => React.JSX.Element | null;
@@ -0,0 +1,38 @@
1
+ declare const _default: {
2
+ verifyAgentLabel: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ unverifyAgentLabel: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ verifySuccessTitle: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ unverifySuccessTitle: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ verifyErrorTitle: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ unverifyErrorTitle: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ errorDescription: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ };
38
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.21.0",
3
+ "version": "3.23.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",
@@ -38,14 +38,16 @@
38
38
  "@atlaskit/button": "^23.9.0",
39
39
  "@atlaskit/css": "^0.19.0",
40
40
  "@atlaskit/dropdown-menu": "^16.4.0",
41
+ "@atlaskit/flag": "^17.8.0",
41
42
  "@atlaskit/heading": "^5.2.0",
42
43
  "@atlaskit/icon": "^29.4.0",
43
44
  "@atlaskit/link": "^3.3.0",
44
45
  "@atlaskit/logo": "^19.10.0",
45
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
46
47
  "@atlaskit/primitives": "^17.1.0",
48
+ "@atlaskit/rovo-agent-analytics": "^0.9.0",
47
49
  "@atlaskit/skeleton": "^2.1.0",
48
- "@atlaskit/tokens": "^10.0.0",
50
+ "@atlaskit/tokens": "^10.1.0",
49
51
  "@atlaskit/tooltip": "^20.14.0",
50
52
  "@babel/runtime": "^7.0.0",
51
53
  "@compiled/react": "^0.18.6",
@@ -66,6 +68,8 @@
66
68
  "@atlassian/testing-library": "^0.4.0",
67
69
  "@testing-library/react": "^16.3.0",
68
70
  "@testing-library/user-event": "^14.4.3",
71
+ "@types/relay-test-utils": "^18.0.0",
72
+ "relay-test-utils": "^14.1.0",
69
73
  "wait-for-expect": "^1.2.0"
70
74
  },
71
75
  "techstack": {
@@ -127,6 +131,9 @@
127
131
  "rovo_agent_empty_state_refresh": {
128
132
  "type": "boolean"
129
133
  },
134
+ "rovo_dev_themed_identity_card": {
135
+ "type": "boolean"
136
+ },
130
137
  "rovo_agents_agent_verification": {
131
138
  "type": "boolean"
132
139
  }