@atlaskit/profilecard 20.8.0 → 20.8.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 20.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 20.8.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#154357](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154357)
14
+ [`f85ffbbc5c2d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f85ffbbc5c2d7) -
15
+ Use typography components
16
+ - Updated dependencies
17
+
3
18
  ## 20.8.0
4
19
 
5
20
  ### Minor Changes
@@ -5,8 +5,7 @@
5
5
  "target": "es5",
6
6
  "composite": true,
7
7
  "outDir": "../dist",
8
- "rootDir": "../",
9
- "baseUrl": "../"
8
+ "rootDir": "../"
10
9
  },
11
10
  "include": [
12
11
  "../src/**/*.ts",
@@ -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.8.0");
14
+ headers.append('atl-client-version', "20.8.2");
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.8.0");
60
+ headers.append('atl-client-version', "20.8.2");
61
61
  return headers;
62
62
  };
63
63
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -44,8 +44,9 @@ var disabledAccountDesc = function disabledAccountDesc(statusModifiedDate, disab
44
44
  var relativeDateKey = (0, _relativeDate.default)(date);
45
45
  var msgKey = relativeDateKey ? "".concat(status, "AccountDescMsgHasDate").concat(relativeDateKey) : "".concat(status, "AccountDescMsgNoDate");
46
46
  var secondSentence = /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default[msgKey]);
47
- return /*#__PURE__*/_react.default.createElement("p", {
48
- "data-testid": "profilecard-disabled-account"
47
+ return /*#__PURE__*/_react.default.createElement(_primitives.Text, {
48
+ as: "p",
49
+ testId: "profilecard-disabled-account"
49
50
  }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.default.generalDescMsgForDisabledUser), " ", secondSentence);
50
51
  };
51
52
  var CustomLozenges = function CustomLozenges(_ref) {
@@ -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.8.0"
48
+ packageVersion: "20.8.2"
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.8.0");
9
+ headers.append('atl-client-version', "20.8.2");
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.8.0");
70
+ headers.append('atl-client-version', "20.8.2");
71
71
  return headers;
72
72
  };
73
73
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { FormattedMessage } from 'react-intl-next';
4
4
  import Lozenge from '@atlaskit/lozenge';
5
- import { Box, xcss } from '@atlaskit/primitives';
5
+ import { Box, Text, xcss } from '@atlaskit/primitives';
6
6
  import relativeDate from '../../internal/relative-date';
7
7
  import messages from '../../messages';
8
8
  import { AppTitleLabel, CustomLozengeContainer, DetailsGroup, DisabledInfo, FullNameLabel, JobTitleLabel, LozengeWrapper } from '../../styled/Card';
@@ -34,8 +34,9 @@ const disabledAccountDesc = (statusModifiedDate, disabledAccountMessage, status
34
34
  const relativeDateKey = relativeDate(date);
35
35
  const msgKey = relativeDateKey ? `${status}AccountDescMsgHasDate${relativeDateKey}` : `${status}AccountDescMsgNoDate`;
36
36
  const secondSentence = /*#__PURE__*/React.createElement(FormattedMessage, messages[msgKey]);
37
- return /*#__PURE__*/React.createElement("p", {
38
- "data-testid": "profilecard-disabled-account"
37
+ return /*#__PURE__*/React.createElement(Text, {
38
+ as: "p",
39
+ testId: "profilecard-disabled-account"
39
40
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.generalDescMsgForDisabledUser), " ", secondSentence);
40
41
  };
41
42
  const CustomLozenges = ({
@@ -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.8.0",
35
+ packageVersion: "20.8.2",
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.8.0");
7
+ headers.append('atl-client-version', "20.8.2");
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.8.0");
51
+ headers.append('atl-client-version', "20.8.2");
52
52
  return headers;
53
53
  };
54
54
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -4,7 +4,7 @@ var _excluded = ["text"];
4
4
  import React from 'react';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
6
  import Lozenge from '@atlaskit/lozenge';
7
- import { Box, xcss } from '@atlaskit/primitives';
7
+ import { Box, Text, xcss } from '@atlaskit/primitives';
8
8
  import relativeDate from '../../internal/relative-date';
9
9
  import messages from '../../messages';
10
10
  import { AppTitleLabel, CustomLozengeContainer, DetailsGroup, DisabledInfo, FullNameLabel, JobTitleLabel, LozengeWrapper } from '../../styled/Card';
@@ -37,8 +37,9 @@ var disabledAccountDesc = function disabledAccountDesc(statusModifiedDate, disab
37
37
  var relativeDateKey = relativeDate(date);
38
38
  var msgKey = relativeDateKey ? "".concat(status, "AccountDescMsgHasDate").concat(relativeDateKey) : "".concat(status, "AccountDescMsgNoDate");
39
39
  var secondSentence = /*#__PURE__*/React.createElement(FormattedMessage, messages[msgKey]);
40
- return /*#__PURE__*/React.createElement("p", {
41
- "data-testid": "profilecard-disabled-account"
40
+ return /*#__PURE__*/React.createElement(Text, {
41
+ as: "p",
42
+ testId: "profilecard-disabled-account"
42
43
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.generalDescMsgForDisabledUser), " ", secondSentence);
43
44
  };
44
45
  var CustomLozenges = function CustomLozenges(_ref) {
@@ -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.8.0"
42
+ packageVersion: "20.8.2"
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.8.0",
3
+ "version": "20.8.2",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/avatar": "^21.16.0",
56
56
  "@atlaskit/avatar-group": "^10.0.0",
57
57
  "@atlaskit/button": "^20.3.0",
58
- "@atlaskit/dropdown-menu": "^12.21.0",
58
+ "@atlaskit/dropdown-menu": "^12.22.0",
59
59
  "@atlaskit/empty-state": "^7.12.0",
60
60
  "@atlaskit/focus-ring": "^1.6.0",
61
61
  "@atlaskit/give-kudos": "^2.2.0",
@@ -65,8 +65,8 @@
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
- "@atlaskit/primitives": "^12.2.0",
69
- "@atlaskit/rovo-agent-components": "^1.7.0",
68
+ "@atlaskit/primitives": "^13.0.0",
69
+ "@atlaskit/rovo-agent-components": "^1.8.0",
70
70
  "@atlaskit/spinner": "^16.3.0",
71
71
  "@atlaskit/theme": "^14.0.0",
72
72
  "@atlaskit/tokens": "^2.0.0",