@atlaskit/profilecard 24.24.1 → 24.25.0
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 +19 -3
- package/afm-cc/tsconfig.json +2 -1
- package/afm-jira/tsconfig.json +2 -1
- package/afm-products/tsconfig.json +2 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Error/ErrorMessage.js +1 -4
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Error/ErrorMessage.js +1 -4
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Error/ErrorMessage.js +1 -4
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.25.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
|
|
8
|
+
Migrated and cleaned up legacy iconography usage.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 24.24.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`fc10de5b4c202`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc10de5b4c202) -
|
|
19
|
+
Add test for accessibility violations
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 24.24.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -430,9 +449,6 @@
|
|
|
430
449
|
|
|
431
450
|
### Patch Changes
|
|
432
451
|
|
|
433
|
-
- [`9383d1ef58fe1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9383d1ef58fe1) -
|
|
434
|
-
Cleanup feature gate cc_mention_ssr_placeholder
|
|
435
|
-
|
|
436
452
|
## 24.7.2
|
|
437
453
|
|
|
438
454
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -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', "
|
|
14
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
66
66
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
67
67
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
68
68
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
69
|
-
headers.append('atl-client-version', "
|
|
69
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
12
12
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
13
|
-
var _crossCircle2 = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
|
|
14
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
15
|
var _Error = require("../../styled/Error");
|
|
@@ -60,9 +59,7 @@ var ErrorMessage = function ErrorMessage(props) {
|
|
|
60
59
|
return /*#__PURE__*/_react.default.createElement(_Error.ErrorWrapper, {
|
|
61
60
|
testId: "profilecard-error"
|
|
62
61
|
}, /*#__PURE__*/_react.default.createElement(_crossCircle.default, {
|
|
63
|
-
label: "icon error"
|
|
64
|
-
LEGACY_fallbackIcon: _crossCircle2.default,
|
|
65
|
-
LEGACY_size: "xlarge"
|
|
62
|
+
label: "icon error"
|
|
66
63
|
}), errorContent(), reload && /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
67
64
|
onClick: reload
|
|
68
65
|
}, "Try again"));
|
|
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
14
14
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
15
15
|
packageName: "@atlaskit/profilecard",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "0.0.0-development"
|
|
17
17
|
};
|
|
18
18
|
var runItLater = function runItLater(cb) {
|
|
19
19
|
var requestIdleCallback = window.requestIdleCallback;
|
|
@@ -58,7 +58,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
58
58
|
actionSubjectId: actionSubjectId,
|
|
59
59
|
attributes: _objectSpread(_objectSpread({
|
|
60
60
|
packageName: "@atlaskit/profilecard",
|
|
61
|
-
packageVersion: "
|
|
61
|
+
packageVersion: "0.0.0-development"
|
|
62
62
|
}, attributes), {}, {
|
|
63
63
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
64
64
|
})
|
|
@@ -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', "
|
|
9
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
|
|
|
78
78
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
79
79
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
80
80
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
81
|
-
headers.append('atl-client-version', "
|
|
81
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import Button from '@atlaskit/button/new';
|
|
3
3
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
4
|
-
import IconError from '@atlaskit/icon/glyph/cross-circle';
|
|
5
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
7
6
|
import { ErrorTitle, ErrorWrapper } from '../../styled/Error';
|
|
@@ -51,9 +50,7 @@ const ErrorMessage = props => {
|
|
|
51
50
|
return /*#__PURE__*/React.createElement(ErrorWrapper, {
|
|
52
51
|
testId: "profilecard-error"
|
|
53
52
|
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
54
|
-
label: "icon error"
|
|
55
|
-
LEGACY_fallbackIcon: IconError,
|
|
56
|
-
LEGACY_size: "xlarge"
|
|
53
|
+
label: "icon error"
|
|
57
54
|
}), errorContent(), reload && /*#__PURE__*/React.createElement(Button, {
|
|
58
55
|
onClick: reload
|
|
59
56
|
}, "Try again"));
|
|
@@ -4,7 +4,7 @@ import { getPageTime } from './performance';
|
|
|
4
4
|
const ANALYTICS_CHANNEL = 'peopleTeams';
|
|
5
5
|
export const PACKAGE_META_DATA = {
|
|
6
6
|
packageName: "@atlaskit/profilecard",
|
|
7
|
-
packageVersion: "
|
|
7
|
+
packageVersion: "0.0.0-development"
|
|
8
8
|
};
|
|
9
9
|
const runItLater = cb => {
|
|
10
10
|
const requestIdleCallback = window.requestIdleCallback;
|
|
@@ -45,7 +45,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
45
45
|
actionSubjectId,
|
|
46
46
|
attributes: {
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "
|
|
48
|
+
packageVersion: "0.0.0-development",
|
|
49
49
|
...attributes,
|
|
50
50
|
firedAt: Math.round(getPageTime())
|
|
51
51
|
}
|
|
@@ -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', "
|
|
7
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
59
59
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
60
60
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
61
61
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
62
|
-
headers.append('atl-client-version', "
|
|
62
|
+
headers.append('atl-client-version', "0.0.0-development");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import React, { useEffect } from 'react';
|
|
5
5
|
import Button from '@atlaskit/button/new';
|
|
6
6
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
7
|
-
import IconError from '@atlaskit/icon/glyph/cross-circle';
|
|
8
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { ErrorTitle, ErrorWrapper } from '../../styled/Error';
|
|
@@ -51,9 +50,7 @@ var ErrorMessage = function ErrorMessage(props) {
|
|
|
51
50
|
return /*#__PURE__*/React.createElement(ErrorWrapper, {
|
|
52
51
|
testId: "profilecard-error"
|
|
53
52
|
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
54
|
-
label: "icon error"
|
|
55
|
-
LEGACY_fallbackIcon: IconError,
|
|
56
|
-
LEGACY_size: "xlarge"
|
|
53
|
+
label: "icon error"
|
|
57
54
|
}), errorContent(), reload && /*#__PURE__*/React.createElement(Button, {
|
|
58
55
|
onClick: reload
|
|
59
56
|
}, "Try again"));
|
|
@@ -7,7 +7,7 @@ import { getPageTime } from './performance';
|
|
|
7
7
|
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
8
8
|
export var PACKAGE_META_DATA = {
|
|
9
9
|
packageName: "@atlaskit/profilecard",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "0.0.0-development"
|
|
11
11
|
};
|
|
12
12
|
var runItLater = function runItLater(cb) {
|
|
13
13
|
var requestIdleCallback = window.requestIdleCallback;
|
|
@@ -52,7 +52,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
52
52
|
actionSubjectId: actionSubjectId,
|
|
53
53
|
attributes: _objectSpread(_objectSpread({
|
|
54
54
|
packageName: "@atlaskit/profilecard",
|
|
55
|
-
packageVersion: "
|
|
55
|
+
packageVersion: "0.0.0-development"
|
|
56
56
|
}, attributes), {}, {
|
|
57
57
|
firedAt: Math.round(getPageTime())
|
|
58
58
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.25.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,33 +42,33 @@
|
|
|
42
42
|
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.7.0",
|
|
43
43
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
44
44
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
45
|
-
"@atlaskit/avatar": "^25.
|
|
45
|
+
"@atlaskit/avatar": "^25.6.0",
|
|
46
46
|
"@atlaskit/avatar-group": "^12.4.0",
|
|
47
|
-
"@atlaskit/button": "^23.
|
|
48
|
-
"@atlaskit/css": "^0.
|
|
47
|
+
"@atlaskit/button": "^23.8.0",
|
|
48
|
+
"@atlaskit/css": "^0.18.0",
|
|
49
49
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
50
50
|
"@atlaskit/empty-state": "^10.1.0",
|
|
51
51
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
52
52
|
"@atlaskit/give-kudos": "^4.4.0",
|
|
53
53
|
"@atlaskit/heading": "^5.2.0",
|
|
54
|
-
"@atlaskit/icon": "^29.
|
|
55
|
-
"@atlaskit/lozenge": "^13.
|
|
54
|
+
"@atlaskit/icon": "^29.2.0",
|
|
55
|
+
"@atlaskit/lozenge": "^13.2.0",
|
|
56
56
|
"@atlaskit/menu": "^8.4.0",
|
|
57
|
-
"@atlaskit/modal-dialog": "^14.
|
|
57
|
+
"@atlaskit/modal-dialog": "^14.9.0",
|
|
58
58
|
"@atlaskit/people-teams-ui-public": "^3.7.0",
|
|
59
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
61
|
-
"@atlaskit/popup": "^4.
|
|
61
|
+
"@atlaskit/popup": "^4.7.0",
|
|
62
62
|
"@atlaskit/primitives": "^16.4.0",
|
|
63
|
-
"@atlaskit/rovo-agent-components": "^3.
|
|
64
|
-
"@atlaskit/rovo-triggers": "^
|
|
63
|
+
"@atlaskit/rovo-agent-components": "^3.16.0",
|
|
64
|
+
"@atlaskit/rovo-triggers": "^5.1.0",
|
|
65
65
|
"@atlaskit/spinner": "^19.0.0",
|
|
66
66
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
67
|
-
"@atlaskit/teams-app-internal-analytics": "^1.
|
|
67
|
+
"@atlaskit/teams-app-internal-analytics": "^1.22.0",
|
|
68
68
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
69
69
|
"@atlaskit/teams-public": "^0.65.0",
|
|
70
70
|
"@atlaskit/theme": "^21.0.0",
|
|
71
|
-
"@atlaskit/tokens": "^8.
|
|
71
|
+
"@atlaskit/tokens": "^8.6.0",
|
|
72
72
|
"@atlaskit/tooltip": "^20.11.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
74
74
|
"@compiled/react": "^0.18.6",
|