@atlaskit/profilecard 24.49.11 → 25.0.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 +27 -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 +21 -108
- 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 +7 -7
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +3 -3
- 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 -2
- 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 +20 -95
- 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 +1 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +1 -1
- 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 -1
- 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 +20 -107
- 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 +1 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +1 -1
- 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 -1
- 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 +16 -15
- package/report.api.md +1 -1
- package/stories/agent-profilecard.stories.tsx +1 -1
|
@@ -13,7 +13,7 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
|
|
18
18
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
19
19
|
var _linkItem = _interopRequireDefault(require("@atlaskit/menu/link-item"));
|
|
@@ -103,13 +103,13 @@ var TeamProfileCard = exports.TeamProfileCard = function TeamProfileCard(_ref) {
|
|
|
103
103
|
showTooltip: true
|
|
104
104
|
})), /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
105
105
|
color: "color.text.subtlest"
|
|
106
|
-
}, typeof memberCount === 'string' ? /*#__PURE__*/React.createElement(
|
|
106
|
+
}, typeof memberCount === 'string' ? /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, {
|
|
107
107
|
defaultMessage: "Contributing team \u2022 {memberCount} members",
|
|
108
108
|
values: {
|
|
109
109
|
memberCount: memberCount
|
|
110
110
|
},
|
|
111
111
|
id: "people-and-teams.team-profile-card.large-member-count"
|
|
112
|
-
}) : /*#__PURE__*/React.createElement(
|
|
112
|
+
}) : /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, {
|
|
113
113
|
defaultMessage: "Contributing team \u2022 {count, plural, one {# member} other {# members}}",
|
|
114
114
|
values: {
|
|
115
115
|
count: memberCount
|
|
@@ -128,7 +128,7 @@ var TeamProfileCard = exports.TeamProfileCard = function TeamProfileCard(_ref) {
|
|
|
128
128
|
xcss: styles.teamConnectionStyles
|
|
129
129
|
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
130
130
|
xcss: styles.connectionTitleStyles
|
|
131
|
-
}, /*#__PURE__*/React.createElement(
|
|
131
|
+
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, {
|
|
132
132
|
defaultMessage: "Team links",
|
|
133
133
|
id: "people-and-teams.team-profile-card.team-connections"
|
|
134
134
|
})), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
@@ -137,7 +137,7 @@ var TeamProfileCard = exports.TeamProfileCard = function TeamProfileCard(_ref) {
|
|
|
137
137
|
href: teamProfileUrl,
|
|
138
138
|
target: "_blank",
|
|
139
139
|
onClick: onClick,
|
|
140
|
-
description: /*#__PURE__*/React.createElement(
|
|
140
|
+
description: /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, {
|
|
141
141
|
defaultMessage: "Team profile",
|
|
142
142
|
id: "people-and-teams.team-profile-card.team-profile-description"
|
|
143
143
|
}),
|
|
@@ -10,7 +10,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _giveKudos = require("@atlaskit/give-kudos");
|
|
15
15
|
var _menu = require("@atlaskit/menu");
|
|
16
16
|
var _getTeamFromAGG = require("../../../client/getTeamFromAGG");
|
|
@@ -24,7 +24,7 @@ var TeamActions = exports.TeamActions = function TeamActions(_ref) {
|
|
|
24
24
|
otherActions = _ref.otherActions,
|
|
25
25
|
loading = _ref.loading,
|
|
26
26
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
27
|
-
var _useIntl = (0,
|
|
27
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
28
28
|
formatMessage = _useIntl.formatMessage;
|
|
29
29
|
var _useState = (0, _react.useState)(false),
|
|
30
30
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
giveKudos: {
|
|
10
10
|
id: 'team-profile-card.team-actions.give-kudos',
|
|
11
11
|
defaultMessage: 'Give kudos',
|
|
@@ -9,7 +9,7 @@ exports.MoreActions = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var _new = require("@atlaskit/button/new");
|
|
14
14
|
var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
|
|
15
15
|
var _menu = require("@atlaskit/menu");
|
|
@@ -20,7 +20,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
20
20
|
var MoreActions = exports.MoreActions = function MoreActions(_ref) {
|
|
21
21
|
var actions = _ref.actions,
|
|
22
22
|
loading = _ref.loading;
|
|
23
|
-
var _useIntl = (0,
|
|
23
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
24
24
|
formatMessage = _useIntl.formatMessage;
|
|
25
25
|
var _useState = (0, _react.useState)(false),
|
|
26
26
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
showMoreIconLabel: {
|
|
10
10
|
id: 'team-profile-card.team-actions.more-actions.show-more-icon-label',
|
|
11
11
|
defaultMessage: 'Show more',
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
8
|
var getLabelMessage = function getLabelMessage(ariaLabelProp, fullName, formatMessage) {
|
|
9
9
|
if (ariaLabelProp) {
|
|
10
10
|
return ariaLabelProp;
|
|
@@ -13,7 +13,7 @@ var getLabelMessage = function getLabelMessage(ariaLabelProp, fullName, formatMe
|
|
|
13
13
|
fullName: fullName
|
|
14
14
|
}) : formatMessage(messages.fallbackLabel);
|
|
15
15
|
};
|
|
16
|
-
var messages = (0,
|
|
16
|
+
var messages = (0, _reactIntl.defineMessages)({
|
|
17
17
|
fallbackLabel: {
|
|
18
18
|
id: 'profilecard.user.trigger.fallback-aria-label',
|
|
19
19
|
defaultMessage: 'More information about this user',
|
package/dist/cjs/messages.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
inactiveAccountMsg: {
|
|
10
10
|
id: 'pt.profile-card.inactive.account',
|
|
11
11
|
defaultMessage: 'Account deactivated',
|
|
@@ -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 = "0.0.0-development") !== 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: "0.0.0-development"
|
|
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', "0.0.0-development");
|
|
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', "0.0.0-development");
|
|
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';
|
|
@@ -12,7 +12,6 @@ import { AgentBanner } from '@atlaskit/rovo-agent-components/ui/agent-avatar/Gen
|
|
|
12
12
|
import { AgentAvatar } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
|
|
13
13
|
import { AgentProfileCreator, AgentProfileInfo } from '@atlaskit/rovo-agent-components/ui/AgentProfileInfo';
|
|
14
14
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
|
|
15
|
-
import { TeamsNavigationProvider } from '@atlaskit/teams-app-internal-navigation';
|
|
16
15
|
import { TeamsLink } from '@atlaskit/teams-app-internal-navigation/teams-link';
|
|
17
16
|
import { PACKAGE_META_DATA } from '../../util/analytics';
|
|
18
17
|
import { getPageTime } from '../../util/performance';
|
|
@@ -46,7 +45,7 @@ const AgentProfileCard = ({
|
|
|
46
45
|
hideAiDisclaimer = false,
|
|
47
46
|
hideConversationStarters = false
|
|
48
47
|
}) => {
|
|
49
|
-
var _agent$user_defined_c, _agent$
|
|
48
|
+
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
50
49
|
const {
|
|
51
50
|
onEditAgent,
|
|
52
51
|
onCopyAgent,
|
|
@@ -139,96 +138,11 @@ const AgentProfileCard = ({
|
|
|
139
138
|
}
|
|
140
139
|
const isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
141
140
|
const shouldShowConversationStarters = !(isRovoDev && fg('rovo_dev_themed_identity_card')) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
142
|
-
if (fg('ptc-links-migrate-atlaskit-link')) {
|
|
143
|
-
var _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
144
|
-
return /*#__PURE__*/React.createElement(TeamsNavigationProvider, {
|
|
145
|
-
value: {
|
|
146
|
-
navigate: () => {}
|
|
147
|
-
}
|
|
148
|
-
}, /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
149
|
-
xcss: styles.cardContainerStyles
|
|
150
|
-
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
151
|
-
agentId: agent.id,
|
|
152
|
-
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
153
|
-
height: 48,
|
|
154
|
-
agentIdentityAccountId: agent.identity_account_id,
|
|
155
|
-
isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card')
|
|
156
|
-
}), /*#__PURE__*/React.createElement(Box, {
|
|
157
|
-
xcss: styles.avatarStyles
|
|
158
|
-
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
159
|
-
agentId: agent.id,
|
|
160
|
-
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
161
|
-
agentIdentityAccountId: agent.identity_account_id,
|
|
162
|
-
size: "large",
|
|
163
|
-
isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card'),
|
|
164
|
-
isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
165
|
-
forgeAgentIconUrl: agent.icon
|
|
166
|
-
})), /*#__PURE__*/React.createElement(Stack, {
|
|
167
|
-
space: "space.100",
|
|
168
|
-
xcss: styles.detailWrapper
|
|
169
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
170
|
-
xcss: styles.agentProfileInfoWrapper
|
|
171
|
-
}, /*#__PURE__*/React.createElement(AgentProfileInfo, {
|
|
172
|
-
agentName: agent.name,
|
|
173
|
-
isStarred: isStarred,
|
|
174
|
-
onStarToggle: handleSetFavourite,
|
|
175
|
-
showStarButton: !(isRovoDev && fg('rovo_dev_themed_identity_card')),
|
|
176
|
-
isHidden: agent.visibility === 'PRIVATE',
|
|
177
|
-
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/React.createElement(AgentProfileCreator, {
|
|
178
|
-
creator: {
|
|
179
|
-
type: (_agent$creatorInfo2 = agent.creatorInfo) === null || _agent$creatorInfo2 === void 0 ? void 0 : _agent$creatorInfo2.type,
|
|
180
|
-
name: ((_agent$creatorInfo3 = agent.creatorInfo) === null || _agent$creatorInfo3 === void 0 ? void 0 : _agent$creatorInfo3.name) || '',
|
|
181
|
-
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
182
|
-
},
|
|
183
|
-
isLoading: false,
|
|
184
|
-
onCreatorLinkClick: () => {}
|
|
185
|
-
}),
|
|
186
|
-
starCountRender: null,
|
|
187
|
-
agentDescription: agent.description
|
|
188
|
-
})), !hideAiDisclaimer && fg('rovo_display_ai_disclaimer_on_agent_profile_card') && /*#__PURE__*/React.createElement(Flex, {
|
|
189
|
-
alignItems: "start",
|
|
190
|
-
direction: "column",
|
|
191
|
-
gap: "space.050",
|
|
192
|
-
xcss: styles.disclosureWrapper
|
|
193
|
-
}, /*#__PURE__*/React.createElement(TeamsLink, {
|
|
194
|
-
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
195
|
-
intent: "reference",
|
|
196
|
-
appearance: "subtle"
|
|
197
|
-
}, /*#__PURE__*/React.createElement(InformationCircleIcon, {
|
|
198
|
-
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
199
|
-
label: "",
|
|
200
|
-
size: "small"
|
|
201
|
-
}), ` `, /*#__PURE__*/React.createElement(Text, {
|
|
202
|
-
size: "small",
|
|
203
|
-
color: "color.text.subtlest"
|
|
204
|
-
}, formatMessage(messages.aiDisclaimer)))), shouldShowConversationStarters && /*#__PURE__*/React.createElement(Box, {
|
|
205
|
-
xcss: styles.conversationStartersWrapper
|
|
206
|
-
}, /*#__PURE__*/React.createElement(ConversationStarters, {
|
|
207
|
-
isAgentDefault: agent.is_default,
|
|
208
|
-
userDefinedConversationStarters: userDefinedConversationStarters,
|
|
209
|
-
onConversationStarterClick: conversationStarter => {
|
|
210
|
-
onConversationStartersClick ? onConversationStartersClick(conversationStarter) : onConversationStarter({
|
|
211
|
-
agentId: agent.id,
|
|
212
|
-
prompt: conversationStarter.message
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}))), !(isRovoDev && fg('rovo_dev_themed_identity_card')) && /*#__PURE__*/React.createElement(AgentActions, {
|
|
216
|
-
agent: agent,
|
|
217
|
-
onEditAgent: () => onEditAgent(agent.id),
|
|
218
|
-
onCopyAgent: () => onCopyAgent(agent.id),
|
|
219
|
-
onDuplicateAgent: () => onDuplicateAgent(agent.id),
|
|
220
|
-
onDeleteAgent: handleOnDelete,
|
|
221
|
-
onChatClick: onChatClick ? event => onChatClick(event) : () => onOpenChatFullScreen(agent.id, agent.name),
|
|
222
|
-
resourceClient: resourceClient,
|
|
223
|
-
onViewFullProfileClick: () => onViewFullProfile(agent.id),
|
|
224
|
-
hideMoreActions: hideMoreActions
|
|
225
|
-
}))));
|
|
226
|
-
}
|
|
227
141
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
228
142
|
xcss: styles.cardContainerStyles
|
|
229
143
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
230
144
|
agentId: agent.id,
|
|
231
|
-
agentNamedId: (_agent$
|
|
145
|
+
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
232
146
|
height: 48,
|
|
233
147
|
agentIdentityAccountId: agent.identity_account_id,
|
|
234
148
|
isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card')
|
|
@@ -236,7 +150,7 @@ const AgentProfileCard = ({
|
|
|
236
150
|
xcss: styles.avatarStyles
|
|
237
151
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
238
152
|
agentId: agent.id,
|
|
239
|
-
agentNamedId: (_agent$
|
|
153
|
+
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
240
154
|
agentIdentityAccountId: agent.identity_account_id,
|
|
241
155
|
size: "large",
|
|
242
156
|
isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card'),
|
|
@@ -253,11 +167,11 @@ const AgentProfileCard = ({
|
|
|
253
167
|
onStarToggle: handleSetFavourite,
|
|
254
168
|
showStarButton: !(isRovoDev && fg('rovo_dev_themed_identity_card')),
|
|
255
169
|
isHidden: agent.visibility === 'PRIVATE',
|
|
256
|
-
creatorRender: ((_agent$
|
|
170
|
+
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/React.createElement(AgentProfileCreator, {
|
|
257
171
|
creator: {
|
|
258
|
-
type: (_agent$
|
|
259
|
-
name: ((_agent$
|
|
260
|
-
profileLink: ((_agent$
|
|
172
|
+
type: (_agent$creatorInfo2 = agent.creatorInfo) === null || _agent$creatorInfo2 === void 0 ? void 0 : _agent$creatorInfo2.type,
|
|
173
|
+
name: ((_agent$creatorInfo3 = agent.creatorInfo) === null || _agent$creatorInfo3 === void 0 ? void 0 : _agent$creatorInfo3.name) || '',
|
|
174
|
+
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
261
175
|
},
|
|
262
176
|
isLoading: false,
|
|
263
177
|
onCreatorLinkClick: () => {}
|
|
@@ -269,7 +183,18 @@ const AgentProfileCard = ({
|
|
|
269
183
|
direction: "column",
|
|
270
184
|
gap: "space.050",
|
|
271
185
|
xcss: styles.disclosureWrapper
|
|
272
|
-
}, /*#__PURE__*/React.createElement(
|
|
186
|
+
}, fg('ptc-links-migrate-atlaskit-link') ? /*#__PURE__*/React.createElement(TeamsLink, {
|
|
187
|
+
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
188
|
+
intent: "reference",
|
|
189
|
+
appearance: "subtle"
|
|
190
|
+
}, /*#__PURE__*/React.createElement(InformationCircleIcon, {
|
|
191
|
+
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
192
|
+
label: "",
|
|
193
|
+
size: "small"
|
|
194
|
+
}), ` `, /*#__PURE__*/React.createElement(Text, {
|
|
195
|
+
size: "small",
|
|
196
|
+
color: "color.text.subtlest"
|
|
197
|
+
}, formatMessage(messages.aiDisclaimer))) : /*#__PURE__*/React.createElement(Link, {
|
|
273
198
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
274
199
|
target: "_blank",
|
|
275
200
|
rel: "noopener noreferrer",
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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 = "0.0.0-development") !== 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: "0.0.0-development",
|
|
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', "0.0.0-development");
|
|
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', "0.0.0-development");
|
|
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';
|