@gitkraken/gitkraken-components 10.1.15 → 10.1.17
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 +4 -0
- package/dist/components/graph/commitzone/CommitNode.d.ts +2 -0
- package/dist/components/graph/commitzone/CommitZone.d.ts +2 -0
- package/dist/components/graph/common/GenericGraphZone.d.ts +0 -4
- package/dist/domain/graph/GraphHelpers.d.ts +3 -1
- package/dist/domain/graph/GraphTypes.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -201,6 +201,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
201
201
|
graphZoneModeConstants: GraphZoneModeConstants;
|
|
202
202
|
graphZonesByType: GraphZonesByType;
|
|
203
203
|
graphZoneOrdering: GraphZoneType[];
|
|
204
|
+
clientHeight: number;
|
|
204
205
|
missingAvatarsTimer?: NodeJS.Timeout;
|
|
205
206
|
pendingMissingAvatars: AvatarUrlByEmail;
|
|
206
207
|
requestedMissingAvatars: AvatarUrlRequestedByEmail;
|
|
@@ -269,6 +270,8 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
269
270
|
getCommitZoneContentWidth(): number;
|
|
270
271
|
getCommitZoneWidth(withoutVerticalScrollWidth?: boolean): number;
|
|
271
272
|
getSingleColumnModeFactor(): number;
|
|
273
|
+
setClientHeight(clientHeight: number): void;
|
|
274
|
+
getClientHeight(): number;
|
|
272
275
|
setScroll(graphZoneType: GraphZoneType, scroll: ScrollParams): void;
|
|
273
276
|
getNonAdjustedScrollLeft(): number;
|
|
274
277
|
setScrollLeft(scrollLeft: number): void;
|
|
@@ -321,6 +324,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
321
324
|
getFilteredRemotesForGraphRow(row: GraphRow, hasIncludes: boolean): Remote[];
|
|
322
325
|
getFilteredTagsForGraphRow(row: GraphRow, hasIncludes: boolean, rowHasVisibleChild: boolean): Tag[];
|
|
323
326
|
loadRowsbySha(graphRows: GraphRow[]): void;
|
|
327
|
+
private getSummaryAndBody;
|
|
324
328
|
updateRowStatsConstraints(): void;
|
|
325
329
|
updateTimelines(): void;
|
|
326
330
|
clearTimelines(): void;
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type { CommitType } from '../../../domain/commit/CommitTypes';
|
|
4
4
|
import type { CssVariables } from '../../../domain/generic/GenericTypes';
|
|
5
5
|
import type { GetExternalIcon, GraphItemContext, GraphZoneModeConstants } from '../../../domain/graph/GraphTypes';
|
|
6
|
+
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
6
7
|
type Props = {
|
|
7
8
|
authorEmail: string;
|
|
8
9
|
authorInitials: string;
|
|
@@ -16,6 +17,7 @@ type Props = {
|
|
|
16
17
|
left: number;
|
|
17
18
|
message: string;
|
|
18
19
|
opacity: number;
|
|
20
|
+
translate: TranslationFn;
|
|
19
21
|
type: CommitType;
|
|
20
22
|
useAuthorInitialsForAvatars: boolean;
|
|
21
23
|
};
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
|
|
4
4
|
import type { CssVariables, Style } from '../../../domain/generic/GenericTypes';
|
|
5
5
|
import type { ColumnColorByColumn, GetExternalIcon, GraphItemContext, GraphZoneModeConstants, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnCommitContextMenu, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, RowEdges } from '../../../domain/graph/GraphTypes';
|
|
6
|
+
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
6
7
|
type Props = {
|
|
7
8
|
authorEmail: string;
|
|
8
9
|
authorName: string;
|
|
@@ -41,6 +42,7 @@ type Props = {
|
|
|
41
42
|
sha: Sha;
|
|
42
43
|
shouldShowRefLine: boolean;
|
|
43
44
|
style: Style;
|
|
45
|
+
translate: TranslationFn;
|
|
44
46
|
type: CommitType;
|
|
45
47
|
useAuthorInitialsForAvatars: boolean;
|
|
46
48
|
zoneContext?: GraphItemContext;
|
|
@@ -4,9 +4,7 @@ import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
|
|
|
4
4
|
import type { Style } from '../../../domain/generic/GenericTypes';
|
|
5
5
|
import type { GraphZoneType } from '../../../domain/graph/GraphConstants';
|
|
6
6
|
import type { GetExternalIcon, GraphItemContext, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnCommitContextMenu, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit } from '../../../domain/graph/GraphTypes';
|
|
7
|
-
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
8
7
|
import type { ChildrenElements } from '../../../domain/ui/UiTypes';
|
|
9
|
-
import type { WorkDirStats } from '../../../domain/workdir/WorkDirTypes';
|
|
10
8
|
type Props = {
|
|
11
9
|
clearCurrentlyHoveredGraphCommit: OnClearCurrentlyHoveredGraphCommit;
|
|
12
10
|
children: ChildrenElements;
|
|
@@ -38,10 +36,8 @@ type Props = {
|
|
|
38
36
|
showTimelineMessage?: boolean;
|
|
39
37
|
style: Style;
|
|
40
38
|
title?: string | null;
|
|
41
|
-
translate: TranslationFn;
|
|
42
39
|
type: CommitType;
|
|
43
40
|
verticalScrollWidth: number;
|
|
44
|
-
workDirStats?: WorkDirStats;
|
|
45
41
|
zoneWidth: number;
|
|
46
42
|
};
|
|
47
43
|
export default class GenericGraphZone extends React.PureComponent<Props> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Alignment } from 'react-virtualized';
|
|
2
|
-
import type { Sha } from '../commit/CommitTypes';
|
|
2
|
+
import type { CommitType, Sha } from '../commit/CommitTypes';
|
|
3
3
|
import type { CssVariables } from '../generic/GenericTypes';
|
|
4
4
|
import type { GetRealKeyForCellFunc } from '../reactvirtualized/ReactVirtualizedHelpers';
|
|
5
5
|
import type { GraphRefType } from '../ref/RefTypes';
|
|
@@ -44,6 +44,8 @@ export declare const makeGetKeyForCell: (rows: ProcessedGraphRow[]) => GetRealKe
|
|
|
44
44
|
export declare function getZoneWidthWithVerticalScrollbar(graphZoneType: GraphZoneType, activeGraphZones: GraphZone[]): number;
|
|
45
45
|
export declare function rowContainsCurrentHeadRef(row?: ProcessedGraphRow | GraphRow): boolean;
|
|
46
46
|
export declare function getHeadRefShaFromGraphRows(graphRows: GraphRow[]): Sha | undefined;
|
|
47
|
+
export declare function isWorkDirNodeType(nodeType: CommitType): boolean;
|
|
48
|
+
export declare function isCommitNodeType(nodeType: CommitType): boolean;
|
|
47
49
|
export declare function workDirStatsHaveChanges(workDirStats?: WorkDirStats): boolean;
|
|
48
50
|
export declare function hasSingleSelectedSha(isSelectedBySha: IsSelectedBySha): boolean;
|
|
49
51
|
export declare function isSingleSelected(isSelectedBySha: IsSelectedBySha, sha: Sha): boolean;
|
|
@@ -295,7 +295,8 @@ export interface ProcessedGraphRow extends GraphRow {
|
|
|
295
295
|
edges: RowEdges;
|
|
296
296
|
edgeColumnMaxes: number;
|
|
297
297
|
hasRefs?: boolean;
|
|
298
|
-
|
|
298
|
+
summary: string;
|
|
299
|
+
body?: string;
|
|
299
300
|
timeLineEntry?: TimelineEntry;
|
|
300
301
|
}
|
|
301
302
|
export type TopAndBottomVisibleRowIndex = {
|