@gitkraken/gitkraken-components 1.0.0-rc.21 → 1.0.0-rc.23

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.
@@ -12,6 +12,7 @@ import {
12
12
  // Input variables
13
13
  export type Sha = string;
14
14
  export type CssVariables = {[variable: string]: string};
15
+ export type HiddenRefsById = {[refId: string]: GraphRefOptData};
15
16
  export type IsSelectedBySha = {[sha: Sha]: boolean};
16
17
  export type HighlightedShas = {[sha: Sha]: boolean};
17
18
 
@@ -64,6 +65,7 @@ export type Head = {
64
65
  name: string;
65
66
  isCurrentHead?: boolean;
66
67
  context?: string;
68
+ contextGroup?: string;
67
69
  };
68
70
 
69
71
  export type Remote = {
@@ -73,6 +75,7 @@ export type Remote = {
73
75
  avatarUrl?: string;
74
76
  url?: string;
75
77
  context?: string;
78
+ contextGroup?: string;
76
79
  };
77
80
 
78
81
  export type Tag = {
@@ -80,6 +83,7 @@ export type Tag = {
80
83
  name: string;
81
84
  annotated?: boolean;
82
85
  context?: string;
86
+ contextGroup?: string;
83
87
  };
84
88
 
85
89
  export type GraphRow = {
@@ -119,13 +123,24 @@ export type GraphZoneType = typeof REF_ZONE_TYPE
119
123
 
120
124
  export type GraphColumnsSettings = { [graphZoneType: string]: GraphColumnSetting };
121
125
 
126
+ export type GraphRefType = 'head'
127
+ | 'remote'
128
+ | 'tag';
129
+
122
130
  export type GraphRef = Head
123
131
  | Remote
124
132
  | Tag
125
133
  | {
126
- refType: string
134
+ refType: GraphRefType
127
135
  };
128
136
 
137
+ export type GraphRefOptData = {
138
+ id: string;
139
+ name: string;
140
+ type: GraphRefType;
141
+ avatarUrl?: string;
142
+ };
143
+
129
144
  export type GraphRefGroup = Array<GraphRef>;
130
145
 
131
146
  export type RefMetadataById = { [id: string]: RefMetadata | null | undefined } | null;
@@ -176,6 +191,7 @@ export type OnFormatCommitDateTime = (commitDateTime: number) => string;
176
191
  // Events
177
192
  export type OnRowContextMenu = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
178
193
  export type OnRefContextMenu = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow) => void;
194
+ export type OnToggleRefsVisibilityClick = (event: React.MouseEvent, refs: GraphRefOptData[], visible: boolean, graphRow?: GraphRow) => void;
179
195
  export type OnClickGraphRow = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
180
196
  export type OnClickGraphRef = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow) => void;
181
197
  export type OnDoubleClickGraphRow = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
@@ -201,10 +217,12 @@ export interface GraphContainerProps {
201
217
  getExternalIcon: GetExternalIcon;
202
218
  highlightRowsOnRefHover?: boolean,
203
219
  showGhostRefsOnRowHover?: boolean,
220
+ showRemoteNamesOnRefs?: boolean,
204
221
  enableMultiSelection?: boolean,
205
222
  graphRows: GraphRow[];
206
223
  hasMoreCommits?: boolean;
207
224
  highlightedShas?: HighlightedShas;
225
+ hiddenRefsById?: HiddenRefsById;
208
226
  // isCommitting: boolean;
209
227
  isSelectedBySha?: IsSelectedBySha;
210
228
  // isInUnsupportedRebase: boolean;
@@ -220,6 +238,7 @@ export interface GraphContainerProps {
220
238
  workDirStats?: WorkDirStats;
221
239
  onRowContextMenu?: OnRowContextMenu;
222
240
  onRefContextMenu?: OnRefContextMenu;
241
+ onToggleRefsVisibilityClick?: OnToggleRefsVisibilityClick,
223
242
  onGraphRowHovered?: OnGraphRowHovered;
224
243
  onGraphRowUnhovered?: OnGraphRowUnhovered;
225
244
  onGraphRefNodeHovered?: OnGraphRefNodeHovered;