@atlaskit/profilecard 24.5.6 → 24.7.0
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 +2 -2
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardDetails.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.compiled.css +1 -0
- package/dist/cjs/components/User/ProfileCardTrigger.js +95 -7
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/da.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/es.js +1 -0
- package/dist/cjs/i18n/fi.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/hr.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/it.js +1 -0
- package/dist/cjs/i18n/ja.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +1 -0
- package/dist/cjs/i18n/nl.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/sl.js +1 -0
- package/dist/cjs/i18n/sr_RS.js +1 -0
- package/dist/cjs/i18n/sr_YR.js +1 -0
- package/dist/cjs/i18n/sv.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/styled/Card.compiled.css +2 -0
- package/dist/cjs/styled/Card.js +10 -3
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.compiled.css +1 -0
- package/dist/es2019/components/User/ProfileCardTrigger.js +91 -3
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sl.js +1 -0
- package/dist/es2019/i18n/sr_RS.js +1 -0
- package/dist/es2019/i18n/sr_YR.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/styled/Card.compiled.css +2 -0
- package/dist/es2019/styled/Card.js +10 -3
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/User/ProfileCardDetails.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.compiled.css +1 -0
- package/dist/esm/components/User/ProfileCardTrigger.js +95 -7
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sl.js +1 -0
- package/dist/esm/i18n/sr_RS.js +1 -0
- package/dist/esm/i18n/sr_YR.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/styled/Card.compiled.css +2 -0
- package/dist/esm/styled/Card.js +10 -3
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/i18n/cs.d.ts +1 -0
- package/dist/types/i18n/da.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/es.d.ts +1 -0
- package/dist/types/i18n/fi.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/hr.d.ts +1 -0
- package/dist/types/i18n/hu.d.ts +1 -0
- package/dist/types/i18n/it.d.ts +1 -0
- package/dist/types/i18n/ja.d.ts +1 -0
- package/dist/types/i18n/ko.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +1 -0
- package/dist/types/i18n/nl.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/sl.d.ts +1 -0
- package/dist/types/i18n/sr_RS.d.ts +1 -0
- package/dist/types/i18n/sr_YR.d.ts +1 -0
- package/dist/types/i18n/sv.d.ts +1 -0
- package/dist/types/i18n/th.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +1 -0
- package/dist/types-ts4.5/i18n/da.d.ts +1 -0
- package/dist/types-ts4.5/i18n/de.d.ts +1 -0
- package/dist/types-ts4.5/i18n/es.d.ts +1 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/hr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -0
- package/dist/types-ts4.5/i18n/it.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -0
- package/dist/types-ts4.5/i18n/sl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +1 -0
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +1 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +1 -0
- package/dist/types-ts4.5/i18n/th.d.ts +1 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -0
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`8bbfda161707b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8bbfda161707b) -
|
|
8
|
+
Changed profile card positioning strategy from fixed to absolute
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 24.6.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`1e2d911a9c67a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1e2d911a9c67a) -
|
|
19
|
+
fix conflict between hide delay and isVisible
|
|
20
|
+
|
|
3
21
|
## 24.5.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -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', "24.
|
|
14
|
+
headers.append('atl-client-version', "24.6.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -65,7 +65,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
65
65
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
66
66
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
67
67
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
68
|
-
headers.append('atl-client-version', "24.
|
|
68
|
+
headers.append('atl-client-version', "24.6.0");
|
|
69
69
|
return headers;
|
|
70
70
|
};
|
|
71
71
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -43,7 +43,7 @@ var renderName = function renderName(nickname, fullName, meta) {
|
|
|
43
43
|
var displayName = isNicknameRedundant ? fullName : "".concat(fullName).concat(shownNickname);
|
|
44
44
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
45
45
|
as: "h2",
|
|
46
|
-
xcss: (0, _react2.cx)(styles.fullNameLabel, styles.activeAccount, meta ? (0, _platformFeatureFlags.fg)('platform_editor_profilecard_style_fix') ? styles.metaLabelWithHighSpecificity : styles.metaLabel : (0, _platformFeatureFlags.fg)('platform_editor_profilecard_style_fix') ? styles.noMetaLabelWithHighSpecificity : styles.noMetaLabel),
|
|
46
|
+
xcss: (0, _react2.cx)(styles.fullNameLabel, styles.activeAccount, meta ? (0, _platformFeatureFlags.fg)('platform_editor_profilecard_style_fix') || (0, _platformFeatureFlags.fg)('enable_absolute_positioning_profile_card') ? styles.metaLabelWithHighSpecificity : styles.metaLabel : (0, _platformFeatureFlags.fg)('platform_editor_profilecard_style_fix') || (0, _platformFeatureFlags.fg)('enable_absolute_positioning_profile_card') ? styles.noMetaLabelWithHighSpecificity : styles.noMetaLabel),
|
|
47
47
|
testId: "profilecard-name",
|
|
48
48
|
id: "profilecard-name-label"
|
|
49
49
|
}, displayName);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._m5ny16oo #profile-card-trigger-popup-wrapper{z-index:510}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* ProfileCardTrigger.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -6,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.default = ProfilecardTriggerNext;
|
|
10
|
+
require("./ProfileCardTrigger.compiled.css");
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
13
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -19,6 +22,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
19
22
|
var _giveKudos = require("@atlaskit/give-kudos");
|
|
20
23
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
24
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
25
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
26
|
var _constants = require("@atlaskit/theme/constants");
|
|
23
27
|
var _filterActions = _interopRequireDefault(require("../../internal/filterActions"));
|
|
24
28
|
var _getLabelMessage = _interopRequireDefault(require("../../internal/getLabelMessage"));
|
|
@@ -29,10 +33,15 @@ var _AgentProfileCardResourced = require("../Agent/AgentProfileCardResourced");
|
|
|
29
33
|
var _lazyProfileCard = require("./lazyProfileCard");
|
|
30
34
|
var _UserLoadingState = _interopRequireDefault(require("./UserLoadingState"));
|
|
31
35
|
var _excluded = ["ref"],
|
|
32
|
-
_excluded2 = ["aria-expanded", "aria-haspopup"]
|
|
36
|
+
_excluded2 = ["aria-expanded", "aria-haspopup"],
|
|
37
|
+
_excluded3 = ["ref"],
|
|
38
|
+
_excluded4 = ["aria-expanded", "aria-haspopup"];
|
|
33
39
|
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); }
|
|
34
40
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35
41
|
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; }
|
|
42
|
+
var styles = {
|
|
43
|
+
profileCardTrigger: "_m5ny16oo"
|
|
44
|
+
};
|
|
36
45
|
function ProfileCardContent(_ref) {
|
|
37
46
|
var profilecardProps = _ref.profilecardProps,
|
|
38
47
|
userId = _ref.userId,
|
|
@@ -101,14 +110,15 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
101
110
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
102
111
|
formatMessage = _useIntl.formatMessage;
|
|
103
112
|
var isMounted = (0, _react.useRef)(false);
|
|
104
|
-
var showDelay = trigger === 'click' || propsIsVisible && (0, _platformFeatureFlags.fg)('fix_profilecard_trigger_isvisible') ? 0 : customShowDelay !== null && customShowDelay !== void 0 ? customShowDelay : _config.DELAY_MS_SHOW;
|
|
105
|
-
var hideDelay = trigger === 'click' || propsIsVisible && (0, _platformFeatureFlags.fg)('fix_profilecard_trigger_isvisible') ? 0 : customHideDelay !== null && customHideDelay !== void 0 ? customHideDelay : _config.DELAY_MS_HIDE;
|
|
106
|
-
var showTimer = (0, _react.useRef)(0);
|
|
107
|
-
var hideTimer = (0, _react.useRef)(0);
|
|
108
113
|
var _useState = (0, _react.useState)(false),
|
|
109
114
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
110
115
|
visible = _useState2[0],
|
|
111
116
|
setVisible = _useState2[1];
|
|
117
|
+
var showTimer = (0, _react.useRef)(0);
|
|
118
|
+
var hideTimer = (0, _react.useRef)(0);
|
|
119
|
+
var isExternalControl = propsIsVisible !== undefined && propsIsVisible !== visible;
|
|
120
|
+
var showDelay = trigger === 'click' || isExternalControl && (0, _platformFeatureFlags.fg)('fix_profilecard_trigger_isvisible') ? 0 : customShowDelay !== null && customShowDelay !== void 0 ? customShowDelay : _config.DELAY_MS_SHOW;
|
|
121
|
+
var hideDelay = trigger === 'click' || isExternalControl && (0, _platformFeatureFlags.fg)('fix_profilecard_trigger_isvisible') ? 0 : customHideDelay !== null && customHideDelay !== void 0 ? customHideDelay : _config.DELAY_MS_HIDE;
|
|
112
122
|
var _useState3 = (0, _react.useState)(undefined),
|
|
113
123
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
114
124
|
isLoading = _useState4[0],
|
|
@@ -350,6 +360,84 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
350
360
|
var ssrPlaceholderProp = (0, _platformFeatureFlags.fg)('cc_mention_ssr_placeholder') ? {
|
|
351
361
|
'data-ssr-placeholder-replace': ssrPlaceholderId
|
|
352
362
|
} : {};
|
|
363
|
+
if ((0, _platformFeatureFlags.fg)('enable_absolute_positioning_profile_card')) {
|
|
364
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
365
|
+
xcss: styles.profileCardTrigger
|
|
366
|
+
}, /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
367
|
+
isOpen: !!visible,
|
|
368
|
+
onClose: function onClose(event) {
|
|
369
|
+
hideProfilecard();
|
|
370
|
+
handleKeyboardClose(event);
|
|
371
|
+
},
|
|
372
|
+
placement: position,
|
|
373
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
374
|
+
content: function content() {
|
|
375
|
+
return /*#__PURE__*/_react.default.createElement("div", wrapperProps, showLoading ? /*#__PURE__*/_react.default.createElement(LoadingView, {
|
|
376
|
+
fireAnalytics: fireAnalytics
|
|
377
|
+
}) : visible && /*#__PURE__*/_react.default.createElement(ProfileCardContent, {
|
|
378
|
+
profilecardProps: profilecardProps,
|
|
379
|
+
isAgent: !!(data !== null && data !== void 0 && data.isAgent),
|
|
380
|
+
userId: userId,
|
|
381
|
+
cloudId: cloudId,
|
|
382
|
+
resourceClient: resourceClient,
|
|
383
|
+
viewingUserId: viewingUserId,
|
|
384
|
+
trigger: trigger,
|
|
385
|
+
product: product,
|
|
386
|
+
profileCardAction: filterActions(),
|
|
387
|
+
errorType: error,
|
|
388
|
+
hasError: hasError,
|
|
389
|
+
agentActions: agentActions,
|
|
390
|
+
addFlag: addFlag
|
|
391
|
+
}));
|
|
392
|
+
},
|
|
393
|
+
trigger: function trigger(triggerProps) {
|
|
394
|
+
var callbackRef = triggerProps.ref,
|
|
395
|
+
innerProps = (0, _objectWithoutProperties2.default)(triggerProps, _excluded);
|
|
396
|
+
var ref = function ref(element) {
|
|
397
|
+
triggerRef.current = element;
|
|
398
|
+
if (typeof callbackRef === 'function') {
|
|
399
|
+
callbackRef(element);
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
var _ = innerProps['aria-expanded'],
|
|
403
|
+
__ = innerProps['aria-haspopup'],
|
|
404
|
+
restInnerProps = (0, _objectWithoutProperties2.default)(innerProps, _excluded2);
|
|
405
|
+
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, disabledAriaAttributes ? restInnerProps : triggerProps, containerListeners, {
|
|
406
|
+
ref: ref,
|
|
407
|
+
"data-testid": testId
|
|
408
|
+
}, !ariaHideProfileTrigger && {
|
|
409
|
+
'aria-labelledby': ariaLabelledBy
|
|
410
|
+
}, disabledAriaAttributes ? {} : {
|
|
411
|
+
role: 'button',
|
|
412
|
+
// aria-hidden cannot contain focusable elements: https://dequeuniversity.com/rules/axe/3.5/aria-hidden-focus
|
|
413
|
+
tabIndex: ariaHideProfileTrigger ? -1 : 0,
|
|
414
|
+
'aria-label': ariaHideProfileTrigger ? undefined : (0, _getLabelMessage.default)(ariaLabel, profilecardProps.fullName, formatMessage)
|
|
415
|
+
}, ariaHideProfileTrigger && {
|
|
416
|
+
'aria-hidden': 'true'
|
|
417
|
+
}, ssrPlaceholderProp), children);
|
|
418
|
+
},
|
|
419
|
+
zIndex: _constants.layers.modal(),
|
|
420
|
+
shouldUseCaptureOnOutsideClick: true,
|
|
421
|
+
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click',
|
|
422
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card') || (0, _platformFeatureFlags.fg)('enable_absolute_positioning_profile_card'),
|
|
423
|
+
shouldDisableFocusLock: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card') || (0, _platformFeatureFlags.fg)('enable_absolute_positioning_profile_card'),
|
|
424
|
+
strategy: "absolute",
|
|
425
|
+
id: "profile-card-trigger-popup-wrapper"
|
|
426
|
+
})), shouldShowGiveKudos && teamCentralBaseUrl && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
427
|
+
fallback: null
|
|
428
|
+
}, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
|
|
429
|
+
isOpen: kudosDrawerOpen,
|
|
430
|
+
recipient: {
|
|
431
|
+
type: _giveKudos.KudosType.INDIVIDUAL,
|
|
432
|
+
recipientId: userId
|
|
433
|
+
},
|
|
434
|
+
analyticsSource: "profile-card",
|
|
435
|
+
teamCentralBaseUrl: teamCentralBaseUrl,
|
|
436
|
+
cloudId: cloudId,
|
|
437
|
+
addFlag: addFlag,
|
|
438
|
+
onClose: closeKudosDrawer
|
|
439
|
+
})));
|
|
440
|
+
}
|
|
353
441
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
354
442
|
isOpen: !!visible,
|
|
355
443
|
onClose: function onClose(event) {
|
|
@@ -379,7 +467,7 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
379
467
|
},
|
|
380
468
|
trigger: function trigger(triggerProps) {
|
|
381
469
|
var callbackRef = triggerProps.ref,
|
|
382
|
-
innerProps = (0, _objectWithoutProperties2.default)(triggerProps,
|
|
470
|
+
innerProps = (0, _objectWithoutProperties2.default)(triggerProps, _excluded3);
|
|
383
471
|
var ref = function ref(element) {
|
|
384
472
|
triggerRef.current = element;
|
|
385
473
|
if (typeof callbackRef === 'function') {
|
|
@@ -388,7 +476,7 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
388
476
|
};
|
|
389
477
|
var _ = innerProps['aria-expanded'],
|
|
390
478
|
__ = innerProps['aria-haspopup'],
|
|
391
|
-
restInnerProps = (0, _objectWithoutProperties2.default)(innerProps,
|
|
479
|
+
restInnerProps = (0, _objectWithoutProperties2.default)(innerProps, _excluded4);
|
|
392
480
|
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, disabledAriaAttributes ? restInnerProps : triggerProps, containerListeners, {
|
|
393
481
|
ref: ref,
|
|
394
482
|
"data-testid": testId
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Účet uživatele byl deaktivován tento týden.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Účet uživatele byl deaktivován.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Více',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Další akce položky {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Další informace o tomto týmu',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Přímí nadřízení',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Zkusit znovu',
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Personens konto blev deaktiveret i denne uge.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Personens konto er blevet deaktiveret.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Mere',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Flere handlinger for {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Flere oplysninger om dette team',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Direkte underordnede',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Prøv igen',
|
package/dist/cjs/i18n/de.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Das Konto dieser Person wurde diese Woche deaktiviert.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Das Konto dieser Person wurde deaktiviert.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Mehr',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Weitere Aktionen für {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Weitere Informationen zu diesem Team',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Direkt unterstellt',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Versuchen Sie es erneut.',
|
package/dist/cjs/i18n/es.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Su cuenta se ha desactivado esta semana.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Su cuenta está desactivada.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Más',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Más acciones para {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Más información sobre este equipo',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Subordinados directos',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Volver a intentarlo',
|
package/dist/cjs/i18n/fi.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Hänen tilinsä poistettiin käytöstä tällä viikolla.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Hänen tilinsä on poistettu käytöstä.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Lisää',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Lisää toimintoja asiakaspalvelijalle {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Lisätietoja tästä tiimistä',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Suorat alaiset',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Yritä uudelleen',
|
package/dist/cjs/i18n/fr.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Son compte a été désactivé cette semaine.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Son compte a été désactivé.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Plus',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': "Plus d'actions pour {fullName}",
|
|
57
58
|
'pt.team-profile-card.aria-label': 'En savoir plus sur cette équipe',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Collaborateurs directs',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Réessayez',
|
package/dist/cjs/i18n/hr.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Njegov račun je deaktiviran ovaj tjedan.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Njegov račun je deaktiviran.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Više',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Još radnji za agenta {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Više informacija o ovom timu',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Izravni izvještaji',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Pokušaj ponovno',
|
package/dist/cjs/i18n/hu.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'A fiókját ezen a héten inaktiváltuk.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'A fiókját inaktiváltuk.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Továbbiak',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'További műveletek a következőhöz: {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'További információ erről a csapatról',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Közvetlen beosztottak',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Próbáld újra',
|
package/dist/cjs/i18n/it.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Il suo account è stato disattivato questa settimana.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Il suo account è stato disattivato.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Altro',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Altre azioni per {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Ulteriori informazioni su questo team',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Report diretti',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Riprova',
|
package/dist/cjs/i18n/ja.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'アカウントは今週無効になりました。',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'アカウントは無効になっています。',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'その他',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName} のその他のアクション',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'このチームに関する詳細情報',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': '直属の部下',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': '再試行',
|
package/dist/cjs/i18n/ko.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': '계정이 이번 주에 비활성화되었습니다.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': '계정이 비활성화되었습니다.',
|
|
56
56
|
'pt.profile-card.more-icon-label': '더 보기',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName}에 대한 더 많은 작업 보기',
|
|
57
58
|
'pt.team-profile-card.aria-label': '이 팀에 대한 추가 정보',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': '부하 직원',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': '다시 시도',
|
package/dist/cjs/i18n/nb.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Vedkommendes konto ble deaktivert denne uken.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Vedkommendes konto er deaktivert.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Mer',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Flere handlinger for {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Mer informasjon om dette teamet',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Direkte underordnede',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Prøv på nytt',
|
package/dist/cjs/i18n/nl.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Zijn/haar account is deze week gedeactiveerd.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Zijn/haar account is gedeactiveerd.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Meer',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Meer acties voor {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Meer informatie over dit team',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Directe rapporten',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Opnieuw proberen',
|
package/dist/cjs/i18n/pl.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Jej konto zostało zdezaktywowane w tym tygodniu.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Jej konto zostało zdezaktywowane pomyślnie.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Więcej',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Więcej czynności dla {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Więcej informacji o tym zespole',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Bezpośredni podwładni',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Spróbuj ponownie',
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'A conta do usuário foi desativada nesta semana.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'A conta do usuário foi desativada.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Mais',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Mais ações para {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Mais informações sobre esta equipe',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Relatórios diretos',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Tentar novamente',
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Его аккаунт был отключен на этой неделе.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Его аккаунт был отключен.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Еще',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName}: другие действия',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Дополнительные сведения о команде',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Прямые подчиненные',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Повторить попытку',
|
package/dist/cjs/i18n/sl.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Račun tega uporabnika je bil deaktiviran ta teden.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Račun tega uporabnika je bil deaktiviran.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Več',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Več dejanj za {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Več informacij o tej ekipi',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Neposredno podrejeni',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Poskusi znova',
|
package/dist/cjs/i18n/sr_RS.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Nalog korisnika je deaktiviran ove nedelje.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Nalog korisnika je deaktiviran.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Još',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Više radnji za {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Više informacija o ovom timu',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Direktni izveštaji',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Probajte ponovo',
|
package/dist/cjs/i18n/sr_YR.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Налог корисника је деактивиран ове недеље.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Налог корисника је деактивиран.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Још',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Више радњи за {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Више информација о овом тиму',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Директни извештаји',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Пробај поново',
|
package/dist/cjs/i18n/sv.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Personens konto inaktiverades den här veckan.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Personens konto har inaktiverats.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Mer',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Fler åtgärder för {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Mer information om teamet',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Direkt underordnade',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Försök igen',
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'บัญชีของผู้ใช้ถูกปิดใช้งานไปแล้วในสัปดาห์นี้',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'บัญชีของผู้ใช้ถูกปิดใช้งานไปแล้ว',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'เพิ่มเติม',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'การดำเนินการเพิ่มเติมสำหรับ {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'ข้อมูลเพิ่มเติมเกี่ยวกับทีมนี้',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'รายงานโดยตรง',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'ลองอีกครั้ง',
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Bu kullanıcının hesabı bu hafta devre dışı bırakıldı.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Bu kullanıcının hesabı devre dışı bırakıldı.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Daha fazlası',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName} için daha fazla işlem',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Bu takım hakkında daha fazla bilgi',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Astlar',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Yeniden deneyin',
|
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Обліковий запис користувача деактивовано цього тижня.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Обліковий запис користувача деактивовано.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Більше варіантів',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Інші дії для агента {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Докладніше про цю команду',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Безпосередні підлеглі',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Повторіть спробу',
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': 'Tài khoản của họ đã bị hủy kích hoạt trong tuần này.',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': 'Tài khoản của họ đã bị hủy kích hoạt.',
|
|
56
56
|
'pt.profile-card.more-icon-label': 'Khác',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': 'Thao tác khác đối với {fullName}',
|
|
57
58
|
'pt.team-profile-card.aria-label': 'Thông tin khác về đội ngũ này',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': 'Báo cáo trực tiếp',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': 'Thử lại',
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': '他们的帐户本周已被停用。',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': '他们的帐户已被停用。',
|
|
56
56
|
'pt.profile-card.more-icon-label': '更多',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': '针对 "{fullName}" 的更多操作',
|
|
57
58
|
'pt.team-profile-card.aria-label': '有关此团队的更多信息',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': '直接下属',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': '请重试',
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -54,6 +54,7 @@ var _default = exports.default = {
|
|
|
54
54
|
'pt.profile-card.inactive.account.has.date.this.week': '其帳戶在本週已停用。',
|
|
55
55
|
'pt.profile-card.inactive.account.no.date': '其帳戶已停用。',
|
|
56
56
|
'pt.profile-card.more-icon-label': '更多',
|
|
57
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName} 的更多動作',
|
|
57
58
|
'pt.team-profile-card.aria-label': '有關此團隊的更多資訊',
|
|
58
59
|
'pt.team-profile-card.directReports.heading': '直接報告',
|
|
59
60
|
'pt.team-profile-card.error.refresh-button': '再試一次',
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
26
26
|
._1bah1y6m{justify-content:flex-start}
|
|
27
27
|
._1bahesu3{justify-content:flex-end}
|
|
28
|
+
._1br315cr >#profile-card-job-title-label-text{color:var(--ds-text-inverse,#fff)}
|
|
28
29
|
._1bsb18pt{width:228px}
|
|
29
30
|
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
30
31
|
._1bsb1w81{width:150px}
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
._1ltvze3t{left:var(--ds-space-0,0)}
|
|
44
45
|
._1n261g80{flex-wrap:wrap}
|
|
45
46
|
._1o9zidpf{flex-shrink:0}
|
|
47
|
+
._1oqb1gjq#profile-card-action-button-group span{color:var(--ds-text-subtle,#44546f)}
|
|
46
48
|
._1pby1mrw{z-index:-1}
|
|
47
49
|
._1reo15vq{overflow-x:hidden}
|
|
48
50
|
._1tkebv7e{min-height:136px}
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -11,6 +11,7 @@ require("./Card.compiled.css");
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _css = require("@atlaskit/css");
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
16
|
var kudosButtonAnimationTransformationCompiled = null;
|
|
16
17
|
var styles = {
|
|
@@ -39,6 +40,10 @@ var styles = {
|
|
|
39
40
|
jobTitleLabel: "_19pkze3t _otyrze3t _18u0utpp _2hwxze3t",
|
|
40
41
|
appTitleLabel: "_2rkoglpi _syaz1fxt _u5f312x7 _19bv12x7 _1bsb1ns9 _19pk1b66 _otyrze3t _18u0utpp _2hwxze3t"
|
|
41
42
|
};
|
|
43
|
+
var stylesCompiled = {
|
|
44
|
+
jobTitleLabel: "_19pkze3t _otyrze3t _18u0utpp _2hwxze3t _1br315cr",
|
|
45
|
+
actionButtonGroup: "_zulp12x7 _uiztglyw _19pkpxbi _2hwxze3t _18u0ze3t _otyrze3t _y3gnusic _1bahesu3 _1e0c1txw _1oqb1gjq"
|
|
46
|
+
};
|
|
42
47
|
var ProfileImage = exports.ProfileImage = function ProfileImage(_ref) {
|
|
43
48
|
var children = _ref.children;
|
|
44
49
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -77,7 +82,8 @@ var ActionButtonGroup = exports.ActionButtonGroup = function ActionButtonGroup(_
|
|
|
77
82
|
testId = _ref4.testId;
|
|
78
83
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
79
84
|
testId: testId,
|
|
80
|
-
xcss: (0, _css.cx)(styles.actionButtonGroup)
|
|
85
|
+
xcss: (0, _css.cx)((0, _platformFeatureFlags.fg)('enable_absolute_positioning_profile_card') ? stylesCompiled.actionButtonGroup : styles.actionButtonGroup),
|
|
86
|
+
id: "profile-card-action-button-group"
|
|
81
87
|
}, children);
|
|
82
88
|
};
|
|
83
89
|
var OverflowActionButtonsWrapper = exports.OverflowActionButtonsWrapper = function OverflowActionButtonsWrapper(_ref5) {
|
|
@@ -121,10 +127,11 @@ var CustomLozengeContainer = exports.CustomLozengeContainer = function CustomLoz
|
|
|
121
127
|
var JobTitleLabel = exports.JobTitleLabel = function JobTitleLabel(_ref1) {
|
|
122
128
|
var children = _ref1.children;
|
|
123
129
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
124
|
-
xcss: (0, _css.cx)(styles.jobTitleLabel)
|
|
130
|
+
xcss: (0, _css.cx)((0, _platformFeatureFlags.fg)('enable_absolute_positioning_profile_card') ? stylesCompiled.jobTitleLabel : styles.jobTitleLabel)
|
|
125
131
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
126
132
|
maxLines: 1,
|
|
127
|
-
color: "color.text.inverse"
|
|
133
|
+
color: "color.text.inverse",
|
|
134
|
+
id: "profile-card-job-title-label-text"
|
|
128
135
|
}, children));
|
|
129
136
|
};
|
|
130
137
|
var AppTitleLabel = exports.AppTitleLabel = function AppTitleLabel(_ref10) {
|
|
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
45
45
|
actionSubjectId: actionSubjectId,
|
|
46
46
|
attributes: _objectSpread(_objectSpread({
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "24.
|
|
48
|
+
packageVersion: "24.6.0"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -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', "24.
|
|
9
|
+
headers.append('atl-client-version', "24.6.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -74,7 +74,7 @@ export const addHeaders = headers => {
|
|
|
74
74
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
75
75
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
76
76
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
77
|
-
headers.append('atl-client-version', "24.
|
|
77
|
+
headers.append('atl-client-version', "24.6.0");
|
|
78
78
|
return headers;
|
|
79
79
|
};
|
|
80
80
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -35,7 +35,7 @@ const renderName = (nickname, fullName, meta) => {
|
|
|
35
35
|
const displayName = isNicknameRedundant ? fullName : `${fullName}${shownNickname}`;
|
|
36
36
|
return /*#__PURE__*/React.createElement(Box, {
|
|
37
37
|
as: "h2",
|
|
38
|
-
xcss: cx(styles.fullNameLabel, styles.activeAccount, meta ? fg('platform_editor_profilecard_style_fix') ? styles.metaLabelWithHighSpecificity : styles.metaLabel : fg('platform_editor_profilecard_style_fix') ? styles.noMetaLabelWithHighSpecificity : styles.noMetaLabel),
|
|
38
|
+
xcss: cx(styles.fullNameLabel, styles.activeAccount, meta ? fg('platform_editor_profilecard_style_fix') || fg('enable_absolute_positioning_profile_card') ? styles.metaLabelWithHighSpecificity : styles.metaLabel : fg('platform_editor_profilecard_style_fix') || fg('enable_absolute_positioning_profile_card') ? styles.noMetaLabelWithHighSpecificity : styles.noMetaLabel),
|
|
39
39
|
testId: "profilecard-name",
|
|
40
40
|
id: "profilecard-name-label"
|
|
41
41
|
}, displayName);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._m5ny16oo #profile-card-trigger-popup-wrapper{z-index:510}
|