Skip to content

Commit 987270f

Browse files
fix
1 parent bcbd43a commit 987270f

File tree

18 files changed

+59
-59
lines changed

18 files changed

+59
-59
lines changed

packages/core/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ declare const lowlight: {
4949
};
5050
registered: (aliasOrName: string) => boolean;
5151
};
52+
declare enum NewLineSymbol {
53+
CRLF = 1,
54+
CR = 2,
55+
LF = 3,
56+
NEWLINE = 4,
57+
NORMAL = 5,
58+
NULL = 6
59+
}
5260
export declare class DiffFile {
5361

5462
readonly uuid?: string;
@@ -556,14 +564,6 @@ export declare enum DiffLineType {
556564
Delete = 2,
557565
Hunk = 3
558566
}
559-
export declare enum NewLineSymbol {
560-
CRLF = 1,
561-
CR = 2,
562-
LF = 3,
563-
NEWLINE = 4,
564-
NORMAL = 5,
565-
NULL = 6
566-
}
567567
export declare enum SplitSide {
568568
old = 1,
569569
new = 2

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "@git-diff-view/core",
44
"author": "MrWangJustToDo",
55
"license": "MIT",
6-
"version": "0.0.27",
6+
"version": "0.0.28",
77
"main": "index.js",
88
"types": "index.d.ts",
99
"files": [
@@ -53,7 +53,7 @@
5353
"diff parse"
5454
],
5555
"dependencies": {
56-
"@git-diff-view/lowlight": "^0.0.27",
56+
"@git-diff-view/lowlight": "^0.0.28",
5757
"highlight.js": "^11.11.0",
5858
"lowlight": "^3.3.0",
5959
"fast-diff": "^1.3.0"

packages/core/src/parse/change-range.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1+
import { NewLineSymbol } from "@git-diff-view/utils";
12
import fastDiff from "fast-diff";
23

34
import type { DiffLine } from "./diff-line";
45

5-
export enum NewLineSymbol {
6-
CRLF = 1,
7-
CR = 2,
8-
LF = 3,
9-
NEWLINE = 4,
10-
NORMAL = 5,
11-
NULL = 6,
12-
}
13-
146
export interface IRange {
157
readonly range: {
168
/** The starting location for the range. */

packages/file/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ declare const lowlight: {
4949
};
5050
registered: (aliasOrName: string) => boolean;
5151
};
52+
declare enum NewLineSymbol {
53+
CRLF = 1,
54+
CR = 2,
55+
LF = 3,
56+
NEWLINE = 4,
57+
NORMAL = 5,
58+
NULL = 6
59+
}
5260
export declare class DiffFile {
5361
readonly uuid?: string;
5462
_version_: string;
@@ -555,14 +563,6 @@ export declare enum DiffLineType {
555563
Delete = 2,
556564
Hunk = 3
557565
}
558-
export declare enum NewLineSymbol {
559-
CRLF = 1,
560-
CR = 2,
561-
LF = 3,
562-
NEWLINE = 4,
563-
NORMAL = 5,
564-
NULL = 6
565-
}
566566
export declare enum SplitSide {
567567
old = 1,
568568
new = 2

packages/file/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "@git-diff-view/file",
44
"author": "MrWangJustToDo",
55
"license": "MIT",
6-
"version": "0.0.27",
6+
"version": "0.0.28",
77
"main": "index.js",
88
"types": "index.d.ts",
99
"files": [
@@ -53,7 +53,7 @@
5353
"diff parse"
5454
],
5555
"dependencies": {
56-
"@git-diff-view/core": "^0.0.27",
56+
"@git-diff-view/core": "^0.0.28",
5757
"diff": "^7.0.0",
5858
"highlight.js": "^11.11.0",
5959
"lowlight": "^3.3.0",

packages/lowlight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "@git-diff-view/lowlight",
44
"author": "MrWangJustToDo",
55
"license": "MIT",
6-
"version": "0.0.27",
6+
"version": "0.0.28",
77
"main": "index.js",
88
"types": "index.d.ts",
99
"files": [

packages/react/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ declare const lowlight: {
4949
};
5050
registered: (aliasOrName: string) => boolean;
5151
};
52+
declare enum NewLineSymbol {
53+
CRLF = 1,
54+
CR = 2,
55+
LF = 3,
56+
NEWLINE = 4,
57+
NORMAL = 5,
58+
NULL = 6
59+
}
5260
export declare class DiffFile {
5361
readonly uuid?: string;
5462
_version_: string;
@@ -555,14 +563,6 @@ export declare enum DiffLineType {
555563
Delete = 2,
556564
Hunk = 3
557565
}
558-
export declare enum NewLineSymbol {
559-
CRLF = 1,
560-
CR = 2,
561-
LF = 3,
562-
NEWLINE = 4,
563-
NORMAL = 5,
564-
NULL = 6
565-
}
566566
export declare enum SplitSide {
567567
old = 1,
568568
new = 2

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "@git-diff-view/react",
44
"author": "MrWangJustToDo",
55
"license": "MIT",
6-
"version": "0.0.27",
6+
"version": "0.0.28",
77
"main": "index.js",
88
"types": "index.d.ts",
99
"files": [
@@ -67,7 +67,7 @@
6767
"react diff component"
6868
],
6969
"dependencies": {
70-
"@git-diff-view/core": "^0.0.27",
70+
"@git-diff-view/core": "^0.0.28",
7171
"@types/hast": "^3.0.0",
7272
"fast-diff": "^1.3.0",
7373
"highlight.js": "^11.11.0",

packages/react/src/components/DiffContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable max-lines */
22
import {
33
DiffLineType,
4-
NewLineSymbol,
54
getSyntaxDiffTemplate,
65
getSyntaxLineTemplate,
76
getPlainDiffTemplate,
@@ -13,6 +12,7 @@ import {
1312
delContentHighlightBGName,
1413
diffFontSizeName,
1514
getSymbol,
15+
NewLineSymbol,
1616
} from "@git-diff-view/utils";
1717
import * as React from "react";
1818

packages/react/src/components/DiffContent_v2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
DiffLineType,
3-
NewLineSymbol,
43
type DiffFile,
54
type DiffLine,
65
type diffChanges,
@@ -11,6 +10,7 @@ import {
1110
delContentHighlightBGName,
1211
diffFontSizeName,
1312
getSymbol,
13+
NewLineSymbol,
1414
} from "@git-diff-view/utils";
1515
import * as React from "react";
1616

0 commit comments

Comments
 (0)