@atlaskit/profilecard 23.19.2 → 23.19.4
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 +18 -0
- package/dist/cjs/client/UserProfileCardClient.js +1 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardDetails.js +8 -0
- package/dist/cjs/components/User/ProfileCardTrigger.js +6 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/UserProfileCardClient.js +1 -0
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardDetails.js +10 -0
- package/dist/es2019/components/User/ProfileCardTrigger.js +6 -2
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/UserProfileCardClient.js +1 -0
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/User/ProfileCardDetails.js +8 -0
- package/dist/esm/components/User/ProfileCardTrigger.js +6 -2
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types/types.d.ts +3 -0
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +3 -0
- package/package.json +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 23.19.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#174177](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174177)
|
|
8
|
+
[`3094c6ed637b3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3094c6ed637b3) -
|
|
9
|
+
[ux] Displaying Service Account tag for Service Account user profile
|
|
10
|
+
- [#173636](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/173636)
|
|
11
|
+
[`22b85a186fb8a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22b85a186fb8a) -
|
|
12
|
+
SSR placeholder for mention profile card trigger
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 23.19.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 23.19.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -128,6 +128,7 @@ var UserProfileCardClient = exports.default = /*#__PURE__*/function (_CachingCli
|
|
|
128
128
|
return _context2.abrupt("return", _objectSpread(_objectSpread({}, user), {}, {
|
|
129
129
|
isBot: user.__typename === 'AppUser',
|
|
130
130
|
isAgent: user.appType === 'agent',
|
|
131
|
+
isServiceAccount: user.__typename === 'AppUser' && user.appType === 'service',
|
|
131
132
|
status: user.accountStatus,
|
|
132
133
|
statusModifiedDate: ((_user$extendedProfile = user.extendedProfile) === null || _user$extendedProfile === void 0 ? void 0 : _user$extendedProfile.closedDate) || ((_user$extendedProfile2 = user.extendedProfile) === null || _user$extendedProfile2 === void 0 ? void 0 : _user$extendedProfile2.inactiveDate),
|
|
133
134
|
avatarUrl: user.picture,
|
|
@@ -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', "23.19.
|
|
14
|
+
headers.append('atl-client-version', "23.19.3");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -65,7 +65,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
65
65
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
66
66
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
67
67
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
68
|
-
headers.append('atl-client-version', "23.19.
|
|
68
|
+
headers.append('atl-client-version', "23.19.3");
|
|
69
69
|
return headers;
|
|
70
70
|
};
|
|
71
71
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -73,6 +73,11 @@ var CustomLozenges = function CustomLozenges(_ref) {
|
|
|
73
73
|
}), text);
|
|
74
74
|
}));
|
|
75
75
|
};
|
|
76
|
+
var ServiceAccountProfileCardDetails = function ServiceAccountProfileCardDetails(props) {
|
|
77
|
+
var fullName = props.fullName,
|
|
78
|
+
nickname = props.nickname;
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/_react.default.createElement(_Card.AppTitleLabel, null, "SERVICE ACCOUNT"));
|
|
80
|
+
};
|
|
76
81
|
var BotProfileCardDetails = function BotProfileCardDetails(props) {
|
|
77
82
|
var fullName = props.fullName,
|
|
78
83
|
nickname = props.nickname;
|
|
@@ -103,6 +108,9 @@ var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
|
|
|
103
108
|
var ProfileCardDetails = exports.ProfileCardDetails = function ProfileCardDetails(props) {
|
|
104
109
|
var meta = props.meta,
|
|
105
110
|
status = props.status;
|
|
111
|
+
if (props.isServiceAccount) {
|
|
112
|
+
return /*#__PURE__*/_react.default.createElement(ServiceAccountProfileCardDetails, props);
|
|
113
|
+
}
|
|
106
114
|
if (props.isBot) {
|
|
107
115
|
return /*#__PURE__*/_react.default.createElement(BotProfileCardDetails, props);
|
|
108
116
|
}
|
|
@@ -96,7 +96,8 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
96
96
|
agentActions = _ref2.agentActions,
|
|
97
97
|
_ref2$ariaHideProfile = _ref2.ariaHideProfileTrigger,
|
|
98
98
|
ariaHideProfileTrigger = _ref2$ariaHideProfile === void 0 ? false : _ref2$ariaHideProfile,
|
|
99
|
-
propsIsVisible = _ref2.isVisible
|
|
99
|
+
propsIsVisible = _ref2.isVisible,
|
|
100
|
+
ssrPlaceholderId = _ref2.ssrPlaceholderId;
|
|
100
101
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
101
102
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
102
103
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
@@ -348,6 +349,9 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
348
349
|
isTriggeredUsingKeyboard: isTriggeredUsingKeyboard,
|
|
349
350
|
disabledAriaAttributes: disabledAriaAttributes
|
|
350
351
|
});
|
|
352
|
+
var ssrPlaceholderProp = (0, _platformFeatureFlags.fg)('cc_mention_ssr_placeholder') ? {
|
|
353
|
+
"data-ssr-placeholder-replace": ssrPlaceholderId
|
|
354
|
+
} : {};
|
|
351
355
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
352
356
|
isOpen: !!visible,
|
|
353
357
|
onClose: function onClose(event) {
|
|
@@ -399,7 +403,7 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
399
403
|
'aria-label': ariaHideProfileTrigger ? undefined : (0, _getLabelMessage.default)(ariaLabel, profilecardProps.fullName, formatMessage)
|
|
400
404
|
}, ariaHideProfileTrigger && {
|
|
401
405
|
'aria-hidden': 'true'
|
|
402
|
-
}), children);
|
|
406
|
+
}, ssrPlaceholderProp), children);
|
|
403
407
|
},
|
|
404
408
|
zIndex: _constants.layers.modal(),
|
|
405
409
|
shouldUseCaptureOnOutsideClick: true,
|
|
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
45
45
|
actionSubjectId: actionSubjectId,
|
|
46
46
|
attributes: _objectSpread(_objectSpread({
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "23.19.
|
|
48
|
+
packageVersion: "23.19.3"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -136,6 +136,7 @@ export default class UserProfileCardClient extends CachingClient {
|
|
|
136
136
|
...user,
|
|
137
137
|
isBot: user.__typename === 'AppUser',
|
|
138
138
|
isAgent: user.appType === 'agent',
|
|
139
|
+
isServiceAccount: user.__typename === 'AppUser' && user.appType === 'service',
|
|
139
140
|
status: user.accountStatus,
|
|
140
141
|
statusModifiedDate: ((_user$extendedProfile = user.extendedProfile) === null || _user$extendedProfile === void 0 ? void 0 : _user$extendedProfile.closedDate) || ((_user$extendedProfile2 = user.extendedProfile) === null || _user$extendedProfile2 === void 0 ? void 0 : _user$extendedProfile2.inactiveDate),
|
|
141
142
|
avatarUrl: user.picture,
|
|
@@ -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', "23.19.
|
|
9
|
+
headers.append('atl-client-version', "23.19.3");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -74,7 +74,7 @@ export const addHeaders = headers => {
|
|
|
74
74
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
75
75
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
76
76
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
77
|
-
headers.append('atl-client-version', "23.19.
|
|
77
|
+
headers.append('atl-client-version', "23.19.3");
|
|
78
78
|
return headers;
|
|
79
79
|
};
|
|
80
80
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -62,6 +62,13 @@ const CustomLozenges = ({
|
|
|
62
62
|
key: index
|
|
63
63
|
}), text)));
|
|
64
64
|
};
|
|
65
|
+
const ServiceAccountProfileCardDetails = props => {
|
|
66
|
+
const {
|
|
67
|
+
fullName,
|
|
68
|
+
nickname
|
|
69
|
+
} = props;
|
|
70
|
+
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null, "SERVICE ACCOUNT"));
|
|
71
|
+
};
|
|
65
72
|
const BotProfileCardDetails = props => {
|
|
66
73
|
const {
|
|
67
74
|
fullName,
|
|
@@ -97,6 +104,9 @@ export const ProfileCardDetails = props => {
|
|
|
97
104
|
meta,
|
|
98
105
|
status
|
|
99
106
|
} = props;
|
|
107
|
+
if (props.isServiceAccount) {
|
|
108
|
+
return /*#__PURE__*/React.createElement(ServiceAccountProfileCardDetails, props);
|
|
109
|
+
}
|
|
100
110
|
if (props.isBot) {
|
|
101
111
|
return /*#__PURE__*/React.createElement(BotProfileCardDetails, props);
|
|
102
112
|
}
|
|
@@ -74,7 +74,8 @@ export default function ProfilecardTriggerNext({
|
|
|
74
74
|
product,
|
|
75
75
|
agentActions,
|
|
76
76
|
ariaHideProfileTrigger = false,
|
|
77
|
-
isVisible: propsIsVisible
|
|
77
|
+
isVisible: propsIsVisible,
|
|
78
|
+
ssrPlaceholderId
|
|
78
79
|
}) {
|
|
79
80
|
const {
|
|
80
81
|
createAnalyticsEvent
|
|
@@ -278,6 +279,9 @@ export default function ProfilecardTriggerNext({
|
|
|
278
279
|
isTriggeredUsingKeyboard: isTriggeredUsingKeyboard,
|
|
279
280
|
disabledAriaAttributes: disabledAriaAttributes
|
|
280
281
|
};
|
|
282
|
+
const ssrPlaceholderProp = fg('cc_mention_ssr_placeholder') ? {
|
|
283
|
+
"data-ssr-placeholder-replace": ssrPlaceholderId
|
|
284
|
+
} : {};
|
|
281
285
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popup, {
|
|
282
286
|
isOpen: !!visible,
|
|
283
287
|
onClose: event => {
|
|
@@ -331,7 +335,7 @@ export default function ProfilecardTriggerNext({
|
|
|
331
335
|
'aria-label': ariaHideProfileTrigger ? undefined : getLabelMessage(ariaLabel, profilecardProps.fullName, formatMessage)
|
|
332
336
|
}, ariaHideProfileTrigger && {
|
|
333
337
|
'aria-hidden': 'true'
|
|
334
|
-
}), children);
|
|
338
|
+
}, ssrPlaceholderProp), children);
|
|
335
339
|
},
|
|
336
340
|
zIndex: layers.modal(),
|
|
337
341
|
shouldUseCaptureOnOutsideClick: true,
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "23.19.
|
|
35
|
+
packageVersion: "23.19.3",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -122,6 +122,7 @@ var UserProfileCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
122
122
|
return _context2.abrupt("return", _objectSpread(_objectSpread({}, user), {}, {
|
|
123
123
|
isBot: user.__typename === 'AppUser',
|
|
124
124
|
isAgent: user.appType === 'agent',
|
|
125
|
+
isServiceAccount: user.__typename === 'AppUser' && user.appType === 'service',
|
|
125
126
|
status: user.accountStatus,
|
|
126
127
|
statusModifiedDate: ((_user$extendedProfile = user.extendedProfile) === null || _user$extendedProfile === void 0 ? void 0 : _user$extendedProfile.closedDate) || ((_user$extendedProfile2 = user.extendedProfile) === null || _user$extendedProfile2 === void 0 ? void 0 : _user$extendedProfile2.inactiveDate),
|
|
127
128
|
avatarUrl: user.picture,
|
|
@@ -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', "23.19.
|
|
7
|
+
headers.append('atl-client-version', "23.19.3");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -56,7 +56,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
56
56
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
57
57
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
58
58
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
59
|
-
headers.append('atl-client-version', "23.19.
|
|
59
|
+
headers.append('atl-client-version', "23.19.3");
|
|
60
60
|
return headers;
|
|
61
61
|
};
|
|
62
62
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -66,6 +66,11 @@ var CustomLozenges = function CustomLozenges(_ref) {
|
|
|
66
66
|
}), text);
|
|
67
67
|
}));
|
|
68
68
|
};
|
|
69
|
+
var ServiceAccountProfileCardDetails = function ServiceAccountProfileCardDetails(props) {
|
|
70
|
+
var fullName = props.fullName,
|
|
71
|
+
nickname = props.nickname;
|
|
72
|
+
return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(nickname, fullName), /*#__PURE__*/React.createElement(AppTitleLabel, null, "SERVICE ACCOUNT"));
|
|
73
|
+
};
|
|
69
74
|
var BotProfileCardDetails = function BotProfileCardDetails(props) {
|
|
70
75
|
var fullName = props.fullName,
|
|
71
76
|
nickname = props.nickname;
|
|
@@ -96,6 +101,9 @@ var DisabledProfileCardDetails = function DisabledProfileCardDetails(props) {
|
|
|
96
101
|
export var ProfileCardDetails = function ProfileCardDetails(props) {
|
|
97
102
|
var meta = props.meta,
|
|
98
103
|
status = props.status;
|
|
104
|
+
if (props.isServiceAccount) {
|
|
105
|
+
return /*#__PURE__*/React.createElement(ServiceAccountProfileCardDetails, props);
|
|
106
|
+
}
|
|
99
107
|
if (props.isBot) {
|
|
100
108
|
return /*#__PURE__*/React.createElement(BotProfileCardDetails, props);
|
|
101
109
|
}
|
|
@@ -87,7 +87,8 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
87
87
|
agentActions = _ref2.agentActions,
|
|
88
88
|
_ref2$ariaHideProfile = _ref2.ariaHideProfileTrigger,
|
|
89
89
|
ariaHideProfileTrigger = _ref2$ariaHideProfile === void 0 ? false : _ref2$ariaHideProfile,
|
|
90
|
-
propsIsVisible = _ref2.isVisible
|
|
90
|
+
propsIsVisible = _ref2.isVisible,
|
|
91
|
+
ssrPlaceholderId = _ref2.ssrPlaceholderId;
|
|
91
92
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
92
93
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
93
94
|
var _useIntl = useIntl(),
|
|
@@ -339,6 +340,9 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
339
340
|
isTriggeredUsingKeyboard: isTriggeredUsingKeyboard,
|
|
340
341
|
disabledAriaAttributes: disabledAriaAttributes
|
|
341
342
|
});
|
|
343
|
+
var ssrPlaceholderProp = fg('cc_mention_ssr_placeholder') ? {
|
|
344
|
+
"data-ssr-placeholder-replace": ssrPlaceholderId
|
|
345
|
+
} : {};
|
|
342
346
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popup, {
|
|
343
347
|
isOpen: !!visible,
|
|
344
348
|
onClose: function onClose(event) {
|
|
@@ -390,7 +394,7 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
390
394
|
'aria-label': ariaHideProfileTrigger ? undefined : getLabelMessage(ariaLabel, profilecardProps.fullName, formatMessage)
|
|
391
395
|
}, ariaHideProfileTrigger && {
|
|
392
396
|
'aria-hidden': 'true'
|
|
393
|
-
}), children);
|
|
397
|
+
}, ssrPlaceholderProp), children);
|
|
394
398
|
},
|
|
395
399
|
zIndex: layers.modal(),
|
|
396
400
|
shouldUseCaptureOnOutsideClick: true,
|
|
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
39
39
|
actionSubjectId: actionSubjectId,
|
|
40
40
|
attributes: _objectSpread(_objectSpread({
|
|
41
41
|
packageName: "@atlaskit/profilecard",
|
|
42
|
-
packageVersion: "23.19.
|
|
42
|
+
packageVersion: "23.19.3"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ProfileCardTriggerProps } from '../../types';
|
|
3
|
-
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, ariaHideProfileTrigger, isVisible: propsIsVisible, }: ProfileCardTriggerProps): React.JSX.Element;
|
|
3
|
+
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, ariaHideProfileTrigger, isVisible: propsIsVisible, ssrPlaceholderId, }: ProfileCardTriggerProps): React.JSX.Element;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ export interface ProfileCardClientData {
|
|
|
109
109
|
customLozenges?: LozengeProps[];
|
|
110
110
|
accountType?: string;
|
|
111
111
|
isAgent?: boolean;
|
|
112
|
+
isServiceAccount?: boolean;
|
|
112
113
|
}
|
|
113
114
|
export interface ReportingLinesUserPII {
|
|
114
115
|
name: string;
|
|
@@ -181,6 +182,7 @@ export interface ProfileCardTriggerProps {
|
|
|
181
182
|
viewingUserId?: string;
|
|
182
183
|
agentActions?: AgentActionsType;
|
|
183
184
|
ariaHideProfileTrigger?: boolean;
|
|
185
|
+
ssrPlaceholderId?: string;
|
|
184
186
|
}
|
|
185
187
|
export interface ProfileCardTriggerState {
|
|
186
188
|
visible?: boolean;
|
|
@@ -384,6 +386,7 @@ export interface ProfilecardProps {
|
|
|
384
386
|
accountType?: string;
|
|
385
387
|
status?: StatusType;
|
|
386
388
|
isBot?: boolean;
|
|
389
|
+
isServiceAccount?: boolean;
|
|
387
390
|
avatarUrl?: string;
|
|
388
391
|
fullName?: string;
|
|
389
392
|
meta?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ProfileCardTriggerProps } from '../../types';
|
|
3
|
-
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, ariaHideProfileTrigger, isVisible: propsIsVisible, }: ProfileCardTriggerProps): React.JSX.Element;
|
|
3
|
+
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, ariaHideProfileTrigger, isVisible: propsIsVisible, ssrPlaceholderId, }: ProfileCardTriggerProps): React.JSX.Element;
|
|
@@ -109,6 +109,7 @@ export interface ProfileCardClientData {
|
|
|
109
109
|
customLozenges?: LozengeProps[];
|
|
110
110
|
accountType?: string;
|
|
111
111
|
isAgent?: boolean;
|
|
112
|
+
isServiceAccount?: boolean;
|
|
112
113
|
}
|
|
113
114
|
export interface ReportingLinesUserPII {
|
|
114
115
|
name: string;
|
|
@@ -184,6 +185,7 @@ export interface ProfileCardTriggerProps {
|
|
|
184
185
|
viewingUserId?: string;
|
|
185
186
|
agentActions?: AgentActionsType;
|
|
186
187
|
ariaHideProfileTrigger?: boolean;
|
|
188
|
+
ssrPlaceholderId?: string;
|
|
187
189
|
}
|
|
188
190
|
export interface ProfileCardTriggerState {
|
|
189
191
|
visible?: boolean;
|
|
@@ -390,6 +392,7 @@ export interface ProfilecardProps {
|
|
|
390
392
|
accountType?: string;
|
|
391
393
|
status?: StatusType;
|
|
392
394
|
isBot?: boolean;
|
|
395
|
+
isServiceAccount?: boolean;
|
|
393
396
|
avatarUrl?: string;
|
|
394
397
|
fullName?: string;
|
|
395
398
|
meta?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "23.19.
|
|
3
|
+
"version": "23.19.4",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@atlaskit/avatar": "^25.1.0",
|
|
57
57
|
"@atlaskit/avatar-group": "^12.0.0",
|
|
58
58
|
"@atlaskit/button": "^23.2.0",
|
|
59
|
-
"@atlaskit/css": "^0.
|
|
60
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
59
|
+
"@atlaskit/css": "^0.11.0",
|
|
60
|
+
"@atlaskit/dropdown-menu": "^16.1.0",
|
|
61
61
|
"@atlaskit/empty-state": "^10.0.0",
|
|
62
62
|
"@atlaskit/feature-gate-js-client": "^5.3.0",
|
|
63
63
|
"@atlaskit/focus-ring": "^3.0.0",
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"@atlaskit/people-teams-ui-public": "^3.1.0",
|
|
73
73
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
74
74
|
"@atlaskit/popup": "^4.3.0",
|
|
75
|
-
"@atlaskit/primitives": "^14.
|
|
75
|
+
"@atlaskit/primitives": "^14.9.0",
|
|
76
76
|
"@atlaskit/rovo-agent-components": "^2.11.0",
|
|
77
|
-
"@atlaskit/rovo-triggers": "^
|
|
77
|
+
"@atlaskit/rovo-triggers": "^3.0.0",
|
|
78
78
|
"@atlaskit/spinner": "^18.0.0",
|
|
79
79
|
"@atlaskit/teams-avatar": "^2.3.0",
|
|
80
|
-
"@atlaskit/teams-public": "^0.
|
|
80
|
+
"@atlaskit/teams-public": "^0.39.0",
|
|
81
81
|
"@atlaskit/theme": "^18.0.0",
|
|
82
|
-
"@atlaskit/tokens": "^5.
|
|
82
|
+
"@atlaskit/tokens": "^5.3.0",
|
|
83
83
|
"@atlaskit/tooltip": "^20.3.0",
|
|
84
84
|
"@babel/runtime": "^7.0.0",
|
|
85
85
|
"@compiled/react": "^0.18.3",
|
|
@@ -175,6 +175,9 @@
|
|
|
175
175
|
"should-render-to-parent-should-be-true-people-and-": {
|
|
176
176
|
"type": "boolean"
|
|
177
177
|
},
|
|
178
|
+
"cc_mention_ssr_placeholder": {
|
|
179
|
+
"type": "boolean"
|
|
180
|
+
},
|
|
178
181
|
"loom_tab_in_container_linker_team_profile_page": {
|
|
179
182
|
"type": "boolean"
|
|
180
183
|
},
|