@atlaskit/profilecard 18.0.2 → 18.1.1
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 +12 -0
- package/dist/cjs/client/TeamProfileCardClient.js +1 -1
- package/dist/cjs/styled/Card.js +2 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/client/TeamProfileCardClient.js +1 -1
- package/dist/es2019/styled/Card.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/client/TeamProfileCardClient.js +1 -1
- package/dist/esm/styled/Card.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +4 -4
- package/report.api.md +2 -0
- package/tmp/api-report-tmp.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 18.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`60b1c9b0f05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/60b1c9b0f05) - Upgrade profilecard to the latest major version of emotion
|
|
8
|
+
|
|
9
|
+
## 18.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`227230d34f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/227230d34f2) - Allow option to force team profilecard to use pf-directory
|
|
14
|
+
|
|
3
15
|
## 18.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -108,7 +108,7 @@ var TeamProfileCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
108
108
|
analytics((0, _analytics.teamRequestAnalytics)('triggered'));
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
var shouldUseGateway = !!_this2.options.gatewayGraphqlUrl;
|
|
111
|
+
var shouldUseGateway = !!_this2.options.gatewayGraphqlUrl && !_this2.options.teamsUseV2;
|
|
112
112
|
var promise = shouldUseGateway ? _this2.makeRequestViaGateway(teamId, orgId) : _this2.makeRequest(teamId, orgId);
|
|
113
113
|
promise.then(function (data) {
|
|
114
114
|
if (_this2.cache) {
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -13,7 +13,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
19
19
|
|
|
@@ -44,7 +44,7 @@ exports.ProfileImage = ProfileImage;
|
|
|
44
44
|
var ActionsFlexSpacer = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1 0 auto;\n"])));
|
|
45
45
|
|
|
46
46
|
exports.ActionsFlexSpacer = ActionsFlexSpacer;
|
|
47
|
-
var kudosButtonAnimationTransformation = (0,
|
|
47
|
+
var kudosButtonAnimationTransformation = (0, _react2.keyframes)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["{\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n}"])));
|
|
48
48
|
|
|
49
49
|
var KudosBlobAnimationStyle = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: none;\n height: 150px;\n width: 150px;\n z-index: -1;\n position: absolute;\n animation-name: ", ";\n animation-iteration-count: 1;\n animation-duration: 3s;\n background-image: radial-gradient(\n circle,\n ", " 0%,\n ", " 25%,\n transparent 50%\n );\n overflow: hidden;\n"])), kudosButtonAnimationTransformation, (0, _tokens.token)('color.background.information.pressed', '#85B8FF'), (0, _tokens.token)('color.background.discovery.pressed', '#B8ACF6'));
|
|
50
50
|
|
|
@@ -59,7 +59,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
59
59
|
actionSubjectId: actionSubjectId,
|
|
60
60
|
attributes: _objectSpread(_objectSpread({
|
|
61
61
|
packageName: "@atlaskit/profilecard",
|
|
62
|
-
packageVersion: "18.
|
|
62
|
+
packageVersion: "18.1.1"
|
|
63
63
|
}, attributes), {}, {
|
|
64
64
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
65
65
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -70,7 +70,7 @@ export default class TeamProfileCardClient extends CachingClient {
|
|
|
70
70
|
analytics(teamRequestAnalytics('triggered'));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
const shouldUseGateway = !!this.options.gatewayGraphqlUrl;
|
|
73
|
+
const shouldUseGateway = !!this.options.gatewayGraphqlUrl && !this.options.teamsUseV2;
|
|
74
74
|
const promise = shouldUseGateway ? this.makeRequestViaGateway(teamId, orgId) : this.makeRequest(teamId, orgId);
|
|
75
75
|
promise.then(data => {
|
|
76
76
|
if (this.cache) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { keyframes } from '@emotion/
|
|
3
|
+
import { keyframes } from '@emotion/react';
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
5
|
import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { token } from '@atlaskit/tokens';
|
|
@@ -38,7 +38,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
38
38
|
actionSubjectId,
|
|
39
39
|
attributes: {
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "18.
|
|
41
|
+
packageVersion: "18.1.1",
|
|
42
42
|
...attributes,
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -89,7 +89,7 @@ var TeamProfileCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
89
89
|
analytics(teamRequestAnalytics('triggered'));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
var shouldUseGateway = !!_this2.options.gatewayGraphqlUrl;
|
|
92
|
+
var shouldUseGateway = !!_this2.options.gatewayGraphqlUrl && !_this2.options.teamsUseV2;
|
|
93
93
|
var promise = shouldUseGateway ? _this2.makeRequestViaGateway(teamId, orgId) : _this2.makeRequest(teamId, orgId);
|
|
94
94
|
promise.then(function (data) {
|
|
95
95
|
if (_this2.cache) {
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -4,7 +4,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { keyframes } from '@emotion/
|
|
7
|
+
import { keyframes } from '@emotion/react';
|
|
8
8
|
import styled from '@emotion/styled';
|
|
9
9
|
import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
10
10
|
import { token } from '@atlaskit/tokens';
|
|
@@ -48,7 +48,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
48
48
|
actionSubjectId: actionSubjectId,
|
|
49
49
|
attributes: _objectSpread(_objectSpread({
|
|
50
50
|
packageName: "@atlaskit/profilecard",
|
|
51
|
-
packageVersion: "18.
|
|
51
|
+
packageVersion: "18.1.1"
|
|
52
52
|
}, attributes), {}, {
|
|
53
53
|
firedAt: Math.round(getPageTime())
|
|
54
54
|
})
|
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.1.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
42
42
|
"@atlaskit/avatar": "^21.1.0",
|
|
43
|
-
"@atlaskit/avatar-group": "^9.
|
|
43
|
+
"@atlaskit/avatar-group": "^9.2.0",
|
|
44
44
|
"@atlaskit/button": "^16.5.0",
|
|
45
45
|
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
46
46
|
"@atlaskit/give-kudos": "^1.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/theme": "^12.2.0",
|
|
53
53
|
"@atlaskit/tokens": "^0.13.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
|
-
"@emotion/
|
|
55
|
+
"@emotion/react": "^11.7.1",
|
|
56
56
|
"@emotion/styled": "^11.0.0",
|
|
57
57
|
"date-fns": "^2.17.0",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/dynamic-table": "^14.8.0",
|
|
69
69
|
"@atlaskit/flag": "^15.0.0",
|
|
70
70
|
"@atlaskit/inline-edit": "^12.2.0",
|
|
71
|
-
"@atlaskit/select": "^16.
|
|
71
|
+
"@atlaskit/select": "^16.1.0",
|
|
72
72
|
"@atlaskit/util-data-test": "^17.6.0",
|
|
73
73
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
74
74
|
"@testing-library/react": "^12.1.5",
|
package/report.api.md
CHANGED