@atlaskit/profilecard 19.3.1 → 19.4.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 (98) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/i18n/en_ZZ.js +1 -0
  3. package/dist/cjs/util/analytics.js +1 -1
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/es2019/i18n/en_ZZ.js +1 -0
  6. package/dist/es2019/util/analytics.js +1 -1
  7. package/dist/es2019/version.json +1 -1
  8. package/dist/esm/i18n/en_ZZ.js +1 -0
  9. package/dist/esm/util/analytics.js +1 -1
  10. package/dist/esm/version.json +1 -1
  11. package/dist/types-ts4.5/client/CachingClient.d.ts +18 -0
  12. package/dist/types-ts4.5/client/ProfileCardClient.d.ts +18 -0
  13. package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +32 -0
  14. package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +9 -0
  15. package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +18 -0
  16. package/dist/types-ts4.5/client/errorUtils.d.ts +9 -0
  17. package/dist/types-ts4.5/client/getTeamFromAGG.d.ts +28 -0
  18. package/dist/types-ts4.5/client/graphqlUtils.d.ts +19 -0
  19. package/dist/types-ts4.5/client/index.d.ts +6 -0
  20. package/dist/types-ts4.5/components/Error/AccessLockSVG.d.ts +3 -0
  21. package/dist/types-ts4.5/components/Error/ErrorBoundary.d.ts +10 -0
  22. package/dist/types-ts4.5/components/Error/ErrorIllustration.d.ts +2 -0
  23. package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +10 -0
  24. package/dist/types-ts4.5/components/Error/index.d.ts +3 -0
  25. package/dist/types-ts4.5/components/Icon/IconLabel.d.ts +12 -0
  26. package/dist/types-ts4.5/components/Icon/index.d.ts +1 -0
  27. package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +6 -0
  28. package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +6 -0
  29. package/dist/types-ts4.5/components/Team/TeamProfileCard.d.ts +4 -0
  30. package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +50 -0
  31. package/dist/types-ts4.5/components/Team/index.d.ts +4 -0
  32. package/dist/types-ts4.5/components/Team/lazyTeamProfileCard.d.ts +2 -0
  33. package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +9 -0
  34. package/dist/types-ts4.5/components/User/ProfileCard.d.ts +5 -0
  35. package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +3 -0
  36. package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +22 -0
  37. package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +4 -0
  38. package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +5 -0
  39. package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +7 -0
  40. package/dist/types-ts4.5/components/User/index.d.ts +4 -0
  41. package/dist/types-ts4.5/components/User/lazyProfileCard.d.ts +2 -0
  42. package/dist/types-ts4.5/i18n/cs.d.ts +41 -0
  43. package/dist/types-ts4.5/i18n/da.d.ts +41 -0
  44. package/dist/types-ts4.5/i18n/de.d.ts +41 -0
  45. package/dist/types-ts4.5/i18n/en.d.ts +41 -0
  46. package/dist/types-ts4.5/i18n/en_GB.d.ts +41 -0
  47. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +39 -0
  48. package/dist/types-ts4.5/i18n/es.d.ts +41 -0
  49. package/dist/types-ts4.5/i18n/et.d.ts +27 -0
  50. package/dist/types-ts4.5/i18n/fi.d.ts +41 -0
  51. package/dist/types-ts4.5/i18n/fr.d.ts +41 -0
  52. package/dist/types-ts4.5/i18n/hu.d.ts +41 -0
  53. package/dist/types-ts4.5/i18n/index.d.ts +36 -0
  54. package/dist/types-ts4.5/i18n/is.d.ts +27 -0
  55. package/dist/types-ts4.5/i18n/it.d.ts +41 -0
  56. package/dist/types-ts4.5/i18n/ja.d.ts +41 -0
  57. package/dist/types-ts4.5/i18n/ko.d.ts +41 -0
  58. package/dist/types-ts4.5/i18n/languages.d.ts +33 -0
  59. package/dist/types-ts4.5/i18n/nb.d.ts +41 -0
  60. package/dist/types-ts4.5/i18n/nl.d.ts +41 -0
  61. package/dist/types-ts4.5/i18n/pl.d.ts +41 -0
  62. package/dist/types-ts4.5/i18n/pt_BR.d.ts +41 -0
  63. package/dist/types-ts4.5/i18n/pt_PT.d.ts +27 -0
  64. package/dist/types-ts4.5/i18n/ro.d.ts +27 -0
  65. package/dist/types-ts4.5/i18n/ru.d.ts +41 -0
  66. package/dist/types-ts4.5/i18n/sk.d.ts +27 -0
  67. package/dist/types-ts4.5/i18n/sv.d.ts +41 -0
  68. package/dist/types-ts4.5/i18n/th.d.ts +41 -0
  69. package/dist/types-ts4.5/i18n/tr.d.ts +41 -0
  70. package/dist/types-ts4.5/i18n/uk.d.ts +41 -0
  71. package/dist/types-ts4.5/i18n/vi.d.ts +41 -0
  72. package/dist/types-ts4.5/i18n/zh.d.ts +41 -0
  73. package/dist/types-ts4.5/i18n/zh_TW.d.ts +41 -0
  74. package/dist/types-ts4.5/index.d.ts +18 -0
  75. package/dist/types-ts4.5/internal/filterActions.d.ts +3 -0
  76. package/dist/types-ts4.5/internal/relative-date.d.ts +3 -0
  77. package/dist/types-ts4.5/messages.d.ts +163 -0
  78. package/dist/types-ts4.5/mocks/index.d.ts +4 -0
  79. package/dist/types-ts4.5/mocks/mock-profile-client.d.ts +1 -0
  80. package/dist/types-ts4.5/mocks/mock-team-client.d.ts +7 -0
  81. package/dist/types-ts4.5/mocks/profile-data.d.ts +41 -0
  82. package/dist/types-ts4.5/mocks/reporting-lines-data.d.ts +2 -0
  83. package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +14 -0
  84. package/dist/types-ts4.5/mocks/team-data.d.ts +7 -0
  85. package/dist/types-ts4.5/mocks/util.d.ts +6 -0
  86. package/dist/types-ts4.5/styled/Card.d.ts +99 -0
  87. package/dist/types-ts4.5/styled/Error.d.ts +21 -0
  88. package/dist/types-ts4.5/styled/ReportingLines.d.ts +21 -0
  89. package/dist/types-ts4.5/styled/TeamCard.d.ts +64 -0
  90. package/dist/types-ts4.5/styled/constants.d.ts +13 -0
  91. package/dist/types-ts4.5/types.d.ts +358 -0
  92. package/dist/types-ts4.5/util/analytics.d.ts +58 -0
  93. package/dist/types-ts4.5/util/click.d.ts +4 -0
  94. package/dist/types-ts4.5/util/config.d.ts +2 -0
  95. package/dist/types-ts4.5/util/performance.d.ts +1 -0
  96. package/dist/types-ts4.5/util/withOuterListeners.d.ts +6 -0
  97. package/i18n/package.json +14 -0
  98. package/package.json +5 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 19.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`17fe8f92030`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17fe8f92030) - Correctly export i18n messages from profilecard!
8
+
9
+ ## 19.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
14
+
3
15
  ## 19.3.1
4
16
 
5
17
  ### Patch Changes
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ /* prettier-ignore */
7
8
  /**
8
9
  * NOTE:
9
10
  *
@@ -44,7 +44,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
44
44
  actionSubjectId: actionSubjectId,
45
45
  attributes: _objectSpread(_objectSpread({
46
46
  packageName: "@atlaskit/profilecard",
47
- packageVersion: "19.3.1"
47
+ packageVersion: "19.4.0"
48
48
  }, attributes), {}, {
49
49
  firedAt: Math.round((0, _performance.getPageTime)())
50
50
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "19.3.1"
3
+ "version": "19.4.0"
4
4
  }
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -31,7 +31,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
31
31
  actionSubjectId,
32
32
  attributes: {
33
33
  packageName: "@atlaskit/profilecard",
34
- packageVersion: "19.3.1",
34
+ packageVersion: "19.4.0",
35
35
  ...attributes,
36
36
  firedAt: Math.round(getPageTime())
37
37
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "19.3.1"
3
+ "version": "19.4.0"
4
4
  }
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -38,7 +38,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
38
38
  actionSubjectId: actionSubjectId,
39
39
  attributes: _objectSpread(_objectSpread({
40
40
  packageName: "@atlaskit/profilecard",
41
- packageVersion: "19.3.1"
41
+ packageVersion: "19.4.0"
42
42
  }, attributes), {}, {
43
43
  firedAt: Math.round(getPageTime())
44
44
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "19.3.1"
3
+ "version": "19.4.0"
4
4
  }
@@ -0,0 +1,18 @@
1
+ import { LRUMap } from 'lru_map';
2
+ interface CachedData<T> {
3
+ expire: number;
4
+ profile: T;
5
+ }
6
+ export interface CacheConfig {
7
+ cacheSize?: number;
8
+ cacheMaxAge?: number;
9
+ }
10
+ export default class CachingClient<T> {
11
+ config: Required<CacheConfig>;
12
+ cache: LRUMap<string, CachedData<T>> | null;
13
+ constructor(config: CacheConfig);
14
+ setCachedProfile(cacheIdentifier: string, profile: T): void;
15
+ getCachedProfile(cacheIdentifier: string): T | null;
16
+ flushCache(): void;
17
+ }
18
+ export {};
@@ -0,0 +1,18 @@
1
+ import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { ClientOverrides, ProfileClientOptions, TeamCentralReportingLinesData } from '../types';
3
+ import TeamCentralCardClient from './TeamCentralCardClient';
4
+ import TeamProfileCardClient from './TeamProfileCardClient';
5
+ import UserProfileCardClient from './UserProfileCardClient';
6
+ declare class ProfileCardClient {
7
+ userClient: UserProfileCardClient;
8
+ teamClient: TeamProfileCardClient;
9
+ tcClient?: TeamCentralCardClient;
10
+ constructor(config: ProfileClientOptions, clients?: ClientOverrides);
11
+ flushCache(): void;
12
+ getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
13
+ getTeamProfile(teamId: string, orgId?: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<import("../types").Team>;
14
+ getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
15
+ getTeamCentralBaseUrl(): string | undefined;
16
+ shouldShowGiveKudos(): Promise<boolean>;
17
+ }
18
+ export default ProfileCardClient;
@@ -0,0 +1,32 @@
1
+ import { ProfileClientOptions, TeamCentralReportingLinesData } from '../types';
2
+ import CachingClient from './CachingClient';
3
+ type TeamCentralCardClientOptions = ProfileClientOptions & {
4
+ teamCentralUrl: string;
5
+ };
6
+ type FeatureFlagExtraContext = {
7
+ key: string;
8
+ value: string;
9
+ };
10
+ declare class TeamCentralCardClient extends CachingClient<TeamCentralReportingLinesData> {
11
+ options: TeamCentralCardClientOptions;
12
+ /**
13
+ * Simple circuit breaker to avoid making unnecessary calls to Team Central on auth failures
14
+ * This is to handle the case where products may have provided teamCentralUrl, but the site itself
15
+ * doesn't actually have any TC product.
16
+ *
17
+ * There's currently no way to reset this circuit breaker, but that's fine. This is meant to
18
+ * catch a pretty specific edge case.
19
+ */
20
+ bypassOnFailure: boolean;
21
+ featureFlagKeys: Map<string, boolean>;
22
+ isTCReadyPromise: Promise<boolean>;
23
+ constructor(options: TeamCentralCardClientOptions);
24
+ createTcReadyPromise(config: ProfileClientOptions): Promise<boolean>;
25
+ makeFeatureFlagCheckRequest(featureKey: string, context?: FeatureFlagExtraContext[]): Promise<boolean>;
26
+ makeRequest(userId: string): Promise<TeamCentralReportingLinesData>;
27
+ getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
28
+ getFlagEnabled(featureKey: string, productIdentifier?: string): Promise<boolean>;
29
+ checkWorkspaceExists(): Promise<boolean>;
30
+ private filterReportingLinesUser;
31
+ }
32
+ export default TeamCentralCardClient;
@@ -0,0 +1,9 @@
1
+ import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
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?: (event: AnalyticsEventPayload) => void): Promise<Team>;
9
+ }
@@ -0,0 +1,18 @@
1
+ import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { 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 default class UserProfileCardClient extends CachingClient<any> {
14
+ options: ProfileClientOptions;
15
+ constructor(options: ProfileClientOptions);
16
+ makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
17
+ getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
18
+ }
@@ -0,0 +1,9 @@
1
+ import { GraphQLError } from './graphqlUtils';
2
+ export declare const getErrorAttributes: (error?: GraphQLError) => {
3
+ errorMessage: string | undefined;
4
+ errorStatus: number | undefined;
5
+ errorReason: string;
6
+ errorSource: string | undefined;
7
+ isSLOFailure: boolean;
8
+ traceId: string | undefined;
9
+ };
@@ -0,0 +1,28 @@
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
+ export declare const idToAri: (teamId: string) => string;
19
+ export declare const convertTeam: (result: AGGResult) => Team;
20
+ export declare const buildGatewayQuery: (teamId: string) => {
21
+ query: string;
22
+ variables: {
23
+ teamId: string;
24
+ };
25
+ };
26
+ export declare const addExperimentalHeaders: (headers: Headers) => Headers;
27
+ export declare function getTeamFromAGG(url: string, teamId: string): Promise<Team>;
28
+ export {};
@@ -0,0 +1,19 @@
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
+ }
12
+ type HeaderProcessor = (headers: Headers) => Headers;
13
+ /**
14
+ * @param {string} serviceUrl - GraphQL service endpoint
15
+ * @param {Query} query - GraphQL query
16
+ * @param {HeaderProcessor} processHeaders - a function to add extra headers to the request
17
+ */
18
+ export declare function graphqlQuery<D>(serviceUrl: string, query: Query, processHeaders?: HeaderProcessor): Promise<D>;
19
+ export {};
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const AccessLockSVG: () => JSX.Element;
3
+ export default AccessLockSVG;
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ErrorIllustration: () => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { ProfileCardErrorType } from '../../types';
4
+ interface Props {
5
+ reload?: () => void | undefined;
6
+ errorType?: ProfileCardErrorType;
7
+ fireAnalytics: (payload: AnalyticsEventPayload) => void;
8
+ }
9
+ declare const ErrorMessage: (props: Props) => JSX.Element;
10
+ export default ErrorMessage;
@@ -0,0 +1,3 @@
1
+ export { ErrorBoundary } from './ErrorBoundary';
2
+ export { ErrorIllustration } from './ErrorIllustration';
3
+ export { default as ErrorMessage } from './ErrorMessage';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ icon: string;
4
+ children?: React.ReactNode;
5
+ };
6
+ export default class IconLabel extends React.PureComponent<Props> {
7
+ static defaultProps: {
8
+ icon: string;
9
+ };
10
+ render(): JSX.Element | null;
11
+ }
12
+ export {};
@@ -0,0 +1 @@
1
+ export { default as IconLabel } from './IconLabel';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { AnalyticsFunction } from '../../types';
3
+ declare const _default: (props: {
4
+ analytics: AnalyticsFunction;
5
+ }) => JSX.Element;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { AnalyticsFunction } from '../../types';
3
+ declare const _default: (props: {
4
+ analytics: AnalyticsFunction;
5
+ }) => JSX.Element;
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { TeamProfilecardProps } from '../../types';
3
+ declare const TeamProfileCard: (props: TeamProfilecardProps) => JSX.Element | null;
4
+ export default TeamProfileCard;
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { TriggerProps } from '@atlaskit/popup/types';
4
+ import type { AnalyticsFromDuration, AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
5
+ export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps, TeamProfileCardTriggerState> {
6
+ static defaultProps: Partial<TeamProfileCardTriggerProps>;
7
+ _isMounted: boolean;
8
+ showTimer: number;
9
+ hideTimer: number;
10
+ openedByHover: boolean;
11
+ openTime: number;
12
+ fireAnalytics: (payload: AnalyticsEventPayload) => void;
13
+ fireAnalyticsWithDuration: (generator: AnalyticsFromDuration) => void;
14
+ hideProfilecard: (delay?: number) => void;
15
+ showProfilecard: (delay?: number) => void;
16
+ onClick: (event: React.MouseEvent<HTMLElement>) => void;
17
+ onMouseEnter: () => void;
18
+ onMouseLeave: () => void;
19
+ onClose: () => void;
20
+ openKudosDrawer: () => void;
21
+ closeKudosDrawer: () => void;
22
+ kudosUrl: () => string;
23
+ stopPropagation: (event: React.MouseEvent<HTMLElement>) => void;
24
+ triggerListeners: {
25
+ onClick: (event: React.MouseEvent<HTMLElement>) => void;
26
+ onMouseEnter: () => void;
27
+ onMouseLeave: () => void;
28
+ };
29
+ cardListeners: {
30
+ onClick: (event: React.MouseEvent<HTMLElement>) => void;
31
+ onMouseEnter: () => void;
32
+ onMouseLeave: () => void;
33
+ };
34
+ state: TeamProfileCardTriggerState;
35
+ componentDidMount(): void;
36
+ componentDidUpdate(prevProps: TeamProfileCardTriggerProps): void;
37
+ componentWillUnmount(): void;
38
+ clientFetchProfile: () => void;
39
+ onErrorBoundary: () => void;
40
+ handleClientSuccess(team: Team, shouldShowGiveKudos: boolean): void;
41
+ handleClientError(err: any): void;
42
+ filterActions(): ProfileCardAction[];
43
+ renderProfileCard: () => JSX.Element;
44
+ renderKudosLauncher: () => false | JSX.Element | undefined;
45
+ renderTrigger: (triggerProps: TriggerProps) => JSX.Element;
46
+ renderPopup(): React.ReactNode;
47
+ render(): React.ReactNode;
48
+ }
49
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, keyof TeamProfileCardTriggerProps>> & Partial<Pick<Partial<TeamProfileCardTriggerProps>, never>> & React.RefAttributes<any>>;
50
+ export default _default;
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const TeamProfileCardLazy: import("react").LazyExoticComponent<(props: import("../../types").TeamProfilecardProps) => JSX.Element | null>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { AnalyticsWithDurationProps, ProfileCardAction } from '../../types';
3
+ type OverflowButtonsProps = {
4
+ actions: ProfileCardAction[];
5
+ onItemClick: (action: ProfileCardAction, args: any, event: React.MouseEvent | React.KeyboardEvent, index: number) => void;
6
+ } & AnalyticsWithDurationProps;
7
+ export declare const ACTION_OVERFLOW_THRESHOLD = 2;
8
+ export declare const OverflowProfileCardButtons: (props: OverflowButtonsProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { AnalyticsProps, ProfilecardProps } from '../../types';
3
+ export declare const ProfilecardInternal: (props: ProfilecardProps & AnalyticsProps) => JSX.Element | null;
4
+ declare const _default: React.ForwardRefExoticComponent<Omit<ProfilecardProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { AnalyticsWithDurationProps, ProfilecardProps } from '../../types';
3
+ export declare const ProfileCardDetails: (props: ProfilecardProps & AnalyticsWithDurationProps) => JSX.Element;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { AnalyticsProps, ProfileCardAction, ProfileCardClientData, ProfileCardResourcedProps, ProfileCardResourcedState, 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: (payload: AnalyticsEventPayload) => void;
9
+ componentDidMount(): void;
10
+ componentDidUpdate(prevProps: ProfileCardResourcedProps, prevState: ProfileCardResourcedState): void;
11
+ componentWillUnmount(): void;
12
+ clientFetchProfile: () => void;
13
+ handleClientSuccess(profileData: ProfileCardClientData, reportingLinesData: TeamCentralReportingLinesData, shouldShowGiveKudos: boolean): 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 _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, keyof ProfileCardResourcedProps>> & Partial<Pick<Partial<ProfileCardResourcedProps>, never>> & React.RefAttributes<any>>;
22
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { AnalyticsProps, ProfileCardTriggerProps } from '../../types';
3
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<ProfileCardTriggerProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ProfileCardTriggerProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, keyof ProfileCardTriggerProps>> & Partial<Pick<Partial<ProfileCardTriggerProps>, never>> & React.RefAttributes<any>>;
4
+ export default _default;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { AnalyticsWithDurationProps, ProfilecardProps } from '../../types';
3
+ export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
+ declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => JSX.Element;
5
+ export default ReportingLinesDetails;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ interface AnalyticsProps {
4
+ fireAnalytics: (payload: AnalyticsEventPayload) => void;
5
+ }
6
+ declare const UserLoadingState: ({ fireAnalytics }: AnalyticsProps) => JSX.Element;
7
+ export default UserLoadingState;
@@ -0,0 +1,4 @@
1
+ export { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
2
+ export { ProfileCardLazy } from './lazyProfileCard';
3
+ import ProfileCardTrigger from './ProfileCardTrigger';
4
+ export default ProfileCardTrigger;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ 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>>>;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'pt.profile-card.closed.account': string;
9
+ 'pt.profile-card.closed.account.has.date.a.few.months': string;
10
+ 'pt.profile-card.closed.account.has.date.last.month': string;
11
+ 'pt.profile-card.closed.account.has.date.more.than.a.year': string;
12
+ 'pt.profile-card.closed.account.has.date.several.months': string;
13
+ 'pt.profile-card.closed.account.has.date.this.month': string;
14
+ 'pt.profile-card.closed.account.has.date.this.week': string;
15
+ 'pt.profile-card.closed.account.no.date': string;
16
+ 'pt.profile-card.disabled.account.default.name': string;
17
+ 'pt.profile-card.general.msg.disabled.user': string;
18
+ 'pt.profile-card.give-kudos': string;
19
+ 'pt.profile-card.inactive.account': string;
20
+ 'pt.profile-card.inactive.account.has.date.a.few.months': string;
21
+ 'pt.profile-card.inactive.account.has.date.last.month': string;
22
+ 'pt.profile-card.inactive.account.has.date.more.than.a.year': string;
23
+ 'pt.profile-card.inactive.account.has.date.several.months': string;
24
+ 'pt.profile-card.inactive.account.has.date.this.month': string;
25
+ 'pt.profile-card.inactive.account.has.date.this.week': string;
26
+ 'pt.profile-card.inactive.account.no.date': string;
27
+ 'pt.profile-card.more-icon-label': string;
28
+ 'pt.team-profile-card.directReports.heading': string;
29
+ 'pt.team-profile-card.error.refresh-button': string;
30
+ 'pt.team-profile-card.error.suggestion': string;
31
+ 'pt.team-profile-card.error.title': string;
32
+ 'pt.team-profile-card.forbidden-error-state.description': string;
33
+ 'pt.team-profile-card.forbidden-error-state.title': string;
34
+ 'pt.team-profile-card.manager.heading': string;
35
+ 'pt.team-profile-card.team.action.view-profile': string;
36
+ 'pt.team-profile-card.team.member.count': string;
37
+ 'pt.team-profile-card.team.member.count-including-you': string;
38
+ 'pt.team-profile-card.team.member.many': string;
39
+ 'pt.team-profile-card.team.member.many-including-you': string;
40
+ };
41
+ export default _default;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'pt.profile-card.closed.account': string;
9
+ 'pt.profile-card.closed.account.has.date.a.few.months': string;
10
+ 'pt.profile-card.closed.account.has.date.last.month': string;
11
+ 'pt.profile-card.closed.account.has.date.more.than.a.year': string;
12
+ 'pt.profile-card.closed.account.has.date.several.months': string;
13
+ 'pt.profile-card.closed.account.has.date.this.month': string;
14
+ 'pt.profile-card.closed.account.has.date.this.week': string;
15
+ 'pt.profile-card.closed.account.no.date': string;
16
+ 'pt.profile-card.disabled.account.default.name': string;
17
+ 'pt.profile-card.general.msg.disabled.user': string;
18
+ 'pt.profile-card.give-kudos': string;
19
+ 'pt.profile-card.inactive.account': string;
20
+ 'pt.profile-card.inactive.account.has.date.a.few.months': string;
21
+ 'pt.profile-card.inactive.account.has.date.last.month': string;
22
+ 'pt.profile-card.inactive.account.has.date.more.than.a.year': string;
23
+ 'pt.profile-card.inactive.account.has.date.several.months': string;
24
+ 'pt.profile-card.inactive.account.has.date.this.month': string;
25
+ 'pt.profile-card.inactive.account.has.date.this.week': string;
26
+ 'pt.profile-card.inactive.account.no.date': string;
27
+ 'pt.profile-card.more-icon-label': string;
28
+ 'pt.team-profile-card.directReports.heading': string;
29
+ 'pt.team-profile-card.error.refresh-button': string;
30
+ 'pt.team-profile-card.error.suggestion': string;
31
+ 'pt.team-profile-card.error.title': string;
32
+ 'pt.team-profile-card.forbidden-error-state.description': string;
33
+ 'pt.team-profile-card.forbidden-error-state.title': string;
34
+ 'pt.team-profile-card.manager.heading': string;
35
+ 'pt.team-profile-card.team.action.view-profile': string;
36
+ 'pt.team-profile-card.team.member.count': string;
37
+ 'pt.team-profile-card.team.member.count-including-you': string;
38
+ 'pt.team-profile-card.team.member.many': string;
39
+ 'pt.team-profile-card.team.member.many-including-you': string;
40
+ };
41
+ export default _default;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'pt.profile-card.closed.account': string;
9
+ 'pt.profile-card.closed.account.has.date.a.few.months': string;
10
+ 'pt.profile-card.closed.account.has.date.last.month': string;
11
+ 'pt.profile-card.closed.account.has.date.more.than.a.year': string;
12
+ 'pt.profile-card.closed.account.has.date.several.months': string;
13
+ 'pt.profile-card.closed.account.has.date.this.month': string;
14
+ 'pt.profile-card.closed.account.has.date.this.week': string;
15
+ 'pt.profile-card.closed.account.no.date': string;
16
+ 'pt.profile-card.disabled.account.default.name': string;
17
+ 'pt.profile-card.general.msg.disabled.user': string;
18
+ 'pt.profile-card.give-kudos': string;
19
+ 'pt.profile-card.inactive.account': string;
20
+ 'pt.profile-card.inactive.account.has.date.a.few.months': string;
21
+ 'pt.profile-card.inactive.account.has.date.last.month': string;
22
+ 'pt.profile-card.inactive.account.has.date.more.than.a.year': string;
23
+ 'pt.profile-card.inactive.account.has.date.several.months': string;
24
+ 'pt.profile-card.inactive.account.has.date.this.month': string;
25
+ 'pt.profile-card.inactive.account.has.date.this.week': string;
26
+ 'pt.profile-card.inactive.account.no.date': string;
27
+ 'pt.profile-card.more-icon-label': string;
28
+ 'pt.team-profile-card.directReports.heading': string;
29
+ 'pt.team-profile-card.error.refresh-button': string;
30
+ 'pt.team-profile-card.error.suggestion': string;
31
+ 'pt.team-profile-card.error.title': string;
32
+ 'pt.team-profile-card.forbidden-error-state.description': string;
33
+ 'pt.team-profile-card.forbidden-error-state.title': string;
34
+ 'pt.team-profile-card.manager.heading': string;
35
+ 'pt.team-profile-card.team.action.view-profile': string;
36
+ 'pt.team-profile-card.team.member.count': string;
37
+ 'pt.team-profile-card.team.member.count-including-you': string;
38
+ 'pt.team-profile-card.team.member.many': string;
39
+ 'pt.team-profile-card.team.member.many-including-you': string;
40
+ };
41
+ export default _default;