@atlaskit/profilecard 26.13.0 → 26.13.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 +8 -0
- package/dist/cjs/client/RovoAgentCardClient.js +2 -2
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCardResourced.js +2 -2
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/RovoAgentCardClient.js +2 -2
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCardResourced.js +2 -2
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/RovoAgentCardClient.js +2 -2
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCardResourced.js +2 -2
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3e55e8eea5a11`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e55e8eea5a11) -
|
|
8
|
+
Fixes reduced profile card exp flag name
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 26.13.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -229,7 +229,7 @@ var RovoAgentCardClient = exports.default = /*#__PURE__*/function (_CachingClien
|
|
|
229
229
|
mode: 'cors',
|
|
230
230
|
headers: headers
|
|
231
231
|
})).then(function (response) {
|
|
232
|
-
if (response.status === 403 && _featureGates.default.getExperimentValue('
|
|
232
|
+
if (response.status === 403 && _featureGates.default.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
233
233
|
throw new AgentForbiddenError();
|
|
234
234
|
}
|
|
235
235
|
return response.json();
|
|
@@ -241,7 +241,7 @@ var RovoAgentCardClient = exports.default = /*#__PURE__*/function (_CachingClien
|
|
|
241
241
|
mode: 'cors',
|
|
242
242
|
headers: headers
|
|
243
243
|
})).then(function (response) {
|
|
244
|
-
if (response.status === 403 && _featureGates.default.getExperimentValue('
|
|
244
|
+
if (response.status === 403 && _featureGates.default.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
245
245
|
throw new AgentForbiddenError();
|
|
246
246
|
}
|
|
247
247
|
return response.json();
|
|
@@ -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', "26.
|
|
14
|
+
headers.append('atl-client-version', "26.13.0");
|
|
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', "26.
|
|
69
|
+
headers.append('atl-client-version', "26.13.0");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -142,7 +142,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
|
|
|
142
142
|
case 4:
|
|
143
143
|
_context2.prev = 4;
|
|
144
144
|
_t2 = _context2["catch"](1);
|
|
145
|
-
if (_t2 instanceof _RovoAgentCardClient.AgentForbiddenError && _featureGates.default.getExperimentValue('
|
|
145
|
+
if (_t2 instanceof _RovoAgentCardClient.AgentForbiddenError && _featureGates.default.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
146
146
|
setIsPermitted(false);
|
|
147
147
|
} else {
|
|
148
148
|
setError(_t2);
|
|
@@ -194,7 +194,7 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
|
|
|
194
194
|
creatorInfo: undefined
|
|
195
195
|
} : undefined;
|
|
196
196
|
}, [props.agentName, props.accountId]);
|
|
197
|
-
if (!isPermitted && _featureGates.default.getExperimentValue('
|
|
197
|
+
if (!isPermitted && _featureGates.default.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
198
198
|
var _props$agentName2;
|
|
199
199
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
200
200
|
fallback: null
|
|
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
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) { (0, _defineProperty2.default)(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; }
|
|
13
13
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
14
14
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
15
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.13.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
16
16
|
};
|
|
17
17
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
18
18
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "26.
|
|
34
|
+
packageVersion: "26.13.0"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -167,7 +167,7 @@ export default class RovoAgentCardClient extends CachingClient {
|
|
|
167
167
|
mode: 'cors',
|
|
168
168
|
headers
|
|
169
169
|
})).then(response => {
|
|
170
|
-
if (response.status === 403 && FeatureGates.getExperimentValue('
|
|
170
|
+
if (response.status === 403 && FeatureGates.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
171
171
|
throw new AgentForbiddenError();
|
|
172
172
|
}
|
|
173
173
|
return response.json();
|
|
@@ -179,7 +179,7 @@ export default class RovoAgentCardClient extends CachingClient {
|
|
|
179
179
|
mode: 'cors',
|
|
180
180
|
headers
|
|
181
181
|
})).then(response => {
|
|
182
|
-
if (response.status === 403 && FeatureGates.getExperimentValue('
|
|
182
|
+
if (response.status === 403 && FeatureGates.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
183
183
|
throw new AgentForbiddenError();
|
|
184
184
|
}
|
|
185
185
|
return response.json();
|
|
@@ -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.
|
|
9
|
+
headers.append('atl-client-version', "26.13.0");
|
|
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', "26.
|
|
81
|
+
headers.append('atl-client-version', "26.13.0");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -86,7 +86,7 @@ export const AgentProfileCardResourced = props => {
|
|
|
86
86
|
creatorInfo: agentCreatorInfo
|
|
87
87
|
});
|
|
88
88
|
} catch (err) {
|
|
89
|
-
if (err instanceof AgentForbiddenError && FeatureGates.getExperimentValue('
|
|
89
|
+
if (err instanceof AgentForbiddenError && FeatureGates.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
90
90
|
setIsPermitted(false);
|
|
91
91
|
} else {
|
|
92
92
|
setError(err);
|
|
@@ -132,7 +132,7 @@ export const AgentProfileCardResourced = props => {
|
|
|
132
132
|
creatorInfo: undefined
|
|
133
133
|
} : undefined;
|
|
134
134
|
}, [props.agentName, props.accountId]);
|
|
135
|
-
if (!isPermitted && FeatureGates.getExperimentValue('
|
|
135
|
+
if (!isPermitted && FeatureGates.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
136
136
|
var _props$agentName2;
|
|
137
137
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Suspense, {
|
|
138
138
|
fallback: null
|
|
@@ -2,7 +2,7 @@ var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
|
2
2
|
import { getPageTime } from './performance';
|
|
3
3
|
export const PACKAGE_META_DATA = {
|
|
4
4
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
5
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.13.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
6
6
|
};
|
|
7
7
|
const TEAM_SUBJECT = 'teamProfileCard';
|
|
8
8
|
const USER_SUBJECT = 'profilecard';
|
|
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
19
19
|
actionSubjectId,
|
|
20
20
|
attributes: {
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "26.
|
|
22
|
+
packageVersion: "26.13.0",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -222,7 +222,7 @@ var RovoAgentCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
222
222
|
mode: 'cors',
|
|
223
223
|
headers: headers
|
|
224
224
|
})).then(function (response) {
|
|
225
|
-
if (response.status === 403 && FeatureGates.getExperimentValue('
|
|
225
|
+
if (response.status === 403 && FeatureGates.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
226
226
|
throw new AgentForbiddenError();
|
|
227
227
|
}
|
|
228
228
|
return response.json();
|
|
@@ -234,7 +234,7 @@ var RovoAgentCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
234
234
|
mode: 'cors',
|
|
235
235
|
headers: headers
|
|
236
236
|
})).then(function (response) {
|
|
237
|
-
if (response.status === 403 && FeatureGates.getExperimentValue('
|
|
237
|
+
if (response.status === 403 && FeatureGates.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
238
238
|
throw new AgentForbiddenError();
|
|
239
239
|
}
|
|
240
240
|
return response.json();
|
|
@@ -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', "26.
|
|
7
|
+
headers.append('atl-client-version', "26.13.0");
|
|
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', "26.
|
|
62
|
+
headers.append('atl-client-version', "26.13.0");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -133,7 +133,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
|
|
|
133
133
|
case 4:
|
|
134
134
|
_context2.prev = 4;
|
|
135
135
|
_t2 = _context2["catch"](1);
|
|
136
|
-
if (_t2 instanceof AgentForbiddenError && FeatureGates.getExperimentValue('
|
|
136
|
+
if (_t2 instanceof AgentForbiddenError && FeatureGates.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
137
137
|
setIsPermitted(false);
|
|
138
138
|
} else {
|
|
139
139
|
setError(_t2);
|
|
@@ -185,7 +185,7 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
|
|
|
185
185
|
creatorInfo: undefined
|
|
186
186
|
} : undefined;
|
|
187
187
|
}, [props.agentName, props.accountId]);
|
|
188
|
-
if (!isPermitted && FeatureGates.getExperimentValue('
|
|
188
|
+
if (!isPermitted && FeatureGates.getExperimentValue('platform_editor_reduced_agent_profile_cards', 'isEnabled', false)) {
|
|
189
189
|
var _props$agentName2;
|
|
190
190
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Suspense, {
|
|
191
191
|
fallback: null
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { getPageTime } from './performance';
|
|
6
6
|
export var PACKAGE_META_DATA = {
|
|
7
7
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
8
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.13.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
9
9
|
};
|
|
10
10
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
11
11
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
24
24
|
actionSubjectId: actionSubjectId,
|
|
25
25
|
attributes: _objectSpread(_objectSpread({
|
|
26
26
|
packageName: "@atlaskit/profilecard",
|
|
27
|
-
packageVersion: "26.
|
|
27
|
+
packageVersion: "26.13.0"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.13.
|
|
3
|
+
"version": "26.13.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/dropdown-menu": "^17.1.0",
|
|
48
48
|
"@atlaskit/empty-state": "^11.1.0",
|
|
49
49
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
50
|
-
"@atlaskit/give-kudos": "^6.
|
|
50
|
+
"@atlaskit/give-kudos": "^6.10.0",
|
|
51
51
|
"@atlaskit/heading": "^6.2.0",
|
|
52
52
|
"@atlaskit/icon": "^37.1.0",
|
|
53
53
|
"@atlaskit/link": "4.3.5",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/people-teams-ui-public": "^5.1.0",
|
|
58
58
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
59
59
|
"@atlaskit/popup": "^5.1.0",
|
|
60
|
-
"@atlaskit/primitives": "^22.
|
|
60
|
+
"@atlaskit/primitives": "^22.2.0",
|
|
61
61
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
62
62
|
"@atlaskit/rovo-agent-components": "^8.1.0",
|
|
63
63
|
"@atlaskit/rovo-triggers": "^10.2.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@atlaskit/teams-avatar": "^3.2.0",
|
|
69
69
|
"@atlaskit/teams-public": "^2.5.0",
|
|
70
70
|
"@atlaskit/theme": "^26.1.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
72
|
-
"@atlaskit/tokens": "^16.
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^133.0.0",
|
|
72
|
+
"@atlaskit/tokens": "^16.3.0",
|
|
73
73
|
"@atlaskit/tooltip": "^23.1.0",
|
|
74
74
|
"@babel/runtime": "^7.0.0",
|
|
75
75
|
"@compiled/react": "^1.0.0",
|