@atlaskit/profilecard 17.2.0 → 17.2.1
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.
- package/CHANGELOG.md +6 -0
- package/client/package.json +8 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.0/client/CachingClient.d.ts +18 -0
- package/dist/types-ts4.0/client/ProfileCardClient.d.ts +18 -0
- package/dist/types-ts4.0/client/TeamCentralCardClient.d.ts +31 -0
- package/dist/types-ts4.0/client/TeamProfileCardClient.d.ts +10 -0
- package/dist/types-ts4.0/client/UserProfileCardClient.d.ts +18 -0
- package/dist/types-ts4.0/client/errorUtils.d.ts +6 -0
- package/dist/types-ts4.0/client/getTeamFromAGG.d.ts +28 -0
- package/dist/types-ts4.0/client/graphqlUtils.d.ts +16 -0
- package/dist/types-ts4.0/client/index.d.ts +6 -0
- package/dist/types-ts4.0/components/Error/ErrorBoundary.d.ts +10 -0
- package/dist/types-ts4.0/components/Error/ErrorIllustration.d.ts +2 -0
- package/dist/types-ts4.0/components/Error/ErrorMessage.d.ts +10 -0
- package/dist/types-ts4.0/components/Error/index.d.ts +3 -0
- package/dist/types-ts4.0/components/Icon/IconLabel.d.ts +12 -0
- package/dist/types-ts4.0/components/Icon/index.d.ts +1 -0
- package/dist/types-ts4.0/components/Team/TeamLoadingState.d.ts +6 -0
- package/dist/types-ts4.0/components/Team/TeamProfileCard.d.ts +4 -0
- package/dist/types-ts4.0/components/Team/TeamProfileCardTrigger.d.ts +50 -0
- package/dist/types-ts4.0/components/Team/index.d.ts +4 -0
- package/dist/types-ts4.0/components/Team/lazyTeamProfileCard.d.ts +2 -0
- package/dist/types-ts4.0/components/User/OverflowProfileCardButtons.d.ts +9 -0
- package/dist/types-ts4.0/components/User/ProfileCard.d.ts +5 -0
- package/dist/types-ts4.0/components/User/ProfileCardDetails.d.ts +3 -0
- package/dist/types-ts4.0/components/User/ProfileCardResourced.d.ts +22 -0
- package/dist/types-ts4.0/components/User/ProfileCardTrigger.d.ts +4 -0
- package/dist/types-ts4.0/components/User/ReportingLinesDetails.d.ts +5 -0
- package/dist/types-ts4.0/components/User/UserLoadingState.d.ts +7 -0
- package/dist/types-ts4.0/components/User/index.d.ts +4 -0
- package/dist/types-ts4.0/components/User/lazyProfileCard.d.ts +2 -0
- package/dist/types-ts4.0/i18n/cs.d.ts +38 -0
- package/dist/types-ts4.0/i18n/da.d.ts +38 -0
- package/dist/types-ts4.0/i18n/de.d.ts +38 -0
- package/dist/types-ts4.0/i18n/en.d.ts +39 -0
- package/dist/types-ts4.0/i18n/en_GB.d.ts +39 -0
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +39 -0
- package/dist/types-ts4.0/i18n/es.d.ts +38 -0
- package/dist/types-ts4.0/i18n/et.d.ts +27 -0
- package/dist/types-ts4.0/i18n/fi.d.ts +38 -0
- package/dist/types-ts4.0/i18n/fr.d.ts +38 -0
- package/dist/types-ts4.0/i18n/hu.d.ts +38 -0
- package/dist/types-ts4.0/i18n/index.d.ts +36 -0
- package/dist/types-ts4.0/i18n/is.d.ts +27 -0
- package/dist/types-ts4.0/i18n/it.d.ts +38 -0
- package/dist/types-ts4.0/i18n/ja.d.ts +38 -0
- package/dist/types-ts4.0/i18n/ko.d.ts +38 -0
- package/dist/types-ts4.0/i18n/languages.d.ts +33 -0
- package/dist/types-ts4.0/i18n/nb.d.ts +38 -0
- package/dist/types-ts4.0/i18n/nl.d.ts +38 -0
- package/dist/types-ts4.0/i18n/pl.d.ts +38 -0
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +38 -0
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +27 -0
- package/dist/types-ts4.0/i18n/ro.d.ts +27 -0
- package/dist/types-ts4.0/i18n/ru.d.ts +38 -0
- package/dist/types-ts4.0/i18n/sk.d.ts +27 -0
- package/dist/types-ts4.0/i18n/sv.d.ts +38 -0
- package/dist/types-ts4.0/i18n/th.d.ts +38 -0
- package/dist/types-ts4.0/i18n/tr.d.ts +38 -0
- package/dist/types-ts4.0/i18n/uk.d.ts +38 -0
- package/dist/types-ts4.0/i18n/vi.d.ts +38 -0
- package/dist/types-ts4.0/i18n/zh.d.ts +38 -0
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +38 -0
- package/dist/types-ts4.0/index.d.ts +18 -0
- package/dist/types-ts4.0/internal/filterActions.d.ts +3 -0
- package/dist/types-ts4.0/internal/relative-date.d.ts +3 -0
- package/dist/types-ts4.0/messages.d.ts +153 -0
- package/dist/types-ts4.0/mocks/index.d.ts +4 -0
- package/dist/types-ts4.0/mocks/mock-profile-client.d.ts +1 -0
- package/dist/types-ts4.0/mocks/mock-team-client.d.ts +7 -0
- package/dist/types-ts4.0/mocks/profile-data.d.ts +41 -0
- package/dist/types-ts4.0/mocks/reporting-lines-data.d.ts +2 -0
- package/dist/types-ts4.0/mocks/simple-mock-clients.d.ts +14 -0
- package/dist/types-ts4.0/mocks/team-data.d.ts +7 -0
- package/dist/types-ts4.0/mocks/util.d.ts +6 -0
- package/dist/types-ts4.0/styled/Card.d.ts +31 -0
- package/dist/types-ts4.0/styled/Error.d.ts +6 -0
- package/dist/types-ts4.0/styled/ReportingLines.d.ts +6 -0
- package/dist/types-ts4.0/styled/TeamCard.d.ts +20 -0
- package/dist/types-ts4.0/styled/constants.d.ts +14 -0
- package/dist/types-ts4.0/types.d.ts +355 -0
- package/dist/types-ts4.0/util/analytics.d.ts +58 -0
- package/dist/types-ts4.0/util/click.d.ts +4 -0
- package/dist/types-ts4.0/util/config.d.ts +2 -0
- package/dist/types-ts4.0/util/performance.d.ts +1 -0
- package/dist/types-ts4.0/util/withOuterListeners.d.ts +6 -0
- package/messages/package.json +8 -1
- package/mocks/package.json +8 -1
- package/package.json +9 -2
- package/team/package.json +8 -1
- package/types/package.json +8 -1
- package/user/package.json +8 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Team } from '../types';
|
|
2
|
+
export default function teamData({ headerImage, displayName, members: memberCount, description, }: {
|
|
3
|
+
headerImage?: 'None' | 'Picture';
|
|
4
|
+
displayName?: 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
5
|
+
members?: number;
|
|
6
|
+
description?: 'None' | 'Short' | 'Medium' | 'Long' | 'Overlong';
|
|
7
|
+
}): Team;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FullNameLabelProps {
|
|
3
|
+
noMeta?: boolean;
|
|
4
|
+
isDisabledAccount?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const CardContainerEmpty: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const CardWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
8
|
+
export declare const ProfileImage: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const ActionsFlexSpacer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const KudosBlobAnimation: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const AnimatedKudosButton: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const ActionButtonGroup: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const OverflowActionButtonsWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const CardContent: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const DetailsGroup: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const DisabledInfo: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
17
|
+
export declare const FullNameLabel: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & FullNameLabelProps, any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & FullNameLabelProps>;
|
|
18
|
+
export declare const LozengeWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
19
|
+
export declare const CustomLozengeContainer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
20
|
+
export declare const JobTitleLabel: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
21
|
+
export declare const AppTitleLabel: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
22
|
+
export declare const SpinnerContainer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
23
|
+
interface CardContainerProps {
|
|
24
|
+
isDisabledUser?: boolean;
|
|
25
|
+
withoutElevation?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const CardContainer: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & CardContainerProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & CardContainerProps>;
|
|
28
|
+
export declare const DetailsLabel: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
29
|
+
export declare const DetailsLabelIcon: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
30
|
+
export declare const DetailsLabelText: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ErrorWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
3
|
+
export declare const ErrorTitle: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
4
|
+
export declare const ErrorText: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
5
|
+
export declare const TeamErrorTitle: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
6
|
+
export declare const TeamErrorText: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement>, any, import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ReportingLinesSection: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const ReportingLinesHeading: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
4
|
+
export declare const ManagerSection: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const ManagerName: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>>;
|
|
6
|
+
export declare const OffsetWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CardTriggerWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const CardWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
4
|
+
export declare const CardHeader: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
image?: string | undefined;
|
|
6
|
+
isLoading?: boolean | undefined;
|
|
7
|
+
}, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
8
|
+
image?: string | undefined;
|
|
9
|
+
isLoading?: boolean | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const CardContent: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const TeamName: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
13
|
+
export declare const MemberCount: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const AvatarSection: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const DescriptionWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const Description: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, any, import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>>;
|
|
17
|
+
export declare const ActionButtons: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
18
|
+
export declare const WrappedButton: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
19
|
+
export declare const MoreButton: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
20
|
+
export declare const LoadingWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const bgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-surface-overlay)">;
|
|
2
|
+
export declare const headerBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-brand-bold)">;
|
|
3
|
+
export declare const teamHeaderBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral)">;
|
|
4
|
+
export declare const headerBgColorDisabledUser: import("@atlaskit/theme").ThemedValue<"var(--ds-background-disabled)">;
|
|
5
|
+
export declare const headerTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-inverse)">;
|
|
6
|
+
export declare const headerTextColorInactive: import("@atlaskit/theme").ThemedValue<"var(--ds-text)">;
|
|
7
|
+
export declare const appLabelBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-neutral)">;
|
|
8
|
+
export declare const appLabelTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text)">;
|
|
9
|
+
export declare const labelTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text)">;
|
|
10
|
+
export declare const labelIconColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-subtlest)">;
|
|
11
|
+
export declare const errorIconColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-disabled)">;
|
|
12
|
+
export declare const errorTitleColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text)">;
|
|
13
|
+
export declare const errorTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-subtlest)">;
|
|
14
|
+
export declare const boxShadow: import("@atlaskit/theme").ThemedValue<"var(--ds-shadow-overlay)">;
|
|
@@ -0,0 +1,355 @@
|
|
|
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';
|
|
7
|
+
export interface ApiClientResponse {
|
|
8
|
+
User: {
|
|
9
|
+
id: string;
|
|
10
|
+
isBot: boolean;
|
|
11
|
+
isCurrentUser: boolean;
|
|
12
|
+
avatarUrl: string | null;
|
|
13
|
+
email: string | null;
|
|
14
|
+
fullName: string | null;
|
|
15
|
+
location: string | null;
|
|
16
|
+
meta: string | null;
|
|
17
|
+
nickname: string | null;
|
|
18
|
+
companyName: string | null;
|
|
19
|
+
remoteTimeString: string | null;
|
|
20
|
+
remoteWeekdayIndex: string | null;
|
|
21
|
+
remoteWeekdayString: string | null;
|
|
22
|
+
status: StatusType;
|
|
23
|
+
statusModifiedDate: number | null;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface Team {
|
|
27
|
+
largeAvatarImageUrl?: string;
|
|
28
|
+
smallAvatarImageUrl?: string;
|
|
29
|
+
largeHeaderImageUrl?: string;
|
|
30
|
+
smallHeaderImageUrl?: string;
|
|
31
|
+
id: string;
|
|
32
|
+
displayName: string;
|
|
33
|
+
description: string;
|
|
34
|
+
organizationId?: string;
|
|
35
|
+
members?: {
|
|
36
|
+
id: string;
|
|
37
|
+
fullName: string;
|
|
38
|
+
avatarUrl: string;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export interface ProfileCardClientData {
|
|
42
|
+
isBot: boolean;
|
|
43
|
+
isCurrentUser: boolean;
|
|
44
|
+
avatarUrl?: string;
|
|
45
|
+
email?: string;
|
|
46
|
+
fullName?: string;
|
|
47
|
+
location?: string;
|
|
48
|
+
meta?: string;
|
|
49
|
+
nickname?: string;
|
|
50
|
+
companyName?: string;
|
|
51
|
+
timestring?: string;
|
|
52
|
+
status: StatusType;
|
|
53
|
+
statusModifiedDate?: number | null;
|
|
54
|
+
customLozenges?: LozengeProps[];
|
|
55
|
+
}
|
|
56
|
+
export interface ReportingLinesUserPII {
|
|
57
|
+
name: string;
|
|
58
|
+
picture?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ReportingLinesUser {
|
|
61
|
+
accountIdentifier: string;
|
|
62
|
+
identifierType: 'ATLASSIAN_ID' | 'BASE64_HASH' | 'UNKNOWN';
|
|
63
|
+
pii?: ReportingLinesUserPII;
|
|
64
|
+
}
|
|
65
|
+
export interface TeamCentralReportingLinesData {
|
|
66
|
+
managers?: ReportingLinesUser[];
|
|
67
|
+
reports?: ReportingLinesUser[];
|
|
68
|
+
}
|
|
69
|
+
export interface ProfileCardResourcedProps {
|
|
70
|
+
userId: string;
|
|
71
|
+
cloudId: string;
|
|
72
|
+
resourceClient: ProfileClient;
|
|
73
|
+
actions?: ProfileCardAction[];
|
|
74
|
+
reportingLinesProfileUrl?: string;
|
|
75
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
76
|
+
position?: ProfilecardTriggerPosition;
|
|
77
|
+
trigger?: TriggerType;
|
|
78
|
+
children?: React.ReactNode;
|
|
79
|
+
addFlag?: (flag: any) => void;
|
|
80
|
+
}
|
|
81
|
+
export interface ProfileCardResourcedState {
|
|
82
|
+
visible?: boolean;
|
|
83
|
+
isLoading?: boolean;
|
|
84
|
+
hasError: boolean;
|
|
85
|
+
error?: ProfileCardErrorType;
|
|
86
|
+
data: ProfileCardClientData | null;
|
|
87
|
+
reportingLinesData?: TeamCentralReportingLinesData;
|
|
88
|
+
isKudosEnabled?: boolean;
|
|
89
|
+
kudosDrawerOpen: boolean;
|
|
90
|
+
}
|
|
91
|
+
export interface ProfileCardTriggerProps {
|
|
92
|
+
userId: string;
|
|
93
|
+
/**
|
|
94
|
+
A cloudId can be provided, and we'll verify that the target userId is an
|
|
95
|
+
actual user in the specified site.
|
|
96
|
+
|
|
97
|
+
Instead you can omit the cloudId and we won't do such a check.
|
|
98
|
+
|
|
99
|
+
If you have a cloudId and only want to show users who are in that site
|
|
100
|
+
then please provide it. If you're a site-less product or don't care about
|
|
101
|
+
verifying that the shown user is in a particular site, don't provide a
|
|
102
|
+
cloudId.
|
|
103
|
+
*/
|
|
104
|
+
cloudId?: string;
|
|
105
|
+
resourceClient: ProfileClient;
|
|
106
|
+
actions?: ProfileCardAction[];
|
|
107
|
+
reportingLinesProfileUrl?: string;
|
|
108
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
109
|
+
position?: ProfilecardTriggerPosition;
|
|
110
|
+
trigger?: TriggerType;
|
|
111
|
+
children?: React.ReactNode;
|
|
112
|
+
testId?: string;
|
|
113
|
+
addFlag?: (flag: any) => void;
|
|
114
|
+
}
|
|
115
|
+
export interface ProfileCardTriggerState {
|
|
116
|
+
visible?: boolean;
|
|
117
|
+
isLoading?: boolean;
|
|
118
|
+
hasError: boolean;
|
|
119
|
+
error?: ProfileCardErrorType;
|
|
120
|
+
data: ProfileCardClientData | null;
|
|
121
|
+
reportingLinesData?: TeamCentralReportingLinesData;
|
|
122
|
+
shouldShowGiveKudos?: boolean;
|
|
123
|
+
teamCentralBaseUrl?: string;
|
|
124
|
+
kudosDrawerOpen: boolean;
|
|
125
|
+
}
|
|
126
|
+
export interface TeamProfileCardTriggerState {
|
|
127
|
+
visible?: boolean;
|
|
128
|
+
isLoading?: boolean;
|
|
129
|
+
hasError: boolean;
|
|
130
|
+
error?: any;
|
|
131
|
+
data: Team | null;
|
|
132
|
+
renderError?: boolean;
|
|
133
|
+
shouldShowGiveKudos?: boolean;
|
|
134
|
+
teamCentralBaseUrl?: string;
|
|
135
|
+
kudosDrawerOpen: boolean;
|
|
136
|
+
}
|
|
137
|
+
export interface TeamProfilecardCoreProps {
|
|
138
|
+
/**
|
|
139
|
+
The id of the user viewing the profile card.
|
|
140
|
+
|
|
141
|
+
This is used to determine whether to say that the member count is
|
|
142
|
+
"including you" or not.
|
|
143
|
+
*/
|
|
144
|
+
viewingUserId?: string;
|
|
145
|
+
/**
|
|
146
|
+
A list of extra buttons to be displayed at the bottom of the card.
|
|
147
|
+
View Profile is always included by default.
|
|
148
|
+
*/
|
|
149
|
+
actions?: ProfileCardAction[];
|
|
150
|
+
/**
|
|
151
|
+
A function allowing products to provide an href for the user avatars in the
|
|
152
|
+
profilecard, e.g. so they can link to user's profile pages.
|
|
153
|
+
*/
|
|
154
|
+
generateUserLink?: (userId: string) => string;
|
|
155
|
+
/**
|
|
156
|
+
A function allowing products to provide an onClick handler for when the
|
|
157
|
+
user clicks on a user's avatar or avatar group item.
|
|
158
|
+
*/
|
|
159
|
+
onUserClick?: (userId: string, event: React.MouseEvent<Element>) => void;
|
|
160
|
+
/**
|
|
161
|
+
This should be a link to the team's profile page. This will be used for:
|
|
162
|
+
|
|
163
|
+
- Wrapping the trigger in a link to the team profile page (unless
|
|
164
|
+
triggerLinkType is `none`).
|
|
165
|
+
|
|
166
|
+
- Providing the link for the View Profile action button on the card.
|
|
167
|
+
*/
|
|
168
|
+
viewProfileLink: string;
|
|
169
|
+
/**
|
|
170
|
+
An onClick action that navigates to the team's profile page. Something you
|
|
171
|
+
may want, e.g. for an SPA site or tracking analytics of navigation. This
|
|
172
|
+
is optional, just the viewProfileLink will suffice. Will be used for:
|
|
173
|
+
|
|
174
|
+
- Adding an onClick to the trigger if the triggerLinkType is
|
|
175
|
+
`clickable-link`.
|
|
176
|
+
|
|
177
|
+
- Providing an onClick for the View Profile action button on the card.
|
|
178
|
+
*/
|
|
179
|
+
viewProfileOnClick?: (event?: React.MouseEvent<Element>) => void;
|
|
180
|
+
}
|
|
181
|
+
export interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
|
|
182
|
+
/** The id of the team. */
|
|
183
|
+
teamId: string;
|
|
184
|
+
/**
|
|
185
|
+
The id of the organization that the team belongs to.
|
|
186
|
+
Currently this is unused, but will become necessary in the future.
|
|
187
|
+
*/
|
|
188
|
+
orgId: string;
|
|
189
|
+
/** An instance of ProfileClient. */
|
|
190
|
+
resourceClient: ProfileClient;
|
|
191
|
+
/**
|
|
192
|
+
The position relative to the trigger that the card should be displayed in.
|
|
193
|
+
*/
|
|
194
|
+
position?: ProfilecardTriggerPosition;
|
|
195
|
+
/**
|
|
196
|
+
The interaction method used to trigger the team profile card to appear.
|
|
197
|
+
|
|
198
|
+
- Click is generally recommended, but your needs may vary.
|
|
199
|
+
|
|
200
|
+
- Hover works for mouse users, but does not support those who use a
|
|
201
|
+
keyboard or screen reader, avoid using this if it's possible or makes
|
|
202
|
+
sense.
|
|
203
|
+
|
|
204
|
+
- Hover-click is usable for scenarios like inline-edits, where mouse users
|
|
205
|
+
cannot click on the trigger without causing side effects, but keyboard
|
|
206
|
+
users are still able to navigate into and trigger the profile card.
|
|
207
|
+
|
|
208
|
+
Look at the "Team Profilecard Trigger" or "Trigger Link Types" examples to
|
|
209
|
+
see how they behave, or ask in #team-twp-people-teams on Slack for our
|
|
210
|
+
recommendations.
|
|
211
|
+
*/
|
|
212
|
+
trigger?: 'hover' | 'click' | 'hover-click';
|
|
213
|
+
/**
|
|
214
|
+
We generally prefer to wrap the trigger in a link to the team profile
|
|
215
|
+
page. This prop determines how that link behaves.
|
|
216
|
+
|
|
217
|
+
- Link is generally the recommended prop (especially in combination with
|
|
218
|
+
click or hover-click for the trigger prop above). It wraps the trigger in
|
|
219
|
+
an anchor tag with the team profile link (that users can interact with
|
|
220
|
+
via middle-click, etc.), but left clicking on the link is suppressed.
|
|
221
|
+
|
|
222
|
+
- None does not wrap the trigger in a link at all. This makes it difficult
|
|
223
|
+
for keyboard or screen reader users to know how to trigger the profile
|
|
224
|
+
card. Generally avoid this.
|
|
225
|
+
|
|
226
|
+
- Clickable-link wraps the trigger in a link with no special behaviour.
|
|
227
|
+
This is suitable for places where you want the trigger to serve primarily
|
|
228
|
+
as a link, and optionally allow hovering to preview the team first.
|
|
229
|
+
|
|
230
|
+
Look at the example on "Trigger Link Types" for more in-depth analysis, or
|
|
231
|
+
ask in #team-twp-people-teams on Slack for our recommendations.
|
|
232
|
+
*/
|
|
233
|
+
triggerLinkType?: 'none' | 'link' | 'clickable-link';
|
|
234
|
+
/**
|
|
235
|
+
This is the component that will cause a team profile card to appear when
|
|
236
|
+
interacted with according to the method specified by the trigger prop.
|
|
237
|
+
*/
|
|
238
|
+
children?: React.ReactNode;
|
|
239
|
+
/**
|
|
240
|
+
* Used by the card to show Flags.
|
|
241
|
+
*/
|
|
242
|
+
addFlag?: (flag: any) => void;
|
|
243
|
+
/**
|
|
244
|
+
* Optional cloudId. Pass this if rendering card within a sited context.
|
|
245
|
+
*/
|
|
246
|
+
cloudId?: string;
|
|
247
|
+
}
|
|
248
|
+
export declare type StatusType = 'active' | 'inactive' | 'closed';
|
|
249
|
+
export declare type TriggerType = 'hover' | 'click';
|
|
250
|
+
export declare type StatusModifiedDateType = 'noDate' | 'thisWeek' | 'thisMonth' | 'lastMonth' | 'aFewMonths' | 'severalMonths' | 'moreThanAYear';
|
|
251
|
+
export interface ProfileCardAction {
|
|
252
|
+
callback?: (...args: any[]) => any;
|
|
253
|
+
shouldRender?: (data: any) => boolean;
|
|
254
|
+
id?: string;
|
|
255
|
+
label: React.ReactNode;
|
|
256
|
+
link?: string;
|
|
257
|
+
}
|
|
258
|
+
export declare type LozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
|
|
259
|
+
export interface LozengeProps {
|
|
260
|
+
text: React.ReactNode;
|
|
261
|
+
appearance?: LozengeColor;
|
|
262
|
+
isBold?: boolean;
|
|
263
|
+
}
|
|
264
|
+
export interface ProfilecardProps {
|
|
265
|
+
isLoading?: boolean;
|
|
266
|
+
hasError?: boolean;
|
|
267
|
+
errorType?: ProfileCardErrorType;
|
|
268
|
+
status?: StatusType;
|
|
269
|
+
isBot?: boolean;
|
|
270
|
+
avatarUrl?: string;
|
|
271
|
+
fullName?: string;
|
|
272
|
+
meta?: string;
|
|
273
|
+
userId?: string;
|
|
274
|
+
isCurrentUser?: boolean;
|
|
275
|
+
nickname?: string;
|
|
276
|
+
email?: string;
|
|
277
|
+
location?: string;
|
|
278
|
+
companyName?: string;
|
|
279
|
+
timestring?: string;
|
|
280
|
+
actions?: ProfileCardAction[];
|
|
281
|
+
clientFetchProfile?: () => void;
|
|
282
|
+
statusModifiedDate?: number | null;
|
|
283
|
+
withoutElevation?: boolean;
|
|
284
|
+
/** Show manager and direct reports section on profile hover card, if available */
|
|
285
|
+
reportingLines?: TeamCentralReportingLinesData;
|
|
286
|
+
/** Base URL to populate href value for manager's and direct reports' user avatar */
|
|
287
|
+
reportingLinesProfileUrl?: string;
|
|
288
|
+
/** Click handler when user clicks on manager's and direct reports' user avatar, un-clickable otherwise */
|
|
289
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
290
|
+
isKudosEnabled?: boolean;
|
|
291
|
+
teamCentralBaseUrl?: string;
|
|
292
|
+
addFlag?: (flag: any) => void;
|
|
293
|
+
cloudId?: string;
|
|
294
|
+
disabledAccountMessage?: React.ReactNode;
|
|
295
|
+
hasDisabledAccountLozenge?: boolean;
|
|
296
|
+
customLozenges?: LozengeProps[];
|
|
297
|
+
openKudosDrawer?: () => void;
|
|
298
|
+
}
|
|
299
|
+
export declare type AnalyticsFromDuration = (duration: number) => AnalyticsEventPayload;
|
|
300
|
+
export declare type AnalyticsFunction = (generator: AnalyticsFromDuration) => void;
|
|
301
|
+
export interface AnalyticsProps {
|
|
302
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
303
|
+
}
|
|
304
|
+
export interface AnalyticsWithDurationProps {
|
|
305
|
+
fireAnalyticsWithDuration: AnalyticsFunction;
|
|
306
|
+
}
|
|
307
|
+
export interface TeamProfilecardProps extends TeamProfilecardCoreProps {
|
|
308
|
+
/** Indicates whether the team's details are still loading. */
|
|
309
|
+
isLoading?: boolean;
|
|
310
|
+
/** Indicates whether an error occurred whilst fetching team details. */
|
|
311
|
+
hasError?: boolean;
|
|
312
|
+
/** Describes the type of error that occurred, if any. */
|
|
313
|
+
errorType?: ProfileCardErrorType;
|
|
314
|
+
/** The details of the team to be shown. */
|
|
315
|
+
team?: Team;
|
|
316
|
+
/** A callback that will try to re-fetch data in case an error occurred. */
|
|
317
|
+
clientFetchProfile?: () => void;
|
|
318
|
+
/** Details relevant to passing around analytics. */
|
|
319
|
+
analytics: AnalyticsFunction;
|
|
320
|
+
}
|
|
321
|
+
export interface MessageIntlProviderProps {
|
|
322
|
+
children: React.ReactNode;
|
|
323
|
+
intl: IntlShape;
|
|
324
|
+
}
|
|
325
|
+
export declare type RelativeDateKeyType = 'ThisWeek' | 'ThisMonth' | 'LastMonth' | 'AFewMonths' | 'SeveralMonths' | 'MoreThanAYear' | null;
|
|
326
|
+
export interface ProfileClient {
|
|
327
|
+
flushCache: () => void;
|
|
328
|
+
getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void) => Promise<ProfileCardClientData>;
|
|
329
|
+
getTeamProfile: (teamId: string, orgId?: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<Team>;
|
|
330
|
+
getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
|
|
331
|
+
shouldShowGiveKudos: () => Promise<boolean>;
|
|
332
|
+
getTeamCentralBaseUrl: () => string | undefined;
|
|
333
|
+
}
|
|
334
|
+
export declare type ProfilecardTriggerPosition = 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end' | 'top-end' | 'top' | 'top-start' | 'right-end' | 'right' | 'right-start';
|
|
335
|
+
export declare type ProfileCardErrorType = {
|
|
336
|
+
reason: 'default' | 'NotFound';
|
|
337
|
+
} | null;
|
|
338
|
+
export interface ProfileClientOptions {
|
|
339
|
+
url: string;
|
|
340
|
+
gatewayGraphqlUrl?: string;
|
|
341
|
+
cacheSize?: number;
|
|
342
|
+
cacheMaxAge?: number;
|
|
343
|
+
/** Enables Team Central functionality if enabled e.g. /gateway/api/watermelon/graphql*/
|
|
344
|
+
teamCentralUrl?: string;
|
|
345
|
+
/** URL to the Team Central app e.g. team.atlassian.com */
|
|
346
|
+
teamCentralBaseUrl?: string;
|
|
347
|
+
/** Name of integrating product e.g. jira, atlas, confluence **/
|
|
348
|
+
productIdentifier?: string;
|
|
349
|
+
cloudId?: string;
|
|
350
|
+
}
|
|
351
|
+
export interface ClientOverrides {
|
|
352
|
+
userClient?: UserProfileCardClient;
|
|
353
|
+
teamClient?: TeamProfileCardClient;
|
|
354
|
+
teamCentralClient?: TeamCentralCardClient;
|
|
355
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
|
+
declare type GenericAttributes = Record<string, string | number | boolean | undefined>;
|
|
4
|
+
interface AnalyticsEvent {
|
|
5
|
+
action?: string;
|
|
6
|
+
actionSubject?: string;
|
|
7
|
+
actionSubjectId?: string;
|
|
8
|
+
attributes?: GenericAttributes;
|
|
9
|
+
name?: string;
|
|
10
|
+
source?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
|
|
13
|
+
export declare const cardTriggered: (type: 'user' | 'team', method: 'hover' | 'click') => AnalyticsEventPayload;
|
|
14
|
+
export declare const teamRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: ({
|
|
15
|
+
duration: number;
|
|
16
|
+
} & GenericAttributes) | undefined) => AnalyticsEventPayload;
|
|
17
|
+
export declare const userRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: ({
|
|
18
|
+
duration: number;
|
|
19
|
+
} & GenericAttributes) | undefined) => AnalyticsEventPayload;
|
|
20
|
+
export declare const profileCardRendered: (type: 'user' | 'team', actionSubjectId: 'spinner' | 'content' | 'error' | 'errorBoundary', attributes?: {
|
|
21
|
+
duration?: number | undefined;
|
|
22
|
+
errorType?: "default" | "NotFound" | undefined;
|
|
23
|
+
hasRetry?: boolean | undefined;
|
|
24
|
+
numActions?: number | undefined;
|
|
25
|
+
memberCount?: number | undefined;
|
|
26
|
+
includingYou?: boolean | undefined;
|
|
27
|
+
descriptionLength?: number | undefined;
|
|
28
|
+
titleLength?: number | undefined;
|
|
29
|
+
} | undefined) => AnalyticsEventPayload;
|
|
30
|
+
export declare const actionClicked: (type: 'user' | 'team', attributes: {
|
|
31
|
+
duration: number;
|
|
32
|
+
hasHref: boolean;
|
|
33
|
+
hasOnClick: boolean;
|
|
34
|
+
index: number;
|
|
35
|
+
actionId: string;
|
|
36
|
+
}) => AnalyticsEventPayload;
|
|
37
|
+
export declare const reportingLinesClicked: (attributes: {
|
|
38
|
+
userType: 'manager' | 'direct-report';
|
|
39
|
+
duration: number;
|
|
40
|
+
}) => AnalyticsEventPayload;
|
|
41
|
+
export declare const moreActionsClicked: (type: 'user' | 'team', attributes: {
|
|
42
|
+
duration: number;
|
|
43
|
+
numActions: number;
|
|
44
|
+
}) => AnalyticsEventPayload;
|
|
45
|
+
export declare const teamAvatarClicked: (attributes: {
|
|
46
|
+
duration: number;
|
|
47
|
+
hasHref: boolean;
|
|
48
|
+
hasOnClick: boolean;
|
|
49
|
+
index: number;
|
|
50
|
+
}) => AnalyticsEventPayload;
|
|
51
|
+
export declare const moreMembersClicked: (attributes: {
|
|
52
|
+
duration: number;
|
|
53
|
+
memberCount: number;
|
|
54
|
+
}) => AnalyticsEventPayload;
|
|
55
|
+
export declare const errorRetryClicked: (attributes: {
|
|
56
|
+
duration: number;
|
|
57
|
+
}) => AnalyticsEventPayload;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getPageTime: () => number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
2
|
+
export interface WithOuterListenersProps {
|
|
3
|
+
handleClickOutside?: () => void;
|
|
4
|
+
handleEscapeKeydown?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export default function withOuterListeners<P>(Component: ComponentType<P>): React.ComponentClass<P & WithOuterListenersProps>;
|
package/messages/package.json
CHANGED
|
@@ -3,5 +3,12 @@
|
|
|
3
3
|
"main": "../dist/cjs/messages.js",
|
|
4
4
|
"module": "../dist/esm/messages.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/messages.js",
|
|
6
|
-
"types": "../dist/types/messages.d.ts"
|
|
6
|
+
"types": "../dist/types/messages.d.ts",
|
|
7
|
+
"typesVersions": {
|
|
8
|
+
">=4.0 <4.5": {
|
|
9
|
+
"*": [
|
|
10
|
+
"../dist/types-ts4.0/messages.d.ts"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
7
14
|
}
|
package/mocks/package.json
CHANGED
|
@@ -3,5 +3,12 @@
|
|
|
3
3
|
"main": "../dist/cjs/mocks/index.js",
|
|
4
4
|
"module": "../dist/esm/mocks/index.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/mocks/index.js",
|
|
6
|
-
"types": "../dist/types/mocks/index.d.ts"
|
|
6
|
+
"types": "../dist/types/mocks/index.d.ts",
|
|
7
|
+
"typesVersions": {
|
|
8
|
+
">=4.0 <4.5": {
|
|
9
|
+
"*": [
|
|
10
|
+
"../dist/types-ts4.0/mocks/index.d.ts"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
7
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.0 <4.5": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.0/*"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
15
22
|
"atlaskit:src": "src/index.ts",
|
|
16
23
|
"atlassian": {
|
|
17
24
|
"team": "People and Teams Collective",
|
|
@@ -77,7 +84,7 @@
|
|
|
77
84
|
"loader-utils": "^1.1.0",
|
|
78
85
|
"react-router-dom": "^4.2.2",
|
|
79
86
|
"sinon": "^2.2.0",
|
|
80
|
-
"typescript": "4.
|
|
87
|
+
"typescript": "4.5.5",
|
|
81
88
|
"uid": "^0.0.2"
|
|
82
89
|
},
|
|
83
90
|
"keywords": [
|
package/team/package.json
CHANGED
|
@@ -3,5 +3,12 @@
|
|
|
3
3
|
"main": "../dist/cjs/components/Team/index.js",
|
|
4
4
|
"module": "../dist/esm/components/Team/index.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/components/Team/index.js",
|
|
6
|
-
"types": "../dist/types/components/Team/index.d.ts"
|
|
6
|
+
"types": "../dist/types/components/Team/index.d.ts",
|
|
7
|
+
"typesVersions": {
|
|
8
|
+
">=4.0 <4.5": {
|
|
9
|
+
"*": [
|
|
10
|
+
"../dist/types-ts4.0/components/Team/index.d.ts"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
7
14
|
}
|
package/types/package.json
CHANGED
|
@@ -3,5 +3,12 @@
|
|
|
3
3
|
"main": "../dist/cjs/types.js",
|
|
4
4
|
"module": "../dist/esm/types.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/types.js",
|
|
6
|
-
"types": "../dist/types/types.d.ts"
|
|
6
|
+
"types": "../dist/types/types.d.ts",
|
|
7
|
+
"typesVersions": {
|
|
8
|
+
">=4.0 <4.5": {
|
|
9
|
+
"*": [
|
|
10
|
+
"../dist/types-ts4.0/types.d.ts"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
7
14
|
}
|