@gitkraken/gitkraken-components 1.0.0-rc.1 → 1.0.0-rc.10
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
|
};
|
|
@@ -65,8 +74,7 @@ export type GraphRow = {
|
|
|
65
74
|
};
|
|
66
75
|
|
|
67
76
|
export type GraphColumnSetting = {
|
|
68
|
-
width: number
|
|
69
|
-
preferredWidth?: number
|
|
77
|
+
width: number
|
|
70
78
|
};
|
|
71
79
|
|
|
72
80
|
export const REF_ZONE_TYPE = 'refZone';
|
|
@@ -95,6 +103,7 @@ export type GraphRef = Head
|
|
|
95
103
|
export type GraphRefGroup = Array<GraphRef>;
|
|
96
104
|
|
|
97
105
|
// Callbacks
|
|
106
|
+
export type GetExternalIcon = (key: string) => ReactElement<*>;
|
|
98
107
|
export type TranslationFn = (key: string, ...formatArgs: any) => string;
|
|
99
108
|
export type OnFormatCommitDateTime = (commitDateTime: number) => string;
|
|
100
109
|
|
|
@@ -119,6 +128,8 @@ export interface GraphContainerProps {
|
|
|
119
128
|
width?: number;
|
|
120
129
|
platform?: GraphPlatform;
|
|
121
130
|
cssVariables?: CssVariables;
|
|
131
|
+
getExternalIcon: GetExternalIcon;
|
|
132
|
+
enableMultiSelection?: boolean,
|
|
122
133
|
graphRows: GraphRow[];
|
|
123
134
|
hasMoreCommits?: boolean;
|
|
124
135
|
// isCommitting: boolean;
|
|
@@ -132,7 +143,7 @@ export interface GraphContainerProps {
|
|
|
132
143
|
themeOpacityFactor?: number;
|
|
133
144
|
translate?: TranslationFn;
|
|
134
145
|
useAuthorInitialsForAvatars?: boolean;
|
|
135
|
-
|
|
146
|
+
workDirStats?: WorkDirStats;
|
|
136
147
|
onRowContextMenu?: OnRowContextMenu;
|
|
137
148
|
onRefContextMenu?: OnRefContextMenu;
|
|
138
149
|
onGraphRowHovered?: OnGraphRowHovered;
|