@atlaskit/profilecard 26.21.2 → 26.21.4
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 +14 -0
- package/dist/cjs/client/UserProfileCardClient.js +2 -4
- package/dist/cjs/client/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/createEvent.js +1 -1
- package/dist/es2019/client/UserProfileCardClient.js +1 -3
- package/dist/es2019/client/addHeaders.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/createEvent.js +1 -1
- package/dist/esm/client/UserProfileCardClient.js +2 -4
- package/dist/esm/client/addHeaders.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/createEvent.js +1 -1
- package/package.json +3 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.21.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fae8a219d2b64`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fae8a219d2b64) -
|
|
8
|
+
Cleanup feature gate `profilecard_scoped_profile_atl_attribution`. The scoped profile
|
|
9
|
+
`atl-attribution` header is now always sent on AGG user queries when a `cloudId` is provided.
|
|
10
|
+
|
|
11
|
+
## 26.21.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 26.21.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -25,7 +25,6 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
25
25
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
26
26
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
27
27
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
28
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
29
28
|
var _analytics = require("../util/analytics");
|
|
30
29
|
var _date = require("../util/date");
|
|
31
30
|
var _performance = require("../util/performance");
|
|
@@ -47,14 +46,13 @@ var buildScopedProfileAtlAttributionHeader = function buildScopedProfileAtlAttri
|
|
|
47
46
|
};
|
|
48
47
|
var queryAGGUser = /*#__PURE__*/function () {
|
|
49
48
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(url, userId, cloudId) {
|
|
50
|
-
var query,
|
|
49
|
+
var query, _yield$AGGQuery, user;
|
|
51
50
|
return _regenerator.default.wrap(function (_context) {
|
|
52
51
|
while (1) switch (_context.prev = _context.next) {
|
|
53
52
|
case 0:
|
|
54
53
|
query = (0, _buildAggUserQuery.buildAggUserQuery)(userId);
|
|
55
|
-
shouldAddScopedProfileAtlAttribution = (0, _fg.fg)('profilecard_scoped_profile_atl_attribution');
|
|
56
54
|
_context.next = 1;
|
|
57
|
-
return (0, _AGGQuery.AGGQuery)(url, query, cloudId
|
|
55
|
+
return (0, _AGGQuery.AGGQuery)(url, query, cloudId ? function (headers) {
|
|
58
56
|
// Temporary atl-attribution for scoped profiles until AGG attribution is handled upstream.
|
|
59
57
|
headers.append('atl-attribution', buildScopedProfileAtlAttributionHeader(cloudId));
|
|
60
58
|
return headers;
|
|
@@ -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', "26.21.
|
|
14
|
+
headers.append('atl-client-version', "26.21.3");
|
|
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', "26.21.
|
|
14
|
+
headers.append('atl-client-version', "26.21.3");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -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 = "26.21.
|
|
10
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.3") !== 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: "26.21.
|
|
25
|
+
packageVersion: "26.21.3"
|
|
26
26
|
}, attributes), {}, {
|
|
27
27
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
28
28
|
})
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
2
|
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
import { PACKAGE_META_DATA } from '../util/analytics';
|
|
5
4
|
import { localTime } from '../util/date';
|
|
6
5
|
import { getPageTime } from '../util/performance';
|
|
@@ -15,10 +14,9 @@ const buildScopedProfileAtlAttributionHeader = cloudId => JSON.stringify({
|
|
|
15
14
|
});
|
|
16
15
|
const queryAGGUser = async (url, userId, cloudId) => {
|
|
17
16
|
const query = buildAggUserQuery(userId);
|
|
18
|
-
const shouldAddScopedProfileAtlAttribution = fg('profilecard_scoped_profile_atl_attribution');
|
|
19
17
|
const {
|
|
20
18
|
user
|
|
21
|
-
} = await AGGQuery(url, query, cloudId
|
|
19
|
+
} = await AGGQuery(url, query, cloudId ? headers => {
|
|
22
20
|
// Temporary atl-attribution for scoped profiles until AGG attribution is handled upstream.
|
|
23
21
|
headers.append('atl-attribution', buildScopedProfileAtlAttributionHeader(cloudId));
|
|
24
22
|
return headers;
|
|
@@ -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', "26.21.
|
|
8
|
+
headers.append('atl-client-version', "26.21.3");
|
|
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', "26.21.
|
|
9
|
+
headers.append('atl-client-version', "26.21.3");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -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 = "26.21.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.3") !== 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: "26.21.
|
|
14
|
+
packageVersion: "26.21.3",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: Math.round(getPageTime())
|
|
17
17
|
}
|
|
@@ -12,7 +12,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
13
13
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
14
14
|
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
15
|
import { PACKAGE_META_DATA } from '../util/analytics';
|
|
17
16
|
import { localTime } from '../util/date';
|
|
18
17
|
import { getPageTime } from '../util/performance';
|
|
@@ -29,14 +28,13 @@ var buildScopedProfileAtlAttributionHeader = function buildScopedProfileAtlAttri
|
|
|
29
28
|
};
|
|
30
29
|
var queryAGGUser = /*#__PURE__*/function () {
|
|
31
30
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(url, userId, cloudId) {
|
|
32
|
-
var query,
|
|
31
|
+
var query, _yield$AGGQuery, user;
|
|
33
32
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
34
33
|
while (1) switch (_context.prev = _context.next) {
|
|
35
34
|
case 0:
|
|
36
35
|
query = buildAggUserQuery(userId);
|
|
37
|
-
shouldAddScopedProfileAtlAttribution = fg('profilecard_scoped_profile_atl_attribution');
|
|
38
36
|
_context.next = 1;
|
|
39
|
-
return AGGQuery(url, query, cloudId
|
|
37
|
+
return AGGQuery(url, query, cloudId ? function (headers) {
|
|
40
38
|
// Temporary atl-attribution for scoped profiles until AGG attribution is handled upstream.
|
|
41
39
|
headers.append('atl-attribution', buildScopedProfileAtlAttributionHeader(cloudId));
|
|
42
40
|
return headers;
|
|
@@ -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', "26.21.
|
|
8
|
+
headers.append('atl-client-version', "26.21.3");
|
|
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', "26.21.
|
|
7
|
+
headers.append('atl-client-version', "26.21.3");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -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 = "26.21.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.3") !== 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: "26.21.
|
|
19
|
+
packageVersion: "26.21.3"
|
|
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": "26.21.
|
|
3
|
+
"version": "26.21.4",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/primitives": "^22.5.0",
|
|
61
61
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
62
62
|
"@atlaskit/rovo-agent-components": "^8.9.0",
|
|
63
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
63
|
+
"@atlaskit/rovo-triggers": "^10.24.0",
|
|
64
64
|
"@atlaskit/spinner": "^20.4.0",
|
|
65
65
|
"@atlaskit/teams-app-config": "^3.0.0",
|
|
66
66
|
"@atlaskit/teams-app-internal-analytics": "^2.4.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
69
69
|
"@atlaskit/teams-public": "^2.9.0",
|
|
70
70
|
"@atlaskit/theme": "^28.2.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^171.0.0",
|
|
72
72
|
"@atlaskit/tokens": "^16.11.0",
|
|
73
73
|
"@atlaskit/tooltip": "^24.3.0",
|
|
74
74
|
"@babel/runtime": "^7.0.0",
|
|
@@ -115,17 +115,6 @@
|
|
|
115
115
|
"ui",
|
|
116
116
|
"profilecard"
|
|
117
117
|
],
|
|
118
|
-
"techstack": {
|
|
119
|
-
"@atlassian/frontend": {
|
|
120
|
-
"import-structure": "atlassian-conventions"
|
|
121
|
-
},
|
|
122
|
-
"@repo/internal": {
|
|
123
|
-
"design-tokens": [
|
|
124
|
-
"color",
|
|
125
|
-
"spacing"
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
118
|
"platform-feature-flags": {
|
|
130
119
|
"manual-studio-entry-link": {
|
|
131
120
|
"type": "boolean"
|
|
@@ -139,9 +128,6 @@
|
|
|
139
128
|
"platform_agg_user_query_doc_change": {
|
|
140
129
|
"type": "boolean"
|
|
141
130
|
},
|
|
142
|
-
"profilecard_scoped_profile_atl_attribution": {
|
|
143
|
-
"type": "boolean"
|
|
144
|
-
},
|
|
145
131
|
"platform-adopt-teams-nav-config": {
|
|
146
132
|
"type": "boolean"
|
|
147
133
|
},
|