@atlaskit/profilecard 19.12.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 +16 -0
  2. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  3. package/dist/cjs/components/Team/TeamProfileCard.js +1 -2
  4. package/dist/cjs/components/Team/TeamProfileCardTrigger.js +10 -5
  5. package/dist/cjs/components/User/ProfileCardTrigger.js +7 -4
  6. package/dist/cjs/components/User/ProfileCardTriggerNext.js +1 -2
  7. package/dist/cjs/styled/Card.js +50 -5
  8. package/dist/cjs/styled/Error.js +9 -0
  9. package/dist/cjs/styled/ReportingLines.js +9 -0
  10. package/dist/cjs/styled/TeamCard.js +28 -1
  11. package/dist/cjs/util/analytics.js +1 -1
  12. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  13. package/dist/es2019/components/Team/TeamProfileCard.js +1 -2
  14. package/dist/es2019/components/Team/TeamProfileCardTrigger.js +10 -5
  15. package/dist/es2019/components/User/ProfileCardTrigger.js +7 -4
  16. package/dist/es2019/components/User/ProfileCardTriggerNext.js +1 -2
  17. package/dist/es2019/styled/Card.js +47 -3
  18. package/dist/es2019/styled/Error.js +10 -0
  19. package/dist/es2019/styled/ReportingLines.js +10 -0
  20. package/dist/es2019/styled/TeamCard.js +29 -1
  21. package/dist/es2019/util/analytics.js +1 -1
  22. package/dist/esm/client/getTeamFromAGG.js +1 -1
  23. package/dist/esm/components/Team/TeamProfileCard.js +1 -2
  24. package/dist/esm/components/Team/TeamProfileCardTrigger.js +10 -5
  25. package/dist/esm/components/User/ProfileCardTrigger.js +7 -4
  26. package/dist/esm/components/User/ProfileCardTriggerNext.js +1 -2
  27. package/dist/esm/styled/Card.js +50 -5
  28. package/dist/esm/styled/Error.js +10 -0
  29. package/dist/esm/styled/ReportingLines.js +10 -0
  30. package/dist/esm/styled/TeamCard.js +29 -1
  31. package/dist/esm/util/analytics.js +1 -1
  32. package/dist/types/client/ProfileCardClient.d.ts +2 -2
  33. package/dist/types/client/TeamCentralCardClient.d.ts +1 -1
  34. package/dist/types/client/TeamProfileCardClient.d.ts +1 -1
  35. package/dist/types/client/UserProfileCardClient.d.ts +2 -2
  36. package/dist/types/client/errorUtils.d.ts +1 -1
  37. package/dist/types/components/Error/ErrorMessage.d.ts +2 -2
  38. package/dist/types/components/Team/TeamForbiddenErrorState.d.ts +1 -1
  39. package/dist/types/components/Team/TeamLoadingState.d.ts +1 -1
  40. package/dist/types/components/User/OverflowProfileCardButtons.d.ts +1 -1
  41. package/dist/types/components/User/ProfileCard.d.ts +1 -1
  42. package/dist/types/components/User/ProfileCardDetails.d.ts +1 -1
  43. package/dist/types/components/User/ProfileCardResourced.d.ts +2 -2
  44. package/dist/types/components/User/ReportingLinesDetails.d.ts +1 -1
  45. package/dist/types/components/User/UserLoadingState.d.ts +1 -1
  46. package/dist/types/internal/filterActions.d.ts +1 -1
  47. package/dist/types/internal/getLabelMessage.d.ts +1 -1
  48. package/dist/types/internal/relative-date.d.ts +1 -1
  49. package/dist/types/mocks/mock-team-client.d.ts +1 -1
  50. package/dist/types/mocks/reporting-lines-data.d.ts +1 -1
  51. package/dist/types/mocks/simple-mock-clients.d.ts +1 -1
  52. package/dist/types/mocks/team-data.d.ts +1 -1
  53. package/dist/types/types.d.ts +12 -6
  54. package/dist/types/util/analytics.d.ts +2 -2
  55. package/dist/types/util/click.d.ts +1 -1
  56. package/dist/types/util/withOuterListeners.d.ts +1 -1
  57. package/dist/types-ts4.5/client/ProfileCardClient.d.ts +2 -2
  58. package/dist/types-ts4.5/client/TeamCentralCardClient.d.ts +1 -1
  59. package/dist/types-ts4.5/client/TeamProfileCardClient.d.ts +1 -1
  60. package/dist/types-ts4.5/client/UserProfileCardClient.d.ts +2 -2
  61. package/dist/types-ts4.5/client/errorUtils.d.ts +1 -1
  62. package/dist/types-ts4.5/components/Error/ErrorMessage.d.ts +2 -2
  63. package/dist/types-ts4.5/components/Team/TeamForbiddenErrorState.d.ts +1 -1
  64. package/dist/types-ts4.5/components/Team/TeamLoadingState.d.ts +1 -1
  65. package/dist/types-ts4.5/components/User/OverflowProfileCardButtons.d.ts +1 -1
  66. package/dist/types-ts4.5/components/User/ProfileCard.d.ts +1 -1
  67. package/dist/types-ts4.5/components/User/ProfileCardDetails.d.ts +1 -1
  68. package/dist/types-ts4.5/components/User/ProfileCardResourced.d.ts +2 -2
  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,26 +1,36 @@
1
1
  import styled from '@emotion/styled';
2
2
  import { gridSize } from '@atlaskit/theme/constants';
3
3
  import { appLabelTextColor } from './constants';
4
+
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
4
6
  export var ReportingLinesSection = styled.div({
5
7
  // Minor left margin to align better with existing icon fields
6
8
  marginLeft: "var(--ds-space-050, 4px)",
7
9
  marginTop: "var(--ds-space-100, 8px)"
8
10
  });
11
+
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
9
13
  export var ReportingLinesHeading = styled.h3({
10
14
  color: appLabelTextColor,
11
15
  fontSize: "".concat(gridSize() * 1.5, "px"),
12
16
  fontWeight: 600,
13
17
  marginBottom: "var(--ds-space-100, 8px)"
14
18
  });
19
+
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
15
21
  export var ManagerSection = styled.div({
16
22
  display: 'flex',
17
23
  alignItems: 'center',
18
24
  margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)")
19
25
  });
26
+
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
20
28
  export var ManagerName = styled.span({
21
29
  fontSize: "".concat(gridSize() * 1.5, "px"),
22
30
  marginLeft: "var(--ds-space-100, 8px)"
23
31
  });
32
+
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
24
34
  export var OffsetWrapper = styled.div({
25
35
  marginTop: "var(--ds-space-050, 4px)",
26
36
  // Offset left margin so the avatar aligns with the heading
@@ -5,9 +5,13 @@ import { N20, N200 } from '@atlaskit/theme/colors';
5
5
  import { borderRadius, gridSize } from '@atlaskit/theme/constants';
6
6
  import { h600 } from '@atlaskit/theme/typography';
7
7
  import { bgColor, teamHeaderBgColor } from './constants';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
8
10
  export var CardTriggerWrapper = styled.div({
9
11
  display: 'inherit'
10
12
  });
13
+
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
11
15
  export var CardWrapper = styled.div({
12
16
  backgroundColor: bgColor,
13
17
  borderRadius: "".concat(borderRadius(), "px"),
@@ -16,23 +20,29 @@ export var CardWrapper = styled.div({
16
20
  WebkitFontSmoothing: 'antialiased',
17
21
  MozOsxFontSmoothing: 'grayscale'
18
22
  });
23
+
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
19
25
  export var TeamForbiddenErrorStateWrapper = styled.div({
20
26
  width: "".concat(gridSize() * 40, "px"),
21
27
  position: 'relative'
22
28
  });
23
29
 
24
- // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression -- needs manual remediation
30
+ // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
25
31
  export var CardHeader = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n background-image: ", ";\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
26
32
  return props.isLoading ? "var(--ds-background-neutral, ".concat(N20, ")") : props.image ? '' : teamHeaderBgColor;
27
33
  }, function (props) {
28
34
  return props.image ? "url(".concat(props.image, ")") : '';
29
35
  }, gridSize() * 16);
36
+
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
30
38
  export var CardContent = styled.div({
31
39
  display: 'flex',
32
40
  flexDirection: 'column',
33
41
  padding: "var(--ds-space-300, 24px)",
34
42
  minHeight: "".concat(gridSize() * 13, "px")
35
43
  });
44
+
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
36
46
  export var TeamName = styled.h6(h600, {
37
47
  textTransform: 'none',
38
48
  overflow: 'hidden',
@@ -41,19 +51,27 @@ export var TeamName = styled.h6(h600, {
41
51
  WebkitLineClamp: 2,
42
52
  WebkitBoxOrient: 'vertical'
43
53
  });
54
+
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
44
56
  export var MemberCount = styled.div({
45
57
  color: "var(--ds-text-subtlest, ".concat(N200, ")"),
46
58
  marginTop: "var(--ds-space-050, 4px)"
47
59
  });
60
+
61
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
48
62
  export var AvatarSection = styled.div({
49
63
  marginTop: "var(--ds-space-200, 16px)",
50
64
  marginLeft: "var(--ds-space-negative-025, -2px)"
51
65
  });
66
+
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
52
68
  export var DescriptionWrapper = styled.div({
53
69
  marginTop: "var(--ds-space-200, 16px)",
54
70
  alignItems: 'center',
55
71
  display: 'flex'
56
72
  });
73
+
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
57
75
  export var Description = styled.span({
58
76
  overflow: 'hidden',
59
77
  maxHeight: '60px',
@@ -61,6 +79,8 @@ export var Description = styled.span({
61
79
  WebkitLineClamp: 3,
62
80
  WebkitBoxOrient: 'vertical'
63
81
  });
82
+
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
64
84
  export var ActionButtons = styled.div({
65
85
  width: 'calc(100% + 8px)',
66
86
  display: 'flex',
@@ -68,18 +88,26 @@ export var ActionButtons = styled.div({
68
88
  margin: "var(--ds-space-300, 24px)".concat(" ", "var(--ds-space-negative-300, -24px)", " 0 ", "var(--ds-space-negative-100, -8px)"),
69
89
  backgroundColor: "var(--ds-surface-overlay, hsla(0, 100%, 100%, 0.2))"
70
90
  });
91
+
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
71
93
  export var WrappedButton = styled.div({
72
94
  flexBasis: 0,
73
95
  flexGrow: 1,
74
96
  marginLeft: "var(--ds-space-100, 8px)"
75
97
  });
98
+
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
76
100
  export var MoreButton = styled.div({
77
101
  marginLeft: "var(--ds-space-100, 8px)"
78
102
  });
103
+
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
79
105
  export var LoadingWrapper = styled.div({
80
106
  textAlign: 'center',
81
107
  marginTop: "var(--ds-space-500, 40px)"
82
108
  });
109
+
110
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
83
111
  export var AccessLockSVGWrapper = styled.div({
84
112
  marginBottom: "var(--ds-space-300, 24px)"
85
113
  });
@@ -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.12.0"
41
+ packageVersion: "19.14.0"
42
42
  }, attributes), {}, {
43
43
  firedAt: Math.round(getPageTime())
44
44
  })
@@ -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,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,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,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,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;