@atlaskit/profilecard 24.49.12 → 25.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/Actions.js +3 -3
- package/dist/cjs/components/Agent/AgentDeleteConfirmationModal.js +3 -3
- package/dist/cjs/components/Agent/AgentProfileCard.js +2 -2
- package/dist/cjs/components/Agent/messages.js +2 -2
- package/dist/cjs/components/Error/ErrorMessage.js +5 -5
- package/dist/cjs/components/Team/TeamForbiddenErrorState.js +2 -2
- package/dist/cjs/components/Team/TeamProfileCard.js +8 -10
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +4 -4
- package/dist/cjs/components/User/OverflowProfileCardButtons.js +2 -2
- package/dist/cjs/components/User/ProfileCard.js +3 -3
- package/dist/cjs/components/User/ProfileCardDetails.js +7 -7
- package/dist/cjs/components/User/ProfileCardTrigger.js +2 -6
- package/dist/cjs/components/User/ReportingLinesDetails.js +4 -4
- package/dist/cjs/components/team-profile-card/main.js +5 -5
- package/dist/cjs/components/team-profile-card/team-actions/index.js +2 -2
- package/dist/cjs/components/team-profile-card/team-actions/messages.js +2 -2
- package/dist/cjs/components/team-profile-card/team-actions/more-actions/index.js +2 -2
- package/dist/cjs/components/team-profile-card/team-actions/more-actions/messages.js +2 -2
- package/dist/cjs/internal/getLabelMessage.js +2 -2
- package/dist/cjs/messages.js +2 -2
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/Actions.js +1 -1
- package/dist/es2019/components/Agent/AgentDeleteConfirmationModal.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +1 -1
- package/dist/es2019/components/Agent/messages.js +1 -1
- package/dist/es2019/components/Error/ErrorMessage.js +1 -1
- package/dist/es2019/components/Team/TeamForbiddenErrorState.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +2 -4
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +2 -2
- package/dist/es2019/components/User/OverflowProfileCardButtons.js +1 -1
- package/dist/es2019/components/User/ProfileCard.js +1 -1
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +1 -5
- package/dist/es2019/components/User/ReportingLinesDetails.js +1 -1
- package/dist/es2019/components/team-profile-card/main.js +1 -1
- package/dist/es2019/components/team-profile-card/team-actions/index.js +1 -1
- package/dist/es2019/components/team-profile-card/team-actions/messages.js +1 -1
- package/dist/es2019/components/team-profile-card/team-actions/more-actions/index.js +1 -1
- package/dist/es2019/components/team-profile-card/team-actions/more-actions/messages.js +1 -1
- package/dist/es2019/internal/getLabelMessage.js +1 -1
- package/dist/es2019/messages.js +1 -1
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/Actions.js +1 -1
- package/dist/esm/components/Agent/AgentDeleteConfirmationModal.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +1 -1
- package/dist/esm/components/Agent/messages.js +1 -1
- package/dist/esm/components/Error/ErrorMessage.js +1 -1
- package/dist/esm/components/Team/TeamForbiddenErrorState.js +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +2 -4
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +2 -2
- package/dist/esm/components/User/OverflowProfileCardButtons.js +1 -1
- package/dist/esm/components/User/ProfileCard.js +1 -1
- package/dist/esm/components/User/ProfileCardDetails.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +1 -5
- package/dist/esm/components/User/ReportingLinesDetails.js +1 -1
- package/dist/esm/components/team-profile-card/main.js +1 -1
- package/dist/esm/components/team-profile-card/team-actions/index.js +1 -1
- package/dist/esm/components/team-profile-card/team-actions/messages.js +1 -1
- package/dist/esm/components/team-profile-card/team-actions/more-actions/index.js +1 -1
- package/dist/esm/components/team-profile-card/team-actions/more-actions/messages.js +1 -1
- package/dist/esm/internal/getLabelMessage.js +1 -1
- package/dist/esm/messages.js +1 -1
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +1 -1
- package/dist/types/internal/getLabelMessage.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +1 -1
- package/dist/types-ts4.5/internal/getLabelMessage.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +12 -14
- package/report.api.md +1 -1
- package/stories/agent-profilecard.stories.tsx +1 -1
|
@@ -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 = "
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.0.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
16
16
|
};
|
|
17
17
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
18
18
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "
|
|
34
|
+
packageVersion: "25.0.0"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
|
|
|
6
6
|
}`;
|
|
7
7
|
const addHeaders = headers => {
|
|
8
8
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
9
|
-
headers.append('atl-client-version', "
|
|
9
|
+
headers.append('atl-client-version', "25.0.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
|
|
|
78
78
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
79
79
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
80
80
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
81
|
-
headers.append('atl-client-version', "
|
|
81
|
+
headers.append('atl-client-version', "25.0.0");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./Actions.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useState } from 'react';
|
|
5
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
5
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
import Button from '@atlaskit/button/new';
|
|
7
7
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import { AgentDropdownMenu } from '@atlaskit/rovo-agent-components/ui/AgentDropdownMenu';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
2
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import Button from '@atlaskit/button/new';
|
|
4
4
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
5
5
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./AgentProfileCard.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
7
7
|
import Link from '@atlaskit/link';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl
|
|
2
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import Button from '@atlaskit/button/new';
|
|
4
4
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
5
5
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import EmptyState from '@atlaskit/empty-state';
|
|
4
4
|
import messages from '../../messages';
|
|
5
5
|
import { AccessLockSVGWrapper, TeamForbiddenErrorStateWrapper } from '../../styled/TeamCard';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
3
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import Avatar from '@atlaskit/avatar';
|
|
5
5
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
6
6
|
import Button, { IconButton, LinkButton } from '@atlaskit/button/new';
|
|
@@ -8,7 +8,6 @@ import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
|
8
8
|
import Lozenge from '@atlaskit/lozenge';
|
|
9
9
|
import { LinkItem, MenuGroup } from '@atlaskit/menu';
|
|
10
10
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import Popup from '@atlaskit/popup';
|
|
13
12
|
import { Inline, Text } from '@atlaskit/primitives/compiled';
|
|
14
13
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -197,8 +196,7 @@ const ExtraActions = ({
|
|
|
197
196
|
label: "actions"
|
|
198
197
|
}));
|
|
199
198
|
},
|
|
200
|
-
zIndex: layers.modal()
|
|
201
|
-
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
199
|
+
zIndex: layers.modal()
|
|
202
200
|
}));
|
|
203
201
|
};
|
|
204
202
|
const ButtonSection = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { Suspense } from 'react';
|
|
4
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
4
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
5
5
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import Popup from '@atlaskit/popup';
|
|
@@ -368,7 +368,7 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
368
368
|
zIndex: layers.modal(),
|
|
369
369
|
shouldFlip: true,
|
|
370
370
|
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
|
|
371
|
-
shouldRenderToParent:
|
|
371
|
+
shouldRenderToParent: this.props.shouldRenderToParent
|
|
372
372
|
}));
|
|
373
373
|
}
|
|
374
374
|
render() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl
|
|
3
|
+
import { useIntl } from 'react-intl';
|
|
4
4
|
import { IconButton } from '@atlaskit/button/new';
|
|
5
5
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
6
6
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
3
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import Avatar from '@atlaskit/avatar';
|
|
5
5
|
import { LinkButton } from '@atlaskit/button/new';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -4,7 +4,7 @@ import "./ProfileCardDetails.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useRef } from 'react';
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
|
-
import { FormattedMessage } from 'react-intl
|
|
7
|
+
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import Lozenge from '@atlaskit/lozenge';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl
|
|
3
|
+
import { useIntl } from 'react-intl';
|
|
4
4
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import Popup from '@atlaskit/popup';
|
|
@@ -388,10 +388,6 @@ export default function ProfilecardTriggerNext({
|
|
|
388
388
|
zIndex: layers.modal(),
|
|
389
389
|
shouldUseCaptureOnOutsideClick: true,
|
|
390
390
|
autoFocus: expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? isRenderedInPortal && isTriggeredUsingKeyboard ? false : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click' : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
|
|
391
|
-
// This feature gate is currently enabled only for Jira_Web to avoid UI issues in Confluence_Web.
|
|
392
|
-
,
|
|
393
|
-
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card'),
|
|
394
|
-
shouldDisableFocusLock: fg('enable_appropriate_reading_order_in_profile_card')
|
|
395
391
|
}), shouldShowGiveKudos && teamCentralBaseUrl && /*#__PURE__*/React.createElement(Suspense, {
|
|
396
392
|
fallback: null
|
|
397
393
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./ReportingLinesDetails.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
5
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import Avatar from '@atlaskit/avatar';
|
|
7
7
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
@@ -4,7 +4,7 @@ import "./main.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useCallback, useMemo } from 'react';
|
|
7
|
-
import { FormattedMessage } from 'react-intl
|
|
7
|
+
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
9
9
|
import Heading from '@atlaskit/heading';
|
|
10
10
|
import LinkItem from '@atlaskit/menu/link-item';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Suspense, useCallback, useState } from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
4
4
|
import { ButtonItem } from '@atlaskit/menu';
|
|
5
5
|
import { extractIdFromAri } from '../../../client/getTeamFromAGG';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl
|
|
3
|
+
import { useIntl } from 'react-intl';
|
|
4
4
|
import { IconButton } from '@atlaskit/button/new';
|
|
5
5
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
6
6
|
import { MenuGroup, Section } from '@atlaskit/menu';
|
package/dist/es2019/messages.js
CHANGED
|
@@ -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 = "
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.0.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
6
6
|
};
|
|
7
7
|
const TEAM_SUBJECT = 'teamProfileCard';
|
|
8
8
|
const USER_SUBJECT = 'profilecard';
|
|
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
19
19
|
actionSubjectId,
|
|
20
20
|
attributes: {
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "
|
|
22
|
+
packageVersion: "25.0.0",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "
|
|
7
|
+
headers.append('atl-client-version', "25.0.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
59
59
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
60
60
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
61
61
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
62
|
-
headers.append('atl-client-version', "
|
|
62
|
+
headers.append('atl-client-version', "25.0.0");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -5,7 +5,7 @@ import "./Actions.compiled.css";
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import React, { useCallback, useState } from 'react';
|
|
8
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
8
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
9
9
|
import Button from '@atlaskit/button/new';
|
|
10
10
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import { AgentDropdownMenu } from '@atlaskit/rovo-agent-components/ui/AgentDropdownMenu';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
|
-
import { defineMessages, useIntl } from 'react-intl
|
|
4
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
5
5
|
import Button from '@atlaskit/button/new';
|
|
6
6
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
7
7
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -8,7 +8,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
8
8
|
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; }
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
11
|
-
import { useIntl } from 'react-intl
|
|
11
|
+
import { useIntl } from 'react-intl';
|
|
12
12
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
13
13
|
import Link from '@atlaskit/link';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
4
|
import React, { useEffect } from 'react';
|
|
5
|
-
import { FormattedMessage } from 'react-intl
|
|
5
|
+
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import Button from '@atlaskit/button/new';
|
|
7
7
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
8
8
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
4
|
import React, { useEffect } from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import EmptyState from '@atlaskit/empty-state';
|
|
7
7
|
import messages from '../../messages';
|
|
8
8
|
import { AccessLockSVGWrapper, TeamForbiddenErrorStateWrapper } from '../../styled/TeamCard';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
8
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
9
|
import Avatar from '@atlaskit/avatar';
|
|
10
10
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
11
11
|
import Button, { IconButton, LinkButton } from '@atlaskit/button/new';
|
|
@@ -13,7 +13,6 @@ import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
|
13
13
|
import Lozenge from '@atlaskit/lozenge';
|
|
14
14
|
import { LinkItem, MenuGroup } from '@atlaskit/menu';
|
|
15
15
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import Popup from '@atlaskit/popup';
|
|
18
17
|
import { Inline, Text } from '@atlaskit/primitives/compiled';
|
|
19
18
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -216,8 +215,7 @@ var ExtraActions = function ExtraActions(_ref3) {
|
|
|
216
215
|
label: "actions"
|
|
217
216
|
}));
|
|
218
217
|
},
|
|
219
|
-
zIndex: layers.modal()
|
|
220
|
-
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
218
|
+
zIndex: layers.modal()
|
|
221
219
|
}));
|
|
222
220
|
};
|
|
223
221
|
var ButtonSection = function ButtonSection(_ref4) {
|
|
@@ -11,7 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React, { Suspense } from 'react';
|
|
14
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
14
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
15
15
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
17
|
import Popup from '@atlaskit/popup';
|
|
@@ -405,7 +405,7 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
405
405
|
zIndex: layers.modal(),
|
|
406
406
|
shouldFlip: true,
|
|
407
407
|
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
|
|
408
|
-
shouldRenderToParent:
|
|
408
|
+
shouldRenderToParent: this.props.shouldRenderToParent
|
|
409
409
|
}));
|
|
410
410
|
}
|
|
411
411
|
}, {
|
|
@@ -6,7 +6,7 @@ var _excluded = ["triggerRef", "isSelected", "testId"];
|
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
import React, { useCallback, useState } from 'react';
|
|
9
|
-
import { useIntl } from 'react-intl
|
|
9
|
+
import { useIntl } from 'react-intl';
|
|
10
10
|
import { IconButton } from '@atlaskit/button/new';
|
|
11
11
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
12
12
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
8
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
9
|
import Avatar from '@atlaskit/avatar';
|
|
10
10
|
import { LinkButton } from '@atlaskit/button/new';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -6,7 +6,7 @@ import "./ProfileCardDetails.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React, { useRef } from 'react';
|
|
8
8
|
import { cx } from '@compiled/react';
|
|
9
|
-
import { FormattedMessage } from 'react-intl
|
|
9
|
+
import { FormattedMessage } from 'react-intl';
|
|
10
10
|
import Lozenge from '@atlaskit/lozenge';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
@@ -10,7 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
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
11
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
12
12
|
import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
13
|
-
import { useIntl } from 'react-intl
|
|
13
|
+
import { useIntl } from 'react-intl';
|
|
14
14
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
16
|
import Popup from '@atlaskit/popup';
|
|
@@ -447,10 +447,6 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
447
447
|
zIndex: layers.modal(),
|
|
448
448
|
shouldUseCaptureOnOutsideClick: true,
|
|
449
449
|
autoFocus: expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? isRenderedInPortal && isTriggeredUsingKeyboard ? false : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click' : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
|
|
450
|
-
// This feature gate is currently enabled only for Jira_Web to avoid UI issues in Confluence_Web.
|
|
451
|
-
,
|
|
452
|
-
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card'),
|
|
453
|
-
shouldDisableFocusLock: fg('enable_appropriate_reading_order_in_profile_card')
|
|
454
450
|
}), shouldShowGiveKudos && teamCentralBaseUrl && /*#__PURE__*/React.createElement(Suspense, {
|
|
455
451
|
fallback: null
|
|
456
452
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
8
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
9
|
import Avatar from '@atlaskit/avatar';
|
|
10
10
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
11
11
|
import { cx } from '@atlaskit/css';
|
|
@@ -6,7 +6,7 @@ import "./main.compiled.css";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import { useCallback, useMemo } from 'react';
|
|
9
|
-
import { FormattedMessage } from 'react-intl
|
|
9
|
+
import { FormattedMessage } from 'react-intl';
|
|
10
10
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
11
11
|
import Heading from '@atlaskit/heading';
|
|
12
12
|
import LinkItem from '@atlaskit/menu/link-item';
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["isKudosEnabled", "otherActions", "loading"];
|
|
5
5
|
import React, { Suspense, useCallback, useState } from 'react';
|
|
6
|
-
import { useIntl } from 'react-intl
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
7
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
8
8
|
import { ButtonItem } from '@atlaskit/menu';
|
|
9
9
|
import { extractIdFromAri } from '../../../client/getTeamFromAGG';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useCallback, useState } from 'react';
|
|
4
|
-
import { useIntl } from 'react-intl
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
5
|
import { IconButton } from '@atlaskit/button/new';
|
|
6
6
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
7
7
|
import { MenuGroup, Section } from '@atlaskit/menu';
|
package/dist/esm/messages.js
CHANGED
|
@@ -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 = "
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.0.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
9
9
|
};
|
|
10
10
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
11
11
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
24
24
|
actionSubjectId: actionSubjectId,
|
|
25
25
|
attributes: _objectSpread(_objectSpread({
|
|
26
26
|
packageName: "@atlaskit/profilecard",
|
|
27
|
-
packageVersion: "
|
|
27
|
+
packageVersion: "25.0.0"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { type TriggerProps } from '@atlaskit/popup/types';
|
|
4
4
|
import { type AnalyticsEventAttributes, type FireEventType } from '@atlaskit/teams-app-internal-analytics';
|
|
5
5
|
import type { AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type MessageDescriptor } from 'react-intl
|
|
1
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
2
2
|
declare const getLabelMessage: (ariaLabelProp: string | undefined, fullName: string | undefined, formatMessage: (message: MessageDescriptor, values?: Record<string, string>) => string) => string;
|
|
3
3
|
export default getLabelMessage;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { type IntlShape } from 'react-intl
|
|
2
|
+
import { type IntlShape } from 'react-intl';
|
|
3
3
|
import { type ConversationStarter } from '@atlaskit/rovo-agent-components/ui/AgentConversationStarters';
|
|
4
4
|
import type { AnalyticsEventAttributes, FireEventType, useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
5
5
|
import { type TeamCentralScopes } from './client/ProfileCardClient';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl
|
|
2
|
+
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { type TriggerProps } from '@atlaskit/popup/types';
|
|
4
4
|
import { type AnalyticsEventAttributes, type FireEventType } from '@atlaskit/teams-app-internal-analytics';
|
|
5
5
|
import type { AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type MessageDescriptor } from 'react-intl
|
|
1
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
2
2
|
declare const getLabelMessage: (ariaLabelProp: string | undefined, fullName: string | undefined, formatMessage: (message: MessageDescriptor, values?: Record<string, string>) => string) => string;
|
|
3
3
|
export default getLabelMessage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { type IntlShape } from 'react-intl
|
|
2
|
+
import { type IntlShape } from 'react-intl';
|
|
3
3
|
import { type ConversationStarter } from '@atlaskit/rovo-agent-components/ui/AgentConversationStarters';
|
|
4
4
|
import type { AnalyticsEventAttributes, FireEventType, useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
5
5
|
import { type TeamCentralScopes } from './client/ProfileCardClient';
|