@gitkraken/gitkraken-components 1.0.0-rc.24 → 1.0.0-rc.26

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.
@@ -44,28 +44,32 @@ export type GraphPlatform = 'aix'
44
44
  | 'win32'
45
45
  | 'cygwin';
46
46
 
47
+ export type GraphItemContext = string | object;
48
+ export type RefGroupContexts = { [name: string]: GraphItemContext };
49
+
47
50
  export type RowContexts = {
48
- row?: string;
49
- ref?: string;
50
- graph?: string;
51
- avatar?: string;
52
- message?: string;
53
- author?: string;
54
- date?: string;
55
- sha?: string;
51
+ row?: GraphItemContext;
52
+ ref?: GraphItemContext;
53
+ refGroups?: RefGroupContexts;
54
+ graph?: GraphItemContext;
55
+ avatar?: GraphItemContext;
56
+ message?: GraphItemContext;
57
+ author?: GraphItemContext;
58
+ date?: GraphItemContext;
59
+ sha?: GraphItemContext;
56
60
  };
57
61
 
58
62
  export type GraphContexts = {
59
- graph?: string;
60
- header?: string;
63
+ graph?: GraphItemContext;
64
+ header?: GraphItemContext;
61
65
  };
62
66
 
63
67
  export type Head = {
64
68
  id?: string,
65
69
  name: string;
66
70
  isCurrentHead?: boolean;
67
- context?: string;
68
- contextGroup?: string;
71
+ context?: GraphItemContext;
72
+ contextGroup?: GraphItemContext;
69
73
  };
70
74
 
71
75
  export type Remote = {
@@ -74,16 +78,16 @@ export type Remote = {
74
78
  owner?: string;
75
79
  avatarUrl?: string;
76
80
  url?: string;
77
- context?: string;
78
- contextGroup?: string;
81
+ context?: GraphItemContext;
82
+ contextGroup?: GraphItemContext;
79
83
  };
80
84
 
81
85
  export type Tag = {
82
86
  id?: string,
83
87
  name: string;
84
88
  annotated?: boolean;
85
- context?: string;
86
- contextGroup?: string;
89
+ context?: GraphItemContext;
90
+ contextGroup?: GraphItemContext;
87
91
  };
88
92
 
89
93
  export type GraphRow = {
@@ -138,6 +142,7 @@ export type GraphRefOptData = {
138
142
  id: string;
139
143
  name: string;
140
144
  type: GraphRefType;
145
+ owner?: string;
141
146
  avatarUrl?: string;
142
147
  };
143
148
 
@@ -156,7 +161,7 @@ export type PullRequestMetadata = {
156
161
  date?: number;
157
162
  state?: string;
158
163
  url?: string;
159
- context?: string;
164
+ context?: GraphItemContext;
160
165
  };
161
166
 
162
167
  // Hosting service types for pull request metadata