hunkdiff 0.11.1 → 0.12.0-beta.1

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.
@@ -0,0 +1,3 @@
1
+ import type { HunkDiffBodyProps } from "./types";
2
+ /** Render one diff file body without owning navigation, app chrome, or global shortcuts. */
3
+ export declare function HunkDiffBody({ file, layout, width, theme, showLineNumbers, showHunkHeaders, wrapLines, horizontalOffset, highlight, selectedHunkIndex, }: HunkDiffBodyProps): import("react").ReactNode;
@@ -0,0 +1,3 @@
1
+ import type { HunkDiffFileHeaderProps } from "./types";
2
+ /** Render Hunk's compact file header row for custom OpenTUI review layouts. */
3
+ export declare function HunkDiffFileHeader({ file, width, theme, onSelect, }: HunkDiffFileHeaderProps): import("react").ReactNode;
@@ -0,0 +1,3 @@
1
+ import type { HunkDiffViewProps } from "./types";
2
+ /** Render one diff file body with an optional OpenTUI scrollbox wrapper. */
3
+ export declare function HunkDiffView({ diff, scrollable, ...props }: HunkDiffViewProps): import("react").ReactNode;
@@ -0,0 +1,3 @@
1
+ import type { HunkFileNavProps } from "./types";
2
+ /** Render Hunk's file navigation list without global shortcuts, scrolling, borders, or surrounding chrome. */
3
+ export declare function HunkFileNav({ files, selectedFileId, width, theme, onSelectFile, }: HunkFileNavProps): import("react").ReactNode;
@@ -0,0 +1,3 @@
1
+ import type { HunkReviewStreamProps } from "./types";
2
+ /** Render a top-to-bottom multi-file review stream without Hunk's app shell, keybindings, or scrolling. */
3
+ export declare function HunkReviewStream({ files, layout, width, theme, selection, showFileHeaders, showFileSeparators, showLineNumbers, showHunkHeaders, wrapLines, horizontalOffset, highlight, onSelectionChange, }: HunkReviewStreamProps): import("react").ReactNode;
@@ -0,0 +1,9 @@
1
+ export { parseDiffFromFile, parsePatchFiles, type FileDiffMetadata } from "@pierre/diffs";
2
+ export { HUNK_DIFF_THEME_NAMES, type HunkDiffThemeName } from "./themes";
3
+ export { HunkDiffBody } from "./HunkDiffBody";
4
+ export { HunkDiffFileHeader } from "./HunkDiffFileHeader";
5
+ export { HunkDiffView } from "./HunkDiffView";
6
+ export { HunkFileNav } from "./HunkFileNav";
7
+ export { HunkReviewStream } from "./HunkReviewStream";
8
+ export { countHunkDiffStats, createHunkDiffFile, createHunkDiffFilesFromPatch } from "./model";
9
+ export type { HunkDiffBodyProps, HunkDiffFile, HunkDiffFileHeaderProps, HunkDiffFileInput, HunkDiffLayout, HunkDiffSelection, HunkDiffStats, HunkDiffViewProps, HunkFileNavProps, HunkReviewStreamProps, } from "./types";