@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
package/dist/headless.js
CHANGED
|
@@ -1,333 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function useInternalMessageScroller() {
|
|
5
|
-
const context = inject(messageScrollerKey);
|
|
6
|
-
if (!context) throw new Error("Message scroller primitives must be used inside MessageScrollerRoot.");
|
|
7
|
-
return context;
|
|
8
|
-
}
|
|
9
|
-
function useMessageScroller() {
|
|
10
|
-
return useInternalMessageScroller();
|
|
11
|
-
}
|
|
12
|
-
function toNativeBehavior(value) {
|
|
13
|
-
const behavior = value ?? "smooth";
|
|
14
|
-
return behavior === "instant" || behavior === "smooth" && globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : behavior;
|
|
15
|
-
}
|
|
16
|
-
function calculatePrependScrollTop(previousTop, previousHeight, nextHeight) {
|
|
17
|
-
return previousTop + (nextHeight - previousHeight);
|
|
18
|
-
}
|
|
19
|
-
const MessageScrollerRoot = defineComponent({
|
|
20
|
-
name: "MessageScrollerRoot",
|
|
21
|
-
inheritAttrs: false,
|
|
22
|
-
props: {
|
|
23
|
-
as: {
|
|
24
|
-
default: "div",
|
|
25
|
-
type: String
|
|
26
|
-
},
|
|
27
|
-
autoScroll: {
|
|
28
|
-
default: true,
|
|
29
|
-
type: Boolean
|
|
30
|
-
},
|
|
31
|
-
defaultScrollPosition: {
|
|
32
|
-
default: "end",
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
edgeThreshold: {
|
|
36
|
-
default: 8,
|
|
37
|
-
type: Number
|
|
38
|
-
},
|
|
39
|
-
previousItemPeek: {
|
|
40
|
-
default: 64,
|
|
41
|
-
type: Number
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
setup(props, { attrs, slots }) {
|
|
45
|
-
const viewport = ref(null);
|
|
46
|
-
const content = ref(null);
|
|
47
|
-
const atEnd = ref(props.defaultScrollPosition === "end");
|
|
48
|
-
const following = ref(props.autoScroll && props.defaultScrollPosition === "end");
|
|
49
|
-
const isScrollable = ref(false);
|
|
50
|
-
const items = reactive(/* @__PURE__ */ new Map());
|
|
51
|
-
const refresh = () => {
|
|
52
|
-
const node = viewport.value;
|
|
53
|
-
if (!node) return;
|
|
54
|
-
atEnd.value = node.scrollHeight - node.clientHeight - node.scrollTop <= props.edgeThreshold;
|
|
55
|
-
isScrollable.value = node.scrollHeight > node.clientHeight + 1;
|
|
56
|
-
};
|
|
57
|
-
const scrollToEnd = (options = {}) => {
|
|
58
|
-
const node = viewport.value;
|
|
59
|
-
if (!node) return;
|
|
60
|
-
following.value = true;
|
|
61
|
-
node.scrollTo({
|
|
62
|
-
behavior: toNativeBehavior(options.behavior),
|
|
63
|
-
top: node.scrollHeight
|
|
64
|
-
});
|
|
65
|
-
nextTick(refresh);
|
|
66
|
-
};
|
|
67
|
-
const scrollToMessage = (id, options = {}) => {
|
|
68
|
-
const item = items.get(id);
|
|
69
|
-
if (!item) return;
|
|
70
|
-
following.value = options.block === "end";
|
|
71
|
-
item.scrollIntoView({
|
|
72
|
-
behavior: toNativeBehavior(options.behavior),
|
|
73
|
-
block: options.block ?? "start"
|
|
74
|
-
});
|
|
75
|
-
nextTick(refresh);
|
|
76
|
-
};
|
|
77
|
-
provide(messageScrollerKey, {
|
|
78
|
-
atEnd,
|
|
79
|
-
content,
|
|
80
|
-
edgeThreshold: computed(() => props.edgeThreshold),
|
|
81
|
-
following,
|
|
82
|
-
isScrollable,
|
|
83
|
-
items,
|
|
84
|
-
previousItemPeek: computed(() => props.previousItemPeek),
|
|
85
|
-
refresh,
|
|
86
|
-
scrollToEnd,
|
|
87
|
-
scrollToMessage,
|
|
88
|
-
viewport
|
|
89
|
-
});
|
|
90
|
-
return () => h(props.as, {
|
|
91
|
-
...attrs,
|
|
92
|
-
"data-slot": "message-scroller-root"
|
|
93
|
-
}, slots.default?.({
|
|
94
|
-
atEnd: atEnd.value,
|
|
95
|
-
isScrollable: isScrollable.value,
|
|
96
|
-
scrollToEnd,
|
|
97
|
-
scrollToMessage
|
|
98
|
-
}));
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
const MessageScrollerViewport = defineComponent({
|
|
102
|
-
name: "MessageScrollerViewport",
|
|
103
|
-
inheritAttrs: false,
|
|
104
|
-
props: { as: {
|
|
105
|
-
default: "div",
|
|
106
|
-
type: String
|
|
107
|
-
} },
|
|
108
|
-
setup(props, { attrs, slots }) {
|
|
109
|
-
const context = useInternalMessageScroller();
|
|
110
|
-
let resizeObserver;
|
|
111
|
-
let mutationObserver;
|
|
112
|
-
let pointerScrolling = false;
|
|
113
|
-
const setViewport = (node) => {
|
|
114
|
-
context.viewport.value = node instanceof HTMLElement ? node : null;
|
|
115
|
-
};
|
|
116
|
-
const onScroll = () => {
|
|
117
|
-
context.refresh();
|
|
118
|
-
if (context.atEnd.value) context.following.value = true;
|
|
119
|
-
else if (pointerScrolling) interruptFollowing();
|
|
120
|
-
pointerScrolling = false;
|
|
121
|
-
};
|
|
122
|
-
const interruptFollowing = () => {
|
|
123
|
-
context.following.value = false;
|
|
124
|
-
};
|
|
125
|
-
const onKeydown = (event) => {
|
|
126
|
-
const movesBackward = [
|
|
127
|
-
"ArrowUp",
|
|
128
|
-
"Home",
|
|
129
|
-
"PageUp"
|
|
130
|
-
].includes(event.key) || event.key === " " && event.shiftKey;
|
|
131
|
-
const movesForward = [
|
|
132
|
-
"ArrowDown",
|
|
133
|
-
"End",
|
|
134
|
-
"PageDown",
|
|
135
|
-
" "
|
|
136
|
-
].includes(event.key);
|
|
137
|
-
if (movesBackward || movesForward && !context.atEnd.value) interruptFollowing();
|
|
138
|
-
};
|
|
139
|
-
const observeContent = () => {
|
|
140
|
-
resizeObserver?.disconnect();
|
|
141
|
-
mutationObserver?.disconnect();
|
|
142
|
-
const viewport = context.viewport.value;
|
|
143
|
-
if (viewport) resizeObserver?.observe(viewport);
|
|
144
|
-
if (context.content.value && context.content.value !== viewport) {
|
|
145
|
-
resizeObserver?.observe(context.content.value);
|
|
146
|
-
mutationObserver?.observe(context.content.value, {
|
|
147
|
-
childList: true,
|
|
148
|
-
subtree: true,
|
|
149
|
-
characterData: true
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
onMounted(() => {
|
|
154
|
-
if (!context.viewport.value) return;
|
|
155
|
-
resizeObserver = new ResizeObserver(() => {
|
|
156
|
-
context.refresh();
|
|
157
|
-
if (context.following.value) context.scrollToEnd({ behavior: "instant" });
|
|
158
|
-
});
|
|
159
|
-
mutationObserver = new MutationObserver(() => {
|
|
160
|
-
context.refresh();
|
|
161
|
-
if (context.following.value) context.scrollToEnd({ behavior: "instant" });
|
|
162
|
-
});
|
|
163
|
-
observeContent();
|
|
164
|
-
context.refresh();
|
|
165
|
-
if (context.following.value) context.scrollToEnd({ behavior: "instant" });
|
|
166
|
-
});
|
|
167
|
-
onUpdated(() => {
|
|
168
|
-
observeContent();
|
|
169
|
-
});
|
|
170
|
-
onBeforeUnmount(() => {
|
|
171
|
-
resizeObserver?.disconnect();
|
|
172
|
-
mutationObserver?.disconnect();
|
|
173
|
-
context.viewport.value = null;
|
|
174
|
-
});
|
|
175
|
-
return () => {
|
|
176
|
-
const { style, ...viewportAttrs } = attrs;
|
|
177
|
-
return h(props.as, mergeProps({
|
|
178
|
-
"aria-label": "Messages",
|
|
179
|
-
role: "region",
|
|
180
|
-
tabindex: 0
|
|
181
|
-
}, viewportAttrs, {
|
|
182
|
-
"data-at-end": context.atEnd.value ? "" : void 0,
|
|
183
|
-
"data-slot": "message-scroller-viewport",
|
|
184
|
-
onKeydown,
|
|
185
|
-
onPointerdown: () => {
|
|
186
|
-
pointerScrolling = true;
|
|
187
|
-
},
|
|
188
|
-
onPointerup: () => {
|
|
189
|
-
pointerScrolling = false;
|
|
190
|
-
},
|
|
191
|
-
onScroll,
|
|
192
|
-
onWheel: (event) => {
|
|
193
|
-
if (event.deltaY < 0 || !context.atEnd.value) interruptFollowing();
|
|
194
|
-
},
|
|
195
|
-
ref: setViewport,
|
|
196
|
-
style: [{ overflowAnchor: "none" }, style]
|
|
197
|
-
}), slots.default?.());
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
const MessageScrollerContent = defineComponent({
|
|
202
|
-
name: "MessageScrollerContent",
|
|
203
|
-
inheritAttrs: false,
|
|
204
|
-
props: {
|
|
205
|
-
as: {
|
|
206
|
-
default: "div",
|
|
207
|
-
type: String
|
|
208
|
-
},
|
|
209
|
-
items: {
|
|
210
|
-
default: () => [],
|
|
211
|
-
type: Array
|
|
212
|
-
},
|
|
213
|
-
preserveScrollOnPrepend: {
|
|
214
|
-
default: true,
|
|
215
|
-
type: Boolean
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
setup(props, { attrs, slots }) {
|
|
219
|
-
const context = useInternalMessageScroller();
|
|
220
|
-
let previousFirst;
|
|
221
|
-
let previousHeight = 0;
|
|
222
|
-
let previousTop = 0;
|
|
223
|
-
const setContent = (node) => {
|
|
224
|
-
context.content.value = node instanceof HTMLElement ? node : null;
|
|
225
|
-
};
|
|
226
|
-
onMounted(() => {
|
|
227
|
-
previousFirst = props.items[0];
|
|
228
|
-
});
|
|
229
|
-
onUpdated(() => {
|
|
230
|
-
const viewport = context.viewport.value;
|
|
231
|
-
const first = props.items[0];
|
|
232
|
-
if (props.preserveScrollOnPrepend && viewport && previousFirst && first !== previousFirst && props.items.includes(previousFirst) && !context.following.value) viewport.scrollTop = calculatePrependScrollTop(previousTop, previousHeight, viewport.scrollHeight);
|
|
233
|
-
previousFirst = first;
|
|
234
|
-
context.refresh();
|
|
235
|
-
});
|
|
236
|
-
return () => {
|
|
237
|
-
const viewport = context.viewport.value;
|
|
238
|
-
previousHeight = viewport?.scrollHeight ?? 0;
|
|
239
|
-
previousTop = viewport?.scrollTop ?? 0;
|
|
240
|
-
return h(props.as, {
|
|
241
|
-
"aria-relevant": "additions text",
|
|
242
|
-
role: "log",
|
|
243
|
-
...attrs,
|
|
244
|
-
"data-slot": "message-scroller-content",
|
|
245
|
-
ref: setContent
|
|
246
|
-
}, slots.default?.());
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
const MessageScrollerItem = defineComponent({
|
|
251
|
-
name: "MessageScrollerItem",
|
|
252
|
-
inheritAttrs: false,
|
|
253
|
-
props: {
|
|
254
|
-
as: {
|
|
255
|
-
default: "div",
|
|
256
|
-
type: String
|
|
257
|
-
},
|
|
258
|
-
messageId: {
|
|
259
|
-
required: true,
|
|
260
|
-
type: String
|
|
261
|
-
},
|
|
262
|
-
scrollAnchor: {
|
|
263
|
-
default: false,
|
|
264
|
-
type: Boolean
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
setup(props, { attrs, slots }) {
|
|
268
|
-
const context = useInternalMessageScroller();
|
|
269
|
-
let element = null;
|
|
270
|
-
const setElement = (node) => {
|
|
271
|
-
if (element) context.items.delete(props.messageId);
|
|
272
|
-
element = node instanceof HTMLElement ? node : null;
|
|
273
|
-
if (element) context.items.set(props.messageId, element);
|
|
274
|
-
};
|
|
275
|
-
onMounted(() => {
|
|
276
|
-
if (!props.scrollAnchor || !element) return;
|
|
277
|
-
context.following.value = false;
|
|
278
|
-
const viewport = context.viewport.value;
|
|
279
|
-
if (viewport) viewport.scrollTop += element.getBoundingClientRect().top - viewport.getBoundingClientRect().top - context.previousItemPeek.value;
|
|
280
|
-
});
|
|
281
|
-
onBeforeUnmount(() => context.items.delete(props.messageId));
|
|
282
|
-
return () => h(props.as, {
|
|
283
|
-
...attrs,
|
|
284
|
-
"data-message-id": props.messageId,
|
|
285
|
-
"data-slot": "message-scroller-item",
|
|
286
|
-
ref: setElement,
|
|
287
|
-
style: [{ overflowAnchor: "none" }, attrs.style]
|
|
288
|
-
}, slots.default?.());
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
const MessageScrollerButton = defineComponent({
|
|
292
|
-
name: "MessageScrollerButton",
|
|
293
|
-
inheritAttrs: false,
|
|
294
|
-
props: {
|
|
295
|
-
as: {
|
|
296
|
-
default: "button",
|
|
297
|
-
type: [
|
|
298
|
-
String,
|
|
299
|
-
Object,
|
|
300
|
-
Function
|
|
301
|
-
]
|
|
302
|
-
},
|
|
303
|
-
behavior: {
|
|
304
|
-
default: "smooth",
|
|
305
|
-
type: String
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
setup(props, { attrs, slots }) {
|
|
309
|
-
const context = useInternalMessageScroller();
|
|
310
|
-
return () => {
|
|
311
|
-
const active = context.isScrollable.value && !context.atEnd.value;
|
|
312
|
-
const content = slots.default?.({ scrollToEnd: context.scrollToEnd }) ?? "↓";
|
|
313
|
-
const children = String(props.as) === props.as ? content : { default: () => content };
|
|
314
|
-
return h(props.as, mergeProps({
|
|
315
|
-
"aria-label": attrs["aria-label"] ?? "Scroll to latest message",
|
|
316
|
-
onClick: (event) => {
|
|
317
|
-
if (!active) return;
|
|
318
|
-
if (document.activeElement === event.currentTarget) context.viewport.value?.focus({ preventScroll: true });
|
|
319
|
-
context.scrollToEnd({ behavior: props.behavior });
|
|
320
|
-
}
|
|
321
|
-
}, attrs, {
|
|
322
|
-
"data-active": active ? "true" : "false",
|
|
323
|
-
"data-slot": "message-scroller-button",
|
|
324
|
-
hidden: active ? attrs.hidden : true,
|
|
325
|
-
inert: active ? void 0 : true,
|
|
326
|
-
tabindex: active ? attrs.tabindex : -1,
|
|
327
|
-
type: attrs.type ?? (props.as === "button" ? "button" : void 0)
|
|
328
|
-
}), children);
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
//#endregion
|
|
333
|
-
export { MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerRoot, MessageScrollerViewport, calculatePrependScrollTop, useMessageScroller };
|
|
1
|
+
import { a as MessageScrollerViewport, i as MessageScrollerItem, n as MessageScrollerButton, o as calculatePrependScrollTop, r as MessageScrollerContent, s as useMessageScroller, t as MessageScroller } from "./message-scroller-CX6NJTdm.js";
|
|
2
|
+
import { i as useCommentsContext, n as provideComments, r as useComments, t as draftPositionKey } from "./comments-C08J3z4e.js";
|
|
3
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, calculatePrependScrollTop, draftPositionKey, provideComments, useComments, useCommentsContext, useMessageScroller };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { h, onMounted, shallowRef, toValue, watch } from "vue";
|
|
2
|
+
//#region src/composables/highlighted-code.ts
|
|
3
|
+
const ansiLanguage = {
|
|
4
|
+
name: "ansi",
|
|
5
|
+
scopeName: "source.ansi",
|
|
6
|
+
patterns: []
|
|
7
|
+
};
|
|
8
|
+
const languages = {
|
|
9
|
+
bash: () => import("shiki/langs/bash.mjs"),
|
|
10
|
+
css: () => import("shiki/langs/css.mjs"),
|
|
11
|
+
diff: () => import("shiki/langs/diff.mjs"),
|
|
12
|
+
html: () => import("shiki/langs/html.mjs"),
|
|
13
|
+
javascript: () => import("shiki/langs/javascript.mjs"),
|
|
14
|
+
json: () => import("shiki/langs/json.mjs"),
|
|
15
|
+
jsx: () => import("shiki/langs/jsx.mjs"),
|
|
16
|
+
markdown: () => import("shiki/langs/markdown.mjs"),
|
|
17
|
+
python: () => import("shiki/langs/python.mjs"),
|
|
18
|
+
sql: () => import("shiki/langs/sql.mjs"),
|
|
19
|
+
tsx: () => import("shiki/langs/tsx.mjs"),
|
|
20
|
+
typescript: () => import("shiki/langs/typescript.mjs"),
|
|
21
|
+
vue: () => import("shiki/langs/vue.mjs"),
|
|
22
|
+
yaml: () => import("shiki/langs/yaml.mjs")
|
|
23
|
+
};
|
|
24
|
+
const aliases = {
|
|
25
|
+
js: "javascript",
|
|
26
|
+
md: "markdown",
|
|
27
|
+
sh: "bash",
|
|
28
|
+
shell: "bash",
|
|
29
|
+
ts: "typescript",
|
|
30
|
+
yml: "yaml"
|
|
31
|
+
};
|
|
32
|
+
let highlighter;
|
|
33
|
+
function loadHighlighter() {
|
|
34
|
+
highlighter ??= Promise.all([
|
|
35
|
+
import("shiki/core"),
|
|
36
|
+
import("shiki/engine/javascript"),
|
|
37
|
+
import("shiki/themes/github-light-default.mjs"),
|
|
38
|
+
import("shiki/themes/github-dark-default.mjs")
|
|
39
|
+
]).then(([{ createHighlighterCore }, { createJavaScriptRegexEngine }, light, dark]) => createHighlighterCore({
|
|
40
|
+
engine: createJavaScriptRegexEngine(),
|
|
41
|
+
langs: [],
|
|
42
|
+
themes: [light.default, dark.default]
|
|
43
|
+
}));
|
|
44
|
+
return highlighter;
|
|
45
|
+
}
|
|
46
|
+
const ansiEscapes = /(?:\u001B\]|\u009D)(?:[^\u0007\u001B\u009C]|\u001B(?!\\))*?(?:\u0007|\u001B\\|\u009C)|(?:\u001B\[|\u009B)[0-?]*[ -/]*[@-~]|\u0090[^\u009C\u001B]*(?:\u001B\\|\u009C)/g;
|
|
47
|
+
function stripAnsi(code) {
|
|
48
|
+
return code.replace(ansiEscapes, "");
|
|
49
|
+
}
|
|
50
|
+
function plainLines(code, language) {
|
|
51
|
+
return (language.toLowerCase() === "ansi" ? stripAnsi(code) : code).replace(/\n$/, "").split("\n").map((line) => h("span", line));
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Highlights `code` with Shiki and returns one node per line for `CodeBlockLine`.
|
|
55
|
+
* The server and first browser render show plain text; colors follow after mount.
|
|
56
|
+
* Use `"ansi"` for terminal output with color escape codes.
|
|
57
|
+
*/
|
|
58
|
+
function useHighlightedCode(code, language) {
|
|
59
|
+
const lines = shallowRef(plainLines(toValue(code), toValue(language)));
|
|
60
|
+
let requestId = 0;
|
|
61
|
+
async function highlight() {
|
|
62
|
+
const currentRequest = ++requestId;
|
|
63
|
+
const source = toValue(code);
|
|
64
|
+
const requested = toValue(language).toLowerCase();
|
|
65
|
+
const lang = aliases[requested] ?? requested;
|
|
66
|
+
if (lang !== "ansi" && !languages[lang]) {
|
|
67
|
+
lines.value = plainLines(source, lang);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const instance = await loadHighlighter();
|
|
71
|
+
if (!instance.getLoadedLanguages().includes(lang)) await instance.loadLanguage(lang === "ansi" ? [ansiLanguage] : (await languages[lang]()).default);
|
|
72
|
+
const highlightSource = lang === "ansi" ? stripAnsi(source) : source;
|
|
73
|
+
const { tokens } = instance.codeToTokens(highlightSource.replace(/\n$/, ""), {
|
|
74
|
+
defaultColor: false,
|
|
75
|
+
lang,
|
|
76
|
+
themes: {
|
|
77
|
+
dark: "github-dark-default",
|
|
78
|
+
light: "github-light-default"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
if (currentRequest !== requestId || source !== toValue(code) || requested !== toValue(language).toLowerCase()) return;
|
|
82
|
+
lines.value = tokens.map((line) => h("span", line.map((token) => h("span", { style: token.htmlStyle }, token.content))));
|
|
83
|
+
}
|
|
84
|
+
onMounted(() => {
|
|
85
|
+
watch([() => toValue(code), () => toValue(language)], () => void highlight().catch(() => {}), { immediate: true });
|
|
86
|
+
});
|
|
87
|
+
return lines;
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
export { useHighlightedCode as t };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, PropType, ShallowRef, VNode } from "vue";
|
|
2
|
+
//#region src/components/code-block.d.ts
|
|
3
|
+
type CodeBlockVariant = "default" | "destructive";
|
|
4
|
+
type CodeBlockSize = "default" | "sm";
|
|
5
|
+
type CodeBlockLineVariant = "default" | "added" | "removed" | "highlighted";
|
|
6
|
+
declare const CodeBlock: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
size: {
|
|
8
|
+
default: string;
|
|
9
|
+
type: PropType<CodeBlockSize>;
|
|
10
|
+
};
|
|
11
|
+
variant: {
|
|
12
|
+
default: string;
|
|
13
|
+
type: PropType<CodeBlockVariant>;
|
|
14
|
+
};
|
|
15
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
size: {
|
|
19
|
+
default: string;
|
|
20
|
+
type: PropType<CodeBlockSize>;
|
|
21
|
+
};
|
|
22
|
+
variant: {
|
|
23
|
+
default: string;
|
|
24
|
+
type: PropType<CodeBlockVariant>;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{}>, {
|
|
27
|
+
size: CodeBlockSize;
|
|
28
|
+
variant: CodeBlockVariant;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
declare const CodeBlockHeader: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
declare const CodeBlockTitle: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
declare const CodeBlockActions: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
declare const CodeBlockFooter: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
declare const CodeBlockCopyButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
43
|
+
value: {
|
|
44
|
+
required: true;
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
};
|
|
47
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
value: {
|
|
51
|
+
required: true;
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
};
|
|
54
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
|
+
declare const CodeBlockLine: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
56
|
+
variant: {
|
|
57
|
+
default: string;
|
|
58
|
+
type: PropType<CodeBlockLineVariant>;
|
|
59
|
+
};
|
|
60
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
|
+
variant: {
|
|
64
|
+
default: string;
|
|
65
|
+
type: PropType<CodeBlockLineVariant>;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{}>, {
|
|
68
|
+
variant: CodeBlockLineVariant;
|
|
69
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
declare const CodeBlockContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
71
|
+
lineNumbers: {
|
|
72
|
+
default: boolean;
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
};
|
|
75
|
+
startLine: {
|
|
76
|
+
default: number;
|
|
77
|
+
type: NumberConstructor;
|
|
78
|
+
};
|
|
79
|
+
wrap: {
|
|
80
|
+
default: boolean;
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
};
|
|
83
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
lineNumbers: {
|
|
87
|
+
default: boolean;
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
};
|
|
90
|
+
startLine: {
|
|
91
|
+
default: number;
|
|
92
|
+
type: NumberConstructor;
|
|
93
|
+
};
|
|
94
|
+
wrap: {
|
|
95
|
+
default: boolean;
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{}>, {
|
|
99
|
+
lineNumbers: boolean;
|
|
100
|
+
startLine: number;
|
|
101
|
+
wrap: boolean;
|
|
102
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/composables/highlighted-code.d.ts
|
|
105
|
+
/**
|
|
106
|
+
* Highlights `code` with Shiki and returns one node per line for `CodeBlockLine`.
|
|
107
|
+
* The server and first browser render show plain text; colors follow after mount.
|
|
108
|
+
* Use `"ansi"` for terminal output with color escape codes.
|
|
109
|
+
*/
|
|
110
|
+
declare function useHighlightedCode(code: MaybeRefOrGetter<string>, language: MaybeRefOrGetter<string>): ShallowRef<VNode[]>;
|
|
111
|
+
//#endregion
|
|
112
|
+
export { CodeBlockCopyButton as a, CodeBlockLine as c, CodeBlockTitle as d, CodeBlockVariant as f, CodeBlockContent as i, CodeBlockLineVariant as l, CodeBlock as n, CodeBlockFooter as o, CodeBlockActions as r, CodeBlockHeader as s, useHighlightedCode as t, CodeBlockSize as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@shikijs+themes@4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@shikijs+themes@4.5.0/node_modules/@shikijs/themes/dist/horizon-bright.mjs
|
|
2
2
|
var horizon_bright_default = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.background\":\"#FDF0ED\",\"activityBar.dropBackground\":\"#F9CEC380\",\"activityBar.foreground\":\"#06060CE6\",\"activityBarBadge.background\":\"#E84A72\",\"activityBarBadge.foreground\":\"#06060C\",\"badge.background\":\"#F9CBBE\",\"badge.foreground\":\"#06060C\",\"breadcrumbPicker.background\":\"#FADAD1\",\"button.background\":\"#F9CBBE\",\"button.foreground\":\"#06060C\",\"debugToolBar.background\":\"#FDF0ED\",\"diffEditor.insertedTextBackground\":\"#07DA8C1A\",\"diffEditor.removedTextBackground\":\"#F43E5C1A\",\"dropdown.background\":\"#FADAD1\",\"dropdown.listBackground\":\"#F9CBBE\",\"editor.background\":\"#FDF0ED\",\"editor.findMatchBackground\":\"#F9CEC380\",\"editor.findMatchHighlightBackground\":\"#F9CEC34D\",\"editor.findRangeHighlightBackground\":\"#F9CEC31A\",\"editor.hoverHighlightBackground\":\"#F9CEC34D\",\"editor.lineHighlightBackground\":\"#F9CBBE4D\",\"editor.rangeHighlightBackground\":\"#F9CBBE80\",\"editor.selectionBackground\":\"#F9CBBE80\",\"editor.selectionHighlightBackground\":\"#F9CEC380\",\"editor.wordHighlightBackground\":\"#F9CEC380\",\"editor.wordHighlightStrongBackground\":\"#F9CEC380\",\"editorBracketMatch.background\":\"#F9CEC380\",\"editorBracketMatch.border\":\"#F9CEC300\",\"editorCodeLens.foreground\":\"#F9CEC380\",\"editorCursor.background\":\"#FDF0ED\",\"editorCursor.foreground\":\"#E84A72\",\"editorError.foreground\":\"#F43E5C\",\"editorGroup.border\":\"#1A1C231A\",\"editorGroup.dropBackground\":\"#F9CEC34D\",\"editorGroupHeader.tabsBackground\":\"#FDF0ED\",\"editorGutter.addedBackground\":\"#07DA8CB3\",\"editorGutter.deletedBackground\":\"#F43E5CB3\",\"editorGutter.modifiedBackground\":\"#1EAEAEB3\",\"editorIndentGuide.activeBackground\":\"#F9CBBE\",\"editorIndentGuide.background\":\"#F9CBBE80\",\"editorLineNumber.activeForeground\":\"#06060C80\",\"editorLineNumber.foreground\":\"#06060C1A\",\"editorOverviewRuler.addedForeground\":\"#07DA8CB3\",\"editorOverviewRuler.border\":\"#F9CBBE1A\",\"editorOverviewRuler.bracketMatchForeground\":\"#06060CB3\",\"editorOverviewRuler.deletedForeground\":\"#F43E5CB3\",\"editorOverviewRuler.errorForeground\":\"#F43E5CE6\",\"editorOverviewRuler.findMatchForeground\":\"#F9CEC3\",\"editorOverviewRuler.modifiedForeground\":\"#1EAEAEB3\",\"editorOverviewRuler.warningForeground\":\"#1EB980B3\",\"editorRuler.foreground\":\"#F9CEC34D\",\"editorSuggestWidget.highlightForeground\":\"#E84A72\",\"editorUnnecessaryCode.opacity\":\"#000000B3\",\"editorWarning.foreground\":\"#1EB980B3\",\"editorWidget.background\":\"#FADAD1\",\"editorWidget.border\":\"#FADAD1\",\"errorForeground\":\"#F43E5C\",\"extensionButton.prominentBackground\":\"#E84A72\",\"extensionButton.prominentHoverBackground\":\"#E73665\",\"focusBorder\":\"#1A1C231A\",\"foreground\":\"#06060C\",\"gitDecoration.addedResourceForeground\":\"#1EB980B3\",\"gitDecoration.deletedResourceForeground\":\"#F43E5C\",\"gitDecoration.ignoredResourceForeground\":\"#06060C4D\",\"gitDecoration.modifiedResourceForeground\":\"#AF5427\",\"gitDecoration.untrackedResourceForeground\":\"#1EB980\",\"input.background\":\"#F9CBBE\",\"inputOption.activeBorder\":\"#E7366580\",\"inputValidation.errorBackground\":\"#F43E5C80\",\"inputValidation.errorBorder\":\"#F43E5C00\",\"list.activeSelectionBackground\":\"#F9CBBE80\",\"list.activeSelectionForeground\":\"#06060C\",\"list.dropBackground\":\"#F9CEC380\",\"list.errorForeground\":\"#F43E5CE6\",\"list.focusBackground\":\"#F9CBBE80\",\"list.focusForeground\":\"#06060C\",\"list.highlightForeground\":\"#E84A72\",\"list.hoverBackground\":\"#F9CBBE80\",\"list.hoverForeground\":\"#06060C\",\"list.inactiveFocusBackground\":\"#F9CBBE80\",\"list.inactiveSelectionBackground\":\"#F9CBBE4D\",\"list.inactiveSelectionForeground\":\"#06060C\",\"list.warningForeground\":\"#1EB980B3\",\"panelTitle.activeBorder\":\"#E84A72\",\"peekView.border\":\"#1A1C231A\",\"peekViewEditor.background\":\"#FADAD1\",\"peekViewEditor.matchHighlightBackground\":\"#F9CEC380\",\"peekViewResult.background\":\"#FADAD1\",\"peekViewResult.matchHighlightBackground\":\"#F9CEC380\",\"peekViewResult.selectionBackground\":\"#F9CBBE80\",\"peekViewTitle.background\":\"#FADAD1\",\"pickerGroup.foreground\":\"#E84A72E6\",\"progressBar.background\":\"#E84A72\",\"scrollbar.shadow\":\"#16161C4D\",\"scrollbarSlider.activeBackground\":\"#F9CEC3E6\",\"scrollbarSlider.background\":\"#F9CEC380\",\"scrollbarSlider.hoverBackground\":\"#F9CEC3B3\",\"selection.background\":\"#AF542780\",\"sideBar.background\":\"#FDF0ED\",\"sideBar.dropBackground\":\"#F9CEC34D\",\"sideBar.foreground\":\"#06060CB3\",\"sideBarSectionHeader.background\":\"#FDF0ED\",\"sideBarSectionHeader.foreground\":\"#06060CB3\",\"statusBar.background\":\"#FDF0ED\",\"statusBar.debuggingBackground\":\"#AF5427\",\"statusBar.debuggingForeground\":\"#06060C\",\"statusBar.foreground\":\"#06060CB3\",\"statusBar.noFolderBackground\":\"#FDF0ED\",\"statusBarItem.hoverBackground\":\"#F9CBBE\",\"statusBarItem.prominentBackground\":\"#F9CBBE\",\"statusBarItem.prominentHoverBackground\":\"#F9CEC3\",\"tab.activeBorder\":\"#E84A72\",\"tab.border\":\"#FDF0ED00\",\"tab.inactiveBackground\":\"#FDF0ED\",\"terminal.ansiBlue\":\"#26BBD9\",\"terminal.ansiBrightBlue\":\"#3FC4DE\",\"terminal.ansiBrightCyan\":\"#6BE4E6\",\"terminal.ansiBrightGreen\":\"#3FDAA4\",\"terminal.ansiBrightMagenta\":\"#F075B5\",\"terminal.ansiBrightRed\":\"#EC6A88\",\"terminal.ansiBrightYellow\":\"#FBC3A7\",\"terminal.ansiCyan\":\"#59E1E3\",\"terminal.ansiGreen\":\"#29D398\",\"terminal.ansiMagenta\":\"#EE64AC\",\"terminal.ansiRed\":\"#E95678\",\"terminal.ansiYellow\":\"#FAB795\",\"terminal.foreground\":\"#06060C\",\"terminal.selectionBackground\":\"#F9CEC380\",\"terminalCursor.background\":\"#06060C\",\"terminalCursor.foreground\":\"#F9CEC3B3\",\"textLink.activeForeground\":\"#E73665\",\"textLink.foreground\":\"#E84A72\",\"titleBar.activeBackground\":\"#FDF0ED\",\"titleBar.inactiveBackground\":\"#FDF0ED\",\"walkThrough.embeddedEditorBackground\":\"#FADAD1\",\"widget.shadow\":\"#16161C4D\"},\"displayName\":\"Horizon Bright\",\"name\":\"horizon-bright\",\"semanticHighlighting\":true,\"tokenColors\":[{\"scope\":\"comment\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#33333380\"}},{\"scope\":\"constant\",\"settings\":{\"foreground\":\"#DC3318\"}},{\"scope\":\"constant.character.escape\",\"settings\":{\"foreground\":\"#1D8991\"}},{\"scope\":\"entity.name\",\"settings\":{\"foreground\":\"#F77D26\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#1D8991\"}},{\"scope\":\"entity.name.tag\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#DA103F\"}},{\"scope\":[\"entity.name.type\",\"storage.type.cs\"],\"settings\":{\"foreground\":\"#F77D26\"}},{\"scope\":\"entity.other.attribute-name\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#DC3318\"}},{\"scope\":\"entity.other.inherited-class\",\"settings\":{\"foreground\":\"#F6661E\"}},{\"scope\":\"entity.other.attribute-name.id\",\"settings\":{\"foreground\":\"#1D8991\"}},{\"scope\":[\"entity.other.attribute-name.pseudo-element\",\"entity.other.attribute-name.pseudo-class\"],\"settings\":{\"foreground\":\"#F6661E\"}},{\"scope\":[\"entity.name.variable\",\"variable\"],\"settings\":{\"foreground\":\"#DA103F\"}},{\"scope\":\"keyword\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#8A31B9\"}},{\"scope\":\"keyword.operator\",\"settings\":{\"foreground\":\"#333333\"}},{\"scope\":[\"keyword.operator.new\",\"keyword.operator.expression\",\"keyword.operator.logical\",\"keyword.operator.delete\"],\"settings\":{\"foreground\":\"#8A31B9\"}},{\"scope\":\"keyword.other.unit\",\"settings\":{\"foreground\":\"#DC3318\"}},{\"scope\":\"markup.quote\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#F6661EB3\"}},{\"scope\":[\"markup.heading\",\"entity.name.section\"],\"settings\":{\"foreground\":\"#DA103F\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#8A31B9\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#1D8991\"}},{\"scope\":[\"markup.inline.raw\",\"markup.fenced_code.block\"],\"settings\":{\"foreground\":\"#DC3318\"}},{\"scope\":\"markup.underline.link\",\"settings\":{\"foreground\":\"#F6661E\"}},{\"scope\":\"storage\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#8A31B9\"}},{\"scope\":[\"string.quoted\",\"string.template\"],\"settings\":{\"foreground\":\"#F6661E\"}},{\"scope\":\"string.regexp\",\"settings\":{\"foreground\":\"#DC3318\"}},{\"scope\":\"string.other.link\",\"settings\":{\"foreground\":\"#DC3318\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#F77D26\"}},{\"scope\":\"support.function\",\"settings\":{\"foreground\":\"#1D8991\"}},{\"scope\":\"support.variable\",\"settings\":{\"foreground\":\"#DA103F\"}},{\"scope\":[\"support.type.property-name\",\"meta.object-literal.key\"],\"settings\":{\"foreground\":\"#DA103F\"}},{\"scope\":\"support.type.property-name.css\",\"settings\":{\"foreground\":\"#333333\"}},{\"scope\":[\"variable.language\"],\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#F77D26\"}},{\"scope\":\"variable.parameter\",\"settings\":{\"fontStyle\":\"italic\"}},{\"scope\":\"string.template meta.embedded\",\"settings\":{\"foreground\":\"#333333\"}},{\"scope\":\"punctuation.definition.tag\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#DA103FB3\"}},{\"scope\":\"punctuation.separator\",\"settings\":{\"foreground\":\"#333333\"}},{\"scope\":\"punctuation.definition.template-expression\",\"settings\":{\"foreground\":\"#8A31B9\"}},{\"scope\":\"punctuation.section.embedded\",\"settings\":{\"foreground\":\"#8A31B9\"}},{\"scope\":\"punctuation.definition.list\",\"settings\":{\"foreground\":\"#DC3318\"}}],\"type\":\"light\"}"));
|
|
3
3
|
//#endregion
|
|
4
4
|
export { horizon_bright_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@shikijs+themes@4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@shikijs+themes@4.5.0/node_modules/@shikijs/themes/dist/horizon.mjs
|
|
2
2
|
var horizon_default = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.background\":\"#1C1E26\",\"activityBar.dropBackground\":\"#6C6F9380\",\"activityBar.foreground\":\"#D5D8DAB3\",\"activityBarBadge.background\":\"#E95378\",\"activityBarBadge.foreground\":\"#06060C\",\"badge.background\":\"#2E303E\",\"badge.foreground\":\"#D5D8DA\",\"breadcrumbPicker.background\":\"#232530\",\"button.background\":\"#2E303E\",\"debugToolBar.background\":\"#1C1E26\",\"diffEditor.insertedTextBackground\":\"#09F7A01A\",\"diffEditor.removedTextBackground\":\"#F43E5C1A\",\"dropdown.background\":\"#232530\",\"dropdown.listBackground\":\"#2E303E\",\"editor.background\":\"#1C1E26\",\"editor.findMatchBackground\":\"#6C6F9380\",\"editor.findMatchHighlightBackground\":\"#6C6F934D\",\"editor.findRangeHighlightBackground\":\"#6C6F931A\",\"editor.hoverHighlightBackground\":\"#6C6F934D\",\"editor.lineHighlightBackground\":\"#2E303E4D\",\"editor.rangeHighlightBackground\":\"#2E303E80\",\"editor.selectionBackground\":\"#2E303EB3\",\"editor.selectionHighlightBackground\":\"#6C6F934D\",\"editor.wordHighlightBackground\":\"#6C6F9380\",\"editor.wordHighlightStrongBackground\":\"#6C6F9380\",\"editorBracketMatch.background\":\"#6C6F9380\",\"editorBracketMatch.border\":\"#6C6F9300\",\"editorCodeLens.foreground\":\"#6C6F9380\",\"editorCursor.background\":\"#1C1E26\",\"editorCursor.foreground\":\"#E95378\",\"editorError.foreground\":\"#F43E5C\",\"editorGroup.border\":\"#1A1C23\",\"editorGroup.dropBackground\":\"#6C6F934D\",\"editorGroupHeader.tabsBackground\":\"#1C1E26\",\"editorGutter.addedBackground\":\"#09F7A0B3\",\"editorGutter.deletedBackground\":\"#F43E5CB3\",\"editorGutter.modifiedBackground\":\"#21BFC2B3\",\"editorIndentGuide.activeBackground\":\"#2E303E\",\"editorIndentGuide.background\":\"#2E303E80\",\"editorLineNumber.activeForeground\":\"#D5D8DA80\",\"editorLineNumber.foreground\":\"#D5D8DA1A\",\"editorOverviewRuler.addedForeground\":\"#09F7A080\",\"editorOverviewRuler.border\":\"#2E303EB3\",\"editorOverviewRuler.bracketMatchForeground\":\"#D5D8DA80\",\"editorOverviewRuler.deletedForeground\":\"#F43E5C80\",\"editorOverviewRuler.errorForeground\":\"#F43E5CE6\",\"editorOverviewRuler.findMatchForeground\":\"#6C6F93\",\"editorOverviewRuler.modifiedForeground\":\"#21BFC280\",\"editorOverviewRuler.warningForeground\":\"#27D79780\",\"editorRuler.foreground\":\"#6C6F934D\",\"editorSuggestWidget.highlightForeground\":\"#E95378\",\"editorWarning.foreground\":\"#27D797B3\",\"editorWidget.background\":\"#232530\",\"editorWidget.border\":\"#232530\",\"errorForeground\":\"#F43E5C\",\"extensionButton.prominentBackground\":\"#E95378\",\"extensionButton.prominentHoverBackground\":\"#E9436D\",\"focusBorder\":\"#1A1C23\",\"foreground\":\"#D5D8DA\",\"gitDecoration.addedResourceForeground\":\"#27D797B3\",\"gitDecoration.deletedResourceForeground\":\"#F43E5C\",\"gitDecoration.ignoredResourceForeground\":\"#D5D8DA4D\",\"gitDecoration.modifiedResourceForeground\":\"#FAB38E\",\"gitDecoration.untrackedResourceForeground\":\"#27D797\",\"input.background\":\"#2E303E\",\"inputOption.activeBorder\":\"#E9436D80\",\"inputValidation.errorBackground\":\"#F43E5C80\",\"inputValidation.errorBorder\":\"#F43E5C00\",\"list.activeSelectionBackground\":\"#2E303E80\",\"list.activeSelectionForeground\":\"#D5D8DA\",\"list.dropBackground\":\"#6C6F9380\",\"list.errorForeground\":\"#F43E5CE6\",\"list.focusBackground\":\"#2E303E80\",\"list.focusForeground\":\"#D5D8DA\",\"list.highlightForeground\":\"#E95378\",\"list.hoverBackground\":\"#2E303E80\",\"list.hoverForeground\":\"#D5D8DA\",\"list.inactiveFocusBackground\":\"#2E303E80\",\"list.inactiveSelectionBackground\":\"#2E303E4D\",\"list.inactiveSelectionForeground\":\"#D5D8DA\",\"list.warningForeground\":\"#27D797B3\",\"panelTitle.activeBorder\":\"#E95378\",\"peekView.border\":\"#1A1C23\",\"peekViewEditor.background\":\"#232530\",\"peekViewEditor.matchHighlightBackground\":\"#6C6F9380\",\"peekViewResult.background\":\"#232530\",\"peekViewResult.matchHighlightBackground\":\"#6C6F9380\",\"peekViewResult.selectionBackground\":\"#2E303E80\",\"peekViewTitle.background\":\"#232530\",\"pickerGroup.foreground\":\"#E95378E6\",\"progressBar.background\":\"#E95378\",\"scrollbar.shadow\":\"#16161C\",\"scrollbarSlider.activeBackground\":\"#6C6F9380\",\"scrollbarSlider.background\":\"#6C6F931A\",\"scrollbarSlider.hoverBackground\":\"#6C6F934D\",\"selection.background\":\"#6C6F9380\",\"sideBar.background\":\"#1C1E26\",\"sideBar.dropBackground\":\"#6C6F934D\",\"sideBar.foreground\":\"#D5D8DA80\",\"sideBarSectionHeader.background\":\"#1C1E26\",\"sideBarSectionHeader.foreground\":\"#D5D8DAB3\",\"statusBar.background\":\"#1C1E26\",\"statusBar.debuggingBackground\":\"#FAB38E\",\"statusBar.debuggingForeground\":\"#06060C\",\"statusBar.foreground\":\"#D5D8DA80\",\"statusBar.noFolderBackground\":\"#1C1E26\",\"statusBarItem.hoverBackground\":\"#2E303E\",\"statusBarItem.prominentBackground\":\"#2E303E\",\"statusBarItem.prominentHoverBackground\":\"#6C6F93\",\"tab.activeBorder\":\"#E95378\",\"tab.border\":\"#1C1E2600\",\"tab.inactiveBackground\":\"#1C1E26\",\"terminal.ansiBlue\":\"#26BBD9\",\"terminal.ansiBrightBlue\":\"#3FC4DE\",\"terminal.ansiBrightCyan\":\"#6BE4E6\",\"terminal.ansiBrightGreen\":\"#3FDAA4\",\"terminal.ansiBrightMagenta\":\"#F075B5\",\"terminal.ansiBrightRed\":\"#EC6A88\",\"terminal.ansiBrightYellow\":\"#FBC3A7\",\"terminal.ansiCyan\":\"#59E1E3\",\"terminal.ansiGreen\":\"#29D398\",\"terminal.ansiMagenta\":\"#EE64AC\",\"terminal.ansiRed\":\"#E95678\",\"terminal.ansiYellow\":\"#FAB795\",\"terminal.foreground\":\"#D5D8DA\",\"terminal.selectionBackground\":\"#6C6F934D\",\"terminalCursor.background\":\"#D5D8DA\",\"terminalCursor.foreground\":\"#6C6F9380\",\"textLink.activeForeground\":\"#E9436D\",\"textLink.foreground\":\"#E95378\",\"titleBar.activeBackground\":\"#1C1E26\",\"titleBar.inactiveBackground\":\"#1C1E26\",\"walkThrough.embeddedEditorBackground\":\"#232530\",\"widget.shadow\":\"#16161C\"},\"displayName\":\"Horizon\",\"name\":\"horizon\",\"semanticHighlighting\":true,\"tokenColors\":[{\"scope\":\"comment\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#BBBBBB4D\"}},{\"scope\":\"constant\",\"settings\":{\"foreground\":\"#F09483E6\"}},{\"scope\":\"constant.character.escape\",\"settings\":{\"foreground\":\"#25B0BCE6\"}},{\"scope\":\"entity.name\",\"settings\":{\"foreground\":\"#FAC29AE6\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#25B0BCE6\"}},{\"scope\":\"entity.name.tag\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#E95678E6\"}},{\"scope\":[\"entity.name.type\",\"storage.type.cs\"],\"settings\":{\"foreground\":\"#FAC29AE6\"}},{\"scope\":\"entity.other.attribute-name\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#F09483E6\"}},{\"scope\":\"entity.other.inherited-class\",\"settings\":{\"foreground\":\"#FAB795E6\"}},{\"scope\":\"entity.other.attribute-name.id\",\"settings\":{\"foreground\":\"#25B0BCE6\"}},{\"scope\":[\"entity.other.attribute-name.pseudo-element\",\"entity.other.attribute-name.pseudo-class\"],\"settings\":{\"foreground\":\"#FAB795E6\"}},{\"scope\":[\"entity.name.variable\",\"variable\"],\"settings\":{\"foreground\":\"#E95678E6\"}},{\"scope\":\"keyword\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#B877DBE6\"}},{\"scope\":\"keyword.operator\",\"settings\":{\"foreground\":\"#BBBBBB\"}},{\"scope\":[\"keyword.operator.new\",\"keyword.operator.expression\",\"keyword.operator.logical\",\"keyword.operator.delete\"],\"settings\":{\"foreground\":\"#B877DBE6\"}},{\"scope\":\"keyword.other.unit\",\"settings\":{\"foreground\":\"#F09483E6\"}},{\"scope\":\"markup.quote\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#FAB795B3\"}},{\"scope\":[\"markup.heading\",\"entity.name.section\"],\"settings\":{\"foreground\":\"#E95678E6\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#B877DBE6\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#25B0BCE6\"}},{\"scope\":[\"markup.inline.raw\",\"markup.fenced_code.block\"],\"settings\":{\"foreground\":\"#F09483E6\"}},{\"scope\":\"markup.underline.link\",\"settings\":{\"foreground\":\"#FAB795E6\"}},{\"scope\":\"storage\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#B877DBE6\"}},{\"scope\":[\"string.quoted\",\"string.template\"],\"settings\":{\"foreground\":\"#FAB795E6\"}},{\"scope\":\"string.regexp\",\"settings\":{\"foreground\":\"#F09483E6\"}},{\"scope\":\"string.other.link\",\"settings\":{\"foreground\":\"#F09483E6\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#FAC29AE6\"}},{\"scope\":\"support.function\",\"settings\":{\"foreground\":\"#25B0BCE6\"}},{\"scope\":\"support.variable\",\"settings\":{\"foreground\":\"#E95678E6\"}},{\"scope\":[\"support.type.property-name\",\"meta.object-literal.key\"],\"settings\":{\"foreground\":\"#E95678E6\"}},{\"scope\":\"support.type.property-name.css\",\"settings\":{\"foreground\":\"#BBBBBB\"}},{\"scope\":[\"variable.language\"],\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#FAC29AE6\"}},{\"scope\":\"variable.parameter\",\"settings\":{\"fontStyle\":\"italic\"}},{\"scope\":\"string.template meta.embedded\",\"settings\":{\"foreground\":\"#BBBBBB\"}},{\"scope\":\"punctuation.definition.tag\",\"settings\":{\"fontStyle\":\"normal\",\"foreground\":\"#E95678B3\"}},{\"scope\":\"punctuation.separator\",\"settings\":{\"foreground\":\"#BBBBBB\"}},{\"scope\":[\"punctuation.definition.template-expression\",\"punctuation.quasi.element\"],\"settings\":{\"foreground\":\"#B877DBE6\"}},{\"scope\":\"punctuation.section.embedded\",\"settings\":{\"foreground\":\"#B877DBE6\"}},{\"scope\":\"punctuation.definition.list\",\"settings\":{\"foreground\":\"#F09483E6\"}}],\"type\":\"dark\"}"));
|
|
3
3
|
//#endregion
|
|
4
4
|
export { horizon_default as default };
|