@atlaskit/profilecard 24.13.6 → 24.14.0

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 (142) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/__tests__/vr-tests/__snapshots__/agent-profilecard/agent-profile-card-example--default.png +0 -0
  3. package/__tests__/vr-tests/__snapshots__/user-profilecard/alternate-actions--default.png +0 -0
  4. package/__tests__/vr-tests/__snapshots__/user-profilecard/best-case-profile--default.png +0 -0
  5. package/__tests__/vr-tests/__snapshots__/user-profilecard/bot-case-profile--default.png +0 -0
  6. package/__tests__/vr-tests/__snapshots__/user-profilecard/error-state--default.png +0 -0
  7. package/__tests__/vr-tests/__snapshots__/user-profilecard/error-state-not-found--default.png +0 -0
  8. package/__tests__/vr-tests/__snapshots__/user-profilecard/worst-case-profile--default.png +0 -0
  9. package/__tests__/vr-tests/agent-profilecard.vr.tsx +5 -0
  10. package/__tests__/vr-tests/user-profilecard.vr.tsx +17 -0
  11. package/afm-cc/tsconfig.json +6 -0
  12. package/afm-dev-agents/tsconfig.json +6 -0
  13. package/afm-jira/tsconfig.json +6 -0
  14. package/afm-passionfruit/tsconfig.json +6 -0
  15. package/afm-post-office/tsconfig.json +6 -0
  16. package/afm-rovo-extension/tsconfig.json +6 -0
  17. package/afm-townsquare/tsconfig.json +6 -0
  18. package/dist/cjs/client/ProfileCardClient.js +2 -2
  19. package/dist/cjs/client/UserProfileCardClient.js +45 -11
  20. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  21. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  22. package/dist/cjs/components/Agent/AgentProfileCard.js +3 -0
  23. package/dist/cjs/components/Agent/AgentProfileCardResourced.js +2 -1
  24. package/dist/cjs/components/Error/ErrorMessage.js +18 -7
  25. package/dist/cjs/components/User/OverflowProfileCardButtons.js +22 -7
  26. package/dist/cjs/components/User/ProfileCard.js +80 -28
  27. package/dist/cjs/components/User/ProfileCardDetails.js +3 -2
  28. package/dist/cjs/components/User/ProfileCardResourced.js +40 -16
  29. package/dist/cjs/components/User/ProfileCardTrigger.js +53 -13
  30. package/dist/cjs/components/User/ReportingLinesDetails.js +37 -12
  31. package/dist/cjs/components/User/UserLoadingState.js +15 -3
  32. package/dist/cjs/components/common/LoadingState.js +17 -3
  33. package/dist/cjs/components/common/ProfileCardTrigger.js +29 -7
  34. package/dist/cjs/components/common/ProfileCardWrapper.js +4 -2
  35. package/dist/cjs/components/team-profile-card/main.js +1 -1
  36. package/dist/cjs/components/team-profile-card/team-connections/main.js +3 -19
  37. package/dist/cjs/components/team-profile-card/team-containers-skeleton/index.js +1 -1
  38. package/dist/cjs/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
  39. package/dist/cjs/mocks/mock-profile-client.js +10 -0
  40. package/dist/cjs/mocks/profile-data.js +2 -2
  41. package/dist/cjs/mocks/reporting-lines-data.js +4 -3
  42. package/dist/cjs/styled/Card.js +1 -1
  43. package/dist/cjs/styled/CoverImage.js +1 -1
  44. package/dist/cjs/styled/Error.js +1 -1
  45. package/dist/cjs/styled/ReportingLines.js +1 -1
  46. package/dist/cjs/styled/TeamCard.js +1 -1
  47. package/dist/cjs/styled/TeamTrigger.js +1 -1
  48. package/dist/cjs/styled/UserTrigger.js +1 -1
  49. package/dist/cjs/util/analytics.js +7 -3
  50. package/dist/es2019/client/ProfileCardClient.js +2 -2
  51. package/dist/es2019/client/UserProfileCardClient.js +50 -13
  52. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  53. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  54. package/dist/es2019/components/Agent/AgentProfileCard.js +3 -0
  55. package/dist/es2019/components/Agent/AgentProfileCardResourced.js +2 -1
  56. package/dist/es2019/components/Error/ErrorMessage.js +17 -6
  57. package/dist/es2019/components/User/OverflowProfileCardButtons.js +18 -7
  58. package/dist/es2019/components/User/ProfileCard.js +72 -25
  59. package/dist/es2019/components/User/ProfileCardDetails.js +3 -2
  60. package/dist/es2019/components/User/ProfileCardResourced.js +25 -4
  61. package/dist/es2019/components/User/ProfileCardTrigger.js +55 -14
  62. package/dist/es2019/components/User/ReportingLinesDetails.js +31 -10
  63. package/dist/es2019/components/User/UserLoadingState.js +14 -4
  64. package/dist/es2019/components/common/LoadingState.js +16 -4
  65. package/dist/es2019/components/common/ProfileCardTrigger.js +26 -7
  66. package/dist/es2019/components/common/ProfileCardWrapper.js +4 -2
  67. package/dist/es2019/components/team-profile-card/main.js +1 -1
  68. package/dist/es2019/components/team-profile-card/team-connections/main.js +3 -18
  69. package/dist/es2019/components/team-profile-card/team-containers-skeleton/index.js +1 -1
  70. package/dist/es2019/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
  71. package/dist/es2019/mocks/mock-profile-client.js +6 -0
  72. package/dist/es2019/mocks/profile-data.js +1 -1
  73. package/dist/es2019/mocks/reporting-lines-data.js +2 -2
  74. package/dist/es2019/styled/Card.js +1 -1
  75. package/dist/es2019/styled/CoverImage.js +1 -1
  76. package/dist/es2019/styled/Error.js +1 -1
  77. package/dist/es2019/styled/ReportingLines.js +1 -1
  78. package/dist/es2019/styled/TeamCard.js +1 -1
  79. package/dist/es2019/styled/TeamTrigger.js +1 -1
  80. package/dist/es2019/styled/UserTrigger.js +1 -1
  81. package/dist/es2019/util/analytics.js +6 -2
  82. package/dist/esm/client/ProfileCardClient.js +2 -2
  83. package/dist/esm/client/UserProfileCardClient.js +46 -12
  84. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  85. package/dist/esm/client/getTeamFromAGG.js +1 -1
  86. package/dist/esm/components/Agent/AgentProfileCard.js +3 -0
  87. package/dist/esm/components/Agent/AgentProfileCardResourced.js +2 -1
  88. package/dist/esm/components/Error/ErrorMessage.js +19 -6
  89. package/dist/esm/components/User/OverflowProfileCardButtons.js +23 -8
  90. package/dist/esm/components/User/ProfileCard.js +80 -28
  91. package/dist/esm/components/User/ProfileCardDetails.js +3 -2
  92. package/dist/esm/components/User/ProfileCardResourced.js +40 -16
  93. package/dist/esm/components/User/ProfileCardTrigger.js +54 -14
  94. package/dist/esm/components/User/ReportingLinesDetails.js +38 -12
  95. package/dist/esm/components/User/UserLoadingState.js +16 -4
  96. package/dist/esm/components/common/LoadingState.js +18 -4
  97. package/dist/esm/components/common/ProfileCardTrigger.js +30 -8
  98. package/dist/esm/components/common/ProfileCardWrapper.js +4 -2
  99. package/dist/esm/components/team-profile-card/main.js +1 -1
  100. package/dist/esm/components/team-profile-card/team-connections/main.js +3 -18
  101. package/dist/esm/components/team-profile-card/team-containers-skeleton/index.js +1 -1
  102. package/dist/esm/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.js +1 -1
  103. package/dist/esm/mocks/mock-profile-client.js +10 -0
  104. package/dist/esm/mocks/profile-data.js +1 -1
  105. package/dist/esm/mocks/reporting-lines-data.js +2 -2
  106. package/dist/esm/styled/Card.js +1 -1
  107. package/dist/esm/styled/CoverImage.js +1 -1
  108. package/dist/esm/styled/Error.js +1 -1
  109. package/dist/esm/styled/ReportingLines.js +1 -1
  110. package/dist/esm/styled/TeamCard.js +1 -1
  111. package/dist/esm/styled/TeamTrigger.js +1 -1
  112. package/dist/esm/styled/UserTrigger.js +1 -1
  113. package/dist/esm/util/analytics.js +6 -2
  114. package/dist/types/client/ProfileCardClient.d.ts +2 -1
  115. package/dist/types/client/TeamCentralCardClient.d.ts +2 -2
  116. package/dist/types/client/UserProfileCardClient.d.ts +2 -1
  117. package/dist/types/components/Error/ErrorMessage.d.ts +2 -0
  118. package/dist/types/components/User/ProfileCard.d.ts +3 -2
  119. package/dist/types/components/User/ProfileCardResourced.d.ts +4 -2
  120. package/dist/types/components/User/UserLoadingState.d.ts +3 -1
  121. package/dist/types/components/User/lazyProfileCard.d.ts +1 -1
  122. package/dist/types/components/common/LoadingState.d.ts +3 -1
  123. package/dist/types/components/common/ProfileCardWrapper.d.ts +2 -1
  124. package/dist/types/components/common/types.d.ts +3 -0
  125. package/dist/types/mocks/profile-data.d.ts +1 -0
  126. package/dist/types/types.d.ts +13 -6
  127. package/dist/types/util/analytics.d.ts +5 -0
  128. package/dist/types-ts4.5/client/ProfileCardClient.d.ts +2 -1
  129. package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +2 -2
  130. package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +2 -1
  131. package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +2 -0
  132. package/dist/types-ts4.5/components/User/ProfileCard.d.ts +3 -2
  133. package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +4 -2
  134. package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +3 -1
  135. package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +1 -1
  136. package/dist/types-ts4.5/components/common/LoadingState.d.ts +3 -1
  137. package/dist/types-ts4.5/components/common/ProfileCardWrapper.d.ts +2 -1
  138. package/dist/types-ts4.5/components/common/types.d.ts +3 -0
  139. package/dist/types-ts4.5/mocks/profile-data.d.ts +1 -0
  140. package/dist/types-ts4.5/types.d.ts +13 -6
  141. package/dist/types-ts4.5/util/analytics.d.ts +5 -0
  142. package/package.json +12 -10
@@ -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,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'>;
@@ -1,3 +1,4 @@
1
+ export declare const avatarImages: string[];
1
2
  declare const profiles: ({
2
3
  User: {
3
4
  avatarUrl: string;
@@ -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';
@@ -434,12 +435,18 @@ export interface ProfilecardProps {
434
435
  agentActions?: AgentActionsType;
435
436
  }
436
437
  export type AnalyticsFromDuration = (duration: number) => AnalyticsEventPayload;
438
+ export type AnalyticsFromDurationNext = <K extends keyof AnalyticsEventAttributes>(eventKey: K, duration: number) => {
439
+ attributes: AnalyticsEventAttributes[K];
440
+ };
437
441
  export type AnalyticsFunction = (generator: AnalyticsFromDuration) => void;
442
+ export type AnalyticsFunctionNext = <K extends keyof AnalyticsEventAttributes>(eventKey: K, generator: (duration: number) => AnalyticsEventAttributes[K]) => void;
438
443
  export interface AnalyticsProps {
439
444
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
445
+ fireEvent?: ReturnType<typeof useAnalyticsEvents>['fireEvent'];
440
446
  }
441
447
  export interface AnalyticsWithDurationProps {
442
448
  fireAnalyticsWithDuration: AnalyticsFunction;
449
+ fireAnalyticsWithDurationNext: AnalyticsFunctionNext;
443
450
  }
444
451
  export interface TeamProfilecardProps extends TeamProfilecardCoreProps {
445
452
  /** Indicates whether the team's details are still loading. */
@@ -474,15 +481,15 @@ export type AgentPermissions = {
474
481
  };
475
482
  export interface ProfileClient {
476
483
  flushCache: () => void;
477
- getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void) => Promise<ProfileCardClientData>;
478
- getTeamProfile: (teamId: string, orgId?: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<Team>;
484
+ getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void, analyticsNext?: FireEventType) => Promise<ProfileCardClientData>;
485
+ getTeamProfile: (teamId: string, orgId?: string, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<Team>;
479
486
  getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
480
487
  shouldShowGiveKudos: () => Promise<boolean>;
481
488
  getTeamCentralBaseUrl: (teamCentralScopes?: TeamCentralScopes) => Promise<string | undefined>;
482
- getRovoAgentProfile: (id: AgentIdType, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<RovoAgent>;
483
- getRovoAgentPermissions: (id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<AgentPermissions>;
484
- deleteAgent: (id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<void>;
485
- setFavouriteAgent: (id: string, isFavourite: boolean, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<void>;
489
+ getRovoAgentProfile: (id: AgentIdType, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<RovoAgent>;
490
+ getRovoAgentPermissions: (id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<AgentPermissions>;
491
+ deleteAgent: (id: string, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<void>;
492
+ setFavouriteAgent: (id: string, isFavourite: boolean, fireAnalytics?: (event: AnalyticsEventPayload) => void, fireAnalyticsNext?: FireEventType) => Promise<void>;
486
493
  }
487
494
  export type ProfilecardTriggerPosition = 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
488
495
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "24.13.6",
3
+ "version": "24.14.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,22 +51,24 @@
51
51
  "@atlaskit/feature-gate-js-client": "^5.5.0",
52
52
  "@atlaskit/give-kudos": "^4.3.0",
53
53
  "@atlaskit/heading": "^5.2.0",
54
- "@atlaskit/icon": "^28.2.0",
54
+ "@atlaskit/icon": "^28.3.0",
55
55
  "@atlaskit/link": "^3.2.0",
56
56
  "@atlaskit/logo": "^19.7.0",
57
57
  "@atlaskit/lozenge": "^13.0.0",
58
58
  "@atlaskit/menu": "^8.4.0",
59
- "@atlaskit/modal-dialog": "^14.3.0",
60
- "@atlaskit/people-teams-ui-public": "^3.2.0",
59
+ "@atlaskit/modal-dialog": "^14.4.0",
60
+ "@atlaskit/people-teams-ui-public": "^3.3.0",
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
+ "@atlaskit/platform-feature-flags-react": "^0.3.0",
62
63
  "@atlaskit/popup": "^4.4.0",
63
- "@atlaskit/primitives": "^14.14.0",
64
- "@atlaskit/rovo-agent-components": "^3.4.0",
64
+ "@atlaskit/primitives": "^14.15.0",
65
+ "@atlaskit/rovo-agent-components": "^3.5.0",
65
66
  "@atlaskit/rovo-triggers": "^3.10.0",
66
67
  "@atlaskit/spinner": "^19.0.0",
67
68
  "@atlaskit/teams-app-config": "^1.11.0",
69
+ "@atlaskit/teams-app-internal-analytics": "^1.6.0",
68
70
  "@atlaskit/teams-avatar": "^2.3.0",
69
- "@atlaskit/teams-public": "^0.59.0",
71
+ "@atlaskit/teams-public": "^0.60.0",
70
72
  "@atlaskit/theme": "^21.0.0",
71
73
  "@atlaskit/tokens": "^6.3.0",
72
74
  "@atlaskit/tooltip": "^20.4.0",
@@ -148,9 +150,6 @@
148
150
  "should-render-to-parent-should-be-true-people-and-": {
149
151
  "type": "boolean"
150
152
  },
151
- "loom_tab_in_container_linker_team_profile_page": {
152
- "type": "boolean"
153
- },
154
153
  "platform-adopt-teams-nav-config": {
155
154
  "type": "boolean"
156
155
  },
@@ -162,6 +161,9 @@
162
161
  },
163
162
  "enable_absolute_positioning_profile_card": {
164
163
  "type": "boolean"
164
+ },
165
+ "ptc-enable-profile-card-analytics-refactor": {
166
+ "type": "boolean"
165
167
  }
166
168
  },
167
169
  "sideEffects": [