@atlaskit/profilecard 24.13.7 → 24.14.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 (161) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/__tests__/vr-tests/__snapshots__/user-profilecard/error-state--default.png +0 -0
  3. package/__tests__/vr-tests/agent-profilecard.vr.tsx +7 -1
  4. package/__tests__/vr-tests/user-profilecard.vr.tsx +42 -6
  5. package/afm-cc/tsconfig.json +6 -0
  6. package/afm-dev-agents/tsconfig.json +6 -0
  7. package/afm-jira/tsconfig.json +6 -0
  8. package/afm-passionfruit/tsconfig.json +6 -0
  9. package/afm-post-office/tsconfig.json +6 -0
  10. package/afm-rovo-extension/tsconfig.json +6 -0
  11. package/afm-townsquare/tsconfig.json +6 -0
  12. package/dist/cjs/client/ProfileCardClient.js +2 -2
  13. package/dist/cjs/client/UserProfileCardClient.js +45 -11
  14. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  15. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  16. package/dist/cjs/components/Agent/Actions.js +5 -2
  17. package/dist/cjs/components/Agent/ActionsCompiled.compiled.css +19 -0
  18. package/dist/cjs/components/Agent/ActionsCompiled.js +140 -0
  19. package/dist/cjs/components/Agent/AgentDeleteConfirmationModal.js +2 -4
  20. package/dist/cjs/components/Agent/AgentProfileCard.js +8 -1
  21. package/dist/cjs/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
  22. package/dist/cjs/components/Agent/AgentProfileCardCompiled.js +242 -0
  23. package/dist/cjs/components/Agent/AgentProfileCardResourced.js +2 -1
  24. package/dist/cjs/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
  25. package/dist/cjs/components/Agent/AgentProfileCardWrapper.js +9 -8
  26. package/dist/cjs/components/Agent/ConversationStarters.js +2 -4
  27. package/dist/cjs/components/Error/ErrorMessage.js +20 -9
  28. package/dist/cjs/components/Team/TeamProfileCardTrigger.js +3 -3
  29. package/dist/cjs/components/User/OverflowProfileCardButtons.js +22 -7
  30. package/dist/cjs/components/User/ProfileCard.js +80 -28
  31. package/dist/cjs/components/User/ProfileCardDetails.compiled.css +0 -1
  32. package/dist/cjs/components/User/ProfileCardDetails.js +4 -5
  33. package/dist/cjs/components/User/ProfileCardResourced.js +40 -16
  34. package/dist/cjs/components/User/ProfileCardTrigger.js +52 -12
  35. package/dist/cjs/components/User/ReportingLinesDetails.js +40 -12
  36. package/dist/cjs/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
  37. package/dist/cjs/components/User/ReportingLinesDetailsCompiled.js +109 -0
  38. package/dist/cjs/components/User/UserLoadingState.js +15 -3
  39. package/dist/cjs/components/common/LoadingState.js +17 -3
  40. package/dist/cjs/components/common/ProfileCardTrigger.js +29 -7
  41. package/dist/cjs/components/common/ProfileCardWrapper.compiled.css +1 -0
  42. package/dist/cjs/components/common/ProfileCardWrapper.js +12 -9
  43. package/dist/cjs/components/team-profile-card/team-actions/more-actions/index.js +2 -4
  44. package/dist/cjs/styled/CoverImage.compiled.css +2 -0
  45. package/dist/cjs/styled/CoverImage.js +4 -2
  46. package/dist/cjs/styled/Error.compiled.css +0 -2
  47. package/dist/cjs/styled/Error.js +5 -3
  48. package/dist/cjs/util/analytics.js +7 -3
  49. package/dist/es2019/client/ProfileCardClient.js +2 -2
  50. package/dist/es2019/client/UserProfileCardClient.js +50 -13
  51. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  52. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  53. package/dist/es2019/components/Agent/Actions.js +5 -2
  54. package/dist/es2019/components/Agent/ActionsCompiled.compiled.css +19 -0
  55. package/dist/es2019/components/Agent/ActionsCompiled.js +116 -0
  56. package/dist/es2019/components/Agent/AgentDeleteConfirmationModal.js +1 -2
  57. package/dist/es2019/components/Agent/AgentProfileCard.js +8 -1
  58. package/dist/es2019/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
  59. package/dist/es2019/components/Agent/AgentProfileCardCompiled.js +186 -0
  60. package/dist/es2019/components/Agent/AgentProfileCardResourced.js +2 -1
  61. package/dist/es2019/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
  62. package/dist/es2019/components/Agent/AgentProfileCardWrapper.js +8 -7
  63. package/dist/es2019/components/Agent/ConversationStarters.js +1 -3
  64. package/dist/es2019/components/Error/ErrorMessage.js +18 -8
  65. package/dist/es2019/components/Team/TeamProfileCardTrigger.js +1 -2
  66. package/dist/es2019/components/User/OverflowProfileCardButtons.js +18 -7
  67. package/dist/es2019/components/User/ProfileCard.js +72 -25
  68. package/dist/es2019/components/User/ProfileCardDetails.compiled.css +0 -1
  69. package/dist/es2019/components/User/ProfileCardDetails.js +3 -5
  70. package/dist/es2019/components/User/ProfileCardResourced.js +25 -4
  71. package/dist/es2019/components/User/ProfileCardTrigger.js +54 -13
  72. package/dist/es2019/components/User/ReportingLinesDetails.js +34 -10
  73. package/dist/es2019/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
  74. package/dist/es2019/components/User/ReportingLinesDetailsCompiled.js +96 -0
  75. package/dist/es2019/components/User/UserLoadingState.js +14 -4
  76. package/dist/es2019/components/common/LoadingState.js +16 -4
  77. package/dist/es2019/components/common/ProfileCardTrigger.js +26 -7
  78. package/dist/es2019/components/common/ProfileCardWrapper.compiled.css +1 -0
  79. package/dist/es2019/components/common/ProfileCardWrapper.js +11 -8
  80. package/dist/es2019/components/team-profile-card/team-actions/more-actions/index.js +1 -2
  81. package/dist/es2019/styled/CoverImage.compiled.css +2 -0
  82. package/dist/es2019/styled/CoverImage.js +4 -2
  83. package/dist/es2019/styled/Error.compiled.css +0 -2
  84. package/dist/es2019/styled/Error.js +6 -4
  85. package/dist/es2019/util/analytics.js +6 -2
  86. package/dist/esm/client/ProfileCardClient.js +2 -2
  87. package/dist/esm/client/UserProfileCardClient.js +46 -12
  88. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  89. package/dist/esm/client/getTeamFromAGG.js +1 -1
  90. package/dist/esm/components/Agent/Actions.js +5 -2
  91. package/dist/esm/components/Agent/ActionsCompiled.compiled.css +19 -0
  92. package/dist/esm/components/Agent/ActionsCompiled.js +131 -0
  93. package/dist/esm/components/Agent/AgentDeleteConfirmationModal.js +1 -2
  94. package/dist/esm/components/Agent/AgentProfileCard.js +8 -1
  95. package/dist/esm/components/Agent/AgentProfileCardCompiled.compiled.css +8 -0
  96. package/dist/esm/components/Agent/AgentProfileCardCompiled.js +233 -0
  97. package/dist/esm/components/Agent/AgentProfileCardResourced.js +2 -1
  98. package/dist/esm/components/Agent/AgentProfileCardWrapper.compiled.css +1 -0
  99. package/dist/esm/components/Agent/AgentProfileCardWrapper.js +8 -7
  100. package/dist/esm/components/Agent/ConversationStarters.js +1 -3
  101. package/dist/esm/components/Error/ErrorMessage.js +20 -8
  102. package/dist/esm/components/Team/TeamProfileCardTrigger.js +1 -2
  103. package/dist/esm/components/User/OverflowProfileCardButtons.js +23 -8
  104. package/dist/esm/components/User/ProfileCard.js +80 -28
  105. package/dist/esm/components/User/ProfileCardDetails.compiled.css +0 -1
  106. package/dist/esm/components/User/ProfileCardDetails.js +3 -5
  107. package/dist/esm/components/User/ProfileCardResourced.js +40 -16
  108. package/dist/esm/components/User/ProfileCardTrigger.js +53 -13
  109. package/dist/esm/components/User/ReportingLinesDetails.js +41 -12
  110. package/dist/esm/components/User/ReportingLinesDetailsCompiled.compiled.css +11 -0
  111. package/dist/esm/components/User/ReportingLinesDetailsCompiled.js +102 -0
  112. package/dist/esm/components/User/UserLoadingState.js +16 -4
  113. package/dist/esm/components/common/LoadingState.js +18 -4
  114. package/dist/esm/components/common/ProfileCardTrigger.js +30 -8
  115. package/dist/esm/components/common/ProfileCardWrapper.compiled.css +1 -0
  116. package/dist/esm/components/common/ProfileCardWrapper.js +11 -8
  117. package/dist/esm/components/team-profile-card/team-actions/more-actions/index.js +1 -2
  118. package/dist/esm/styled/CoverImage.compiled.css +2 -0
  119. package/dist/esm/styled/CoverImage.js +4 -2
  120. package/dist/esm/styled/Error.compiled.css +0 -2
  121. package/dist/esm/styled/Error.js +6 -4
  122. package/dist/esm/util/analytics.js +6 -2
  123. package/dist/types/client/ProfileCardClient.d.ts +2 -1
  124. package/dist/types/client/UserProfileCardClient.d.ts +2 -1
  125. package/dist/types/components/Agent/Actions.d.ts +10 -1
  126. package/dist/types/components/Agent/ActionsCompiled.d.ts +14 -0
  127. package/dist/types/components/Agent/AgentProfileCard.d.ts +13 -3
  128. package/dist/types/components/Agent/AgentProfileCardCompiled.d.ts +4 -0
  129. package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +12 -1
  130. package/dist/types/components/Error/ErrorMessage.d.ts +2 -0
  131. package/dist/types/components/User/ProfileCard.d.ts +3 -2
  132. package/dist/types/components/User/ProfileCardResourced.d.ts +4 -2
  133. package/dist/types/components/User/ReportingLinesDetails.d.ts +2 -2
  134. package/dist/types/components/User/ReportingLinesDetailsCompiled.d.ts +5 -0
  135. package/dist/types/components/User/UserLoadingState.d.ts +3 -1
  136. package/dist/types/components/User/lazyProfileCard.d.ts +1 -1
  137. package/dist/types/components/common/LoadingState.d.ts +3 -1
  138. package/dist/types/components/common/ProfileCardWrapper.d.ts +2 -1
  139. package/dist/types/components/common/types.d.ts +3 -0
  140. package/dist/types/types.d.ts +13 -6
  141. package/dist/types/util/analytics.d.ts +5 -0
  142. package/dist/types-ts4.5/client/ProfileCardClient.d.ts +2 -1
  143. package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +2 -1
  144. package/dist/types-ts4.5/components/Agent/Actions.d.ts +10 -1
  145. package/dist/types-ts4.5/components/Agent/ActionsCompiled.d.ts +14 -0
  146. package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +13 -3
  147. package/dist/types-ts4.5/components/Agent/AgentProfileCardCompiled.d.ts +4 -0
  148. package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +12 -1
  149. package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +2 -0
  150. package/dist/types-ts4.5/components/User/ProfileCard.d.ts +3 -2
  151. package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +4 -2
  152. package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +2 -2
  153. package/dist/types-ts4.5/components/User/ReportingLinesDetailsCompiled.d.ts +5 -0
  154. package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +3 -1
  155. package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +1 -1
  156. package/dist/types-ts4.5/components/common/LoadingState.d.ts +3 -1
  157. package/dist/types-ts4.5/components/common/ProfileCardWrapper.d.ts +2 -1
  158. package/dist/types-ts4.5/components/common/types.d.ts +3 -0
  159. package/dist/types-ts4.5/types.d.ts +13 -6
  160. package/dist/types-ts4.5/util/analytics.d.ts +5 -0
  161. package/package.json +20 -9
@@ -6,8 +6,7 @@ import { IconButton } from '@atlaskit/button/new';
6
6
  import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
7
7
  import { MenuGroup, Section } from '@atlaskit/menu';
8
8
  import Popup from '@atlaskit/popup';
9
- // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
10
- import { Box } from '@atlaskit/primitives';
9
+ import { Box } from '@atlaskit/primitives/compiled';
11
10
  import { messages } from './messages';
12
11
  export var MoreActions = function MoreActions(_ref) {
13
12
  var actions = _ref.actions,
@@ -6,7 +6,9 @@
6
6
  ._1e0c1txw{display:flex}
7
7
  ._1reo15vq{overflow-x:hidden}
8
8
  ._4cvr1h6o{align-items:center}
9
+ ._4t3i1osq{height:100%}
9
10
  ._4t3i1qr7{height:8pc}
10
11
  ._4t3i1wug{height:auto}
12
+ ._5ral1dfr{object-fit:cover}
11
13
  ._kqswh2mm{position:relative}
12
14
  ._qrwq12b0{border-top-right-radius:var(--ds-radius-small,4px)}
@@ -2,10 +2,12 @@
2
2
  import "./CoverImage.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useRef } from 'react';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  import { Box } from '@atlaskit/primitives/compiled';
6
7
  var styles = {
7
8
  container: "_1reo15vq _18m915vq _1bsb1osq _4t3i1qr7 _kqswh2mm _13li12b0 _qrwq12b0 _1e0c1txw _1bah1h6o _4cvr1h6o",
8
- image: "_1bsbnklw _4t3i1wug"
9
+ image: "_1bsbnklw _4t3i1wug",
10
+ imageNext: "_4t3i1osq _5ral1dfr"
9
11
  };
10
12
 
11
13
  /**
@@ -26,6 +28,6 @@ export var CoverImage = function CoverImage(_ref) {
26
28
  ref: imgRef,
27
29
  src: src,
28
30
  alt: alt,
29
- xcss: styles.image
31
+ xcss: fg('cover-header-image-team-profilecard') ? styles.imageNext : styles.image
30
32
  }));
31
33
  };
@@ -1,9 +1,7 @@
1
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
1
  ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
3
2
  ._19pku2gc{margin-top:var(--ds-space-100,8px)}
4
3
  ._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
5
4
  ._n3td1ejb{padding-bottom:var(--ds-space-300,24px)}
6
- ._syaz1fxt{color:var(--ds-text,#172b4d)}
7
5
  ._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
8
6
  ._u5f31ejb{padding-right:var(--ds-space-300,24px)}
9
7
  ._y3gn1h6o{text-align:center}
@@ -4,11 +4,11 @@ import "./Error.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
6
  import { cx } from '@atlaskit/css';
7
- import { Box } from '@atlaskit/primitives/compiled';
7
+ import { Box, Text } from '@atlaskit/primitives/compiled';
8
8
  import { N200 } from '@atlaskit/theme/colors';
9
9
  var styles = {
10
10
  errorWrapper: "_y3gn1h6o _ca0q1ejb _u5f31ejb _n3td1ejb _19bv1ejb",
11
- errorTitle: "_11c82smr _syaz1fxt _19pku2gc",
11
+ errorTitle: "_19pku2gc",
12
12
  teamErrorText: "_syaz1wmz _19pku2gc"
13
13
  };
14
14
  export var ErrorWrapper = function ErrorWrapper(props) {
@@ -18,8 +18,10 @@ export var ErrorWrapper = function ErrorWrapper(props) {
18
18
  };
19
19
  export var ErrorTitle = function ErrorTitle(props) {
20
20
  return /*#__PURE__*/React.createElement(Box, {
21
- xcss: cx(styles.errorTitle)
22
- }, props.children);
21
+ xcss: styles.errorTitle
22
+ }, /*#__PURE__*/React.createElement(Text, {
23
+ color: "color.text"
24
+ }, props.children));
23
25
  };
24
26
  export var TeamErrorText = function TeamErrorText(props) {
25
27
  return /*#__PURE__*/React.createElement(Box, {
@@ -5,6 +5,10 @@ import { getPageTime } from './performance';
5
5
 
6
6
  /** Below lines are copied from teams common analytics */
7
7
  var ANALYTICS_CHANNEL = 'peopleTeams';
8
+ export var PACKAGE_META_DATA = {
9
+ packageName: "@atlaskit/profilecard",
10
+ packageVersion: "0.0.0-development"
11
+ };
8
12
  var runItLater = function runItLater(cb) {
9
13
  var requestIdleCallback = window.requestIdleCallback;
10
14
  if (typeof requestIdleCallback === 'function') {
@@ -48,13 +52,13 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
48
52
  actionSubjectId: actionSubjectId,
49
53
  attributes: _objectSpread(_objectSpread({
50
54
  packageName: "@atlaskit/profilecard",
51
- packageVersion: "24.13.6"
55
+ packageVersion: "0.0.0-development"
52
56
  }, attributes), {}, {
53
57
  firedAt: Math.round(getPageTime())
54
58
  })
55
59
  };
56
60
  };
57
- var getActionSubject = function getActionSubject(type) {
61
+ export var getActionSubject = function getActionSubject(type) {
58
62
  switch (type) {
59
63
  case 'user':
60
64
  return USER_SUBJECT;
@@ -1,4 +1,5 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import type { FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
3
  import { type AgentIdType, type ClientOverrides, type ProfileClient, type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types';
3
4
  import RovoAgentCardClient from './RovoAgentCardClient';
4
5
  import TeamCentralCardClient from './TeamCentralCardClient';
@@ -15,7 +16,7 @@ declare class ProfileCardClient implements ProfileClient {
15
16
  rovoAgentClient: RovoAgentCardClient;
16
17
  constructor(config: ProfileClientOptions, clients?: ClientOverrides);
17
18
  flushCache(): void;
18
- getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
19
+ getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<any>;
19
20
  getTeamProfile(teamId: string, orgId?: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<import("../types").Team>;
20
21
  getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
21
22
  getTeamCentralBaseUrl(teamCentralScopes?: TeamCentralScopes): Promise<string | undefined>;
@@ -1,4 +1,5 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
3
  import type { ApiClientResponse, ProfileCardClientData, ProfileClientOptions } from '../types';
3
4
  import CachingClient from './CachingClient';
4
5
  /**
@@ -20,5 +21,5 @@ export default class UserProfileCardClient extends CachingClient<any> {
20
21
  options: ProfileClientOptions;
21
22
  constructor(options: ProfileClientOptions);
22
23
  makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
23
- getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
24
+ getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<any>;
24
25
  }
@@ -10,5 +10,14 @@ type AgentActionsProps = {
10
10
  onViewFullProfileClick: () => void;
11
11
  resourceClient: ProfileClient;
12
12
  };
13
- export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
13
+ export declare const AgentActions: React.FC<{
14
+ agent: RovoAgentProfileCardInfo;
15
+ onEditAgent: () => void;
16
+ onCopyAgent: () => void;
17
+ onDuplicateAgent: () => void;
18
+ onDeleteAgent: () => void;
19
+ onChatClick: (event: React.MouseEvent) => void;
20
+ onViewFullProfileClick: () => void;
21
+ resourceClient: ProfileClient;
22
+ } & AgentActionsProps>;
14
23
  export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type ProfileClient, type RovoAgentProfileCardInfo } from '../../types';
3
+ type AgentActionsProps = {
4
+ agent: RovoAgentProfileCardInfo;
5
+ onEditAgent: () => void;
6
+ onCopyAgent: () => void;
7
+ onDuplicateAgent: () => void;
8
+ onDeleteAgent: () => void;
9
+ onChatClick: (event: React.MouseEvent) => void;
10
+ onViewFullProfileClick: () => void;
11
+ resourceClient: ProfileClient;
12
+ };
13
+ export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
14
+ export {};
@@ -1,4 +1,14 @@
1
1
  import React from 'react';
2
- import { type AgentProfileCardProps } from '../../types';
3
- declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
4
- export default AgentProfileCard;
2
+ declare const AgentProfileCardExport: React.FC<{
3
+ resourceClient: import("../../types").ProfileClient;
4
+ agent?: import("../../types").RovoAgentProfileCardInfo;
5
+ isLoading?: boolean;
6
+ hasError?: boolean;
7
+ cloudId?: string;
8
+ errorType?: import("../../types").ProfileCardErrorType;
9
+ addFlag?: (flag: import("../../types").Flag) => void;
10
+ onDeleteAgent?: (agentId: string) => {
11
+ restore: () => void;
12
+ };
13
+ } & import("../../types").AgentActionsType>;
14
+ export default AgentProfileCardExport;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type AgentProfileCardProps } from '../../types';
3
+ declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
4
+ export default AgentProfileCard;
@@ -1 +1,12 @@
1
- export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: import("../../types").AgentProfileCardProps) => import("react").JSX.Element>;
1
+ export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<import("react").FC<{
2
+ resourceClient: import("../../types").ProfileClient;
3
+ agent?: import("../../types").RovoAgentProfileCardInfo;
4
+ isLoading?: boolean;
5
+ hasError?: boolean;
6
+ cloudId?: string;
7
+ errorType?: import("../..").ProfileCardErrorType;
8
+ addFlag?: (flag: import("../../types").Flag) => void;
9
+ onDeleteAgent?: (agentId: string) => {
10
+ restore: () => void;
11
+ };
12
+ } & import("../../types").AgentActionsType>>;
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import type { AnalyticsEventAttributes } from '@atlaskit/teams-app-internal-analytics';
3
4
  import { type ProfileCardErrorType } from '../../types';
4
5
  interface Props {
5
6
  reload?: () => void | undefined;
6
7
  errorType?: ProfileCardErrorType;
7
8
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
9
+ fireAnalyticsNext: <K extends keyof AnalyticsEventAttributes>(eventKey: K, attributes: AnalyticsEventAttributes[K]) => void;
8
10
  }
9
11
  declare const ErrorMessage: (props: Props) => React.JSX.Element;
10
12
  export default ErrorMessage;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { type AnalyticsProps, type ProfilecardProps } from '../../types';
2
+ import { type AnalyticsProps, type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export declare const ProfilecardInternal: (props: ProfilecardProps & AnalyticsProps) => React.JSX.Element | null;
4
- declare const _default: React.ForwardRefExoticComponent<Omit<ProfilecardProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
4
+ export declare const LoadingView: ({ fireAnalyticsWithDuration, fireAnalyticsWithDurationNext, }: AnalyticsWithDurationProps) => React.JSX.Element;
5
+ declare const _default: React.FC<ProfilecardProps & AnalyticsProps & Omit<Omit<ProfilecardProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
5
6
  export default _default;
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
3
4
  import { type AnalyticsProps, type ProfileCardAction, type ProfileCardClientData, type ProfileCardResourcedProps, type ProfileCardResourcedState, type TeamCentralReportingLinesData } from '../../types';
4
5
  declare class ProfileCardResourced extends React.PureComponent<ProfileCardResourcedProps & AnalyticsProps, ProfileCardResourcedState> {
5
6
  static defaultProps: Partial<ProfileCardResourcedProps>;
6
7
  _isMounted: boolean;
7
8
  state: ProfileCardResourcedState;
8
9
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
10
+ fireAnalyticsNext: FireEventType;
9
11
  componentDidMount(): void;
10
12
  componentDidUpdate(prevProps: ProfileCardResourcedProps): void;
11
13
  componentWillUnmount(): void;
@@ -18,7 +20,7 @@ declare class ProfileCardResourced extends React.PureComponent<ProfileCardResour
18
20
  render(): React.ReactNode;
19
21
  }
20
22
  export declare const ProfileCardResourcedInternal: typeof ProfileCardResourced;
21
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
23
+ declare const _default: React.FC<ProfileCardResourcedProps & Omit<Pick<Omit<ProfileCardResourcedProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
22
24
  cloudId?: string | undefined;
23
25
  resourceClient?: import("../../types").ProfileClient | undefined;
24
26
  actions?: ProfileCardAction[] | undefined;
@@ -29,5 +31,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardRes
29
31
  userId?: string | undefined;
30
32
  reportingLinesProfileUrl?: string | undefined;
31
33
  onReportingLinesClick?: ((user: import("../../types").ReportingLinesUser) => void) | undefined;
32
- } & {} & React.RefAttributes<any>>;
34
+ } & {} & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
33
35
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
- declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
5
- export default ReportingLinesDetails;
4
+ declare const ReportingLinesDetailsExport: React.FC<Pick<ProfilecardProps, "reportingLines" | "reportingLinesProfileUrl" | "onReportingLinesClick"> & AnalyticsWithDurationProps>;
5
+ export default ReportingLinesDetailsExport;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
+ export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
+ declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
5
+ export default ReportingLinesDetails;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
3
4
  interface AnalyticsProps {
4
5
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
6
+ fireAnalyticsNext: FireEventType;
5
7
  }
6
- declare const UserLoadingState: ({ fireAnalytics }: AnalyticsProps) => React.JSX.Element;
8
+ declare const UserLoadingState: ({ fireAnalytics, fireAnalyticsNext }: AnalyticsProps) => React.JSX.Element;
7
9
  export default UserLoadingState;
@@ -1 +1 @@
1
- export declare const ProfileCardLazy: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("../..").ProfilecardProps & import("../../types").AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>>>;
1
+ export declare const ProfileCardLazy: import("react").LazyExoticComponent<import("react").FC<import("../..").ProfilecardProps & import("../../types").AnalyticsProps & Omit<Omit<import("../..").ProfilecardProps & import("../../types").AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<any>>>;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import type { AnalyticsEventAttributes } from '@atlaskit/teams-app-internal-analytics';
3
4
  import { type ProfileType } from '../../types';
4
5
  interface AnalyticsProps {
5
6
  fireAnalytics?: (payload: AnalyticsEventPayload) => void;
7
+ fireAnalyticsNext?: <K extends keyof AnalyticsEventAttributes>(eventKey: K, attributes: AnalyticsEventAttributes[K]) => void;
6
8
  profileType: ProfileType;
7
9
  }
8
- export declare const LoadingState: ({ fireAnalytics, profileType }: AnalyticsProps) => React.JSX.Element;
10
+ export declare const LoadingState: ({ fireAnalytics, fireAnalyticsNext, profileType }: AnalyticsProps) => React.JSX.Element;
9
11
  export {};
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
- export declare const ProfileCardWrapper: ({ children }: {
2
+ export declare const ProfileCardWrapper: ({ children, testId, }: {
3
3
  children: React.ReactNode;
4
+ testId?: string;
4
5
  }) => React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
2
  import { type PopupProps } from '@atlaskit/popup';
3
+ import type { AnalyticsEventAttributes } from '@atlaskit/teams-app-internal-analytics';
3
4
  import { type ProfileCardErrorType, type ProfileType } from '../../types';
4
5
  export type ProfileCardTriggerProps<T> = {
5
6
  trigger: 'hover' | 'click';
@@ -12,5 +13,7 @@ export type ProfileCardTriggerProps<T> = {
12
13
  }) => React.ReactNode;
13
14
  fetchProfile?: () => Promise<T>;
14
15
  profileCardType: ProfileType;
16
+ testId?: string;
15
17
  fireAnalytics?: (payload: AnalyticsEventPayload) => void;
18
+ fireAnalyticsNext?: <K extends keyof AnalyticsEventAttributes>(eventKey: K, attributes: AnalyticsEventAttributes[K]) => void;
16
19
  } & Omit<PopupProps, 'trigger' | 'isOpen' | 'content'>;
@@ -2,6 +2,7 @@ import type React from 'react';
2
2
  import { type IntlShape } from 'react-intl-next';
3
3
  import { type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  import { type ConversationStarter } from '@atlaskit/rovo-agent-components';
5
+ import type { AnalyticsEventAttributes, FireEventType, useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics';
5
6
  import { type TeamCentralScopes } from './client/ProfileCardClient';
6
7
  import type RovoAgentCardClient from './client/RovoAgentCardClient';
7
8
  import { type default as TeamCentralCardClient, type TeamCentralCardClientOptions } from './client/TeamCentralCardClient';
@@ -428,12 +429,18 @@ export interface ProfilecardProps {
428
429
  agentActions?: AgentActionsType;
429
430
  }
430
431
  export type AnalyticsFromDuration = (duration: number) => AnalyticsEventPayload;
432
+ export type AnalyticsFromDurationNext = <K extends keyof AnalyticsEventAttributes>(eventKey: K, duration: number) => {
433
+ attributes: AnalyticsEventAttributes[K];
434
+ };
431
435
  export type AnalyticsFunction = (generator: AnalyticsFromDuration) => void;
436
+ export type AnalyticsFunctionNext = <K extends keyof AnalyticsEventAttributes>(eventKey: K, generator: (duration: number) => AnalyticsEventAttributes[K]) => void;
432
437
  export interface AnalyticsProps {
433
438
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
439
+ fireEvent?: ReturnType<typeof useAnalyticsEvents>['fireEvent'];
434
440
  }
435
441
  export interface AnalyticsWithDurationProps {
436
442
  fireAnalyticsWithDuration: AnalyticsFunction;
443
+ fireAnalyticsWithDurationNext: AnalyticsFunctionNext;
437
444
  }
438
445
  export interface TeamProfilecardProps extends TeamProfilecardCoreProps {
439
446
  /** Indicates whether the team's details are still loading. */
@@ -468,15 +475,15 @@ export type AgentPermissions = {
468
475
  };
469
476
  export interface ProfileClient {
470
477
  flushCache: () => void;
471
- getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void) => Promise<ProfileCardClientData>;
472
- getTeamProfile: (teamId: string, orgId?: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<Team>;
478
+ getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType) => Promise<ProfileCardClientData>;
479
+ getTeamProfile: (teamId: string, orgId?: string, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<Team>;
473
480
  getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
474
481
  shouldShowGiveKudos: () => Promise<boolean>;
475
482
  getTeamCentralBaseUrl: (teamCentralScopes?: TeamCentralScopes) => Promise<string | undefined>;
476
- getRovoAgentProfile: (id: AgentIdType, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<RovoAgent>;
477
- getRovoAgentPermissions: (id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<AgentPermissions>;
478
- deleteAgent: (id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<void>;
479
- setFavouriteAgent: (id: string, isFavourite: boolean, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<void>;
483
+ getRovoAgentProfile: (id: AgentIdType, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<RovoAgent>;
484
+ getRovoAgentPermissions: (id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<AgentPermissions>;
485
+ deleteAgent: (id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<void>;
486
+ setFavouriteAgent: (id: string, isFavourite: boolean, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<void>;
480
487
  }
481
488
  export type ProfilecardTriggerPosition = 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
482
489
  export type ProfileCardErrorType = {
@@ -2,6 +2,10 @@ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  import { type ErrorAttributes } from '../client/types';
4
4
  import { type ProfileType } from '../types';
5
+ export declare const PACKAGE_META_DATA: {
6
+ packageName: string;
7
+ packageVersion: string;
8
+ };
5
9
  type GenericAttributes = Record<string, string | number | boolean | undefined | string[]> | ErrorAttributes;
6
10
  interface AnalyticsEvent {
7
11
  action?: string;
@@ -16,6 +20,7 @@ interface AnalyticsEvent {
16
20
  * @deprecated Analytics events should be fired using the `@atlaskit/teams-app-internal-analytics` package.
17
21
  */
18
22
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
23
+ export declare const getActionSubject: (type: string) => "teamProfileCard" | "profilecard" | "rovoAgentProfilecard" | "user";
19
24
  export declare const cardTriggered: (type: ProfileType, method: "hover" | "click", teamId?: string) => AnalyticsEventPayload;
20
25
  export declare const teamRequestAnalytics: (action: "triggered" | "succeeded" | "failed", attributes?: {
21
26
  duration: number;
@@ -1,4 +1,5 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import type { FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
3
  import { type AgentIdType, type ClientOverrides, type ProfileClient, type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types';
3
4
  import RovoAgentCardClient from './RovoAgentCardClient';
4
5
  import TeamCentralCardClient from './TeamCentralCardClient';
@@ -15,7 +16,7 @@ declare class ProfileCardClient implements ProfileClient {
15
16
  rovoAgentClient: RovoAgentCardClient;
16
17
  constructor(config: ProfileClientOptions, clients?: ClientOverrides);
17
18
  flushCache(): void;
18
- getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
19
+ getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<any>;
19
20
  getTeamProfile(teamId: string, orgId?: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<import("../types").Team>;
20
21
  getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
21
22
  getTeamCentralBaseUrl(teamCentralScopes?: TeamCentralScopes): Promise<string | undefined>;
@@ -1,4 +1,5 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
3
  import type { ApiClientResponse, ProfileCardClientData, ProfileClientOptions } from '../types';
3
4
  import CachingClient from './CachingClient';
4
5
  /**
@@ -20,5 +21,5 @@ export default class UserProfileCardClient extends CachingClient<any> {
20
21
  options: ProfileClientOptions;
21
22
  constructor(options: ProfileClientOptions);
22
23
  makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
23
- getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
24
+ getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType): Promise<any>;
24
25
  }
@@ -10,5 +10,14 @@ type AgentActionsProps = {
10
10
  onViewFullProfileClick: () => void;
11
11
  resourceClient: ProfileClient;
12
12
  };
13
- export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
13
+ export declare const AgentActions: React.FC<{
14
+ agent: RovoAgentProfileCardInfo;
15
+ onEditAgent: () => void;
16
+ onCopyAgent: () => void;
17
+ onDuplicateAgent: () => void;
18
+ onDeleteAgent: () => void;
19
+ onChatClick: (event: React.MouseEvent) => void;
20
+ onViewFullProfileClick: () => void;
21
+ resourceClient: ProfileClient;
22
+ } & AgentActionsProps>;
14
23
  export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type ProfileClient, type RovoAgentProfileCardInfo } from '../../types';
3
+ type AgentActionsProps = {
4
+ agent: RovoAgentProfileCardInfo;
5
+ onEditAgent: () => void;
6
+ onCopyAgent: () => void;
7
+ onDuplicateAgent: () => void;
8
+ onDeleteAgent: () => void;
9
+ onChatClick: (event: React.MouseEvent) => void;
10
+ onViewFullProfileClick: () => void;
11
+ resourceClient: ProfileClient;
12
+ };
13
+ export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, }: AgentActionsProps) => React.JSX.Element;
14
+ export {};
@@ -1,4 +1,14 @@
1
1
  import React from 'react';
2
- import { type AgentProfileCardProps } from '../../types';
3
- declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
4
- export default AgentProfileCard;
2
+ declare const AgentProfileCardExport: React.FC<{
3
+ resourceClient: import("../../types").ProfileClient;
4
+ agent?: import("../../types").RovoAgentProfileCardInfo;
5
+ isLoading?: boolean;
6
+ hasError?: boolean;
7
+ cloudId?: string;
8
+ errorType?: import("../../types").ProfileCardErrorType;
9
+ addFlag?: (flag: import("../../types").Flag) => void;
10
+ onDeleteAgent?: (agentId: string) => {
11
+ restore: () => void;
12
+ };
13
+ } & import("../../types").AgentActionsType>;
14
+ export default AgentProfileCardExport;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { type AgentProfileCardProps } from '../../types';
3
+ declare const AgentProfileCard: ({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: AgentProfileCardProps) => React.JSX.Element;
4
+ export default AgentProfileCard;
@@ -1 +1,12 @@
1
- export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, }: import("../../types").AgentProfileCardProps) => import("react").JSX.Element>;
1
+ export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<import("react").FC<{
2
+ resourceClient: import("../../types").ProfileClient;
3
+ agent?: import("../../types").RovoAgentProfileCardInfo;
4
+ isLoading?: boolean;
5
+ hasError?: boolean;
6
+ cloudId?: string;
7
+ errorType?: import("../..").ProfileCardErrorType;
8
+ addFlag?: (flag: import("../../types").Flag) => void;
9
+ onDeleteAgent?: (agentId: string) => {
10
+ restore: () => void;
11
+ };
12
+ } & import("../../types").AgentActionsType>>;
@@ -1,10 +1,12 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import type { AnalyticsEventAttributes } from '@atlaskit/teams-app-internal-analytics';
3
4
  import { type ProfileCardErrorType } from '../../types';
4
5
  interface Props {
5
6
  reload?: () => void | undefined;
6
7
  errorType?: ProfileCardErrorType;
7
8
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
9
+ fireAnalyticsNext: <K extends keyof AnalyticsEventAttributes>(eventKey: K, attributes: AnalyticsEventAttributes[K]) => void;
8
10
  }
9
11
  declare const ErrorMessage: (props: Props) => React.JSX.Element;
10
12
  export default ErrorMessage;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { type AnalyticsProps, type ProfilecardProps } from '../../types';
2
+ import { type AnalyticsProps, type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export declare const ProfilecardInternal: (props: ProfilecardProps & AnalyticsProps) => React.JSX.Element | null;
4
- declare const _default: React.ForwardRefExoticComponent<Omit<ProfilecardProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
4
+ export declare const LoadingView: ({ fireAnalyticsWithDuration, fireAnalyticsWithDurationNext, }: AnalyticsWithDurationProps) => React.JSX.Element;
5
+ declare const _default: React.FC<ProfilecardProps & AnalyticsProps & Omit<Omit<ProfilecardProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
5
6
  export default _default;
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
3
4
  import { type AnalyticsProps, type ProfileCardAction, type ProfileCardClientData, type ProfileCardResourcedProps, type ProfileCardResourcedState, type TeamCentralReportingLinesData } from '../../types';
4
5
  declare class ProfileCardResourced extends React.PureComponent<ProfileCardResourcedProps & AnalyticsProps, ProfileCardResourcedState> {
5
6
  static defaultProps: Partial<ProfileCardResourcedProps>;
6
7
  _isMounted: boolean;
7
8
  state: ProfileCardResourcedState;
8
9
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
10
+ fireAnalyticsNext: FireEventType;
9
11
  componentDidMount(): void;
10
12
  componentDidUpdate(prevProps: ProfileCardResourcedProps): void;
11
13
  componentWillUnmount(): void;
@@ -18,7 +20,7 @@ declare class ProfileCardResourced extends React.PureComponent<ProfileCardResour
18
20
  render(): React.ReactNode;
19
21
  }
20
22
  export declare const ProfileCardResourcedInternal: typeof ProfileCardResourced;
21
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
23
+ declare const _default: React.FC<ProfileCardResourcedProps & Omit<Pick<Omit<ProfileCardResourcedProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
22
24
  cloudId?: string | undefined;
23
25
  resourceClient?: import("../../types").ProfileClient | undefined;
24
26
  actions?: ProfileCardAction[] | undefined;
@@ -29,5 +31,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardRes
29
31
  userId?: string | undefined;
30
32
  reportingLinesProfileUrl?: string | undefined;
31
33
  onReportingLinesClick?: ((user: import("../../types").ReportingLinesUser) => void) | undefined;
32
- } & {} & React.RefAttributes<any>>;
34
+ } & {} & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
33
35
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
- declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
5
- export default ReportingLinesDetails;
4
+ declare const ReportingLinesDetailsExport: React.FC<Pick<ProfilecardProps, "reportingLines" | "reportingLinesProfileUrl" | "onReportingLinesClick"> & AnalyticsWithDurationProps>;
5
+ export default ReportingLinesDetailsExport;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
+ export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
+ declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => React.JSX.Element;
5
+ export default ReportingLinesDetails;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
3
4
  interface AnalyticsProps {
4
5
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
6
+ fireAnalyticsNext: FireEventType;
5
7
  }
6
- declare const UserLoadingState: ({ fireAnalytics }: AnalyticsProps) => React.JSX.Element;
8
+ declare const UserLoadingState: ({ fireAnalytics, fireAnalyticsNext }: AnalyticsProps) => React.JSX.Element;
7
9
  export default UserLoadingState;
@@ -1 +1 @@
1
- export declare const ProfileCardLazy: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("../..").ProfilecardProps & import("../../types").AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>>>;
1
+ export declare const ProfileCardLazy: import("react").LazyExoticComponent<import("react").FC<import("../..").ProfilecardProps & import("../../types").AnalyticsProps & Omit<Omit<import("../..").ProfilecardProps & import("../../types").AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<any>>>;