@atlaskit/profilecard 26.25.1 → 27.0.0
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 +20 -0
- package/dist/cjs/client/RovoAgentCardClient.js +1 -1
- package/dist/cjs/client/UserProfileCardClient.js +2 -21
- package/dist/cjs/client/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/index.js +0 -41
- package/dist/cjs/components/Agent/Actions.js +3 -1
- package/dist/cjs/components/Team/index.js +0 -17
- package/dist/cjs/components/User/ProfileCard.js +1 -21
- package/dist/cjs/components/User/index.js +0 -27
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/createEvent.js +1 -1
- package/dist/es2019/client/RovoAgentCardClient.js +1 -1
- package/dist/es2019/client/UserProfileCardClient.js +1 -12
- package/dist/es2019/client/addHeaders.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/index.js +0 -23
- package/dist/es2019/components/Agent/Actions.js +2 -0
- package/dist/es2019/components/Team/index.js +0 -7
- package/dist/es2019/components/User/ProfileCard.js +1 -12
- package/dist/es2019/components/User/index.js +0 -11
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/createEvent.js +1 -1
- package/dist/esm/client/RovoAgentCardClient.js +1 -1
- package/dist/esm/client/UserProfileCardClient.js +1 -11
- package/dist/esm/client/addHeaders.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/index.js +0 -23
- package/dist/esm/components/Agent/Actions.js +3 -1
- package/dist/esm/components/Team/index.js +0 -7
- package/dist/esm/components/User/ProfileCard.js +1 -12
- package/dist/esm/components/User/index.js +0 -11
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/createEvent.js +1 -1
- package/dist/types/client/UserProfileCardClient.d.ts +0 -8
- package/dist/types/client/index.d.ts +0 -20
- package/dist/types/components/Team/index.d.ts +0 -5
- package/dist/types/components/User/ProfileCard.d.ts +0 -8
- package/dist/types/components/User/index.d.ts +0 -8
- package/dist/types/types.d.ts +1 -1
- package/package.json +17 -17
- package/dist/cjs/mocks/index.js +0 -52
- package/dist/es2019/mocks/index.js +0 -18
- package/dist/esm/mocks/index.js +0 -18
- package/dist/types/mocks/index.d.ts +0 -16
- package/mocks/package.json +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 27.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`0c7c7be927bde`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c7c7be927bde) -
|
|
8
|
+
Remove deprecated Volt re-export shims from public package entry points. Consumers should import
|
|
9
|
+
from the replacement subpaths or implementation entry points instead.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`00fad91fb24eb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/00fad91fb24eb) -
|
|
14
|
+
Add gated agent duplication permission support and hide unauthorized duplicate actions.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 26.25.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 26.25.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -474,7 +474,7 @@ var RovoAgentCardClient = exports.default = /*#__PURE__*/function (_CachingClien
|
|
|
474
474
|
mode: 'cors',
|
|
475
475
|
headers: headers,
|
|
476
476
|
body: JSON.stringify({
|
|
477
|
-
permission_ids: ['AGENT_CREATE', 'AGENT_UPDATE', 'AGENT_DELETE', 'AGENT_DEACTIVATE', 'AGENT_READ']
|
|
477
|
+
permission_ids: ['AGENT_CREATE', 'AGENT_DUPLICATE', 'AGENT_UPDATE', 'AGENT_DELETE', 'AGENT_DEACTIVATE', 'AGENT_READ']
|
|
478
478
|
})
|
|
479
479
|
})).then(function (response) {
|
|
480
480
|
return response.json();
|
|
@@ -4,19 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "buildAggUserQuery", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _buildAggUserQuery.buildAggUserQuery;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
7
|
exports.default = void 0;
|
|
14
|
-
Object.defineProperty(exports, "modifyResponse", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _modifyResponse.modifyResponse;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
21
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
22
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -32,11 +20,10 @@ var _AGGQuery = require("./AGGQuery");
|
|
|
32
20
|
var _buildAggUserQuery = require("./buildAggUserQuery");
|
|
33
21
|
var _CachingClient2 = _interopRequireDefault(require("./CachingClient"));
|
|
34
22
|
var _getErrorAttributes = require("./getErrorAttributes");
|
|
35
|
-
var _modifyResponse = require("./modifyResponse");
|
|
36
23
|
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; }
|
|
37
24
|
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; }
|
|
38
25
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
39
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
40
27
|
var buildScopedProfileAtlAttributionHeader = function buildScopedProfileAtlAttributionHeader(cloudId) {
|
|
41
28
|
return JSON.stringify({
|
|
42
29
|
tenantId: "ari:cloud:townsquare::site/".concat(cloudId),
|
|
@@ -174,10 +161,4 @@ var UserProfileCardClient = exports.default = /*#__PURE__*/function (_CachingCli
|
|
|
174
161
|
});
|
|
175
162
|
}
|
|
176
163
|
}]);
|
|
177
|
-
}(_CachingClient2.default);
|
|
178
|
-
/**
|
|
179
|
-
* @deprecated Use `import { modifyResponse } from '@atlaskit/profilecard/modify-response'` instead.
|
|
180
|
-
*/
|
|
181
|
-
/**
|
|
182
|
-
* @deprecated Use `import { buildAggUserQuery } from '@atlaskit/profilecard/build-agg-user-query'` instead.
|
|
183
|
-
*/
|
|
164
|
+
}(_CachingClient2.default);
|
|
@@ -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.25.
|
|
14
|
+
headers.append('atl-client-version', "26.25.2");
|
|
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.25.
|
|
14
|
+
headers.append('atl-client-version', "26.25.2");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
package/dist/cjs/client/index.js
CHANGED
|
@@ -4,48 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "CachingClient", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _CachingClient.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "TeamProfileClient", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _TeamProfileCardClient.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "UserProfileClient", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _UserProfileCardClient.default;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
7
|
exports.default = void 0;
|
|
26
|
-
Object.defineProperty(exports, "modifyResponse", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function get() {
|
|
29
|
-
return _modifyResponse.modifyResponse;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
var _CachingClient = _interopRequireDefault(require("./CachingClient"));
|
|
33
|
-
var _modifyResponse = require("./modifyResponse");
|
|
34
8
|
var _ProfileCardClient = _interopRequireDefault(require("./ProfileCardClient"));
|
|
35
|
-
var _TeamProfileCardClient = _interopRequireDefault(require("./TeamProfileCardClient"));
|
|
36
|
-
var _UserProfileCardClient = _interopRequireDefault(require("./UserProfileCardClient"));
|
|
37
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated Use `import CachingClient from '@atlaskit/profilecard/caching-client'` instead.
|
|
40
|
-
*/
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use `import { modifyResponse } from '@atlaskit/profilecard/modify-response'` instead.
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Use `import TeamProfileClient from '@atlaskit/profilecard/team-profile-card-client'` instead.
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated Use `import UserProfileClient from '@atlaskit/profilecard/user-profile-card-client'` instead.
|
|
49
|
-
*/
|
|
50
9
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports
|
|
51
10
|
var _default = exports.default = _ProfileCardClient.default;
|
|
@@ -49,7 +49,7 @@ var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
|
49
49
|
setIsDeleteModalOpen = _useState2[1];
|
|
50
50
|
var isForgeAgent = agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY';
|
|
51
51
|
var loadAgentPermissions = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
52
|
-
var _yield$resourceClient, _yield$resourceClient2, AGENT_CREATE, AGENT_UPDATE, AGENT_DEACTIVATE;
|
|
52
|
+
var _yield$resourceClient, _yield$resourceClient2, AGENT_CREATE, AGENT_DUPLICATE, AGENT_UPDATE, AGENT_DEACTIVATE;
|
|
53
53
|
return _regenerator.default.wrap(function (_context) {
|
|
54
54
|
while (1) switch (_context.prev = _context.next) {
|
|
55
55
|
case 0:
|
|
@@ -59,10 +59,12 @@ var AgentActions = exports.AgentActions = function AgentActions(_ref) {
|
|
|
59
59
|
_yield$resourceClient = _context.sent;
|
|
60
60
|
_yield$resourceClient2 = _yield$resourceClient.permissions;
|
|
61
61
|
AGENT_CREATE = _yield$resourceClient2.AGENT_CREATE;
|
|
62
|
+
AGENT_DUPLICATE = _yield$resourceClient2.AGENT_DUPLICATE;
|
|
62
63
|
AGENT_UPDATE = _yield$resourceClient2.AGENT_UPDATE;
|
|
63
64
|
AGENT_DEACTIVATE = _yield$resourceClient2.AGENT_DEACTIVATE;
|
|
64
65
|
return _context.abrupt("return", {
|
|
65
66
|
isCreateEnabled: AGENT_CREATE.permitted,
|
|
67
|
+
isDuplicateEnabled: AGENT_DUPLICATE.permitted,
|
|
66
68
|
isEditEnabled: AGENT_UPDATE.permitted,
|
|
67
69
|
isDeleteEnabled: AGENT_DEACTIVATE.permitted
|
|
68
70
|
});
|
|
@@ -4,25 +4,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "DELAY_MS_HIDE", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _config.DELAY_MS_HIDE;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "DELAY_MS_SHOW", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _config.DELAY_MS_SHOW;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
7
|
exports.default = void 0;
|
|
20
|
-
var _config = require("../../util/config");
|
|
21
8
|
var _TeamProfileCardTrigger = _interopRequireDefault(require("./TeamProfileCardTrigger"));
|
|
22
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
23
9
|
// Do not export TeamProfileCard here as it will break lazy-loading for the team trigger.
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
26
|
-
*/
|
|
27
10
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports
|
|
28
11
|
var _default = exports.default = _TeamProfileCardTrigger.default;
|
|
@@ -3,26 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "LoadingView", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _LoadingView.LoadingView;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "ProfilecardInternal", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _ProfilecardInternal.ProfilecardInternal;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
6
|
exports.default = void 0;
|
|
19
7
|
var _ProfilecardInternal = require("./ProfilecardInternal");
|
|
20
|
-
var
|
|
21
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
22
|
-
var _default = exports.default = _ProfilecardInternal.ProfilecardInternal;
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated Use `import { ProfilecardInternal } from '@atlaskit/profilecard/profilecard-internal'` instead.
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `import { LoadingView } from '@atlaskit/profilecard/loading-view'` instead.
|
|
28
|
-
*/
|
|
8
|
+
var _default = exports.default = _ProfilecardInternal.ProfilecardInternal;
|
|
@@ -4,33 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "DELAY_MS_HIDE", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _config.DELAY_MS_HIDE;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "DELAY_MS_SHOW", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _config.DELAY_MS_SHOW;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "ProfileCardLazy", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _lazyProfileCard.ProfileCardLazy;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
7
|
exports.default = void 0;
|
|
26
|
-
var _config = require("../../util/config");
|
|
27
|
-
var _lazyProfileCard = require("./lazyProfileCard");
|
|
28
8
|
var _ProfileCardTrigger = _interopRequireDefault(require("./ProfileCardTrigger"));
|
|
29
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `import { ProfileCardLazy } from '@atlaskit/profilecard/lazy-profile-card'` instead.
|
|
35
|
-
*/
|
|
36
9
|
var _default = exports.default = _ProfileCardTrigger.default;
|
|
@@ -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.25.
|
|
10
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.25.2") !== 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.25.
|
|
25
|
+
packageVersion: "26.25.2"
|
|
26
26
|
}, attributes), {}, {
|
|
27
27
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
28
28
|
})
|
|
@@ -387,7 +387,7 @@ export default class RovoAgentCardClient extends CachingClient {
|
|
|
387
387
|
mode: 'cors',
|
|
388
388
|
headers,
|
|
389
389
|
body: JSON.stringify({
|
|
390
|
-
permission_ids: ['AGENT_CREATE', 'AGENT_UPDATE', 'AGENT_DELETE', 'AGENT_DEACTIVATE', 'AGENT_READ']
|
|
390
|
+
permission_ids: ['AGENT_CREATE', 'AGENT_DUPLICATE', 'AGENT_UPDATE', 'AGENT_DELETE', 'AGENT_DEACTIVATE', 'AGENT_READ']
|
|
391
391
|
})
|
|
392
392
|
})).then(response => response.json()).then(data => {
|
|
393
393
|
if (fireAnalytics) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
|
|
3
1
|
import { PACKAGE_META_DATA } from '../util/analytics';
|
|
4
2
|
import { localTime } from '../util/date';
|
|
5
3
|
import { getPageTime } from '../util/performance';
|
|
@@ -103,13 +101,4 @@ export default class UserProfileCardClient extends CachingClient {
|
|
|
103
101
|
});
|
|
104
102
|
});
|
|
105
103
|
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @deprecated Use `import { modifyResponse } from '@atlaskit/profilecard/modify-response'` instead.
|
|
110
|
-
*/
|
|
111
|
-
export { modifyResponse } from './modifyResponse';
|
|
112
|
-
/**
|
|
113
|
-
* @deprecated Use `import { buildAggUserQuery } from '@atlaskit/profilecard/build-agg-user-query'` instead.
|
|
114
|
-
*/
|
|
115
|
-
export { buildAggUserQuery } from './buildAggUserQuery';
|
|
104
|
+
}
|
|
@@ -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.25.
|
|
8
|
+
headers.append('atl-client-version', "26.25.2");
|
|
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.25.
|
|
9
|
+
headers.append('atl-client-version', "26.25.2");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -1,27 +1,4 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
|
|
3
|
-
import CachingClient from './CachingClient';
|
|
4
|
-
import { modifyResponse } from './modifyResponse';
|
|
5
1
|
import ProfileCardClient from './ProfileCardClient';
|
|
6
|
-
import TeamProfileClient from './TeamProfileCardClient';
|
|
7
|
-
import UserProfileClient from './UserProfileCardClient';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `import CachingClient from '@atlaskit/profilecard/caching-client'` instead.
|
|
11
|
-
*/
|
|
12
|
-
export { CachingClient };
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use `import { modifyResponse } from '@atlaskit/profilecard/modify-response'` instead.
|
|
15
|
-
*/
|
|
16
|
-
export { modifyResponse };
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `import TeamProfileClient from '@atlaskit/profilecard/team-profile-card-client'` instead.
|
|
19
|
-
*/
|
|
20
|
-
export { TeamProfileClient };
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use `import UserProfileClient from '@atlaskit/profilecard/user-profile-card-client'` instead.
|
|
23
|
-
*/
|
|
24
|
-
export { UserProfileClient };
|
|
25
2
|
|
|
26
3
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports
|
|
27
4
|
export default ProfileCardClient;
|
|
@@ -40,12 +40,14 @@ export const AgentActions = ({
|
|
|
40
40
|
const {
|
|
41
41
|
permissions: {
|
|
42
42
|
AGENT_CREATE,
|
|
43
|
+
AGENT_DUPLICATE,
|
|
43
44
|
AGENT_UPDATE,
|
|
44
45
|
AGENT_DEACTIVATE
|
|
45
46
|
}
|
|
46
47
|
} = await resourceClient.getRovoAgentPermissions(agent.id);
|
|
47
48
|
return {
|
|
48
49
|
isCreateEnabled: AGENT_CREATE.permitted,
|
|
50
|
+
isDuplicateEnabled: AGENT_DUPLICATE.permitted,
|
|
49
51
|
isEditEnabled: AGENT_UPDATE.permitted,
|
|
50
52
|
isDeleteEnabled: AGENT_DEACTIVATE.permitted
|
|
51
53
|
};
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
1
|
// Do not export TeamProfileCard here as it will break lazy-loading for the team trigger.
|
|
3
|
-
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
4
2
|
import TeamProfileCardTrigger from './TeamProfileCardTrigger';
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export { DELAY_MS_HIDE, DELAY_MS_SHOW };
|
|
10
3
|
|
|
11
4
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports
|
|
12
5
|
export default TeamProfileCardTrigger;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
|
|
3
1
|
import { ProfilecardInternal } from './ProfilecardInternal';
|
|
4
|
-
export default ProfilecardInternal;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `import { ProfilecardInternal } from '@atlaskit/profilecard/profilecard-internal'` instead.
|
|
8
|
-
*/
|
|
9
|
-
export { ProfilecardInternal } from './ProfilecardInternal';
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `import { LoadingView } from '@atlaskit/profilecard/loading-view'` instead.
|
|
12
|
-
*/
|
|
13
|
-
export { LoadingView } from './LoadingView';
|
|
2
|
+
export default ProfilecardInternal;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Use `import { ProfileCardLazy } from '@atlaskit/profilecard/lazy-profile-card'` instead.
|
|
10
|
-
*/
|
|
11
|
-
export { ProfileCardLazy } from './lazyProfileCard';
|
|
12
1
|
import ProfileCardTrigger from './ProfileCardTrigger';
|
|
13
2
|
export default ProfileCardTrigger;
|
|
@@ -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.25.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.25.2") !== 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.25.
|
|
14
|
+
packageVersion: "26.25.2",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: Math.round(getPageTime())
|
|
17
17
|
}
|
|
@@ -467,7 +467,7 @@ var RovoAgentCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
467
467
|
mode: 'cors',
|
|
468
468
|
headers: headers,
|
|
469
469
|
body: JSON.stringify({
|
|
470
|
-
permission_ids: ['AGENT_CREATE', 'AGENT_UPDATE', 'AGENT_DELETE', 'AGENT_DEACTIVATE', 'AGENT_READ']
|
|
470
|
+
permission_ids: ['AGENT_CREATE', 'AGENT_DUPLICATE', 'AGENT_UPDATE', 'AGENT_DELETE', 'AGENT_DEACTIVATE', 'AGENT_READ']
|
|
471
471
|
})
|
|
472
472
|
})).then(function (response) {
|
|
473
473
|
return response.json();
|
|
@@ -10,8 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
13
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
14
|
-
|
|
15
13
|
import { PACKAGE_META_DATA } from '../util/analytics';
|
|
16
14
|
import { localTime } from '../util/date';
|
|
17
15
|
import { getPageTime } from '../util/performance';
|
|
@@ -157,12 +155,4 @@ var UserProfileCardClient = /*#__PURE__*/function (_CachingClient) {
|
|
|
157
155
|
}
|
|
158
156
|
}]);
|
|
159
157
|
}(CachingClient);
|
|
160
|
-
|
|
161
|
-
* @deprecated Use `import { modifyResponse } from '@atlaskit/profilecard/modify-response'` instead.
|
|
162
|
-
*/
|
|
163
|
-
export { UserProfileCardClient as default };
|
|
164
|
-
export { modifyResponse } from './modifyResponse';
|
|
165
|
-
/**
|
|
166
|
-
* @deprecated Use `import { buildAggUserQuery } from '@atlaskit/profilecard/build-agg-user-query'` instead.
|
|
167
|
-
*/
|
|
168
|
-
export { buildAggUserQuery } from './buildAggUserQuery';
|
|
158
|
+
export { UserProfileCardClient as default };
|
|
@@ -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.25.
|
|
8
|
+
headers.append('atl-client-version', "26.25.2");
|
|
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.25.
|
|
7
|
+
headers.append('atl-client-version', "26.25.2");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
package/dist/esm/client/index.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
|
|
3
|
-
import CachingClient from './CachingClient';
|
|
4
|
-
import { modifyResponse } from './modifyResponse';
|
|
5
1
|
import ProfileCardClient from './ProfileCardClient';
|
|
6
|
-
import TeamProfileClient from './TeamProfileCardClient';
|
|
7
|
-
import UserProfileClient from './UserProfileCardClient';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `import CachingClient from '@atlaskit/profilecard/caching-client'` instead.
|
|
11
|
-
*/
|
|
12
|
-
export { CachingClient };
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use `import { modifyResponse } from '@atlaskit/profilecard/modify-response'` instead.
|
|
15
|
-
*/
|
|
16
|
-
export { modifyResponse };
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `import TeamProfileClient from '@atlaskit/profilecard/team-profile-card-client'` instead.
|
|
19
|
-
*/
|
|
20
|
-
export { TeamProfileClient };
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use `import UserProfileClient from '@atlaskit/profilecard/user-profile-card-client'` instead.
|
|
23
|
-
*/
|
|
24
|
-
export { UserProfileClient };
|
|
25
2
|
|
|
26
3
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports
|
|
27
4
|
export default ProfileCardClient;
|
|
@@ -40,7 +40,7 @@ export var AgentActions = function AgentActions(_ref) {
|
|
|
40
40
|
setIsDeleteModalOpen = _useState2[1];
|
|
41
41
|
var isForgeAgent = agent.creator_type === 'FORGE' || agent.creator_type === 'THIRD_PARTY';
|
|
42
42
|
var loadAgentPermissions = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
43
|
-
var _yield$resourceClient, _yield$resourceClient2, AGENT_CREATE, AGENT_UPDATE, AGENT_DEACTIVATE;
|
|
43
|
+
var _yield$resourceClient, _yield$resourceClient2, AGENT_CREATE, AGENT_DUPLICATE, AGENT_UPDATE, AGENT_DEACTIVATE;
|
|
44
44
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
45
45
|
while (1) switch (_context.prev = _context.next) {
|
|
46
46
|
case 0:
|
|
@@ -50,10 +50,12 @@ export var AgentActions = function AgentActions(_ref) {
|
|
|
50
50
|
_yield$resourceClient = _context.sent;
|
|
51
51
|
_yield$resourceClient2 = _yield$resourceClient.permissions;
|
|
52
52
|
AGENT_CREATE = _yield$resourceClient2.AGENT_CREATE;
|
|
53
|
+
AGENT_DUPLICATE = _yield$resourceClient2.AGENT_DUPLICATE;
|
|
53
54
|
AGENT_UPDATE = _yield$resourceClient2.AGENT_UPDATE;
|
|
54
55
|
AGENT_DEACTIVATE = _yield$resourceClient2.AGENT_DEACTIVATE;
|
|
55
56
|
return _context.abrupt("return", {
|
|
56
57
|
isCreateEnabled: AGENT_CREATE.permitted,
|
|
58
|
+
isDuplicateEnabled: AGENT_DUPLICATE.permitted,
|
|
57
59
|
isEditEnabled: AGENT_UPDATE.permitted,
|
|
58
60
|
isDeleteEnabled: AGENT_DEACTIVATE.permitted
|
|
59
61
|
});
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
1
|
// Do not export TeamProfileCard here as it will break lazy-loading for the team trigger.
|
|
3
|
-
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
4
2
|
import TeamProfileCardTrigger from './TeamProfileCardTrigger';
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export { DELAY_MS_HIDE, DELAY_MS_SHOW };
|
|
10
3
|
|
|
11
4
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports
|
|
12
5
|
export default TeamProfileCardTrigger;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
|
|
3
1
|
import { ProfilecardInternal } from './ProfilecardInternal';
|
|
4
|
-
export default ProfilecardInternal;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `import { ProfilecardInternal } from '@atlaskit/profilecard/profilecard-internal'` instead.
|
|
8
|
-
*/
|
|
9
|
-
export { ProfilecardInternal } from './ProfilecardInternal';
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `import { LoadingView } from '@atlaskit/profilecard/loading-view'` instead.
|
|
12
|
-
*/
|
|
13
|
-
export { LoadingView } from './LoadingView';
|
|
2
|
+
export default ProfilecardInternal;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Use `import { ProfileCardLazy } from '@atlaskit/profilecard/lazy-profile-card'` instead.
|
|
10
|
-
*/
|
|
11
|
-
export { ProfileCardLazy } from './lazyProfileCard';
|
|
12
1
|
import ProfileCardTrigger from './ProfileCardTrigger';
|
|
13
2
|
export default ProfileCardTrigger;
|
|
@@ -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.25.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.25.2") !== 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.25.
|
|
19
|
+
packageVersion: "26.25.2"
|
|
20
20
|
}, attributes), {}, {
|
|
21
21
|
firedAt: Math.round(getPageTime())
|
|
22
22
|
})
|
|
@@ -7,11 +7,3 @@ export default class UserProfileCardClient extends CachingClient<any> {
|
|
|
7
7
|
makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
|
|
8
8
|
getProfile(cloudId: string, userId: string, analytics?: FireEventType): Promise<any>;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `import { modifyResponse } from '@atlaskit/profilecard/modify-response'` instead.
|
|
12
|
-
*/
|
|
13
|
-
export { modifyResponse } from './modifyResponse';
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use `import { buildAggUserQuery } from '@atlaskit/profilecard/build-agg-user-query'` instead.
|
|
16
|
-
*/
|
|
17
|
-
export { buildAggUserQuery } from './buildAggUserQuery';
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
import CachingClient from './CachingClient';
|
|
2
|
-
import { modifyResponse } from './modifyResponse';
|
|
3
1
|
import ProfileCardClient from './ProfileCardClient';
|
|
4
|
-
import TeamProfileClient from './TeamProfileCardClient';
|
|
5
|
-
import UserProfileClient from './UserProfileCardClient';
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `import CachingClient from '@atlaskit/profilecard/caching-client'` instead.
|
|
8
|
-
*/
|
|
9
|
-
export { CachingClient };
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `import { modifyResponse } from '@atlaskit/profilecard/modify-response'` instead.
|
|
12
|
-
*/
|
|
13
|
-
export { modifyResponse };
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use `import TeamProfileClient from '@atlaskit/profilecard/team-profile-card-client'` instead.
|
|
16
|
-
*/
|
|
17
|
-
export { TeamProfileClient };
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use `import UserProfileClient from '@atlaskit/profilecard/user-profile-card-client'` instead.
|
|
20
|
-
*/
|
|
21
|
-
export { UserProfileClient };
|
|
22
2
|
export default ProfileCardClient;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
2
1
|
import TeamProfileCardTrigger from './TeamProfileCardTrigger';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
5
|
-
*/
|
|
6
|
-
export { DELAY_MS_HIDE, DELAY_MS_SHOW };
|
|
7
2
|
export default TeamProfileCardTrigger;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import { ProfilecardInternal } from './ProfilecardInternal';
|
|
2
2
|
export default ProfilecardInternal;
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use `import { ProfilecardInternal } from '@atlaskit/profilecard/profilecard-internal'` instead.
|
|
5
|
-
*/
|
|
6
|
-
export { ProfilecardInternal } from './ProfilecardInternal';
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use `import { LoadingView } from '@atlaskit/profilecard/loading-view'` instead.
|
|
9
|
-
*/
|
|
10
|
-
export { LoadingView } from './LoadingView';
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
3
|
-
*/
|
|
4
|
-
export { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use `import { ProfileCardLazy } from '@atlaskit/profilecard/lazy-profile-card'` instead.
|
|
7
|
-
*/
|
|
8
|
-
export { ProfileCardLazy } from './lazyProfileCard';
|
|
9
1
|
import ProfileCardTrigger from './ProfileCardTrigger';
|
|
10
2
|
export default ProfileCardTrigger;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -449,7 +449,7 @@ export type AgentIdType = {
|
|
|
449
449
|
type: 'agent' | 'identity';
|
|
450
450
|
value: string;
|
|
451
451
|
};
|
|
452
|
-
type AgentPermissionName = 'AGENT_CREATE' | 'AGENT_UPDATE' | 'AGENT_DEACTIVATE';
|
|
452
|
+
type AgentPermissionName = 'AGENT_CREATE' | 'AGENT_DUPLICATE' | 'AGENT_UPDATE' | 'AGENT_DEACTIVATE';
|
|
453
453
|
export type AgentPermissions = {
|
|
454
454
|
permissions: Record<AgentPermissionName, {
|
|
455
455
|
permitted: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.0.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,37 +42,37 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.258.0",
|
|
45
|
-
"@atlaskit/atlassian-context": "^
|
|
46
|
-
"@atlaskit/avatar": "^
|
|
45
|
+
"@atlaskit/atlassian-context": "^2.0.0",
|
|
46
|
+
"@atlaskit/avatar": "^29.0.0",
|
|
47
47
|
"@atlaskit/avatar-group": "^14.3.0",
|
|
48
48
|
"@atlaskit/button": "^25.4.0",
|
|
49
49
|
"@atlaskit/css": "^1.1.0",
|
|
50
50
|
"@atlaskit/dropdown-menu": "^18.3.0",
|
|
51
51
|
"@atlaskit/empty-state": "^12.2.0",
|
|
52
|
-
"@atlaskit/feature-gate-js-client": "^
|
|
53
|
-
"@atlaskit/give-kudos": "^
|
|
54
|
-
"@atlaskit/heading": "^
|
|
55
|
-
"@atlaskit/icon": "^
|
|
56
|
-
"@atlaskit/link": "5.1.
|
|
52
|
+
"@atlaskit/feature-gate-js-client": "^7.0.0",
|
|
53
|
+
"@atlaskit/give-kudos": "^7.0.0",
|
|
54
|
+
"@atlaskit/heading": "^8.0.0",
|
|
55
|
+
"@atlaskit/icon": "^38.0.0",
|
|
56
|
+
"@atlaskit/link": "5.1.6",
|
|
57
57
|
"@atlaskit/lozenge": "^15.4.0",
|
|
58
58
|
"@atlaskit/menu": "^11.0.0",
|
|
59
|
-
"@atlaskit/modal-dialog": "^
|
|
59
|
+
"@atlaskit/modal-dialog": "^17.0.0",
|
|
60
60
|
"@atlaskit/people-teams-ui-public": "^5.2.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
62
62
|
"@atlaskit/popup": "^6.3.0",
|
|
63
63
|
"@atlaskit/primitives": "^22.5.0",
|
|
64
64
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
65
|
-
"@atlaskit/rovo-agent-components": "^
|
|
66
|
-
"@atlaskit/rovo-triggers": "^11.
|
|
65
|
+
"@atlaskit/rovo-agent-components": "^9.0.0",
|
|
66
|
+
"@atlaskit/rovo-triggers": "^11.3.0",
|
|
67
67
|
"@atlaskit/spinner": "^20.4.0",
|
|
68
68
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
69
69
|
"@atlaskit/teams-app-internal-analytics": "^2.4.0",
|
|
70
|
-
"@atlaskit/teams-app-internal-navigation": "^
|
|
70
|
+
"@atlaskit/teams-app-internal-navigation": "^3.0.0",
|
|
71
71
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
72
|
-
"@atlaskit/teams-public": "^
|
|
72
|
+
"@atlaskit/teams-public": "^3.0.0",
|
|
73
73
|
"@atlaskit/theme": "^28.2.0",
|
|
74
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
75
|
-
"@atlaskit/tokens": "^
|
|
74
|
+
"@atlaskit/tmp-editor-statsig": "^205.0.0",
|
|
75
|
+
"@atlaskit/tokens": "^20.0.0",
|
|
76
76
|
"@atlaskit/tooltip": "^24.3.0",
|
|
77
77
|
"@babel/runtime": "^7.0.0",
|
|
78
78
|
"@compiled/react": "^1.0.2",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@af/visual-regression": "workspace:^",
|
|
93
|
-
"@atlaskit/flag": "^
|
|
93
|
+
"@atlaskit/flag": "^19.0.0",
|
|
94
94
|
"@atlaskit/inline-edit": "^16.4.0",
|
|
95
95
|
"@atlaskit/section-message": "^10.2.0",
|
|
96
|
-
"@atlaskit/select": "^
|
|
96
|
+
"@atlaskit/select": "^23.0.0",
|
|
97
97
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
98
98
|
"@atlassian/feature-flags-storybook-utils": "^0.5.0",
|
|
99
99
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
package/dist/cjs/mocks/index.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "getMockProfileClient", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _mockProfileClient.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "getMockTeamClient", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _mockTeamClient.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "profiles", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _profileData.default;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "simpleMockAgentClient", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _simpleMockClients.simpleMockAgentClient;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "simpleMockTeamClient", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _simpleMockClients.simpleMockTeamClient;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "simpleMockUserClient", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function get() {
|
|
40
|
-
return _simpleMockClients.simpleMockUserClient;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "simpleProfileClient", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function get() {
|
|
46
|
-
return _simpleMockClients.simpleProfileClient;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
var _mockProfileClient = _interopRequireDefault(require("./mock-profile-client"));
|
|
50
|
-
var _mockTeamClient = _interopRequireDefault(require("./mock-team-client"));
|
|
51
|
-
var _profileData = _interopRequireDefault(require("./profile-data"));
|
|
52
|
-
var _simpleMockClients = require("./simple-mock-clients");
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use `import getMockProfileClient from '@atlaskit/profilecard/mock-profile-client'` instead.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { default as getMockProfileClient } from './mock-profile-client';
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use `import getMockTeamClient from '@atlaskit/profilecard/mock-team-client'` instead.
|
|
9
|
-
*/
|
|
10
|
-
export { default as getMockTeamClient } from './mock-team-client';
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use `import profiles from '@atlaskit/profilecard/profile-data'` instead.
|
|
13
|
-
*/
|
|
14
|
-
export { default as profiles } from './profile-data';
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use `import { simpleMockTeamClient, simpleMockUserClient, simpleProfileClient, simpleMockAgentClient } from '@atlaskit/profilecard/simple-mock-clients'` instead.
|
|
17
|
-
*/
|
|
18
|
-
export { simpleMockTeamClient, simpleMockUserClient, simpleProfileClient, simpleMockAgentClient } from './simple-mock-clients';
|
package/dist/esm/mocks/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use `import getMockProfileClient from '@atlaskit/profilecard/mock-profile-client'` instead.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { default as getMockProfileClient } from './mock-profile-client';
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use `import getMockTeamClient from '@atlaskit/profilecard/mock-team-client'` instead.
|
|
9
|
-
*/
|
|
10
|
-
export { default as getMockTeamClient } from './mock-team-client';
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use `import profiles from '@atlaskit/profilecard/profile-data'` instead.
|
|
13
|
-
*/
|
|
14
|
-
export { default as profiles } from './profile-data';
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use `import { simpleMockTeamClient, simpleMockUserClient, simpleProfileClient, simpleMockAgentClient } from '@atlaskit/profilecard/simple-mock-clients'` instead.
|
|
17
|
-
*/
|
|
18
|
-
export { simpleMockTeamClient, simpleMockUserClient, simpleProfileClient, simpleMockAgentClient } from './simple-mock-clients';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Use `import getMockProfileClient from '@atlaskit/profilecard/mock-profile-client'` instead.
|
|
3
|
-
*/
|
|
4
|
-
export { default as getMockProfileClient } from './mock-profile-client';
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use `import getMockTeamClient from '@atlaskit/profilecard/mock-team-client'` instead.
|
|
7
|
-
*/
|
|
8
|
-
export { default as getMockTeamClient } from './mock-team-client';
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `import profiles from '@atlaskit/profilecard/profile-data'` instead.
|
|
11
|
-
*/
|
|
12
|
-
export { default as profiles } from './profile-data';
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use `import { simpleMockTeamClient, simpleMockUserClient, simpleProfileClient, simpleMockAgentClient } from '@atlaskit/profilecard/simple-mock-clients'` instead.
|
|
15
|
-
*/
|
|
16
|
-
export { simpleMockTeamClient, simpleMockUserClient, simpleProfileClient, simpleMockAgentClient, } from './simple-mock-clients';
|
package/mocks/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/profilecard/mocks",
|
|
3
|
-
"main": "../dist/cjs/mocks/index.js",
|
|
4
|
-
"module": "../dist/esm/mocks/index.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/mocks/index.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../dist/types/mocks/index.d.ts"
|
|
10
|
-
}
|