@atlaskit/profilecard 26.3.0 → 26.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCard.js +8 -2
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/cjs/util/withOuterListeners.js +5 -12
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCard.js +8 -2
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/es2019/util/withOuterListeners.js +5 -12
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCard.js +8 -2
- package/dist/esm/util/analytics.js +2 -2
- package/dist/esm/util/withOuterListeners.js +5 -12
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cd735de700f7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd735de700f7d) -
|
|
8
|
+
Clean up teams_app_react_19_upgrade
|
|
9
|
+
- [`29c887747740d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/29c887747740d) -
|
|
10
|
+
[ux] Hide conversation for Jira Coding Agent as users won't be able to use it anyway because JCA
|
|
11
|
+
team have not supported it. Rolling out this change under SPRT experiment gate because Jira does
|
|
12
|
+
not allow FG anymore
|
|
13
|
+
|
|
3
14
|
## 26.3.0
|
|
4
15
|
|
|
5
16
|
### Minor 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', "26.
|
|
14
|
+
headers.append('atl-client-version', "26.3.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
66
66
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
67
67
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
68
68
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
69
|
-
headers.append('atl-client-version', "26.
|
|
69
|
+
headers.append('atl-client-version', "26.3.0");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -15,6 +15,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _reactIntl = require("react-intl");
|
|
18
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
18
19
|
var _informationCircle = _interopRequireDefault(require("@atlaskit/icon/core/information-circle"));
|
|
19
20
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -195,8 +196,13 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
195
196
|
// them - once the rename backfill runs, the JCA name becomes 'Jira Coding Agent' and
|
|
196
197
|
// isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
|
|
197
198
|
var isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
|
|
200
|
+
// Currently, both Jira Coding Agent and Rovo Dev does not support conversations and chat.
|
|
201
|
+
// We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
|
|
202
|
+
// They are actually the same, just different names.
|
|
203
|
+
var isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
|
|
204
|
+
var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
205
|
+
var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && (0, _platformFeatureFlags.fg)('issue_view_agent_discovery_fast_follows'));
|
|
200
206
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
201
207
|
xcss: (0, _platformFeatureFlags.fg)('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
202
208
|
}, /*#__PURE__*/_react.default.createElement(_GeneratedAvatar.AgentBanner, {
|
|
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
14
14
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
15
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.3.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
16
16
|
};
|
|
17
17
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
18
18
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "26.
|
|
34
|
+
packageVersion: "26.3.0"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -15,8 +15,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
15
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _react = _interopRequireDefault(require("react"));
|
|
18
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
19
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
21
19
|
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)); }
|
|
22
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -33,12 +31,10 @@ function withOuterListeners(Component) {
|
|
|
33
31
|
}
|
|
34
32
|
_this = _callSuper(this, WithOuterListeners, [].concat(args));
|
|
35
33
|
(0, _defineProperty2.default)(_this, "wrapperRef", /*#__PURE__*/_react.default.createRef());
|
|
36
|
-
(0, _defineProperty2.default)(_this, "useWrapperDiv", (0, _platformFeatureFlags.fg)('teams_app_react_19_upgrade'));
|
|
37
34
|
(0, _defineProperty2.default)(_this, "handleClick", function (evt) {
|
|
38
35
|
var handleClickOutside = _this.props.handleClickOutside;
|
|
39
36
|
if (handleClickOutside) {
|
|
40
|
-
var domNode = _this.
|
|
41
|
-
|
|
37
|
+
var domNode = _this.wrapperRef.current;
|
|
42
38
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
43
39
|
handleClickOutside();
|
|
44
40
|
}
|
|
@@ -76,13 +72,10 @@ function withOuterListeners(Component) {
|
|
|
76
72
|
}, {
|
|
77
73
|
key: "render",
|
|
78
74
|
value: function render() {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}, /*#__PURE__*/_react.default.createElement(Component, this.props));
|
|
84
|
-
}
|
|
85
|
-
return /*#__PURE__*/_react.default.createElement(Component, this.props);
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
76
|
+
ref: this.wrapperRef,
|
|
77
|
+
xcss: styles.displayContents
|
|
78
|
+
}, /*#__PURE__*/_react.default.createElement(Component, this.props));
|
|
86
79
|
}
|
|
87
80
|
}]);
|
|
88
81
|
}(_react.default.PureComponent);
|
|
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
|
|
|
6
6
|
}`;
|
|
7
7
|
const addHeaders = headers => {
|
|
8
8
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
9
|
-
headers.append('atl-client-version', "26.
|
|
9
|
+
headers.append('atl-client-version', "26.3.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
|
|
|
78
78
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
79
79
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
80
80
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
81
|
-
headers.append('atl-client-version', "26.
|
|
81
|
+
headers.append('atl-client-version', "26.3.0");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -3,6 +3,7 @@ import "./AgentProfileCard.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
6
7
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
7
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { Box, Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
@@ -145,8 +146,13 @@ const AgentProfileCard = ({
|
|
|
145
146
|
// them - once the rename backfill runs, the JCA name becomes 'Jira Coding Agent' and
|
|
146
147
|
// isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
|
|
147
148
|
const isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
|
|
150
|
+
// Currently, both Jira Coding Agent and Rovo Dev does not support conversations and chat.
|
|
151
|
+
// We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
|
|
152
|
+
// They are actually the same, just different names.
|
|
153
|
+
const isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
|
|
154
|
+
const shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
155
|
+
const shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
|
|
150
156
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
151
157
|
xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
152
158
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
@@ -2,7 +2,7 @@ var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
|
2
2
|
import { getPageTime } from './performance';
|
|
3
3
|
export const PACKAGE_META_DATA = {
|
|
4
4
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
5
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.3.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
6
6
|
};
|
|
7
7
|
const TEAM_SUBJECT = 'teamProfileCard';
|
|
8
8
|
const USER_SUBJECT = 'profilecard';
|
|
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
19
19
|
actionSubjectId,
|
|
20
20
|
attributes: {
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "26.
|
|
22
|
+
packageVersion: "26.3.0",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -3,8 +3,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import "./withOuterListeners.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import ReactDOM from 'react-dom';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
7
|
const styles = {
|
|
10
8
|
displayContents: "_1e0c1bgi"
|
|
@@ -14,14 +12,12 @@ export default function withOuterListeners(Component) {
|
|
|
14
12
|
constructor(...args) {
|
|
15
13
|
super(...args);
|
|
16
14
|
_defineProperty(this, "wrapperRef", /*#__PURE__*/React.createRef());
|
|
17
|
-
_defineProperty(this, "useWrapperDiv", fg('teams_app_react_19_upgrade'));
|
|
18
15
|
_defineProperty(this, "handleClick", evt => {
|
|
19
16
|
const {
|
|
20
17
|
handleClickOutside
|
|
21
18
|
} = this.props;
|
|
22
19
|
if (handleClickOutside) {
|
|
23
|
-
const domNode = this.
|
|
24
|
-
|
|
20
|
+
const domNode = this.wrapperRef.current;
|
|
25
21
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
26
22
|
handleClickOutside();
|
|
27
23
|
}
|
|
@@ -53,13 +49,10 @@ export default function withOuterListeners(Component) {
|
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
51
|
render() {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, /*#__PURE__*/React.createElement(Component, this.props));
|
|
61
|
-
}
|
|
62
|
-
return /*#__PURE__*/React.createElement(Component, this.props);
|
|
52
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
53
|
+
ref: this.wrapperRef,
|
|
54
|
+
xcss: styles.displayContents
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Component, this.props));
|
|
63
56
|
}
|
|
64
57
|
};
|
|
65
58
|
}
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "26.
|
|
7
|
+
headers.append('atl-client-version', "26.3.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
59
59
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
60
60
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
61
61
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
62
|
-
headers.append('atl-client-version', "26.
|
|
62
|
+
headers.append('atl-client-version', "26.3.0");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -9,6 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
12
13
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
13
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Box, Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
@@ -186,8 +187,13 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
|
|
|
186
187
|
// them - once the rename backfill runs, the JCA name becomes 'Jira Coding Agent' and
|
|
187
188
|
// isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
|
|
188
189
|
var isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
|
|
191
|
+
// Currently, both Jira Coding Agent and Rovo Dev does not support conversations and chat.
|
|
192
|
+
// We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
|
|
193
|
+
// They are actually the same, just different names.
|
|
194
|
+
var isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
|
|
195
|
+
var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(fg('jira_ai_hide_conversation_starters_profilecard') && hideConversationStarters);
|
|
196
|
+
var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(hideAgentActions && fg('issue_view_agent_discovery_fast_follows'));
|
|
191
197
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Box, {
|
|
192
198
|
xcss: fg('enable_teams_t26_design_drop_core_experiences') ? styles.cardContainerStyles : styles.cardContainerStylesDEPRECATED
|
|
193
199
|
}, /*#__PURE__*/React.createElement(AgentBanner, {
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import { getPageTime } from './performance';
|
|
6
6
|
export var PACKAGE_META_DATA = {
|
|
7
7
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
8
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.3.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
9
9
|
};
|
|
10
10
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
11
11
|
var USER_SUBJECT = 'profilecard';
|
|
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
24
24
|
actionSubjectId: actionSubjectId,
|
|
25
25
|
attributes: _objectSpread(_objectSpread({
|
|
26
26
|
packageName: "@atlaskit/profilecard",
|
|
27
|
-
packageVersion: "26.
|
|
27
|
+
packageVersion: "26.3.0"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
|
@@ -10,8 +10,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
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 React from 'react';
|
|
13
|
-
import ReactDOM from 'react-dom';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
16
14
|
var styles = {
|
|
17
15
|
displayContents: "_1e0c1bgi"
|
|
@@ -26,12 +24,10 @@ export default function withOuterListeners(Component) {
|
|
|
26
24
|
}
|
|
27
25
|
_this = _callSuper(this, WithOuterListeners, [].concat(args));
|
|
28
26
|
_defineProperty(_this, "wrapperRef", /*#__PURE__*/React.createRef());
|
|
29
|
-
_defineProperty(_this, "useWrapperDiv", fg('teams_app_react_19_upgrade'));
|
|
30
27
|
_defineProperty(_this, "handleClick", function (evt) {
|
|
31
28
|
var handleClickOutside = _this.props.handleClickOutside;
|
|
32
29
|
if (handleClickOutside) {
|
|
33
|
-
var domNode = _this.
|
|
34
|
-
|
|
30
|
+
var domNode = _this.wrapperRef.current;
|
|
35
31
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
36
32
|
handleClickOutside();
|
|
37
33
|
}
|
|
@@ -69,13 +65,10 @@ export default function withOuterListeners(Component) {
|
|
|
69
65
|
}, {
|
|
70
66
|
key: "render",
|
|
71
67
|
value: function render() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}, /*#__PURE__*/React.createElement(Component, this.props));
|
|
77
|
-
}
|
|
78
|
-
return /*#__PURE__*/React.createElement(Component, this.props);
|
|
68
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
69
|
+
ref: this.wrapperRef,
|
|
70
|
+
xcss: styles.displayContents
|
|
71
|
+
}, /*#__PURE__*/React.createElement(Component, this.props));
|
|
79
72
|
}
|
|
80
73
|
}]);
|
|
81
74
|
}(React.PureComponent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.3.
|
|
3
|
+
"version": "26.3.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -176,9 +176,6 @@
|
|
|
176
176
|
"update_profile_card_to_open_on_mouse_over": {
|
|
177
177
|
"type": "boolean"
|
|
178
178
|
},
|
|
179
|
-
"teams_app_react_19_upgrade": {
|
|
180
|
-
"type": "boolean"
|
|
181
|
-
},
|
|
182
179
|
"fix_give_kudos_btn_incorrect_role": {
|
|
183
180
|
"type": "boolean"
|
|
184
181
|
},
|