@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
|
@@ -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';
|
|
@@ -18,7 +18,6 @@ import { AgentBanner } from '@atlaskit/rovo-agent-components/ui/agent-avatar/Gen
|
|
|
18
18
|
import { AgentAvatar } from '@atlaskit/rovo-agent-components/ui/AgentAvatar';
|
|
19
19
|
import { AgentProfileCreator, AgentProfileInfo } from '@atlaskit/rovo-agent-components/ui/AgentProfileInfo';
|
|
20
20
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/teams-app-internal-analytics';
|
|
21
|
-
import { TeamsNavigationProvider } from '@atlaskit/teams-app-internal-navigation';
|
|
22
21
|
import { TeamsLink } from '@atlaskit/teams-app-internal-navigation/teams-link';
|
|
23
22
|
import { PACKAGE_META_DATA } from '../../util/analytics';
|
|
24
23
|
import { getPageTime } from '../../util/performance';
|
|
@@ -38,7 +37,7 @@ var styles = {
|
|
|
38
37
|
disclosureWrapper: "_zulp1b66 _18zrpxbi _1q51utpp _85i5utpp"
|
|
39
38
|
};
|
|
40
39
|
var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
41
|
-
var _agent$user_defined_c, _agent$
|
|
40
|
+
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
42
41
|
var agent = _ref.agent,
|
|
43
42
|
isLoading = _ref.isLoading,
|
|
44
43
|
cloudId = _ref.cloudId,
|
|
@@ -178,108 +177,11 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
178
177
|
}
|
|
179
178
|
var isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
180
179
|
var shouldShowConversationStarters = !(isRovoDev && fg('rovo_dev_themed_identity_card')) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
181
|
-
if (fg('ptc-links-migrate-atlaskit-link')) {
|
|
182
|
-
var _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
183
|
-
return /*#__PURE__*/React.createElement(TeamsNavigationProvider, {
|
|
184
|
-
value: {
|
|
185
|
-
navigate: function navigate() {}
|
|
186
|
-
}
|
|
187
|
-
}, /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
188
|
-
xcss: styles.cardContainerStyles
|
|
189
|
-
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
190
|
-
agentId: agent.id,
|
|
191
|
-
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
192
|
-
height: 48,
|
|
193
|
-
agentIdentityAccountId: agent.identity_account_id,
|
|
194
|
-
isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card')
|
|
195
|
-
}), /*#__PURE__*/React.createElement(Box, {
|
|
196
|
-
xcss: styles.avatarStyles
|
|
197
|
-
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
198
|
-
agentId: agent.id,
|
|
199
|
-
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
200
|
-
agentIdentityAccountId: agent.identity_account_id,
|
|
201
|
-
size: "large",
|
|
202
|
-
isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card'),
|
|
203
|
-
isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
204
|
-
forgeAgentIconUrl: agent.icon
|
|
205
|
-
})), /*#__PURE__*/React.createElement(Stack, {
|
|
206
|
-
space: "space.100",
|
|
207
|
-
xcss: styles.detailWrapper
|
|
208
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
209
|
-
xcss: styles.agentProfileInfoWrapper
|
|
210
|
-
}, /*#__PURE__*/React.createElement(AgentProfileInfo, {
|
|
211
|
-
agentName: agent.name,
|
|
212
|
-
isStarred: isStarred,
|
|
213
|
-
onStarToggle: handleSetFavourite,
|
|
214
|
-
showStarButton: !(isRovoDev && fg('rovo_dev_themed_identity_card')),
|
|
215
|
-
isHidden: agent.visibility === 'PRIVATE',
|
|
216
|
-
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/React.createElement(AgentProfileCreator, {
|
|
217
|
-
creator: {
|
|
218
|
-
type: (_agent$creatorInfo2 = agent.creatorInfo) === null || _agent$creatorInfo2 === void 0 ? void 0 : _agent$creatorInfo2.type,
|
|
219
|
-
name: ((_agent$creatorInfo3 = agent.creatorInfo) === null || _agent$creatorInfo3 === void 0 ? void 0 : _agent$creatorInfo3.name) || '',
|
|
220
|
-
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
221
|
-
},
|
|
222
|
-
isLoading: false,
|
|
223
|
-
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
224
|
-
}),
|
|
225
|
-
starCountRender: null,
|
|
226
|
-
agentDescription: agent.description
|
|
227
|
-
})), !hideAiDisclaimer && fg('rovo_display_ai_disclaimer_on_agent_profile_card') && /*#__PURE__*/React.createElement(Flex, {
|
|
228
|
-
alignItems: "start",
|
|
229
|
-
direction: "column",
|
|
230
|
-
gap: "space.050",
|
|
231
|
-
xcss: styles.disclosureWrapper
|
|
232
|
-
}, /*#__PURE__*/React.createElement(TeamsLink, {
|
|
233
|
-
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
234
|
-
intent: "reference",
|
|
235
|
-
appearance: "subtle"
|
|
236
|
-
}, /*#__PURE__*/React.createElement(InformationCircleIcon, {
|
|
237
|
-
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
238
|
-
label: "",
|
|
239
|
-
size: "small"
|
|
240
|
-
}), " ", /*#__PURE__*/React.createElement(Text, {
|
|
241
|
-
size: "small",
|
|
242
|
-
color: "color.text.subtlest"
|
|
243
|
-
}, formatMessage(messages.aiDisclaimer)))), shouldShowConversationStarters && /*#__PURE__*/React.createElement(Box, {
|
|
244
|
-
xcss: styles.conversationStartersWrapper
|
|
245
|
-
}, /*#__PURE__*/React.createElement(ConversationStarters, {
|
|
246
|
-
isAgentDefault: agent.is_default,
|
|
247
|
-
userDefinedConversationStarters: userDefinedConversationStarters,
|
|
248
|
-
onConversationStarterClick: function onConversationStarterClick(conversationStarter) {
|
|
249
|
-
onConversationStartersClick ? onConversationStartersClick(conversationStarter) : onConversationStarter({
|
|
250
|
-
agentId: agent.id,
|
|
251
|
-
prompt: conversationStarter.message
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
}))), !(isRovoDev && fg('rovo_dev_themed_identity_card')) && /*#__PURE__*/React.createElement(AgentActions, {
|
|
255
|
-
agent: agent,
|
|
256
|
-
onEditAgent: function onEditAgent() {
|
|
257
|
-
return _onEditAgent(agent.id);
|
|
258
|
-
},
|
|
259
|
-
onCopyAgent: function onCopyAgent() {
|
|
260
|
-
return _onCopyAgent(agent.id);
|
|
261
|
-
},
|
|
262
|
-
onDuplicateAgent: function onDuplicateAgent() {
|
|
263
|
-
return _onDuplicateAgent(agent.id);
|
|
264
|
-
},
|
|
265
|
-
onDeleteAgent: handleOnDelete,
|
|
266
|
-
onChatClick: onChatClick ? function (event) {
|
|
267
|
-
return onChatClick(event);
|
|
268
|
-
} : function () {
|
|
269
|
-
return onOpenChatFullScreen(agent.id, agent.name);
|
|
270
|
-
},
|
|
271
|
-
resourceClient: resourceClient,
|
|
272
|
-
onViewFullProfileClick: function onViewFullProfileClick() {
|
|
273
|
-
return onViewFullProfile(agent.id);
|
|
274
|
-
},
|
|
275
|
-
hideMoreActions: hideMoreActions
|
|
276
|
-
}))));
|
|
277
|
-
}
|
|
278
180
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
279
181
|
xcss: styles.cardContainerStyles
|
|
280
182
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
281
183
|
agentId: agent.id,
|
|
282
|
-
agentNamedId: (_agent$
|
|
184
|
+
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
283
185
|
height: 48,
|
|
284
186
|
agentIdentityAccountId: agent.identity_account_id,
|
|
285
187
|
isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card')
|
|
@@ -287,7 +189,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
287
189
|
xcss: styles.avatarStyles
|
|
288
190
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
289
191
|
agentId: agent.id,
|
|
290
|
-
agentNamedId: (_agent$
|
|
192
|
+
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
291
193
|
agentIdentityAccountId: agent.identity_account_id,
|
|
292
194
|
size: "large",
|
|
293
195
|
isRovoDev: isRovoDev && fg('rovo_dev_themed_identity_card'),
|
|
@@ -304,11 +206,11 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
304
206
|
onStarToggle: handleSetFavourite,
|
|
305
207
|
showStarButton: !(isRovoDev && fg('rovo_dev_themed_identity_card')),
|
|
306
208
|
isHidden: agent.visibility === 'PRIVATE',
|
|
307
|
-
creatorRender: ((_agent$
|
|
209
|
+
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/React.createElement(AgentProfileCreator, {
|
|
308
210
|
creator: {
|
|
309
|
-
type: (_agent$
|
|
310
|
-
name: ((_agent$
|
|
311
|
-
profileLink: ((_agent$
|
|
211
|
+
type: (_agent$creatorInfo2 = agent.creatorInfo) === null || _agent$creatorInfo2 === void 0 ? void 0 : _agent$creatorInfo2.type,
|
|
212
|
+
name: ((_agent$creatorInfo3 = agent.creatorInfo) === null || _agent$creatorInfo3 === void 0 ? void 0 : _agent$creatorInfo3.name) || '',
|
|
213
|
+
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
312
214
|
},
|
|
313
215
|
isLoading: false,
|
|
314
216
|
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
@@ -320,7 +222,18 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
320
222
|
direction: "column",
|
|
321
223
|
gap: "space.050",
|
|
322
224
|
xcss: styles.disclosureWrapper
|
|
323
|
-
}, /*#__PURE__*/React.createElement(
|
|
225
|
+
}, fg('ptc-links-migrate-atlaskit-link') ? /*#__PURE__*/React.createElement(TeamsLink, {
|
|
226
|
+
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
227
|
+
intent: "reference",
|
|
228
|
+
appearance: "subtle"
|
|
229
|
+
}, /*#__PURE__*/React.createElement(InformationCircleIcon, {
|
|
230
|
+
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
231
|
+
label: "",
|
|
232
|
+
size: "small"
|
|
233
|
+
}), " ", /*#__PURE__*/React.createElement(Text, {
|
|
234
|
+
size: "small",
|
|
235
|
+
color: "color.text.subtlest"
|
|
236
|
+
}, formatMessage(messages.aiDisclaimer))) : /*#__PURE__*/React.createElement(Link, {
|
|
324
237
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
325
238
|
target: "_blank",
|
|
326
239
|
rel: "noopener noreferrer",
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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 = "0.0.0-development") !== 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: "0.0.0-development"
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,32 +42,32 @@
|
|
|
42
42
|
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.39.0",
|
|
43
43
|
"@atlaskit/atlassian-context": "^0.8.0",
|
|
44
44
|
"@atlaskit/avatar": "^25.11.0",
|
|
45
|
-
"@atlaskit/avatar-group": "^12.
|
|
45
|
+
"@atlaskit/avatar-group": "^12.7.0",
|
|
46
46
|
"@atlaskit/button": "^23.11.0",
|
|
47
47
|
"@atlaskit/css": "^0.19.0",
|
|
48
48
|
"@atlaskit/dropdown-menu": "^16.8.0",
|
|
49
|
-
"@atlaskit/empty-state": "^10.
|
|
49
|
+
"@atlaskit/empty-state": "^10.2.0",
|
|
50
50
|
"@atlaskit/give-kudos": "^5.1.0",
|
|
51
51
|
"@atlaskit/heading": "^5.4.0",
|
|
52
|
-
"@atlaskit/icon": "^34.
|
|
52
|
+
"@atlaskit/icon": "^34.2.0",
|
|
53
53
|
"@atlaskit/link": "3.4.2",
|
|
54
|
-
"@atlaskit/lozenge": "^13.
|
|
55
|
-
"@atlaskit/menu": "^8.
|
|
54
|
+
"@atlaskit/lozenge": "^13.7.0",
|
|
55
|
+
"@atlaskit/menu": "^8.5.0",
|
|
56
56
|
"@atlaskit/modal-dialog": "^14.15.0",
|
|
57
|
-
"@atlaskit/people-teams-ui-public": "^
|
|
57
|
+
"@atlaskit/people-teams-ui-public": "^4.0.0",
|
|
58
58
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
59
59
|
"@atlaskit/popup": "^4.16.0",
|
|
60
60
|
"@atlaskit/primitives": "^19.0.0",
|
|
61
|
-
"@atlaskit/rovo-agent-components": "^4.
|
|
61
|
+
"@atlaskit/rovo-agent-components": "^4.1.0",
|
|
62
62
|
"@atlaskit/rovo-triggers": "^5.38.0",
|
|
63
63
|
"@atlaskit/spinner": "^19.1.0",
|
|
64
64
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
65
65
|
"@atlaskit/teams-app-internal-analytics": "^1.27.0",
|
|
66
66
|
"@atlaskit/teams-app-internal-navigation": "^1.8.0",
|
|
67
|
-
"@atlaskit/teams-avatar": "^2.
|
|
68
|
-
"@atlaskit/teams-public": "^0.
|
|
69
|
-
"@atlaskit/theme": "^23.
|
|
70
|
-
"@atlaskit/tmp-editor-statsig": "^62.
|
|
67
|
+
"@atlaskit/teams-avatar": "^2.5.0",
|
|
68
|
+
"@atlaskit/teams-public": "^1.0.0",
|
|
69
|
+
"@atlaskit/theme": "^23.1.0",
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^62.4.0",
|
|
71
71
|
"@atlaskit/tokens": "^13.0.0",
|
|
72
72
|
"@atlaskit/tooltip": "^21.1.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"graphql": "^15.8.0",
|
|
78
78
|
"graphql-tag": "^2.10.1",
|
|
79
79
|
"lodash": "^4.17.21",
|
|
80
|
-
"lru_map": "^0.4.1"
|
|
81
|
-
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
80
|
+
"lru_map": "^0.4.1"
|
|
82
81
|
},
|
|
83
82
|
"peerDependencies": {
|
|
84
83
|
"react": "^18.2.0",
|
|
85
|
-
"react-dom": "^18.2.0"
|
|
84
|
+
"react-dom": "^18.2.0",
|
|
85
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@af/visual-regression": "workspace:^",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"es6-promise": "^4.0.5",
|
|
101
101
|
"fetch-mock": "^8.0.0",
|
|
102
102
|
"loader-utils": "^1.1.0",
|
|
103
|
+
"react-intl": "^6.6.2",
|
|
103
104
|
"sinon": "^2.2.0",
|
|
104
105
|
"typescript": "5.9.2",
|
|
105
106
|
"uid": "^0.0.2"
|
package/report.api.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
22
22
|
import { ComponentType } from 'react';
|
|
23
23
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
24
|
-
import { IntlShape } from 'react-intl
|
|
24
|
+
import { IntlShape } from 'react-intl';
|
|
25
25
|
import { LRUMap } from 'lru_map';
|
|
26
26
|
import { default as React_2 } from 'react';
|
|
27
27
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
|
-
import { IntlProvider } from 'react-intl
|
|
4
|
+
import { IntlProvider } from 'react-intl';
|
|
5
5
|
|
|
6
6
|
import { withPlatformFeatureGates } from '@atlassian/feature-flags-storybook-utils';
|
|
7
7
|
import {
|