@atlaskit/profilecard 24.6.0 → 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 +11 -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 +90 -3
- 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 +87 -0
- 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 +90 -3
- 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 +4 -1
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
/* ProfileCardTrigger.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./ProfileCardTrigger.compiled.css";
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
6
|
import { useIntl } from 'react-intl-next';
|
|
4
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
8
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
6
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
10
|
import Popup from '@atlaskit/popup';
|
|
11
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
12
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
13
|
import filterActionsInner from '../../internal/filterActions';
|
|
10
14
|
import getLabelMessage from '../../internal/getLabelMessage';
|
|
@@ -14,6 +18,9 @@ import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
|
14
18
|
import { AgentProfileCardResourced } from '../Agent/AgentProfileCardResourced';
|
|
15
19
|
import { ProfileCardLazy } from './lazyProfileCard';
|
|
16
20
|
import UserLoadingState from './UserLoadingState';
|
|
21
|
+
const styles = {
|
|
22
|
+
profileCardTrigger: "_m5ny16oo"
|
|
23
|
+
};
|
|
17
24
|
function ProfileCardContent({
|
|
18
25
|
profilecardProps,
|
|
19
26
|
userId,
|
|
@@ -281,6 +288,86 @@ export default function ProfilecardTriggerNext({
|
|
|
281
288
|
const ssrPlaceholderProp = fg('cc_mention_ssr_placeholder') ? {
|
|
282
289
|
'data-ssr-placeholder-replace': ssrPlaceholderId
|
|
283
290
|
} : {};
|
|
291
|
+
if (fg('enable_absolute_positioning_profile_card')) {
|
|
292
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
293
|
+
xcss: styles.profileCardTrigger
|
|
294
|
+
}, /*#__PURE__*/React.createElement(Popup, {
|
|
295
|
+
isOpen: !!visible,
|
|
296
|
+
onClose: event => {
|
|
297
|
+
hideProfilecard();
|
|
298
|
+
handleKeyboardClose(event);
|
|
299
|
+
},
|
|
300
|
+
placement: position,
|
|
301
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
302
|
+
content: () => /*#__PURE__*/React.createElement("div", wrapperProps, showLoading ? /*#__PURE__*/React.createElement(LoadingView, {
|
|
303
|
+
fireAnalytics: fireAnalytics
|
|
304
|
+
}) : visible && /*#__PURE__*/React.createElement(ProfileCardContent, {
|
|
305
|
+
profilecardProps: profilecardProps,
|
|
306
|
+
isAgent: !!(data !== null && data !== void 0 && data.isAgent),
|
|
307
|
+
userId: userId,
|
|
308
|
+
cloudId: cloudId,
|
|
309
|
+
resourceClient: resourceClient,
|
|
310
|
+
viewingUserId: viewingUserId,
|
|
311
|
+
trigger: trigger,
|
|
312
|
+
product: product,
|
|
313
|
+
profileCardAction: filterActions(),
|
|
314
|
+
errorType: error,
|
|
315
|
+
hasError: hasError,
|
|
316
|
+
agentActions: agentActions,
|
|
317
|
+
addFlag: addFlag
|
|
318
|
+
})),
|
|
319
|
+
trigger: triggerProps => {
|
|
320
|
+
const {
|
|
321
|
+
ref: callbackRef,
|
|
322
|
+
...innerProps
|
|
323
|
+
} = triggerProps;
|
|
324
|
+
const ref = element => {
|
|
325
|
+
triggerRef.current = element;
|
|
326
|
+
if (typeof callbackRef === 'function') {
|
|
327
|
+
callbackRef(element);
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
const {
|
|
331
|
+
'aria-expanded': _,
|
|
332
|
+
'aria-haspopup': __,
|
|
333
|
+
...restInnerProps
|
|
334
|
+
} = innerProps;
|
|
335
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, disabledAriaAttributes ? restInnerProps : triggerProps, containerListeners, {
|
|
336
|
+
ref: ref,
|
|
337
|
+
"data-testid": testId
|
|
338
|
+
}, !ariaHideProfileTrigger && {
|
|
339
|
+
'aria-labelledby': ariaLabelledBy
|
|
340
|
+
}, disabledAriaAttributes ? {} : {
|
|
341
|
+
role: 'button',
|
|
342
|
+
// aria-hidden cannot contain focusable elements: https://dequeuniversity.com/rules/axe/3.5/aria-hidden-focus
|
|
343
|
+
tabIndex: ariaHideProfileTrigger ? -1 : 0,
|
|
344
|
+
'aria-label': ariaHideProfileTrigger ? undefined : getLabelMessage(ariaLabel, profilecardProps.fullName, formatMessage)
|
|
345
|
+
}, ariaHideProfileTrigger && {
|
|
346
|
+
'aria-hidden': 'true'
|
|
347
|
+
}, ssrPlaceholderProp), children);
|
|
348
|
+
},
|
|
349
|
+
zIndex: layers.modal(),
|
|
350
|
+
shouldUseCaptureOnOutsideClick: true,
|
|
351
|
+
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click',
|
|
352
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card') || fg('enable_absolute_positioning_profile_card'),
|
|
353
|
+
shouldDisableFocusLock: fg('enable_appropriate_reading_order_in_profile_card') || fg('enable_absolute_positioning_profile_card'),
|
|
354
|
+
strategy: "absolute",
|
|
355
|
+
id: "profile-card-trigger-popup-wrapper"
|
|
356
|
+
})), shouldShowGiveKudos && teamCentralBaseUrl && /*#__PURE__*/React.createElement(Suspense, {
|
|
357
|
+
fallback: null
|
|
358
|
+
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
359
|
+
isOpen: kudosDrawerOpen,
|
|
360
|
+
recipient: {
|
|
361
|
+
type: KudosType.INDIVIDUAL,
|
|
362
|
+
recipientId: userId
|
|
363
|
+
},
|
|
364
|
+
analyticsSource: "profile-card",
|
|
365
|
+
teamCentralBaseUrl: teamCentralBaseUrl,
|
|
366
|
+
cloudId: cloudId,
|
|
367
|
+
addFlag: addFlag,
|
|
368
|
+
onClose: closeKudosDrawer
|
|
369
|
+
})));
|
|
370
|
+
}
|
|
284
371
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popup, {
|
|
285
372
|
isOpen: !!visible,
|
|
286
373
|
onClose: event => {
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Účet uživatele byl deaktivován tento týden.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Účet uživatele byl deaktivován.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Více',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Další akce položky {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Další informace o tomto týmu',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Přímí nadřízení',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Zkusit znovu',
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Personens konto blev deaktiveret i denne uge.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Personens konto er blevet deaktiveret.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Mere',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Flere handlinger for {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Flere oplysninger om dette team',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Direkte underordnede',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Prøv igen',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Das Konto dieser Person wurde diese Woche deaktiviert.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Das Konto dieser Person wurde deaktiviert.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Mehr',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Weitere Aktionen für {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Weitere Informationen zu diesem Team',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Direkt unterstellt',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Versuchen Sie es erneut.',
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Su cuenta se ha desactivado esta semana.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Su cuenta está desactivada.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Más',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Más acciones para {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Más información sobre este equipo',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Subordinados directos',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Volver a intentarlo',
|
package/dist/es2019/i18n/fi.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Hänen tilinsä poistettiin käytöstä tällä viikolla.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Hänen tilinsä on poistettu käytöstä.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Lisää',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Lisää toimintoja asiakaspalvelijalle {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Lisätietoja tästä tiimistä',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Suorat alaiset',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Yritä uudelleen',
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Son compte a été désactivé cette semaine.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Son compte a été désactivé.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Plus',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': "Plus d'actions pour {fullName}",
|
|
51
52
|
'pt.team-profile-card.aria-label': 'En savoir plus sur cette équipe',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Collaborateurs directs',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Réessayez',
|
package/dist/es2019/i18n/hr.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Njegov račun je deaktiviran ovaj tjedan.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Njegov račun je deaktiviran.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Više',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Još radnji za agenta {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Više informacija o ovom timu',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Izravni izvještaji',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Pokušaj ponovno',
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'A fiókját ezen a héten inaktiváltuk.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'A fiókját inaktiváltuk.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Továbbiak',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'További műveletek a következőhöz: {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'További információ erről a csapatról',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Közvetlen beosztottak',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Próbáld újra',
|
package/dist/es2019/i18n/it.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Il suo account è stato disattivato questa settimana.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Il suo account è stato disattivato.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Altro',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Altre azioni per {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Ulteriori informazioni su questo team',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Report diretti',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Riprova',
|
package/dist/es2019/i18n/ja.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'アカウントは今週無効になりました。',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'アカウントは無効になっています。',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'その他',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName} のその他のアクション',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'このチームに関する詳細情報',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': '直属の部下',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': '再試行',
|
package/dist/es2019/i18n/ko.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': '계정이 이번 주에 비활성화되었습니다.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': '계정이 비활성화되었습니다.',
|
|
50
50
|
'pt.profile-card.more-icon-label': '더 보기',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName}에 대한 더 많은 작업 보기',
|
|
51
52
|
'pt.team-profile-card.aria-label': '이 팀에 대한 추가 정보',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': '부하 직원',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': '다시 시도',
|
package/dist/es2019/i18n/nb.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Vedkommendes konto ble deaktivert denne uken.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Vedkommendes konto er deaktivert.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Mer',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Flere handlinger for {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Mer informasjon om dette teamet',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Direkte underordnede',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Prøv på nytt',
|
package/dist/es2019/i18n/nl.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Zijn/haar account is deze week gedeactiveerd.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Zijn/haar account is gedeactiveerd.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Meer',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Meer acties voor {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Meer informatie over dit team',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Directe rapporten',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Opnieuw proberen',
|
package/dist/es2019/i18n/pl.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Jej konto zostało zdezaktywowane w tym tygodniu.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Jej konto zostało zdezaktywowane pomyślnie.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Więcej',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Więcej czynności dla {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Więcej informacji o tym zespole',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Bezpośredni podwładni',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Spróbuj ponownie',
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'A conta do usuário foi desativada nesta semana.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'A conta do usuário foi desativada.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Mais',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Mais ações para {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Mais informações sobre esta equipe',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Relatórios diretos',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Tentar novamente',
|
package/dist/es2019/i18n/ru.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Его аккаунт был отключен на этой неделе.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Его аккаунт был отключен.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Еще',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName}: другие действия',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Дополнительные сведения о команде',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Прямые подчиненные',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Повторить попытку',
|
package/dist/es2019/i18n/sl.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Račun tega uporabnika je bil deaktiviran ta teden.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Račun tega uporabnika je bil deaktiviran.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Več',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Več dejanj za {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Več informacij o tej ekipi',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Neposredno podrejeni',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Poskusi znova',
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Nalog korisnika je deaktiviran ove nedelje.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Nalog korisnika je deaktiviran.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Još',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Više radnji za {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Više informacija o ovom timu',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Direktni izveštaji',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Probajte ponovo',
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Налог корисника је деактивиран ове недеље.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Налог корисника је деактивиран.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Још',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Више радњи за {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Више информација о овом тиму',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Директни извештаји',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Пробај поново',
|
package/dist/es2019/i18n/sv.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Personens konto inaktiverades den här veckan.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Personens konto har inaktiverats.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Mer',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Fler åtgärder för {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Mer information om teamet',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Direkt underordnade',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Försök igen',
|
package/dist/es2019/i18n/th.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'บัญชีของผู้ใช้ถูกปิดใช้งานไปแล้วในสัปดาห์นี้',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'บัญชีของผู้ใช้ถูกปิดใช้งานไปแล้ว',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'เพิ่มเติม',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'การดำเนินการเพิ่มเติมสำหรับ {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'ข้อมูลเพิ่มเติมเกี่ยวกับทีมนี้',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'รายงานโดยตรง',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'ลองอีกครั้ง',
|
package/dist/es2019/i18n/tr.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Bu kullanıcının hesabı bu hafta devre dışı bırakıldı.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Bu kullanıcının hesabı devre dışı bırakıldı.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Daha fazlası',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName} için daha fazla işlem',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Bu takım hakkında daha fazla bilgi',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Astlar',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Yeniden deneyin',
|
package/dist/es2019/i18n/uk.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Обліковий запис користувача деактивовано цього тижня.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Обліковий запис користувача деактивовано.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Більше варіантів',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Інші дії для агента {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Докладніше про цю команду',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Безпосередні підлеглі',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Повторіть спробу',
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'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.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Tài khoản của họ đã bị hủy kích hoạt.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Khác',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Thao tác khác đối với {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Thông tin khác về đội ngũ này',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Báo cáo trực tiếp',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Thử lại',
|
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': '他们的帐户本周已被停用。',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': '他们的帐户已被停用。',
|
|
50
50
|
'pt.profile-card.more-icon-label': '更多',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': '针对 "{fullName}" 的更多操作',
|
|
51
52
|
'pt.team-profile-card.aria-label': '有关此团队的更多信息',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': '直接下属',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': '请重试',
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': '其帳戶在本週已停用。',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': '其帳戶已停用。',
|
|
50
50
|
'pt.profile-card.more-icon-label': '更多',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': '{fullName} 的更多動作',
|
|
51
52
|
'pt.team-profile-card.aria-label': '有關此團隊的更多資訊',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': '直接報告',
|
|
53
54
|
'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}
|
|
@@ -4,6 +4,7 @@ import "./Card.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
8
9
|
const kudosButtonAnimationTransformationCompiled = null;
|
|
9
10
|
const styles = {
|
|
@@ -32,6 +33,10 @@ const styles = {
|
|
|
32
33
|
jobTitleLabel: "_19pkze3t _otyrze3t _18u0utpp _2hwxze3t",
|
|
33
34
|
appTitleLabel: "_2rkoglpi _syaz1fxt _u5f312x7 _19bv12x7 _1bsb1ns9 _19pk1b66 _otyrze3t _18u0utpp _2hwxze3t"
|
|
34
35
|
};
|
|
36
|
+
const stylesCompiled = {
|
|
37
|
+
jobTitleLabel: "_19pkze3t _otyrze3t _18u0utpp _2hwxze3t _1br315cr",
|
|
38
|
+
actionButtonGroup: "_zulp12x7 _uiztglyw _19pkpxbi _2hwxze3t _18u0ze3t _otyrze3t _y3gnusic _1bahesu3 _1e0c1txw _1oqb1gjq"
|
|
39
|
+
};
|
|
35
40
|
export const ProfileImage = ({
|
|
36
41
|
children
|
|
37
42
|
}) => /*#__PURE__*/React.createElement(Box, {
|
|
@@ -61,7 +66,8 @@ export const ActionButtonGroup = ({
|
|
|
61
66
|
testId
|
|
62
67
|
}) => /*#__PURE__*/React.createElement(Box, {
|
|
63
68
|
testId: testId,
|
|
64
|
-
xcss: cx(styles.actionButtonGroup)
|
|
69
|
+
xcss: cx(fg('enable_absolute_positioning_profile_card') ? stylesCompiled.actionButtonGroup : styles.actionButtonGroup),
|
|
70
|
+
id: "profile-card-action-button-group"
|
|
65
71
|
}, children);
|
|
66
72
|
export const OverflowActionButtonsWrapper = ({
|
|
67
73
|
children,
|
|
@@ -98,10 +104,11 @@ export const CustomLozengeContainer = ({
|
|
|
98
104
|
export const JobTitleLabel = ({
|
|
99
105
|
children
|
|
100
106
|
}) => /*#__PURE__*/React.createElement(Box, {
|
|
101
|
-
xcss: cx(styles.jobTitleLabel)
|
|
107
|
+
xcss: cx(fg('enable_absolute_positioning_profile_card') ? stylesCompiled.jobTitleLabel : styles.jobTitleLabel)
|
|
102
108
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
103
109
|
maxLines: 1,
|
|
104
|
-
color: "color.text.inverse"
|
|
110
|
+
color: "color.text.inverse",
|
|
111
|
+
id: "profile-card-job-title-label-text"
|
|
105
112
|
}, children));
|
|
106
113
|
export const AppTitleLabel = ({
|
|
107
114
|
children
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "24.
|
|
35
|
+
packageVersion: "24.6.0",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -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', "24.
|
|
7
|
+
headers.append('atl-client-version', "24.6.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -56,7 +56,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
56
56
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
57
57
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
58
58
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
59
|
-
headers.append('atl-client-version', "24.
|
|
59
|
+
headers.append('atl-client-version', "24.6.0");
|
|
60
60
|
return headers;
|
|
61
61
|
};
|
|
62
62
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -37,7 +37,7 @@ var renderName = function renderName(nickname, fullName, meta) {
|
|
|
37
37
|
var displayName = isNicknameRedundant ? fullName : "".concat(fullName).concat(shownNickname);
|
|
38
38
|
return /*#__PURE__*/React.createElement(Box, {
|
|
39
39
|
as: "h2",
|
|
40
|
-
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),
|
|
40
|
+
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),
|
|
41
41
|
testId: "profilecard-name",
|
|
42
42
|
id: "profilecard-name-label"
|
|
43
43
|
}, 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
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
@@ -5,7 +6,11 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
5
6
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
6
7
|
import _extends from "@babel/runtime/helpers/extends";
|
|
7
8
|
var _excluded = ["ref"],
|
|
8
|
-
_excluded2 = ["aria-expanded", "aria-haspopup"]
|
|
9
|
+
_excluded2 = ["aria-expanded", "aria-haspopup"],
|
|
10
|
+
_excluded3 = ["ref"],
|
|
11
|
+
_excluded4 = ["aria-expanded", "aria-haspopup"];
|
|
12
|
+
import "./ProfileCardTrigger.compiled.css";
|
|
13
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
9
14
|
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; }
|
|
10
15
|
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) { _defineProperty(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; }
|
|
11
16
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
@@ -15,6 +20,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
|
15
20
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
16
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
22
|
import Popup from '@atlaskit/popup';
|
|
23
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
18
24
|
import { layers } from '@atlaskit/theme/constants';
|
|
19
25
|
import filterActionsInner from '../../internal/filterActions';
|
|
20
26
|
import getLabelMessage from '../../internal/getLabelMessage';
|
|
@@ -24,6 +30,9 @@ import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
|
24
30
|
import { AgentProfileCardResourced } from '../Agent/AgentProfileCardResourced';
|
|
25
31
|
import { ProfileCardLazy } from './lazyProfileCard';
|
|
26
32
|
import UserLoadingState from './UserLoadingState';
|
|
33
|
+
var styles = {
|
|
34
|
+
profileCardTrigger: "_m5ny16oo"
|
|
35
|
+
};
|
|
27
36
|
function ProfileCardContent(_ref) {
|
|
28
37
|
var profilecardProps = _ref.profilecardProps,
|
|
29
38
|
userId = _ref.userId,
|
|
@@ -342,6 +351,84 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
342
351
|
var ssrPlaceholderProp = fg('cc_mention_ssr_placeholder') ? {
|
|
343
352
|
'data-ssr-placeholder-replace': ssrPlaceholderId
|
|
344
353
|
} : {};
|
|
354
|
+
if (fg('enable_absolute_positioning_profile_card')) {
|
|
355
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
356
|
+
xcss: styles.profileCardTrigger
|
|
357
|
+
}, /*#__PURE__*/React.createElement(Popup, {
|
|
358
|
+
isOpen: !!visible,
|
|
359
|
+
onClose: function onClose(event) {
|
|
360
|
+
hideProfilecard();
|
|
361
|
+
handleKeyboardClose(event);
|
|
362
|
+
},
|
|
363
|
+
placement: position,
|
|
364
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
365
|
+
content: function content() {
|
|
366
|
+
return /*#__PURE__*/React.createElement("div", wrapperProps, showLoading ? /*#__PURE__*/React.createElement(LoadingView, {
|
|
367
|
+
fireAnalytics: fireAnalytics
|
|
368
|
+
}) : visible && /*#__PURE__*/React.createElement(ProfileCardContent, {
|
|
369
|
+
profilecardProps: profilecardProps,
|
|
370
|
+
isAgent: !!(data !== null && data !== void 0 && data.isAgent),
|
|
371
|
+
userId: userId,
|
|
372
|
+
cloudId: cloudId,
|
|
373
|
+
resourceClient: resourceClient,
|
|
374
|
+
viewingUserId: viewingUserId,
|
|
375
|
+
trigger: trigger,
|
|
376
|
+
product: product,
|
|
377
|
+
profileCardAction: filterActions(),
|
|
378
|
+
errorType: error,
|
|
379
|
+
hasError: hasError,
|
|
380
|
+
agentActions: agentActions,
|
|
381
|
+
addFlag: addFlag
|
|
382
|
+
}));
|
|
383
|
+
},
|
|
384
|
+
trigger: function trigger(triggerProps) {
|
|
385
|
+
var callbackRef = triggerProps.ref,
|
|
386
|
+
innerProps = _objectWithoutProperties(triggerProps, _excluded);
|
|
387
|
+
var ref = function ref(element) {
|
|
388
|
+
triggerRef.current = element;
|
|
389
|
+
if (typeof callbackRef === 'function') {
|
|
390
|
+
callbackRef(element);
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
var _ = innerProps['aria-expanded'],
|
|
394
|
+
__ = innerProps['aria-haspopup'],
|
|
395
|
+
restInnerProps = _objectWithoutProperties(innerProps, _excluded2);
|
|
396
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, disabledAriaAttributes ? restInnerProps : triggerProps, containerListeners, {
|
|
397
|
+
ref: ref,
|
|
398
|
+
"data-testid": testId
|
|
399
|
+
}, !ariaHideProfileTrigger && {
|
|
400
|
+
'aria-labelledby': ariaLabelledBy
|
|
401
|
+
}, disabledAriaAttributes ? {} : {
|
|
402
|
+
role: 'button',
|
|
403
|
+
// aria-hidden cannot contain focusable elements: https://dequeuniversity.com/rules/axe/3.5/aria-hidden-focus
|
|
404
|
+
tabIndex: ariaHideProfileTrigger ? -1 : 0,
|
|
405
|
+
'aria-label': ariaHideProfileTrigger ? undefined : getLabelMessage(ariaLabel, profilecardProps.fullName, formatMessage)
|
|
406
|
+
}, ariaHideProfileTrigger && {
|
|
407
|
+
'aria-hidden': 'true'
|
|
408
|
+
}, ssrPlaceholderProp), children);
|
|
409
|
+
},
|
|
410
|
+
zIndex: layers.modal(),
|
|
411
|
+
shouldUseCaptureOnOutsideClick: true,
|
|
412
|
+
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click',
|
|
413
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card') || fg('enable_absolute_positioning_profile_card'),
|
|
414
|
+
shouldDisableFocusLock: fg('enable_appropriate_reading_order_in_profile_card') || fg('enable_absolute_positioning_profile_card'),
|
|
415
|
+
strategy: "absolute",
|
|
416
|
+
id: "profile-card-trigger-popup-wrapper"
|
|
417
|
+
})), shouldShowGiveKudos && teamCentralBaseUrl && /*#__PURE__*/React.createElement(Suspense, {
|
|
418
|
+
fallback: null
|
|
419
|
+
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
420
|
+
isOpen: kudosDrawerOpen,
|
|
421
|
+
recipient: {
|
|
422
|
+
type: KudosType.INDIVIDUAL,
|
|
423
|
+
recipientId: userId
|
|
424
|
+
},
|
|
425
|
+
analyticsSource: "profile-card",
|
|
426
|
+
teamCentralBaseUrl: teamCentralBaseUrl,
|
|
427
|
+
cloudId: cloudId,
|
|
428
|
+
addFlag: addFlag,
|
|
429
|
+
onClose: closeKudosDrawer
|
|
430
|
+
})));
|
|
431
|
+
}
|
|
345
432
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popup, {
|
|
346
433
|
isOpen: !!visible,
|
|
347
434
|
onClose: function onClose(event) {
|
|
@@ -371,7 +458,7 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
371
458
|
},
|
|
372
459
|
trigger: function trigger(triggerProps) {
|
|
373
460
|
var callbackRef = triggerProps.ref,
|
|
374
|
-
innerProps = _objectWithoutProperties(triggerProps,
|
|
461
|
+
innerProps = _objectWithoutProperties(triggerProps, _excluded3);
|
|
375
462
|
var ref = function ref(element) {
|
|
376
463
|
triggerRef.current = element;
|
|
377
464
|
if (typeof callbackRef === 'function') {
|
|
@@ -380,7 +467,7 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
380
467
|
};
|
|
381
468
|
var _ = innerProps['aria-expanded'],
|
|
382
469
|
__ = innerProps['aria-haspopup'],
|
|
383
|
-
restInnerProps = _objectWithoutProperties(innerProps,
|
|
470
|
+
restInnerProps = _objectWithoutProperties(innerProps, _excluded4);
|
|
384
471
|
return /*#__PURE__*/React.createElement("span", _extends({}, disabledAriaAttributes ? restInnerProps : triggerProps, containerListeners, {
|
|
385
472
|
ref: ref,
|
|
386
473
|
"data-testid": testId
|
package/dist/esm/i18n/cs.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Účet uživatele byl deaktivován tento týden.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Účet uživatele byl deaktivován.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Více',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Další akce položky {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Další informace o tomto týmu',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Přímí nadřízení',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Zkusit znovu',
|
package/dist/esm/i18n/da.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Personens konto blev deaktiveret i denne uge.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Personens konto er blevet deaktiveret.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Mere',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Flere handlinger for {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Flere oplysninger om dette team',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Direkte underordnede',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Prøv igen',
|
package/dist/esm/i18n/de.js
CHANGED
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'pt.profile-card.inactive.account.has.date.this.week': 'Das Konto dieser Person wurde diese Woche deaktiviert.',
|
|
49
49
|
'pt.profile-card.inactive.account.no.date': 'Das Konto dieser Person wurde deaktiviert.',
|
|
50
50
|
'pt.profile-card.more-icon-label': 'Mehr',
|
|
51
|
+
'pt.profile-card.more-icon-label-with-name': 'Weitere Aktionen für {fullName}',
|
|
51
52
|
'pt.team-profile-card.aria-label': 'Weitere Informationen zu diesem Team',
|
|
52
53
|
'pt.team-profile-card.directReports.heading': 'Direkt unterstellt',
|
|
53
54
|
'pt.team-profile-card.error.refresh-button': 'Versuchen Sie es erneut.',
|