@atlaskit/profilecard 26.24.9 → 26.24.11
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 +18 -0
- package/dist/cjs/client/RovoAgentCardClient.js +1 -1
- package/dist/cjs/client/TeamCentralCardClient.js +1 -1
- package/dist/cjs/client/UserProfileCardClient.js +1 -1
- package/dist/cjs/client/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/client/index.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +7 -4
- package/dist/cjs/components/User/ReportingLinesDetails.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/mocks/mock-team-client.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/createEvent.js +1 -1
- package/dist/es2019/client/AGGQuery.js +0 -1
- package/dist/es2019/client/RovoAgentCardClient.js +1 -1
- package/dist/es2019/client/TeamCentralCardClient.js +1 -1
- package/dist/es2019/client/UserProfileCardClient.js +1 -1
- package/dist/es2019/client/addHeaders.js +1 -1
- package/dist/es2019/client/directoryGraphqlQuery.js +0 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/client/index.js +2 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +1 -1
- package/dist/es2019/components/Error/AccessLockSVG.js +1 -0
- package/dist/es2019/components/Error/ErrorIllustration.js +1 -0
- package/dist/es2019/components/Team/TeamProfileCard.js +1 -1
- package/dist/es2019/components/Team/index.js +1 -0
- package/dist/es2019/components/User/ProfileCardTrigger.js +8 -2
- package/dist/es2019/components/User/ReportingLinesDetails.js +1 -1
- package/dist/es2019/components/User/index.js +1 -0
- package/dist/es2019/i18n/index.js +1 -0
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/mocks/index.js +1 -0
- package/dist/es2019/mocks/mock-team-client.js +1 -1
- package/dist/es2019/styled/Error.js +1 -0
- package/dist/es2019/styled/TeamCard.js +1 -0
- package/dist/es2019/styled/TeamTrigger.js +1 -0
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/createEvent.js +1 -1
- package/dist/esm/client/AGGQuery.js +0 -1
- package/dist/esm/client/RovoAgentCardClient.js +1 -1
- package/dist/esm/client/TeamCentralCardClient.js +1 -1
- package/dist/esm/client/UserProfileCardClient.js +1 -1
- package/dist/esm/client/addHeaders.js +1 -1
- package/dist/esm/client/directoryGraphqlQuery.js +0 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/client/index.js +2 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +1 -1
- package/dist/esm/components/Error/AccessLockSVG.js +1 -0
- package/dist/esm/components/Error/ErrorIllustration.js +1 -0
- package/dist/esm/components/Team/TeamProfileCard.js +1 -1
- package/dist/esm/components/Team/index.js +1 -0
- package/dist/esm/components/User/ProfileCardTrigger.js +7 -4
- package/dist/esm/components/User/ReportingLinesDetails.js +1 -1
- package/dist/esm/components/User/index.js +1 -0
- package/dist/esm/i18n/index.js +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/mocks/index.js +1 -0
- package/dist/esm/mocks/mock-team-client.js +1 -1
- package/dist/esm/styled/Error.js +1 -0
- package/dist/esm/styled/TeamCard.js +1 -0
- package/dist/esm/styled/TeamTrigger.js +1 -0
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/createEvent.js +1 -1
- package/dist/types/client/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.24.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`df79b6d67b5e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df79b6d67b5e8) -
|
|
8
|
+
Omit aria-haspopup from the non-interactive hover wrapper under teams_a11y_user_profilecard. Honor
|
|
9
|
+
fullWidthTrigger and ariaHideProfileTrigger independently so full-width child controls can own
|
|
10
|
+
hover-trigger semantics.
|
|
11
|
+
|
|
12
|
+
Handle keyboard activation on keydown when a legacy hover card wraps a child control with
|
|
13
|
+
disabledAriaAttributes, preventing Space from also activating that child's navigation.
|
|
14
|
+
|
|
15
|
+
## 26.24.10
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 26.24.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -18,8 +18,8 @@ var _featureGates = _interopRequireDefault(require("@atlaskit/feature-gate-js-cl
|
|
|
18
18
|
var _analytics = require("../util/analytics");
|
|
19
19
|
var _performance = require("../util/performance");
|
|
20
20
|
var _rovoAgentUtils = require("../util/rovoAgentUtils");
|
|
21
|
-
var _AGGQuery = require("./AGGQuery");
|
|
22
21
|
var _AgentForbiddenError = require("./AgentForbiddenError");
|
|
22
|
+
var _AGGQuery = require("./AGGQuery");
|
|
23
23
|
var _CachingClient2 = _interopRequireDefault(require("./CachingClient"));
|
|
24
24
|
var _getErrorAttributes = require("./getErrorAttributes");
|
|
25
25
|
var _sharedAgentProfileCache = require("./sharedAgentProfileCache");
|
|
@@ -13,8 +13,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
|
-
var _CachingClient2 = _interopRequireDefault(require("./CachingClient"));
|
|
17
16
|
var _buildReportingLinesQuery = require("./buildReportingLinesQuery");
|
|
17
|
+
var _CachingClient2 = _interopRequireDefault(require("./CachingClient"));
|
|
18
18
|
var _directoryGraphqlQuery = require("./directoryGraphqlQuery");
|
|
19
19
|
var _getOrgIdForCloudIdFromAGG = require("./getOrgIdForCloudIdFromAGG");
|
|
20
20
|
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)); }
|
|
@@ -29,8 +29,8 @@ var _analytics = require("../util/analytics");
|
|
|
29
29
|
var _date = require("../util/date");
|
|
30
30
|
var _performance = require("../util/performance");
|
|
31
31
|
var _AGGQuery = require("./AGGQuery");
|
|
32
|
-
var _CachingClient2 = _interopRequireDefault(require("./CachingClient"));
|
|
33
32
|
var _buildAggUserQuery = require("./buildAggUserQuery");
|
|
33
|
+
var _CachingClient2 = _interopRequireDefault(require("./CachingClient"));
|
|
34
34
|
var _getErrorAttributes = require("./getErrorAttributes");
|
|
35
35
|
var _modifyResponse = require("./modifyResponse");
|
|
36
36
|
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; }
|
|
@@ -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.24.
|
|
14
|
+
headers.append('atl-client-version', "26.24.10");
|
|
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.24.
|
|
14
|
+
headers.append('atl-client-version', "26.24.10");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getTeamFromAGG = getTeamFromAGG;
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
-
var _AGGQuery = require("./AGGQuery");
|
|
11
10
|
var _addHeaders = require("./addHeaders");
|
|
11
|
+
var _AGGQuery = require("./AGGQuery");
|
|
12
12
|
var _buildGatewayQuery = require("./buildGatewayQuery");
|
|
13
13
|
var _convertTeam = require("./convertTeam");
|
|
14
14
|
/// <reference types="node" />
|
package/dist/cjs/client/index.js
CHANGED
|
@@ -30,10 +30,10 @@ Object.defineProperty(exports, "modifyResponse", {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
var _CachingClient = _interopRequireDefault(require("./CachingClient"));
|
|
33
|
+
var _modifyResponse = require("./modifyResponse");
|
|
33
34
|
var _ProfileCardClient = _interopRequireDefault(require("./ProfileCardClient"));
|
|
34
35
|
var _TeamProfileCardClient = _interopRequireDefault(require("./TeamProfileCardClient"));
|
|
35
36
|
var _UserProfileCardClient = _interopRequireDefault(require("./UserProfileCardClient"));
|
|
36
|
-
var _modifyResponse = require("./modifyResponse");
|
|
37
37
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
38
38
|
/**
|
|
39
39
|
* @deprecated Use `import CachingClient from '@atlaskit/profilecard/caching-client'` instead.
|
|
@@ -29,8 +29,8 @@ var _teamsLink = require("@atlaskit/teams-app-internal-navigation/teams-link");
|
|
|
29
29
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
30
30
|
var _analytics = require("../../util/analytics");
|
|
31
31
|
var _performance = require("../../util/performance");
|
|
32
|
-
var _ErrorMessage = _interopRequireDefault(require("../Error/ErrorMessage"));
|
|
33
32
|
var _LoadingState = require("../common/LoadingState");
|
|
33
|
+
var _ErrorMessage = _interopRequireDefault(require("../Error/ErrorMessage"));
|
|
34
34
|
var _Actions = require("./Actions");
|
|
35
35
|
var _AgentProfileCardWrapper = require("./AgentProfileCardWrapper");
|
|
36
36
|
var _ConversationStarters = require("./ConversationStarters");
|
|
@@ -12,8 +12,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
|
-
var _avatar = _interopRequireDefault(require("@atlaskit/avatar/avatar"));
|
|
16
15
|
var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group/avatar-group"));
|
|
16
|
+
var _avatar = _interopRequireDefault(require("@atlaskit/avatar/avatar"));
|
|
17
17
|
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
18
18
|
var _button2 = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
19
19
|
var _link = _interopRequireDefault(require("@atlaskit/button/link"));
|
|
@@ -340,16 +340,19 @@ function ProfilecardTriggerNext(_ref2) {
|
|
|
340
340
|
}
|
|
341
341
|
}, [hideProfilecard, propsIsVisible, showProfilecard]);
|
|
342
342
|
var containerListeners = (0, _react.useMemo)(function () {
|
|
343
|
-
return trigger === 'hover' ? {
|
|
343
|
+
return trigger === 'hover' ? _objectSpread({
|
|
344
344
|
onMouseEnter: onMouseEnter,
|
|
345
345
|
onMouseLeave: hideProfilecard,
|
|
346
|
-
onBlur: hideProfilecard
|
|
347
|
-
|
|
346
|
+
onBlur: hideProfilecard
|
|
347
|
+
}, disabledAriaAttributes ? {
|
|
348
|
+
onKeyDown: onKeyPress
|
|
348
349
|
} : {
|
|
350
|
+
onKeyPress: onKeyPress
|
|
351
|
+
}) : {
|
|
349
352
|
onClick: onClick,
|
|
350
353
|
onKeyPress: onKeyPress
|
|
351
354
|
};
|
|
352
|
-
}, [hideProfilecard, onClick, onKeyPress, onMouseEnter, trigger]);
|
|
355
|
+
}, [disabledAriaAttributes, hideProfilecard, onClick, onKeyPress, onMouseEnter, trigger]);
|
|
353
356
|
var filterActions = (0, _react.useCallback)(function () {
|
|
354
357
|
return (0, _filterActions.default)(actions, data);
|
|
355
358
|
}, [actions, data]);
|
|
@@ -11,8 +11,8 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _reactIntl = require("react-intl");
|
|
14
|
-
var _avatar = _interopRequireDefault(require("@atlaskit/avatar/avatar"));
|
|
15
14
|
var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group/avatar-group"));
|
|
15
|
+
var _avatar = _interopRequireDefault(require("@atlaskit/avatar/avatar"));
|
|
16
16
|
var _css = require("@atlaskit/css");
|
|
17
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
18
|
var _messages = _interopRequireDefault(require("../../messages"));
|
package/dist/cjs/index.js
CHANGED
|
@@ -95,16 +95,16 @@ Object.defineProperty(exports, "withOuterListeners", {
|
|
|
95
95
|
return _withOuterListeners.default;
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
+
var _modifyResponse = require("./client/modifyResponse");
|
|
98
99
|
var _ProfileCardClient = _interopRequireDefault(require("./client/ProfileCardClient"));
|
|
99
100
|
var _TeamProfileCardClient = _interopRequireDefault(require("./client/TeamProfileCardClient"));
|
|
100
101
|
var _UserProfileCardClient = _interopRequireDefault(require("./client/UserProfileCardClient"));
|
|
101
|
-
var _modifyResponse = require("./client/modifyResponse");
|
|
102
102
|
var _AgentProfileCard = _interopRequireDefault(require("./components/Agent/AgentProfileCard"));
|
|
103
|
+
var _main = require("./components/team-profile-card/main");
|
|
103
104
|
var _TeamProfileCardTrigger = _interopRequireDefault(require("./components/Team/TeamProfileCardTrigger"));
|
|
104
105
|
var _ProfilecardInternal = require("./components/User/ProfilecardInternal");
|
|
105
106
|
var _ProfileCardResourced = _interopRequireDefault(require("./components/User/ProfileCardResourced"));
|
|
106
107
|
var _ProfileCardTrigger = _interopRequireDefault(require("./components/User/ProfileCardTrigger"));
|
|
107
|
-
var _main = require("./components/team-profile-card/main");
|
|
108
108
|
var _config = require("./util/config");
|
|
109
109
|
var _withOuterListeners = _interopRequireDefault(require("./util/withOuterListeners"));
|
|
110
110
|
var _TeamProfileCard = _interopRequireDefault(require("./components/Team/TeamProfileCard"));
|
|
@@ -10,8 +10,8 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
11
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
var _TeamProfileCardClient = _interopRequireDefault(require("../client/TeamProfileCardClient"));
|
|
14
13
|
var _handleAGGErrors = require("../client/handleAGGErrors");
|
|
14
|
+
var _TeamProfileCardClient = _interopRequireDefault(require("../client/TeamProfileCardClient"));
|
|
15
15
|
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)); }
|
|
16
16
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
17
|
function getMockTeamClient(data) {
|
|
@@ -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.24.
|
|
10
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.24.10") !== 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.24.
|
|
25
|
+
packageVersion: "26.24.10"
|
|
26
26
|
}, attributes), {}, {
|
|
27
27
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
28
28
|
})
|
|
@@ -2,8 +2,8 @@ import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
|
2
2
|
import { PACKAGE_META_DATA } from '../util/analytics';
|
|
3
3
|
import { getPageTime } from '../util/performance';
|
|
4
4
|
import { USER_ARI_PREFIX } from '../util/rovoAgentUtils';
|
|
5
|
-
import { AGGQuery } from './AGGQuery';
|
|
6
5
|
import { AgentForbiddenError } from './AgentForbiddenError';
|
|
6
|
+
import { AGGQuery } from './AGGQuery';
|
|
7
7
|
import CachingClient from './CachingClient';
|
|
8
8
|
import { getErrorAttributes } from './getErrorAttributes';
|
|
9
9
|
import { SHARED_CACHE_MAX_AGE, sharedAgentProfileCache } from './sharedAgentProfileCache';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
|
-
import CachingClient from './CachingClient';
|
|
3
2
|
import { buildReportingLinesQuery } from './buildReportingLinesQuery';
|
|
3
|
+
import CachingClient from './CachingClient';
|
|
4
4
|
import { directoryGraphqlQuery } from './directoryGraphqlQuery';
|
|
5
5
|
import { getOrgIdForCloudIdFromAGG } from './getOrgIdForCloudIdFromAGG';
|
|
6
6
|
const UNSHARDED_PREFIX = '/gateway/api/watermelon';
|
|
@@ -4,8 +4,8 @@ import { PACKAGE_META_DATA } from '../util/analytics';
|
|
|
4
4
|
import { localTime } from '../util/date';
|
|
5
5
|
import { getPageTime } from '../util/performance';
|
|
6
6
|
import { AGGQuery } from './AGGQuery';
|
|
7
|
-
import CachingClient from './CachingClient';
|
|
8
7
|
import { buildAggUserQuery } from './buildAggUserQuery';
|
|
8
|
+
import CachingClient from './CachingClient';
|
|
9
9
|
import { getErrorAttributes } from './getErrorAttributes';
|
|
10
10
|
const buildScopedProfileAtlAttributionHeader = cloudId => JSON.stringify({
|
|
11
11
|
tenantId: `ari:cloud:townsquare::site/${cloudId}`,
|
|
@@ -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.24.
|
|
8
|
+
headers.append('atl-client-version', "26.24.10");
|
|
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.24.
|
|
9
|
+
headers.append('atl-client-version', "26.24.10");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
// for typing `process`
|
|
3
3
|
|
|
4
|
-
import { AGGQuery } from './AGGQuery';
|
|
5
4
|
import { addHeaders } from './addHeaders';
|
|
5
|
+
import { AGGQuery } from './AGGQuery';
|
|
6
6
|
import { buildGatewayQuery } from './buildGatewayQuery';
|
|
7
7
|
import { convertTeam } from './convertTeam';
|
|
8
8
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
import CachingClient from './CachingClient';
|
|
4
|
+
import { modifyResponse } from './modifyResponse';
|
|
3
5
|
import ProfileCardClient from './ProfileCardClient';
|
|
4
6
|
import TeamProfileClient from './TeamProfileCardClient';
|
|
5
7
|
import UserProfileClient from './UserProfileCardClient';
|
|
6
|
-
import { modifyResponse } from './modifyResponse';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @deprecated Use `import CachingClient from '@atlaskit/profilecard/caching-client'` instead.
|
|
@@ -17,8 +17,8 @@ import { TeamsLink } from '@atlaskit/teams-app-internal-navigation/teams-link';
|
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { PACKAGE_META_DATA } from '../../util/analytics';
|
|
19
19
|
import { getPageTime } from '../../util/performance';
|
|
20
|
-
import { default as ErrorMessage } from '../Error/ErrorMessage';
|
|
21
20
|
import { LoadingState } from '../common/LoadingState';
|
|
21
|
+
import { default as ErrorMessage } from '../Error/ErrorMessage';
|
|
22
22
|
import { AgentActions } from './Actions';
|
|
23
23
|
import { AgentProfileCardWrapper } from './AgentProfileCardWrapper';
|
|
24
24
|
import { ConversationStarters } from './ConversationStarters';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
|
-
import Avatar from '@atlaskit/avatar/avatar';
|
|
5
4
|
import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
5
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
6
6
|
import Button from '@atlaskit/button/default/button';
|
|
7
7
|
import IconButton from '@atlaskit/button/icon/button';
|
|
8
8
|
import LinkButton from '@atlaskit/button/link';
|
|
@@ -5,6 +5,7 @@ import TeamProfileCardTrigger from './TeamProfileCardTrigger';
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
7
7
|
*/
|
|
8
|
+
|
|
8
9
|
export { DELAY_MS_HIDE, DELAY_MS_SHOW };
|
|
9
10
|
|
|
10
11
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports
|
|
@@ -277,11 +277,17 @@ export default function ProfilecardTriggerNext({
|
|
|
277
277
|
onMouseEnter: onMouseEnter,
|
|
278
278
|
onMouseLeave: hideProfilecard,
|
|
279
279
|
onBlur: hideProfilecard,
|
|
280
|
-
|
|
280
|
+
// A child button activates Space on keyup. Prevent its keydown default before
|
|
281
|
+
// that click can navigate as well as opening the profile card.
|
|
282
|
+
...(disabledAriaAttributes ? {
|
|
283
|
+
onKeyDown: onKeyPress
|
|
284
|
+
} : {
|
|
285
|
+
onKeyPress
|
|
286
|
+
})
|
|
281
287
|
} : {
|
|
282
288
|
onClick: onClick,
|
|
283
289
|
onKeyPress: onKeyPress
|
|
284
|
-
}, [hideProfilecard, onClick, onKeyPress, onMouseEnter, trigger]);
|
|
290
|
+
}, [disabledAriaAttributes, hideProfilecard, onClick, onKeyPress, onMouseEnter, trigger]);
|
|
285
291
|
const filterActions = useCallback(() => {
|
|
286
292
|
return filterActionsInner(actions, data);
|
|
287
293
|
}, [actions, data]);
|
|
@@ -3,8 +3,8 @@ import "./ReportingLinesDetails.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
|
-
import Avatar from '@atlaskit/avatar/avatar';
|
|
7
6
|
import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
7
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import messages from '../../messages';
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Avoid exporting new components in this file as they will affect the bundle size of all consumers
|
|
2
2
|
// importing directly from @atlaskit/profilecard.
|
|
3
3
|
|
|
4
|
+
import { modifyResponse } from './client/modifyResponse';
|
|
4
5
|
import ProfileCardClient from './client/ProfileCardClient';
|
|
5
6
|
// Note: when generating and updating Flow types in Jira, `TeamProfileClient` and `TeamProfileCardClient` are the same type
|
|
6
7
|
import TeamProfileClient from './client/TeamProfileCardClient';
|
|
7
8
|
// Note: when generating and updating Flow types in Jira, `UserProfileClient` and `UserProfileCardClient` are the same type
|
|
8
9
|
import UserProfileClient from './client/UserProfileCardClient';
|
|
9
|
-
import { modifyResponse } from './client/modifyResponse';
|
|
10
10
|
import AgentProfileCard from './components/Agent/AgentProfileCard';
|
|
11
|
+
import { TeamProfileCard } from './components/team-profile-card/main';
|
|
11
12
|
import TeamProfileCardTrigger from './components/Team/TeamProfileCardTrigger';
|
|
12
13
|
import { ProfilecardInternal as ProfileCard } from './components/User/ProfilecardInternal';
|
|
13
14
|
import ProfileCardResourced from './components/User/ProfileCardResourced';
|
|
14
15
|
import ProfileCardTrigger from './components/User/ProfileCardTrigger';
|
|
15
|
-
import { TeamProfileCard } from './components/team-profile-card/main';
|
|
16
16
|
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from './util/config';
|
|
17
17
|
|
|
18
18
|
// Legacy Profile Card in Jira still needs to use `withOuterListeners`
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated Use `import getMockProfileClient from '@atlaskit/profilecard/mock-profile-client'` instead.
|
|
4
4
|
*/
|
|
5
|
+
|
|
5
6
|
export { default as getMockProfileClient } from './mock-profile-client';
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated Use `import getMockTeamClient from '@atlaskit/profilecard/mock-team-client'` instead.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TeamProfileCardClient from '../client/TeamProfileCardClient';
|
|
2
1
|
import { handleAGGErrors } from '../client/handleAGGErrors';
|
|
2
|
+
import TeamProfileCardClient from '../client/TeamProfileCardClient';
|
|
3
3
|
export default function getMockTeamClient(data) {
|
|
4
4
|
return class MockTeamClient extends TeamProfileCardClient {
|
|
5
5
|
makeRequest(teamId) {
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./Error.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- exports share Compiled style value(s) [styles] which cannot be exported across files (UI Styling Standard: no-exported-css) */
|
|
6
|
+
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { cx } from '@atlaskit/css';
|
|
8
9
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./TeamCard.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- exports share Compiled style value(s) [styles] which cannot be exported across files (UI Styling Standard: no-exported-css) */
|
|
6
|
+
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { cx } from '@atlaskit/css';
|
|
8
9
|
import Heading from '@atlaskit/heading/heading';
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./TeamTrigger.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- exports share Compiled style value(s) [styles] which cannot be exported across files (UI Styling Standard: no-exported-css) */
|
|
6
|
+
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { cx } from '@atlaskit/css';
|
|
8
9
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -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.24.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.24.10") !== 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.24.
|
|
14
|
+
packageVersion: "26.24.10",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: Math.round(getPageTime())
|
|
17
17
|
}
|
|
@@ -3,7 +3,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
3
3
|
import { graphQLQuery } from './graphQLQuery';
|
|
4
4
|
import { handleAGGErrors } from './handleAGGErrors';
|
|
5
5
|
import { id } from './id';
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* @param {string} serviceUrl - GraphQL service endpoint
|
|
9
8
|
* @param {Query} query - GraphQL query
|
|
@@ -15,8 +15,8 @@ import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
|
15
15
|
import { PACKAGE_META_DATA } from '../util/analytics';
|
|
16
16
|
import { getPageTime } from '../util/performance';
|
|
17
17
|
import { USER_ARI_PREFIX } from '../util/rovoAgentUtils';
|
|
18
|
-
import { AGGQuery } from './AGGQuery';
|
|
19
18
|
import { AgentForbiddenError } from './AgentForbiddenError';
|
|
19
|
+
import { AGGQuery } from './AGGQuery';
|
|
20
20
|
import CachingClient from './CachingClient';
|
|
21
21
|
import { getErrorAttributes } from './getErrorAttributes';
|
|
22
22
|
import { SHARED_CACHE_MAX_AGE, sharedAgentProfileCache } from './sharedAgentProfileCache';
|
|
@@ -8,8 +8,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
|
-
import CachingClient from './CachingClient';
|
|
12
11
|
import { buildReportingLinesQuery } from './buildReportingLinesQuery';
|
|
12
|
+
import CachingClient from './CachingClient';
|
|
13
13
|
import { directoryGraphqlQuery } from './directoryGraphqlQuery';
|
|
14
14
|
import { getOrgIdForCloudIdFromAGG } from './getOrgIdForCloudIdFromAGG';
|
|
15
15
|
var UNSHARDED_PREFIX = '/gateway/api/watermelon';
|
|
@@ -16,8 +16,8 @@ import { PACKAGE_META_DATA } from '../util/analytics';
|
|
|
16
16
|
import { localTime } from '../util/date';
|
|
17
17
|
import { getPageTime } from '../util/performance';
|
|
18
18
|
import { AGGQuery } from './AGGQuery';
|
|
19
|
-
import CachingClient from './CachingClient';
|
|
20
19
|
import { buildAggUserQuery } from './buildAggUserQuery';
|
|
20
|
+
import CachingClient from './CachingClient';
|
|
21
21
|
import { getErrorAttributes } from './getErrorAttributes';
|
|
22
22
|
var buildScopedProfileAtlAttributionHeader = function buildScopedProfileAtlAttributionHeader(cloudId) {
|
|
23
23
|
return JSON.stringify({
|
|
@@ -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.24.
|
|
8
|
+
headers.append('atl-client-version', "26.24.10");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -3,7 +3,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
3
3
|
import { graphQLQuery } from './graphQLQuery';
|
|
4
4
|
import { handleDirectoryGraphQLErrors } from './handleDirectoryGraphQLErrors';
|
|
5
5
|
import { id } from './id';
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* @param {string} serviceUrl - GraphQL service endpoint
|
|
9
8
|
* @param {Query} query - GraphQL query
|
|
@@ -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.24.
|
|
7
|
+
headers.append('atl-client-version', "26.24.10");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -3,8 +3,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
// for typing `process`
|
|
5
5
|
|
|
6
|
-
import { AGGQuery } from './AGGQuery';
|
|
7
6
|
import { addHeaders } from './addHeaders';
|
|
7
|
+
import { AGGQuery } from './AGGQuery';
|
|
8
8
|
import { buildGatewayQuery } from './buildGatewayQuery';
|
|
9
9
|
import { convertTeam } from './convertTeam';
|
|
10
10
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
package/dist/esm/client/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
import CachingClient from './CachingClient';
|
|
4
|
+
import { modifyResponse } from './modifyResponse';
|
|
3
5
|
import ProfileCardClient from './ProfileCardClient';
|
|
4
6
|
import TeamProfileClient from './TeamProfileCardClient';
|
|
5
7
|
import UserProfileClient from './UserProfileCardClient';
|
|
6
|
-
import { modifyResponse } from './modifyResponse';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @deprecated Use `import CachingClient from '@atlaskit/profilecard/caching-client'` instead.
|
|
@@ -23,8 +23,8 @@ import { TeamsLink } from '@atlaskit/teams-app-internal-navigation/teams-link';
|
|
|
23
23
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
24
24
|
import { PACKAGE_META_DATA } from '../../util/analytics';
|
|
25
25
|
import { getPageTime } from '../../util/performance';
|
|
26
|
-
import { default as ErrorMessage } from '../Error/ErrorMessage';
|
|
27
26
|
import { LoadingState } from '../common/LoadingState';
|
|
27
|
+
import { default as ErrorMessage } from '../Error/ErrorMessage';
|
|
28
28
|
import { AgentActions } from './Actions';
|
|
29
29
|
import { AgentProfileCardWrapper } from './AgentProfileCardWrapper';
|
|
30
30
|
import { ConversationStarters } from './ConversationStarters';
|
|
@@ -6,8 +6,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
|
-
import Avatar from '@atlaskit/avatar/avatar';
|
|
10
9
|
import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
10
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
11
11
|
import Button from '@atlaskit/button/default/button';
|
|
12
12
|
import IconButton from '@atlaskit/button/icon/button';
|
|
13
13
|
import LinkButton from '@atlaskit/button/link';
|
|
@@ -5,6 +5,7 @@ import TeamProfileCardTrigger from './TeamProfileCardTrigger';
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use `import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '@atlaskit/profilecard/config'` instead.
|
|
7
7
|
*/
|
|
8
|
+
|
|
8
9
|
export { DELAY_MS_HIDE, DELAY_MS_SHOW };
|
|
9
10
|
|
|
10
11
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-re-exports
|
|
@@ -331,16 +331,19 @@ export default function ProfilecardTriggerNext(_ref2) {
|
|
|
331
331
|
}
|
|
332
332
|
}, [hideProfilecard, propsIsVisible, showProfilecard]);
|
|
333
333
|
var containerListeners = useMemo(function () {
|
|
334
|
-
return trigger === 'hover' ? {
|
|
334
|
+
return trigger === 'hover' ? _objectSpread({
|
|
335
335
|
onMouseEnter: onMouseEnter,
|
|
336
336
|
onMouseLeave: hideProfilecard,
|
|
337
|
-
onBlur: hideProfilecard
|
|
338
|
-
|
|
337
|
+
onBlur: hideProfilecard
|
|
338
|
+
}, disabledAriaAttributes ? {
|
|
339
|
+
onKeyDown: onKeyPress
|
|
339
340
|
} : {
|
|
341
|
+
onKeyPress: onKeyPress
|
|
342
|
+
}) : {
|
|
340
343
|
onClick: onClick,
|
|
341
344
|
onKeyPress: onKeyPress
|
|
342
345
|
};
|
|
343
|
-
}, [hideProfilecard, onClick, onKeyPress, onMouseEnter, trigger]);
|
|
346
|
+
}, [disabledAriaAttributes, hideProfilecard, onClick, onKeyPress, onMouseEnter, trigger]);
|
|
344
347
|
var filterActions = useCallback(function () {
|
|
345
348
|
return filterActionsInner(actions, data);
|
|
346
349
|
}, [actions, data]);
|
|
@@ -6,8 +6,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
|
-
import Avatar from '@atlaskit/avatar/avatar';
|
|
10
9
|
import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
10
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
11
11
|
import { cx } from '@atlaskit/css';
|
|
12
12
|
import { Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
13
13
|
import messages from '../../messages';
|
package/dist/esm/i18n/index.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Avoid exporting new components in this file as they will affect the bundle size of all consumers
|
|
2
2
|
// importing directly from @atlaskit/profilecard.
|
|
3
3
|
|
|
4
|
+
import { modifyResponse } from './client/modifyResponse';
|
|
4
5
|
import ProfileCardClient from './client/ProfileCardClient';
|
|
5
6
|
// Note: when generating and updating Flow types in Jira, `TeamProfileClient` and `TeamProfileCardClient` are the same type
|
|
6
7
|
import TeamProfileClient from './client/TeamProfileCardClient';
|
|
7
8
|
// Note: when generating and updating Flow types in Jira, `UserProfileClient` and `UserProfileCardClient` are the same type
|
|
8
9
|
import UserProfileClient from './client/UserProfileCardClient';
|
|
9
|
-
import { modifyResponse } from './client/modifyResponse';
|
|
10
10
|
import AgentProfileCard from './components/Agent/AgentProfileCard';
|
|
11
|
+
import { TeamProfileCard } from './components/team-profile-card/main';
|
|
11
12
|
import TeamProfileCardTrigger from './components/Team/TeamProfileCardTrigger';
|
|
12
13
|
import { ProfilecardInternal as ProfileCard } from './components/User/ProfilecardInternal';
|
|
13
14
|
import ProfileCardResourced from './components/User/ProfileCardResourced';
|
|
14
15
|
import ProfileCardTrigger from './components/User/ProfileCardTrigger';
|
|
15
|
-
import { TeamProfileCard } from './components/team-profile-card/main';
|
|
16
16
|
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from './util/config';
|
|
17
17
|
|
|
18
18
|
// Legacy Profile Card in Jira still needs to use `withOuterListeners`
|
package/dist/esm/mocks/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated Use `import getMockProfileClient from '@atlaskit/profilecard/mock-profile-client'` instead.
|
|
4
4
|
*/
|
|
5
|
+
|
|
5
6
|
export { default as getMockProfileClient } from './mock-profile-client';
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated Use `import getMockTeamClient from '@atlaskit/profilecard/mock-team-client'` instead.
|
|
@@ -5,8 +5,8 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
|
-
import TeamProfileCardClient from '../client/TeamProfileCardClient';
|
|
9
8
|
import { handleAGGErrors } from '../client/handleAGGErrors';
|
|
9
|
+
import TeamProfileCardClient from '../client/TeamProfileCardClient';
|
|
10
10
|
export default function getMockTeamClient(data) {
|
|
11
11
|
return /*#__PURE__*/function (_TeamProfileCardClien) {
|
|
12
12
|
function MockTeamClient() {
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./Error.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- exports share Compiled style value(s) [styles] which cannot be exported across files (UI Styling Standard: no-exported-css) */
|
|
6
|
+
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { cx } from '@atlaskit/css';
|
|
8
9
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./TeamCard.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- exports share Compiled style value(s) [styles] which cannot be exported across files (UI Styling Standard: no-exported-css) */
|
|
6
|
+
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { cx } from '@atlaskit/css';
|
|
8
9
|
import Heading from '@atlaskit/heading/heading';
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./TeamTrigger.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- exports share Compiled style value(s) [styles] which cannot be exported across files (UI Styling Standard: no-exported-css) */
|
|
6
|
+
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { cx } from '@atlaskit/css';
|
|
8
9
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -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.24.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.24.10") !== 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.24.
|
|
19
|
+
packageVersion: "26.24.10"
|
|
20
20
|
}, attributes), {}, {
|
|
21
21
|
firedAt: Math.round(getPageTime())
|
|
22
22
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import CachingClient from './CachingClient';
|
|
2
|
+
import { modifyResponse } from './modifyResponse';
|
|
2
3
|
import ProfileCardClient from './ProfileCardClient';
|
|
3
4
|
import TeamProfileClient from './TeamProfileCardClient';
|
|
4
5
|
import UserProfileClient from './UserProfileCardClient';
|
|
5
|
-
import { modifyResponse } from './modifyResponse';
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use `import CachingClient from '@atlaskit/profilecard/caching-client'` instead.
|
|
8
8
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { modifyResponse } from './client/modifyResponse';
|
|
1
2
|
import ProfileCardClient from './client/ProfileCardClient';
|
|
2
3
|
import TeamProfileClient from './client/TeamProfileCardClient';
|
|
3
4
|
import UserProfileClient from './client/UserProfileCardClient';
|
|
4
|
-
import { modifyResponse } from './client/modifyResponse';
|
|
5
5
|
import AgentProfileCard from './components/Agent/AgentProfileCard';
|
|
6
|
+
import { TeamProfileCard } from './components/team-profile-card/main';
|
|
6
7
|
import TeamProfileCardTrigger from './components/Team/TeamProfileCardTrigger';
|
|
7
8
|
import { ProfilecardInternal as ProfileCard } from './components/User/ProfilecardInternal';
|
|
8
9
|
import ProfileCardResourced from './components/User/ProfileCardResourced';
|
|
9
10
|
import ProfileCardTrigger from './components/User/ProfileCardTrigger';
|
|
10
|
-
import { TeamProfileCard } from './components/team-profile-card/main';
|
|
11
11
|
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from './util/config';
|
|
12
12
|
export { default as withOuterListeners } from './util/withOuterListeners';
|
|
13
13
|
export type { WithOuterListenersProps } from './util/withOuterListeners';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.24.
|
|
3
|
+
"version": "26.24.11",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/atlassian-context": "^1.2.0",
|
|
46
46
|
"@atlaskit/avatar": "^28.0.0",
|
|
47
47
|
"@atlaskit/avatar-group": "^14.3.0",
|
|
48
|
-
"@atlaskit/button": "^25.
|
|
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",
|
|
@@ -62,7 +62,7 @@
|
|
|
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": "^8.
|
|
65
|
+
"@atlaskit/rovo-agent-components": "^8.14.0",
|
|
66
66
|
"@atlaskit/rovo-triggers": "^11.2.0",
|
|
67
67
|
"@atlaskit/spinner": "^20.4.0",
|
|
68
68
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
72
72
|
"@atlaskit/teams-public": "^2.12.0",
|
|
73
73
|
"@atlaskit/theme": "^28.2.0",
|
|
74
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
74
|
+
"@atlaskit/tmp-editor-statsig": "^201.0.0",
|
|
75
75
|
"@atlaskit/tokens": "^18.2.0",
|
|
76
76
|
"@atlaskit/tooltip": "^24.3.0",
|
|
77
77
|
"@babel/runtime": "^7.0.0",
|