@gitkraken/gitkraken-components 9.1.5 → 10.1.0
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/GraphContainer.d.ts +7 -3
- package/dist/components/graph/GraphHeaderRow.d.ts +1 -0
- package/dist/components/graph/GraphScrollMarker.d.ts +1 -1
- package/dist/components/graph/changeszone/ChangesBar.d.ts +3 -1
- package/dist/components/graph/common/DraggableGraphHeader.d.ts +1 -0
- package/dist/components/graph/rowRenderers/ChangesZoneRow.d.ts +2 -1
- package/dist/domain/graph/GraphConstants.d.ts +3 -12
- package/dist/domain/graph/GraphTypes.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,9 @@ import type { ReactElement } from 'react';
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import type { Sha } from '../../domain/commit/CommitTypes';
|
|
6
6
|
import type { CssVariables } from '../../domain/generic/GenericTypes';
|
|
7
|
-
import type { GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
|
|
8
|
-
import { GraphMarkerType } from '../../domain/graph/GraphConstants';
|
|
7
|
+
import type { GraphMarkerType, GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
|
|
9
8
|
import type { ThrottledFn } from '../../domain/graph/GraphHelpers';
|
|
10
|
-
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, 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, OnToggleRefNodesShown, ProcessedGraphRow, ProcessedGraphRowBySha, RefMetadataById, RefMetadataItem, RefMetadataRequestedById, RefMetadataType, RefsMissingMetadata, Remote, ReserverInfoBySha, RowEdges, RowStats, RowStatsConstraints, Tag, TopAndBottomVisibleRowIndex } from '../../domain/graph/GraphTypes';
|
|
11
10
|
import type { TranslationFn } from '../../domain/language/LanguageTypes';
|
|
12
11
|
import type { OnBlur, OnComponentWillUnmount, OnFocus, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
|
|
13
12
|
import type { WorkDirStats } from '../../domain/workdir/WorkDirTypes';
|
|
@@ -70,6 +69,8 @@ export interface StateProps {
|
|
|
70
69
|
themeOpacityFactor?: number;
|
|
71
70
|
translate?: TranslationFn;
|
|
72
71
|
useAuthorInitialsForAvatars: boolean;
|
|
72
|
+
rowsStats?: Record<string, RowStats>;
|
|
73
|
+
rowsStatsLoading?: boolean;
|
|
73
74
|
workDirStats?: WorkDirStats;
|
|
74
75
|
}
|
|
75
76
|
export interface DispatchProps {
|
|
@@ -128,6 +129,8 @@ type ComponentState = {
|
|
|
128
129
|
numGraphColumns: number;
|
|
129
130
|
processedRows: ProcessedGraphRow[];
|
|
130
131
|
refMetadataById?: RefMetadataById | null;
|
|
132
|
+
rowsStats?: Record<string, RowStats>;
|
|
133
|
+
rowsStatsLoading: boolean;
|
|
131
134
|
useAuthorInitialsForAvatars: boolean;
|
|
132
135
|
scrollLeft: number;
|
|
133
136
|
scrollToAlignment: Alignment;
|
|
@@ -163,6 +166,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
163
166
|
columnsToFreeWhenFound: ColumnsToFreeBySha;
|
|
164
167
|
reserverInfoBySha: ReserverInfoBySha;
|
|
165
168
|
columnsUsed: ColumnsUsed;
|
|
169
|
+
rowsStats?: Record<string, RowStats>;
|
|
166
170
|
workDirStats: WorkDirStats;
|
|
167
171
|
excludeByType: ExcludeByType;
|
|
168
172
|
excludeRefsById: ExcludeRefsById;
|
|
@@ -11,6 +11,7 @@ type Props = {
|
|
|
11
11
|
getExternalIcon: GetExternalIcon;
|
|
12
12
|
excludeRefsById: ExcludeRefsById;
|
|
13
13
|
includeOnlyRefsById: IncludeOnlyRefsById;
|
|
14
|
+
rowsStatsLoading: boolean;
|
|
14
15
|
onColumnReOrdered?: OnGraphColumnReOrdered;
|
|
15
16
|
onPopupGraphHeaderContextMenu?: OnPopupGraphHeaderContextMenu;
|
|
16
17
|
onGraphZoneResize?: OnGraphZoneResize;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { GraphMarkerType } from '../../domain/graph/GraphConstants';
|
|
3
|
+
import type { GraphMarkerType } from '../../domain/graph/GraphConstants';
|
|
4
4
|
import type { GraphMarkerColors, GraphMarkerRowIndices } from '../../domain/graph/GraphTypes';
|
|
5
5
|
interface Props {
|
|
6
6
|
branchUpstreamRowIndices: number[];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type { RowStats, RowStatsConstraints } from '../../../domain/graph/GraphTypes';
|
|
2
|
+
import type { GetExternalIcon, RowStats, RowStatsConstraints } from '../../../domain/graph/GraphTypes';
|
|
3
3
|
interface Props {
|
|
4
4
|
constraints: RowStatsConstraints;
|
|
5
|
+
getExternalIcon: GetExternalIcon;
|
|
5
6
|
isLastColumn: boolean;
|
|
7
|
+
isRowSelected: boolean;
|
|
6
8
|
scrollWidth: number;
|
|
7
9
|
zoneWidth: number;
|
|
8
10
|
stats: RowStats;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { GridCellRenderer } from 'react-virtualized';
|
|
2
|
-
import type { CommonGraphRowDispatchProps, CommonGraphRowProps, RowStatsConstraints } from '../../../domain/graph/GraphTypes';
|
|
2
|
+
import type { CommonGraphRowDispatchProps, CommonGraphRowProps, RowStats, RowStatsConstraints } from '../../../domain/graph/GraphTypes';
|
|
3
3
|
import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
|
|
4
4
|
interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps {
|
|
5
5
|
rowStatsConstraints: RowStatsConstraints;
|
|
6
|
+
rowsStats?: Record<string, RowStats>;
|
|
6
7
|
}
|
|
7
8
|
declare const makeChangesZoneRowRenderer: (props: Props, getKeyForCell: GetRealKeyForCellFunc) => GridCellRenderer;
|
|
8
9
|
export default makeChangesZoneRowRenderer;
|
|
@@ -36,7 +36,7 @@ export declare const REF_NODE_OUTER_SPACING = 10;
|
|
|
36
36
|
export declare const REF_ZONE_SHOW_ICON_WIDTH = 55;
|
|
37
37
|
export declare const CHANGES_ZONE_MIN_WIDTH = 50;
|
|
38
38
|
export declare const CHANGES_BAR_MIN_WIDTH = 10;
|
|
39
|
-
export declare const CHANGES_BAR_RIGHT_MARGIN =
|
|
39
|
+
export declare const CHANGES_BAR_RIGHT_MARGIN = 25;
|
|
40
40
|
export declare const CHANGES_ZONE_SHOW_ICON_WIDTH = 58;
|
|
41
41
|
export declare const HEADER_ROW_HEIGHT = 22;
|
|
42
42
|
export declare const HEADER_ROW_MARGIN_BOTTOM = 2;
|
|
@@ -74,16 +74,7 @@ export declare enum GraphColumnMode {
|
|
|
74
74
|
Rich = "rich",
|
|
75
75
|
Text = "text"
|
|
76
76
|
}
|
|
77
|
-
export
|
|
78
|
-
LocalBranches = "localBranches",
|
|
79
|
-
RemoteBranches = "remoteBranches",
|
|
80
|
-
Selection = "selection",
|
|
81
|
-
Head = "head",
|
|
82
|
-
Upstream = "upstream",
|
|
83
|
-
Highlights = "highlights",
|
|
84
|
-
Stashes = "stashes",
|
|
85
|
-
Tags = "tags"
|
|
86
|
-
}
|
|
77
|
+
export type GraphMarkerType = 'head' | 'highlights' | 'localBranches' | 'remoteBranches' | 'selection' | 'stashes' | 'tags' | 'upstream';
|
|
87
78
|
export declare enum GraphMarkerShape {
|
|
88
79
|
Block = "block",
|
|
89
80
|
FullLine = "fullLine",
|
|
@@ -105,7 +96,7 @@ export interface GraphMarkerMetadata {
|
|
|
105
96
|
shape: GraphMarkerShape;
|
|
106
97
|
}
|
|
107
98
|
export declare const graphMarkerMetadata: {
|
|
108
|
-
[marker
|
|
99
|
+
[marker in GraphMarkerType]: GraphMarkerMetadata;
|
|
109
100
|
};
|
|
110
101
|
export declare const numGraphColumnsDefault = 10;
|
|
111
102
|
export declare const DEFAULT_COMMIT_SHA_LENGTH = 6;
|