@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":"VirtualizedFile.js","names":["virtualizer: Virtualizer | CodeView<LAnnotation>","metrics: VirtualFileMetrics","result: FileLayoutCheckpoint | undefined","idealStartHunk","startingLine","clampedTotalLines","bufferBefore","hunkOffsets: number[]","firstVisibleHunk: number | undefined","centerHunk: number | undefined","overflowCounter: number | undefined","lineHeight"],"sources":["../../src/components/VirtualizedFile.ts"],"sourcesContent":["import { DEFAULT_VIRTUAL_FILE_METRICS } from '../constants';\nimport type {\n FileContents,\n NumericScrollLineAnchor,\n RenderRange,\n RenderWindow,\n StickySpecs,\n VirtualFileMetrics,\n} from '../types';\nimport { areObjectsEqual } from '../utils/areObjectsEqual';\nimport { areOptionsEqual } from '../utils/areOptionsEqual';\nimport {\n getVirtualFileHeaderRegion,\n getVirtualFilePaddingBottom,\n} from '../utils/computeVirtualFileMetrics';\nimport { iterateOverFile } from '../utils/iterateOverFile';\nimport type { WorkerPoolManager } from '../worker';\nimport type { CodeView } from './CodeView';\nimport { File, type FileOptions, type FileRenderProps } from './File';\nimport type { Virtualizer } from './Virtualizer';\n\ninterface FileLayoutCheckpoint {\n lineIndex: number;\n top: number;\n}\n\ninterface FileLayoutCache {\n // Sparse map: line index -> measured height. Only stores lines that differ\n // from what is returned by `getLineHeight`.\n heights: Map<number, number>;\n // Sparse measured positions used to resume deep geometry scans near a target\n // line or scroll offset instead of replaying layout from the start.\n checkpoints: FileLayoutCheckpoint[];\n}\n\nconst LAYOUT_CHECKPOINT_INTERVAL = 5_000;\n\nlet instanceId = -1;\n\nfunction hasFileLayoutOptionChanged<LAnnotation>(\n previousOptions: FileOptions<LAnnotation>,\n nextOptions: FileOptions<LAnnotation>\n): boolean {\n return (\n (previousOptions.overflow ?? 'scroll') !==\n (nextOptions.overflow ?? 'scroll') ||\n (previousOptions.collapsed ?? false) !== (nextOptions.collapsed ?? false) ||\n (previousOptions.disableLineNumbers ?? false) !==\n (nextOptions.disableLineNumbers ?? false) ||\n (previousOptions.disableFileHeader ?? false) !==\n (nextOptions.disableFileHeader ?? false) ||\n previousOptions.unsafeCSS !== nextOptions.unsafeCSS\n );\n}\n\nexport class VirtualizedFile<\n LAnnotation = undefined,\n> extends File<LAnnotation> {\n override readonly __id: string = `virtualized-file:${++instanceId}`;\n\n public top: number | undefined;\n public height: number = 0;\n private cache: FileLayoutCache = { heights: new Map(), checkpoints: [] };\n private isVisible: boolean = false;\n private isSetup: boolean = false;\n private layoutDirty = true;\n private forceRenderOverride: true | undefined;\n\n constructor(\n options: FileOptions<LAnnotation> | undefined,\n private virtualizer: Virtualizer | CodeView<LAnnotation>,\n private metrics: VirtualFileMetrics = DEFAULT_VIRTUAL_FILE_METRICS,\n workerManager?: WorkerPoolManager,\n isContainerManaged = false\n ) {\n super(options, workerManager, isContainerManaged);\n }\n\n public setMetrics(metrics: VirtualFileMetrics, force = false): void {\n if (!force && areObjectsEqual(this.metrics, metrics)) {\n return;\n }\n\n this.metrics = metrics;\n this.resetLayoutCache();\n }\n\n // Get the height for a line, using cached value if available.\n // If not cached and hasMetadataLine is true, adds lineHeight for the\n // metadata.\n public getLineHeight(lineIndex: number, hasMetadataLine = false): number {\n const cached = this.cache.heights.get(lineIndex);\n if (cached != null) {\n return cached;\n }\n const multiplier = hasMetadataLine ? 2 : 1;\n return this.metrics.lineHeight * multiplier;\n }\n\n override setOptions(options: FileOptions<LAnnotation> | undefined): void {\n if (options == null) return;\n const { options: previousOptions } = this;\n const optionsChanged = !areOptionsEqual(previousOptions, options);\n const layoutChanged = hasFileLayoutOptionChanged(previousOptions, options);\n\n super.setOptions(options);\n\n if (layoutChanged) {\n this.resetLayoutCache(true);\n }\n // Any option can affect rendered DOM; only layout-affecting options clear\n // the measured height cache above.\n if (optionsChanged) {\n this.forceRenderOverride = true;\n }\n if (optionsChanged && this.isSimpleMode()) {\n this.virtualizer.instanceChanged(this, layoutChanged);\n }\n }\n\n private resetLayoutCache(recompute = false): void {\n this.layoutDirty = true;\n this.cache.heights.clear();\n this.cache.checkpoints = [];\n this.renderRange = undefined;\n // NOTE(amadeus): In CodeView we intentionally batch computes to all happen\n // at the same time, so we shouldn't trigger this there.\n if (recompute && this.isSimpleMode()) {\n this.computeApproximateSize();\n }\n }\n\n // Measure rendered lines and update height cache.\n // Called after render to reconcile estimated vs actual heights.\n public reconcileHeights(): boolean {\n let hasHeightChange = false;\n if (this.fileContainer == null || this.file == null) {\n if (this.height !== 0) {\n hasHeightChange = true;\n }\n this.height = 0;\n return hasHeightChange;\n }\n const { overflow = 'scroll' } = this.options;\n this.top = this.getVirtualizedTop();\n\n // If the file has no annotations and we are using the scroll variant, then\n // we can probably skip everything\n if (\n overflow === 'scroll' &&\n this.lineAnnotations.length === 0 &&\n !this.isResizeDebuggingEnabled()\n ) {\n return hasHeightChange;\n }\n\n // Single code element (no split mode)\n if (this.code == null) {\n return hasHeightChange;\n }\n const content = this.code.children[1]; // Content column (gutter is [0])\n if (!(content instanceof HTMLElement)) {\n return hasHeightChange;\n }\n\n for (const line of content.children) {\n if (!(line instanceof HTMLElement)) continue;\n\n const lineIndexAttr = line.dataset.lineIndex;\n if (lineIndexAttr == null) continue;\n\n const lineIndex = Number(lineIndexAttr);\n let measuredHeight = line.getBoundingClientRect().height;\n let hasMetadata = false;\n\n // Annotations or noNewline metadata increase the size of their attached line\n if (\n line.nextElementSibling instanceof HTMLElement &&\n ('lineAnnotation' in line.nextElementSibling.dataset ||\n 'noNewline' in line.nextElementSibling.dataset)\n ) {\n if ('noNewline' in line.nextElementSibling.dataset) {\n hasMetadata = true;\n }\n measuredHeight +=\n line.nextElementSibling.getBoundingClientRect().height;\n }\n\n const expectedHeight = this.getLineHeight(lineIndex, hasMetadata);\n\n if (measuredHeight === expectedHeight) {\n continue;\n }\n\n hasHeightChange = true;\n // Line is back to standard height (e.g., after window resize)\n // Remove from cache\n if (measuredHeight === this.metrics.lineHeight * (hasMetadata ? 2 : 1)) {\n this.cache.heights.delete(lineIndex);\n }\n // Non-standard height, cache it\n else {\n this.cache.heights.set(lineIndex, measuredHeight);\n }\n }\n\n if (hasHeightChange || this.isResizeDebuggingEnabled()) {\n this.computeApproximateSize(true);\n }\n return hasHeightChange;\n }\n\n public onRender = (dirty: boolean): boolean => {\n if (this.fileContainer == null || this.file == null) {\n return false;\n }\n if (dirty) {\n this.top = this.getVirtualizedTop();\n }\n return this.render({ file: this.file });\n };\n\n // Prepares this item for CodeView layout by binding the latest file, syncing\n // its virtualized top, and returning an approximate height. This method is\n // called while downstream items are being re-positioned, so later changes\n // should keep clean instances on a cached-height fast path.\n public prepareVirtualizedItem(file: FileContents): number {\n if (this.file !== file) {\n this.layoutDirty = true;\n }\n this.file = file;\n this.top = this.getVirtualizedTop();\n this.computeApproximateSize();\n return this.height;\n }\n\n public getLinePosition(\n lineNumber: number\n ): { top: number; height: number } | undefined {\n if (this.file == null) {\n return undefined;\n }\n\n const { disableFileHeader = false, collapsed = false } = this.options;\n const lines = this.getOrCreateLineCache(this.file);\n const lastLineIndex = getLastVisibleLineIndex(lines);\n let top = getVirtualFileHeaderRegion(this.metrics, disableFileHeader);\n\n if (collapsed || lastLineIndex < 0) {\n return { top, height: 0 };\n }\n\n const clampedLineIndex = Math.min(\n Math.max(lineNumber - 1, 0),\n lastLineIndex\n );\n const { overflow = 'scroll' } = this.options;\n const { lineHeight } = this.metrics;\n\n if (overflow === 'scroll' && this.lineAnnotations.length === 0) {\n return {\n top: top + clampedLineIndex * lineHeight,\n height: lineHeight,\n };\n }\n\n const checkpoint =\n this.getLayoutCheckpointBeforeLineIndex(clampedLineIndex);\n top = checkpoint?.top ?? top;\n for (\n let lineIndex = checkpoint?.lineIndex ?? 0;\n lineIndex < clampedLineIndex;\n lineIndex++\n ) {\n top += this.getLineHeight(lineIndex, false);\n }\n\n return {\n top,\n height: this.getLineHeight(clampedLineIndex, false),\n };\n }\n\n public getNumericScrollAnchor(\n localViewportTop: number\n ): NumericScrollLineAnchor | undefined {\n if (this.file == null || this.renderRange == null) {\n return undefined;\n }\n\n const {\n disableFileHeader = false,\n collapsed = false,\n overflow = 'scroll',\n } = this.options;\n if (collapsed || this.renderRange.totalLines <= 0) {\n return undefined;\n }\n\n const lines = this.getOrCreateLineCache(this.file);\n const lastLineIndex = getLastVisibleLineIndex(lines);\n if (lastLineIndex < 0) {\n return undefined;\n }\n\n const headerRegion = getVirtualFileHeaderRegion(\n this.metrics,\n disableFileHeader\n );\n const firstRenderedLineIndex = Math.min(\n this.renderRange.startingLine,\n lastLineIndex\n );\n const lastRenderedLineIndex = Math.min(\n firstRenderedLineIndex + this.renderRange.totalLines - 1,\n lastLineIndex\n );\n if (lastRenderedLineIndex < firstRenderedLineIndex) {\n return undefined;\n }\n\n // If we don't allow line wrapping and have no annotations, we can just\n // multiply our way to the the correct value\n if (overflow === 'scroll' && this.lineAnnotations.length === 0) {\n const { lineHeight } = this.metrics;\n const firstRenderedLineTop = headerRegion + this.renderRange.bufferBefore;\n const deltaLineCount = Math.max(\n Math.ceil((localViewportTop - firstRenderedLineTop) / lineHeight),\n 0\n );\n const lineIndex = firstRenderedLineIndex + deltaLineCount;\n if (lineIndex > lastRenderedLineIndex) {\n return undefined;\n }\n\n return {\n lineNumber: lineIndex + 1,\n top: headerRegion + lineIndex * lineHeight,\n };\n }\n\n // Otherwise we gotta iterate through the range\n let top = headerRegion + this.renderRange.bufferBefore;\n for (\n let lineIndex = firstRenderedLineIndex;\n lineIndex <= lastRenderedLineIndex;\n lineIndex++\n ) {\n if (top >= localViewportTop) {\n return {\n lineNumber: lineIndex + 1,\n top,\n };\n }\n top += this.getLineHeight(lineIndex);\n }\n\n return undefined;\n }\n\n public getVirtualizedHeight(): number {\n return this.height;\n }\n\n public getAdvancedStickySpecs(\n windowSpecs?: RenderWindow\n ): StickySpecs | undefined {\n if (this.top == null || this.file == null) {\n return undefined;\n }\n if (this.options.collapsed === true) {\n return { topOffset: this.top, height: this.height };\n }\n const renderRange =\n windowSpecs != null\n ? this.computeRenderRangeFromWindow(this.file, this.top, windowSpecs)\n : this.renderRange;\n if (renderRange == null) {\n return undefined;\n }\n const { bufferBefore, bufferAfter, totalLines } = renderRange;\n return {\n topOffset: this.top + bufferBefore + (totalLines === 0 ? bufferAfter : 0),\n height: this.height - (bufferBefore + bufferAfter),\n };\n }\n\n override cleanUp(recycle = false): void {\n if (this.fileContainer != null && this.isSimpleMode()) {\n this.getSimpleVirtualizer()?.disconnect(this.fileContainer);\n }\n if (!recycle) {\n this.layoutDirty = true;\n }\n this.isSetup = false;\n super.cleanUp(recycle);\n }\n\n // Compute the approximate size of the file using cached line heights.\n // Uses lineHeight for lines without cached measurements.\n private computeApproximateSize(force = false): void {\n const shouldValidateSize = this.isResizeDebuggingEnabled();\n if (!force && !this.layoutDirty && !shouldValidateSize) {\n return;\n }\n\n const isFirstCompute = this.height === 0;\n this.height = 0;\n this.cache.checkpoints = [];\n if (this.file == null) {\n this.layoutDirty = false;\n return;\n }\n\n const {\n disableFileHeader = false,\n collapsed = false,\n overflow = 'scroll',\n } = this.options;\n const { lineHeight } = this.metrics;\n const lines = this.getOrCreateLineCache(this.file);\n const headerRegion = getVirtualFileHeaderRegion(\n this.metrics,\n disableFileHeader\n );\n const paddingBottom = getVirtualFilePaddingBottom(this.metrics);\n\n this.height += headerRegion;\n if (collapsed) {\n this.layoutDirty = false;\n return;\n }\n\n if (overflow === 'scroll' && this.lineAnnotations.length === 0) {\n this.height += this.getOrCreateLineCache(this.file).length * lineHeight;\n } else {\n iterateOverFile({\n lines,\n callback: ({ lineIndex }) => {\n this.addLayoutCheckpoint(lineIndex, this.height);\n this.height += this.getLineHeight(lineIndex, false);\n },\n });\n }\n\n if (lines.length > 0) {\n this.height += paddingBottom;\n }\n\n if (this.fileContainer != null && shouldValidateSize && !isFirstCompute) {\n const rect = this.fileContainer.getBoundingClientRect();\n if (rect.height !== this.height) {\n console.log(\n 'VirtualizedFile.computeApproximateSize: computed height doesnt match',\n {\n name: this.file.name,\n elementHeight: rect.height,\n computedHeight: this.height,\n }\n );\n } else {\n console.log(\n 'VirtualizedFile.computeApproximateSize: computed height IS CORRECT'\n );\n }\n }\n this.layoutDirty = false;\n }\n\n public setVisibility(visible: boolean): void {\n if (this.isAdvancedMode() || this.fileContainer == null) {\n return;\n }\n if (visible && !this.isVisible) {\n this.top = this.getVirtualizedTop();\n this.isVisible = true;\n } else if (!visible && this.isVisible) {\n this.isVisible = false;\n this.rerender();\n }\n }\n\n override rerender(): void {\n if (!this.enabled || this.file == null) {\n return;\n }\n this.forceRenderOverride = true;\n this.virtualizer.instanceChanged(this, false);\n }\n\n override render({\n fileContainer,\n file,\n forceRender = false,\n ...props\n }: FileRenderProps<LAnnotation>): boolean {\n const { forceRenderOverride, isSetup } = this;\n this.forceRenderOverride = undefined;\n\n this.file ??= file;\n\n fileContainer = this.getOrCreateFileContainerNode(fileContainer);\n\n if (this.file == null) {\n console.error(\n 'VirtualizedFile.render: attempting to virtually render when we dont have file'\n );\n return false;\n }\n\n if (!isSetup) {\n this.computeApproximateSize();\n const virtualizer = this.getSimpleVirtualizer();\n this.top ??= this.getVirtualizedTop();\n if (this.isAdvancedMode()) {\n this.isVisible = true;\n } else {\n if (virtualizer == null) {\n throw new Error(\n 'VirtualizedFile.render: simple virtualizer is not available'\n );\n }\n virtualizer.connect(fileContainer, this);\n this.isVisible = virtualizer.isInstanceVisible(\n this.top ?? 0,\n this.height\n );\n }\n this.isSetup = true;\n } else {\n this.top ??= this.getVirtualizedTop();\n }\n\n if (!this.isVisible && this.isSimpleMode()) {\n return this.renderPlaceholder(this.height);\n }\n\n const windowSpecs = this.virtualizer.getWindowSpecs();\n const fileTop = this.top ?? 0;\n const renderRange = this.computeRenderRangeFromWindow(\n this.file,\n fileTop,\n windowSpecs\n );\n return super.render({\n file: this.file,\n fileContainer,\n renderRange,\n forceRender: forceRenderOverride ?? forceRender,\n ...props,\n });\n }\n\n public syncVirtualizedTop(): void {\n this.top = this.getVirtualizedTop();\n }\n\n protected override shouldDisableVirtualizationBuffers(): boolean {\n return this.isAdvancedMode() || super.shouldDisableVirtualizationBuffers();\n }\n\n private isSimpleMode(): boolean {\n return this.virtualizer.type === 'simple';\n }\n\n private isAdvancedMode(): boolean {\n return this.virtualizer.type === 'advanced';\n }\n\n private addLayoutCheckpoint(lineIndex: number, top: number): void {\n if (lineIndex % LAYOUT_CHECKPOINT_INTERVAL !== 0) {\n return;\n }\n this.cache.checkpoints.push({ lineIndex, top });\n }\n\n // Find the nearest sparse layout checkpoint at or before a raw file line.\n // Checkpoints store measured `top` offsets every few thousand lines, so a\n // binary search lets deep line-position lookups resume from that checkpoint\n // instead of replaying layout from the start of the file.\n private getLayoutCheckpointBeforeLineIndex(\n lineIndex: number\n ): FileLayoutCheckpoint | undefined {\n if (lineIndex <= 0 || this.cache.checkpoints.length === 0) {\n return undefined;\n }\n\n let low = 0;\n let high = this.cache.checkpoints.length - 1;\n let result: FileLayoutCheckpoint | undefined;\n\n while (low <= high) {\n const mid = (low + high) >> 1;\n const checkpoint = this.cache.checkpoints[mid];\n if (checkpoint == null) {\n throw new Error('VirtualizedFile: invalid checkpoint index');\n }\n if (checkpoint.lineIndex <= lineIndex) {\n result = checkpoint;\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n\n return result;\n }\n\n // Find the nearest sparse layout checkpoint at or before a scroll offset.\n // Render-range scans start from this checkpoint so variable-height files\n // only replay the nearby measured rows. When `hunkLineCount` is provided,\n // step backward to a hunk boundary so hooks that depend on grouped lines\n // still see a complete hunk.\n private getLayoutCheckpointBeforeTop(\n top: number,\n hunkLineCount?: number\n ): FileLayoutCheckpoint | undefined {\n let low = 0;\n let high = this.cache.checkpoints.length - 1;\n let resultIndex = -1;\n\n while (low <= high) {\n const mid = (low + high) >> 1;\n const checkpoint = this.cache.checkpoints[mid];\n if (checkpoint == null) {\n throw new Error('VirtualizedFile: invalid checkpoint index');\n }\n if (checkpoint.top <= top) {\n resultIndex = mid;\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n\n if (hunkLineCount == null) {\n return resultIndex >= 0 ? this.cache.checkpoints[resultIndex] : undefined;\n }\n\n for (let index = resultIndex; index >= 0; index--) {\n const checkpoint = this.cache.checkpoints[index];\n if (checkpoint == null) {\n throw new Error('VirtualizedFile: invalid checkpoint index');\n }\n if (checkpoint.lineIndex % hunkLineCount === 0) {\n return checkpoint;\n }\n }\n\n return undefined;\n }\n\n private getVirtualizedTop(): number {\n if (this.virtualizer.type === 'advanced') {\n return this.virtualizer.getLocalTopForInstance(this);\n }\n return this.fileContainer != null\n ? this.virtualizer.getOffsetInScrollContainer(this.fileContainer)\n : 0;\n }\n\n private getSimpleVirtualizer(): Virtualizer | undefined {\n return this.virtualizer.type === 'simple' ? this.virtualizer : undefined;\n }\n\n private isResizeDebuggingEnabled(): boolean {\n return this.getSimpleVirtualizer()?.config.resizeDebugging ?? false;\n }\n\n private computeRenderRangeFromWindow(\n file: FileContents,\n fileTop: number,\n { top, bottom }: RenderWindow\n ): RenderRange {\n const { disableFileHeader = false, overflow = 'scroll' } = this.options;\n const { hunkLineCount, lineHeight } = this.metrics;\n const lines = this.getOrCreateLineCache(file);\n const lineCount = lines.length;\n const fileHeight = this.height;\n const headerRegion = getVirtualFileHeaderRegion(\n this.metrics,\n disableFileHeader\n );\n const paddingBottom =\n lineCount > 0 ? getVirtualFilePaddingBottom(this.metrics) : 0;\n\n // File is outside render window\n if (fileTop < top - fileHeight || fileTop > bottom) {\n return {\n startingLine: 0,\n totalLines: 0,\n bufferBefore: 0,\n bufferAfter: fileHeight - headerRegion - paddingBottom,\n };\n }\n\n // Small file, just render it all\n if (lineCount <= hunkLineCount) {\n return {\n startingLine: 0,\n totalLines: hunkLineCount,\n bufferBefore: 0,\n bufferAfter: 0,\n };\n }\n\n // Calculate totalLines based on viewport size\n const estimatedTargetLines = Math.ceil(\n Math.max(bottom - top, 0) / lineHeight\n );\n const totalLines =\n Math.ceil(estimatedTargetLines / hunkLineCount) * hunkLineCount +\n hunkLineCount * 2;\n const totalHunks = totalLines / hunkLineCount;\n const viewportCenter = (top + bottom) / 2;\n\n // Simple case: overflow scroll with no annotations - pure math!\n if (overflow === 'scroll' && this.lineAnnotations.length === 0) {\n // Find which line is at viewport center\n const centerLine = Math.floor(\n (viewportCenter - (fileTop + headerRegion)) / lineHeight\n );\n const centerHunk = Math.floor(centerLine / hunkLineCount);\n\n // Calculate ideal start centered around viewport\n const idealStartHunk = centerHunk - Math.floor(totalHunks / 2);\n const totalHunksInFile = Math.ceil(lineCount / hunkLineCount);\n const startingLine =\n Math.max(0, Math.min(idealStartHunk, totalHunksInFile)) * hunkLineCount;\n\n const clampedTotalLines =\n idealStartHunk < 0\n ? totalLines + idealStartHunk * hunkLineCount\n : totalLines;\n\n const bufferBefore = startingLine * lineHeight;\n const renderedLines = Math.min(\n clampedTotalLines,\n lineCount - startingLine\n );\n const bufferAfter = Math.max(\n 0,\n (lineCount - startingLine - renderedLines) * lineHeight\n );\n\n return {\n startingLine,\n totalLines: clampedTotalLines,\n bufferBefore,\n bufferAfter,\n };\n }\n\n // Complex case: need to account for line annotations or wrap overflow\n const overflowHunks = totalHunks;\n const hunkOffsets: number[] = [];\n // Start the scan before the viewport so we collect hunk offsets that may be\n // needed for bufferBefore. This only chooses the scan origin; the returned\n // render range is still computed from the visible window below.\n const checkpoint = this.getLayoutCheckpointBeforeTop(\n Math.max(0, top - fileTop - totalLines * lineHeight * 2),\n hunkLineCount\n );\n\n let absoluteLineTop = fileTop + (checkpoint?.top ?? headerRegion);\n let currentLine = checkpoint?.lineIndex ?? 0;\n let firstVisibleHunk: number | undefined;\n let centerHunk: number | undefined;\n let overflowCounter: number | undefined;\n\n iterateOverFile({\n lines,\n startingLine: checkpoint?.lineIndex ?? 0,\n callback: ({ lineIndex }) => {\n const isAtHunkBoundary = currentLine % hunkLineCount === 0;\n const currentHunk = Math.floor(currentLine / hunkLineCount);\n\n if (isAtHunkBoundary) {\n hunkOffsets[currentHunk] = absoluteLineTop - (fileTop + headerRegion);\n\n if (overflowCounter != null) {\n if (overflowCounter <= 0) {\n return true;\n }\n overflowCounter--;\n }\n }\n\n const lineHeight = this.getLineHeight(lineIndex, false);\n\n // Track visible region\n if (absoluteLineTop > top - lineHeight && absoluteLineTop < bottom) {\n firstVisibleHunk ??= currentHunk;\n }\n\n // Track which hunk contains the viewport center\n if (absoluteLineTop + lineHeight > viewportCenter) {\n centerHunk ??= currentHunk;\n }\n\n // Start overflow when we are out of the viewport at a hunk boundary\n if (\n overflowCounter == null &&\n absoluteLineTop >= bottom &&\n isAtHunkBoundary\n ) {\n overflowCounter = overflowHunks;\n }\n\n currentLine++;\n absoluteLineTop += lineHeight;\n\n return false;\n },\n });\n\n // No visible lines found\n if (firstVisibleHunk == null) {\n return {\n startingLine: 0,\n totalLines: 0,\n bufferBefore: 0,\n bufferAfter: fileHeight - headerRegion - paddingBottom,\n };\n }\n\n // Calculate balanced startingLine centered around the viewport center\n centerHunk ??= firstVisibleHunk;\n const idealStartHunk = Math.round(centerHunk - totalHunks / 2);\n\n // Clamp startHunk: at the beginning, reduce totalLines; at the end, shift\n // startHunk back\n const maxStartHunk = Math.max(\n 0,\n Math.ceil(lineCount / hunkLineCount) - totalHunks\n );\n const startHunk = Math.max(0, Math.min(idealStartHunk, maxStartHunk));\n const startingLine = startHunk * hunkLineCount;\n\n // If we wanted to start before 0, reduce totalLines by the clamped amount\n const clampedTotalLines =\n idealStartHunk < 0\n ? totalLines + idealStartHunk * hunkLineCount\n : totalLines;\n\n // Use hunkOffsets array for efficient buffer calculations\n const bufferBefore = hunkOffsets[startHunk] ?? 0;\n\n // Calculate bufferAfter\n const finalHunkIndex = startHunk + clampedTotalLines / hunkLineCount;\n const bufferAfter =\n finalHunkIndex < hunkOffsets.length\n ? fileHeight -\n headerRegion -\n hunkOffsets[finalHunkIndex] -\n paddingBottom\n : fileHeight - (absoluteLineTop - fileTop) - paddingBottom;\n\n return {\n startingLine,\n totalLines: clampedTotalLines,\n bufferBefore,\n bufferAfter,\n };\n }\n}\n\nfunction getLastVisibleLineIndex(lines: string[]): number {\n const lastLine = lines.at(-1);\n if (\n lastLine == null ||\n lastLine === '' ||\n lastLine === '\\n' ||\n lastLine === '\\r\\n' ||\n lastLine === '\\r'\n ) {\n return lines.length - 2;\n }\n\n return lines.length - 1;\n}\n"],"mappings":";;;;;;;;AAmCA,MAAM,6BAA6B;AAEnC,IAAI,aAAa;AAEjB,SAAS,2BACP,iBACA,aACS;AACT,SACG,gBAAgB,YAAY,eAC1B,YAAY,YAAY,cAC1B,gBAAgB,aAAa,YAAY,YAAY,aAAa,WAClE,gBAAgB,sBAAsB,YACpC,YAAY,sBAAsB,WACpC,gBAAgB,qBAAqB,YACnC,YAAY,qBAAqB,UACpC,gBAAgB,cAAc,YAAY;;AAI9C,IAAa,kBAAb,cAEU,KAAkB;CAC1B,AAAkB,OAAe,oBAAoB,EAAE;CAEvD,AAAO;CACP,AAAO,SAAiB;CACxB,AAAQ,QAAyB;EAAE,yBAAS,IAAI,KAAK;EAAE,aAAa,EAAE;EAAE;CACxE,AAAQ,YAAqB;CAC7B,AAAQ,UAAmB;CAC3B,AAAQ,cAAc;CACtB,AAAQ;CAER,YACE,SACA,AAAQA,aACR,AAAQC,UAA8B,8BACtC,eACA,qBAAqB,OACrB;AACA,QAAM,SAAS,eAAe,mBAAmB;EALzC;EACA;;CAOV,AAAO,WAAW,SAA6B,QAAQ,OAAa;AAClE,MAAI,CAAC,SAAS,gBAAgB,KAAK,SAAS,QAAQ,CAClD;AAGF,OAAK,UAAU;AACf,OAAK,kBAAkB;;CAMzB,AAAO,cAAc,WAAmB,kBAAkB,OAAe;EACvE,MAAM,SAAS,KAAK,MAAM,QAAQ,IAAI,UAAU;AAChD,MAAI,UAAU,KACZ,QAAO;EAET,MAAM,aAAa,kBAAkB,IAAI;AACzC,SAAO,KAAK,QAAQ,aAAa;;CAGnC,AAAS,WAAW,SAAqD;AACv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
+
{"version":3,"file":"VirtualizedFile.js","names":["virtualizer: Virtualizer | CodeView<LAnnotation>","metrics: VirtualFileMetrics","result: FileLayoutCheckpoint | undefined","idealStartHunk","startingLine","clampedTotalLines","bufferBefore","hunkOffsets: number[]","firstVisibleHunk: number | undefined","centerHunk: number | undefined","overflowCounter: number | undefined","lineHeight"],"sources":["../../src/components/VirtualizedFile.ts"],"sourcesContent":["import { DEFAULT_VIRTUAL_FILE_METRICS } from '../constants';\nimport type {\n FileContents,\n NumericScrollLineAnchor,\n PendingCodeViewLayoutReset,\n RenderRange,\n RenderWindow,\n StickySpecs,\n ThemeTypes,\n VirtualFileMetrics,\n} from '../types';\nimport { areObjectsEqual } from '../utils/areObjectsEqual';\nimport { areOptionsEqual } from '../utils/areOptionsEqual';\nimport {\n getVirtualFileHeaderRegion,\n getVirtualFilePaddingBottom,\n} from '../utils/computeVirtualFileMetrics';\nimport { iterateOverFile } from '../utils/iterateOverFile';\nimport type { WorkerPoolManager } from '../worker';\nimport type { CodeView } from './CodeView';\nimport { File, type FileOptions, type FileRenderProps } from './File';\nimport type { Virtualizer } from './Virtualizer';\n\ninterface FileLayoutCheckpoint {\n lineIndex: number;\n top: number;\n}\n\ninterface FileLayoutCache {\n // Sparse map: line index -> measured height. Only stores lines that differ\n // from what is returned by `getLineHeight`.\n heights: Map<number, number>;\n // Sparse measured positions used to resume deep geometry scans near a target\n // line or scroll offset instead of replaying layout from the start.\n checkpoints: FileLayoutCheckpoint[];\n}\n\nconst LAYOUT_CHECKPOINT_INTERVAL = 5_000;\n\nlet instanceId = -1;\n\nfunction hasFileLayoutOptionChanged<LAnnotation>(\n previousOptions: FileOptions<LAnnotation>,\n nextOptions: FileOptions<LAnnotation>\n): boolean {\n return (\n (previousOptions.overflow ?? 'scroll') !==\n (nextOptions.overflow ?? 'scroll') ||\n (previousOptions.collapsed ?? false) !== (nextOptions.collapsed ?? false) ||\n (previousOptions.disableLineNumbers ?? false) !==\n (nextOptions.disableLineNumbers ?? false) ||\n (previousOptions.disableFileHeader ?? false) !==\n (nextOptions.disableFileHeader ?? false) ||\n previousOptions.unsafeCSS !== nextOptions.unsafeCSS\n );\n}\n\nexport class VirtualizedFile<\n LAnnotation = undefined,\n> extends File<LAnnotation> {\n override readonly __id: string = `virtualized-file:${++instanceId}`;\n\n public top: number | undefined;\n public height: number = 0;\n private cache: FileLayoutCache = { heights: new Map(), checkpoints: [] };\n private isVisible: boolean = false;\n private isSetup: boolean = false;\n private layoutDirty = true;\n private forceRenderOverride: true | undefined;\n private currentCollapsed: boolean | undefined;\n\n constructor(\n options: FileOptions<LAnnotation> | undefined,\n private virtualizer: Virtualizer | CodeView<LAnnotation>,\n private metrics: VirtualFileMetrics = DEFAULT_VIRTUAL_FILE_METRICS,\n workerManager?: WorkerPoolManager,\n isContainerManaged = false\n ) {\n super(options, workerManager, isContainerManaged);\n }\n\n public setMetrics(metrics: VirtualFileMetrics, force = false): void {\n if (!force && areObjectsEqual(this.metrics, metrics)) {\n return;\n }\n\n this.metrics = metrics;\n this.resetLayoutCache();\n }\n\n // Get the height for a line, using cached value if available.\n // If not cached and hasMetadataLine is true, adds lineHeight for the\n // metadata.\n public getLineHeight(lineIndex: number, hasMetadataLine = false): number {\n const cached = this.cache.heights.get(lineIndex);\n if (cached != null) {\n return cached;\n }\n const multiplier = hasMetadataLine ? 2 : 1;\n return this.metrics.lineHeight * multiplier;\n }\n\n override setOptions(options: FileOptions<LAnnotation> | undefined): void {\n if (this.isAdvancedMode()) {\n throw new Error(\n 'VirtualizedFile.setOptions cannot be used inside CodeView. Update CodeView options instead.'\n );\n }\n\n if (options == null) return;\n const { options: previousOptions } = this;\n const optionsChanged = !areOptionsEqual(previousOptions, options);\n const layoutChanged = hasFileLayoutOptionChanged(previousOptions, options);\n\n super.setOptions(options);\n\n if (layoutChanged) {\n this.resetLayoutCache(true);\n }\n // Any option can affect rendered DOM; only layout-affecting options clear\n // the measured height cache above.\n if (optionsChanged) {\n this.forceRenderOverride = true;\n }\n if (optionsChanged) {\n this.virtualizer.instanceChanged(this, layoutChanged);\n }\n }\n\n override setThemeType(themeType: ThemeTypes): void {\n if (this.isAdvancedMode()) {\n throw new Error(\n 'VirtualizedFile.setThemeType cannot be used inside CodeView. Update CodeView options instead.'\n );\n }\n\n super.setThemeType(themeType);\n }\n\n private resetLayoutCache(recompute = false): void {\n this.layoutDirty = true;\n if (this.cache.heights.size > 0) {\n this.cache.heights.clear();\n }\n if (this.cache.checkpoints.length > 0) {\n this.cache.checkpoints.length = 0;\n }\n if (this.renderRange != null) {\n this.renderRange = undefined;\n }\n // NOTE(amadeus): In CodeView we intentionally batch computes to all happen\n // at the same time, so we shouldn't trigger this there.\n if (recompute && this.isSimpleMode()) {\n this.computeApproximateSize();\n }\n }\n\n // Measure rendered lines and update height cache.\n // Called after render to reconcile estimated vs actual heights.\n public reconcileHeights(): boolean {\n let hasHeightChange = false;\n if (this.fileContainer == null || this.file == null) {\n if (this.height !== 0) {\n hasHeightChange = true;\n }\n this.height = 0;\n return hasHeightChange;\n }\n const { overflow = 'scroll' } = this.options;\n this.top = this.getVirtualizedTop();\n\n // If the file has no annotations and we are using the scroll variant, then\n // we can probably skip everything\n if (\n overflow === 'scroll' &&\n this.lineAnnotations.length === 0 &&\n !this.isResizeDebuggingEnabled()\n ) {\n return hasHeightChange;\n }\n\n // Single code element (no split mode)\n if (this.code == null) {\n return hasHeightChange;\n }\n const content = this.code.children[1]; // Content column (gutter is [0])\n if (!(content instanceof HTMLElement)) {\n return hasHeightChange;\n }\n\n for (const line of content.children) {\n if (!(line instanceof HTMLElement)) continue;\n\n const lineIndexAttr = line.dataset.lineIndex;\n if (lineIndexAttr == null) continue;\n\n const lineIndex = Number(lineIndexAttr);\n let measuredHeight = line.getBoundingClientRect().height;\n let hasMetadata = false;\n\n // Annotations or noNewline metadata increase the size of their attached line\n if (\n line.nextElementSibling instanceof HTMLElement &&\n ('lineAnnotation' in line.nextElementSibling.dataset ||\n 'noNewline' in line.nextElementSibling.dataset)\n ) {\n if ('noNewline' in line.nextElementSibling.dataset) {\n hasMetadata = true;\n }\n measuredHeight +=\n line.nextElementSibling.getBoundingClientRect().height;\n }\n\n const expectedHeight = this.getLineHeight(lineIndex, hasMetadata);\n\n if (measuredHeight === expectedHeight) {\n continue;\n }\n\n hasHeightChange = true;\n // Line is back to standard height (e.g., after window resize)\n // Remove from cache\n if (measuredHeight === this.metrics.lineHeight * (hasMetadata ? 2 : 1)) {\n this.cache.heights.delete(lineIndex);\n }\n // Non-standard height, cache it\n else {\n this.cache.heights.set(lineIndex, measuredHeight);\n }\n }\n\n if (hasHeightChange || this.isResizeDebuggingEnabled()) {\n this.computeApproximateSize(true);\n }\n return hasHeightChange;\n }\n\n public onRender = (dirty: boolean): boolean => {\n if (this.fileContainer == null || this.file == null) {\n return false;\n }\n if (dirty) {\n this.top = this.getVirtualizedTop();\n }\n return this.render({ file: this.file });\n };\n\n // Prepares this item for CodeView layout by binding the latest file, syncing\n // its virtualized top, and returning an approximate height. This method is\n // called while downstream items are being re-positioned, so later changes\n // should keep clean instances on a cached-height fast path.\n public prepareCodeViewItem(\n file: FileContents,\n top: number,\n reset?: PendingCodeViewLayoutReset\n ): number {\n let shouldResetLayoutCache = reset?.resetFileLayoutCache === true;\n if (reset?.metrics != null) {\n this.metrics = reset.metrics;\n shouldResetLayoutCache = true;\n }\n\n const { collapsed = false } = this.options;\n if (this.currentCollapsed !== collapsed) {\n this.currentCollapsed = collapsed;\n shouldResetLayoutCache = true;\n }\n\n if (shouldResetLayoutCache) {\n this.resetLayoutCache();\n }\n\n if (this.file !== file) {\n this.layoutDirty = true;\n }\n this.file = file;\n this.top = top;\n this.computeApproximateSize();\n return this.height;\n }\n\n public getLinePosition(\n lineNumber: number\n ): { top: number; height: number } | undefined {\n if (this.file == null) {\n return undefined;\n }\n\n const { disableFileHeader = false, collapsed = false } = this.options;\n const lines = this.getOrCreateLineCache(this.file);\n const lastLineIndex = getLastVisibleLineIndex(lines);\n let top = getVirtualFileHeaderRegion(this.metrics, disableFileHeader);\n\n if (collapsed || lastLineIndex < 0) {\n return { top, height: 0 };\n }\n\n const clampedLineIndex = Math.min(\n Math.max(lineNumber - 1, 0),\n lastLineIndex\n );\n const { overflow = 'scroll' } = this.options;\n const { lineHeight } = this.metrics;\n\n if (overflow === 'scroll' && this.lineAnnotations.length === 0) {\n return {\n top: top + clampedLineIndex * lineHeight,\n height: lineHeight,\n };\n }\n\n const checkpoint =\n this.getLayoutCheckpointBeforeLineIndex(clampedLineIndex);\n top = checkpoint?.top ?? top;\n for (\n let lineIndex = checkpoint?.lineIndex ?? 0;\n lineIndex < clampedLineIndex;\n lineIndex++\n ) {\n top += this.getLineHeight(lineIndex, false);\n }\n\n return {\n top,\n height: this.getLineHeight(clampedLineIndex, false),\n };\n }\n\n public getNumericScrollAnchor(\n localViewportTop: number\n ): NumericScrollLineAnchor | undefined {\n if (this.file == null || this.renderRange == null) {\n return undefined;\n }\n\n const {\n disableFileHeader = false,\n collapsed = false,\n overflow = 'scroll',\n } = this.options;\n if (collapsed || this.renderRange.totalLines <= 0) {\n return undefined;\n }\n\n const lines = this.getOrCreateLineCache(this.file);\n const lastLineIndex = getLastVisibleLineIndex(lines);\n if (lastLineIndex < 0) {\n return undefined;\n }\n\n const headerRegion = getVirtualFileHeaderRegion(\n this.metrics,\n disableFileHeader\n );\n const firstRenderedLineIndex = Math.min(\n this.renderRange.startingLine,\n lastLineIndex\n );\n const lastRenderedLineIndex = Math.min(\n firstRenderedLineIndex + this.renderRange.totalLines - 1,\n lastLineIndex\n );\n if (lastRenderedLineIndex < firstRenderedLineIndex) {\n return undefined;\n }\n\n // If we don't allow line wrapping and have no annotations, we can just\n // multiply our way to the the correct value\n if (overflow === 'scroll' && this.lineAnnotations.length === 0) {\n const { lineHeight } = this.metrics;\n const firstRenderedLineTop = headerRegion + this.renderRange.bufferBefore;\n const deltaLineCount = Math.max(\n Math.ceil((localViewportTop - firstRenderedLineTop) / lineHeight),\n 0\n );\n const lineIndex = firstRenderedLineIndex + deltaLineCount;\n if (lineIndex > lastRenderedLineIndex) {\n return undefined;\n }\n\n return {\n lineNumber: lineIndex + 1,\n top: headerRegion + lineIndex * lineHeight,\n };\n }\n\n // Otherwise we gotta iterate through the range\n let top = headerRegion + this.renderRange.bufferBefore;\n for (\n let lineIndex = firstRenderedLineIndex;\n lineIndex <= lastRenderedLineIndex;\n lineIndex++\n ) {\n if (top >= localViewportTop) {\n return {\n lineNumber: lineIndex + 1,\n top,\n };\n }\n top += this.getLineHeight(lineIndex);\n }\n\n return undefined;\n }\n\n public getVirtualizedHeight(): number {\n return this.height;\n }\n\n public getAdvancedStickySpecs(\n windowSpecs?: RenderWindow\n ): StickySpecs | undefined {\n if (this.top == null || this.file == null) {\n return undefined;\n }\n if (this.options.collapsed === true) {\n return { topOffset: this.top, height: this.height };\n }\n const renderRange =\n windowSpecs != null\n ? this.computeRenderRangeFromWindow(this.file, this.top, windowSpecs)\n : this.renderRange;\n if (renderRange == null) {\n return undefined;\n }\n const { bufferBefore, bufferAfter, totalLines } = renderRange;\n return {\n topOffset: this.top + bufferBefore + (totalLines === 0 ? bufferAfter : 0),\n height: this.height - (bufferBefore + bufferAfter),\n };\n }\n\n override cleanUp(recycle = false): void {\n if (this.fileContainer != null && this.isSimpleMode()) {\n this.getSimpleVirtualizer()?.disconnect(this.fileContainer);\n }\n if (!recycle) {\n this.layoutDirty = true;\n }\n this.isSetup = false;\n super.cleanUp(recycle);\n }\n\n // Compute the approximate size of the file using cached line heights.\n // Uses lineHeight for lines without cached measurements.\n private computeApproximateSize(force = false): void {\n const shouldValidateSize = this.isResizeDebuggingEnabled();\n if (!force && !this.layoutDirty && !shouldValidateSize) {\n return;\n }\n\n const isFirstCompute = this.height === 0;\n this.height = 0;\n this.cache.checkpoints = [];\n if (this.file == null) {\n this.layoutDirty = false;\n return;\n }\n\n const {\n disableFileHeader = false,\n collapsed = false,\n overflow = 'scroll',\n } = this.options;\n const { lineHeight } = this.metrics;\n const lines = this.getOrCreateLineCache(this.file);\n const headerRegion = getVirtualFileHeaderRegion(\n this.metrics,\n disableFileHeader\n );\n const paddingBottom = getVirtualFilePaddingBottom(this.metrics);\n\n this.height += headerRegion;\n if (collapsed) {\n this.layoutDirty = false;\n return;\n }\n\n if (overflow === 'scroll' && this.lineAnnotations.length === 0) {\n this.height += this.getOrCreateLineCache(this.file).length * lineHeight;\n } else {\n iterateOverFile({\n lines,\n callback: ({ lineIndex }) => {\n this.addLayoutCheckpoint(lineIndex, this.height);\n this.height += this.getLineHeight(lineIndex, false);\n },\n });\n }\n\n if (lines.length > 0) {\n this.height += paddingBottom;\n }\n\n if (this.fileContainer != null && shouldValidateSize && !isFirstCompute) {\n const rect = this.fileContainer.getBoundingClientRect();\n if (rect.height !== this.height) {\n console.log(\n 'VirtualizedFile.computeApproximateSize: computed height doesnt match',\n {\n name: this.file.name,\n elementHeight: rect.height,\n computedHeight: this.height,\n }\n );\n } else {\n console.log(\n 'VirtualizedFile.computeApproximateSize: computed height IS CORRECT'\n );\n }\n }\n this.layoutDirty = false;\n }\n\n public setVisibility(visible: boolean): void {\n if (this.isAdvancedMode() || this.fileContainer == null) {\n return;\n }\n if (visible && !this.isVisible) {\n this.top = this.getVirtualizedTop();\n this.isVisible = true;\n } else if (!visible && this.isVisible) {\n this.isVisible = false;\n this.rerender();\n }\n }\n\n override rerender(): void {\n if (!this.enabled || this.file == null) {\n return;\n }\n this.forceRenderOverride = true;\n this.virtualizer.instanceChanged(this, false);\n }\n\n override render({\n fileContainer,\n file,\n forceRender = false,\n ...props\n }: FileRenderProps<LAnnotation>): boolean {\n const { forceRenderOverride, isSetup } = this;\n this.forceRenderOverride = undefined;\n\n this.file ??= file;\n\n fileContainer = this.getOrCreateFileContainerNode(fileContainer);\n\n if (this.file == null) {\n console.error(\n 'VirtualizedFile.render: attempting to virtually render when we dont have file'\n );\n return false;\n }\n\n if (!isSetup) {\n this.computeApproximateSize();\n const virtualizer = this.getSimpleVirtualizer();\n this.top ??= this.getVirtualizedTop();\n if (this.isAdvancedMode()) {\n this.isVisible = true;\n } else {\n if (virtualizer == null) {\n throw new Error(\n 'VirtualizedFile.render: simple virtualizer is not available'\n );\n }\n virtualizer.connect(fileContainer, this);\n this.isVisible = virtualizer.isInstanceVisible(\n this.top ?? 0,\n this.height\n );\n }\n this.isSetup = true;\n } else {\n this.top ??= this.getVirtualizedTop();\n }\n\n if (!this.isVisible && this.isSimpleMode()) {\n return this.renderPlaceholder(this.height);\n }\n\n const windowSpecs = this.virtualizer.getWindowSpecs();\n const fileTop = this.top ?? 0;\n const renderRange = this.computeRenderRangeFromWindow(\n this.file,\n fileTop,\n windowSpecs\n );\n return super.render({\n file: this.file,\n fileContainer,\n renderRange,\n forceRender: forceRenderOverride ?? forceRender,\n ...props,\n });\n }\n\n public syncVirtualizedTop(): void {\n this.top = this.getVirtualizedTop();\n }\n\n protected override shouldDisableVirtualizationBuffers(): boolean {\n return this.isAdvancedMode() || super.shouldDisableVirtualizationBuffers();\n }\n\n private isSimpleMode(): boolean {\n return this.virtualizer.type === 'simple';\n }\n\n private isAdvancedMode(): boolean {\n return this.virtualizer.type === 'advanced';\n }\n\n private addLayoutCheckpoint(lineIndex: number, top: number): void {\n if (lineIndex % LAYOUT_CHECKPOINT_INTERVAL !== 0) {\n return;\n }\n this.cache.checkpoints.push({ lineIndex, top });\n }\n\n // Find the nearest sparse layout checkpoint at or before a raw file line.\n // Checkpoints store measured `top` offsets every few thousand lines, so a\n // binary search lets deep line-position lookups resume from that checkpoint\n // instead of replaying layout from the start of the file.\n private getLayoutCheckpointBeforeLineIndex(\n lineIndex: number\n ): FileLayoutCheckpoint | undefined {\n if (lineIndex <= 0 || this.cache.checkpoints.length === 0) {\n return undefined;\n }\n\n let low = 0;\n let high = this.cache.checkpoints.length - 1;\n let result: FileLayoutCheckpoint | undefined;\n\n while (low <= high) {\n const mid = (low + high) >> 1;\n const checkpoint = this.cache.checkpoints[mid];\n if (checkpoint == null) {\n throw new Error('VirtualizedFile: invalid checkpoint index');\n }\n if (checkpoint.lineIndex <= lineIndex) {\n result = checkpoint;\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n\n return result;\n }\n\n // Find the nearest sparse layout checkpoint at or before a scroll offset.\n // Render-range scans start from this checkpoint so variable-height files\n // only replay the nearby measured rows. When `hunkLineCount` is provided,\n // step backward to a hunk boundary so hooks that depend on grouped lines\n // still see a complete hunk.\n private getLayoutCheckpointBeforeTop(\n top: number,\n hunkLineCount?: number\n ): FileLayoutCheckpoint | undefined {\n let low = 0;\n let high = this.cache.checkpoints.length - 1;\n let resultIndex = -1;\n\n while (low <= high) {\n const mid = (low + high) >> 1;\n const checkpoint = this.cache.checkpoints[mid];\n if (checkpoint == null) {\n throw new Error('VirtualizedFile: invalid checkpoint index');\n }\n if (checkpoint.top <= top) {\n resultIndex = mid;\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n\n if (hunkLineCount == null) {\n return resultIndex >= 0 ? this.cache.checkpoints[resultIndex] : undefined;\n }\n\n for (let index = resultIndex; index >= 0; index--) {\n const checkpoint = this.cache.checkpoints[index];\n if (checkpoint == null) {\n throw new Error('VirtualizedFile: invalid checkpoint index');\n }\n if (checkpoint.lineIndex % hunkLineCount === 0) {\n return checkpoint;\n }\n }\n\n return undefined;\n }\n\n private getVirtualizedTop(): number {\n if (this.virtualizer.type === 'advanced') {\n return this.virtualizer.getLocalTopForInstance(this);\n }\n return this.fileContainer != null\n ? this.virtualizer.getOffsetInScrollContainer(this.fileContainer)\n : 0;\n }\n\n private getSimpleVirtualizer(): Virtualizer | undefined {\n return this.virtualizer.type === 'simple' ? this.virtualizer : undefined;\n }\n\n private isResizeDebuggingEnabled(): boolean {\n return this.getSimpleVirtualizer()?.config.resizeDebugging ?? false;\n }\n\n private computeRenderRangeFromWindow(\n file: FileContents,\n fileTop: number,\n { top, bottom }: RenderWindow\n ): RenderRange {\n const { disableFileHeader = false, overflow = 'scroll' } = this.options;\n const { hunkLineCount, lineHeight } = this.metrics;\n const lines = this.getOrCreateLineCache(file);\n const lineCount = lines.length;\n const fileHeight = this.height;\n const headerRegion = getVirtualFileHeaderRegion(\n this.metrics,\n disableFileHeader\n );\n const paddingBottom =\n lineCount > 0 ? getVirtualFilePaddingBottom(this.metrics) : 0;\n\n // File is outside render window\n if (fileTop < top - fileHeight || fileTop > bottom) {\n return {\n startingLine: 0,\n totalLines: 0,\n bufferBefore: 0,\n bufferAfter: fileHeight - headerRegion - paddingBottom,\n };\n }\n\n // Small file, just render it all\n if (lineCount <= hunkLineCount) {\n return {\n startingLine: 0,\n totalLines: hunkLineCount,\n bufferBefore: 0,\n bufferAfter: 0,\n };\n }\n\n // Calculate totalLines based on viewport size\n const estimatedTargetLines = Math.ceil(\n Math.max(bottom - top, 0) / lineHeight\n );\n const totalLines =\n Math.ceil(estimatedTargetLines / hunkLineCount) * hunkLineCount +\n hunkLineCount * 2;\n const totalHunks = totalLines / hunkLineCount;\n const viewportCenter = (top + bottom) / 2;\n\n // Simple case: overflow scroll with no annotations - pure math!\n if (overflow === 'scroll' && this.lineAnnotations.length === 0) {\n // Find which line is at viewport center\n const centerLine = Math.floor(\n (viewportCenter - (fileTop + headerRegion)) / lineHeight\n );\n const centerHunk = Math.floor(centerLine / hunkLineCount);\n\n // Calculate ideal start centered around viewport\n const idealStartHunk = centerHunk - Math.floor(totalHunks / 2);\n const totalHunksInFile = Math.ceil(lineCount / hunkLineCount);\n const startingLine =\n Math.max(0, Math.min(idealStartHunk, totalHunksInFile)) * hunkLineCount;\n\n const clampedTotalLines =\n idealStartHunk < 0\n ? totalLines + idealStartHunk * hunkLineCount\n : totalLines;\n\n const bufferBefore = startingLine * lineHeight;\n const renderedLines = Math.min(\n clampedTotalLines,\n lineCount - startingLine\n );\n const bufferAfter = Math.max(\n 0,\n (lineCount - startingLine - renderedLines) * lineHeight\n );\n\n return {\n startingLine,\n totalLines: clampedTotalLines,\n bufferBefore,\n bufferAfter,\n };\n }\n\n // Complex case: need to account for line annotations or wrap overflow\n const overflowHunks = totalHunks;\n const hunkOffsets: number[] = [];\n // Start the scan before the viewport so we collect hunk offsets that may be\n // needed for bufferBefore. This only chooses the scan origin; the returned\n // render range is still computed from the visible window below.\n const checkpoint = this.getLayoutCheckpointBeforeTop(\n Math.max(0, top - fileTop - totalLines * lineHeight * 2),\n hunkLineCount\n );\n\n let absoluteLineTop = fileTop + (checkpoint?.top ?? headerRegion);\n let currentLine = checkpoint?.lineIndex ?? 0;\n let firstVisibleHunk: number | undefined;\n let centerHunk: number | undefined;\n let overflowCounter: number | undefined;\n\n iterateOverFile({\n lines,\n startingLine: checkpoint?.lineIndex ?? 0,\n callback: ({ lineIndex }) => {\n const isAtHunkBoundary = currentLine % hunkLineCount === 0;\n const currentHunk = Math.floor(currentLine / hunkLineCount);\n\n if (isAtHunkBoundary) {\n hunkOffsets[currentHunk] = absoluteLineTop - (fileTop + headerRegion);\n\n if (overflowCounter != null) {\n if (overflowCounter <= 0) {\n return true;\n }\n overflowCounter--;\n }\n }\n\n const lineHeight = this.getLineHeight(lineIndex, false);\n\n // Track visible region\n if (absoluteLineTop > top - lineHeight && absoluteLineTop < bottom) {\n firstVisibleHunk ??= currentHunk;\n }\n\n // Track which hunk contains the viewport center\n if (absoluteLineTop + lineHeight > viewportCenter) {\n centerHunk ??= currentHunk;\n }\n\n // Start overflow when we are out of the viewport at a hunk boundary\n if (\n overflowCounter == null &&\n absoluteLineTop >= bottom &&\n isAtHunkBoundary\n ) {\n overflowCounter = overflowHunks;\n }\n\n currentLine++;\n absoluteLineTop += lineHeight;\n\n return false;\n },\n });\n\n // No visible lines found\n if (firstVisibleHunk == null) {\n return {\n startingLine: 0,\n totalLines: 0,\n bufferBefore: 0,\n bufferAfter: fileHeight - headerRegion - paddingBottom,\n };\n }\n\n // Calculate balanced startingLine centered around the viewport center\n centerHunk ??= firstVisibleHunk;\n const idealStartHunk = Math.round(centerHunk - totalHunks / 2);\n\n // Clamp startHunk: at the beginning, reduce totalLines; at the end, shift\n // startHunk back\n const maxStartHunk = Math.max(\n 0,\n Math.ceil(lineCount / hunkLineCount) - totalHunks\n );\n const startHunk = Math.max(0, Math.min(idealStartHunk, maxStartHunk));\n const startingLine = startHunk * hunkLineCount;\n\n // If we wanted to start before 0, reduce totalLines by the clamped amount\n const clampedTotalLines =\n idealStartHunk < 0\n ? totalLines + idealStartHunk * hunkLineCount\n : totalLines;\n\n // Use hunkOffsets array for efficient buffer calculations\n const bufferBefore = hunkOffsets[startHunk] ?? 0;\n\n // Calculate bufferAfter\n const finalHunkIndex = startHunk + clampedTotalLines / hunkLineCount;\n const bufferAfter =\n finalHunkIndex < hunkOffsets.length\n ? fileHeight -\n headerRegion -\n hunkOffsets[finalHunkIndex] -\n paddingBottom\n : fileHeight - (absoluteLineTop - fileTop) - paddingBottom;\n\n return {\n startingLine,\n totalLines: clampedTotalLines,\n bufferBefore,\n bufferAfter,\n };\n }\n}\n\nfunction getLastVisibleLineIndex(lines: string[]): number {\n const lastLine = lines.at(-1);\n if (\n lastLine == null ||\n lastLine === '' ||\n lastLine === '\\n' ||\n lastLine === '\\r\\n' ||\n lastLine === '\\r'\n ) {\n return lines.length - 2;\n }\n\n return lines.length - 1;\n}\n"],"mappings":";;;;;;;;AAqCA,MAAM,6BAA6B;AAEnC,IAAI,aAAa;AAEjB,SAAS,2BACP,iBACA,aACS;AACT,SACG,gBAAgB,YAAY,eAC1B,YAAY,YAAY,cAC1B,gBAAgB,aAAa,YAAY,YAAY,aAAa,WAClE,gBAAgB,sBAAsB,YACpC,YAAY,sBAAsB,WACpC,gBAAgB,qBAAqB,YACnC,YAAY,qBAAqB,UACpC,gBAAgB,cAAc,YAAY;;AAI9C,IAAa,kBAAb,cAEU,KAAkB;CAC1B,AAAkB,OAAe,oBAAoB,EAAE;CAEvD,AAAO;CACP,AAAO,SAAiB;CACxB,AAAQ,QAAyB;EAAE,yBAAS,IAAI,KAAK;EAAE,aAAa,EAAE;EAAE;CACxE,AAAQ,YAAqB;CAC7B,AAAQ,UAAmB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,cAAc,WAAW,MAAM;AAGvD,QAAI,kBAAkB,MAAMA,gBAAc,kBAAkB,OAC1D,sBAAqB;AAIvB,QAAI,kBAAkBA,eAAa,eACjC,gBAAe;AAIjB,QACE,mBAAmB,QACnB,mBAAmB,UACnB,iBAEA,mBAAkB;AAGpB;AACA,uBAAmBA;AAEnB,WAAO;;GAEV,CAAC;AAGF,MAAI,oBAAoB,KACtB,QAAO;GACL,cAAc;GACd,YAAY;GACZ,cAAc;GACd,aAAa,aAAa,eAAe;GAC1C;AAIH,iBAAe;EACf,MAAM,iBAAiB,KAAK,MAAM,aAAa,aAAa,EAAE;EAI9D,MAAM,eAAe,KAAK,IACxB,GACA,KAAK,KAAK,YAAY,cAAc,GAAG,WACxC;EACD,MAAM,YAAY,KAAK,IAAI,GAAG,KAAK,IAAI,gBAAgB,aAAa,CAAC;EACrE,MAAM,eAAe,YAAY;EAGjC,MAAM,oBACJ,iBAAiB,IACb,aAAa,iBAAiB,gBAC9B;EAGN,MAAM,eAAe,YAAY,cAAc;EAG/C,MAAM,iBAAiB,YAAY,oBAAoB;AASvD,SAAO;GACL;GACA,YAAY;GACZ;GACA,aAXA,iBAAiB,YAAY,SACzB,aACA,eACA,YAAY,kBACZ,gBACA,cAAc,kBAAkB,WAAW;GAOhD;;;AAIL,SAAS,wBAAwB,OAAyB;CACxD,MAAM,WAAW,MAAM,GAAG,GAAG;AAC7B,KACE,YAAY,QACZ,aAAa,MACb,aAAa,QACb,aAAa,UACb,aAAa,KAEb,QAAO,MAAM,SAAS;AAGxB,QAAO,MAAM,SAAS"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExpansionDirections, FileDiffMetadata, NumericScrollLineAnchor, RenderWindow, SelectionSide, StickySpecs, VirtualFileMetrics } from "../types.js";
|
|
1
|
+
import { ExpansionDirections, FileDiffMetadata, NumericScrollLineAnchor, PendingCodeViewLayoutReset, RenderWindow, SelectionSide, StickySpecs, ThemeTypes, VirtualFileMetrics } from "../types.js";
|
|
2
2
|
import { WorkerPoolManager } from "../worker/WorkerPoolManager.js";
|
|
3
3
|
import "../worker/index.js";
|
|
4
4
|
import { Virtualizer } from "./Virtualizer.js";
|
|
@@ -17,14 +17,17 @@ declare class VirtualizedFileDiff<LAnnotation = undefined> extends FileDiff<LAnn
|
|
|
17
17
|
private virtualizer;
|
|
18
18
|
private layoutDirty;
|
|
19
19
|
private forceRenderOverride;
|
|
20
|
+
private currentCollapsed;
|
|
20
21
|
constructor(options: FileDiffOptions<LAnnotation> | undefined, virtualizer: Virtualizer | CodeView<LAnnotation>, metrics?: Partial<VirtualFileMetrics>, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);
|
|
21
22
|
setMetrics(metrics?: Partial<VirtualFileMetrics>, force?: boolean): void;
|
|
22
23
|
private getLineHeight;
|
|
24
|
+
private getEstimatedLineHeight;
|
|
23
25
|
setOptions(options: FileDiffOptions<LAnnotation> | undefined): void;
|
|
26
|
+
setThemeType(themeType: ThemeTypes): void;
|
|
24
27
|
private resetLayoutCache;
|
|
25
28
|
reconcileHeights(): boolean;
|
|
26
29
|
onRender: (dirty: boolean) => boolean;
|
|
27
|
-
|
|
30
|
+
prepareCodeViewItem(fileDiff: FileDiffMetadata, top: number, reset?: PendingCodeViewLayoutReset): number;
|
|
28
31
|
getLinePosition(lineNumber: number, side?: SelectionSide): {
|
|
29
32
|
top: number;
|
|
30
33
|
height: number;
|
|
@@ -37,6 +40,9 @@ declare class VirtualizedFileDiff<LAnnotation = undefined> extends FileDiff<LAnn
|
|
|
37
40
|
setVisibility(visible: boolean): void;
|
|
38
41
|
rerender(): void;
|
|
39
42
|
private computeApproximateSize;
|
|
43
|
+
private getActiveEstimatedHeight;
|
|
44
|
+
private ensureEstimatedDiffHeights;
|
|
45
|
+
private validateComputedHeight;
|
|
40
46
|
render({
|
|
41
47
|
fileContainer,
|
|
42
48
|
oldFile,
|
|
@@ -54,14 +60,9 @@ declare class VirtualizedFileDiff<LAnnotation = undefined> extends FileDiff<LAnn
|
|
|
54
60
|
private isResizeDebuggingEnabled;
|
|
55
61
|
private getDiffStyle;
|
|
56
62
|
private getHunkSeparatorType;
|
|
57
|
-
private
|
|
58
|
-
private getSeparatorGap;
|
|
59
|
-
private hasLeadingHunkSeparator;
|
|
60
|
-
private hasTrailingHunkSeparator;
|
|
61
|
-
private addLayoutCheckpoint;
|
|
63
|
+
private approximateLayoutCheckpoints;
|
|
62
64
|
private getLayoutCheckpointBeforeLineIndex;
|
|
63
65
|
private getLayoutCheckpointBeforeTop;
|
|
64
|
-
private getExpandedRegion;
|
|
65
66
|
private getExpandedLineCount;
|
|
66
67
|
private computeRenderRangeFromWindow;
|
|
67
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VirtualizedFileDiff.d.ts","names":["ExpansionDirections","FileDiffMetadata","NumericScrollLineAnchor","RenderWindow","SelectionSide","StickySpecs","VirtualFileMetrics","WorkerPoolManager","CodeView","FileDiff","FileDiffOptions","FileDiffRenderProps","Virtualizer","VirtualizedFileDiff","LAnnotation","Partial","fileContainer","oldFile","newFile","fileDiff","forceRender"],"sources":["../../src/components/VirtualizedFileDiff.d.ts"],"sourcesContent":["import type { ExpansionDirections, FileDiffMetadata, NumericScrollLineAnchor, RenderWindow, SelectionSide, StickySpecs, VirtualFileMetrics } from '../types';\nimport type { WorkerPoolManager } from '../worker';\nimport type { CodeView } from './CodeView';\nimport { FileDiff, type FileDiffOptions, type FileDiffRenderProps } from './FileDiff';\nimport type { Virtualizer } from './Virtualizer';\nexport declare class VirtualizedFileDiff<LAnnotation = undefined> extends FileDiff<LAnnotation> {\n readonly __id: string;\n top: number | undefined;\n height: number;\n private metrics;\n private cache;\n private isVisible;\n private isSetup;\n private virtualizer;\n private layoutDirty;\n private forceRenderOverride;\n constructor(options: FileDiffOptions<LAnnotation> | undefined, virtualizer: Virtualizer | CodeView<LAnnotation>, metrics?: Partial<VirtualFileMetrics>, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);\n setMetrics(metrics?: Partial<VirtualFileMetrics>, force?: boolean): void;\n private getLineHeight;\n setOptions(options: FileDiffOptions<LAnnotation> | undefined): void;\n private resetLayoutCache;\n reconcileHeights(): boolean;\n onRender: (dirty: boolean) => boolean;\n
|
|
1
|
+
{"version":3,"file":"VirtualizedFileDiff.d.ts","names":["ExpansionDirections","FileDiffMetadata","NumericScrollLineAnchor","PendingCodeViewLayoutReset","RenderWindow","SelectionSide","StickySpecs","ThemeTypes","VirtualFileMetrics","WorkerPoolManager","CodeView","FileDiff","FileDiffOptions","FileDiffRenderProps","Virtualizer","VirtualizedFileDiff","LAnnotation","Partial","fileContainer","oldFile","newFile","fileDiff","forceRender"],"sources":["../../src/components/VirtualizedFileDiff.d.ts"],"sourcesContent":["import type { ExpansionDirections, FileDiffMetadata, NumericScrollLineAnchor, PendingCodeViewLayoutReset, RenderWindow, SelectionSide, StickySpecs, ThemeTypes, VirtualFileMetrics } from '../types';\nimport type { WorkerPoolManager } from '../worker';\nimport type { CodeView } from './CodeView';\nimport { FileDiff, type FileDiffOptions, type FileDiffRenderProps } from './FileDiff';\nimport type { Virtualizer } from './Virtualizer';\nexport declare class VirtualizedFileDiff<LAnnotation = undefined> extends FileDiff<LAnnotation> {\n readonly __id: string;\n top: number | undefined;\n height: number;\n private metrics;\n private cache;\n private isVisible;\n private isSetup;\n private virtualizer;\n private layoutDirty;\n private forceRenderOverride;\n private currentCollapsed;\n constructor(options: FileDiffOptions<LAnnotation> | undefined, virtualizer: Virtualizer | CodeView<LAnnotation>, metrics?: Partial<VirtualFileMetrics>, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);\n setMetrics(metrics?: Partial<VirtualFileMetrics>, force?: boolean): void;\n private getLineHeight;\n private getEstimatedLineHeight;\n setOptions(options: FileDiffOptions<LAnnotation> | undefined): void;\n setThemeType(themeType: ThemeTypes): void;\n private resetLayoutCache;\n reconcileHeights(): boolean;\n onRender: (dirty: boolean) => boolean;\n prepareCodeViewItem(fileDiff: FileDiffMetadata, top: number, reset?: PendingCodeViewLayoutReset): number;\n getLinePosition(lineNumber: number, side?: SelectionSide): {\n top: number;\n height: number;\n } | undefined;\n getNumericScrollAnchor(localViewportTop: number): NumericScrollLineAnchor | undefined;\n getVirtualizedHeight(): number;\n getAdvancedStickySpecs(windowSpecs?: RenderWindow): StickySpecs | undefined;\n cleanUp(recycle?: boolean): void;\n expandHunk: (hunkIndex: number, direction: ExpansionDirections, expansionLineCountOverride?: number | undefined) => void;\n setVisibility(visible: boolean): void;\n rerender(): void;\n private computeApproximateSize;\n private getActiveEstimatedHeight;\n private ensureEstimatedDiffHeights;\n private validateComputedHeight;\n render({ fileContainer, oldFile, newFile, fileDiff, forceRender, ...props }?: FileDiffRenderProps<LAnnotation>): boolean;\n syncVirtualizedTop(): void;\n protected shouldDisableVirtualizationBuffers(): boolean;\n private isSimpleMode;\n private isAdvancedMode;\n private getVirtualizedTop;\n private getSimpleVirtualizer;\n private isResizeDebuggingEnabled;\n private getDiffStyle;\n private getHunkSeparatorType;\n private approximateLayoutCheckpoints;\n private getLayoutCheckpointBeforeLineIndex;\n private getLayoutCheckpointBeforeTop;\n private getExpandedLineCount;\n private computeRenderRangeFromWindow;\n}\n//# sourceMappingURL=VirtualizedFileDiff.d.ts.map"],"mappings":";;;;;;;;cAKqBe,qDAAqDJ,SAASK;;;EAA9DD,MAAAA,EAAAA,MAAAA;EAA8DC,QAAAA,OAAAA;EAY1CA,QAAAA,KAAAA;EAAhBJ,QAAAA,SAAAA;EAAuDE,QAAAA,OAAAA;EAAuBE,QAAAA,WAAAA;EAATN,QAAAA,WAAAA;EAAyCF,QAAAA,mBAAAA;EAARS,QAAAA,gBAAAA;EAA6CR,WAAAA,CAAAA,OAAAA,EAAnJG,eAAmJH,CAAnIO,WAAmIP,CAAAA,GAAAA,SAAAA,EAAAA,WAAAA,EAA5FK,WAA4FL,GAA9EC,QAA8ED,CAArEO,WAAqEP,CAAAA,EAAAA,OAAAA,CAAAA,EAA7CQ,OAA6CR,C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