@atlaskit/profilecard 19.13.0 → 19.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  3. package/dist/cjs/components/Team/TeamProfileCardTrigger.js +9 -3
  4. package/dist/cjs/components/User/ProfileCardTrigger.js +6 -2
  5. package/dist/cjs/styled/Card.js +50 -5
  6. package/dist/cjs/styled/Error.js +9 -0
  7. package/dist/cjs/styled/ReportingLines.js +9 -0
  8. package/dist/cjs/styled/TeamCard.js +28 -1
  9. package/dist/cjs/util/analytics.js +1 -1
  10. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  11. package/dist/es2019/components/Team/TeamProfileCardTrigger.js +9 -3
  12. package/dist/es2019/components/User/ProfileCardTrigger.js +6 -2
  13. package/dist/es2019/styled/Card.js +47 -3
  14. package/dist/es2019/styled/Error.js +10 -0
  15. package/dist/es2019/styled/ReportingLines.js +10 -0
  16. package/dist/es2019/styled/TeamCard.js +29 -1
  17. package/dist/es2019/util/analytics.js +1 -1
  18. package/dist/esm/client/getTeamFromAGG.js +1 -1
  19. package/dist/esm/components/Team/TeamProfileCardTrigger.js +9 -3
  20. package/dist/esm/components/User/ProfileCardTrigger.js +6 -2
  21. package/dist/esm/styled/Card.js +50 -5
  22. package/dist/esm/styled/Error.js +10 -0
  23. package/dist/esm/styled/ReportingLines.js +10 -0
  24. package/dist/esm/styled/TeamCard.js +29 -1
  25. package/dist/esm/util/analytics.js +1 -1
  26. package/dist/types/client/ProfileCardClient.d.ts +2 -2
  27. package/dist/types/client/TeamCentralCardClient.d.ts +1 -1
  28. package/dist/types/client/TeamProfileCardClient.d.ts +1 -1
  29. package/dist/types/client/UserProfileCardClient.d.ts +2 -2
  30. package/dist/types/client/errorUtils.d.ts +1 -1
  31. package/dist/types/components/Error/ErrorMessage.d.ts +2 -2
  32. package/dist/types/components/Team/TeamForbiddenErrorState.d.ts +1 -1
  33. package/dist/types/components/Team/TeamLoadingState.d.ts +1 -1
  34. package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +2 -2
  35. package/dist/types/components/User/OverflowProfileCardButtons.d.ts +1 -1
  36. package/dist/types/components/User/ProfileCard.d.ts +1 -1
  37. package/dist/types/components/User/ProfileCardDetails.d.ts +1 -1
  38. package/dist/types/components/User/ProfileCardResourced.d.ts +2 -2
  39. package/dist/types/components/User/ProfileCardTrigger.d.ts +1 -1
  40. package/dist/types/components/User/ProfileCardTriggerNext.d.ts +1 -1
  41. package/dist/types/components/User/ReportingLinesDetails.d.ts +1 -1
  42. package/dist/types/components/User/UserLoadingState.d.ts +1 -1
  43. package/dist/types/internal/filterActions.d.ts +1 -1
  44. package/dist/types/internal/getLabelMessage.d.ts +1 -1
  45. package/dist/types/internal/relative-date.d.ts +1 -1
  46. package/dist/types/mocks/mock-team-client.d.ts +1 -1
  47. package/dist/types/mocks/reporting-lines-data.d.ts +1 -1
  48. package/dist/types/mocks/simple-mock-clients.d.ts +1 -1
  49. package/dist/types/mocks/team-data.d.ts +1 -1
  50. package/dist/types/types.d.ts +12 -6
  51. package/dist/types/util/analytics.d.ts +2 -2
  52. package/dist/types/util/click.d.ts +1 -1
  53. package/dist/types/util/withOuterListeners.d.ts +1 -1
  54. package/dist/types-ts4.5/client/ProfileCardClient.d.ts +2 -2
  55. package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +1 -1
  56. package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +1 -1
  57. package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +2 -2
  58. package/dist/types-ts4.5/client/errorUtils.d.ts +1 -1
  59. package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +2 -2
  60. package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +1 -1
  61. package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +1 -1
  62. package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +2 -2
  63. package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +1 -1
  64. package/dist/types-ts4.5/components/User/ProfileCard.d.ts +1 -1
  65. package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +1 -1
  66. package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +2 -2
  67. package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +1 -1
  68. package/dist/types-ts4.5/components/User/ProfileCardTriggerNext.d.ts +1 -1
  69. package/dist/types-ts4.5/components/User/ReportingLinesDetails.d.ts +1 -1
  70. package/dist/types-ts4.5/components/User/UserLoadingState.d.ts +1 -1
  71. package/dist/types-ts4.5/internal/filterActions.d.ts +1 -1
  72. package/dist/types-ts4.5/internal/getLabelMessage.d.ts +1 -1
  73. package/dist/types-ts4.5/internal/relative-date.d.ts +1 -1
  74. package/dist/types-ts4.5/mocks/mock-team-client.d.ts +1 -1
  75. package/dist/types-ts4.5/mocks/reporting-lines-data.d.ts +1 -1
  76. package/dist/types-ts4.5/mocks/simple-mock-clients.d.ts +1 -1
  77. package/dist/types-ts4.5/mocks/team-data.d.ts +1 -1
  78. package/dist/types-ts4.5/types.d.ts +12 -6
  79. package/dist/types-ts4.5/util/analytics.d.ts +2 -2
  80. package/dist/types-ts4.5/util/click.d.ts +1 -1
  81. package/dist/types-ts4.5/util/withOuterListeners.d.ts +1 -1
  82. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AnalyticsProps, ProfilecardProps } from '../../types';
2
+ import { type AnalyticsProps, type ProfilecardProps } from '../../types';
3
3
  export declare const ProfilecardInternal: (props: ProfilecardProps & AnalyticsProps) => JSX.Element | null;
4
4
  declare const _default: React.ForwardRefExoticComponent<Omit<ProfilecardProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
5
5
  export default _default;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsWithDurationProps, ProfilecardProps } from '../../types';
2
+ import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export declare const ProfileCardDetails: (props: ProfilecardProps & AnalyticsWithDurationProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
- import { AnalyticsProps, ProfileCardAction, ProfileCardClientData, ProfileCardResourcedProps, ProfileCardResourcedState, TeamCentralReportingLinesData } from '../../types';
2
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { type AnalyticsProps, type ProfileCardAction, type ProfileCardClientData, type ProfileCardResourcedProps, type ProfileCardResourcedState, type TeamCentralReportingLinesData } from '../../types';
4
4
  declare class ProfileCardResourced extends React.PureComponent<ProfileCardResourcedProps & AnalyticsProps, ProfileCardResourcedState> {
5
5
  static defaultProps: Partial<ProfileCardResourcedProps>;
6
6
  _isMounted: boolean;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ProfileCardTriggerProps } from '../../types';
2
+ import { type ProfileCardTriggerProps } from '../../types';
3
3
  export default function ProfilecardTriggerSwitch(props: ProfileCardTriggerProps): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ProfileCardTriggerProps } from '../../types';
2
+ import { type ProfileCardTriggerProps } from '../../types';
3
3
  export default function ProfilecardTriggerNext({ trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, }: ProfileCardTriggerProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsWithDurationProps, ProfilecardProps } from '../../types';
2
+ import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
4
  declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => JSX.Element;
5
5
  export default ReportingLinesDetails;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
3
  interface AnalyticsProps {
4
4
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
5
5
  }
@@ -1,3 +1,3 @@
1
- import { ProfileCardAction } from '../types';
1
+ import { type ProfileCardAction } from '../types';
2
2
  declare const filterActions: (actions: ProfileCardAction[] | undefined, data: any) => ProfileCardAction[];
3
3
  export default filterActions;
@@ -1,3 +1,3 @@
1
- import { MessageDescriptor } from 'react-intl-next';
1
+ import { type MessageDescriptor } from 'react-intl-next';
2
2
  declare const getLabelMessage: (ariaLabelProp: string | undefined, fullName: string | undefined, formatMessage: (message: MessageDescriptor, values?: Record<string, string>) => string) => string;
3
3
  export default getLabelMessage;
@@ -1,3 +1,3 @@
1
- import { RelativeDateKeyType } from '../types';
1
+ import { type RelativeDateKeyType } from '../types';
2
2
  export declare function isValidDate(date: Date, today?: Date): boolean;
3
3
  export default function getRelativeDateKey(date?: Date | null, today?: Date): RelativeDateKeyType;
@@ -1,4 +1,4 @@
1
- import { Team } from '../types';
1
+ import { type Team } from '../types';
2
2
  export default function getMockTeamClient(data: {
3
3
  team: Team;
4
4
  timeout: number;
@@ -1,2 +1,2 @@
1
- import { TeamCentralReportingLinesData } from '../types';
1
+ import { type TeamCentralReportingLinesData } from '../types';
2
2
  export declare const reportingLinesData: TeamCentralReportingLinesData;
@@ -1,7 +1,7 @@
1
1
  import ProfileCardClient from '../client/ProfileCardClient';
2
2
  import TeamProfileCardClient from '../client/TeamProfileCardClient';
3
3
  import UserProfileCardClient from '../client/UserProfileCardClient';
4
- import { ProfileCardClientData, Team } from '../types';
4
+ import { type ProfileCardClientData, type Team } from '../types';
5
5
  declare class SimpleMockTeamClient extends TeamProfileCardClient {
6
6
  makeRequest(teamId: string): Promise<Team>;
7
7
  }
@@ -1,4 +1,4 @@
1
- import { Team } from '../types';
1
+ import { type Team } from '../types';
2
2
  export default function teamData({ headerImage, displayName, members: memberCount, description, }: {
3
3
  headerImage?: 'None' | 'Picture';
4
4
  displayName?: 'Short' | 'Medium' | 'Long' | 'Overlong';
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import { IntlShape } from 'react-intl-next';
3
- import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- import TeamCentralCardClient from './client/TeamCentralCardClient';
5
- import TeamProfileCardClient from './client/TeamProfileCardClient';
6
- import UserProfileCardClient from './client/UserProfileCardClient';
1
+ import type React from 'react';
2
+ import { type IntlShape } from 'react-intl-next';
3
+ import { type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
+ import type TeamCentralCardClient from './client/TeamCentralCardClient';
5
+ import type TeamProfileCardClient from './client/TeamProfileCardClient';
6
+ import type UserProfileCardClient from './client/UserProfileCardClient';
7
7
  export interface ApiClientResponse {
8
8
  User: {
9
9
  id: string;
@@ -119,6 +119,9 @@ export interface ProfileCardTriggerProps {
119
119
  disabledAriaAttributes?: boolean;
120
120
  onVisibilityChange?: (isVisible: boolean) => void;
121
121
  isVisible?: boolean;
122
+ displayConfig?: {
123
+ showKudos?: boolean;
124
+ };
122
125
  }
123
126
  export interface ProfileCardTriggerState {
124
127
  visible?: boolean;
@@ -252,6 +255,9 @@ export interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
252
255
  * Optional cloudId. Pass this if rendering card within a sited context.
253
256
  */
254
257
  cloudId?: string;
258
+ displayConfig?: {
259
+ showKudos?: boolean;
260
+ };
255
261
  }
256
262
  export type StatusType = 'active' | 'inactive' | 'closed';
257
263
  export type TriggerType = 'hover' | 'click';
@@ -1,6 +1,6 @@
1
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
1
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
- import { ErrorAttributes } from '../client/types';
3
+ import { type ErrorAttributes } from '../client/types';
4
4
  type GenericAttributes = Record<string, string | number | boolean | undefined | string[]> | ErrorAttributes;
5
5
  interface AnalyticsEvent {
6
6
  action?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  type Event = React.MouseEvent | React.KeyboardEvent;
3
3
  export declare const isBasicClick: (event: Event) => boolean;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentType } from 'react';
1
+ import React, { type ComponentType } from 'react';
2
2
  export interface WithOuterListenersProps {
3
3
  handleClickOutside?: () => void;
4
4
  handleEscapeKeydown?: () => void;
@@ -1,5 +1,5 @@
1
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
- import { ClientOverrides, ProfileClientOptions, TeamCentralReportingLinesData } from '../types';
1
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type ClientOverrides, type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types';
3
3
  import TeamCentralCardClient from './TeamCentralCardClient';
4
4
  import TeamProfileCardClient from './TeamProfileCardClient';
5
5
  import UserProfileCardClient from './UserProfileCardClient';
@@ -1,4 +1,4 @@
1
- import { ProfileClientOptions, TeamCentralReportingLinesData } from '../types';
1
+ import { type ProfileClientOptions, type TeamCentralReportingLinesData } from '../types';
2
2
  import CachingClient from './CachingClient';
3
3
  export declare const buildReportingLinesQuery: (aaid: string) => {
4
4
  query: string;
@@ -1,4 +1,4 @@
1
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
1
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
2
  import type { ProfileClientOptions, Team } from '../types';
3
3
  import CachingClient from './CachingClient';
4
4
  export default class TeamProfileCardClient extends CachingClient<Team> {
@@ -1,5 +1,5 @@
1
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
- import { ApiClientResponse, ProfileCardClientData, ProfileClientOptions } from '../types';
1
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type ApiClientResponse, type ProfileCardClientData, type ProfileClientOptions } from '../types';
3
3
  import CachingClient from './CachingClient';
4
4
  /**
5
5
  * Transform response from GraphQL
@@ -1,5 +1,5 @@
1
1
  import { AGGError, AGGErrors, DirectoryGraphQLError, DirectoryGraphQLErrors } from '../util/errors';
2
- import { ErrorAttributes } from './types';
2
+ import { type ErrorAttributes } from './types';
3
3
  export declare const getErrorAttributes: (error?: DirectoryGraphQLErrors | Error | unknown | DirectoryGraphQLError | AGGError | AGGErrors) => ErrorAttributes;
4
4
  export declare const handleDirectoryGraphQLErrors: (errors: unknown, traceId: string | null) => void;
5
5
  export declare const handleAGGErrors: (errors: unknown, traceId: string | null) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
- import { ProfileCardErrorType } from '../../types';
2
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { type ProfileCardErrorType } from '../../types';
4
4
  interface Props {
5
5
  reload?: () => void | undefined;
6
6
  errorType?: ProfileCardErrorType;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsFunction } from '../../types';
2
+ import { type AnalyticsFunction } from '../../types';
3
3
  declare const _default: (props: {
4
4
  analytics: AnalyticsFunction;
5
5
  }) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsFunction } from '../../types';
2
+ import { type AnalyticsFunction } from '../../types';
3
3
  declare const _default: (props: {
4
4
  analytics: AnalyticsFunction;
5
5
  }) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
- import { TriggerProps } from '@atlaskit/popup/types';
2
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { type TriggerProps } from '@atlaskit/popup/types';
4
4
  import type { AnalyticsFromDuration, AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
5
5
  export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps, TeamProfileCardTriggerState> {
6
6
  static defaultProps: Partial<TeamProfileCardTriggerProps>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AnalyticsWithDurationProps, ProfileCardAction } from '../../types';
2
+ import { type AnalyticsWithDurationProps, type ProfileCardAction } from '../../types';
3
3
  type OverflowButtonsProps = {
4
4
  actions: ProfileCardAction[];
5
5
  onItemClick: (action: ProfileCardAction, args: any, event: React.MouseEvent | React.KeyboardEvent, index: number) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AnalyticsProps, ProfilecardProps } from '../../types';
2
+ import { type AnalyticsProps, type ProfilecardProps } from '../../types';
3
3
  export declare const ProfilecardInternal: (props: ProfilecardProps & AnalyticsProps) => JSX.Element | null;
4
4
  declare const _default: React.ForwardRefExoticComponent<Omit<ProfilecardProps & AnalyticsProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>;
5
5
  export default _default;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsWithDurationProps, ProfilecardProps } from '../../types';
2
+ import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export declare const ProfileCardDetails: (props: ProfilecardProps & AnalyticsWithDurationProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
- import { AnalyticsProps, ProfileCardAction, ProfileCardClientData, ProfileCardResourcedProps, ProfileCardResourcedState, TeamCentralReportingLinesData } from '../../types';
2
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
+ import { type AnalyticsProps, type ProfileCardAction, type ProfileCardClientData, type ProfileCardResourcedProps, type ProfileCardResourcedState, type TeamCentralReportingLinesData } from '../../types';
4
4
  declare class ProfileCardResourced extends React.PureComponent<ProfileCardResourcedProps & AnalyticsProps, ProfileCardResourcedState> {
5
5
  static defaultProps: Partial<ProfileCardResourcedProps>;
6
6
  _isMounted: boolean;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ProfileCardTriggerProps } from '../../types';
2
+ import { type ProfileCardTriggerProps } from '../../types';
3
3
  export default function ProfilecardTriggerSwitch(props: ProfileCardTriggerProps): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { ProfileCardTriggerProps } from '../../types';
2
+ import { type ProfileCardTriggerProps } from '../../types';
3
3
  export default function ProfilecardTriggerNext({ trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, }: ProfileCardTriggerProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsWithDurationProps, ProfilecardProps } from '../../types';
2
+ import { type AnalyticsWithDurationProps, type ProfilecardProps } from '../../types';
3
3
  export type ReportingLinesDetailsProps = Pick<ProfilecardProps, 'reportingLines' | 'reportingLinesProfileUrl' | 'onReportingLinesClick'> & AnalyticsWithDurationProps;
4
4
  declare const ReportingLinesDetails: (props: ReportingLinesDetailsProps) => JSX.Element;
5
5
  export default ReportingLinesDetails;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
3
3
  interface AnalyticsProps {
4
4
  fireAnalytics: (payload: AnalyticsEventPayload) => void;
5
5
  }
@@ -1,3 +1,3 @@
1
- import { ProfileCardAction } from '../types';
1
+ import { type ProfileCardAction } from '../types';
2
2
  declare const filterActions: (actions: ProfileCardAction[] | undefined, data: any) => ProfileCardAction[];
3
3
  export default filterActions;
@@ -1,3 +1,3 @@
1
- import { MessageDescriptor } from 'react-intl-next';
1
+ import { type MessageDescriptor } from 'react-intl-next';
2
2
  declare const getLabelMessage: (ariaLabelProp: string | undefined, fullName: string | undefined, formatMessage: (message: MessageDescriptor, values?: Record<string, string>) => string) => string;
3
3
  export default getLabelMessage;
@@ -1,3 +1,3 @@
1
- import { RelativeDateKeyType } from '../types';
1
+ import { type RelativeDateKeyType } from '../types';
2
2
  export declare function isValidDate(date: Date, today?: Date): boolean;
3
3
  export default function getRelativeDateKey(date?: Date | null, today?: Date): RelativeDateKeyType;
@@ -1,4 +1,4 @@
1
- import { Team } from '../types';
1
+ import { type Team } from '../types';
2
2
  export default function getMockTeamClient(data: {
3
3
  team: Team;
4
4
  timeout: number;
@@ -1,2 +1,2 @@
1
- import { TeamCentralReportingLinesData } from '../types';
1
+ import { type TeamCentralReportingLinesData } from '../types';
2
2
  export declare const reportingLinesData: TeamCentralReportingLinesData;
@@ -1,7 +1,7 @@
1
1
  import ProfileCardClient from '../client/ProfileCardClient';
2
2
  import TeamProfileCardClient from '../client/TeamProfileCardClient';
3
3
  import UserProfileCardClient from '../client/UserProfileCardClient';
4
- import { ProfileCardClientData, Team } from '../types';
4
+ import { type ProfileCardClientData, type Team } from '../types';
5
5
  declare class SimpleMockTeamClient extends TeamProfileCardClient {
6
6
  makeRequest(teamId: string): Promise<Team>;
7
7
  }
@@ -1,4 +1,4 @@
1
- import { Team } from '../types';
1
+ import { type Team } from '../types';
2
2
  export default function teamData({ headerImage, displayName, members: memberCount, description, }: {
3
3
  headerImage?: 'None' | 'Picture';
4
4
  displayName?: 'Short' | 'Medium' | 'Long' | 'Overlong';
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import { IntlShape } from 'react-intl-next';
3
- import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- import TeamCentralCardClient from './client/TeamCentralCardClient';
5
- import TeamProfileCardClient from './client/TeamProfileCardClient';
6
- import UserProfileCardClient from './client/UserProfileCardClient';
1
+ import type React from 'react';
2
+ import { type IntlShape } from 'react-intl-next';
3
+ import { type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
+ import type TeamCentralCardClient from './client/TeamCentralCardClient';
5
+ import type TeamProfileCardClient from './client/TeamProfileCardClient';
6
+ import type UserProfileCardClient from './client/UserProfileCardClient';
7
7
  export interface ApiClientResponse {
8
8
  User: {
9
9
  id: string;
@@ -119,6 +119,9 @@ export interface ProfileCardTriggerProps {
119
119
  disabledAriaAttributes?: boolean;
120
120
  onVisibilityChange?: (isVisible: boolean) => void;
121
121
  isVisible?: boolean;
122
+ displayConfig?: {
123
+ showKudos?: boolean;
124
+ };
122
125
  }
123
126
  export interface ProfileCardTriggerState {
124
127
  visible?: boolean;
@@ -252,6 +255,9 @@ export interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
252
255
  * Optional cloudId. Pass this if rendering card within a sited context.
253
256
  */
254
257
  cloudId?: string;
258
+ displayConfig?: {
259
+ showKudos?: boolean;
260
+ };
255
261
  }
256
262
  export type StatusType = 'active' | 'inactive' | 'closed';
257
263
  export type TriggerType = 'hover' | 'click';
@@ -1,6 +1,6 @@
1
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
1
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
2
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
- import { ErrorAttributes } from '../client/types';
3
+ import { type ErrorAttributes } from '../client/types';
4
4
  type GenericAttributes = Record<string, string | number | boolean | undefined | string[]> | ErrorAttributes;
5
5
  interface AnalyticsEvent {
6
6
  action?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  type Event = React.MouseEvent | React.KeyboardEvent;
3
3
  export declare const isBasicClick: (event: Event) => boolean;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentType } from 'react';
1
+ import React, { type ComponentType } from 'react';
2
2
  export interface WithOuterListenersProps {
3
3
  handleClickOutside?: () => void;
4
4
  handleEscapeKeydown?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "19.13.0",
3
+ "version": "19.14.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -53,22 +53,22 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@atlaskit/analytics-next": "^9.3.0",
56
- "@atlaskit/avatar": "^21.8.0",
56
+ "@atlaskit/avatar": "^21.9.0",
57
57
  "@atlaskit/avatar-group": "^9.6.0",
58
- "@atlaskit/button": "^17.14.0",
58
+ "@atlaskit/button": "^17.17.0",
59
59
  "@atlaskit/dropdown-menu": "^12.10.0",
60
60
  "@atlaskit/empty-state": "^7.8.0",
61
61
  "@atlaskit/focus-ring": "^1.4.0",
62
62
  "@atlaskit/give-kudos": "^2.1.1",
63
- "@atlaskit/icon": "^22.1.0",
63
+ "@atlaskit/icon": "^22.3.0",
64
64
  "@atlaskit/lozenge": "^11.7.0",
65
- "@atlaskit/menu": "^2.2.0",
65
+ "@atlaskit/menu": "^2.3.0",
66
66
  "@atlaskit/platform-feature-flags": "^0.2.4",
67
67
  "@atlaskit/popup": "^1.17.0",
68
68
  "@atlaskit/spinner": "^16.1.0",
69
69
  "@atlaskit/theme": "^12.8.0",
70
- "@atlaskit/tokens": "^1.48.0",
71
- "@atlaskit/tooltip": "^18.3.0",
70
+ "@atlaskit/tokens": "^1.49.0",
71
+ "@atlaskit/tooltip": "^18.4.0",
72
72
  "@babel/runtime": "^7.0.0",
73
73
  "@emotion/react": "^11.7.1",
74
74
  "@emotion/styled": "^11.0.0",