@atlaskit/profilecard 24.27.1 → 24.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Error/ErrorMessage.js +1 -1
- package/dist/cjs/components/Icon/IconLabel.js +3 -4
- package/dist/cjs/components/Team/TeamProfileCard.js +5 -1
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +32 -43
- package/dist/cjs/messages.js +5 -0
- 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/Error/ErrorMessage.js +1 -1
- package/dist/es2019/components/Icon/IconLabel.js +3 -4
- package/dist/es2019/components/Team/TeamProfileCard.js +5 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +35 -46
- package/dist/es2019/messages.js +5 -0
- 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/Error/ErrorMessage.js +1 -1
- package/dist/esm/components/Icon/IconLabel.js +3 -4
- package/dist/esm/components/Team/TeamProfileCard.js +5 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +33 -44
- package/dist/esm/messages.js +5 -0
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/components/Team/TeamProfileCard.d.ts +3 -0
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +8 -5
- package/dist/types/messages.d.ts +5 -0
- package/dist/types-ts4.5/components/Team/TeamProfileCard.d.ts +3 -0
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +8 -5
- package/dist/types-ts4.5/messages.d.ts +5 -0
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c49e8cb6ddf1d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c49e8cb6ddf1d) -
|
|
8
|
+
Deprecate the team profile card component
|
|
9
|
+
|
|
10
|
+
## 24.27.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`613a14991e82d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/613a14991e82d) -
|
|
15
|
+
Add translated message for static values
|
|
16
|
+
|
|
3
17
|
## 24.27.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "
|
|
14
|
+
headers.append('atl-client-version', "24.27.2");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
66
66
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
67
67
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
68
68
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
69
|
-
headers.append('atl-client-version', "
|
|
69
|
+
headers.append('atl-client-version', "24.27.2");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -56,6 +56,6 @@ var ErrorMessage = function ErrorMessage(props) {
|
|
|
56
56
|
label: "icon error"
|
|
57
57
|
}), errorContent(), reload && /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
58
58
|
onClick: reload
|
|
59
|
-
},
|
|
59
|
+
}, (0, _platformFeatureFlags.fg)('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.errorTryAgain) : 'Try again'));
|
|
60
60
|
};
|
|
61
61
|
var _default = exports.default = ErrorMessage;
|
|
@@ -13,9 +13,9 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _clock = _interopRequireDefault(require("@atlaskit/icon/core/clock"));
|
|
16
|
-
var _email = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
17
|
-
var _location = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
18
|
-
var _officeBuilding = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
16
|
+
var _email = _interopRequireDefault(require("@atlaskit/icon/core/email"));
|
|
17
|
+
var _location = _interopRequireDefault(require("@atlaskit/icon/core/location"));
|
|
18
|
+
var _officeBuilding = _interopRequireDefault(require("@atlaskit/icon/core/office-building"));
|
|
19
19
|
var _Card = require("../../styled/Card");
|
|
20
20
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -42,7 +42,6 @@ var IconLabel = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
42
42
|
var IconElement = this.props.icon && icons[this.props.icon];
|
|
43
43
|
var displayIcon = IconElement ? /*#__PURE__*/_react.default.createElement(IconElement, {
|
|
44
44
|
label: "".concat(this.props.icon),
|
|
45
|
-
LEGACY_size: "small",
|
|
46
45
|
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
47
46
|
}) : null;
|
|
48
47
|
return /*#__PURE__*/_react.default.createElement(_Card.DetailsLabel, {
|
|
@@ -309,7 +309,7 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
|
|
309
309
|
viewProfileOnClick = _ref5.viewProfileOnClick,
|
|
310
310
|
isTriggeredByKeyboard = _ref5.isTriggeredByKeyboard;
|
|
311
311
|
var newTeamProfileEnabled = _featureGateJsClient.default.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
312
|
-
var isTeamArchived = team.state === 'DISBANDED' &&
|
|
312
|
+
var isTeamArchived = team.state === 'DISBANDED' && newTeamProfileEnabled;
|
|
313
313
|
var allActions = [{
|
|
314
314
|
label: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.teamViewProfile),
|
|
315
315
|
link: viewProfileLink,
|
|
@@ -427,6 +427,10 @@ var ErrorMessage = function ErrorMessage(_ref6) {
|
|
|
427
427
|
isLoading: isLoading
|
|
428
428
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.teamErrorButton)))));
|
|
429
429
|
};
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @deprecated This component is deprecated and will be removed soon. Please use `@atlassian/team-profilecard` instead.
|
|
433
|
+
*/
|
|
430
434
|
var TeamProfileCard = function TeamProfileCard(props) {
|
|
431
435
|
var analytics = props.analytics,
|
|
432
436
|
analyticsNext = props.analyticsNext,
|
|
@@ -16,10 +16,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _reactIntlNext = require("react-intl-next");
|
|
19
|
-
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
20
19
|
var _giveKudos = require("@atlaskit/give-kudos");
|
|
21
20
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
|
-
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
23
21
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
24
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
25
23
|
var _teamsAppInternalAnalytics = require("@atlaskit/teams-app-internal-analytics");
|
|
@@ -123,16 +121,12 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
|
|
|
123
121
|
_this.openedByHover = false;
|
|
124
122
|
_this.showProfilecard(0);
|
|
125
123
|
if (!_this.state.visible) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}));
|
|
133
|
-
} else {
|
|
134
|
-
_this.fireAnalytics((0, _analytics.cardTriggered)('team', 'click', _this.props.teamId));
|
|
135
|
-
}
|
|
124
|
+
_this.fireAnalyticsNext('ui.teamProfileCard.triggered', _objectSpread(_objectSpread({
|
|
125
|
+
method: 'click'
|
|
126
|
+
}, _analytics.PACKAGE_META_DATA), {}, {
|
|
127
|
+
firedAt: Math.round((0, _performance.getPageTime)()),
|
|
128
|
+
teamId: _this.props.teamId
|
|
129
|
+
}));
|
|
136
130
|
}
|
|
137
131
|
}
|
|
138
132
|
});
|
|
@@ -142,16 +136,12 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
|
|
|
142
136
|
}
|
|
143
137
|
if (!_this.state.visible) {
|
|
144
138
|
_this.openedByHover = true;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}));
|
|
152
|
-
} else {
|
|
153
|
-
_this.fireAnalytics((0, _analytics.cardTriggered)('team', 'hover', _this.props.teamId));
|
|
154
|
-
}
|
|
139
|
+
_this.fireAnalyticsNext('ui.teamProfileCard.triggered', _objectSpread(_objectSpread({
|
|
140
|
+
method: 'hover'
|
|
141
|
+
}, _analytics.PACKAGE_META_DATA), {}, {
|
|
142
|
+
firedAt: Math.round((0, _performance.getPageTime)()),
|
|
143
|
+
teamId: _this.props.teamId
|
|
144
|
+
}));
|
|
155
145
|
}
|
|
156
146
|
_this.showProfilecard(_config.DELAY_MS_SHOW);
|
|
157
147
|
});
|
|
@@ -171,15 +161,11 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
|
|
|
171
161
|
});
|
|
172
162
|
_this.showProfilecard(0);
|
|
173
163
|
if (!_this.state.visible) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}, _analytics.PACKAGE_META_DATA));
|
|
180
|
-
} else {
|
|
181
|
-
_this.fireAnalytics((0, _analytics.cardTriggered)('team', 'click', _this.props.teamId));
|
|
182
|
-
}
|
|
164
|
+
_this.fireAnalyticsNext('ui.teamProfileCard.triggered', _objectSpread({
|
|
165
|
+
method: 'click',
|
|
166
|
+
firedAt: Math.round((0, _performance.getPageTime)()),
|
|
167
|
+
teamId: _this.props.teamId
|
|
168
|
+
}, _analytics.PACKAGE_META_DATA));
|
|
183
169
|
}
|
|
184
170
|
}
|
|
185
171
|
});
|
|
@@ -269,16 +255,10 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
|
|
|
269
255
|
});
|
|
270
256
|
});
|
|
271
257
|
(0, _defineProperty2.default)(_this, "onErrorBoundary", function () {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}));
|
|
277
|
-
} else {
|
|
278
|
-
_this.fireAnalytics((0, _analytics.profileCardRendered)('team', 'errorBoundary', {
|
|
279
|
-
duration: 0
|
|
280
|
-
}));
|
|
281
|
-
}
|
|
258
|
+
_this.fireAnalyticsNext('ui.teamProfileCard.rendered.errorBoundary', _objectSpread(_objectSpread({}, _analytics.PACKAGE_META_DATA), {}, {
|
|
259
|
+
firedAt: Math.round((0, _performance.getPageTime)()),
|
|
260
|
+
duration: 0
|
|
261
|
+
}));
|
|
282
262
|
_this.setState({
|
|
283
263
|
renderError: true
|
|
284
264
|
});
|
|
@@ -480,11 +460,20 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
|
|
|
480
460
|
triggerLinkType: 'link',
|
|
481
461
|
shouldRenderToParent: true
|
|
482
462
|
});
|
|
483
|
-
var
|
|
463
|
+
var TeamProfileCardTrigger = function TeamProfileCardTrigger(props) {
|
|
484
464
|
var _useAnalyticsEvents = (0, _teamsAppInternalAnalytics.useAnalyticsEvents)(),
|
|
485
465
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
466
|
+
if ((0, _platformFeatureFlags.fg)('people-teams-deprecate-profilecard-teams')) {
|
|
467
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, props.children);
|
|
468
|
+
}
|
|
486
469
|
return /*#__PURE__*/_react.default.createElement(TeamProfileCardTriggerInternal, (0, _extends2.default)({}, props, {
|
|
487
470
|
fireEvent: fireEvent
|
|
488
471
|
}));
|
|
489
472
|
};
|
|
490
|
-
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @deprecated This component is deprecated and provides no functionality.
|
|
476
|
+
* It now simply renders its children without any profile card behavior.
|
|
477
|
+
* Please use `@atlassian/team-profilecard` instead for team profile card functionality.
|
|
478
|
+
*/
|
|
479
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(TeamProfileCardTrigger);
|
package/dist/cjs/messages.js
CHANGED
|
@@ -207,6 +207,11 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
207
207
|
defaultMessage: 'Try again and we’ll give it another shot',
|
|
208
208
|
description: 'Suggestion message shown to the user to retry loading the profile card'
|
|
209
209
|
},
|
|
210
|
+
errorTryAgain: {
|
|
211
|
+
id: 'pt.profile-card.error.try-again-button',
|
|
212
|
+
defaultMessage: 'Try again',
|
|
213
|
+
description: 'Label for the button to retry loading the profile card after an error'
|
|
214
|
+
},
|
|
210
215
|
serviceAccountLabel: {
|
|
211
216
|
id: 'pt.profile-card.service-account.label',
|
|
212
217
|
defaultMessage: 'SERVICE ACCOUNT',
|
|
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
14
14
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
15
15
|
packageName: "@atlaskit/profilecard",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "24.27.2"
|
|
17
17
|
};
|
|
18
18
|
var runItLater = function runItLater(cb) {
|
|
19
19
|
var requestIdleCallback = window.requestIdleCallback;
|
|
@@ -58,7 +58,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
58
58
|
actionSubjectId: actionSubjectId,
|
|
59
59
|
attributes: _objectSpread(_objectSpread({
|
|
60
60
|
packageName: "@atlaskit/profilecard",
|
|
61
|
-
packageVersion: "
|
|
61
|
+
packageVersion: "24.27.2"
|
|
62
62
|
}, attributes), {}, {
|
|
63
63
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
64
64
|
})
|
|
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
|
|
|
6
6
|
}`;
|
|
7
7
|
const addHeaders = headers => {
|
|
8
8
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
9
|
-
headers.append('atl-client-version', "
|
|
9
|
+
headers.append('atl-client-version', "24.27.2");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
|
|
|
78
78
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
79
79
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
80
80
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
81
|
-
headers.append('atl-client-version', "
|
|
81
|
+
headers.append('atl-client-version', "24.27.2");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -47,6 +47,6 @@ const ErrorMessage = props => {
|
|
|
47
47
|
label: "icon error"
|
|
48
48
|
}), errorContent(), reload && /*#__PURE__*/React.createElement(Button, {
|
|
49
49
|
onClick: reload
|
|
50
|
-
},
|
|
50
|
+
}, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorTryAgain) : 'Try again'));
|
|
51
51
|
};
|
|
52
52
|
export default ErrorMessage;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import IconRecent from '@atlaskit/icon/core/clock';
|
|
4
|
-
import IconEmail from '@atlaskit/icon/core/
|
|
5
|
-
import IconLocation from '@atlaskit/icon/core/
|
|
6
|
-
import OfficeBuildingIcon from '@atlaskit/icon/core/
|
|
4
|
+
import IconEmail from '@atlaskit/icon/core/email';
|
|
5
|
+
import IconLocation from '@atlaskit/icon/core/location';
|
|
6
|
+
import OfficeBuildingIcon from '@atlaskit/icon/core/office-building';
|
|
7
7
|
import { DetailsLabel, DetailsLabelIcon, DetailsLabelText } from '../../styled/Card';
|
|
8
8
|
const icons = {
|
|
9
9
|
location: IconLocation,
|
|
@@ -21,7 +21,6 @@ export default class IconLabel extends React.PureComponent {
|
|
|
21
21
|
const IconElement = this.props.icon && icons[this.props.icon];
|
|
22
22
|
const displayIcon = IconElement ? /*#__PURE__*/React.createElement(IconElement, {
|
|
23
23
|
label: `${this.props.icon}`,
|
|
24
|
-
LEGACY_size: "small",
|
|
25
24
|
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
26
25
|
}) : null;
|
|
27
26
|
return /*#__PURE__*/React.createElement(DetailsLabel, {
|
|
@@ -273,7 +273,7 @@ const TeamProfilecardContent = ({
|
|
|
273
273
|
isTriggeredByKeyboard
|
|
274
274
|
}) => {
|
|
275
275
|
const newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
276
|
-
const isTeamArchived = team.state === 'DISBANDED' &&
|
|
276
|
+
const isTeamArchived = team.state === 'DISBANDED' && newTeamProfileEnabled;
|
|
277
277
|
const allActions = [{
|
|
278
278
|
label: /*#__PURE__*/React.createElement(FormattedMessage, messages.teamViewProfile),
|
|
279
279
|
link: viewProfileLink,
|
|
@@ -385,6 +385,10 @@ const ErrorMessage = ({
|
|
|
385
385
|
isLoading: isLoading
|
|
386
386
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.teamErrorButton)))));
|
|
387
387
|
};
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* @deprecated This component is deprecated and will be removed soon. Please use `@atlassian/team-profilecard` instead.
|
|
391
|
+
*/
|
|
388
392
|
const TeamProfileCard = props => {
|
|
389
393
|
const {
|
|
390
394
|
analytics,
|
|
@@ -2,17 +2,15 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { Suspense } from 'react';
|
|
4
4
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
5
|
-
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
5
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
7
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
9
7
|
import Popup from '@atlaskit/popup';
|
|
10
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
9
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
12
10
|
import { layers } from '@atlaskit/theme/constants';
|
|
13
11
|
import filterActions from '../../internal/filterActions';
|
|
14
12
|
import messages from '../../messages';
|
|
15
|
-
import {
|
|
13
|
+
import { fireEvent, PACKAGE_META_DATA } from '../../util/analytics';
|
|
16
14
|
import { isBasicClick } from '../../util/click';
|
|
17
15
|
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
18
16
|
import { getPageTime } from '../../util/performance';
|
|
@@ -93,16 +91,12 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
93
91
|
this.openedByHover = false;
|
|
94
92
|
this.showProfilecard(0);
|
|
95
93
|
if (!this.state.visible) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
});
|
|
103
|
-
} else {
|
|
104
|
-
this.fireAnalytics(cardTriggered('team', 'click', this.props.teamId));
|
|
105
|
-
}
|
|
94
|
+
this.fireAnalyticsNext('ui.teamProfileCard.triggered', {
|
|
95
|
+
method: 'click',
|
|
96
|
+
...PACKAGE_META_DATA,
|
|
97
|
+
firedAt: Math.round(getPageTime()),
|
|
98
|
+
teamId: this.props.teamId
|
|
99
|
+
});
|
|
106
100
|
}
|
|
107
101
|
}
|
|
108
102
|
});
|
|
@@ -112,16 +106,12 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
112
106
|
}
|
|
113
107
|
if (!this.state.visible) {
|
|
114
108
|
this.openedByHover = true;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
});
|
|
122
|
-
} else {
|
|
123
|
-
this.fireAnalytics(cardTriggered('team', 'hover', this.props.teamId));
|
|
124
|
-
}
|
|
109
|
+
this.fireAnalyticsNext('ui.teamProfileCard.triggered', {
|
|
110
|
+
method: 'hover',
|
|
111
|
+
...PACKAGE_META_DATA,
|
|
112
|
+
firedAt: Math.round(getPageTime()),
|
|
113
|
+
teamId: this.props.teamId
|
|
114
|
+
});
|
|
125
115
|
}
|
|
126
116
|
this.showProfilecard(DELAY_MS_SHOW);
|
|
127
117
|
});
|
|
@@ -141,16 +131,12 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
141
131
|
});
|
|
142
132
|
this.showProfilecard(0);
|
|
143
133
|
if (!this.state.visible) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
});
|
|
151
|
-
} else {
|
|
152
|
-
this.fireAnalytics(cardTriggered('team', 'click', this.props.teamId));
|
|
153
|
-
}
|
|
134
|
+
this.fireAnalyticsNext('ui.teamProfileCard.triggered', {
|
|
135
|
+
method: 'click',
|
|
136
|
+
firedAt: Math.round(getPageTime()),
|
|
137
|
+
teamId: this.props.teamId,
|
|
138
|
+
...PACKAGE_META_DATA
|
|
139
|
+
});
|
|
154
140
|
}
|
|
155
141
|
}
|
|
156
142
|
});
|
|
@@ -232,17 +218,11 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
232
218
|
});
|
|
233
219
|
});
|
|
234
220
|
_defineProperty(this, "onErrorBoundary", () => {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
});
|
|
241
|
-
} else {
|
|
242
|
-
this.fireAnalytics(profileCardRendered('team', 'errorBoundary', {
|
|
243
|
-
duration: 0
|
|
244
|
-
}));
|
|
245
|
-
}
|
|
221
|
+
this.fireAnalyticsNext('ui.teamProfileCard.rendered.errorBoundary', {
|
|
222
|
+
...PACKAGE_META_DATA,
|
|
223
|
+
firedAt: Math.round(getPageTime()),
|
|
224
|
+
duration: 0
|
|
225
|
+
});
|
|
246
226
|
this.setState({
|
|
247
227
|
renderError: true
|
|
248
228
|
});
|
|
@@ -427,12 +407,21 @@ _defineProperty(TeamProfileCardTriggerInternal, "defaultProps", {
|
|
|
427
407
|
triggerLinkType: 'link',
|
|
428
408
|
shouldRenderToParent: true
|
|
429
409
|
});
|
|
430
|
-
const
|
|
410
|
+
const TeamProfileCardTrigger = props => {
|
|
431
411
|
const {
|
|
432
412
|
fireEvent
|
|
433
413
|
} = useAnalyticsEvents();
|
|
414
|
+
if (fg('people-teams-deprecate-profilecard-teams')) {
|
|
415
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, props.children);
|
|
416
|
+
}
|
|
434
417
|
return /*#__PURE__*/React.createElement(TeamProfileCardTriggerInternal, _extends({}, props, {
|
|
435
418
|
fireEvent: fireEvent
|
|
436
419
|
}));
|
|
437
420
|
};
|
|
438
|
-
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @deprecated This component is deprecated and provides no functionality.
|
|
424
|
+
* It now simply renders its children without any profile card behavior.
|
|
425
|
+
* Please use `@atlassian/team-profilecard` instead for team profile card functionality.
|
|
426
|
+
*/
|
|
427
|
+
export default injectIntl(TeamProfileCardTrigger);
|
package/dist/es2019/messages.js
CHANGED
|
@@ -201,6 +201,11 @@ const messages = defineMessages({
|
|
|
201
201
|
defaultMessage: 'Try again and we’ll give it another shot',
|
|
202
202
|
description: 'Suggestion message shown to the user to retry loading the profile card'
|
|
203
203
|
},
|
|
204
|
+
errorTryAgain: {
|
|
205
|
+
id: 'pt.profile-card.error.try-again-button',
|
|
206
|
+
defaultMessage: 'Try again',
|
|
207
|
+
description: 'Label for the button to retry loading the profile card after an error'
|
|
208
|
+
},
|
|
204
209
|
serviceAccountLabel: {
|
|
205
210
|
id: 'pt.profile-card.service-account.label',
|
|
206
211
|
defaultMessage: 'SERVICE ACCOUNT',
|
|
@@ -4,7 +4,7 @@ import { getPageTime } from './performance';
|
|
|
4
4
|
const ANALYTICS_CHANNEL = 'peopleTeams';
|
|
5
5
|
export const PACKAGE_META_DATA = {
|
|
6
6
|
packageName: "@atlaskit/profilecard",
|
|
7
|
-
packageVersion: "
|
|
7
|
+
packageVersion: "24.27.2"
|
|
8
8
|
};
|
|
9
9
|
const runItLater = cb => {
|
|
10
10
|
const requestIdleCallback = window.requestIdleCallback;
|
|
@@ -45,7 +45,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
45
45
|
actionSubjectId,
|
|
46
46
|
attributes: {
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "
|
|
48
|
+
packageVersion: "24.27.2",
|
|
49
49
|
...attributes,
|
|
50
50
|
firedAt: Math.round(getPageTime())
|
|
51
51
|
}
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "
|
|
7
|
+
headers.append('atl-client-version', "24.27.2");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
59
59
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
60
60
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
61
61
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
62
|
-
headers.append('atl-client-version', "
|
|
62
|
+
headers.append('atl-client-version', "24.27.2");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -47,6 +47,6 @@ var ErrorMessage = function ErrorMessage(props) {
|
|
|
47
47
|
label: "icon error"
|
|
48
48
|
}), errorContent(), reload && /*#__PURE__*/React.createElement(Button, {
|
|
49
49
|
onClick: reload
|
|
50
|
-
},
|
|
50
|
+
}, fg('people-teams-fix-no-literal-string-in-jsx') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.errorTryAgain) : 'Try again'));
|
|
51
51
|
};
|
|
52
52
|
export default ErrorMessage;
|
|
@@ -8,9 +8,9 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import IconRecent from '@atlaskit/icon/core/clock';
|
|
11
|
-
import IconEmail from '@atlaskit/icon/core/
|
|
12
|
-
import IconLocation from '@atlaskit/icon/core/
|
|
13
|
-
import OfficeBuildingIcon from '@atlaskit/icon/core/
|
|
11
|
+
import IconEmail from '@atlaskit/icon/core/email';
|
|
12
|
+
import IconLocation from '@atlaskit/icon/core/location';
|
|
13
|
+
import OfficeBuildingIcon from '@atlaskit/icon/core/office-building';
|
|
14
14
|
import { DetailsLabel, DetailsLabelIcon, DetailsLabelText } from '../../styled/Card';
|
|
15
15
|
var icons = {
|
|
16
16
|
location: IconLocation,
|
|
@@ -35,7 +35,6 @@ var IconLabel = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
35
35
|
var IconElement = this.props.icon && icons[this.props.icon];
|
|
36
36
|
var displayIcon = IconElement ? /*#__PURE__*/React.createElement(IconElement, {
|
|
37
37
|
label: "".concat(this.props.icon),
|
|
38
|
-
LEGACY_size: "small",
|
|
39
38
|
color: "var(--ds-text-subtlest, #6B6E76)"
|
|
40
39
|
}) : null;
|
|
41
40
|
return /*#__PURE__*/React.createElement(DetailsLabel, {
|
|
@@ -300,7 +300,7 @@ var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
|
|
300
300
|
viewProfileOnClick = _ref5.viewProfileOnClick,
|
|
301
301
|
isTriggeredByKeyboard = _ref5.isTriggeredByKeyboard;
|
|
302
302
|
var newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
303
|
-
var isTeamArchived = team.state === 'DISBANDED' &&
|
|
303
|
+
var isTeamArchived = team.state === 'DISBANDED' && newTeamProfileEnabled;
|
|
304
304
|
var allActions = [{
|
|
305
305
|
label: /*#__PURE__*/React.createElement(FormattedMessage, messages.teamViewProfile),
|
|
306
306
|
link: viewProfileLink,
|
|
@@ -418,6 +418,10 @@ var ErrorMessage = function ErrorMessage(_ref6) {
|
|
|
418
418
|
isLoading: isLoading
|
|
419
419
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.teamErrorButton)))));
|
|
420
420
|
};
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @deprecated This component is deprecated and will be removed soon. Please use `@atlassian/team-profilecard` instead.
|
|
424
|
+
*/
|
|
421
425
|
var TeamProfileCard = function TeamProfileCard(props) {
|
|
422
426
|
var analytics = props.analytics,
|
|
423
427
|
analyticsNext = props.analyticsNext,
|
|
@@ -12,17 +12,15 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React, { Suspense } from 'react';
|
|
14
14
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
15
|
-
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
16
15
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
17
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
19
17
|
import Popup from '@atlaskit/popup';
|
|
20
18
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
21
19
|
import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
|
|
22
20
|
import { layers } from '@atlaskit/theme/constants';
|
|
23
21
|
import _filterActions from '../../internal/filterActions';
|
|
24
22
|
import messages from '../../messages';
|
|
25
|
-
import {
|
|
23
|
+
import { fireEvent, PACKAGE_META_DATA } from '../../util/analytics';
|
|
26
24
|
import { isBasicClick } from '../../util/click';
|
|
27
25
|
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
28
26
|
import { getPageTime } from '../../util/performance';
|
|
@@ -114,16 +112,12 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
114
112
|
_this.openedByHover = false;
|
|
115
113
|
_this.showProfilecard(0);
|
|
116
114
|
if (!_this.state.visible) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}));
|
|
124
|
-
} else {
|
|
125
|
-
_this.fireAnalytics(cardTriggered('team', 'click', _this.props.teamId));
|
|
126
|
-
}
|
|
115
|
+
_this.fireAnalyticsNext('ui.teamProfileCard.triggered', _objectSpread(_objectSpread({
|
|
116
|
+
method: 'click'
|
|
117
|
+
}, PACKAGE_META_DATA), {}, {
|
|
118
|
+
firedAt: Math.round(getPageTime()),
|
|
119
|
+
teamId: _this.props.teamId
|
|
120
|
+
}));
|
|
127
121
|
}
|
|
128
122
|
}
|
|
129
123
|
});
|
|
@@ -133,16 +127,12 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
133
127
|
}
|
|
134
128
|
if (!_this.state.visible) {
|
|
135
129
|
_this.openedByHover = true;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}));
|
|
143
|
-
} else {
|
|
144
|
-
_this.fireAnalytics(cardTriggered('team', 'hover', _this.props.teamId));
|
|
145
|
-
}
|
|
130
|
+
_this.fireAnalyticsNext('ui.teamProfileCard.triggered', _objectSpread(_objectSpread({
|
|
131
|
+
method: 'hover'
|
|
132
|
+
}, PACKAGE_META_DATA), {}, {
|
|
133
|
+
firedAt: Math.round(getPageTime()),
|
|
134
|
+
teamId: _this.props.teamId
|
|
135
|
+
}));
|
|
146
136
|
}
|
|
147
137
|
_this.showProfilecard(DELAY_MS_SHOW);
|
|
148
138
|
});
|
|
@@ -162,15 +152,11 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
162
152
|
});
|
|
163
153
|
_this.showProfilecard(0);
|
|
164
154
|
if (!_this.state.visible) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}, PACKAGE_META_DATA));
|
|
171
|
-
} else {
|
|
172
|
-
_this.fireAnalytics(cardTriggered('team', 'click', _this.props.teamId));
|
|
173
|
-
}
|
|
155
|
+
_this.fireAnalyticsNext('ui.teamProfileCard.triggered', _objectSpread({
|
|
156
|
+
method: 'click',
|
|
157
|
+
firedAt: Math.round(getPageTime()),
|
|
158
|
+
teamId: _this.props.teamId
|
|
159
|
+
}, PACKAGE_META_DATA));
|
|
174
160
|
}
|
|
175
161
|
}
|
|
176
162
|
});
|
|
@@ -260,16 +246,10 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
260
246
|
});
|
|
261
247
|
});
|
|
262
248
|
_defineProperty(_this, "onErrorBoundary", function () {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}));
|
|
268
|
-
} else {
|
|
269
|
-
_this.fireAnalytics(profileCardRendered('team', 'errorBoundary', {
|
|
270
|
-
duration: 0
|
|
271
|
-
}));
|
|
272
|
-
}
|
|
249
|
+
_this.fireAnalyticsNext('ui.teamProfileCard.rendered.errorBoundary', _objectSpread(_objectSpread({}, PACKAGE_META_DATA), {}, {
|
|
250
|
+
firedAt: Math.round(getPageTime()),
|
|
251
|
+
duration: 0
|
|
252
|
+
}));
|
|
273
253
|
_this.setState({
|
|
274
254
|
renderError: true
|
|
275
255
|
});
|
|
@@ -471,11 +451,20 @@ _defineProperty(TeamProfileCardTriggerInternal, "defaultProps", {
|
|
|
471
451
|
triggerLinkType: 'link',
|
|
472
452
|
shouldRenderToParent: true
|
|
473
453
|
});
|
|
474
|
-
var
|
|
454
|
+
var TeamProfileCardTrigger = function TeamProfileCardTrigger(props) {
|
|
475
455
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
476
456
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
457
|
+
if (fg('people-teams-deprecate-profilecard-teams')) {
|
|
458
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, props.children);
|
|
459
|
+
}
|
|
477
460
|
return /*#__PURE__*/React.createElement(TeamProfileCardTriggerInternal, _extends({}, props, {
|
|
478
461
|
fireEvent: fireEvent
|
|
479
462
|
}));
|
|
480
463
|
};
|
|
481
|
-
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* @deprecated This component is deprecated and provides no functionality.
|
|
467
|
+
* It now simply renders its children without any profile card behavior.
|
|
468
|
+
* Please use `@atlassian/team-profilecard` instead for team profile card functionality.
|
|
469
|
+
*/
|
|
470
|
+
export default injectIntl(TeamProfileCardTrigger);
|
package/dist/esm/messages.js
CHANGED
|
@@ -201,6 +201,11 @@ var messages = defineMessages({
|
|
|
201
201
|
defaultMessage: 'Try again and we’ll give it another shot',
|
|
202
202
|
description: 'Suggestion message shown to the user to retry loading the profile card'
|
|
203
203
|
},
|
|
204
|
+
errorTryAgain: {
|
|
205
|
+
id: 'pt.profile-card.error.try-again-button',
|
|
206
|
+
defaultMessage: 'Try again',
|
|
207
|
+
description: 'Label for the button to retry loading the profile card after an error'
|
|
208
|
+
},
|
|
204
209
|
serviceAccountLabel: {
|
|
205
210
|
id: 'pt.profile-card.service-account.label',
|
|
206
211
|
defaultMessage: 'SERVICE ACCOUNT',
|
|
@@ -7,7 +7,7 @@ import { getPageTime } from './performance';
|
|
|
7
7
|
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
8
8
|
export var PACKAGE_META_DATA = {
|
|
9
9
|
packageName: "@atlaskit/profilecard",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "24.27.2"
|
|
11
11
|
};
|
|
12
12
|
var runItLater = function runItLater(cb) {
|
|
13
13
|
var requestIdleCallback = window.requestIdleCallback;
|
|
@@ -52,7 +52,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
52
52
|
actionSubjectId: actionSubjectId,
|
|
53
53
|
attributes: _objectSpread(_objectSpread({
|
|
54
54
|
packageName: "@atlaskit/profilecard",
|
|
55
|
-
packageVersion: "
|
|
55
|
+
packageVersion: "24.27.2"
|
|
56
56
|
}, attributes), {}, {
|
|
57
57
|
firedAt: Math.round(getPageTime())
|
|
58
58
|
})
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TeamProfilecardProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component is deprecated and will be removed soon. Please use `@atlassian/team-profilecard` instead.
|
|
5
|
+
*/
|
|
3
6
|
declare const TeamProfileCard: (props: TeamProfilecardProps) => React.JSX.Element | null;
|
|
4
7
|
export default TeamProfileCard;
|
|
@@ -57,9 +57,12 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
|
|
|
57
57
|
renderPopup(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
58
58
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated This component is deprecated and provides no functionality.
|
|
62
|
+
* It now simply renders its children without any profile card behavior.
|
|
63
|
+
* Please use `@atlassian/team-profilecard` instead for team profile card functionality.
|
|
64
|
+
*/
|
|
65
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<TeamProfileCardTriggerProps & WrappedComponentProps>> & {
|
|
66
|
+
WrappedComponent: React.ComponentType<TeamProfileCardTriggerProps & WrappedComponentProps>;
|
|
67
|
+
};
|
|
65
68
|
export default _default;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -199,6 +199,11 @@ declare const messages: {
|
|
|
199
199
|
defaultMessage: string;
|
|
200
200
|
description: string;
|
|
201
201
|
};
|
|
202
|
+
errorTryAgain: {
|
|
203
|
+
id: string;
|
|
204
|
+
defaultMessage: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
202
207
|
serviceAccountLabel: {
|
|
203
208
|
id: string;
|
|
204
209
|
defaultMessage: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TeamProfilecardProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component is deprecated and will be removed soon. Please use `@atlassian/team-profilecard` instead.
|
|
5
|
+
*/
|
|
3
6
|
declare const TeamProfileCard: (props: TeamProfilecardProps) => React.JSX.Element | null;
|
|
4
7
|
export default TeamProfileCard;
|
|
@@ -57,9 +57,12 @@ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<
|
|
|
57
57
|
renderPopup(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
58
58
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated This component is deprecated and provides no functionality.
|
|
62
|
+
* It now simply renders its children without any profile card behavior.
|
|
63
|
+
* Please use `@atlassian/team-profilecard` instead for team profile card functionality.
|
|
64
|
+
*/
|
|
65
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<TeamProfileCardTriggerProps & WrappedComponentProps>> & {
|
|
66
|
+
WrappedComponent: React.ComponentType<TeamProfileCardTriggerProps & WrappedComponentProps>;
|
|
67
|
+
};
|
|
65
68
|
export default _default;
|
|
@@ -199,6 +199,11 @@ declare const messages: {
|
|
|
199
199
|
defaultMessage: string;
|
|
200
200
|
description: string;
|
|
201
201
|
};
|
|
202
|
+
errorTryAgain: {
|
|
203
|
+
id: string;
|
|
204
|
+
defaultMessage: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
202
207
|
serviceAccountLabel: {
|
|
203
208
|
id: string;
|
|
204
209
|
defaultMessage: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.28.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,25 +42,25 @@
|
|
|
42
42
|
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.7.0",
|
|
43
43
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
44
44
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
45
|
-
"@atlaskit/avatar": "^25.
|
|
45
|
+
"@atlaskit/avatar": "^25.7.0",
|
|
46
46
|
"@atlaskit/avatar-group": "^12.4.0",
|
|
47
47
|
"@atlaskit/button": "^23.9.0",
|
|
48
48
|
"@atlaskit/css": "^0.19.0",
|
|
49
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
49
|
+
"@atlaskit/dropdown-menu": "^16.4.0",
|
|
50
50
|
"@atlaskit/empty-state": "^10.1.0",
|
|
51
51
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
52
52
|
"@atlaskit/give-kudos": "^4.5.0",
|
|
53
53
|
"@atlaskit/heading": "^5.2.0",
|
|
54
|
-
"@atlaskit/icon": "^29.
|
|
54
|
+
"@atlaskit/icon": "^29.4.0",
|
|
55
55
|
"@atlaskit/lozenge": "^13.3.0",
|
|
56
56
|
"@atlaskit/menu": "^8.4.0",
|
|
57
57
|
"@atlaskit/modal-dialog": "^14.9.0",
|
|
58
58
|
"@atlaskit/people-teams-ui-public": "^3.7.0",
|
|
59
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
61
|
-
"@atlaskit/popup": "^4.
|
|
61
|
+
"@atlaskit/popup": "^4.13.0",
|
|
62
62
|
"@atlaskit/primitives": "^17.0.0",
|
|
63
|
-
"@atlaskit/rovo-agent-components": "^3.
|
|
63
|
+
"@atlaskit/rovo-agent-components": "^3.18.0",
|
|
64
64
|
"@atlaskit/rovo-triggers": "^5.3.0",
|
|
65
65
|
"@atlaskit/spinner": "^19.0.0",
|
|
66
66
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
69
69
|
"@atlaskit/teams-public": "^0.65.0",
|
|
70
70
|
"@atlaskit/theme": "^21.0.0",
|
|
71
|
-
"@atlaskit/tokens": "^9.
|
|
72
|
-
"@atlaskit/tooltip": "^20.
|
|
71
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
72
|
+
"@atlaskit/tooltip": "^20.12.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
74
74
|
"@compiled/react": "^0.18.6",
|
|
75
75
|
"date-fns": "^2.17.0",
|
|
@@ -155,9 +155,6 @@
|
|
|
155
155
|
"jira_ai_profilecard_hide_agent_actions": {
|
|
156
156
|
"type": "boolean"
|
|
157
157
|
},
|
|
158
|
-
"legion-enable-archive-teams": {
|
|
159
|
-
"type": "boolean"
|
|
160
|
-
},
|
|
161
158
|
"rovo_agent_empty_state_refresh": {
|
|
162
159
|
"type": "boolean"
|
|
163
160
|
},
|
|
@@ -166,6 +163,9 @@
|
|
|
166
163
|
},
|
|
167
164
|
"people-teams-fix-no-literal-string-in-jsx": {
|
|
168
165
|
"type": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"people-teams-deprecate-profilecard-teams": {
|
|
168
|
+
"type": "boolean"
|
|
169
169
|
}
|
|
170
170
|
},
|
|
171
171
|
"sideEffects": [
|