@atlaskit/profilecard 26.9.1 → 26.9.3
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 +23 -0
- package/dist/cjs/client/ProfileCardClient.js +5 -4
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Agent/AgentProfileCardResourced.js +20 -3
- package/dist/cjs/components/Agent/hooks/useAgentActions.js +3 -3
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/es2019/client/ProfileCardClient.js +2 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Agent/AgentProfileCardResourced.js +20 -3
- package/dist/es2019/components/Agent/hooks/useAgentActions.js +1 -1
- package/dist/es2019/util/analytics.js +2 -2
- package/dist/esm/client/ProfileCardClient.js +2 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Agent/AgentProfileCardResourced.js +20 -3
- package/dist/esm/components/Agent/hooks/useAgentActions.js +1 -1
- package/dist/esm/util/analytics.js +2 -2
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c3f50de124fc9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c3f50de124fc9) -
|
|
8
|
+
Refactored reduced profile card object
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 26.9.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`b1cf9e336f0f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1cf9e336f0f0) -
|
|
16
|
+
Migrate consumers of @atlaskit/atlassian-context from barrel imports to direct subpath imports,
|
|
17
|
+
and remove the deprecated `./domain-lookup`, `./generalized-domain-lookup`, and `./perimeter`
|
|
18
|
+
entry-point exports (all symbols remain available via their per-export subpaths).
|
|
19
|
+
|
|
20
|
+
Also extends the `no-restricted-fedramp-imports` ESLint rule to cover the new
|
|
21
|
+
`@atlaskit/atlassian-context/is-fedramp` and `@atlaskit/atlassian-context/is-isolated-cloud`
|
|
22
|
+
subpaths, so the FedRamp/IsolatedCloud deprecation guardrail keeps firing after the migration.
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 26.9.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -10,7 +10,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
12
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
var
|
|
13
|
+
var _getAtlContextUrl = require("@atlaskit/atlassian-context/get-atl-context-url");
|
|
14
|
+
var _isFedramp = require("@atlaskit/atlassian-context/is-fedramp");
|
|
14
15
|
var _RovoAgentCardClient = _interopRequireDefault(require("./RovoAgentCardClient"));
|
|
15
16
|
var _TeamCentralCardClient = _interopRequireDefault(require("./TeamCentralCardClient"));
|
|
16
17
|
var _TeamProfileCardClient = _interopRequireDefault(require("./TeamProfileCardClient"));
|
|
@@ -83,7 +84,7 @@ var ProfileCardClient = /*#__PURE__*/function () {
|
|
|
83
84
|
_context.next = 3;
|
|
84
85
|
break;
|
|
85
86
|
}
|
|
86
|
-
return _context.abrupt("return", Promise.resolve((0,
|
|
87
|
+
return _context.abrupt("return", Promise.resolve((0, _getAtlContextUrl.getATLContextUrl)('team')));
|
|
87
88
|
case 3:
|
|
88
89
|
suffix = '';
|
|
89
90
|
if (!(teamCentralScopes !== undefined)) {
|
|
@@ -105,7 +106,7 @@ var ProfileCardClient = /*#__PURE__*/function () {
|
|
|
105
106
|
suffix += "/s/".concat(this.tcClient.options.cloudId);
|
|
106
107
|
}
|
|
107
108
|
case 6:
|
|
108
|
-
return _context.abrupt("return", Promise.resolve("".concat((0,
|
|
109
|
+
return _context.abrupt("return", Promise.resolve("".concat((0, _getAtlContextUrl.getATLContextUrl)('home')).concat(suffix)));
|
|
109
110
|
case 7:
|
|
110
111
|
case "end":
|
|
111
112
|
return _context.stop();
|
|
@@ -180,7 +181,7 @@ var ProfileCardClient = /*#__PURE__*/function () {
|
|
|
180
181
|
}]);
|
|
181
182
|
}();
|
|
182
183
|
function maybeCreateTeamCentralClient(config, clients) {
|
|
183
|
-
if ((0,
|
|
184
|
+
if ((0, _isFedramp.isFedRamp)()) {
|
|
184
185
|
return undefined;
|
|
185
186
|
}
|
|
186
187
|
if (clients !== null && clients !== void 0 && clients.teamCentralClient) {
|
|
@@ -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.9.
|
|
14
|
+
headers.append('atl-client-version', "26.9.2");
|
|
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.9.
|
|
69
|
+
headers.append('atl-client-version', "26.9.2");
|
|
70
70
|
return headers;
|
|
71
71
|
};
|
|
72
72
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -177,15 +177,32 @@ var AgentProfileCardResourced = exports.AgentProfileCardResourced = function Age
|
|
|
177
177
|
}
|
|
178
178
|
fetchData();
|
|
179
179
|
}, [fetchData]);
|
|
180
|
-
|
|
180
|
+
var forbiddenAgent = (0, _react.useMemo)(function () {
|
|
181
181
|
var _props$agentName;
|
|
182
|
+
return (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? {
|
|
183
|
+
id: '',
|
|
184
|
+
named_id: '',
|
|
185
|
+
name: (_props$agentName = props.agentName) !== null && _props$agentName !== void 0 ? _props$agentName : '',
|
|
186
|
+
description: "\xA0",
|
|
187
|
+
creator_type: 'CUSTOMER',
|
|
188
|
+
is_default: false,
|
|
189
|
+
actor_type: 'AGENT',
|
|
190
|
+
user_defined_conversation_starters: null,
|
|
191
|
+
favourite: false,
|
|
192
|
+
favourite_count: 0,
|
|
193
|
+
identity_account_id: props.accountId,
|
|
194
|
+
creatorInfo: undefined
|
|
195
|
+
} : undefined;
|
|
196
|
+
}, [props.agentName, props.accountId]);
|
|
197
|
+
if (!isPermitted && _featureGates.default.getExperimentValue('platform_editor_reduced_profile_cards', 'isEnabled', false)) {
|
|
198
|
+
var _props$agentName2;
|
|
182
199
|
return /*#__PURE__*/_react.default.createElement(_AgentProfileCardWrapper.AgentProfileCardWrapper, null, /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
183
200
|
fallback: null
|
|
184
201
|
}, /*#__PURE__*/_react.default.createElement(_lazyAgentProfileCard.AgentProfileCardLazy, {
|
|
185
|
-
agent: {
|
|
202
|
+
agent: (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? forbiddenAgent : {
|
|
186
203
|
id: '',
|
|
187
204
|
named_id: '',
|
|
188
|
-
name: (_props$
|
|
205
|
+
name: (_props$agentName2 = props.agentName) !== null && _props$agentName2 !== void 0 ? _props$agentName2 : '',
|
|
189
206
|
description: "\xA0",
|
|
190
207
|
creator_type: 'CUSTOMER',
|
|
191
208
|
is_default: false,
|
|
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _react = require("react");
|
|
13
|
-
var
|
|
13
|
+
var _getAtlContextUrl = require("@atlaskit/atlassian-context/get-atl-context-url");
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
var _postMessageToPubsub = require("@atlaskit/rovo-triggers/post-message-to-pubsub");
|
|
16
16
|
var _navigation = require("@atlaskit/teams-app-config/navigation");
|
|
@@ -130,7 +130,7 @@ var useAgentUrlActions = exports.useAgentUrlActions = function useAgentUrlAction
|
|
|
130
130
|
var agentId = _ref5.agentId,
|
|
131
131
|
prompt = _ref5.prompt;
|
|
132
132
|
var startConversationInNewTab = function startConversationInNewTab() {
|
|
133
|
-
var baseUrl = "".concat((0,
|
|
133
|
+
var baseUrl = "".concat((0, _getAtlContextUrl.getATLContextUrl)('home'), "/chat");
|
|
134
134
|
var urlWithParams = (0, _url.encodeParamsToUrl)(baseUrl, _objectSpread({
|
|
135
135
|
cloudId: cloudId
|
|
136
136
|
}, createRovoParams({
|
|
@@ -160,7 +160,7 @@ var useAgentUrlActions = exports.useAgentUrlActions = function useAgentUrlAction
|
|
|
160
160
|
};
|
|
161
161
|
var onOpenChat = function onOpenChat(agentId, agentName) {
|
|
162
162
|
var openChatInNewTab = function openChatInNewTab() {
|
|
163
|
-
var baseUrl = "".concat((0,
|
|
163
|
+
var baseUrl = "".concat((0, _getAtlContextUrl.getATLContextUrl)('home'), "/chat");
|
|
164
164
|
var urlWithParams = (0, _url.encodeParamsToUrl)(baseUrl, _objectSpread({
|
|
165
165
|
cloudId: cloudId
|
|
166
166
|
}, createRovoParams({
|
|
@@ -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.9.
|
|
15
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.9.2") !== 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.9.
|
|
34
|
+
packageVersion: "26.9.2"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
37
37
|
})
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { getATLContextUrl
|
|
1
|
+
import { getATLContextUrl } from '@atlaskit/atlassian-context/get-atl-context-url';
|
|
2
|
+
import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
|
|
2
3
|
import RovoAgentCardClient from './RovoAgentCardClient';
|
|
3
4
|
import TeamCentralCardClient from './TeamCentralCardClient';
|
|
4
5
|
import TeamProfileCardClient from './TeamProfileCardClient';
|
|
@@ -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.
|
|
9
|
+
headers.append('atl-client-version', "26.9.2");
|
|
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.9.
|
|
81
|
+
headers.append('atl-client-version', "26.9.2");
|
|
82
82
|
return headers;
|
|
83
83
|
};
|
|
84
84
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -115,15 +115,32 @@ export const AgentProfileCardResourced = props => {
|
|
|
115
115
|
}
|
|
116
116
|
fetchData();
|
|
117
117
|
}, [fetchData]);
|
|
118
|
-
|
|
118
|
+
const forbiddenAgent = useMemo(() => {
|
|
119
119
|
var _props$agentName;
|
|
120
|
+
return fg('platform_editor_agent_mentions_drop_one_fixes') ? {
|
|
121
|
+
id: '',
|
|
122
|
+
named_id: '',
|
|
123
|
+
name: (_props$agentName = props.agentName) !== null && _props$agentName !== void 0 ? _props$agentName : '',
|
|
124
|
+
description: '\u00A0',
|
|
125
|
+
creator_type: 'CUSTOMER',
|
|
126
|
+
is_default: false,
|
|
127
|
+
actor_type: 'AGENT',
|
|
128
|
+
user_defined_conversation_starters: null,
|
|
129
|
+
favourite: false,
|
|
130
|
+
favourite_count: 0,
|
|
131
|
+
identity_account_id: props.accountId,
|
|
132
|
+
creatorInfo: undefined
|
|
133
|
+
} : undefined;
|
|
134
|
+
}, [props.agentName, props.accountId]);
|
|
135
|
+
if (!isPermitted && FeatureGates.getExperimentValue('platform_editor_reduced_profile_cards', 'isEnabled', false)) {
|
|
136
|
+
var _props$agentName2;
|
|
120
137
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Suspense, {
|
|
121
138
|
fallback: null
|
|
122
139
|
}, /*#__PURE__*/React.createElement(AgentProfileCardLazy, {
|
|
123
|
-
agent: {
|
|
140
|
+
agent: fg('platform_editor_agent_mentions_drop_one_fixes') ? forbiddenAgent : {
|
|
124
141
|
id: '',
|
|
125
142
|
named_id: '',
|
|
126
|
-
name: (_props$
|
|
143
|
+
name: (_props$agentName2 = props.agentName) !== null && _props$agentName2 !== void 0 ? _props$agentName2 : '',
|
|
127
144
|
description: '\u00A0',
|
|
128
145
|
creator_type: 'CUSTOMER',
|
|
129
146
|
is_default: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
|
-
import { getATLContextUrl } from '@atlaskit/atlassian-context';
|
|
2
|
+
import { getATLContextUrl } from '@atlaskit/atlassian-context/get-atl-context-url';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
5
5
|
import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
|
|
@@ -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.9.
|
|
5
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.9.2") !== 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.9.
|
|
22
|
+
packageVersion: "26.9.2",
|
|
23
23
|
...attributes,
|
|
24
24
|
firedAt: Math.round(getPageTime())
|
|
25
25
|
}
|
|
@@ -5,7 +5,8 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
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
|
-
import { getATLContextUrl
|
|
8
|
+
import { getATLContextUrl } from '@atlaskit/atlassian-context/get-atl-context-url';
|
|
9
|
+
import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
|
|
9
10
|
import RovoAgentCardClient from './RovoAgentCardClient';
|
|
10
11
|
import TeamCentralCardClient from './TeamCentralCardClient';
|
|
11
12
|
import TeamProfileCardClient from './TeamProfileCardClient';
|
|
@@ -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.9.
|
|
7
|
+
headers.append('atl-client-version', "26.9.2");
|
|
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.9.
|
|
62
|
+
headers.append('atl-client-version', "26.9.2");
|
|
63
63
|
return headers;
|
|
64
64
|
};
|
|
65
65
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -168,15 +168,32 @@ export var AgentProfileCardResourced = function AgentProfileCardResourced(props)
|
|
|
168
168
|
}
|
|
169
169
|
fetchData();
|
|
170
170
|
}, [fetchData]);
|
|
171
|
-
|
|
171
|
+
var forbiddenAgent = useMemo(function () {
|
|
172
172
|
var _props$agentName;
|
|
173
|
+
return fg('platform_editor_agent_mentions_drop_one_fixes') ? {
|
|
174
|
+
id: '',
|
|
175
|
+
named_id: '',
|
|
176
|
+
name: (_props$agentName = props.agentName) !== null && _props$agentName !== void 0 ? _props$agentName : '',
|
|
177
|
+
description: "\xA0",
|
|
178
|
+
creator_type: 'CUSTOMER',
|
|
179
|
+
is_default: false,
|
|
180
|
+
actor_type: 'AGENT',
|
|
181
|
+
user_defined_conversation_starters: null,
|
|
182
|
+
favourite: false,
|
|
183
|
+
favourite_count: 0,
|
|
184
|
+
identity_account_id: props.accountId,
|
|
185
|
+
creatorInfo: undefined
|
|
186
|
+
} : undefined;
|
|
187
|
+
}, [props.agentName, props.accountId]);
|
|
188
|
+
if (!isPermitted && FeatureGates.getExperimentValue('platform_editor_reduced_profile_cards', 'isEnabled', false)) {
|
|
189
|
+
var _props$agentName2;
|
|
173
190
|
return /*#__PURE__*/React.createElement(AgentProfileCardWrapper, null, /*#__PURE__*/React.createElement(Suspense, {
|
|
174
191
|
fallback: null
|
|
175
192
|
}, /*#__PURE__*/React.createElement(AgentProfileCardLazy, {
|
|
176
|
-
agent: {
|
|
193
|
+
agent: fg('platform_editor_agent_mentions_drop_one_fixes') ? forbiddenAgent : {
|
|
177
194
|
id: '',
|
|
178
195
|
named_id: '',
|
|
179
|
-
name: (_props$
|
|
196
|
+
name: (_props$agentName2 = props.agentName) !== null && _props$agentName2 !== void 0 ? _props$agentName2 : '',
|
|
180
197
|
description: "\xA0",
|
|
181
198
|
creator_type: 'CUSTOMER',
|
|
182
199
|
is_default: false,
|
|
@@ -5,7 +5,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
5
5
|
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; }
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import { useCallback } from 'react';
|
|
8
|
-
import { getATLContextUrl } from '@atlaskit/atlassian-context';
|
|
8
|
+
import { getATLContextUrl } from '@atlaskit/atlassian-context/get-atl-context-url';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
11
11
|
import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
|
|
@@ -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.9.
|
|
8
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.9.2") !== 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.9.
|
|
27
|
+
packageVersion: "26.9.2"
|
|
28
28
|
}, attributes), {}, {
|
|
29
29
|
firedAt: Math.round(getPageTime())
|
|
30
30
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.9.
|
|
3
|
+
"version": "26.9.3",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/give-kudos": "^6.6.0",
|
|
51
51
|
"@atlaskit/heading": "^6.2.0",
|
|
52
52
|
"@atlaskit/icon": "^37.0.0",
|
|
53
|
-
"@atlaskit/link": "4.
|
|
53
|
+
"@atlaskit/link": "4.3.0",
|
|
54
54
|
"@atlaskit/lozenge": "^14.1.0",
|
|
55
55
|
"@atlaskit/menu": "^9.2.0",
|
|
56
56
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@atlaskit/teams-avatar": "^3.1.0",
|
|
69
69
|
"@atlaskit/teams-public": "^2.4.0",
|
|
70
70
|
"@atlaskit/theme": "^26.1.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
72
|
-
"@atlaskit/tokens": "^15.
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^125.0.0",
|
|
72
|
+
"@atlaskit/tokens": "^15.8.0",
|
|
73
73
|
"@atlaskit/tooltip": "^23.1.0",
|
|
74
74
|
"@atlassian/studio-entry-link": "^1.1.0",
|
|
75
75
|
"@babel/runtime": "^7.0.0",
|
|
@@ -180,6 +180,9 @@
|
|
|
180
180
|
},
|
|
181
181
|
"fix_aria_attribute_violation_on_agent_card_trigger": {
|
|
182
182
|
"type": "boolean"
|
|
183
|
+
},
|
|
184
|
+
"platform_editor_agent_mentions_drop_one_fixes": {
|
|
185
|
+
"type": "boolean"
|
|
183
186
|
}
|
|
184
187
|
},
|
|
185
188
|
"sideEffects": [
|