@gitkraken/gitkraken-components 1.0.0-rc.15 → 1.0.0-rc.17

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.
@@ -54,6 +54,11 @@ export type RowContexts = {
54
54
  sha?: string;
55
55
  };
56
56
 
57
+ export type GraphContexts = {
58
+ graph?: string;
59
+ header?: string;
60
+ };
61
+
57
62
  export type Head = {
58
63
  name: string;
59
64
  isCurrentHead?: boolean;
@@ -95,12 +100,12 @@ export type GraphColumnSetting = {
95
100
 
96
101
  export type AvatarUrlByEmail = { [email: string]: string };
97
102
 
98
- export const REF_ZONE_TYPE = 'refZone';
99
- export const GRAPH_ZONE_TYPE = 'commitZone';
100
- export const MESSAGE_ZONE_TYPE = 'commitMessageZone';
101
- export const AUTHOR_ZONE_TYPE = 'commitAuthorZone';
102
- export const DATE_TIME_ZONE_TYPE = 'commitDateTimeZone';
103
- export const SHA_ZONE_TYPE = 'commitShaZone';
103
+ export const REF_ZONE_TYPE = 'ref';
104
+ export const GRAPH_ZONE_TYPE = 'graph';
105
+ export const MESSAGE_ZONE_TYPE = 'message';
106
+ export const AUTHOR_ZONE_TYPE = 'author';
107
+ export const DATE_TIME_ZONE_TYPE = 'datetime';
108
+ export const SHA_ZONE_TYPE = 'sha';
104
109
 
105
110
  export type GraphZoneType = typeof REF_ZONE_TYPE
106
111
  | typeof GRAPH_ZONE_TYPE
@@ -144,6 +149,7 @@ export type OnEmailsMissingAvatarUrls = (emails: { [email: string]: string }) =>
144
149
  // Main graph component
145
150
  export interface GraphContainerProps {
146
151
  avatarUrlByEmail?: AvatarUrlByEmail;
152
+ contexts?: GraphContexts;
147
153
  height?: number;
148
154
  width?: number;
149
155
  platform?: GraphPlatform;