@atlaskit/profilecard 26.1.4 → 26.1.6
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 +18 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardDetails.js +2 -10
- package/dist/cjs/components/team-profile-card/main.js +2 -1
- package/dist/cjs/styled/Card.js +2 -6
- 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/User/ProfileCardDetails.js +2 -10
- package/dist/es2019/components/team-profile-card/main.js +2 -1
- package/dist/es2019/styled/Card.js +2 -6
- 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/User/ProfileCardDetails.js +2 -10
- package/dist/esm/components/team-profile-card/main.js +2 -1
- package/dist/esm/styled/Card.js +2 -6
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
|
|
8
|
+
Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
|
|
9
|
+
gating.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 26.1.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`78de7992fee4c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/78de7992fee4c) -
|
|
17
|
+
Remove feature gate `enable_profilecard_text_truncation_tooltip`. Tooltip on truncated profile
|
|
18
|
+
card name and job title text is now always enabled.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 26.1.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -115,6 +115,9 @@
|
|
|
115
115
|
{
|
|
116
116
|
"path": "../../../design-system/tooltip/afm-cc/tsconfig.json"
|
|
117
117
|
},
|
|
118
|
+
{
|
|
119
|
+
"path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
|
|
120
|
+
},
|
|
118
121
|
{
|
|
119
122
|
"path": "../../../studio-foundations/studio-entry-link/afm-cc/tsconfig.json"
|
|
120
123
|
}
|
|
@@ -115,6 +115,9 @@
|
|
|
115
115
|
{
|
|
116
116
|
"path": "../../../design-system/tooltip/afm-products/tsconfig.json"
|
|
117
117
|
},
|
|
118
|
+
{
|
|
119
|
+
"path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
|
|
120
|
+
},
|
|
118
121
|
{
|
|
119
122
|
"path": "../../../studio-foundations/studio-entry-link/afm-products/tsconfig.json"
|
|
120
123
|
}
|
|
@@ -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.1.
|
|
14
|
+
headers.append('atl-client-version', "26.1.5");
|
|
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.1.
|
|
69
|
+
headers.append('atl-client-version', "26.1.5");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -15,7 +15,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
15
15
|
var _react2 = require("@compiled/react");
|
|
16
16
|
var _reactIntl = require("react-intl");
|
|
17
17
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
20
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -41,7 +40,7 @@ var renderName = function renderName(nickname, fullName, meta, nameRef, isRender
|
|
|
41
40
|
var isNicknameRedundant = !nickname || nickname === fullName;
|
|
42
41
|
var shownNickname = " (".concat(nickname, ") ");
|
|
43
42
|
var displayName = isNicknameRedundant ? fullName : "".concat(fullName).concat(shownNickname);
|
|
44
|
-
return
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
45
44
|
content: displayName,
|
|
46
45
|
position: "top",
|
|
47
46
|
isScreenReaderAnnouncementDisabled: true,
|
|
@@ -59,14 +58,7 @@ var renderName = function renderName(nickname, fullName, meta, nameRef, isRender
|
|
|
59
58
|
testId: "profilecard-name",
|
|
60
59
|
id: "profilecard-name-label",
|
|
61
60
|
tabIndex: isTriggeredUsingKeyboard && isRenderedInPortal && (0, _expValEquals.expValEquals)('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? -1 : undefined
|
|
62
|
-
}, displayName))
|
|
63
|
-
ref: nameRef,
|
|
64
|
-
as: "h2",
|
|
65
|
-
xcss: (0, _react2.cx)(styles.fullNameLabel, styles.activeAccount, meta ? styles.metaLabel : styles.noMetaLabel),
|
|
66
|
-
testId: "profilecard-name",
|
|
67
|
-
id: "profilecard-name-label",
|
|
68
|
-
tabIndex: isTriggeredUsingKeyboard && isRenderedInPortal && (0, _expValEquals.expValEquals)('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? -1 : undefined
|
|
69
|
-
}, displayName);
|
|
61
|
+
}, displayName));
|
|
70
62
|
};
|
|
71
63
|
var disabledAccountDesc = function disabledAccountDesc(statusModifiedDate, disabledAccountMessage) {
|
|
72
64
|
var status = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'closed';
|
|
@@ -18,6 +18,7 @@ var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
|
|
|
18
18
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
19
19
|
var _linkItem = _interopRequireDefault(require("@atlaskit/menu/link-item"));
|
|
20
20
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
23
|
var _teamsAppInternalAnalytics = require("@atlaskit/teams-app-internal-analytics");
|
|
23
24
|
var _teamsAvatar = _interopRequireDefault(require("@atlaskit/teams-avatar"));
|
|
@@ -76,7 +77,7 @@ var TeamProfileCard = exports.TeamProfileCard = function TeamProfileCard(_ref) {
|
|
|
76
77
|
src: headerImageUrl,
|
|
77
78
|
xcss: styles.headerImageStyles,
|
|
78
79
|
testId: "profile-header-image",
|
|
79
|
-
alt:
|
|
80
|
+
alt: (0, _platformFeatureFlags.fg)('create_modernization_ga_fixes_drop_2') ? '' : 'team-header-image'
|
|
80
81
|
}), /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
81
82
|
space: "space.200",
|
|
82
83
|
xcss: styles.containerStyles
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -131,7 +131,7 @@ var JobTitleLabel = exports.JobTitleLabel = function JobTitleLabel(_ref1) {
|
|
|
131
131
|
var textRef = (0, _react.useRef)(null);
|
|
132
132
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
133
133
|
xcss: (0, _css.cx)(stylesCompiled.jobTitleLabel)
|
|
134
|
-
},
|
|
134
|
+
}, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
135
135
|
content: children,
|
|
136
136
|
position: "bottom",
|
|
137
137
|
isScreenReaderAnnouncementDisabled: true,
|
|
@@ -147,11 +147,7 @@ var JobTitleLabel = exports.JobTitleLabel = function JobTitleLabel(_ref1) {
|
|
|
147
147
|
maxLines: 1,
|
|
148
148
|
color: "color.text.inverse",
|
|
149
149
|
id: "profile-card-job-title-label-text"
|
|
150
|
-
}, children))
|
|
151
|
-
maxLines: 1,
|
|
152
|
-
color: "color.text.inverse",
|
|
153
|
-
id: "profile-card-job-title-label-text"
|
|
154
|
-
}, children));
|
|
150
|
+
}, children)));
|
|
155
151
|
};
|
|
156
152
|
var AppTitleLabel = exports.AppTitleLabel = function AppTitleLabel(_ref10) {
|
|
157
153
|
var children = _ref10.children;
|
|
@@ -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.1.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.1.5") !== 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.1.
|
|
34
|
+
packageVersion: "26.1.5"
|
|
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.1.
|
|
9
|
+
headers.append('atl-client-version', "26.1.5");
|
|
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.1.
|
|
81
|
+
headers.append('atl-client-version', "26.1.5");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -6,7 +6,6 @@ import React, { useRef } from 'react';
|
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import Lozenge from '@atlaskit/lozenge';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -30,7 +29,7 @@ const renderName = (nickname, fullName, meta, nameRef, isRenderedInPortal, isTri
|
|
|
30
29
|
const isNicknameRedundant = !nickname || nickname === fullName;
|
|
31
30
|
const shownNickname = ` (${nickname}) `;
|
|
32
31
|
const displayName = isNicknameRedundant ? fullName : `${fullName}${shownNickname}`;
|
|
33
|
-
return
|
|
32
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
34
33
|
content: displayName,
|
|
35
34
|
position: "top",
|
|
36
35
|
isScreenReaderAnnouncementDisabled: true,
|
|
@@ -48,14 +47,7 @@ const renderName = (nickname, fullName, meta, nameRef, isRenderedInPortal, isTri
|
|
|
48
47
|
testId: "profilecard-name",
|
|
49
48
|
id: "profilecard-name-label",
|
|
50
49
|
tabIndex: isTriggeredUsingKeyboard && isRenderedInPortal && expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? -1 : undefined
|
|
51
|
-
}, displayName))
|
|
52
|
-
ref: nameRef,
|
|
53
|
-
as: "h2",
|
|
54
|
-
xcss: cx(styles.fullNameLabel, styles.activeAccount, meta ? styles.metaLabel : styles.noMetaLabel),
|
|
55
|
-
testId: "profilecard-name",
|
|
56
|
-
id: "profilecard-name-label",
|
|
57
|
-
tabIndex: isTriggeredUsingKeyboard && isRenderedInPortal && expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? -1 : undefined
|
|
58
|
-
}, displayName);
|
|
50
|
+
}, displayName));
|
|
59
51
|
};
|
|
60
52
|
const disabledAccountDesc = (statusModifiedDate, disabledAccountMessage, status = 'closed') => {
|
|
61
53
|
// consumer does not want to use built-in message
|
|
@@ -9,6 +9,7 @@ import AvatarGroup from '@atlaskit/avatar-group';
|
|
|
9
9
|
import Heading from '@atlaskit/heading';
|
|
10
10
|
import LinkItem from '@atlaskit/menu/link-item';
|
|
11
11
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
13
14
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
14
15
|
import TeamAvatar from '@atlaskit/teams-avatar';
|
|
@@ -64,7 +65,7 @@ export const TeamProfileCard = ({
|
|
|
64
65
|
src: headerImageUrl,
|
|
65
66
|
xcss: styles.headerImageStyles,
|
|
66
67
|
testId: "profile-header-image",
|
|
67
|
-
alt:
|
|
68
|
+
alt: fg('create_modernization_ga_fixes_drop_2') ? '' : 'team-header-image'
|
|
68
69
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
69
70
|
space: "space.200",
|
|
70
71
|
xcss: styles.containerStyles
|
|
@@ -107,7 +107,7 @@ export const JobTitleLabel = ({
|
|
|
107
107
|
const textRef = useRef(null);
|
|
108
108
|
return /*#__PURE__*/React.createElement(Box, {
|
|
109
109
|
xcss: cx(stylesCompiled.jobTitleLabel)
|
|
110
|
-
},
|
|
110
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
111
111
|
content: children,
|
|
112
112
|
position: "bottom",
|
|
113
113
|
isScreenReaderAnnouncementDisabled: true,
|
|
@@ -123,11 +123,7 @@ export const JobTitleLabel = ({
|
|
|
123
123
|
maxLines: 1,
|
|
124
124
|
color: "color.text.inverse",
|
|
125
125
|
id: "profile-card-job-title-label-text"
|
|
126
|
-
}, children))
|
|
127
|
-
maxLines: 1,
|
|
128
|
-
color: "color.text.inverse",
|
|
129
|
-
id: "profile-card-job-title-label-text"
|
|
130
|
-
}, children));
|
|
126
|
+
}, children)));
|
|
131
127
|
};
|
|
132
128
|
export const AppTitleLabel = ({
|
|
133
129
|
children
|
|
@@ -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.1.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.1.5") !== 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.1.
|
|
22
|
+
packageVersion: "26.1.5",
|
|
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.1.
|
|
7
|
+
headers.append('atl-client-version', "26.1.5");
|
|
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.1.
|
|
62
|
+
headers.append('atl-client-version', "26.1.5");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -8,7 +8,6 @@ import React, { useRef } from 'react';
|
|
|
8
8
|
import { cx } from '@compiled/react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl';
|
|
10
10
|
import Lozenge from '@atlaskit/lozenge';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -32,7 +31,7 @@ var renderName = function renderName(nickname, fullName, meta, nameRef, isRender
|
|
|
32
31
|
var isNicknameRedundant = !nickname || nickname === fullName;
|
|
33
32
|
var shownNickname = " (".concat(nickname, ") ");
|
|
34
33
|
var displayName = isNicknameRedundant ? fullName : "".concat(fullName).concat(shownNickname);
|
|
35
|
-
return
|
|
34
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
36
35
|
content: displayName,
|
|
37
36
|
position: "top",
|
|
38
37
|
isScreenReaderAnnouncementDisabled: true,
|
|
@@ -50,14 +49,7 @@ var renderName = function renderName(nickname, fullName, meta, nameRef, isRender
|
|
|
50
49
|
testId: "profilecard-name",
|
|
51
50
|
id: "profilecard-name-label",
|
|
52
51
|
tabIndex: isTriggeredUsingKeyboard && isRenderedInPortal && expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? -1 : undefined
|
|
53
|
-
}, displayName))
|
|
54
|
-
ref: nameRef,
|
|
55
|
-
as: "h2",
|
|
56
|
-
xcss: cx(styles.fullNameLabel, styles.activeAccount, meta ? styles.metaLabel : styles.noMetaLabel),
|
|
57
|
-
testId: "profilecard-name",
|
|
58
|
-
id: "profilecard-name-label",
|
|
59
|
-
tabIndex: isTriggeredUsingKeyboard && isRenderedInPortal && expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? -1 : undefined
|
|
60
|
-
}, displayName);
|
|
52
|
+
}, displayName));
|
|
61
53
|
};
|
|
62
54
|
var disabledAccountDesc = function disabledAccountDesc(statusModifiedDate, disabledAccountMessage) {
|
|
63
55
|
var status = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'closed';
|
|
@@ -11,6 +11,7 @@ import AvatarGroup from '@atlaskit/avatar-group';
|
|
|
11
11
|
import Heading from '@atlaskit/heading';
|
|
12
12
|
import LinkItem from '@atlaskit/menu/link-item';
|
|
13
13
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
15
16
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
16
17
|
import TeamAvatar from '@atlaskit/teams-avatar';
|
|
@@ -67,7 +68,7 @@ export var TeamProfileCard = function TeamProfileCard(_ref) {
|
|
|
67
68
|
src: headerImageUrl,
|
|
68
69
|
xcss: styles.headerImageStyles,
|
|
69
70
|
testId: "profile-header-image",
|
|
70
|
-
alt:
|
|
71
|
+
alt: fg('create_modernization_ga_fixes_drop_2') ? '' : 'team-header-image'
|
|
71
72
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
72
73
|
space: "space.200",
|
|
73
74
|
xcss: styles.containerStyles
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -122,7 +122,7 @@ export var JobTitleLabel = function JobTitleLabel(_ref1) {
|
|
|
122
122
|
var textRef = useRef(null);
|
|
123
123
|
return /*#__PURE__*/React.createElement(Box, {
|
|
124
124
|
xcss: cx(stylesCompiled.jobTitleLabel)
|
|
125
|
-
},
|
|
125
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
126
126
|
content: children,
|
|
127
127
|
position: "bottom",
|
|
128
128
|
isScreenReaderAnnouncementDisabled: true,
|
|
@@ -138,11 +138,7 @@ export var JobTitleLabel = function JobTitleLabel(_ref1) {
|
|
|
138
138
|
maxLines: 1,
|
|
139
139
|
color: "color.text.inverse",
|
|
140
140
|
id: "profile-card-job-title-label-text"
|
|
141
|
-
}, children))
|
|
142
|
-
maxLines: 1,
|
|
143
|
-
color: "color.text.inverse",
|
|
144
|
-
id: "profile-card-job-title-label-text"
|
|
145
|
-
}, children));
|
|
141
|
+
}, children)));
|
|
146
142
|
};
|
|
147
143
|
export var AppTitleLabel = function AppTitleLabel(_ref10) {
|
|
148
144
|
var children = _ref10.children;
|
|
@@ -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.1.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.1.5") !== 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.1.
|
|
27
|
+
packageVersion: "26.1.5"
|
|
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.1.
|
|
3
|
+
"version": "26.1.6",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@atlaskit/dropdown-menu": "^17.0.0",
|
|
48
48
|
"@atlaskit/empty-state": "^11.0.0",
|
|
49
49
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
50
|
-
"@atlaskit/give-kudos": "^6.
|
|
50
|
+
"@atlaskit/give-kudos": "^6.1.0",
|
|
51
51
|
"@atlaskit/heading": "^6.0.0",
|
|
52
52
|
"@atlaskit/icon": "^36.0.0",
|
|
53
|
-
"@atlaskit/link": "4.0.
|
|
53
|
+
"@atlaskit/link": "4.0.1",
|
|
54
54
|
"@atlaskit/lozenge": "^14.0.0",
|
|
55
55
|
"@atlaskit/menu": "^9.0.0",
|
|
56
56
|
"@atlaskit/modal-dialog": "^16.0.0",
|
|
@@ -59,17 +59,18 @@
|
|
|
59
59
|
"@atlaskit/popup": "^5.0.0",
|
|
60
60
|
"@atlaskit/primitives": "^20.0.0",
|
|
61
61
|
"@atlaskit/rovo-agent-components": "^7.0.0",
|
|
62
|
-
"@atlaskit/rovo-triggers": "^9.
|
|
62
|
+
"@atlaskit/rovo-triggers": "^9.2.0",
|
|
63
63
|
"@atlaskit/spinner": "^20.0.0",
|
|
64
64
|
"@atlaskit/teams-app-config": "^2.0.0",
|
|
65
|
-
"@atlaskit/teams-app-internal-analytics": "^2.
|
|
65
|
+
"@atlaskit/teams-app-internal-analytics": "^2.1.0",
|
|
66
66
|
"@atlaskit/teams-app-internal-navigation": "^2.0.0",
|
|
67
67
|
"@atlaskit/teams-avatar": "^3.0.0",
|
|
68
68
|
"@atlaskit/teams-public": "^2.0.0",
|
|
69
69
|
"@atlaskit/theme": "^26.0.0",
|
|
70
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
71
|
-
"@atlaskit/tokens": "^
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^110.0.0",
|
|
71
|
+
"@atlaskit/tokens": "^15.0.0",
|
|
72
72
|
"@atlaskit/tooltip": "^23.0.0",
|
|
73
|
+
"@atlassian/react-compiler-gating": "^0.2.0",
|
|
73
74
|
"@atlassian/studio-entry-link": "^1.1.0",
|
|
74
75
|
"@babel/runtime": "^7.0.0",
|
|
75
76
|
"@compiled/react": "^0.20.0",
|
|
@@ -92,7 +93,6 @@
|
|
|
92
93
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
93
94
|
"@atlassian/platform-storybook-helpers": "^0.3.0",
|
|
94
95
|
"@atlassian/ptc-test-utils": "^0.13.0",
|
|
95
|
-
"@atlassian/react-compiler-gating": "workspace:^",
|
|
96
96
|
"@storybook/addon-actions": "^8.6.14",
|
|
97
97
|
"@storybook/test": "^8.6.14",
|
|
98
98
|
"@testing-library/react": "^16.3.0",
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
"loader-utils": "^1.1.0",
|
|
104
104
|
"react": "^18.2.0",
|
|
105
105
|
"react-dom": "^18.2.0",
|
|
106
|
-
"react-intl": "^
|
|
106
|
+
"react-intl": "^7.0.0",
|
|
107
107
|
"sinon": "^2.2.0",
|
|
108
|
-
"typescript": "5.9.
|
|
108
|
+
"typescript": "5.9.3",
|
|
109
109
|
"uid": "^0.0.2"
|
|
110
110
|
},
|
|
111
111
|
"keywords": [
|
|
@@ -145,9 +145,6 @@
|
|
|
145
145
|
"cover-header-image-team-profilecard": {
|
|
146
146
|
"type": "boolean"
|
|
147
147
|
},
|
|
148
|
-
"enable_profilecard_text_truncation_tooltip": {
|
|
149
|
-
"type": "boolean"
|
|
150
|
-
},
|
|
151
148
|
"people-teams-deprecate-profilecard-teams": {
|
|
152
149
|
"type": "boolean"
|
|
153
150
|
},
|
|
@@ -184,6 +181,9 @@
|
|
|
184
181
|
"teams_app_react_19_upgrade": {
|
|
185
182
|
"type": "boolean"
|
|
186
183
|
},
|
|
184
|
+
"create_modernization_ga_fixes_drop_2": {
|
|
185
|
+
"type": "boolean"
|
|
186
|
+
},
|
|
187
187
|
"fix_aria_attribute_violation_on_agent_card_trigger": {
|
|
188
188
|
"type": "boolean"
|
|
189
189
|
}
|