@gitkraken/gitkraken-components 1.1.0-rc.5 → 1.1.0-rc.6

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.
@@ -11,10 +11,17 @@ import {
11
11
 
12
12
  // Input variables
13
13
  export type Sha = string;
14
- export type CssVariables = {[variable: string]: string};
15
- export type HiddenRefsById = {[refId: string]: GraphRefOptData};
16
- export type IsSelectedBySha = {[sha: Sha]: boolean};
17
- export type HighlightedShas = {[sha: Sha]: boolean};
14
+ export type CssVariables = { [variable: string]: string };
15
+ export type ExcludeByType = {
16
+ heads?: boolean;
17
+ remotes?: boolean;
18
+ stashes?: boolean;
19
+ tags?: boolean;
20
+ };
21
+ export type ExcludeRefsById = { [refId: string]: GraphRefOptData };
22
+ export type IncludeOnlyRefsById = { [refId: string]: GraphRefOptData };
23
+ export type IsSelectedBySha = { [sha: Sha]: boolean };
24
+ export type HighlightedShas = { [sha: Sha]: boolean };
18
25
 
19
26
  export type WorkDirType = typeof mergeConflictNodeType
20
27
  | typeof unsupportedRebaseWarningNodeType
@@ -64,30 +71,22 @@ export type GraphContexts = {
64
71
  header?: GraphItemContext;
65
72
  };
66
73
 
67
- export interface Head {
68
- id?: string,
74
+ interface Ref {
75
+ id?: string;
69
76
  name: string;
70
- isCurrentHead?: boolean;
71
77
  context?: GraphItemContext;
72
78
  contextGroup?: GraphItemContext;
73
79
  }
74
-
75
- export interface Remote {
76
- id?: string,
77
- name: string;
80
+ export interface Head extends Ref {
81
+ isCurrentHead?: boolean;
82
+ }
83
+ export interface Remote extends Ref {
78
84
  owner?: string;
79
85
  avatarUrl?: string;
80
86
  url?: string;
81
- context?: GraphItemContext;
82
- contextGroup?: GraphItemContext;
83
87
  }
84
-
85
- export interface Tag {
86
- id?: string,
87
- name: string;
88
+ export interface Tag extends Ref {
88
89
  annotated?: boolean;
89
- context?: GraphItemContext;
90
- contextGroup?: GraphItemContext;
91
90
  }
92
91
 
93
92
  export type GraphRow = {
@@ -208,7 +207,7 @@ export type OnGraphColumnsReOrdered = (columnsSettings: GraphColumnsSettings) =>
208
207
  export type OnGraphColumnResized = (graphZoneType: GraphZoneType, columnSettings: GraphColumnSetting) => void;
209
208
  export type OnGraphResized = (width: number, height: number) => void;
210
209
  export type OnShowMoreCommits = () => void;
211
- export type OnEmailsMissingAvatarUrls = (emails: { [email: string]: string }) => void;
210
+ export type OnEmailsMissingAvatarUrls = (emails: AvatarUrlByEmail) => void;
212
211
  export type OnRefsMissingMetadata = (refs: RefsMissingMetadata) => void;
213
212
 
214
213
  // Main graph component
@@ -226,7 +225,9 @@ export interface GraphContainerProps {
226
225
  graphRows: GraphRow[];
227
226
  hasMoreCommits?: boolean;
228
227
  highlightedShas?: HighlightedShas;
229
- hiddenRefsById?: HiddenRefsById;
228
+ excludeByType?: ExcludeByType;
229
+ excludeRefsById?: ExcludeRefsById;
230
+ includeOnlyRefsById?: IncludeOnlyRefsById;
230
231
  isSelectedBySha?: IsSelectedBySha;
231
232
  isLoadingRows?: boolean;
232
233
  columnsSettings?: GraphColumnsSettings;