@atlaskit/profilecard 26.9.3 → 26.9.5
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 +20 -0
- package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-with-drop-1-fixes--default.png +0 -0
- package/__tests__/vr-tests/agent-profilecard.vr.tsx +9 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/Actions.compiled.css +1 -0
- package/dist/cjs/components/Agent/Actions.js +5 -2
- package/dist/cjs/components/Agent/AgentProfileCard.compiled.css +4 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +19 -8
- package/dist/cjs/components/Agent/AgentProfileCardWrapper.compiled.css +2 -1
- package/dist/cjs/components/Agent/AgentProfileCardWrapper.js +10 -2
- package/dist/cjs/components/Agent/utils/index.js +1 -2
- package/dist/cjs/components/Team/TeamProfileCard.js +1 -1
- package/dist/cjs/components/User/ProfileCardDetails.js +1 -1
- 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.compiled.css +1 -0
- package/dist/es2019/components/Agent/Actions.js +5 -2
- package/dist/es2019/components/Agent/AgentProfileCard.compiled.css +4 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +19 -8
- package/dist/es2019/components/Agent/AgentProfileCardWrapper.compiled.css +2 -1
- package/dist/es2019/components/Agent/AgentProfileCardWrapper.js +10 -2
- package/dist/es2019/components/Agent/utils/index.js +1 -2
- package/dist/es2019/components/Team/TeamProfileCard.js +1 -1
- package/dist/es2019/components/User/ProfileCardDetails.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.compiled.css +1 -0
- package/dist/esm/components/Agent/Actions.js +5 -2
- package/dist/esm/components/Agent/AgentProfileCard.compiled.css +4 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +19 -8
- package/dist/esm/components/Agent/AgentProfileCardWrapper.compiled.css +2 -1
- package/dist/esm/components/Agent/AgentProfileCardWrapper.js +10 -2
- package/dist/esm/components/Agent/utils/index.js +1 -2
- package/dist/esm/components/Team/TeamProfileCard.js +1 -1
- package/dist/esm/components/User/ProfileCardDetails.js +1 -1
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.9.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 26.9.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`fe3de6357310f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fe3de6357310f) -
|
|
14
|
+
Clean up stale feature gate asf-944-account-sync (final value: true)
|
|
15
|
+
- [`471266b5a3fc5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/471266b5a3fc5) -
|
|
16
|
+
Migrate deprecated Lozenge appearance values to the new semantic appearances.
|
|
17
|
+
- [`f3f5ada0cba94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f3f5ada0cba94) -
|
|
18
|
+
Align the agent profile card styling with Figma, gated on
|
|
19
|
+
`platform_editor_agent_mentions_drop_one_fixes` and the `platform_editor_agent_mentions`
|
|
20
|
+
experiment
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 26.9.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
Binary file
|
|
@@ -10,3 +10,12 @@ snapshot(AgentProfileCardExample, {
|
|
|
10
10
|
['rovo_display_ai_disclaimer_on_agent_profile_card']: [true],
|
|
11
11
|
},
|
|
12
12
|
});
|
|
13
|
+
|
|
14
|
+
snapshot(AgentProfileCardExample, {
|
|
15
|
+
description: 'Agent profile card with drop 1 fixes',
|
|
16
|
+
featureFlags: {
|
|
17
|
+
rovo_display_ai_disclaimer_on_agent_profile_card: true,
|
|
18
|
+
platform_editor_agent_mentions: true,
|
|
19
|
+
platform_editor_agent_mentions_drop_one_fixes: true,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -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', "26.9.
|
|
14
|
+
headers.append('atl-client-version', "26.9.4");
|
|
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', "26.9.
|
|
69
|
+
headers.append('atl-client-version', "26.9.4");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
5
|
._1nmz1hna{word-break:break-word}
|
|
6
6
|
._4t3igktf{height:20px}
|
|
7
|
+
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
7
8
|
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
8
9
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
9
10
|
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
@@ -15,16 +15,19 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _reactIntl = require("react-intl");
|
|
17
17
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
20
|
var _AgentDropdownMenu = require("@atlaskit/rovo-agent-components/ui/AgentDropdownMenu");
|
|
20
21
|
var _teamsAppInternalAnalytics = require("@atlaskit/teams-app-internal-analytics");
|
|
22
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
23
|
var _AgentDeleteConfirmationModal = require("./AgentDeleteConfirmationModal");
|
|
22
24
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
23
25
|
var styles = {
|
|
24
26
|
chatToAgentButtonContainer: "_1bsb1osq",
|
|
25
27
|
chatToAgentButtonWrapper: "_1e0c1txw _1bah1h6o _k48p1wq8 _4t3igktf",
|
|
26
28
|
chatPillTextStyles: "_1nmz1hna _y3gn1e5h _o5721jtm",
|
|
27
|
-
actionsWrapperStyles: "
|
|
29
|
+
actionsWrapperStyles: "_ca0qpxbi _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo",
|
|
30
|
+
actionsWrapperStylesLegacy: "_ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo"
|
|
28
31
|
};
|
|
29
32
|
var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
30
33
|
var onEditAgent = _ref.onEditAgent,
|
|
@@ -78,7 +81,7 @@ var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
|
78
81
|
}, [agent.id, fireEvent]);
|
|
79
82
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
80
83
|
space: "space.100",
|
|
81
|
-
xcss: styles.actionsWrapperStyles
|
|
84
|
+
xcss: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? styles.actionsWrapperStyles : styles.actionsWrapperStylesLegacy
|
|
82
85
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
83
86
|
xcss: styles.chatToAgentButtonContainer
|
|
84
87
|
}, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
3
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
4
4
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
5
|
-
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
5
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
6
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
6
7
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
7
8
|
._18m915vq{overflow-y:hidden}
|
|
9
|
+
._1i4qfg65{overflow-wrap:anywhere}
|
|
8
10
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
11
|
+
._1nmz1hna{word-break:break-word}
|
|
9
12
|
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
10
13
|
._1q51utpp{padding-block-start:var(--ds-space-150,9pt)}
|
|
11
14
|
._1reo15vq{overflow-x:hidden}
|
|
@@ -25,6 +25,7 @@ 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
27
|
var _teamsLink = require("@atlaskit/teams-app-internal-navigation/teams-link");
|
|
28
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
28
29
|
var _analytics = require("../../util/analytics");
|
|
29
30
|
var _performance = require("../../util/performance");
|
|
30
31
|
var _LoadingState = require("../common/LoadingState");
|
|
@@ -40,10 +41,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
40
41
|
var styles = {
|
|
41
42
|
detailWrapper: "_1q511ejb",
|
|
42
43
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
43
|
-
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq
|
|
44
|
+
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _kqswh2mm",
|
|
45
|
+
cardContainerStylesLegacy: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
|
|
44
46
|
agentProfileInfoWrapper: "_18zrpxbi",
|
|
47
|
+
descriptionWrapper: "_18zrpxbi",
|
|
48
|
+
description: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
45
49
|
conversationStartersWrapper: "_18zrutpp",
|
|
46
|
-
disclosureWrapper: "_zulp1b66 _18zrpxbi
|
|
50
|
+
disclosureWrapper: "_zulp1b66 _18zrpxbi",
|
|
51
|
+
disclosureWrapperLegacy: "_zulp1b66 _18zrpxbi _1q51utpp _85i5utpp"
|
|
47
52
|
};
|
|
48
53
|
var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
49
54
|
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
@@ -205,7 +210,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
205
210
|
var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
206
211
|
var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && (0, _platformFeatureFlags.fg)('issue_view_agent_discovery_fast_follows'));
|
|
207
212
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
208
|
-
xcss: styles.cardContainerStyles
|
|
213
|
+
xcss: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
209
214
|
}, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
|
|
210
215
|
agentId: agent.id,
|
|
211
216
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -224,7 +229,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
224
229
|
isForgeAgent: (0, _platformFeatureFlags.fg)('rovo_agent_support_a2a_avatar') ? (0, _isForgeAgent.isForgeAgentByCreatorType)(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
225
230
|
forgeAgentIconUrl: agent.icon
|
|
226
231
|
})), /*#__PURE__*/_react.default.createElement(_compiled.Stack, {
|
|
227
|
-
space:
|
|
232
|
+
space: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? 'space.150' : 'space.100',
|
|
228
233
|
xcss: styles.detailWrapper
|
|
229
234
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
230
235
|
xcss: styles.agentProfileInfoWrapper
|
|
@@ -241,15 +246,21 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
241
246
|
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
242
247
|
},
|
|
243
248
|
isLoading: false,
|
|
244
|
-
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
249
|
+
onCreatorLinkClick: function onCreatorLinkClick() {},
|
|
250
|
+
hideCreatorIcon: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes')
|
|
245
251
|
}),
|
|
246
252
|
starCountRender: null,
|
|
247
|
-
agentDescription: agent.description
|
|
248
|
-
})),
|
|
253
|
+
agentDescription: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
|
|
254
|
+
})), !!agent.description && (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
255
|
+
xcss: styles.descriptionWrapper
|
|
256
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
257
|
+
xcss: styles.description,
|
|
258
|
+
as: "p"
|
|
259
|
+
}, agent.description)), !hideAiDisclaimer && (0, _platformFeatureFlags.fg)('rovo_display_ai_disclaimer_on_agent_profile_card') && /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
249
260
|
alignItems: "start",
|
|
250
261
|
direction: "column",
|
|
251
262
|
gap: "space.050",
|
|
252
|
-
xcss: styles.disclosureWrapper
|
|
263
|
+
xcss: (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
253
264
|
}, /*#__PURE__*/_react.default.createElement(_teamsLink.TeamsLink, {
|
|
254
265
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
255
266
|
intent: "reference",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
._2rko1mok{border-radius:var(--ds-radius-large,8px)}.
|
|
2
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
3
|
+
._1bsb1gwv{width:360px}
|
|
3
4
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
@@ -9,13 +9,21 @@ exports.AgentProfileCardWrapper = void 0;
|
|
|
9
9
|
require("./AgentProfileCardWrapper.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
15
|
var styles = {
|
|
14
|
-
wrapper: "_2rko1mok _1bsb1gwv _bfhk1bhr"
|
|
16
|
+
wrapper: "_2rko1mok _1bsb1gwv _bfhk1bhr _16qs130s",
|
|
17
|
+
wrapperLegacy: "_2rko1mok _1bsb1gwv _bfhk1bhr"
|
|
15
18
|
};
|
|
16
19
|
var AgentProfileCardWrapper = exports.AgentProfileCardWrapper = function AgentProfileCardWrapper(_ref) {
|
|
17
20
|
var children = _ref.children;
|
|
21
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes')) {
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
23
|
+
xcss: styles.wrapper
|
|
24
|
+
}, children);
|
|
25
|
+
}
|
|
18
26
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
19
|
-
xcss: styles.
|
|
27
|
+
xcss: styles.wrapperLegacy
|
|
20
28
|
}, children);
|
|
21
29
|
};
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getStudioPath = exports.getStudioHost = exports.getAtlassianStudioAgentEditUrl = exports.getAtlassianStudioAgentDuplicateUrl = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
var _studioEntryLink = require("@atlassian/studio-entry-link");
|
|
9
8
|
var STUDIO_PROD_URL = 'https://studio.atlassian.com';
|
|
10
9
|
var STUDIO_STAGING_URL = 'https://atlassian-studio.stg-east.frontend.public.atl-paas.net';
|
|
@@ -19,7 +18,7 @@ var getStudioHost = exports.getStudioHost = function getStudioHost() {
|
|
|
19
18
|
return isStaging() ? STUDIO_STAGING_URL : STUDIO_PROD_URL;
|
|
20
19
|
};
|
|
21
20
|
var getStudioPath = exports.getStudioPath = function getStudioPath(path, email) {
|
|
22
|
-
if (email
|
|
21
|
+
if (email) {
|
|
23
22
|
return (0, _studioEntryLink.getStudioSessionSyncUrl)(getStudioEnv(), path, email);
|
|
24
23
|
}
|
|
25
24
|
return "".concat(getStudioHost()).concat(path);
|
|
@@ -104,7 +104,7 @@ var TeamMembers = function TeamMembers(_ref) {
|
|
|
104
104
|
count: count
|
|
105
105
|
}
|
|
106
106
|
}))), isArchived && /*#__PURE__*/_react.default.createElement(_TeamCard.ArchiveLozengeWrapper, null, /*#__PURE__*/_react.default.createElement(_lozenge.default, {
|
|
107
|
-
appearance: "
|
|
107
|
+
appearance: "neutral",
|
|
108
108
|
isBold: true
|
|
109
109
|
}, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.default.archivedLozenge))), members && members.length > 0 && /*#__PURE__*/_react.default.createElement(_TeamCard.AvatarSection, null, /*#__PURE__*/_react.default.createElement(_avatarGroup.default, {
|
|
110
110
|
appearance: "stack",
|
|
@@ -115,7 +115,7 @@ var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
|
|
|
115
115
|
testId: "profilecard-name",
|
|
116
116
|
id: "profilecard-name-label"
|
|
117
117
|
}, name), hasDisabledAccountLozenge && /*#__PURE__*/_react.default.createElement(_Card.LozengeWrapper, null, /*#__PURE__*/_react.default.createElement(_lozenge.default, {
|
|
118
|
-
appearance: "
|
|
118
|
+
appearance: "neutral",
|
|
119
119
|
isBold: true
|
|
120
120
|
}, status === 'inactive' ? /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.default.inactiveAccountMsg) : /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.default.closedAccountMsg))), /*#__PURE__*/_react.default.createElement(_Card.DisabledInfo, null, disabledAccountDesc(statusModifiedDate, disabledAccountMessage, status)), status === 'inactive' && /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
|
|
121
121
|
icon: "companyName"
|
|
@@ -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 = "26.9.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.9.4") !== 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: "26.9.
|
|
34
|
+
packageVersion: "26.9.4"
|
|
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', "26.9.
|
|
9
|
+
headers.append('atl-client-version', "26.9.4");
|
|
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', "26.9.
|
|
81
|
+
headers.append('atl-client-version', "26.9.4");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
5
|
._1nmz1hna{word-break:break-word}
|
|
6
6
|
._4t3igktf{height:20px}
|
|
7
|
+
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
7
8
|
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
8
9
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
9
10
|
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
@@ -4,15 +4,18 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { useCallback, useState } from 'react';
|
|
5
5
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
import Button from '@atlaskit/button/new';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
8
9
|
import { AgentDropdownMenu } from '@atlaskit/rovo-agent-components/ui/AgentDropdownMenu';
|
|
9
10
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
11
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
12
|
import { AgentDeleteConfirmationModal } from './AgentDeleteConfirmationModal';
|
|
11
13
|
const styles = {
|
|
12
14
|
chatToAgentButtonContainer: "_1bsb1osq",
|
|
13
15
|
chatToAgentButtonWrapper: "_1e0c1txw _1bah1h6o _k48p1wq8 _4t3igktf",
|
|
14
16
|
chatPillTextStyles: "_1nmz1hna _y3gn1e5h _o5721jtm",
|
|
15
|
-
actionsWrapperStyles: "
|
|
17
|
+
actionsWrapperStyles: "_ca0qpxbi _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo",
|
|
18
|
+
actionsWrapperStylesLegacy: "_ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo"
|
|
16
19
|
};
|
|
17
20
|
export const AgentActions = ({
|
|
18
21
|
onEditAgent,
|
|
@@ -56,7 +59,7 @@ export const AgentActions = ({
|
|
|
56
59
|
}, [agent.id, fireEvent]);
|
|
57
60
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
|
|
58
61
|
space: "space.100",
|
|
59
|
-
xcss: styles.actionsWrapperStyles
|
|
62
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.actionsWrapperStyles : styles.actionsWrapperStylesLegacy
|
|
60
63
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
61
64
|
xcss: styles.chatToAgentButtonContainer
|
|
62
65
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
3
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
4
4
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
5
|
-
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
5
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
6
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
6
7
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
7
8
|
._18m915vq{overflow-y:hidden}
|
|
9
|
+
._1i4qfg65{overflow-wrap:anywhere}
|
|
8
10
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
11
|
+
._1nmz1hna{word-break:break-word}
|
|
9
12
|
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
10
13
|
._1q51utpp{padding-block-start:var(--ds-space-150,9pt)}
|
|
11
14
|
._1reo15vq{overflow-x:hidden}
|
|
@@ -13,6 +13,7 @@ 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
15
|
import { TeamsLink } from '@atlaskit/teams-app-internal-navigation/teams-link';
|
|
16
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
17
|
import { PACKAGE_META_DATA } from '../../util/analytics';
|
|
17
18
|
import { getPageTime } from '../../util/performance';
|
|
18
19
|
import { LoadingState } from '../common/LoadingState';
|
|
@@ -25,10 +26,14 @@ import { messages } from './messages';
|
|
|
25
26
|
const styles = {
|
|
26
27
|
detailWrapper: "_1q511ejb",
|
|
27
28
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
28
|
-
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq
|
|
29
|
+
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _kqswh2mm",
|
|
30
|
+
cardContainerStylesLegacy: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
|
|
29
31
|
agentProfileInfoWrapper: "_18zrpxbi",
|
|
32
|
+
descriptionWrapper: "_18zrpxbi",
|
|
33
|
+
description: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
30
34
|
conversationStartersWrapper: "_18zrutpp",
|
|
31
|
-
disclosureWrapper: "_zulp1b66 _18zrpxbi
|
|
35
|
+
disclosureWrapper: "_zulp1b66 _18zrpxbi",
|
|
36
|
+
disclosureWrapperLegacy: "_zulp1b66 _18zrpxbi _1q51utpp _85i5utpp"
|
|
32
37
|
};
|
|
33
38
|
const AgentProfileCard = ({
|
|
34
39
|
agent,
|
|
@@ -154,7 +159,7 @@ const AgentProfileCard = ({
|
|
|
154
159
|
const shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
155
160
|
const shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
|
|
156
161
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
157
|
-
xcss: styles.cardContainerStyles
|
|
162
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
158
163
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
159
164
|
agentId: agent.id,
|
|
160
165
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -173,7 +178,7 @@ const AgentProfileCard = ({
|
|
|
173
178
|
isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
174
179
|
forgeAgentIconUrl: agent.icon
|
|
175
180
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
176
|
-
space:
|
|
181
|
+
space: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? 'space.150' : 'space.100',
|
|
177
182
|
xcss: styles.detailWrapper
|
|
178
183
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
179
184
|
xcss: styles.agentProfileInfoWrapper
|
|
@@ -190,15 +195,21 @@ const AgentProfileCard = ({
|
|
|
190
195
|
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
191
196
|
},
|
|
192
197
|
isLoading: false,
|
|
193
|
-
onCreatorLinkClick: () => {}
|
|
198
|
+
onCreatorLinkClick: () => {},
|
|
199
|
+
hideCreatorIcon: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')
|
|
194
200
|
}),
|
|
195
201
|
starCountRender: null,
|
|
196
|
-
agentDescription: agent.description
|
|
197
|
-
})),
|
|
202
|
+
agentDescription: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
|
|
203
|
+
})), !!agent.description && expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') && /*#__PURE__*/React.createElement(Box, {
|
|
204
|
+
xcss: styles.descriptionWrapper
|
|
205
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
206
|
+
xcss: styles.description,
|
|
207
|
+
as: "p"
|
|
208
|
+
}, agent.description)), !hideAiDisclaimer && fg('rovo_display_ai_disclaimer_on_agent_profile_card') && /*#__PURE__*/React.createElement(Flex, {
|
|
198
209
|
alignItems: "start",
|
|
199
210
|
direction: "column",
|
|
200
211
|
gap: "space.050",
|
|
201
|
-
xcss: styles.disclosureWrapper
|
|
212
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
202
213
|
}, /*#__PURE__*/React.createElement(TeamsLink, {
|
|
203
214
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
204
215
|
intent: "reference",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
._2rko1mok{border-radius:var(--ds-radius-large,8px)}.
|
|
2
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
3
|
+
._1bsb1gwv{width:360px}
|
|
3
4
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
@@ -2,14 +2,22 @@
|
|
|
2
2
|
import "./AgentProfileCardWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
8
|
const styles = {
|
|
7
|
-
wrapper: "_2rko1mok _1bsb1gwv _bfhk1bhr"
|
|
9
|
+
wrapper: "_2rko1mok _1bsb1gwv _bfhk1bhr _16qs130s",
|
|
10
|
+
wrapperLegacy: "_2rko1mok _1bsb1gwv _bfhk1bhr"
|
|
8
11
|
};
|
|
9
12
|
export const AgentProfileCardWrapper = ({
|
|
10
13
|
children
|
|
11
14
|
}) => {
|
|
15
|
+
if (expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
17
|
+
xcss: styles.wrapper
|
|
18
|
+
}, children);
|
|
19
|
+
}
|
|
12
20
|
return /*#__PURE__*/React.createElement(Box, {
|
|
13
|
-
xcss: styles.
|
|
21
|
+
xcss: styles.wrapperLegacy
|
|
14
22
|
}, children);
|
|
15
23
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { getStudioSessionSyncUrl } from '@atlassian/studio-entry-link';
|
|
3
2
|
const STUDIO_PROD_URL = 'https://studio.atlassian.com';
|
|
4
3
|
const STUDIO_STAGING_URL = 'https://atlassian-studio.stg-east.frontend.public.atl-paas.net';
|
|
@@ -11,7 +10,7 @@ export const getStudioHost = () => {
|
|
|
11
10
|
return isStaging() ? STUDIO_STAGING_URL : STUDIO_PROD_URL;
|
|
12
11
|
};
|
|
13
12
|
export const getStudioPath = (path, email) => {
|
|
14
|
-
if (email
|
|
13
|
+
if (email) {
|
|
15
14
|
return getStudioSessionSyncUrl(getStudioEnv(), path, email);
|
|
16
15
|
}
|
|
17
16
|
return `${getStudioHost()}${path}`;
|
|
@@ -92,7 +92,7 @@ const TeamMembers = ({
|
|
|
92
92
|
count
|
|
93
93
|
}
|
|
94
94
|
}))), isArchived && /*#__PURE__*/React.createElement(ArchiveLozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, {
|
|
95
|
-
appearance: "
|
|
95
|
+
appearance: "neutral",
|
|
96
96
|
isBold: true
|
|
97
97
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.archivedLozenge))), members && members.length > 0 && /*#__PURE__*/React.createElement(AvatarSection, null, /*#__PURE__*/React.createElement(AvatarGroup, {
|
|
98
98
|
appearance: "stack",
|
|
@@ -107,7 +107,7 @@ const DisabledProfileCardDetails = props => {
|
|
|
107
107
|
testId: "profilecard-name",
|
|
108
108
|
id: "profilecard-name-label"
|
|
109
109
|
}, name), hasDisabledAccountLozenge && /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, {
|
|
110
|
-
appearance: "
|
|
110
|
+
appearance: "neutral",
|
|
111
111
|
isBold: true
|
|
112
112
|
}, status === 'inactive' ? /*#__PURE__*/React.createElement(FormattedMessage, messages.inactiveAccountMsg) : /*#__PURE__*/React.createElement(FormattedMessage, messages.closedAccountMsg))), /*#__PURE__*/React.createElement(DisabledInfo, null, disabledAccountDesc(statusModifiedDate, disabledAccountMessage, status)), status === 'inactive' && /*#__PURE__*/React.createElement(IconLabel, {
|
|
113
113
|
icon: "companyName"
|
|
@@ -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 = "26.9.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.9.4") !== 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: "26.9.
|
|
22
|
+
packageVersion: "26.9.4",
|
|
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', "26.9.
|
|
7
|
+
headers.append('atl-client-version', "26.9.4");
|
|
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', "26.9.
|
|
62
|
+
headers.append('atl-client-version', "26.9.4");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
._1e0c1txw{display:flex}
|
|
5
5
|
._1nmz1hna{word-break:break-word}
|
|
6
6
|
._4t3igktf{height:20px}
|
|
7
|
+
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
7
8
|
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
8
9
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
9
10
|
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
@@ -7,15 +7,18 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
7
7
|
import React, { useCallback, useState } from 'react';
|
|
8
8
|
import { defineMessages, useIntl } from 'react-intl';
|
|
9
9
|
import Button from '@atlaskit/button/new';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
11
12
|
import { AgentDropdownMenu } from '@atlaskit/rovo-agent-components/ui/AgentDropdownMenu';
|
|
12
13
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
14
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
15
|
import { AgentDeleteConfirmationModal } from './AgentDeleteConfirmationModal';
|
|
14
16
|
var styles = {
|
|
15
17
|
chatToAgentButtonContainer: "_1bsb1osq",
|
|
16
18
|
chatToAgentButtonWrapper: "_1e0c1txw _1bah1h6o _k48p1wq8 _4t3igktf",
|
|
17
19
|
chatPillTextStyles: "_1nmz1hna _y3gn1e5h _o5721jtm",
|
|
18
|
-
actionsWrapperStyles: "
|
|
20
|
+
actionsWrapperStyles: "_ca0qpxbi _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo",
|
|
21
|
+
actionsWrapperStylesLegacy: "_ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syazi7uo"
|
|
19
22
|
};
|
|
20
23
|
export var AgentActions = function AgentActions(_ref) {
|
|
21
24
|
var onEditAgent = _ref.onEditAgent,
|
|
@@ -69,7 +72,7 @@ export var AgentActions = function AgentActions(_ref) {
|
|
|
69
72
|
}, [agent.id, fireEvent]);
|
|
70
73
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
|
|
71
74
|
space: "space.100",
|
|
72
|
-
xcss: styles.actionsWrapperStyles
|
|
75
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.actionsWrapperStyles : styles.actionsWrapperStylesLegacy
|
|
73
76
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
74
77
|
xcss: styles.chatToAgentButtonContainer
|
|
75
78
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
3
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
4
4
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
5
|
-
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
5
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
6
|
+
._1mouze3t{margin-block:var(--ds-space-0,0)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
6
7
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
7
8
|
._18m915vq{overflow-y:hidden}
|
|
9
|
+
._1i4qfg65{overflow-wrap:anywhere}
|
|
8
10
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
11
|
+
._1nmz1hna{word-break:break-word}
|
|
9
12
|
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
10
13
|
._1q51utpp{padding-block-start:var(--ds-space-150,9pt)}
|
|
11
14
|
._1reo15vq{overflow-x:hidden}
|
|
@@ -19,6 +19,7 @@ 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
21
|
import { TeamsLink } from '@atlaskit/teams-app-internal-navigation/teams-link';
|
|
22
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
23
|
import { PACKAGE_META_DATA } from '../../util/analytics';
|
|
23
24
|
import { getPageTime } from '../../util/performance';
|
|
24
25
|
import { LoadingState } from '../common/LoadingState';
|
|
@@ -31,10 +32,14 @@ import { messages } from './messages';
|
|
|
31
32
|
var styles = {
|
|
32
33
|
detailWrapper: "_1q511ejb",
|
|
33
34
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
34
|
-
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq
|
|
35
|
+
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _kqswh2mm",
|
|
36
|
+
cardContainerStylesLegacy: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
|
|
35
37
|
agentProfileInfoWrapper: "_18zrpxbi",
|
|
38
|
+
descriptionWrapper: "_18zrpxbi",
|
|
39
|
+
description: "_1mouze3t _1i4qfg65 _1nmz1hna",
|
|
36
40
|
conversationStartersWrapper: "_18zrutpp",
|
|
37
|
-
disclosureWrapper: "_zulp1b66 _18zrpxbi
|
|
41
|
+
disclosureWrapper: "_zulp1b66 _18zrpxbi",
|
|
42
|
+
disclosureWrapperLegacy: "_zulp1b66 _18zrpxbi _1q51utpp _85i5utpp"
|
|
38
43
|
};
|
|
39
44
|
var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
40
45
|
var _agent$user_defined_c, _agent$external_confi, _agent$external_confi2, _agent$creatorInfo, _agent$creatorInfo2, _agent$creatorInfo3, _agent$creatorInfo4;
|
|
@@ -196,7 +201,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
196
201
|
var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
197
202
|
var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
|
|
198
203
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
199
|
-
xcss: styles.cardContainerStyles
|
|
204
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.cardContainerStyles : styles.cardContainerStylesLegacy
|
|
200
205
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
201
206
|
agentId: agent.id,
|
|
202
207
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -215,7 +220,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
215
220
|
isForgeAgent: fg('rovo_agent_support_a2a_avatar') ? isForgeAgentByCreatorType(agent.creator_type) : agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY',
|
|
216
221
|
forgeAgentIconUrl: agent.icon
|
|
217
222
|
})), /*#__PURE__*/React.createElement(Stack, {
|
|
218
|
-
space:
|
|
223
|
+
space: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? 'space.150' : 'space.100',
|
|
219
224
|
xcss: styles.detailWrapper
|
|
220
225
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
221
226
|
xcss: styles.agentProfileInfoWrapper
|
|
@@ -232,15 +237,21 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
232
237
|
profileLink: ((_agent$creatorInfo4 = agent.creatorInfo) === null || _agent$creatorInfo4 === void 0 ? void 0 : _agent$creatorInfo4.profileLink) || ''
|
|
233
238
|
},
|
|
234
239
|
isLoading: false,
|
|
235
|
-
onCreatorLinkClick: function onCreatorLinkClick() {}
|
|
240
|
+
onCreatorLinkClick: function onCreatorLinkClick() {},
|
|
241
|
+
hideCreatorIcon: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')
|
|
236
242
|
}),
|
|
237
243
|
starCountRender: null,
|
|
238
|
-
agentDescription: agent.description
|
|
239
|
-
})),
|
|
244
|
+
agentDescription: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? undefined : agent.description
|
|
245
|
+
})), !!agent.description && expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') && /*#__PURE__*/React.createElement(Box, {
|
|
246
|
+
xcss: styles.descriptionWrapper
|
|
247
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
248
|
+
xcss: styles.description,
|
|
249
|
+
as: "p"
|
|
250
|
+
}, agent.description)), !hideAiDisclaimer && fg('rovo_display_ai_disclaimer_on_agent_profile_card') && /*#__PURE__*/React.createElement(Flex, {
|
|
240
251
|
alignItems: "start",
|
|
241
252
|
direction: "column",
|
|
242
253
|
gap: "space.050",
|
|
243
|
-
xcss: styles.disclosureWrapper
|
|
254
|
+
xcss: expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? styles.disclosureWrapper : styles.disclosureWrapperLegacy
|
|
244
255
|
}, /*#__PURE__*/React.createElement(TeamsLink, {
|
|
245
256
|
href: "https://www.atlassian.com/trust/atlassian-intelligence",
|
|
246
257
|
intent: "reference",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
._2rko1mok{border-radius:var(--ds-radius-large,8px)}.
|
|
2
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
3
|
+
._1bsb1gwv{width:360px}
|
|
3
4
|
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
@@ -2,13 +2,21 @@
|
|
|
2
2
|
import "./AgentProfileCardWrapper.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
8
|
var styles = {
|
|
7
|
-
wrapper: "_2rko1mok _1bsb1gwv _bfhk1bhr"
|
|
9
|
+
wrapper: "_2rko1mok _1bsb1gwv _bfhk1bhr _16qs130s",
|
|
10
|
+
wrapperLegacy: "_2rko1mok _1bsb1gwv _bfhk1bhr"
|
|
8
11
|
};
|
|
9
12
|
export var AgentProfileCardWrapper = function AgentProfileCardWrapper(_ref) {
|
|
10
13
|
var children = _ref.children;
|
|
14
|
+
if (expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
16
|
+
xcss: styles.wrapper
|
|
17
|
+
}, children);
|
|
18
|
+
}
|
|
11
19
|
return /*#__PURE__*/React.createElement(Box, {
|
|
12
|
-
xcss: styles.
|
|
20
|
+
xcss: styles.wrapperLegacy
|
|
13
21
|
}, children);
|
|
14
22
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { getStudioSessionSyncUrl } from '@atlassian/studio-entry-link';
|
|
3
2
|
var STUDIO_PROD_URL = 'https://studio.atlassian.com';
|
|
4
3
|
var STUDIO_STAGING_URL = 'https://atlassian-studio.stg-east.frontend.public.atl-paas.net';
|
|
@@ -13,7 +12,7 @@ export var getStudioHost = function getStudioHost() {
|
|
|
13
12
|
return isStaging() ? STUDIO_STAGING_URL : STUDIO_PROD_URL;
|
|
14
13
|
};
|
|
15
14
|
export var getStudioPath = function getStudioPath(path, email) {
|
|
16
|
-
if (email
|
|
15
|
+
if (email) {
|
|
17
16
|
return getStudioSessionSyncUrl(getStudioEnv(), path, email);
|
|
18
17
|
}
|
|
19
18
|
return "".concat(getStudioHost()).concat(path);
|
|
@@ -95,7 +95,7 @@ var TeamMembers = function TeamMembers(_ref) {
|
|
|
95
95
|
count: count
|
|
96
96
|
}
|
|
97
97
|
}))), isArchived && /*#__PURE__*/React.createElement(ArchiveLozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, {
|
|
98
|
-
appearance: "
|
|
98
|
+
appearance: "neutral",
|
|
99
99
|
isBold: true
|
|
100
100
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.archivedLozenge))), members && members.length > 0 && /*#__PURE__*/React.createElement(AvatarSection, null, /*#__PURE__*/React.createElement(AvatarGroup, {
|
|
101
101
|
appearance: "stack",
|
|
@@ -106,7 +106,7 @@ var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
|
|
|
106
106
|
testId: "profilecard-name",
|
|
107
107
|
id: "profilecard-name-label"
|
|
108
108
|
}, name), hasDisabledAccountLozenge && /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, {
|
|
109
|
-
appearance: "
|
|
109
|
+
appearance: "neutral",
|
|
110
110
|
isBold: true
|
|
111
111
|
}, status === 'inactive' ? /*#__PURE__*/React.createElement(FormattedMessage, messages.inactiveAccountMsg) : /*#__PURE__*/React.createElement(FormattedMessage, messages.closedAccountMsg))), /*#__PURE__*/React.createElement(DisabledInfo, null, disabledAccountDesc(statusModifiedDate, disabledAccountMessage, status)), status === 'inactive' && /*#__PURE__*/React.createElement(IconLabel, {
|
|
112
112
|
icon: "companyName"
|
|
@@ -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 = "26.9.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.9.4") !== 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: "26.9.
|
|
27
|
+
packageVersion: "26.9.4"
|
|
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": "26.9.
|
|
3
|
+
"version": "26.9.5",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
"@atlaskit/dropdown-menu": "^17.1.0",
|
|
48
48
|
"@atlaskit/empty-state": "^11.1.0",
|
|
49
49
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
50
|
-
"@atlaskit/give-kudos": "^6.
|
|
50
|
+
"@atlaskit/give-kudos": "^6.7.0",
|
|
51
51
|
"@atlaskit/heading": "^6.2.0",
|
|
52
52
|
"@atlaskit/icon": "^37.0.0",
|
|
53
|
-
"@atlaskit/link": "4.3.
|
|
53
|
+
"@atlaskit/link": "4.3.1",
|
|
54
54
|
"@atlaskit/lozenge": "^14.1.0",
|
|
55
55
|
"@atlaskit/menu": "^9.2.0",
|
|
56
56
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
57
57
|
"@atlaskit/people-teams-ui-public": "^5.1.0",
|
|
58
58
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
59
59
|
"@atlaskit/popup": "^5.1.0",
|
|
60
|
-
"@atlaskit/primitives": "^
|
|
60
|
+
"@atlaskit/primitives": "^21.0.0",
|
|
61
61
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
62
|
-
"@atlaskit/rovo-agent-components": "^7.
|
|
63
|
-
"@atlaskit/rovo-triggers": "^9.
|
|
62
|
+
"@atlaskit/rovo-agent-components": "^7.5.0",
|
|
63
|
+
"@atlaskit/rovo-triggers": "^9.10.0",
|
|
64
64
|
"@atlaskit/spinner": "^20.1.0",
|
|
65
65
|
"@atlaskit/teams-app-config": "^2.1.0",
|
|
66
66
|
"@atlaskit/teams-app-internal-analytics": "^2.2.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/teams-avatar": "^3.1.0",
|
|
69
69
|
"@atlaskit/teams-public": "^2.4.0",
|
|
70
70
|
"@atlaskit/theme": "^26.1.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^125.
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^125.2.0",
|
|
72
72
|
"@atlaskit/tokens": "^15.8.0",
|
|
73
73
|
"@atlaskit/tooltip": "^23.1.0",
|
|
74
74
|
"@atlassian/studio-entry-link": "^1.1.0",
|
|
@@ -124,9 +124,6 @@
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
"platform-feature-flags": {
|
|
127
|
-
"asf-944-account-sync": {
|
|
128
|
-
"type": "boolean"
|
|
129
|
-
},
|
|
130
127
|
"enable_ptc_townsquare_reporting_lines_unsharded": {
|
|
131
128
|
"type": "boolean"
|
|
132
129
|
},
|