@atlaskit/profilecard 26.3.1 → 26.4.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 +26 -0
- package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-example--default.png +0 -0
- 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
- package/__tests__/vr-tests/__snapshots__/user-profilecard/alternate-actions--default.png +0 -0
- package/__tests__/vr-tests/__snapshots__/user-profilecard/app-user-profile--default.png +0 -0
- package/__tests__/vr-tests/__snapshots__/user-profilecard/best-case-profile--default.png +0 -0
- package/__tests__/vr-tests/__snapshots__/user-profilecard/bot-case-profile--default.png +0 -0
- package/__tests__/vr-tests/__snapshots__/user-profilecard/worst-case-profile--default.png +0 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +1 -2
- package/dist/cjs/components/User/ReportingLinesDetails.js +1 -3
- package/dist/cjs/styled/Card.js +1 -3
- package/dist/cjs/styled/UserTrigger.compiled.css +1 -2
- package/dist/cjs/styled/UserTrigger.js +1 -3
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +1 -2
- package/dist/es2019/components/User/ReportingLinesDetails.js +1 -3
- package/dist/es2019/styled/Card.js +1 -3
- package/dist/es2019/styled/UserTrigger.compiled.css +1 -2
- package/dist/es2019/styled/UserTrigger.js +1 -3
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +1 -2
- package/dist/esm/components/User/ReportingLinesDetails.js +1 -3
- package/dist/esm/styled/Card.js +1 -3
- package/dist/esm/styled/UserTrigger.compiled.css +1 -2
- package/dist/esm/styled/UserTrigger.js +1 -3
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +31 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fdb6541658ba1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fdb6541658ba1) -
|
|
8
|
+
Cleans up FG enable_teams_t26_design_drop_core_experiences
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 26.4.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`cd097a2111788`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd097a2111788) -
|
|
16
|
+
Republish packages depending on `@atlaskit/react-compiler-gating` so their published dependency
|
|
17
|
+
reference is updated to the renamed `@atlaskit/react-compiler-gating` scope.
|
|
18
|
+
|
|
19
|
+
The earlier rename of `@atlassian/react-compiler-gating` to `@atlaskit/react-compiler-gating` only
|
|
20
|
+
bumped the renamed package itself, so dependent packages were never republished and their
|
|
21
|
+
published versions still referenced the old `@atlassian/react-compiler-gating` name, which is not
|
|
22
|
+
available in the public npm registry. This minor bump republishes all affected packages with the
|
|
23
|
+
corrected dependency.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 26.3.1
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-example--default.png
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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.
|
|
14
|
+
headers.append('atl-client-version', "26.4.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.
|
|
69
|
+
headers.append('atl-client-version', "26.4.0");
|
|
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:
|
|
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:
|
|
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
|
})
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -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 &&
|
|
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) {
|
|
@@ -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)(
|
|
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.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.4.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.
|
|
34
|
+
packageVersion: "26.4.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.
|
|
9
|
+
headers.append('atl-client-version', "26.4.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.
|
|
81
|
+
headers.append('atl-client-version', "26.4.0");
|
|
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:
|
|
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:
|
|
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 &&
|
|
141
|
+
xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
|
|
144
142
|
}, children);
|
|
145
143
|
export const DetailsLabel = ({
|
|
146
144
|
children,
|
|
@@ -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(
|
|
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.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.4.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.
|
|
22
|
+
packageVersion: "26.4.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.
|
|
7
|
+
headers.append('atl-client-version', "26.4.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.
|
|
62
|
+
headers.append('atl-client-version', "26.4.0");
|
|
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:
|
|
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:
|
|
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
|
})
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -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 &&
|
|
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) {
|
|
@@ -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(
|
|
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.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.4.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.
|
|
27
|
+
packageVersion: "26.4.0"
|
|
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.
|
|
3
|
+
"version": "26.4.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,37 +40,37 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.166.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^1.0.0",
|
|
43
|
-
"@atlaskit/avatar": "^26.
|
|
44
|
-
"@atlaskit/avatar-group": "^13.
|
|
45
|
-
"@atlaskit/button": "^24.
|
|
43
|
+
"@atlaskit/avatar": "^26.1.0",
|
|
44
|
+
"@atlaskit/avatar-group": "^13.1.0",
|
|
45
|
+
"@atlaskit/button": "^24.3.0",
|
|
46
46
|
"@atlaskit/css": "^1.0.0",
|
|
47
|
-
"@atlaskit/dropdown-menu": "^17.
|
|
48
|
-
"@atlaskit/empty-state": "^11.
|
|
47
|
+
"@atlaskit/dropdown-menu": "^17.1.0",
|
|
48
|
+
"@atlaskit/empty-state": "^11.1.0",
|
|
49
49
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
50
|
-
"@atlaskit/give-kudos": "^6.
|
|
51
|
-
"@atlaskit/heading": "^6.
|
|
52
|
-
"@atlaskit/icon": "^36.
|
|
53
|
-
"@atlaskit/link": "4.0
|
|
54
|
-
"@atlaskit/lozenge": "^14.
|
|
55
|
-
"@atlaskit/menu": "^9.
|
|
56
|
-
"@atlaskit/modal-dialog": "^16.
|
|
57
|
-
"@atlaskit/people-teams-ui-public": "^5.
|
|
50
|
+
"@atlaskit/give-kudos": "^6.2.0",
|
|
51
|
+
"@atlaskit/heading": "^6.1.0",
|
|
52
|
+
"@atlaskit/icon": "^36.1.0",
|
|
53
|
+
"@atlaskit/link": "4.1.0",
|
|
54
|
+
"@atlaskit/lozenge": "^14.1.0",
|
|
55
|
+
"@atlaskit/menu": "^9.1.0",
|
|
56
|
+
"@atlaskit/modal-dialog": "^16.1.0",
|
|
57
|
+
"@atlaskit/people-teams-ui-public": "^5.1.0",
|
|
58
58
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
59
|
-
"@atlaskit/popup": "^5.
|
|
60
|
-
"@atlaskit/primitives": "^20.
|
|
59
|
+
"@atlaskit/popup": "^5.1.0",
|
|
60
|
+
"@atlaskit/primitives": "^20.2.0",
|
|
61
61
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
62
|
-
"@atlaskit/rovo-agent-components": "^7.
|
|
63
|
-
"@atlaskit/rovo-triggers": "^9.
|
|
64
|
-
"@atlaskit/spinner": "^20.
|
|
65
|
-
"@atlaskit/teams-app-config": "^2.
|
|
66
|
-
"@atlaskit/teams-app-internal-analytics": "^2.
|
|
67
|
-
"@atlaskit/teams-app-internal-navigation": "^2.
|
|
68
|
-
"@atlaskit/teams-avatar": "^3.
|
|
69
|
-
"@atlaskit/teams-public": "^2.
|
|
70
|
-
"@atlaskit/theme": "^26.
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^114.
|
|
72
|
-
"@atlaskit/tokens": "^15.
|
|
73
|
-
"@atlaskit/tooltip": "^23.
|
|
62
|
+
"@atlaskit/rovo-agent-components": "^7.1.0",
|
|
63
|
+
"@atlaskit/rovo-triggers": "^9.3.0",
|
|
64
|
+
"@atlaskit/spinner": "^20.1.0",
|
|
65
|
+
"@atlaskit/teams-app-config": "^2.1.0",
|
|
66
|
+
"@atlaskit/teams-app-internal-analytics": "^2.2.0",
|
|
67
|
+
"@atlaskit/teams-app-internal-navigation": "^2.1.0",
|
|
68
|
+
"@atlaskit/teams-avatar": "^3.1.0",
|
|
69
|
+
"@atlaskit/teams-public": "^2.2.0",
|
|
70
|
+
"@atlaskit/theme": "^26.1.0",
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^114.4.0",
|
|
72
|
+
"@atlaskit/tokens": "^15.2.0",
|
|
73
|
+
"@atlaskit/tooltip": "^23.1.0",
|
|
74
74
|
"@atlassian/studio-entry-link": "^1.1.0",
|
|
75
75
|
"@babel/runtime": "^7.0.0",
|
|
76
76
|
"@compiled/react": "^0.20.0",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@af/visual-regression": "workspace:^",
|
|
91
91
|
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
92
|
-
"@atlassian/feature-flags-storybook-utils": "^0.
|
|
92
|
+
"@atlassian/feature-flags-storybook-utils": "^0.5.0",
|
|
93
93
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
94
|
-
"@atlassian/platform-storybook-helpers": "^0.
|
|
94
|
+
"@atlassian/platform-storybook-helpers": "^0.4.0",
|
|
95
95
|
"@atlassian/ptc-test-utils": "^0.13.0",
|
|
96
|
-
"@atlassian/testing-library": "^0.
|
|
96
|
+
"@atlassian/testing-library": "^0.7.0",
|
|
97
97
|
"@storybook/addon-actions": "^8.6.14",
|
|
98
98
|
"@storybook/test": "^8.6.14",
|
|
99
99
|
"@testing-library/react": "^16.3.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
|
},
|