@atlaskit/profilecard 25.7.11 → 25.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-with-ai-disclaimer--default--rovo-display-ai-disclaimer-on-agent-profile-card-true.png +0 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/client/RovoAgentCardClient.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +3 -15
- package/dist/cjs/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/cjs/components/User/ProfileCard.js +1 -16
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/RovoAgentCardClient.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +3 -15
- package/dist/es2019/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/es2019/components/User/ProfileCard.js +1 -11
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/RovoAgentCardClient.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +3 -15
- package/dist/esm/components/Agent/AgentProfileCardResourced.js +1 -1
- package/dist/esm/components/User/ProfileCard.js +1 -16
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/types.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/package.json +10 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 25.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5917ce672b7ce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5917ce672b7ce) -
|
|
8
|
+
Cleaned up feature gate ptc-links-migrate-atlaskit-link and updated failing VR tests
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 25.8.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`2a6f508e4e6d2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2a6f508e4e6d2) -
|
|
16
|
+
Hide Rovo logo, hide behaviour, and show 'Agent by …' for REMOTE_A2A agents on the agent profile
|
|
17
|
+
card and the browse agents modal view-agent panel.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`c868d2e1c59f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c868d2e1c59f6) -
|
|
22
|
+
Cleaned up stale feature flag ptc-links-migrate-atlaskit-link-button
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 25.7.11
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
Binary file
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
{
|
|
44
44
|
"path": "../../../design-system/empty-state/afm-products/tsconfig.json"
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
"path": "../../../measurement/feature-gate-js-client/afm-products/tsconfig.json"
|
|
48
|
+
},
|
|
46
49
|
{
|
|
47
50
|
"path": "../../../team-central/give-kudos/afm-products/tsconfig.json"
|
|
48
51
|
},
|
|
@@ -83,7 +83,7 @@ var RovoAgentCardClient = exports.default = /*#__PURE__*/function (_CachingClien
|
|
|
83
83
|
return (0, _createClass2.default)(RovoAgentCardClient, [{
|
|
84
84
|
key: "basePath",
|
|
85
85
|
value: function basePath() {
|
|
86
|
-
return
|
|
86
|
+
return '/gateway/api/assist/rovo/v1/agents';
|
|
87
87
|
}
|
|
88
88
|
}, {
|
|
89
89
|
key: "getActivationId",
|
|
@@ -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', "25.
|
|
14
|
+
headers.append('atl-client-version', "25.8.0");
|
|
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', "25.
|
|
69
|
+
headers.append('atl-client-version', "25.8.0");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -16,7 +16,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _reactIntl = require("react-intl");
|
|
18
18
|
var _informationCircle = _interopRequireDefault(require("@atlaskit/icon/core/information-circle"));
|
|
19
|
-
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
20
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
21
|
var _isForgeAgent = require("@atlaskit/rovo-agent-components/common/utils/is-forge-agent");
|
|
@@ -200,7 +199,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
200
199
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
201
200
|
height: 48,
|
|
202
201
|
agentIdentityAccountId: agent.identity_account_id,
|
|
203
|
-
isRovoDev: isRovoDev
|
|
202
|
+
isRovoDev: isRovoDev,
|
|
203
|
+
creatorType: (0, _platformFeatureFlags.fg)('jira_improve_agent_profile_for_a2a') ? agent.creator_type : undefined
|
|
204
204
|
}), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
205
205
|
xcss: styles.avatarStyles
|
|
206
206
|
}, /*#__PURE__*/_react.default.createElement(_AgentAvatar.AgentAvatar, {
|
|
@@ -238,7 +238,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
238
238
|
direction: "column",
|
|
239
239
|
gap: "space.050",
|
|
240
240
|
xcss: styles.disclosureWrapper
|
|
241
|
-
},
|
|
241
|
+
}, /*#__PURE__*/_react.default.createElement(_teamsLink.TeamsLink, {
|
|
242
242
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
243
243
|
intent: "reference",
|
|
244
244
|
appearance: "subtle"
|
|
@@ -249,18 +249,6 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
249
249
|
}), " ", /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
250
250
|
size: "small",
|
|
251
251
|
color: "color.text.subtlest"
|
|
252
|
-
}, formatMessage(_messages.messages.aiDisclaimer))) : /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
253
|
-
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
254
|
-
target: "_blank",
|
|
255
|
-
rel: "noopener noreferrer",
|
|
256
|
-
appearance: "subtle"
|
|
257
|
-
}, /*#__PURE__*/_react.default.createElement(_informationCircle.default, {
|
|
258
|
-
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
259
|
-
label: "",
|
|
260
|
-
size: "small"
|
|
261
|
-
}), " ", /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
262
|
-
size: "small",
|
|
263
|
-
color: "color.text.subtlest"
|
|
264
252
|
}, formatMessage(_messages.messages.aiDisclaimer)))), shouldShowConversationStarters && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
265
253
|
xcss: styles.conversationStartersWrapper
|
|
266
254
|
}, /*#__PURE__*/_react.default.createElement(_ConversationStarters.ConversationStarters, {
|
|
@@ -78,7 +78,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
|
|
|
78
78
|
}
|
|
79
79
|
case 3:
|
|
80
80
|
creatorInfo = (0, _AgentProfileInfo.getAgentCreator)({
|
|
81
|
-
creatorType: creator_type
|
|
81
|
+
creatorType: creator_type,
|
|
82
82
|
authoringTeam: authoringTeam ? {
|
|
83
83
|
displayName: (_authoringTeam$displa = authoringTeam.displayName) !== null && _authoringTeam$displa !== void 0 ? _authoringTeam$displa : '',
|
|
84
84
|
profileLink: (_authoringTeam$profil = authoringTeam.profileUrl) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : undefined
|
|
@@ -13,7 +13,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
|
|
16
|
-
var _new = require("@atlaskit/button/new");
|
|
17
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
19
18
|
var _teamsAppInternalAnalytics = require("@atlaskit/teams-app-internal-analytics");
|
|
@@ -181,7 +180,7 @@ var Actions = function Actions(_ref) {
|
|
|
181
180
|
testId: "profilecard-actions"
|
|
182
181
|
}, regularActions.map(function (action, index) {
|
|
183
182
|
var isKudos = action.id === GIVE_KUDOS_ACTION_ID;
|
|
184
|
-
var button =
|
|
183
|
+
var button = /*#__PURE__*/_react.default.createElement(_teamsLinkButton.TeamsLinkButton, {
|
|
185
184
|
appearance: "default",
|
|
186
185
|
key: action.id || index,
|
|
187
186
|
onClick: function onClick(event) {
|
|
@@ -195,20 +194,6 @@ var Actions = function Actions(_ref) {
|
|
|
195
194
|
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
196
195
|
id: "action-button-".concat(action.id),
|
|
197
196
|
"aria-labelledby": "action-button-".concat(action.id, " profilecard-name-label")
|
|
198
|
-
}, action.label, isKudos && /*#__PURE__*/_react.default.createElement(_Card.AnimationWrapper, null, /*#__PURE__*/_react.default.createElement(_Card.KudosBlobAnimation, null))) : /*#__PURE__*/_react.default.createElement(_new.LinkButton, {
|
|
199
|
-
appearance: "default",
|
|
200
|
-
key: action.id || index,
|
|
201
|
-
onClick: function onClick(event) {
|
|
202
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
203
|
-
args[_key2 - 1] = arguments[_key2];
|
|
204
|
-
}
|
|
205
|
-
return onActionClick(action, args, event, index);
|
|
206
|
-
},
|
|
207
|
-
href: action.link || '',
|
|
208
|
-
target: action.target,
|
|
209
|
-
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
210
|
-
id: "action-button-".concat(action.id),
|
|
211
|
-
"aria-labelledby": "action-button-".concat(action.id, " profilecard-name-label")
|
|
212
197
|
}, action.label, isKudos && /*#__PURE__*/_react.default.createElement(_Card.AnimationWrapper, null, /*#__PURE__*/_react.default.createElement(_Card.KudosBlobAnimation, null)));
|
|
213
198
|
if (isKudos) {
|
|
214
199
|
return /*#__PURE__*/_react.default.createElement(_Card.AnimatedKudosButton, {
|
|
@@ -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 = "25.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.8.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
16
16
|
};
|
|
17
17
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
18
18
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "25.
|
|
34
|
+
packageVersion: "25.8.0"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -101,7 +101,7 @@ export default class RovoAgentCardClient extends CachingClient {
|
|
|
101
101
|
this.options = options;
|
|
102
102
|
}
|
|
103
103
|
basePath() {
|
|
104
|
-
return
|
|
104
|
+
return '/gateway/api/assist/rovo/v1/agents';
|
|
105
105
|
}
|
|
106
106
|
async getActivationId(cloudId, product) {
|
|
107
107
|
var _response$tenantConte, _response$tenantConte2, _response$tenantConte3, _response$tenantConte4;
|
|
@@ -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', "25.
|
|
9
|
+
headers.append('atl-client-version', "25.8.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
|
|
|
78
78
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
79
79
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
80
80
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
81
|
-
headers.append('atl-client-version', "25.
|
|
81
|
+
headers.append('atl-client-version', "25.8.0");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
7
|
-
import Link from '@atlaskit/link';
|
|
8
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Box, Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/common/utils/is-forge-agent';
|
|
@@ -150,7 +149,8 @@ const AgentProfileCard = ({
|
|
|
150
149
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
151
150
|
height: 48,
|
|
152
151
|
agentIdentityAccountId: agent.identity_account_id,
|
|
153
|
-
isRovoDev: isRovoDev
|
|
152
|
+
isRovoDev: isRovoDev,
|
|
153
|
+
creatorType: fg('jira_improve_agent_profile_for_a2a') ? agent.creator_type : undefined
|
|
154
154
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
155
155
|
xcss: styles.avatarStyles
|
|
156
156
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
@@ -188,7 +188,7 @@ const AgentProfileCard = ({
|
|
|
188
188
|
direction: "column",
|
|
189
189
|
gap: "space.050",
|
|
190
190
|
xcss: styles.disclosureWrapper
|
|
191
|
-
},
|
|
191
|
+
}, /*#__PURE__*/React.createElement(TeamsLink, {
|
|
192
192
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
193
193
|
intent: "reference",
|
|
194
194
|
appearance: "subtle"
|
|
@@ -199,18 +199,6 @@ const AgentProfileCard = ({
|
|
|
199
199
|
}), ` `, /*#__PURE__*/React.createElement(Text, {
|
|
200
200
|
size: "small",
|
|
201
201
|
color: "color.text.subtlest"
|
|
202
|
-
}, formatMessage(messages.aiDisclaimer))) : /*#__PURE__*/React.createElement(Link, {
|
|
203
|
-
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
204
|
-
target: "_blank",
|
|
205
|
-
rel: "noopener noreferrer",
|
|
206
|
-
appearance: "subtle"
|
|
207
|
-
}, /*#__PURE__*/React.createElement(InformationCircleIcon, {
|
|
208
|
-
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
209
|
-
label: "",
|
|
210
|
-
size: "small"
|
|
211
|
-
}), ` `, /*#__PURE__*/React.createElement(Text, {
|
|
212
|
-
size: "small",
|
|
213
|
-
color: "color.text.subtlest"
|
|
214
202
|
}, formatMessage(messages.aiDisclaimer)))), shouldShowConversationStarters && /*#__PURE__*/React.createElement(Box, {
|
|
215
203
|
xcss: styles.conversationStartersWrapper
|
|
216
204
|
}, /*#__PURE__*/React.createElement(ConversationStarters, {
|
|
@@ -47,7 +47,7 @@ export const AgentProfileCardResourced = props => {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const creatorInfo = getAgentCreator({
|
|
50
|
-
creatorType: creator_type
|
|
50
|
+
creatorType: creator_type,
|
|
51
51
|
authoringTeam: authoringTeam ? {
|
|
52
52
|
displayName: (_authoringTeam$displa = authoringTeam.displayName) !== null && _authoringTeam$displa !== void 0 ? _authoringTeam$displa : '',
|
|
53
53
|
profileLink: (_authoringTeam$profil = authoringTeam.profileUrl) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : undefined
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import Avatar from '@atlaskit/avatar';
|
|
5
|
-
import { LinkButton } from '@atlaskit/button/new';
|
|
6
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import Spinner from '@atlaskit/spinner';
|
|
8
7
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
@@ -166,7 +165,7 @@ const Actions = ({
|
|
|
166
165
|
testId: "profilecard-actions"
|
|
167
166
|
}, regularActions.map((action, index) => {
|
|
168
167
|
const isKudos = action.id === GIVE_KUDOS_ACTION_ID;
|
|
169
|
-
const button =
|
|
168
|
+
const button = /*#__PURE__*/React.createElement(TeamsLinkButton, {
|
|
170
169
|
appearance: "default",
|
|
171
170
|
key: action.id || index,
|
|
172
171
|
onClick: (event, ...args) => onActionClick(action, args, event, index),
|
|
@@ -175,15 +174,6 @@ const Actions = ({
|
|
|
175
174
|
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
176
175
|
id: `action-button-${action.id}`,
|
|
177
176
|
"aria-labelledby": `action-button-${action.id} profilecard-name-label`
|
|
178
|
-
}, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null))) : /*#__PURE__*/React.createElement(LinkButton, {
|
|
179
|
-
appearance: "default",
|
|
180
|
-
key: action.id || index,
|
|
181
|
-
onClick: (event, ...args) => onActionClick(action, args, event, index),
|
|
182
|
-
href: action.link || '',
|
|
183
|
-
target: action.target,
|
|
184
|
-
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
185
|
-
id: `action-button-${action.id}`,
|
|
186
|
-
"aria-labelledby": `action-button-${action.id} profilecard-name-label`
|
|
187
177
|
}, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null)));
|
|
188
178
|
if (isKudos) {
|
|
189
179
|
return /*#__PURE__*/React.createElement(AnimatedKudosButton, {
|
|
@@ -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 = "25.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.8.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
6
6
|
};
|
|
7
7
|
const TEAM_SUBJECT = 'teamProfileCard';
|
|
8
8
|
const USER_SUBJECT = 'profilecard';
|
|
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
19
19
|
actionSubjectId,
|
|
20
20
|
attributes: {
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "25.
|
|
22
|
+
packageVersion: "25.8.0",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -76,7 +76,7 @@ var RovoAgentCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
76
76
|
return _createClass(RovoAgentCardClient, [{
|
|
77
77
|
key: "basePath",
|
|
78
78
|
value: function basePath() {
|
|
79
|
-
return
|
|
79
|
+
return '/gateway/api/assist/rovo/v1/agents';
|
|
80
80
|
}
|
|
81
81
|
}, {
|
|
82
82
|
key: "getActivationId",
|
|
@@ -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', "25.
|
|
7
|
+
headers.append('atl-client-version', "25.8.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
59
59
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
60
60
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
61
61
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
62
|
-
headers.append('atl-client-version', "25.
|
|
62
|
+
headers.append('atl-client-version', "25.8.0");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -10,7 +10,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
10
10
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
12
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
13
|
-
import Link from '@atlaskit/link';
|
|
14
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { Box, Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
16
15
|
import { isForgeAgentByCreatorType } from '@atlaskit/rovo-agent-components/common/utils/is-forge-agent';
|
|
@@ -191,7 +190,8 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
191
190
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
192
191
|
height: 48,
|
|
193
192
|
agentIdentityAccountId: agent.identity_account_id,
|
|
194
|
-
isRovoDev: isRovoDev
|
|
193
|
+
isRovoDev: isRovoDev,
|
|
194
|
+
creatorType: fg('jira_improve_agent_profile_for_a2a') ? agent.creator_type : undefined
|
|
195
195
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
196
196
|
xcss: styles.avatarStyles
|
|
197
197
|
}, /*#__PURE__*/React.createElement(AgentAvatar, {
|
|
@@ -229,7 +229,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
229
229
|
direction: "column",
|
|
230
230
|
gap: "space.050",
|
|
231
231
|
xcss: styles.disclosureWrapper
|
|
232
|
-
},
|
|
232
|
+
}, /*#__PURE__*/React.createElement(TeamsLink, {
|
|
233
233
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
234
234
|
intent: "reference",
|
|
235
235
|
appearance: "subtle"
|
|
@@ -240,18 +240,6 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
240
240
|
}), " ", /*#__PURE__*/React.createElement(Text, {
|
|
241
241
|
size: "small",
|
|
242
242
|
color: "color.text.subtlest"
|
|
243
|
-
}, formatMessage(messages.aiDisclaimer))) : /*#__PURE__*/React.createElement(Link, {
|
|
244
|
-
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
245
|
-
target: "_blank",
|
|
246
|
-
rel: "noopener noreferrer",
|
|
247
|
-
appearance: "subtle"
|
|
248
|
-
}, /*#__PURE__*/React.createElement(InformationCircleIcon, {
|
|
249
|
-
color: "var(--ds-icon-subtlest, #6B6E76)",
|
|
250
|
-
label: "",
|
|
251
|
-
size: "small"
|
|
252
|
-
}), " ", /*#__PURE__*/React.createElement(Text, {
|
|
253
|
-
size: "small",
|
|
254
|
-
color: "color.text.subtlest"
|
|
255
243
|
}, formatMessage(messages.aiDisclaimer)))), shouldShowConversationStarters && /*#__PURE__*/React.createElement(Box, {
|
|
256
244
|
xcss: styles.conversationStartersWrapper
|
|
257
245
|
}, /*#__PURE__*/React.createElement(ConversationStarters, {
|
|
@@ -69,7 +69,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
|
|
|
69
69
|
}
|
|
70
70
|
case 3:
|
|
71
71
|
creatorInfo = getAgentCreator({
|
|
72
|
-
creatorType: creator_type
|
|
72
|
+
creatorType: creator_type,
|
|
73
73
|
authoringTeam: authoringTeam ? {
|
|
74
74
|
displayName: (_authoringTeam$displa = authoringTeam.displayName) !== null && _authoringTeam$displa !== void 0 ? _authoringTeam$displa : '',
|
|
75
75
|
profileLink: (_authoringTeam$profil = authoringTeam.profileUrl) !== null && _authoringTeam$profil !== void 0 ? _authoringTeam$profil : undefined
|
|
@@ -7,7 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
9
|
import Avatar from '@atlaskit/avatar';
|
|
10
|
-
import { LinkButton } from '@atlaskit/button/new';
|
|
11
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import Spinner from '@atlaskit/spinner';
|
|
13
12
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
@@ -172,7 +171,7 @@ var Actions = function Actions(_ref) {
|
|
|
172
171
|
testId: "profilecard-actions"
|
|
173
172
|
}, regularActions.map(function (action, index) {
|
|
174
173
|
var isKudos = action.id === GIVE_KUDOS_ACTION_ID;
|
|
175
|
-
var button =
|
|
174
|
+
var button = /*#__PURE__*/React.createElement(TeamsLinkButton, {
|
|
176
175
|
appearance: "default",
|
|
177
176
|
key: action.id || index,
|
|
178
177
|
onClick: function onClick(event) {
|
|
@@ -186,20 +185,6 @@ var Actions = function Actions(_ref) {
|
|
|
186
185
|
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
187
186
|
id: "action-button-".concat(action.id),
|
|
188
187
|
"aria-labelledby": "action-button-".concat(action.id, " profilecard-name-label")
|
|
189
|
-
}, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null))) : /*#__PURE__*/React.createElement(LinkButton, {
|
|
190
|
-
appearance: "default",
|
|
191
|
-
key: action.id || index,
|
|
192
|
-
onClick: function onClick(event) {
|
|
193
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
194
|
-
args[_key2 - 1] = arguments[_key2];
|
|
195
|
-
}
|
|
196
|
-
return onActionClick(action, args, event, index);
|
|
197
|
-
},
|
|
198
|
-
href: action.link || '',
|
|
199
|
-
target: action.target,
|
|
200
|
-
autoFocus: index === 0 && isTriggeredUsingKeyboard && !isRenderedInPortal,
|
|
201
|
-
id: "action-button-".concat(action.id),
|
|
202
|
-
"aria-labelledby": "action-button-".concat(action.id, " profilecard-name-label")
|
|
203
188
|
}, action.label, isKudos && /*#__PURE__*/React.createElement(AnimationWrapper, null, /*#__PURE__*/React.createElement(KudosBlobAnimation, null)));
|
|
204
189
|
if (isKudos) {
|
|
205
190
|
return /*#__PURE__*/React.createElement(AnimatedKudosButton, {
|
|
@@ -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 = "25.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.8.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
9
9
|
};
|
|
10
10
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
11
11
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
24
24
|
actionSubjectId: actionSubjectId,
|
|
25
25
|
attributes: _objectSpread(_objectSpread({
|
|
26
26
|
packageName: "@atlaskit/profilecard",
|
|
27
|
-
packageVersion: "25.
|
|
27
|
+
packageVersion: "25.8.0"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
package/dist/types/types.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface RovoAgent {
|
|
|
66
66
|
name: string;
|
|
67
67
|
description: string | null;
|
|
68
68
|
system_prompt_template?: string | null;
|
|
69
|
-
creator_type: 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'ROVO_DEV';
|
|
69
|
+
creator_type: 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'REMOTE_A2A' | 'ROVO_DEV';
|
|
70
70
|
creator?: string | null;
|
|
71
71
|
visibility?: 'PUBLIC' | 'PRIVATE' | null;
|
|
72
72
|
is_default: boolean;
|
|
@@ -91,7 +91,7 @@ export type RovoAgentCardClientResult = {
|
|
|
91
91
|
aggData: RovoAgentAgg | null | undefined;
|
|
92
92
|
};
|
|
93
93
|
export interface RovoAgentCreatorInfo {
|
|
94
|
-
type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE' | 'OOTB';
|
|
94
|
+
type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE' | 'OOTB' | 'REMOTE_A2A';
|
|
95
95
|
name?: string;
|
|
96
96
|
profileLink?: string;
|
|
97
97
|
id?: string;
|
|
@@ -66,7 +66,7 @@ export interface RovoAgent {
|
|
|
66
66
|
name: string;
|
|
67
67
|
description: string | null;
|
|
68
68
|
system_prompt_template?: string | null;
|
|
69
|
-
creator_type: 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'ROVO_DEV';
|
|
69
|
+
creator_type: 'SYSTEM' | 'CUSTOMER' | 'THIRD_PARTY' | 'FORGE' | 'REMOTE_A2A' | 'ROVO_DEV';
|
|
70
70
|
creator?: string | null;
|
|
71
71
|
visibility?: 'PUBLIC' | 'PRIVATE' | null;
|
|
72
72
|
is_default: boolean;
|
|
@@ -91,7 +91,7 @@ export type RovoAgentCardClientResult = {
|
|
|
91
91
|
aggData: RovoAgentAgg | null | undefined;
|
|
92
92
|
};
|
|
93
93
|
export interface RovoAgentCreatorInfo {
|
|
94
|
-
type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE' | 'OOTB';
|
|
94
|
+
type: 'CUSTOMER' | 'SYSTEM' | 'THIRD_PARTY' | 'FORGE' | 'OOTB' | 'REMOTE_A2A';
|
|
95
95
|
name?: string;
|
|
96
96
|
profileLink?: string;
|
|
97
97
|
id?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.8.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,9 +54,10 @@
|
|
|
54
54
|
"@atlaskit/css": "^0.19.0",
|
|
55
55
|
"@atlaskit/dropdown-menu": "^16.10.0",
|
|
56
56
|
"@atlaskit/empty-state": "^10.2.0",
|
|
57
|
+
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
57
58
|
"@atlaskit/give-kudos": "^5.12.0",
|
|
58
59
|
"@atlaskit/heading": "^5.4.0",
|
|
59
|
-
"@atlaskit/icon": "^35.
|
|
60
|
+
"@atlaskit/icon": "^35.4.0",
|
|
60
61
|
"@atlaskit/link": "3.4.2",
|
|
61
62
|
"@atlaskit/lozenge": "^13.8.0",
|
|
62
63
|
"@atlaskit/menu": "^8.5.0",
|
|
@@ -65,8 +66,8 @@
|
|
|
65
66
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
67
|
"@atlaskit/popup": "^4.23.0",
|
|
67
68
|
"@atlaskit/primitives": "^19.0.0",
|
|
68
|
-
"@atlaskit/rovo-agent-components": "^5.
|
|
69
|
-
"@atlaskit/rovo-triggers": "^7.
|
|
69
|
+
"@atlaskit/rovo-agent-components": "^5.2.0",
|
|
70
|
+
"@atlaskit/rovo-triggers": "^7.3.0",
|
|
70
71
|
"@atlaskit/spinner": "^19.1.0",
|
|
71
72
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
72
73
|
"@atlaskit/teams-app-internal-analytics": "^1.32.0",
|
|
@@ -74,9 +75,9 @@
|
|
|
74
75
|
"@atlaskit/teams-avatar": "^2.7.0",
|
|
75
76
|
"@atlaskit/teams-public": "^1.4.0",
|
|
76
77
|
"@atlaskit/theme": "^25.0.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
78
|
+
"@atlaskit/tmp-editor-statsig": "^88.3.0",
|
|
78
79
|
"@atlaskit/tokens": "^13.1.0",
|
|
79
|
-
"@atlaskit/tooltip": "^22.
|
|
80
|
+
"@atlaskit/tooltip": "^22.6.0",
|
|
80
81
|
"@atlassian/studio-entry-link": "^1.1.0",
|
|
81
82
|
"@babel/runtime": "^7.0.0",
|
|
82
83
|
"@compiled/react": "^0.20.0",
|
|
@@ -94,7 +95,6 @@
|
|
|
94
95
|
},
|
|
95
96
|
"devDependencies": {
|
|
96
97
|
"@af/visual-regression": "workspace:^",
|
|
97
|
-
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
98
98
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
99
99
|
"@atlassian/feature-flags-storybook-utils": "^0.4.0",
|
|
100
100
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
@@ -135,21 +135,12 @@
|
|
|
135
135
|
"asf-944-account-sync": {
|
|
136
136
|
"type": "boolean"
|
|
137
137
|
},
|
|
138
|
-
"ptc-links-migrate-atlaskit-link": {
|
|
139
|
-
"type": "boolean"
|
|
140
|
-
},
|
|
141
|
-
"ptc-links-migrate-atlaskit-link-button": {
|
|
142
|
-
"type": "boolean"
|
|
143
|
-
},
|
|
144
138
|
"enable_ptc_townsquare_reporting_lines_unsharded": {
|
|
145
139
|
"type": "boolean"
|
|
146
140
|
},
|
|
147
141
|
"platform_agg_user_query_doc_change": {
|
|
148
142
|
"type": "boolean"
|
|
149
143
|
},
|
|
150
|
-
"pt-deprecate-assistance-service": {
|
|
151
|
-
"type": "boolean"
|
|
152
|
-
},
|
|
153
144
|
"platform-adopt-teams-nav-config": {
|
|
154
145
|
"type": "boolean"
|
|
155
146
|
},
|
|
@@ -177,6 +168,9 @@
|
|
|
177
168
|
"rovo_agent_support_a2a_avatar": {
|
|
178
169
|
"type": "boolean"
|
|
179
170
|
},
|
|
171
|
+
"jira_improve_agent_profile_for_a2a": {
|
|
172
|
+
"type": "boolean"
|
|
173
|
+
},
|
|
180
174
|
"jira_ai_hide_conversation_starters_profilecard": {
|
|
181
175
|
"type": "boolean"
|
|
182
176
|
},
|