@gitkraken/gitkraken-components 11.0.0 → 11.0.2
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ReactElement
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { OverlayTriggerProps } from 'react-bootstrap';
|
|
4
3
|
import type { CssVariables, Style } from '../../../domain/generic/GenericTypes';
|
|
5
4
|
import type { GraphItemContext } from '../../../domain/graph/GraphTypes';
|
|
6
5
|
import type { ComponentTooltip } from '../../../domain/ui/UiTypes';
|
|
@@ -25,16 +24,10 @@ type Props = {
|
|
|
25
24
|
type AvatarState = {
|
|
26
25
|
tooltipText?: string;
|
|
27
26
|
};
|
|
28
|
-
interface OverlayTriggerExt extends React.FC<OverlayTriggerProps> {
|
|
29
|
-
show(): void;
|
|
30
|
-
}
|
|
31
27
|
export default class GraphAvatar extends React.Component<Props, AvatarState> {
|
|
32
|
-
overlayTriggerRef?: OverlayTriggerExt | null;
|
|
33
28
|
constructor(props: Props);
|
|
34
|
-
componentDidUpdate(prevProps: Props, prevState: AvatarState): void;
|
|
35
29
|
getDefaultAvatar: (height: number, width: number, top: number) => ReactElement<'div'>;
|
|
36
30
|
ensureTooltipText: () => void;
|
|
37
|
-
setOverlayTriggerRef: RefCallback<OverlayTriggerExt>;
|
|
38
31
|
getAvatarClassName(): string;
|
|
39
32
|
render(): ReactElement<any>;
|
|
40
33
|
}
|
|
@@ -5,7 +5,7 @@ import type { GetExternalIcon, GetMissingRefMetadata, GraphItemContext, GraphRef
|
|
|
5
5
|
import type { TranslationFn } from '../../../domain/language/LanguageTypes';
|
|
6
6
|
import type { RefIconsPosition } from '../../../domain/ref/RefTypes';
|
|
7
7
|
import type { OnClick, OnContextMenu, OnDoubleClick } from '../../../domain/ui/UiTypes';
|
|
8
|
-
type RefNodeProps = {
|
|
8
|
+
export type RefNodeProps = {
|
|
9
9
|
enableShowHideRefsOptions: boolean;
|
|
10
10
|
getExternalIcon: GetExternalIcon;
|
|
11
11
|
groupIsHovered: boolean;
|
|
@@ -15,6 +15,7 @@ type RefNodeProps = {
|
|
|
15
15
|
isGhostRef: boolean;
|
|
16
16
|
isInUnsupportedRebase: boolean;
|
|
17
17
|
isRefGroupIncluded: boolean;
|
|
18
|
+
key?: string;
|
|
18
19
|
onClick: OnClickRef;
|
|
19
20
|
onContextMenu: OnRefZoneContextMenu;
|
|
20
21
|
onDoubleClick: OnDoubleClickRef;
|
|
@@ -53,4 +54,3 @@ export default class RefNode extends React.PureComponent<RefNodeProps> {
|
|
|
53
54
|
onDoubleClickMetadata: OnDoubleClickRefMetadata;
|
|
54
55
|
render(): ReactElement<any | 'span'>;
|
|
55
56
|
}
|
|
56
|
-
export {};
|