@gitkraken/gitkraken-components 10.1.14 → 10.1.16

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.
@@ -6,8 +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, 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';
9
+ import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, FormatRefShorthand, GetExternalIcon, GetMissingAvatar, GetMissingRefMetadata, GraphColumnSetting, GraphColumnsSettings, GraphContexts, GraphMarkerColors, GraphMarkerRowIndices, GraphPlatform, GraphRefGroup, GraphRefOptData, GraphRow, GraphZoneModeConstants, GraphZonesByType, Head, HighlightedShas, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsRefShorthandValid, IsSelectedBySha, NodeOffsetByColumn, NodeOpacityByColumn, OnClearCurrentlyHoveredGraphCommit, OnClickCommit, OnClickRef, OnCommitContextMenu, OnCommitMessageChange, OnCurrentlyHoveredGraphCommit, OnDoubleClickCommit, OnDoubleClickRef, OnFilterColumnClick, OnFormatCommitDateTime, OnGraphColumnReOrdered, OnGraphMouseEnter, OnGraphMouseLeave, OnGraphResized, OnGraphVisibleRowsChanged, OnGraphZoneResize, OnGraphZoneResizeEnd, OnPopupGraphHeaderContextMenu, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefCreate, OnRefCreateCancel, OnRefCreateContextMenu, 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 { CreateRefFormData } from '../../domain/ref/RefTypes';
11
12
  import type { OnBlur, OnKeyDown, OnKeyUp, OnMouseDown, OnResizeParams } from '../../domain/ui/UiTypes';
12
13
  import type { WorkDirStats } from '../../domain/workdir/WorkDirTypes';
13
14
  type OnClickGraphRow = (event: React.MouseEvent<any>, graphZoneType: GraphZoneType, graphRow: GraphRow) => void;
@@ -42,11 +43,14 @@ export interface StateProps {
42
43
  avatarUrlByEmail?: AvatarUrlByEmail;
43
44
  cssVariables?: CssVariables;
44
45
  contexts?: GraphContexts | null;
46
+ createRefFormData?: CreateRefFormData | null;
45
47
  dimMergeCommits?: boolean;
46
48
  enableShowHideRefsOptions?: boolean;
47
49
  downstreamsByUpstream?: DownstreamsByUpstream;
50
+ formatRefShorthand?: FormatRefShorthand;
48
51
  highlightRowsOnRefHover?: boolean;
49
52
  isContainerWindowFocused?: boolean;
53
+ isRefShorthandValid?: IsRefShorthandValid;
50
54
  showGhostRefsOnRowHover?: boolean;
51
55
  showRemoteNamesOnRefs?: boolean;
52
56
  enabledRefMetadataTypes?: RefMetadataType[];
@@ -83,6 +87,9 @@ export interface DispatchProps {
83
87
  onRefBeginDrag?: OnRefBeginDrag;
84
88
  onRefCanDrag?: OnRefCanDrag;
85
89
  onRefCanDrop?: OnRefCanDrop;
90
+ onRefCreate?: OnRefCreate;
91
+ onRefCreateCancel?: OnRefCreateCancel;
92
+ onRefCreateContextMenu?: OnRefCreateContextMenu;
86
93
  onRefDragEnter?: OnRefDragEnter;
87
94
  onRefDragLeave?: OnRefDragLeave;
88
95
  onRefDrop?: OnRefDrop;
@@ -120,6 +127,7 @@ type ComponentState = {
120
127
  avatarUrlByEmail: AvatarUrlByEmail;
121
128
  columnColorByColumn: ColumnColorByColumn;
122
129
  contexts?: GraphContexts | null;
130
+ createRefFormData?: CreateRefFormData | null;
123
131
  cssVariablesWithDefaults: CssVariables;
124
132
  currentlyHoveredCommitSha?: Sha;
125
133
  dimMergeCommits: boolean;
@@ -193,6 +201,7 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
193
201
  graphZoneModeConstants: GraphZoneModeConstants;
194
202
  graphZonesByType: GraphZonesByType;
195
203
  graphZoneOrdering: GraphZoneType[];
204
+ clientHeight: number;
196
205
  missingAvatarsTimer?: NodeJS.Timeout;
197
206
  pendingMissingAvatars: AvatarUrlByEmail;
198
207
  requestedMissingAvatars: AvatarUrlRequestedByEmail;
@@ -223,6 +232,9 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
223
232
  onRefBeginDrag: OnRefBeginDrag;
224
233
  onRefCanDrag: OnRefCanDrag;
225
234
  onRefCanDrop: OnRefCanDrop;
235
+ onRefCreate: OnRefCreate;
236
+ onRefCreateCancel: OnRefCreateCancel;
237
+ onRefCreateContextMenu: OnRefCreateContextMenu;
226
238
  onRefDragEnter: OnRefDragEnter;
227
239
  onRefDragLeave: OnRefDragLeave;
228
240
  onRefDrop: OnRefDrop;
@@ -258,6 +270,8 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
258
270
  getCommitZoneContentWidth(): number;
259
271
  getCommitZoneWidth(withoutVerticalScrollWidth?: boolean): number;
260
272
  getSingleColumnModeFactor(): number;
273
+ setClientHeight(clientHeight: number): void;
274
+ getClientHeight(): number;
261
275
  setScroll(graphZoneType: GraphZoneType, scroll: ScrollParams): void;
262
276
  getNonAdjustedScrollLeft(): number;
263
277
  setScrollLeft(scrollLeft: number): void;
@@ -295,6 +309,8 @@ declare class GraphContainer extends React.PureComponent<Props, ComponentState>
295
309
  processRows(graphRows?: GraphRow[]): void;
296
310
  getStartingEdgesByColumn(currentRow: ProcessedGraphRow): EdgeByColumn;
297
311
  formatCommitDateTimeCallback: OnFormatCommitDateTime;
312
+ formatRefShorthandCallback: FormatRefShorthand;
313
+ isRefShorthandValidCallback: IsRefShorthandValid;
298
314
  translateCallback: TranslationFn;
299
315
  getIconCallback: GetExternalIcon;
300
316
  onMissingAvatar: GetMissingAvatar;
@@ -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;
@@ -5,7 +5,7 @@ import type { ExcludeRefsById, GetExternalIcon, GraphColumnSetting, GraphRefOptD
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
+ columnSetting?: GraphColumnSetting;
9
9
  enableResizer?: boolean;
10
10
  enableShowHideRefsOptions: boolean;
11
11
  getExternalIcon: GetExternalIcon;
@@ -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> {
@@ -0,0 +1,28 @@
1
+ import type { ReactElement } from 'react';
2
+ import React from 'react';
3
+ import type { Style } from '../../../domain/generic/GenericTypes';
4
+ import type { FormatRefShorthand, IsRefShorthandValid, OnRefCreate, OnRefCreateCancel, OnRefCreateContextMenu } from '../../../domain/graph/GraphTypes';
5
+ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
6
+ import type { CreateRefFormData, RefShorthand } from '../../../domain/ref/RefTypes';
7
+ type CreateRefNodeProps = {
8
+ createRefFormData: CreateRefFormData;
9
+ formatRefShorthand: FormatRefShorthand;
10
+ isRefShorthandValid: IsRefShorthandValid;
11
+ onCancel: OnRefCreateCancel;
12
+ onContextMenu: OnRefCreateContextMenu;
13
+ onRefCreate: OnRefCreate;
14
+ refZoneWidth: number;
15
+ style?: Style | null;
16
+ translate: TranslationFn;
17
+ };
18
+ type CreateRefNodeState = {
19
+ shorthand: RefShorthand;
20
+ };
21
+ declare class CreateRefNode extends React.PureComponent<CreateRefNodeProps, CreateRefNodeState> {
22
+ handleClickOutside(): void;
23
+ constructor(props: CreateRefNodeProps);
24
+ onInputChange(shorthand?: RefShorthand): void;
25
+ render(): ReactElement<'div'>;
26
+ }
27
+ declare const _default: import("react-onclickoutside").WrapperClass<CreateRefNodeProps, typeof CreateRefNode>;
28
+ export default _default;
@@ -1,15 +1,19 @@
1
1
  import type { GridCellRenderer } from 'react-virtualized';
2
2
  import type { Sha } from '../../../domain/commit/CommitTypes';
3
- import type { CommonGraphRowDispatchProps, CommonGraphRowProps, GetMissingRefMetadata, IncludeOnlyRefsById, IncludeOnlyRemotesByName, OnClickRef, OnDoubleClickRef, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnToggleRefNodesShown, RefMetadataById } from '../../../domain/graph/GraphTypes';
3
+ import type { CommonGraphRowDispatchProps, CommonGraphRowProps, FormatRefShorthand, GetMissingRefMetadata, IncludeOnlyRefsById, IncludeOnlyRemotesByName, IsRefShorthandValid, OnClickRef, OnDoubleClickRef, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefCreate, OnRefCreateCancel, OnRefCreateContextMenu, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnToggleRefNodesShown, RefMetadataById } from '../../../domain/graph/GraphTypes';
4
4
  import type { GetRealKeyForCellFunc } from '../../../domain/reactvirtualized/ReactVirtualizedHelpers';
5
+ import type { CreateRefFormData } from '../../../domain/ref/RefTypes';
5
6
  interface OwnProps {
6
7
  height: number;
7
8
  includeOnlyRefsById: IncludeOnlyRefsById;
8
9
  includeOnlyRemotesByName: IncludeOnlyRemotesByName;
9
10
  }
10
11
  interface StateProps {
12
+ createRefFormData?: CreateRefFormData;
13
+ formatRefShorthand: FormatRefShorthand;
11
14
  enableShowHideRefsOptions: boolean;
12
15
  isInUnsupportedRebase: boolean;
16
+ isRefShorthandValid: IsRefShorthandValid;
13
17
  hoveredRefZoneSha?: Sha;
14
18
  refMetadataById?: RefMetadataById | null;
15
19
  shouldShowRefLine: boolean;
@@ -22,6 +26,9 @@ interface DispatchProps {
22
26
  onRefBeginDrag: OnRefBeginDrag;
23
27
  onRefCanDrag: OnRefCanDrag;
24
28
  onRefCanDrop: OnRefCanDrop;
29
+ onRefCreate: OnRefCreate;
30
+ onRefCreateCancel: OnRefCreateCancel;
31
+ onRefCreateContextMenu: OnRefCreateContextMenu;
25
32
  onRefDragEnter: OnRefDragEnter;
26
33
  onRefDragLeave: OnRefDragLeave;
27
34
  onRefDrop: OnRefDrop;
@@ -2,10 +2,12 @@ import type { ReactElement } from 'react';
2
2
  import React from 'react';
3
3
  import type { Style } from '../../../domain/generic/GenericTypes';
4
4
  import type { GetExternalIcon } from '../../../domain/graph/GraphTypes';
5
+ import type { TranslationFn } from '../../../domain/language/LanguageTypes';
5
6
  type Props = {
6
7
  style: Style;
7
8
  fileDiffType: string;
8
9
  getExternalIcon: GetExternalIcon;
10
+ translate: TranslationFn;
9
11
  };
10
12
  declare class FileDiffTypeIcon extends React.Component<Props> {
11
13
  render(): ReactElement<'span'> | null;
@@ -2,4 +2,5 @@ export declare const types: {
2
2
  ADDED: string;
3
3
  DELETED: string;
4
4
  MODIFIED: string;
5
+ RENAMED: string;
5
6
  };
@@ -3,6 +3,7 @@ export type DiffCountStats = {
3
3
  added: number;
4
4
  deleted: number;
5
5
  modified: number;
6
+ renamed?: number;
6
7
  };
7
8
  type DiffTypeKeys = keyof typeof diffTypes;
8
9
  export type DiffType = (typeof diffTypes)[DiffTypeKeys];
@@ -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;
@@ -5,7 +5,7 @@ import type { CommitType, Sha } from '../commit/CommitTypes';
5
5
  import type { CssVariables } from '../generic/GenericTypes';
6
6
  import type { HostingServiceType } from '../hostingservice/HostingServiceTypes';
7
7
  import type { TranslationFn } from '../language/LanguageTypes';
8
- import type { GraphRefType } from '../ref/RefTypes';
8
+ import type { GraphRefType, RefFullName, RefShorthand } from '../ref/RefTypes';
9
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;
@@ -191,7 +191,7 @@ export interface Tag extends Ref {
191
191
  }
192
192
  export interface GraphRef extends Head, Remote, Tag {
193
193
  refType: GraphRefType;
194
- fullName?: string;
194
+ fullName?: RefFullName;
195
195
  }
196
196
  export type RefMetadataById = {
197
197
  [id: string]: RefMetadata | null;
@@ -365,6 +365,8 @@ export type GraphPlatform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'linux' |
365
365
  export type GetExternalIcon = (key: string) => ReactElement<any>;
366
366
  export type GetMissingAvatar = (email: string, sha: string) => void;
367
367
  export type GetMissingRefMetadata = (id: string, types: RefMetadataType[]) => void;
368
+ export type FormatRefShorthand = (shorthand: RefShorthand, sha: Sha, refType: GraphRefType, data?: any | null) => RefShorthand;
369
+ export type IsRefShorthandValid = (shorthand: RefShorthand, sha: Sha, refType: GraphRefType, data?: any | null) => boolean;
368
370
  export type OnHideRefClick = (event: React.MouseEvent<any>, refGroup: GraphRefGroup, sha: Sha) => void;
369
371
  export type OnDoubleClickRef = (event: React.MouseEvent<any>, refGroup: GraphRefGroup, sha: Sha, metadataItem?: RefMetadataItem) => void;
370
372
  export type OnDoubleClickRefMetadata = (event: React.MouseEvent<any>, metadataItem: RefMetadataItem) => void;
@@ -413,3 +415,6 @@ export type OnSettingsClick = (event: React.MouseEvent<any>, width: number) => v
413
415
  export type OnWipMessageBlur = (event?: React.FocusEvent<HTMLInputElement>) => void;
414
416
  export type OnWipMessageFocus = OnFocus;
415
417
  export type OnFilterColumnClick = (event: React.MouseEvent<any>, graphZoneType: GraphZoneType) => void;
418
+ export type OnRefCreate = (shorthand: RefShorthand, sha: Sha, refType: GraphRefType, data?: any | null) => void;
419
+ export type OnRefCreateCancel = (shorthand: RefShorthand, sha: Sha, refType: GraphRefType, data?: any | null) => void;
420
+ export type OnRefCreateContextMenu = (event: React.MouseEvent<any>, shorthand: RefShorthand, sha: Sha, refType: GraphRefType, data?: any | null) => void;
@@ -1,5 +1,3 @@
1
1
  export declare const refTypes: {
2
- HEAD: string;
3
- REMOTE: string;
4
- TAG: string;
2
+ [key: string]: string;
5
3
  };
@@ -1,2 +1,11 @@
1
+ import type { Sha } from '../commit/CommitTypes';
1
2
  import type * as RefConstants from './RefConstants';
2
- export type GraphRefType = typeof RefConstants.refTypes.HEAD | typeof RefConstants.refTypes.REMOTE | typeof RefConstants.refTypes.TAG;
3
+ export type GraphRefType = keyof typeof RefConstants.refTypes;
4
+ export type RefFullName = string;
5
+ export type RefShorthand = string;
6
+ export type CreateRefFormData = {
7
+ sha: Sha;
8
+ shorthand: RefShorthand;
9
+ type: GraphRefType;
10
+ data?: any | null;
11
+ };
@@ -16,12 +16,14 @@ export type OnMouseDown = (event: React.MouseEvent<any>) => void;
16
16
  export type OnWheel = (event: React.MouseEvent<any>) => void;
17
17
  export type OnClick = (event: React.MouseEvent<any>) => void;
18
18
  export type OnDoubleClick = (event: React.MouseEvent<any>) => void;
19
- export type OnBlur = (event: React.FocusEvent<HTMLInputElement>) => void;
20
- export type OnFocus = (event: React.FocusEvent<HTMLInputElement>) => void;
21
- export type OnKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => void;
22
- export type OnKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => void;
23
- export type OnKeyUp = (event: React.KeyboardEvent<HTMLInputElement>) => void;
19
+ export type OnBlur = (event: React.FocusEvent<any>) => void;
20
+ export type OnFocus = (event: React.FocusEvent<any>) => void;
21
+ export type OnKeyDown = (event: React.KeyboardEvent<any>) => void;
22
+ export type OnKeyPress = (event: React.KeyboardEvent<any>) => void;
23
+ export type OnKeyUp = (event: React.KeyboardEvent<any>) => void;
24
24
  export type OnResize = (dimensions: OnResizeParams) => void;
25
25
  export type OnResizeEnd = (dimensions: OnResizeParams) => void;
26
26
  export type OnResizeFromPropChange = (dimensions: OnResizeFromPropChangeParams) => void;
27
27
  export type OnResizeStart = (dimensions: OnResizeParams) => void;
28
+ export type OnCancel = () => void;
29
+ export type OnInputChange = (event: React.KeyboardEvent<any>) => void;
@@ -4,4 +4,5 @@ export type WorkDirStats = {
4
4
  deleted: number;
5
5
  modified: number;
6
6
  context?: GraphItemContext;
7
+ renamed?: number;
7
8
  };