@atlaskit/rovo-agent-components 3.46.3 → 3.47.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,18 @@
1
1
  # @atlaskit/rovo-agent-components
2
2
 
3
+ ## 3.47.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f04cf52b53925`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f04cf52b53925) -
8
+ [ux] This change adds two new props to the browse agent modal and view agent modal to optionally
9
+ allow additional content and CTA to be rendered in the agent profile. An opt-in change to the chat
10
+ button has also been added to account for reduced space when the CTA is used.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 3.46.3
4
17
 
5
18
  ### Patch Changes
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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 {};
@@ -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.47.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",