@atlaskit/profilecard 19.18.1 → 19.19.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 (73) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/agent/package.json +14 -0
  3. package/dist/cjs/client/ProfileCardClient.js +2 -2
  4. package/dist/cjs/client/RovoAgentCardClient.js +11 -8
  5. package/dist/cjs/client/getAgentInfo.js +4 -7
  6. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  7. package/dist/cjs/components/Agent/AgentProfileCard.js +34 -6
  8. package/dist/cjs/components/Agent/AgentProfileCardResourced.js +36 -12
  9. package/dist/cjs/components/Agent/AgentProfileCardTrigger.js +41 -16
  10. package/dist/cjs/components/Agent/index.js +8 -0
  11. package/dist/cjs/components/Agent/useSetFavouriteAgent.js +22 -16
  12. package/dist/cjs/components/common/ProfileCardTrigger.js +13 -5
  13. package/dist/cjs/mocks/simple-mock-clients.js +1 -1
  14. package/dist/cjs/util/analytics.js +16 -4
  15. package/dist/cjs/util/rovoAgentUtils.js +3 -3
  16. package/dist/cjs/util/useProfileInfo.js +11 -6
  17. package/dist/es2019/client/ProfileCardClient.js +2 -2
  18. package/dist/es2019/client/RovoAgentCardClient.js +12 -9
  19. package/dist/es2019/client/getAgentInfo.js +5 -3
  20. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  21. package/dist/es2019/components/Agent/AgentProfileCard.js +32 -6
  22. package/dist/es2019/components/Agent/AgentProfileCardResourced.js +31 -10
  23. package/dist/es2019/components/Agent/AgentProfileCardTrigger.js +39 -17
  24. package/dist/es2019/components/Agent/index.js +2 -0
  25. package/dist/es2019/components/Agent/useSetFavouriteAgent.js +5 -2
  26. package/dist/es2019/components/common/ProfileCardTrigger.js +10 -3
  27. package/dist/es2019/mocks/simple-mock-clients.js +1 -1
  28. package/dist/es2019/util/analytics.js +20 -6
  29. package/dist/es2019/util/rovoAgentUtils.js +2 -2
  30. package/dist/es2019/util/useProfileInfo.js +3 -1
  31. package/dist/esm/client/ProfileCardClient.js +2 -2
  32. package/dist/esm/client/RovoAgentCardClient.js +12 -9
  33. package/dist/esm/client/getAgentInfo.js +4 -7
  34. package/dist/esm/client/getTeamFromAGG.js +1 -1
  35. package/dist/esm/components/Agent/AgentProfileCard.js +31 -6
  36. package/dist/esm/components/Agent/AgentProfileCardResourced.js +36 -12
  37. package/dist/esm/components/Agent/AgentProfileCardTrigger.js +42 -17
  38. package/dist/esm/components/Agent/index.js +2 -0
  39. package/dist/esm/components/Agent/useSetFavouriteAgent.js +22 -16
  40. package/dist/esm/components/common/ProfileCardTrigger.js +13 -5
  41. package/dist/esm/mocks/simple-mock-clients.js +1 -1
  42. package/dist/esm/util/analytics.js +16 -4
  43. package/dist/esm/util/rovoAgentUtils.js +2 -2
  44. package/dist/esm/util/useProfileInfo.js +11 -6
  45. package/dist/types/client/ProfileCardClient.d.ts +2 -2
  46. package/dist/types/client/RovoAgentCardClient.d.ts +3 -3
  47. package/dist/types/components/Agent/AgentProfileCard.d.ts +4 -3
  48. package/dist/types/components/Agent/AgentProfileCardResourced.d.ts +1 -1
  49. package/dist/types/components/Agent/index.d.ts +2 -0
  50. package/dist/types/components/Agent/lazyAgentProfileCard.d.ts +3 -2
  51. package/dist/types/components/Agent/useSetFavouriteAgent.d.ts +2 -2
  52. package/dist/types/components/common/ProfileCardTrigger.d.ts +1 -1
  53. package/dist/types/components/common/types.d.ts +6 -1
  54. package/dist/types/mocks/simple-mock-clients.d.ts +2 -2
  55. package/dist/types/types.d.ts +6 -1
  56. package/dist/types/util/analytics.d.ts +1 -1
  57. package/dist/types/util/rovoAgentUtils.d.ts +1 -0
  58. package/dist/types/util/useProfileInfo.d.ts +1 -0
  59. package/dist/types-ts4.5/client/ProfileCardClient.d.ts +2 -2
  60. package/dist/types-ts4.5/client/RovoAgentCardClient.d.ts +3 -3
  61. package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +4 -3
  62. package/dist/types-ts4.5/components/Agent/AgentProfileCardResourced.d.ts +1 -1
  63. package/dist/types-ts4.5/components/Agent/index.d.ts +2 -0
  64. package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +3 -2
  65. package/dist/types-ts4.5/components/Agent/useSetFavouriteAgent.d.ts +2 -2
  66. package/dist/types-ts4.5/components/common/ProfileCardTrigger.d.ts +1 -1
  67. package/dist/types-ts4.5/components/common/types.d.ts +6 -1
  68. package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +2 -2
  69. package/dist/types-ts4.5/types.d.ts +6 -1
  70. package/dist/types-ts4.5/util/analytics.d.ts +1 -1
  71. package/dist/types-ts4.5/util/rovoAgentUtils.d.ts +1 -0
  72. package/dist/types-ts4.5/util/useProfileInfo.d.ts +1 -0
  73. package/package.json +3 -2
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
- export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, isCreatedByViewingUser, cloudId, onOpenChat, product, }: {
3
- agent: import("../../types").RovoAgentProfileCardInfo;
2
+ export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, isCreatedByViewingUser, cloudId, onOpenChat, product, hasError, errorType, }: {
3
+ agent?: import("../../types").RovoAgentProfileCardInfo | undefined;
4
4
  isLoading?: boolean | undefined;
5
5
  hasError?: boolean | undefined;
6
6
  isCreatedByViewingUser?: boolean | undefined;
7
7
  cloudId?: string | undefined;
8
8
  onOpenChat?: ((agentId: string) => void) | undefined;
9
9
  product?: string | undefined;
10
+ errorType?: import("../..").ProfileCardErrorType | undefined;
10
11
  }) => JSX.Element>;
@@ -1,6 +1,6 @@
1
1
  export declare const useSetFavouriteAgent: ({ agentId, cloudId, isStarred, product, }: {
2
- agentId: string;
3
- cloudId: string;
2
+ agentId?: string | undefined;
3
+ cloudId?: string | undefined;
4
4
  isStarred: boolean;
5
5
  product: string;
6
6
  }) => {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type ProfileCardTriggerProps } from './types';
3
- declare function ProfileCardTrigger<T>({ trigger, ariaLabelledBy, children, renderProfileCard, fetchProfile, disabledAriaAttributes, ...popupProps }: ProfileCardTriggerProps<T>): JSX.Element;
3
+ declare function ProfileCardTrigger<T>({ trigger, ariaLabelledBy, children, renderProfileCard, fetchProfile, disabledAriaAttributes, profileCardType, fireAnalytics, ...popupProps }: ProfileCardTriggerProps<T>): JSX.Element;
4
4
  export default ProfileCardTrigger;
@@ -1,13 +1,18 @@
1
1
  /// <reference types="react" />
2
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
3
  import { type PopupProps } from '@atlaskit/popup';
4
+ import { type ProfileCardErrorType } from '../../types';
3
5
  export type ProfileCardTriggerProps<T> = {
4
6
  trigger: 'hover' | 'click';
5
7
  ariaLabelledBy?: string;
6
8
  disabledAriaAttributes?: boolean;
7
9
  children: React.ReactNode;
8
- renderProfileCard: ({ profileData, isLoading, }: {
10
+ renderProfileCard: ({ profileData, isLoading, error, }: {
9
11
  profileData?: T;
10
12
  isLoading: boolean;
13
+ error: ProfileCardErrorType | undefined | null;
11
14
  }) => React.ReactNode;
12
15
  fetchProfile?: () => Promise<T>;
16
+ profileCardType: 'agent' | 'user' | 'team';
17
+ fireAnalytics?: (payload: AnalyticsEventPayload) => void;
13
18
  } & Omit<PopupProps, 'trigger' | 'isOpen' | 'content'>;
@@ -2,7 +2,7 @@ import ProfileCardClient from '../client/ProfileCardClient';
2
2
  import RovoAgentCardClient from '../client/RovoAgentCardClient';
3
3
  import TeamProfileCardClient from '../client/TeamProfileCardClient';
4
4
  import UserProfileCardClient from '../client/UserProfileCardClient';
5
- import { type ProfileCardClientData, type RovoAgent, type Team } from '../types';
5
+ import { type AgentIdType, type ProfileCardClientData, type RovoAgent, type Team } from '../types';
6
6
  declare class SimpleMockTeamClient extends TeamProfileCardClient {
7
7
  makeRequest(teamId: string): Promise<Team>;
8
8
  }
@@ -10,7 +10,7 @@ declare class SimpleMockUserClient extends UserProfileCardClient {
10
10
  makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
11
11
  }
12
12
  declare class SimpleMockAgentClient extends RovoAgentCardClient {
13
- makeRequest(userId: string): Promise<RovoAgent>;
13
+ makeRequest(id: AgentIdType, cloudId: string): Promise<RovoAgent>;
14
14
  }
15
15
  export declare const simpleMockUserClient: SimpleMockUserClient;
16
16
  export declare const simpleMockTeamClient: SimpleMockTeamClient;
@@ -151,6 +151,7 @@ export interface ProfileCardTriggerProps {
151
151
  isVisible?: boolean;
152
152
  offset?: [number, number];
153
153
  product?: string;
154
+ viewingUserId?: string;
154
155
  }
155
156
  export interface ProfileCardTriggerState {
156
157
  visible?: boolean;
@@ -387,6 +388,10 @@ export interface MessageIntlProviderProps {
387
388
  intl: IntlShape;
388
389
  }
389
390
  export type RelativeDateKeyType = 'ThisWeek' | 'ThisMonth' | 'LastMonth' | 'AFewMonths' | 'SeveralMonths' | 'MoreThanAYear' | null;
391
+ export type AgentIdType = {
392
+ type: 'agent' | 'identity';
393
+ value: string;
394
+ };
390
395
  export interface ProfileClient {
391
396
  flushCache: () => void;
392
397
  getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void) => Promise<ProfileCardClientData>;
@@ -394,7 +399,7 @@ export interface ProfileClient {
394
399
  getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
395
400
  shouldShowGiveKudos: () => Promise<boolean>;
396
401
  getTeamCentralBaseUrl: () => string | undefined;
397
- getRovoAgentProfile: (agentId: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<RovoAgent>;
402
+ getRovoAgentProfile: (id: AgentIdType, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<RovoAgent>;
398
403
  }
399
404
  export type ProfilecardTriggerPosition = 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
400
405
  export type ProfileCardErrorType = {
@@ -11,7 +11,7 @@ interface AnalyticsEvent {
11
11
  source?: string;
12
12
  }
13
13
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
14
- export declare const cardTriggered: (type: 'user' | 'team', method: 'hover' | 'click') => AnalyticsEventPayload;
14
+ export declare const cardTriggered: (type: 'user' | 'team' | 'agent', method: 'hover' | 'click') => AnalyticsEventPayload;
15
15
  export declare const teamRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: {
16
16
  duration: number;
17
17
  } & GenericAttributes) => AnalyticsEventPayload;
@@ -1,2 +1,3 @@
1
+ export declare const USER_ARI_PREFIX = "ari:cloud:identity::user/";
1
2
  export declare const createHeaders: (product: string, cloudId: string) => Headers;
2
3
  export declare const getAAIDFromARI: (ari: string) => string | undefined;
@@ -3,5 +3,6 @@ export declare const useProfileInfo: <T>({ fetchUserProfile, }: {
3
3
  }) => {
4
4
  profileData: T | undefined;
5
5
  isLoading: boolean;
6
+ error: null;
6
7
  getProfileData: () => Promise<void>;
7
8
  };
@@ -1,5 +1,5 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
- import { type ClientOverrides, type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types';
2
+ import { type AgentIdType, type ClientOverrides, type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types';
3
3
  import RovoAgentCardClient from './RovoAgentCardClient';
4
4
  import TeamCentralCardClient from './TeamCentralCardClient';
5
5
  import TeamProfileCardClient from './TeamProfileCardClient';
@@ -16,6 +16,6 @@ declare class ProfileCardClient {
16
16
  getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
17
17
  getTeamCentralBaseUrl(): string | undefined;
18
18
  shouldShowGiveKudos(): Promise<boolean>;
19
- getRovoAgentProfile(agentId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<import("../types").RovoAgent>;
19
+ getRovoAgentProfile(id: AgentIdType, analytics?: (event: AnalyticsEventPayload) => void): Promise<import("../types").RovoAgent>;
20
20
  }
21
21
  export default ProfileCardClient;
@@ -1,9 +1,9 @@
1
1
  import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
- import type { ProfileClientOptions, RovoAgent } from '../types';
2
+ import type { AgentIdType, ProfileClientOptions, RovoAgent } from '../types';
3
3
  import CachingClient from './CachingClient';
4
4
  export default class RovoAgentCardClient extends CachingClient<RovoAgent> {
5
5
  options: ProfileClientOptions;
6
6
  constructor(options: ProfileClientOptions);
7
- makeRequest(agentId: string, cloudId: string): Promise<RovoAgent>;
8
- getProfile(agentId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<RovoAgent>;
7
+ makeRequest(id: AgentIdType, cloudId: string): Promise<RovoAgent>;
8
+ getProfile(id: AgentIdType, analytics?: (event: AnalyticsEventPayload) => void): Promise<RovoAgent>;
9
9
  }
@@ -1,13 +1,14 @@
1
1
  /// <reference types="react" />
2
- import { type RovoAgentProfileCardInfo } from '../../types';
2
+ import { type ProfileCardErrorType, type RovoAgentProfileCardInfo } from '../../types';
3
3
  type AgentProfileCardProps = {
4
- agent: RovoAgentProfileCardInfo;
4
+ agent?: RovoAgentProfileCardInfo;
5
5
  isLoading?: boolean;
6
6
  hasError?: boolean;
7
7
  isCreatedByViewingUser?: boolean;
8
8
  cloudId?: string;
9
9
  onOpenChat?: (agentId: string) => void;
10
10
  product?: string;
11
+ errorType?: ProfileCardErrorType;
11
12
  };
12
- declare const AgentProfileCard: ({ agent, isLoading, isCreatedByViewingUser, cloudId, onOpenChat, product, }: AgentProfileCardProps) => JSX.Element;
13
+ declare const AgentProfileCard: ({ agent, isLoading, isCreatedByViewingUser, cloudId, onOpenChat, product, hasError, errorType, }: AgentProfileCardProps) => JSX.Element;
13
14
  export default AgentProfileCard;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type ProfileClient, type TriggerType } from '../../types';
3
3
  export interface AgentProfileCardResourcedProps {
4
- agentId: string;
4
+ accountId: string;
5
5
  cloudId: string;
6
6
  resourceClient: ProfileClient;
7
7
  trigger?: TriggerType;
@@ -0,0 +1,2 @@
1
+ import { AgentProfileCardTrigger } from './AgentProfileCardTrigger';
2
+ export default AgentProfileCardTrigger;
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
- export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, isCreatedByViewingUser, cloudId, onOpenChat, product, }: {
3
- agent: import("../../types").RovoAgentProfileCardInfo;
2
+ export declare const AgentProfileCardLazy: import("react").LazyExoticComponent<({ agent, isLoading, isCreatedByViewingUser, cloudId, onOpenChat, product, hasError, errorType, }: {
3
+ agent?: import("../../types").RovoAgentProfileCardInfo | undefined;
4
4
  isLoading?: boolean | undefined;
5
5
  hasError?: boolean | undefined;
6
6
  isCreatedByViewingUser?: boolean | undefined;
7
7
  cloudId?: string | undefined;
8
8
  onOpenChat?: ((agentId: string) => void) | undefined;
9
9
  product?: string | undefined;
10
+ errorType?: import("../..").ProfileCardErrorType | undefined;
10
11
  }) => JSX.Element>;
@@ -1,6 +1,6 @@
1
1
  export declare const useSetFavouriteAgent: ({ agentId, cloudId, isStarred, product, }: {
2
- agentId: string;
3
- cloudId: string;
2
+ agentId?: string | undefined;
3
+ cloudId?: string | undefined;
4
4
  isStarred: boolean;
5
5
  product: string;
6
6
  }) => {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type ProfileCardTriggerProps } from './types';
3
- declare function ProfileCardTrigger<T>({ trigger, ariaLabelledBy, children, renderProfileCard, fetchProfile, disabledAriaAttributes, ...popupProps }: ProfileCardTriggerProps<T>): JSX.Element;
3
+ declare function ProfileCardTrigger<T>({ trigger, ariaLabelledBy, children, renderProfileCard, fetchProfile, disabledAriaAttributes, profileCardType, fireAnalytics, ...popupProps }: ProfileCardTriggerProps<T>): JSX.Element;
4
4
  export default ProfileCardTrigger;
@@ -1,13 +1,18 @@
1
1
  /// <reference types="react" />
2
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
3
  import { type PopupProps } from '@atlaskit/popup';
4
+ import { type ProfileCardErrorType } from '../../types';
3
5
  export type ProfileCardTriggerProps<T> = {
4
6
  trigger: 'hover' | 'click';
5
7
  ariaLabelledBy?: string;
6
8
  disabledAriaAttributes?: boolean;
7
9
  children: React.ReactNode;
8
- renderProfileCard: ({ profileData, isLoading, }: {
10
+ renderProfileCard: ({ profileData, isLoading, error, }: {
9
11
  profileData?: T;
10
12
  isLoading: boolean;
13
+ error: ProfileCardErrorType | undefined | null;
11
14
  }) => React.ReactNode;
12
15
  fetchProfile?: () => Promise<T>;
16
+ profileCardType: 'agent' | 'user' | 'team';
17
+ fireAnalytics?: (payload: AnalyticsEventPayload) => void;
13
18
  } & Omit<PopupProps, 'trigger' | 'isOpen' | 'content'>;
@@ -2,7 +2,7 @@ import ProfileCardClient from '../client/ProfileCardClient';
2
2
  import RovoAgentCardClient from '../client/RovoAgentCardClient';
3
3
  import TeamProfileCardClient from '../client/TeamProfileCardClient';
4
4
  import UserProfileCardClient from '../client/UserProfileCardClient';
5
- import { type ProfileCardClientData, type RovoAgent, type Team } from '../types';
5
+ import { type AgentIdType, type ProfileCardClientData, type RovoAgent, type Team } from '../types';
6
6
  declare class SimpleMockTeamClient extends TeamProfileCardClient {
7
7
  makeRequest(teamId: string): Promise<Team>;
8
8
  }
@@ -10,7 +10,7 @@ declare class SimpleMockUserClient extends UserProfileCardClient {
10
10
  makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
11
11
  }
12
12
  declare class SimpleMockAgentClient extends RovoAgentCardClient {
13
- makeRequest(userId: string): Promise<RovoAgent>;
13
+ makeRequest(id: AgentIdType, cloudId: string): Promise<RovoAgent>;
14
14
  }
15
15
  export declare const simpleMockUserClient: SimpleMockUserClient;
16
16
  export declare const simpleMockTeamClient: SimpleMockTeamClient;
@@ -154,6 +154,7 @@ export interface ProfileCardTriggerProps {
154
154
  number
155
155
  ];
156
156
  product?: string;
157
+ viewingUserId?: string;
157
158
  }
158
159
  export interface ProfileCardTriggerState {
159
160
  visible?: boolean;
@@ -393,6 +394,10 @@ export interface MessageIntlProviderProps {
393
394
  intl: IntlShape;
394
395
  }
395
396
  export type RelativeDateKeyType = 'ThisWeek' | 'ThisMonth' | 'LastMonth' | 'AFewMonths' | 'SeveralMonths' | 'MoreThanAYear' | null;
397
+ export type AgentIdType = {
398
+ type: 'agent' | 'identity';
399
+ value: string;
400
+ };
396
401
  export interface ProfileClient {
397
402
  flushCache: () => void;
398
403
  getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void) => Promise<ProfileCardClientData>;
@@ -400,7 +405,7 @@ export interface ProfileClient {
400
405
  getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
401
406
  shouldShowGiveKudos: () => Promise<boolean>;
402
407
  getTeamCentralBaseUrl: () => string | undefined;
403
- getRovoAgentProfile: (agentId: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<RovoAgent>;
408
+ getRovoAgentProfile: (id: AgentIdType, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<RovoAgent>;
404
409
  }
405
410
  export type ProfilecardTriggerPosition = 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
406
411
  export type ProfileCardErrorType = {
@@ -11,7 +11,7 @@ interface AnalyticsEvent {
11
11
  source?: string;
12
12
  }
13
13
  export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
14
- export declare const cardTriggered: (type: 'user' | 'team', method: 'hover' | 'click') => AnalyticsEventPayload;
14
+ export declare const cardTriggered: (type: 'user' | 'team' | 'agent', method: 'hover' | 'click') => AnalyticsEventPayload;
15
15
  export declare const teamRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: {
16
16
  duration: number;
17
17
  } & GenericAttributes) => AnalyticsEventPayload;
@@ -1,2 +1,3 @@
1
+ export declare const USER_ARI_PREFIX = "ari:cloud:identity::user/";
1
2
  export declare const createHeaders: (product: string, cloudId: string) => Headers;
2
3
  export declare const getAAIDFromARI: (ari: string) => string | undefined;
@@ -3,5 +3,6 @@ export declare const useProfileInfo: <T>({ fetchUserProfile, }: {
3
3
  }) => {
4
4
  profileData: T | undefined;
5
5
  isLoading: boolean;
6
+ error: null;
6
7
  getProfileData: () => Promise<void>;
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "19.18.1",
3
+ "version": "19.19.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,6 +38,7 @@
38
38
  "./team": "./src/components/Team/index.ts",
39
39
  "./types": "./src/types.ts",
40
40
  "./user": "./src/components/User/index.ts",
41
+ "./agent": "./src/components/Agent/index.ts",
41
42
  "./mocks": "./src/mocks/index.ts",
42
43
  ".": "./src/index.ts"
43
44
  },
@@ -67,7 +68,7 @@
67
68
  "@atlaskit/platform-feature-flags": "^0.3.0",
68
69
  "@atlaskit/popup": "^1.23.0",
69
70
  "@atlaskit/primitives": "^12.0.0",
70
- "@atlaskit/rovo-agent-components": "0.4.1",
71
+ "@atlaskit/rovo-agent-components": "0.4.2",
71
72
  "@atlaskit/spinner": "^16.3.0",
72
73
  "@atlaskit/theme": "^13.0.0",
73
74
  "@atlaskit/tokens": "^1.59.0",