@gitkraken/gitkraken-components 1.0.0-rc.1 → 1.0.0-rc.4
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.
|
@@ -18,6 +18,14 @@ export type WorkDirType = typeof mergeConflictNodeType
|
|
|
18
18
|
| typeof unsupportedRebaseWarningNodeType
|
|
19
19
|
| typeof workDirType;
|
|
20
20
|
|
|
21
|
+
export type WorkDirStats = {
|
|
22
|
+
added: number,
|
|
23
|
+
deleted: number,
|
|
24
|
+
modified: number
|
|
25
|
+
// TODO: Add renamed once available in GitLens from provider
|
|
26
|
+
// renamed: number
|
|
27
|
+
};
|
|
28
|
+
|
|
21
29
|
export type CommitType = typeof commitNodeType
|
|
22
30
|
| typeof mergeNodeType
|
|
23
31
|
| typeof mergeConflictNodeType
|
|
@@ -41,6 +49,7 @@ export type Head = {
|
|
|
41
49
|
|
|
42
50
|
export type Remote = {
|
|
43
51
|
name: string;
|
|
52
|
+
owner?: string;
|
|
44
53
|
avatarUrl?: string;
|
|
45
54
|
url?: string;
|
|
46
55
|
};
|
|
@@ -95,6 +104,7 @@ export type GraphRef = Head
|
|
|
95
104
|
export type GraphRefGroup = Array<GraphRef>;
|
|
96
105
|
|
|
97
106
|
// Callbacks
|
|
107
|
+
export type GetExternalIcon = (key: string) => ReactElement<*>;
|
|
98
108
|
export type TranslationFn = (key: string, ...formatArgs: any) => string;
|
|
99
109
|
export type OnFormatCommitDateTime = (commitDateTime: number) => string;
|
|
100
110
|
|
|
@@ -119,6 +129,8 @@ export interface GraphContainerProps {
|
|
|
119
129
|
width?: number;
|
|
120
130
|
platform?: GraphPlatform;
|
|
121
131
|
cssVariables?: CssVariables;
|
|
132
|
+
getExternalIcon: GetExternalIcon;
|
|
133
|
+
enableMultiSelection?: boolean,
|
|
122
134
|
graphRows: GraphRow[];
|
|
123
135
|
hasMoreCommits?: boolean;
|
|
124
136
|
// isCommitting: boolean;
|
|
@@ -132,7 +144,7 @@ export interface GraphContainerProps {
|
|
|
132
144
|
themeOpacityFactor?: number;
|
|
133
145
|
translate?: TranslationFn;
|
|
134
146
|
useAuthorInitialsForAvatars?: boolean;
|
|
135
|
-
|
|
147
|
+
workDirStats?: WorkDirStats;
|
|
136
148
|
onRowContextMenu?: OnRowContextMenu;
|
|
137
149
|
onRefContextMenu?: OnRefContextMenu;
|
|
138
150
|
onGraphRowHovered?: OnGraphRowHovered;
|