@gitkraken/gitkraken-components 1.0.0-rc.13 → 1.0.0-rc.15
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,21 @@ 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
|
+
|
|
45
57
|
export type Head = {
|
|
46
58
|
name: string;
|
|
47
59
|
isCurrentHead?: boolean;
|
|
60
|
+
context?: string;
|
|
48
61
|
};
|
|
49
62
|
|
|
50
63
|
export type Remote = {
|
|
@@ -52,11 +65,13 @@ export type Remote = {
|
|
|
52
65
|
owner?: string;
|
|
53
66
|
avatarUrl?: string;
|
|
54
67
|
url?: string;
|
|
68
|
+
context?: string;
|
|
55
69
|
};
|
|
56
70
|
|
|
57
71
|
export type Tag = {
|
|
58
72
|
name: string;
|
|
59
73
|
annotated?: boolean;
|
|
74
|
+
context?: string;
|
|
60
75
|
};
|
|
61
76
|
|
|
62
77
|
export type GraphRow = {
|
|
@@ -70,13 +85,16 @@ export type GraphRow = {
|
|
|
70
85
|
heads?: Head[];
|
|
71
86
|
remotes?: Remote[];
|
|
72
87
|
tags?: Tag[];
|
|
73
|
-
|
|
88
|
+
contexts?: RowContexts;
|
|
74
89
|
};
|
|
75
90
|
|
|
76
91
|
export type GraphColumnSetting = {
|
|
77
|
-
width: number
|
|
92
|
+
width: number,
|
|
93
|
+
isHidden: boolean
|
|
78
94
|
};
|
|
79
95
|
|
|
96
|
+
export type AvatarUrlByEmail = { [email: string]: string };
|
|
97
|
+
|
|
80
98
|
export const REF_ZONE_TYPE = 'refZone';
|
|
81
99
|
export const GRAPH_ZONE_TYPE = 'commitZone';
|
|
82
100
|
export const MESSAGE_ZONE_TYPE = 'commitMessageZone';
|
|
@@ -103,7 +121,7 @@ export type GraphRef = Head
|
|
|
103
121
|
export type GraphRefGroup = Array<GraphRef>;
|
|
104
122
|
|
|
105
123
|
// Callbacks
|
|
106
|
-
export type GetExternalIcon = (key: string) => ReactElement
|
|
124
|
+
export type GetExternalIcon = (key: string) => React.ReactElement<any>;
|
|
107
125
|
export type TranslationFn = (key: string, ...formatArgs: any) => string;
|
|
108
126
|
export type OnFormatCommitDateTime = (commitDateTime: number) => string;
|
|
109
127
|
|
|
@@ -121,9 +139,11 @@ export type OnGraphRefNodeHovered = (event: any, refGroup: GraphRefGroup, graphR
|
|
|
121
139
|
export type OnGraphRefNodeUnhovered = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow) => void;
|
|
122
140
|
export type OnGraphColumnResized = (graphZoneType: GraphZoneType, columnSettings: GraphColumnSetting) => void;
|
|
123
141
|
export type OnShowMoreCommits = () => void;
|
|
142
|
+
export type OnEmailsMissingAvatarUrls = (emails: { [email: string]: string }) => void;
|
|
124
143
|
|
|
125
144
|
// Main graph component
|
|
126
145
|
export interface GraphContainerProps {
|
|
146
|
+
avatarUrlByEmail?: AvatarUrlByEmail;
|
|
127
147
|
height?: number;
|
|
128
148
|
width?: number;
|
|
129
149
|
platform?: GraphPlatform;
|
|
@@ -132,6 +152,7 @@ export interface GraphContainerProps {
|
|
|
132
152
|
enableMultiSelection?: boolean,
|
|
133
153
|
graphRows: GraphRow[];
|
|
134
154
|
hasMoreCommits?: boolean;
|
|
155
|
+
highlightedShas?: HighlightedShas;
|
|
135
156
|
// isCommitting: boolean;
|
|
136
157
|
isSelectedBySha?: IsSelectedBySha;
|
|
137
158
|
// isInUnsupportedRebase: boolean;
|
|
@@ -162,6 +183,7 @@ export interface GraphContainerProps {
|
|
|
162
183
|
onShowMoreCommits?: OnShowMoreCommits;
|
|
163
184
|
// onWipNodeInputWillUnmount: OnComponentWillUnmount;
|
|
164
185
|
// onUpdateGraphWidth: OnUpdateGraphWidth;
|
|
186
|
+
onEmailsMissingAvatarUrls?: OnEmailsMissingAvatarUrls;
|
|
165
187
|
formatCommitDateTime?: OnFormatCommitDateTime;
|
|
166
188
|
shaLength?: number;
|
|
167
189
|
nonce?: string;
|