@gitkraken/gitkraken-components 10.1.5 → 10.1.8
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.
- package/ThirdPartyNotices.txt +1 -27
- package/dist/components/graph/GraphColumn.d.ts +9 -5
- package/dist/components/graph/GraphContainer.d.ts +4 -2
- package/dist/components/graph/changeszone/ChangesBar.d.ts +1 -1
- package/dist/components/graph/common/GenericGraphZone.d.ts +1 -1
- package/dist/components/graph/common/ScrollbarContainer.d.ts +40 -0
- package/dist/components/graph/rowRenderers/CommitZoneRow.d.ts +1 -0
- package/dist/components/graph/rowRenderers/CommitsInfoRow.d.ts +2 -4
- package/dist/domain/graph/GraphConstants.d.ts +0 -1
- package/dist/domain/graph/GraphHelpers.d.ts +20 -3
- package/dist/domain/graph/GraphTypes.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +23 -22
package/ThirdPartyNotices.txt
CHANGED
|
@@ -9,8 +9,7 @@ This project incorporates components from the projects listed below.
|
|
|
9
9
|
4. react-bootstrap version 0.32.4 (https://github.com/react-bootstrap/react-bootstrap)
|
|
10
10
|
5. react-dom version 16.8.4 (https://github.com/facebook/react)
|
|
11
11
|
6. react-dragula version 1.1.17 (https://github.com/bevacqua/react-dragula)
|
|
12
|
-
7. react
|
|
13
|
-
8. react version 16.8.4 (https://github.com/facebook/react)
|
|
12
|
+
7. react version 16.8.4 (https://github.com/facebook/react)
|
|
14
13
|
|
|
15
14
|
%% @axosoft/react-virtualized NOTICES AND INFORMATION BEGIN HERE
|
|
16
15
|
=========================================
|
|
@@ -174,31 +173,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
174
173
|
=========================================
|
|
175
174
|
END OF react-dragula NOTICES AND INFORMATION
|
|
176
175
|
|
|
177
|
-
%% react-helmet NOTICES AND INFORMATION BEGIN HERE
|
|
178
|
-
=========================================
|
|
179
|
-
Copyright (c) 2015 NFL
|
|
180
|
-
|
|
181
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
182
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
183
|
-
in the Software without restriction, including without limitation the rights
|
|
184
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
185
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
186
|
-
furnished to do so, subject to the following conditions:
|
|
187
|
-
|
|
188
|
-
The above copyright notice and this permission notice shall be included in all
|
|
189
|
-
copies or substantial portions of the Software.
|
|
190
|
-
|
|
191
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
192
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
193
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
194
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
195
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
196
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
197
|
-
SOFTWARE.
|
|
198
|
-
|
|
199
|
-
=========================================
|
|
200
|
-
END OF react-helmet NOTICES AND INFORMATION
|
|
201
|
-
|
|
202
176
|
%% react NOTICES AND INFORMATION BEGIN HERE
|
|
203
177
|
=========================================
|
|
204
178
|
MIT License
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { Alignment, GridCellRangeRenderer } from 'react-virtualized';
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type { ColumnContentGenerator, GetExternalIcon, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnScrollForZone, RowRenderersByIds } from '../../domain/graph/GraphTypes';
|
|
3
|
+
import type { GraphMarkerType, GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
|
|
4
|
+
import type { ColumnContentGenerator, GetExternalIcon, GraphMarkerColors, GraphMarkerRowIndices, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnScrollForZone, RowRenderersByIds } from '../../domain/graph/GraphTypes';
|
|
6
5
|
import type { TranslationFn } from '../../domain/language/LanguageTypes';
|
|
7
6
|
import type { GetRealKeyForCellFunc } from '../../domain/reactvirtualized/ReactVirtualizedHelpers';
|
|
8
7
|
import type { OnMouseEnter } from '../../domain/ui/UiTypes';
|
|
9
8
|
type GraphColumnProps = {
|
|
9
|
+
branchUpstreamRowIndices: number[];
|
|
10
10
|
rowCount: number;
|
|
11
|
-
cssVariables: CssVariables;
|
|
12
11
|
columnIndex: number;
|
|
13
12
|
enableResizer?: boolean;
|
|
13
|
+
enabledScrollMarkerTypes: GraphMarkerType[];
|
|
14
14
|
getExternalIcon: GetExternalIcon;
|
|
15
15
|
getKeyForCell: GetRealKeyForCellFunc;
|
|
16
16
|
graphHeight: number;
|
|
@@ -18,7 +18,10 @@ type GraphColumnProps = {
|
|
|
18
18
|
graphZoneType: GraphZoneType;
|
|
19
19
|
graphZones: GraphZone[];
|
|
20
20
|
hasMoreCommits: boolean;
|
|
21
|
+
horizontalScrollHeight: number;
|
|
21
22
|
isLoadingRows: boolean;
|
|
23
|
+
markerColors: GraphMarkerColors;
|
|
24
|
+
markerRowIndices: GraphMarkerRowIndices;
|
|
22
25
|
makeColumnContents?: ColumnContentGenerator;
|
|
23
26
|
onResize?: OnGraphZoneResize;
|
|
24
27
|
onResizeEnd?: OnGraphZoneResizeEnd;
|
|
@@ -33,6 +36,7 @@ type GraphColumnProps = {
|
|
|
33
36
|
scrollTop: number;
|
|
34
37
|
smartCellRangeRenderer: GridCellRangeRenderer;
|
|
35
38
|
translate: TranslationFn;
|
|
39
|
+
verticalScrollWidth: number;
|
|
36
40
|
};
|
|
37
|
-
export declare function GraphColumn({ rowCount, cellRenderersByIds, columnIndex,
|
|
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;
|
|
38
42
|
export {};
|
|
@@ -233,9 +233,9 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
233
233
|
selectSha(sha: Sha, isAutoOrKeyScroll?: boolean): void;
|
|
234
234
|
updateWidthByZone(widthToAssignForZone: number, graphZoneType: GraphZoneType, updatePreferredWidth?: boolean): void;
|
|
235
235
|
updateCommitZoneContentWidthFromChange(): void;
|
|
236
|
-
getCurrentWidthByZone(graphZoneType: GraphZoneType): number;
|
|
236
|
+
getCurrentWidthByZone(graphZoneType: GraphZoneType, withoutVerticalScrollWidth?: boolean): number;
|
|
237
237
|
getCommitZoneContentWidth(): number;
|
|
238
|
-
getCommitZoneWidth(): number;
|
|
238
|
+
getCommitZoneWidth(withoutVerticalScrollWidth?: boolean): number;
|
|
239
239
|
getSingleColumnModeFactor(): number;
|
|
240
240
|
setScroll(graphZoneType: GraphZoneType, scroll: ScrollParams): void;
|
|
241
241
|
getNonAdjustedScrollLeft(): number;
|
|
@@ -248,6 +248,8 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
248
248
|
getScrollToIndex(): number;
|
|
249
249
|
getScrollToAlignment(): Alignment;
|
|
250
250
|
getMinNodeOffset(): number;
|
|
251
|
+
getHorizontalScrollHeight(graphZoneType: GraphZoneType, cssVariables: CssVariables, mergeDefaultCssVariables?: boolean): number;
|
|
252
|
+
getVerticalScrollWidth(graphZoneType: GraphZoneType, cssVariables: CssVariables, mergeDefaultCssVariables?: boolean): number;
|
|
251
253
|
getMaxNodeOffset(): number;
|
|
252
254
|
getAbsoluteNodeLeftByColumn(): AbsoluteNodeLeftByColumn;
|
|
253
255
|
getNodeOffsetByColumn(): NodeOffsetByColumn;
|
|
@@ -5,9 +5,9 @@ interface Props {
|
|
|
5
5
|
getExternalIcon: GetExternalIcon;
|
|
6
6
|
isLastColumn: boolean;
|
|
7
7
|
isRowSelected: boolean;
|
|
8
|
-
scrollWidth: number;
|
|
9
8
|
zoneWidth: number;
|
|
10
9
|
stats: RowStats;
|
|
10
|
+
verticalScrollWidth: number;
|
|
11
11
|
}
|
|
12
12
|
export default function ChangesBar(props: Props): ReactElement<'div'>;
|
|
13
13
|
export {};
|
|
@@ -30,7 +30,6 @@ type Props = {
|
|
|
30
30
|
onClickCommit: OnClickCommit;
|
|
31
31
|
onDoubleClickCommit: OnDoubleClickCommit;
|
|
32
32
|
rowContext?: GraphItemContext | null;
|
|
33
|
-
scrollWidth: number;
|
|
34
33
|
setAsCurrentlyHoveredGraphCommit: OnCurrentlyHoveredGraphCommit;
|
|
35
34
|
sha: Sha;
|
|
36
35
|
showColorStrip?: boolean;
|
|
@@ -41,6 +40,7 @@ type Props = {
|
|
|
41
40
|
title?: string | null;
|
|
42
41
|
translate: TranslationFn;
|
|
43
42
|
type: CommitType;
|
|
43
|
+
verticalScrollWidth: number;
|
|
44
44
|
workDirStats?: WorkDirStats;
|
|
45
45
|
zoneWidth: number;
|
|
46
46
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type ScrollParams = {
|
|
4
|
+
clientHeight: number;
|
|
5
|
+
clientWidth: number;
|
|
6
|
+
scrollHeight: number;
|
|
7
|
+
scrollLeft: number;
|
|
8
|
+
scrollTop: number;
|
|
9
|
+
scrollWidth: number;
|
|
10
|
+
};
|
|
11
|
+
export type Props = {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
contentHeight: number;
|
|
14
|
+
contentWidth: number;
|
|
15
|
+
displayHorizontalScrollbar?: boolean;
|
|
16
|
+
displayVerticalScrollbar?: boolean;
|
|
17
|
+
forceHorizontalScrollbar?: boolean;
|
|
18
|
+
forceVerticalScrollbar?: boolean;
|
|
19
|
+
height?: number;
|
|
20
|
+
onScroll?: ((params: ScrollParams) => any) | undefined;
|
|
21
|
+
scrollLeft?: number;
|
|
22
|
+
scrollTop?: number;
|
|
23
|
+
width?: number;
|
|
24
|
+
};
|
|
25
|
+
declare class ScrollbarContainer extends React.PureComponent<Props> {
|
|
26
|
+
horizontalScrollRef: React.RefObject<any>;
|
|
27
|
+
verticalScrollRef: React.RefObject<any>;
|
|
28
|
+
outerHorizontalScrollRef: React.RefObject<any>;
|
|
29
|
+
updateScrollbarValues(scrollLeft?: number, scrollTop?: number): void;
|
|
30
|
+
componentDidUpdate(prevProps: Props): void;
|
|
31
|
+
onHorizontalScroll(event: any): void;
|
|
32
|
+
onVerticalScroll(event: any): void;
|
|
33
|
+
componentDidMount(): void;
|
|
34
|
+
hasHorizontalScroll(): boolean;
|
|
35
|
+
hasVerticalScroll(): boolean;
|
|
36
|
+
getHorizontalScrollbarTickness(): number;
|
|
37
|
+
getAdjustedContentHeight(): number;
|
|
38
|
+
render(): ReactElement<any>;
|
|
39
|
+
}
|
|
40
|
+
export default ScrollbarContainer;
|
|
@@ -4,6 +4,7 @@ import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/Rea
|
|
|
4
4
|
interface OwnProps {
|
|
5
5
|
avatarUrlByEmail: AvatarUrlByEmail;
|
|
6
6
|
graphZoneModeConstants: GraphZoneModeConstants;
|
|
7
|
+
height: number;
|
|
7
8
|
onMissingAvatar: GetMissingAvatar;
|
|
8
9
|
columnColorByColumn: ColumnColorByColumn;
|
|
9
10
|
leftGutterBoxShadowAlpha: number;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Style } from '../../../domain/generic/GenericTypes';
|
|
4
4
|
import type { GraphZoneType } from '../../../domain/graph/GraphConstants';
|
|
5
5
|
import type { GetExternalIcon } from '../../../domain/graph/GraphTypes';
|
|
6
6
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
7
7
|
import EntireRowSpan from '../common/EntireRowSpan';
|
|
8
8
|
type Props = {
|
|
9
|
-
cssVariables: CssVariables;
|
|
10
9
|
currentCommits: number;
|
|
11
10
|
getExternalIcon: GetExternalIcon;
|
|
12
11
|
graphZoneType: GraphZoneType;
|
|
13
12
|
hasMoreCommits: boolean;
|
|
14
13
|
height: number;
|
|
14
|
+
horizontalScrollHeight: number;
|
|
15
15
|
isLoadingRows: boolean;
|
|
16
16
|
scrollTop: number;
|
|
17
17
|
style: Style;
|
|
18
18
|
translate: TranslationFn;
|
|
19
|
-
zoneContentWidth: number;
|
|
20
|
-
zoneWidth: number;
|
|
21
19
|
};
|
|
22
20
|
declare class CommitsInfoRow extends React.Component<Props> {
|
|
23
21
|
render(): ReactElement<typeof EntireRowSpan>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const DEFAULT_AVATAR_BACKGROUND_COLOR = "#199489";
|
|
2
|
-
export declare const GRAPH_SCROLL_BAR_DEFAULT_WIDTH = 14;
|
|
3
2
|
export declare const GRAPH_SCROLL_MARKER_LANES = 3;
|
|
4
3
|
export declare const GRAPH_HEADER_ROW_HEIGHT = 26;
|
|
5
4
|
export declare const GRAPH_ROW_HEIGHT = 28;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Alignment } from 'react-virtualized';
|
|
2
2
|
import type { Sha } from '../commit/CommitTypes';
|
|
3
|
+
import type { CssVariables } from '../generic/GenericTypes';
|
|
3
4
|
import type { GetRealKeyForCellFunc } from '../reactvirtualized/ReactVirtualizedHelpers';
|
|
4
5
|
import type { GraphRefType } from '../ref/RefTypes';
|
|
5
6
|
import type { WorkDirStats } from '../workdir/WorkDirTypes';
|
|
6
|
-
import type { GraphZone, GraphZoneType, TimelineEntriesByPeriod } from './GraphConstants';
|
|
7
|
+
import type { GraphMarkerType, GraphZone, GraphZoneType, TimelineEntriesByPeriod } from './GraphConstants';
|
|
7
8
|
import { GraphColumnMode } from './GraphConstants';
|
|
8
9
|
import type { GetMissingRefMetadata, GraphColumnWidthConstraints, GraphItemContext, GraphRef, GraphRefGroup, GraphRow, GraphZoneModeConstants, HighlightedShas, IsSelectedBySha, ProcessedGraphRow, ProcessedGraphRowBySha, PullRequestMetadata, Ref, RefMetadata, RefMetadataById, RefMetadataType, RowStatsConstraints, UpstreamMetadata } from './GraphTypes';
|
|
9
10
|
export type DebouncableFn = (...args: any) => void;
|
|
@@ -20,10 +21,19 @@ export declare function getRefIdByBaseRef(refType: GraphRefType, ref: Ref): stri
|
|
|
20
21
|
export declare function getRefIdByGraphRef(ref: GraphRef): string;
|
|
21
22
|
export declare function getLastShrinkableGraphZone(activeGraphZones: GraphZone[], stoppingIndex?: number): GraphZone | undefined;
|
|
22
23
|
export declare function getFirstExpandableGraphZone(activeGraphZones: GraphZone[], startingIndex?: number): GraphZone | undefined;
|
|
24
|
+
export declare function getScrollThickness(cssVariables: CssVariables, mergeDefaultCssVariables?: boolean): number;
|
|
23
25
|
export declare function getZoneWidthsTotal(activeGraphZones: GraphZone[], zoneTypeToExclude?: GraphZoneType): number;
|
|
24
26
|
export declare function getFollowingZoneMinWidthsTotal(activeGraphZones: GraphZone[], startingIndex?: number): number;
|
|
25
27
|
export declare function getPrecedingZoneCurrentWidthsTotal(activeGraphZones: GraphZone[], endingIndex?: number): number;
|
|
26
28
|
export declare const isLastColumn: (graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]) => boolean;
|
|
29
|
+
export declare function getMustShowMoreCommitsPanel(rowCount: number, hasMoreCommits: boolean, isLoadingRows: boolean): boolean;
|
|
30
|
+
export declare function getAdjustedRowCount(rowCount: number, hasMoreCommits: boolean, isLoadingRows: boolean): number;
|
|
31
|
+
export declare function getContentZoneHeight(rowCount: number, hasMoreCommits: boolean, isLoadingRows: boolean): number;
|
|
32
|
+
export declare function getContentZoneWidth(activeGraphZone: GraphZone, rowCount: number): number;
|
|
33
|
+
export declare function hasHorizontalScroll(activeGraphZone: GraphZone, rowCount: number): boolean;
|
|
34
|
+
export declare function hasVerticalScroll(activeGraphZone: GraphZone, activeGraphZones: GraphZone[], hasMoreCommits: boolean, isLoadingRows: boolean, graphHeight: number, rowCount: number, isScrollMarkerEnabled: boolean): boolean;
|
|
35
|
+
export declare function getHorizontalScrollHeight(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[], graphRows: GraphRow[], cssVariables: CssVariables, mergeDefaultCssVariables?: boolean): number;
|
|
36
|
+
export declare function getVerticalScrollWidth(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[], hasMoreCommits: boolean, isLoadingRows: boolean, graphHeight: number, graphRows: GraphRow[], isScrollMarkerEnabled: boolean, cssVariables: CssVariables, mergeDefaultCssVariables?: boolean): number;
|
|
27
37
|
export declare const isColumnFollowingGraphColumn: (graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]) => boolean;
|
|
28
38
|
export declare function getClampedZoneWidth(graphZone: GraphZone, activeGraphZones: GraphZone[], width: number): number;
|
|
29
39
|
export declare function getGraphZoneFromGraphZones(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): GraphZone | undefined;
|
|
@@ -31,7 +41,7 @@ export declare function getGraphZoneIndexFromGraphZones(graphZoneType: GraphZone
|
|
|
31
41
|
export declare function getGraphZoneWidthConstraintsFromGraphZones(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[], graphWidth: number): GraphColumnWidthConstraints;
|
|
32
42
|
export declare function getGraphZoneModeConstants(graphZoneMode?: GraphColumnMode): GraphZoneModeConstants;
|
|
33
43
|
export declare const makeGetKeyForCell: (rows: ProcessedGraphRow[]) => GetRealKeyForCellFunc;
|
|
34
|
-
export declare function
|
|
44
|
+
export declare function getZoneWidthWithVerticalScrollbar(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): number;
|
|
35
45
|
export declare function rowContainsCurrentHeadRef(row?: ProcessedGraphRow | GraphRow): boolean;
|
|
36
46
|
export declare function getHeadRefShaFromGraphRows(graphRows: GraphRow[]): Sha | undefined;
|
|
37
47
|
export declare function workDirStatsHaveChanges(workDirStats?: WorkDirStats): boolean;
|
|
@@ -43,8 +53,13 @@ export declare function getGraphRefGroupsByName(refGroup: GraphRefGroup): GraphR
|
|
|
43
53
|
export declare function getGraphZoneIconByType(zoneType: GraphZoneType): string;
|
|
44
54
|
export interface GraphRowHelperProps {
|
|
45
55
|
currentlyHoveredCommitSha?: Sha;
|
|
56
|
+
cssVariables: CssVariables;
|
|
46
57
|
dimRowsOfSelectedCommit: boolean;
|
|
58
|
+
enabledScrollMarkerTypes: GraphMarkerType[];
|
|
59
|
+
height: number;
|
|
47
60
|
graphZones: GraphZone[];
|
|
61
|
+
hasMoreCommits: boolean;
|
|
62
|
+
isLoadingRows: boolean;
|
|
48
63
|
highlightedShas?: HighlightedShas;
|
|
49
64
|
hoveredRefGroup?: GraphRefGroup;
|
|
50
65
|
isSelectedBySha: IsSelectedBySha;
|
|
@@ -60,7 +75,7 @@ export declare class GraphRowHelper {
|
|
|
60
75
|
getGraphRefGroupForRow(rowIndex: number): GraphRefGroup;
|
|
61
76
|
getGraphRefGroupsByNameForRow(rowIndex: number): GraphRefGroup[];
|
|
62
77
|
getRow(rowIndex: number): ProcessedGraphRow | undefined;
|
|
63
|
-
getZoneWidth(graphZoneType: GraphZoneType): number;
|
|
78
|
+
getZoneWidth(graphZoneType: GraphZoneType, withoutVerticalScrollWidth?: boolean): number;
|
|
64
79
|
isDateTimeZoneActive(): boolean;
|
|
65
80
|
isFirstRow(rowIndex: number): boolean;
|
|
66
81
|
isColumnFollowingGraphColumn(graphZoneType: GraphZoneType): boolean;
|
|
@@ -68,6 +83,8 @@ export declare class GraphRowHelper {
|
|
|
68
83
|
isHovering(rowIndex: number): boolean;
|
|
69
84
|
isLastColumn(graphZoneType: GraphZoneType): boolean;
|
|
70
85
|
getSelectedRefGroupByName(): GraphRefGroup[];
|
|
86
|
+
getHorizontalScrollHeight(graphZoneType: GraphZoneType): number;
|
|
87
|
+
getVerticalScrollWidth(graphZoneType: GraphZoneType): number;
|
|
71
88
|
isMissingHoveredRefGroup(rowIndex: number): boolean;
|
|
72
89
|
isSelected(rowIndex: number): boolean;
|
|
73
90
|
isSingleSelected(rowIndex: number): boolean;
|
|
@@ -7,7 +7,7 @@ import type { HostingServiceType } from '../hostingservice/HostingServiceTypes';
|
|
|
7
7
|
import type { TranslationFn } from '../language/LanguageTypes';
|
|
8
8
|
import type { GraphRefType } from '../ref/RefTypes';
|
|
9
9
|
import type { OnResizeFromPropChangeParams, OnResizeParams } from '../ui/UiTypes';
|
|
10
|
-
import type { GraphZone, GraphZoneType, TimelineEntry, TimelineMsgRowRenderIdType } from './GraphConstants';
|
|
10
|
+
import type { GraphMarkerType, GraphZone, GraphZoneType, TimelineEntry, TimelineMsgRowRenderIdType } from './GraphConstants';
|
|
11
11
|
export type RowRenderType = GraphZoneType | TimelineMsgRowRenderIdType;
|
|
12
12
|
export type RowRenderersByIds = {
|
|
13
13
|
[id: string]: GridCellRenderer;
|
|
@@ -72,13 +72,17 @@ export type RowEdges = {
|
|
|
72
72
|
};
|
|
73
73
|
export interface CommonGraphRowProps {
|
|
74
74
|
enabledRefMetadataTypes: RefMetadataType[];
|
|
75
|
+
enabledScrollMarkerTypes: GraphMarkerType[];
|
|
75
76
|
avatarUrlByEmail: AvatarUrlByEmail;
|
|
76
77
|
currentlyHoveredCommitSha?: Sha;
|
|
77
78
|
cssVariables: CssVariables;
|
|
78
79
|
dimMergeCommits: boolean;
|
|
79
80
|
dimRowsOfSelectedCommit: boolean;
|
|
81
|
+
hasMoreCommits: boolean;
|
|
82
|
+
height: number;
|
|
80
83
|
highlightRowsOnRefHover: boolean;
|
|
81
84
|
isContainerWindowFocused: boolean;
|
|
85
|
+
isLoadingRows: boolean;
|
|
82
86
|
isSelectedBySha: IsSelectedBySha;
|
|
83
87
|
showGhostRefsOnRowHover: boolean;
|
|
84
88
|
showRemoteNamesOnRefs: boolean;
|
|
@@ -94,7 +98,6 @@ export interface CommonGraphRowProps {
|
|
|
94
98
|
translate: TranslationFn;
|
|
95
99
|
useAuthorInitialsForAvatars: boolean;
|
|
96
100
|
scrollTop: number;
|
|
97
|
-
scrollWidth: number;
|
|
98
101
|
}
|
|
99
102
|
export interface CommonGraphRowDispatchProps {
|
|
100
103
|
onClickCommit: OnClickCommit;
|