@atlaskit/profilecard 19.15.8 → 19.15.9
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/ProfileCardClient.js +2 -5
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/styled/Card.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/ProfileCardClient.js +2 -5
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/styled/Card.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/ProfileCardClient.js +2 -5
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/styled/Card.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +9 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.15.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#118197](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/118197)
|
|
8
|
+
[`974cd9838830e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/974cd9838830e) -
|
|
9
|
+
Clean up platform.profilecard-disable-team-central-client-in-fedramp_ilnm7
|
|
10
|
+
|
|
3
11
|
## 19.15.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _atlassianContext = require("@atlaskit/atlassian-context");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _TeamCentralCardClient = _interopRequireDefault(require("./TeamCentralCardClient"));
|
|
14
13
|
var _TeamProfileCardClient = _interopRequireDefault(require("./TeamProfileCardClient"));
|
|
15
14
|
var _UserProfileCardClient = _interopRequireDefault(require("./UserProfileCardClient"));
|
|
@@ -67,10 +66,8 @@ var ProfileCardClient = /*#__PURE__*/function () {
|
|
|
67
66
|
return ProfileCardClient;
|
|
68
67
|
}();
|
|
69
68
|
function maybeCreateTeamCentralClient(config, clients) {
|
|
70
|
-
if ((0,
|
|
71
|
-
|
|
72
|
-
return undefined;
|
|
73
|
-
}
|
|
69
|
+
if ((0, _atlassianContext.isFedRamp)()) {
|
|
70
|
+
return undefined;
|
|
74
71
|
}
|
|
75
72
|
if (clients !== null && clients !== void 0 && clients.teamCentralClient) {
|
|
76
73
|
return clients.teamCentralClient;
|
|
@@ -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', "19.15.
|
|
60
|
+
headers.append('atl-client-version', "19.15.9");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -33,7 +33,7 @@ var ActionsFlexSpacer = exports.ActionsFlexSpacer = _styled.default.div(_templat
|
|
|
33
33
|
// eslint-disable-next-line @atlaskit/design-system/no-keyframes-tagged-template-expression -- needs manual remediation
|
|
34
34
|
var kudosButtonAnimationTransformation = (0, _react2.keyframes)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n"])));
|
|
35
35
|
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
37
|
var KudosBlobAnimationStyle = exports.KudosBlobAnimationStyle = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: none;\n\theight: 150px;\n\twidth: 150px;\n\tz-index: -1;\n\tposition: absolute;\n\ttop: ", "em;\n\tanimation-name: ", ";\n\tanimation-iteration-count: 1;\n\tanimation-duration: 3s;\n\tbackground-image: radial-gradient(\n\t\tcircle,\n\t\t", " 0%,\n\t\t", " 25%,\n\t\ttransparent 50%\n\t);\n\toverflow: hidden;\n"])), (0, _constants.gridSize)() * 4 / (0, _constants.fontSize)(), kudosButtonAnimationTransformation, "var(--ds-background-information-pressed, #85B8FF)", "var(--ds-background-discovery-pressed, #B8ACF6)");
|
|
38
38
|
var KudosBlobAnimation = exports.KudosBlobAnimation = function KudosBlobAnimation(props) {
|
|
39
39
|
return (
|
|
@@ -44,7 +44,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
44
44
|
actionSubjectId: actionSubjectId,
|
|
45
45
|
attributes: _objectSpread(_objectSpread({
|
|
46
46
|
packageName: "@atlaskit/profilecard",
|
|
47
|
-
packageVersion: "19.15.
|
|
47
|
+
packageVersion: "19.15.9"
|
|
48
48
|
}, attributes), {}, {
|
|
49
49
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
50
50
|
})
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
2
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import TeamCentralCardClient from './TeamCentralCardClient';
|
|
4
3
|
import TeamProfileCardClient from './TeamProfileCardClient';
|
|
5
4
|
import UserProfileCardClient from './UserProfileCardClient';
|
|
@@ -40,10 +39,8 @@ class ProfileCardClient {
|
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
function maybeCreateTeamCentralClient(config, clients) {
|
|
43
|
-
if (
|
|
44
|
-
|
|
45
|
-
return undefined;
|
|
46
|
-
}
|
|
42
|
+
if (isFedRamp()) {
|
|
43
|
+
return undefined;
|
|
47
44
|
}
|
|
48
45
|
if (clients !== null && clients !== void 0 && clients.teamCentralClient) {
|
|
49
46
|
return clients.teamCentralClient;
|
|
@@ -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', "19.15.
|
|
70
|
+
headers.append('atl-client-version', "19.15.9");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -36,7 +36,7 @@ const kudosButtonAnimationTransformation = keyframes`
|
|
|
36
36
|
100% { transform: translate(90px, -70px); }
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
40
40
|
export const KudosBlobAnimationStyle = styled.div`
|
|
41
41
|
display: none;
|
|
42
42
|
height: 150px;
|
|
@@ -31,7 +31,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
31
31
|
actionSubjectId,
|
|
32
32
|
attributes: {
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "19.15.
|
|
34
|
+
packageVersion: "19.15.9",
|
|
35
35
|
...attributes,
|
|
36
36
|
firedAt: Math.round(getPageTime())
|
|
37
37
|
}
|
|
@@ -4,7 +4,6 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
7
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import TeamCentralCardClient from './TeamCentralCardClient';
|
|
9
8
|
import TeamProfileCardClient from './TeamProfileCardClient';
|
|
10
9
|
import UserProfileCardClient from './UserProfileCardClient';
|
|
@@ -60,10 +59,8 @@ var ProfileCardClient = /*#__PURE__*/function () {
|
|
|
60
59
|
return ProfileCardClient;
|
|
61
60
|
}();
|
|
62
61
|
function maybeCreateTeamCentralClient(config, clients) {
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
return undefined;
|
|
66
|
-
}
|
|
62
|
+
if (isFedRamp()) {
|
|
63
|
+
return undefined;
|
|
67
64
|
}
|
|
68
65
|
if (clients !== null && clients !== void 0 && clients.teamCentralClient) {
|
|
69
66
|
return clients.teamCentralClient;
|
|
@@ -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', "19.15.
|
|
51
|
+
headers.append('atl-client-version', "19.15.9");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -27,7 +27,7 @@ export var ActionsFlexSpacer = styled.div(_templateObject3 || (_templateObject3
|
|
|
27
27
|
// eslint-disable-next-line @atlaskit/design-system/no-keyframes-tagged-template-expression -- needs manual remediation
|
|
28
28
|
var kudosButtonAnimationTransformation = keyframes(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n 0% { transform: translate(-80px, -50px); }\n 100% { transform: translate(90px, -70px); }\n"])));
|
|
29
29
|
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
31
31
|
export var KudosBlobAnimationStyle = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n\tdisplay: none;\n\theight: 150px;\n\twidth: 150px;\n\tz-index: -1;\n\tposition: absolute;\n\ttop: ", "em;\n\tanimation-name: ", ";\n\tanimation-iteration-count: 1;\n\tanimation-duration: 3s;\n\tbackground-image: radial-gradient(\n\t\tcircle,\n\t\t", " 0%,\n\t\t", " 25%,\n\t\ttransparent 50%\n\t);\n\toverflow: hidden;\n"])), gridSize() * 4 / fontSize(), kudosButtonAnimationTransformation, "var(--ds-background-information-pressed, #85B8FF)", "var(--ds-background-discovery-pressed, #B8ACF6)");
|
|
32
32
|
export var KudosBlobAnimation = function KudosBlobAnimation(props) {
|
|
33
33
|
return (
|
|
@@ -38,7 +38,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
38
38
|
actionSubjectId: actionSubjectId,
|
|
39
39
|
attributes: _objectSpread(_objectSpread({
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "19.15.
|
|
41
|
+
packageVersion: "19.15.9"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.15.
|
|
3
|
+
"version": "19.15.9",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
56
56
|
"@atlaskit/atlassian-context": "^0.0.0",
|
|
57
|
-
"@atlaskit/avatar": "^21.
|
|
58
|
-
"@atlaskit/avatar-group": "^9.
|
|
59
|
-
"@atlaskit/button": "^18.
|
|
60
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
57
|
+
"@atlaskit/avatar": "^21.11.0",
|
|
58
|
+
"@atlaskit/avatar-group": "^9.9.0",
|
|
59
|
+
"@atlaskit/button": "^18.2.0",
|
|
60
|
+
"@atlaskit/dropdown-menu": "^12.14.0",
|
|
61
61
|
"@atlaskit/empty-state": "^7.9.0",
|
|
62
62
|
"@atlaskit/focus-ring": "^1.5.0",
|
|
63
63
|
"@atlaskit/give-kudos": "^2.1.1",
|
|
64
|
-
"@atlaskit/icon": "^22.
|
|
64
|
+
"@atlaskit/icon": "^22.6.0",
|
|
65
65
|
"@atlaskit/lozenge": "^11.8.0",
|
|
66
|
-
"@atlaskit/menu": "^2.
|
|
66
|
+
"@atlaskit/menu": "^2.7.0",
|
|
67
67
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
68
|
-
"@atlaskit/popup": "^1.
|
|
69
|
-
"@atlaskit/primitives": "^10.
|
|
68
|
+
"@atlaskit/popup": "^1.20.0",
|
|
69
|
+
"@atlaskit/primitives": "^10.1.0",
|
|
70
70
|
"@atlaskit/spinner": "^16.2.0",
|
|
71
71
|
"@atlaskit/theme": "^12.11.0",
|
|
72
72
|
"@atlaskit/tokens": "^1.53.0",
|
|
@@ -114,9 +114,6 @@
|
|
|
114
114
|
"platform-feature-flags": {
|
|
115
115
|
"platform.profile-card-trigger-next": {
|
|
116
116
|
"type": "boolean"
|
|
117
|
-
},
|
|
118
|
-
"platform.profilecard-disable-team-central-client-in-fedramp_ilnm7": {
|
|
119
|
-
"type": "boolean"
|
|
120
117
|
}
|
|
121
118
|
}
|
|
122
119
|
}
|