@atlaskit/profilecard 24.9.2 → 24.10.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 +19 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCardTrigger.js +3 -2
- package/dist/cjs/components/common/ProfileCardTrigger.js +7 -1
- package/dist/cjs/components/team-profile-card/main.compiled.css +1 -1
- package/dist/cjs/components/team-profile-card/main.js +1 -1
- package/dist/cjs/components/team-profile-card/team-connections/main.compiled.css +1 -1
- package/dist/cjs/components/team-profile-card/team-connections/main.js +1 -1
- package/dist/cjs/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +1 -1
- package/dist/cjs/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +3 -3
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCardTrigger.js +5 -4
- package/dist/es2019/components/common/ProfileCardTrigger.js +7 -3
- package/dist/es2019/components/team-profile-card/main.compiled.css +1 -1
- package/dist/es2019/components/team-profile-card/main.js +1 -1
- package/dist/es2019/components/team-profile-card/team-connections/main.compiled.css +1 -1
- package/dist/es2019/components/team-profile-card/team-connections/main.js +1 -1
- package/dist/es2019/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +1 -1
- package/dist/es2019/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +3 -3
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCardTrigger.js +4 -3
- package/dist/esm/components/common/ProfileCardTrigger.js +8 -2
- package/dist/esm/components/team-profile-card/main.compiled.css +1 -1
- package/dist/esm/components/team-profile-card/main.js +1 -1
- package/dist/esm/components/team-profile-card/team-connections/main.compiled.css +1 -1
- package/dist/esm/components/team-profile-card/team-connections/main.js +1 -1
- package/dist/esm/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +1 -1
- package/dist/esm/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +3 -3
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/Agent/AgentProfileCardTrigger.d.ts +2 -1
- package/dist/types/components/common/ProfileCardTrigger.d.ts +6 -1
- package/dist/types-ts4.5/components/Agent/AgentProfileCardTrigger.d.ts +2 -1
- package/dist/types-ts4.5/components/common/ProfileCardTrigger.d.ts +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 24.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c002dc5d4d6c0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c002dc5d4d6c0) -
|
|
8
|
+
[ux] Agent profile card dismisses when user clicks a chat prompt
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 24.9.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`806cfe1c4e6b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/806cfe1c4e6b7) -
|
|
19
|
+
Internal changes to how border radius is applied.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 24.9.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "
|
|
14
|
+
headers.append('atl-client-version', "24.9.3");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -65,7 +65,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
65
65
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
66
66
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
67
67
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
68
|
-
headers.append('atl-client-version', "
|
|
68
|
+
headers.append('atl-client-version', "24.9.3");
|
|
69
69
|
return headers;
|
|
70
70
|
};
|
|
71
71
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -23,7 +23,7 @@ var _excluded = ["trigger", "viewingUserId", "product", "hideOverflow"];
|
|
|
23
23
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
24
24
|
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; }
|
|
25
25
|
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; }
|
|
26
|
-
var AgentProfileCardTrigger = exports.AgentProfileCardTrigger = function
|
|
26
|
+
var AgentProfileCardTrigger = exports.AgentProfileCardTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
27
27
|
var _ref$trigger = _ref.trigger,
|
|
28
28
|
trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
|
|
29
29
|
viewingUserId = _ref.viewingUserId,
|
|
@@ -159,6 +159,7 @@ var AgentProfileCardTrigger = exports.AgentProfileCardTrigger = function AgentPr
|
|
|
159
159
|
}));
|
|
160
160
|
};
|
|
161
161
|
return /*#__PURE__*/_react.default.createElement(_ProfileCardTrigger.default, (0, _extends2.default)({}, props, {
|
|
162
|
+
ref: ref,
|
|
162
163
|
trigger: "hover",
|
|
163
164
|
renderProfileCard: renderProfileCard,
|
|
164
165
|
fetchProfile: fetchAgentProfile,
|
|
@@ -166,4 +167,4 @@ var AgentProfileCardTrigger = exports.AgentProfileCardTrigger = function AgentPr
|
|
|
166
167
|
profileCardType: "agent",
|
|
167
168
|
hideOverflow: hideOverflow
|
|
168
169
|
}));
|
|
169
|
-
};
|
|
170
|
+
});
|
|
@@ -31,7 +31,7 @@ var styles = {
|
|
|
31
31
|
};
|
|
32
32
|
var DELAY_MS_SHOW = 800;
|
|
33
33
|
var DELAY_MS_HIDE = 200;
|
|
34
|
-
function
|
|
34
|
+
function ProfileCardTriggerInner(_ref, ref) {
|
|
35
35
|
var _popupProps$autoFocus;
|
|
36
36
|
var _trigger = _ref.trigger,
|
|
37
37
|
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
@@ -71,6 +71,11 @@ function ProfileCardTrigger(_ref) {
|
|
|
71
71
|
setVisible(false);
|
|
72
72
|
}, hideDelay);
|
|
73
73
|
}, [hideDelay]);
|
|
74
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
75
|
+
return {
|
|
76
|
+
hideProfilecard: hideProfilecard
|
|
77
|
+
};
|
|
78
|
+
}, [hideProfilecard]);
|
|
74
79
|
var showProfilecard = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
75
80
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
76
81
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -140,4 +145,5 @@ function ProfileCardTrigger(_ref) {
|
|
|
140
145
|
}
|
|
141
146
|
}));
|
|
142
147
|
}
|
|
148
|
+
var ProfileCardTrigger = /*#__PURE__*/(0, _react.forwardRef)(ProfileCardTriggerInner);
|
|
143
149
|
var _default = exports.default = ProfileCardTrigger;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
3
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
|
-
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
4
4
|
._v564nm7n{transition:box-shadow .25s ease-in-out}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
6
|
._1dqonqa1{border-style:solid}
|
|
@@ -43,7 +43,7 @@ var styles = {
|
|
|
43
43
|
connectionTitleStyles: "_11c81vhk _18u0pxbi _19pk1b66 _2hwxpxbi _otyr12x7 _syaz1gjq",
|
|
44
44
|
teamAppTileStyles: "_18u01wug _4t3i7vkz _1bsb7vkz",
|
|
45
45
|
viewProfileContainerStyles: "_4cvr1h6o _uwhke4h9 _15a5nqa1 _1i53muej _19bv1ejb _u5f31ejb",
|
|
46
|
-
viewProfileButtonStyles: "
|
|
46
|
+
viewProfileButtonStyles: "_2rko12b0 _189ee4h9 _1dqonqa1 _1h6dmuej _bfhksm61 _syaz1gjq _1bsb1osq _4t3i1ul9 _19pkpxbi"
|
|
47
47
|
};
|
|
48
48
|
var TeamCardWrapper = function TeamCardWrapper(_ref) {
|
|
49
49
|
var id = _ref.id,
|
|
@@ -21,7 +21,7 @@ var _analytics = require("../../../util/analytics");
|
|
|
21
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
22
22
|
var styles = {
|
|
23
23
|
containerWrapperStyles: "_1e0c1txw _4cvr1h6o",
|
|
24
|
-
containerIconStyles: "
|
|
24
|
+
containerIconStyles: "_2rko12b0 _4t3i1tcg _1bsb1tcg",
|
|
25
25
|
containerTypeIconButtonStyles: "_18u01wug _4t3i7vkz _1bsb7vkz"
|
|
26
26
|
};
|
|
27
27
|
var TeamConnections = exports.TeamConnections = function TeamConnections(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
3
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
3
|
-
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
4
4
|
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}
|
|
5
5
|
._1rjc1b66{padding-block:var(--ds-space-050,4px)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
6
6
|
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
@@ -11,11 +11,11 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
13
|
var styles = {
|
|
14
|
-
containerWrapperSkeleton: "
|
|
15
|
-
containerIconSkeleton: "
|
|
14
|
+
containerWrapperSkeleton: "_2rko12b0 _1h6dz9xs _12y3e4h9 _12jimuej _1qu2nqa1 _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc",
|
|
15
|
+
containerIconSkeleton: "_2rko12b0 _4t3i1tcg _1bsb1tcg _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc",
|
|
16
16
|
firstLineSkeleton: "_2rko1rr0 _1rjc1b66",
|
|
17
17
|
secondLineSkeleton: "_2rko1rr0 _1rjc1b66 _1bsbqkoa",
|
|
18
|
-
containerTypeIconSkeleton: "
|
|
18
|
+
containerTypeIconSkeleton: "_2rko12b0 _4t3i7vkz _1bsb7vkz _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"
|
|
19
19
|
};
|
|
20
20
|
var LinkedContainerCardSkeleton = exports.LinkedContainerCardSkeleton = function LinkedContainerCardSkeleton() {
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
45
45
|
actionSubjectId: actionSubjectId,
|
|
46
46
|
attributes: _objectSpread(_objectSpread({
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "
|
|
48
|
+
packageVersion: "24.9.3"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -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', "
|
|
9
|
+
headers.append('atl-client-version', "24.9.3");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -74,7 +74,7 @@ export const addHeaders = headers => {
|
|
|
74
74
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
75
75
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
76
76
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
77
|
-
headers.append('atl-client-version', "
|
|
77
|
+
headers.append('atl-client-version', "24.9.3");
|
|
78
78
|
return headers;
|
|
79
79
|
};
|
|
80
80
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React, { Suspense, useCallback } from 'react';
|
|
2
|
+
import React, { forwardRef, Suspense, useCallback } from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
5
|
import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
|
|
@@ -7,13 +7,13 @@ import { fireEvent } from '../../util/analytics';
|
|
|
7
7
|
import { getAAIDFromARI } from '../../util/rovoAgentUtils';
|
|
8
8
|
import ProfileCardTrigger from '../common/ProfileCardTrigger';
|
|
9
9
|
import { AgentProfileCardLazy } from './lazyAgentProfileCard';
|
|
10
|
-
export const AgentProfileCardTrigger = ({
|
|
10
|
+
export const AgentProfileCardTrigger = /*#__PURE__*/forwardRef(({
|
|
11
11
|
trigger = 'hover',
|
|
12
12
|
viewingUserId,
|
|
13
13
|
product,
|
|
14
14
|
hideOverflow,
|
|
15
15
|
...props
|
|
16
|
-
}) => {
|
|
16
|
+
}, ref) => {
|
|
17
17
|
const {
|
|
18
18
|
resourceClient,
|
|
19
19
|
agentId: userId,
|
|
@@ -105,6 +105,7 @@ export const AgentProfileCardTrigger = ({
|
|
|
105
105
|
}));
|
|
106
106
|
};
|
|
107
107
|
return /*#__PURE__*/React.createElement(ProfileCardTrigger, _extends({}, props, {
|
|
108
|
+
ref: ref,
|
|
108
109
|
trigger: "hover",
|
|
109
110
|
renderProfileCard: renderProfileCard,
|
|
110
111
|
fetchProfile: fetchAgentProfile,
|
|
@@ -112,4 +113,4 @@ export const AgentProfileCardTrigger = ({
|
|
|
112
113
|
profileCardType: "agent",
|
|
113
114
|
hideOverflow: hideOverflow
|
|
114
115
|
}));
|
|
115
|
-
};
|
|
116
|
+
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ProfileCardTrigger.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
5
|
+
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
6
6
|
import Popup from '@atlaskit/popup';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -16,7 +16,7 @@ const styles = {
|
|
|
16
16
|
};
|
|
17
17
|
const DELAY_MS_SHOW = 800;
|
|
18
18
|
const DELAY_MS_HIDE = 200;
|
|
19
|
-
function
|
|
19
|
+
function ProfileCardTriggerInner({
|
|
20
20
|
trigger,
|
|
21
21
|
ariaLabelledBy,
|
|
22
22
|
children,
|
|
@@ -27,7 +27,7 @@ function ProfileCardTrigger({
|
|
|
27
27
|
fireAnalytics,
|
|
28
28
|
hideOverflow,
|
|
29
29
|
...popupProps
|
|
30
|
-
}) {
|
|
30
|
+
}, ref) {
|
|
31
31
|
var _popupProps$autoFocus;
|
|
32
32
|
const showDelay = trigger === 'click' ? 0 : DELAY_MS_SHOW;
|
|
33
33
|
const hideDelay = trigger === 'click' ? 0 : DELAY_MS_HIDE;
|
|
@@ -55,6 +55,9 @@ function ProfileCardTrigger({
|
|
|
55
55
|
setVisible(false);
|
|
56
56
|
}, hideDelay);
|
|
57
57
|
}, [hideDelay]);
|
|
58
|
+
useImperativeHandle(ref, () => ({
|
|
59
|
+
hideProfilecard
|
|
60
|
+
}), [hideProfilecard]);
|
|
58
61
|
const showProfilecard = useCallback(async () => {
|
|
59
62
|
clearTimeout(hideTimer.current);
|
|
60
63
|
clearTimeout(showTimer.current);
|
|
@@ -115,4 +118,5 @@ function ProfileCardTrigger({
|
|
|
115
118
|
}))
|
|
116
119
|
}));
|
|
117
120
|
}
|
|
121
|
+
const ProfileCardTrigger = /*#__PURE__*/forwardRef(ProfileCardTriggerInner);
|
|
118
122
|
export default ProfileCardTrigger;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
3
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
|
-
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
4
4
|
._v564nm7n{transition:box-shadow .25s ease-in-out}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
6
|
._1dqonqa1{border-style:solid}
|
|
@@ -32,7 +32,7 @@ const styles = {
|
|
|
32
32
|
connectionTitleStyles: "_11c81vhk _18u0pxbi _19pk1b66 _2hwxpxbi _otyr12x7 _syaz1gjq",
|
|
33
33
|
teamAppTileStyles: "_18u01wug _4t3i7vkz _1bsb7vkz",
|
|
34
34
|
viewProfileContainerStyles: "_4cvr1h6o _uwhke4h9 _15a5nqa1 _1i53muej _19bv1ejb _u5f31ejb",
|
|
35
|
-
viewProfileButtonStyles: "
|
|
35
|
+
viewProfileButtonStyles: "_2rko12b0 _189ee4h9 _1dqonqa1 _1h6dmuej _bfhksm61 _syaz1gjq _1bsb1osq _4t3i1ul9 _19pkpxbi"
|
|
36
36
|
};
|
|
37
37
|
const TeamCardWrapper = ({
|
|
38
38
|
id,
|
|
@@ -12,7 +12,7 @@ import { ContainerIcon, getContainerProperties } from '@atlaskit/teams-public';
|
|
|
12
12
|
import { fireEvent } from '../../../util/analytics';
|
|
13
13
|
const styles = {
|
|
14
14
|
containerWrapperStyles: "_1e0c1txw _4cvr1h6o",
|
|
15
|
-
containerIconStyles: "
|
|
15
|
+
containerIconStyles: "_2rko12b0 _4t3i1tcg _1bsb1tcg",
|
|
16
16
|
containerTypeIconButtonStyles: "_18u01wug _4t3i7vkz _1bsb7vkz"
|
|
17
17
|
};
|
|
18
18
|
export const TeamConnections = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
3
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
3
|
-
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
4
4
|
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}
|
|
5
5
|
._1rjc1b66{padding-block:var(--ds-space-050,4px)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
6
6
|
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
@@ -4,11 +4,11 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
6
6
|
const styles = {
|
|
7
|
-
containerWrapperSkeleton: "
|
|
8
|
-
containerIconSkeleton: "
|
|
7
|
+
containerWrapperSkeleton: "_2rko12b0 _1h6dz9xs _12y3e4h9 _12jimuej _1qu2nqa1 _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc",
|
|
8
|
+
containerIconSkeleton: "_2rko12b0 _4t3i1tcg _1bsb1tcg _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc",
|
|
9
9
|
firstLineSkeleton: "_2rko1rr0 _1rjc1b66",
|
|
10
10
|
secondLineSkeleton: "_2rko1rr0 _1rjc1b66 _1bsbqkoa",
|
|
11
|
-
containerTypeIconSkeleton: "
|
|
11
|
+
containerTypeIconSkeleton: "_2rko12b0 _4t3i7vkz _1bsb7vkz _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"
|
|
12
12
|
};
|
|
13
13
|
export const LinkedContainerCardSkeleton = () => {
|
|
14
14
|
return /*#__PURE__*/React.createElement(Inline, {
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "
|
|
35
|
+
packageVersion: "24.9.3",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "
|
|
7
|
+
headers.append('atl-client-version', "24.9.3");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -56,7 +56,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
56
56
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
57
57
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
58
58
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
59
|
-
headers.append('atl-client-version', "
|
|
59
|
+
headers.append('atl-client-version', "24.9.3");
|
|
60
60
|
return headers;
|
|
61
61
|
};
|
|
62
62
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -6,7 +6,7 @@ var _excluded = ["trigger", "viewingUserId", "product", "hideOverflow"];
|
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
|
-
import React, { Suspense, useCallback } from 'react';
|
|
9
|
+
import React, { forwardRef, Suspense, useCallback } from 'react';
|
|
10
10
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
|
|
@@ -14,7 +14,7 @@ import { fireEvent } from '../../util/analytics';
|
|
|
14
14
|
import { getAAIDFromARI } from '../../util/rovoAgentUtils';
|
|
15
15
|
import ProfileCardTrigger from '../common/ProfileCardTrigger';
|
|
16
16
|
import { AgentProfileCardLazy } from './lazyAgentProfileCard';
|
|
17
|
-
export var AgentProfileCardTrigger = function
|
|
17
|
+
export var AgentProfileCardTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
18
18
|
var _ref$trigger = _ref.trigger,
|
|
19
19
|
trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
|
|
20
20
|
viewingUserId = _ref.viewingUserId,
|
|
@@ -150,6 +150,7 @@ export var AgentProfileCardTrigger = function AgentProfileCardTrigger(_ref) {
|
|
|
150
150
|
}));
|
|
151
151
|
};
|
|
152
152
|
return /*#__PURE__*/React.createElement(ProfileCardTrigger, _extends({}, props, {
|
|
153
|
+
ref: ref,
|
|
153
154
|
trigger: "hover",
|
|
154
155
|
renderProfileCard: renderProfileCard,
|
|
155
156
|
fetchProfile: fetchAgentProfile,
|
|
@@ -157,4 +158,4 @@ export var AgentProfileCardTrigger = function AgentProfileCardTrigger(_ref) {
|
|
|
157
158
|
profileCardType: "agent",
|
|
158
159
|
hideOverflow: hideOverflow
|
|
159
160
|
}));
|
|
160
|
-
};
|
|
161
|
+
});
|
|
@@ -8,7 +8,7 @@ var _excluded = ["trigger", "ariaLabelledBy", "children", "renderProfileCard", "
|
|
|
8
8
|
import "./ProfileCardTrigger.compiled.css";
|
|
9
9
|
import { ax, ix } from "@compiled/react/runtime";
|
|
10
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
|
-
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
11
|
+
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
12
12
|
import Popup from '@atlaskit/popup';
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -22,7 +22,7 @@ var styles = {
|
|
|
22
22
|
};
|
|
23
23
|
var DELAY_MS_SHOW = 800;
|
|
24
24
|
var DELAY_MS_HIDE = 200;
|
|
25
|
-
function
|
|
25
|
+
function ProfileCardTriggerInner(_ref, ref) {
|
|
26
26
|
var _popupProps$autoFocus;
|
|
27
27
|
var _trigger = _ref.trigger,
|
|
28
28
|
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
@@ -62,6 +62,11 @@ function ProfileCardTrigger(_ref) {
|
|
|
62
62
|
setVisible(false);
|
|
63
63
|
}, hideDelay);
|
|
64
64
|
}, [hideDelay]);
|
|
65
|
+
useImperativeHandle(ref, function () {
|
|
66
|
+
return {
|
|
67
|
+
hideProfilecard: hideProfilecard
|
|
68
|
+
};
|
|
69
|
+
}, [hideProfilecard]);
|
|
65
70
|
var showProfilecard = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
66
71
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
67
72
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -131,4 +136,5 @@ function ProfileCardTrigger(_ref) {
|
|
|
131
136
|
}
|
|
132
137
|
}));
|
|
133
138
|
}
|
|
139
|
+
var ProfileCardTrigger = /*#__PURE__*/forwardRef(ProfileCardTriggerInner);
|
|
134
140
|
export default ProfileCardTrigger;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._11c81vhk{font:var(--ds-font-heading-xxsmall,normal 600 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
3
|
._2rko1mok{border-radius:var(--ds-radius-large,8px)}
|
|
3
|
-
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
4
4
|
._v564nm7n{transition:box-shadow .25s ease-in-out}
|
|
5
5
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
6
6
|
._1dqonqa1{border-style:solid}
|
|
@@ -34,7 +34,7 @@ var styles = {
|
|
|
34
34
|
connectionTitleStyles: "_11c81vhk _18u0pxbi _19pk1b66 _2hwxpxbi _otyr12x7 _syaz1gjq",
|
|
35
35
|
teamAppTileStyles: "_18u01wug _4t3i7vkz _1bsb7vkz",
|
|
36
36
|
viewProfileContainerStyles: "_4cvr1h6o _uwhke4h9 _15a5nqa1 _1i53muej _19bv1ejb _u5f31ejb",
|
|
37
|
-
viewProfileButtonStyles: "
|
|
37
|
+
viewProfileButtonStyles: "_2rko12b0 _189ee4h9 _1dqonqa1 _1h6dmuej _bfhksm61 _syaz1gjq _1bsb1osq _4t3i1ul9 _19pkpxbi"
|
|
38
38
|
};
|
|
39
39
|
var TeamCardWrapper = function TeamCardWrapper(_ref) {
|
|
40
40
|
var id = _ref.id,
|
|
@@ -12,7 +12,7 @@ import { ContainerIcon, getContainerProperties } from '@atlaskit/teams-public';
|
|
|
12
12
|
import { fireEvent } from '../../../util/analytics';
|
|
13
13
|
var styles = {
|
|
14
14
|
containerWrapperStyles: "_1e0c1txw _4cvr1h6o",
|
|
15
|
-
containerIconStyles: "
|
|
15
|
+
containerIconStyles: "_2rko12b0 _4t3i1tcg _1bsb1tcg",
|
|
16
16
|
containerTypeIconButtonStyles: "_18u01wug _4t3i7vkz _1bsb7vkz"
|
|
17
17
|
};
|
|
18
18
|
export var TeamConnections = function TeamConnections(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
3
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
3
|
-
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
4
4
|
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}
|
|
5
5
|
._1rjc1b66{padding-block:var(--ds-space-050,4px)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
6
6
|
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
@@ -4,11 +4,11 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
6
6
|
var styles = {
|
|
7
|
-
containerWrapperSkeleton: "
|
|
8
|
-
containerIconSkeleton: "
|
|
7
|
+
containerWrapperSkeleton: "_2rko12b0 _1h6dz9xs _12y3e4h9 _12jimuej _1qu2nqa1 _syaz1fxt _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc",
|
|
8
|
+
containerIconSkeleton: "_2rko12b0 _4t3i1tcg _1bsb1tcg _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc",
|
|
9
9
|
firstLineSkeleton: "_2rko1rr0 _1rjc1b66",
|
|
10
10
|
secondLineSkeleton: "_2rko1rr0 _1rjc1b66 _1bsbqkoa",
|
|
11
|
-
containerTypeIconSkeleton: "
|
|
11
|
+
containerTypeIconSkeleton: "_2rko12b0 _4t3i7vkz _1bsb7vkz _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"
|
|
12
12
|
};
|
|
13
13
|
export var LinkedContainerCardSkeleton = function LinkedContainerCardSkeleton() {
|
|
14
14
|
return /*#__PURE__*/React.createElement(Inline, {
|
|
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
39
39
|
actionSubjectId: actionSubjectId,
|
|
40
40
|
attributes: _objectSpread(_objectSpread({
|
|
41
41
|
packageName: "@atlaskit/profilecard",
|
|
42
|
-
packageVersion: "
|
|
42
|
+
packageVersion: "24.9.3"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AgentProfileCardTriggerProps } from '../../types';
|
|
3
|
-
|
|
3
|
+
import { type ProfileCardHandle } from '../common/ProfileCardTrigger';
|
|
4
|
+
export declare const AgentProfileCardTrigger: React.ForwardRefExoticComponent<AgentProfileCardTriggerProps & React.RefAttributes<ProfileCardHandle>>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ProfileCardTriggerProps } from './types';
|
|
3
|
-
|
|
3
|
+
export interface ProfileCardHandle {
|
|
4
|
+
hideProfilecard: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ProfileCardTrigger: <T>(props: ProfileCardTriggerProps<T> & {
|
|
7
|
+
ref?: React.Ref<ProfileCardHandle>;
|
|
8
|
+
}) => React.ReactElement;
|
|
4
9
|
export default ProfileCardTrigger;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AgentProfileCardTriggerProps } from '../../types';
|
|
3
|
-
|
|
3
|
+
import { type ProfileCardHandle } from '../common/ProfileCardTrigger';
|
|
4
|
+
export declare const AgentProfileCardTrigger: React.ForwardRefExoticComponent<AgentProfileCardTriggerProps & React.RefAttributes<ProfileCardHandle>>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ProfileCardTriggerProps } from './types';
|
|
3
|
-
|
|
3
|
+
export interface ProfileCardHandle {
|
|
4
|
+
hideProfilecard: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ProfileCardTrigger: <T>(props: ProfileCardTriggerProps<T> & {
|
|
7
|
+
ref?: React.Ref<ProfileCardHandle>;
|
|
8
|
+
}) => React.ReactElement;
|
|
4
9
|
export default ProfileCardTrigger;
|