@atlaskit/profilecard 26.4.0 → 26.4.2

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 (35) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-example--default.png +0 -0
  3. package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-with-ai-disclaimer--default--rovo-display-ai-disclaimer-on-agent-profile-card-true.png +0 -0
  4. package/__tests__/vr-tests/__snapshots__/user-profilecard/alternate-actions--default.png +0 -0
  5. package/__tests__/vr-tests/__snapshots__/user-profilecard/app-user-profile--default.png +0 -0
  6. package/__tests__/vr-tests/__snapshots__/user-profilecard/best-case-profile--default.png +0 -0
  7. package/__tests__/vr-tests/__snapshots__/user-profilecard/bot-case-profile--default.png +0 -0
  8. package/__tests__/vr-tests/__snapshots__/user-profilecard/worst-case-profile--default.png +0 -0
  9. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  10. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  11. package/dist/cjs/components/Agent/AgentProfileCard.js +1 -2
  12. package/dist/cjs/components/User/ReportingLinesDetails.js +1 -3
  13. package/dist/cjs/styled/Card.js +1 -3
  14. package/dist/cjs/styled/UserTrigger.compiled.css +1 -2
  15. package/dist/cjs/styled/UserTrigger.js +1 -3
  16. package/dist/cjs/util/analytics.js +2 -2
  17. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  18. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  19. package/dist/es2019/components/Agent/AgentProfileCard.js +1 -2
  20. package/dist/es2019/components/User/ReportingLinesDetails.js +1 -3
  21. package/dist/es2019/styled/Card.js +1 -3
  22. package/dist/es2019/styled/UserTrigger.compiled.css +1 -2
  23. package/dist/es2019/styled/UserTrigger.js +1 -3
  24. package/dist/es2019/util/analytics.js +2 -2
  25. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  26. package/dist/esm/client/getTeamFromAGG.js +1 -1
  27. package/dist/esm/components/Agent/AgentProfileCard.js +1 -2
  28. package/dist/esm/components/User/ReportingLinesDetails.js +1 -3
  29. package/dist/esm/styled/Card.js +1 -3
  30. package/dist/esm/styled/UserTrigger.compiled.css +1 -2
  31. package/dist/esm/styled/UserTrigger.js +1 -3
  32. package/dist/esm/util/analytics.js +2 -2
  33. package/package.json +7 -10
  34. package/profilecard.docs.tsx +73 -0
  35. package/tsconfig.json +2 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 26.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 26.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`fdb6541658ba1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fdb6541658ba1) -
14
+ Cleans up FG enable_teams_t26_design_drop_core_experiences
15
+ - Updated dependencies
16
+
3
17
  ## 26.4.0
4
18
 
5
19
  ### Minor 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.3.1");
14
+ headers.append('atl-client-version', "26.4.1");
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.3.1");
69
+ headers.append('atl-client-version', "26.4.1");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -40,7 +40,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
40
40
  var styles = {
41
41
  detailWrapper: "_1q511ejb",
42
42
  avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
43
- cardContainerStylesDEPRECATED: "_2rko1mok _16qs130s _kqswh2mm",
44
43
  cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
45
44
  agentProfileInfoWrapper: "_18zrpxbi",
46
45
  conversationStartersWrapper: "_18zrutpp",
@@ -204,7 +203,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
204
203
  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);
205
204
  var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && (0, _platformFeatureFlags.fg)('issue_view_agent_discovery_fast_follows'));
206
205
  return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
207
- xcss: (0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
206
+ xcss: styles.cardContainerStyles
208
207
  }, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
209
208
  agentId: agent.id,
210
209
  agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
@@ -14,7 +14,6 @@ var _reactIntl = require("react-intl");
14
14
  var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
15
15
  var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
16
16
  var _css = require("@atlaskit/css");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _compiled = require("@atlaskit/primitives/compiled");
19
18
  var _messages = _interopRequireDefault(require("../../messages"));
20
19
  var _ReportingLines = require("../../styled/ReportingLines");
@@ -26,7 +25,6 @@ function getProfileHref(userId, profileUrl) {
26
25
  return profileUrl ? profileUrl + userId : undefined;
27
26
  }
28
27
  var styles = {
29
- reportingLinesButtonDEPRECATED: "_ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bfhksm61 _irr31dpa",
30
28
  reportingLinesButton: "_2rko1qi0 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bfhksm61 _irr31dpa",
31
29
  reportingLinesHeadingDefaultStyles: "_11c8i4vh _syazi7uo _k48p1pd9 _otyru2gc",
32
30
  reportingLinesHeadingStyles: "_otyrze3t"
@@ -90,7 +88,7 @@ var ReportingLinesDetails = function ReportingLinesDetails(props) {
90
88
  return onReportingLinksClick(manager, 'manager', getProfileHref(manager.accountIdentifier, reportingLinesProfileUrl));
91
89
  },
92
90
  isDisabled: !onReportingLinesClick,
93
- xcss: (0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.reportingLinesButton : styles.reportingLinesButtonDEPRECATED,
91
+ xcss: styles.reportingLinesButton,
94
92
  "aria-label": formatMessage(_messages.default.viewManagerProfile, {
95
93
  name: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.name
96
94
  })
@@ -12,7 +12,6 @@ require("./Card.compiled.css");
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _css = require("@atlaskit/css");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _compiled = require("@atlaskit/primitives/compiled");
17
16
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
18
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -32,7 +31,6 @@ var styles = {
32
31
  cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
33
32
  cardContainerActiveUser: "_1itkybvv",
34
33
  cardContainerDisabledUser: "_1itk1f11",
35
- cardContainerWithElevationDEPRECATED: "_2rko12b0 _16qs130s",
36
34
  cardContainerWithElevation: "_2rko1mok _16qs130s",
37
35
  detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
38
36
  detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
@@ -165,7 +163,7 @@ var CardContainer = exports.CardContainer = function CardContainer(_ref11) {
165
163
  isDisabledUser = _ref11.isDisabledUser,
166
164
  withoutElevation = _ref11.withoutElevation;
167
165
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
168
- xcss: (0, _css.cx)(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && ((0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerWithElevation : styles.cardContainerWithElevationDEPRECATED))
166
+ xcss: (0, _css.cx)(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
169
167
  }, children);
170
168
  };
171
169
  var DetailsLabel = exports.DetailsLabel = function DetailsLabel(_ref12) {
@@ -1,5 +1,4 @@
1
-
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bah1h6o{justify-content:center}
1
+ ._1bah1h6o{justify-content:center}
3
2
  ._1bsb1gwv{width:360px}
4
3
  ._1e0c1txw{display:flex}
5
4
  ._4cvr1h6o{align-items:center}
@@ -13,10 +13,8 @@ require("./UserTrigger.compiled.css");
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _css = require("@atlaskit/css");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _compiled = require("@atlaskit/primitives/compiled");
18
17
  var styles = {
19
- cardWrapperDEPRECATED: "_2rko12b0 _1bsb1gwv",
20
18
  cardWrapper: "_1bsb1gwv",
21
19
  spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm"
22
20
  };
@@ -27,7 +25,7 @@ var CardWrapper = exports.CardWrapper = function CardWrapper(_ref) {
27
25
  labelledBy = _ref.labelledBy,
28
26
  ariaLabel = _ref.ariaLabel;
29
27
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
30
- xcss: (0, _css.cx)((0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardWrapper : styles.cardWrapperDEPRECATED),
28
+ xcss: (0, _css.cx)(styles.cardWrapper),
31
29
  backgroundColor: 'elevation.surface.overlay',
32
30
  role: role,
33
31
  testId: testId,
@@ -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.3.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
15
+ packageVersion: (_process$env$_PACKAGE2 = "26.4.1") !== 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.3.1"
34
+ packageVersion: "26.4.1"
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.3.1");
9
+ headers.append('atl-client-version', "26.4.1");
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.3.1");
81
+ headers.append('atl-client-version', "26.4.1");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -25,7 +25,6 @@ import { messages } from './messages';
25
25
  const styles = {
26
26
  detailWrapper: "_1q511ejb",
27
27
  avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
28
- cardContainerStylesDEPRECATED: "_2rko1mok _16qs130s _kqswh2mm",
29
28
  cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
30
29
  agentProfileInfoWrapper: "_18zrpxbi",
31
30
  conversationStartersWrapper: "_18zrutpp",
@@ -154,7 +153,7 @@ const AgentProfileCard = ({
154
153
  const shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
155
154
  const shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
156
155
  return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
157
- xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
156
+ xcss: styles.cardContainerStyles
158
157
  }, /*#__PURE__*/React.createElement(AgentBanner, {
159
158
  agentId: agent.id,
160
159
  agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
@@ -6,7 +6,6 @@ import { FormattedMessage, useIntl } from 'react-intl';
6
6
  import Avatar from '@atlaskit/avatar';
7
7
  import AvatarGroup from '@atlaskit/avatar-group';
8
8
  import { cx } from '@atlaskit/css';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Box, Pressable } from '@atlaskit/primitives/compiled';
11
10
  import messages from '../../messages';
12
11
  import { ManagerName, ManagerSection, OffsetWrapper, ReportingLinesSection } from '../../styled/ReportingLines';
@@ -16,7 +15,6 @@ function getProfileHref(userId, profileUrl) {
16
15
  return profileUrl ? profileUrl + userId : undefined;
17
16
  }
18
17
  const styles = {
19
- reportingLinesButtonDEPRECATED: "_ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bfhksm61 _irr31dpa",
20
18
  reportingLinesButton: "_2rko1qi0 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bfhksm61 _irr31dpa",
21
19
  reportingLinesHeadingDefaultStyles: "_11c8i4vh _syazi7uo _k48p1pd9 _otyru2gc",
22
20
  reportingLinesHeadingStyles: "_otyrze3t"
@@ -76,7 +74,7 @@ const ReportingLinesDetails = props => {
76
74
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.managerSectionHeading)), /*#__PURE__*/React.createElement(OffsetWrapper, null, /*#__PURE__*/React.createElement(Pressable, {
77
75
  onClick: () => onReportingLinksClick(manager, 'manager', getProfileHref(manager.accountIdentifier, reportingLinesProfileUrl)),
78
76
  isDisabled: !onReportingLinesClick,
79
- xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.reportingLinesButton : styles.reportingLinesButtonDEPRECATED,
77
+ xcss: styles.reportingLinesButton,
80
78
  "aria-label": formatMessage(messages.viewManagerProfile, {
81
79
  name: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.name
82
80
  })
@@ -4,7 +4,6 @@ import "./Card.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useRef } from 'react';
6
6
  import { cx } from '@atlaskit/css';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { Box, Text } from '@atlaskit/primitives/compiled';
9
8
  import Tooltip from '@atlaskit/tooltip';
10
9
  const kudosButtonAnimationTransformationCompiled = null;
@@ -23,7 +22,6 @@ const styles = {
23
22
  cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
24
23
  cardContainerActiveUser: "_1itkybvv",
25
24
  cardContainerDisabledUser: "_1itk1f11",
26
- cardContainerWithElevationDEPRECATED: "_2rko12b0 _16qs130s",
27
25
  cardContainerWithElevation: "_2rko1mok _16qs130s",
28
26
  detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
29
27
  detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
@@ -140,7 +138,7 @@ export const CardContainer = ({
140
138
  isDisabledUser,
141
139
  withoutElevation
142
140
  }) => /*#__PURE__*/React.createElement(Box, {
143
- xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && (fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerWithElevation : styles.cardContainerWithElevationDEPRECATED))
141
+ xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
144
142
  }, children);
145
143
  export const DetailsLabel = ({
146
144
  children,
@@ -1,5 +1,4 @@
1
-
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bah1h6o{justify-content:center}
1
+ ._1bah1h6o{justify-content:center}
3
2
  ._1bsb1gwv{width:360px}
4
3
  ._1e0c1txw{display:flex}
5
4
  ._4cvr1h6o{align-items:center}
@@ -6,10 +6,8 @@ import "./UserTrigger.compiled.css";
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import React from 'react';
8
8
  import { cx } from '@atlaskit/css';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Box } from '@atlaskit/primitives/compiled';
11
10
  const styles = {
12
- cardWrapperDEPRECATED: "_2rko12b0 _1bsb1gwv",
13
11
  cardWrapper: "_1bsb1gwv",
14
12
  spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm"
15
13
  };
@@ -20,7 +18,7 @@ export const CardWrapper = ({
20
18
  labelledBy,
21
19
  ariaLabel
22
20
  }) => /*#__PURE__*/React.createElement(Box, {
23
- xcss: cx(fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardWrapper : styles.cardWrapperDEPRECATED),
21
+ xcss: cx(styles.cardWrapper),
24
22
  backgroundColor: 'elevation.surface.overlay',
25
23
  role: role,
26
24
  testId: testId,
@@ -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.3.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
+ packageVersion: (_process$env$_PACKAGE2 = "26.4.1") !== 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.3.1",
22
+ packageVersion: "26.4.1",
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.3.1");
7
+ headers.append('atl-client-version', "26.4.1");
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.3.1");
62
+ headers.append('atl-client-version', "26.4.1");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -31,7 +31,6 @@ import { messages } from './messages';
31
31
  var styles = {
32
32
  detailWrapper: "_1q511ejb",
33
33
  avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
34
- cardContainerStylesDEPRECATED: "_2rko1mok _16qs130s _kqswh2mm",
35
34
  cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
36
35
  agentProfileInfoWrapper: "_18zrpxbi",
37
36
  conversationStartersWrapper: "_18zrutpp",
@@ -195,7 +194,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
195
194
  var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
196
195
  var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
197
196
  return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
198
- xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
197
+ xcss: styles.cardContainerStyles
199
198
  }, /*#__PURE__*/React.createElement(AgentBanner, {
200
199
  agentId: agent.id,
201
200
  agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
@@ -9,7 +9,6 @@ import { FormattedMessage, useIntl } from 'react-intl';
9
9
  import Avatar from '@atlaskit/avatar';
10
10
  import AvatarGroup from '@atlaskit/avatar-group';
11
11
  import { cx } from '@atlaskit/css';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { Box, Pressable } from '@atlaskit/primitives/compiled';
14
13
  import messages from '../../messages';
15
14
  import { ManagerName, ManagerSection, OffsetWrapper, ReportingLinesSection } from '../../styled/ReportingLines';
@@ -19,7 +18,6 @@ function getProfileHref(userId, profileUrl) {
19
18
  return profileUrl ? profileUrl + userId : undefined;
20
19
  }
21
20
  var styles = {
22
- reportingLinesButtonDEPRECATED: "_ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bfhksm61 _irr31dpa",
23
21
  reportingLinesButton: "_2rko1qi0 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bfhksm61 _irr31dpa",
24
22
  reportingLinesHeadingDefaultStyles: "_11c8i4vh _syazi7uo _k48p1pd9 _otyru2gc",
25
23
  reportingLinesHeadingStyles: "_otyrze3t"
@@ -83,7 +81,7 @@ var ReportingLinesDetails = function ReportingLinesDetails(props) {
83
81
  return onReportingLinksClick(manager, 'manager', getProfileHref(manager.accountIdentifier, reportingLinesProfileUrl));
84
82
  },
85
83
  isDisabled: !onReportingLinesClick,
86
- xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.reportingLinesButton : styles.reportingLinesButtonDEPRECATED,
84
+ xcss: styles.reportingLinesButton,
87
85
  "aria-label": formatMessage(messages.viewManagerProfile, {
88
86
  name: (_manager$pii = manager.pii) === null || _manager$pii === void 0 ? void 0 : _manager$pii.name
89
87
  })
@@ -4,7 +4,6 @@ import "./Card.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useRef } from 'react';
6
6
  import { cx } from '@atlaskit/css';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { Box, Text } from '@atlaskit/primitives/compiled';
9
8
  import Tooltip from '@atlaskit/tooltip';
10
9
  var kudosButtonAnimationTransformationCompiled = null;
@@ -23,7 +22,6 @@ var styles = {
23
22
  cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
24
23
  cardContainerActiveUser: "_1itkybvv",
25
24
  cardContainerDisabledUser: "_1itk1f11",
26
- cardContainerWithElevationDEPRECATED: "_2rko12b0 _16qs130s",
27
25
  cardContainerWithElevation: "_2rko1mok _16qs130s",
28
26
  detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
29
27
  detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
@@ -156,7 +154,7 @@ export var CardContainer = function CardContainer(_ref11) {
156
154
  isDisabledUser = _ref11.isDisabledUser,
157
155
  withoutElevation = _ref11.withoutElevation;
158
156
  return /*#__PURE__*/React.createElement(Box, {
159
- xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && (fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerWithElevation : styles.cardContainerWithElevationDEPRECATED))
157
+ xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
160
158
  }, children);
161
159
  };
162
160
  export var DetailsLabel = function DetailsLabel(_ref12) {
@@ -1,5 +1,4 @@
1
-
2
- ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._1bah1h6o{justify-content:center}
1
+ ._1bah1h6o{justify-content:center}
3
2
  ._1bsb1gwv{width:360px}
4
3
  ._1e0c1txw{display:flex}
5
4
  ._4cvr1h6o{align-items:center}
@@ -6,10 +6,8 @@ import "./UserTrigger.compiled.css";
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import React from 'react';
8
8
  import { cx } from '@atlaskit/css';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Box } from '@atlaskit/primitives/compiled';
11
10
  var styles = {
12
- cardWrapperDEPRECATED: "_2rko12b0 _1bsb1gwv",
13
11
  cardWrapper: "_1bsb1gwv",
14
12
  spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm"
15
13
  };
@@ -20,7 +18,7 @@ export var CardWrapper = function CardWrapper(_ref) {
20
18
  labelledBy = _ref.labelledBy,
21
19
  ariaLabel = _ref.ariaLabel;
22
20
  return /*#__PURE__*/React.createElement(Box, {
23
- xcss: cx(fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardWrapper : styles.cardWrapperDEPRECATED),
21
+ xcss: cx(styles.cardWrapper),
24
22
  backgroundColor: 'elevation.surface.overlay',
25
23
  role: role,
26
24
  testId: testId,
@@ -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.3.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
8
+ packageVersion: (_process$env$_PACKAGE2 = "26.4.1") !== 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.3.1"
27
+ packageVersion: "26.4.1"
28
28
  }, attributes), {}, {
29
29
  firedAt: Math.round(getPageTime())
30
30
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "26.4.0",
3
+ "version": "26.4.2",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/atlassian-context": "^1.0.0",
43
43
  "@atlaskit/avatar": "^26.1.0",
44
44
  "@atlaskit/avatar-group": "^13.1.0",
45
- "@atlaskit/button": "^24.2.0",
45
+ "@atlaskit/button": "^24.3.0",
46
46
  "@atlaskit/css": "^1.0.0",
47
47
  "@atlaskit/dropdown-menu": "^17.1.0",
48
48
  "@atlaskit/empty-state": "^11.1.0",
@@ -57,10 +57,10 @@
57
57
  "@atlaskit/people-teams-ui-public": "^5.1.0",
58
58
  "@atlaskit/platform-feature-flags": "^2.0.0",
59
59
  "@atlaskit/popup": "^5.1.0",
60
- "@atlaskit/primitives": "^20.1.0",
60
+ "@atlaskit/primitives": "^20.2.0",
61
61
  "@atlaskit/react-compiler-gating": "^0.2.0",
62
- "@atlaskit/rovo-agent-components": "^7.1.0",
63
- "@atlaskit/rovo-triggers": "^9.3.0",
62
+ "@atlaskit/rovo-agent-components": "^7.2.0",
63
+ "@atlaskit/rovo-triggers": "^9.4.0",
64
64
  "@atlaskit/spinner": "^20.1.0",
65
65
  "@atlaskit/teams-app-config": "^2.1.0",
66
66
  "@atlaskit/teams-app-internal-analytics": "^2.2.0",
@@ -68,8 +68,8 @@
68
68
  "@atlaskit/teams-avatar": "^3.1.0",
69
69
  "@atlaskit/teams-public": "^2.2.0",
70
70
  "@atlaskit/theme": "^26.1.0",
71
- "@atlaskit/tmp-editor-statsig": "^114.0.0",
72
- "@atlaskit/tokens": "^15.1.0",
71
+ "@atlaskit/tmp-editor-statsig": "^115.0.0",
72
+ "@atlaskit/tokens": "^15.2.0",
73
73
  "@atlaskit/tooltip": "^23.1.0",
74
74
  "@atlassian/studio-entry-link": "^1.1.0",
75
75
  "@babel/runtime": "^7.0.0",
@@ -167,9 +167,6 @@
167
167
  "confluence_fix_agent_profile_card_flash": {
168
168
  "type": "boolean"
169
169
  },
170
- "enable_teams_t26_design_drop_core_experiences": {
171
- "type": "boolean"
172
- },
173
170
  "issue_view_agent_discovery_fast_follows": {
174
171
  "type": "boolean"
175
172
  },
@@ -0,0 +1,73 @@
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;
package/tsconfig.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "extends": "../../../tsconfig.json",
3
3
  "include": [
4
+ "./*.docs.tsx",
5
+ "./package.json",
4
6
  "./src/**/*.ts",
5
7
  "./src/**/*.tsx",
6
8
  "./docs/**/*.ts",