@gitkraken/gitkraken-components 13.0.0-vnext.30 → 13.0.0-vnext.31

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.
@@ -39,6 +39,14 @@ export interface StateProps {
39
39
  contexts?: GraphContexts | null;
40
40
  createRefFormData?: CreateRefFormData | null;
41
41
  dimMergeCommits?: boolean;
42
+ /**
43
+ * Renders the graph as if every row's first parent is its sole parent — the same
44
+ * topology as `git log --first-parent --all`. Set this instead of filtering
45
+ * `--first-parent` upstream so toggling stays a re-process of the cached `graphRows`
46
+ * rather than a re-query. Composes with `scope`: scope walks honor first-parent
47
+ * ordering when this is set.
48
+ */
49
+ onlyFirstParent?: boolean;
42
50
  enableShowHideRefsOptions?: boolean;
43
51
  downstreamsByUpstream?: DownstreamsByUpstream;
44
52
  formatRefShorthand?: FormatRefShorthand;
@@ -186,6 +194,7 @@ type ComponentState = {
186
194
  cssVariablesWithDefaults: CssVariables;
187
195
  currentlyHoveredCommitSha?: Sha;
188
196
  dimMergeCommits: boolean;
197
+ onlyFirstParent: boolean;
189
198
  dimRowsOfSelectedCommit: boolean;
190
199
  enableShowHideRefsOptions: boolean;
191
200
  highlightRowsOnRefHover: boolean;
@@ -13,7 +13,7 @@ export type CachedRowVisibilityState = {
13
13
  hasBaseFilteredTags: boolean;
14
14
  hasFilteredBranches: boolean;
15
15
  };
16
- export declare function getVisibleRowShasWithoutStashAnchoring(graphRows: GraphRow[], cachedRowVisibilityByIndex: CachedRowVisibilityState[], tagsRequireBranchOrVisibleChild: boolean): Set<Sha>;
16
+ export declare function getVisibleRowShasWithoutStashAnchoring(graphRows: GraphRow[], cachedRowVisibilityByIndex: CachedRowVisibilityState[], tagsRequireBranchOrVisibleChild: boolean, onlyFirstParent?: boolean): Set<Sha>;
17
17
  export declare const debounceFrame: (func: DebouncableFn) => DebouncedFn;
18
18
  export type ThrottleableFn = (...args: any) => void;
19
19
  export type ThrottledFn = (...args: any) => void;
@@ -1,5 +1,5 @@
1
1
  import type { GraphRow, GraphScope, ScopeVisibility } from './GraphTypes';
2
- export declare function computeScopeVisibility(rows: GraphRow[], scope: GraphScope): ScopeVisibility;
2
+ export declare function computeScopeVisibility(rows: GraphRow[], scope: GraphScope, onlyFirstParent?: boolean): ScopeVisibility;
3
3
  /**
4
4
  * Returns true when a WIP row should be hidden under an active scope.
5
5
  *