@pierre/diffs 1.3.6 → 1.4.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/components/CodeView.d.ts +115 -68
- package/dist/components/CodeView.d.ts.map +1 -1
- package/dist/components/CodeView.js +189 -59
- package/dist/components/CodeView.js.map +1 -1
- package/dist/components/File.d.ts +79 -15
- package/dist/components/File.d.ts.map +1 -1
- package/dist/components/File.js +244 -66
- package/dist/components/File.js.map +1 -1
- package/dist/components/FileDiff.d.ts +101 -21
- package/dist/components/FileDiff.d.ts.map +1 -1
- package/dist/components/FileDiff.js +432 -102
- package/dist/components/FileDiff.js.map +1 -1
- package/dist/components/FileStream.js +1 -1
- package/dist/components/UnresolvedFile.d.ts +2 -2
- package/dist/components/UnresolvedFile.d.ts.map +1 -1
- package/dist/components/UnresolvedFile.js +2 -2
- package/dist/components/UnresolvedFile.js.map +1 -1
- package/dist/components/VirtualizedFile.d.ts +17 -7
- package/dist/components/VirtualizedFile.d.ts.map +1 -1
- package/dist/components/VirtualizedFile.js +142 -53
- package/dist/components/VirtualizedFile.js.map +1 -1
- package/dist/components/VirtualizedFileDiff.d.ts +15 -8
- package/dist/components/VirtualizedFileDiff.d.ts.map +1 -1
- package/dist/components/VirtualizedFileDiff.js +186 -96
- package/dist/components/VirtualizedFileDiff.js.map +1 -1
- package/dist/components/VirtulizerDevelopment.d.ts +1 -1
- package/dist/components/VirtulizerDevelopment.d.ts.map +1 -1
- package/dist/edit/index.d.ts +7 -4
- package/dist/edit/index.js +5 -1
- package/dist/editor/EditStateManager.d.ts +56 -0
- package/dist/editor/EditStateManager.d.ts.map +1 -0
- package/dist/editor/EditStateManager.js +135 -0
- package/dist/editor/EditStateManager.js.map +1 -0
- package/dist/editor/cloneRetainedDiffSessionSnapshot.d.ts +7 -0
- package/dist/editor/cloneRetainedDiffSessionSnapshot.d.ts.map +1 -0
- package/dist/editor/cloneRetainedDiffSessionSnapshot.js +16 -0
- package/dist/editor/cloneRetainedDiffSessionSnapshot.js.map +1 -0
- package/dist/editor/editPrediction.d.ts +76 -0
- package/dist/editor/editPrediction.d.ts.map +1 -0
- package/dist/editor/editPrediction.js +365 -0
- package/dist/editor/editPrediction.js.map +1 -0
- package/dist/editor/editStack.d.ts +19 -40
- package/dist/editor/editStack.d.ts.map +1 -1
- package/dist/editor/editStack.js +67 -4
- package/dist/editor/editStack.js.map +1 -1
- package/dist/editor/editor.d.ts +118 -29
- package/dist/editor/editor.d.ts.map +1 -1
- package/dist/editor/editor.js +1108 -384
- package/dist/editor/editor.js.map +1 -1
- package/dist/editor/editor2.js +1 -1
- package/dist/editor/languages.d.ts +3 -3
- package/dist/editor/languages.d.ts.map +1 -1
- package/dist/editor/languages.js.map +1 -1
- package/dist/editor/lineAnnotations.d.ts +3 -3
- package/dist/editor/lineAnnotations.d.ts.map +1 -1
- package/dist/editor/lineAnnotations.js +16 -7
- package/dist/editor/lineAnnotations.js.map +1 -1
- package/dist/editor/marker.d.ts +2 -2
- package/dist/editor/marker.d.ts.map +1 -1
- package/dist/editor/marker.js.map +1 -1
- package/dist/editor/matchBrackets.d.ts +2 -2
- package/dist/editor/matchBrackets.d.ts.map +1 -1
- package/dist/editor/matchBrackets.js.map +1 -1
- package/dist/editor/pieceTable.d.ts +1 -1
- package/dist/editor/pieceTable.js.map +1 -1
- package/dist/editor/searchPanel.d.ts +2 -2
- package/dist/editor/searchPanel.js +1 -1
- package/dist/editor/searchPanel.js.map +1 -1
- package/dist/editor/selection.d.ts +32 -23
- package/dist/editor/selection.d.ts.map +1 -1
- package/dist/editor/selection.js +3 -3
- package/dist/editor/selection.js.map +1 -1
- package/dist/editor/selectionAction.d.ts +3 -3
- package/dist/editor/selectionAction.d.ts.map +1 -1
- package/dist/editor/selectionAction.js.map +1 -1
- package/dist/editor/textDocument.d.ts +11 -8
- package/dist/editor/textDocument.d.ts.map +1 -1
- package/dist/editor/textDocument.js +28 -5
- package/dist/editor/textDocument.js.map +1 -1
- package/dist/editor/textDocumentChangeTransaction.d.ts +15 -0
- package/dist/editor/textDocumentChangeTransaction.d.ts.map +1 -0
- package/dist/editor/textDocumentChangeTransaction.js +12 -0
- package/dist/editor/textDocumentChangeTransaction.js.map +1 -0
- package/dist/editor/textMeasure.d.ts +5 -0
- package/dist/editor/textMeasure.d.ts.map +1 -1
- package/dist/editor/textMeasure.js +10 -0
- package/dist/editor/textMeasure.js.map +1 -1
- package/dist/editor/tokenizer.d.ts +1 -1
- package/dist/editor/tokenizer.js.map +1 -1
- package/dist/editor/types.d.ts +267 -0
- package/dist/editor/types.d.ts.map +1 -0
- package/dist/editor/types.js +0 -0
- package/dist/editor/utils.d.ts +2 -1
- package/dist/editor/utils.d.ts.map +1 -1
- package/dist/editor/utils.js +4 -1
- package/dist/editor/utils.js.map +1 -1
- package/dist/highlighter/shared_highlighter.d.ts +6 -2
- package/dist/highlighter/shared_highlighter.d.ts.map +1 -1
- package/dist/highlighter/shared_highlighter.js +7 -3
- package/dist/highlighter/shared_highlighter.js.map +1 -1
- package/dist/highlighter/themes/areThemesAttached.js +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.js +22 -21
- package/dist/managers/InteractionManager.d.ts.map +1 -1
- package/dist/managers/InteractionManager.js +7 -0
- package/dist/managers/InteractionManager.js.map +1 -1
- package/dist/react/CodeView.d.ts +36 -25
- package/dist/react/CodeView.d.ts.map +1 -1
- package/dist/react/CodeView.js +15 -14
- package/dist/react/CodeView.js.map +1 -1
- package/dist/react/EditContext.d.ts +8 -11
- package/dist/react/EditContext.d.ts.map +1 -1
- package/dist/react/EditContext.js +2 -9
- package/dist/react/EditContext.js.map +1 -1
- package/dist/react/File.d.ts +10 -6
- package/dist/react/File.d.ts.map +1 -1
- package/dist/react/File.js +8 -4
- package/dist/react/File.js.map +1 -1
- package/dist/react/FileDiff.d.ts +10 -5
- package/dist/react/FileDiff.d.ts.map +1 -1
- package/dist/react/FileDiff.js +8 -4
- package/dist/react/FileDiff.js.map +1 -1
- package/dist/react/MultiFileDiff.d.ts +8 -5
- package/dist/react/MultiFileDiff.d.ts.map +1 -1
- package/dist/react/MultiFileDiff.js +8 -12
- package/dist/react/MultiFileDiff.js.map +1 -1
- package/dist/react/PatchDiff.d.ts +7 -4
- package/dist/react/PatchDiff.d.ts.map +1 -1
- package/dist/react/PatchDiff.js +8 -4
- package/dist/react/PatchDiff.js.map +1 -1
- package/dist/react/UnresolvedFile.d.ts +3 -3
- package/dist/react/UnresolvedFile.d.ts.map +1 -1
- package/dist/react/UnresolvedFile.js.map +1 -1
- package/dist/react/index.d.ts +8 -5
- package/dist/react/types.d.ts +46 -9
- package/dist/react/types.d.ts.map +1 -1
- package/dist/react/utils/renderDiffChildren.d.ts +14 -12
- package/dist/react/utils/renderDiffChildren.d.ts.map +1 -1
- package/dist/react/utils/renderDiffChildren.js +2 -2
- package/dist/react/utils/renderDiffChildren.js.map +1 -1
- package/dist/react/utils/renderFileChildren.d.ts +14 -12
- package/dist/react/utils/renderFileChildren.d.ts.map +1 -1
- package/dist/react/utils/renderFileChildren.js +2 -2
- package/dist/react/utils/renderFileChildren.js.map +1 -1
- package/dist/react/utils/useFileDiffInstance.d.ts +22 -10
- package/dist/react/utils/useFileDiffInstance.d.ts.map +1 -1
- package/dist/react/utils/useFileDiffInstance.js +112 -22
- package/dist/react/utils/useFileDiffInstance.js.map +1 -1
- package/dist/react/utils/useFileInstance.d.ts +15 -9
- package/dist/react/utils/useFileInstance.d.ts.map +1 -1
- package/dist/react/utils/useFileInstance.js +84 -25
- package/dist/react/utils/useFileInstance.js.map +1 -1
- package/dist/renderers/DiffHunksRenderer.d.ts +30 -15
- package/dist/renderers/DiffHunksRenderer.d.ts.map +1 -1
- package/dist/renderers/DiffHunksRenderer.js +172 -109
- package/dist/renderers/DiffHunksRenderer.js.map +1 -1
- package/dist/renderers/FileRenderer.d.ts +27 -11
- package/dist/renderers/FileRenderer.d.ts.map +1 -1
- package/dist/renderers/FileRenderer.js +141 -67
- package/dist/renderers/FileRenderer.js.map +1 -1
- package/dist/renderers/UnresolvedFileHunksRenderer.d.ts +2 -2
- package/dist/renderers/UnresolvedFileHunksRenderer.d.ts.map +1 -1
- package/dist/renderers/UnresolvedFileHunksRenderer.js +2 -2
- package/dist/renderers/UnresolvedFileHunksRenderer.js.map +1 -1
- package/dist/shiki-stream/tokenizer.d.ts.map +1 -1
- package/dist/shiki-stream/tokenizer.js +2 -1
- package/dist/shiki-stream/tokenizer.js.map +1 -1
- package/dist/ssr/index.d.ts +2 -2
- package/dist/ssr/preloadDiffs.d.ts +21 -21
- package/dist/ssr/preloadDiffs.d.ts.map +1 -1
- package/dist/ssr/preloadDiffs.js +1 -1
- package/dist/ssr/preloadDiffs.js.map +1 -1
- package/dist/ssr/preloadFile.d.ts +6 -6
- package/dist/ssr/preloadFile.d.ts.map +1 -1
- package/dist/ssr/preloadFile.js.map +1 -1
- package/dist/ssr/preloadPatchFile.d.ts +4 -4
- package/dist/ssr/preloadPatchFile.d.ts.map +1 -1
- package/dist/ssr/preloadPatchFile.js.map +1 -1
- package/dist/style.js +1 -1
- package/dist/types.d.ts +13 -263
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/appendItems.d.ts +5 -0
- package/dist/utils/appendItems.d.ts.map +1 -0
- package/dist/utils/appendItems.js +8 -0
- package/dist/utils/appendItems.js.map +1 -0
- package/dist/utils/areDiffTargetsEqual.js +1 -1
- package/dist/utils/areDiffTargetsEqual.js.map +1 -1
- package/dist/utils/areFileTargetsEqual.d.ts +7 -0
- package/dist/utils/areFileTargetsEqual.d.ts.map +1 -0
- package/dist/utils/areFileTargetsEqual.js +8 -0
- package/dist/utils/areFileTargetsEqual.js.map +1 -0
- package/dist/utils/areManagedSnapshotsEqual.d.ts +1 -1
- package/dist/utils/areManagedSnapshotsEqual.d.ts.map +1 -1
- package/dist/utils/areManagedSnapshotsEqual.js.map +1 -1
- package/dist/utils/areOptionsEqual.d.ts +3 -3
- package/dist/utils/areOptionsEqual.d.ts.map +1 -1
- package/dist/utils/areOptionsEqual.js.map +1 -1
- package/dist/utils/cloneFileDiffMetadata.d.ts +3 -2
- package/dist/utils/cloneFileDiffMetadata.d.ts.map +1 -1
- package/dist/utils/cloneFileDiffMetadata.js +8 -5
- package/dist/utils/cloneFileDiffMetadata.js.map +1 -1
- package/dist/utils/composeCacheKey.d.ts +6 -0
- package/dist/utils/composeCacheKey.d.ts.map +1 -0
- package/dist/utils/composeCacheKey.js +10 -0
- package/dist/utils/composeCacheKey.js.map +1 -0
- package/dist/utils/editSessionAnnotations.d.ts +69 -0
- package/dist/utils/editSessionAnnotations.d.ts.map +1 -0
- package/dist/utils/editSessionAnnotations.js +64 -0
- package/dist/utils/editSessionAnnotations.js.map +1 -0
- package/dist/utils/editSessionHunks.d.ts +5 -3
- package/dist/utils/editSessionHunks.d.ts.map +1 -1
- package/dist/utils/editSessionHunks.js +7 -5
- package/dist/utils/editSessionHunks.js.map +1 -1
- package/dist/utils/getDiffHunksRendererOptions.d.ts +1 -1
- package/dist/utils/getDiffHunksRendererOptions.d.ts.map +1 -1
- package/dist/utils/getDiffHunksRendererOptions.js.map +1 -1
- package/dist/utils/getFileRendererOptions.d.ts +1 -1
- package/dist/utils/getFileRendererOptions.d.ts.map +1 -1
- package/dist/utils/getFileRendererOptions.js.map +1 -1
- package/dist/utils/hydratePartialDiff.d.ts.map +1 -1
- package/dist/utils/hydratePartialDiff.js +2 -1
- package/dist/utils/hydratePartialDiff.js.map +1 -1
- package/dist/utils/lineAnnotationIdentity.d.ts +16 -0
- package/dist/utils/lineAnnotationIdentity.d.ts.map +1 -0
- package/dist/utils/lineAnnotationIdentity.js +17 -0
- package/dist/utils/lineAnnotationIdentity.js.map +1 -0
- package/dist/utils/parseDiffFromFile.d.ts +2 -2
- package/dist/utils/parseDiffFromFile.d.ts.map +1 -1
- package/dist/utils/parseDiffFromFile.js +6 -6
- package/dist/utils/parseDiffFromFile.js.map +1 -1
- package/dist/utils/parsePatchFiles.d.ts +6 -3
- package/dist/utils/parsePatchFiles.d.ts.map +1 -1
- package/dist/utils/parsePatchFiles.js +34 -9
- package/dist/utils/parsePatchFiles.js.map +1 -1
- package/dist/utils/renderDiffWithHighlighter.d.ts.map +1 -1
- package/dist/utils/renderDiffWithHighlighter.js +6 -5
- package/dist/utils/renderDiffWithHighlighter.js.map +1 -1
- package/dist/utils/renderFileWithHighlighter.d.ts.map +1 -1
- package/dist/utils/renderFileWithHighlighter.js +7 -4
- package/dist/utils/renderFileWithHighlighter.js.map +1 -1
- package/dist/utils/trimPatchContext.d.ts.map +1 -1
- package/dist/utils/trimPatchContext.js +3 -2
- package/dist/utils/trimPatchContext.js.map +1 -1
- package/dist/utils/updateDiffHunks.js +1 -1
- package/dist/utils/virtualDiffLayout.js +1 -1
- package/dist/worker/WorkerPoolManager.d.ts +4 -3
- package/dist/worker/WorkerPoolManager.d.ts.map +1 -1
- package/dist/worker/WorkerPoolManager.js +44 -6
- package/dist/worker/WorkerPoolManager.js.map +1 -1
- package/dist/worker/types.d.ts +5 -0
- package/dist/worker/types.d.ts.map +1 -1
- package/dist/worker/worker-portable.js +14 -6
- package/dist/worker/worker-portable.js.map +1 -1
- package/dist/worker/worker.js +14 -6
- package/dist/worker/worker.js.map +1 -1
- package/package.json +9 -1
- package/dist/editor/stateStorage.d.ts +0 -15
- package/dist/editor/stateStorage.d.ts.map +0 -1
- package/dist/editor/stateStorage.js +0 -65
- package/dist/editor/stateStorage.js.map +0 -1
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeViewDiffItem, CodeViewFileItem, CodeViewItem, CodeViewLayout, CodeViewScrollTarget, HunkSeparators, SelectedLineRange, SmoothScrollSettings, VirtualFileMetrics, VirtualWindowSpecs } from "../types.js";
|
|
2
|
+
import { EditCompletionDecision, EditorChangeEvent, EditorType, FileDiffEditCompleteEvent, FileEditCompleteEvent } from "../editor/types.js";
|
|
2
3
|
import { SelectionWriteOptions } from "../managers/InteractionManager.js";
|
|
3
4
|
import { WorkerPoolManager } from "../worker/WorkerPoolManager.js";
|
|
4
5
|
import { FileOptions } from "./File.js";
|
|
5
6
|
import { FileDiffOptions } from "./FileDiff.js";
|
|
7
|
+
import { Editor, EditorOptions } from "../editor/editor.js";
|
|
6
8
|
import { VirtualizerConfig } from "./Virtualizer.js";
|
|
7
9
|
import { VirtualizedFile } from "./VirtualizedFile.js";
|
|
8
10
|
import { VirtualizedFileDiff } from "./VirtualizedFileDiff.js";
|
|
9
11
|
|
|
10
12
|
//#region src/components/CodeView.d.ts
|
|
13
|
+
type CodeViewCreateEditorOptions<EType extends EditorType, LAnnotation, Caret> = Required<Pick<EditorOptions<EType, LAnnotation, Caret>, 'onChange'>>;
|
|
14
|
+
type CodeViewEditor<LAnnotation, Caret> = Editor<'file', LAnnotation, Caret> | Editor<'file-diff', LAnnotation, Caret>;
|
|
11
15
|
interface AdvancedVirtualizedBaseItem {
|
|
12
16
|
/** Current index of this record in the ordered items array. */
|
|
13
17
|
index: number;
|
|
@@ -23,40 +27,44 @@ interface AdvancedVirtualizedBaseItem {
|
|
|
23
27
|
/** Last CodeView option revision this item rendered with. */
|
|
24
28
|
renderedOptionsRevision: number;
|
|
25
29
|
}
|
|
26
|
-
interface
|
|
30
|
+
interface CodeViewVirtualizedInstanceKey {
|
|
31
|
+
readonly __id: string;
|
|
32
|
+
readonly renderType: 'virtualized';
|
|
33
|
+
}
|
|
34
|
+
interface CodeViewDiffItemContext<LAnnotation, Caret> extends AdvancedVirtualizedBaseItem {
|
|
27
35
|
type: 'diff';
|
|
28
36
|
/** Latest item snapshot for this record. Controlled updates can replace it. */
|
|
29
37
|
item: CodeViewDiffItem<LAnnotation>;
|
|
30
38
|
/** Virtualized diff instance responsible for rendering this item. */
|
|
31
|
-
instance: VirtualizedFileDiff<LAnnotation>;
|
|
39
|
+
instance: VirtualizedFileDiff<LAnnotation, Caret>;
|
|
32
40
|
}
|
|
33
|
-
interface CodeViewFileItemContext<LAnnotation> extends AdvancedVirtualizedBaseItem {
|
|
41
|
+
interface CodeViewFileItemContext<LAnnotation, Caret> extends AdvancedVirtualizedBaseItem {
|
|
34
42
|
type: 'file';
|
|
35
43
|
/** Latest item snapshot for this record. Controlled updates can replace it. */
|
|
36
44
|
item: CodeViewFileItem<LAnnotation>;
|
|
37
45
|
/** Virtualized file instance responsible for rendering this item. */
|
|
38
|
-
instance: VirtualizedFile<LAnnotation>;
|
|
46
|
+
instance: VirtualizedFile<LAnnotation, Caret>;
|
|
39
47
|
}
|
|
40
|
-
type CodeViewContextItem<LAnnotation> = CodeViewDiffItemContext<LAnnotation> | CodeViewFileItemContext<LAnnotation>;
|
|
41
|
-
interface CodeViewRenderedDiffItem<LAnnotation> {
|
|
48
|
+
type CodeViewContextItem<LAnnotation, Caret> = CodeViewDiffItemContext<LAnnotation, Caret> | CodeViewFileItemContext<LAnnotation, Caret>;
|
|
49
|
+
interface CodeViewRenderedDiffItem<LAnnotation, Caret> {
|
|
42
50
|
id: string;
|
|
43
51
|
type: 'diff';
|
|
44
52
|
item: CodeViewDiffItem<LAnnotation>;
|
|
45
53
|
version: number | undefined;
|
|
46
54
|
element: HTMLElement;
|
|
47
|
-
instance: VirtualizedFileDiff<LAnnotation>;
|
|
55
|
+
instance: VirtualizedFileDiff<LAnnotation, Caret>;
|
|
48
56
|
}
|
|
49
|
-
interface CodeViewRenderedFileItem<LAnnotation> {
|
|
57
|
+
interface CodeViewRenderedFileItem<LAnnotation, Caret> {
|
|
50
58
|
id: string;
|
|
51
59
|
type: 'file';
|
|
52
60
|
item: CodeViewFileItem<LAnnotation>;
|
|
53
61
|
version: number | undefined;
|
|
54
62
|
element: HTMLElement;
|
|
55
|
-
instance: VirtualizedFile<LAnnotation>;
|
|
63
|
+
instance: VirtualizedFile<LAnnotation, Caret>;
|
|
56
64
|
}
|
|
57
|
-
type CodeViewRenderedItem<LAnnotation> = CodeViewRenderedDiffItem<LAnnotation> | CodeViewRenderedFileItem<LAnnotation>;
|
|
58
|
-
interface CodeViewSlotSnapshot<LAnnotation> {
|
|
59
|
-
items: CodeViewRenderedItem<LAnnotation>[] | undefined;
|
|
65
|
+
type CodeViewRenderedItem<LAnnotation, Caret> = CodeViewRenderedDiffItem<LAnnotation, Caret> | CodeViewRenderedFileItem<LAnnotation, Caret>;
|
|
66
|
+
interface CodeViewSlotSnapshot<LAnnotation, Caret> {
|
|
67
|
+
items: CodeViewRenderedItem<LAnnotation, Caret>[] | undefined;
|
|
60
68
|
header: HTMLElement | undefined;
|
|
61
69
|
footer: HTMLElement | undefined;
|
|
62
70
|
}
|
|
@@ -64,32 +72,42 @@ interface CodeViewLineSelection {
|
|
|
64
72
|
id: string;
|
|
65
73
|
range: SelectedLineRange;
|
|
66
74
|
}
|
|
67
|
-
interface CodeViewCoordinator<LAnnotation> {
|
|
75
|
+
interface CodeViewCoordinator<LAnnotation, Caret> {
|
|
68
76
|
hasHeaderRenderers: boolean;
|
|
69
77
|
hasAnnotationRenderer: boolean;
|
|
70
78
|
hasGutterRenderer: boolean;
|
|
71
|
-
onSnapshotChange(snapshot: CodeViewSlotSnapshot<LAnnotation> | undefined): void;
|
|
79
|
+
onSnapshotChange(snapshot: CodeViewSlotSnapshot<LAnnotation, Caret> | undefined): void;
|
|
72
80
|
}
|
|
73
|
-
type CodeViewScrollListener<LAnnotation> = (scrollTop: number, viewer: CodeView<LAnnotation>) => void;
|
|
81
|
+
type CodeViewScrollListener<LAnnotation, Caret> = (scrollTop: number, viewer: CodeView<LAnnotation, Caret>) => void;
|
|
74
82
|
type OverloadCallbackArgs<TCallback> = TCallback extends ((...args: infer TArgs) => unknown) ? TArgs : never;
|
|
75
83
|
type CallbackReturn<TCallback> = TCallback extends ((...args: never[]) => infer TReturn) ? TReturn : never;
|
|
76
|
-
type OverloadFileCallbackArgs<LAnnotation, TKey extends keyof FileOptions<LAnnotation>> = OverloadCallbackArgs<NonNullable<FileOptions<LAnnotation>[TKey]>>;
|
|
77
|
-
type OverloadDiffCallbackArgs<LAnnotation, TKey extends keyof FileDiffOptions<LAnnotation>> = OverloadCallbackArgs<NonNullable<FileDiffOptions<LAnnotation>[TKey]>>;
|
|
78
|
-
type CodeViewOptionCallback<LAnnotation, TKey extends keyof FileOptions<LAnnotation> & keyof FileDiffOptions<LAnnotation>> = {
|
|
79
|
-
(...args: [...OverloadFileCallbackArgs<LAnnotation, TKey>, context: CodeViewFileItemContext<LAnnotation>]): CallbackReturn<NonNullable<FileOptions<LAnnotation>[TKey]>>;
|
|
80
|
-
(...args: [...OverloadDiffCallbackArgs<LAnnotation, TKey>, context: CodeViewDiffItemContext<LAnnotation>]): CallbackReturn<NonNullable<FileDiffOptions<LAnnotation>[TKey]>>;
|
|
84
|
+
type OverloadFileCallbackArgs<LAnnotation, Caret, TKey extends keyof FileOptions<LAnnotation, Caret>> = OverloadCallbackArgs<NonNullable<FileOptions<LAnnotation, Caret>[TKey]>>;
|
|
85
|
+
type OverloadDiffCallbackArgs<LAnnotation, Caret, TKey extends keyof FileDiffOptions<LAnnotation, Caret>> = OverloadCallbackArgs<NonNullable<FileDiffOptions<LAnnotation, Caret>[TKey]>>;
|
|
86
|
+
type CodeViewOptionCallback<LAnnotation, Caret, TKey extends keyof FileOptions<LAnnotation, Caret> & keyof FileDiffOptions<LAnnotation, Caret>> = {
|
|
87
|
+
(...args: [...OverloadFileCallbackArgs<LAnnotation, Caret, TKey>, context: CodeViewFileItemContext<LAnnotation, Caret>]): CallbackReturn<NonNullable<FileOptions<LAnnotation, Caret>[TKey]>>;
|
|
88
|
+
(...args: [...OverloadDiffCallbackArgs<LAnnotation, Caret, TKey>, context: CodeViewDiffItemContext<LAnnotation, Caret>]): CallbackReturn<NonNullable<FileDiffOptions<LAnnotation, Caret>[TKey]>>;
|
|
81
89
|
};
|
|
82
90
|
declare const CODE_VIEW_DIFF_OPTION_KEYS: readonly ['theme', 'disableLineNumbers', 'overflow', 'themeType', 'disableFileHeader', 'disableVirtualizationBuffers', 'preferredHighlighter', 'useCSSClasses', 'useTokenTransformer', 'tokenizeMaxLineLength', 'tokenizeMaxLength', 'unsafeCSS', 'diffStyle', 'diffIndicators', 'disableBackground', 'expandUnchanged', 'loadDiffFiles', 'collapsedContextThreshold', 'lineDiffType', 'maxLineDiffLength', 'expansionLineCount', 'lineHoverHighlight', 'enableTokenInteractionsOnWhitespace', 'enableGutterUtility', '__debugPointerEvents', 'enableLineSelection', 'controlledSelection', 'disableErrorHandling'];
|
|
83
91
|
type CodeViewDiffOptionKeys = (typeof CODE_VIEW_DIFF_OPTION_KEYS)[number];
|
|
84
92
|
declare const CODE_VIEW_FILE_OPTION_KEYS: readonly ['theme', 'disableLineNumbers', 'overflow', 'themeType', 'disableFileHeader', 'disableVirtualizationBuffers', 'preferredHighlighter', 'useCSSClasses', 'useTokenTransformer', 'tokenizeMaxLineLength', 'tokenizeMaxLength', 'unsafeCSS', 'lineHoverHighlight', 'enableTokenInteractionsOnWhitespace', 'enableGutterUtility', '__debugPointerEvents', 'enableLineSelection', 'controlledSelection', 'disableErrorHandling'];
|
|
85
|
-
type CodeViewPassThroughOptions<LAnnotation> = Pick<FileDiffOptions<LAnnotation>, CodeViewDiffOptionKeys>;
|
|
93
|
+
type CodeViewPassThroughOptions<LAnnotation, Caret> = Pick<FileDiffOptions<LAnnotation, Caret>, CodeViewDiffOptionKeys>;
|
|
94
|
+
type CodeViewMode = 'file' | 'diff';
|
|
95
|
+
interface CodeViewItemEditCompleteEventMap<LAnnotation, Caret> {
|
|
96
|
+
file: FileEditCompleteEvent<LAnnotation, Caret>;
|
|
97
|
+
diff: FileDiffEditCompleteEvent<LAnnotation, Caret>;
|
|
98
|
+
}
|
|
99
|
+
interface CodeViewModeItemMap<LAnnotation> {
|
|
100
|
+
file: CodeViewFileItem<LAnnotation>;
|
|
101
|
+
diff: CodeViewDiffItem<LAnnotation>;
|
|
102
|
+
}
|
|
103
|
+
type CodeViewItemEditCompleteHandler<LAnnotation, Caret> = <TMode extends CodeViewMode>(event: CodeViewItemEditCompleteEventMap<LAnnotation, Caret>[TMode], item: CodeViewModeItemMap<LAnnotation>[TMode], nextItem: CodeViewModeItemMap<LAnnotation>[TMode]) => EditCompletionDecision;
|
|
86
104
|
declare const CODE_VIEW_SHARED_CALLBACK_KEYS: readonly ['renderCustomHeader', 'renderHeaderPrefix', 'renderHeaderFilenameSuffix', 'renderHeaderMetadata', 'renderAnnotation', 'renderGutterUtility', 'onPostRender', 'onGutterUtilityClick', 'onLineClick', 'onLineNumberClick', 'onLineEnter', 'onLineLeave', 'onTokenClick', 'onTokenEnter', 'onTokenLeave'];
|
|
87
105
|
declare const CODE_VIEW_SELECTION_CALLBACK_KEYS: readonly ['onLineSelected', 'onLineSelectionStart', 'onLineSelectionChange', 'onLineSelectionEnd'];
|
|
88
106
|
type CodeViewSharedCallbackKeys = (typeof CODE_VIEW_SHARED_CALLBACK_KEYS)[number];
|
|
89
107
|
type CodeViewSelectionCallbackKeys = (typeof CODE_VIEW_SELECTION_CALLBACK_KEYS)[number];
|
|
90
|
-
type CodeViewSharedCallbackOptions<LAnnotation> = { [TKey in CodeViewSharedCallbackKeys]?: CodeViewOptionCallback<LAnnotation, TKey> };
|
|
91
|
-
type CodeViewSelectionCallbackOptions<LAnnotation> = { [TKey in CodeViewSelectionCallbackKeys]?: CodeViewOptionCallback<LAnnotation, TKey> };
|
|
92
|
-
interface CodeViewOptions<LAnnotation> extends CodeViewPassThroughOptions<LAnnotation>, CodeViewSharedCallbackOptions<LAnnotation>, CodeViewSelectionCallbackOptions<LAnnotation> {
|
|
108
|
+
type CodeViewSharedCallbackOptions<LAnnotation, Caret> = { [TKey in CodeViewSharedCallbackKeys]?: CodeViewOptionCallback<LAnnotation, Caret, TKey> };
|
|
109
|
+
type CodeViewSelectionCallbackOptions<LAnnotation, Caret> = { [TKey in CodeViewSelectionCallbackKeys]?: CodeViewOptionCallback<LAnnotation, Caret, TKey> };
|
|
110
|
+
interface CodeViewOptions<LAnnotation, Caret> extends CodeViewPassThroughOptions<LAnnotation, Caret>, CodeViewSharedCallbackOptions<LAnnotation, Caret>, CodeViewSelectionCallbackOptions<LAnnotation, Caret> {
|
|
93
111
|
hunkSeparators?: Exclude<HunkSeparators, 'custom'>;
|
|
94
112
|
itemMetrics?: Partial<VirtualFileMetrics>;
|
|
95
113
|
pointerEventsOnScroll?: boolean;
|
|
@@ -98,36 +116,48 @@ interface CodeViewOptions<LAnnotation> extends CodeViewPassThroughOptions<LAnnot
|
|
|
98
116
|
controlledSelection?: boolean;
|
|
99
117
|
onSelectedLinesChange?(selection: CodeViewLineSelection | null): void;
|
|
100
118
|
layout?: CodeViewLayout;
|
|
119
|
+
/**
|
|
120
|
+
* Return an in-memory retention key for an item's editable draft and
|
|
121
|
+
* undo/redo history. Called only when CodeView creates the item's editor.
|
|
122
|
+
*/
|
|
123
|
+
getEditStateKey?(item: CodeViewItem<LAnnotation>): string | undefined;
|
|
101
124
|
/**
|
|
102
125
|
* Create an editor for an item entering edit mode (`edit: true`). Providing
|
|
103
126
|
* this option is what enables item editing. Pass the given options into the
|
|
104
|
-
* editor constructor — `new Editor(options)` —
|
|
105
|
-
* document changes to `onItemEditChange
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
127
|
+
* editor constructor — `new Editor(editorType, options, editStateKey)` —
|
|
128
|
+
* so CodeView can route document changes to `onItemEditChange` and retain
|
|
129
|
+
* history when requested. CodeView owns the returned editor's lifecycle: it
|
|
130
|
+
* associates with the edited item, suspends and resumes rendering across
|
|
131
|
+
* virtualization unmounts and collapse, and tears the editor down when the
|
|
132
|
+
* session ends (edit off or removal).
|
|
110
133
|
*/
|
|
111
|
-
createEditor
|
|
134
|
+
createEditor?<EType extends EditorType>(editorType: EType, options: CodeViewCreateEditorOptions<EType, LAnnotation, Caret>, editStateKey?: string): Editor<EType, LAnnotation, Caret>;
|
|
112
135
|
/**
|
|
113
|
-
* Called
|
|
114
|
-
*
|
|
136
|
+
* Called with the editor's `EditorChangeEvent` and the owning item whenever
|
|
137
|
+
* the edited document changes, from internal (edit) changes or external
|
|
138
|
+
* (CodeViewItem) changes. The event contains that same attached editor.
|
|
139
|
+
*
|
|
140
|
+
* Do not feed these changes back into item state.
|
|
115
141
|
*/
|
|
116
|
-
onItemEditChange?(
|
|
142
|
+
onItemEditChange?(event: EditorChangeEvent<EditorType, LAnnotation, Caret>, item: CodeViewItem<LAnnotation>): void;
|
|
117
143
|
/**
|
|
118
|
-
* Called once when an
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* `reset()`/`cleanUp()` teardown.
|
|
144
|
+
* Called once when an edit session ends: edit to false, the item is removed
|
|
145
|
+
* from items, or the viewer tears down (`reset()`/`cleanUp()`, where the
|
|
146
|
+
* result is not installed because the viewer is going away). Collapse does
|
|
147
|
+
* not call it because the session remains active until the item expands.
|
|
123
148
|
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
149
|
+
* The event carries the completed `file`/`fileDiff` built from the edit
|
|
150
|
+
* session. `item` is the item that owned the session, and `nextItem` is
|
|
151
|
+
* the accepted replacement CodeView built from it: the event's completed
|
|
152
|
+
* value and annotations, `edit: false`, and a bumped `version`. Return
|
|
153
|
+
* `'accept'` to install the edit — CodeView applies `nextItem` through the
|
|
154
|
+
* item update path when the item still exists, and a controlled owner puts
|
|
155
|
+
* the same `nextItem` into its state — or `'reject'` to revert. The event is
|
|
156
|
+
* frozen; re-key the accepted value in place (`event.fileDiff.cacheKey =
|
|
157
|
+
* '…'`) before accepting. The event contains the detached editor with its
|
|
158
|
+
* final pre-detach state.
|
|
129
159
|
*/
|
|
130
|
-
onItemEditComplete
|
|
160
|
+
onItemEditComplete?: CodeViewItemEditCompleteHandler<LAnnotation, Caret>;
|
|
131
161
|
/** Render a non-virtualized element at the very start of the scroll content,
|
|
132
162
|
* before the first item. It is always rendered and scrolls with the content.
|
|
133
163
|
* Return the same element across calls and mutate it in place to update;
|
|
@@ -142,8 +172,8 @@ interface CodeViewOptions<LAnnotation> extends CodeViewPassThroughOptions<LAnnot
|
|
|
142
172
|
* performance fairly significantly */
|
|
143
173
|
__devOnlyValidateItemHeights?: boolean;
|
|
144
174
|
}
|
|
145
|
-
type CodeViewItemMap<LAnnotation> = Map<string, CodeViewContextItem<LAnnotation>>;
|
|
146
|
-
declare class CodeView<LAnnotation = undefined> {
|
|
175
|
+
type CodeViewItemMap<LAnnotation, Caret> = Map<string, CodeViewContextItem<LAnnotation, Caret>>;
|
|
176
|
+
declare class CodeView<LAnnotation = undefined, Caret = undefined> {
|
|
147
177
|
static __STOP: boolean;
|
|
148
178
|
static __lastScrollPosition: number;
|
|
149
179
|
type: 'advanced';
|
|
@@ -193,8 +223,9 @@ declare class CodeView<LAnnotation = undefined> {
|
|
|
193
223
|
private options;
|
|
194
224
|
private workerManager;
|
|
195
225
|
private isReadySubscription;
|
|
226
|
+
private pendingHighlighterTheme;
|
|
196
227
|
private isContainerManaged;
|
|
197
|
-
constructor(options?: CodeViewOptions<LAnnotation>, workerManager?: WorkerPoolManager | undefined, isContainerManaged?: boolean);
|
|
228
|
+
constructor(options?: CodeViewOptions<LAnnotation, Caret>, workerManager?: WorkerPoolManager | undefined, isContainerManaged?: boolean);
|
|
198
229
|
private getLayout;
|
|
199
230
|
private getItemTopOffset;
|
|
200
231
|
private computeMetricsCache;
|
|
@@ -239,9 +270,10 @@ declare class CodeView<LAnnotation = undefined> {
|
|
|
239
270
|
/**
|
|
240
271
|
* Get the live editor for an item currently in edit mode. Use this to drive
|
|
241
272
|
* editor APIs CodeView does not wrap (applyEdits, undo, setMarkers, …).
|
|
242
|
-
* Returns undefined once the item
|
|
273
|
+
* Returns undefined once the item's session ends (edit off or removal); a
|
|
274
|
+
* collapsed item keeps its suspended editor.
|
|
243
275
|
*/
|
|
244
|
-
getEditor(itemId: string):
|
|
276
|
+
getEditor(itemId: string): CodeViewEditor<LAnnotation, Caret> | undefined;
|
|
245
277
|
updateItem(input: CodeViewItem<LAnnotation>): boolean;
|
|
246
278
|
updateItemId(oldId: string, newId: string): boolean;
|
|
247
279
|
addItem(input: CodeViewItem<LAnnotation>): void;
|
|
@@ -257,44 +289,59 @@ declare class CodeView<LAnnotation = undefined> {
|
|
|
257
289
|
private appendItemsInternal;
|
|
258
290
|
private canSkipRenderForAppend;
|
|
259
291
|
onThemeChange(): void;
|
|
260
|
-
setOptions(options: CodeViewOptions<LAnnotation> | undefined): void;
|
|
261
|
-
capturePendingLayoutAnchor(nextItems?: Readonly<CodeViewItemMap<LAnnotation>>): void;
|
|
292
|
+
setOptions(options: CodeViewOptions<LAnnotation, Caret> | undefined): void;
|
|
293
|
+
capturePendingLayoutAnchor(nextItems?: Readonly<CodeViewItemMap<LAnnotation, Caret>>): void;
|
|
262
294
|
render(immediate?: boolean): void;
|
|
263
295
|
private isReady;
|
|
264
296
|
private clearReadySubscription;
|
|
265
|
-
|
|
297
|
+
private isSharedHighlighterReady;
|
|
298
|
+
instanceChanged(instance: CodeViewVirtualizedInstanceKey, layoutDirty: boolean): void;
|
|
266
299
|
getWindowSpecs(): VirtualWindowSpecs;
|
|
267
300
|
getContainerElement(): HTMLElement | undefined;
|
|
268
301
|
getHeaderElement(): HTMLElement | undefined;
|
|
269
302
|
getFooterElement(): HTMLElement | undefined;
|
|
270
|
-
getRenderedItems(): CodeViewRenderedItem<LAnnotation>[];
|
|
271
|
-
setSlotCoordinator(coordinator?: CodeViewCoordinator<LAnnotation>): boolean;
|
|
272
|
-
getSlotSnapshot(coordinator: CodeViewCoordinator<LAnnotation>): CodeViewSlotSnapshot<LAnnotation> | undefined;
|
|
303
|
+
getRenderedItems(): CodeViewRenderedItem<LAnnotation, Caret>[];
|
|
304
|
+
setSlotCoordinator(coordinator?: CodeViewCoordinator<LAnnotation, Caret>): boolean;
|
|
305
|
+
getSlotSnapshot(coordinator: CodeViewCoordinator<LAnnotation, Caret>): CodeViewSlotSnapshot<LAnnotation, Caret> | undefined;
|
|
273
306
|
private buildSlotSnapshot;
|
|
274
|
-
subscribeToScroll(listener: CodeViewScrollListener<LAnnotation>): () => void;
|
|
275
|
-
getLocalTopForInstance(instance:
|
|
307
|
+
subscribeToScroll(listener: CodeViewScrollListener<LAnnotation, Caret>): () => void;
|
|
308
|
+
getLocalTopForInstance(instance: CodeViewVirtualizedInstanceKey): number;
|
|
276
309
|
getTopForItem(id: string): number | undefined;
|
|
277
310
|
private createItem;
|
|
278
311
|
private applySelectedLines;
|
|
279
312
|
private syncSelection;
|
|
280
313
|
private isItemInEditMode;
|
|
281
314
|
/**
|
|
282
|
-
*
|
|
315
|
+
* Lazily create and attach the editor for a mounted edit-mode item. Called
|
|
283
316
|
* from the render loop so every mounted item passes through it: fresh
|
|
284
317
|
* mounts, remounts after virtualization released the item, and items whose
|
|
285
318
|
* edit flag was just turned on. Editors persist across unmounts, so a
|
|
286
|
-
* remounted item
|
|
287
|
-
*
|
|
288
|
-
*
|
|
319
|
+
* remounted item resumes its existing editor and retained document; the
|
|
320
|
+
* instance retains its private session model so the remount
|
|
321
|
+
* paints the edited text without changing the host input.
|
|
289
322
|
*/
|
|
290
323
|
private attachItemEditor;
|
|
291
324
|
/**
|
|
292
|
-
*
|
|
293
|
-
* off
|
|
294
|
-
*
|
|
295
|
-
*
|
|
325
|
+
* Reconcile the editors CodeView is holding: complete sessions for items
|
|
326
|
+
* whose edit turned off or that were removed, and suspend sessions for
|
|
327
|
+
* collapsed items (the editor tears down, the record and the instance's
|
|
328
|
+
* session stay for the next expand). Attachment happens in the render loop
|
|
329
|
+
* via attachItemEditor.
|
|
296
330
|
*/
|
|
297
331
|
private syncItemEditors;
|
|
332
|
+
private requireItemFromState;
|
|
333
|
+
/**
|
|
334
|
+
* Item-instance `onEditComplete` adapter for file items: builds the
|
|
335
|
+
* accepted next item, hands it to `onItemEditComplete` alongside the event
|
|
336
|
+
* and the owning item, and translates the identity of the returned item to
|
|
337
|
+
* the component return contract.
|
|
338
|
+
*/
|
|
339
|
+
private completeFileItemEdit;
|
|
340
|
+
/**
|
|
341
|
+
* Item-instance `onEditComplete` adapter for diff items; see
|
|
342
|
+
* completeFileItemEdit.
|
|
343
|
+
*/
|
|
344
|
+
private completeDiffItemEdit;
|
|
298
345
|
private renamePendingScrollTarget;
|
|
299
346
|
private renamePendingLayoutAnchor;
|
|
300
347
|
private createFileOptionsPrototype;
|
|
@@ -472,5 +519,5 @@ declare class CodeView<LAnnotation = undefined> {
|
|
|
472
519
|
private getFitPerfectlyOverscroll;
|
|
473
520
|
}
|
|
474
521
|
//#endregion
|
|
475
|
-
export { CODE_VIEW_DIFF_OPTION_KEYS, CODE_VIEW_FILE_OPTION_KEYS, CodeView, CodeViewCoordinator, CodeViewLineSelection, CodeViewOptions, CodeViewRenderedDiffItem, CodeViewRenderedFileItem, CodeViewRenderedItem, CodeViewScrollListener, CodeViewSlotSnapshot };
|
|
522
|
+
export { CODE_VIEW_DIFF_OPTION_KEYS, CODE_VIEW_FILE_OPTION_KEYS, CodeView, CodeViewCoordinator, CodeViewCreateEditorOptions, CodeViewItemEditCompleteEventMap, CodeViewItemEditCompleteHandler, CodeViewLineSelection, CodeViewMode, CodeViewModeItemMap, CodeViewOptions, CodeViewRenderedDiffItem, CodeViewRenderedFileItem, CodeViewRenderedItem, CodeViewScrollListener, CodeViewSlotSnapshot };
|
|
476
523
|
//# sourceMappingURL=CodeView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeView.d.ts","names":[],"sources":["../../src/components/CodeView.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeView.d.ts","names":[],"sources":["../../src/components/CodeView.ts"],"mappings":";;;;;;;;;;;;KAmEY,2BAAA,eACI,UAAA,wBAGZ,QAAA,CAAS,IAAA,CAAK,aAAA,CAAc,KAAA,EAAO,WAAA,EAAa,KAAA;AAAA,KAE/C,cAAA,uBACD,MAAA,SAAe,WAAA,EAAa,KAAA,IAC5B,MAAA,cAAoB,WAAA,EAAa,KAAA;AAAA,UAqD3B,2BAAA;EA7DE;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