@gitkraken/gitkraken-components 10.1.11 → 10.1.13
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 +5 -1
- package/dist/components/graph/GraphHeaderRow.d.ts +4 -1
- package/dist/components/graph/common/DraggableGraphHeader.d.ts +4 -1
- package/dist/components/graph/refzone/RefNode.d.ts +1 -0
- package/dist/components/graph/refzone/RefNodes.d.ts +2 -1
- package/dist/components/graph/refzone/RefZone.d.ts +1 -0
- package/dist/components/graph/rowRenderers/RefZoneRow.d.ts +1 -0
- package/dist/domain/graph/GraphTypes.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -1
|
@@ -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, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnSettingsClick, OnToggleRefNodesShown, OnWipMessageBlur, OnWipMessageFocus, 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, OnFilterColumnClick, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnScrollForZone, OnSettingsClick, OnToggleRefNodesShown, OnWipMessageBlur, OnWipMessageFocus, 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, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
|
|
12
12
|
import type { WorkDirStats } from '../../domain/workdir/WorkDirTypes';
|
|
@@ -43,6 +43,7 @@ export interface StateProps {
|
|
|
43
43
|
cssVariables?: CssVariables;
|
|
44
44
|
contexts?: GraphContexts | null;
|
|
45
45
|
dimMergeCommits?: boolean;
|
|
46
|
+
enableShowHideRefsOptions?: boolean;
|
|
46
47
|
downstreamsByUpstream?: DownstreamsByUpstream;
|
|
47
48
|
highlightRowsOnRefHover?: boolean;
|
|
48
49
|
isContainerWindowFocused?: boolean;
|
|
@@ -92,6 +93,7 @@ export interface DispatchProps {
|
|
|
92
93
|
onGraphRefNodeUnhovered?: OnGraphRefNodeUnhovered;
|
|
93
94
|
onBlurWipNodeInput?: OnWipMessageBlur;
|
|
94
95
|
onGraphColumnsReOrdered?: OnGraphColumnsReOrdered;
|
|
96
|
+
onFilterColumnClick: OnFilterColumnClick;
|
|
95
97
|
onColumnResized?: OnGraphColumnResized;
|
|
96
98
|
onFocusWipNodeInput?: OnWipMessageFocus;
|
|
97
99
|
onMessageChange?: OnCommitMessageChange;
|
|
@@ -122,6 +124,7 @@ type ComponentState = {
|
|
|
122
124
|
currentlyHoveredCommitSha?: Sha;
|
|
123
125
|
dimMergeCommits: boolean;
|
|
124
126
|
dimRowsOfSelectedCommit: boolean;
|
|
127
|
+
enableShowHideRefsOptions: boolean;
|
|
125
128
|
highlightRowsOnRefHover: boolean;
|
|
126
129
|
showGhostRefsOnRowHover: boolean;
|
|
127
130
|
showRemoteNamesOnRefs: boolean;
|
|
@@ -208,6 +211,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
208
211
|
onBlurWipNodeInput: OnWipMessageBlur;
|
|
209
212
|
onDoubleClickRef: OnDoubleClickRef;
|
|
210
213
|
onFocusWipNodeInput: OnWipMessageFocus;
|
|
214
|
+
onFilterColumnClick: OnFilterColumnClick;
|
|
211
215
|
onCurrentlyHoveredGraphCommit: OnCurrentlyHoveredGraphCommit;
|
|
212
216
|
onClearCurrentlyHoveredGraphCommit: OnClearCurrentlyHoveredGraphCommit;
|
|
213
217
|
onGraphColumnReOrdered: OnGraphColumnReOrdered;
|
|
@@ -1,19 +1,22 @@
|
|
|
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, OnSettingsClick, OnToggleRefNodesShown } from '../../domain/graph/GraphTypes';
|
|
4
|
+
import type { ExcludeRefsById, GetExternalIcon, GraphColumnsSettings, GraphItemContext, IncludeOnlyRefsById, OnFilterColumnClick, 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
|
+
columnsSettings: GraphColumnsSettings;
|
|
9
10
|
dragAppendToContainer?: Element | undefined;
|
|
10
11
|
enableResizer?: boolean;
|
|
12
|
+
enableShowHideRefsOptions: boolean;
|
|
11
13
|
getExternalIcon: GetExternalIcon;
|
|
12
14
|
excludeRefsById: ExcludeRefsById;
|
|
13
15
|
headerContext?: GraphItemContext;
|
|
14
16
|
includeOnlyRefsById: IncludeOnlyRefsById;
|
|
15
17
|
rowsStatsLoading: boolean;
|
|
16
18
|
onColumnReOrdered?: OnGraphColumnReOrdered;
|
|
19
|
+
onFilterColumnClick: OnFilterColumnClick;
|
|
17
20
|
onPopupGraphHeaderContextMenu?: OnPopupGraphHeaderContextMenu;
|
|
18
21
|
onGraphZoneResize?: OnGraphZoneResize;
|
|
19
22
|
onGraphZoneResizeEnd?: OnGraphZoneResizeEnd;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { GraphZone, GraphZoneType } from '../../../domain/graph/GraphConstants';
|
|
4
|
-
import type { ExcludeRefsById, GetExternalIcon, GraphRefOptData, IncludeOnlyRefsById, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnGraphZoneResizeStart, OnToggleRefNodesShown } from '../../../domain/graph/GraphTypes';
|
|
4
|
+
import type { ExcludeRefsById, GetExternalIcon, GraphColumnSetting, GraphRefOptData, IncludeOnlyRefsById, OnFilterColumnClick, OnGraphZoneResize, OnGraphZoneResizeEnd, OnGraphZoneResizeFromPropChange, OnGraphZoneResizeStart, OnToggleRefNodesShown } from '../../../domain/graph/GraphTypes';
|
|
5
5
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
6
6
|
import type { OnClick, OnMouseEnter, OnMouseLeave } from '../../../domain/ui/UiTypes';
|
|
7
7
|
type GraphHeaderProps = {
|
|
8
|
+
columnSetting: GraphColumnSetting;
|
|
8
9
|
enableResizer?: boolean;
|
|
10
|
+
enableShowHideRefsOptions: boolean;
|
|
9
11
|
getExternalIcon: GetExternalIcon;
|
|
10
12
|
graphWidth: number;
|
|
11
13
|
graphHeight: number;
|
|
@@ -18,6 +20,7 @@ type GraphHeaderProps = {
|
|
|
18
20
|
isDroppable: boolean;
|
|
19
21
|
rowsStatsLoading: boolean;
|
|
20
22
|
repoPath: string;
|
|
23
|
+
onFilterColumnClick: OnFilterColumnClick;
|
|
21
24
|
onHover?: OnMouseEnter;
|
|
22
25
|
onResize?: OnGraphZoneResize;
|
|
23
26
|
onResizeEnd?: OnGraphZoneResizeEnd;
|
|
@@ -5,6 +5,7 @@ import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, GraphRef
|
|
|
5
5
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
6
6
|
import type { OnClick, OnContextMenu, OnDoubleClick } from '../../../domain/ui/UiTypes';
|
|
7
7
|
type RefNodeProps = {
|
|
8
|
+
enableShowHideRefsOptions: boolean;
|
|
8
9
|
getExternalIcon: GetExternalIcon;
|
|
9
10
|
groupIsHovered: boolean;
|
|
10
11
|
hasActive: boolean;
|
|
@@ -7,6 +7,7 @@ type RefNodesProps = {
|
|
|
7
7
|
enabledRefMetadataTypes: RefMetadataType[];
|
|
8
8
|
column: number;
|
|
9
9
|
context: GraphItemContext | null;
|
|
10
|
+
enableShowHideRefsOptions: boolean;
|
|
10
11
|
getExternalIcon: GetExternalIcon;
|
|
11
12
|
getTargetRef: RefTargetFunc;
|
|
12
13
|
hasActive: boolean;
|
|
@@ -36,5 +37,5 @@ type RefNodesProps = {
|
|
|
36
37
|
translate: TranslationFn;
|
|
37
38
|
type: CommitType;
|
|
38
39
|
};
|
|
39
|
-
declare function RefNodes({ enabledRefMetadataTypes, column, context, getTargetRef, hasActive, hasRefs, getExternalIcon, includeOnlyRefsById, includeOnlyRemotesByName, isGhostRef, isHovered, isInUnsupportedRebase, numGraphColumns, onMissingRefMetadata, refGroupContexts, refGroupsByName, refMetadata, refNodeHovered, sha, showContextMenuForGroupedRef, onClickRef, onDoubleClickRef, onToggleRefNodesShown, onRefBeginDrag, onRefCanDrag, onRefCanDrop, onRefDragEnter, onRefDragLeave, onRefDrop, onRefEndDrag, translate, type, }: RefNodesProps): ReactElement<'span' | 'div'>;
|
|
40
|
+
declare function RefNodes({ enabledRefMetadataTypes, column, context, enableShowHideRefsOptions, getTargetRef, hasActive, hasRefs, getExternalIcon, includeOnlyRefsById, includeOnlyRemotesByName, isGhostRef, isHovered, isInUnsupportedRebase, numGraphColumns, onMissingRefMetadata, refGroupContexts, refGroupsByName, refMetadata, refNodeHovered, sha, showContextMenuForGroupedRef, onClickRef, onDoubleClickRef, onToggleRefNodesShown, onRefBeginDrag, onRefCanDrag, onRefCanDrop, onRefDragEnter, onRefDragLeave, onRefDrop, onRefEndDrag, translate, type, }: RefNodesProps): ReactElement<'span' | 'div'>;
|
|
40
41
|
export default RefNodes;
|
|
@@ -316,6 +316,8 @@ export type GraphZonesByType = {
|
|
|
316
316
|
};
|
|
317
317
|
export type GraphColumnSetting = {
|
|
318
318
|
width: number;
|
|
319
|
+
isFilterable?: boolean;
|
|
320
|
+
isFilterActive?: boolean;
|
|
319
321
|
isHidden: boolean;
|
|
320
322
|
mode?: string;
|
|
321
323
|
order?: number;
|
|
@@ -410,3 +412,4 @@ export type OnPopupGraphHeaderContextMenu = (event: React.MouseEvent<any>, width
|
|
|
410
412
|
export type OnSettingsClick = (event: React.MouseEvent<any>, width: number) => void;
|
|
411
413
|
export type OnWipMessageBlur = (event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
412
414
|
export type OnWipMessageFocus = OnFocus;
|
|
415
|
+
export type OnFilterColumnClick = (event: React.MouseEvent<any>, graphZoneType: GraphZoneType) => void;
|