@atlaskit/profilecard 23.21.9 → 23.21.10

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 23.21.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#181827](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181827)
8
+ [`9bbba56baf22b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9bbba56baf22b) -
9
+ ENGHEALTH-27994 Ensures dt and dd elements are direct children of dl element as required by WCAG
10
+ guidelines
11
+
3
12
  ## 23.21.9
4
13
 
5
14
  ### 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', "23.21.8");
14
+ headers.append('atl-client-version', "23.21.9");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -65,7 +65,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
65
65
  headers.append('X-ExperimentalApi', 'teams-beta');
66
66
  headers.append('X-ExperimentalApi', 'team-members-beta');
67
67
  headers.append('atl-client-name', "@atlaskit/profilecard");
68
- headers.append('atl-client-version', "23.21.8");
68
+ headers.append('atl-client-version', "23.21.9");
69
69
  return headers;
70
70
  };
71
71
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -3,6 +3,7 @@
3
3
  ._18u0idpf{margin-left:0}
4
4
  ._18u0ze3t{margin-left:var(--ds-space-0,0)}
5
5
  ._19bvze3t{padding-left:var(--ds-space-0,0)}
6
+ ._19pkxy5q{margin-top:var(--ds-space-400,2pc)}
6
7
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
7
8
  ._1bguutpp#profilecard-name-label{margin-bottom:var(--ds-space-150,9pt)}
8
9
  ._1bto1l2s{text-overflow:ellipsis}
@@ -25,6 +25,7 @@ var _ReportingLinesDetails = _interopRequireDefault(require("./ReportingLinesDet
25
25
  var _excluded = ["text"];
26
26
  var styles = {
27
27
  detailedListWrapper: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
28
+ detailedListWrapperNext: "_19pkxy5q _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
28
29
  fullNameLabel: "_1reo15vq _18m915vq _11c81ixg _1bto1l2s _o5721q9c",
29
30
  noMetaLabel: "_2hwxidpf _18u0idpf _rcujxy5q _1l6uutpp",
30
31
  noMetaLabelWithHighSpecificity: "_1hpmxy5q _1bguutpp",
@@ -124,7 +125,18 @@ var ProfileCardDetails = exports.ProfileCardDetails = function ProfileCardDetail
124
125
  }
125
126
  return /*#__PURE__*/_react.default.createElement(_Card.DetailsGroup, null, renderName(props.nickname, props.fullName, meta), meta && /*#__PURE__*/_react.default.createElement(_Card.JobTitleLabel, null, meta), /*#__PURE__*/_react.default.createElement(CustomLozenges, {
126
127
  lozenges: props.customLozenges
127
- }), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
128
+ }), (0, _platformFeatureFlags.fg)('fix_profilecard_details_label_semantic_html') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
129
+ xcss: styles.detailedListWrapperNext
130
+ }, /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
131
+ icon: "email",
132
+ extraTopSpace: true
133
+ }, props.email), /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
134
+ icon: "time"
135
+ }, props.timestring), /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
136
+ icon: "companyName"
137
+ }, props.companyName), /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
138
+ icon: "location"
139
+ }, props.location)) : /*#__PURE__*/_react.default.createElement(_compiled.Box, {
128
140
  as: "dl",
129
141
  xcss: styles.detailedListWrapper
130
142
  }, /*#__PURE__*/_react.default.createElement(_Icon.IconLabel, {
@@ -17,6 +17,7 @@
17
17
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
18
18
  ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
19
19
  ._19bvxy5q{padding-left:var(--ds-space-400,2pc)}
20
+ ._19bvze3t{padding-left:var(--ds-space-0,0)}
20
21
  ._19pk1b66{margin-top:var(--ds-space-050,4px)}
21
22
  ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
22
23
  ._19pkutpp{margin-top:var(--ds-space-150,9pt)}
@@ -11,6 +11,7 @@ require("./Card.compiled.css");
11
11
  var _runtime = require("@compiled/react/runtime");
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
  var _css = require("@atlaskit/css");
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _compiled = require("@atlaskit/primitives/compiled");
15
16
  var kudosButtonAnimationTransformationCompiled = null;
16
17
  var styles = {
@@ -31,6 +32,7 @@ var styles = {
31
32
  cardContainerDisabledUser: "_1itkkf3t",
32
33
  cardContainerWithElevation: "_2rkoglpi _16qs1cd0",
33
34
  detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
35
+ detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
34
36
  detailsLabelExtraTopSpace: "_19pkxy5q",
35
37
  detailsLabelIcon: "_1e0c1txw _1o9zidpf _syaz131l _1bsb7vkz _4t3i7vkz _s7n4jp4b _19pkze3t",
36
38
  detailsLabelText: "_1reo15vq _18m915vq _11c8dcr7 _1bto1l2s _syaz1fxt _19pkze3t _18u0ze3t",
@@ -149,7 +151,10 @@ var DetailsLabel = exports.DetailsLabel = function DetailsLabel(_ref12) {
149
151
  var children = _ref12.children,
150
152
  _ref12$extraTopSpace = _ref12.extraTopSpace,
151
153
  extraTopSpace = _ref12$extraTopSpace === void 0 ? false : _ref12$extraTopSpace;
152
- return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
154
+ return (0, _platformFeatureFlags.fg)('fix_profilecard_details_label_semantic_html') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
155
+ as: "dl",
156
+ xcss: (0, _css.cx)(styles.detailsLabelNext, extraTopSpace && styles.detailsLabelExtraTopSpace)
157
+ }, children) : /*#__PURE__*/_react.default.createElement(_compiled.Box, {
153
158
  xcss: (0, _css.cx)(styles.detailsLabel, extraTopSpace && styles.detailsLabelExtraTopSpace)
154
159
  }, children);
155
160
  };
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
45
45
  actionSubjectId: actionSubjectId,
46
46
  attributes: _objectSpread(_objectSpread({
47
47
  packageName: "@atlaskit/profilecard",
48
- packageVersion: "23.21.8"
48
+ packageVersion: "23.21.9"
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', "23.21.8");
9
+ headers.append('atl-client-version', "23.21.9");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -74,7 +74,7 @@ export const addHeaders = headers => {
74
74
  headers.append('X-ExperimentalApi', 'teams-beta');
75
75
  headers.append('X-ExperimentalApi', 'team-members-beta');
76
76
  headers.append('atl-client-name', "@atlaskit/profilecard");
77
- headers.append('atl-client-version', "23.21.8");
77
+ headers.append('atl-client-version', "23.21.9");
78
78
  return headers;
79
79
  };
80
80
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -3,6 +3,7 @@
3
3
  ._18u0idpf{margin-left:0}
4
4
  ._18u0ze3t{margin-left:var(--ds-space-0,0)}
5
5
  ._19bvze3t{padding-left:var(--ds-space-0,0)}
6
+ ._19pkxy5q{margin-top:var(--ds-space-400,2pc)}
6
7
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
7
8
  ._1bguutpp#profilecard-name-label{margin-bottom:var(--ds-space-150,9pt)}
8
9
  ._1bto1l2s{text-overflow:ellipsis}
@@ -16,6 +16,7 @@ import { IconLabel } from '../Icon';
16
16
  import ReportingLinesDetails from './ReportingLinesDetails';
17
17
  const styles = {
18
18
  detailedListWrapper: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
19
+ detailedListWrapperNext: "_19pkxy5q _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
19
20
  fullNameLabel: "_1reo15vq _18m915vq _11c81ixg _1bto1l2s _o5721q9c",
20
21
  noMetaLabel: "_2hwxidpf _18u0idpf _rcujxy5q _1l6uutpp",
21
22
  noMetaLabelWithHighSpecificity: "_1hpmxy5q _1bguutpp",
@@ -120,7 +121,18 @@ export const ProfileCardDetails = props => {
120
121
  }
121
122
  return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(props.nickname, props.fullName, meta), meta && /*#__PURE__*/React.createElement(JobTitleLabel, null, meta), /*#__PURE__*/React.createElement(CustomLozenges, {
122
123
  lozenges: props.customLozenges
123
- }), /*#__PURE__*/React.createElement(Box, {
124
+ }), fg('fix_profilecard_details_label_semantic_html') ? /*#__PURE__*/React.createElement(Box, {
125
+ xcss: styles.detailedListWrapperNext
126
+ }, /*#__PURE__*/React.createElement(IconLabel, {
127
+ icon: "email",
128
+ extraTopSpace: true
129
+ }, props.email), /*#__PURE__*/React.createElement(IconLabel, {
130
+ icon: "time"
131
+ }, props.timestring), /*#__PURE__*/React.createElement(IconLabel, {
132
+ icon: "companyName"
133
+ }, props.companyName), /*#__PURE__*/React.createElement(IconLabel, {
134
+ icon: "location"
135
+ }, props.location)) : /*#__PURE__*/React.createElement(Box, {
124
136
  as: "dl",
125
137
  xcss: styles.detailedListWrapper
126
138
  }, /*#__PURE__*/React.createElement(IconLabel, {
@@ -17,6 +17,7 @@
17
17
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
18
18
  ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
19
19
  ._19bvxy5q{padding-left:var(--ds-space-400,2pc)}
20
+ ._19bvze3t{padding-left:var(--ds-space-0,0)}
20
21
  ._19pk1b66{margin-top:var(--ds-space-050,4px)}
21
22
  ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
22
23
  ._19pkutpp{margin-top:var(--ds-space-150,9pt)}
@@ -4,6 +4,7 @@ import "./Card.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
6
  import { cx } from '@atlaskit/css';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { Box, Text } from '@atlaskit/primitives/compiled';
8
9
  const kudosButtonAnimationTransformationCompiled = null;
9
10
  const styles = {
@@ -24,6 +25,7 @@ const styles = {
24
25
  cardContainerDisabledUser: "_1itkkf3t",
25
26
  cardContainerWithElevation: "_2rkoglpi _16qs1cd0",
26
27
  detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
28
+ detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
27
29
  detailsLabelExtraTopSpace: "_19pkxy5q",
28
30
  detailsLabelIcon: "_1e0c1txw _1o9zidpf _syaz131l _1bsb7vkz _4t3i7vkz _s7n4jp4b _19pkze3t",
29
31
  detailsLabelText: "_1reo15vq _18m915vq _11c8dcr7 _1bto1l2s _syaz1fxt _19pkze3t _18u0ze3t",
@@ -122,7 +124,10 @@ export const CardContainer = ({
122
124
  export const DetailsLabel = ({
123
125
  children,
124
126
  extraTopSpace = false
125
- }) => /*#__PURE__*/React.createElement(Box, {
127
+ }) => fg('fix_profilecard_details_label_semantic_html') ? /*#__PURE__*/React.createElement(Box, {
128
+ as: "dl",
129
+ xcss: cx(styles.detailsLabelNext, extraTopSpace && styles.detailsLabelExtraTopSpace)
130
+ }, children) : /*#__PURE__*/React.createElement(Box, {
126
131
  xcss: cx(styles.detailsLabel, extraTopSpace && styles.detailsLabelExtraTopSpace)
127
132
  }, children);
128
133
  export const DetailsLabelIcon = ({
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
32
32
  actionSubjectId,
33
33
  attributes: {
34
34
  packageName: "@atlaskit/profilecard",
35
- packageVersion: "23.21.8",
35
+ packageVersion: "23.21.9",
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', "23.21.8");
7
+ headers.append('atl-client-version', "23.21.9");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -56,7 +56,7 @@ export var addHeaders = function addHeaders(headers) {
56
56
  headers.append('X-ExperimentalApi', 'teams-beta');
57
57
  headers.append('X-ExperimentalApi', 'team-members-beta');
58
58
  headers.append('atl-client-name', "@atlaskit/profilecard");
59
- headers.append('atl-client-version', "23.21.8");
59
+ headers.append('atl-client-version', "23.21.9");
60
60
  return headers;
61
61
  };
62
62
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -3,6 +3,7 @@
3
3
  ._18u0idpf{margin-left:0}
4
4
  ._18u0ze3t{margin-left:var(--ds-space-0,0)}
5
5
  ._19bvze3t{padding-left:var(--ds-space-0,0)}
6
+ ._19pkxy5q{margin-top:var(--ds-space-400,2pc)}
6
7
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
7
8
  ._1bguutpp#profilecard-name-label{margin-bottom:var(--ds-space-150,9pt)}
8
9
  ._1bto1l2s{text-overflow:ellipsis}
@@ -18,6 +18,7 @@ import { IconLabel } from '../Icon';
18
18
  import ReportingLinesDetails from './ReportingLinesDetails';
19
19
  var styles = {
20
20
  detailedListWrapper: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
21
+ detailedListWrapperNext: "_19pkxy5q _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
21
22
  fullNameLabel: "_1reo15vq _18m915vq _11c81ixg _1bto1l2s _o5721q9c",
22
23
  noMetaLabel: "_2hwxidpf _18u0idpf _rcujxy5q _1l6uutpp",
23
24
  noMetaLabelWithHighSpecificity: "_1hpmxy5q _1bguutpp",
@@ -117,7 +118,18 @@ export var ProfileCardDetails = function ProfileCardDetails(props) {
117
118
  }
118
119
  return /*#__PURE__*/React.createElement(DetailsGroup, null, renderName(props.nickname, props.fullName, meta), meta && /*#__PURE__*/React.createElement(JobTitleLabel, null, meta), /*#__PURE__*/React.createElement(CustomLozenges, {
119
120
  lozenges: props.customLozenges
120
- }), /*#__PURE__*/React.createElement(Box, {
121
+ }), fg('fix_profilecard_details_label_semantic_html') ? /*#__PURE__*/React.createElement(Box, {
122
+ xcss: styles.detailedListWrapperNext
123
+ }, /*#__PURE__*/React.createElement(IconLabel, {
124
+ icon: "email",
125
+ extraTopSpace: true
126
+ }, props.email), /*#__PURE__*/React.createElement(IconLabel, {
127
+ icon: "time"
128
+ }, props.timestring), /*#__PURE__*/React.createElement(IconLabel, {
129
+ icon: "companyName"
130
+ }, props.companyName), /*#__PURE__*/React.createElement(IconLabel, {
131
+ icon: "location"
132
+ }, props.location)) : /*#__PURE__*/React.createElement(Box, {
121
133
  as: "dl",
122
134
  xcss: styles.detailedListWrapper
123
135
  }, /*#__PURE__*/React.createElement(IconLabel, {
@@ -17,6 +17,7 @@
17
17
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
18
18
  ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
19
19
  ._19bvxy5q{padding-left:var(--ds-space-400,2pc)}
20
+ ._19bvze3t{padding-left:var(--ds-space-0,0)}
20
21
  ._19pk1b66{margin-top:var(--ds-space-050,4px)}
21
22
  ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
22
23
  ._19pkutpp{margin-top:var(--ds-space-150,9pt)}
@@ -4,6 +4,7 @@ import "./Card.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
6
  import { cx } from '@atlaskit/css';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { Box, Text } from '@atlaskit/primitives/compiled';
8
9
  var kudosButtonAnimationTransformationCompiled = null;
9
10
  var styles = {
@@ -24,6 +25,7 @@ var styles = {
24
25
  cardContainerDisabledUser: "_1itkkf3t",
25
26
  cardContainerWithElevation: "_2rkoglpi _16qs1cd0",
26
27
  detailsLabel: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _o5721q9c",
28
+ detailsLabelNext: "_zulpu2gc _1e0c1txw _4cvr1h6o _1bah1y6m _19pkutpp _2hwxze3t _18u0ze3t _otyrze3t _19bvze3t _o5721q9c",
27
29
  detailsLabelExtraTopSpace: "_19pkxy5q",
28
30
  detailsLabelIcon: "_1e0c1txw _1o9zidpf _syaz131l _1bsb7vkz _4t3i7vkz _s7n4jp4b _19pkze3t",
29
31
  detailsLabelText: "_1reo15vq _18m915vq _11c8dcr7 _1bto1l2s _syaz1fxt _19pkze3t _18u0ze3t",
@@ -142,7 +144,10 @@ export var DetailsLabel = function DetailsLabel(_ref12) {
142
144
  var children = _ref12.children,
143
145
  _ref12$extraTopSpace = _ref12.extraTopSpace,
144
146
  extraTopSpace = _ref12$extraTopSpace === void 0 ? false : _ref12$extraTopSpace;
145
- return /*#__PURE__*/React.createElement(Box, {
147
+ return fg('fix_profilecard_details_label_semantic_html') ? /*#__PURE__*/React.createElement(Box, {
148
+ as: "dl",
149
+ xcss: cx(styles.detailsLabelNext, extraTopSpace && styles.detailsLabelExtraTopSpace)
150
+ }, children) : /*#__PURE__*/React.createElement(Box, {
146
151
  xcss: cx(styles.detailsLabel, extraTopSpace && styles.detailsLabelExtraTopSpace)
147
152
  }, children);
148
153
  };
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
39
39
  actionSubjectId: actionSubjectId,
40
40
  attributes: _objectSpread(_objectSpread({
41
41
  packageName: "@atlaskit/profilecard",
42
- packageVersion: "23.21.8"
42
+ packageVersion: "23.21.9"
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": "23.21.9",
3
+ "version": "23.21.10",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -178,6 +178,9 @@
178
178
  "platform-adopt-teams-nav-config": {
179
179
  "type": "boolean"
180
180
  },
181
+ "fix_profilecard_details_label_semantic_html": {
182
+ "type": "boolean"
183
+ },
181
184
  "platform_editor_profilecard_style_fix": {
182
185
  "type": "boolean"
183
186
  }