@gitkraken/gitkraken-components 1.0.0-rc.14 → 1.0.0-rc.16
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.
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
export type Sha = string;
|
|
14
14
|
export type CssVariables = {[variable: string]: string};
|
|
15
15
|
export type IsSelectedBySha = {[sha: Sha]: boolean};
|
|
16
|
+
export type HighlightedShas = {[sha: Sha]: boolean};
|
|
16
17
|
|
|
17
18
|
export type WorkDirType = typeof mergeConflictNodeType
|
|
18
19
|
| typeof unsupportedRebaseWarningNodeType
|
|
@@ -42,9 +43,26 @@ export type GraphPlatform = 'aix'
|
|
|
42
43
|
| 'win32'
|
|
43
44
|
| 'cygwin';
|
|
44
45
|
|
|
46
|
+
export type RowContexts = {
|
|
47
|
+
row?: string;
|
|
48
|
+
ref?: string;
|
|
49
|
+
graph?: string;
|
|
50
|
+
avatar?: string;
|
|
51
|
+
message?: string;
|
|
52
|
+
author?: string;
|
|
53
|
+
date?: string;
|
|
54
|
+
sha?: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type GraphContexts = {
|
|
58
|
+
graph?: string;
|
|
59
|
+
header?: string;
|
|
60
|
+
};
|
|
61
|
+
|
|
45
62
|
export type Head = {
|
|
46
63
|
name: string;
|
|
47
64
|
isCurrentHead?: boolean;
|
|
65
|
+
context?: string;
|
|
48
66
|
};
|
|
49
67
|
|
|
50
68
|
export type Remote = {
|
|
@@ -52,11 +70,13 @@ export type Remote = {
|
|
|
52
70
|
owner?: string;
|
|
53
71
|
avatarUrl?: string;
|
|
54
72
|
url?: string;
|
|
73
|
+
context?: string;
|
|
55
74
|
};
|
|
56
75
|
|
|
57
76
|
export type Tag = {
|
|
58
77
|
name: string;
|
|
59
78
|
annotated?: boolean;
|
|
79
|
+
context?: string;
|
|
60
80
|
};
|
|
61
81
|
|
|
62
82
|
export type GraphRow = {
|
|
@@ -70,10 +90,12 @@ export type GraphRow = {
|
|
|
70
90
|
heads?: Head[];
|
|
71
91
|
remotes?: Remote[];
|
|
72
92
|
tags?: Tag[];
|
|
93
|
+
contexts?: RowContexts;
|
|
73
94
|
};
|
|
74
95
|
|
|
75
96
|
export type GraphColumnSetting = {
|
|
76
|
-
width: number
|
|
97
|
+
width: number,
|
|
98
|
+
isHidden: boolean
|
|
77
99
|
};
|
|
78
100
|
|
|
79
101
|
export type AvatarUrlByEmail = { [email: string]: string };
|
|
@@ -127,6 +149,7 @@ export type OnEmailsMissingAvatarUrls = (emails: { [email: string]: string }) =>
|
|
|
127
149
|
// Main graph component
|
|
128
150
|
export interface GraphContainerProps {
|
|
129
151
|
avatarUrlByEmail?: AvatarUrlByEmail;
|
|
152
|
+
contexts?: GraphContexts;
|
|
130
153
|
height?: number;
|
|
131
154
|
width?: number;
|
|
132
155
|
platform?: GraphPlatform;
|
|
@@ -135,6 +158,7 @@ export interface GraphContainerProps {
|
|
|
135
158
|
enableMultiSelection?: boolean,
|
|
136
159
|
graphRows: GraphRow[];
|
|
137
160
|
hasMoreCommits?: boolean;
|
|
161
|
+
highlightedShas?: HighlightedShas;
|
|
138
162
|
// isCommitting: boolean;
|
|
139
163
|
isSelectedBySha?: IsSelectedBySha;
|
|
140
164
|
// isInUnsupportedRebase: boolean;
|