@atlaskit/profilecard 19.2.0 → 19.2.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 +12 -0
- package/dist/cjs/client/errorUtils.js +1 -0
- package/dist/cjs/client/graphqlUtils.js +1 -1
- package/dist/cjs/mocks/mock-team-client.js +10 -6
- package/dist/cjs/styled/Card.js +12 -12
- package/dist/cjs/styled/Error.js +3 -3
- package/dist/cjs/styled/ReportingLines.js +5 -5
- package/dist/cjs/styled/TeamCard.js +7 -7
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/client/errorUtils.js +1 -0
- package/dist/es2019/client/graphqlUtils.js +1 -1
- package/dist/es2019/mocks/mock-team-client.js +10 -6
- package/dist/es2019/styled/Card.js +19 -19
- package/dist/es2019/styled/Error.js +3 -3
- package/dist/es2019/styled/ReportingLines.js +7 -7
- package/dist/es2019/styled/TeamCard.js +8 -7
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/client/errorUtils.js +1 -0
- package/dist/esm/client/graphqlUtils.js +1 -1
- package/dist/esm/mocks/mock-team-client.js +10 -6
- package/dist/esm/styled/Card.js +12 -12
- package/dist/esm/styled/Error.js +3 -3
- package/dist/esm/styled/ReportingLines.js +5 -5
- package/dist/esm/styled/TeamCard.js +7 -7
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/client/errorUtils.d.ts +1 -0
- package/dist/types/client/graphqlUtils.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c3d16d3164f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3d16d3164f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
8
|
+
|
|
9
|
+
## 19.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`052672d7eca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/052672d7eca) - Added errorSource to analytics events, added tests for fail events
|
|
14
|
+
|
|
3
15
|
## 19.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -18,6 +18,7 @@ var getErrorAttributes = function getErrorAttributes(error) {
|
|
|
18
18
|
errorMessage: error === null || error === void 0 ? void 0 : error.message,
|
|
19
19
|
errorStatus: error === null || error === void 0 ? void 0 : error.code,
|
|
20
20
|
errorReason: (error === null || error === void 0 ? void 0 : error.reason) || 'default',
|
|
21
|
+
errorSource: error === null || error === void 0 ? void 0 : error.source,
|
|
21
22
|
isSLOFailure: !isIgnoredError(error),
|
|
22
23
|
traceId: (_error$traceId = error === null || error === void 0 ? void 0 : error.traceId) !== null && _error$traceId !== void 0 ? _error$traceId : undefined
|
|
23
24
|
};
|
|
@@ -46,7 +46,7 @@ function graphqlQuery(serviceUrl, query) {
|
|
|
46
46
|
return Promise.reject({
|
|
47
47
|
reason: ((_json$errors$ = json.errors[0]) === null || _json$errors$ === void 0 ? void 0 : _json$errors$.category) || ((_json$errors$2 = json.errors[0]) === null || _json$errors$2 === void 0 ? void 0 : (_json$errors$2$extens = _json$errors$2.extensions) === null || _json$errors$2$extens === void 0 ? void 0 : _json$errors$2$extens.classification) || 'default',
|
|
48
48
|
code: (_json$errors$3 = json.errors[0]) === null || _json$errors$3 === void 0 ? void 0 : (_json$errors$3$extens = _json$errors$3.extensions) === null || _json$errors$3$extens === void 0 ? void 0 : _json$errors$3$extens.statusCode,
|
|
49
|
-
|
|
49
|
+
source: (_json$errors$4 = json.errors[0]) === null || _json$errors$4 === void 0 ? void 0 : (_json$errors$4$extens = _json$errors$4.extensions) === null || _json$errors$4$extens === void 0 ? void 0 : _json$errors$4$extens.errorSource,
|
|
50
50
|
message: json.errors[0].message,
|
|
51
51
|
traceId: (_json$extensions = json.extensions) === null || _json$extensions === void 0 ? void 0 : (_json$extensions$gate = _json$extensions.gateway) === null || _json$extensions$gate === void 0 ? void 0 : _json$extensions$gate.request_id
|
|
52
52
|
});
|
|
@@ -24,20 +24,24 @@ function getMockTeamClient(data) {
|
|
|
24
24
|
(0, _createClass2.default)(MockTeamClient, [{
|
|
25
25
|
key: "makeRequest",
|
|
26
26
|
value: function makeRequest(teamId) {
|
|
27
|
+
var _data$error, _data$error2, _data$error3, _data$error4, _data$error5;
|
|
28
|
+
var errorResponse = {
|
|
29
|
+
reason: (_data$error = data.error) === null || _data$error === void 0 ? void 0 : _data$error.reason,
|
|
30
|
+
code: (_data$error2 = data.error) === null || _data$error2 === void 0 ? void 0 : _data$error2.code,
|
|
31
|
+
source: (_data$error3 = data.error) === null || _data$error3 === void 0 ? void 0 : _data$error3.source,
|
|
32
|
+
message: (_data$error4 = data.error) === null || _data$error4 === void 0 ? void 0 : _data$error4.message,
|
|
33
|
+
traceId: (_data$error5 = data.error) === null || _data$error5 === void 0 ? void 0 : _data$error5.traceId
|
|
34
|
+
};
|
|
27
35
|
if (!data.timeout) {
|
|
28
36
|
if (data.error && Math.random() < data.errorRate) {
|
|
29
|
-
return Promise.reject(
|
|
30
|
-
reason: data.error
|
|
31
|
-
});
|
|
37
|
+
return Promise.reject(errorResponse);
|
|
32
38
|
}
|
|
33
39
|
return Promise.resolve(data.team);
|
|
34
40
|
}
|
|
35
41
|
return new Promise(function (resolve, reject) {
|
|
36
42
|
setTimeout(function () {
|
|
37
43
|
if (data.error && Math.random() < data.errorRate) {
|
|
38
|
-
reject(
|
|
39
|
-
reason: data.error
|
|
40
|
-
});
|
|
44
|
+
reject(errorResponse);
|
|
41
45
|
}
|
|
42
46
|
return resolve(data.team);
|
|
43
47
|
}, data.timeout);
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -21,7 +21,7 @@ var CardContainerEmpty = _styled.default.div(_templateObject || (_templateObject
|
|
|
21
21
|
exports.CardContainerEmpty = CardContainerEmpty;
|
|
22
22
|
var CardWrapper = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n border-radius: ", "px;\n width: ", "px;\n"])), _constants2.bgColor, _constants.borderRadius, (0, _constants.gridSize)() * 45);
|
|
23
23
|
exports.CardWrapper = CardWrapper;
|
|
24
|
-
var ProfileImage = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: ", "
|
|
24
|
+
var ProfileImage = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: ", ";\n left: ", ";\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
25
25
|
exports.ProfileImage = ProfileImage;
|
|
26
26
|
var ActionsFlexSpacer = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1 0 auto;\n"])));
|
|
27
27
|
exports.ActionsFlexSpacer = ActionsFlexSpacer;
|
|
@@ -36,7 +36,7 @@ var KudosBlobAnimation = function KudosBlobAnimation(props) {
|
|
|
36
36
|
exports.KudosBlobAnimation = KudosBlobAnimation;
|
|
37
37
|
var AnimatedKudosButton = _styled.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", "px;\n\n /* Need babel-plugin-emotion to use component selector */\n /* Previously with styled-components: &:hover {KudosBlobAnimation} { */\n &:hover .kudos-blob-animation {\n display: block;\n }\n\n button,\n a {\n clip-path: inset(0px 0px 0px 0px round ", "px);\n }\n overflow: hidden;\n"])), _constants.gridSize, _constants.borderRadius);
|
|
38
38
|
exports.AnimatedKudosButton = AnimatedKudosButton;
|
|
39
|
-
var ActionButtonGroup = _styled.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n user-select: none;\n margin: ", "
|
|
39
|
+
var ActionButtonGroup = _styled.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n user-select: none;\n margin: ", " 0 0 0;\n text-align: right;\n display: flex;\n justify-content: flex-end;\n\n button,\n a,\n span {\n margin-left: ", "px;\n\n &:first-child {\n margin-left: 0;\n }\n }\n"])), "var(--ds-space-200, 16px)", _constants.gridSize);
|
|
40
40
|
exports.ActionButtonGroup = ActionButtonGroup;
|
|
41
41
|
var OverflowActionButtonsWrapper = _styled.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n width: 32px;\n height: 32px;\n margin-left: ", "px;\n"])), _constants.gridSize);
|
|
42
42
|
exports.OverflowActionButtonsWrapper = OverflowActionButtonsWrapper;
|
|
@@ -44,7 +44,7 @@ var CardContent = _styled.default.div(_templateObject10 || (_templateObject10 =
|
|
|
44
44
|
exports.CardContent = CardContent;
|
|
45
45
|
var DetailsGroup = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n width: ", "px;\n"])), (0, _constants.gridSize)() * 14.5, (0, _constants.gridSize)() * 24.5);
|
|
46
46
|
exports.DetailsGroup = DetailsGroup;
|
|
47
|
-
var DisabledInfo = _styled.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n color: ", ";\n margin: ", "
|
|
47
|
+
var DisabledInfo = _styled.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n color: ", ";\n margin: ", " 0 0 0;\n line-height: ", ";\n"])), _constants.fontSizeSmall, _constants2.labelTextColor, "var(--ds-space-150, 12px)", "var(--ds-font-lineHeight-100, 16px)");
|
|
48
48
|
exports.DisabledInfo = DisabledInfo;
|
|
49
49
|
var FullNameLabel = _styled.default.span(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 18px;\n color: ", ";\n margin: ", ";\n line-height: ", "em;\n"])), function (props) {
|
|
50
50
|
return props.isDisabledAccount ? _constants2.headerTextColorInactive : _constants2.headerTextColor;
|
|
@@ -52,29 +52,29 @@ var FullNameLabel = _styled.default.span(_templateObject13 || (_templateObject13
|
|
|
52
52
|
return getFullNameMargin(props);
|
|
53
53
|
}, 24 / 18);
|
|
54
54
|
exports.FullNameLabel = FullNameLabel;
|
|
55
|
-
var LozengeWrapper = _styled.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", "
|
|
55
|
+
var LozengeWrapper = _styled.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", ";\n text-transform: uppercase;\n display: block;\n"])), "var(--ds-space-200, 16px)");
|
|
56
56
|
exports.LozengeWrapper = LozengeWrapper;
|
|
57
|
-
var CustomLozengeContainer = (0, _styled.default)(LozengeWrapper)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-top: ", "
|
|
57
|
+
var CustomLozengeContainer = (0, _styled.default)(LozengeWrapper)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-top: ", ";\n > * {\n margin-top: ", ";\n &:not(:last-child) {\n margin-right: ", ";\n }\n }\n"])), "var(--ds-space-150, 12px)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
58
58
|
exports.CustomLozengeContainer = CustomLozengeContainer;
|
|
59
|
-
var JobTitleLabel = _styled.default.span(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 14px;\n color: ", ";\n margin: 0 0 ", "
|
|
59
|
+
var JobTitleLabel = _styled.default.span(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 14px;\n color: ", ";\n margin: 0 0 ", " 0;\n line-height: ", "em;\n"])), _constants2.headerTextColor, "var(--ds-space-150, 12px)", 24 / 14);
|
|
60
60
|
exports.JobTitleLabel = JobTitleLabel;
|
|
61
|
-
var AppTitleLabel = _styled.default.span(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n color: ", ";\n border-radius: ", ";\n padding: 0 6px;\n width: fit-content;\n font-weight: bold;\n text-transform: uppercase;\n\n font-size: 12px;\n margin: 4px 0 ", "
|
|
61
|
+
var AppTitleLabel = _styled.default.span(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n color: ", ";\n border-radius: ", ";\n padding: 0 6px;\n width: fit-content;\n font-weight: bold;\n text-transform: uppercase;\n\n font-size: 12px;\n margin: 4px 0 ", " 0;\n line-height: ", "em;\n"])), _constants2.appLabelBgColor, _constants2.appLabelTextColor, (0, _constants.borderRadius)(), "var(--ds-space-150, 12px)", 24 / 14);
|
|
62
62
|
exports.AppTitleLabel = AppTitleLabel;
|
|
63
63
|
var SpinnerContainer = _styled.default.div(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n height: ", "px;\n justify-content: center;\n position: relative;\n"])), (0, _constants.gridSize)() * 12);
|
|
64
64
|
exports.SpinnerContainer = SpinnerContainer;
|
|
65
|
-
var CardContainer = _styled.default.div(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", "
|
|
65
|
+
var CardContainer = _styled.default.div(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", ";\n box-shadow: ", ";\n border-radius: ", ";\n\n overflow: hidden;\n"])), function (props) {
|
|
66
66
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
67
67
|
}, function (props) {
|
|
68
68
|
return props.isDisabledUser ? _constants2.headerBgColorDisabledUser : _constants2.headerBgColor;
|
|
69
|
-
}, (0, _constants.gridSize)() * 12, (
|
|
69
|
+
}, (0, _constants.gridSize)() * 12, "var(--ds-space-300, 24px)", function (props) {
|
|
70
70
|
return props.withoutElevation ? '' : "".concat("var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A), ")"));
|
|
71
71
|
}, function (props) {
|
|
72
72
|
return props.withoutElevation ? '' : "".concat((0, _constants.borderRadius)(), "px");
|
|
73
73
|
});
|
|
74
74
|
exports.CardContainer = CardContainer;
|
|
75
|
-
var DetailsLabel = _styled.default.div(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n line-height: ", "
|
|
75
|
+
var DetailsLabel = _styled.default.div(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n line-height: ", ";\n font-size: ", "px;\n margin: ", " 0 0 0;\n white-space: nowrap;\n\n & + & {\n margin-top: ", ";\n }\n"])), "var(--ds-font-lineHeight-300, 24px)", (0, _constants.gridSize)() * 1.5, "var(--ds-space-200, 16px)", "var(--ds-space-025, 2px)");
|
|
76
76
|
exports.DetailsLabel = DetailsLabel;
|
|
77
|
-
var DetailsLabelIcon = _styled.default.div(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-shrink: 0;\n color: ", ";\n width: ", "
|
|
77
|
+
var DetailsLabelIcon = _styled.default.div(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-shrink: 0;\n color: ", ";\n width: ", ";\n height: ", ";\n padding: ", ";\n vertical-align: top;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"])), _constants2.labelIconColor, "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", "var(--ds-space-050, 4px)");
|
|
78
78
|
exports.DetailsLabelIcon = DetailsLabelIcon;
|
|
79
|
-
var DetailsLabelText = _styled.default.span(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n padding-left: ", "
|
|
79
|
+
var DetailsLabelText = _styled.default.span(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n padding-left: ", ";\n"])), _constants2.labelTextColor, "var(--ds-space-050, 4px)");
|
|
80
80
|
exports.DetailsLabelText = DetailsLabelText;
|
package/dist/cjs/styled/Error.js
CHANGED
|
@@ -12,13 +12,13 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
12
12
|
var _typography = require("@atlaskit/theme/typography");
|
|
13
13
|
var _constants2 = require("./constants");
|
|
14
14
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
15
|
-
var ErrorWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n text-align: center;\n padding: ", "
|
|
15
|
+
var ErrorWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n text-align: center;\n padding: ", ";\n color: ", ";\n"])), "var(--ds-space-300, 24px)", _constants2.errorIconColor);
|
|
16
16
|
exports.ErrorWrapper = ErrorWrapper;
|
|
17
|
-
var ErrorTitle = _styled.default.p(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n line-height: ", "px;\n margin: ", "
|
|
17
|
+
var ErrorTitle = _styled.default.p(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n line-height: ", "px;\n margin: ", " 0;\n"])), _constants2.errorTitleColor, (0, _constants.gridSize)() * 3, "var(--ds-space-100, 8px)");
|
|
18
18
|
exports.ErrorTitle = ErrorTitle;
|
|
19
19
|
var ErrorText = _styled.default.span(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), _constants2.errorTextColor);
|
|
20
20
|
exports.ErrorText = ErrorText;
|
|
21
21
|
var TeamErrorTitle = _styled.default.p(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n"])), _typography.h400);
|
|
22
22
|
exports.TeamErrorTitle = TeamErrorTitle;
|
|
23
|
-
var TeamErrorText = _styled.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "
|
|
23
|
+
var TeamErrorText = _styled.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", ";\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-space-100, 8px)");
|
|
24
24
|
exports.TeamErrorText = TeamErrorText;
|
|
@@ -10,13 +10,13 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
11
|
var _constants2 = require("./constants");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
13
|
-
var ReportingLinesSection = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Minor left margin to align better with existing icon fields\n margin-left: ", "
|
|
13
|
+
var ReportingLinesSection = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Minor left margin to align better with existing icon fields\n margin-left: ", ";\n margin-top: ", ";\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)");
|
|
14
14
|
exports.ReportingLinesSection = ReportingLinesSection;
|
|
15
|
-
var ReportingLinesHeading = _styled.default.h5(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n margin-bottom: ", "
|
|
15
|
+
var ReportingLinesHeading = _styled.default.h5(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n margin-bottom: ", ";\n"])), _constants2.appLabelTextColor, (0, _constants.gridSize)() * 1.5, "var(--ds-space-100, 8px)");
|
|
16
16
|
exports.ReportingLinesHeading = ReportingLinesHeading;
|
|
17
|
-
var ManagerSection = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n margin: ", "
|
|
17
|
+
var ManagerSection = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n margin: ", " ", ";\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
18
18
|
exports.ManagerSection = ManagerSection;
|
|
19
|
-
var ManagerName = _styled.default.span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n margin-left: ", "
|
|
19
|
+
var ManagerName = _styled.default.span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n margin-left: ", ";\n"])), (0, _constants.gridSize)() * 1.5, "var(--ds-space-100, 8px)");
|
|
20
20
|
exports.ManagerName = ManagerName;
|
|
21
|
-
var OffsetWrapper = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", "
|
|
21
|
+
var OffsetWrapper = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", ";\n // Offset left margin so the avatar aligns with the heading\n margin-left: calc(-1 * ", ");\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
22
22
|
exports.OffsetWrapper = OffsetWrapper;
|
|
@@ -24,27 +24,27 @@ var CardHeader = _styled.default.div(_templateObject4 || (_templateObject4 = (0,
|
|
|
24
24
|
return props.image ? "url(".concat(props.image, ")") : '';
|
|
25
25
|
}, (0, _constants.gridSize)() * 16);
|
|
26
26
|
exports.CardHeader = CardHeader;
|
|
27
|
-
var CardContent = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n padding: ", "
|
|
27
|
+
var CardContent = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n padding: ", ";\n min-height: ", "px;\n"])), "var(--ds-space-300, 24px)", (0, _constants.gridSize)() * 13);
|
|
28
28
|
exports.CardContent = CardContent;
|
|
29
29
|
var TeamName = _styled.default.h6(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n text-transform: none;\n overflow: hidden;\n max-height: 48px;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])), _typography.h600);
|
|
30
30
|
exports.TeamName = TeamName;
|
|
31
|
-
var MemberCount = _styled.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "
|
|
31
|
+
var MemberCount = _styled.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", ";\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-space-050, 4px)");
|
|
32
32
|
exports.MemberCount = MemberCount;
|
|
33
|
-
var AvatarSection = _styled.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", "
|
|
33
|
+
var AvatarSection = _styled.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", ";\n margin-left: -2px;\n"])), "var(--ds-space-200, 16px)");
|
|
34
34
|
exports.AvatarSection = AvatarSection;
|
|
35
|
-
var DescriptionWrapper = _styled.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", "
|
|
35
|
+
var DescriptionWrapper = _styled.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", ";\n align-items: center;\n display: flex;\n"])), "var(--ds-space-200, 16px)");
|
|
36
36
|
exports.DescriptionWrapper = DescriptionWrapper;
|
|
37
37
|
var Description = _styled.default.span(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n overflow: hidden;\n max-height: 60px;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"])));
|
|
38
38
|
exports.Description = Description;
|
|
39
|
-
var ActionButtons = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "
|
|
39
|
+
var ActionButtons = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", " calc(-1 * ", ")\n 0 calc(-1 * ", ");\n background-color: ", ";\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))");
|
|
40
40
|
exports.ActionButtons = ActionButtons;
|
|
41
41
|
var WrappedButton = _styled.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n flex-basis: 0;\n flex-grow: 1;\n margin-left: 8px;\n"])));
|
|
42
42
|
exports.WrappedButton = WrappedButton;
|
|
43
43
|
var MoreButton = _styled.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 8px;\n"])));
|
|
44
44
|
exports.MoreButton = MoreButton;
|
|
45
|
-
var LoadingWrapper = _styled.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n text-align: center;\n margin-top: ", "
|
|
45
|
+
var LoadingWrapper = _styled.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n text-align: center;\n margin-top: ", ";\n"])), "var(--ds-space-500, 40px)");
|
|
46
46
|
exports.LoadingWrapper = LoadingWrapper;
|
|
47
|
-
var AccessLockSVGWrapper = _styled.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: ", "
|
|
47
|
+
var AccessLockSVGWrapper = _styled.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: ", ";\n"])), "var(--ds-space-300, 24px)");
|
|
48
48
|
|
|
49
49
|
// export const LoadingTeamName = styled.div`
|
|
50
50
|
// width: 175px;
|
|
@@ -44,7 +44,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
44
44
|
actionSubjectId: actionSubjectId,
|
|
45
45
|
attributes: _objectSpread(_objectSpread({
|
|
46
46
|
packageName: "@atlaskit/profilecard",
|
|
47
|
-
packageVersion: "19.2.
|
|
47
|
+
packageVersion: "19.2.2"
|
|
48
48
|
}, attributes), {}, {
|
|
49
49
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
50
50
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -12,6 +12,7 @@ export const getErrorAttributes = error => {
|
|
|
12
12
|
errorMessage: error === null || error === void 0 ? void 0 : error.message,
|
|
13
13
|
errorStatus: error === null || error === void 0 ? void 0 : error.code,
|
|
14
14
|
errorReason: (error === null || error === void 0 ? void 0 : error.reason) || 'default',
|
|
15
|
+
errorSource: error === null || error === void 0 ? void 0 : error.source,
|
|
15
16
|
isSLOFailure: !isIgnoredError(error),
|
|
16
17
|
traceId: (_error$traceId = error === null || error === void 0 ? void 0 : error.traceId) !== null && _error$traceId !== void 0 ? _error$traceId : undefined
|
|
17
18
|
};
|
|
@@ -35,7 +35,7 @@ export function graphqlQuery(serviceUrl, query, processHeaders = id) {
|
|
|
35
35
|
return Promise.reject({
|
|
36
36
|
reason: ((_json$errors$ = json.errors[0]) === null || _json$errors$ === void 0 ? void 0 : _json$errors$.category) || ((_json$errors$2 = json.errors[0]) === null || _json$errors$2 === void 0 ? void 0 : (_json$errors$2$extens = _json$errors$2.extensions) === null || _json$errors$2$extens === void 0 ? void 0 : _json$errors$2$extens.classification) || 'default',
|
|
37
37
|
code: (_json$errors$3 = json.errors[0]) === null || _json$errors$3 === void 0 ? void 0 : (_json$errors$3$extens = _json$errors$3.extensions) === null || _json$errors$3$extens === void 0 ? void 0 : _json$errors$3$extens.statusCode,
|
|
38
|
-
|
|
38
|
+
source: (_json$errors$4 = json.errors[0]) === null || _json$errors$4 === void 0 ? void 0 : (_json$errors$4$extens = _json$errors$4.extensions) === null || _json$errors$4$extens === void 0 ? void 0 : _json$errors$4$extens.errorSource,
|
|
39
39
|
message: json.errors[0].message,
|
|
40
40
|
traceId: (_json$extensions = json.extensions) === null || _json$extensions === void 0 ? void 0 : (_json$extensions$gate = _json$extensions.gateway) === null || _json$extensions$gate === void 0 ? void 0 : _json$extensions$gate.request_id
|
|
41
41
|
});
|
|
@@ -2,20 +2,24 @@ import TeamProfileCardClient from '../client/TeamProfileCardClient';
|
|
|
2
2
|
export default function getMockTeamClient(data) {
|
|
3
3
|
return class MockTeamClient extends TeamProfileCardClient {
|
|
4
4
|
makeRequest(teamId) {
|
|
5
|
+
var _data$error, _data$error2, _data$error3, _data$error4, _data$error5;
|
|
6
|
+
const errorResponse = {
|
|
7
|
+
reason: (_data$error = data.error) === null || _data$error === void 0 ? void 0 : _data$error.reason,
|
|
8
|
+
code: (_data$error2 = data.error) === null || _data$error2 === void 0 ? void 0 : _data$error2.code,
|
|
9
|
+
source: (_data$error3 = data.error) === null || _data$error3 === void 0 ? void 0 : _data$error3.source,
|
|
10
|
+
message: (_data$error4 = data.error) === null || _data$error4 === void 0 ? void 0 : _data$error4.message,
|
|
11
|
+
traceId: (_data$error5 = data.error) === null || _data$error5 === void 0 ? void 0 : _data$error5.traceId
|
|
12
|
+
};
|
|
5
13
|
if (!data.timeout) {
|
|
6
14
|
if (data.error && Math.random() < data.errorRate) {
|
|
7
|
-
return Promise.reject(
|
|
8
|
-
reason: data.error
|
|
9
|
-
});
|
|
15
|
+
return Promise.reject(errorResponse);
|
|
10
16
|
}
|
|
11
17
|
return Promise.resolve(data.team);
|
|
12
18
|
}
|
|
13
19
|
return new Promise((resolve, reject) => {
|
|
14
20
|
setTimeout(() => {
|
|
15
21
|
if (data.error && Math.random() < data.errorRate) {
|
|
16
|
-
reject(
|
|
17
|
-
reason: data.error
|
|
18
|
-
});
|
|
22
|
+
reject(errorResponse);
|
|
19
23
|
}
|
|
20
24
|
return resolve(data.team);
|
|
21
25
|
}, data.timeout);
|
|
@@ -14,8 +14,8 @@ export const CardWrapper = styled.div`
|
|
|
14
14
|
`;
|
|
15
15
|
export const ProfileImage = styled.div`
|
|
16
16
|
position: absolute;
|
|
17
|
-
top: ${
|
|
18
|
-
left: ${
|
|
17
|
+
top: ${"var(--ds-space-300, 24px)"};
|
|
18
|
+
left: ${"var(--ds-space-300, 24px)"};
|
|
19
19
|
`;
|
|
20
20
|
export const ActionsFlexSpacer = styled.div`
|
|
21
21
|
flex: 1 0 auto;
|
|
@@ -61,7 +61,7 @@ export const AnimatedKudosButton = styled.div`
|
|
|
61
61
|
`;
|
|
62
62
|
export const ActionButtonGroup = styled.div`
|
|
63
63
|
user-select: none;
|
|
64
|
-
margin: ${
|
|
64
|
+
margin: ${"var(--ds-space-200, 16px)"} 0 0 0;
|
|
65
65
|
text-align: right;
|
|
66
66
|
display: flex;
|
|
67
67
|
justify-content: flex-end;
|
|
@@ -96,8 +96,8 @@ export const DetailsGroup = styled.div`
|
|
|
96
96
|
export const DisabledInfo = styled.div`
|
|
97
97
|
font-size: ${fontSizeSmall}px;
|
|
98
98
|
color: ${labelTextColor};
|
|
99
|
-
margin: ${
|
|
100
|
-
line-height: ${
|
|
99
|
+
margin: ${"var(--ds-space-150, 12px)"} 0 0 0;
|
|
100
|
+
line-height: ${"var(--ds-font-lineHeight-100, 16px)"};
|
|
101
101
|
`;
|
|
102
102
|
export const FullNameLabel = styled.span`
|
|
103
103
|
overflow: hidden;
|
|
@@ -110,7 +110,7 @@ export const FullNameLabel = styled.span`
|
|
|
110
110
|
line-height: ${24 / 18}em;
|
|
111
111
|
`;
|
|
112
112
|
export const LozengeWrapper = styled.div`
|
|
113
|
-
margin-top: ${
|
|
113
|
+
margin-top: ${"var(--ds-space-200, 16px)"};
|
|
114
114
|
text-transform: uppercase;
|
|
115
115
|
display: block;
|
|
116
116
|
`;
|
|
@@ -119,11 +119,11 @@ export const CustomLozengeContainer = styled(LozengeWrapper)`
|
|
|
119
119
|
flex-direction: row;
|
|
120
120
|
flex-wrap: wrap;
|
|
121
121
|
justify-content: flex-start;
|
|
122
|
-
margin-top: ${
|
|
122
|
+
margin-top: ${"var(--ds-space-150, 12px)"};
|
|
123
123
|
> * {
|
|
124
|
-
margin-top: ${
|
|
124
|
+
margin-top: ${"var(--ds-space-050, 4px)"};
|
|
125
125
|
&:not(:last-child) {
|
|
126
|
-
margin-right: ${
|
|
126
|
+
margin-right: ${"var(--ds-space-050, 4px)"};
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
`;
|
|
@@ -134,7 +134,7 @@ export const JobTitleLabel = styled.span`
|
|
|
134
134
|
|
|
135
135
|
font-size: 14px;
|
|
136
136
|
color: ${headerTextColor};
|
|
137
|
-
margin: 0 0 ${
|
|
137
|
+
margin: 0 0 ${"var(--ds-space-150, 12px)"} 0;
|
|
138
138
|
line-height: ${24 / 14}em;
|
|
139
139
|
`;
|
|
140
140
|
export const AppTitleLabel = styled.span`
|
|
@@ -147,7 +147,7 @@ export const AppTitleLabel = styled.span`
|
|
|
147
147
|
text-transform: uppercase;
|
|
148
148
|
|
|
149
149
|
font-size: 12px;
|
|
150
|
-
margin: 4px 0 ${
|
|
150
|
+
margin: 4px 0 ${"var(--ds-space-150, 12px)"} 0;
|
|
151
151
|
line-height: ${24 / 14}em;
|
|
152
152
|
`;
|
|
153
153
|
export const SpinnerContainer = styled.div`
|
|
@@ -171,7 +171,7 @@ export const CardContainer = styled.div`
|
|
|
171
171
|
background-repeat: no-repeat;
|
|
172
172
|
background-size: 100% ${gridSize() * 12}px;
|
|
173
173
|
box-sizing: content-box;
|
|
174
|
-
padding: ${
|
|
174
|
+
padding: ${"var(--ds-space-300, 24px)"};
|
|
175
175
|
box-shadow: ${props => props.withoutElevation ? '' : `${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`}`};
|
|
176
176
|
border-radius: ${props => props.withoutElevation ? '' : `${borderRadius()}px`};
|
|
177
177
|
|
|
@@ -180,22 +180,22 @@ export const CardContainer = styled.div`
|
|
|
180
180
|
export const DetailsLabel = styled.div`
|
|
181
181
|
display: flex;
|
|
182
182
|
align-items: center;
|
|
183
|
-
line-height: ${
|
|
183
|
+
line-height: ${"var(--ds-font-lineHeight-300, 24px)"};
|
|
184
184
|
font-size: ${gridSize() * 1.5}px;
|
|
185
|
-
margin: ${
|
|
185
|
+
margin: ${"var(--ds-space-200, 16px)"} 0 0 0;
|
|
186
186
|
white-space: nowrap;
|
|
187
187
|
|
|
188
188
|
& + & {
|
|
189
|
-
margin-top: ${
|
|
189
|
+
margin-top: ${"var(--ds-space-025, 2px)"};
|
|
190
190
|
}
|
|
191
191
|
`;
|
|
192
192
|
export const DetailsLabelIcon = styled.div`
|
|
193
193
|
display: flex;
|
|
194
194
|
flex-shrink: 0;
|
|
195
195
|
color: ${labelIconColor};
|
|
196
|
-
width: ${
|
|
197
|
-
height: ${
|
|
198
|
-
padding: ${
|
|
196
|
+
width: ${"var(--ds-space-200, 16px)"};
|
|
197
|
+
height: ${"var(--ds-space-200, 16px)"};
|
|
198
|
+
padding: ${"var(--ds-space-050, 4px)"};
|
|
199
199
|
vertical-align: top;
|
|
200
200
|
|
|
201
201
|
svg {
|
|
@@ -207,5 +207,5 @@ export const DetailsLabelText = styled.span`
|
|
|
207
207
|
overflow: hidden;
|
|
208
208
|
text-overflow: ellipsis;
|
|
209
209
|
color: ${labelTextColor};
|
|
210
|
-
padding-left: ${
|
|
210
|
+
padding-left: ${"var(--ds-space-050, 4px)"};
|
|
211
211
|
`;
|
|
@@ -5,13 +5,13 @@ import { h400 } from '@atlaskit/theme/typography';
|
|
|
5
5
|
import { errorIconColor, errorTextColor, errorTitleColor } from './constants';
|
|
6
6
|
export const ErrorWrapper = styled.div`
|
|
7
7
|
text-align: center;
|
|
8
|
-
padding: ${
|
|
8
|
+
padding: ${"var(--ds-space-300, 24px)"};
|
|
9
9
|
color: ${errorIconColor};
|
|
10
10
|
`;
|
|
11
11
|
export const ErrorTitle = styled.p`
|
|
12
12
|
color: ${errorTitleColor};
|
|
13
13
|
line-height: ${gridSize() * 3}px;
|
|
14
|
-
margin: ${
|
|
14
|
+
margin: ${"var(--ds-space-100, 8px)"} 0;
|
|
15
15
|
`;
|
|
16
16
|
export const ErrorText = styled.span`
|
|
17
17
|
color: ${errorTextColor};
|
|
@@ -21,5 +21,5 @@ export const TeamErrorTitle = styled.p`
|
|
|
21
21
|
`;
|
|
22
22
|
export const TeamErrorText = styled.p`
|
|
23
23
|
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
24
|
-
margin-top: ${
|
|
24
|
+
margin-top: ${"var(--ds-space-100, 8px)"};
|
|
25
25
|
`;
|
|
@@ -3,26 +3,26 @@ import { gridSize } from '@atlaskit/theme/constants';
|
|
|
3
3
|
import { appLabelTextColor } from './constants';
|
|
4
4
|
export const ReportingLinesSection = styled.div`
|
|
5
5
|
// Minor left margin to align better with existing icon fields
|
|
6
|
-
margin-left: ${
|
|
7
|
-
margin-top: ${
|
|
6
|
+
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
7
|
+
margin-top: ${"var(--ds-space-100, 8px)"};
|
|
8
8
|
`;
|
|
9
9
|
export const ReportingLinesHeading = styled.h5`
|
|
10
10
|
color: ${appLabelTextColor};
|
|
11
11
|
font-size: ${gridSize() * 1.5}px;
|
|
12
12
|
font-weight: 600;
|
|
13
|
-
margin-bottom: ${
|
|
13
|
+
margin-bottom: ${"var(--ds-space-100, 8px)"};
|
|
14
14
|
`;
|
|
15
15
|
export const ManagerSection = styled.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
|
-
margin: ${
|
|
18
|
+
margin: ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"};
|
|
19
19
|
`;
|
|
20
20
|
export const ManagerName = styled.span`
|
|
21
21
|
font-size: ${gridSize() * 1.5}px;
|
|
22
|
-
margin-left: ${
|
|
22
|
+
margin-left: ${"var(--ds-space-100, 8px)"};
|
|
23
23
|
`;
|
|
24
24
|
export const OffsetWrapper = styled.div`
|
|
25
|
-
margin-top: ${
|
|
25
|
+
margin-top: ${"var(--ds-space-050, 4px)"};
|
|
26
26
|
// Offset left margin so the avatar aligns with the heading
|
|
27
|
-
margin-left:
|
|
27
|
+
margin-left: calc(-1 * ${"var(--ds-space-050, 4px)"});
|
|
28
28
|
`;
|
|
@@ -30,7 +30,7 @@ export const CardHeader = styled.div`
|
|
|
30
30
|
export const CardContent = styled.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
|
-
padding: ${
|
|
33
|
+
padding: ${"var(--ds-space-300, 24px)"};
|
|
34
34
|
min-height: ${gridSize() * 13}px;
|
|
35
35
|
`;
|
|
36
36
|
export const TeamName = styled.h6`
|
|
@@ -44,14 +44,14 @@ export const TeamName = styled.h6`
|
|
|
44
44
|
`;
|
|
45
45
|
export const MemberCount = styled.div`
|
|
46
46
|
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
47
|
-
margin-top: ${
|
|
47
|
+
margin-top: ${"var(--ds-space-050, 4px)"};
|
|
48
48
|
`;
|
|
49
49
|
export const AvatarSection = styled.div`
|
|
50
|
-
margin-top: ${
|
|
50
|
+
margin-top: ${"var(--ds-space-200, 16px)"};
|
|
51
51
|
margin-left: -2px;
|
|
52
52
|
`;
|
|
53
53
|
export const DescriptionWrapper = styled.div`
|
|
54
|
-
margin-top: ${
|
|
54
|
+
margin-top: ${"var(--ds-space-200, 16px)"};
|
|
55
55
|
align-items: center;
|
|
56
56
|
display: flex;
|
|
57
57
|
`;
|
|
@@ -66,7 +66,8 @@ export const ActionButtons = styled.div`
|
|
|
66
66
|
width: calc(100% + 8px);
|
|
67
67
|
display: flex;
|
|
68
68
|
justify-content: space-between;
|
|
69
|
-
margin: ${
|
|
69
|
+
margin: ${"var(--ds-space-300, 24px)"} calc(-1 * ${"var(--ds-space-300, 24px)"})
|
|
70
|
+
0 calc(-1 * ${"var(--ds-space-100, 8px)"});
|
|
70
71
|
background-color: ${"var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))"};
|
|
71
72
|
`;
|
|
72
73
|
export const WrappedButton = styled.div`
|
|
@@ -79,10 +80,10 @@ export const MoreButton = styled.div`
|
|
|
79
80
|
`;
|
|
80
81
|
export const LoadingWrapper = styled.div`
|
|
81
82
|
text-align: center;
|
|
82
|
-
margin-top: ${
|
|
83
|
+
margin-top: ${"var(--ds-space-500, 40px)"};
|
|
83
84
|
`;
|
|
84
85
|
export const AccessLockSVGWrapper = styled.div`
|
|
85
|
-
margin-bottom: ${
|
|
86
|
+
margin-bottom: ${"var(--ds-space-300, 24px)"};
|
|
86
87
|
`;
|
|
87
88
|
|
|
88
89
|
// export const LoadingTeamName = styled.div`
|
|
@@ -31,7 +31,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
31
31
|
actionSubjectId,
|
|
32
32
|
attributes: {
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "19.2.
|
|
34
|
+
packageVersion: "19.2.2",
|
|
35
35
|
...attributes,
|
|
36
36
|
firedAt: Math.round(getPageTime())
|
|
37
37
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -12,6 +12,7 @@ export var getErrorAttributes = function getErrorAttributes(error) {
|
|
|
12
12
|
errorMessage: error === null || error === void 0 ? void 0 : error.message,
|
|
13
13
|
errorStatus: error === null || error === void 0 ? void 0 : error.code,
|
|
14
14
|
errorReason: (error === null || error === void 0 ? void 0 : error.reason) || 'default',
|
|
15
|
+
errorSource: error === null || error === void 0 ? void 0 : error.source,
|
|
15
16
|
isSLOFailure: !isIgnoredError(error),
|
|
16
17
|
traceId: (_error$traceId = error === null || error === void 0 ? void 0 : error.traceId) !== null && _error$traceId !== void 0 ? _error$traceId : undefined
|
|
17
18
|
};
|
|
@@ -40,7 +40,7 @@ export function graphqlQuery(serviceUrl, query) {
|
|
|
40
40
|
return Promise.reject({
|
|
41
41
|
reason: ((_json$errors$ = json.errors[0]) === null || _json$errors$ === void 0 ? void 0 : _json$errors$.category) || ((_json$errors$2 = json.errors[0]) === null || _json$errors$2 === void 0 ? void 0 : (_json$errors$2$extens = _json$errors$2.extensions) === null || _json$errors$2$extens === void 0 ? void 0 : _json$errors$2$extens.classification) || 'default',
|
|
42
42
|
code: (_json$errors$3 = json.errors[0]) === null || _json$errors$3 === void 0 ? void 0 : (_json$errors$3$extens = _json$errors$3.extensions) === null || _json$errors$3$extens === void 0 ? void 0 : _json$errors$3$extens.statusCode,
|
|
43
|
-
|
|
43
|
+
source: (_json$errors$4 = json.errors[0]) === null || _json$errors$4 === void 0 ? void 0 : (_json$errors$4$extens = _json$errors$4.extensions) === null || _json$errors$4$extens === void 0 ? void 0 : _json$errors$4$extens.errorSource,
|
|
44
44
|
message: json.errors[0].message,
|
|
45
45
|
traceId: (_json$extensions = json.extensions) === null || _json$extensions === void 0 ? void 0 : (_json$extensions$gate = _json$extensions.gateway) === null || _json$extensions$gate === void 0 ? void 0 : _json$extensions$gate.request_id
|
|
46
46
|
});
|
|
@@ -17,20 +17,24 @@ export default function getMockTeamClient(data) {
|
|
|
17
17
|
_createClass(MockTeamClient, [{
|
|
18
18
|
key: "makeRequest",
|
|
19
19
|
value: function makeRequest(teamId) {
|
|
20
|
+
var _data$error, _data$error2, _data$error3, _data$error4, _data$error5;
|
|
21
|
+
var errorResponse = {
|
|
22
|
+
reason: (_data$error = data.error) === null || _data$error === void 0 ? void 0 : _data$error.reason,
|
|
23
|
+
code: (_data$error2 = data.error) === null || _data$error2 === void 0 ? void 0 : _data$error2.code,
|
|
24
|
+
source: (_data$error3 = data.error) === null || _data$error3 === void 0 ? void 0 : _data$error3.source,
|
|
25
|
+
message: (_data$error4 = data.error) === null || _data$error4 === void 0 ? void 0 : _data$error4.message,
|
|
26
|
+
traceId: (_data$error5 = data.error) === null || _data$error5 === void 0 ? void 0 : _data$error5.traceId
|
|
27
|
+
};
|
|
20
28
|
if (!data.timeout) {
|
|
21
29
|
if (data.error && Math.random() < data.errorRate) {
|
|
22
|
-
return Promise.reject(
|
|
23
|
-
reason: data.error
|
|
24
|
-
});
|
|
30
|
+
return Promise.reject(errorResponse);
|
|
25
31
|
}
|
|
26
32
|
return Promise.resolve(data.team);
|
|
27
33
|
}
|
|
28
34
|
return new Promise(function (resolve, reject) {
|
|
29
35
|
setTimeout(function () {
|
|
30
36
|
if (data.error && Math.random() < data.errorRate) {
|
|
31
|
-
reject(
|
|
32
|
-
reason: data.error
|
|
33
|
-
});
|
|
37
|
+
reject(errorResponse);
|
|
34
38
|
}
|
|
35
39
|
return resolve(data.team);
|
|
36
40
|
}, data.timeout);
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -12,7 +12,7 @@ var getFullNameMargin = function getFullNameMargin(props) {
|
|
|
12
12
|
};
|
|
13
13
|
export var CardContainerEmpty = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
|
|
14
14
|
export var CardWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n width: ", "px;\n"])), bgColor, borderRadius, gridSize() * 45);
|
|
15
|
-
export var ProfileImage = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: ", "
|
|
15
|
+
export var ProfileImage = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: ", ";\n left: ", ";\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
16
16
|
export var ActionsFlexSpacer = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1 0 auto;\n"])));
|
|
17
17
|
var kudosButtonAnimationTransformation = keyframes(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["{\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n}"])));
|
|
18
18
|
export var KudosBlobAnimationStyle = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: none;\n height: 150px;\n width: 150px;\n z-index: -1;\n position: absolute;\n animation-name: ", ";\n animation-iteration-count: 1;\n animation-duration: 3s;\n background-image: radial-gradient(\n circle,\n ", " 0%,\n ", " 25%,\n transparent 50%\n );\n overflow: hidden;\n"])), kudosButtonAnimationTransformation, "var(--ds-background-information-pressed, #85B8FF)", "var(--ds-background-discovery-pressed, #B8ACF6)");
|
|
@@ -22,30 +22,30 @@ export var KudosBlobAnimation = function KudosBlobAnimation(props) {
|
|
|
22
22
|
}, props));
|
|
23
23
|
};
|
|
24
24
|
export var AnimatedKudosButton = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: ", "px;\n\n /* Need babel-plugin-emotion to use component selector */\n /* Previously with styled-components: &:hover {KudosBlobAnimation} { */\n &:hover .kudos-blob-animation {\n display: block;\n }\n\n button,\n a {\n clip-path: inset(0px 0px 0px 0px round ", "px);\n }\n overflow: hidden;\n"])), gridSize, borderRadius);
|
|
25
|
-
export var ActionButtonGroup = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n user-select: none;\n margin: ", "
|
|
25
|
+
export var ActionButtonGroup = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n user-select: none;\n margin: ", " 0 0 0;\n text-align: right;\n display: flex;\n justify-content: flex-end;\n\n button,\n a,\n span {\n margin-left: ", "px;\n\n &:first-child {\n margin-left: 0;\n }\n }\n"])), "var(--ds-space-200, 16px)", gridSize);
|
|
26
26
|
export var OverflowActionButtonsWrapper = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: inline-block;\n width: 32px;\n height: 32px;\n margin-left: ", "px;\n"])), gridSize);
|
|
27
27
|
export var CardContent = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n min-height: ", "px;\n"])), gridSize() * 17);
|
|
28
28
|
export var DetailsGroup = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n width: ", "px;\n"])), gridSize() * 14.5, gridSize() * 24.5);
|
|
29
|
-
export var DisabledInfo = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-size: ", "px;\n color: ", ";\n margin: ", "
|
|
29
|
+
export var DisabledInfo = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-size: ", "px;\n color: ", ";\n margin: ", " 0 0 0;\n line-height: ", ";\n"])), fontSizeSmall, labelTextColor, "var(--ds-space-150, 12px)", "var(--ds-font-lineHeight-100, 16px)");
|
|
30
30
|
export var FullNameLabel = styled.span(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 18px;\n color: ", ";\n margin: ", ";\n line-height: ", "em;\n"])), function (props) {
|
|
31
31
|
return props.isDisabledAccount ? headerTextColorInactive : headerTextColor;
|
|
32
32
|
}, function (props) {
|
|
33
33
|
return getFullNameMargin(props);
|
|
34
34
|
}, 24 / 18);
|
|
35
|
-
export var LozengeWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-top: ", "
|
|
36
|
-
export var CustomLozengeContainer = styled(LozengeWrapper)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-top: ", "
|
|
37
|
-
export var JobTitleLabel = styled.span(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 14px;\n color: ", ";\n margin: 0 0 ", "
|
|
38
|
-
export var AppTitleLabel = styled.span(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n border-radius: ", ";\n padding: 0 6px;\n width: fit-content;\n font-weight: bold;\n text-transform: uppercase;\n\n font-size: 12px;\n margin: 4px 0 ", "
|
|
35
|
+
export var LozengeWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-top: ", ";\n text-transform: uppercase;\n display: block;\n"])), "var(--ds-space-200, 16px)");
|
|
36
|
+
export var CustomLozengeContainer = styled(LozengeWrapper)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-top: ", ";\n > * {\n margin-top: ", ";\n &:not(:last-child) {\n margin-right: ", ";\n }\n }\n"])), "var(--ds-space-150, 12px)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
37
|
+
export var JobTitleLabel = styled.span(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n font-size: 14px;\n color: ", ";\n margin: 0 0 ", " 0;\n line-height: ", "em;\n"])), headerTextColor, "var(--ds-space-150, 12px)", 24 / 14);
|
|
38
|
+
export var AppTitleLabel = styled.span(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n border-radius: ", ";\n padding: 0 6px;\n width: fit-content;\n font-weight: bold;\n text-transform: uppercase;\n\n font-size: 12px;\n margin: 4px 0 ", " 0;\n line-height: ", "em;\n"])), appLabelBgColor, appLabelTextColor, borderRadius(), "var(--ds-space-150, 12px)", 24 / 14);
|
|
39
39
|
export var SpinnerContainer = styled.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n height: ", "px;\n justify-content: center;\n position: relative;\n"])), gridSize() * 12);
|
|
40
|
-
export var CardContainer = styled.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", "
|
|
40
|
+
export var CardContainer = styled.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n background-image: linear-gradient(\n to bottom,\n ", "\n 0%,\n ", "\n 100%\n );\n background-repeat: no-repeat;\n background-size: 100% ", "px;\n box-sizing: content-box;\n padding: ", ";\n box-shadow: ", ";\n border-radius: ", ";\n\n overflow: hidden;\n"])), function (props) {
|
|
41
41
|
return props.isDisabledUser ? headerBgColorDisabledUser : headerBgColor;
|
|
42
42
|
}, function (props) {
|
|
43
43
|
return props.isDisabledUser ? headerBgColorDisabledUser : headerBgColor;
|
|
44
|
-
}, gridSize() * 12,
|
|
44
|
+
}, gridSize() * 12, "var(--ds-space-300, 24px)", function (props) {
|
|
45
45
|
return props.withoutElevation ? '' : "".concat("var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A), ")"));
|
|
46
46
|
}, function (props) {
|
|
47
47
|
return props.withoutElevation ? '' : "".concat(borderRadius(), "px");
|
|
48
48
|
});
|
|
49
|
-
export var DetailsLabel = styled.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n line-height: ", "
|
|
50
|
-
export var DetailsLabelIcon = styled.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: flex;\n flex-shrink: 0;\n color: ", ";\n width: ", "
|
|
51
|
-
export var DetailsLabelText = styled.span(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n padding-left: ", "
|
|
49
|
+
export var DetailsLabel = styled.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n line-height: ", ";\n font-size: ", "px;\n margin: ", " 0 0 0;\n white-space: nowrap;\n\n & + & {\n margin-top: ", ";\n }\n"])), "var(--ds-font-lineHeight-300, 24px)", gridSize() * 1.5, "var(--ds-space-200, 16px)", "var(--ds-space-025, 2px)");
|
|
50
|
+
export var DetailsLabelIcon = styled.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: flex;\n flex-shrink: 0;\n color: ", ";\n width: ", ";\n height: ", ";\n padding: ", ";\n vertical-align: top;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"])), labelIconColor, "var(--ds-space-200, 16px)", "var(--ds-space-200, 16px)", "var(--ds-space-050, 4px)");
|
|
51
|
+
export var DetailsLabelText = styled.span(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n padding-left: ", ";\n"])), labelTextColor, "var(--ds-space-050, 4px)");
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -5,8 +5,8 @@ import { N200 } from '@atlaskit/theme/colors';
|
|
|
5
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { h400 } from '@atlaskit/theme/typography';
|
|
7
7
|
import { errorIconColor, errorTextColor, errorTitleColor } from './constants';
|
|
8
|
-
export var ErrorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n padding: ", "
|
|
9
|
-
export var ErrorTitle = styled.p(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: ", "px;\n margin: ", "
|
|
8
|
+
export var ErrorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n padding: ", ";\n color: ", ";\n"])), "var(--ds-space-300, 24px)", errorIconColor);
|
|
9
|
+
export var ErrorTitle = styled.p(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: ", "px;\n margin: ", " 0;\n"])), errorTitleColor, gridSize() * 3, "var(--ds-space-100, 8px)");
|
|
10
10
|
export var ErrorText = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), errorTextColor);
|
|
11
11
|
export var TeamErrorTitle = styled.p(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n"])), h400);
|
|
12
|
-
export var TeamErrorText = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "
|
|
12
|
+
export var TeamErrorText = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", ";\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"), "var(--ds-space-100, 8px)");
|
|
@@ -3,8 +3,8 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
5
5
|
import { appLabelTextColor } from './constants';
|
|
6
|
-
export var ReportingLinesSection = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Minor left margin to align better with existing icon fields\n margin-left: ", "
|
|
7
|
-
export var ReportingLinesHeading = styled.h5(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n margin-bottom: ", "
|
|
8
|
-
export var ManagerSection = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: ", "
|
|
9
|
-
export var ManagerName = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", "px;\n margin-left: ", "
|
|
10
|
-
export var OffsetWrapper = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: ", "
|
|
6
|
+
export var ReportingLinesSection = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Minor left margin to align better with existing icon fields\n margin-left: ", ";\n margin-top: ", ";\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)");
|
|
7
|
+
export var ReportingLinesHeading = styled.h5(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n margin-bottom: ", ";\n"])), appLabelTextColor, gridSize() * 1.5, "var(--ds-space-100, 8px)");
|
|
8
|
+
export var ManagerSection = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: ", " ", ";\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
9
|
+
export var ManagerName = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", "px;\n margin-left: ", ";\n"])), gridSize() * 1.5, "var(--ds-space-100, 8px)");
|
|
10
|
+
export var OffsetWrapper = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: ", ";\n // Offset left margin so the avatar aligns with the heading\n margin-left: calc(-1 * ", ");\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
|
|
@@ -13,17 +13,17 @@ export var CardHeader = styled.div(_templateObject4 || (_templateObject4 = _tagg
|
|
|
13
13
|
}, function (props) {
|
|
14
14
|
return props.image ? "url(".concat(props.image, ")") : '';
|
|
15
15
|
}, gridSize() * 16);
|
|
16
|
-
export var CardContent = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: ", "
|
|
16
|
+
export var CardContent = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: ", ";\n min-height: ", "px;\n"])), "var(--ds-space-300, 24px)", gridSize() * 13);
|
|
17
17
|
export var TeamName = styled.h6(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", ";\n text-transform: none;\n overflow: hidden;\n max-height: 48px;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])), h600);
|
|
18
|
-
export var MemberCount = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "
|
|
19
|
-
export var AvatarSection = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-top: ", "
|
|
20
|
-
export var DescriptionWrapper = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-top: ", "
|
|
18
|
+
export var MemberCount = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", ";\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"), "var(--ds-space-050, 4px)");
|
|
19
|
+
export var AvatarSection = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-top: ", ";\n margin-left: -2px;\n"])), "var(--ds-space-200, 16px)");
|
|
20
|
+
export var DescriptionWrapper = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-top: ", ";\n align-items: center;\n display: flex;\n"])), "var(--ds-space-200, 16px)");
|
|
21
21
|
export var Description = styled.span(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n overflow: hidden;\n max-height: 60px;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"])));
|
|
22
|
-
export var ActionButtons = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "
|
|
22
|
+
export var ActionButtons = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", " calc(-1 * ", ")\n 0 calc(-1 * ", ");\n background-color: ", ";\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))");
|
|
23
23
|
export var WrappedButton = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n flex-basis: 0;\n flex-grow: 1;\n margin-left: 8px;\n"])));
|
|
24
24
|
export var MoreButton = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-left: 8px;\n"])));
|
|
25
|
-
export var LoadingWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n text-align: center;\n margin-top: ", "
|
|
26
|
-
export var AccessLockSVGWrapper = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-bottom: ", "
|
|
25
|
+
export var LoadingWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n text-align: center;\n margin-top: ", ";\n"])), "var(--ds-space-500, 40px)");
|
|
26
|
+
export var AccessLockSVGWrapper = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n"])), "var(--ds-space-300, 24px)");
|
|
27
27
|
|
|
28
28
|
// export const LoadingTeamName = styled.div`
|
|
29
29
|
// width: 175px;
|
|
@@ -38,7 +38,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
38
38
|
actionSubjectId: actionSubjectId,
|
|
39
39
|
attributes: _objectSpread(_objectSpread({
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "19.2.
|
|
41
|
+
packageVersion: "19.2.2"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
package/dist/esm/version.json
CHANGED
|
@@ -3,6 +3,7 @@ export declare const getErrorAttributes: (error?: GraphQLError | undefined) => {
|
|
|
3
3
|
errorMessage: string | undefined;
|
|
4
4
|
errorStatus: number | undefined;
|
|
5
5
|
errorReason: string;
|
|
6
|
+
errorSource: string | undefined;
|
|
6
7
|
isSLOFailure: boolean;
|
|
7
8
|
traceId: string | undefined;
|
|
8
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.2",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^9.0.0",
|
|
44
44
|
"@atlaskit/avatar": "^21.2.0",
|
|
45
45
|
"@atlaskit/avatar-group": "^9.2.0",
|
|
46
|
-
"@atlaskit/button": "^16.
|
|
46
|
+
"@atlaskit/button": "^16.6.0",
|
|
47
47
|
"@atlaskit/dropdown-menu": "^11.7.0",
|
|
48
48
|
"@atlaskit/empty-state": "^7.4.8",
|
|
49
49
|
"@atlaskit/give-kudos": "^1.0.0",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@atlaskit/docs": "*",
|
|
71
71
|
"@atlaskit/dynamic-table": "^14.8.0",
|
|
72
|
-
"@atlaskit/flag": "^15.
|
|
72
|
+
"@atlaskit/flag": "^15.1.0",
|
|
73
73
|
"@atlaskit/inline-edit": "^12.2.0",
|
|
74
74
|
"@atlaskit/select": "^16.1.0",
|
|
75
|
-
"@atlaskit/util-data-test": "^17.
|
|
75
|
+
"@atlaskit/util-data-test": "^17.7.0",
|
|
76
76
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
77
77
|
"@testing-library/react": "^12.1.5",
|
|
78
78
|
"enzyme": "^3.10.0",
|