@atlaskit/profilecard 26.17.2 → 26.18.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 26.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 26.18.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`6997a74055219`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6997a74055219) -
14
+ Add profile card on hover in the mentions typeahead for agent mentions
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 26.17.2
4
21
 
5
22
  ### Patch Changes
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
11
11
  var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
12
12
  var addHeaders = function addHeaders(headers) {
13
13
  headers.append('atl-client-name', "@atlaskit/profilecard");
14
- headers.append('atl-client-version', "26.17.1");
14
+ headers.append('atl-client-version', "26.18.0");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
66
66
  headers.append('X-ExperimentalApi', 'teams-beta');
67
67
  headers.append('X-ExperimentalApi', 'team-members-beta');
68
68
  headers.append('atl-client-name', "@atlaskit/profilecard");
69
- headers.append('atl-client-version', "26.17.1");
69
+ headers.append('atl-client-version', "26.18.0");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -74,6 +74,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
74
74
  hideAgentActions = _ref$hideAgentActions === void 0 ? false : _ref$hideAgentActions,
75
75
  _ref$hideStarButton = _ref.hideStarButton,
76
76
  hideStarButton = _ref$hideStarButton === void 0 ? false : _ref$hideStarButton,
77
+ _ref$showCreatorNameW = _ref.showCreatorNameWithoutLink,
78
+ showCreatorNameWithoutLink = _ref$showCreatorNameW === void 0 ? false : _ref$showCreatorNameW,
77
79
  footerComponent = _ref.footerComponent;
78
80
  var _useAgentUrlActions = (0, _useAgentActions.useAgentUrlActions)({
79
81
  cloudId: cloudId || '',
@@ -210,11 +212,11 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
210
212
  // We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
211
213
  // They are actually the same, just different names.
212
214
  var isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
213
- var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
215
+ var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
214
216
  var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !hideAgentActions;
215
217
 
216
218
  // Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
217
- var needsBottomPaddingFallback = hideAgentActions && _featureGateJsClient.default.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false);
219
+ var needsBottomPaddingFallback = hideAgentActions && (_featureGateJsClient.default.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes'));
218
220
  return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
219
221
  xcss: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
220
222
  }, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
@@ -252,7 +254,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
252
254
  profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
253
255
  },
254
256
  isLoading: false,
255
- onCreatorLinkClick: function onCreatorLinkClick() {}
257
+ onCreatorLinkClick: function onCreatorLinkClick() {},
258
+ showCreatorNameWithoutLink: showCreatorNameWithoutLink
256
259
  }),
257
260
  starCountRender: null,
258
261
  agentDescription: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
@@ -220,6 +220,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
220
220
  hideConversationStarters: true,
221
221
  hideAiDisclaimer: true,
222
222
  hideStarButton: props.hideStarButton,
223
+ showCreatorNameWithoutLink: props.showCreatorNameWithoutLink,
223
224
  footerComponent: props.footerComponent
224
225
  })));
225
226
  }
@@ -249,6 +250,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
249
250
  hideConversationStarters: props.hideConversationStarters,
250
251
  hideAgentActions: props.hideAgentActions,
251
252
  hideStarButton: props.hideStarButton,
253
+ showCreatorNameWithoutLink: props.showCreatorNameWithoutLink,
252
254
  footerComponent: props.footerComponent
253
255
  }));
254
256
  };
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
14
14
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
15
- packageVersion: (_process$env$_PACKAGE2 = "26.17.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
15
+ packageVersion: (_process$env$_PACKAGE2 = "26.18.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
16
16
  };
17
17
  var TEAM_SUBJECT = 'teamProfileCard';
18
18
  var USER_SUBJECT = 'profilecard';
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
31
31
  actionSubjectId: actionSubjectId,
32
32
  attributes: _objectSpread(_objectSpread({
33
33
  packageName: "@atlaskit/profilecard",
34
- packageVersion: "26.17.1"
34
+ packageVersion: "26.18.0"
35
35
  }, attributes), {}, {
36
36
  firedAt: Math.round((0, _performance.getPageTime)())
37
37
  })
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
6
6
  }`;
7
7
  const addHeaders = headers => {
8
8
  headers.append('atl-client-name', "@atlaskit/profilecard");
9
- headers.append('atl-client-version', "26.17.1");
9
+ headers.append('atl-client-version', "26.18.0");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
78
78
  headers.append('X-ExperimentalApi', 'teams-beta');
79
79
  headers.append('X-ExperimentalApi', 'team-members-beta');
80
80
  headers.append('atl-client-name', "@atlaskit/profilecard");
81
- headers.append('atl-client-version', "26.17.1");
81
+ headers.append('atl-client-version', "26.18.0");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -54,6 +54,7 @@ const AgentProfileCard = ({
54
54
  hideConversationStarters = false,
55
55
  hideAgentActions = false,
56
56
  hideStarButton = false,
57
+ showCreatorNameWithoutLink = false,
57
58
  footerComponent
58
59
  }) => {
59
60
  var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
@@ -159,11 +160,11 @@ const AgentProfileCard = ({
159
160
  // We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
160
161
  // They are actually the same, just different names.
161
162
  const isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
162
- const shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
163
+ const shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
163
164
  const shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !hideAgentActions;
164
165
 
165
166
  // Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
166
- const needsBottomPaddingFallback = hideAgentActions && FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false);
167
+ const needsBottomPaddingFallback = hideAgentActions && (FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes'));
167
168
  return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
168
169
  xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
169
170
  }, /*#__PURE__*/React.createElement(AgentBanner, {
@@ -201,7 +202,8 @@ const AgentProfileCard = ({
201
202
  profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
202
203
  },
203
204
  isLoading: false,
204
- onCreatorLinkClick: () => {}
205
+ onCreatorLinkClick: () => {},
206
+ showCreatorNameWithoutLink: showCreatorNameWithoutLink
205
207
  }),
206
208
  starCountRender: null,
207
209
  agentDescription: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
@@ -158,6 +158,7 @@ export const AgentProfileCardResourced = props => {
158
158
  hideConversationStarters: true,
159
159
  hideAiDisclaimer: true,
160
160
  hideStarButton: props.hideStarButton,
161
+ showCreatorNameWithoutLink: props.showCreatorNameWithoutLink,
161
162
  footerComponent: props.footerComponent
162
163
  })));
163
164
  }
@@ -187,6 +188,7 @@ export const AgentProfileCardResourced = props => {
187
188
  hideConversationStarters: props.hideConversationStarters,
188
189
  hideAgentActions: props.hideAgentActions,
189
190
  hideStarButton: props.hideStarButton,
191
+ showCreatorNameWithoutLink: props.showCreatorNameWithoutLink,
190
192
  footerComponent: props.footerComponent
191
193
  }));
192
194
  };
@@ -2,7 +2,7 @@ var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  import { getPageTime } from './performance';
3
3
  export const PACKAGE_META_DATA = {
4
4
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
5
- packageVersion: (_process$env$_PACKAGE2 = "26.17.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
+ packageVersion: (_process$env$_PACKAGE2 = "26.18.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
6
6
  };
7
7
  const TEAM_SUBJECT = 'teamProfileCard';
8
8
  const USER_SUBJECT = 'profilecard';
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
19
19
  actionSubjectId,
20
20
  attributes: {
21
21
  packageName: "@atlaskit/profilecard",
22
- packageVersion: "26.17.1",
22
+ packageVersion: "26.18.0",
23
23
  ...attributes,
24
24
  firedAt: Math.round(getPageTime())
25
25
  }
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
4
4
  var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
5
5
  var addHeaders = function addHeaders(headers) {
6
6
  headers.append('atl-client-name', "@atlaskit/profilecard");
7
- headers.append('atl-client-version', "26.17.1");
7
+ headers.append('atl-client-version', "26.18.0");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
59
59
  headers.append('X-ExperimentalApi', 'teams-beta');
60
60
  headers.append('X-ExperimentalApi', 'team-members-beta');
61
61
  headers.append('atl-client-name', "@atlaskit/profilecard");
62
- headers.append('atl-client-version', "26.17.1");
62
+ headers.append('atl-client-version', "26.18.0");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -65,6 +65,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
65
65
  hideAgentActions = _ref$hideAgentActions === void 0 ? false : _ref$hideAgentActions,
66
66
  _ref$hideStarButton = _ref.hideStarButton,
67
67
  hideStarButton = _ref$hideStarButton === void 0 ? false : _ref$hideStarButton,
68
+ _ref$showCreatorNameW = _ref.showCreatorNameWithoutLink,
69
+ showCreatorNameWithoutLink = _ref$showCreatorNameW === void 0 ? false : _ref$showCreatorNameW,
68
70
  footerComponent = _ref.footerComponent;
69
71
  var _useAgentUrlActions = useAgentUrlActions({
70
72
  cloudId: cloudId || '',
@@ -201,11 +203,11 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
201
203
  // We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
202
204
  // They are actually the same, just different names.
203
205
  var isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
204
- var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
206
+ var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
205
207
  var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !hideAgentActions;
206
208
 
207
209
  // Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
208
- var needsBottomPaddingFallback = hideAgentActions && FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false);
210
+ var needsBottomPaddingFallback = hideAgentActions && (FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes'));
209
211
  return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
210
212
  xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
211
213
  }, /*#__PURE__*/React.createElement(AgentBanner, {
@@ -243,7 +245,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
243
245
  profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
244
246
  },
245
247
  isLoading: false,
246
- onCreatorLinkClick: function onCreatorLinkClick() {}
248
+ onCreatorLinkClick: function onCreatorLinkClick() {},
249
+ showCreatorNameWithoutLink: showCreatorNameWithoutLink
247
250
  }),
248
251
  starCountRender: null,
249
252
  agentDescription: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
@@ -211,6 +211,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
211
211
  hideConversationStarters: true,
212
212
  hideAiDisclaimer: true,
213
213
  hideStarButton: props.hideStarButton,
214
+ showCreatorNameWithoutLink: props.showCreatorNameWithoutLink,
214
215
  footerComponent: props.footerComponent
215
216
  })));
216
217
  }
@@ -240,6 +241,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
240
241
  hideConversationStarters: props.hideConversationStarters,
241
242
  hideAgentActions: props.hideAgentActions,
242
243
  hideStarButton: props.hideStarButton,
244
+ showCreatorNameWithoutLink: props.showCreatorNameWithoutLink,
243
245
  footerComponent: props.footerComponent
244
246
  }));
245
247
  };
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import { getPageTime } from './performance';
6
6
  export var PACKAGE_META_DATA = {
7
7
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
8
- packageVersion: (_process$env$_PACKAGE2 = "26.17.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
8
+ packageVersion: (_process$env$_PACKAGE2 = "26.18.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
9
9
  };
10
10
  var TEAM_SUBJECT = 'teamProfileCard';
11
11
  var USER_SUBJECT = 'profilecard';
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
24
24
  actionSubjectId: actionSubjectId,
25
25
  attributes: _objectSpread(_objectSpread({
26
26
  packageName: "@atlaskit/profilecard",
27
- packageVersion: "26.17.1"
27
+ packageVersion: "26.18.0"
28
28
  }, attributes), {}, {
29
29
  firedAt: Math.round(getPageTime())
30
30
  })
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type AgentProfileCardProps } from '../../types';
3
- declare const AgentProfileCard: ({ agent, isLoading, cloudId, email, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, hideAgentActions, hideStarButton, footerComponent, }: AgentProfileCardProps) => React.JSX.Element;
3
+ declare const AgentProfileCard: ({ agent, isLoading, cloudId, email, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, hideAgentActions, hideStarButton, showCreatorNameWithoutLink, footerComponent, }: AgentProfileCardProps) => React.JSX.Element;
4
4
  export default AgentProfileCard;
@@ -20,6 +20,8 @@ export type AgentProfileCardResourcedProps = {
20
20
  hideAgentActions?: boolean;
21
21
  /** Hide the favourite (star) button. Defaults to false (the star is shown). */
22
22
  hideStarButton?: boolean;
23
+ /** Render the creator/author as plain text with no link. Defaults to false. */
24
+ showCreatorNameWithoutLink?: boolean;
23
25
  /** Name shown in reduced card when user lacks permission */
24
26
  agentName?: string;
25
27
  /** Optional component rendered at the bottom of the agent profile card. */
@@ -343,6 +343,8 @@ export type AgentProfileCardProps = {
343
343
  hideAgentActions?: boolean;
344
344
  /** Hide the favourite (star) button. Defaults to false (the star is shown). */
345
345
  hideStarButton?: boolean;
346
+ /** Render the creator/author as plain text with no link. Defaults to false. */
347
+ showCreatorNameWithoutLink?: boolean;
346
348
  /** Optional component rendered at the bottom of the agent profile card. */
347
349
  footerComponent?: React.ReactNode;
348
350
  } & AgentActionsType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "26.17.2",
3
+ "version": "26.18.1",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/heading": "^7.0.0",
52
52
  "@atlaskit/icon": "^37.3.0",
53
53
  "@atlaskit/link": "5.0.0",
54
- "@atlaskit/lozenge": "^15.0.0",
54
+ "@atlaskit/lozenge": "^15.1.0",
55
55
  "@atlaskit/menu": "^10.0.0",
56
56
  "@atlaskit/modal-dialog": "^16.3.0",
57
57
  "@atlaskit/people-teams-ui-public": "^5.2.0",
@@ -59,8 +59,8 @@
59
59
  "@atlaskit/popup": "^6.0.0",
60
60
  "@atlaskit/primitives": "^22.2.0",
61
61
  "@atlaskit/react-compiler-gating": "^0.2.0",
62
- "@atlaskit/rovo-agent-components": "^8.3.0",
63
- "@atlaskit/rovo-triggers": "^10.11.0",
62
+ "@atlaskit/rovo-agent-components": "^8.6.0",
63
+ "@atlaskit/rovo-triggers": "^10.13.0",
64
64
  "@atlaskit/spinner": "^20.1.0",
65
65
  "@atlaskit/teams-app-config": "^2.2.0",
66
66
  "@atlaskit/teams-app-internal-analytics": "^2.3.0",
@@ -68,7 +68,7 @@
68
68
  "@atlaskit/teams-avatar": "^4.1.0",
69
69
  "@atlaskit/teams-public": "^2.7.0",
70
70
  "@atlaskit/theme": "^28.0.0",
71
- "@atlaskit/tmp-editor-statsig": "^147.0.0",
71
+ "@atlaskit/tmp-editor-statsig": "^148.0.0",
72
72
  "@atlaskit/tokens": "^16.7.0",
73
73
  "@atlaskit/tooltip": "^24.0.0",
74
74
  "@babel/runtime": "^7.0.0",
@@ -1,73 +0,0 @@
1
- /**
2
- * Structured MCP docs for `@atlaskit/profilecard`.
3
- */
4
-
5
- import path from 'path';
6
-
7
- import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
8
-
9
- import packageJson from './package.json';
10
-
11
- const packagePath = path.resolve(__dirname);
12
-
13
- const documentation: StructuredContentSource = {
14
- package: {
15
- package: '@atlaskit/profilecard',
16
- packagePath,
17
- packageJson,
18
- overview:
19
- 'A React component to display a card with user or team information. It includes support for interactive triggers and resourced cards.',
20
- },
21
- components: [
22
- {
23
- name: 'ProfileCard',
24
- description: 'A component for displaying user information in a card.',
25
- status: 'general-availability',
26
- import: {
27
- name: 'ProfileCard',
28
- package: '@atlaskit/profilecard',
29
- type: 'named',
30
- packagePath,
31
- packageJson,
32
- },
33
- usageGuidelines: [
34
- 'Use `ProfileCard` to show user details like name, avatar, and contact info.',
35
- ],
36
- keywords: ['profile', 'user', 'card'],
37
- categories: ['people-and-teams'],
38
- examples: [
39
- {
40
- name: 'Profile card',
41
- description: 'Basic usage of ProfileCard.',
42
- source: path.resolve(packagePath, './examples/01-profilecard.tsx'),
43
- },
44
- ],
45
- },
46
- {
47
- name: 'ProfileCardTrigger',
48
- description: 'A component that triggers a profile card on hover or click.',
49
- status: 'general-availability',
50
- import: {
51
- name: 'ProfileCardTrigger',
52
- package: '@atlaskit/profilecard',
53
- type: 'named',
54
- packagePath,
55
- packageJson,
56
- },
57
- usageGuidelines: [
58
- 'Use `ProfileCardTrigger` to wrap an element (like an avatar) that should show a profile card.',
59
- ],
60
- keywords: ['profile', 'trigger', 'hover'],
61
- categories: ['people-and-teams'],
62
- examples: [
63
- {
64
- name: 'Profile card trigger',
65
- description: 'Basic usage of ProfileCardTrigger.',
66
- source: path.resolve(packagePath, './examples/05-profilecard-trigger.tsx'),
67
- },
68
- ],
69
- },
70
- ],
71
- };
72
-
73
- export default documentation;