@atlaskit/profilecard 24.40.0 → 24.40.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 +13 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/styled/TeamCard.js +2 -5
- 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/styled/TeamCard.js +2 -5
- 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/styled/TeamCard.js +2 -5
- package/dist/esm/util/analytics.js +2 -2
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.40.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 24.40.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`b4517aae6b26f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b4517aae6b26f) -
|
|
14
|
+
[ux] PTC-15599]: Fix user profile hover card in hierachy clipping for bottom items
|
|
15
|
+
|
|
3
16
|
## 24.40.0
|
|
4
17
|
|
|
5
18
|
### Minor 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', "24.
|
|
14
|
+
headers.append('atl-client-version', "24.40.1");
|
|
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', "24.
|
|
69
|
+
headers.append('atl-client-version', "24.40.1");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -12,7 +12,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _css = require("@atlaskit/css");
|
|
14
14
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
17
|
var styles = {
|
|
@@ -34,15 +33,13 @@ var TeamForbiddenErrorStateWrapper = exports.TeamForbiddenErrorStateWrapper = fu
|
|
|
34
33
|
}, props));
|
|
35
34
|
};
|
|
36
35
|
var TeamName = exports.TeamName = function TeamName(props) {
|
|
37
|
-
return
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
38
37
|
xcss: (0, _css.cx)(styles.teamname)
|
|
39
38
|
}, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
40
39
|
size: "medium",
|
|
41
40
|
as: "h2",
|
|
42
41
|
children: props.children
|
|
43
|
-
}))
|
|
44
|
-
xcss: (0, _css.cx)(styles.teamname)
|
|
45
|
-
}, props));
|
|
42
|
+
}));
|
|
46
43
|
};
|
|
47
44
|
var MemberCount = exports.MemberCount = function MemberCount(props) {
|
|
48
45
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, (0, _extends2.default)({
|
|
@@ -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: "24.
|
|
16
|
+
packageVersion: "24.40.1"
|
|
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: "24.
|
|
61
|
+
packageVersion: "24.40.1"
|
|
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', "24.
|
|
9
|
+
headers.append('atl-client-version', "24.40.1");
|
|
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', "24.
|
|
81
|
+
headers.append('atl-client-version', "24.40.1");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { N200 } from '@atlaskit/theme/colors';
|
|
11
10
|
const styles = {
|
|
@@ -24,15 +23,13 @@ const styles = {
|
|
|
24
23
|
export const TeamForbiddenErrorStateWrapper = props => /*#__PURE__*/React.createElement(Box, _extends({
|
|
25
24
|
xcss: cx(styles.teamforbiddenerrorstatewrapper)
|
|
26
25
|
}, props));
|
|
27
|
-
export const TeamName = props =>
|
|
26
|
+
export const TeamName = props => /*#__PURE__*/React.createElement(Box, {
|
|
28
27
|
xcss: cx(styles.teamname)
|
|
29
28
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
30
29
|
size: "medium",
|
|
31
30
|
as: "h2",
|
|
32
31
|
children: props.children
|
|
33
|
-
}))
|
|
34
|
-
xcss: cx(styles.teamname)
|
|
35
|
-
}, props));
|
|
32
|
+
}));
|
|
36
33
|
export const MemberCount = props => /*#__PURE__*/React.createElement(Box, _extends({
|
|
37
34
|
xcss: cx(styles.membercount)
|
|
38
35
|
}, props));
|
|
@@ -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: "24.
|
|
7
|
+
packageVersion: "24.40.1"
|
|
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: "24.
|
|
48
|
+
packageVersion: "24.40.1",
|
|
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', "24.
|
|
7
|
+
headers.append('atl-client-version', "24.40.1");
|
|
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', "24.
|
|
62
|
+
headers.append('atl-client-version', "24.40.1");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { N200 } from '@atlaskit/theme/colors';
|
|
11
10
|
var styles = {
|
|
@@ -27,15 +26,13 @@ export var TeamForbiddenErrorStateWrapper = function TeamForbiddenErrorStateWrap
|
|
|
27
26
|
}, props));
|
|
28
27
|
};
|
|
29
28
|
export var TeamName = function TeamName(props) {
|
|
30
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
31
30
|
xcss: cx(styles.teamname)
|
|
32
31
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
33
32
|
size: "medium",
|
|
34
33
|
as: "h2",
|
|
35
34
|
children: props.children
|
|
36
|
-
}))
|
|
37
|
-
xcss: cx(styles.teamname)
|
|
38
|
-
}, props));
|
|
35
|
+
}));
|
|
39
36
|
};
|
|
40
37
|
export var MemberCount = function MemberCount(props) {
|
|
41
38
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
@@ -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: "24.
|
|
10
|
+
packageVersion: "24.40.1"
|
|
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: "24.
|
|
55
|
+
packageVersion: "24.40.1"
|
|
56
56
|
}, attributes), {}, {
|
|
57
57
|
firedAt: Math.round(getPageTime())
|
|
58
58
|
})
|
package/dist/types/types.d.ts
CHANGED
|
@@ -518,7 +518,7 @@ export interface ProfileClient {
|
|
|
518
518
|
deleteAgent: (id: string, fireAnalytics?: FireEventType) => Promise<void>;
|
|
519
519
|
setFavouriteAgent: (id: string, isFavourite: boolean, fireAnalytics?: FireEventType) => Promise<void>;
|
|
520
520
|
}
|
|
521
|
-
export type ProfilecardTriggerPosition = 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
|
|
521
|
+
export type ProfilecardTriggerPosition = 'auto' | 'auto-start' | 'auto-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
|
|
522
522
|
export type ProfileCardErrorType = {
|
|
523
523
|
reason: 'default' | 'NotFound';
|
|
524
524
|
} | null;
|
|
@@ -524,7 +524,7 @@ export interface ProfileClient {
|
|
|
524
524
|
deleteAgent: (id: string, fireAnalytics?: FireEventType) => Promise<void>;
|
|
525
525
|
setFavouriteAgent: (id: string, isFavourite: boolean, fireAnalytics?: FireEventType) => Promise<void>;
|
|
526
526
|
}
|
|
527
|
-
export type ProfilecardTriggerPosition = 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
|
|
527
|
+
export type ProfilecardTriggerPosition = 'auto' | 'auto-start' | 'auto-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
|
|
528
528
|
export type ProfileCardErrorType = {
|
|
529
529
|
reason: 'default' | 'NotFound';
|
|
530
530
|
} | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "24.40.
|
|
3
|
+
"version": "24.40.2",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
69
69
|
"@atlaskit/teams-public": "^0.70.0",
|
|
70
70
|
"@atlaskit/theme": "^22.0.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^34.0.0",
|
|
72
72
|
"@atlaskit/tokens": "^11.0.0",
|
|
73
73
|
"@atlaskit/tooltip": "^20.14.0",
|
|
74
74
|
"@babel/runtime": "^7.0.0",
|
|
@@ -134,9 +134,6 @@
|
|
|
134
134
|
"fix_profilecard_trigger_isvisible": {
|
|
135
135
|
"type": "boolean"
|
|
136
136
|
},
|
|
137
|
-
"enable_profilecard_h2tag_a11y_fix": {
|
|
138
|
-
"type": "boolean"
|
|
139
|
-
},
|
|
140
137
|
"enable_userprofilecard_arialabelfix": {
|
|
141
138
|
"type": "boolean"
|
|
142
139
|
},
|