@yuhufe/wtool-vdiff 0.0.10 → 0.0.11
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/DiffViewer/DiffViewer.vue.d.ts +1 -1
- package/dist/DiffViewer/TopBar.vue.d.ts +0 -2
- package/dist/DiffViewer/utils/patch2Pair.d.ts +3 -3
- package/dist/utils/index.d.ts +1 -0
- package/dist/wtool-vdiff.cjs.js +32 -32
- package/dist/wtool-vdiff.es.js +1577 -1581
- package/package.json +13 -13
- package/src/DiffViewer/DiffViewer.vue +4 -3
- package/src/DiffViewer/TopBar.vue +2 -21
- package/src/DiffViewer/utils/patch2Pair.ts +18 -11
- package/src/utils/index.ts +5 -0
|
@@ -17,7 +17,7 @@ declare const _default: import('../../node_modules/vue/dist/vue.esm-bundler.js')
|
|
|
17
17
|
options: DiffEditorOptions;
|
|
18
18
|
language: string;
|
|
19
19
|
modelOptions: ModelOptions;
|
|
20
|
-
diffPatch: string;
|
|
21
20
|
fileId: string;
|
|
21
|
+
diffPatch: string;
|
|
22
22
|
}, {}, {}, {}, string, import('../../node_modules/vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
23
|
export default _default;
|
|
@@ -3,13 +3,11 @@ type __VLS_Props = {
|
|
|
3
3
|
filename: string;
|
|
4
4
|
content: string | null;
|
|
5
5
|
}[];
|
|
6
|
-
diffPatch?: string;
|
|
7
6
|
};
|
|
8
7
|
declare const _default: import('../../node_modules/vue/dist/vue.esm-bundler.js').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('../../node_modules/vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../node_modules/vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../node_modules/vue/dist/vue.esm-bundler.js').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
8
|
diffPair: {
|
|
10
9
|
filename: string;
|
|
11
10
|
content: string | null;
|
|
12
11
|
}[];
|
|
13
|
-
diffPatch: string;
|
|
14
12
|
}, {}, {}, {}, string, import('../../node_modules/vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
13
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface FilePair {
|
|
2
2
|
filename: string;
|
|
3
|
-
content: string;
|
|
3
|
+
content: string | null;
|
|
4
4
|
}
|
|
5
5
|
export interface PatchChangedLineBlock {
|
|
6
6
|
start: number;
|
|
@@ -18,8 +18,8 @@ export interface PatchPairLayout {
|
|
|
18
18
|
* - hunk 之外的行(patch 未提供内容):两侧各补一个空行撑开行号,
|
|
19
19
|
* Monaco hideUnchangedRegions 会将这些相同的空行折叠并显示正确的行号范围
|
|
20
20
|
* - context 行(' '):两侧均写入真实内容
|
|
21
|
-
* - 连续的删除('-')/ 新增('+'
|
|
22
|
-
*
|
|
21
|
+
* - 连续的删除('-')/ 新增('+')块:分别写入对应侧,
|
|
22
|
+
* 由 Monaco 自己为纯新增、纯删除和不等长替换生成视觉占位
|
|
23
23
|
*/
|
|
24
24
|
export declare const patch2PairWithLayout: (patch: string) => PatchPairLayout;
|
|
25
25
|
export declare const patch2Pair: (patch: string) => FilePair[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const debugLog: (...args: unknown[]) => void;
|