@openclaw/diffs 2026.5.27 → 2026.5.28-beta.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/README.md +1 -0
- package/dist/assets/viewer-runtime.js +50 -50
- package/dist/index.js +419 -81
- package/node_modules/@pierre/diffs/dist/components/CodeView.d.ts +22 -7
- package/node_modules/@pierre/diffs/dist/components/CodeView.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/CodeView.js +202 -105
- package/node_modules/@pierre/diffs/dist/components/CodeView.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/File.d.ts +2 -0
- package/node_modules/@pierre/diffs/dist/components/File.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/File.js +13 -9
- package/node_modules/@pierre/diffs/dist/components/File.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/FileDiff.d.ts +2 -0
- package/node_modules/@pierre/diffs/dist/components/FileDiff.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/FileDiff.js +12 -6
- package/node_modules/@pierre/diffs/dist/components/FileDiff.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/VirtualizedFile.d.ts +4 -2
- package/node_modules/@pierre/diffs/dist/components/VirtualizedFile.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/VirtualizedFile.js +23 -6
- package/node_modules/@pierre/diffs/dist/components/VirtualizedFile.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.d.ts +9 -8
- package/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.js +329 -142
- package/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/constants.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/index.d.ts +2 -2
- package/node_modules/@pierre/diffs/dist/index.js +3 -3
- package/node_modules/@pierre/diffs/dist/react/index.d.ts +2 -2
- package/node_modules/@pierre/diffs/dist/renderers/DiffHunksRenderer.d.ts +1 -0
- package/node_modules/@pierre/diffs/dist/renderers/DiffHunksRenderer.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/renderers/DiffHunksRenderer.js +12 -5
- package/node_modules/@pierre/diffs/dist/renderers/DiffHunksRenderer.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/renderers/FileRenderer.d.ts +1 -0
- package/node_modules/@pierre/diffs/dist/renderers/FileRenderer.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/renderers/FileRenderer.js +4 -1
- package/node_modules/@pierre/diffs/dist/renderers/FileRenderer.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/ssr/index.d.ts +2 -2
- package/node_modules/@pierre/diffs/dist/types.d.ts +7 -1
- package/node_modules/@pierre/diffs/dist/types.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/utils/computeEstimatedDiffHeights.d.ts +28 -0
- package/node_modules/@pierre/diffs/dist/utils/computeEstimatedDiffHeights.d.ts.map +1 -0
- package/node_modules/@pierre/diffs/dist/utils/computeEstimatedDiffHeights.js +111 -0
- package/node_modules/@pierre/diffs/dist/utils/computeEstimatedDiffHeights.js.map +1 -0
- package/node_modules/@pierre/diffs/dist/utils/getDiffHunksRendererOptions.d.ts +8 -0
- package/node_modules/@pierre/diffs/dist/utils/getDiffHunksRendererOptions.d.ts.map +1 -0
- package/node_modules/@pierre/diffs/dist/utils/getDiffHunksRendererOptions.js +31 -0
- package/node_modules/@pierre/diffs/dist/utils/getDiffHunksRendererOptions.js.map +1 -0
- package/node_modules/@pierre/diffs/dist/utils/getFileRendererOptions.d.ts +8 -0
- package/node_modules/@pierre/diffs/dist/utils/getFileRendererOptions.d.ts.map +1 -0
- package/node_modules/@pierre/diffs/dist/utils/getFileRendererOptions.js +24 -0
- package/node_modules/@pierre/diffs/dist/utils/getFileRendererOptions.js.map +1 -0
- package/node_modules/@pierre/diffs/dist/utils/iterateOverDiff.js +29 -30
- package/node_modules/@pierre/diffs/dist/utils/iterateOverDiff.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/utils/parsePatchFiles.js +8 -1
- package/node_modules/@pierre/diffs/dist/utils/parsePatchFiles.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/utils/virtualDiffLayout.d.ts +65 -0
- package/node_modules/@pierre/diffs/dist/utils/virtualDiffLayout.d.ts.map +1 -0
- package/node_modules/@pierre/diffs/dist/utils/virtualDiffLayout.js +94 -0
- package/node_modules/@pierre/diffs/dist/utils/virtualDiffLayout.js.map +1 -0
- package/node_modules/@pierre/diffs/dist/worker/WorkerPoolManager.d.ts +4 -1
- package/node_modules/@pierre/diffs/dist/worker/WorkerPoolManager.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/worker/WorkerPoolManager.js +49 -24
- package/node_modules/@pierre/diffs/dist/worker/WorkerPoolManager.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/worker/types.d.ts +2 -0
- package/node_modules/@pierre/diffs/dist/worker/types.d.ts.map +1 -1
- package/node_modules/@pierre/diffs/dist/worker/worker-portable.js +163 -40
- package/node_modules/@pierre/diffs/dist/worker/worker-portable.js.map +1 -1
- package/node_modules/@pierre/diffs/dist/worker/worker.js +60 -30
- package/node_modules/@pierre/diffs/dist/worker/worker.js.map +1 -1
- package/node_modules/@pierre/diffs/package.json +1 -1
- package/node_modules/@shikijs/core/node_modules/@shikijs/types/LICENSE +22 -0
- package/node_modules/@shikijs/core/node_modules/@shikijs/types/README.md +7 -0
- package/node_modules/@shikijs/core/node_modules/@shikijs/types/dist/index.d.mts +885 -0
- package/node_modules/@shikijs/core/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/node_modules/@shikijs/core/node_modules/@shikijs/types/package.json +36 -0
- package/node_modules/@shikijs/engine-javascript/node_modules/@shikijs/types/LICENSE +22 -0
- package/node_modules/@shikijs/engine-javascript/node_modules/@shikijs/types/README.md +7 -0
- package/node_modules/@shikijs/engine-javascript/node_modules/@shikijs/types/dist/index.d.mts +885 -0
- package/node_modules/@shikijs/engine-javascript/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/node_modules/@shikijs/engine-javascript/node_modules/@shikijs/types/package.json +36 -0
- package/node_modules/@shikijs/engine-oniguruma/node_modules/@shikijs/types/LICENSE +22 -0
- package/node_modules/@shikijs/engine-oniguruma/node_modules/@shikijs/types/README.md +7 -0
- package/node_modules/@shikijs/engine-oniguruma/node_modules/@shikijs/types/dist/index.d.mts +885 -0
- package/node_modules/@shikijs/engine-oniguruma/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/node_modules/@shikijs/engine-oniguruma/node_modules/@shikijs/types/package.json +36 -0
- package/node_modules/@shikijs/langs/dist/apex.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/bird2.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/c3.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/cobol.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/csharp.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/css.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/dart.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/emacs-lisp.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/es-tag-sql.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/go.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/hack.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/julia.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/just.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/kusto.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/latex.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/luau.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/nextflow-groovy.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/php.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/ruby.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/sql.mjs +1 -1
- package/node_modules/@shikijs/langs/dist/typespec.mjs +1 -1
- package/node_modules/@shikijs/langs/package.json +6 -3
- package/node_modules/@shikijs/themes/node_modules/@shikijs/types/LICENSE +22 -0
- package/node_modules/@shikijs/themes/node_modules/@shikijs/types/README.md +7 -0
- package/node_modules/@shikijs/themes/node_modules/@shikijs/types/dist/index.d.mts +885 -0
- package/node_modules/@shikijs/themes/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/node_modules/@shikijs/themes/node_modules/@shikijs/types/package.json +36 -0
- package/node_modules/@shikijs/transformers/node_modules/@shikijs/types/LICENSE +22 -0
- package/node_modules/@shikijs/transformers/node_modules/@shikijs/types/README.md +7 -0
- package/node_modules/@shikijs/transformers/node_modules/@shikijs/types/dist/index.d.mts +885 -0
- package/node_modules/@shikijs/transformers/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/node_modules/@shikijs/transformers/node_modules/@shikijs/types/package.json +36 -0
- package/node_modules/@shikijs/types/dist/index.d.mts +686 -684
- package/node_modules/@shikijs/types/dist/index.mjs +8 -7
- package/node_modules/@shikijs/types/package.json +6 -3
- package/node_modules/diff/CONTRIBUTING.md +1 -1
- package/node_modules/diff/dist/diff.js +32 -73
- package/node_modules/diff/dist/diff.min.js +1 -1
- package/node_modules/diff/libcjs/diff/word.d.ts.map +1 -1
- package/node_modules/diff/libcjs/diff/word.js +31 -15
- package/node_modules/diff/libcjs/util/string.d.ts +2 -14
- package/node_modules/diff/libcjs/util/string.d.ts.map +1 -1
- package/node_modules/diff/libcjs/util/string.js +2 -61
- package/node_modules/diff/libesm/diff/word.d.ts.map +1 -1
- package/node_modules/diff/libesm/diff/word.js +31 -16
- package/node_modules/diff/libesm/util/string.d.ts +2 -14
- package/node_modules/diff/libesm/util/string.d.ts.map +1 -1
- package/node_modules/diff/libesm/util/string.js +2 -58
- package/node_modules/diff/package.json +24 -22
- package/node_modules/diff/release-notes.md +0 -28
- package/node_modules/shiki/node_modules/@shikijs/langs/LICENSE +22 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/README.md +7 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/1c-query.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/1c-query.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/1c.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/1c.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/abap.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/abap.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/actionscript-3.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/actionscript-3.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ada.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ada.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/adoc.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/adoc.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-expression.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-expression.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-html.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-html.mjs +16 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-inline-style.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-inline-style.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-inline-template.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-inline-template.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-let-declaration.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-let-declaration.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-template-blocks.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-template-blocks.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-template.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-template.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-ts.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/angular-ts.mjs +18 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/apache.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/apache.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/apex.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/apex.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/apl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/apl.mjs +16 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/applescript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/applescript.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ara.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ara.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/asciidoc.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/asciidoc.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/asm.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/asm.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/astro.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/astro.mjs +18 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/awk.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/awk.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ballerina.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ballerina.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bash.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bash.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bat.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bat.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/batch.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/batch.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/be.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/be.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/beancount.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/beancount.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/berry.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/berry.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bibtex.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bibtex.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bicep.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bicep.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bird.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bird.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bird2.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bird2.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/blade.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/blade.mjs +20 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bsl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/bsl.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/c.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/c.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/c3.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/c3.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cadence.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cadence.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cairo.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cairo.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cdc.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cdc.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cjs.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cjs.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/clarity.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/clarity.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/clj.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/clj.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/clojure.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/clojure.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/closure-templates.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/closure-templates.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cmake.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cmake.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cmd.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cmd.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cobol.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cobol.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/codeowners.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/codeowners.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/codeql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/codeql.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/coffee.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/coffee.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/coffeescript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/coffeescript.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/common-lisp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/common-lisp.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/console.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/console.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/coq.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/coq.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cpp-macro.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cpp-macro.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cpp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cpp.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cql.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/crystal.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/crystal.mjs +18 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cs.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cs.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/csharp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/csharp.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/css.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/css.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/csv.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/csv.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cts.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cts.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cue.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cue.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cypher.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/cypher.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/d.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/d.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dart.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dart.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dax.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dax.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/desktop.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/desktop.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/diff.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/diff.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/docker.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/docker.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dockerfile.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dockerfile.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dotenv.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dotenv.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dream-maker.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/dream-maker.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/edge.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/edge.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/elisp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/elisp.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/elixir.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/elixir.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/elm.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/elm.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/emacs-lisp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/emacs-lisp.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/erb.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/erb.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/erl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/erl.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/erlang.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/erlang.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-css.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-css.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-glsl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-glsl.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-html.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-html.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-sql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-sql.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-xml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/es-tag-xml.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f03.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f03.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f08.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f08.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f18.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f18.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f77.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f77.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f90.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f90.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f95.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/f95.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fennel.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fennel.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fish.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fish.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fluent.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fluent.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/for.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/for.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fortran-fixed-form.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fortran-fixed-form.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fortran-free-form.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fortran-free-form.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fs.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fs.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fsharp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fsharp.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fsl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/fsl.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ftl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ftl.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gd.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gd.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gdresource.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gdresource.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gdscript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gdscript.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gdshader.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gdshader.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/genie.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/genie.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gherkin.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gherkin.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/git-commit.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/git-commit.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/git-rebase.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/git-rebase.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gjs.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gjs.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gleam.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gleam.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/glimmer-js.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/glimmer-js.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/glimmer-ts.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/glimmer-ts.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/glsl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/glsl.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gn.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gn.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gnuplot.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gnuplot.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/go.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/go.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gql.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/graphql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/graphql.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/groovy.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/groovy.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gts.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/gts.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hack.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hack.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/haml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/haml.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/handlebars.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/handlebars.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/haskell.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/haskell.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/haxe.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/haxe.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hbs.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hbs.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hcl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hcl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hjson.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hjson.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hlsl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hlsl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hs.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hs.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/html-derivative.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/html.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/html.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/http.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/http.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hurl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hurl.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hxml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hxml.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hy.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/hy.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/imba.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/imba.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/index.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/index.mjs +353 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ini.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ini.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jade.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jade.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/java.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/java.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/javascript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jinja-html.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jinja-html.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jinja.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jinja.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jison.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jison.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jl.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/js.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/js.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/json.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/json.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/json5.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/json5.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jsonc.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jsonc.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jsonl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jsonl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jsonnet.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jsonnet.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jssm.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jssm.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jsx.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/julia.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/julia.mjs +16 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/just.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/just.mjs +18 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kdl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kdl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kotlin.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kotlin.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kql.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kt.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kt.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kts.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kts.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kusto.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/kusto.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/latex.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/latex.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lean.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lean.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lean4.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lean4.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/less.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/less.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/liquid.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/liquid.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lisp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lisp.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lit.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lit.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/llvm.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/llvm.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/log.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/log.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/logo.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/logo.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lua.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/lua.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/luau.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/luau.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/make.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/make.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/makefile.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/makefile.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/markdown-nix.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/markdown-nix.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/markdown-vue.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/markdown.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/marko.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/marko.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/matlab.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/matlab.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mbt.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mbt.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mbti.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mbti.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/md.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/md.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mdc.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mdx.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mdx.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mediawiki.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mediawiki.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mermaid.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mermaid.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mips.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mips.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mipsasm.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mipsasm.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mjs.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mjs.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mmd.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mmd.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mojo.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mojo.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/moonbit.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/moonbit.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/move.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/move.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mts.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/mts.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nar.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nar.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/narrat.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/narrat.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nextflow-groovy.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nextflow-groovy.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nextflow.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nextflow.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nf.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nf.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nginx.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nginx.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nim.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nim.mjs +20 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nix.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nix.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nu.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nu.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nushell.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/nushell.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/objc.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/objc.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/objective-c.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/objective-c.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/objective-cpp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/objective-cpp.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ocaml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ocaml.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/odin.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/odin.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/openscad.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/openscad.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/pascal.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/pascal.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/perl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/perl.mjs +16 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/perl6.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/perl6.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/php.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/php.mjs +18 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/pkl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/pkl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/plsql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/plsql.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/po.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/po.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/polar.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/polar.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/postcss.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/postcss.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/pot.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/pot.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/potx.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/potx.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/powerquery.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/powerquery.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/powershell.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/powershell.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/prisma.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/prisma.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/prolog.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/prolog.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/properties.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/properties.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/proto.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/proto.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/protobuf.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/protobuf.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ps.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ps.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ps1.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ps1.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/pug.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/pug.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/puppet.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/puppet.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/purescript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/purescript.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/py.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/py.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/python.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/python.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ql.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/qml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/qml.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/qmldir.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/qmldir.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/qss.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/qss.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/r.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/r.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/racket.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/racket.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/raku.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/raku.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/razor.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/razor.mjs +10 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rb.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rb.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/reg.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/reg.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/regex.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/regex.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/regexp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/regexp.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rel.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rel.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/riscv.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/riscv.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ron.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ron.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rosmsg.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rosmsg.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rs.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rs.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rst.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rst.mjs +22 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ruby.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ruby.mjs +30 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rust.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/rust.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sas.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sas.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sass.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sass.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/scad.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/scad.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/scala.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/scala.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/scheme.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/scheme.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/scss.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/scss.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sdbl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sdbl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sh.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sh.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shader.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shader.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shaderlab.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shaderlab.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shell.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shell.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shellscript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shellsession.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/shellsession.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/smalltalk.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/smalltalk.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/solidity.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/solidity.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/soy.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/soy.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sparql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sparql.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/spl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/spl.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/splunk.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/splunk.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/sql.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ssh-config.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ssh-config.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/stata.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/stata.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/styl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/styl.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/stylus.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/stylus.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/surql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/surql.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/surrealql.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/surrealql.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/svelte.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/svelte.mjs +14 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/swift.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/swift.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/system-verilog.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/system-verilog.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/systemd.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/systemd.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/talon.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/talon.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/talonscript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/talonscript.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tasl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tasl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tcl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tcl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/templ.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/templ.mjs +12 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/terraform.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/terraform.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tex.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tex.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tf.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tf.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tfvars.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tfvars.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/toml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/toml.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tres.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tres.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ts-tags.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ts-tags.mjs +18 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ts.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/ts.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tscn.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tscn.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tsp.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tsp.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tsv.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tsv.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tsx.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/turtle.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/turtle.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/twig.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/twig.mjs +18 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/typ.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/typ.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/typescript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/typespec.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/typespec.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/typst.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/typst.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/v.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/v.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vala.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vala.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vb.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vb.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/verilog.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/verilog.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vhdl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vhdl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vim.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vim.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/viml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/viml.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vimscript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vimscript.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-directives.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-html.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-html.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-interpolations.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-vine.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue-vine.mjs +18 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vy.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vy.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vyper.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/vyper.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wasm.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wasm.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wenyan.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wenyan.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wgsl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wgsl.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wiki.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wiki.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wikitext.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wikitext.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wit.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wit.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wl.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wolfram.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/wolfram.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/xml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/xml.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/xsl.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/xsl.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/yaml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/yml.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/yml.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/zenscript.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/zenscript.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/zig.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/zig.mjs +5 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/zsh.d.mts +3 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/dist/zsh.mjs +2 -0
- package/node_modules/shiki/node_modules/@shikijs/langs/package.json +384 -0
- package/node_modules/shiki/node_modules/@shikijs/types/LICENSE +22 -0
- package/node_modules/shiki/node_modules/@shikijs/types/README.md +7 -0
- package/node_modules/shiki/node_modules/@shikijs/types/dist/index.d.mts +885 -0
- package/node_modules/shiki/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/node_modules/shiki/node_modules/@shikijs/types/package.json +36 -0
- package/npm-shrinkwrap.json +90 -14
- package/package.json +10 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":["CreatePatchOptionsNonabortable","ElementContent","BundledLanguage","BundledTheme","CodeToHastOptions","DecorationItem","HighlighterGeneric","LanguageRegistration","ShikiTransformer","ThemedToken","ThemeRegistrationResolved","CodeViewScrollBehavior","FileContents","SupportedLanguages","HighlighterTypes","DiffsThemeNames","ThemesType","Record","DiffsHighlighter","ChangeTypes","ParsedPatch","FileDiffMetadata","ContextContent","ChangeContent","Hunk","MergeConflictMarkerRowType","MergeConflictMarkerRow","HunkLineType","ThemeTypes","HunkSeparators","LineDiffTypes","DiffIndicators","BaseCodeOptions","BaseDiffOptions","BaseDiffOptionsWithDefaults","Omit","Required","CustomPreProperties","PrePropertiesConfig","Pick","FileHeaderRenderMode","RenderHeaderMetadataCallback","Element","RenderHeaderPrefixCallback","RenderFileMetadata","ExtensionFormatMap","AnnotationSide","SelectionSide","SelectedLineRange","OptionalMetadata","T","LineAnnotation","DiffLineAnnotation","CodeViewFileItem","CodeViewDiffItem","CodeViewItem","CodeViewPositionScrollTarget","CodeViewLineScrollTarget","CodeViewRangeScrollTarget","NumericScrollLineAnchor","CodeViewItemScrollTarget","CodeViewScrollTarget","MergeConflictResolution","MergeConflictRegion","MergeConflictActionPayload","GapSpan","LineSpans","AnnotationSpan","LineTypes","LineInfo","SharedRenderState","LineEventBaseProps","HTMLElement","DiffLineEventBaseProps","TokenEventBase","DiffTokenEventBaseProps","ObservedAnnotationNodes","ObservedGridNodes","CodeColumnType","HunkData","AnnotationLineMap","LAnnotation","ExpansionDirections","ThemedFileResult","RenderDiffFilesResult","ThemedDiffResult","HunkExpansionRegion","ForceDiffPlainTextOptions","Map","ForceFilePlainTextOptions","RenderFileOptions","RenderDiffOptions","RenderFileResult","RenderDiffResult","RenderedFileASTCache","RenderRange","RenderedDiffASTCache","RenderWindow","VirtualWindowSpecs","VirtualFileMetrics","CodeViewLayout","SmoothScrollSettings","SelectionPoint","DiffAcceptRejectHunkType","ConflictResolverTypes","DiffAcceptRejectHunkConfig","ProcessFileConflictData","AppliedThemeStyleCache","StickySpecs"],"sources":["../src/types.d.ts"],"sourcesContent":["import type { CreatePatchOptionsNonabortable } from 'diff';\nimport type { ElementContent } from 'hast';\nimport type { BundledLanguage, BundledTheme, CodeToHastOptions, DecorationItem, HighlighterGeneric, LanguageRegistration, ShikiTransformer, ThemedToken, ThemeRegistrationResolved } from 'shiki';\nexport type { CreatePatchOptionsNonabortable };\nexport type CodeViewScrollBehavior = 'instant' | 'smooth' | 'smooth-auto';\n/**\n * Represents a file's contents for generating diffs via `parseDiffFromFile` or\n * for when rendering a file directly using the File components\n */\nexport interface FileContents {\n /** Filename used for display in headers and for inferring the language for\n * syntax highlighting. */\n name: string;\n /** The raw text contents of the file. */\n contents: string;\n /** Explicitly set the syntax highlighting language instead of inferring from\n * filename. Generally you should not be setting this. */\n lang?: SupportedLanguages;\n /** Optional header passed to the jsdiff library's `createTwoFilesPatch`. */\n header?: string;\n /** This unique key is only used for Worker Pools to avoid subsequent requests\n * if we've already highlighted the file. Please note that if you modify the\n * `contents` or `name`, you must update the `cacheKey`. */\n cacheKey?: string;\n}\nexport type HighlighterTypes = 'shiki-js' | 'shiki-wasm';\nexport type { BundledLanguage, CodeToHastOptions, DecorationItem, LanguageRegistration, ShikiTransformer, ThemeRegistrationResolved, ThemedToken, };\nexport type DiffsThemeNames = BundledTheme | 'pierre-dark' | 'pierre-dark-soft' | 'pierre-light' | 'pierre-light-soft' | (string & {});\nexport type ThemesType = Record<'dark' | 'light', DiffsThemeNames>;\n/**\n * A Shiki highlighter instance configured with the library's supported\n * languages and themes. Used internally to generate syntax-highlighted AST\n * from file contents. By default diffs will ensure that only 1 highlighter is\n * instantiated per thread and shared for all syntax highlighting. This\n * applies to the main thread and worker threads.\n */\nexport type DiffsHighlighter = HighlighterGeneric<SupportedLanguages, DiffsThemeNames>;\n/**\n * Describes the type of change for a file in a diff.\n * - `change`: File content was modified, name unchanged.\n * - `rename-pure`: File was renamed/moved without content changes (100% similarity).\n * - `rename-changed`: File was renamed/moved and content was also modified.\n * - `new`: A new file was added.\n * - `deleted`: An existing file was removed.\n */\nexport type ChangeTypes = 'change' | 'rename-pure' | 'rename-changed' | 'new' | 'deleted';\n/**\n * Represents a parsed patch file, typically corresponding to a single commit.\n * Returned by `parsePatchFiles` when parsing raw patch/diff strings.\n */\nexport interface ParsedPatch {\n /** Optional raw introductory text before the file diffs that may have been\n * included in the patch (e.g., commit message, author, date). */\n patchMetadata?: string;\n /** Array of file changes contained in the patch. */\n files: FileDiffMetadata[];\n}\n/**\n * Represents a block of unchanged context lines within a hunk. Basically a\n * batch of lines in a hunk that are prefixed with a space ` `. Consecutive\n * lines prefixed with a ` ` are grouped together into a single ContextContent.\n */\nexport interface ContextContent {\n type: 'context';\n /** Number of unchanged lines in this context block. */\n lines: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where this context\n * block starts.\n */\n additionLineIndex: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where this context\n * block starts.\n */\n deletionLineIndex: number;\n}\n/**\n * Represents a block of changes (additions and/or deletions) within a hunk.\n * Consecutive `+` and `-` lines are grouped together into a single\n * ChangeContent.\n */\nexport interface ChangeContent {\n type: 'change';\n /** Number of lines prefixed with `-` in this change block. */\n deletions: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where the deleted\n * lines start.\n */\n deletionLineIndex: number;\n /** Number of lines prefixed with `+` in this change block. */\n additions: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where the added\n * lines start.\n */\n additionLineIndex: number;\n}\n/**\n * Represents a single hunk from a diff, corresponding to\n * one `@@ ... @@` block.\n */\nexport interface Hunk {\n /**\n * Number of unchanged lines between the previous hunk (or file start) and\n * this hunk.\n */\n collapsedBefore: number;\n /**\n * Starting line number in the new file version, parsed from the `+X`\n * in the hunk header.\n */\n additionStart: number;\n /**\n * Total line count in the new file version for this hunk, parsed from\n * `+X,count` in the hunk header. If this hunk was viewed in `diffStyle:\n * split` this would correspond to the number of lines in the right\n * `additions` column. It includes both `context` lines and lines\n * prefixed with `+`.\n */\n additionCount: number;\n /** This corresponds to the number of lines prefixed with `+` in this hunk. */\n additionLines: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where this hunk's\n * content starts.\n */\n additionLineIndex: number;\n /**\n * Starting line number in the old file version, parsed from the `-X`\n * in the hunk header.\n */\n deletionStart: number;\n /**\n * Total line count in the old file version for this hunk, parsed from\n * `-X,count` in the hunk header. If this hunk was viewed in `diffStyle:\n * split` this would correspond to the number of lines in the left\n * `deletions` column. It includes both `context` lines and lines\n * prefixed with `-`.\n */\n deletionCount: number;\n /** This corresponds to the number of lines prefixed with `-` in this hunk. */\n deletionLines: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where this hunk's\n * content starts.\n */\n deletionLineIndex: number;\n /**\n * Array of content segments within this hunk, each representing either\n * a context line group or a change group.\n */\n hunkContent: (ContextContent | ChangeContent)[];\n /**\n * Function/method name that appears after the `@@` markers if it existed in\n * the diff.\n */\n hunkContext?: string;\n /** Raw hunk header string (e.g., `@@ -1,5 +1,7 @@`). */\n hunkSpecs?: string;\n /**\n * Starting line index for this hunk when rendered in split (side-by-side)\n * view.\n */\n splitLineStart: number;\n /** Total rendered line count for this hunk in split view. */\n splitLineCount: number;\n /** Starting line index for this hunk when rendered in unified view. */\n unifiedLineStart: number;\n /** Total rendered line count for this hunk in unified view. */\n unifiedLineCount: number;\n /**\n * True if the old file version has no trailing newline at end of file. This\n * is parsed from the patch file directly at the end of the hunk. If the\n * final hunkContent is a `context` group, then both values will be true or\n * false together. If it's from a `change` content group, then it may differ\n * depending on the patch.\n */\n noEOFCRDeletions: boolean;\n /**\n * True if the new file version has no trailing newline at end of file. This\n * is parsed from the patch file directly at the end of the hunk. If the\n * final hunkContent is a `context` group, then both values will be true or\n * false together. If it's from a `change` content group, then it may differ\n * depending on the patch.\n */\n noEOFCRAdditions: boolean;\n}\n/**\n * Metadata and content for a single file's diff. Think of this as a JSON\n * compatible representation of a diff for a single file.\n */\nexport interface FileDiffMetadata {\n /** The file's name and path. */\n name: string;\n /** Previous file path, present only if file was renamed or moved. */\n prevName?: string;\n /**\n * Explicitly override the syntax highlighting language instead of inferring\n * from filename. This will never be set by default, since all internal diff\n * APIs will attempt to detect the language automatically. If you'd like to\n * specify a language override, you can do so via the method `setLanguageOverride`\n */\n lang?: SupportedLanguages;\n /**\n * Object ID for the new file content parsed from the `index` line in a\n * patch file.\n */\n newObjectId?: string;\n /**\n * Object ID for the previous file content parsed from the `index` line in a\n * patch file.\n */\n prevObjectId?: string;\n /**\n * Git file mode parsed from the diff (e.g., `100644` for regular files) when\n * present in the patch metadata.\n */\n mode?: string;\n /** Previous git file mode, present if the mode changed. */\n prevMode?: string;\n /** The type of change for this file. */\n type: ChangeTypes;\n /** Array of diff hunks containing line-level change information. Each hunk\n * corresponds to a `@@ -X,X +X,X @@` group in a diff. */\n hunks: Hunk[];\n /** Pre-computed line size for this diff if rendered in `split` diffStyle. */\n splitLineCount: number;\n /** Pre-computed line size for this diff if rendered in `unified` diffStyle. */\n unifiedLineCount: number;\n /**\n * Whether the diff was parsed from a patch file (true) or generated from\n * full file contents (false).\n *\n * When true, `deletionLines`/`additionLines` contain only the lines present\n * in the patch and hunk expansion is unavailable.\n *\n * When false, they contain the complete file contents.\n */\n isPartial: boolean;\n /**\n * Array of lines from previous version of the file. If `isPartial` is false,\n * it means that `deletionLines` can be considered the entire contents of the\n * old version of the file. Otherwise `deletionLines` will just be an array\n * of all the content processed from the `context` and `deletion` lines of\n * the patch.\n */\n deletionLines: string[];\n /**\n * Array of lines from new version of the file. If `isPartial` is false, it\n * means that `additionLines` can be considered the entire contents of the\n * new version of the file. Otherwise `additionLines` will just be an array\n * of all the content processed from the `context` and `addition` lines of\n * the patch.\n */\n additionLines: string[];\n /**\n * This unique key is only used for Worker Pools to avoid subsequent requests\n * to highlight if we've already highlighted the diff. Please note that if\n * you modify the contents of the diff in any way, you will need to update\n * the `cacheKey`.\n */\n cacheKey?: string;\n}\nexport type MergeConflictMarkerRowType = 'marker-start' | 'marker-base' | 'marker-separator' | 'marker-end';\nexport interface MergeConflictMarkerRow {\n type: MergeConflictMarkerRowType;\n hunkIndex: number;\n /** Index into `hunk.hunkContent` for the structural block this row belongs to. */\n contentIndex: number;\n conflictIndex: number;\n lineText: string;\n /** Unified rendered-row index where this virtual row should be injected. */\n lineIndex: number;\n}\nexport type SupportedLanguages = BundledLanguage | 'text' | 'ansi' | (string & {});\nexport type HunkLineType = 'context' | 'expanded' | 'addition' | 'deletion' | 'metadata';\nexport type ThemeTypes = 'system' | 'light' | 'dark';\n/**\n * The `'custom'` variant is deprecated and will be removed in a future version.\n */\nexport type HunkSeparators = 'simple' | 'metadata' | 'line-info' | 'line-info-basic' | 'custom';\nexport type LineDiffTypes = 'word-alt' | 'word' | 'char' | 'none';\nexport type DiffIndicators = 'classic' | 'bars' | 'none';\nexport interface BaseCodeOptions {\n theme?: DiffsThemeNames | ThemesType;\n disableLineNumbers?: boolean;\n overflow?: 'scroll' | 'wrap';\n themeType?: ThemeTypes;\n collapsed?: boolean;\n disableFileHeader?: boolean;\n disableVirtualizationBuffers?: boolean;\n stickyHeader?: boolean;\n preferredHighlighter?: HighlighterTypes;\n useCSSClasses?: boolean;\n useTokenTransformer?: boolean;\n tokenizeMaxLineLength?: number;\n tokenizeMaxLength?: number;\n unsafeCSS?: string;\n}\nexport interface BaseDiffOptions extends BaseCodeOptions {\n diffStyle?: 'unified' | 'split';\n diffIndicators?: DiffIndicators;\n disableBackground?: boolean;\n hunkSeparators?: HunkSeparators;\n expandUnchanged?: boolean;\n collapsedContextThreshold?: number;\n lineDiffType?: LineDiffTypes;\n maxLineDiffLength?: number;\n expansionLineCount?: number;\n /**\n * Options forwarded to the underlying diff algorithm when computing diffs\n * from file contents (oldFile/newFile). Has no effect on pre-parsed patches.\n */\n parseDiffOptions?: CreatePatchOptionsNonabortable;\n}\nexport type BaseDiffOptionsWithDefaults = Required<Omit<BaseDiffOptions, 'unsafeCSS' | 'preferredHighlighter' | 'parseDiffOptions'>>;\nexport type CustomPreProperties = Record<string, string | number | undefined>;\nexport interface PrePropertiesConfig extends Required<Pick<BaseDiffOptions, 'diffIndicators' | 'disableBackground' | 'disableLineNumbers' | 'overflow'>> {\n type: 'diff' | 'file';\n split: boolean;\n totalLines: number;\n customProperties?: CustomPreProperties;\n}\nexport type FileHeaderRenderMode = 'default' | 'custom';\nexport type RenderHeaderMetadataCallback = (fileDiff: FileDiffMetadata) => Element | string | number | null | undefined;\nexport type RenderHeaderPrefixCallback = (fileDiff: FileDiffMetadata) => Element | string | number | null | undefined;\nexport type RenderFileMetadata = (file: FileContents) => Element | string | number | null | undefined;\nexport type ExtensionFormatMap = Record<string, SupportedLanguages | undefined>;\nexport type AnnotationSide = 'deletions' | 'additions';\nexport type SelectionSide = 'deletions' | 'additions';\nexport interface SelectedLineRange {\n start: number;\n side?: SelectionSide;\n end: number;\n endSide?: SelectionSide;\n}\ntype OptionalMetadata<T> = T extends undefined ? {\n metadata?: undefined;\n} : {\n metadata: T;\n};\nexport type LineAnnotation<T = undefined> = {\n lineNumber: number;\n} & OptionalMetadata<T>;\nexport type DiffLineAnnotation<T = undefined> = {\n side: AnnotationSide;\n lineNumber: number;\n} & OptionalMetadata<T>;\nexport type CodeViewFileItem<T = undefined> = {\n id: string;\n type: 'file';\n file: FileContents;\n annotations?: LineAnnotation<T>[];\n version?: number;\n collapsed?: boolean;\n};\nexport type CodeViewDiffItem<T = undefined> = {\n id: string;\n type: 'diff';\n fileDiff: FileDiffMetadata;\n annotations?: DiffLineAnnotation<T>[];\n version?: number;\n collapsed?: boolean;\n};\nexport type CodeViewItem<T = undefined> = CodeViewFileItem<T> | CodeViewDiffItem<T>;\nexport interface CodeViewPositionScrollTarget {\n type: 'position';\n position: number;\n behavior?: CodeViewScrollBehavior;\n}\nexport interface CodeViewLineScrollTarget {\n type: 'line';\n id: string;\n lineNumber: number;\n side?: SelectionSide;\n align?: 'start' | 'center' | 'end' | 'nearest';\n offset?: number;\n behavior?: CodeViewScrollBehavior;\n}\nexport interface CodeViewRangeScrollTarget {\n type: 'range';\n id: string;\n range: SelectedLineRange;\n align?: 'start' | 'center' | 'end' | 'nearest';\n offset?: number;\n behavior?: CodeViewScrollBehavior;\n}\nexport interface NumericScrollLineAnchor {\n lineNumber: number;\n top: number;\n side?: SelectionSide;\n}\nexport interface CodeViewItemScrollTarget {\n type: 'item';\n id: string;\n align?: 'start' | 'center' | 'end' | 'nearest';\n offset?: number;\n behavior?: CodeViewScrollBehavior;\n}\nexport type CodeViewScrollTarget = CodeViewPositionScrollTarget | CodeViewLineScrollTarget | CodeViewRangeScrollTarget | CodeViewItemScrollTarget;\nexport type MergeConflictResolution = 'current' | 'incoming' | 'both';\nexport interface MergeConflictRegion {\n conflictIndex: number;\n startLineIndex: number;\n startLineNumber: number;\n separatorLineIndex: number;\n separatorLineNumber: number;\n endLineIndex: number;\n endLineNumber: number;\n baseMarkerLineIndex?: number;\n baseMarkerLineNumber?: number;\n}\nexport interface MergeConflictActionPayload {\n resolution: MergeConflictResolution;\n conflict: MergeConflictRegion;\n}\nexport interface GapSpan {\n type: 'gap';\n rows: number;\n}\nexport type LineSpans = GapSpan | AnnotationSpan;\nexport type LineTypes = 'change-deletion' | 'change-addition' | 'context' | 'context-expanded';\nexport interface LineInfo {\n type: LineTypes;\n lineNumber: number;\n altLineNumber?: number;\n lineIndex: number | `${number},${number}`;\n}\nexport interface SharedRenderState {\n lineInfo: (LineInfo | undefined)[] | ((shikiLineNumber: number) => LineInfo);\n}\nexport interface AnnotationSpan {\n type: 'annotation';\n hunkIndex: number;\n lineIndex: number;\n annotations: string[];\n}\nexport interface LineEventBaseProps {\n type: 'line';\n lineNumber: number;\n lineElement: HTMLElement;\n numberElement: HTMLElement;\n numberColumn: boolean;\n}\nexport interface DiffLineEventBaseProps extends Omit<LineEventBaseProps, 'type'> {\n type: 'diff-line';\n annotationSide: AnnotationSide;\n lineType: LineTypes;\n}\nexport interface TokenEventBase {\n type: 'token';\n lineNumber: number;\n lineCharStart: number;\n lineCharEnd: number;\n tokenText: string;\n tokenElement: HTMLElement;\n}\nexport interface DiffTokenEventBaseProps extends TokenEventBase {\n side: AnnotationSide;\n}\nexport interface ObservedAnnotationNodes {\n type: 'annotations';\n column1: {\n container: HTMLElement;\n child: HTMLElement;\n childHeight: number;\n };\n column2: {\n container: HTMLElement;\n child: HTMLElement;\n childHeight: number;\n };\n currentHeight: number | 'auto';\n}\nexport interface ObservedGridNodes {\n type: 'code';\n codeElement: HTMLElement;\n numberElement: HTMLElement | null;\n codeWidth: number | 'auto';\n numberWidth: number;\n}\nexport type CodeColumnType = 'unified' | 'additions' | 'deletions';\nexport interface HunkData {\n slotName: string;\n hunkIndex: number;\n lines: number;\n type: CodeColumnType;\n expandable?: {\n chunked: boolean;\n up: boolean;\n down: boolean;\n };\n}\nexport type AnnotationLineMap<LAnnotation> = Record<number, DiffLineAnnotation<LAnnotation>[] | undefined>;\nexport type ExpansionDirections = 'up' | 'down' | 'both';\nexport interface ThemedFileResult {\n code: ElementContent[];\n themeStyles: string;\n baseThemeType: 'light' | 'dark' | undefined;\n}\nexport interface RenderDiffFilesResult {\n deletionLines: ElementContent[];\n additionLines: ElementContent[];\n}\nexport interface ThemedDiffResult {\n code: RenderDiffFilesResult;\n themeStyles: string;\n baseThemeType: 'light' | 'dark' | undefined;\n}\nexport interface HunkExpansionRegion {\n fromStart: number;\n fromEnd: number;\n}\nexport interface ForceDiffPlainTextOptions {\n forcePlainText: boolean;\n startingLine?: number;\n totalLines?: number;\n expandedHunks?: Map<number, HunkExpansionRegion> | true;\n collapsedContextThreshold?: number;\n}\nexport interface ForceFilePlainTextOptions {\n forcePlainText: boolean;\n startingLine?: number;\n totalLines?: number;\n lines?: string[];\n}\nexport interface RenderFileOptions {\n theme: DiffsThemeNames | Record<'dark' | 'light', DiffsThemeNames>;\n useTokenTransformer: boolean;\n tokenizeMaxLineLength: number;\n}\nexport interface RenderDiffOptions {\n theme: DiffsThemeNames | Record<'dark' | 'light', DiffsThemeNames>;\n useTokenTransformer: boolean;\n tokenizeMaxLineLength: number;\n lineDiffType: LineDiffTypes;\n maxLineDiffLength: number;\n}\nexport interface RenderFileResult {\n result: ThemedFileResult;\n options: RenderFileOptions;\n}\nexport interface RenderDiffResult {\n result: ThemedDiffResult;\n options: RenderDiffOptions;\n}\nexport interface RenderedFileASTCache {\n file: FileContents;\n highlighted: boolean;\n options: RenderFileOptions;\n result: ThemedFileResult | undefined;\n renderRange: RenderRange | undefined;\n}\nexport interface RenderedDiffASTCache {\n diff: FileDiffMetadata;\n highlighted: boolean;\n options: RenderDiffOptions;\n result: ThemedDiffResult | undefined;\n renderRange: RenderRange | undefined;\n}\nexport interface RenderRange {\n startingLine: number;\n totalLines: number;\n bufferBefore: number;\n bufferAfter: number;\n}\nexport interface RenderWindow {\n top: number;\n bottom: number;\n}\nexport interface VirtualWindowSpecs {\n /** Absolute top edge of the active virtual window in scroll-space pixels. */\n top: number;\n /** Absolute bottom edge of the active virtual window in scroll-space pixels. */\n bottom: number;\n}\nexport interface VirtualFileMetrics {\n /** Number of rendered lines per hunk chunk when virtualization batches line rendering. */\n hunkLineCount: number;\n /** Estimated single-line row height used before a line is measured. */\n lineHeight: number;\n /** Height reserved for the file or diff header region. */\n diffHeaderHeight: number;\n /** Height reserved for each collapsed-context separator row. Only set this\n * if you customized the size of hunk separators via unsafeCSS */\n hunkSeparatorHeight?: number;\n /** Vertical spacing used around hunks and file-level padding. You should not\n * change this from the default if you aren't applying custom CSS */\n spacing: number;\n /** Optional top padding applied after the file header, or before content\n * when the header is disabled. Defaults to 0 with a header, otherwise\n * defaults to spacing if header is disabled */\n paddingTop?: number;\n /** Optional bottom padding applied after file content, and only if there is\n * code for the diff. Defaults to spacing if none provided */\n paddingBottom?: number;\n}\nexport interface CodeViewLayout {\n /** Top padding applied to the CodeView sticky container offset. */\n paddingTop: number;\n /** Bottom padding added after the final rendered item in CodeView. */\n paddingBottom: number;\n /** Vertical gap between virtualized CodeView items. */\n gap: number;\n}\nexport interface SmoothScrollSettings {\n /**\n * Natural frequency of the critically-damped spring, in rad/ms. 99% settle\n * takes roughly `6.6 / omega`; 0.015 gives ~440ms. Raise for a snappier\n * animation; lower for a longer glide.\n */\n omega: number;\n /**\n * Distance from destination (in CSS pixels) below which the spring is\n * considered settled. Must also clear `velocityEpsilon` before the\n * animation actually stops and snaps to destination.\n */\n positionEpsilon: number;\n /**\n * Velocity magnitude (in CSS pixels per millisecond) below which the\n * spring is considered effectively stationary. Pairs with\n * `positionEpsilon` to gate the settle transition.\n */\n velocityEpsilon: number;\n}\nexport interface SelectionPoint {\n lineNumber: number;\n side: SelectionSide | undefined;\n}\nexport type DiffAcceptRejectHunkType = 'accept' | 'reject' | 'both';\nexport type ConflictResolverTypes = 'current' | 'incoming' | 'both';\nexport interface DiffAcceptRejectHunkConfig {\n type: DiffAcceptRejectHunkType;\n changeIndex: number;\n}\n/**\n * Unresolved merge conflict indexes use three different coordinate spaces:\n * - source line indexes live on `conflict.*LineIndex`\n * - hunk-content indexes live on the fields below, with `startContentIndex`\n * serving as both the conflict-range start and the start-marker anchor\n * - rendered row indexes live on unresolved `markerRows`\n */\nexport interface ProcessFileConflictData {\n /** Index of the hunk that owns this unresolved conflict. */\n hunkIndex: number;\n /** First hunk-content entry that belongs to the conflict region. */\n startContentIndex: number;\n /** Last hunk-content entry that belongs to the conflict region. */\n endContentIndex: number;\n /** Hunk-content index for the current/ours change block. */\n currentContentIndex?: number;\n /** Hunk-content index for the optional base context block. */\n baseContentIndex?: number;\n /** Hunk-content index for the incoming/theirs change block. */\n incomingContentIndex?: number;\n /** Hunk-content index that anchors the end marker row. */\n endMarkerContentIndex: number;\n}\nexport interface AppliedThemeStyleCache {\n theme: DiffsThemeNames | ThemesType;\n themeStyles: string;\n themeType: ThemeTypes;\n baseThemeType: 'light' | 'dark' | undefined;\n scrollbarGutter: number | undefined;\n}\nexport interface StickySpecs {\n topOffset: number;\n height: number;\n}\n//# sourceMappingURL=types.d.ts.map"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":["CreatePatchOptionsNonabortable","ElementContent","BundledLanguage","BundledTheme","CodeToHastOptions","DecorationItem","HighlighterGeneric","LanguageRegistration","ShikiTransformer","ThemedToken","ThemeRegistrationResolved","CodeViewScrollBehavior","FileContents","SupportedLanguages","HighlighterTypes","DiffsThemeNames","ThemesType","Record","DiffsHighlighter","ChangeTypes","ParsedPatch","FileDiffMetadata","ContextContent","ChangeContent","Hunk","MergeConflictMarkerRowType","MergeConflictMarkerRow","HunkLineType","ThemeTypes","HunkSeparators","LineDiffTypes","DiffIndicators","BaseCodeOptions","BaseDiffOptions","BaseDiffOptionsWithDefaults","Omit","Required","CustomPreProperties","PrePropertiesConfig","Pick","FileHeaderRenderMode","RenderHeaderMetadataCallback","Element","RenderHeaderPrefixCallback","RenderFileMetadata","ExtensionFormatMap","AnnotationSide","SelectionSide","SelectedLineRange","OptionalMetadata","T","LineAnnotation","DiffLineAnnotation","CodeViewFileItem","CodeViewDiffItem","CodeViewItem","CodeViewPositionScrollTarget","CodeViewLineScrollTarget","CodeViewRangeScrollTarget","NumericScrollLineAnchor","CodeViewItemScrollTarget","CodeViewScrollTarget","MergeConflictResolution","MergeConflictRegion","MergeConflictActionPayload","GapSpan","LineSpans","AnnotationSpan","LineTypes","LineInfo","SharedRenderState","LineEventBaseProps","HTMLElement","DiffLineEventBaseProps","TokenEventBase","DiffTokenEventBaseProps","ObservedAnnotationNodes","ObservedGridNodes","CodeColumnType","HunkData","AnnotationLineMap","LAnnotation","ExpansionDirections","ThemedFileResult","RenderDiffFilesResult","ThemedDiffResult","HunkExpansionRegion","ForceDiffPlainTextOptions","Map","ForceFilePlainTextOptions","RenderFileOptions","RenderDiffOptions","RenderFileResult","RenderDiffResult","RenderedFileASTCache","RenderRange","RenderedDiffASTCache","RenderWindow","VirtualWindowSpecs","VirtualFileMetrics","PendingCodeViewLayoutReset","CodeViewLayout","SmoothScrollSettings","SelectionPoint","DiffAcceptRejectHunkType","ConflictResolverTypes","DiffAcceptRejectHunkConfig","ProcessFileConflictData","AppliedThemeStyleCache","StickySpecs"],"sources":["../src/types.d.ts"],"sourcesContent":["import type { CreatePatchOptionsNonabortable } from 'diff';\nimport type { ElementContent } from 'hast';\nimport type { BundledLanguage, BundledTheme, CodeToHastOptions, DecorationItem, HighlighterGeneric, LanguageRegistration, ShikiTransformer, ThemedToken, ThemeRegistrationResolved } from 'shiki';\nexport type { CreatePatchOptionsNonabortable };\nexport type CodeViewScrollBehavior = 'instant' | 'smooth' | 'smooth-auto';\n/**\n * Represents a file's contents for generating diffs via `parseDiffFromFile` or\n * for when rendering a file directly using the File components\n */\nexport interface FileContents {\n /** Filename used for display in headers and for inferring the language for\n * syntax highlighting. */\n name: string;\n /** The raw text contents of the file. */\n contents: string;\n /** Explicitly set the syntax highlighting language instead of inferring from\n * filename. Generally you should not be setting this. */\n lang?: SupportedLanguages;\n /** Optional header passed to the jsdiff library's `createTwoFilesPatch`. */\n header?: string;\n /** This unique key is only used for Worker Pools to avoid subsequent requests\n * if we've already highlighted the file. Please note that if you modify the\n * `contents` or `name`, you must update the `cacheKey`. */\n cacheKey?: string;\n}\nexport type HighlighterTypes = 'shiki-js' | 'shiki-wasm';\nexport type { BundledLanguage, CodeToHastOptions, DecorationItem, LanguageRegistration, ShikiTransformer, ThemeRegistrationResolved, ThemedToken, };\nexport type DiffsThemeNames = BundledTheme | 'pierre-dark' | 'pierre-dark-soft' | 'pierre-light' | 'pierre-light-soft' | (string & {});\nexport type ThemesType = Record<'dark' | 'light', DiffsThemeNames>;\n/**\n * A Shiki highlighter instance configured with the library's supported\n * languages and themes. Used internally to generate syntax-highlighted AST\n * from file contents. By default diffs will ensure that only 1 highlighter is\n * instantiated per thread and shared for all syntax highlighting. This\n * applies to the main thread and worker threads.\n */\nexport type DiffsHighlighter = HighlighterGeneric<SupportedLanguages, DiffsThemeNames>;\n/**\n * Describes the type of change for a file in a diff.\n * - `change`: File content was modified, name unchanged.\n * - `rename-pure`: File was renamed/moved without content changes (100% similarity).\n * - `rename-changed`: File was renamed/moved and content was also modified.\n * - `new`: A new file was added.\n * - `deleted`: An existing file was removed.\n */\nexport type ChangeTypes = 'change' | 'rename-pure' | 'rename-changed' | 'new' | 'deleted';\n/**\n * Represents a parsed patch file, typically corresponding to a single commit.\n * Returned by `parsePatchFiles` when parsing raw patch/diff strings.\n */\nexport interface ParsedPatch {\n /** Optional raw introductory text before the file diffs that may have been\n * included in the patch (e.g., commit message, author, date). */\n patchMetadata?: string;\n /** Array of file changes contained in the patch. */\n files: FileDiffMetadata[];\n}\n/**\n * Represents a block of unchanged context lines within a hunk. Basically a\n * batch of lines in a hunk that are prefixed with a space ` `. Consecutive\n * lines prefixed with a ` ` are grouped together into a single ContextContent.\n */\nexport interface ContextContent {\n type: 'context';\n /** Number of unchanged lines in this context block. */\n lines: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where this context\n * block starts.\n */\n additionLineIndex: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where this context\n * block starts.\n */\n deletionLineIndex: number;\n}\n/**\n * Represents a block of changes (additions and/or deletions) within a hunk.\n * Consecutive `+` and `-` lines are grouped together into a single\n * ChangeContent.\n */\nexport interface ChangeContent {\n type: 'change';\n /** Number of lines prefixed with `-` in this change block. */\n deletions: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where the deleted\n * lines start.\n */\n deletionLineIndex: number;\n /** Number of lines prefixed with `+` in this change block. */\n additions: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where the added\n * lines start.\n */\n additionLineIndex: number;\n}\n/**\n * Represents a single hunk from a diff, corresponding to\n * one `@@ ... @@` block.\n */\nexport interface Hunk {\n /**\n * Number of unchanged lines between the previous hunk (or file start) and\n * this hunk.\n */\n collapsedBefore: number;\n /**\n * Starting line number in the new file version, parsed from the `+X`\n * in the hunk header.\n */\n additionStart: number;\n /**\n * Total line count in the new file version for this hunk, parsed from\n * `+X,count` in the hunk header. If this hunk was viewed in `diffStyle:\n * split` this would correspond to the number of lines in the right\n * `additions` column. It includes both `context` lines and lines\n * prefixed with `+`.\n */\n additionCount: number;\n /** This corresponds to the number of lines prefixed with `+` in this hunk. */\n additionLines: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where this hunk's\n * content starts.\n */\n additionLineIndex: number;\n /**\n * Starting line number in the old file version, parsed from the `-X`\n * in the hunk header.\n */\n deletionStart: number;\n /**\n * Total line count in the old file version for this hunk, parsed from\n * `-X,count` in the hunk header. If this hunk was viewed in `diffStyle:\n * split` this would correspond to the number of lines in the left\n * `deletions` column. It includes both `context` lines and lines\n * prefixed with `-`.\n */\n deletionCount: number;\n /** This corresponds to the number of lines prefixed with `-` in this hunk. */\n deletionLines: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where this hunk's\n * content starts.\n */\n deletionLineIndex: number;\n /**\n * Array of content segments within this hunk, each representing either\n * a context line group or a change group.\n */\n hunkContent: (ContextContent | ChangeContent)[];\n /**\n * Function/method name that appears after the `@@` markers if it existed in\n * the diff.\n */\n hunkContext?: string;\n /** Raw hunk header string (e.g., `@@ -1,5 +1,7 @@`). */\n hunkSpecs?: string;\n /**\n * Starting line index for this hunk when rendered in split (side-by-side)\n * view.\n */\n splitLineStart: number;\n /** Total rendered line count for this hunk in split view. */\n splitLineCount: number;\n /** Starting line index for this hunk when rendered in unified view. */\n unifiedLineStart: number;\n /** Total rendered line count for this hunk in unified view. */\n unifiedLineCount: number;\n /**\n * True if the old file version has no trailing newline at end of file. This\n * is parsed from the patch file directly at the end of the hunk. If the\n * final hunkContent is a `context` group, then both values will be true or\n * false together. If it's from a `change` content group, then it may differ\n * depending on the patch.\n */\n noEOFCRDeletions: boolean;\n /**\n * True if the new file version has no trailing newline at end of file. This\n * is parsed from the patch file directly at the end of the hunk. If the\n * final hunkContent is a `context` group, then both values will be true or\n * false together. If it's from a `change` content group, then it may differ\n * depending on the patch.\n */\n noEOFCRAdditions: boolean;\n}\n/**\n * Metadata and content for a single file's diff. Think of this as a JSON\n * compatible representation of a diff for a single file.\n */\nexport interface FileDiffMetadata {\n /** The file's name and path. */\n name: string;\n /** Previous file path, present only if file was renamed or moved. */\n prevName?: string;\n /**\n * Explicitly override the syntax highlighting language instead of inferring\n * from filename. This will never be set by default, since all internal diff\n * APIs will attempt to detect the language automatically. If you'd like to\n * specify a language override, you can do so via the method `setLanguageOverride`\n */\n lang?: SupportedLanguages;\n /**\n * Object ID for the new file content parsed from the `index` line in a\n * patch file.\n */\n newObjectId?: string;\n /**\n * Object ID for the previous file content parsed from the `index` line in a\n * patch file.\n */\n prevObjectId?: string;\n /**\n * Git file mode parsed from the diff (e.g., `100644` for regular files) when\n * present in the patch metadata.\n */\n mode?: string;\n /** Previous git file mode, present if the mode changed. */\n prevMode?: string;\n /** The type of change for this file. */\n type: ChangeTypes;\n /** Array of diff hunks containing line-level change information. Each hunk\n * corresponds to a `@@ -X,X +X,X @@` group in a diff. */\n hunks: Hunk[];\n /** Pre-computed line size for this diff if rendered in `split` diffStyle. */\n splitLineCount: number;\n /** Pre-computed line size for this diff if rendered in `unified` diffStyle. */\n unifiedLineCount: number;\n /**\n * Whether the diff was parsed from a patch file (true) or generated from\n * full file contents (false).\n *\n * When true, `deletionLines`/`additionLines` contain only the lines present\n * in the patch and hunk expansion is unavailable.\n *\n * When false, they contain the complete file contents.\n */\n isPartial: boolean;\n /**\n * Array of lines from previous version of the file. If `isPartial` is false,\n * it means that `deletionLines` can be considered the entire contents of the\n * old version of the file. Otherwise `deletionLines` will just be an array\n * of all the content processed from the `context` and `deletion` lines of\n * the patch.\n */\n deletionLines: string[];\n /**\n * Array of lines from new version of the file. If `isPartial` is false, it\n * means that `additionLines` can be considered the entire contents of the\n * new version of the file. Otherwise `additionLines` will just be an array\n * of all the content processed from the `context` and `addition` lines of\n * the patch.\n */\n additionLines: string[];\n /**\n * This unique key is only used for Worker Pools to avoid subsequent requests\n * to highlight if we've already highlighted the diff. Please note that if\n * you modify the contents of the diff in any way, you will need to update\n * the `cacheKey`.\n */\n cacheKey?: string;\n}\nexport type MergeConflictMarkerRowType = 'marker-start' | 'marker-base' | 'marker-separator' | 'marker-end';\nexport interface MergeConflictMarkerRow {\n type: MergeConflictMarkerRowType;\n hunkIndex: number;\n /** Index into `hunk.hunkContent` for the structural block this row belongs to. */\n contentIndex: number;\n conflictIndex: number;\n lineText: string;\n /** Unified rendered-row index where this virtual row should be injected. */\n lineIndex: number;\n}\nexport type SupportedLanguages = BundledLanguage | 'text' | 'ansi' | (string & {});\nexport type HunkLineType = 'context' | 'expanded' | 'addition' | 'deletion' | 'metadata';\nexport type ThemeTypes = 'system' | 'light' | 'dark';\n/**\n * The `'custom'` variant is deprecated and will be removed in a future version.\n */\nexport type HunkSeparators = 'simple' | 'metadata' | 'line-info' | 'line-info-basic' | 'custom';\nexport type LineDiffTypes = 'word-alt' | 'word' | 'char' | 'none';\nexport type DiffIndicators = 'classic' | 'bars' | 'none';\nexport interface BaseCodeOptions {\n theme?: DiffsThemeNames | ThemesType;\n disableLineNumbers?: boolean;\n overflow?: 'scroll' | 'wrap';\n themeType?: ThemeTypes;\n collapsed?: boolean;\n disableFileHeader?: boolean;\n disableVirtualizationBuffers?: boolean;\n stickyHeader?: boolean;\n preferredHighlighter?: HighlighterTypes;\n useCSSClasses?: boolean;\n useTokenTransformer?: boolean;\n tokenizeMaxLineLength?: number;\n tokenizeMaxLength?: number;\n unsafeCSS?: string;\n}\nexport interface BaseDiffOptions extends BaseCodeOptions {\n diffStyle?: 'unified' | 'split';\n diffIndicators?: DiffIndicators;\n disableBackground?: boolean;\n hunkSeparators?: HunkSeparators;\n expandUnchanged?: boolean;\n collapsedContextThreshold?: number;\n lineDiffType?: LineDiffTypes;\n maxLineDiffLength?: number;\n expansionLineCount?: number;\n /**\n * Options forwarded to the underlying diff algorithm when computing diffs\n * from file contents (oldFile/newFile). Has no effect on pre-parsed patches.\n */\n parseDiffOptions?: CreatePatchOptionsNonabortable;\n}\nexport type BaseDiffOptionsWithDefaults = Required<Omit<BaseDiffOptions, 'unsafeCSS' | 'preferredHighlighter' | 'parseDiffOptions'>>;\nexport type CustomPreProperties = Record<string, string | number | undefined>;\nexport interface PrePropertiesConfig extends Required<Pick<BaseDiffOptions, 'diffIndicators' | 'disableBackground' | 'disableLineNumbers' | 'overflow'>> {\n type: 'diff' | 'file';\n split: boolean;\n totalLines: number;\n customProperties?: CustomPreProperties;\n}\nexport type FileHeaderRenderMode = 'default' | 'custom';\nexport type RenderHeaderMetadataCallback = (fileDiff: FileDiffMetadata) => Element | string | number | null | undefined;\nexport type RenderHeaderPrefixCallback = (fileDiff: FileDiffMetadata) => Element | string | number | null | undefined;\nexport type RenderFileMetadata = (file: FileContents) => Element | string | number | null | undefined;\nexport type ExtensionFormatMap = Record<string, SupportedLanguages | undefined>;\nexport type AnnotationSide = 'deletions' | 'additions';\nexport type SelectionSide = 'deletions' | 'additions';\nexport interface SelectedLineRange {\n start: number;\n side?: SelectionSide;\n end: number;\n endSide?: SelectionSide;\n}\ntype OptionalMetadata<T> = T extends undefined ? {\n metadata?: undefined;\n} : {\n metadata: T;\n};\nexport type LineAnnotation<T = undefined> = {\n lineNumber: number;\n} & OptionalMetadata<T>;\nexport type DiffLineAnnotation<T = undefined> = {\n side: AnnotationSide;\n lineNumber: number;\n} & OptionalMetadata<T>;\nexport type CodeViewFileItem<T = undefined> = {\n id: string;\n type: 'file';\n file: FileContents;\n annotations?: LineAnnotation<T>[];\n version?: number;\n collapsed?: boolean;\n};\nexport type CodeViewDiffItem<T = undefined> = {\n id: string;\n type: 'diff';\n fileDiff: FileDiffMetadata;\n annotations?: DiffLineAnnotation<T>[];\n version?: number;\n collapsed?: boolean;\n};\nexport type CodeViewItem<T = undefined> = CodeViewFileItem<T> | CodeViewDiffItem<T>;\nexport interface CodeViewPositionScrollTarget {\n type: 'position';\n position: number;\n behavior?: CodeViewScrollBehavior;\n}\nexport interface CodeViewLineScrollTarget {\n type: 'line';\n id: string;\n lineNumber: number;\n side?: SelectionSide;\n align?: 'start' | 'center' | 'end' | 'nearest';\n offset?: number;\n behavior?: CodeViewScrollBehavior;\n}\nexport interface CodeViewRangeScrollTarget {\n type: 'range';\n id: string;\n range: SelectedLineRange;\n align?: 'start' | 'center' | 'end' | 'nearest';\n offset?: number;\n behavior?: CodeViewScrollBehavior;\n}\nexport interface NumericScrollLineAnchor {\n lineNumber: number;\n top: number;\n side?: SelectionSide;\n}\nexport interface CodeViewItemScrollTarget {\n type: 'item';\n id: string;\n align?: 'start' | 'center' | 'end' | 'nearest';\n offset?: number;\n behavior?: CodeViewScrollBehavior;\n}\nexport type CodeViewScrollTarget = CodeViewPositionScrollTarget | CodeViewLineScrollTarget | CodeViewRangeScrollTarget | CodeViewItemScrollTarget;\nexport type MergeConflictResolution = 'current' | 'incoming' | 'both';\nexport interface MergeConflictRegion {\n conflictIndex: number;\n startLineIndex: number;\n startLineNumber: number;\n separatorLineIndex: number;\n separatorLineNumber: number;\n endLineIndex: number;\n endLineNumber: number;\n baseMarkerLineIndex?: number;\n baseMarkerLineNumber?: number;\n}\nexport interface MergeConflictActionPayload {\n resolution: MergeConflictResolution;\n conflict: MergeConflictRegion;\n}\nexport interface GapSpan {\n type: 'gap';\n rows: number;\n}\nexport type LineSpans = GapSpan | AnnotationSpan;\nexport type LineTypes = 'change-deletion' | 'change-addition' | 'context' | 'context-expanded';\nexport interface LineInfo {\n type: LineTypes;\n lineNumber: number;\n altLineNumber?: number;\n lineIndex: number | `${number},${number}`;\n}\nexport interface SharedRenderState {\n lineInfo: (LineInfo | undefined)[] | ((shikiLineNumber: number) => LineInfo);\n}\nexport interface AnnotationSpan {\n type: 'annotation';\n hunkIndex: number;\n lineIndex: number;\n annotations: string[];\n}\nexport interface LineEventBaseProps {\n type: 'line';\n lineNumber: number;\n lineElement: HTMLElement;\n numberElement: HTMLElement;\n numberColumn: boolean;\n}\nexport interface DiffLineEventBaseProps extends Omit<LineEventBaseProps, 'type'> {\n type: 'diff-line';\n annotationSide: AnnotationSide;\n lineType: LineTypes;\n}\nexport interface TokenEventBase {\n type: 'token';\n lineNumber: number;\n lineCharStart: number;\n lineCharEnd: number;\n tokenText: string;\n tokenElement: HTMLElement;\n}\nexport interface DiffTokenEventBaseProps extends TokenEventBase {\n side: AnnotationSide;\n}\nexport interface ObservedAnnotationNodes {\n type: 'annotations';\n column1: {\n container: HTMLElement;\n child: HTMLElement;\n childHeight: number;\n };\n column2: {\n container: HTMLElement;\n child: HTMLElement;\n childHeight: number;\n };\n currentHeight: number | 'auto';\n}\nexport interface ObservedGridNodes {\n type: 'code';\n codeElement: HTMLElement;\n numberElement: HTMLElement | null;\n codeWidth: number | 'auto';\n numberWidth: number;\n}\nexport type CodeColumnType = 'unified' | 'additions' | 'deletions';\nexport interface HunkData {\n slotName: string;\n hunkIndex: number;\n lines: number;\n type: CodeColumnType;\n expandable?: {\n chunked: boolean;\n up: boolean;\n down: boolean;\n };\n}\nexport type AnnotationLineMap<LAnnotation> = Record<number, DiffLineAnnotation<LAnnotation>[] | undefined>;\nexport type ExpansionDirections = 'up' | 'down' | 'both';\nexport interface ThemedFileResult {\n code: ElementContent[];\n themeStyles: string;\n baseThemeType: 'light' | 'dark' | undefined;\n}\nexport interface RenderDiffFilesResult {\n deletionLines: ElementContent[];\n additionLines: ElementContent[];\n}\nexport interface ThemedDiffResult {\n code: RenderDiffFilesResult;\n themeStyles: string;\n baseThemeType: 'light' | 'dark' | undefined;\n}\nexport interface HunkExpansionRegion {\n fromStart: number;\n fromEnd: number;\n}\nexport interface ForceDiffPlainTextOptions {\n forcePlainText: boolean;\n startingLine?: number;\n totalLines?: number;\n expandedHunks?: Map<number, HunkExpansionRegion> | true;\n collapsedContextThreshold?: number;\n}\nexport interface ForceFilePlainTextOptions {\n forcePlainText: boolean;\n startingLine?: number;\n totalLines?: number;\n lines?: string[];\n}\nexport interface RenderFileOptions {\n theme: DiffsThemeNames | Record<'dark' | 'light', DiffsThemeNames>;\n useTokenTransformer: boolean;\n tokenizeMaxLineLength: number;\n}\nexport interface RenderDiffOptions {\n theme: DiffsThemeNames | Record<'dark' | 'light', DiffsThemeNames>;\n useTokenTransformer: boolean;\n tokenizeMaxLineLength: number;\n lineDiffType: LineDiffTypes;\n maxLineDiffLength: number;\n}\nexport interface RenderFileResult {\n result: ThemedFileResult;\n options: RenderFileOptions;\n}\nexport interface RenderDiffResult {\n result: ThemedDiffResult;\n options: RenderDiffOptions;\n}\nexport interface RenderedFileASTCache {\n file: FileContents;\n highlighted: boolean;\n options: RenderFileOptions;\n result: ThemedFileResult | undefined;\n renderRange: RenderRange | undefined;\n}\nexport interface RenderedDiffASTCache {\n diff: FileDiffMetadata;\n highlighted: boolean;\n options: RenderDiffOptions;\n result: ThemedDiffResult | undefined;\n renderRange: RenderRange | undefined;\n}\nexport interface RenderRange {\n startingLine: number;\n totalLines: number;\n bufferBefore: number;\n bufferAfter: number;\n}\nexport interface RenderWindow {\n top: number;\n bottom: number;\n}\nexport interface VirtualWindowSpecs {\n /** Absolute top edge of the active virtual window in scroll-space pixels. */\n top: number;\n /** Absolute bottom edge of the active virtual window in scroll-space pixels. */\n bottom: number;\n}\nexport interface VirtualFileMetrics {\n /** Number of rendered lines per hunk chunk when virtualization batches line rendering. */\n hunkLineCount: number;\n /** Estimated single-line row height used before a line is measured. */\n lineHeight: number;\n /** Height reserved for the file or diff header region. */\n diffHeaderHeight: number;\n /** Height reserved for each collapsed-context separator row. Only set this\n * if you customized the size of hunk separators via unsafeCSS */\n hunkSeparatorHeight?: number;\n /** Vertical spacing used around hunks and file-level padding. You should not\n * change this from the default if you aren't applying custom CSS */\n spacing: number;\n /** Optional top padding applied after the file header, or before content\n * when the header is disabled. Defaults to 0 with a header, otherwise\n * defaults to spacing if header is disabled */\n paddingTop?: number;\n /** Optional bottom padding applied after file content, and only if there is\n * code for the diff. Defaults to spacing if none provided */\n paddingBottom?: number;\n}\nexport interface PendingCodeViewLayoutReset {\n metrics?: VirtualFileMetrics;\n resetFileLayoutCache: boolean;\n resetDiffLayoutCache: boolean;\n includeEstimatedDiffHeights: boolean;\n}\nexport interface CodeViewLayout {\n /** Top padding applied to the CodeView sticky container offset. */\n paddingTop: number;\n /** Bottom padding added after the final rendered item in CodeView. */\n paddingBottom: number;\n /** Vertical gap between virtualized CodeView items. */\n gap: number;\n}\nexport interface SmoothScrollSettings {\n /**\n * Natural frequency of the critically-damped spring, in rad/ms. 99% settle\n * takes roughly `6.6 / omega`; 0.015 gives ~440ms. Raise for a snappier\n * animation; lower for a longer glide.\n */\n omega: number;\n /**\n * Distance from destination (in CSS pixels) below which the spring is\n * considered settled. Must also clear `velocityEpsilon` before the\n * animation actually stops and snaps to destination.\n */\n positionEpsilon: number;\n /**\n * Velocity magnitude (in CSS pixels per millisecond) below which the\n * spring is considered effectively stationary. Pairs with\n * `positionEpsilon` to gate the settle transition.\n */\n velocityEpsilon: number;\n}\nexport interface SelectionPoint {\n lineNumber: number;\n side: SelectionSide | undefined;\n}\nexport type DiffAcceptRejectHunkType = 'accept' | 'reject' | 'both';\nexport type ConflictResolverTypes = 'current' | 'incoming' | 'both';\nexport interface DiffAcceptRejectHunkConfig {\n type: DiffAcceptRejectHunkType;\n changeIndex: number;\n}\n/**\n * Unresolved merge conflict indexes use three different coordinate spaces:\n * - source line indexes live on `conflict.*LineIndex`\n * - hunk-content indexes live on the fields below, with `startContentIndex`\n * serving as both the conflict-range start and the start-marker anchor\n * - rendered row indexes live on unresolved `markerRows`\n */\nexport interface ProcessFileConflictData {\n /** Index of the hunk that owns this unresolved conflict. */\n hunkIndex: number;\n /** First hunk-content entry that belongs to the conflict region. */\n startContentIndex: number;\n /** Last hunk-content entry that belongs to the conflict region. */\n endContentIndex: number;\n /** Hunk-content index for the current/ours change block. */\n currentContentIndex?: number;\n /** Hunk-content index for the optional base context block. */\n baseContentIndex?: number;\n /** Hunk-content index for the incoming/theirs change block. */\n incomingContentIndex?: number;\n /** Hunk-content index that anchors the end marker row. */\n endMarkerContentIndex: number;\n}\nexport interface AppliedThemeStyleCache {\n theme: DiffsThemeNames | ThemesType;\n themeStyles: string;\n themeType: ThemeTypes;\n baseThemeType: 'light' | 'dark' | undefined;\n scrollbarGutter: number | undefined;\n}\nexport interface StickySpecs {\n topOffset: number;\n height: number;\n}\n//# sourceMappingURL=types.d.ts.map"],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FileDiffMetadata, HunkExpansionRegion, HunkSeparators, VirtualFileMetrics } from "../types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/computeEstimatedDiffHeights.d.ts
|
|
4
|
+
interface ComputeEstimatedDiffHeightsOptions {
|
|
5
|
+
fileDiff: FileDiffMetadata;
|
|
6
|
+
metrics: VirtualFileMetrics;
|
|
7
|
+
disableFileHeader: boolean;
|
|
8
|
+
hunkSeparators: HunkSeparators;
|
|
9
|
+
expandUnchanged: boolean;
|
|
10
|
+
expandedHunks: Map<number, HunkExpansionRegion> | true | undefined;
|
|
11
|
+
collapsedContextThreshold: number;
|
|
12
|
+
}
|
|
13
|
+
interface EstimatedDiffHeights {
|
|
14
|
+
splitHeight: number;
|
|
15
|
+
unifiedHeight: number;
|
|
16
|
+
}
|
|
17
|
+
declare function computeEstimatedDiffHeights({
|
|
18
|
+
fileDiff,
|
|
19
|
+
metrics,
|
|
20
|
+
disableFileHeader,
|
|
21
|
+
hunkSeparators,
|
|
22
|
+
expandUnchanged,
|
|
23
|
+
expandedHunks: configuredExpandedHunks,
|
|
24
|
+
collapsedContextThreshold
|
|
25
|
+
}: ComputeEstimatedDiffHeightsOptions): EstimatedDiffHeights;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ComputeEstimatedDiffHeightsOptions, EstimatedDiffHeights, computeEstimatedDiffHeights };
|
|
28
|
+
//# sourceMappingURL=computeEstimatedDiffHeights.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computeEstimatedDiffHeights.d.ts","names":["FileDiffMetadata","HunkExpansionRegion","HunkSeparators","VirtualFileMetrics","ComputeEstimatedDiffHeightsOptions","Map","EstimatedDiffHeights","computeEstimatedDiffHeights","fileDiff","metrics","disableFileHeader","hunkSeparators","expandUnchanged","configuredExpandedHunks","collapsedContextThreshold"],"sources":["../../src/utils/computeEstimatedDiffHeights.d.ts"],"sourcesContent":["import type { FileDiffMetadata, HunkExpansionRegion, HunkSeparators, VirtualFileMetrics } from '../types';\nexport interface ComputeEstimatedDiffHeightsOptions {\n fileDiff: FileDiffMetadata;\n metrics: VirtualFileMetrics;\n disableFileHeader: boolean;\n hunkSeparators: HunkSeparators;\n expandUnchanged: boolean;\n expandedHunks: Map<number, HunkExpansionRegion> | true | undefined;\n collapsedContextThreshold: number;\n}\nexport interface EstimatedDiffHeights {\n splitHeight: number;\n unifiedHeight: number;\n}\nexport declare function computeEstimatedDiffHeights({ fileDiff, metrics, disableFileHeader, hunkSeparators, expandUnchanged, expandedHunks: configuredExpandedHunks, collapsedContextThreshold }: ComputeEstimatedDiffHeightsOptions): EstimatedDiffHeights;\n//# sourceMappingURL=computeEstimatedDiffHeights.d.ts.map"],"mappings":";;;UACiBI,kCAAAA;YACHJ;EADGI,OAAAA,EAEJD,kBAFIC;EACHJ,iBAAAA,EAAAA,OAAAA;EACDG,cAAAA,EAEOD,cAFPC;EAEOD,eAAAA,EAAAA,OAAAA;EAEWD,aAAAA,EAAZI,GAAYJ,CAAAA,MAAAA,EAAAA,mBAAAA,CAAAA,GAAAA,IAAAA,GAAAA,SAAAA;EAAZI,yBAAAA,EAAAA,MAAAA;;AAGFC,UAAAA,oBAAAA,CAAoB;EAIbC,WAAAA,EAAAA,MAAAA;EAA8BC,aAAAA,EAAAA,MAAAA;;AAAmBE,iBAAjDH,2BAAAA,CAAiDG;EAAAA,QAAAA;EAAAA,OAAAA;EAAAA,iBAAAA;EAAAA,cAAAA;EAAAA,eAAAA;EAAAA,aAAAA,EAAmEG,uBAAnEH;EAAAA;AAAAA,CAAAA,EAAyHN,kCAAzHM,CAAAA,EAA8JJ,oBAA9JI"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { getVirtualFileHeaderRegion, getVirtualFilePaddingBottom } from "./computeVirtualFileMetrics.js";
|
|
2
|
+
import { getExpandedRegion, getLeadingHunkSeparatorLayout, getTrailingHunkSeparatorLayout } from "./virtualDiffLayout.js";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/computeEstimatedDiffHeights.ts
|
|
5
|
+
function computeEstimatedDiffHeights({ fileDiff, metrics, disableFileHeader, hunkSeparators, expandUnchanged, expandedHunks: configuredExpandedHunks, collapsedContextThreshold }) {
|
|
6
|
+
let splitHeight = getVirtualFileHeaderRegion(metrics, disableFileHeader);
|
|
7
|
+
let unifiedHeight = splitHeight;
|
|
8
|
+
const expandedHunks = expandUnchanged ? true : configuredExpandedHunks;
|
|
9
|
+
const finalHunkIndex = fileDiff.hunks.length - 1;
|
|
10
|
+
for (let hunkIndex = 0; hunkIndex < fileDiff.hunks.length; hunkIndex++) {
|
|
11
|
+
const hunk = fileDiff.hunks[hunkIndex];
|
|
12
|
+
if (hunk == null) throw new Error("computeEstimatedDiffHeights: invalid hunk index");
|
|
13
|
+
const leadingRegion = getExpandedRegion({
|
|
14
|
+
isPartial: fileDiff.isPartial,
|
|
15
|
+
rangeSize: hunk.collapsedBefore,
|
|
16
|
+
expandedHunks,
|
|
17
|
+
hunkIndex,
|
|
18
|
+
collapsedContextThreshold
|
|
19
|
+
});
|
|
20
|
+
const leadingExpandedHeight = (leadingRegion.fromStart + leadingRegion.fromEnd) * metrics.lineHeight;
|
|
21
|
+
splitHeight += leadingExpandedHeight;
|
|
22
|
+
unifiedHeight += leadingExpandedHeight;
|
|
23
|
+
if (leadingRegion.collapsedLines > 0) {
|
|
24
|
+
const separatorHeight = getLeadingHunkSeparatorLayout({
|
|
25
|
+
type: hunkSeparators,
|
|
26
|
+
metrics,
|
|
27
|
+
hunkIndex,
|
|
28
|
+
hunkSpecs: hunk.hunkSpecs
|
|
29
|
+
})?.totalHeight ?? 0;
|
|
30
|
+
splitHeight += separatorHeight;
|
|
31
|
+
unifiedHeight += separatorHeight;
|
|
32
|
+
}
|
|
33
|
+
splitHeight += hunk.splitLineCount * metrics.lineHeight;
|
|
34
|
+
unifiedHeight += hunk.unifiedLineCount * metrics.lineHeight;
|
|
35
|
+
const metadataLineCounts = getNoNewlineMetadataLineCounts(hunk);
|
|
36
|
+
splitHeight += metadataLineCounts.split * metrics.lineHeight;
|
|
37
|
+
unifiedHeight += metadataLineCounts.unified * metrics.lineHeight;
|
|
38
|
+
if (hunkIndex === finalHunkIndex && hasFinalCollapsedHunk(fileDiff)) {
|
|
39
|
+
const trailingRegion = getExpandedRegion({
|
|
40
|
+
isPartial: fileDiff.isPartial,
|
|
41
|
+
rangeSize: getTrailingRangeSize(fileDiff, hunk),
|
|
42
|
+
expandedHunks,
|
|
43
|
+
hunkIndex: fileDiff.hunks.length,
|
|
44
|
+
collapsedContextThreshold
|
|
45
|
+
});
|
|
46
|
+
const trailingExpandedHeight = (trailingRegion.fromStart + trailingRegion.fromEnd) * metrics.lineHeight;
|
|
47
|
+
splitHeight += trailingExpandedHeight;
|
|
48
|
+
unifiedHeight += trailingExpandedHeight;
|
|
49
|
+
if (trailingRegion.collapsedLines > 0) {
|
|
50
|
+
const separatorHeight = getTrailingHunkSeparatorLayout({
|
|
51
|
+
type: hunkSeparators,
|
|
52
|
+
metrics
|
|
53
|
+
})?.totalHeight ?? 0;
|
|
54
|
+
splitHeight += separatorHeight;
|
|
55
|
+
unifiedHeight += separatorHeight;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (fileDiff.hunks.length > 0) {
|
|
60
|
+
const paddingBottom = getVirtualFilePaddingBottom(metrics);
|
|
61
|
+
splitHeight += paddingBottom;
|
|
62
|
+
unifiedHeight += paddingBottom;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
splitHeight,
|
|
66
|
+
unifiedHeight
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function getNoNewlineMetadataLineCounts(hunk) {
|
|
70
|
+
if (!hunk.noEOFCRAdditions && !hunk.noEOFCRDeletions) return {
|
|
71
|
+
split: 0,
|
|
72
|
+
unified: 0
|
|
73
|
+
};
|
|
74
|
+
const lastContent = hunk.hunkContent.at(-1);
|
|
75
|
+
if (lastContent == null) return {
|
|
76
|
+
split: 0,
|
|
77
|
+
unified: 0
|
|
78
|
+
};
|
|
79
|
+
if (lastContent.type === "context") {
|
|
80
|
+
const metadataRows = lastContent.lines > 0 ? 1 : 0;
|
|
81
|
+
return {
|
|
82
|
+
split: metadataRows,
|
|
83
|
+
unified: metadataRows
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
return getChangeNoNewlineMetadataLineCounts(hunk, lastContent);
|
|
87
|
+
}
|
|
88
|
+
function getChangeNoNewlineMetadataLineCounts(hunk, content) {
|
|
89
|
+
const unified = (content.deletions > 0 && hunk.noEOFCRDeletions ? 1 : 0) + (content.additions > 0 && hunk.noEOFCRAdditions ? 1 : 0);
|
|
90
|
+
const splitDeletionHasMetadata = content.deletions > 0 && hunk.noEOFCRDeletions;
|
|
91
|
+
const splitAdditionHasMetadata = content.additions > 0 && hunk.noEOFCRAdditions;
|
|
92
|
+
return {
|
|
93
|
+
split: splitDeletionHasMetadata || splitAdditionHasMetadata ? 1 : 0,
|
|
94
|
+
unified
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function hasFinalCollapsedHunk(fileDiff) {
|
|
98
|
+
const lastHunk = fileDiff.hunks.at(-1);
|
|
99
|
+
if (lastHunk == null || fileDiff.isPartial || fileDiff.additionLines.length === 0 || fileDiff.deletionLines.length === 0) return false;
|
|
100
|
+
return lastHunk.additionLineIndex + lastHunk.additionCount < fileDiff.additionLines.length || lastHunk.deletionLineIndex + lastHunk.deletionCount < fileDiff.deletionLines.length;
|
|
101
|
+
}
|
|
102
|
+
function getTrailingRangeSize(fileDiff, hunk) {
|
|
103
|
+
const additionRemaining = fileDiff.additionLines.length - (hunk.additionLineIndex + hunk.additionCount);
|
|
104
|
+
const deletionRemaining = fileDiff.deletionLines.length - (hunk.deletionLineIndex + hunk.deletionCount);
|
|
105
|
+
if (additionRemaining !== deletionRemaining) throw new Error(`computeEstimatedDiffHeights: trailing context mismatch (additions=${additionRemaining}, deletions=${deletionRemaining}) for ${fileDiff.name}`);
|
|
106
|
+
return Math.min(additionRemaining, deletionRemaining);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { computeEstimatedDiffHeights };
|
|
111
|
+
//# sourceMappingURL=computeEstimatedDiffHeights.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computeEstimatedDiffHeights.js","names":[],"sources":["../../src/utils/computeEstimatedDiffHeights.ts"],"sourcesContent":["import type {\n ChangeContent,\n FileDiffMetadata,\n Hunk,\n HunkExpansionRegion,\n HunkSeparators,\n VirtualFileMetrics,\n} from '../types';\nimport {\n getVirtualFileHeaderRegion,\n getVirtualFilePaddingBottom,\n} from './computeVirtualFileMetrics';\nimport {\n getExpandedRegion,\n getLeadingHunkSeparatorLayout,\n getTrailingHunkSeparatorLayout,\n} from './virtualDiffLayout';\n\nexport interface ComputeEstimatedDiffHeightsOptions {\n fileDiff: FileDiffMetadata;\n metrics: VirtualFileMetrics;\n disableFileHeader: boolean;\n hunkSeparators: HunkSeparators;\n expandUnchanged: boolean;\n expandedHunks: Map<number, HunkExpansionRegion> | true | undefined;\n collapsedContextThreshold: number;\n}\n\nexport interface EstimatedDiffHeights {\n splitHeight: number;\n unifiedHeight: number;\n}\n\n// Computes both split and unified baseline heights from hunk-level metadata so\n// callers can avoid replaying the detailed rendered-line iterator.\nexport function computeEstimatedDiffHeights({\n fileDiff,\n metrics,\n disableFileHeader,\n hunkSeparators,\n expandUnchanged,\n expandedHunks: configuredExpandedHunks,\n collapsedContextThreshold,\n}: ComputeEstimatedDiffHeightsOptions): EstimatedDiffHeights {\n let splitHeight = getVirtualFileHeaderRegion(metrics, disableFileHeader);\n let unifiedHeight = splitHeight;\n const expandedHunks = expandUnchanged ? true : configuredExpandedHunks;\n const finalHunkIndex = fileDiff.hunks.length - 1;\n\n for (let hunkIndex = 0; hunkIndex < fileDiff.hunks.length; hunkIndex++) {\n const hunk = fileDiff.hunks[hunkIndex];\n if (hunk == null) {\n throw new Error('computeEstimatedDiffHeights: invalid hunk index');\n }\n\n const leadingRegion = getExpandedRegion({\n isPartial: fileDiff.isPartial,\n rangeSize: hunk.collapsedBefore,\n expandedHunks,\n hunkIndex,\n collapsedContextThreshold,\n });\n const leadingExpandedHeight =\n (leadingRegion.fromStart + leadingRegion.fromEnd) * metrics.lineHeight;\n splitHeight += leadingExpandedHeight;\n unifiedHeight += leadingExpandedHeight;\n\n if (leadingRegion.collapsedLines > 0) {\n const separatorHeight =\n getLeadingHunkSeparatorLayout({\n type: hunkSeparators,\n metrics,\n hunkIndex,\n hunkSpecs: hunk.hunkSpecs,\n })?.totalHeight ?? 0;\n splitHeight += separatorHeight;\n unifiedHeight += separatorHeight;\n }\n\n splitHeight += hunk.splitLineCount * metrics.lineHeight;\n unifiedHeight += hunk.unifiedLineCount * metrics.lineHeight;\n\n const metadataLineCounts = getNoNewlineMetadataLineCounts(hunk);\n splitHeight += metadataLineCounts.split * metrics.lineHeight;\n unifiedHeight += metadataLineCounts.unified * metrics.lineHeight;\n\n if (hunkIndex === finalHunkIndex && hasFinalCollapsedHunk(fileDiff)) {\n const trailingRegion = getExpandedRegion({\n isPartial: fileDiff.isPartial,\n rangeSize: getTrailingRangeSize(fileDiff, hunk),\n expandedHunks,\n hunkIndex: fileDiff.hunks.length,\n collapsedContextThreshold,\n });\n const trailingExpandedHeight =\n (trailingRegion.fromStart + trailingRegion.fromEnd) *\n metrics.lineHeight;\n splitHeight += trailingExpandedHeight;\n unifiedHeight += trailingExpandedHeight;\n\n if (trailingRegion.collapsedLines > 0) {\n const separatorHeight =\n getTrailingHunkSeparatorLayout({\n type: hunkSeparators,\n metrics,\n })?.totalHeight ?? 0;\n splitHeight += separatorHeight;\n unifiedHeight += separatorHeight;\n }\n }\n }\n\n if (fileDiff.hunks.length > 0) {\n const paddingBottom = getVirtualFilePaddingBottom(metrics);\n splitHeight += paddingBottom;\n unifiedHeight += paddingBottom;\n }\n\n return { splitHeight, unifiedHeight };\n}\n\nfunction getNoNewlineMetadataLineCounts(hunk: Hunk): {\n split: number;\n unified: number;\n} {\n if (!hunk.noEOFCRAdditions && !hunk.noEOFCRDeletions) {\n return { split: 0, unified: 0 };\n }\n\n const lastContent = hunk.hunkContent.at(-1);\n if (lastContent == null) {\n return { split: 0, unified: 0 };\n }\n\n if (lastContent.type === 'context') {\n const metadataRows = lastContent.lines > 0 ? 1 : 0;\n return { split: metadataRows, unified: metadataRows };\n }\n\n return getChangeNoNewlineMetadataLineCounts(hunk, lastContent);\n}\n\nfunction getChangeNoNewlineMetadataLineCounts(\n hunk: Hunk,\n content: ChangeContent\n): { split: number; unified: number } {\n const unified =\n (content.deletions > 0 && hunk.noEOFCRDeletions ? 1 : 0) +\n (content.additions > 0 && hunk.noEOFCRAdditions ? 1 : 0);\n const splitDeletionHasMetadata =\n content.deletions > 0 && hunk.noEOFCRDeletions;\n const splitAdditionHasMetadata =\n content.additions > 0 && hunk.noEOFCRAdditions;\n const split = splitDeletionHasMetadata || splitAdditionHasMetadata ? 1 : 0;\n\n return { split, unified };\n}\n\nfunction hasFinalCollapsedHunk(fileDiff: FileDiffMetadata): boolean {\n const lastHunk = fileDiff.hunks.at(-1);\n if (\n lastHunk == null ||\n fileDiff.isPartial ||\n fileDiff.additionLines.length === 0 ||\n fileDiff.deletionLines.length === 0\n ) {\n return false;\n }\n\n return (\n lastHunk.additionLineIndex + lastHunk.additionCount <\n fileDiff.additionLines.length ||\n lastHunk.deletionLineIndex + lastHunk.deletionCount <\n fileDiff.deletionLines.length\n );\n}\n\nfunction getTrailingRangeSize(fileDiff: FileDiffMetadata, hunk: Hunk): number {\n const additionRemaining =\n fileDiff.additionLines.length -\n (hunk.additionLineIndex + hunk.additionCount);\n const deletionRemaining =\n fileDiff.deletionLines.length -\n (hunk.deletionLineIndex + hunk.deletionCount);\n\n if (additionRemaining !== deletionRemaining) {\n throw new Error(\n `computeEstimatedDiffHeights: trailing context mismatch (additions=${additionRemaining}, deletions=${deletionRemaining}) for ${fileDiff.name}`\n );\n }\n return Math.min(additionRemaining, deletionRemaining);\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DiffHunksRendererOptions } from "../renderers/DiffHunksRenderer.js";
|
|
2
|
+
import { FileDiffOptions } from "../components/FileDiff.js";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/getDiffHunksRendererOptions.d.ts
|
|
5
|
+
declare function getDiffHunksRendererOptions<LAnnotation>(options: FileDiffOptions<LAnnotation> | undefined): DiffHunksRendererOptions;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getDiffHunksRendererOptions };
|
|
8
|
+
//# sourceMappingURL=getDiffHunksRendererOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDiffHunksRendererOptions.d.ts","names":["FileDiffOptions","DiffHunksRendererOptions","getDiffHunksRendererOptions","LAnnotation"],"sources":["../../src/utils/getDiffHunksRendererOptions.d.ts"],"sourcesContent":["import type { FileDiffOptions } from '../components/FileDiff';\nimport type { DiffHunksRendererOptions } from '../renderers/DiffHunksRenderer';\nexport declare function getDiffHunksRendererOptions<LAnnotation>(options: FileDiffOptions<LAnnotation> | undefined): DiffHunksRendererOptions;\n//# sourceMappingURL=getDiffHunksRendererOptions.d.ts.map"],"mappings":";;;;iBAEwBE,kDAAkDF,gBAAgBG,2BAA2BF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//#region src/utils/getDiffHunksRendererOptions.ts
|
|
2
|
+
function getDiffHunksRendererOptions(options) {
|
|
3
|
+
return {
|
|
4
|
+
theme: options?.theme,
|
|
5
|
+
disableLineNumbers: options?.disableLineNumbers,
|
|
6
|
+
overflow: options?.overflow,
|
|
7
|
+
collapsed: options?.collapsed,
|
|
8
|
+
disableFileHeader: options?.disableFileHeader,
|
|
9
|
+
disableVirtualizationBuffers: options?.disableVirtualizationBuffers,
|
|
10
|
+
stickyHeader: options?.stickyHeader,
|
|
11
|
+
preferredHighlighter: options?.preferredHighlighter,
|
|
12
|
+
useCSSClasses: options?.useCSSClasses,
|
|
13
|
+
useTokenTransformer: options?.useTokenTransformer,
|
|
14
|
+
tokenizeMaxLineLength: options?.tokenizeMaxLineLength,
|
|
15
|
+
tokenizeMaxLength: options?.tokenizeMaxLength,
|
|
16
|
+
diffStyle: options?.diffStyle,
|
|
17
|
+
diffIndicators: options?.diffIndicators,
|
|
18
|
+
disableBackground: options?.disableBackground,
|
|
19
|
+
hunkSeparators: typeof options?.hunkSeparators === "function" ? "custom" : options?.hunkSeparators,
|
|
20
|
+
expandUnchanged: options?.expandUnchanged,
|
|
21
|
+
collapsedContextThreshold: options?.collapsedContextThreshold,
|
|
22
|
+
lineDiffType: options?.lineDiffType,
|
|
23
|
+
maxLineDiffLength: options?.maxLineDiffLength,
|
|
24
|
+
expansionLineCount: options?.expansionLineCount,
|
|
25
|
+
headerRenderMode: options?.renderCustomHeader != null ? "custom" : "default"
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { getDiffHunksRendererOptions };
|
|
31
|
+
//# sourceMappingURL=getDiffHunksRendererOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDiffHunksRendererOptions.js","names":[],"sources":["../../src/utils/getDiffHunksRendererOptions.ts"],"sourcesContent":["import type { FileDiffOptions } from '../components/FileDiff';\nimport type { DiffHunksRendererOptions } from '../renderers/DiffHunksRenderer';\n\n// Build the renderer option snapshot with direct property reads. CodeView item\n// options may inherit prototype getters, so object spread can miss values.\nexport function getDiffHunksRendererOptions<LAnnotation>(\n options: FileDiffOptions<LAnnotation> | undefined\n): DiffHunksRendererOptions {\n return {\n theme: options?.theme,\n disableLineNumbers: options?.disableLineNumbers,\n overflow: options?.overflow,\n collapsed: options?.collapsed,\n disableFileHeader: options?.disableFileHeader,\n disableVirtualizationBuffers: options?.disableVirtualizationBuffers,\n stickyHeader: options?.stickyHeader,\n preferredHighlighter: options?.preferredHighlighter,\n useCSSClasses: options?.useCSSClasses,\n useTokenTransformer: options?.useTokenTransformer,\n tokenizeMaxLineLength: options?.tokenizeMaxLineLength,\n tokenizeMaxLength: options?.tokenizeMaxLength,\n diffStyle: options?.diffStyle,\n diffIndicators: options?.diffIndicators,\n disableBackground: options?.disableBackground,\n hunkSeparators:\n typeof options?.hunkSeparators === 'function'\n ? 'custom'\n : options?.hunkSeparators,\n expandUnchanged: options?.expandUnchanged,\n collapsedContextThreshold: options?.collapsedContextThreshold,\n lineDiffType: options?.lineDiffType,\n maxLineDiffLength: options?.maxLineDiffLength,\n expansionLineCount: options?.expansionLineCount,\n headerRenderMode:\n options?.renderCustomHeader != null ? 'custom' : 'default',\n };\n}\n"],"mappings":";AAKA,SAAgB,4BACd,SAC0B;AAC1B,QAAO;EACL,OAAO,SAAS;EAChB,oBAAoB,SAAS;EAC7B,UAAU,SAAS;EACnB,WAAW,SAAS;EACpB,mBAAmB,SAAS;EAC5B,8BAA8B,SAAS;EACvC,cAAc,SAAS;EACvB,sBAAsB,SAAS;EAC/B,eAAe,SAAS;EACxB,qBAAqB,SAAS;EAC9B,uBAAuB,SAAS;EAChC,mBAAmB,SAAS;EAC5B,WAAW,SAAS;EACpB,gBAAgB,SAAS;EACzB,mBAAmB,SAAS;EAC5B,gBACE,OAAO,SAAS,mBAAmB,aAC/B,WACA,SAAS;EACf,iBAAiB,SAAS;EAC1B,2BAA2B,SAAS;EACpC,cAAc,SAAS;EACvB,mBAAmB,SAAS;EAC5B,oBAAoB,SAAS;EAC7B,kBACE,SAAS,sBAAsB,OAAO,WAAW;EACpD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FileRendererOptions } from "../renderers/FileRenderer.js";
|
|
2
|
+
import { FileOptions } from "../components/File.js";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/getFileRendererOptions.d.ts
|
|
5
|
+
declare function getFileRendererOptions<LAnnotation>(options: FileOptions<LAnnotation> | undefined): FileRendererOptions;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getFileRendererOptions };
|
|
8
|
+
//# sourceMappingURL=getFileRendererOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFileRendererOptions.d.ts","names":["FileOptions","FileRendererOptions","getFileRendererOptions","LAnnotation"],"sources":["../../src/utils/getFileRendererOptions.d.ts"],"sourcesContent":["import type { FileOptions } from '../components/File';\nimport type { FileRendererOptions } from '../renderers/FileRenderer';\nexport declare function getFileRendererOptions<LAnnotation>(options: FileOptions<LAnnotation> | undefined): FileRendererOptions;\n//# sourceMappingURL=getFileRendererOptions.d.ts.map"],"mappings":";;;;iBAEwBE,6CAA6CF,YAAYG,2BAA2BF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/utils/getFileRendererOptions.ts
|
|
2
|
+
function getFileRendererOptions(options) {
|
|
3
|
+
return {
|
|
4
|
+
theme: options?.theme,
|
|
5
|
+
disableLineNumbers: options?.disableLineNumbers,
|
|
6
|
+
overflow: options?.overflow,
|
|
7
|
+
themeType: options?.themeType,
|
|
8
|
+
collapsed: options?.collapsed,
|
|
9
|
+
disableFileHeader: options?.disableFileHeader,
|
|
10
|
+
disableVirtualizationBuffers: options?.disableVirtualizationBuffers,
|
|
11
|
+
stickyHeader: options?.stickyHeader,
|
|
12
|
+
preferredHighlighter: options?.preferredHighlighter,
|
|
13
|
+
useCSSClasses: options?.useCSSClasses,
|
|
14
|
+
useTokenTransformer: options?.useTokenTransformer,
|
|
15
|
+
tokenizeMaxLineLength: options?.tokenizeMaxLineLength,
|
|
16
|
+
tokenizeMaxLength: options?.tokenizeMaxLength,
|
|
17
|
+
unsafeCSS: options?.unsafeCSS,
|
|
18
|
+
headerRenderMode: options?.renderCustomHeader != null ? "custom" : "default"
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { getFileRendererOptions };
|
|
24
|
+
//# sourceMappingURL=getFileRendererOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFileRendererOptions.js","names":[],"sources":["../../src/utils/getFileRendererOptions.ts"],"sourcesContent":["import type { FileOptions } from '../components/File';\nimport type { FileRendererOptions } from '../renderers/FileRenderer';\n\n// Build the renderer option snapshot with direct property reads. CodeView item\n// options may inherit prototype getters, so object spread can miss values.\nexport function getFileRendererOptions<LAnnotation>(\n options: FileOptions<LAnnotation> | undefined\n): FileRendererOptions {\n return {\n theme: options?.theme,\n disableLineNumbers: options?.disableLineNumbers,\n overflow: options?.overflow,\n themeType: options?.themeType,\n collapsed: options?.collapsed,\n disableFileHeader: options?.disableFileHeader,\n disableVirtualizationBuffers: options?.disableVirtualizationBuffers,\n stickyHeader: options?.stickyHeader,\n preferredHighlighter: options?.preferredHighlighter,\n useCSSClasses: options?.useCSSClasses,\n useTokenTransformer: options?.useTokenTransformer,\n tokenizeMaxLineLength: options?.tokenizeMaxLineLength,\n tokenizeMaxLength: options?.tokenizeMaxLength,\n unsafeCSS: options?.unsafeCSS,\n headerRenderMode:\n options?.renderCustomHeader != null ? 'custom' : 'default',\n };\n}\n"],"mappings":";AAKA,SAAgB,uBACd,SACqB;AACrB,QAAO;EACL,OAAO,SAAS;EAChB,oBAAoB,SAAS;EAC7B,UAAU,SAAS;EACnB,WAAW,SAAS;EACpB,WAAW,SAAS;EACpB,mBAAmB,SAAS;EAC5B,8BAA8B,SAAS;EACvC,cAAc,SAAS;EACvB,sBAAsB,SAAS;EAC/B,eAAe,SAAS;EACxB,qBAAqB,SAAS;EAC9B,uBAAuB,SAAS;EAChC,mBAAmB,SAAS;EAC5B,WAAW,SAAS;EACpB,kBACE,SAAS,sBAAsB,OAAO,WAAW;EACpD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_COLLAPSED_CONTEXT_THRESHOLD } from "../constants.js";
|
|
2
|
+
import { getExpandedRegion } from "./virtualDiffLayout.js";
|
|
2
3
|
|
|
3
4
|
//#region src/utils/iterateOverDiff.ts
|
|
4
5
|
function iterateOverDiff({ diff, diffStyle, startingLine = 0, totalLines = Infinity, expandedHunks, collapsedContextThreshold = DEFAULT_COLLAPSED_CONTEXT_THRESHOLD, callback }) {
|
|
@@ -61,14 +62,26 @@ function iterateOverDiff({ diff, diffStyle, startingLine = 0, totalLines = Infin
|
|
|
61
62
|
const hunk = diff.hunks[hunkIndex];
|
|
62
63
|
if (hunk == null) throw new Error("iterateOverDiff: invalid hunk index");
|
|
63
64
|
if (state.shouldBreak()) break;
|
|
64
|
-
const leadingRegion = getExpandedRegion(
|
|
65
|
+
const leadingRegion = getExpandedRegion({
|
|
66
|
+
isPartial: diff.isPartial,
|
|
67
|
+
rangeSize: hunk.collapsedBefore,
|
|
68
|
+
expandedHunks,
|
|
69
|
+
hunkIndex,
|
|
70
|
+
collapsedContextThreshold
|
|
71
|
+
});
|
|
65
72
|
const trailingRegion = (() => {
|
|
66
73
|
if (hunk !== state.finalHunk || !hasFinalCollapsedHunk(diff)) return;
|
|
67
74
|
const additionRemaining = diff.additionLines.length - (hunk.additionLineIndex + hunk.additionCount);
|
|
68
75
|
const deletionRemaining = diff.deletionLines.length - (hunk.deletionLineIndex + hunk.deletionCount);
|
|
69
76
|
if (additionRemaining !== deletionRemaining) throw new Error(`iterateOverDiff: trailing context mismatch (additions=${additionRemaining}, deletions=${deletionRemaining}) for ${diff.name}`);
|
|
70
77
|
const trailingRangeSize = Math.min(additionRemaining, deletionRemaining);
|
|
71
|
-
return getExpandedRegion(
|
|
78
|
+
return getExpandedRegion({
|
|
79
|
+
isPartial: diff.isPartial,
|
|
80
|
+
rangeSize: trailingRangeSize,
|
|
81
|
+
expandedHunks,
|
|
82
|
+
hunkIndex: diff.hunks.length,
|
|
83
|
+
collapsedContextThreshold
|
|
84
|
+
});
|
|
72
85
|
})();
|
|
73
86
|
const expandedLineCount = leadingRegion.fromStart + leadingRegion.fromEnd;
|
|
74
87
|
function getTrailingCollapsedAfter(unifiedLineIndex$1, splitLineIndex$1) {
|
|
@@ -352,13 +365,25 @@ function getHunkPrefixCounts({ diff, expandedHunks, collapsedContextThreshold })
|
|
|
352
365
|
for (let index = 0; index < diff.hunks.length; index++) {
|
|
353
366
|
const hunk = diff.hunks[index];
|
|
354
367
|
if (hunk == null) throw new Error("iterateOverDiff: invalid hunk summary index");
|
|
355
|
-
const leadingRegion = getExpandedRegion(
|
|
368
|
+
const leadingRegion = getExpandedRegion({
|
|
369
|
+
isPartial: diff.isPartial,
|
|
370
|
+
rangeSize: hunk.collapsedBefore,
|
|
371
|
+
expandedHunks,
|
|
372
|
+
hunkIndex: index,
|
|
373
|
+
collapsedContextThreshold
|
|
374
|
+
});
|
|
356
375
|
const leadingCount = leadingRegion.fromStart + leadingRegion.fromEnd;
|
|
357
376
|
splitCount += leadingCount + hunk.splitLineCount;
|
|
358
377
|
unifiedCount += leadingCount + hunk.unifiedLineCount;
|
|
359
378
|
if (index === finalHunkIndex && hasFinalCollapsedHunk(diff)) {
|
|
360
379
|
const trailingRangeSize = getTrailingRangeSize(diff, hunk);
|
|
361
|
-
const trailingRegion = getExpandedRegion(
|
|
380
|
+
const trailingRegion = getExpandedRegion({
|
|
381
|
+
isPartial: diff.isPartial,
|
|
382
|
+
rangeSize: trailingRangeSize,
|
|
383
|
+
expandedHunks,
|
|
384
|
+
hunkIndex: diff.hunks.length,
|
|
385
|
+
collapsedContextThreshold
|
|
386
|
+
});
|
|
362
387
|
const trailingCount = trailingRegion.fromStart + trailingRegion.fromEnd;
|
|
363
388
|
splitCount += trailingCount;
|
|
364
389
|
unifiedCount += trailingCount;
|
|
@@ -396,32 +421,6 @@ function getTrailingRangeSize(diff, hunk) {
|
|
|
396
421
|
if (additionRemaining !== deletionRemaining) throw new Error(`iterateOverDiff: trailing context mismatch (additions=${additionRemaining}, deletions=${deletionRemaining}) for ${diff.name}`);
|
|
397
422
|
return Math.min(additionRemaining, deletionRemaining);
|
|
398
423
|
}
|
|
399
|
-
function getExpandedRegion(isPartial, rangeSize, expandedHunks, hunkIndex, collapsedContextThreshold) {
|
|
400
|
-
rangeSize = Math.max(rangeSize, 0);
|
|
401
|
-
if (rangeSize === 0 || isPartial) return {
|
|
402
|
-
fromStart: 0,
|
|
403
|
-
fromEnd: 0,
|
|
404
|
-
rangeSize,
|
|
405
|
-
collapsedLines: Math.max(rangeSize, 0)
|
|
406
|
-
};
|
|
407
|
-
if (expandedHunks === true || rangeSize <= collapsedContextThreshold) return {
|
|
408
|
-
fromStart: rangeSize,
|
|
409
|
-
fromEnd: 0,
|
|
410
|
-
rangeSize,
|
|
411
|
-
collapsedLines: 0
|
|
412
|
-
};
|
|
413
|
-
const region = expandedHunks?.get(hunkIndex);
|
|
414
|
-
const fromStart = Math.min(Math.max(region?.fromStart ?? 0, 0), rangeSize);
|
|
415
|
-
const fromEnd = Math.min(Math.max(region?.fromEnd ?? 0, 0), rangeSize);
|
|
416
|
-
const expandedCount = fromStart + fromEnd;
|
|
417
|
-
const renderAll = expandedCount >= rangeSize;
|
|
418
|
-
return {
|
|
419
|
-
fromStart: renderAll ? rangeSize : fromStart,
|
|
420
|
-
fromEnd: renderAll ? 0 : fromEnd,
|
|
421
|
-
rangeSize,
|
|
422
|
-
collapsedLines: Math.max(rangeSize - expandedCount, 0)
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
424
|
function hasFinalCollapsedHunk(diff) {
|
|
426
425
|
const lastHunk = diff.hunks.at(-1);
|
|
427
426
|
if (lastHunk == null || diff.isPartial || diff.additionLines.length === 0 || diff.deletionLines.length === 0) return false;
|