Skip to content

Commit 58e83c2

Browse files
fix
1 parent 5e468cc commit 58e83c2

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

packages/core/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ export declare const DefaultDiffExpansionStep = 40;
373373
*/
374374
export declare const HiddenBidiCharsRegex: RegExp;
375375
export declare const _cacheMap: Cache$1<string, File$1>;
376+
export declare const changeDefaultComposeLength: (compose: number) => void;
376377
export declare const checkDiffLineIncludeChange: (diffLine?: DiffLine) => boolean;
377-
export declare const composeLen = 40;
378378
export declare const disableCache: () => void;
379379
export declare const getDiffRange: (additions: DiffLine[], deletions: DiffLine[], { getAdditionRaw, getDeletionRaw, }: {
380380
getAdditionRaw: (lineNumber: number) => string;
@@ -392,6 +392,7 @@ export declare const processAST: (ast: DiffAST) => {
392392
syntaxFileObject: Record<number, SyntaxLine>;
393393
syntaxFileLineNumber: number;
394394
};
395+
export declare const resetDefaultComposeLength: () => void;
395396
export declare const versions: string;
396397
export declare enum DiffFileLineType {
397398
hunk = 1,
@@ -462,6 +463,7 @@ export declare function relativeChanges(addition: DiffLine, deletion: DiffLine):
462463
addRange: IRange;
463464
delRange: IRange;
464465
};
466+
export declare let composeLen: number;
465467
export interface DiffHunkItem extends DiffLineItem {
466468
isFirst: boolean;
467469
isLast: boolean;

packages/core/src/diff-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { DiffLine, DiffLineType, parseInstance, getDiffRange, getLang } from "./
66
import type { IRawDiff } from "./parse";
77
import type { DiffHighlighter, DiffHighlighterLang } from "@git-diff-view/lowlight";
88

9-
let composeLen = 40;
9+
export let composeLen = 40;
1010

1111
export const changeDefaultComposeLength = (compose: number) => {
1212
composeLen = compose;

packages/file/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ export declare const DefaultDiffExpansionStep = 40;
372372
*/
373373
export declare const HiddenBidiCharsRegex: RegExp;
374374
export declare const _cacheMap: Cache$1<string, File$1>;
375+
export declare const changeDefaultComposeLength: (compose: number) => void;
375376
export declare const checkDiffLineIncludeChange: (diffLine?: DiffLine) => boolean;
376-
export declare const composeLen = 40;
377377
export declare const disableCache: () => void;
378378
export declare const getDiffRange: (additions: DiffLine[], deletions: DiffLine[], { getAdditionRaw, getDeletionRaw, }: {
379379
getAdditionRaw: (lineNumber: number) => string;
@@ -391,6 +391,7 @@ export declare const processAST: (ast: DiffAST) => {
391391
syntaxFileObject: Record<number, SyntaxLine>;
392392
syntaxFileLineNumber: number;
393393
};
394+
export declare const resetDefaultComposeLength: () => void;
394395
export declare const versions: string;
395396
export declare enum DiffFileLineType {
396397
hunk = 1,
@@ -461,6 +462,7 @@ export declare function relativeChanges(addition: DiffLine, deletion: DiffLine):
461462
addRange: IRange;
462463
delRange: IRange;
463464
};
465+
export declare let composeLen: number;
464466
export interface DiffHunkItem extends DiffLineItem {
465467
isFirst: boolean;
466468
isLast: boolean;

packages/react/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ export declare const DefaultDiffExpansionStep = 40;
372372
*/
373373
export declare const HiddenBidiCharsRegex: RegExp;
374374
export declare const _cacheMap: Cache$1<string, File$1>;
375+
export declare const changeDefaultComposeLength: (compose: number) => void;
375376
export declare const checkDiffLineIncludeChange: (diffLine?: DiffLine) => boolean;
376-
export declare const composeLen = 40;
377377
export declare const disableCache: () => void;
378378
export declare const getDiffRange: (additions: DiffLine[], deletions: DiffLine[], { getAdditionRaw, getDeletionRaw, }: {
379379
getAdditionRaw: (lineNumber: number) => string;
@@ -391,6 +391,7 @@ export declare const processAST: (ast: DiffAST) => {
391391
syntaxFileObject: Record<number, SyntaxLine>;
392392
syntaxFileLineNumber: number;
393393
};
394+
export declare const resetDefaultComposeLength: () => void;
394395
export declare const versions: string;
395396
export declare enum DiffFileLineType {
396397
hunk = 1,
@@ -461,6 +462,7 @@ export declare function relativeChanges(addition: DiffLine, deletion: DiffLine):
461462
addRange: IRange;
462463
delRange: IRange;
463464
};
465+
export declare let composeLen: number;
464466
export interface DiffHunkItem extends DiffLineItem {
465467
isFirst: boolean;
466468
isLast: boolean;

packages/vue/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ export declare const DefaultDiffExpansionStep = 40;
372372
*/
373373
export declare const HiddenBidiCharsRegex: RegExp;
374374
export declare const _cacheMap: Cache$1<string, File$1>;
375+
export declare const changeDefaultComposeLength: (compose: number) => void;
375376
export declare const checkDiffLineIncludeChange: (diffLine?: DiffLine) => boolean;
376-
export declare const composeLen = 40;
377377
export declare const disableCache: () => void;
378378
export declare const getDiffRange: (additions: DiffLine[], deletions: DiffLine[], { getAdditionRaw, getDeletionRaw, }: {
379379
getAdditionRaw: (lineNumber: number) => string;
@@ -391,6 +391,7 @@ export declare const processAST: (ast: DiffAST) => {
391391
syntaxFileObject: Record<number, SyntaxLine>;
392392
syntaxFileLineNumber: number;
393393
};
394+
export declare const resetDefaultComposeLength: () => void;
394395
export declare const versions: string;
395396
export declare enum DiffFileLineType {
396397
hunk = 1,
@@ -461,6 +462,7 @@ export declare function relativeChanges(addition: DiffLine, deletion: DiffLine):
461462
addRange: IRange;
462463
delRange: IRange;
463464
};
465+
export declare let composeLen: number;
464466
export interface DiffHunkItem extends DiffLineItem {
465467
isFirst: boolean;
466468
isLast: boolean;

0 commit comments

Comments
 (0)