@gitkraken/gitkraken-components 1.0.0-rc.13 → 1.0.0-rc.14

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.
@@ -70,13 +70,14 @@ export type GraphRow = {
70
70
  heads?: Head[];
71
71
  remotes?: Remote[];
72
72
  tags?: Tag[];
73
- avatarUrl?: string;
74
73
  };
75
74
 
76
75
  export type GraphColumnSetting = {
77
76
  width: number
78
77
  };
79
78
 
79
+ export type AvatarUrlByEmail = { [email: string]: string };
80
+
80
81
  export const REF_ZONE_TYPE = 'refZone';
81
82
  export const GRAPH_ZONE_TYPE = 'commitZone';
82
83
  export const MESSAGE_ZONE_TYPE = 'commitMessageZone';
@@ -103,7 +104,7 @@ export type GraphRef = Head
103
104
  export type GraphRefGroup = Array<GraphRef>;
104
105
 
105
106
  // Callbacks
106
- export type GetExternalIcon = (key: string) => ReactElement<*>;
107
+ export type GetExternalIcon = (key: string) => React.ReactElement<any>;
107
108
  export type TranslationFn = (key: string, ...formatArgs: any) => string;
108
109
  export type OnFormatCommitDateTime = (commitDateTime: number) => string;
109
110
 
@@ -121,9 +122,11 @@ export type OnGraphRefNodeHovered = (event: any, refGroup: GraphRefGroup, graphR
121
122
  export type OnGraphRefNodeUnhovered = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow) => void;
122
123
  export type OnGraphColumnResized = (graphZoneType: GraphZoneType, columnSettings: GraphColumnSetting) => void;
123
124
  export type OnShowMoreCommits = () => void;
125
+ export type OnEmailsMissingAvatarUrls = (emails: { [email: string]: string }) => void;
124
126
 
125
127
  // Main graph component
126
128
  export interface GraphContainerProps {
129
+ avatarUrlByEmail?: AvatarUrlByEmail;
127
130
  height?: number;
128
131
  width?: number;
129
132
  platform?: GraphPlatform;
@@ -162,6 +165,7 @@ export interface GraphContainerProps {
162
165
  onShowMoreCommits?: OnShowMoreCommits;
163
166
  // onWipNodeInputWillUnmount: OnComponentWillUnmount;
164
167
  // onUpdateGraphWidth: OnUpdateGraphWidth;
168
+ onEmailsMissingAvatarUrls?: OnEmailsMissingAvatarUrls;
165
169
  formatCommitDateTime?: OnFormatCommitDateTime;
166
170
  shaLength?: number;
167
171
  nonce?: string;