@vite-hub/ui 0.0.3 → 0.1.0
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 +27 -7
- package/dist/{andromeeda-DnSv6o6l.js → andromeeda-BASpqCeJ.js} +1 -1
- package/dist/attachment-B3dXC7jM.js +71 -0
- package/dist/attachment-BBndG9_P.d.ts +88 -0
- package/dist/attachment.d.ts +2 -0
- package/dist/attachment.js +2 -0
- package/dist/{aurora-x-XJ5I8rFc.js → aurora-x-DugsLcii.js} +1 -1
- package/dist/avatar-stack-DM6HRnc0.js +63 -0
- package/dist/avatar-stack-DXmCQhxd.d.ts +59 -0
- package/dist/avatar-stack.d.ts +2 -0
- package/dist/avatar-stack.js +2 -0
- package/dist/{ayu-dark-CBRGL64-.js → ayu-dark-BT3qdi3o.js} +1 -1
- package/dist/{ayu-light-BlrCS3Ih.js → ayu-light-BVZyHoh9.js} +1 -1
- package/dist/{ayu-mirage-CqpTmLcF.js → ayu-mirage-XFwUVZQZ.js} +1 -1
- package/dist/bubble-BJH2rfii.d.ts +72 -0
- package/dist/bubble-BPyFQlW7.js +53 -0
- package/dist/bubble.d.ts +2 -0
- package/dist/bubble.js +2 -0
- package/dist/catppuccin-frappe-D20KODDN.js +4 -0
- package/dist/catppuccin-latte-eGLVHIUJ.js +4 -0
- package/dist/catppuccin-macchiato-bQGch4PY.js +4 -0
- package/dist/catppuccin-mocha-Bes8-0Mr.js +4 -0
- package/dist/chat-B9HlZWA2.d.ts +50 -0
- package/dist/chat-BoFHlu9V.js +73 -0
- package/dist/chat-message-BNK9G7xF.js +51 -0
- package/dist/chat-message-mpDmZbIC.d.ts +28 -0
- package/dist/chat-message.d.ts +2 -0
- package/dist/chat-message.js +2 -0
- package/dist/chat-session-D6C7VJBR.d.ts +29 -0
- package/dist/chat-session-DYEHB1HC.js +38 -0
- package/dist/chat-session.d.ts +2 -0
- package/dist/chat-session.js +2 -0
- package/dist/chat.d.ts +2 -0
- package/dist/chat.js +2 -0
- package/dist/code-block-Br-02hn-.js +139 -0
- package/dist/code-block.d.ts +2 -0
- package/dist/code-block.js +3 -0
- package/dist/code-view-J4OsgEdh.js +158 -0
- package/dist/code-view-vDM-hph-.d.ts +4091 -0
- package/dist/code-view.d.ts +2 -0
- package/dist/code-view.js +2 -0
- package/dist/comment-layer-CBlxJ8eK.js +1113 -0
- package/dist/comments-C08J3z4e.js +456 -0
- package/dist/comments-ChNJkV1d.d.ts +108 -0
- package/dist/comments-Cq5eewsu.d.ts +537 -0
- package/dist/comments.d.ts +2 -0
- package/dist/comments.js +2 -0
- package/dist/{config-BwhBDTjC.d.ts → config-Bux_AJzm.d.ts} +0 -1
- package/dist/{config-CzOjpPth.js → config-bHqE4JOs.js} +2 -7
- package/dist/connection-status-CzuWBENf.js +65 -0
- package/dist/connection-status-DjGBw6xX.d.ts +39 -0
- package/dist/connection-status.d.ts +2 -0
- package/dist/connection-status.js +2 -0
- package/dist/{dark-plus-BCxGtnt0.js → dark-plus-BGuiqa1B.js} +1 -1
- package/dist/{dracula-fPErIccy.js → dracula-0CVA2XY5.js} +1 -1
- package/dist/{dracula-soft-BrQbqXs8.js → dracula-soft-Dk9bpbVU.js} +1 -1
- package/dist/error-diagnostics-B4hMpJRL.js +13 -0
- package/dist/{everforest-dark-gTeBQCos.js → everforest-dark-CRjTbhh5.js} +1 -1
- package/dist/{everforest-light-DUjxsp-2.js → everforest-light-CEeYFLn8.js} +1 -1
- package/dist/file-diff.d.ts +2 -0
- package/dist/file-diff.js +2 -0
- package/dist/file-tree-C1pv4_AI.js +9307 -0
- package/dist/file-tree-Ctb8hZ_g.d.ts +459 -0
- package/dist/file-tree.d.ts +2 -0
- package/dist/file-tree.js +2 -0
- package/dist/file-view.d.ts +2 -0
- package/dist/file-view.js +2 -0
- package/dist/{getSingularPatch-D0VFiyjB.js → getSingularPatch-Dsb8EgxR.js} +191 -116
- package/dist/{github-dark-Dg1hl_QD.js → github-dark-BXgKmOw_.js} +1 -1
- package/dist/{github-dark-default-Dym2P842.js → github-dark-default-DzJQXksd.js} +1 -1
- package/dist/{github-dark-dimmed-7iDMx266.js → github-dark-dimmed-B1pEmGtS.js} +1 -1
- package/dist/{github-dark-high-contrast-DkV2fyPG.js → github-dark-high-contrast-BkHIa6jc.js} +1 -1
- package/dist/{github-light-BQKYgor9.js → github-light-BKRlUbaB.js} +1 -1
- package/dist/{github-light-default-BZhIfzqQ.js → github-light-default-BU3eYkzs.js} +1 -1
- package/dist/{github-light-high-contrast-C7zHfx4C.js → github-light-high-contrast-B3MumDcI.js} +1 -1
- package/dist/{gruvbox-dark-hard-CQiwpF03.js → gruvbox-dark-hard-B0ecF443.js} +1 -1
- package/dist/{gruvbox-dark-medium-BKe6XKBS.js → gruvbox-dark-medium-BQnpC39k.js} +1 -1
- package/dist/{gruvbox-dark-soft-Cz6U6pa4.js → gruvbox-dark-soft-DFZUgESr.js} +1 -1
- package/dist/{gruvbox-light-hard-DgU_i19B.js → gruvbox-light-hard-CuB_LOJr.js} +1 -1
- package/dist/{gruvbox-light-medium-D64I06ER.js → gruvbox-light-medium-idDHgxjs.js} +1 -1
- package/dist/{gruvbox-light-soft-B-YxAs1L.js → gruvbox-light-soft-CfWH49MY.js} +1 -1
- package/dist/headless.d.ts +14 -14
- package/dist/headless.js +3 -333
- package/dist/highlighted-code-Ck4zexJX.js +90 -0
- package/dist/highlighted-code-Dzf6o54i.d.ts +112 -0
- package/dist/{horizon-bright-CPyV7XIA.js → horizon-bright-Ba6M8QSV.js} +1 -1
- package/dist/{horizon-DYoumREk.js → horizon-h92C5OlZ.js} +1 -1
- package/dist/{houston-B3NWfq0V.js → houston-EQnPegWq.js} +1 -1
- package/dist/image-preview-VfknBEFu.js +102 -0
- package/dist/index-DcH0QSI5.d.ts +61 -0
- package/dist/index.d.ts +34 -6378
- package/dist/index.js +27 -12338
- package/dist/kanagawa-dragon-DgDvwi3B.js +4 -0
- package/dist/kanagawa-lotus-BgoQro20.js +4 -0
- package/dist/kanagawa-wave-DgXEowHs.js +4 -0
- package/dist/{laserwave-DkfjiLxA.js → laserwave-IxBH_3yW.js} +1 -1
- package/dist/{light-plus-DuO6rXxZ.js → light-plus-S8JBx6is.js} +1 -1
- package/dist/markdown-BoLBN0qH.js +197 -0
- package/dist/markdown-Dse5ldJe.d.ts +47 -0
- package/dist/markdown.d.ts +2 -0
- package/dist/markdown.js +2 -0
- package/dist/marker-Di2ZG_k1.js +23 -0
- package/dist/marker-ea-tvx-J.d.ts +35 -0
- package/dist/marker.d.ts +2 -0
- package/dist/marker.js +2 -0
- package/dist/{material-theme-C_YrwKEa.js → material-theme-D1f3HBq-.js} +1 -1
- package/dist/{material-theme-darker-DB3YVCla.js → material-theme-darker-ExzYhT0j.js} +1 -1
- package/dist/{material-theme-lighter-D2fgNrBK.js → material-theme-lighter-D6gH9nnA.js} +1 -1
- package/dist/{material-theme-ocean-DVy172Rs.js → material-theme-ocean-D1w5BPAa.js} +1 -1
- package/dist/{material-theme-palenight-uMMwIfpG.js → material-theme-palenight-CkqWmVpF.js} +1 -1
- package/dist/message-CW_paC1k.d.ts +35 -0
- package/dist/message-DiyBthIq.js +23 -0
- package/dist/message-parts-BBFUkluC.d.ts +28 -0
- package/dist/message-parts-DQnfioAH.js +38 -0
- package/dist/message-parts.d.ts +2 -0
- package/dist/message-parts.js +2 -0
- package/dist/message-scroller-CX6NJTdm.js +335 -0
- package/dist/message.d.ts +2 -0
- package/dist/message.js +2 -0
- package/dist/{min-dark-C7Ec8I_2.js → min-dark-npsJH98j.js} +1 -1
- package/dist/{min-light-Be6foA7m.js → min-light-DUk1XsVt.js} +1 -1
- package/dist/monokai-CfFRWUNl.js +4 -0
- package/dist/multi-file-diff.d.ts +2 -0
- package/dist/multi-file-diff.js +2 -0
- package/dist/{night-owl-CqqbiLON.js → night-owl-BS7V-av_.js} +1 -1
- package/dist/{night-owl-light-B9vYgGRt.js → night-owl-light-CZtRawYE.js} +1 -1
- package/dist/{nord-BZ9DVmcN.js → nord-BFh54Nqz.js} +1 -1
- package/dist/nuxt.d.ts +8 -5
- package/dist/nuxt.js +136 -22
- package/dist/one-dark-pro-zDovGosB.js +4 -0
- package/dist/{one-light-CzxBC38_.js → one-light-gmHK3iK6.js} +1 -1
- package/dist/patch-diff.d.ts +2 -0
- package/dist/patch-diff.js +2 -0
- package/dist/{pierre-code-view-DYpF5M8R.js → pierre-code-view-T7V67hwT.js} +7209 -15318
- package/dist/{plastic-BGkJ2das.js → plastic-DtdaCjub.js} +1 -1
- package/dist/{poimandres-CpnMgZuc.js → poimandres-Hdda6aHK.js} +1 -1
- package/dist/primitive-rail.d.ts +222 -0
- package/dist/primitive-rail.js +348 -0
- package/dist/prompt-input-BbnCb80O.js +299 -0
- package/dist/prompt-input-Cy_Ue6B5.d.ts +93 -0
- package/dist/prompt-input.d.ts +2 -0
- package/dist/prompt-input.js +2 -0
- package/dist/red-VqZFRByZ.js +4 -0
- package/dist/rose-pine-DiTkEueR.js +4 -0
- package/dist/rose-pine-dawn-tfo5y2X0.js +4 -0
- package/dist/rose-pine-moon-C0gON9XN.js +4 -0
- package/dist/runtime/nuxt-plugin.js +3 -1
- package/dist/runtime-type-DlCscMfw.js +59 -0
- package/dist/{slack-dark-BS2AOOdo.js → slack-dark-v8P_eXr6.js} +1 -1
- package/dist/{slack-ochin-Nc7Cucwk.js → slack-ochin-D8SyEdKz.js} +1 -1
- package/dist/slot-part-C7Ocxn3b.js +20 -0
- package/dist/{snazzy-light-C2ghKZXY.js → snazzy-light-BtkQkvXb.js} +1 -1
- package/dist/solarized-dark-B8nAdMfM.js +4 -0
- package/dist/solarized-light-B-3F1INj.js +4 -0
- package/dist/styles.css +2134 -2034
- package/dist/sync-status-BpxYdZIJ.js +48 -0
- package/dist/sync-status-refELOZn.d.ts +25 -0
- package/dist/sync-status.d.ts +2 -0
- package/dist/sync-status.js +2 -0
- package/dist/{synthwave-84-CPtGYwOz.js → synthwave-84-DcsXCF_c.js} +1 -1
- package/dist/{tokyo-night-BKYoawWu.js → tokyo-night-Bvpqduda.js} +1 -1
- package/dist/tool-list-BdSr5CT4.js +150 -0
- package/dist/tool-list-E7CA52rz.d.ts +31 -0
- package/dist/tool-list.d.ts +2 -0
- package/dist/tool-list.js +2 -0
- package/dist/trace-V7rM3Pyd.d.ts +62 -0
- package/dist/trace-llBCDiSW.js +70 -0
- package/dist/trace-run-BIQ17CED.js +98 -0
- package/dist/trace-run-COeXn46Z.d.ts +28 -0
- package/dist/trace-run.d.ts +2 -0
- package/dist/trace-run.js +2 -0
- package/dist/trace.d.ts +2 -0
- package/dist/trace.js +2 -0
- package/dist/types-CqDwuJAm.d.ts +33 -0
- package/dist/unresolved-file.d.ts +2 -0
- package/dist/unresolved-file.js +2 -0
- package/dist/{vesper-ClvmKzqD.js → vesper-CfxmMOy3.js} +1 -1
- package/dist/vite.d.ts +3 -5
- package/dist/{vitesse-black-BY6Qtyq-.js → vitesse-black-D9-_1mjV.js} +1 -1
- package/dist/{vitesse-dark-BT-v_EgR.js → vitesse-dark-DlSMLlr9.js} +1 -1
- package/dist/{vitesse-light-Box8ZFz6.js → vitesse-light-KRWWWztf.js} +1 -1
- package/package.json +176 -26
- package/dist/abap-LtYK6g-v.js +0 -3
- package/dist/actionscript-3-Czo0lKSf.js +0 -3
- package/dist/ada-twHwrVWN.js +0 -3
- package/dist/angular-html-Ct-40ew8.js +0 -33
- package/dist/angular-ts-D6akBVit.js +0 -27
- package/dist/apache-BIl2qPOf.js +0 -3
- package/dist/apex-BkQQFAhi.js +0 -3
- package/dist/apl-Cxjn4xYu.js +0 -17
- package/dist/applescript-CJ80B5XJ.js +0 -3
- package/dist/ara-IxnQjO6j.js +0 -3
- package/dist/asciidoc-Dsw6zvwf.js +0 -3
- package/dist/asm-wBDSgBbA.js +0 -3
- package/dist/astro-BPVTb8uX.js +0 -19
- package/dist/awk-D6dA05Ye.js +0 -3
- package/dist/ballerina-DIdXD2KH.js +0 -3
- package/dist/bat-hQslfzu-.js +0 -3
- package/dist/beancount-CXtOQ8oS.js +0 -3
- package/dist/berry-CgA2ea0_.js +0 -3
- package/dist/bibtex-BzgdqG3s.js +0 -3
- package/dist/bicep-CZ338dSk.js +0 -3
- package/dist/bird2-GLyzhwkD.js +0 -3
- package/dist/blade-0LMawyyw.js +0 -21
- package/dist/bsl-0NWGiiFE.js +0 -6
- package/dist/c-Dc0_AVM6.js +0 -6
- package/dist/c3-BLXk7BLN.js +0 -3
- package/dist/cadence-B1ELWULD.js +0 -3
- package/dist/cairo-DjG4M3vq.js +0 -6
- package/dist/catppuccin-frappe-COUg_LSX.js +0 -4
- package/dist/catppuccin-latte-r30LFfsa.js +0 -4
- package/dist/catppuccin-macchiato-D-EwZyPh.js +0 -4
- package/dist/catppuccin-mocha-C6RD5yh3.js +0 -4
- package/dist/clarity-2iIoRiLx.js +0 -3
- package/dist/clojure-DDsQ0FaV.js +0 -3
- package/dist/cmake-DPsCB_V6.js +0 -3
- package/dist/cobol-CocL1RYn.js +0 -11
- package/dist/codeowners-CxEKPWu0.js +0 -3
- package/dist/codeql-BwdvwJnv.js +0 -3
- package/dist/coffee-DtqnQNu5.js +0 -6
- package/dist/common-lisp-DJtwvW4V.js +0 -3
- package/dist/coq-Ds6Ye5el.js +0 -3
- package/dist/cpp-Mb4ikSI3.js +0 -25
- package/dist/crystal-D4OMbAh_.js +0 -19
- package/dist/csharp-CFKaLbHg.js +0 -3
- package/dist/css-DTzmO9U0.js +0 -6
- package/dist/csv-DqIVFkK7.js +0 -3
- package/dist/cue-B5KneM5p.js +0 -3
- package/dist/cypher-D8Bb8Cq2.js +0 -3
- package/dist/d-BQY8TDgQ.js +0 -3
- package/dist/dart-C6DUdjib.js +0 -3
- package/dist/dax-S-Noo-ku.js +0 -3
- package/dist/desktop-BgOb7Aj4.js +0 -3
- package/dist/diff-Blb4MjsC.js +0 -3
- package/dist/docker-PC1tuYpa.js +0 -3
- package/dist/dotenv-Dkdv7Sm2.js +0 -3
- package/dist/dream-maker-CngiPd8U.js +0 -3
- package/dist/edge-DrFNu-N9.js +0 -13
- package/dist/elixir-OpZyQ8Ht.js +0 -6
- package/dist/elm-CjX_545P.js +0 -6
- package/dist/emacs-lisp-DxhFFVu_.js +0 -3
- package/dist/erb-trZRdc47.js +0 -11
- package/dist/erlang-BJeTH9QH.js +0 -6
- package/dist/fennel-B3wtZRne.js +0 -3
- package/dist/fish-D7qAeWQz.js +0 -3
- package/dist/fluent-BjfpB34g.js +0 -3
- package/dist/fortran-fixed-form-B_eBTsj9.js +0 -6
- package/dist/fortran-free-form-yxJ7igsv.js +0 -3
- package/dist/fsharp-UvrT6oWG.js +0 -6
- package/dist/gdresource-Dl9wvKCd.js +0 -11
- package/dist/gdscript-jjgTGGzd.js +0 -3
- package/dist/gdshader-D7JfdFV3.js +0 -3
- package/dist/genie-DnK2KWIP.js +0 -3
- package/dist/gherkin-D6Lr12YQ.js +0 -3
- package/dist/git-commit-2LMniMoO.js +0 -6
- package/dist/git-rebase-DUOURRPN.js +0 -6
- package/dist/gleam-CTllUdfC.js +0 -3
- package/dist/glimmer-js-D_32hFh8.js +0 -15
- package/dist/glimmer-ts-CVt002zd.js +0 -15
- package/dist/glsl-pHhzolba.js +0 -8
- package/dist/gn-DDjbVPF4.js +0 -3
- package/dist/gnuplot-DgWvVXI8.js +0 -3
- package/dist/go-aXtTCanQ.js +0 -3
- package/dist/graphql-BjqekQIR.js +0 -17
- package/dist/groovy-Bw2Ku4bU.js +0 -3
- package/dist/hack-BITNGzgt.js +0 -11
- package/dist/haml-DVwRP8W9.js +0 -13
- package/dist/handlebars-T3TJj8Il.js +0 -15
- package/dist/haskell-CfGsE1Cf.js +0 -3
- package/dist/haxe-B0odltAZ.js +0 -3
- package/dist/hcl-DHg_Osgo.js +0 -3
- package/dist/hjson-Cuaphql8.js +0 -3
- package/dist/hlsl-BJLUNfne.js +0 -3
- package/dist/html-CamevgpM.js +0 -13
- package/dist/html-derivative-jMOJf6rB.js +0 -6
- package/dist/http-BEHztmFP.js +0 -15
- package/dist/hurl-LmFBxrwm.js +0 -13
- package/dist/hxml-BQ4V4Tez.js +0 -6
- package/dist/hy-CJKxDzbh.js +0 -3
- package/dist/imba-96qKoJCa.js +0 -3
- package/dist/ini-C24lZfdM.js +0 -3
- package/dist/java-Cfowl-Ex.js +0 -6
- package/dist/javascript-C4sF7sej.js +0 -6
- package/dist/jinja-CCAEwzP4.js +0 -10
- package/dist/jison-BKCoBkyT.js +0 -6
- package/dist/json-E4f3l6hr.js +0 -6
- package/dist/json5-xULSgPQI.js +0 -3
- package/dist/jsonc-Cu6rqcrJ.js +0 -3
- package/dist/jsonl-Bp0qqr10.js +0 -3
- package/dist/jsonnet-BafgE6cE.js +0 -3
- package/dist/jssm-Dx5A5sBR.js +0 -3
- package/dist/jsx-BZjOirBP.js +0 -6
- package/dist/julia-nEdJo0dp.js +0 -17
- package/dist/just-Brtw3q7S.js +0 -19
- package/dist/kanagawa-dragon-DExkuQAs.js +0 -4
- package/dist/kanagawa-lotus-qdYh7_RY.js +0 -4
- package/dist/kanagawa-wave-CSW_hADG.js +0 -4
- package/dist/kdl-DkTyxPcj.js +0 -3
- package/dist/kotlin-BHE8CoV9.js +0 -3
- package/dist/kusto-6FdaWTzR.js +0 -3
- package/dist/latex-QHQNiZDD.js +0 -6
- package/dist/lean-BwOKScIt.js +0 -3
- package/dist/less-BzbdhFUi.js +0 -3
- package/dist/liquid-DYQ7uW5u.js +0 -15
- package/dist/llvm-uY68ROGz.js +0 -3
- package/dist/log-Dad54gsi.js +0 -3
- package/dist/logo-DTXV8SKw.js +0 -3
- package/dist/lua-BhkUWs1q.js +0 -8
- package/dist/luau-YC4aaMmR.js +0 -3
- package/dist/make-B2ukzWs3.js +0 -3
- package/dist/markdown-CkmxmzqY.js +0 -3
- package/dist/marko-BHWvxp04.js +0 -15
- package/dist/matlab-CfRK6IMC.js +0 -3
- package/dist/mdc-Dg7VPYLa.js +0 -13
- package/dist/mdx-BK9ZufRc.js +0 -3
- package/dist/mermaid-r7OoIYpE.js +0 -3
- package/dist/mipsasm-EL46Y4Xg.js +0 -3
- package/dist/mojo-YCzvCoMT.js +0 -3
- package/dist/monokai-CREPpJ3k.js +0 -4
- package/dist/moonbit-B_9L5rST.js +0 -3
- package/dist/move-Dqi5fhOb.js +0 -3
- package/dist/narrat-D9rrR0H5.js +0 -3
- package/dist/nextflow-CgUAk9iA.js +0 -6
- package/dist/nextflow-groovy-CdFFX-gF.js +0 -3
- package/dist/nginx-Q-E8IJvs.js +0 -6
- package/dist/nim-CNcTuF14.js +0 -21
- package/dist/nix-Bm1Ax-Z3.js +0 -7
- package/dist/nushell-r7hBzeS_.js +0 -3
- package/dist/objective-c-6dJF64Dt.js +0 -3
- package/dist/objective-cpp-_ooRQ-PY.js +0 -3
- package/dist/ocaml-vm1Y8An6.js +0 -3
- package/dist/odin-vjOJSyfV.js +0 -3
- package/dist/one-dark-pro-Ev8UPkf4.js +0 -4
- package/dist/openscad-jn-f1Ocl.js +0 -3
- package/dist/pascal-D8-gNZ2I.js +0 -3
- package/dist/perl-Bbgb6Twx.js +0 -17
- package/dist/php-CBOR45_G.js +0 -19
- package/dist/pkl-C7lWzykI.js +0 -3
- package/dist/plsql-DCNXypXO.js +0 -3
- package/dist/po-IjpR1yHO.js +0 -3
- package/dist/polar-4pN1JrJ8.js +0 -3
- package/dist/postcss-D1gKt4z_.js +0 -3
- package/dist/powerquery-SrvS_NBM.js +0 -3
- package/dist/powershell-CpTLv_ai.js +0 -3
- package/dist/prisma-BWfa4-tI.js +0 -3
- package/dist/prolog-Bacii3Ue.js +0 -3
- package/dist/proto-ClkOcAW0.js +0 -3
- package/dist/pug-Cn_U_o_I.js +0 -13
- package/dist/puppet-CQlPp728.js +0 -3
- package/dist/purescript-CLpaGMbw.js +0 -3
- package/dist/python-BjnOIxPe.js +0 -3
- package/dist/qml-DNlrbxJT.js +0 -6
- package/dist/qmldir-Dz8ttxjf.js +0 -3
- package/dist/qss-Iltvkn1C.js +0 -3
- package/dist/r-VqTZMNY_.js +0 -6
- package/dist/racket-DRv7j6nv.js +0 -3
- package/dist/raku-DI9yGpeW.js +0 -3
- package/dist/razor-Bw2un3e8.js +0 -11
- package/dist/red-EHiRGXSv.js +0 -4
- package/dist/reg-DpJf71oO.js +0 -3
- package/dist/regexp-5HbFqwky.js +0 -6
- package/dist/rel-BT0iIKKw.js +0 -3
- package/dist/riscv-CvzikGLb.js +0 -3
- package/dist/ron-DzAo6FTJ.js +0 -3
- package/dist/rose-pine-DTI-z1Qp.js +0 -4
- package/dist/rose-pine-dawn-BIiGXpWs.js +0 -4
- package/dist/rose-pine-moon-DU4wt90U.js +0 -4
- package/dist/rosmsg-CyYq6XdT.js +0 -3
- package/dist/rst-BZPDb03W.js +0 -23
- package/dist/ruby-BbVp0_gQ.js +0 -31
- package/dist/rust-COBzcmTx.js +0 -3
- package/dist/sas-DSkdG4wF.js +0 -6
- package/dist/sass-DI2zJwx7.js +0 -3
- package/dist/scala-CtSYTRYT.js +0 -3
- package/dist/scheme-D3A2QBtM.js +0 -3
- package/dist/scss-BQ7uffpQ.js +0 -8
- package/dist/sdbl-CdQg5gu1.js +0 -3
- package/dist/shaderlab-CWP9wBCf.js +0 -6
- package/dist/shellscript-B42c0JAn.js +0 -6
- package/dist/shellsession-Oc9-NqAv.js +0 -6
- package/dist/smalltalk-BEQkVl4K.js +0 -3
- package/dist/solarized-dark-UHgjRWhr.js +0 -4
- package/dist/solarized-light-B-Zcwve2.js +0 -4
- package/dist/solidity-lB9VjfB9.js +0 -3
- package/dist/soy-tgh9u9aW.js +0 -6
- package/dist/sparql-B4t0ZbEe.js +0 -6
- package/dist/splunk-xP_ZjUH2.js +0 -3
- package/dist/sql-CrPlEQn4.js +0 -6
- package/dist/ssh-config-DXFPABYp.js +0 -3
- package/dist/stata-D_KqT8cj.js +0 -6
- package/dist/stylus-ZZDn1yUO.js +0 -3
- package/dist/surrealql-C0KhgoyZ.js +0 -6
- package/dist/svelte-DuHT0xxw.js +0 -15
- package/dist/swift-BTPQlRLK.js +0 -3
- package/dist/system-verilog-BEoxaBuU.js +0 -3
- package/dist/systemd-DFbUltlW.js +0 -3
- package/dist/talonscript-CLxaFu-b.js +0 -3
- package/dist/tasl-_AAbKiWM.js +0 -3
- package/dist/tcl-DLe0Tsfm.js +0 -3
- package/dist/templ-DF54artD.js +0 -13
- package/dist/terraform-v0KN9QQh.js +0 -3
- package/dist/tex-Bbhb8xAP.js +0 -6
- package/dist/toml-B7BHZIqX.js +0 -3
- package/dist/ts-tags-DH1AB-Ri.js +0 -59
- package/dist/tsv-BorGVq2Z.js +0 -3
- package/dist/tsx-BR8s1Lhs.js +0 -6
- package/dist/turtle-BEG5g_eT.js +0 -3
- package/dist/twig-DziFF7iU.js +0 -19
- package/dist/typescript-D8TR6ff2.js +0 -6
- package/dist/typespec-C_R5TbvO.js +0 -3
- package/dist/typst-BV9w0z8-.js +0 -3
- package/dist/v-DfbeXLo8.js +0 -3
- package/dist/vala-BnnASFsX.js +0 -3
- package/dist/vb-DU29mvss.js +0 -3
- package/dist/verilog-BW5U03XW.js +0 -3
- package/dist/vhdl-Co2XFKY7.js +0 -3
- package/dist/viml-BReTXeDA.js +0 -3
- package/dist/vue-BRy8iDCZ.js +0 -31
- package/dist/vue-html-B24bjO_3.js +0 -6
- package/dist/vue-vine-l7O7Mg81.js +0 -19
- package/dist/vyper-C6KGx0YU.js +0 -3
- package/dist/wasm-BRCjOXGL.js +0 -7
- package/dist/wasm-gNIKwGlD.js +0 -3
- package/dist/wenyan-BeysbCrW.js +0 -3
- package/dist/wgsl-1s5rV5xS.js +0 -3
- package/dist/wikitext-wjhjmmzD.js +0 -3
- package/dist/wit-CeQiCbz_.js +0 -3
- package/dist/wolfram-CcZPfnLd.js +0 -3
- package/dist/xml-CduVPlYa.js +0 -8
- package/dist/xsl-BeH_vLTK.js +0 -6
- package/dist/yaml-Cb0uRU1q.js +0 -6
- package/dist/zenscript-BoijL7rl.js +0 -3
- package/dist/zig-lTQvxhLD.js +0 -3
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@pierre+trees@1.0.0-beta.6_@pierre+theme@2.0.0_@shikijs+themes@4.5.0_react-dom@19.2.8_r_1bb1bb7c965cf1063203cdfd313d3b8d/node_modules/@pierre/trees/dist/iconConfig.d.ts
|
|
3
|
+
//#region src/iconConfig.d.ts
|
|
4
|
+
type RemappedIcon = string | {
|
|
5
|
+
name: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
viewBox?: string;
|
|
9
|
+
};
|
|
10
|
+
type FileTreeBuiltInIconSet = 'minimal' | 'standard' | 'complete';
|
|
11
|
+
interface FileTreeIconConfig {
|
|
12
|
+
/** Use one of the built-in icon sets, or `none` for custom-only icon rules. */
|
|
13
|
+
set?: FileTreeBuiltInIconSet | 'none';
|
|
14
|
+
/** Enable semantic per-file-type colors for built-in icon sets. */
|
|
15
|
+
colored?: boolean;
|
|
16
|
+
/** An SVG string with <symbol> definitions injected into the shadow DOM. */
|
|
17
|
+
spriteSheet?: string;
|
|
18
|
+
/** Remap built-in tree icon slots (file, chevron, dot, lock). */
|
|
19
|
+
remap?: Record<string, RemappedIcon>;
|
|
20
|
+
/** Remap file icons by exact basename (e.g. "package.json", ".gitignore"). */
|
|
21
|
+
byFileName?: Record<string, RemappedIcon>;
|
|
22
|
+
/** Remap file icons by extension without a leading dot (e.g. "ts", "spec.ts"). */
|
|
23
|
+
byFileExtension?: Record<string, RemappedIcon>;
|
|
24
|
+
/** Remap file icons by basename substring (e.g. "dockerfile", "license"). */
|
|
25
|
+
byFileNameContains?: Record<string, RemappedIcon>;
|
|
26
|
+
}
|
|
27
|
+
type FileTreeIcons = FileTreeBuiltInIconSet | FileTreeIconConfig;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../../node_modules/.pnpm/@pierre+trees@1.0.0-beta.6_@pierre+theme@2.0.0_@shikijs+themes@4.5.0_react-dom@19.2.8_r_1bb1bb7c965cf1063203cdfd313d3b8d/node_modules/@pierre/trees/dist/publicTypes.d.ts
|
|
30
|
+
//#region src/publicTypes.d.ts
|
|
31
|
+
type GitStatus = 'added' | 'deleted' | 'ignored' | 'modified' | 'renamed' | 'untracked';
|
|
32
|
+
type GitStatusEntry = {
|
|
33
|
+
path: string;
|
|
34
|
+
status: GitStatus;
|
|
35
|
+
};
|
|
36
|
+
type ContextMenuAnchorRect = Readonly<{
|
|
37
|
+
top: number;
|
|
38
|
+
right: number;
|
|
39
|
+
bottom: number;
|
|
40
|
+
left: number;
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
}>;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../../node_modules/.pnpm/@pierre+trees@1.0.0-beta.6_@pierre+theme@2.0.0_@shikijs+themes@4.5.0_react-dom@19.2.8_r_1bb1bb7c965cf1063203cdfd313d3b8d/node_modules/@pierre/trees/dist/model/density.d.ts
|
|
48
|
+
//#region src/model/density.d.ts
|
|
49
|
+
type FileTreeDensityKeyword = 'compact' | 'default' | 'relaxed';
|
|
50
|
+
type FileTreeDensity = FileTreeDensityKeyword | number;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region ../../node_modules/.pnpm/@pierre+trees@1.0.0-beta.6_@pierre+theme@2.0.0_@shikijs+themes@4.5.0_react-dom@19.2.8_r_1bb1bb7c965cf1063203cdfd313d3b8d/node_modules/@pierre/trees/dist/preparedInput.d.ts
|
|
53
|
+
//#region src/preparedInput.d.ts
|
|
54
|
+
declare const FILE_TREE_PREPARED_INPUT: unique symbol;
|
|
55
|
+
interface FileTreePreparedInput {
|
|
56
|
+
readonly [FILE_TREE_PREPARED_INPUT]: true;
|
|
57
|
+
readonly paths: readonly string[];
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region ../../node_modules/.pnpm/@pierre+trees@1.0.0-beta.6_@pierre+theme@2.0.0_@shikijs+themes@4.5.0_react-dom@19.2.8_r_1bb1bb7c965cf1063203cdfd313d3b8d/node_modules/@pierre/trees/dist/model/publicTypes.d.ts
|
|
61
|
+
//#region src/model/publicTypes.d.ts
|
|
62
|
+
/**
|
|
63
|
+
* Public tree identity is path-first so render and model callers never depend
|
|
64
|
+
* on the underlying path-store numeric IDs.
|
|
65
|
+
*/
|
|
66
|
+
type FileTreePublicId = string;
|
|
67
|
+
interface FileTreeSortEntry {
|
|
68
|
+
basename: string;
|
|
69
|
+
depth: number;
|
|
70
|
+
isDirectory: boolean;
|
|
71
|
+
path: FileTreePublicId;
|
|
72
|
+
segments: readonly string[];
|
|
73
|
+
}
|
|
74
|
+
type FileTreeSortComparator = (left: FileTreeSortEntry, right: FileTreeSortEntry) => number;
|
|
75
|
+
type FileTreeInitialExpansion = 'closed' | 'open' | number;
|
|
76
|
+
interface FileTreeRemoveOptions {
|
|
77
|
+
recursive?: boolean;
|
|
78
|
+
}
|
|
79
|
+
type FileTreeCollisionStrategy = 'error' | 'replace' | 'skip';
|
|
80
|
+
interface FileTreeMoveOptions {
|
|
81
|
+
collision?: FileTreeCollisionStrategy;
|
|
82
|
+
}
|
|
83
|
+
type FileTreeBatchOperation = {
|
|
84
|
+
path: FileTreePublicId;
|
|
85
|
+
type: 'add';
|
|
86
|
+
} | ({
|
|
87
|
+
path: FileTreePublicId;
|
|
88
|
+
type: 'remove';
|
|
89
|
+
} & FileTreeRemoveOptions) | ({
|
|
90
|
+
from: FileTreePublicId;
|
|
91
|
+
to: FileTreePublicId;
|
|
92
|
+
type: 'move';
|
|
93
|
+
} & FileTreeMoveOptions);
|
|
94
|
+
interface FileTreeGitStatusPatch {
|
|
95
|
+
remove?: readonly FileTreePublicId[];
|
|
96
|
+
set?: readonly GitStatusEntry[];
|
|
97
|
+
}
|
|
98
|
+
interface FileTreeStoreOptions {
|
|
99
|
+
flattenEmptyDirectories?: boolean;
|
|
100
|
+
initialExpansion?: FileTreeInitialExpansion;
|
|
101
|
+
initialExpandedPaths?: readonly FileTreePublicId[];
|
|
102
|
+
presorted?: boolean;
|
|
103
|
+
sort?: 'default' | FileTreeSortComparator;
|
|
104
|
+
}
|
|
105
|
+
type FileTreeInputOptions = {
|
|
106
|
+
paths: readonly FileTreePublicId[];
|
|
107
|
+
preparedInput?: FileTreePreparedInput;
|
|
108
|
+
} | {
|
|
109
|
+
paths?: readonly FileTreePublicId[];
|
|
110
|
+
preparedInput: FileTreePreparedInput;
|
|
111
|
+
};
|
|
112
|
+
type FileTreeControllerBehaviorOptions = FileTreeStoreOptions & {
|
|
113
|
+
dragAndDrop?: boolean | FileTreeDragAndDropConfig;
|
|
114
|
+
fileTreeSearchMode?: FileTreeSearchMode;
|
|
115
|
+
initialSearchQuery?: string | null;
|
|
116
|
+
initialSelectedPaths?: readonly FileTreePublicId[];
|
|
117
|
+
onSearchChange?: FileTreeSearchChangeListener;
|
|
118
|
+
renaming?: boolean | FileTreeRenamingConfig;
|
|
119
|
+
};
|
|
120
|
+
type FileTreeControllerOptions = FileTreeControllerBehaviorOptions & FileTreeInputOptions;
|
|
121
|
+
interface FileTreeVisibleSegment {
|
|
122
|
+
isTerminal: boolean;
|
|
123
|
+
name: string;
|
|
124
|
+
path: FileTreePublicId;
|
|
125
|
+
}
|
|
126
|
+
interface FileTreeVisibleRow {
|
|
127
|
+
ancestorPaths: readonly FileTreePublicId[];
|
|
128
|
+
depth: number;
|
|
129
|
+
flattenedSegments?: readonly FileTreeVisibleSegment[];
|
|
130
|
+
hasChildren: boolean;
|
|
131
|
+
index: number;
|
|
132
|
+
isFocused: boolean;
|
|
133
|
+
isSelected: boolean;
|
|
134
|
+
isExpanded: boolean;
|
|
135
|
+
isFlattened: boolean;
|
|
136
|
+
kind: 'directory' | 'file';
|
|
137
|
+
level: number;
|
|
138
|
+
name: string;
|
|
139
|
+
path: FileTreePublicId;
|
|
140
|
+
posInSet: number;
|
|
141
|
+
setSize: number;
|
|
142
|
+
}
|
|
143
|
+
interface FileTreeItemHandleBase {
|
|
144
|
+
deselect(): void;
|
|
145
|
+
focus(): void;
|
|
146
|
+
getPath(): FileTreePublicId;
|
|
147
|
+
isFocused(): boolean;
|
|
148
|
+
isDirectory(): boolean;
|
|
149
|
+
isSelected(): boolean;
|
|
150
|
+
select(): void;
|
|
151
|
+
toggleSelect(): void;
|
|
152
|
+
}
|
|
153
|
+
interface FileTreeDirectoryHandle extends FileTreeItemHandleBase {
|
|
154
|
+
collapse(): void;
|
|
155
|
+
expand(): void;
|
|
156
|
+
isDirectory(): true;
|
|
157
|
+
isExpanded(): boolean;
|
|
158
|
+
toggle(): void;
|
|
159
|
+
}
|
|
160
|
+
interface FileTreeFileHandle extends FileTreeItemHandleBase {
|
|
161
|
+
isDirectory(): false;
|
|
162
|
+
}
|
|
163
|
+
type FileTreeItemHandle = FileTreeDirectoryHandle | FileTreeFileHandle;
|
|
164
|
+
interface FileTreeRenderOptions {
|
|
165
|
+
initialVisibleRowCount?: number;
|
|
166
|
+
itemHeight?: number;
|
|
167
|
+
overscan?: number;
|
|
168
|
+
stickyFolders?: boolean;
|
|
169
|
+
}
|
|
170
|
+
type FileTreeScrollOffset = 'top' | 'center' | 'nearest';
|
|
171
|
+
interface FileTreeScrollToPathOptions {
|
|
172
|
+
focus?: boolean;
|
|
173
|
+
offset?: FileTreeScrollOffset;
|
|
174
|
+
}
|
|
175
|
+
type FileTreeSearchMode = 'expand-matches' | 'collapse-non-matches' | 'hide-non-matches';
|
|
176
|
+
type FileTreeSearchBlurBehavior = 'close' | 'retain';
|
|
177
|
+
type FileTreeSearchChangeListener = (value: string | null) => void;
|
|
178
|
+
interface FileTreeSearchSessionHandle {
|
|
179
|
+
closeSearch(): void;
|
|
180
|
+
focusNextSearchMatch(): void;
|
|
181
|
+
focusPreviousSearchMatch(): void;
|
|
182
|
+
getSearchMatchingPaths(): readonly FileTreePublicId[];
|
|
183
|
+
getSearchValue(): string;
|
|
184
|
+
isSearchOpen(): boolean;
|
|
185
|
+
openSearch(initialValue?: string): void;
|
|
186
|
+
setSearch(value: string | null): void;
|
|
187
|
+
}
|
|
188
|
+
interface FileTreeDropTarget {
|
|
189
|
+
directoryPath: FileTreePublicId | null;
|
|
190
|
+
flattenedSegmentPath: FileTreePublicId | null;
|
|
191
|
+
hoveredPath: FileTreePublicId | null;
|
|
192
|
+
kind: 'directory' | 'root';
|
|
193
|
+
}
|
|
194
|
+
interface FileTreeDropContext {
|
|
195
|
+
draggedPaths: readonly FileTreePublicId[];
|
|
196
|
+
target: FileTreeDropTarget;
|
|
197
|
+
}
|
|
198
|
+
interface FileTreeDropResult extends FileTreeDropContext {
|
|
199
|
+
operation: 'batch' | 'move';
|
|
200
|
+
}
|
|
201
|
+
interface FileTreeDragAndDropConfig {
|
|
202
|
+
canDrag?: (paths: readonly FileTreePublicId[]) => boolean;
|
|
203
|
+
canDrop?: (event: FileTreeDropContext) => boolean;
|
|
204
|
+
onDropComplete?: (event: FileTreeDropResult) => void;
|
|
205
|
+
onDropError?: (error: string, event: FileTreeDropContext) => void;
|
|
206
|
+
openOnDropDelay?: number;
|
|
207
|
+
}
|
|
208
|
+
interface FileTreeRenamingItem {
|
|
209
|
+
isFolder: boolean;
|
|
210
|
+
path: FileTreePublicId;
|
|
211
|
+
}
|
|
212
|
+
interface FileTreeRenameEvent {
|
|
213
|
+
destinationPath: FileTreePublicId;
|
|
214
|
+
isFolder: boolean;
|
|
215
|
+
sourcePath: FileTreePublicId;
|
|
216
|
+
}
|
|
217
|
+
interface FileTreeRenamingConfig {
|
|
218
|
+
canRename?: (item: FileTreeRenamingItem) => boolean;
|
|
219
|
+
onError?: (error: string) => void;
|
|
220
|
+
onRename?: (event: FileTreeRenameEvent) => void;
|
|
221
|
+
}
|
|
222
|
+
type FileTreeOptionSurface = FileTreeRenderOptions & {
|
|
223
|
+
composition?: FileTreeCompositionOptions;
|
|
224
|
+
density?: FileTreeDensity;
|
|
225
|
+
gitStatus?: readonly GitStatusEntry[];
|
|
226
|
+
id?: string;
|
|
227
|
+
icons?: FileTreeIcons;
|
|
228
|
+
onSelectionChange?: FileTreeSelectionChangeListener;
|
|
229
|
+
renderRowDecoration?: FileTreeRowDecorationRenderer;
|
|
230
|
+
search?: boolean;
|
|
231
|
+
searchFakeFocus?: boolean;
|
|
232
|
+
searchBlurBehavior?: FileTreeSearchBlurBehavior;
|
|
233
|
+
unsafeCSS?: string;
|
|
234
|
+
};
|
|
235
|
+
type FileTreeOptions$1 = FileTreeControllerOptions & FileTreeOptionSurface;
|
|
236
|
+
interface FileTreeRenderProps {
|
|
237
|
+
containerWrapper?: HTMLElement;
|
|
238
|
+
fileTreeContainer?: HTMLElement;
|
|
239
|
+
}
|
|
240
|
+
interface FileTreeHydrationProps {
|
|
241
|
+
fileTreeContainer: HTMLElement;
|
|
242
|
+
}
|
|
243
|
+
interface FileTreeMutationEventInvalidation {
|
|
244
|
+
canonicalChanged: boolean;
|
|
245
|
+
projectionChanged: boolean;
|
|
246
|
+
visibleCountDelta: number | null;
|
|
247
|
+
}
|
|
248
|
+
interface FileTreeAddEvent extends FileTreeMutationEventInvalidation {
|
|
249
|
+
operation: 'add';
|
|
250
|
+
path: FileTreePublicId;
|
|
251
|
+
}
|
|
252
|
+
interface FileTreeRemoveEvent extends FileTreeMutationEventInvalidation {
|
|
253
|
+
operation: 'remove';
|
|
254
|
+
path: FileTreePublicId;
|
|
255
|
+
recursive: boolean;
|
|
256
|
+
}
|
|
257
|
+
interface FileTreeMoveEvent extends FileTreeMutationEventInvalidation {
|
|
258
|
+
from: FileTreePublicId;
|
|
259
|
+
operation: 'move';
|
|
260
|
+
to: FileTreePublicId;
|
|
261
|
+
}
|
|
262
|
+
interface FileTreeResetEvent extends FileTreeMutationEventInvalidation {
|
|
263
|
+
operation: 'reset';
|
|
264
|
+
pathCountAfter: number;
|
|
265
|
+
pathCountBefore: number;
|
|
266
|
+
usedPreparedInput: boolean;
|
|
267
|
+
}
|
|
268
|
+
type FileTreeMutationSemanticEvent = FileTreeAddEvent | FileTreeRemoveEvent | FileTreeMoveEvent | FileTreeResetEvent;
|
|
269
|
+
interface FileTreeBatchEvent extends FileTreeMutationEventInvalidation {
|
|
270
|
+
events: readonly FileTreeMutationSemanticEvent[];
|
|
271
|
+
operation: 'batch';
|
|
272
|
+
}
|
|
273
|
+
type FileTreeMutationEvent = FileTreeMutationSemanticEvent | FileTreeBatchEvent;
|
|
274
|
+
type FileTreeMutationEventType = FileTreeMutationEvent['operation'];
|
|
275
|
+
type FileTreeMutationEventForType<TType extends FileTreeMutationEventType | '*'> = TType extends '*' ? FileTreeMutationEvent : Extract<FileTreeMutationEvent, {
|
|
276
|
+
operation: TType;
|
|
277
|
+
}>;
|
|
278
|
+
interface FileTreeResetBehaviorOptions {
|
|
279
|
+
initialExpandedPaths?: readonly FileTreePublicId[];
|
|
280
|
+
}
|
|
281
|
+
type FileTreeResetOptions = FileTreeResetBehaviorOptions & {
|
|
282
|
+
preparedInput?: FileTreePreparedInput;
|
|
283
|
+
};
|
|
284
|
+
type FileTreeResetPreparedOptions = FileTreeResetBehaviorOptions & {
|
|
285
|
+
preparedInput: FileTreePreparedInput;
|
|
286
|
+
};
|
|
287
|
+
interface FileTreeMutationHandle {
|
|
288
|
+
add(path: FileTreePublicId): void;
|
|
289
|
+
batch(operations: readonly FileTreeBatchOperation[]): void;
|
|
290
|
+
move(fromPath: FileTreePublicId, toPath: FileTreePublicId, options?: FileTreeMoveOptions): void;
|
|
291
|
+
onMutation<TType extends FileTreeMutationEventType | '*'>(type: TType, handler: (event: FileTreeMutationEventForType<TType>) => void): () => void;
|
|
292
|
+
remove(path: FileTreePublicId, options?: FileTreeRemoveOptions): void;
|
|
293
|
+
resetPaths(paths: readonly FileTreePublicId[], options?: FileTreeResetOptions): void;
|
|
294
|
+
resetPaths(options: FileTreeResetPreparedOptions): void;
|
|
295
|
+
}
|
|
296
|
+
type FileTreeListener = () => void;
|
|
297
|
+
type FileTreeSelectionChangeListener = (selectedPaths: readonly FileTreePublicId[]) => void;
|
|
298
|
+
interface FileTreeContextMenuItem {
|
|
299
|
+
kind: 'directory' | 'file';
|
|
300
|
+
name: string;
|
|
301
|
+
path: FileTreePublicId;
|
|
302
|
+
}
|
|
303
|
+
interface FileTreeContextMenuOpenContext {
|
|
304
|
+
anchorElement: HTMLElement;
|
|
305
|
+
anchorRect: ContextMenuAnchorRect;
|
|
306
|
+
/**
|
|
307
|
+
* Closes the current context menu. Pass `{ restoreFocus: false }` when the
|
|
308
|
+
* caller is about to transfer focus into another owned surface, such as the
|
|
309
|
+
* inline rename input, so the menu close path does not steal focus back to
|
|
310
|
+
* the row first.
|
|
311
|
+
*/
|
|
312
|
+
close: (options?: {
|
|
313
|
+
restoreFocus?: boolean;
|
|
314
|
+
}) => void;
|
|
315
|
+
restoreFocus: () => void;
|
|
316
|
+
}
|
|
317
|
+
interface FileTreeHeaderCompositionOptions {
|
|
318
|
+
html?: string;
|
|
319
|
+
render?: () => HTMLElement | null;
|
|
320
|
+
}
|
|
321
|
+
type FileTreeContextMenuTriggerMode = 'both' | 'button' | 'right-click';
|
|
322
|
+
type FileTreeContextMenuButtonVisibility = 'always' | 'when-needed';
|
|
323
|
+
interface FileTreeContextMenuCompositionOptions {
|
|
324
|
+
enabled?: boolean;
|
|
325
|
+
triggerMode?: FileTreeContextMenuTriggerMode;
|
|
326
|
+
buttonVisibility?: FileTreeContextMenuButtonVisibility;
|
|
327
|
+
onOpen?: (item: FileTreeContextMenuItem, context: FileTreeContextMenuOpenContext) => void;
|
|
328
|
+
onClose?: () => void;
|
|
329
|
+
/**
|
|
330
|
+
* If the interactive menu surface renders through a portal instead of inside
|
|
331
|
+
* the returned element, mark that portaled root with
|
|
332
|
+
* `data-file-tree-context-menu-root="true"` so internal clicks are not
|
|
333
|
+
* treated as outside clicks.
|
|
334
|
+
*/
|
|
335
|
+
render?: (item: FileTreeContextMenuItem, context: FileTreeContextMenuOpenContext) => HTMLElement | null;
|
|
336
|
+
}
|
|
337
|
+
interface FileTreeCompositionOptions {
|
|
338
|
+
contextMenu?: FileTreeContextMenuCompositionOptions;
|
|
339
|
+
header?: FileTreeHeaderCompositionOptions;
|
|
340
|
+
}
|
|
341
|
+
interface FileTreeRowDecorationTextPart {
|
|
342
|
+
text: string;
|
|
343
|
+
color?: string;
|
|
344
|
+
}
|
|
345
|
+
interface FileTreeRowDecorationText {
|
|
346
|
+
text: string;
|
|
347
|
+
title?: string;
|
|
348
|
+
parts?: readonly FileTreeRowDecorationTextPart[];
|
|
349
|
+
}
|
|
350
|
+
interface FileTreeRowDecorationIcon {
|
|
351
|
+
icon: RemappedIcon;
|
|
352
|
+
title?: string;
|
|
353
|
+
}
|
|
354
|
+
type FileTreeRowDecoration = FileTreeRowDecorationText | FileTreeRowDecorationIcon;
|
|
355
|
+
interface FileTreeRowDecorationContext {
|
|
356
|
+
item: FileTreeContextMenuItem;
|
|
357
|
+
row: FileTreeVisibleRow;
|
|
358
|
+
}
|
|
359
|
+
type FileTreeRowDecorationRenderer = (context: FileTreeRowDecorationContext) => FileTreeRowDecoration | null;
|
|
360
|
+
//#endregion
|
|
361
|
+
//#region ../../node_modules/.pnpm/@pierre+trees@1.0.0-beta.6_@pierre+theme@2.0.0_@shikijs+themes@4.5.0_react-dom@19.2.8_r_1bb1bb7c965cf1063203cdfd313d3b8d/node_modules/@pierre/trees/dist/render/FileTree.d.ts
|
|
362
|
+
declare class FileTree$1 implements FileTreeMutationHandle, FileTreeSearchSessionHandle {
|
|
363
|
+
#private;
|
|
364
|
+
static LoadedCustomComponent: boolean;
|
|
365
|
+
constructor(options: FileTreeOptions$1);
|
|
366
|
+
unmount(): void;
|
|
367
|
+
cleanUp(): void;
|
|
368
|
+
getFileTreeContainer(): HTMLElement | undefined;
|
|
369
|
+
getItem(path: string): FileTreeItemHandle | null;
|
|
370
|
+
getFocusedItem(): FileTreeItemHandle | null;
|
|
371
|
+
getFocusedPath(): string | null;
|
|
372
|
+
getFocusedIndex(): number;
|
|
373
|
+
getVisibleCount(): number;
|
|
374
|
+
getVisibleRows(start: number, end: number): readonly FileTreeVisibleRow[];
|
|
375
|
+
getSelectedPaths(): readonly string[];
|
|
376
|
+
getComposition(): FileTreeCompositionOptions | undefined;
|
|
377
|
+
getItemHeight(): number;
|
|
378
|
+
getDensityFactor(): number;
|
|
379
|
+
subscribe(listener: FileTreeListener): () => void;
|
|
380
|
+
focusPath(path: string): void;
|
|
381
|
+
focusFirstItem(): void;
|
|
382
|
+
focusLastItem(): void;
|
|
383
|
+
focusNextItem(): void;
|
|
384
|
+
focusPreviousItem(): void;
|
|
385
|
+
focusParentItem(): void;
|
|
386
|
+
scrollToPath(path: FileTreePublicId, options?: FileTreeScrollToPathOptions): void;
|
|
387
|
+
focusNearestPath(path: string | null): string | null;
|
|
388
|
+
add(path: string): void;
|
|
389
|
+
batch(operations: readonly FileTreeBatchOperation[]): void;
|
|
390
|
+
applyGitStatusPatch(patch: FileTreeGitStatusPatch): void;
|
|
391
|
+
move(fromPath: string, toPath: string, options?: FileTreeMoveOptions): void;
|
|
392
|
+
onMutation<TType extends FileTreeMutationEventType | '*'>(type: TType, handler: (event: FileTreeMutationEventForType<TType>) => void): () => void;
|
|
393
|
+
setSearch(value: string | null): void;
|
|
394
|
+
openSearch(initialValue?: string): void;
|
|
395
|
+
closeSearch(): void;
|
|
396
|
+
isSearchOpen(): boolean;
|
|
397
|
+
getSearchValue(): string;
|
|
398
|
+
getSearchMatchingPaths(): readonly string[];
|
|
399
|
+
focusNextSearchMatch(): void;
|
|
400
|
+
focusPreviousSearchMatch(): void;
|
|
401
|
+
startRenaming(path?: string, options?: {
|
|
402
|
+
removeIfCanceled?: boolean;
|
|
403
|
+
}): boolean;
|
|
404
|
+
remove(path: string, options?: FileTreeRemoveOptions): void;
|
|
405
|
+
resetPaths(paths: readonly string[], options?: FileTreeResetOptions): void;
|
|
406
|
+
resetPaths(options: FileTreeResetPreparedOptions): void;
|
|
407
|
+
setComposition(composition?: FileTreeCompositionOptions): void;
|
|
408
|
+
setGitStatus(gitStatus?: FileTreeOptions$1['gitStatus']): void;
|
|
409
|
+
setIcons(icons?: FileTreeOptions$1['icons']): void;
|
|
410
|
+
hydrate({ fileTreeContainer }: FileTreeHydrationProps): void;
|
|
411
|
+
render({ containerWrapper, fileTreeContainer }: FileTreeRenderProps): void;
|
|
412
|
+
}
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region src/components/file-tree.d.ts
|
|
415
|
+
/** The Pierre tree model that `useFileTree()` returns and `FileTree` renders. */
|
|
416
|
+
type FileTreeModel = FileTree$1;
|
|
417
|
+
interface FileTreeOptions extends Omit<FileTreeOptions$1, "paths"> {
|
|
418
|
+
paths: readonly string[];
|
|
419
|
+
}
|
|
420
|
+
declare function useFileTree(options: FileTreeOptions): FileTreeModel;
|
|
421
|
+
declare function useFileTreeSelection(model: FileTreeModel): import("vue").ShallowRef<readonly string[], readonly string[]>;
|
|
422
|
+
declare const FileTree: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
423
|
+
model: {
|
|
424
|
+
type: PropType<FileTreeModel>;
|
|
425
|
+
};
|
|
426
|
+
options: {
|
|
427
|
+
type: PropType<Omit<FileTreeOptions$1, "paths">>;
|
|
428
|
+
};
|
|
429
|
+
paths: {
|
|
430
|
+
default: () => never[];
|
|
431
|
+
type: PropType<readonly string[]>;
|
|
432
|
+
};
|
|
433
|
+
searchLabel: {
|
|
434
|
+
default: string;
|
|
435
|
+
type: StringConstructor;
|
|
436
|
+
};
|
|
437
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
438
|
+
[key: string]: any;
|
|
439
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
440
|
+
model: {
|
|
441
|
+
type: PropType<FileTreeModel>;
|
|
442
|
+
};
|
|
443
|
+
options: {
|
|
444
|
+
type: PropType<Omit<FileTreeOptions$1, "paths">>;
|
|
445
|
+
};
|
|
446
|
+
paths: {
|
|
447
|
+
default: () => never[];
|
|
448
|
+
type: PropType<readonly string[]>;
|
|
449
|
+
};
|
|
450
|
+
searchLabel: {
|
|
451
|
+
default: string;
|
|
452
|
+
type: StringConstructor;
|
|
453
|
+
};
|
|
454
|
+
}>> & Readonly<{}>, {
|
|
455
|
+
paths: readonly string[];
|
|
456
|
+
searchLabel: string;
|
|
457
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
458
|
+
//#endregion
|
|
459
|
+
export { useFileTreeSelection as a, useFileTree as i, FileTreeModel as n, FileTreeOptions as r, FileTree as t };
|