@gitkraken/gitkraken-components 10.2.0 → 10.2.1
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.
|
@@ -9,6 +9,7 @@ type GraphColumnProps = {
|
|
|
9
9
|
branchUpstreamRowIndices: number[];
|
|
10
10
|
rowCount: number;
|
|
11
11
|
columnIndex: number;
|
|
12
|
+
customFooterRow?: ReactElement<any>;
|
|
12
13
|
enableResizer?: boolean;
|
|
13
14
|
enabledScrollMarkerTypes: GraphMarkerType[];
|
|
14
15
|
getExternalIcon: GetExternalIcon;
|
|
@@ -38,5 +39,5 @@ type GraphColumnProps = {
|
|
|
38
39
|
translate: TranslationFn;
|
|
39
40
|
verticalScrollWidth: number;
|
|
40
41
|
};
|
|
41
|
-
export declare function GraphColumn({ branchUpstreamRowIndices, rowCount, cellRenderersByIds, columnIndex, enabledScrollMarkerTypes, enableResizer, getExternalIcon, getKeyForCell, graphHeight, graphWidth, graphZoneType, graphZones, hasMoreCommits, horizontalScrollHeight, isLoadingRows, markerColors, markerRowIndices, onResize, onResizeEnd, onResizeFromPropChange, onScroll, onScrollToRowCausedUpdate, onZoneEnter, scrollLeft, scrollToAlignment, scrollToIndex, scrollTop, smartCellRangeRenderer, translate, verticalScrollWidth, }: GraphColumnProps): ReactElement<any> | null;
|
|
42
|
+
export declare function GraphColumn({ branchUpstreamRowIndices, rowCount, cellRenderersByIds, columnIndex, customFooterRow, enabledScrollMarkerTypes, enableResizer, getExternalIcon, getKeyForCell, graphHeight, graphWidth, graphZoneType, graphZones, hasMoreCommits, horizontalScrollHeight, isLoadingRows, markerColors, markerRowIndices, onResize, onResizeEnd, onResizeFromPropChange, onScroll, onScrollToRowCausedUpdate, onZoneEnter, scrollLeft, scrollToAlignment, scrollToIndex, scrollTop, smartCellRangeRenderer, translate, verticalScrollWidth, }: GraphColumnProps): ReactElement<any> | null;
|
|
42
43
|
export {};
|
|
@@ -44,6 +44,7 @@ interface OwnProps {
|
|
|
44
44
|
export interface StateProps {
|
|
45
45
|
avatarUrlByEmail?: AvatarUrlByEmail;
|
|
46
46
|
cssVariables?: CssVariables;
|
|
47
|
+
customFooterRow?: ReactElement<any>;
|
|
47
48
|
contexts?: GraphContexts | null;
|
|
48
49
|
createRefFormData?: CreateRefFormData | null;
|
|
49
50
|
dimMergeCommits?: boolean;
|
|
@@ -173,7 +174,7 @@ type ColumnsUsed = {
|
|
|
173
174
|
type HasMergeNodeChildBySha = {
|
|
174
175
|
[sha: Sha]: boolean;
|
|
175
176
|
};
|
|
176
|
-
declare class GraphContainer extends React.
|
|
177
|
+
declare class GraphContainer extends React.Component<Props, ComponentState> implements IGraphContainer {
|
|
177
178
|
graphContainerRef: any;
|
|
178
179
|
resizeObserver: ResizeObserver;
|
|
179
180
|
isSelectedBySha: IsSelectedBySha;
|
|
@@ -259,6 +260,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
259
260
|
onRefZoneUnhovered: OnRefZoneUnhovered;
|
|
260
261
|
onShowMoreCommits: OnShowMoreCommits;
|
|
261
262
|
onScrollForZone: OnScrollForZone;
|
|
263
|
+
loadMoreCommitsIfNecessary(graphHeight: number, hasMoreCommits: boolean): void;
|
|
262
264
|
onScrollToRowCausedUpdateForRefZone: OnScrollForZone;
|
|
263
265
|
onCommitContextMenu: OnCommitContextMenu;
|
|
264
266
|
onRefContextMenu: OnRefZoneContextMenu;
|
|
@@ -7,6 +7,7 @@ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
|
7
7
|
import EntireRowSpan from '../common/EntireRowSpan';
|
|
8
8
|
type Props = {
|
|
9
9
|
currentCommits: number;
|
|
10
|
+
customFooterRow?: ReactElement<any>;
|
|
10
11
|
getExternalIcon: GetExternalIcon;
|
|
11
12
|
graphZoneType: GraphZoneType;
|
|
12
13
|
hasMoreCommits: boolean;
|