@atlaskit/profilecard 20.12.0 → 20.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardDetails.js +1 -2
- package/dist/cjs/styled/ReportingLines.js +4 -8
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardDetails.js +1 -2
- package/dist/es2019/styled/ReportingLines.js +2 -6
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/User/ProfileCardDetails.js +1 -2
- package/dist/esm/styled/ReportingLines.js +2 -6
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 20.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#167430](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167430)
|
|
8
|
+
[`c01f64d7d85f5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c01f64d7d85f5) -
|
|
9
|
+
Replace hard-coded font size with design tokens
|
|
10
|
+
|
|
3
11
|
## 20.12.0
|
|
4
12
|
|
|
5
13
|
### Minor 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', "20.12.
|
|
14
|
+
headers.append('atl-client-version', "20.12.1");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -57,7 +57,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
57
57
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
58
58
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
59
59
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
60
|
-
headers.append('atl-client-version', "20.12.
|
|
60
|
+
headers.append('atl-client-version', "20.12.1");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -26,8 +26,7 @@ var fullNameLabelStyles = (0, _primitives.xcss)({
|
|
|
26
26
|
overflow: 'hidden',
|
|
27
27
|
textOverflow: 'ellipsis',
|
|
28
28
|
whiteSpace: 'nowrap',
|
|
29
|
-
fontSize:
|
|
30
|
-
fontWeight: '400',
|
|
29
|
+
fontSize: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
31
30
|
letterSpacing: 'normal',
|
|
32
31
|
lineHeight: "".concat(24 / 18, "em")
|
|
33
32
|
});
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.ReportingLinesSection = exports.ReportingLinesHeading = exports.OffsetWrapper = exports.ManagerSection = exports.ManagerName = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
-
var _constants = require("
|
|
10
|
-
var _constants2 = require("./constants");
|
|
9
|
+
var _constants = require("./constants");
|
|
11
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
11
|
|
|
13
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -20,10 +19,8 @@ var ReportingLinesSection = exports.ReportingLinesSection = _styled.default.div(
|
|
|
20
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
20
|
var ReportingLinesHeading = exports.ReportingLinesHeading = _styled.default.h3({
|
|
22
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
-
color:
|
|
24
|
-
|
|
25
|
-
fontSize: "".concat((0, _constants.gridSize)() * 1.5, "px"),
|
|
26
|
-
fontWeight: 600,
|
|
22
|
+
color: _constants.appLabelTextColor,
|
|
23
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
27
24
|
marginBottom: "var(--ds-space-100, 8px)"
|
|
28
25
|
});
|
|
29
26
|
|
|
@@ -36,8 +33,7 @@ var ManagerSection = exports.ManagerSection = _styled.default.div({
|
|
|
36
33
|
|
|
37
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
35
|
var ManagerName = exports.ManagerName = _styled.default.span({
|
|
39
|
-
|
|
40
|
-
fontSize: "".concat((0, _constants.gridSize)() * 1.5, "px"),
|
|
36
|
+
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
41
37
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
42
38
|
});
|
|
43
39
|
|
|
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
45
45
|
actionSubjectId: actionSubjectId,
|
|
46
46
|
attributes: _objectSpread(_objectSpread({
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "20.12.
|
|
48
|
+
packageVersion: "20.12.1"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -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', "20.12.
|
|
9
|
+
headers.append('atl-client-version', "20.12.1");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -67,7 +67,7 @@ export const addHeaders = headers => {
|
|
|
67
67
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
68
68
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
69
69
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
70
|
-
headers.append('atl-client-version', "20.12.
|
|
70
|
+
headers.append('atl-client-version', "20.12.1");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -17,8 +17,7 @@ const fullNameLabelStyles = xcss({
|
|
|
17
17
|
overflow: 'hidden',
|
|
18
18
|
textOverflow: 'ellipsis',
|
|
19
19
|
whiteSpace: 'nowrap',
|
|
20
|
-
fontSize:
|
|
21
|
-
fontWeight: '400',
|
|
20
|
+
fontSize: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
22
21
|
letterSpacing: 'normal',
|
|
23
22
|
lineHeight: `${24 / 18}em`
|
|
24
23
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
3
|
import { appLabelTextColor } from './constants';
|
|
5
4
|
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -14,9 +13,7 @@ export const ReportingLinesSection = styled.div({
|
|
|
14
13
|
export const ReportingLinesHeading = styled.h3({
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
15
|
color: appLabelTextColor,
|
|
17
|
-
|
|
18
|
-
fontSize: `${gridSize() * 1.5}px`,
|
|
19
|
-
fontWeight: 600,
|
|
16
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
20
17
|
marginBottom: "var(--ds-space-100, 8px)"
|
|
21
18
|
});
|
|
22
19
|
|
|
@@ -29,8 +26,7 @@ export const ManagerSection = styled.div({
|
|
|
29
26
|
|
|
30
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
28
|
export const ManagerName = styled.span({
|
|
32
|
-
|
|
33
|
-
fontSize: `${gridSize() * 1.5}px`,
|
|
29
|
+
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
34
30
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
35
31
|
});
|
|
36
32
|
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "20.12.
|
|
35
|
+
packageVersion: "20.12.1",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -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', "20.12.
|
|
7
|
+
headers.append('atl-client-version', "20.12.1");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -48,7 +48,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
48
48
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
49
49
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
50
50
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
51
|
-
headers.append('atl-client-version', "20.12.
|
|
51
|
+
headers.append('atl-client-version', "20.12.1");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -19,8 +19,7 @@ var fullNameLabelStyles = xcss({
|
|
|
19
19
|
overflow: 'hidden',
|
|
20
20
|
textOverflow: 'ellipsis',
|
|
21
21
|
whiteSpace: 'nowrap',
|
|
22
|
-
fontSize:
|
|
23
|
-
fontWeight: '400',
|
|
22
|
+
fontSize: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
24
23
|
letterSpacing: 'normal',
|
|
25
24
|
lineHeight: "".concat(24 / 18, "em")
|
|
26
25
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
3
|
import { appLabelTextColor } from './constants';
|
|
5
4
|
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -14,9 +13,7 @@ export var ReportingLinesSection = styled.div({
|
|
|
14
13
|
export var ReportingLinesHeading = styled.h3({
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
15
|
color: appLabelTextColor,
|
|
17
|
-
|
|
18
|
-
fontSize: "".concat(gridSize() * 1.5, "px"),
|
|
19
|
-
fontWeight: 600,
|
|
16
|
+
font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
20
17
|
marginBottom: "var(--ds-space-100, 8px)"
|
|
21
18
|
});
|
|
22
19
|
|
|
@@ -29,8 +26,7 @@ export var ManagerSection = styled.div({
|
|
|
29
26
|
|
|
30
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
28
|
export var ManagerName = styled.span({
|
|
32
|
-
|
|
33
|
-
fontSize: "".concat(gridSize() * 1.5, "px"),
|
|
29
|
+
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
34
30
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
35
31
|
});
|
|
36
32
|
|
|
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
39
39
|
actionSubjectId: actionSubjectId,
|
|
40
40
|
attributes: _objectSpread(_objectSpread({
|
|
41
41
|
packageName: "@atlaskit/profilecard",
|
|
42
|
-
packageVersion: "20.12.
|
|
42
|
+
packageVersion: "20.12.1"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "20.12.
|
|
3
|
+
"version": "20.12.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"@atlaskit/empty-state": "^7.12.0",
|
|
60
60
|
"@atlaskit/focus-ring": "^1.7.0",
|
|
61
61
|
"@atlaskit/give-kudos": "^2.3.0",
|
|
62
|
-
"@atlaskit/icon": "^22.
|
|
62
|
+
"@atlaskit/icon": "^22.25.0",
|
|
63
63
|
"@atlaskit/lozenge": "^11.12.0",
|
|
64
64
|
"@atlaskit/menu": "^2.13.0",
|
|
65
65
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
67
67
|
"@atlaskit/popup": "^1.29.0",
|
|
68
68
|
"@atlaskit/primitives": "^13.2.0",
|
|
69
|
-
"@atlaskit/rovo-agent-components": "^1.
|
|
70
|
-
"@atlaskit/rovo-triggers": "^1.
|
|
69
|
+
"@atlaskit/rovo-agent-components": "^1.14.0",
|
|
70
|
+
"@atlaskit/rovo-triggers": "^1.4.0",
|
|
71
71
|
"@atlaskit/spinner": "^16.3.0",
|
|
72
72
|
"@atlaskit/theme": "^14.0.0",
|
|
73
|
-
"@atlaskit/tokens": "^2.
|
|
73
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
74
74
|
"@atlaskit/tooltip": "^18.9.0",
|
|
75
75
|
"@babel/runtime": "^7.0.0",
|
|
76
76
|
"@emotion/react": "^11.7.1",
|