@git-diff-view/react 0.0.17 → 0.0.18

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
@@ -18,7 +18,8 @@ declare class File$1 {
18
18
  syntaxFile: Record<number, SyntaxLine>;
19
19
  hasDoSyntax: boolean;
20
20
  syntaxLength?: number;
21
- highlighterName?: string;
21
+ highlighterName?: DiffHighlighter["name"];
22
+ highlighterType?: DiffHighlighter["type"];
22
23
  maxLineNumber: number;
23
24
  static createInstance(data: File$1): File$1;
24
25
  constructor(raw: string, lang: string, fileName?: string);
@@ -521,6 +522,7 @@ export interface UnifiedLineItem {
521
522
  export type DiffAST = ReturnType<typeof lowlight.highlight>;
522
523
  export type DiffHighlighter = {
523
524
  name: string;
525
+ type: "class" | "style" | string;
524
526
  maxLineToIgnoreSyntax: number;
525
527
  setMaxLineToIgnoreSyntax: (v: number) => void;
526
528
  ignoreSyntaxHighlightList: (string | RegExp)[];
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.17",
6
+ "version": "0.0.18",
7
7
  "main": "index.js",
8
8
  "types": "index.d.ts",
9
9
  "files": [
@@ -57,7 +57,7 @@
57
57
  "react diff component"
58
58
  ],
59
59
  "dependencies": {
60
- "@git-diff-view/core": "^0.0.17",
60
+ "@git-diff-view/core": "^0.0.18",
61
61
  "@types/hast": "^3.0.0",
62
62
  "fast-diff": "^1.3.0",
63
63
  "highlight.js": "^11.9.0",