Skip to content

Commit d9cb1c5

Browse files
cli update
1 parent 72fbee6 commit d9cb1c5

12 files changed

Lines changed: 210 additions & 854 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dist
1212
styles
1313
dist-ssr
1414
*.local
15+
.pnpm-store
1516

1617
.eslintcache
1718

packages/cli/index.d.ts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,16 +1119,13 @@ declare function ReactDiffView<T>(props: DiffViewProps_2<T> & {
11191119
}): JSX.Element;
11201120
export declare const DiffView: typeof ReactDiffView;
11211121
export declare const version: string;
1122-
export type CodeViewProps<T> = {
1122+
export type CodeViewProps = {
11231123
data?: {
11241124
content: string;
11251125
fileName?: string | null;
11261126
fileLang?: DiffHighlighterLang | string | null;
11271127
};
11281128
file?: File$1;
1129-
extendData?: Record<string, {
1130-
data: T;
1131-
}>;
11321129
width?: number;
11331130
codeViewTheme?: "light" | "dark";
11341131
codeViewTabSpace?: boolean;
@@ -1137,32 +1134,28 @@ export type CodeViewProps<T> = {
11371134
codeViewHighlight?: boolean;
11381135
codeViewNoBG?: boolean;
11391136
codeViewThemeColors?: DiffViewColorTheme;
1140-
renderExtendLine?: ({ file, data, lineNumber }: {
1141-
file: File$1;
1142-
lineNumber: number;
1143-
data: T;
1144-
}) => ReactNode;
11451137
};
1146-
export type CodeViewProps_1<T> = Omit<CodeViewProps<T>, "data"> & {
1138+
export type CodeViewProps_1 = Omit<CodeViewProps, "data"> & {
11471139
data?: {
11481140
content: string;
11491141
fileName?: string | null;
11501142
fileLang?: DiffHighlighterLang | null;
11511143
};
11521144
};
1153-
export type CodeViewProps_2<T> = Omit<CodeViewProps<T>, "data"> & {
1145+
export type CodeViewProps_2 = Omit<CodeViewProps, "data"> & {
11541146
data?: {
11551147
content: string;
11561148
fileName?: string | null;
11571149
fileLang?: string | null;
11581150
};
11591151
};
1160-
declare function ReactCodeView<T>(props: CodeViewProps_1<T> & {
1152+
export declare function buildCodeViewAnsiString(props: CodeViewProps): string;
1153+
declare function ReactCodeView(props: CodeViewProps_1 & {
11611154
ref?: ForwardedRef<{
11621155
getFileInstance: () => File$1;
11631156
}>;
11641157
}): JSX.Element;
1165-
declare function ReactCodeView<T>(props: CodeViewProps_2<T> & {
1158+
declare function ReactCodeView(props: CodeViewProps_2 & {
11661159
ref?: ForwardedRef<{
11671160
getFileInstance: () => File$1;
11681161
}>;

packages/cli/src/components/CodeContent.tsx

Lines changed: 0 additions & 257 deletions
This file was deleted.

packages/cli/src/components/CodeExtendLine.tsx

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)