@git-diff-view/react 0.0.40 → 0.1.1
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/dist/cjs/index.development.js +2 -2
- package/dist/cjs/index.development.js.map +1 -1
- package/dist/cjs/index.production.js +2 -2
- package/dist/cjs/index.production.js.map +1 -1
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +1 -1
- package/index.d.ts +10 -4
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -28,10 +28,6 @@ declare class File$1 {
|
|
|
28
28
|
highlighterName?: DiffHighlighter["name"];
|
|
29
29
|
highlighterType?: DiffHighlighter["type"];
|
|
30
30
|
maxLineNumber: number;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated
|
|
33
|
-
*/
|
|
34
|
-
enableTemplate: boolean;
|
|
35
31
|
static createInstance(data: File$1): File$1;
|
|
36
32
|
constructor(row: string, lang: DiffHighlighterLang, fileName?: string);
|
|
37
33
|
constructor(row: string, lang: string, fileName?: string);
|
|
@@ -194,6 +190,7 @@ export declare class DiffFile {
|
|
|
194
190
|
highlighterName: string;
|
|
195
191
|
highlighterType: string;
|
|
196
192
|
composeByDiff: boolean;
|
|
193
|
+
composeByRange: boolean;
|
|
197
194
|
hasSomeLineCollapsed: boolean;
|
|
198
195
|
hasExpandSplitAll: {
|
|
199
196
|
state: boolean;
|
|
@@ -206,6 +203,14 @@ export declare class DiffFile {
|
|
|
206
203
|
isFullMerge: boolean;
|
|
207
204
|
};
|
|
208
205
|
mergeBundle: (data: ReturnType<DiffFile["getBundle"]>, notifyUpdate?: boolean) => void;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @param start start lineNumber
|
|
209
|
+
* @param end end lineNumber
|
|
210
|
+
* @param side range side
|
|
211
|
+
* @returns a new instance can only show the content from start to end
|
|
212
|
+
*/
|
|
213
|
+
generateInstanceFromLineNumberRange: (start: number, end: number, side?: SplitSide) => DiffFile;
|
|
209
214
|
_getHighlighterName: () => string;
|
|
210
215
|
_getHighlighterType: () => string;
|
|
211
216
|
_getIsPureDiffRender: () => boolean;
|
|
@@ -257,6 +262,7 @@ export declare class DiffFile {
|
|
|
257
262
|
highlighterName: string;
|
|
258
263
|
highlighterType: string;
|
|
259
264
|
composeByDiff: boolean;
|
|
265
|
+
composeByRange: boolean;
|
|
260
266
|
hasSomeLineCollapsed: boolean;
|
|
261
267
|
hasExpandSplitAll: {
|
|
262
268
|
state: boolean;
|
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.
|
|
6
|
+
"version": "0.1.1",
|
|
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.
|
|
64
|
+
"@git-diff-view/core": "^0.1.1",
|
|
65
65
|
"@types/hast": "^3.0.0",
|
|
66
66
|
"fast-diff": "^1.3.0",
|
|
67
67
|
"highlight.js": "^11.11.0",
|