@atlaskit/profilecard 26.11.0 → 26.12.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  3. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  4. package/dist/cjs/components/Agent/Actions.js +1 -1
  5. package/dist/cjs/components/Agent/AgentProfileCard.compiled.css +0 -1
  6. package/dist/cjs/components/Agent/AgentProfileCard.js +2 -2
  7. package/dist/cjs/components/Agent/AgentProfileCardWrapper.compiled.css +0 -1
  8. package/dist/cjs/components/Agent/AgentProfileCardWrapper.js +1 -1
  9. package/dist/cjs/components/User/ProfileCardDetails.js +1 -1
  10. package/dist/cjs/components/User/ReportingLinesDetails.js +1 -1
  11. package/dist/cjs/components/common/ProfileCardWrapper.js +1 -1
  12. package/dist/cjs/components/team-profile-card/main.js +1 -1
  13. package/dist/cjs/components/team-profile-card/team-connections/main.js +1 -1
  14. package/dist/cjs/components/team-profile-card/team-containers-skeleton/index.compiled.css +0 -1
  15. package/dist/cjs/components/team-profile-card/team-containers-skeleton/index.js +1 -1
  16. package/dist/cjs/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +0 -1
  17. package/dist/cjs/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
  18. package/dist/cjs/styled/Card.js +1 -1
  19. package/dist/cjs/styled/CoverImage.js +1 -1
  20. package/dist/cjs/styled/Error.js +1 -1
  21. package/dist/cjs/styled/ReportingLines.js +1 -1
  22. package/dist/cjs/styled/TeamCard.js +1 -1
  23. package/dist/cjs/styled/TeamTrigger.compiled.css +0 -1
  24. package/dist/cjs/styled/TeamTrigger.js +1 -1
  25. package/dist/cjs/styled/UserTrigger.js +1 -1
  26. package/dist/cjs/util/analytics.js +2 -2
  27. package/dist/cjs/util/withOuterListeners.js +1 -1
  28. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  29. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  30. package/dist/es2019/components/Agent/Actions.js +1 -1
  31. package/dist/es2019/components/Agent/AgentProfileCard.compiled.css +0 -1
  32. package/dist/es2019/components/Agent/AgentProfileCard.js +4 -2
  33. package/dist/es2019/components/Agent/AgentProfileCardWrapper.compiled.css +0 -1
  34. package/dist/es2019/components/Agent/AgentProfileCardWrapper.js +1 -1
  35. package/dist/es2019/components/User/ProfileCardDetails.js +1 -1
  36. package/dist/es2019/components/User/ReportingLinesDetails.js +1 -1
  37. package/dist/es2019/components/common/ProfileCardWrapper.js +1 -1
  38. package/dist/es2019/components/team-profile-card/main.js +1 -1
  39. package/dist/es2019/components/team-profile-card/team-connections/main.js +1 -1
  40. package/dist/es2019/components/team-profile-card/team-containers-skeleton/index.compiled.css +0 -1
  41. package/dist/es2019/components/team-profile-card/team-containers-skeleton/index.js +1 -1
  42. package/dist/es2019/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +0 -1
  43. package/dist/es2019/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
  44. package/dist/es2019/styled/Card.js +1 -1
  45. package/dist/es2019/styled/CoverImage.js +1 -1
  46. package/dist/es2019/styled/Error.js +1 -1
  47. package/dist/es2019/styled/ReportingLines.js +1 -1
  48. package/dist/es2019/styled/TeamCard.js +1 -1
  49. package/dist/es2019/styled/TeamTrigger.compiled.css +0 -1
  50. package/dist/es2019/styled/TeamTrigger.js +1 -1
  51. package/dist/es2019/styled/UserTrigger.js +1 -1
  52. package/dist/es2019/util/analytics.js +2 -2
  53. package/dist/es2019/util/withOuterListeners.js +1 -1
  54. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  55. package/dist/esm/client/getTeamFromAGG.js +1 -1
  56. package/dist/esm/components/Agent/Actions.js +1 -1
  57. package/dist/esm/components/Agent/AgentProfileCard.compiled.css +0 -1
  58. package/dist/esm/components/Agent/AgentProfileCard.js +2 -2
  59. package/dist/esm/components/Agent/AgentProfileCardWrapper.compiled.css +0 -1
  60. package/dist/esm/components/Agent/AgentProfileCardWrapper.js +1 -1
  61. package/dist/esm/components/User/ProfileCardDetails.js +1 -1
  62. package/dist/esm/components/User/ReportingLinesDetails.js +1 -1
  63. package/dist/esm/components/common/ProfileCardWrapper.js +1 -1
  64. package/dist/esm/components/team-profile-card/main.js +1 -1
  65. package/dist/esm/components/team-profile-card/team-connections/main.js +1 -1
  66. package/dist/esm/components/team-profile-card/team-containers-skeleton/index.compiled.css +0 -1
  67. package/dist/esm/components/team-profile-card/team-containers-skeleton/index.js +1 -1
  68. package/dist/esm/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.compiled.css +0 -1
  69. package/dist/esm/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
  70. package/dist/esm/styled/Card.js +1 -1
  71. package/dist/esm/styled/CoverImage.js +1 -1
  72. package/dist/esm/styled/Error.js +1 -1
  73. package/dist/esm/styled/ReportingLines.js +1 -1
  74. package/dist/esm/styled/TeamCard.js +1 -1
  75. package/dist/esm/styled/TeamTrigger.compiled.css +0 -1
  76. package/dist/esm/styled/TeamTrigger.js +1 -1
  77. package/dist/esm/styled/UserTrigger.js +1 -1
  78. package/dist/esm/util/analytics.js +2 -2
  79. package/dist/esm/util/withOuterListeners.js +1 -1
  80. package/dist/types/components/Agent/Actions.d.ts +1 -1
  81. package/dist/types/types.d.ts +7 -1
  82. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 26.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 26.12.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`7bbeb928e7b97`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7bbeb928e7b97) -
14
+ Passes editor context from agent profile card action to rovo chat
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 26.11.0
4
21
 
5
22
  ### 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.10.3");
14
+ headers.append('atl-client-version', "26.12.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.10.3");
69
+ headers.append('atl-client-version', "26.12.0");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -1,4 +1,4 @@
1
- /* Actions.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Actions.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
4
3
  ._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
@@ -1,4 +1,4 @@
1
- /* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -306,7 +306,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
306
306
  })),
307
307
  onDeleteAgent: handleOnDelete,
308
308
  onChatClick: onChatClick ? function (event) {
309
- return onChatClick(event);
309
+ onChatClick(event, (0, _platformFeatureFlags.fg)('platform_editor_agent_mentions_drop_one_fixes') ? agent.id : undefined);
310
310
  } : function () {
311
311
  return onOpenChatFullScreen(agent.id, agent.name);
312
312
  },
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
3
2
  ._1bsb1gwv{width:360px}
4
3
  ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
@@ -1,4 +1,4 @@
1
- /* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1tm3{border-radius:var(--ds-radius-xxlarge,1pc)}
3
2
  ._1rjc1b66{padding-block:var(--ds-space-050,4px)}._1bsbvbgk{width:4pc}
4
3
  ._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
2
  ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
4
3
  ._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* Card.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Card.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  /* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
3
3
  "use strict";
4
4
 
@@ -1,4 +1,4 @@
1
- /* CoverImage.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* CoverImage.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* Error.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Error.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ReportingLines.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ReportingLines.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* TeamCard.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* TeamCard.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._19bv1ejb{padding-left:var(--ds-space-300,24px)}
3
2
  ._19pk1jfw{margin-top:var(--ds-space-500,40px)}
4
3
  ._1bsb1osq{width:100%}
@@ -1,4 +1,4 @@
1
- /* TeamTrigger.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* TeamTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* UserTrigger.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* UserTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  // PLEASE NOTE: This file is sync-loaded with the trigger components. Only add components here that
3
3
  // are necessary for the main render of the trigger component to help maintain bundle size.
4
4
  /* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
@@ -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.10.3") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
15
+ packageVersion: (_process$env$_PACKAGE2 = "26.12.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.10.3"
34
+ packageVersion: "26.12.0"
35
35
  }, attributes), {}, {
36
36
  firedAt: Math.round((0, _performance.getPageTime)())
37
37
  })
@@ -1,4 +1,4 @@
1
- /* withOuterListeners.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* withOuterListeners.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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.10.3");
9
+ headers.append('atl-client-version', "26.12.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.10.3");
81
+ headers.append('atl-client-version', "26.12.0");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -1,4 +1,4 @@
1
- /* Actions.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Actions.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./Actions.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useState } from 'react';
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
4
3
  ._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
@@ -1,4 +1,4 @@
1
- /* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./AgentProfileCard.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useEffect, useState } from 'react';
@@ -237,7 +237,9 @@ const AgentProfileCard = ({
237
237
  onCopyAgent: () => onCopyAgent(agent.id),
238
238
  onDuplicateAgent: async () => await onDuplicateAgent(agent.id),
239
239
  onDeleteAgent: handleOnDelete,
240
- onChatClick: onChatClick ? event => onChatClick(event) : () => onOpenChatFullScreen(agent.id, agent.name),
240
+ onChatClick: onChatClick ? event => {
241
+ onChatClick(event, fg('platform_editor_agent_mentions_drop_one_fixes') ? agent.id : undefined);
242
+ } : () => onOpenChatFullScreen(agent.id, agent.name),
241
243
  resourceClient: resourceClient,
242
244
  onViewFullProfileClick: () => onViewFullProfile(agent.id),
243
245
  hideMoreActions: hideMoreActions
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
3
2
  ._1bsb1gwv{width:360px}
4
3
  ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
@@ -1,4 +1,4 @@
1
- /* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./AgentProfileCardWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./ProfileCardDetails.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./ReportingLinesDetails.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./ProfileCardWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./main.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./main.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1tm3{border-radius:var(--ds-radius-xxlarge,1pc)}
3
2
  ._1rjc1b66{padding-block:var(--ds-space-050,4px)}._1bsbvbgk{width:4pc}
4
3
  ._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
2
  ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
4
3
  ._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* Card.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Card.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  /* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
3
3
  import "./Card.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* CoverImage.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* CoverImage.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./CoverImage.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* Error.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Error.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./Error.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* ReportingLines.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ReportingLines.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./ReportingLines.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* TeamCard.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* TeamCard.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./TeamCard.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._19bv1ejb{padding-left:var(--ds-space-300,24px)}
3
2
  ._19pk1jfw{margin-top:var(--ds-space-500,40px)}
4
3
  ._1bsb1osq{width:100%}
@@ -1,4 +1,4 @@
1
- /* TeamTrigger.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* TeamTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./TeamTrigger.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* UserTrigger.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* UserTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  // PLEASE NOTE: This file is sync-loaded with the trigger components. Only add components here that
3
3
  // are necessary for the main render of the trigger component to help maintain bundle size.
4
4
  /* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
@@ -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.10.3") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
+ packageVersion: (_process$env$_PACKAGE2 = "26.12.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.10.3",
22
+ packageVersion: "26.12.0",
23
23
  ...attributes,
24
24
  firedAt: Math.round(getPageTime())
25
25
  }
@@ -1,4 +1,4 @@
1
- /* withOuterListeners.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* withOuterListeners.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import "./withOuterListeners.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -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.10.3");
7
+ headers.append('atl-client-version', "26.12.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.10.3");
62
+ headers.append('atl-client-version', "26.12.0");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -1,4 +1,4 @@
1
- /* Actions.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Actions.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./Actions.compiled.css";
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
2
  ._zulp1b66{gap:var(--ds-space-050,4px)}
4
3
  ._18zrpxbi{padding-inline:var(--ds-space-200,1pc)}
@@ -1,4 +1,4 @@
1
- /* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* AgentProfileCard.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
@@ -297,7 +297,7 @@ var AgentProfileCard = function AgentProfileCard(_ref) {
297
297
  })),
298
298
  onDeleteAgent: handleOnDelete,
299
299
  onChatClick: onChatClick ? function (event) {
300
- return onChatClick(event);
300
+ onChatClick(event, fg('platform_editor_agent_mentions_drop_one_fixes') ? agent.id : undefined);
301
301
  } : function () {
302
302
  return onOpenChatFullScreen(agent.id, agent.name);
303
303
  },
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1mok{border-radius:var(--ds-radius-large,8px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
3
2
  ._1bsb1gwv{width:360px}
4
3
  ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
@@ -1,4 +1,4 @@
1
- /* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* AgentProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./AgentProfileCardWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ProfileCardDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["text"];
@@ -1,4 +1,4 @@
1
- /* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ReportingLinesDetails.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import "./ReportingLinesDetails.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ProfileCardWrapper.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./ProfileCardWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["containerId", "teamId", "displayName", "description", "avatarImageUrl", "headerImageUrl", "memberAvatars", "memberCount", "cloudId", "userId", "isVerified", "teamProfileUrl"];
@@ -1,4 +1,4 @@
1
- /* main.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* main.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./main.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko1tm3{border-radius:var(--ds-radius-xxlarge,1pc)}
3
2
  ._1rjc1b66{padding-block:var(--ds-space-050,4px)}._1bsbvbgk{width:4pc}
4
3
  ._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
2
  ._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
4
3
  ._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* Card.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Card.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  /* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
3
3
  import "./Card.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* CoverImage.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* CoverImage.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./CoverImage.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* Error.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Error.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./Error.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* ReportingLines.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ReportingLines.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./ReportingLines.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* TeamCard.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* TeamCard.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./TeamCard.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._19bv1ejb{padding-left:var(--ds-space-300,24px)}
3
2
  ._19pk1jfw{margin-top:var(--ds-space-500,40px)}
4
3
  ._1bsb1osq{width:100%}
@@ -1,4 +1,4 @@
1
- /* TeamTrigger.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* TeamTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./TeamTrigger.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* UserTrigger.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* UserTrigger.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  // PLEASE NOTE: This file is sync-loaded with the trigger components. Only add components here that
3
3
  // are necessary for the main render of the trigger component to help maintain bundle size.
4
4
  /* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation */
@@ -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.10.3") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
8
+ packageVersion: (_process$env$_PACKAGE2 = "26.12.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.10.3"
27
+ packageVersion: "26.12.0"
28
28
  }, attributes), {}, {
29
29
  firedAt: Math.round(getPageTime())
30
30
  })
@@ -1,4 +1,4 @@
1
- /* withOuterListeners.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* withOuterListeners.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
@@ -6,7 +6,7 @@ type AgentActionsProps = {
6
6
  onCopyAgent: () => void;
7
7
  onDuplicateAgent: () => Promise<void>;
8
8
  onDeleteAgent: () => void;
9
- onChatClick: (event: React.MouseEvent) => void;
9
+ onChatClick: (event: React.MouseEvent, agentStudioId?: string) => void;
10
10
  onViewFullProfileClick: () => void;
11
11
  resourceClient: ProfileClient;
12
12
  hideMoreActions?: boolean;
@@ -284,7 +284,13 @@ export interface TeamProfilecardCoreProps {
284
284
  viewProfileOnClick?: (event?: React.MouseEvent<Element>) => void;
285
285
  }
286
286
  export interface AgentActionsType {
287
- onChatClick?: (event: React.MouseEvent) => void;
287
+ /**
288
+ * Called when the "Chat with Agent" button is clicked. Receives the mouse event
289
+ * and the Agent Studio UUID.
290
+ * So callers can open Rovo chat with the correct agent without needing
291
+ * their own AAID→UUID resolution.
292
+ */
293
+ onChatClick?: (event: React.MouseEvent, agentStudioId?: string) => void;
288
294
  onConversationStartersClick?: (starter: ConversationStarter) => void;
289
295
  }
290
296
  export interface AgentProfileCardTriggerProps extends AgentActionsType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "26.11.0",
3
+ "version": "26.12.1",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,8 +49,8 @@
49
49
  "@atlaskit/feature-gate-js-client": "^6.0.0",
50
50
  "@atlaskit/give-kudos": "^6.7.0",
51
51
  "@atlaskit/heading": "^6.2.0",
52
- "@atlaskit/icon": "^37.0.0",
53
- "@atlaskit/link": "4.3.3",
52
+ "@atlaskit/icon": "^37.1.0",
53
+ "@atlaskit/link": "4.3.4",
54
54
  "@atlaskit/lozenge": "^14.1.0",
55
55
  "@atlaskit/menu": "^9.2.0",
56
56
  "@atlaskit/modal-dialog": "^16.1.0",
@@ -68,11 +68,11 @@
68
68
  "@atlaskit/teams-avatar": "^3.2.0",
69
69
  "@atlaskit/teams-public": "^2.5.0",
70
70
  "@atlaskit/theme": "^26.1.0",
71
- "@atlaskit/tmp-editor-statsig": "^128.0.0",
72
- "@atlaskit/tokens": "^16.0.0",
71
+ "@atlaskit/tmp-editor-statsig": "^130.0.0",
72
+ "@atlaskit/tokens": "^16.1.0",
73
73
  "@atlaskit/tooltip": "^23.1.0",
74
74
  "@babel/runtime": "^7.0.0",
75
- "@compiled/react": "^0.20.0",
75
+ "@compiled/react": "^0.22.2",
76
76
  "date-fns": "^2.17.0",
77
77
  "date-fns-tz": "^2.0.0",
78
78
  "graphql": "^15.8.0",