@gitkraken/gitkraken-components 10.1.10 → 10.1.12
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 +10 -8
- package/dist/components/graph/GraphHeaderRow.d.ts +1 -0
- package/dist/components/graph/common/DraggableGraphHeader.d.ts +1 -0
- package/dist/components/graph/messagezone/WorkDirMessageInput.d.ts +43 -0
- 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/CommitMessageZoneRow.d.ts +4 -5
- package/dist/components/graph/rowRenderers/RefZoneRow.d.ts +1 -0
- package/dist/domain/graph/GraphTypes.d.ts +3 -1
- package/dist/domain/ui/UiTypes.d.ts +0 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -6,9 +6,9 @@ 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, 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, 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
|
-
import type { OnBlur,
|
|
11
|
+
import type { OnBlur, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
|
|
12
12
|
import type { WorkDirStats } from '../../domain/workdir/WorkDirTypes';
|
|
13
13
|
type OnClickGraphRow = (event: React.MouseEvent<any>, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
|
|
14
14
|
type OnDoubleClickGraphRow = (event: React.MouseEvent<any>, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
|
|
@@ -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;
|
|
@@ -71,6 +72,7 @@ export interface StateProps {
|
|
|
71
72
|
useAuthorInitialsForAvatars: boolean;
|
|
72
73
|
rowsStats?: Record<string, RowStats>;
|
|
73
74
|
rowsStatsLoading?: boolean;
|
|
75
|
+
wipMessageEditable?: boolean;
|
|
74
76
|
workDirStats?: WorkDirStats;
|
|
75
77
|
}
|
|
76
78
|
export interface DispatchProps {
|
|
@@ -89,10 +91,10 @@ export interface DispatchProps {
|
|
|
89
91
|
onRowContextMenu?: OnRowContextMenu;
|
|
90
92
|
onGraphRefNodeHovered?: OnGraphRefNodeHovered;
|
|
91
93
|
onGraphRefNodeUnhovered?: OnGraphRefNodeUnhovered;
|
|
92
|
-
onBlurWipNodeInput?:
|
|
94
|
+
onBlurWipNodeInput?: OnWipMessageBlur;
|
|
93
95
|
onGraphColumnsReOrdered?: OnGraphColumnsReOrdered;
|
|
94
96
|
onColumnResized?: OnGraphColumnResized;
|
|
95
|
-
onFocusWipNodeInput?:
|
|
97
|
+
onFocusWipNodeInput?: OnWipMessageFocus;
|
|
96
98
|
onMessageChange?: OnCommitMessageChange;
|
|
97
99
|
onPopupGraphHeaderContextMenu?: OnPopupGraphHeaderContextMenu;
|
|
98
100
|
onClickGraphRef?: OnClickGraphRef;
|
|
@@ -103,7 +105,6 @@ export interface DispatchProps {
|
|
|
103
105
|
onScrollForZone?: OnGraphScrollForZone;
|
|
104
106
|
onScrollToRowCausedUpdateForRefZone?: OnGraphScrollForZone;
|
|
105
107
|
onShowMoreCommits?: OnShowMoreCommits;
|
|
106
|
-
onWipNodeInputWillUnmount?: OnComponentWillUnmount;
|
|
107
108
|
onGraphResized?: OnGraphResized;
|
|
108
109
|
onGraphVisibleRowsChanged?: OnGraphVisibleRowsChanged;
|
|
109
110
|
onGraphMouseEnter?: OnGraphMouseEnter;
|
|
@@ -122,6 +123,7 @@ type ComponentState = {
|
|
|
122
123
|
currentlyHoveredCommitSha?: Sha;
|
|
123
124
|
dimMergeCommits: boolean;
|
|
124
125
|
dimRowsOfSelectedCommit: boolean;
|
|
126
|
+
enableShowHideRefsOptions: boolean;
|
|
125
127
|
highlightRowsOnRefHover: boolean;
|
|
126
128
|
showGhostRefsOnRowHover: boolean;
|
|
127
129
|
showRemoteNamesOnRefs: boolean;
|
|
@@ -136,6 +138,7 @@ type ComponentState = {
|
|
|
136
138
|
isContainerWindowFocused: boolean;
|
|
137
139
|
isLoadingRows: boolean;
|
|
138
140
|
numGraphColumns: number;
|
|
141
|
+
pendingCommitMessageSummary: string;
|
|
139
142
|
processedRows: ProcessedGraphRow[];
|
|
140
143
|
refMetadataById?: RefMetadataById | null;
|
|
141
144
|
rowsStats?: Record<string, RowStats>;
|
|
@@ -204,9 +207,9 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
204
207
|
componentWillReceiveProps(nextProps: Props): void;
|
|
205
208
|
componentWillUnmount(): void;
|
|
206
209
|
onGraphVisibleRowsUpdatedThrottled: ThrottledFn;
|
|
207
|
-
onBlurWipNodeInput:
|
|
210
|
+
onBlurWipNodeInput: OnWipMessageBlur;
|
|
208
211
|
onDoubleClickRef: OnDoubleClickRef;
|
|
209
|
-
onFocusWipNodeInput:
|
|
212
|
+
onFocusWipNodeInput: OnWipMessageFocus;
|
|
210
213
|
onCurrentlyHoveredGraphCommit: OnCurrentlyHoveredGraphCommit;
|
|
211
214
|
onClearCurrentlyHoveredGraphCommit: OnClearCurrentlyHoveredGraphCommit;
|
|
212
215
|
onGraphColumnReOrdered: OnGraphColumnReOrdered;
|
|
@@ -238,7 +241,6 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
|
|
|
238
241
|
onScrollToRowCausedUpdateForRefZone: OnScrollForZone;
|
|
239
242
|
onCommitContextMenu: OnCommitContextMenu;
|
|
240
243
|
onRefContextMenu: OnRefZoneContextMenu;
|
|
241
|
-
onWipNodeInputWillUnmount: OnComponentWillUnmount;
|
|
242
244
|
selectCommits(shas: Sha[], includeToPrevSel: boolean, isAutoOrKeyScroll: boolean): void;
|
|
243
245
|
getCommitZoneContentWidthBetweenGutters(): number;
|
|
244
246
|
getSelectedShas(): Sha[];
|
|
@@ -8,6 +8,7 @@ import type { DndIsDraggable, DndIsDroppable, DndOnDrop } from '../dnd/DndContai
|
|
|
8
8
|
type Props = {
|
|
9
9
|
dragAppendToContainer?: Element | undefined;
|
|
10
10
|
enableResizer?: boolean;
|
|
11
|
+
enableShowHideRefsOptions: boolean;
|
|
11
12
|
getExternalIcon: GetExternalIcon;
|
|
12
13
|
excludeRefsById: ExcludeRefsById;
|
|
13
14
|
headerContext?: GraphItemContext;
|
|
@@ -6,6 +6,7 @@ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
|
6
6
|
import type { OnClick, OnMouseEnter, OnMouseLeave } from '../../../domain/ui/UiTypes';
|
|
7
7
|
type GraphHeaderProps = {
|
|
8
8
|
enableResizer?: boolean;
|
|
9
|
+
enableShowHideRefsOptions: boolean;
|
|
9
10
|
getExternalIcon: GetExternalIcon;
|
|
10
11
|
graphWidth: number;
|
|
11
12
|
graphHeight: number;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { Sha } from '../../../domain/commit/CommitTypes';
|
|
4
|
+
import type { Style } from '../../../domain/generic/GenericTypes';
|
|
5
|
+
import type { GraphZoneType } from '../../../domain/graph/GraphConstants';
|
|
6
|
+
import type { GetExternalIcon, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnWipMessageBlur, OnWipMessageFocus } from '../../../domain/graph/GraphTypes';
|
|
7
|
+
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
8
|
+
import type { WorkDirStats } from '../../../domain/workdir/WorkDirTypes';
|
|
9
|
+
type WorkDirMessageInputDefaultProps = {
|
|
10
|
+
style: Style;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
type WorkDirMessageInputProps = {
|
|
14
|
+
clearCurrentlyHoveredGraphCommit: OnClearCurrentlyHoveredGraphCommit;
|
|
15
|
+
currentlyHoveredCommitSha: Sha | null;
|
|
16
|
+
getExternalIcon: GetExternalIcon;
|
|
17
|
+
graphZoneType: GraphZoneType;
|
|
18
|
+
isCommitting: boolean;
|
|
19
|
+
isHovering: boolean;
|
|
20
|
+
isSelected: boolean;
|
|
21
|
+
onBlur: OnWipMessageBlur;
|
|
22
|
+
onClickCommit: OnClickCommit;
|
|
23
|
+
onContextMenu: OnCommitContextMenu;
|
|
24
|
+
onFocus: OnWipMessageFocus;
|
|
25
|
+
onMessageChange: OnCommitMessageChange;
|
|
26
|
+
setAsCurrentlyHoveredGraphCommit: OnCurrentlyHoveredGraphCommit;
|
|
27
|
+
sha: Sha;
|
|
28
|
+
style: Style;
|
|
29
|
+
translate: TranslationFn;
|
|
30
|
+
value: string;
|
|
31
|
+
workDirStats: WorkDirStats;
|
|
32
|
+
};
|
|
33
|
+
export default class WorkDirMessageInput extends React.Component<WorkDirMessageInputProps> {
|
|
34
|
+
textWidthRef: React.RefObject<any>;
|
|
35
|
+
wrapperRef: React.RefObject<any>;
|
|
36
|
+
static defaultProps: WorkDirMessageInputDefaultProps;
|
|
37
|
+
componentDidMount(): void;
|
|
38
|
+
componentDidUpdate(): void;
|
|
39
|
+
componentWillUnmount(): void;
|
|
40
|
+
onWipKeyDown(event: Event): void;
|
|
41
|
+
render(): ReactElement<'div'>;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -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;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { GridCellRenderer } from 'react-virtualized';
|
|
2
|
-
import type { CommonGraphRowDispatchProps, CommonGraphRowProps, OnCommitMessageChange } from '../../../domain/graph/GraphTypes';
|
|
2
|
+
import type { CommonGraphRowDispatchProps, CommonGraphRowProps, OnCommitMessageChange, OnWipMessageBlur, OnWipMessageFocus } from '../../../domain/graph/GraphTypes';
|
|
3
3
|
import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
|
|
4
|
-
import type { OnBlur, OnComponentWillUnmount, OnFocus } from '../../../domain/ui/UiTypes';
|
|
5
4
|
import type { WorkDirStats } from '../../../domain/workdir/WorkDirTypes';
|
|
6
5
|
interface StateProps {
|
|
7
6
|
isCommitting: boolean;
|
|
8
7
|
pendingCommitMessageSummary: string;
|
|
9
8
|
workDirStats?: WorkDirStats;
|
|
9
|
+
wipMessageEditable: boolean;
|
|
10
10
|
}
|
|
11
11
|
interface DispatchProps {
|
|
12
|
-
onBlurWipNodeInput:
|
|
13
|
-
|
|
14
|
-
onFocusWipNodeInput: OnFocus;
|
|
12
|
+
onBlurWipNodeInput: OnWipMessageBlur;
|
|
13
|
+
onFocusWipNodeInput: OnWipMessageFocus;
|
|
15
14
|
onMessageChange: OnCommitMessageChange;
|
|
16
15
|
}
|
|
17
16
|
interface Props extends CommonGraphRowProps, CommonGraphRowDispatchProps, StateProps, DispatchProps {
|
|
@@ -6,7 +6,7 @@ import type { CssVariables } from '../generic/GenericTypes';
|
|
|
6
6
|
import type { HostingServiceType } from '../hostingservice/HostingServiceTypes';
|
|
7
7
|
import type { TranslationFn } from '../language/LanguageTypes';
|
|
8
8
|
import type { GraphRefType } from '../ref/RefTypes';
|
|
9
|
-
import type { OnResizeFromPropChangeParams, OnResizeParams } from '../ui/UiTypes';
|
|
9
|
+
import type { OnFocus, OnResizeFromPropChangeParams, OnResizeParams } from '../ui/UiTypes';
|
|
10
10
|
import type { GraphMarkerType, GraphZone, GraphZoneType, TimelineEntry, TimelineMsgRowRenderIdType } from './GraphConstants';
|
|
11
11
|
export type RowRenderType = GraphZoneType | TimelineMsgRowRenderIdType;
|
|
12
12
|
export type RowRenderersByIds = {
|
|
@@ -408,3 +408,5 @@ export type OnGraphZoneResizeStart = (graphZone: GraphZone, dimensions: OnResize
|
|
|
408
408
|
export type OnGraphZoneResizeFromPropChange = (graphZone: GraphZone, dimensions: OnResizeFromPropChangeParams) => void;
|
|
409
409
|
export type OnPopupGraphHeaderContextMenu = (event: React.MouseEvent<any>, width: number) => void;
|
|
410
410
|
export type OnSettingsClick = (event: React.MouseEvent<any>, width: number) => void;
|
|
411
|
+
export type OnWipMessageBlur = (event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
412
|
+
export type OnWipMessageFocus = OnFocus;
|
|
@@ -21,7 +21,6 @@ export type OnFocus = (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
|
21
21
|
export type OnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
22
22
|
export type OnKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
23
23
|
export type OnKeyUp = (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
24
|
-
export type OnComponentWillUnmount = () => void;
|
|
25
24
|
export type OnResize = (dimensions: OnResizeParams) => void;
|
|
26
25
|
export type OnResizeEnd = (dimensions: OnResizeParams) => void;
|
|
27
26
|
export type OnResizeFromPropChange = (dimensions: OnResizeFromPropChangeParams) => void;
|