@atlaskit/profilecard 25.0.1 → 25.0.2
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 +8 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.compiled.css +2 -0
- package/dist/cjs/components/Agent/AgentProfileCard.js +3 -2
- package/dist/cjs/styled/Card.compiled.css +1 -0
- package/dist/cjs/styled/Card.js +3 -2
- package/dist/cjs/styled/UserTrigger.js +4 -2
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.compiled.css +2 -0
- package/dist/es2019/components/Agent/AgentProfileCard.js +3 -2
- package/dist/es2019/styled/Card.compiled.css +1 -0
- package/dist/es2019/styled/Card.js +3 -2
- package/dist/es2019/styled/UserTrigger.js +4 -2
- 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.compiled.css +2 -0
- package/dist/esm/components/Agent/AgentProfileCard.js +3 -2
- package/dist/esm/styled/Card.compiled.css +1 -0
- package/dist/esm/styled/Card.js +3 -2
- package/dist/esm/styled/UserTrigger.js +4 -2
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 25.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a826b0d054fdf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a826b0d054fdf) -
|
|
8
|
+
Minor changes to the border radius on both the agent and user profile cards
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 25.0.1
|
|
4
12
|
|
|
5
13
|
### 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', "25.0.
|
|
14
|
+
headers.append('atl-client-version', "25.0.1");
|
|
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.0.
|
|
69
|
+
headers.append('atl-client-version', "25.0.1");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
5
5
|
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
6
6
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
7
|
+
._18m915vq{overflow-y:hidden}
|
|
7
8
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
8
9
|
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
9
10
|
._1q51utpp{padding-block-start:var(--ds-space-150,9pt)}
|
|
11
|
+
._1reo15vq{overflow-x:hidden}
|
|
10
12
|
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
11
13
|
._kqswh2mm{position:relative}
|
|
12
14
|
._kqswstnw{position:absolute}
|
|
@@ -40,7 +40,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
40
40
|
var styles = {
|
|
41
41
|
detailWrapper: "_1q511ejb",
|
|
42
42
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
43
|
-
|
|
43
|
+
cardContainerStylesDEPRECATED: "_2rko1mok _16qs130s _kqswh2mm",
|
|
44
|
+
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
|
|
44
45
|
agentProfileInfoWrapper: "_18zrpxbi",
|
|
45
46
|
conversationStartersWrapper: "_18zrutpp",
|
|
46
47
|
disclosureWrapper: "_zulp1b66 _18zrpxbi _1q51utpp _85i5utpp"
|
|
@@ -187,7 +188,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
187
188
|
var isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
188
189
|
var shouldShowConversationStarters = !(isRovoDev && (0, _platformFeatureFlags.fg)('rovo_dev_themed_identity_card')) && !((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
189
190
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
190
|
-
xcss: styles.cardContainerStyles
|
|
191
|
+
xcss: (0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
191
192
|
}, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
|
|
192
193
|
agentId: agent.id,
|
|
193
194
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
4
|
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
4
5
|
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
5
6
|
._12vemgnk{background-repeat:no-repeat}
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -32,7 +32,8 @@ var styles = {
|
|
|
32
32
|
cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
|
|
33
33
|
cardContainerActiveUser: "_1itkybvv",
|
|
34
34
|
cardContainerDisabledUser: "_1itk1387",
|
|
35
|
-
|
|
35
|
+
cardContainerWithElevationDEPRECATED: "_2rko12b0 _16qs130s",
|
|
36
|
+
cardContainerWithElevation: "_2rko1mok _16qs130s",
|
|
36
37
|
detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
|
|
37
38
|
detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
|
|
38
39
|
detailsLabelExtraTopSpace: "_19pkxy5q",
|
|
@@ -168,7 +169,7 @@ var CardContainer = exports.CardContainer = function CardContainer(_ref11) {
|
|
|
168
169
|
isDisabledUser = _ref11.isDisabledUser,
|
|
169
170
|
withoutElevation = _ref11.withoutElevation;
|
|
170
171
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
171
|
-
xcss: (0, _css.cx)(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
|
|
172
|
+
xcss: (0, _css.cx)(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && ((0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerWithElevation : styles.cardContainerWithElevationDEPRECATED))
|
|
172
173
|
}, children);
|
|
173
174
|
};
|
|
174
175
|
var DetailsLabel = exports.DetailsLabel = function DetailsLabel(_ref12) {
|
|
@@ -13,9 +13,11 @@ require("./UserTrigger.compiled.css");
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _css = require("@atlaskit/css");
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
18
|
var styles = {
|
|
18
|
-
|
|
19
|
+
cardWrapperDEPRECATED: "_2rko12b0 _1bsb1gwv",
|
|
20
|
+
cardWrapper: "_1bsb1gwv",
|
|
19
21
|
spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm"
|
|
20
22
|
};
|
|
21
23
|
var CardWrapper = exports.CardWrapper = function CardWrapper(_ref) {
|
|
@@ -25,7 +27,7 @@ var CardWrapper = exports.CardWrapper = function CardWrapper(_ref) {
|
|
|
25
27
|
labelledBy = _ref.labelledBy,
|
|
26
28
|
ariaLabel = _ref.ariaLabel;
|
|
27
29
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
28
|
-
xcss: (0, _css.cx)(styles.cardWrapper),
|
|
30
|
+
xcss: (0, _css.cx)((0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardWrapper : styles.cardWrapperDEPRECATED),
|
|
29
31
|
backgroundColor: 'elevation.surface.overlay',
|
|
30
32
|
role: role,
|
|
31
33
|
testId: testId,
|
|
@@ -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.0.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.0.1") !== 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.0.
|
|
34
|
+
packageVersion: "25.0.1"
|
|
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', "25.0.
|
|
9
|
+
headers.append('atl-client-version', "25.0.1");
|
|
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.0.
|
|
81
|
+
headers.append('atl-client-version', "25.0.1");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
5
5
|
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
6
6
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
7
|
+
._18m915vq{overflow-y:hidden}
|
|
7
8
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
8
9
|
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
9
10
|
._1q51utpp{padding-block-start:var(--ds-space-150,9pt)}
|
|
11
|
+
._1reo15vq{overflow-x:hidden}
|
|
10
12
|
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
11
13
|
._kqswh2mm{position:relative}
|
|
12
14
|
._kqswstnw{position:absolute}
|
|
@@ -25,7 +25,8 @@ import { messages } from './messages';
|
|
|
25
25
|
const styles = {
|
|
26
26
|
detailWrapper: "_1q511ejb",
|
|
27
27
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
28
|
-
|
|
28
|
+
cardContainerStylesDEPRECATED: "_2rko1mok _16qs130s _kqswh2mm",
|
|
29
|
+
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
|
|
29
30
|
agentProfileInfoWrapper: "_18zrpxbi",
|
|
30
31
|
conversationStartersWrapper: "_18zrutpp",
|
|
31
32
|
disclosureWrapper: "_zulp1b66 _18zrpxbi _1q51utpp _85i5utpp"
|
|
@@ -139,7 +140,7 @@ const AgentProfileCard = ({
|
|
|
139
140
|
const isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
140
141
|
const shouldShowConversationStarters = !(isRovoDev && fg('rovo_dev_themed_identity_card')) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
141
142
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
142
|
-
xcss: styles.cardContainerStyles
|
|
143
|
+
xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
143
144
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
144
145
|
agentId: agent.id,
|
|
145
146
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
4
|
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
4
5
|
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
5
6
|
._12vemgnk{background-repeat:no-repeat}
|
|
@@ -23,7 +23,8 @@ const styles = {
|
|
|
23
23
|
cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
|
|
24
24
|
cardContainerActiveUser: "_1itkybvv",
|
|
25
25
|
cardContainerDisabledUser: "_1itk1387",
|
|
26
|
-
|
|
26
|
+
cardContainerWithElevationDEPRECATED: "_2rko12b0 _16qs130s",
|
|
27
|
+
cardContainerWithElevation: "_2rko1mok _16qs130s",
|
|
27
28
|
detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
|
|
28
29
|
detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
|
|
29
30
|
detailsLabelExtraTopSpace: "_19pkxy5q",
|
|
@@ -143,7 +144,7 @@ export const CardContainer = ({
|
|
|
143
144
|
isDisabledUser,
|
|
144
145
|
withoutElevation
|
|
145
146
|
}) => /*#__PURE__*/React.createElement(Box, {
|
|
146
|
-
xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
|
|
147
|
+
xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && (fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerWithElevation : styles.cardContainerWithElevationDEPRECATED))
|
|
147
148
|
}, children);
|
|
148
149
|
export const DetailsLabel = ({
|
|
149
150
|
children,
|
|
@@ -6,9 +6,11 @@ import "./UserTrigger.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
11
|
const styles = {
|
|
11
|
-
|
|
12
|
+
cardWrapperDEPRECATED: "_2rko12b0 _1bsb1gwv",
|
|
13
|
+
cardWrapper: "_1bsb1gwv",
|
|
12
14
|
spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm"
|
|
13
15
|
};
|
|
14
16
|
export const CardWrapper = ({
|
|
@@ -18,7 +20,7 @@ export const CardWrapper = ({
|
|
|
18
20
|
labelledBy,
|
|
19
21
|
ariaLabel
|
|
20
22
|
}) => /*#__PURE__*/React.createElement(Box, {
|
|
21
|
-
xcss: cx(styles.cardWrapper),
|
|
23
|
+
xcss: cx(fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardWrapper : styles.cardWrapperDEPRECATED),
|
|
22
24
|
backgroundColor: 'elevation.surface.overlay',
|
|
23
25
|
role: role,
|
|
24
26
|
testId: testId,
|
|
@@ -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.0.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.0.1") !== 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.0.
|
|
22
|
+
packageVersion: "25.0.1",
|
|
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', "25.0.
|
|
7
|
+
headers.append('atl-client-version', "25.0.1");
|
|
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.0.
|
|
62
|
+
headers.append('atl-client-version', "25.0.1");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
|
|
5
5
|
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}._154i1ejb{top:var(--ds-space-300,24px)}
|
|
6
6
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
7
|
+
._18m915vq{overflow-y:hidden}
|
|
7
8
|
._1ltvpxbi{left:var(--ds-space-200,1pc)}
|
|
8
9
|
._1q511ejb{padding-block-start:var(--ds-space-300,24px)}
|
|
9
10
|
._1q51utpp{padding-block-start:var(--ds-space-150,9pt)}
|
|
11
|
+
._1reo15vq{overflow-x:hidden}
|
|
10
12
|
._85i5utpp{padding-block-end:var(--ds-space-150,9pt)}
|
|
11
13
|
._kqswh2mm{position:relative}
|
|
12
14
|
._kqswstnw{position:absolute}
|
|
@@ -31,7 +31,8 @@ import { messages } from './messages';
|
|
|
31
31
|
var styles = {
|
|
32
32
|
detailWrapper: "_1q511ejb",
|
|
33
33
|
avatarStyles: "_kqswstnw _154i1ejb _1ltvpxbi",
|
|
34
|
-
|
|
34
|
+
cardContainerStylesDEPRECATED: "_2rko1mok _16qs130s _kqswh2mm",
|
|
35
|
+
cardContainerStyles: "_2rko1mok _1reo15vq _18m915vq _16qs130s _kqswh2mm",
|
|
35
36
|
agentProfileInfoWrapper: "_18zrpxbi",
|
|
36
37
|
conversationStartersWrapper: "_18zrutpp",
|
|
37
38
|
disclosureWrapper: "_zulp1b66 _18zrpxbi _1q51utpp _85i5utpp"
|
|
@@ -178,7 +179,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
178
179
|
var isRovoDev = agent.creator_type === 'ROVO_DEV';
|
|
179
180
|
var shouldShowConversationStarters = !(isRovoDev && fg('rovo_dev_themed_identity_card')) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
180
181
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
181
|
-
xcss: styles.cardContainerStyles
|
|
182
|
+
xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
182
183
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
183
184
|
agentId: agent.id,
|
|
184
185
|
agentNamedId: (_agent$external_confi = agent.external_config_reference) !== null && _agent$external_confi !== void 0 ? _agent$external_confi : agent.named_id,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
+
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
4
|
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
4
5
|
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
5
6
|
._12vemgnk{background-repeat:no-repeat}
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -23,7 +23,8 @@ var styles = {
|
|
|
23
23
|
cardContainer: "_1reo15vq _18m915vq _kqswh2mm _12vemgnk _1lrw14bs _ca0q1ejb _19bv1ejb _u5f31ejb _n3td1ejb",
|
|
24
24
|
cardContainerActiveUser: "_1itkybvv",
|
|
25
25
|
cardContainerDisabledUser: "_1itk1387",
|
|
26
|
-
|
|
26
|
+
cardContainerWithElevationDEPRECATED: "_2rko12b0 _16qs130s",
|
|
27
|
+
cardContainerWithElevation: "_2rko1mok _16qs130s",
|
|
27
28
|
detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
|
|
28
29
|
detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
|
|
29
30
|
detailsLabelExtraTopSpace: "_19pkxy5q",
|
|
@@ -159,7 +160,7 @@ export var CardContainer = function CardContainer(_ref11) {
|
|
|
159
160
|
isDisabledUser = _ref11.isDisabledUser,
|
|
160
161
|
withoutElevation = _ref11.withoutElevation;
|
|
161
162
|
return /*#__PURE__*/React.createElement(Box, {
|
|
162
|
-
xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && styles.cardContainerWithElevation)
|
|
163
|
+
xcss: cx(styles.cardContainer, isDisabledUser ? styles.cardContainerDisabledUser : styles.cardContainerActiveUser, !withoutElevation && (fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerWithElevation : styles.cardContainerWithElevationDEPRECATED))
|
|
163
164
|
}, children);
|
|
164
165
|
};
|
|
165
166
|
export var DetailsLabel = function DetailsLabel(_ref12) {
|
|
@@ -6,9 +6,11 @@ import "./UserTrigger.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
11
|
var styles = {
|
|
11
|
-
|
|
12
|
+
cardWrapperDEPRECATED: "_2rko12b0 _1bsb1gwv",
|
|
13
|
+
cardWrapper: "_1bsb1gwv",
|
|
12
14
|
spinnerContainer: "_4cvr1h6o _1e0c1txw _4t3i16xz _1bah1h6o _kqswh2mm"
|
|
13
15
|
};
|
|
14
16
|
export var CardWrapper = function CardWrapper(_ref) {
|
|
@@ -18,7 +20,7 @@ export var CardWrapper = function CardWrapper(_ref) {
|
|
|
18
20
|
labelledBy = _ref.labelledBy,
|
|
19
21
|
ariaLabel = _ref.ariaLabel;
|
|
20
22
|
return /*#__PURE__*/React.createElement(Box, {
|
|
21
|
-
xcss: cx(styles.cardWrapper),
|
|
23
|
+
xcss: cx(fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardWrapper : styles.cardWrapperDEPRECATED),
|
|
22
24
|
backgroundColor: 'elevation.surface.overlay',
|
|
23
25
|
role: role,
|
|
24
26
|
testId: testId,
|
|
@@ -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.0.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "25.0.1") !== 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.0.
|
|
27
|
+
packageVersion: "25.0.1"
|
|
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": "25.0.
|
|
3
|
+
"version": "25.0.2",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/css": "^0.19.0",
|
|
48
48
|
"@atlaskit/dropdown-menu": "^16.8.0",
|
|
49
49
|
"@atlaskit/empty-state": "^10.2.0",
|
|
50
|
-
"@atlaskit/give-kudos": "^5.
|
|
50
|
+
"@atlaskit/give-kudos": "^5.2.0",
|
|
51
51
|
"@atlaskit/heading": "^5.4.0",
|
|
52
52
|
"@atlaskit/icon": "^34.2.0",
|
|
53
53
|
"@atlaskit/link": "3.4.2",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"@atlaskit/popup": "^4.16.0",
|
|
60
60
|
"@atlaskit/primitives": "^19.0.0",
|
|
61
61
|
"@atlaskit/rovo-agent-components": "^4.1.0",
|
|
62
|
-
"@atlaskit/rovo-triggers": "^5.
|
|
62
|
+
"@atlaskit/rovo-triggers": "^5.40.0",
|
|
63
63
|
"@atlaskit/spinner": "^19.1.0",
|
|
64
64
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
65
65
|
"@atlaskit/teams-app-internal-analytics": "^1.27.0",
|
|
66
66
|
"@atlaskit/teams-app-internal-navigation": "^1.8.0",
|
|
67
|
-
"@atlaskit/teams-avatar": "^2.
|
|
68
|
-
"@atlaskit/teams-public": "^1.
|
|
67
|
+
"@atlaskit/teams-avatar": "^2.6.0",
|
|
68
|
+
"@atlaskit/teams-public": "^1.1.0",
|
|
69
69
|
"@atlaskit/theme": "^23.1.0",
|
|
70
70
|
"@atlaskit/tmp-editor-statsig": "^62.4.0",
|
|
71
71
|
"@atlaskit/tokens": "^13.0.0",
|
|
@@ -177,6 +177,9 @@
|
|
|
177
177
|
},
|
|
178
178
|
"teams-app_profilecard_add-onblur": {
|
|
179
179
|
"type": "boolean"
|
|
180
|
+
},
|
|
181
|
+
"enable_teams_t26_design_drop_core_experiences": {
|
|
182
|
+
"type": "boolean"
|
|
180
183
|
}
|
|
181
184
|
},
|
|
182
185
|
"sideEffects": [
|