@vite-hub/ui 0.0.4 → 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,537 @@
|
|
|
1
|
+
import { n as AvatarStackPerson } from "./avatar-stack-DXmCQhxd.js";
|
|
2
|
+
import { i as CommentsState } from "./comments-ChNJkV1d.js";
|
|
3
|
+
import { PropType } from "vue";
|
|
4
|
+
import { CommentMessage, CommentStatus, CommentSubject, CommentThread, CommentUser, CommentsClient } from "@vite-hub/comments/client";
|
|
5
|
+
//#region src/components/comment-composer.d.ts
|
|
6
|
+
type CommentComposerVariant = "comment" | "reply" | "edit";
|
|
7
|
+
/** What `submit` sends: the text and the ids of the people mentioned in it. */
|
|
8
|
+
interface CommentComposerSubmit {
|
|
9
|
+
body: string;
|
|
10
|
+
mentions: string[];
|
|
11
|
+
}
|
|
12
|
+
declare const CommentComposer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
modelValue: {
|
|
14
|
+
default: string;
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
};
|
|
17
|
+
/** The ids of the people mentioned so far. */
|
|
18
|
+
mentions: {
|
|
19
|
+
default: () => never[];
|
|
20
|
+
type: PropType<string[]>;
|
|
21
|
+
};
|
|
22
|
+
/** Whose avatar shows beside the box. */
|
|
23
|
+
user: {
|
|
24
|
+
type: PropType<CommentUser>;
|
|
25
|
+
};
|
|
26
|
+
variant: {
|
|
27
|
+
default: string;
|
|
28
|
+
type: PropType<CommentComposerVariant>;
|
|
29
|
+
};
|
|
30
|
+
placeholder: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
/** A send is running. The box keeps its text and cannot send again. */
|
|
34
|
+
busy: {
|
|
35
|
+
default: boolean;
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
/** Why the last send failed. */
|
|
39
|
+
error: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
/** Focus the box when it appears. */
|
|
43
|
+
autofocus: {
|
|
44
|
+
default: boolean;
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
};
|
|
47
|
+
/** Treat a click outside as a close, or as a shake when there is text. Turn it off when the parent decides. */
|
|
48
|
+
guard: {
|
|
49
|
+
default: boolean;
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
};
|
|
52
|
+
/** People whose names the text may hold, such as the authors of a thread. Only mentions of a person whose `@name` is still in the text are sent. */
|
|
53
|
+
people: {
|
|
54
|
+
default: () => never[];
|
|
55
|
+
type: PropType<CommentUser[]>;
|
|
56
|
+
};
|
|
57
|
+
/** Finds people for `@mentions`. Without it the box has no mention menu. */
|
|
58
|
+
users: {
|
|
59
|
+
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
60
|
+
};
|
|
61
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "submit" | "update:modelValue" | "update:mentions")[], "cancel" | "submit" | "update:modelValue" | "update:mentions", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
modelValue: {
|
|
65
|
+
default: string;
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
};
|
|
68
|
+
/** The ids of the people mentioned so far. */
|
|
69
|
+
mentions: {
|
|
70
|
+
default: () => never[];
|
|
71
|
+
type: PropType<string[]>;
|
|
72
|
+
};
|
|
73
|
+
/** Whose avatar shows beside the box. */
|
|
74
|
+
user: {
|
|
75
|
+
type: PropType<CommentUser>;
|
|
76
|
+
};
|
|
77
|
+
variant: {
|
|
78
|
+
default: string;
|
|
79
|
+
type: PropType<CommentComposerVariant>;
|
|
80
|
+
};
|
|
81
|
+
placeholder: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
};
|
|
84
|
+
/** A send is running. The box keeps its text and cannot send again. */
|
|
85
|
+
busy: {
|
|
86
|
+
default: boolean;
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
};
|
|
89
|
+
/** Why the last send failed. */
|
|
90
|
+
error: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
};
|
|
93
|
+
/** Focus the box when it appears. */
|
|
94
|
+
autofocus: {
|
|
95
|
+
default: boolean;
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
};
|
|
98
|
+
/** Treat a click outside as a close, or as a shake when there is text. Turn it off when the parent decides. */
|
|
99
|
+
guard: {
|
|
100
|
+
default: boolean;
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
};
|
|
103
|
+
/** People whose names the text may hold, such as the authors of a thread. Only mentions of a person whose `@name` is still in the text are sent. */
|
|
104
|
+
people: {
|
|
105
|
+
default: () => never[];
|
|
106
|
+
type: PropType<CommentUser[]>;
|
|
107
|
+
};
|
|
108
|
+
/** Finds people for `@mentions`. Without it the box has no mention menu. */
|
|
109
|
+
users: {
|
|
110
|
+
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
111
|
+
};
|
|
112
|
+
}>> & Readonly<{
|
|
113
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
"onUpdate:mentions"?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
}>, {
|
|
118
|
+
people: CommentUser[];
|
|
119
|
+
variant: CommentComposerVariant;
|
|
120
|
+
modelValue: string;
|
|
121
|
+
mentions: string[];
|
|
122
|
+
busy: boolean;
|
|
123
|
+
autofocus: boolean;
|
|
124
|
+
guard: boolean;
|
|
125
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/components/comment-layer.d.ts
|
|
128
|
+
declare const CommentLayer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
129
|
+
client: {
|
|
130
|
+
type: PropType<CommentsClient>;
|
|
131
|
+
};
|
|
132
|
+
/** What the threads of this page are about. For a page, `{ kind: "page", id: "/pricing" }`. */
|
|
133
|
+
subject: {
|
|
134
|
+
type: PropType<CommentSubject>;
|
|
135
|
+
};
|
|
136
|
+
/** The signed-in user. Defaults to the client's user. */
|
|
137
|
+
user: {
|
|
138
|
+
type: PropType<CommentUser>;
|
|
139
|
+
};
|
|
140
|
+
/** A state from `useComments()`, instead of `client` and `subject`. */
|
|
141
|
+
comments: {
|
|
142
|
+
type: PropType<CommentsState>;
|
|
143
|
+
};
|
|
144
|
+
/** The people on this page, shown in the toolbar. */
|
|
145
|
+
people: {
|
|
146
|
+
default: () => never[];
|
|
147
|
+
type: PropType<AvatarStackPerson[]>;
|
|
148
|
+
};
|
|
149
|
+
/** The key that toggles comment mode. `false` turns it off. */
|
|
150
|
+
hotkey: {
|
|
151
|
+
default: string;
|
|
152
|
+
type: PropType<string | false>;
|
|
153
|
+
};
|
|
154
|
+
/** Hide thread mutation controls when the viewer may only read. */
|
|
155
|
+
readOnly: {
|
|
156
|
+
default: boolean;
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
};
|
|
159
|
+
/** The URL of the page that a subject lives on, for the links of threads that are not page threads. */
|
|
160
|
+
subjectUrl: {
|
|
161
|
+
type: PropType<(subject: CommentSubject) => string | undefined>;
|
|
162
|
+
};
|
|
163
|
+
/** Navigates to the page of a thread from the list. Defaults to `location.assign`. */
|
|
164
|
+
navigate: {
|
|
165
|
+
type: PropType<(href: string) => void>;
|
|
166
|
+
};
|
|
167
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
168
|
+
[key: string]: any;
|
|
169
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
170
|
+
client: {
|
|
171
|
+
type: PropType<CommentsClient>;
|
|
172
|
+
};
|
|
173
|
+
/** What the threads of this page are about. For a page, `{ kind: "page", id: "/pricing" }`. */
|
|
174
|
+
subject: {
|
|
175
|
+
type: PropType<CommentSubject>;
|
|
176
|
+
};
|
|
177
|
+
/** The signed-in user. Defaults to the client's user. */
|
|
178
|
+
user: {
|
|
179
|
+
type: PropType<CommentUser>;
|
|
180
|
+
};
|
|
181
|
+
/** A state from `useComments()`, instead of `client` and `subject`. */
|
|
182
|
+
comments: {
|
|
183
|
+
type: PropType<CommentsState>;
|
|
184
|
+
};
|
|
185
|
+
/** The people on this page, shown in the toolbar. */
|
|
186
|
+
people: {
|
|
187
|
+
default: () => never[];
|
|
188
|
+
type: PropType<AvatarStackPerson[]>;
|
|
189
|
+
};
|
|
190
|
+
/** The key that toggles comment mode. `false` turns it off. */
|
|
191
|
+
hotkey: {
|
|
192
|
+
default: string;
|
|
193
|
+
type: PropType<string | false>;
|
|
194
|
+
};
|
|
195
|
+
/** Hide thread mutation controls when the viewer may only read. */
|
|
196
|
+
readOnly: {
|
|
197
|
+
default: boolean;
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
};
|
|
200
|
+
/** The URL of the page that a subject lives on, for the links of threads that are not page threads. */
|
|
201
|
+
subjectUrl: {
|
|
202
|
+
type: PropType<(subject: CommentSubject) => string | undefined>;
|
|
203
|
+
};
|
|
204
|
+
/** Navigates to the page of a thread from the list. Defaults to `location.assign`. */
|
|
205
|
+
navigate: {
|
|
206
|
+
type: PropType<(href: string) => void>;
|
|
207
|
+
};
|
|
208
|
+
}>> & Readonly<{}>, {
|
|
209
|
+
people: AvatarStackPerson[];
|
|
210
|
+
readOnly: boolean;
|
|
211
|
+
hotkey: string | false;
|
|
212
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/components/comment-list.d.ts
|
|
215
|
+
declare const CommentFilters: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
216
|
+
comments: {
|
|
217
|
+
type: PropType<CommentsState>;
|
|
218
|
+
};
|
|
219
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
220
|
+
[key: string]: any;
|
|
221
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
222
|
+
comments: {
|
|
223
|
+
type: PropType<CommentsState>;
|
|
224
|
+
};
|
|
225
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
226
|
+
declare const CommentList: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
227
|
+
comments: {
|
|
228
|
+
type: PropType<CommentsState>;
|
|
229
|
+
};
|
|
230
|
+
/** Goes to the page of a thread that is not on this page. Defaults to `location.assign`. */
|
|
231
|
+
navigate: {
|
|
232
|
+
type: PropType<(href: string) => void>;
|
|
233
|
+
};
|
|
234
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
235
|
+
[key: string]: any;
|
|
236
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
237
|
+
comments: {
|
|
238
|
+
type: PropType<CommentsState>;
|
|
239
|
+
};
|
|
240
|
+
/** Goes to the page of a thread that is not on this page. Defaults to `location.assign`. */
|
|
241
|
+
navigate: {
|
|
242
|
+
type: PropType<(href: string) => void>;
|
|
243
|
+
};
|
|
244
|
+
}>> & Readonly<{
|
|
245
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
246
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
247
|
+
declare const CommentToolbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
248
|
+
comments: {
|
|
249
|
+
type: PropType<CommentsState>;
|
|
250
|
+
};
|
|
251
|
+
/** The people on this page, from Realtime. Shown as a stack of avatars. */
|
|
252
|
+
people: {
|
|
253
|
+
default: () => never[];
|
|
254
|
+
type: PropType<AvatarStackPerson[]>;
|
|
255
|
+
};
|
|
256
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
257
|
+
[key: string]: any;
|
|
258
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
259
|
+
comments: {
|
|
260
|
+
type: PropType<CommentsState>;
|
|
261
|
+
};
|
|
262
|
+
/** The people on this page, from Realtime. Shown as a stack of avatars. */
|
|
263
|
+
people: {
|
|
264
|
+
default: () => never[];
|
|
265
|
+
type: PropType<AvatarStackPerson[]>;
|
|
266
|
+
};
|
|
267
|
+
}>> & Readonly<{}>, {
|
|
268
|
+
people: AvatarStackPerson[];
|
|
269
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region src/components/comment-pin.d.ts
|
|
272
|
+
declare const CommentPin: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
273
|
+
/** The thread number. A draft has none. */
|
|
274
|
+
n: {
|
|
275
|
+
type: NumberConstructor;
|
|
276
|
+
};
|
|
277
|
+
author: {
|
|
278
|
+
type: PropType<CommentUser>;
|
|
279
|
+
};
|
|
280
|
+
status: {
|
|
281
|
+
default: string;
|
|
282
|
+
type: PropType<CommentStatus>;
|
|
283
|
+
};
|
|
284
|
+
/** A short piece of the comment. It is part of the label that a screen reader says. */
|
|
285
|
+
excerpt: {
|
|
286
|
+
type: StringConstructor;
|
|
287
|
+
};
|
|
288
|
+
/** The thread of this pin is open. */
|
|
289
|
+
active: {
|
|
290
|
+
default: boolean;
|
|
291
|
+
type: BooleanConstructor;
|
|
292
|
+
};
|
|
293
|
+
/** The comment is still being written. */
|
|
294
|
+
draft: {
|
|
295
|
+
default: boolean;
|
|
296
|
+
type: BooleanConstructor;
|
|
297
|
+
};
|
|
298
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
299
|
+
[key: string]: any;
|
|
300
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "hover" | "leave")[], "select" | "hover" | "leave", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
301
|
+
/** The thread number. A draft has none. */
|
|
302
|
+
n: {
|
|
303
|
+
type: NumberConstructor;
|
|
304
|
+
};
|
|
305
|
+
author: {
|
|
306
|
+
type: PropType<CommentUser>;
|
|
307
|
+
};
|
|
308
|
+
status: {
|
|
309
|
+
default: string;
|
|
310
|
+
type: PropType<CommentStatus>;
|
|
311
|
+
};
|
|
312
|
+
/** A short piece of the comment. It is part of the label that a screen reader says. */
|
|
313
|
+
excerpt: {
|
|
314
|
+
type: StringConstructor;
|
|
315
|
+
};
|
|
316
|
+
/** The thread of this pin is open. */
|
|
317
|
+
active: {
|
|
318
|
+
default: boolean;
|
|
319
|
+
type: BooleanConstructor;
|
|
320
|
+
};
|
|
321
|
+
/** The comment is still being written. */
|
|
322
|
+
draft: {
|
|
323
|
+
default: boolean;
|
|
324
|
+
type: BooleanConstructor;
|
|
325
|
+
};
|
|
326
|
+
}>> & Readonly<{
|
|
327
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
328
|
+
onHover?: ((...args: any[]) => any) | undefined;
|
|
329
|
+
onLeave?: ((...args: any[]) => any) | undefined;
|
|
330
|
+
}>, {
|
|
331
|
+
status: CommentStatus;
|
|
332
|
+
active: boolean;
|
|
333
|
+
draft: boolean;
|
|
334
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region src/components/comment-thread.d.ts
|
|
337
|
+
type Done = Promise<unknown> | void;
|
|
338
|
+
declare const CommentReply: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
339
|
+
message: {
|
|
340
|
+
required: true;
|
|
341
|
+
type: PropType<CommentMessage>;
|
|
342
|
+
};
|
|
343
|
+
/** The signed-in user may edit and delete this message. */
|
|
344
|
+
editable: {
|
|
345
|
+
default: boolean;
|
|
346
|
+
type: BooleanConstructor;
|
|
347
|
+
};
|
|
348
|
+
/** The message, and its author, show in one line without actions. */
|
|
349
|
+
compact: {
|
|
350
|
+
default: boolean;
|
|
351
|
+
type: BooleanConstructor;
|
|
352
|
+
};
|
|
353
|
+
/** Deleting asks first. Deleting the first message of a thread deletes the whole thread, so a thread sets it there. */
|
|
354
|
+
confirmDelete: {
|
|
355
|
+
default: boolean;
|
|
356
|
+
type: BooleanConstructor;
|
|
357
|
+
};
|
|
358
|
+
/** People whose `@name` the message may hold, so an edit keeps their mentions. */
|
|
359
|
+
people: {
|
|
360
|
+
default: () => never[];
|
|
361
|
+
type: PropType<CommentUser[]>;
|
|
362
|
+
};
|
|
363
|
+
users: {
|
|
364
|
+
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
365
|
+
};
|
|
366
|
+
/** Saves an edit. Gets `(messageId, body, mentions)`. */
|
|
367
|
+
onEdit: {
|
|
368
|
+
type: PropType<(messageId: string, body: string, mentions: string[]) => Done>;
|
|
369
|
+
};
|
|
370
|
+
/** Deletes the message. Gets `(messageId)`. */
|
|
371
|
+
onDelete: {
|
|
372
|
+
type: PropType<(messageId: string) => Done>;
|
|
373
|
+
};
|
|
374
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
375
|
+
[key: string]: any;
|
|
376
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
377
|
+
message: {
|
|
378
|
+
required: true;
|
|
379
|
+
type: PropType<CommentMessage>;
|
|
380
|
+
};
|
|
381
|
+
/** The signed-in user may edit and delete this message. */
|
|
382
|
+
editable: {
|
|
383
|
+
default: boolean;
|
|
384
|
+
type: BooleanConstructor;
|
|
385
|
+
};
|
|
386
|
+
/** The message, and its author, show in one line without actions. */
|
|
387
|
+
compact: {
|
|
388
|
+
default: boolean;
|
|
389
|
+
type: BooleanConstructor;
|
|
390
|
+
};
|
|
391
|
+
/** Deleting asks first. Deleting the first message of a thread deletes the whole thread, so a thread sets it there. */
|
|
392
|
+
confirmDelete: {
|
|
393
|
+
default: boolean;
|
|
394
|
+
type: BooleanConstructor;
|
|
395
|
+
};
|
|
396
|
+
/** People whose `@name` the message may hold, so an edit keeps their mentions. */
|
|
397
|
+
people: {
|
|
398
|
+
default: () => never[];
|
|
399
|
+
type: PropType<CommentUser[]>;
|
|
400
|
+
};
|
|
401
|
+
users: {
|
|
402
|
+
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
403
|
+
};
|
|
404
|
+
/** Saves an edit. Gets `(messageId, body, mentions)`. */
|
|
405
|
+
onEdit: {
|
|
406
|
+
type: PropType<(messageId: string, body: string, mentions: string[]) => Done>;
|
|
407
|
+
};
|
|
408
|
+
/** Deletes the message. Gets `(messageId)`. */
|
|
409
|
+
onDelete: {
|
|
410
|
+
type: PropType<(messageId: string) => Done>;
|
|
411
|
+
};
|
|
412
|
+
}>> & Readonly<{}>, {
|
|
413
|
+
compact: boolean;
|
|
414
|
+
people: CommentUser[];
|
|
415
|
+
editable: boolean;
|
|
416
|
+
confirmDelete: boolean;
|
|
417
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
418
|
+
declare const CommentThread$1: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
419
|
+
thread: {
|
|
420
|
+
required: true;
|
|
421
|
+
type: PropType<CommentThread>;
|
|
422
|
+
};
|
|
423
|
+
/** The signed-in user. Their messages can be edited and deleted. */
|
|
424
|
+
user: {
|
|
425
|
+
type: PropType<CommentUser>;
|
|
426
|
+
};
|
|
427
|
+
/** A read-only card for hovering a pin. */
|
|
428
|
+
preview: {
|
|
429
|
+
default: boolean;
|
|
430
|
+
type: BooleanConstructor;
|
|
431
|
+
};
|
|
432
|
+
/** Keep the full thread readable without reply, edit, delete, or status controls. */
|
|
433
|
+
readOnly: {
|
|
434
|
+
default: boolean;
|
|
435
|
+
type: BooleanConstructor;
|
|
436
|
+
};
|
|
437
|
+
/** Show a reply as being sent, on top of the thread's own tracking. */
|
|
438
|
+
busy: {
|
|
439
|
+
default: boolean;
|
|
440
|
+
type: BooleanConstructor;
|
|
441
|
+
};
|
|
442
|
+
/** An error to show, on top of the ones from the handlers. */
|
|
443
|
+
error: {
|
|
444
|
+
type: StringConstructor;
|
|
445
|
+
};
|
|
446
|
+
/** The thread is no longer on the page, so no pin shows where it was. */
|
|
447
|
+
detached: {
|
|
448
|
+
default: boolean;
|
|
449
|
+
type: BooleanConstructor;
|
|
450
|
+
};
|
|
451
|
+
users: {
|
|
452
|
+
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
453
|
+
};
|
|
454
|
+
/** Sends a reply. Gets `(body, mentions)`. */
|
|
455
|
+
onReply: {
|
|
456
|
+
type: PropType<(body: string, mentions: string[]) => Done>;
|
|
457
|
+
};
|
|
458
|
+
/** Saves an edited message. Gets `(messageId, body, mentions)`. */
|
|
459
|
+
onEdit: {
|
|
460
|
+
type: PropType<(messageId: string, body: string, mentions: string[]) => Done>;
|
|
461
|
+
};
|
|
462
|
+
/** Deletes a message. Gets `(messageId)`. Deleting the first message deletes the thread. */
|
|
463
|
+
onDelete: {
|
|
464
|
+
type: PropType<(messageId: string) => Done>;
|
|
465
|
+
};
|
|
466
|
+
onResolve: {
|
|
467
|
+
type: PropType<() => Done>;
|
|
468
|
+
};
|
|
469
|
+
onReopen: {
|
|
470
|
+
type: PropType<() => Done>;
|
|
471
|
+
};
|
|
472
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
473
|
+
[key: string]: any;
|
|
474
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
475
|
+
thread: {
|
|
476
|
+
required: true;
|
|
477
|
+
type: PropType<CommentThread>;
|
|
478
|
+
};
|
|
479
|
+
/** The signed-in user. Their messages can be edited and deleted. */
|
|
480
|
+
user: {
|
|
481
|
+
type: PropType<CommentUser>;
|
|
482
|
+
};
|
|
483
|
+
/** A read-only card for hovering a pin. */
|
|
484
|
+
preview: {
|
|
485
|
+
default: boolean;
|
|
486
|
+
type: BooleanConstructor;
|
|
487
|
+
};
|
|
488
|
+
/** Keep the full thread readable without reply, edit, delete, or status controls. */
|
|
489
|
+
readOnly: {
|
|
490
|
+
default: boolean;
|
|
491
|
+
type: BooleanConstructor;
|
|
492
|
+
};
|
|
493
|
+
/** Show a reply as being sent, on top of the thread's own tracking. */
|
|
494
|
+
busy: {
|
|
495
|
+
default: boolean;
|
|
496
|
+
type: BooleanConstructor;
|
|
497
|
+
};
|
|
498
|
+
/** An error to show, on top of the ones from the handlers. */
|
|
499
|
+
error: {
|
|
500
|
+
type: StringConstructor;
|
|
501
|
+
};
|
|
502
|
+
/** The thread is no longer on the page, so no pin shows where it was. */
|
|
503
|
+
detached: {
|
|
504
|
+
default: boolean;
|
|
505
|
+
type: BooleanConstructor;
|
|
506
|
+
};
|
|
507
|
+
users: {
|
|
508
|
+
type: PropType<(query: string) => Promise<CommentUser[]>>;
|
|
509
|
+
};
|
|
510
|
+
/** Sends a reply. Gets `(body, mentions)`. */
|
|
511
|
+
onReply: {
|
|
512
|
+
type: PropType<(body: string, mentions: string[]) => Done>;
|
|
513
|
+
};
|
|
514
|
+
/** Saves an edited message. Gets `(messageId, body, mentions)`. */
|
|
515
|
+
onEdit: {
|
|
516
|
+
type: PropType<(messageId: string, body: string, mentions: string[]) => Done>;
|
|
517
|
+
};
|
|
518
|
+
/** Deletes a message. Gets `(messageId)`. Deleting the first message deletes the thread. */
|
|
519
|
+
onDelete: {
|
|
520
|
+
type: PropType<(messageId: string) => Done>;
|
|
521
|
+
};
|
|
522
|
+
onResolve: {
|
|
523
|
+
type: PropType<() => Done>;
|
|
524
|
+
};
|
|
525
|
+
onReopen: {
|
|
526
|
+
type: PropType<() => Done>;
|
|
527
|
+
};
|
|
528
|
+
}>> & Readonly<{
|
|
529
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
530
|
+
}>, {
|
|
531
|
+
busy: boolean;
|
|
532
|
+
preview: boolean;
|
|
533
|
+
readOnly: boolean;
|
|
534
|
+
detached: boolean;
|
|
535
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
536
|
+
//#endregion
|
|
537
|
+
export { CommentList as a, CommentComposer as c, CommentFilters as i, CommentComposerSubmit as l, CommentThread$1 as n, CommentToolbar as o, CommentPin as r, CommentLayer as s, CommentReply as t, CommentComposerVariant as u };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as CommentList, c as CommentComposer, i as CommentFilters, l as CommentComposerSubmit, n as CommentThread, o as CommentToolbar, r as CommentPin, s as CommentLayer, t as CommentReply, u as CommentComposerVariant } from "./comments-Cq5eewsu.js";
|
|
2
|
+
export { CommentComposer, CommentComposerSubmit, CommentComposerVariant, CommentFilters, CommentLayer, CommentList, CommentPin, CommentReply, CommentThread, CommentToolbar };
|
package/dist/comments.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as CommentFilters, c as CommentComposer, i as CommentPin, n as CommentReply, o as CommentList, r as CommentThread, s as CommentToolbar, t as CommentLayer } from "./comment-layer-CBlxJ8eK.js";
|
|
2
|
+
export { CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPin, CommentReply, CommentThread, CommentToolbar };
|
|
@@ -8,14 +8,9 @@ const defaultOptions = {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
const runtimeComponents = {
|
|
11
|
-
UBadge: defineAsyncComponent(() => import("@nuxt/ui/components/Badge.vue")),
|
|
12
11
|
UButton: defineAsyncComponent(() => import("@nuxt/ui/components/Button.vue")),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
UChatPromptSubmit: defineAsyncComponent(() => import("@nuxt/ui/components/ChatPromptSubmit.vue")),
|
|
16
|
-
UChatReasoning: defineAsyncComponent(() => import("@nuxt/ui/components/ChatReasoning.vue")),
|
|
17
|
-
UChatTool: defineAsyncComponent(() => import("@nuxt/ui/components/ChatTool.vue")),
|
|
18
|
-
UCollapsible: defineAsyncComponent(() => import("@nuxt/ui/components/Collapsible.vue"))
|
|
12
|
+
UIcon: defineAsyncComponent(() => import("@nuxt/ui/runtime/vue/components/Icon.vue")),
|
|
13
|
+
UModal: defineAsyncComponent(() => import("@nuxt/ui/components/Modal.vue"))
|
|
19
14
|
};
|
|
20
15
|
const ViteHubUIInjectionKey = Symbol("ViteHubUI");
|
|
21
16
|
function resolveViteHubUIDefaults(options = {}) {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { computed, defineComponent, h, inject, onBeforeUnmount, provide, ref, watch } from "vue";
|
|
2
|
+
//#region src/components/connection-status.ts
|
|
3
|
+
const stateKey = Symbol("ConnectionStatus");
|
|
4
|
+
const labels = {
|
|
5
|
+
connected: "Connected",
|
|
6
|
+
connecting: "Connecting",
|
|
7
|
+
reconnecting: "Reconnecting"
|
|
8
|
+
};
|
|
9
|
+
const ConnectionStatus = defineComponent({
|
|
10
|
+
name: "ConnectionStatus",
|
|
11
|
+
props: {
|
|
12
|
+
status: {
|
|
13
|
+
required: true,
|
|
14
|
+
type: String
|
|
15
|
+
},
|
|
16
|
+
/** How long, in ms, a lost connection stays "connected" before it shows "reconnecting". Most drops are back sooner. */
|
|
17
|
+
delay: {
|
|
18
|
+
default: 1500,
|
|
19
|
+
type: Number
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(props, { slots }) {
|
|
23
|
+
const joined = ref(props.status === "connected");
|
|
24
|
+
const lost = ref(false);
|
|
25
|
+
let timer;
|
|
26
|
+
watch(() => props.status, (status, previous) => {
|
|
27
|
+
if (status === "connected") {
|
|
28
|
+
clearTimeout(timer);
|
|
29
|
+
joined.value = true;
|
|
30
|
+
lost.value = false;
|
|
31
|
+
} else if (previous === "connected") timer = setTimeout(() => lost.value = true, props.delay);
|
|
32
|
+
});
|
|
33
|
+
onBeforeUnmount(() => clearTimeout(timer));
|
|
34
|
+
const state = computed(() => !joined.value ? "connecting" : lost.value ? "reconnecting" : "connected");
|
|
35
|
+
provide(stateKey, state);
|
|
36
|
+
return () => h("div", {
|
|
37
|
+
"data-slot": "connection-status",
|
|
38
|
+
"data-status": state.value,
|
|
39
|
+
role: "status"
|
|
40
|
+
}, slots.default?.({ state: state.value }) ?? [h(ConnectionStatusIndicator), h(ConnectionStatusLabel)]);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const ConnectionStatusIndicator = defineComponent({
|
|
44
|
+
name: "ConnectionStatusIndicator",
|
|
45
|
+
setup() {
|
|
46
|
+
const state = inject(stateKey, ref("connecting"));
|
|
47
|
+
return () => h("span", {
|
|
48
|
+
"aria-hidden": "true",
|
|
49
|
+
"data-slot": "connection-status-indicator",
|
|
50
|
+
"data-status": state.value
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const ConnectionStatusLabel = defineComponent({
|
|
55
|
+
name: "ConnectionStatusLabel",
|
|
56
|
+
setup(_props, { slots }) {
|
|
57
|
+
const state = inject(stateKey, ref("connecting"));
|
|
58
|
+
return () => h("span", {
|
|
59
|
+
"data-slot": "connection-status-label",
|
|
60
|
+
"data-status": state.value
|
|
61
|
+
}, slots.default?.({ state: state.value }) ?? labels[state.value]);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { ConnectionStatusIndicator as n, ConnectionStatusLabel as r, ConnectionStatus as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
//#region src/components/connection-status.d.ts
|
|
3
|
+
/** A realtime provider's connection status. */
|
|
4
|
+
type ConnectionStatusValue = "connecting" | "connected" | "disconnected";
|
|
5
|
+
/** What the parts show: the first connection, a live connection, or a lost one that is coming back. */
|
|
6
|
+
type ConnectionStatusState = "connecting" | "connected" | "reconnecting";
|
|
7
|
+
declare const ConnectionStatus: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
status: {
|
|
9
|
+
required: true;
|
|
10
|
+
type: PropType<ConnectionStatusValue>;
|
|
11
|
+
};
|
|
12
|
+
/** How long, in ms, a lost connection stays "connected" before it shows "reconnecting". Most drops are back sooner. */
|
|
13
|
+
delay: {
|
|
14
|
+
default: number;
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
};
|
|
17
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
status: {
|
|
21
|
+
required: true;
|
|
22
|
+
type: PropType<ConnectionStatusValue>;
|
|
23
|
+
};
|
|
24
|
+
/** How long, in ms, a lost connection stays "connected" before it shows "reconnecting". Most drops are back sooner. */
|
|
25
|
+
delay: {
|
|
26
|
+
default: number;
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
delay: number;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
declare const ConnectionStatusIndicator: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
declare const ConnectionStatusLabel: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { ConnectionStatusValue as a, ConnectionStatusState as i, ConnectionStatusIndicator as n, ConnectionStatusLabel as r, ConnectionStatus as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as ConnectionStatusValue, i as ConnectionStatusState, n as ConnectionStatusIndicator, r as ConnectionStatusLabel, t as ConnectionStatus } from "./connection-status-DjGBw6xX.js";
|
|
2
|
+
export { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue };
|