@atlaskit/rovo-agent-components 2.0.1 → 2.1.1

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 (66) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/common/ui/chat-pill/index.compiled.css +25 -0
  3. package/dist/cjs/common/ui/chat-pill/index.js +51 -79
  4. package/dist/cjs/common/ui/link-icon-button/index.compiled.css +1 -0
  5. package/dist/cjs/common/ui/link-icon-button/index.js +16 -9
  6. package/dist/cjs/common/ui/star-icon-button/index.compiled.css +8 -0
  7. package/dist/cjs/common/ui/star-icon-button/index.js +15 -15
  8. package/dist/cjs/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  9. package/dist/cjs/ui/agent-avatar/generated-avatars/index.js +24 -30
  10. package/dist/cjs/ui/agent-avatar/index.compiled.css +9 -0
  11. package/dist/cjs/ui/agent-avatar/index.js +25 -37
  12. package/dist/cjs/ui/agent-dropdown-menu/index.compiled.css +10 -0
  13. package/dist/cjs/ui/agent-dropdown-menu/index.js +33 -43
  14. package/dist/cjs/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  15. package/dist/cjs/ui/agent-profile-info/agent-star-count/index.js +15 -13
  16. package/dist/cjs/ui/agent-profile-info/index.compiled.css +11 -0
  17. package/dist/cjs/ui/agent-profile-info/index.js +38 -49
  18. package/dist/es2019/common/ui/chat-pill/index.compiled.css +25 -0
  19. package/dist/es2019/common/ui/chat-pill/index.js +41 -72
  20. package/dist/es2019/common/ui/link-icon-button/index.compiled.css +1 -0
  21. package/dist/es2019/common/ui/link-icon-button/index.js +10 -6
  22. package/dist/es2019/common/ui/star-icon-button/index.compiled.css +8 -0
  23. package/dist/es2019/common/ui/star-icon-button/index.js +12 -12
  24. package/dist/es2019/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  25. package/dist/es2019/ui/agent-avatar/generated-avatars/index.js +14 -20
  26. package/dist/es2019/ui/agent-avatar/index.compiled.css +9 -0
  27. package/dist/es2019/ui/agent-avatar/index.js +18 -34
  28. package/dist/es2019/ui/agent-dropdown-menu/index.compiled.css +10 -0
  29. package/dist/es2019/ui/agent-dropdown-menu/index.js +18 -28
  30. package/dist/es2019/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  31. package/dist/es2019/ui/agent-profile-info/agent-star-count/index.js +9 -10
  32. package/dist/es2019/ui/agent-profile-info/index.compiled.css +11 -0
  33. package/dist/es2019/ui/agent-profile-info/index.js +19 -33
  34. package/dist/esm/common/ui/chat-pill/index.compiled.css +25 -0
  35. package/dist/esm/common/ui/chat-pill/index.js +41 -72
  36. package/dist/esm/common/ui/link-icon-button/index.compiled.css +1 -0
  37. package/dist/esm/common/ui/link-icon-button/index.js +10 -6
  38. package/dist/esm/common/ui/star-icon-button/index.compiled.css +8 -0
  39. package/dist/esm/common/ui/star-icon-button/index.js +12 -12
  40. package/dist/esm/ui/agent-avatar/generated-avatars/index.compiled.css +6 -0
  41. package/dist/esm/ui/agent-avatar/generated-avatars/index.js +14 -20
  42. package/dist/esm/ui/agent-avatar/index.compiled.css +9 -0
  43. package/dist/esm/ui/agent-avatar/index.js +18 -34
  44. package/dist/esm/ui/agent-dropdown-menu/index.compiled.css +10 -0
  45. package/dist/esm/ui/agent-dropdown-menu/index.js +18 -28
  46. package/dist/esm/ui/agent-profile-info/agent-star-count/index.compiled.css +5 -0
  47. package/dist/esm/ui/agent-profile-info/agent-star-count/index.js +9 -10
  48. package/dist/esm/ui/agent-profile-info/index.compiled.css +11 -0
  49. package/dist/esm/ui/agent-profile-info/index.js +19 -33
  50. package/dist/types/common/ui/chat-pill/index.d.ts +6 -6
  51. package/dist/types/common/ui/link-icon-button/index.d.ts +7 -2
  52. package/dist/types/common/ui/star-icon-button/index.d.ts +6 -2
  53. package/dist/types/ui/agent-avatar/generated-avatars/index.d.ts +3 -3
  54. package/dist/types/ui/agent-avatar/index.d.ts +2 -2
  55. package/dist/types/ui/agent-dropdown-menu/index.d.ts +3 -3
  56. package/dist/types/ui/agent-profile-info/agent-star-count/index.d.ts +2 -2
  57. package/dist/types/ui/agent-profile-info/index.d.ts +3 -3
  58. package/dist/types-ts4.5/common/ui/chat-pill/index.d.ts +6 -6
  59. package/dist/types-ts4.5/common/ui/link-icon-button/index.d.ts +7 -2
  60. package/dist/types-ts4.5/common/ui/star-icon-button/index.d.ts +6 -2
  61. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/index.d.ts +3 -3
  62. package/dist/types-ts4.5/ui/agent-avatar/index.d.ts +2 -2
  63. package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +3 -3
  64. package/dist/types-ts4.5/ui/agent-profile-info/agent-star-count/index.d.ts +2 -2
  65. package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +3 -3
  66. package/package.json +8 -6
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { type SizeType } from '@atlaskit/avatar';
3
3
  export declare const TOTAL_AVATAR_COMBINATIONS: number;
4
4
  type GeneratedAvatarProps = {
@@ -19,6 +19,6 @@ export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }
19
19
  export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId" | "agentNamedId"> & {
20
20
  height?: number | undefined;
21
21
  fillSpace?: boolean | undefined;
22
- }) => React.JSX.Element;
23
- export declare const GeneratedAvatar: (props: GeneratedAvatarProps) => React.JSX.Element;
22
+ }) => JSX.Element;
23
+ export declare const GeneratedAvatar: (props: GeneratedAvatarProps) => JSX.Element;
24
24
  export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { type SizeType } from '@atlaskit/avatar';
3
3
  type AgentAvatarProps = {
4
4
  imageUrl?: string;
@@ -12,5 +12,5 @@ type AgentAvatarProps = {
12
12
  isForgeAgent?: boolean;
13
13
  forgeAgentIconUrl?: string | null;
14
14
  };
15
- export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => React.JSX.Element;
15
+ export declare const AgentAvatar: ({ imageUrl, size, label, name, agentId, agentIdentityAccountId, agentNamedId, showBorder, isForgeAgent, forgeAgentIconUrl, }: AgentAvatarProps) => JSX.Element;
16
16
  export {};
@@ -1,11 +1,11 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  import { type ButtonProps, IconButton } from '@atlaskit/button/new';
4
4
  import DropdownMenu, { DropdownItem } from '@atlaskit/dropdown-menu';
5
5
  type ChatToAgentButtonProps = {
6
6
  onClick: ButtonProps['onClick'];
7
7
  };
8
- export declare const ChatToAgentButton: ({ onClick }: ChatToAgentButtonProps) => React.JSX.Element;
8
+ export declare const ChatToAgentButton: ({ onClick }: ChatToAgentButtonProps) => JSX.Element;
9
9
  type ViewAgentOptionProps = {
10
10
  showViewAgentOption: true;
11
11
  onViewAgentClick: React.ComponentProps<typeof DropdownItem>['onClick'];
@@ -40,5 +40,5 @@ type AgentDropdownMenuProps = {
40
40
  loadPermissionsOnMount?: boolean;
41
41
  shouldTriggerStopPropagation?: boolean;
42
42
  } & ViewAgentOptionProps & ViewAgentFullProfileProps;
43
- export declare const AgentDropdownMenu: ({ isAgentCreatedByUser, isAutodevTemplateAgent, onEditAgent, onCopyAgent, onDuplicateAgent, onDeleteAgent, onViewAgentFullProfileClick, isForgeAgent, showViewAgentOption, onViewAgentClick, onDropdownTriggerClick, spacing, appearance, dropdownMenuTestId, doesAgentHaveIdentityAccountId, loadAgentPermissions, loadPermissionsOnMount, shouldTriggerStopPropagation, }: AgentDropdownMenuProps) => React.JSX.Element;
43
+ 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;
44
44
  export {};
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  export declare const AgentStarCount: ({ starCount, isLoading, }: {
3
3
  starCount: number | null | undefined;
4
4
  isLoading: boolean;
5
- }) => React.JSX.Element | null;
5
+ }) => JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading: isLoading, }: {
3
3
  creator?: {
4
4
  type: 'CUSTOMER';
@@ -19,7 +19,7 @@ export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoad
19
19
  } | undefined;
20
20
  isLoading: boolean;
21
21
  onCreatorLinkClick: () => void;
22
- }) => React.JSX.Element | null;
22
+ }) => JSX.Element | null;
23
23
  export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, isStarred, isHidden, onStarToggle, }: {
24
24
  agentName: string;
25
25
  agentDescription?: string | null | undefined;
@@ -28,4 +28,4 @@ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRe
28
28
  isStarred: boolean;
29
29
  isHidden: boolean;
30
30
  onStarToggle: () => void;
31
- }) => React.JSX.Element;
31
+ }) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
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",
@@ -37,19 +37,21 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/analytics-next": "11.0.0",
40
- "@atlaskit/avatar": "^23.0.0",
40
+ "@atlaskit/avatar": "^24.0.0",
41
41
  "@atlaskit/button": "^21.1.0",
42
+ "@atlaskit/css": "^0.10.0",
42
43
  "@atlaskit/dropdown-menu": "^13.0.0",
43
- "@atlaskit/heading": "^5.0.0",
44
- "@atlaskit/icon": "^24.0.0",
44
+ "@atlaskit/heading": "^5.1.0",
45
+ "@atlaskit/icon": "^24.1.0",
45
46
  "@atlaskit/legacy-custom-icons": "^0.22.0",
46
47
  "@atlaskit/logo": "^16.0.0",
47
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/primitives": "^14.0.0",
49
+ "@atlaskit/primitives": "^14.1.0",
49
50
  "@atlaskit/skeleton": "^2.0.0",
50
- "@atlaskit/tokens": "^4.1.0",
51
+ "@atlaskit/tokens": "^4.2.0",
51
52
  "@atlaskit/tooltip": "^20.0.0",
52
53
  "@babel/runtime": "^7.0.0",
54
+ "@compiled/react": "^0.18.2",
53
55
  "react-intl-next": "npm:react-intl@^5.18.1",
54
56
  "react-magnetic-di": "^3.1.4"
55
57
  },