@gitkraken/gitkraken-components 13.0.0-vnext.17 → 13.0.0-vnext.19
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 +6 -0
- package/dist/components/graph/GraphHeaderRow.d.ts +4 -0
- package/dist/components/graph/refzone/RefZone.d.ts +3 -1
- package/dist/components/resizable/Resizable.d.ts +1 -5
- package/dist/index.js +7 -7
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -418,6 +418,12 @@ declare class GraphContainer extends React.Component<Props, ComponentState> impl
|
|
|
418
418
|
onGraphContainerBlurred: OnGraphContainerBlurred;
|
|
419
419
|
onGraphContainerMouseEnter: OnGraphMouseEnter;
|
|
420
420
|
onGraphContainerMouseLeave: OnGraphMouseLeave;
|
|
421
|
+
private _headerHoverRestoreTimer?;
|
|
422
|
+
onGraphHeaderMouseDown: () => void;
|
|
423
|
+
onGraphHeaderMouseUp: (event: React.MouseEvent<any>) => void;
|
|
424
|
+
onGraphHeaderWheel: (event: React.WheelEvent<any>) => void;
|
|
425
|
+
onGraphHeaderMouseMove: (event: React.MouseEvent<any>) => void;
|
|
426
|
+
private hoverRowForHeaderEvent;
|
|
421
427
|
onGraphResized: OnGraphResized;
|
|
422
428
|
onGraphVisibleRowsUpdated(): void;
|
|
423
429
|
getCurrentPlatform(): string;
|
|
@@ -29,6 +29,10 @@ type Props = {
|
|
|
29
29
|
translate: TranslationFn;
|
|
30
30
|
width: number;
|
|
31
31
|
height: number;
|
|
32
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
33
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
34
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
35
|
+
onWheel?: React.WheelEventHandler<HTMLDivElement>;
|
|
32
36
|
settingsContext?: GraphItemContext;
|
|
33
37
|
};
|
|
34
38
|
declare class GraphHeaderRow extends React.PureComponent<Props> {
|
|
@@ -2,7 +2,7 @@ import type { ReactElement } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { CommitType, Sha } from '../../../domain/commit/CommitTypes';
|
|
4
4
|
import type { Style } from '../../../domain/generic/GenericTypes';
|
|
5
|
-
import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, GraphRefGroup, IncludeOnlyRefsById, IncludeOnlyRemotesByName, OnClickRef, OnDoubleClickRef, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnToggleRefNodesShown, RefGroupContexts, RefMetadataById, RefMetadataType } from '../../../domain/graph/GraphTypes';
|
|
5
|
+
import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, GraphRefGroup, IncludeOnlyRefsById, IncludeOnlyRemotesByName, OnClearCurrentlyHoveredGraphCommit, OnClickRef, OnDoubleClickRef, OnRefBeginDrag, OnRefCanDrag, OnRefCanDrop, OnRefDragEnter, OnRefDragLeave, OnRefDrop, OnRefEndDrag, OnRefNodeHovered, OnRefNodeUnhovered, OnRefZoneContextMenu, OnRefZoneHovered, OnRefZoneUnhovered, OnToggleRefNodesShown, RefGroupContexts, RefMetadataById, RefMetadataType } from '../../../domain/graph/GraphTypes';
|
|
6
6
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
7
7
|
import type { RefIconsPosition } from '../../../domain/ref/RefTypes';
|
|
8
8
|
type RefZoneDefaultProps = {
|
|
@@ -55,6 +55,8 @@ type RefZoneProps = {
|
|
|
55
55
|
type: CommitType;
|
|
56
56
|
useColumnHeaderIcons: boolean;
|
|
57
57
|
width: number;
|
|
58
|
+
clearCurrentlyHoveredGraphCommit: OnClearCurrentlyHoveredGraphCommit;
|
|
59
|
+
currentlyHoveredCommitSha: Sha | null;
|
|
58
60
|
};
|
|
59
61
|
export default class RefZone extends React.PureComponent<RefZoneProps> {
|
|
60
62
|
popoverTargetRef: React.RefObject<HTMLDivElement>;
|
|
@@ -3,7 +3,7 @@ import type { ReactElement, ReactNode } from 'react';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import type { Style } from '../../domain/generic/GenericTypes';
|
|
5
5
|
import type { TranslationFn } from '../../domain/language/LanguageTypes';
|
|
6
|
-
import type { OnResize, OnResizeEnd, OnResizeFromPropChange, OnResizeStart
|
|
6
|
+
import type { OnResize, OnResizeEnd, OnResizeFromPropChange, OnResizeStart } from '../../domain/ui/UiTypes';
|
|
7
7
|
declare const resizableEdges: {
|
|
8
8
|
bottom: string;
|
|
9
9
|
left: string;
|
|
@@ -60,19 +60,15 @@ interface State extends Dimensions {
|
|
|
60
60
|
initialWidth: number;
|
|
61
61
|
resizing: boolean;
|
|
62
62
|
vertical: boolean;
|
|
63
|
-
isMouseWheeling: boolean;
|
|
64
63
|
}
|
|
65
64
|
export default class Resizable extends React.PureComponent<Props, State> {
|
|
66
65
|
static defaultProps: DefaultProps;
|
|
67
|
-
onWheelTimeOut?: ReturnType<typeof setTimeout>;
|
|
68
|
-
isMouseWheeling: boolean;
|
|
69
66
|
constructor(props: Props);
|
|
70
67
|
static getDerivedStateFromProps(props: Props, state: State): State;
|
|
71
68
|
componentDidUpdate(nextProps: Props): void;
|
|
72
69
|
_onResize: ResizeCallback;
|
|
73
70
|
_onResizeStart: ResizeStartCallback;
|
|
74
71
|
_onResizeEnd: ResizeCallback;
|
|
75
|
-
_onWheel: OnWheel;
|
|
76
72
|
render(): ReactElement<'div'>;
|
|
77
73
|
}
|
|
78
74
|
export {};
|