@atlaskit/rovo-agent-components 3.0.1 → 3.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 (37) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/i18n/sr_RS.js +17 -0
  3. package/dist/cjs/i18n/sr_YR.js +17 -0
  4. package/dist/cjs/ui/agent-dropdown-menu/index.js +6 -3
  5. package/dist/es2019/i18n/sr_RS.js +11 -0
  6. package/dist/es2019/i18n/sr_YR.js +11 -0
  7. package/dist/es2019/ui/agent-dropdown-menu/index.js +4 -1
  8. package/dist/esm/i18n/sr_RS.js +11 -0
  9. package/dist/esm/i18n/sr_YR.js +11 -0
  10. package/dist/esm/ui/agent-dropdown-menu/index.js +6 -3
  11. package/dist/types/common/ui/chat-icon/index.d.ts +1 -1
  12. package/dist/types/common/ui/chat-pill/index.d.ts +2 -3
  13. package/dist/types/common/ui/hidden-icon/index.d.ts +1 -1
  14. package/dist/types/common/ui/link-icon-button/index.d.ts +1 -1
  15. package/dist/types/common/ui/star-icon-button/index.d.ts +1 -1
  16. package/dist/types/i18n/sr_RS.d.ts +10 -0
  17. package/dist/types/i18n/sr_YR.d.ts +10 -0
  18. package/dist/types/ui/agent-avatar/generated-avatars/index.d.ts +4 -5
  19. package/dist/types/ui/agent-avatar/index.d.ts +0 -1
  20. package/dist/types/ui/agent-conversation-starters/index.d.ts +0 -1
  21. package/dist/types/ui/agent-dropdown-menu/index.d.ts +1 -0
  22. package/dist/types/ui/agent-profile-info/agent-star-count/index.d.ts +0 -1
  23. package/dist/types/ui/agent-profile-info/index.d.ts +8 -8
  24. package/dist/types-ts4.5/common/ui/chat-icon/index.d.ts +1 -1
  25. package/dist/types-ts4.5/common/ui/chat-pill/index.d.ts +2 -3
  26. package/dist/types-ts4.5/common/ui/hidden-icon/index.d.ts +1 -1
  27. package/dist/types-ts4.5/common/ui/link-icon-button/index.d.ts +1 -1
  28. package/dist/types-ts4.5/common/ui/star-icon-button/index.d.ts +1 -1
  29. package/dist/types-ts4.5/i18n/sr_RS.d.ts +10 -0
  30. package/dist/types-ts4.5/i18n/sr_YR.d.ts +10 -0
  31. package/dist/types-ts4.5/ui/agent-avatar/generated-avatars/index.d.ts +4 -5
  32. package/dist/types-ts4.5/ui/agent-avatar/index.d.ts +0 -1
  33. package/dist/types-ts4.5/ui/agent-conversation-starters/index.d.ts +0 -1
  34. package/dist/types-ts4.5/ui/agent-dropdown-menu/index.d.ts +1 -0
  35. package/dist/types-ts4.5/ui/agent-profile-info/agent-star-count/index.d.ts +0 -1
  36. package/dist/types-ts4.5/ui/agent-profile-info/index.d.ts +8 -8
  37. package/package.json +7 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`44102fe3bc0dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/44102fe3bc0dd) -
14
+ [ux] Hiding agent duplicate entrypoints when user does not have rovo agent create permissions
15
+
3
16
  ## 3.0.1
4
17
 
5
18
  ### Patch Changes
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Serbian (Serbia) [sr-RS]
15
+ var _default = exports.default = {
16
+ 'rovo-chat.view-agent.more-actions-for-label': 'Više radnji za {agentName}'
17
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Serbian (Cyrillic) [sr-YR]
15
+ var _default = exports.default = {
16
+ 'rovo-chat.view-agent.more-actions-for-label': 'Више радњи за {agentName}'
17
+ };
@@ -95,7 +95,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
95
95
  (0, _react.useEffect)(function () {
96
96
  var fetchData = /*#__PURE__*/function () {
97
97
  var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
98
- var _yield$loadAgentPermi, isEditEnabled, isDeleteEnabled;
98
+ var _yield$loadAgentPermi, isCreateEnabled, isEditEnabled, isDeleteEnabled;
99
99
  return _regenerator.default.wrap(function _callee$(_context) {
100
100
  while (1) switch (_context.prev = _context.next) {
101
101
  case 0:
@@ -104,14 +104,16 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
104
104
  return loadAgentPermissions();
105
105
  case 3:
106
106
  _yield$loadAgentPermi = _context.sent;
107
+ isCreateEnabled = _yield$loadAgentPermi.isCreateEnabled;
107
108
  isEditEnabled = _yield$loadAgentPermi.isEditEnabled;
108
109
  isDeleteEnabled = _yield$loadAgentPermi.isDeleteEnabled;
109
110
  setIsLoading(false);
110
111
  setPermissions({
112
+ isCreateEnabled: isCreateEnabled,
111
113
  isEditEnabled: isEditEnabled,
112
114
  isDeleteEnabled: isDeleteEnabled
113
115
  });
114
- case 8:
116
+ case 9:
115
117
  case "end":
116
118
  return _context.stop();
117
119
  }
@@ -144,6 +146,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
144
146
  onClick: onDeleteAgent
145
147
  }, formatMessage(_messages.default.deleteAgent)));
146
148
  };
149
+ var isCreateAgentsEnabled = (0, _platformFeatureFlags.fg)('agent_studio_fe_permissions_settings_m1') ? permissions === null || permissions === void 0 ? void 0 : permissions.isCreateEnabled : true;
147
150
  return /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, {
148
151
  isLoading: isLoading,
149
152
  isOpen: isOpen,
@@ -183,7 +186,7 @@ var AgentDropdownMenu = exports.AgentDropdownMenu = function AgentDropdownMenu(_
183
186
  onClick: onViewAgentClick
184
187
  }, formatMessage(_messages.default.viewAgent)), doesAgentHaveIdentityAccountId && onViewAgentFullProfileClick && /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
185
188
  onClick: onViewAgentFullProfileClick
186
- }, formatMessage(_messages.default.viewAgentFullProfile)), !isForgeAgent && /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
189
+ }, formatMessage(_messages.default.viewAgentFullProfile)), !isForgeAgent && isCreateAgentsEnabled && /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
187
190
  onClick: onDuplicateAgent
188
191
  }, isAutodevTemplateAgent ? formatMessage(_messages.default.useTemplateButton) : formatMessage(_messages.default.duplicateAgent)), /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
189
192
  onClick: function onClick(e) {
@@ -0,0 +1,11 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Serbian (Serbia) [sr-RS]
9
+ export default {
10
+ 'rovo-chat.view-agent.more-actions-for-label': 'Više radnji za {agentName}'
11
+ };
@@ -0,0 +1,11 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Serbian (Cyrillic) [sr-YR]
9
+ export default {
10
+ 'rovo-chat.view-agent.more-actions-for-label': 'Више радњи за {agentName}'
11
+ };
@@ -73,11 +73,13 @@ export const AgentDropdownMenu = ({
73
73
  const fetchData = async () => {
74
74
  setIsLoading(true);
75
75
  const {
76
+ isCreateEnabled,
76
77
  isEditEnabled,
77
78
  isDeleteEnabled
78
79
  } = await loadAgentPermissions();
79
80
  setIsLoading(false);
80
81
  setPermissions({
82
+ isCreateEnabled,
81
83
  isEditEnabled,
82
84
  isDeleteEnabled
83
85
  });
@@ -105,6 +107,7 @@ export const AgentDropdownMenu = ({
105
107
  onClick: onDeleteAgent
106
108
  }, formatMessage(messages.deleteAgent)));
107
109
  };
110
+ const isCreateAgentsEnabled = fg('agent_studio_fe_permissions_settings_m1') ? permissions === null || permissions === void 0 ? void 0 : permissions.isCreateEnabled : true;
108
111
  return /*#__PURE__*/React.createElement(DropdownMenu, {
109
112
  isLoading: isLoading,
110
113
  isOpen: isOpen,
@@ -143,7 +146,7 @@ export const AgentDropdownMenu = ({
143
146
  onClick: onViewAgentClick
144
147
  }, formatMessage(messages.viewAgent)), doesAgentHaveIdentityAccountId && onViewAgentFullProfileClick && /*#__PURE__*/React.createElement(DropdownItem, {
145
148
  onClick: onViewAgentFullProfileClick
146
- }, formatMessage(messages.viewAgentFullProfile)), !isForgeAgent && /*#__PURE__*/React.createElement(DropdownItem, {
149
+ }, formatMessage(messages.viewAgentFullProfile)), !isForgeAgent && isCreateAgentsEnabled && /*#__PURE__*/React.createElement(DropdownItem, {
147
150
  onClick: onDuplicateAgent
148
151
  }, isAutodevTemplateAgent ? formatMessage(messages.useTemplateButton) : formatMessage(messages.duplicateAgent)), /*#__PURE__*/React.createElement(DropdownItem, {
149
152
  onClick: e => {
@@ -0,0 +1,11 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Serbian (Serbia) [sr-RS]
9
+ export default {
10
+ 'rovo-chat.view-agent.more-actions-for-label': 'Više radnji za {agentName}'
11
+ };
@@ -0,0 +1,11 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Serbian (Cyrillic) [sr-YR]
9
+ export default {
10
+ 'rovo-chat.view-agent.more-actions-for-label': 'Више радњи за {agentName}'
11
+ };
@@ -86,7 +86,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
86
86
  useEffect(function () {
87
87
  var fetchData = /*#__PURE__*/function () {
88
88
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
89
- var _yield$loadAgentPermi, isEditEnabled, isDeleteEnabled;
89
+ var _yield$loadAgentPermi, isCreateEnabled, isEditEnabled, isDeleteEnabled;
90
90
  return _regeneratorRuntime.wrap(function _callee$(_context) {
91
91
  while (1) switch (_context.prev = _context.next) {
92
92
  case 0:
@@ -95,14 +95,16 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
95
95
  return loadAgentPermissions();
96
96
  case 3:
97
97
  _yield$loadAgentPermi = _context.sent;
98
+ isCreateEnabled = _yield$loadAgentPermi.isCreateEnabled;
98
99
  isEditEnabled = _yield$loadAgentPermi.isEditEnabled;
99
100
  isDeleteEnabled = _yield$loadAgentPermi.isDeleteEnabled;
100
101
  setIsLoading(false);
101
102
  setPermissions({
103
+ isCreateEnabled: isCreateEnabled,
102
104
  isEditEnabled: isEditEnabled,
103
105
  isDeleteEnabled: isDeleteEnabled
104
106
  });
105
- case 8:
107
+ case 9:
106
108
  case "end":
107
109
  return _context.stop();
108
110
  }
@@ -135,6 +137,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
135
137
  onClick: onDeleteAgent
136
138
  }, formatMessage(messages.deleteAgent)));
137
139
  };
140
+ var isCreateAgentsEnabled = fg('agent_studio_fe_permissions_settings_m1') ? permissions === null || permissions === void 0 ? void 0 : permissions.isCreateEnabled : true;
138
141
  return /*#__PURE__*/React.createElement(DropdownMenu, {
139
142
  isLoading: isLoading,
140
143
  isOpen: isOpen,
@@ -174,7 +177,7 @@ export var AgentDropdownMenu = function AgentDropdownMenu(_ref2) {
174
177
  onClick: onViewAgentClick
175
178
  }, formatMessage(messages.viewAgent)), doesAgentHaveIdentityAccountId && onViewAgentFullProfileClick && /*#__PURE__*/React.createElement(DropdownItem, {
176
179
  onClick: onViewAgentFullProfileClick
177
- }, formatMessage(messages.viewAgentFullProfile)), !isForgeAgent && /*#__PURE__*/React.createElement(DropdownItem, {
180
+ }, formatMessage(messages.viewAgentFullProfile)), !isForgeAgent && isCreateAgentsEnabled && /*#__PURE__*/React.createElement(DropdownItem, {
178
181
  onClick: onDuplicateAgent
179
182
  }, isAutodevTemplateAgent ? formatMessage(messages.useTemplateButton) : formatMessage(messages.duplicateAgent)), /*#__PURE__*/React.createElement(DropdownItem, {
180
183
  onClick: function onClick(e) {
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type NewCoreIconProps } from '@atlaskit/icon';
3
- export declare const ChatPillIcon: (props: Omit<NewCoreIconProps, 'label' | 'glyph'>) => React.JSX.Element;
3
+ export declare const ChatPillIcon: (props: Omit<NewCoreIconProps, "label" | "glyph">) => React.JSX.Element;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  import { type ButtonProps } from '@atlaskit/button';
3
2
  export type ChatPillProps = Omit<ButtonProps, 'iconBefore'> & {
4
3
  whiteSpacePreWrap?: boolean;
5
4
  renderIcon?: boolean;
6
5
  };
7
6
  export declare const ChatPill: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
8
- whiteSpacePreWrap?: boolean | undefined;
9
- renderIcon?: boolean | undefined;
7
+ whiteSpacePreWrap?: boolean;
8
+ renderIcon?: boolean;
10
9
  } & import("react").RefAttributes<HTMLButtonElement>>;
11
10
  export type BrowseAgentsPillProps = Omit<ButtonProps, 'iconBefore' | 'children'>;
12
11
  export declare const BrowseAgentsPill: import("react").ForwardRefExoticComponent<BrowseAgentsPillProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type NewCoreIconProps } from '@atlaskit/icon';
3
- export declare const HiddenIcon: (props: Omit<NewCoreIconProps, 'glyph'>) => React.JSX.Element;
3
+ export declare const HiddenIcon: (props: Omit<NewCoreIconProps, "glyph">) => React.JSX.Element;
@@ -6,5 +6,5 @@
6
6
  import { type KeyboardEvent, type MouseEvent } from 'react';
7
7
  export declare const LinkIconButton: ({ handleCopy, visible, }: {
8
8
  handleCopy: (e: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element>) => void;
9
- visible?: boolean | undefined;
9
+ visible?: boolean;
10
10
  }) => JSX.Element;
@@ -6,5 +6,5 @@ import { type KeyboardEvent, type MouseEvent } from 'react';
6
6
  export declare const StarIconButton: ({ isStarred, handleToggle, visible, }: {
7
7
  isStarred: boolean;
8
8
  handleToggle: (e: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element>) => void;
9
- visible?: boolean | undefined;
9
+ visible?: boolean;
10
10
  }) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'rovo-chat.view-agent.more-actions-for-label': string;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'rovo-chat.view-agent.more-actions-for-label': string;
9
+ };
10
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type SizeType } from '@atlaskit/avatar';
3
2
  export declare const yellowColor: {
4
3
  primary: string;
@@ -31,10 +30,10 @@ type GeneratedAvatarProps = {
31
30
  * agentId examples:
32
31
  * cd002f25-46e4-4023-80ff-32e4d90849b4
33
32
  */
34
- export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }: Pick<GeneratedAvatarProps, 'agentIdentityAccountId' | 'agentId'>) => number | null;
35
- export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId" | "agentNamedId"> & {
36
- height?: number | undefined;
37
- fillSpace?: boolean | undefined;
33
+ export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId">) => number | null;
34
+ export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentId" | "agentNamedId" | "agentIdentityAccountId"> & {
35
+ height?: number;
36
+ fillSpace?: boolean;
38
37
  }) => JSX.Element;
39
38
  export declare const GeneratedAvatar: (props: GeneratedAvatarProps) => JSX.Element;
40
39
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type SizeType } from '@atlaskit/avatar';
3
2
  type AgentAvatarProps = {
4
3
  imageUrl?: string;
@@ -2,7 +2,6 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- /// <reference types="react" />
6
5
  import { type MessageDescriptor } from 'react-intl-next';
7
6
  export type ConversationStarter = {
8
7
  message: string;
@@ -41,6 +41,7 @@ type AgentDropdownMenuProps = {
41
41
  loadPermissionsOnMount?: boolean;
42
42
  shouldTriggerStopPropagation?: boolean;
43
43
  loadAgentPermissions: () => Promise<{
44
+ isCreateEnabled?: boolean;
44
45
  isEditEnabled: boolean;
45
46
  isDeleteEnabled: boolean;
46
47
  }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const AgentStarCount: ({ starCount, isLoading, }: {
3
2
  starCount: number | null | undefined;
4
3
  isLoading: boolean;
@@ -5,28 +5,28 @@
5
5
  import React from 'react';
6
6
  export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading: isLoading, }: {
7
7
  creator?: {
8
- type: 'CUSTOMER';
8
+ type: "CUSTOMER";
9
9
  name: string;
10
10
  profileLink: string;
11
- status?: "active" | "inactive" | undefined;
11
+ status?: "active" | "inactive";
12
12
  } | {
13
- type: 'SYSTEM';
13
+ type: "SYSTEM";
14
14
  } | {
15
- type: 'THIRD_PARTY';
15
+ type: "THIRD_PARTY";
16
16
  name: string;
17
17
  } | {
18
- type: 'FORGE';
18
+ type: "FORGE";
19
19
  name: string;
20
20
  } | {
21
- type: 'OOTB';
21
+ type: "OOTB";
22
22
  name: string;
23
- } | undefined;
23
+ };
24
24
  isLoading: boolean;
25
25
  onCreatorLinkClick: () => void;
26
26
  }) => JSX.Element | null;
27
27
  export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, isStarred, isHidden, onStarToggle, }: {
28
28
  agentName: string;
29
- agentDescription?: string | null | undefined;
29
+ agentDescription?: string | null;
30
30
  creatorRender: React.ReactNode;
31
31
  starCountRender: React.ReactNode;
32
32
  isStarred: boolean;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type NewCoreIconProps } from '@atlaskit/icon';
3
- export declare const ChatPillIcon: (props: Omit<NewCoreIconProps, 'label' | 'glyph'>) => React.JSX.Element;
3
+ export declare const ChatPillIcon: (props: Omit<NewCoreIconProps, "label" | "glyph">) => React.JSX.Element;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  import { type ButtonProps } from '@atlaskit/button';
3
2
  export type ChatPillProps = Omit<ButtonProps, 'iconBefore'> & {
4
3
  whiteSpacePreWrap?: boolean;
5
4
  renderIcon?: boolean;
6
5
  };
7
6
  export declare const ChatPill: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "iconBefore"> & {
8
- whiteSpacePreWrap?: boolean | undefined;
9
- renderIcon?: boolean | undefined;
7
+ whiteSpacePreWrap?: boolean;
8
+ renderIcon?: boolean;
10
9
  } & import("react").RefAttributes<HTMLButtonElement>>;
11
10
  export type BrowseAgentsPillProps = Omit<ButtonProps, 'iconBefore' | 'children'>;
12
11
  export declare const BrowseAgentsPill: import("react").ForwardRefExoticComponent<BrowseAgentsPillProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type NewCoreIconProps } from '@atlaskit/icon';
3
- export declare const HiddenIcon: (props: Omit<NewCoreIconProps, 'glyph'>) => React.JSX.Element;
3
+ export declare const HiddenIcon: (props: Omit<NewCoreIconProps, "glyph">) => React.JSX.Element;
@@ -6,5 +6,5 @@
6
6
  import { type KeyboardEvent, type MouseEvent } from 'react';
7
7
  export declare const LinkIconButton: ({ handleCopy, visible, }: {
8
8
  handleCopy: (e: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element>) => void;
9
- visible?: boolean | undefined;
9
+ visible?: boolean;
10
10
  }) => JSX.Element;
@@ -6,5 +6,5 @@ import { type KeyboardEvent, type MouseEvent } from 'react';
6
6
  export declare const StarIconButton: ({ isStarred, handleToggle, visible, }: {
7
7
  isStarred: boolean;
8
8
  handleToggle: (e: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element>) => void;
9
- visible?: boolean | undefined;
9
+ visible?: boolean;
10
10
  }) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'rovo-chat.view-agent.more-actions-for-label': string;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'rovo-chat.view-agent.more-actions-for-label': string;
9
+ };
10
+ export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type SizeType } from '@atlaskit/avatar';
3
2
  export declare const yellowColor: {
4
3
  primary: string;
@@ -31,10 +30,10 @@ type GeneratedAvatarProps = {
31
30
  * agentId examples:
32
31
  * cd002f25-46e4-4023-80ff-32e4d90849b4
33
32
  */
34
- export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }: Pick<GeneratedAvatarProps, 'agentIdentityAccountId' | 'agentId'>) => number | null;
35
- export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId" | "agentNamedId"> & {
36
- height?: number | undefined;
37
- fillSpace?: boolean | undefined;
33
+ export declare const getNumberIdForAvatar: ({ agentIdentityAccountId, agentId, }: Pick<GeneratedAvatarProps, "agentIdentityAccountId" | "agentId">) => number | null;
34
+ export declare const AgentBanner: ({ agentNamedId, agentId, agentIdentityAccountId, height, fillSpace, }: Pick<GeneratedAvatarProps, "agentId" | "agentNamedId" | "agentIdentityAccountId"> & {
35
+ height?: number;
36
+ fillSpace?: boolean;
38
37
  }) => JSX.Element;
39
38
  export declare const GeneratedAvatar: (props: GeneratedAvatarProps) => JSX.Element;
40
39
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type SizeType } from '@atlaskit/avatar';
3
2
  type AgentAvatarProps = {
4
3
  imageUrl?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -41,6 +41,7 @@ type AgentDropdownMenuProps = {
41
41
  loadPermissionsOnMount?: boolean;
42
42
  shouldTriggerStopPropagation?: boolean;
43
43
  loadAgentPermissions: () => Promise<{
44
+ isCreateEnabled?: boolean;
44
45
  isEditEnabled: boolean;
45
46
  isDeleteEnabled: boolean;
46
47
  }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const AgentStarCount: ({ starCount, isLoading, }: {
3
2
  starCount: number | null | undefined;
4
3
  isLoading: boolean;
@@ -5,28 +5,28 @@
5
5
  import React from 'react';
6
6
  export declare const AgentProfileCreator: ({ creator, onCreatorLinkClick, isLoading: isLoading, }: {
7
7
  creator?: {
8
- type: 'CUSTOMER';
8
+ type: "CUSTOMER";
9
9
  name: string;
10
10
  profileLink: string;
11
- status?: "active" | "inactive" | undefined;
11
+ status?: "active" | "inactive";
12
12
  } | {
13
- type: 'SYSTEM';
13
+ type: "SYSTEM";
14
14
  } | {
15
- type: 'THIRD_PARTY';
15
+ type: "THIRD_PARTY";
16
16
  name: string;
17
17
  } | {
18
- type: 'FORGE';
18
+ type: "FORGE";
19
19
  name: string;
20
20
  } | {
21
- type: 'OOTB';
21
+ type: "OOTB";
22
22
  name: string;
23
- } | undefined;
23
+ };
24
24
  isLoading: boolean;
25
25
  onCreatorLinkClick: () => void;
26
26
  }) => JSX.Element | null;
27
27
  export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, isStarred, isHidden, onStarToggle, }: {
28
28
  agentName: string;
29
- agentDescription?: string | null | undefined;
29
+ agentDescription?: string | null;
30
30
  creatorRender: React.ReactNode;
31
31
  starCountRender: React.ReactNode;
32
32
  isStarred: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.0.1",
3
+ "version": "3.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,14 +37,14 @@
37
37
  "dependencies": {
38
38
  "@atlaskit/analytics-next": "^11.1.0",
39
39
  "@atlaskit/avatar": "^25.1.0",
40
- "@atlaskit/button": "^23.3.0",
40
+ "@atlaskit/button": "^23.4.0",
41
41
  "@atlaskit/css": "^0.12.0",
42
42
  "@atlaskit/dropdown-menu": "^16.3.0",
43
43
  "@atlaskit/heading": "^5.2.0",
44
- "@atlaskit/icon": "^27.9.0",
44
+ "@atlaskit/icon": "^28.0.0",
45
45
  "@atlaskit/legacy-custom-icons": "^0.22.0",
46
46
  "@atlaskit/link": "^3.2.0",
47
- "@atlaskit/logo": "^19.6.0",
47
+ "@atlaskit/logo": "^19.7.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/primitives": "^14.11.0",
50
50
  "@atlaskit/skeleton": "^2.1.0",
@@ -68,7 +68,6 @@
68
68
  "@testing-library/react-hooks": "^8.0.1",
69
69
  "@testing-library/user-event": "^14.4.3",
70
70
  "react-dom": "^18.2.0",
71
- "typescript": "~5.4.2",
72
71
  "wait-for-expect": "^1.2.0"
73
72
  },
74
73
  "techstack": {
@@ -121,6 +120,9 @@
121
120
  },
122
121
  "a11y_agents_fixes": {
123
122
  "type": "boolean"
123
+ },
124
+ "agent_studio_fe_permissions_settings_m1": {
125
+ "type": "boolean"
124
126
  }
125
127
  }
126
128
  }