@atlaskit/profilecard 25.9.10 → 26.0.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 (166) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/agent/package.json +1 -8
  3. package/agent-profile-card/package.json +1 -8
  4. package/agent-profile-card-resourced/package.json +1 -8
  5. package/agent-profile-card-trigger/package.json +1 -8
  6. package/caching-client/package.json +1 -8
  7. package/client/package.json +1 -8
  8. package/config/package.json +1 -8
  9. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  10. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  11. package/dist/cjs/util/analytics.js +2 -2
  12. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  13. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  14. package/dist/es2019/util/analytics.js +2 -2
  15. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  16. package/dist/esm/client/getTeamFromAGG.js +1 -1
  17. package/dist/esm/util/analytics.js +2 -2
  18. package/i18n/package.json +1 -8
  19. package/lazy-profile-card/package.json +1 -8
  20. package/messages/package.json +1 -8
  21. package/mock-profile-client/package.json +1 -8
  22. package/mock-team-client/package.json +1 -8
  23. package/mocks/package.json +1 -8
  24. package/package.json +32 -40
  25. package/profile-card/package.json +1 -8
  26. package/profile-card-trigger/package.json +1 -8
  27. package/profile-data/package.json +1 -8
  28. package/simple-mock-clients/package.json +1 -8
  29. package/team/package.json +1 -8
  30. package/team-profile-card/package.json +1 -8
  31. package/team-profile-card-client/package.json +1 -8
  32. package/team-profile-card-trigger/package.json +1 -8
  33. package/types/package.json +1 -8
  34. package/user/package.json +1 -8
  35. package/user-profile-card-client/package.json +1 -8
  36. package/with-outer-listeners/package.json +1 -8
  37. package/dist/types-ts4.5/client/CachingClient.d.ts +0 -18
  38. package/dist/types-ts4.5/client/ProfileCardClient.d.ts +0 -28
  39. package/dist/types-ts4.5/client/RovoAgentCardClient.d.ts +0 -23
  40. package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +0 -50
  41. package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +0 -9
  42. package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +0 -24
  43. package/dist/types-ts4.5/client/errorUtils.d.ts +0 -5
  44. package/dist/types-ts4.5/client/getOrgIdForCloudIdFromAGG.d.ts +0 -1
  45. package/dist/types-ts4.5/client/getTeamFromAGG.d.ts +0 -38
  46. package/dist/types-ts4.5/client/graphqlUtils.d.ts +0 -31
  47. package/dist/types-ts4.5/client/index.d.ts +0 -6
  48. package/dist/types-ts4.5/client/types.d.ts +0 -13
  49. package/dist/types-ts4.5/components/Agent/Actions.d.ts +0 -15
  50. package/dist/types-ts4.5/components/Agent/AgentDeleteConfirmationModal.d.ts +0 -10
  51. package/dist/types-ts4.5/components/Agent/AgentProfileCard.d.ts +0 -4
  52. package/dist/types-ts4.5/components/Agent/AgentProfileCardResourced.d.ts +0 -22
  53. package/dist/types-ts4.5/components/Agent/AgentProfileCardTrigger.d.ts +0 -4
  54. package/dist/types-ts4.5/components/Agent/AgentProfileCardWrapper.d.ts +0 -4
  55. package/dist/types-ts4.5/components/Agent/ConversationStarters.d.ts +0 -3
  56. package/dist/types-ts4.5/components/Agent/hooks/duplicateFetch.d.ts +0 -24
  57. package/dist/types-ts4.5/components/Agent/hooks/useAgentActions.d.ts +0 -16
  58. package/dist/types-ts4.5/components/Agent/index.d.ts +0 -2
  59. package/dist/types-ts4.5/components/Agent/lazyAgentProfileCard.d.ts +0 -3
  60. package/dist/types-ts4.5/components/Agent/messages.d.ts +0 -27
  61. package/dist/types-ts4.5/components/Agent/utils/index.d.ts +0 -4
  62. package/dist/types-ts4.5/components/Error/AccessLockSVG.d.ts +0 -3
  63. package/dist/types-ts4.5/components/Error/ErrorBoundary.d.ts +0 -10
  64. package/dist/types-ts4.5/components/Error/ErrorIllustration.d.ts +0 -2
  65. package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +0 -10
  66. package/dist/types-ts4.5/components/Error/index.d.ts +0 -3
  67. package/dist/types-ts4.5/components/Icon/IconLabel.d.ts +0 -13
  68. package/dist/types-ts4.5/components/Icon/index.d.ts +0 -1
  69. package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +0 -6
  70. package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +0 -6
  71. package/dist/types-ts4.5/components/Team/TeamProfileCard.d.ts +0 -7
  72. package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +0 -65
  73. package/dist/types-ts4.5/components/Team/index.d.ts +0 -4
  74. package/dist/types-ts4.5/components/Team/lazyTeamProfileCard.d.ts +0 -3
  75. package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +0 -10
  76. package/dist/types-ts4.5/components/User/ProfileCard.d.ts +0 -5
  77. package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +0 -3
  78. package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +0 -22
  79. package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +0 -3
  80. package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +0 -5
  81. package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +0 -7
  82. package/dist/types-ts4.5/components/User/index.d.ts +0 -4
  83. package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +0 -3
  84. package/dist/types-ts4.5/components/common/LoadingState.d.ts +0 -9
  85. package/dist/types-ts4.5/components/common/PopupTrigger.d.ts +0 -7
  86. package/dist/types-ts4.5/components/common/ProfileCardTrigger.d.ts +0 -9
  87. package/dist/types-ts4.5/components/common/ProfileCardWrapper.d.ts +0 -5
  88. package/dist/types-ts4.5/components/common/types.d.ts +0 -17
  89. package/dist/types-ts4.5/components/team-profile-card/index.d.ts +0 -1
  90. package/dist/types-ts4.5/components/team-profile-card/main.d.ts +0 -17
  91. package/dist/types-ts4.5/components/team-profile-card/mocks.d.ts +0 -16
  92. package/dist/types-ts4.5/components/team-profile-card/team-actions/index.d.ts +0 -21
  93. package/dist/types-ts4.5/components/team-profile-card/team-actions/messages.d.ts +0 -7
  94. package/dist/types-ts4.5/components/team-profile-card/team-actions/more-actions/index.d.ts +0 -11
  95. package/dist/types-ts4.5/components/team-profile-card/team-actions/more-actions/messages.d.ts +0 -7
  96. package/dist/types-ts4.5/components/team-profile-card/team-connections/main.d.ts +0 -3
  97. package/dist/types-ts4.5/components/team-profile-card/team-containers-skeleton/index.d.ts +0 -3
  98. package/dist/types-ts4.5/components/team-profile-card/team-containers-skeleton/linked-container-card-skeleton/index.d.ts +0 -2
  99. package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
  100. package/dist/types-ts4.5/i18n/da.d.ts +0 -8
  101. package/dist/types-ts4.5/i18n/de.d.ts +0 -8
  102. package/dist/types-ts4.5/i18n/en.d.ts +0 -8
  103. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
  104. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
  105. package/dist/types-ts4.5/i18n/es.d.ts +0 -8
  106. package/dist/types-ts4.5/i18n/et.d.ts +0 -27
  107. package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
  108. package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
  109. package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
  110. package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
  111. package/dist/types-ts4.5/i18n/index.d.ts +0 -36
  112. package/dist/types-ts4.5/i18n/is.d.ts +0 -27
  113. package/dist/types-ts4.5/i18n/it.d.ts +0 -8
  114. package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
  115. package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
  116. package/dist/types-ts4.5/i18n/languages.d.ts +0 -34
  117. package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
  118. package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
  119. package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
  120. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
  121. package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -27
  122. package/dist/types-ts4.5/i18n/ro.d.ts +0 -27
  123. package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
  124. package/dist/types-ts4.5/i18n/sk.d.ts +0 -27
  125. package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
  126. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
  127. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
  128. package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
  129. package/dist/types-ts4.5/i18n/th.d.ts +0 -8
  130. package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
  131. package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
  132. package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
  133. package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
  134. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
  135. package/dist/types-ts4.5/index.d.ts +0 -24
  136. package/dist/types-ts4.5/internal/filterActions.d.ts +0 -3
  137. package/dist/types-ts4.5/internal/getLabelMessage.d.ts +0 -3
  138. package/dist/types-ts4.5/internal/relative-date.d.ts +0 -3
  139. package/dist/types-ts4.5/messages.d.ts +0 -233
  140. package/dist/types-ts4.5/mocks/agent-data.d.ts +0 -4
  141. package/dist/types-ts4.5/mocks/index.d.ts +0 -4
  142. package/dist/types-ts4.5/mocks/mock-profile-client.d.ts +0 -1
  143. package/dist/types-ts4.5/mocks/mock-team-client.d.ts +0 -8
  144. package/dist/types-ts4.5/mocks/profile-data.d.ts +0 -45
  145. package/dist/types-ts4.5/mocks/reporting-lines-data.d.ts +0 -2
  146. package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +0 -19
  147. package/dist/types-ts4.5/mocks/team-data.d.ts +0 -15
  148. package/dist/types-ts4.5/mocks/util.d.ts +0 -6
  149. package/dist/types-ts4.5/styled/Card.d.ts +0 -59
  150. package/dist/types-ts4.5/styled/CoverImage.d.ts +0 -11
  151. package/dist/types-ts4.5/styled/Error.d.ts +0 -11
  152. package/dist/types-ts4.5/styled/ReportingLines.d.ts +0 -13
  153. package/dist/types-ts4.5/styled/TeamCard.d.ts +0 -35
  154. package/dist/types-ts4.5/styled/TeamTrigger.d.ts +0 -19
  155. package/dist/types-ts4.5/styled/UserTrigger.d.ts +0 -12
  156. package/dist/types-ts4.5/types.d.ts +0 -592
  157. package/dist/types-ts4.5/util/analytics.d.ts +0 -101
  158. package/dist/types-ts4.5/util/click.d.ts +0 -4
  159. package/dist/types-ts4.5/util/config.d.ts +0 -2
  160. package/dist/types-ts4.5/util/date.d.ts +0 -1
  161. package/dist/types-ts4.5/util/errors.d.ts +0 -43
  162. package/dist/types-ts4.5/util/performance.d.ts +0 -1
  163. package/dist/types-ts4.5/util/rovoAgentUtils.d.ts +0 -2
  164. package/dist/types-ts4.5/util/url.d.ts +0 -1
  165. package/dist/types-ts4.5/util/useProfileInfo.d.ts +0 -8
  166. package/dist/types-ts4.5/util/withOuterListeners.d.ts +0 -6
@@ -1,28 +0,0 @@
1
- import type { FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
- import { type AgentIdType, type AgentPermissions, type ClientOverrides, type ProfileClient, type ProfileClientOptions, type RovoAgentCardClientResult, type Team, type TeamCentralReportingLinesData } from '../types';
3
- import RovoAgentCardClient from './RovoAgentCardClient';
4
- import TeamCentralCardClient from './TeamCentralCardClient';
5
- import TeamProfileCardClient from './TeamProfileCardClient';
6
- import UserProfileCardClient from './UserProfileCardClient';
7
- export type TeamCentralScopes = {
8
- withOrgContext: true;
9
- withSiteContext: boolean;
10
- };
11
- declare class ProfileCardClient implements ProfileClient {
12
- userClient: UserProfileCardClient;
13
- teamClient: TeamProfileCardClient;
14
- tcClient?: TeamCentralCardClient;
15
- rovoAgentClient: RovoAgentCardClient;
16
- constructor(config: ProfileClientOptions, clients?: ClientOverrides);
17
- flushCache(): void;
18
- getProfile(cloudId: string, userId: string, analytics?: FireEventType): Promise<any>;
19
- getTeamProfile(teamId: string, orgId?: string, analytics?: FireEventType): Promise<Team>;
20
- getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
21
- getTeamCentralBaseUrl(teamCentralScopes?: TeamCentralScopes): Promise<string | undefined>;
22
- shouldShowGiveKudos(): Promise<boolean>;
23
- getRovoAgentProfile(id: AgentIdType, analytics?: FireEventType): Promise<RovoAgentCardClientResult>;
24
- getRovoAgentPermissions(id: string, fireAnalytics?: FireEventType): Promise<AgentPermissions>;
25
- deleteAgent(id: string, analytics?: FireEventType): Promise<void>;
26
- setFavouriteAgent(id: string, isFavourite: boolean, analytics?: FireEventType): Promise<void>;
27
- }
28
- export default ProfileCardClient;
@@ -1,23 +0,0 @@
1
- import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
- import type { AgentIdType, AgentPermissions, ProfileClientOptions, RovoAgentCardClientResult } from '../types';
3
- import CachingClient from './CachingClient';
4
- export default class RovoAgentCardClient extends CachingClient<RovoAgentCardClientResult> {
5
- options: ProfileClientOptions;
6
- constructor(options: ProfileClientOptions);
7
- private basePath;
8
- private getActivationId;
9
- private getAgentByARIAgg;
10
- private getAgentByAccountIdAgg;
11
- makeRequest(id: AgentIdType, analytics?: FireEventType): Promise<RovoAgentCardClientResult>;
12
- /**
13
- * This function will call both REST and AGG endpoints to get the agent profile
14
- * There are some data that is only available in the AGG endpoint, so we need to call both
15
- * For any new fields, please only add them to the AGG endpoint
16
- *
17
- * @TODO migrate everything to AGG endpoint
18
- */
19
- getProfile(id: AgentIdType, analytics?: FireEventType): Promise<RovoAgentCardClientResult>;
20
- deleteAgent(agentId: string, analytics?: FireEventType): Promise<void>;
21
- setFavouriteAgent(agentId: string, isFavourite: boolean, analytics?: FireEventType): Promise<void>;
22
- getPermissions(id: string, fireAnalytics?: FireEventType): Promise<AgentPermissions>;
23
- }
@@ -1,50 +0,0 @@
1
- import { type TeamCentralReportingLinesData } from '../types';
2
- import CachingClient, { type CacheConfig } from './CachingClient';
3
- export declare const buildReportingLinesQuery: (aaid: string) => {
4
- query: string;
5
- variables: {
6
- aaid: string;
7
- };
8
- };
9
- export type TeamCentralCardClientOptions = CacheConfig & {
10
- cloudId?: string;
11
- gatewayGraphqlUrl: string;
12
- /**
13
- * If provided, will avoid resolving the org ID internally from the cloud ID,
14
- * and use the provided org ID instead
15
- */
16
- orgId?: string;
17
- teamCentralDisabled?: boolean;
18
- };
19
- declare class TeamCentralCardClient extends CachingClient<TeamCentralReportingLinesData> {
20
- options: TeamCentralCardClientOptions;
21
- /**
22
- * Simple circuit breaker to avoid making unnecessary calls to Team Central on auth failures
23
- * This is to handle the case where products may have provided teamCentralUrl, but the site itself
24
- * doesn't actually have any TC product.
25
- *
26
- * There's currently no way to reset this circuit breaker, but that's fine. This is meant to
27
- * catch a pretty specific edge case.
28
- */
29
- bypassOnFailure: boolean;
30
- orgContainsAnyWorkspacePromise: Promise<boolean>;
31
- private orgIdPromise;
32
- private workspaceExistsWithTypePromise;
33
- constructor(options: TeamCentralCardClientOptions);
34
- createOrgContainsAnyWorkspacePromise(config: TeamCentralCardClientOptions): Promise<boolean>;
35
- getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
36
- /**
37
- * `public` so that mock client can override it; do not use it otherwise!
38
- */
39
- makeRequest(userId: string): Promise<TeamCentralReportingLinesData>;
40
- checkWorkspaceExists(): Promise<boolean>;
41
- getIsGlobalExperienceWorkspace(): Promise<boolean>;
42
- getOrgId(): Promise<string | null>;
43
- preloadWorkspaceExistsWithType(cloudId?: string): Promise<string | undefined>;
44
- private getOrgContainsAnyWorkspace;
45
- private getWorkspaceExistsWithType;
46
- preloadOrgId(gatewayGraphqlUrl: string, cloudId?: string, orgId?: string): Promise<string | null>;
47
- private getShardedApiPath;
48
- private filterReportingLinesUser;
49
- }
50
- export default TeamCentralCardClient;
@@ -1,9 +0,0 @@
1
- import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
- import type { ProfileClientOptions, Team } from '../types';
3
- import CachingClient from './CachingClient';
4
- export default class TeamProfileCardClient extends CachingClient<Team> {
5
- options: ProfileClientOptions;
6
- constructor(options: ProfileClientOptions);
7
- makeRequest(teamId: string, _orgId: string | undefined): Promise<Team>;
8
- getProfile(teamId: string, orgId: string | undefined, analytics?: FireEventType): Promise<Team>;
9
- }
@@ -1,24 +0,0 @@
1
- import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
2
- import type { ApiClientResponse, ProfileCardClientData, ProfileClientOptions } from '../types';
3
- import CachingClient from './CachingClient';
4
- /**
5
- * Transform response from GraphQL
6
- * - Prefix `timestring` with `remoteWeekdayString` depending on `remoteWeekdayIndex`
7
- * - Remove properties which will be not used later
8
- * @ignore
9
- * @param {object} response
10
- * @return {object}
11
- */
12
- export declare const modifyResponse: (response: ApiClientResponse) => ProfileCardClientData;
13
- export declare const buildAggUserQuery: (userId: string) => {
14
- query: string;
15
- variables: {
16
- userId: string;
17
- };
18
- };
19
- export default class UserProfileCardClient extends CachingClient<any> {
20
- options: ProfileClientOptions;
21
- constructor(options: ProfileClientOptions);
22
- makeRequest(_cloudId: string, userId: string): Promise<ProfileCardClientData>;
23
- getProfile(cloudId: string, userId: string, analytics?: FireEventType): Promise<any>;
24
- }
@@ -1,5 +0,0 @@
1
- import { AGGError, AGGErrors, DirectoryGraphQLError, DirectoryGraphQLErrors } from '../util/errors';
2
- import { type ErrorAttributes } from './types';
3
- export declare const getErrorAttributes: (error?: DirectoryGraphQLErrors | Error | unknown | DirectoryGraphQLError | AGGError | AGGErrors) => ErrorAttributes;
4
- export declare const handleDirectoryGraphQLErrors: (errors: unknown, traceId: string | null) => void;
5
- export declare const handleAGGErrors: (errors: unknown, traceId: string | null) => void;
@@ -1 +0,0 @@
1
- export declare function getOrgIdForCloudIdFromAGG(url: string, cloudId: string): Promise<string | null>;
@@ -1,38 +0,0 @@
1
- import type { Team } from '../types';
2
- interface AGGTeam extends Omit<Team, 'members'> {
3
- members?: {
4
- nodes: AGGMember[];
5
- };
6
- }
7
- interface AGGMember {
8
- member: {
9
- accountId: string;
10
- name: string;
11
- picture: string;
12
- };
13
- }
14
- interface AGGResult {
15
- team: AGGTeam;
16
- }
17
- export declare const extractIdFromAri: (ari: string) => string;
18
- /**
19
- * @deprecated Use idToAriSafe instead
20
- */
21
- export declare const idToAri: (teamId: string) => string;
22
- export declare const idToAriSafe: (teamIdOrTeamAri: string) => string;
23
- export declare const convertTeam: (result: AGGResult) => Team;
24
- export declare const GATEWAY_QUERY_V2: 'query TeamCard($teamId: ID!, $siteId: String!) {\n Team: team {\n team: teamV2(id: $teamId, siteId: $siteId) @optIn(to: "Team-v2") {\n \n id\n displayName\n description\n smallHeaderImageUrl\n largeHeaderImageUrl\n smallAvatarImageUrl\n largeAvatarImageUrl\n\t isVerified\n\t state\n members {\n nodes {\n member {\n accountId\n name\n picture\n }\n }\n }\n\n }\n }\n}';
25
- type TeamQueryVariables = {
26
- teamId: string;
27
- siteId?: string;
28
- };
29
- export declare const buildGatewayQuery: ({ teamId, siteId, }: TeamQueryVariables) => {
30
- query: string;
31
- variables: {
32
- teamId: string;
33
- siteId: string;
34
- };
35
- };
36
- export declare const addHeaders: (headers: Headers) => Headers;
37
- export declare function getTeamFromAGG(url: string, teamId: string, siteId?: string): Promise<Team>;
38
- export {};
@@ -1,31 +0,0 @@
1
- interface Query {
2
- query: string;
3
- variables: Record<string, any>;
4
- }
5
- export interface GraphQLError {
6
- code?: number;
7
- reason?: string;
8
- source?: string;
9
- message?: string;
10
- traceId?: string;
11
- category: string;
12
- type: string;
13
- path: string[];
14
- extensions: {
15
- errorNumber: number;
16
- } & Record<string, any>;
17
- }
18
- type HeaderProcessor = (headers: Headers) => Headers;
19
- /**
20
- * @param {string} serviceUrl - GraphQL service endpoint
21
- * @param {Query} query - GraphQL query
22
- * @param {HeaderProcessor} processHeaders - a function to add extra headers to the request
23
- */
24
- export declare function directoryGraphqlQuery<D>(serviceUrl: string, query: Query, processHeaders?: HeaderProcessor): Promise<D>;
25
- /**
26
- * @param {string} serviceUrl - GraphQL service endpoint
27
- * @param {Query} query - GraphQL query
28
- * @param {HeaderProcessor} processHeaders - a function to add extra headers to the request
29
- */
30
- export declare function AGGQuery<D>(serviceUrl: string, query: Query, processHeaders?: HeaderProcessor): Promise<D>;
31
- export {};
@@ -1,6 +0,0 @@
1
- import CachingClient from './CachingClient';
2
- import ProfileCardClient from './ProfileCardClient';
3
- import TeamProfileClient from './TeamProfileCardClient';
4
- import UserProfileClient, { modifyResponse } from './UserProfileCardClient';
5
- export { CachingClient, modifyResponse, TeamProfileClient, UserProfileClient };
6
- export default ProfileCardClient;
@@ -1,13 +0,0 @@
1
- export type ErrorAttributes = {
2
- errorCount: number | null;
3
- errorDetails: Omit<ErrorAttributes, 'errorDetails'>[] | null;
4
- errorMessage: string;
5
- errorCategory: string | null;
6
- errorType: string | null;
7
- errorPath: string | null;
8
- errorNumber: number | null;
9
- isSLOFailure: boolean;
10
- traceId: string | null;
11
- errorStatusCode: number | null;
12
- errorStack: string | null;
13
- };
@@ -1,15 +0,0 @@
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: () => Promise<void>;
8
- onDeleteAgent: () => void;
9
- onChatClick: (event: React.MouseEvent) => void;
10
- onViewFullProfileClick: () => void;
11
- resourceClient: ProfileClient;
12
- hideMoreActions?: boolean;
13
- };
14
- export declare const AgentActions: ({ onEditAgent, onDeleteAgent, onDuplicateAgent, onCopyAgent, onChatClick, onViewFullProfileClick, agent, resourceClient, hideMoreActions, }: AgentActionsProps) => React.JSX.Element;
15
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- onSubmit: () => void;
6
- agentId: string;
7
- agentName: string;
8
- };
9
- export declare const AgentDeleteConfirmationModal: ({ onClose, agentName, isOpen, onSubmit, agentId, }: Props) => React.JSX.Element;
10
- export {};
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { type AgentProfileCardProps } from '../../types';
3
- declare const AgentProfileCard: ({ agent, isLoading, cloudId, email, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, hideAgentActions, }: AgentProfileCardProps) => React.JSX.Element;
4
- export default AgentProfileCard;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { type AgentActionsType, type Flag, type ProfileClient, type TriggerType } from '../../types';
3
- export type AgentProfileCardResourcedProps = {
4
- accountId: string;
5
- cloudId: string;
6
- resourceClient: ProfileClient;
7
- trigger?: TriggerType;
8
- children?: React.ReactNode;
9
- addFlag?: (flag: Flag) => void;
10
- onDeleteAgent?: (agentId: string) => {
11
- restore: () => void;
12
- };
13
- /** Hide the Agent more actions dropdown when true, is also hidden when hideAgentActions is true */
14
- hideMoreActions?: boolean;
15
- /** Hide the AI disclaimer. Defaults to false (disclaimer is shown by default). */
16
- hideAiDisclaimer?: boolean;
17
- /** Hide the conversation starters. Defaults to false (conversation starters are shown by default). */
18
- hideConversationStarters?: boolean;
19
- /** Hide the agent actions (chat button and dropdown menu). Defaults to false (agent actions are shown by default). */
20
- hideAgentActions?: boolean;
21
- } & AgentActionsType;
22
- export declare const AgentProfileCardResourced: (props: AgentProfileCardResourcedProps) => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { type AgentProfileCardTriggerProps } from '../../types';
3
- import { type ProfileCardHandle } from '../common/ProfileCardTrigger';
4
- export declare const AgentProfileCardTrigger: React.ForwardRefExoticComponent<AgentProfileCardTriggerProps & React.RefAttributes<ProfileCardHandle>>;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const AgentProfileCardWrapper: ({ children, }: {
3
- children: React.ReactNode;
4
- }) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type AgentConversationStartersProps } from '@atlaskit/rovo-agent-components/ui/AgentConversationStarters';
3
- export declare const ConversationStarters: ({ isAgentDefault, onConversationStarterClick, userDefinedConversationStarters, }: AgentConversationStartersProps) => React.JSX.Element;
@@ -1,24 +0,0 @@
1
- /**
2
- * Fetches version capability for a site via raw GraphQL fetch.
3
- * Returns true only if versioning migration has completed.
4
- *
5
- * TODO remove after versioning rollout complete
6
- * See: https://product-fabric.atlassian.net/browse/RAGE-2822
7
- */
8
- export declare const fetchHasVersionCapability: (cloudId: string) => Promise<boolean>;
9
- /**
10
- * Fetches the Rovo activation ID for a given cloud ID.
11
- * Used to construct the agent ARI when not available.
12
- */
13
- export declare const fetchActivationId: (cloudId: string) => Promise<string | null>;
14
- /**
15
- * Calls the agentStudio_duplicateAgent mutation via raw GraphQL fetch.
16
- *
17
- * TODO: Add SLO tracking and Sentry error reporting.
18
- * See: https://product-fabric.atlassian.net/browse/RAGE-2822
19
- */
20
- export declare const fetchDuplicateAgentMutation: (agentAri: string) => Promise<{
21
- success: boolean;
22
- newAgentAri?: string;
23
- errorMessage?: string;
24
- }>;
@@ -1,16 +0,0 @@
1
- export declare const firstCharUpper: (str: string) => string;
2
- export declare const useAgentUrlActions: ({ cloudId, email, source, }: {
3
- cloudId: string;
4
- email?: string;
5
- source: string;
6
- }) => {
7
- onEditAgent: (agentId: string) => void;
8
- onCopyAgent: (agentId: string) => void;
9
- onDuplicateAgent: (agentId: string) => Promise<void>;
10
- onOpenChat: (agentId: string, agentName: string) => void;
11
- onConversationStarter: ({ agentId, prompt }: {
12
- agentId: string;
13
- prompt: string;
14
- }) => void;
15
- onViewFullProfile: (agentId: string) => void;
16
- };
@@ -1,2 +0,0 @@
1
- import { AgentProfileCardTrigger } from './AgentProfileCardTrigger';
2
- export default AgentProfileCardTrigger;
@@ -1,3 +0,0 @@
1
- import { type LazyExoticComponent } from 'react';
2
- import type { AgentProfileCardProps } from '../../types';
3
- export declare const AgentProfileCardLazy: LazyExoticComponent<({ agent, isLoading, cloudId, onChatClick, hasError, errorType, onConversationStartersClick, resourceClient, addFlag, onDeleteAgent, hideMoreActions, hideAiDisclaimer, hideConversationStarters, hideAgentActions, }: AgentProfileCardProps) => React.JSX.Element>;
@@ -1,27 +0,0 @@
1
- export declare const messages: {
2
- agentDeletedSuccessFlagTitle: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- agentDeletedSuccessFlagDescription: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- agentDeletedErrorFlagTitle: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- agentDeletedErrorFlagDescription: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- aiDisclaimer: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- };
@@ -1,4 +0,0 @@
1
- export declare const getStudioHost: () => string;
2
- export declare const getStudioPath: (path: string, email?: string) => string;
3
- export declare const getAtlassianStudioAgentEditUrl: (siteId: string, agentId: string, email?: string) => string;
4
- export declare const getAtlassianStudioAgentDuplicateUrl: (siteId: string, agentId: string, email?: string) => string;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const AccessLockSVG: () => React.JSX.Element;
3
- export default AccessLockSVG;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface ErrorBoundaryProps {
3
- children: React.ReactNode;
4
- onError: () => void;
5
- }
6
- export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, {}> {
7
- componentDidCatch(): void;
8
- render(): React.ReactNode;
9
- }
10
- export default ErrorBoundary;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ErrorIllustration: () => React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { FireEventType } from '@atlaskit/teams-app-internal-analytics';
3
- import { type ProfileCardErrorType } from '../../types';
4
- interface Props {
5
- reload?: () => void | undefined;
6
- errorType?: ProfileCardErrorType;
7
- fireAnalytics: FireEventType;
8
- }
9
- declare const ErrorMessage: (props: Props) => React.JSX.Element;
10
- export default ErrorMessage;
@@ -1,3 +0,0 @@
1
- export { ErrorBoundary } from './ErrorBoundary';
2
- export { ErrorIllustration } from './ErrorIllustration';
3
- export { default as ErrorMessage } from './ErrorMessage';
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- icon: string;
4
- children?: React.ReactNode;
5
- extraTopSpace?: boolean;
6
- };
7
- export default class IconLabel extends React.PureComponent<Props> {
8
- static defaultProps: {
9
- icon: string;
10
- };
11
- render(): React.JSX.Element | null;
12
- }
13
- export {};
@@ -1 +0,0 @@
1
- export { default as IconLabel } from './IconLabel';
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { type AnalyticsFunction } from '../../types';
3
- declare const _default: (props: {
4
- analytics: AnalyticsFunction;
5
- }) => React.JSX.Element;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { type AnalyticsFunction } from '../../types';
3
- declare const _default: (props: {
4
- analytics: AnalyticsFunction;
5
- }) => React.JSX.Element;
6
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { TeamProfilecardProps } from '../../types';
3
- /**
4
- * @deprecated This component is deprecated and will be removed soon. Please use `@atlassian/team-profilecard` instead.
5
- */
6
- declare const TeamProfileCard: (props: TeamProfilecardProps) => React.JSX.Element | null;
7
- export default TeamProfileCard;
@@ -1,65 +0,0 @@
1
- import React from 'react';
2
- import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
3
- import { type TriggerProps } from '@atlaskit/popup/types';
4
- import { type AnalyticsEventAttributes, type FireEventType } from '@atlaskit/teams-app-internal-analytics';
5
- import type { AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
6
- export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps & WrappedComponentProps, TeamProfileCardTriggerState> {
7
- static defaultProps: {
8
- actions: never[];
9
- trigger: 'hover';
10
- position: 'bottom-start';
11
- triggerLinkType: 'link';
12
- shouldRenderToParent: boolean;
13
- };
14
- _isMounted: boolean;
15
- showTimer: number;
16
- hideTimer: number;
17
- openedByHover: boolean;
18
- openTime: number;
19
- fireAnalytics: FireEventType;
20
- fireAnalyticsWithDuration: <K extends keyof AnalyticsEventAttributes>(eventKey: K, generator: (duration: number) => AnalyticsEventAttributes[K]) => void;
21
- hideProfilecard: (delay?: number) => void;
22
- showProfilecard: (delay?: number) => void;
23
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
24
- onMouseEnter: () => void;
25
- onMouseLeave: () => void;
26
- onKeyPress: (event: React.KeyboardEvent) => void;
27
- onClose: () => void;
28
- openKudosDrawer: () => void;
29
- closeKudosDrawer: () => void;
30
- kudosUrl: () => string;
31
- stopPropagation: (event: React.MouseEvent<HTMLElement>) => void;
32
- triggerListeners: {
33
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
34
- onMouseEnter: () => void;
35
- onMouseLeave: () => void;
36
- };
37
- cardListeners: {
38
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
39
- onMouseEnter: () => void;
40
- onMouseLeave: () => void;
41
- };
42
- state: TeamProfileCardTriggerState;
43
- componentDidMount(): void;
44
- componentDidUpdate(prevProps: TeamProfileCardTriggerProps): void;
45
- componentWillUnmount(): void;
46
- clientFetchProfile: () => void;
47
- onErrorBoundary: () => void;
48
- handleClientSuccess(team: Team, shouldShowGiveKudos: boolean, teamCentralBaseUrl: string | undefined): void;
49
- handleClientError(err: any): void;
50
- filterActions(): ProfileCardAction[];
51
- renderProfileCard: () => React.JSX.Element;
52
- renderKudosLauncher: () => false | React.JSX.Element | undefined;
53
- renderTrigger: (triggerProps: TriggerProps) => React.JSX.Element;
54
- renderPopup(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
55
- render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
56
- }
57
- /**
58
- * @deprecated This component is deprecated and provides no functionality.
59
- * It now simply renders its children without any profile card behavior.
60
- * Please use `@atlassian/team-profilecard` instead for team profile card functionality.
61
- */
62
- declare const _default_1: React.FC<WithIntlProps<TeamProfileCardTriggerProps & WrappedComponentProps>> & {
63
- WrappedComponent: React.ComponentType<TeamProfileCardTriggerProps & WrappedComponentProps>;
64
- };
65
- export default _default_1;
@@ -1,4 +0,0 @@
1
- import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
2
- import TeamProfileCardTrigger from './TeamProfileCardTrigger';
3
- export { DELAY_MS_HIDE, DELAY_MS_SHOW };
4
- export default TeamProfileCardTrigger;
@@ -1,3 +0,0 @@
1
- import { type LazyExoticComponent } from 'react';
2
- import type { TeamProfilecardProps } from '../../types';
3
- export declare const TeamProfileCardLazy: LazyExoticComponent<(props: TeamProfilecardProps) => React.JSX.Element | null>;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { type AnalyticsWithDurationProps, type ProfileCardAction } from '../../types';
3
- type OverflowButtonsProps = {
4
- actions: ProfileCardAction[];
5
- onItemClick: (action: ProfileCardAction, args: any, event: React.MouseEvent | React.KeyboardEvent, index: number) => void;
6
- fullName?: string;
7
- } & AnalyticsWithDurationProps;
8
- export declare const ACTION_OVERFLOW_THRESHOLD = 2;
9
- export declare const OverflowProfileCardButtons: (props: OverflowButtonsProps) => React.JSX.Element;
10
- export {};
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { type AnalyticsProps, type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
- export declare const ProfilecardInternal: (props: ProfilecardProps & AnalyticsProps) => React.JSX.Element | null;
4
- export declare const LoadingView: ({ fireAnalyticsWithDuration, }: AnalyticsWithDurationProps) => React.JSX.Element;
5
- export default ProfilecardInternal;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
- export declare const ProfileCardDetails: (props: ProfilecardProps & AnalyticsWithDurationProps) => React.JSX.Element;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
3
- import { type AnalyticsProps, type ProfileCardAction, type ProfileCardClientData, type ProfileCardResourcedProps, type ProfileCardResourcedState, type TeamCentralReportingLinesData } from '../../types';
4
- declare class ProfileCardResourced extends React.PureComponent<ProfileCardResourcedProps & AnalyticsProps, ProfileCardResourcedState> {
5
- static defaultProps: Partial<ProfileCardResourcedProps>;
6
- _isMounted: boolean;
7
- state: ProfileCardResourcedState;
8
- fireAnalytics: FireEventType;
9
- componentDidMount(): void;
10
- componentDidUpdate(prevProps: ProfileCardResourcedProps): void;
11
- componentWillUnmount(): void;
12
- clientFetchProfile: () => void;
13
- handleClientSuccess(profileData: ProfileCardClientData, reportingLinesData: TeamCentralReportingLinesData, shouldShowGiveKudos: boolean, teamCentralBaseUrl?: string): void;
14
- handleClientError(err: any): void;
15
- filterActions: () => ProfileCardAction[];
16
- openKudosDrawer: () => void;
17
- closeKudosDrawer: () => void;
18
- render(): React.ReactNode;
19
- }
20
- export declare const ProfileCardResourcedInternal: typeof ProfileCardResourced;
21
- declare const ProfileCardResourcedWithAnalytics: React.FC<ProfileCardResourcedProps>;
22
- export default ProfileCardResourcedWithAnalytics;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type ProfileCardTriggerProps } from '../../types';
3
- export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, offset, viewingUserId, product, agentActions, hideAgentMoreActions, hideAiDisclaimer, hideAgentConversationStarters, hideReportingLines, ariaHideProfileTrigger, isVisible: propsIsVisible, isRenderedInPortal, ssrPlaceholderId, showDelay: customShowDelay, hideDelay: customHideDelay, }: ProfileCardTriggerProps): React.JSX.Element;
@@ -1,5 +0,0 @@
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 +0,0 @@
1
- import React from 'react';
2
- import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
3
- interface AnalyticsProps {
4
- fireAnalytics: FireEventType;
5
- }
6
- declare const UserLoadingState: ({ fireAnalytics }: AnalyticsProps) => React.JSX.Element;
7
- export default UserLoadingState;