@gitkraken/gitkraken-components 1.1.0-rc.3 → 1.1.0-rc.5
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.
|
@@ -106,7 +106,8 @@ export type GraphRow = {
|
|
|
106
106
|
|
|
107
107
|
export type GraphColumnSetting = {
|
|
108
108
|
width: number,
|
|
109
|
-
isHidden: boolean
|
|
109
|
+
isHidden: boolean,
|
|
110
|
+
order?: number
|
|
110
111
|
};
|
|
111
112
|
|
|
112
113
|
export type AvatarUrlByEmail = { [email: string]: string };
|
|
@@ -203,6 +204,7 @@ export type OnGraphRowHovered = (event: any, graphZoneType: GraphZoneType, graph
|
|
|
203
204
|
export type OnGraphRowUnhovered = (event: any, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
|
|
204
205
|
export type OnGraphRefNodeHovered = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow) => void;
|
|
205
206
|
export type OnGraphRefNodeUnhovered = (event: any, refGroup: GraphRefGroup, graphRow: GraphRow) => void;
|
|
207
|
+
export type OnGraphColumnsReOrdered = (columnsSettings: GraphColumnsSettings) => void;
|
|
206
208
|
export type OnGraphColumnResized = (graphZoneType: GraphZoneType, columnSettings: GraphColumnSetting) => void;
|
|
207
209
|
export type OnGraphResized = (width: number, height: number) => void;
|
|
208
210
|
export type OnShowMoreCommits = () => void;
|
|
@@ -219,6 +221,7 @@ export interface GraphContainerProps {
|
|
|
219
221
|
highlightRowsOnRefHover?: boolean,
|
|
220
222
|
showGhostRefsOnRowHover?: boolean,
|
|
221
223
|
showRemoteNamesOnRefs?: boolean,
|
|
224
|
+
scrollRowPadding?: number,
|
|
222
225
|
enableMultiSelection?: boolean,
|
|
223
226
|
graphRows: GraphRow[];
|
|
224
227
|
hasMoreCommits?: boolean;
|
|
@@ -239,6 +242,7 @@ export interface GraphContainerProps {
|
|
|
239
242
|
onGraphRowUnhovered?: OnGraphRowUnhovered;
|
|
240
243
|
onGraphRefNodeHovered?: OnGraphRefNodeHovered;
|
|
241
244
|
onGraphRefNodeUnhovered?: OnGraphRefNodeUnhovered;
|
|
245
|
+
onGraphColumnsReOrdered?: OnGraphColumnsReOrdered,
|
|
242
246
|
onColumnResized?: OnGraphColumnResized;
|
|
243
247
|
onClickGraphRef?: OnClickGraphRef;
|
|
244
248
|
onClickGraphRow?: OnClickGraphRow;
|
|
@@ -268,7 +272,7 @@ declare class GraphContainer extends React.PureComponent<GraphContainerProps, an
|
|
|
268
272
|
): void;
|
|
269
273
|
forceUpdate(callback?: () => void): void;
|
|
270
274
|
render(): JSX.Element;
|
|
271
|
-
selectCommits(shas: Sha[], includeToPrevSel: boolean): void;
|
|
275
|
+
selectCommits(shas: Sha[], includeToPrevSel: boolean, isAutoOrKeyScroll: boolean): void;
|
|
272
276
|
}
|
|
273
277
|
|
|
274
278
|
export default GraphContainer;
|