@atlaskit/profilecard 24.49.10 → 24.49.12
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 +14 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +19 -106
- 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/AgentProfileCard.js +19 -94
- 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/AgentProfileCard.js +19 -106
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.49.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1624a6cc2aec4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1624a6cc2aec4) -
|
|
8
|
+
Removed unnecessary TeamsNavigationProviders and props
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 24.49.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 24.49.10
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "
|
|
14
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
66
66
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
67
67
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
68
68
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
69
|
-
headers.append('atl-client-version', "
|
|
69
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -24,7 +24,6 @@ var _GeneratedAvatar = require("@atlaskit/rovo-agent-components/ui/agent-avatar/
|
|
|
24
24
|
var _AgentAvatar = require("@atlaskit/rovo-agent-components/ui/AgentAvatar");
|
|
25
25
|
var _AgentProfileInfo = require("@atlaskit/rovo-agent-components/ui/AgentProfileInfo");
|
|
26
26
|
var _teamsAppInternalAnalytics = require("@atlaskit/teams-app-internal-analytics");
|
|
27
|
-
var _teamsAppInternalNavigation = require("@atlaskit/teams-app-internal-navigation");
|
|
28
27
|
var _teamsLink = require("@atlaskit/teams-app-internal-navigation/teams-link");
|
|
29
28
|
var _analytics = require("../../util/analytics");
|
|
30
29
|
var _performance = require("../../util/performance");
|
|
@@ -47,7 +46,7 @@ var styles = {
|
|
|
47
46
|
disclosureWrapper: "_zulp1b66 _18zrpxbi _1q51utpp _85i5utpp"
|
|
48
47
|
};
|
|
49
48
|
var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
50
|
-
var _agent$user_defined_c, _agent$
|
|
49
|
+
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
51
50
|
var agent = _ref.agent,
|
|
52
51
|
isLoading = _ref.isLoading,
|
|
53
52
|
cloudId = _ref.cloudId,
|
|
@@ -187,108 +186,11 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
187
186
|
}
|
|
188
187
|
var isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
189
188
|
var shouldShowConversationStarters = !(isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card')) && !((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
190
|
-
if ((0, _platformFeatureFlags.fg)('ptc-links-migrate-atlaskit-link')) {
|
|
191
|
-
var _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
192
|
-
return /*#__PURE__*/_react.default.createElement(_teamsAppInternalNavigation.TeamsNavigationProvider, {
|
|
193
|
-
value: {
|
|
194
|
-
navigate: function navigate() {}
|
|
195
|
-
}
|
|
196
|
-
}, /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
197
|
-
xcss: styles.cardContainerStyles
|
|
198
|
-
}, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
|
|
199
|
-
agentId: agent.id,
|
|
200
|
-
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
201
|
-
height: 48,
|
|
202
|
-
agentIdentityAccountId: agent.identity_account_id,
|
|
203
|
-
isRovoDev: isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card')
|
|
204
|
-
}), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
205
|
-
xcss: styles.avatarStyles
|
|
206
|
-
}, /*#__PURE__*/_react.default.createElement(_AgentAvatar.AgentAvatar, {
|
|
207
|
-
agentId: agent.id,
|
|
208
|
-
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
209
|
-
agentIdentityAccountId: agent.identity_account_id,
|
|
210
|
-
size: "large",
|
|
211
|
-
isRovoDev: isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card'),
|
|
212
|
-
isForgeAgent: (0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar') ? (0, _isForgeAgent.isForgeAgentByCreatorType)(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
213
|
-
forgeAgentIconUrl: agent.icon
|
|
214
|
-
})), /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
215
|
-
space: "space.100",
|
|
216
|
-
xcss: styles.detailWrapper
|
|
217
|
-
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
218
|
-
xcss: styles.agentProfileInfoWrapper
|
|
219
|
-
}, /*#__PURE__*/_react.default.createElement(_AgentProfileInfo.AgentProfileInfo, {
|
|
220
|
-
agentName: agent.name,
|
|
221
|
-
isStarred: isStarred,
|
|
222
|
-
onStarToggle: handleSetFavourite,
|
|
223
|
-
showStarButton: !(isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card')),
|
|
224
|
-
isHidden: agent.visibility === 'PRIVATE',
|
|
225
|
-
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/_react.default.createElement(_AgentProfileInfo.AgentProfileCreator, {
|
|
226
|
-
creator: {
|
|
227
|
-
type: (_agent$creatorInfo2 = agent.creatorInfo) === null || _agent$creatorInfo2 === void 0 ? void 0 : _agent$creatorInfo2.type,
|
|
228
|
-
name: ((_agent$creatorInfo3 = agent.creatorInfo) === null || _agent$creatorInfo3 === void 0 ? void 0 : _agent$creatorInfo3.name) || '',
|
|
229
|
-
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
230
|
-
},
|
|
231
|
-
isLoading: false,
|
|
232
|
-
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
233
|
-
}),
|
|
234
|
-
starCountRender: null,
|
|
235
|
-
agentDescription: agent.description
|
|
236
|
-
})), !hideAiDisclaimer && (0, _platformFeatureFlags.fg)('rovo_display_ai_disclaimer_on_agent_profile_card') && /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
237
|
-
alignItems: "start",
|
|
238
|
-
direction: "column",
|
|
239
|
-
gap: "space.050",
|
|
240
|
-
xcss: styles.disclosureWrapper
|
|
241
|
-
}, /*#__PURE__*/_react.default.createElement(_teamsLink.TeamsLink, {
|
|
242
|
-
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
243
|
-
intent: "reference",
|
|
244
|
-
appearance: "subtle"
|
|
245
|
-
}, /*#__PURE__*/_react.default.createElement(_informationCircle.default, {
|
|
246
|
-
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
247
|
-
label: "",
|
|
248
|
-
size: "small"
|
|
249
|
-
}), " ", /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
250
|
-
size: "small",
|
|
251
|
-
color: "color.text.subtlest"
|
|
252
|
-
}, formatMessage(_messages.messages.aiDisclaimer)))), shouldShowConversationStarters && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
253
|
-
xcss: styles.conversationStartersWrapper
|
|
254
|
-
}, /*#__PURE__*/_react.default.createElement(_ConversationStarters.ConversationStarters, {
|
|
255
|
-
isAgentDefault: agent.is_default,
|
|
256
|
-
userDefinedConversationStarters: userDefinedConversationStarters,
|
|
257
|
-
onConversationStarterClick: function onConversationStarterClick(conversationStarter) {
|
|
258
|
-
onConversationStartersClick ? onConversationStartersClick(conversationStarter) : onConversationStarter({
|
|
259
|
-
agentId: agent.id,
|
|
260
|
-
prompt: conversationStarter.message
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
}))), !(isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card')) && /*#__PURE__*/_react.default.createElement(_Actions.AgentActions, {
|
|
264
|
-
agent: agent,
|
|
265
|
-
onEditAgent: function onEditAgent() {
|
|
266
|
-
return _onEditAgent(agent.id);
|
|
267
|
-
},
|
|
268
|
-
onCopyAgent: function onCopyAgent() {
|
|
269
|
-
return _onCopyAgent(agent.id);
|
|
270
|
-
},
|
|
271
|
-
onDuplicateAgent: function onDuplicateAgent() {
|
|
272
|
-
return _onDuplicateAgent(agent.id);
|
|
273
|
-
},
|
|
274
|
-
onDeleteAgent: handleOnDelete,
|
|
275
|
-
onChatClick: onChatClick ? function (event) {
|
|
276
|
-
return onChatClick(event);
|
|
277
|
-
} : function () {
|
|
278
|
-
return onOpenChatFullScreen(agent.id, agent.name);
|
|
279
|
-
},
|
|
280
|
-
resourceClient: resourceClient,
|
|
281
|
-
onViewFullProfileClick: function onViewFullProfileClick() {
|
|
282
|
-
return onViewFullProfile(agent.id);
|
|
283
|
-
},
|
|
284
|
-
hideMoreActions: hideMoreActions
|
|
285
|
-
}))));
|
|
286
|
-
}
|
|
287
189
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
288
190
|
xcss: styles.cardContainerStyles
|
|
289
191
|
}, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
|
|
290
192
|
agentId: agent.id,
|
|
291
|
-
agentNamedId: (_agent$
|
|
193
|
+
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
292
194
|
height: 48,
|
|
293
195
|
agentIdentityAccountId: agent.identity_account_id,
|
|
294
196
|
isRovoDev: isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card')
|
|
@@ -296,7 +198,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
296
198
|
xcss: styles.avatarStyles
|
|
297
199
|
}, /*#__PURE__*/_react.default.createElement(_AgentAvatar.AgentAvatar, {
|
|
298
200
|
agentId: agent.id,
|
|
299
|
-
agentNamedId: (_agent$
|
|
201
|
+
agentNamedId: (_agent$external_confi2 = agent.external_config_reference) !== null && _agent$external_confi2 !== void 0 ? _agent$external_confi2 : agent.named_id,
|
|
300
202
|
agentIdentityAccountId: agent.identity_account_id,
|
|
301
203
|
size: "large",
|
|
302
204
|
isRovoDev: isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card'),
|
|
@@ -313,11 +215,11 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
313
215
|
onStarToggle: handleSetFavourite,
|
|
314
216
|
showStarButton: !(isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card')),
|
|
315
217
|
isHidden: agent.visibility === 'PRIVATE',
|
|
316
|
-
creatorRender: ((_agent$
|
|
218
|
+
creatorRender: ((_agent$creatorInfo = agent.creatorInfo) === null || _agent$creatorInfo === void 0 ? void 0 : _agent$creatorInfo.type) && /*#__PURE__*/_react.default.createElement(_AgentProfileInfo.AgentProfileCreator, {
|
|
317
219
|
creator: {
|
|
318
|
-
type: (_agent$
|
|
319
|
-
name: ((_agent$
|
|
320
|
-
profileLink: ((_agent$
|
|
220
|
+
type: (_agent$creatorInfo2 = agent.creatorInfo) === null || _agent$creatorInfo2 === void 0 ? void 0 : _agent$creatorInfo2.type,
|
|
221
|
+
name: ((_agent$creatorInfo3 = agent.creatorInfo) === null || _agent$creatorInfo3 === void 0 ? void 0 : _agent$creatorInfo3.name) || '',
|
|
222
|
+
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
321
223
|
},
|
|
322
224
|
isLoading: false,
|
|
323
225
|
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
@@ -329,7 +231,18 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
329
231
|
direction: "column",
|
|
330
232
|
gap: "space.050",
|
|
331
233
|
xcss: styles.disclosureWrapper
|
|
332
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
234
|
+
}, (0, _platformFeatureFlags.fg)('ptc-links-migrate-atlaskit-link') ? /*#__PURE__*/_react.default.createElement(_teamsLink.TeamsLink, {
|
|
235
|
+
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
236
|
+
intent: "reference",
|
|
237
|
+
appearance: "subtle"
|
|
238
|
+
}, /*#__PURE__*/_react.default.createElement(_informationCircle.default, {
|
|
239
|
+
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
240
|
+
label: "",
|
|
241
|
+
size: "small"
|
|
242
|
+
}), " ", /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
243
|
+
size: "small",
|
|
244
|
+
color: "color.text.subtlest"
|
|
245
|
+
}, formatMessage(_messages.messages.aiDisclaimer))) : /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
333
246
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
334
247
|
target: "_blank",
|
|
335
248
|
rel: "noopener noreferrer",
|
|
@@ -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) {
|
|
@@ -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",
|
|
@@ -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) {
|
|
@@ -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",
|
|
@@ -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
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.49.
|
|
3
|
+
"version": "24.49.12",
|
|
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
49
|
"@atlaskit/empty-state": "^10.1.0",
|
|
50
|
-
"@atlaskit/give-kudos": "^5.
|
|
50
|
+
"@atlaskit/give-kudos": "^5.1.0",
|
|
51
51
|
"@atlaskit/heading": "^5.4.0",
|
|
52
|
-
"@atlaskit/icon": "^34.
|
|
52
|
+
"@atlaskit/icon": "^34.1.0",
|
|
53
53
|
"@atlaskit/link": "3.4.2",
|
|
54
|
-
"@atlaskit/lozenge": "^13.
|
|
54
|
+
"@atlaskit/lozenge": "^13.7.0",
|
|
55
55
|
"@atlaskit/menu": "^8.4.0",
|
|
56
56
|
"@atlaskit/modal-dialog": "^14.15.0",
|
|
57
57
|
"@atlaskit/people-teams-ui-public": "^3.7.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.
|
|
62
|
-
"@atlaskit/rovo-triggers": "^5.
|
|
61
|
+
"@atlaskit/rovo-agent-components": "^4.1.0",
|
|
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.
|
|
67
|
+
"@atlaskit/teams-avatar": "^2.5.0",
|
|
68
68
|
"@atlaskit/teams-public": "^0.74.0",
|
|
69
69
|
"@atlaskit/theme": "^23.0.0",
|
|
70
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^62.3.0",
|
|
71
71
|
"@atlaskit/tokens": "^13.0.0",
|
|
72
72
|
"@atlaskit/tooltip": "^21.1.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|