@git-diff-view/react 0.0.27 → 0.0.28

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.
package/index.d.ts CHANGED
@@ -49,6 +49,14 @@ declare const lowlight: {
49
49
  };
50
50
  registered: (aliasOrName: string) => boolean;
51
51
  };
52
+ declare enum NewLineSymbol {
53
+ CRLF = 1,
54
+ CR = 2,
55
+ LF = 3,
56
+ NEWLINE = 4,
57
+ NORMAL = 5,
58
+ NULL = 6
59
+ }
52
60
  export declare class DiffFile {
53
61
  readonly uuid?: string;
54
62
  _version_: string;
@@ -555,14 +563,6 @@ export declare enum DiffLineType {
555
563
  Delete = 2,
556
564
  Hunk = 3
557
565
  }
558
- export declare enum NewLineSymbol {
559
- CRLF = 1,
560
- CR = 2,
561
- LF = 3,
562
- NEWLINE = 4,
563
- NORMAL = 5,
564
- NULL = 6
565
- }
566
566
  export declare enum SplitSide {
567
567
  old = 1,
568
568
  new = 2
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "@git-diff-view/react",
4
4
  "author": "MrWangJustToDo",
5
5
  "license": "MIT",
6
- "version": "0.0.27",
6
+ "version": "0.0.28",
7
7
  "main": "index.js",
8
8
  "types": "index.d.ts",
9
9
  "files": [
@@ -61,7 +61,7 @@
61
61
  "react diff component"
62
62
  ],
63
63
  "dependencies": {
64
- "@git-diff-view/core": "^0.0.27",
64
+ "@git-diff-view/core": "^0.0.28",
65
65
  "@types/hast": "^3.0.0",
66
66
  "fast-diff": "^1.3.0",
67
67
  "highlight.js": "^11.11.0",
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable max-lines */
2
2
  import {
3
3
  DiffLineType,
4
- NewLineSymbol,
5
4
  getSyntaxDiffTemplate,
6
5
  getSyntaxLineTemplate,
7
6
  getPlainDiffTemplate,
@@ -13,6 +12,7 @@ import {
13
12
  delContentHighlightBGName,
14
13
  diffFontSizeName,
15
14
  getSymbol,
15
+ NewLineSymbol,
16
16
  } from "@git-diff-view/utils";
17
17
  import * as React from "react";
18
18
 
@@ -1,6 +1,5 @@
1
1
  import {
2
2
  DiffLineType,
3
- NewLineSymbol,
4
3
  type DiffFile,
5
4
  type DiffLine,
6
5
  type diffChanges,
@@ -11,6 +10,7 @@ import {
11
10
  delContentHighlightBGName,
12
11
  diffFontSizeName,
13
12
  getSymbol,
13
+ NewLineSymbol,
14
14
  } from "@git-diff-view/utils";
15
15
  import * as React from "react";
16
16