@atlaskit/profilecard 26.1.3 → 26.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 26.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`78de7992fee4c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/78de7992fee4c) -
8
+ Remove feature gate `enable_profilecard_text_truncation_tooltip`. Tooltip on truncated profile
9
+ card name and job title text is now always enabled.
10
+ - Updated dependencies
11
+
12
+ ## 26.1.4
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 26.1.3
4
19
 
5
20
  ### Patch Changes
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
11
11
  var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
12
12
  var addHeaders = function addHeaders(headers) {
13
13
  headers.append('atl-client-name', "@atlaskit/profilecard");
14
- headers.append('atl-client-version', "26.1.2");
14
+ headers.append('atl-client-version', "26.1.4");
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.2");
69
+ headers.append('atl-client-version', "26.1.4");
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 (0, _platformFeatureFlags.fg)('enable_profilecard_text_truncation_tooltip') ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
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)) : /*#__PURE__*/_react.default.createElement(_compiled.Box, {
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';
@@ -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
- }, (0, _platformFeatureFlags.fg)('enable_profilecard_text_truncation_tooltip') ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
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)) : /*#__PURE__*/_react.default.createElement(_compiled.Text, {
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.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
15
+ packageVersion: (_process$env$_PACKAGE2 = "26.1.4") !== 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.2"
34
+ packageVersion: "26.1.4"
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.2");
9
+ headers.append('atl-client-version', "26.1.4");
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.2");
81
+ headers.append('atl-client-version', "26.1.4");
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 fg('enable_profilecard_text_truncation_tooltip') ? /*#__PURE__*/React.createElement(Tooltip, {
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)) : /*#__PURE__*/React.createElement(Box, {
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
@@ -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
- }, fg('enable_profilecard_text_truncation_tooltip') ? /*#__PURE__*/React.createElement(Tooltip, {
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)) : /*#__PURE__*/React.createElement(Text, {
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.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
+ packageVersion: (_process$env$_PACKAGE2 = "26.1.4") !== 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.2",
22
+ packageVersion: "26.1.4",
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.2");
7
+ headers.append('atl-client-version', "26.1.4");
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.2");
62
+ headers.append('atl-client-version', "26.1.4");
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 fg('enable_profilecard_text_truncation_tooltip') ? /*#__PURE__*/React.createElement(Tooltip, {
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)) : /*#__PURE__*/React.createElement(Box, {
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';
@@ -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
- }, fg('enable_profilecard_text_truncation_tooltip') ? /*#__PURE__*/React.createElement(Tooltip, {
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)) : /*#__PURE__*/React.createElement(Text, {
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.2") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
8
+ packageVersion: (_process$env$_PACKAGE2 = "26.1.4") !== 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.2"
27
+ packageVersion: "26.1.4"
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",
3
+ "version": "26.1.5",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -47,7 +47,7 @@
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.0.0",
50
+ "@atlaskit/give-kudos": "^6.1.0",
51
51
  "@atlaskit/heading": "^6.0.0",
52
52
  "@atlaskit/icon": "^36.0.0",
53
53
  "@atlaskit/link": "4.0.0",
@@ -59,7 +59,7 @@
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.1.0",
62
+ "@atlaskit/rovo-triggers": "^9.2.0",
63
63
  "@atlaskit/spinner": "^20.0.0",
64
64
  "@atlaskit/teams-app-config": "^2.0.0",
65
65
  "@atlaskit/teams-app-internal-analytics": "^2.0.0",
@@ -67,7 +67,7 @@
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": "^108.4.0",
70
+ "@atlaskit/tmp-editor-statsig": "^109.1.0",
71
71
  "@atlaskit/tokens": "^14.0.0",
72
72
  "@atlaskit/tooltip": "^23.0.0",
73
73
  "@atlassian/studio-entry-link": "^1.1.0",
@@ -105,7 +105,7 @@
105
105
  "react-dom": "^18.2.0",
106
106
  "react-intl": "^6.6.2",
107
107
  "sinon": "^2.2.0",
108
- "typescript": "5.9.2",
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
  },