@atlaskit/profilecard 27.6.6 → 27.6.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 +8 -0
- package/dist/cjs/client/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/components/User/OverflowProfileCardButtons.js +6 -6
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/createEvent.js +1 -1
- package/dist/es2019/client/addHeaders.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/components/User/OverflowProfileCardButtons.js +3 -3
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/createEvent.js +1 -1
- package/dist/esm/client/addHeaders.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/components/User/OverflowProfileCardButtons.js +3 -3
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/createEvent.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 27.6.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e0fb460e4c662`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e0fb460e4c662) -
|
|
8
|
+
Use named dropdown menu component imports from their dedicated export paths.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 27.6.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,6 +11,6 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
11
11
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
12
12
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "27.6.
|
|
14
|
+
headers.append('atl-client-version', "27.6.6");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
@@ -11,7 +11,7 @@ var _AGGQuery = require("./AGGQuery");
|
|
|
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', "27.6.
|
|
14
|
+
headers.append('atl-client-version', "27.6.6");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -13,9 +13,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
16
|
+
var _dropdownItem = require("@atlaskit/dropdown-menu/dropdown-item");
|
|
17
|
+
var _dropdownItemGroup = require("@atlaskit/dropdown-menu/dropdown-item-group");
|
|
18
|
+
var _dropdownMenu = require("@atlaskit/dropdown-menu/dropdown-menu");
|
|
19
19
|
var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
|
|
20
20
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
21
|
var _messages = _interopRequireDefault(require("../../messages"));
|
|
@@ -53,7 +53,7 @@ var OverflowProfileCardButtons = exports.OverflowProfileCardButtons = function O
|
|
|
53
53
|
}, [numActions, fireAnalyticsWithDuration]);
|
|
54
54
|
return /*#__PURE__*/_react.default.createElement(_Card.OverflowActionButtonsWrapper, {
|
|
55
55
|
testId: "profilecard-actions-overflow"
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(_dropdownMenu.
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownMenu, {
|
|
57
57
|
onOpenChange: onOpenChange,
|
|
58
58
|
placement: 'bottom-end',
|
|
59
59
|
trigger: function trigger(_ref2) {
|
|
@@ -71,8 +71,8 @@ var OverflowProfileCardButtons = exports.OverflowProfileCardButtons = function O
|
|
|
71
71
|
icon: _showMoreHorizontal.default
|
|
72
72
|
}));
|
|
73
73
|
}
|
|
74
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
75
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement(_dropdownItemGroup.DropdownItemGroup, null, actions.map(function (action, index) {
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement(_dropdownItem.DropdownItem, {
|
|
76
76
|
key: action.id,
|
|
77
77
|
onClick: function onClick(event) {
|
|
78
78
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -7,7 +7,7 @@ exports.USER_SUBJECT = exports.TEAM_SUBJECT = exports.PACKAGE_META_DATA = export
|
|
|
7
7
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
8
8
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
9
9
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
10
|
-
packageVersion: (_process$env$_PACKAGE2 = "27.6.
|
|
10
|
+
packageVersion: (_process$env$_PACKAGE2 = "27.6.6") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
11
11
|
};
|
|
12
12
|
var TEAM_SUBJECT = exports.TEAM_SUBJECT = 'teamProfileCard';
|
|
13
13
|
var USER_SUBJECT = exports.USER_SUBJECT = 'profilecard';
|
|
@@ -22,7 +22,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
|
|
|
22
22
|
actionSubjectId: actionSubjectId,
|
|
23
23
|
attributes: _objectSpread(_objectSpread({
|
|
24
24
|
packageName: "@atlaskit/profilecard",
|
|
25
|
-
packageVersion: "27.6.
|
|
25
|
+
packageVersion: "27.6.6"
|
|
26
26
|
}, attributes), {}, {
|
|
27
27
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
28
28
|
})
|
|
@@ -5,6 +5,6 @@ export const addHeaders = headers => {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "27.6.
|
|
8
|
+
headers.append('atl-client-version', "27.6.6");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -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', "27.6.
|
|
9
|
+
headers.append('atl-client-version', "27.6.6");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import IconButton from '@atlaskit/button/icon/button';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import { DropdownItem } from '@atlaskit/dropdown-menu/dropdown-item';
|
|
6
|
+
import { DropdownItemGroup } from '@atlaskit/dropdown-menu/dropdown-item-group';
|
|
7
|
+
import { DropdownMenu } from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
8
8
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import messages from '../../messages';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export const PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "27.6.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "27.6.6") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export const TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export const USER_SUBJECT = 'profilecard';
|
|
@@ -11,7 +11,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
|
|
|
11
11
|
actionSubjectId,
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "27.6.
|
|
14
|
+
packageVersion: "27.6.6",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: Math.round(getPageTime())
|
|
17
17
|
}
|
|
@@ -5,6 +5,6 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "27.6.
|
|
8
|
+
headers.append('atl-client-version', "27.6.6");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './AGGQuery';
|
|
|
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', "27.6.
|
|
7
|
+
headers.append('atl-client-version', "27.6.6");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -8,9 +8,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
import React, { useCallback, useState } from 'react';
|
|
9
9
|
import { useIntl } from 'react-intl';
|
|
10
10
|
import IconButton from '@atlaskit/button/icon/button';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
11
|
+
import { DropdownItem } from '@atlaskit/dropdown-menu/dropdown-item';
|
|
12
|
+
import { DropdownItemGroup } from '@atlaskit/dropdown-menu/dropdown-item-group';
|
|
13
|
+
import { DropdownMenu } from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
14
14
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import messages from '../../messages';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export var PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "27.6.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "27.6.6") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export var TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export var USER_SUBJECT = 'profilecard';
|
|
@@ -16,7 +16,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
|
|
|
16
16
|
actionSubjectId: actionSubjectId,
|
|
17
17
|
attributes: _objectSpread(_objectSpread({
|
|
18
18
|
packageName: "@atlaskit/profilecard",
|
|
19
|
-
packageVersion: "27.6.
|
|
19
|
+
packageVersion: "27.6.6"
|
|
20
20
|
}, attributes), {}, {
|
|
21
21
|
firedAt: Math.round(getPageTime())
|
|
22
22
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "27.6.
|
|
3
|
+
"version": "27.6.7",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@atlaskit/avatar-group": "^14.4.0",
|
|
48
48
|
"@atlaskit/button": "^25.7.0",
|
|
49
49
|
"@atlaskit/css": "^1.1.0",
|
|
50
|
-
"@atlaskit/dropdown-menu": "^21.
|
|
50
|
+
"@atlaskit/dropdown-menu": "^21.3.0",
|
|
51
51
|
"@atlaskit/empty-state": "^12.2.0",
|
|
52
52
|
"@atlaskit/feature-gate-js-client": "^8.0.0",
|
|
53
|
-
"@atlaskit/give-kudos": "^7.
|
|
53
|
+
"@atlaskit/give-kudos": "^7.7.0",
|
|
54
54
|
"@atlaskit/heading": "^8.0.0",
|
|
55
55
|
"@atlaskit/icon": "^38.0.0",
|
|
56
56
|
"@atlaskit/link": "5.1.7",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/popup": "^10.2.0",
|
|
63
63
|
"@atlaskit/primitives": "^22.7.0",
|
|
64
64
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
65
|
-
"@atlaskit/rovo-agent-components": "^10.
|
|
65
|
+
"@atlaskit/rovo-agent-components": "^10.8.0",
|
|
66
66
|
"@atlaskit/rovo-triggers": "^12.13.0",
|
|
67
67
|
"@atlaskit/spinner": "^20.4.0",
|
|
68
68
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@atlaskit/teams-public": "^3.9.0",
|
|
73
73
|
"@atlaskit/theme": "^28.2.0",
|
|
74
74
|
"@atlaskit/tmp-editor-statsig": "^260.0.0",
|
|
75
|
-
"@atlaskit/tokens": "^20.
|
|
75
|
+
"@atlaskit/tokens": "^20.11.0",
|
|
76
76
|
"@atlaskit/tooltip": "^24.4.0",
|
|
77
77
|
"@babel/runtime": "^7.0.0",
|
|
78
78
|
"@compiled/react": "^1.0.2",
|