@gitkraken/gitkraken-components 10.1.7 → 10.1.9
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/dist/components/graph/GraphColumn.d.ts +9 -5
- package/dist/components/graph/GraphContainer.d.ts +8 -3
- package/dist/components/graph/GraphHeaderRow.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 +8 -3
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -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 {};
|
|
@@ -6,7 +6,7 @@ import type { Sha } from '../../domain/commit/CommitTypes';
|
|
|
6
6
|
import type { CssVariables } from '../../domain/generic/GenericTypes';
|
|
7
7
|
import type { GraphMarkerType, GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
|
|
8
8
|
import type { ThrottledFn } from '../../domain/graph/GraphHelpers';
|
|
9
|
-
import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnToggleRefNodesShown, ProcessedGraphRow, ProcessedGraphRowBySha, RefMetadataById, RefMetadataItem, RefMetadataRequestedById, RefMetadataType, RefsMissingMetadata, Remote, ReserverInfoBySha, RowEdges, RowStats, RowStatsConstraints, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
|
|
9
|
+
import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnSettingsClick, OnToggleRefNodesShown, ProcessedGraphRow, ProcessedGraphRowBySha, RefMetadataById, RefMetadataItem, RefMetadataRequestedById, RefMetadataType, RefsMissingMetadata, Remote, ReserverInfoBySha, RowEdges, RowStats, RowStatsConstraints, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
|
|
10
10
|
import type { TranslationFn } from '../../domain/language/LanguageTypes';
|
|
11
11
|
import type { OnBlur, OnComponentWillUnmount, OnFocus, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
|
|
12
12
|
import type { WorkDirStats } from '../../domain/workdir/WorkDirTypes';
|
|
@@ -87,9 +87,11 @@ export interface DispatchProps {
|
|
|
87
87
|
onColumnResized?: OnGraphColumnResized;
|
|
88
88
|
onFocusWipNodeInput?: OnFocus;
|
|
89
89
|
onMessageChange?: OnCommitMessageChange;
|
|
90
|
+
onPopupGraphHeaderContextMenu?: OnPopupGraphHeaderContextMenu;
|
|
90
91
|
onClickGraphRef?: OnClickGraphRef;
|
|
91
92
|
onClickGraphRow?: OnClickGraphRow;
|
|
92
93
|
onDoubleClickGraphRow?: OnDoubleClickGraphRow;
|
|
94
|
+
onSettingsClick?: OnSettingsClick;
|
|
93
95
|
onSelectGraphRows?: OnSelectGraphRows;
|
|
94
96
|
onScrollForZone?: OnGraphScrollForZone;
|
|
95
97
|
onScrollToRowCausedUpdateForRefZone?: OnGraphScrollForZone;
|
|
@@ -204,6 +206,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
204
206
|
onGraphZoneResize: OnGraphZoneResize;
|
|
205
207
|
onGraphZoneResizeEnd: OnGraphZoneResizeEnd;
|
|
206
208
|
onPopupGraphHeaderContextMenu: OnPopupGraphHeaderContextMenu;
|
|
209
|
+
onSettingsClick: OnSettingsClick;
|
|
207
210
|
onMessageChange: OnCommitMessageChange;
|
|
208
211
|
onClickRef: OnClickRef;
|
|
209
212
|
onClickCommit: OnClickCommit;
|
|
@@ -233,9 +236,9 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
233
236
|
selectSha(sha: Sha, isAutoOrKeyScroll?: boolean): void;
|
|
234
237
|
updateWidthByZone(widthToAssignForZone: number, graphZoneType: GraphZoneType, updatePreferredWidth?: boolean): void;
|
|
235
238
|
updateCommitZoneContentWidthFromChange(): void;
|
|
236
|
-
getCurrentWidthByZone(graphZoneType: GraphZoneType): number;
|
|
239
|
+
getCurrentWidthByZone(graphZoneType: GraphZoneType, withoutVerticalScrollWidth?: boolean): number;
|
|
237
240
|
getCommitZoneContentWidth(): number;
|
|
238
|
-
getCommitZoneWidth(): number;
|
|
241
|
+
getCommitZoneWidth(withoutVerticalScrollWidth?: boolean): number;
|
|
239
242
|
getSingleColumnModeFactor(): number;
|
|
240
243
|
setScroll(graphZoneType: GraphZoneType, scroll: ScrollParams): void;
|
|
241
244
|
getNonAdjustedScrollLeft(): number;
|
|
@@ -248,6 +251,8 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
248
251
|
getScrollToIndex(): number;
|
|
249
252
|
getScrollToAlignment(): Alignment;
|
|
250
253
|
getMinNodeOffset(): number;
|
|
254
|
+
getHorizontalScrollHeight(graphZoneType: GraphZoneType, cssVariables: CssVariables, mergeDefaultCssVariables?: boolean): number;
|
|
255
|
+
getVerticalScrollWidth(graphZoneType: GraphZoneType, cssVariables: CssVariables, mergeDefaultCssVariables?: boolean): number;
|
|
251
256
|
getMaxNodeOffset(): number;
|
|
252
257
|
getAbsoluteNodeLeftByColumn(): AbsoluteNodeLeftByColumn;
|
|
253
258
|
getNodeOffsetByColumn(): NodeOffsetByColumn;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { GraphZone } from '../../domain/graph/GraphConstants';
|
|
4
|
-
import type { ExcludeRefsById, GetExternalIcon, GraphItemContext, IncludeOnlyRefsById, OnGraphColumnReOrdered, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnPopupGraphHeaderContextMenu, OnToggleRefNodesShown } from '../../domain/graph/GraphTypes';
|
|
4
|
+
import type { ExcludeRefsById, GetExternalIcon, GraphItemContext, IncludeOnlyRefsById, OnGraphColumnReOrdered, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnPopupGraphHeaderContextMenu, OnSettingsClick, OnToggleRefNodesShown } from '../../domain/graph/GraphTypes';
|
|
5
5
|
import type { TranslationFn } from '../../domain/language/LanguageTypes';
|
|
6
6
|
import type { OnMouseEnter, OnMouseLeave } from '../../domain/ui/UiTypes';
|
|
7
7
|
import type { DndIsDraggable, DndIsDroppable, DndOnDrop } from './dnd/DndContainer';
|
|
8
8
|
type Props = {
|
|
9
|
-
context?: GraphItemContext;
|
|
10
9
|
dragAppendToContainer?: Element | undefined;
|
|
11
10
|
enableResizer?: boolean;
|
|
12
11
|
getExternalIcon: GetExternalIcon;
|
|
13
12
|
excludeRefsById: ExcludeRefsById;
|
|
13
|
+
headerContext?: GraphItemContext;
|
|
14
14
|
includeOnlyRefsById: IncludeOnlyRefsById;
|
|
15
15
|
rowsStatsLoading: boolean;
|
|
16
16
|
onColumnReOrdered?: OnGraphColumnReOrdered;
|
|
@@ -18,6 +18,7 @@ type Props = {
|
|
|
18
18
|
onGraphZoneResize?: OnGraphZoneResize;
|
|
19
19
|
onGraphZoneResizeEnd?: OnGraphZoneResizeEnd;
|
|
20
20
|
onGraphZoneResizeFromPropChange?: OnGraphZoneResizeFromPropChange;
|
|
21
|
+
onSettingsClick?: OnSettingsClick;
|
|
21
22
|
onToggleRefNodesShown: OnToggleRefNodesShown;
|
|
22
23
|
graphZones: GraphZone[];
|
|
23
24
|
repoPath: string;
|
|
@@ -25,6 +26,7 @@ type Props = {
|
|
|
25
26
|
translate: TranslationFn;
|
|
26
27
|
width: number;
|
|
27
28
|
height: number;
|
|
29
|
+
settingsContext?: GraphItemContext;
|
|
28
30
|
};
|
|
29
31
|
declare class GraphHeaderRow extends React.PureComponent<Props> {
|
|
30
32
|
canDrag: boolean;
|
|
@@ -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;
|
|
@@ -162,6 +165,7 @@ export type RowContexts = {
|
|
|
162
165
|
export type GraphContexts = {
|
|
163
166
|
graph?: GraphItemContext;
|
|
164
167
|
header?: GraphItemContext;
|
|
168
|
+
settings?: GraphItemContext;
|
|
165
169
|
};
|
|
166
170
|
export interface Ref {
|
|
167
171
|
id?: string;
|
|
@@ -388,4 +392,5 @@ export type OnGraphZoneResize = (graphZone: GraphZone, dimensions: OnResizeParam
|
|
|
388
392
|
export type OnGraphZoneResizeEnd = (graphZone: GraphZone, dimensions: OnResizeParams) => void;
|
|
389
393
|
export type OnGraphZoneResizeStart = (graphZone: GraphZone, dimensions: OnResizeParams) => void;
|
|
390
394
|
export type OnGraphZoneResizeFromPropChange = (graphZone: GraphZone, dimensions: OnResizeFromPropChangeParams) => void;
|
|
391
|
-
export type OnPopupGraphHeaderContextMenu = (width: number) => void;
|
|
395
|
+
export type OnPopupGraphHeaderContextMenu = (event: React.MouseEvent<any>, width: number) => void;
|
|
396
|
+
export type OnSettingsClick = (event: React.MouseEvent<any>, width: number) => void;
|