@gitkraken/gitkraken-components 10.1.17 → 10.1.18
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { GetExternalIcon, GraphItemContext } from '../../../domain/graph/GraphTypes';
|
|
3
3
|
import type { HostingServiceType } from '../../../domain/hostingservice/HostingServiceTypes';
|
|
4
|
+
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
4
5
|
type IconProps = {
|
|
5
6
|
icon: ReactElement<any>;
|
|
6
7
|
tooltipClassName?: string;
|
|
@@ -12,6 +13,7 @@ type IssueProps = {
|
|
|
12
13
|
id: string;
|
|
13
14
|
title: string;
|
|
14
15
|
getExternalIcon: GetExternalIcon;
|
|
16
|
+
translate: TranslationFn;
|
|
15
17
|
};
|
|
16
18
|
type RefIconProps = {
|
|
17
19
|
avatarUrl?: string;
|
|
@@ -23,7 +25,8 @@ type PullRequestProps = {
|
|
|
23
25
|
icon: ReactElement<any>;
|
|
24
26
|
hostingServiceType: HostingServiceType;
|
|
25
27
|
id: string | number;
|
|
26
|
-
title
|
|
28
|
+
title?: string;
|
|
29
|
+
translate: TranslationFn;
|
|
27
30
|
};
|
|
28
31
|
type UpStreamIndicatorProps = {
|
|
29
32
|
icon: ReactElement<any>;
|
|
@@ -32,8 +35,8 @@ type UpStreamIndicatorProps = {
|
|
|
32
35
|
tooltipText?: string;
|
|
33
36
|
};
|
|
34
37
|
export declare function Icon({ icon, tooltipClassName, tooltipId, tooltipText }: IconProps): ReactElement<any>;
|
|
35
|
-
export declare function IssueIcon({ displayId, id, title, getExternalIcon }: IssueProps): ReactElement<typeof Icon>;
|
|
36
|
-
export declare function PullRequestIcon({ hostingServiceType, icon, id, title }: PullRequestProps): ReactElement<typeof Icon>;
|
|
38
|
+
export declare function IssueIcon({ displayId, id, title, getExternalIcon, translate }: IssueProps): ReactElement<typeof Icon>;
|
|
39
|
+
export declare function PullRequestIcon({ hostingServiceType, icon, id, title, translate, }: PullRequestProps): ReactElement<typeof Icon>;
|
|
37
40
|
export declare function UpstreamIndicatorIcon({ icon, type, upstream, tooltipText, }: UpStreamIndicatorProps): ReactElement<typeof Icon>;
|
|
38
41
|
export declare function RefIcon({ avatarUrl, context, icon, tooltipText }: RefIconProps): ReactElement<typeof Icon>;
|
|
39
42
|
export {};
|