@gitkraken/gitkraken-components 10.2.12 → 10.3.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.
@@ -4,12 +4,13 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
4
4
  This project incorporates components from the projects listed below.
5
5
 
6
6
  1. @axosoft/react-virtualized version 9.22.3-gitkraken.3 (https://github.com/bvaughn/react-virtualized)
7
- 2. classnames version 2.3.2 (https://github.com/JedWatson/classnames)
8
- 3. re-resizable version 6.9.1 (https://github.com/bokuweb/react-resizable-box)
7
+ 2. classnames version 2.5.1 (https://github.com/JedWatson/classnames)
8
+ 3. re-resizable version 6.9.11 (https://github.com/bokuweb/react-resizable-box)
9
9
  4. react-bootstrap version 0.32.4 (https://github.com/react-bootstrap/react-bootstrap)
10
10
  5. react-dom version 16.8.4 (https://github.com/facebook/react)
11
11
  6. react-dragula version 1.1.17 (https://github.com/bevacqua/react-dragula)
12
- 7. react version 16.8.4 (https://github.com/facebook/react)
12
+ 7. react-onclickoutside version 6.13.0 (https://github.com/Pomax/react-onclickoutside)
13
+ 8. react version 16.8.4 (https://github.com/facebook/react)
13
14
 
14
15
  %% @axosoft/react-virtualized NOTICES AND INFORMATION BEGIN HERE
15
16
  =========================================
@@ -173,6 +174,31 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
173
174
  =========================================
174
175
  END OF react-dragula NOTICES AND INFORMATION
175
176
 
177
+ %% react-onclickoutside NOTICES AND INFORMATION BEGIN HERE
178
+ =========================================
179
+ Copyright 2015-2022 Mike "Pomax" Kamermans
180
+
181
+ Permission is hereby granted, free of charge, to any person obtaining a copy
182
+ of this software and associated documentation files (the "Software"), to deal
183
+ in the Software without restriction, including without limitation the rights
184
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
185
+ copies of the Software, and to permit persons to whom the Software is
186
+ furnished to do so, subject to the following conditions:
187
+
188
+ The above copyright notice and this permission notice shall be included in all
189
+ copies or substantial portions of the Software.
190
+
191
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
192
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
193
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
194
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
195
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
196
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
197
+ SOFTWARE.
198
+
199
+ =========================================
200
+ END OF react-onclickoutside NOTICES AND INFORMATION
201
+
176
202
  %% react NOTICES AND INFORMATION BEGIN HERE
177
203
  =========================================
178
204
  MIT License
@@ -4,7 +4,7 @@ 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 { GraphCommitDescDisplayMode, GraphMarkerType, GraphZone, GraphZoneType } from '../../domain/graph/GraphConstants';
7
+ import type { GraphCommitDescDisplayMode, GraphMarkerType, GraphZone, GraphZoneType, ShiftSelectMode } from '../../domain/graph/GraphConstants';
8
8
  import type { ThrottledFn } from '../../domain/graph/GraphHelpers';
9
9
  import type { AbsoluteNodeLeftByColumn, AvatarUrlByEmail, AvatarUrlRequestedByEmail, ChildrenBySha, ColumnColorByColumn, DownstreamsByUpstream, EdgeByColumn, ExcludeByType, ExcludeRefsById, ExcludeRemotesByName, FormatCommitMessage, 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, OnLoadSelectedGraphRow, OnPopupGraphHeaderContextMenu, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefCreate, OnRefCreateCancel, OnRefCreateContextMenu, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefShorthandChange, 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';
@@ -72,6 +72,7 @@ export interface StateProps {
72
72
  isInUnsupportedRebase?: boolean;
73
73
  isLoadingRows?: boolean;
74
74
  pendingCommitMessageSummary?: string;
75
+ shiftSelectMode?: ShiftSelectMode;
75
76
  refMetadataById?: RefMetadataById | null;
76
77
  refIconsPosition?: RefIconsPosition | null;
77
78
  repoPath?: string;
@@ -186,7 +187,8 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
186
187
  private currentSha;
187
188
  isRefContextMenuShown: boolean;
188
189
  isMounted: boolean;
189
- isSelectedBySha: IsSelectedBySha;
190
+ selectedShas: Set<Sha>;
191
+ lastFocusedSha?: Sha;
190
192
  processedGraphRowBySha: ProcessedGraphRowBySha;
191
193
  childrenBySha: ChildrenBySha;
192
194
  scrollToSha?: Sha;
@@ -258,13 +260,16 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
258
260
  onRefDrop: OnRefDrop;
259
261
  onRefEndDrag: OnRefEndDrag;
260
262
  onZoneRowClick(event: React.MouseEvent<any>, graphZoneType: GraphZoneType, sha: Sha): void;
263
+ getShiftSelectRange(currentSha: Sha): Sha[];
261
264
  onClickRef: OnClickRef;
262
265
  onClickCommit: OnClickCommit;
263
266
  onDoubleClickCommit: OnDoubleClickCommit;
264
267
  onWindowKeyUp: OnKeyUp;
265
268
  onWindowBlur: OnBlur;
266
269
  onWindowKeyDown: OnKeyDown;
270
+ onKeyUp: OnKeyUp;
267
271
  onKeyDown: OnKeyDown;
272
+ isNavigationKey(key: string): boolean;
268
273
  loadSelectedGraphRow(sha: Sha): void;
269
274
  onRefNodeHovered: OnRefNodeHovered;
270
275
  onRefNodeUnhovered: OnRefNodeUnhovered;
@@ -154,3 +154,4 @@ export declare enum graphCommitDescDisplayModes {
154
154
  NEVER = "NEVER"
155
155
  }
156
156
  export type GraphCommitDescDisplayMode = graphCommitDescDisplayModes.ALWAYS | graphCommitDescDisplayModes.ON_HOVER | graphCommitDescDisplayModes.NEVER;
157
+ export type ShiftSelectMode = 'simple';
@@ -6,7 +6,7 @@ import type { GraphRefType } from '../ref/RefTypes';
6
6
  import type { WorkDirStats } from '../workdir/WorkDirTypes';
7
7
  import type { GraphMarkerType, GraphZone, GraphZoneType, TimelineEntriesByPeriod } from './GraphConstants';
8
8
  import { GraphColumnMode } from './GraphConstants';
9
- import type { BaseMetadata, GetMissingRefMetadata, GraphColumnWidthConstraints, GraphItemContext, GraphRef, GraphRefGroup, GraphRow, GraphZoneModeConstants, Head, HighlightedShas, IsSelectedBySha, ProcessedGraphRow, ProcessedGraphRowBySha, Ref, RefMetadata, RefMetadataById, RefMetadataType, RowStatsConstraints } from './GraphTypes';
9
+ import type { BaseMetadata, GetMissingRefMetadata, GraphColumnWidthConstraints, GraphItemContext, GraphRef, GraphRefGroup, GraphRow, GraphZoneModeConstants, Head, HighlightedShas, ProcessedGraphRow, ProcessedGraphRowBySha, Ref, RefMetadata, RefMetadataById, RefMetadataType, RowStatsConstraints } from './GraphTypes';
10
10
  export type DebouncableFn = (...args: any) => void;
11
11
  export type DebouncedFn = (...args: any) => void;
12
12
  export declare const debounceFrame: (func: DebouncableFn) => DebouncedFn;
@@ -50,8 +50,8 @@ export declare function getHeadRefShaFromGraphRows(graphRows: GraphRow[]): Sha |
50
50
  export declare function isWorkDirNodeType(nodeType: CommitType): boolean;
51
51
  export declare function isCommitNodeType(nodeType: CommitType): boolean;
52
52
  export declare function workDirStatsHaveChanges(workDirStats?: WorkDirStats): boolean;
53
- export declare function hasSingleSelectedSha(isSelectedBySha: IsSelectedBySha): boolean;
54
- export declare function isSingleSelected(isSelectedBySha: IsSelectedBySha, sha: Sha): boolean;
53
+ export declare function hasSingleSelectedSha(selectedShas: Set<Sha>): boolean;
54
+ export declare function isSingleSelected(selectedShas: Set<Sha>, sha: Sha): boolean;
55
55
  export declare function getScrollToAlignment(rowHeight: number, clientHeight: number, scrollTop: number, scrollToIndex: number): Alignment;
56
56
  export declare function getGraphZoneIconByType(zoneType: GraphZoneType): string;
57
57
  export declare function isHeadActive(head: Head): boolean;
@@ -67,7 +67,7 @@ export interface GraphRowHelperProps {
67
67
  isLoadingRows: boolean;
68
68
  highlightedShas?: HighlightedShas;
69
69
  hoveredRefGroup?: GraphRefGroup;
70
- isSelectedBySha: IsSelectedBySha;
70
+ selectedShas: Set<Sha>;
71
71
  processedRows: ProcessedGraphRow[];
72
72
  processedGraphRowBySha: ProcessedGraphRowBySha;
73
73
  }
@@ -94,3 +94,5 @@ export declare class GraphRowHelper {
94
94
  hasTimeline(rowIndex: number): boolean;
95
95
  rowContainsCurrentHeadRef(row?: ProcessedGraphRow): boolean;
96
96
  }
97
+ export declare function first<T>(source: Iterable<T> | IterableIterator<T>): T | undefined;
98
+ export declare function last<T>(source: Iterable<T>): T | undefined;
@@ -82,7 +82,7 @@ export interface CommonGraphRowProps {
82
82
  height: number;
83
83
  highlightRowsOnRefHover: boolean;
84
84
  isLoadingRows: boolean;
85
- isSelectedBySha: IsSelectedBySha;
85
+ selectedShas: Set<Sha>;
86
86
  showGhostRefsOnRowHover: boolean;
87
87
  showRemoteNamesOnRefs: boolean;
88
88
  getExternalIcon: GetExternalIcon;