@atlaskit/rovo-agent-components 3.46.3 → 3.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.48.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5763146cffd44`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5763146cffd44) - -
8
+ Update AgentCreatorType import from @atlassian/rovo-agent-components.
9
+ - Update `AssistanceService.getAgentKnowledgeConfiguration` to accept an optional
10
+ `agentCreatorType` to pass as query params to the underlying `/knowledge` endpoint.
11
+ - Update `KnowledgeSourcesField` to pass in `creatorType` value, under a FG
12
+ `rovo_agent_knowledge_source_allow_list`.
13
+
14
+ ## 3.47.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`f04cf52b53925`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f04cf52b53925) -
19
+ [ux] This change adds two new props to the browse agent modal and view agent modal to optionally
20
+ allow additional content and CTA to be rendered in the agent profile. An opt-in change to the chat
21
+ button has also been added to account for reduced space when the CTA is used.
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 3.46.3
4
28
 
5
29
  ### Patch Changes
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/rovo-agent-components/common/types",
3
+ "main": "../../dist/cjs/common/types.js",
4
+ "module": "../../dist/esm/common/types.js",
5
+ "module:es2019": "../../dist/es2019/common/types.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/common/types.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../../dist/types-ts4.5/common/types.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/rovo-agent-components/common/utils/is-agent-creator-type",
3
+ "main": "../../../dist/cjs/common/utils/is-agent-creator-type.js",
4
+ "module": "../../../dist/esm/common/utils/is-agent-creator-type.js",
5
+ "module:es2019": "../../../dist/es2019/common/utils/is-agent-creator-type.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../../../dist/types/common/utils/is-agent-creator-type.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../../../dist/types-ts4.5/common/utils/is-agent-creator-type.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isAgentCreatorType = void 0;
7
+ var agentCreatorTypes = ['SYSTEM', 'CUSTOMER', 'THIRD_PARTY', 'FORGE', 'OOTB', 'REMOTE_A2A'];
8
+ var isAgentCreatorType = exports.isAgentCreatorType = function isAgentCreatorType(creatorType) {
9
+ return agentCreatorTypes.includes(creatorType);
10
+ };
@@ -156,7 +156,8 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
156
156
  isHidden = _ref3.isHidden,
157
157
  onStarToggle = _ref3.onStarToggle,
158
158
  _ref3$showStarButton = _ref3.showStarButton,
159
- showStarButton = _ref3$showStarButton === void 0 ? true : _ref3$showStarButton;
159
+ showStarButton = _ref3$showStarButton === void 0 ? true : _ref3$showStarButton,
160
+ renderAdditionalContent = _ref3.renderAdditionalContent;
160
161
  var _useIntl2 = (0, _reactIntlNext.useIntl)(),
161
162
  formatMessage = _useIntl2.formatMessage;
162
163
  return /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
@@ -185,5 +186,5 @@ var AgentProfileInfo = exports.AgentProfileInfo = function AgentProfileInfo(_ref
185
186
  })), creatorRender, !!agentDescription && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
186
187
  xcss: styles.description,
187
188
  as: "p"
188
- }, agentDescription), starCountRender);
189
+ }, agentDescription), starCountRender, !!renderAdditionalContent && (0, _platformFeatureFlags.fg)('jira_browse_agents_modal') && renderAdditionalContent());
189
190
  };
File without changes
@@ -0,0 +1,2 @@
1
+ const agentCreatorTypes = ['SYSTEM', 'CUSTOMER', 'THIRD_PARTY', 'FORGE', 'OOTB', 'REMOTE_A2A'];
2
+ export const isAgentCreatorType = creatorType => agentCreatorTypes.includes(creatorType);
@@ -147,7 +147,8 @@ export const AgentProfileInfo = ({
147
147
  isStarred,
148
148
  isHidden,
149
149
  onStarToggle,
150
- showStarButton = true
150
+ showStarButton = true,
151
+ renderAdditionalContent
151
152
  }) => {
152
153
  const {
153
154
  formatMessage
@@ -178,5 +179,5 @@ export const AgentProfileInfo = ({
178
179
  })), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(Box, {
179
180
  xcss: styles.description,
180
181
  as: "p"
181
- }, agentDescription), starCountRender);
182
+ }, agentDescription), starCountRender, !!renderAdditionalContent && fg('jira_browse_agents_modal') && renderAdditionalContent());
182
183
  };
File without changes
@@ -0,0 +1,4 @@
1
+ var agentCreatorTypes = ['SYSTEM', 'CUSTOMER', 'THIRD_PARTY', 'FORGE', 'OOTB', 'REMOTE_A2A'];
2
+ export var isAgentCreatorType = function isAgentCreatorType(creatorType) {
3
+ return agentCreatorTypes.includes(creatorType);
4
+ };
@@ -149,7 +149,8 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
149
149
  isHidden = _ref3.isHidden,
150
150
  onStarToggle = _ref3.onStarToggle,
151
151
  _ref3$showStarButton = _ref3.showStarButton,
152
- showStarButton = _ref3$showStarButton === void 0 ? true : _ref3$showStarButton;
152
+ showStarButton = _ref3$showStarButton === void 0 ? true : _ref3$showStarButton,
153
+ renderAdditionalContent = _ref3.renderAdditionalContent;
153
154
  var _useIntl2 = useIntl(),
154
155
  formatMessage = _useIntl2.formatMessage;
155
156
  return /*#__PURE__*/React.createElement(Stack, {
@@ -178,5 +179,5 @@ export var AgentProfileInfo = function AgentProfileInfo(_ref3) {
178
179
  })), creatorRender, !!agentDescription && /*#__PURE__*/React.createElement(Box, {
179
180
  xcss: styles.description,
180
181
  as: "p"
181
- }, agentDescription), starCountRender);
182
+ }, agentDescription), starCountRender, !!renderAdditionalContent && fg('jira_browse_agents_modal') && renderAdditionalContent());
182
183
  };
@@ -0,0 +1 @@
1
+ export type AgentCreatorType = 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'OOTB' | 'REMOTE_A2A';
@@ -0,0 +1,2 @@
1
+ import type { AgentCreatorType } from '../types';
2
+ export declare const isAgentCreatorType: (creatorType: string) => creatorType is AgentCreatorType;
@@ -1,2 +1,2 @@
1
- export type AgentCreatorType = 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'OOTB' | 'REMOTE_A2A';
1
+ import type { AgentCreatorType } from '../types';
2
2
  export declare const isForgeAgentByCreatorType: (creatorType: AgentCreatorType) => boolean;
@@ -37,7 +37,7 @@ 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, headingRender, isStarred, isHidden, onStarToggle, showStarButton, }: {
40
+ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, renderAdditionalContent, }: {
41
41
  agentName: string;
42
42
  agentDescription?: string | null;
43
43
  creatorRender: React.ReactNode;
@@ -47,5 +47,6 @@ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRe
47
47
  isHidden: boolean;
48
48
  onStarToggle: () => void;
49
49
  showStarButton?: boolean;
50
+ renderAdditionalContent?: () => React.ReactNode;
50
51
  }) => JSX.Element;
51
52
  export {};
@@ -0,0 +1 @@
1
+ export type AgentCreatorType = 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'OOTB' | 'REMOTE_A2A';
@@ -0,0 +1,2 @@
1
+ import type { AgentCreatorType } from '../types';
2
+ export declare const isAgentCreatorType: (creatorType: string) => creatorType is AgentCreatorType;
@@ -1,2 +1,2 @@
1
- export type AgentCreatorType = 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'OOTB' | 'REMOTE_A2A';
1
+ import type { AgentCreatorType } from '../types';
2
2
  export declare const isForgeAgentByCreatorType: (creatorType: AgentCreatorType) => boolean;
@@ -37,7 +37,7 @@ 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, headingRender, isStarred, isHidden, onStarToggle, showStarButton, }: {
40
+ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRender, starCountRender, headingRender, isStarred, isHidden, onStarToggle, showStarButton, renderAdditionalContent, }: {
41
41
  agentName: string;
42
42
  agentDescription?: string | null;
43
43
  creatorRender: React.ReactNode;
@@ -47,5 +47,6 @@ export declare const AgentProfileInfo: ({ agentName, agentDescription, creatorRe
47
47
  isHidden: boolean;
48
48
  onStarToggle: () => void;
49
49
  showStarButton?: boolean;
50
+ renderAdditionalContent?: () => React.ReactNode;
50
51
  }) => JSX.Element;
51
52
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-agent-components",
3
- "version": "3.46.3",
3
+ "version": "3.48.0",
4
4
  "description": "This package host public components related to rovo agents, the components here are needed for other public atlaskit packages",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
6
6
  "atlassian": {
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/button": "^23.10.0",
39
39
  "@atlaskit/css": "^0.19.0",
40
40
  "@atlaskit/dropdown-menu": "^16.8.0",
41
- "@atlaskit/flag": "^17.8.0",
41
+ "@atlaskit/flag": "^17.9.0",
42
42
  "@atlaskit/heading": "^5.3.0",
43
43
  "@atlaskit/icon": "^33.1.0",
44
44
  "@atlaskit/link": "^3.3.0",