@atlaskit/profilecard 26.18.8 → 26.18.10

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 26.18.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4cfb0dc4af9ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cfb0dc4af9ac) -
8
+ Clean up experiment jira_hide_conversations_for_jca
9
+ - Updated dependencies
10
+
11
+ ## 26.18.9
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 26.18.8
4
18
 
5
19
  ### 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', "26.18.7");
14
+ headers.append('atl-client-version', "26.18.9");
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.18.7");
69
+ headers.append('atl-client-version', "26.18.9");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -208,12 +208,11 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
208
208
  // isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
209
209
  var isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
210
210
 
211
- // Currently, both Jira Coding Agent and Rovo Dev does not support conversations and chat.
212
- // We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
213
- // They are actually the same, just different names.
211
+ // Both Jira Coding Agent and Rovo Dev do not support conversations and chat.
212
+ // They share the same creator_type ('ROVO_DEV') but have different display names.
214
213
  var isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
215
- var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !(((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
216
- var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && _featureGateJsClient.default.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !hideAgentActions;
214
+ var shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !(((0, _platformFeatureFlags.fg)('jira_ai_hide_conversation_starters_profilecard') || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
215
+ var shouldShowAgentActions = !isRovoDevOrJiraCodingAgent && !hideAgentActions;
217
216
 
218
217
  // Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
219
218
  var needsBottomPaddingFallback = hideAgentActions && (_featureGateJsClient.default.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes'));
@@ -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.18.7") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
15
+ packageVersion: (_process$env$_PACKAGE2 = "26.18.9") !== 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.18.7"
34
+ packageVersion: "26.18.9"
35
35
  }, attributes), {}, {
36
36
  firedAt: Math.round((0, _performance.getPageTime)())
37
37
  })
@@ -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.18.7");
9
+ headers.append('atl-client-version', "26.18.9");
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.18.7");
81
+ headers.append('atl-client-version', "26.18.9");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -156,12 +156,11 @@ const AgentProfileCard = ({
156
156
  // isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
157
157
  const isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
158
158
 
159
- // Currently, both Jira Coding Agent and Rovo Dev does not support conversations and chat.
160
- // We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
161
- // They are actually the same, just different names.
159
+ // Both Jira Coding Agent and Rovo Dev do not support conversations and chat.
160
+ // They share the same creator_type ('ROVO_DEV') but have different display names.
162
161
  const isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
163
- const shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
164
- const shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !hideAgentActions;
162
+ const shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
163
+ const shouldShowAgentActions = !isRovoDevOrJiraCodingAgent && !hideAgentActions;
165
164
 
166
165
  // Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
167
166
  const needsBottomPaddingFallback = hideAgentActions && (FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes'));
@@ -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.18.7") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
+ packageVersion: (_process$env$_PACKAGE2 = "26.18.9") !== 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.18.7",
22
+ packageVersion: "26.18.9",
23
23
  ...attributes,
24
24
  firedAt: Math.round(getPageTime())
25
25
  }
@@ -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.18.7");
7
+ headers.append('atl-client-version', "26.18.9");
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.18.7");
62
+ headers.append('atl-client-version', "26.18.9");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -199,12 +199,11 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
199
199
  // isRovoDev naturally becomes false, falling through to the agentNamedId avatar lookup.
200
200
  var isRovoDev = agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'rovo dev';
201
201
 
202
- // Currently, both Jira Coding Agent and Rovo Dev does not support conversations and chat.
203
- // We previously disabled these for Rovo Dev but we forgot to do the same changes for JCA
204
- // They are actually the same, just different names.
202
+ // Both Jira Coding Agent and Rovo Dev do not support conversations and chat.
203
+ // They share the same creator_type ('ROVO_DEV') but have different display names.
205
204
  var isRovoDevOrJiraCodingAgent = isRovoDev || agent.creator_type === 'ROVO_DEV' && agent.name.toLowerCase() === 'jira coding agent';
206
- var shouldShowConversationStarters = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
207
- var shouldShowAgentActions = (isRovoDevOrJiraCodingAgent && FeatureGates.getExperimentValue('jira_hide_conversations_for_jca', 'isEnabled', false) ? false : !isRovoDev) && !hideAgentActions;
205
+ var shouldShowConversationStarters = !isRovoDevOrJiraCodingAgent && !((fg('jira_ai_hide_conversation_starters_profilecard') || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes')) && hideConversationStarters);
206
+ var shouldShowAgentActions = !isRovoDevOrJiraCodingAgent && !hideAgentActions;
208
207
 
209
208
  // Only for M1 hideAgentActions preview cards so other consumers stay unchanged.
210
209
  var needsBottomPaddingFallback = hideAgentActions && (FeatureGates.getExperimentValue('jira_agent_recommendations_m1', 'isEnabled', false) || expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes'));
@@ -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.18.7") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
8
+ packageVersion: (_process$env$_PACKAGE2 = "26.18.9") !== 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.18.7"
27
+ packageVersion: "26.18.9"
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.18.8",
3
+ "version": "26.18.10",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,37 +40,37 @@
40
40
  "dependencies": {
41
41
  "@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.214.0",
42
42
  "@atlaskit/atlassian-context": "^1.1.0",
43
- "@atlaskit/avatar": "^27.0.0",
44
- "@atlaskit/avatar-group": "^14.1.0",
45
- "@atlaskit/button": "^25.1.0",
43
+ "@atlaskit/avatar": "^27.2.0",
44
+ "@atlaskit/avatar-group": "^14.2.0",
45
+ "@atlaskit/button": "^25.2.0",
46
46
  "@atlaskit/css": "^1.0.0",
47
- "@atlaskit/dropdown-menu": "^18.1.0",
48
- "@atlaskit/empty-state": "^12.0.0",
47
+ "@atlaskit/dropdown-menu": "^18.2.0",
48
+ "@atlaskit/empty-state": "^12.1.0",
49
49
  "@atlaskit/feature-gate-js-client": "^6.0.0",
50
- "@atlaskit/give-kudos": "^6.13.0",
51
- "@atlaskit/heading": "^7.0.0",
52
- "@atlaskit/icon": "^37.4.0",
53
- "@atlaskit/link": "5.0.0",
54
- "@atlaskit/lozenge": "^15.2.0",
55
- "@atlaskit/menu": "^10.0.0",
56
- "@atlaskit/modal-dialog": "^16.4.0",
50
+ "@atlaskit/give-kudos": "^6.14.0",
51
+ "@atlaskit/heading": "^7.1.0",
52
+ "@atlaskit/icon": "^37.5.0",
53
+ "@atlaskit/link": "5.1.0",
54
+ "@atlaskit/lozenge": "^15.3.0",
55
+ "@atlaskit/menu": "^10.1.0",
56
+ "@atlaskit/modal-dialog": "^16.5.0",
57
57
  "@atlaskit/people-teams-ui-public": "^5.2.0",
58
58
  "@atlaskit/platform-feature-flags": "^2.1.0",
59
- "@atlaskit/popup": "^6.1.0",
60
- "@atlaskit/primitives": "^22.3.0",
59
+ "@atlaskit/popup": "^6.2.0",
60
+ "@atlaskit/primitives": "^22.4.0",
61
61
  "@atlaskit/react-compiler-gating": "^0.2.0",
62
62
  "@atlaskit/rovo-agent-components": "^8.8.0",
63
- "@atlaskit/rovo-triggers": "^10.16.0",
64
- "@atlaskit/spinner": "^20.2.0",
63
+ "@atlaskit/rovo-triggers": "^10.17.0",
64
+ "@atlaskit/spinner": "^20.3.0",
65
65
  "@atlaskit/teams-app-config": "^2.2.0",
66
- "@atlaskit/teams-app-internal-analytics": "^2.3.0",
66
+ "@atlaskit/teams-app-internal-analytics": "^2.4.0",
67
67
  "@atlaskit/teams-app-internal-navigation": "^2.3.0",
68
68
  "@atlaskit/teams-avatar": "^4.1.0",
69
69
  "@atlaskit/teams-public": "^2.7.0",
70
- "@atlaskit/theme": "^28.0.0",
71
- "@atlaskit/tmp-editor-statsig": "^155.0.0",
72
- "@atlaskit/tokens": "^16.7.0",
73
- "@atlaskit/tooltip": "^24.1.0",
70
+ "@atlaskit/theme": "^28.1.0",
71
+ "@atlaskit/tmp-editor-statsig": "^157.0.0",
72
+ "@atlaskit/tokens": "^16.8.0",
73
+ "@atlaskit/tooltip": "^24.2.0",
74
74
  "@babel/runtime": "^7.0.0",
75
75
  "@compiled/react": "^1.0.2",
76
76
  "date-fns": "^2.17.0",
@@ -90,7 +90,7 @@
90
90
  "@atlassian/a11y-jest-testing": "^0.16.0",
91
91
  "@atlassian/feature-flags-storybook-utils": "^0.5.0",
92
92
  "@atlassian/feature-flags-test-utils": "^1.2.0",
93
- "@atlassian/platform-storybook-helpers": "^0.4.0",
93
+ "@atlassian/platform-storybook-helpers": "^0.5.0",
94
94
  "@atlassian/ptc-test-utils": "^0.14.0",
95
95
  "@atlassian/testing-library": "^0.11.0",
96
96
  "@storybook/addon-actions": "^8.6.14",