@atlaskit/profilecard 23.21.6 → 23.21.7

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,13 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 23.21.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#183594](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/183594)
8
+ [`890f31384ba60`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/890f31384ba60) -
9
+ fix profile card margin issue in renderer
10
+
3
11
  ## 23.21.6
4
12
 
5
13
  ### 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.5");
14
+ headers.append('atl-client-version', "23.21.6");
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.5");
68
+ headers.append('atl-client-version', "23.21.6");
69
69
  return headers;
70
70
  };
71
71
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -4,7 +4,10 @@
4
4
  ._18u0ze3t{margin-left:var(--ds-space-0,0)}
5
5
  ._19bvze3t{padding-left:var(--ds-space-0,0)}
6
6
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
7
+ ._1bguutpp#profilecard-name-label{margin-bottom:var(--ds-space-150,9pt)}
7
8
  ._1bto1l2s{text-overflow:ellipsis}
9
+ ._1hpmutpp#profilecard-name-label{margin-top:var(--ds-space-150,9pt)}
10
+ ._1hpmxy5q#profilecard-name-label{margin-top:var(--ds-space-400,2pc)}
8
11
  ._1l6uutpp._1l6uutpp{margin-bottom:var(--ds-space-150,9pt)}
9
12
  ._1reo15vq{overflow-x:hidden}
10
13
  ._2hwxidpf{margin-right:0}
@@ -14,6 +14,7 @@ var _react = _interopRequireDefault(require("react"));
14
14
  var _react2 = require("@compiled/react");
15
15
  var _reactIntlNext = require("react-intl-next");
16
16
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _primitives = require("@atlaskit/primitives");
18
19
  var _compiled = require("@atlaskit/primitives/compiled");
19
20
  var _relativeDate = _interopRequireDefault(require("../../internal/relative-date"));
@@ -26,7 +27,9 @@ var styles = {
26
27
  detailedListWrapper: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
27
28
  fullNameLabel: "_1reo15vq _18m915vq _11c81ixg _1bto1l2s _o5721q9c",
28
29
  noMetaLabel: "_2hwxidpf _18u0idpf _rcujxy5q _1l6uutpp",
30
+ noMetaLabelWithHighSpecificity: "_1hpmxy5q _1bguutpp",
29
31
  metaLabel: "_2hwxidpf _otyridpf _18u0idpf _rcujutpp",
32
+ metaLabelWithHighSpecificity: "_2hwxidpf _otyridpf _18u0idpf _1hpmutpp",
30
33
  disabledAccount: "_syaz1fxt",
31
34
  activeAccount: "_syaz15cr"
32
35
  };
@@ -39,7 +42,7 @@ var renderName = function renderName(nickname, fullName, meta) {
39
42
  var displayName = isNicknameRedundant ? fullName : "".concat(fullName).concat(shownNickname);
40
43
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
41
44
  as: "h2",
42
- xcss: (0, _react2.cx)(styles.fullNameLabel, styles.activeAccount, meta ? styles.metaLabel : styles.noMetaLabel),
45
+ xcss: (0, _react2.cx)(styles.fullNameLabel, styles.activeAccount, meta ? (0, _platformFeatureFlags.fg)('platform_editor_profilecard_style_fix') ? styles.metaLabelWithHighSpecificity : styles.metaLabel : (0, _platformFeatureFlags.fg)('platform_editor_profilecard_style_fix') ? styles.noMetaLabelWithHighSpecificity : styles.noMetaLabel),
43
46
  testId: "profilecard-name",
44
47
  id: "profilecard-name-label"
45
48
  }, displayName);
@@ -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.5"
48
+ packageVersion: "23.21.6"
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.5");
9
+ headers.append('atl-client-version', "23.21.6");
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.5");
77
+ headers.append('atl-client-version', "23.21.6");
78
78
  return headers;
79
79
  };
80
80
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -4,7 +4,10 @@
4
4
  ._18u0ze3t{margin-left:var(--ds-space-0,0)}
5
5
  ._19bvze3t{padding-left:var(--ds-space-0,0)}
6
6
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
7
+ ._1bguutpp#profilecard-name-label{margin-bottom:var(--ds-space-150,9pt)}
7
8
  ._1bto1l2s{text-overflow:ellipsis}
9
+ ._1hpmutpp#profilecard-name-label{margin-top:var(--ds-space-150,9pt)}
10
+ ._1hpmxy5q#profilecard-name-label{margin-top:var(--ds-space-400,2pc)}
8
11
  ._1l6uutpp._1l6uutpp{margin-bottom:var(--ds-space-150,9pt)}
9
12
  ._1reo15vq{overflow-x:hidden}
10
13
  ._2hwxidpf{margin-right:0}
@@ -6,6 +6,7 @@ import React from 'react';
6
6
  import { cx } from '@compiled/react';
7
7
  import { FormattedMessage } from 'react-intl-next';
8
8
  import Lozenge from '@atlaskit/lozenge';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Text } from '@atlaskit/primitives';
10
11
  import { Box } from '@atlaskit/primitives/compiled';
11
12
  import relativeDate from '../../internal/relative-date';
@@ -17,7 +18,9 @@ const styles = {
17
18
  detailedListWrapper: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
18
19
  fullNameLabel: "_1reo15vq _18m915vq _11c81ixg _1bto1l2s _o5721q9c",
19
20
  noMetaLabel: "_2hwxidpf _18u0idpf _rcujxy5q _1l6uutpp",
21
+ noMetaLabelWithHighSpecificity: "_1hpmxy5q _1bguutpp",
20
22
  metaLabel: "_2hwxidpf _otyridpf _18u0idpf _rcujutpp",
23
+ metaLabelWithHighSpecificity: "_2hwxidpf _otyridpf _18u0idpf _1hpmutpp",
21
24
  disabledAccount: "_syaz1fxt",
22
25
  activeAccount: "_syaz15cr"
23
26
  };
@@ -30,7 +33,7 @@ const renderName = (nickname, fullName, meta) => {
30
33
  const displayName = isNicknameRedundant ? fullName : `${fullName}${shownNickname}`;
31
34
  return /*#__PURE__*/React.createElement(Box, {
32
35
  as: "h2",
33
- xcss: cx(styles.fullNameLabel, styles.activeAccount, meta ? styles.metaLabel : styles.noMetaLabel),
36
+ xcss: cx(styles.fullNameLabel, styles.activeAccount, meta ? fg('platform_editor_profilecard_style_fix') ? styles.metaLabelWithHighSpecificity : styles.metaLabel : fg('platform_editor_profilecard_style_fix') ? styles.noMetaLabelWithHighSpecificity : styles.noMetaLabel),
34
37
  testId: "profilecard-name",
35
38
  id: "profilecard-name-label"
36
39
  }, displayName);
@@ -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.5",
35
+ packageVersion: "23.21.6",
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.5");
7
+ headers.append('atl-client-version', "23.21.6");
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.5");
59
+ headers.append('atl-client-version', "23.21.6");
60
60
  return headers;
61
61
  };
62
62
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -4,7 +4,10 @@
4
4
  ._18u0ze3t{margin-left:var(--ds-space-0,0)}
5
5
  ._19bvze3t{padding-left:var(--ds-space-0,0)}
6
6
  ._19pkze3t{margin-top:var(--ds-space-0,0)}
7
+ ._1bguutpp#profilecard-name-label{margin-bottom:var(--ds-space-150,9pt)}
7
8
  ._1bto1l2s{text-overflow:ellipsis}
9
+ ._1hpmutpp#profilecard-name-label{margin-top:var(--ds-space-150,9pt)}
10
+ ._1hpmxy5q#profilecard-name-label{margin-top:var(--ds-space-400,2pc)}
8
11
  ._1l6uutpp._1l6uutpp{margin-bottom:var(--ds-space-150,9pt)}
9
12
  ._1reo15vq{overflow-x:hidden}
10
13
  ._2hwxidpf{margin-right:0}
@@ -8,6 +8,7 @@ import React from 'react';
8
8
  import { cx } from '@compiled/react';
9
9
  import { FormattedMessage } from 'react-intl-next';
10
10
  import Lozenge from '@atlaskit/lozenge';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
11
12
  import { Text } from '@atlaskit/primitives';
12
13
  import { Box } from '@atlaskit/primitives/compiled';
13
14
  import relativeDate from '../../internal/relative-date';
@@ -19,7 +20,9 @@ var styles = {
19
20
  detailedListWrapper: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
20
21
  fullNameLabel: "_1reo15vq _18m915vq _11c81ixg _1bto1l2s _o5721q9c",
21
22
  noMetaLabel: "_2hwxidpf _18u0idpf _rcujxy5q _1l6uutpp",
23
+ noMetaLabelWithHighSpecificity: "_1hpmxy5q _1bguutpp",
22
24
  metaLabel: "_2hwxidpf _otyridpf _18u0idpf _rcujutpp",
25
+ metaLabelWithHighSpecificity: "_2hwxidpf _otyridpf _18u0idpf _1hpmutpp",
23
26
  disabledAccount: "_syaz1fxt",
24
27
  activeAccount: "_syaz15cr"
25
28
  };
@@ -32,7 +35,7 @@ var renderName = function renderName(nickname, fullName, meta) {
32
35
  var displayName = isNicknameRedundant ? fullName : "".concat(fullName).concat(shownNickname);
33
36
  return /*#__PURE__*/React.createElement(Box, {
34
37
  as: "h2",
35
- xcss: cx(styles.fullNameLabel, styles.activeAccount, meta ? styles.metaLabel : styles.noMetaLabel),
38
+ xcss: cx(styles.fullNameLabel, styles.activeAccount, meta ? fg('platform_editor_profilecard_style_fix') ? styles.metaLabelWithHighSpecificity : styles.metaLabel : fg('platform_editor_profilecard_style_fix') ? styles.noMetaLabelWithHighSpecificity : styles.noMetaLabel),
36
39
  testId: "profilecard-name",
37
40
  id: "profilecard-name-label"
38
41
  }, displayName);
@@ -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.5"
42
+ packageVersion: "23.21.6"
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.6",
3
+ "version": "23.21.7",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -72,7 +72,7 @@
72
72
  "@atlaskit/platform-feature-flags": "^1.1.0",
73
73
  "@atlaskit/popup": "^4.3.0",
74
74
  "@atlaskit/primitives": "^14.10.0",
75
- "@atlaskit/rovo-agent-components": "^2.11.0",
75
+ "@atlaskit/rovo-agent-components": "^2.12.0",
76
76
  "@atlaskit/rovo-triggers": "^3.1.0",
77
77
  "@atlaskit/spinner": "^18.0.0",
78
78
  "@atlaskit/teams-app-config": "^1.9.0",
@@ -180,6 +180,9 @@
180
180
  },
181
181
  "platform-adopt-teams-nav-config": {
182
182
  "type": "boolean"
183
+ },
184
+ "platform_editor_profilecard_style_fix": {
185
+ "type": "boolean"
183
186
  }
184
187
  },
185
188
  "sideEffects": [