@wzh-/ai-chat-example 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_basePickBy-CkZky1V-.js +135 -0
- package/dist/_baseUniq-f11MNaXe.js +573 -0
- package/dist/abap--jVlqvLx.js +2 -0
- package/dist/actionscript-3-N1AoJtTA.js +2 -0
- package/dist/ada-CYGINLea.js +2 -0
- package/dist/ai-chat-example.css +3 -0
- package/dist/andromeeda-CvsZnG9k.js +2 -0
- package/dist/angular-html-C5vmpet2.js +14 -0
- package/dist/angular-html-CLTv4jM9.js +5 -0
- package/dist/angular-ts-BKqJWrwt.js +19 -0
- package/dist/apache-D6X-_dyJ.js +2 -0
- package/dist/apex-C7VgAgAE.js +2 -0
- package/dist/apl-BcJs32yU.js +15 -0
- package/dist/applescript-DN64Su6U.js +2 -0
- package/dist/ara-Dm1jHrgg.js +2 -0
- package/dist/arc-Dh_0vvHo.js +78 -0
- package/dist/architecture-U656AL7Q-BqUSHYp0.js +8 -0
- package/dist/architectureDiagram-VXUJARFQ-BQvEdgpc.js +4053 -0
- package/dist/array-CkdOJbdT.js +5 -0
- package/dist/asciidoc-BpqtqRF5.js +2 -0
- package/dist/asm-DUGlKYIq.js +2 -0
- package/dist/astro-q-huTQEP.js +16 -0
- package/dist/aurora-x-DwOih-un.js +2 -0
- package/dist/awk-DcnVbJrN.js +2 -0
- package/dist/ayu-dark-Bd-89MKE.js +2 -0
- package/dist/ballerina-BQVdQd9X.js +2 -0
- package/dist/bash-DI_p7w58.js +2 -0
- package/dist/bat-juB1J52r.js +2 -0
- package/dist/beancount-ThxIlRc3.js +2 -0
- package/dist/berry-qC18BfC_.js +2 -0
- package/dist/bibtex-CahMDY_0.js +2 -0
- package/dist/bicep-CHLBKS47.js +2 -0
- package/dist/blade-Ckff5WJQ.js +19 -0
- package/dist/blockDiagram-VD42YOAC-DKkDshq3.js +3013 -0
- package/dist/bsl-BTNab0FD.js +3 -0
- package/dist/c-BYDGkYzS.js +2 -0
- package/dist/c-CX6yudYR.js +2 -0
- package/dist/c4Diagram-YG6GDRKO-KsGqOrVB.js +2955 -0
- package/dist/cadence-DA5J9-Di.js +2 -0
- package/dist/cairo-DUZgbTPW.js +3 -0
- package/dist/catppuccin-frappe-CE3kxG1f.js +2 -0
- package/dist/catppuccin-latte-DW2FXeIv.js +2 -0
- package/dist/catppuccin-macchiato-CD5qjRSF.js +2 -0
- package/dist/catppuccin-mocha-BYwVJvjI.js +2 -0
- package/dist/channel-BrxVk5HC.js +3 -0
- package/dist/chunk-4BX2VUAB-BGxl5VGr.js +6 -0
- package/dist/chunk-55IACEB6-CDMD5yu1.js +6 -0
- package/dist/chunk-76Q3JFCE-Db4Lkmow.js +19 -0
- package/dist/chunk-ABZYJK2D-BZvlc6Ej.js +2515 -0
- package/dist/chunk-ATLVNIR6-C3g7rsIT.js +65 -0
- package/dist/chunk-B4BG7PRW-Dx-bGI1r.js +3108 -0
- package/dist/chunk-CVBHYZKI-DxEBlSK7.js +10 -0
- package/dist/chunk-DI55MBZ5-CCWuZnfW.js +1994 -0
- package/dist/chunk-DNh5sLlG.js +18 -0
- package/dist/chunk-EXTU4WIE-BjMX7pAs.js +7 -0
- package/dist/chunk-FMBD7UC4-Dj3Ok4Bk.js +3 -0
- package/dist/chunk-FPAJGGOC-nWbO3e1v.js +12252 -0
- package/dist/chunk-FWNWRKHM-CjcwRw2u.js +56 -0
- package/dist/chunk-HN2XXSSU-Lv4Ef0co.js +74 -0
- package/dist/chunk-JA3XYJ7Z-Dhh1_u_p.js +463 -0
- package/dist/chunk-JZLCHNYA-vrb_Ucuc.js +4861 -0
- package/dist/chunk-LBM3YZW2-D8lrIfGo.js +19 -0
- package/dist/chunk-LHMN2FUI-DLQ0i8hl.js +19 -0
- package/dist/chunk-MI3HLSF2-Dy6F9XgR.js +1140 -0
- package/dist/chunk-N4CR4FBY-BdaGxHlZ.js +39 -0
- package/dist/chunk-O7ZBX7Z2-D8Yaukr5.js +26 -0
- package/dist/chunk-QN33PNHL-DnPw7tni.js +23 -0
- package/dist/chunk-QXUST7PY-D9mGQ-UP.js +486 -0
- package/dist/chunk-QZHKN3VN-ClanGuXA.js +11 -0
- package/dist/chunk-S3R3BYOJ-DHTsHczu.js +1074 -0
- package/dist/chunk-S6J4BHB3-8RrHs9bD.js +19 -0
- package/dist/chunk-T53DSG4Q-C2BDA_QX.js +24 -0
- package/dist/chunk-TZMSLE5B-F4nHm7N1.js +55 -0
- package/dist/chunk-XAJISQIX-Bz7ki7DY.js +135 -0
- package/dist/clarity-CsFOkG3c.js +2 -0
- package/dist/classDiagram-2ON5EDUG-C_ZEMlKu.js +33 -0
- package/dist/classDiagram-v2-WZHVMYZB-BHb5nZOM.js +33 -0
- package/dist/clojure-u1TZmmdQ.js +2 -0
- package/dist/clone-BRioDvRr.js +7 -0
- package/dist/cmake-CA3Lfsq7.js +2 -0
- package/dist/cmake-K1k8HMYR.js +2 -0
- package/dist/cobol-DhzLzJib.js +10 -0
- package/dist/codeowners-l4eSxhtA.js +2 -0
- package/dist/codeql-5CeQaktT.js +2 -0
- package/dist/coffee-P21KTKMu.js +3 -0
- package/dist/common-lisp-BVttGbYJ.js +2 -0
- package/dist/coq-CZjzQDnb.js +2 -0
- package/dist/cose-bilkent-S5V4N54A-Dy-do3hl.js +2250 -0
- package/dist/cpp-C6JyDxZu.js +16 -0
- package/dist/cpp-GAIEvywS.js +6 -0
- package/dist/crystal-BJfcoGS4.js +16 -0
- package/dist/csharp-BbUwciq4.js +2 -0
- package/dist/csharp-JE-9ns6W.js +2 -0
- package/dist/css-Crp0iO_o.js +2 -0
- package/dist/css-Cy-fypCV.js +2 -0
- package/dist/csv-DJ7xG4PY.js +2 -0
- package/dist/csv-DtT8LmMi.js +2 -0
- package/dist/cue-BwjaQTCz.js +2 -0
- package/dist/cypher-B7e06enY.js +2 -0
- package/dist/cytoscape.esm-CWqS6puh.js +18100 -0
- package/dist/d-q60wkid4.js +2 -0
- package/dist/dagre-6UL2VRFP-B38_sZWh.js +298 -0
- package/dist/dagre-DtvXp3zQ.js +1395 -0
- package/dist/dark-plus-D_fA88xf.js +2 -0
- package/dist/dart-DjkWvBgr.js +2 -0
- package/dist/dax-lueLIZQI.js +2 -0
- package/dist/defaultLocale-CoJOMwPq.js +177 -0
- package/dist/desktop-DaphHKD5.js +2 -0
- package/dist/diagram-PSM6KHXK-D6swsG-y.js +497 -0
- package/dist/diagram-QEK2KX5R-B7Hi0LAL.js +226 -0
- package/dist/diagram-S2PKOQOG-DLx7PlpM.js +144 -0
- package/dist/diff-COB48_rb.js +2 -0
- package/dist/diff-DlXnqUMK.js +2 -0
- package/dist/dist-CrnZo_23.js +49 -0
- package/dist/docker-DZKmuwpA.js +2 -0
- package/dist/dotenv-hmNahw-8.js +2 -0
- package/dist/dracula-ddM3a7au.js +2 -0
- package/dist/dracula-soft-vfA-TA_S.js +2 -0
- package/dist/dream-maker-Cxa2a8FY.js +2 -0
- package/dist/edge-Dm7HQa9N.js +12 -0
- package/dist/elixir-BkvHyCNd.js +5 -0
- package/dist/elm-rz9wTSrn.js +4 -0
- package/dist/emacs-lisp-w5URnZPZ.js +2 -0
- package/dist/erDiagram-Q2GNP2WA-B67FD8rh.js +1603 -0
- package/dist/erb-DyrwQYVz.js +25 -0
- package/dist/erlang-DLFKZs5N.js +3 -0
- package/dist/everforest-dark-DAPtv4yI.js +2 -0
- package/dist/everforest-light-nQzYm8GO.js +2 -0
- package/dist/fennel-CJDNJZTU.js +2 -0
- package/dist/fish-BkYaLI4-.js +2 -0
- package/dist/flowDiagram-NV44I4VS-DHXgrdJY.js +4132 -0
- package/dist/fluent-DShra35H.js +2 -0
- package/dist/fortran-fixed-form-SzB0QY3n.js +3 -0
- package/dist/fortran-free-form-CgbOAJnm.js +2 -0
- package/dist/fortran-free-form-Js8JrQQE.js +2 -0
- package/dist/fsharp-CtWO0jvL.js +3 -0
- package/dist/ganttDiagram-JELNMOA3-CGIqBt1P.js +3009 -0
- package/dist/gdresource-CgyXKpe4.js +8 -0
- package/dist/gdscript-DnurdQnh.js +2 -0
- package/dist/gdscript-STdmRKv-.js +2 -0
- package/dist/gdshader-Bs2s6cSB.js +2 -0
- package/dist/gdshader-YiVaPq6D.js +2 -0
- package/dist/genie-BppkvzZC.js +2 -0
- package/dist/gherkin-Bp4zdWMb.js +2 -0
- package/dist/git-commit--0GGwZNa.js +3 -0
- package/dist/git-rebase-orw-bSIZ.js +3 -0
- package/dist/gitGraph-F6HP7TQM-CH5XLm5Z.js +8 -0
- package/dist/gitGraphDiagram-NY62KEGX-Cq8AbOhM.js +634 -0
- package/dist/github-dark-CMN1tZPn.js +2 -0
- package/dist/github-dark-DxCf_Qaz.js +2 -0
- package/dist/github-dark-default-DVCJut02.js +2 -0
- package/dist/github-dark-dimmed-DXu9oDqW.js +2 -0
- package/dist/github-dark-high-contrast-BBZdE-mX.js +2 -0
- package/dist/github-light-CfdX7txK.js +2 -0
- package/dist/github-light-Y8g-VxKq.js +2 -0
- package/dist/github-light-default-BNGkGE--.js +2 -0
- package/dist/github-light-high-contrast-DiSIc-nG.js +2 -0
- package/dist/gleam-Lw0tKp8T.js +2 -0
- package/dist/glimmer-js-C6E6wJv0.js +12 -0
- package/dist/glimmer-ts-C6GgTGNO.js +12 -0
- package/dist/glsl-D8_YBRKT.js +3 -0
- package/dist/glsl-rwn_QCp2.js +3 -0
- package/dist/gnuplot-BeA3etmO.js +2 -0
- package/dist/go-BhDDN9y4.js +2 -0
- package/dist/go-xfE7BrfS.js +2 -0
- package/dist/graphlib-BZdVmxO6.js +223 -0
- package/dist/graphql-DQHhbQm2.js +6 -0
- package/dist/graphql-DoBLseH6.js +12 -0
- package/dist/groovy-C5-mv4io.js +2 -0
- package/dist/gruvbox-dark-hard-CULu6kVy.js +2 -0
- package/dist/gruvbox-dark-medium-BJM4uQXO.js +2 -0
- package/dist/gruvbox-dark-soft-CVaORUwa.js +2 -0
- package/dist/gruvbox-light-hard-B-WJAGLa.js +2 -0
- package/dist/gruvbox-light-medium-jc8FWnuC.js +2 -0
- package/dist/gruvbox-light-soft-CmvYQK92.js +2 -0
- package/dist/hack-DEAxoi73.js +10 -0
- package/dist/haml-BG2d3iX4.js +4 -0
- package/dist/haml-mA656Lm7.js +8 -0
- package/dist/handlebars-CO5xAxJ3.js +12 -0
- package/dist/haskell-Hsexh2aP.js +2 -0
- package/dist/haxe-BJVSeYxy.js +2 -0
- package/dist/haxe-CD_Rs3P5.js +2 -0
- package/dist/hcl-D098sJ_J.js +2 -0
- package/dist/hjson-BwXHX5r6.js +2 -0
- package/dist/hlsl-B0pnUVYG.js +2 -0
- package/dist/hlsl-Dt9-unql.js +2 -0
- package/dist/houston-C7hMWO_I.js +2 -0
- package/dist/html-DFCxtjnd.js +4 -0
- package/dist/html-DKSj3FeM.js +8 -0
- package/dist/html-derivative-BCRkrTcD.js +5 -0
- package/dist/html-derivative-C-vidKoA.js +3 -0
- package/dist/http-CYP1tEDW.js +17 -0
- package/dist/hurl-BJexUSKz.js +15 -0
- package/dist/hxml-XfuSEjM-.js +3 -0
- package/dist/hy-DPQ04rHt.js +2 -0
- package/dist/imba-Bgu2n5Mo.js +2 -0
- package/dist/info-NVLQJR56-hEN1y0nS.js +8 -0
- package/dist/infoDiagram-WHAUD3N6-btPwHXxp.js +31 -0
- package/dist/ini-g9mZnyrk.js +2 -0
- package/dist/init-CBay3kgM.js +13 -0
- package/dist/isArrayLikeObject-Dz_TDfw0.js +459 -0
- package/dist/isEmpty-CCym_WUL.js +32 -0
- package/dist/java-CUbPyze1.js +2 -0
- package/dist/java-DIOGgqAD.js +2 -0
- package/dist/javascript-9-JPeKdm.js +2 -0
- package/dist/javascript-De1qhUaI.js +2 -0
- package/dist/jinja-CVFxFRh6.js +5 -0
- package/dist/jison-0X6LppGq.js +3 -0
- package/dist/journeyDiagram-XKPGCS4Q-3OxtBx3I.js +884 -0
- package/dist/js/chat-example.es.js +39220 -0
- package/dist/js/chat-example.umd.js +2989 -0
- package/dist/json-DJtYdWQK.js +2 -0
- package/dist/json-fcFpRaf3.js +2 -0
- package/dist/json5-CPTZJOmf.js +2 -0
- package/dist/jsonc-CYrayg0k.js +2 -0
- package/dist/jsonl-Bsv7LjJ3.js +2 -0
- package/dist/jsonnet-B7LkHJxg.js +2 -0
- package/dist/jssm-BopKGZKg.js +2 -0
- package/dist/jsx-Bf3Nk9Di.js +2 -0
- package/dist/jsx-qo0JNHpZ.js +2 -0
- package/dist/julia-ChGs-n_c.js +17 -0
- package/dist/kanagawa-dragon-CSqqi78I.js +2 -0
- package/dist/kanagawa-lotus-l2vgoxpH.js +2 -0
- package/dist/kanagawa-wave-BWhFcnLj.js +2 -0
- package/dist/kanban-definition-3W4ZIXB7-zdtnJaXz.js +971 -0
- package/dist/katex-BcWXJDMd.js +22097 -0
- package/dist/katex-K1dsczyg.js +2 -0
- package/dist/kdl-BbokxoZ9.js +2 -0
- package/dist/kotlin-3dXKmwyJ.js +2 -0
- package/dist/kusto-Os6_yHEz.js +2 -0
- package/dist/laserwave-8RcN1zf8.js +2 -0
- package/dist/latex-BnWZlY4q.js +4 -0
- package/dist/lean--0Wr4Cy4.js +2 -0
- package/dist/less-B4ybD-7s.js +2 -0
- package/dist/less-Cb54jO7u.js +2 -0
- package/dist/light-plus-CP_iZQDF.js +2 -0
- package/dist/line-EpckC7pZ.js +30 -0
- package/dist/linear-DjVN4o4U.js +250 -0
- package/dist/liquid-pc5Mduds.js +12 -0
- package/dist/llvm-ILH_SX7E.js +2 -0
- package/dist/log-DwO_GzA0.js +2 -0
- package/dist/logo-B4FeRowR.js +2 -0
- package/dist/lua-0TqNbT8C.js +3 -0
- package/dist/lua-6pXga3HV.js +3 -0
- package/dist/luau-DsUEyLJN.js +2 -0
- package/dist/make-p6NYc19I.js +2 -0
- package/dist/markdown-CCRtgC0b.js +2 -0
- package/dist/markdown-LaaQ4Eua.js +2 -0
- package/dist/marked.esm-D9xINNve.js +1384 -0
- package/dist/marko-D8uDUUEs.js +12 -0
- package/dist/material-theme-D__z84-n.js +2 -0
- package/dist/material-theme-darker-CWC5BoMv.js +2 -0
- package/dist/material-theme-lighter-BJrV5b2o.js +2 -0
- package/dist/material-theme-ocean-DYpMfDiX.js +2 -0
- package/dist/material-theme-palenight-3Ix3iI7Q.js +2 -0
- package/dist/math-CJAnbPum.js +8 -0
- package/dist/matlab-CL0oMGfq.js +2 -0
- package/dist/mdc-Ki3KnB5U.js +13 -0
- package/dist/mdx-BTufVkNP.js +2 -0
- package/dist/mermaid-FCjIh1A7.js +2 -0
- package/dist/mermaid-parser.core-DVXSGppp.js +48 -0
- package/dist/mermaid.core-Ra1JFCui.js +895 -0
- package/dist/min-dark-B4KRMcN3.js +2 -0
- package/dist/min-light-BQVJODr0.js +2 -0
- package/dist/mindmap-definition-VGOIOE7T-CRPO52xV.js +960 -0
- package/dist/mipsasm-Cn6AQ4lM.js +2 -0
- package/dist/mojo-C9IiQhp4.js +2 -0
- package/dist/monokai-vDwMMRi4.js +2 -0
- package/dist/move-BdizQ4_I.js +2 -0
- package/dist/narrat-BP2kx-u2.js +2 -0
- package/dist/nextflow-CyRmCGOe.js +2 -0
- package/dist/nginx-B46vdQ9n.js +4 -0
- package/dist/night-owl-DmjkOa5g.js +2 -0
- package/dist/nim-BxQNx10D.js +19 -0
- package/dist/nix-qPhlsqZI.js +2 -0
- package/dist/nord-sjxbvIbg.js +2 -0
- package/dist/nushell-puA-1bCW.js +2 -0
- package/dist/objective-c-D-qDLNy5.js +2 -0
- package/dist/objective-cpp-CFxSAM6p.js +2 -0
- package/dist/ocaml-CsLB7SWJ.js +2 -0
- package/dist/one-dark-pro-BHH-VjFD.js +2 -0
- package/dist/one-light-BqE6erWk.js +2 -0
- package/dist/openscad-DJCIQfnJ.js +2 -0
- package/dist/ordinal-CYQpsShT.js +61 -0
- package/dist/packet-BFZMPI3H-Bnlch4JI.js +8 -0
- package/dist/pascal-CPg9_ZFN.js +2 -0
- package/dist/path-esxOUfAH.js +79 -0
- package/dist/perl-D1bDaADZ.js +15 -0
- package/dist/php-BX51InqL.js +9 -0
- package/dist/php-D5tmU8Cr.js +16 -0
- package/dist/pie-7BOR55EZ-B9egLHl5.js +8 -0
- package/dist/pieDiagram-ADFJNKIX-CKSgB7fx.js +172 -0
- package/dist/pkl-BQQ96hvn.js +2 -0
- package/dist/plastic-BrNUBdSC.js +2 -0
- package/dist/plsql-Co7Bxe7U.js +2 -0
- package/dist/po-BqzJCro7.js +2 -0
- package/dist/poimandres-C_AK8TlO.js +2 -0
- package/dist/polar-CtdYIPEe.js +2 -0
- package/dist/postcss-ChqFKb46.js +2 -0
- package/dist/postcss-ainQkoyY.js +2 -0
- package/dist/powerquery-CDugc1w-.js +2 -0
- package/dist/powershell-j5X-IA59.js +2 -0
- package/dist/prisma-Cyl7YhUw.js +2 -0
- package/dist/prolog-DELKnUYf.js +2 -0
- package/dist/proto-C4A_gDBY.js +2 -0
- package/dist/pug-BcLlS7Yb.js +10 -0
- package/dist/puppet-DFC9LyFj.js +2 -0
- package/dist/purescript-eECq7_n2.js +2 -0
- package/dist/python-BhdCuCld.js +2 -0
- package/dist/python-CuBu5pyY.js +2 -0
- package/dist/qml-MD0NqqIl.js +3 -0
- package/dist/qmldir-BpJII-Ze.js +2 -0
- package/dist/qss-CpMcemMc.js +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-BHzqivzD.js +1970 -0
- package/dist/r-CQeHOO4c.js +2 -0
- package/dist/r-D90zdkbN.js +2 -0
- package/dist/racket-COTs6Zfi.js +2 -0
- package/dist/radar-NHE76QYJ-DdALhlvV.js +8 -0
- package/dist/raku-DfOtwMUC.js +2 -0
- package/dist/razor-eRwFWsjJ.js +10 -0
- package/dist/red-CWGFZsim.js +2 -0
- package/dist/reg-BX5DwoEA.js +2 -0
- package/dist/regexp-Ca0eDBa2.js +2 -0
- package/dist/regexp-Cap8fK_2.js +2 -0
- package/dist/rel-CzXuLSk3.js +2 -0
- package/dist/requirementDiagram-UZGBJVZJ-Darhwvir.js +2194 -0
- package/dist/riscv-DnFIiqh3.js +2 -0
- package/dist/rose-pine-C4v2iQVe.js +2 -0
- package/dist/rose-pine-dawn-D5sdDB-J.js +2 -0
- package/dist/rose-pine-moon-2Vb7bLLO.js +2 -0
- package/dist/rosmsg-D02ul3fM.js +2 -0
- package/dist/rst-DFmSdXGd.js +34 -0
- package/dist/ruby-BAEFomR0.js +20 -0
- package/dist/ruby-DDMUvAvC.js +28 -0
- package/dist/rust-s3hBbfQg.js +2 -0
- package/dist/sankeyDiagram-TZEHDZUN-KiSvBN_C.js +884 -0
- package/dist/sas-TjtLSnOp.js +3 -0
- package/dist/sass-v3HeJ9Fl.js +2 -0
- package/dist/scala-BTIBM_Vn.js +2 -0
- package/dist/scheme-C4NQMf7a.js +2 -0
- package/dist/scss-C-bthdG1.js +3 -0
- package/dist/scss-D-6-mg-f.js +3 -0
- package/dist/sdbl-BA3l-JrH.js +2 -0
- package/dist/sdbl-gc7zIVWR.js +2 -0
- package/dist/sequenceDiagram-WL72ISMW-D2Mo7Vtj.js +3560 -0
- package/dist/shaderlab-BRlB5fpk.js +3 -0
- package/dist/shellscript-BQ8mKDAF.js +2 -0
- package/dist/shellscript-DZa_4vvb.js +2 -0
- package/dist/shellsession-CIlmlgbR.js +3 -0
- package/dist/slack-dark-DhXO5DWr.js +2 -0
- package/dist/slack-ochin-aAGl4PPH.js +2 -0
- package/dist/smalltalk-DbwVUw_i.js +2 -0
- package/dist/snazzy-light-B4S5mk83.js +2 -0
- package/dist/solarized-dark-Dexkq3Fm.js +2 -0
- package/dist/solarized-light-I-Bzy8UC.js +2 -0
- package/dist/solidity-SMk0TJDc.js +2 -0
- package/dist/soy-DwSCrzEF.js +5 -0
- package/dist/sparql-D9kVSpEx.js +3 -0
- package/dist/splunk-DXXu2r7r.js +2 -0
- package/dist/sql-Bi3LyNPb.js +2 -0
- package/dist/sql-D0eLHBiZ.js +2 -0
- package/dist/src-B-SBGd0A.js +1975 -0
- package/dist/ssh-config-DyVcFTfI.js +2 -0
- package/dist/stata-DkEObyNb.js +3 -0
- package/dist/stateDiagram-FKZM4ZOC-BRQN2Npg.js +224 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CeeIKiFG.js +32 -0
- package/dist/stylus-BKTuFHcX.js +2 -0
- package/dist/stylus-DEHALDNh.js +2 -0
- package/dist/svelte-KFuclcR6.js +12 -0
- package/dist/swift-Cenptrnf.js +2 -0
- package/dist/synthwave-84-BRkDuVE-.js +2 -0
- package/dist/system-verilog-Cvgukx4v.js +2 -0
- package/dist/systemd-BepdslJQ.js +2 -0
- package/dist/talonscript-Q98m-VXh.js +2 -0
- package/dist/tasl-uebrX98X.js +2 -0
- package/dist/tcl-B1Ny4XFf.js +2 -0
- package/dist/templ-C5mtYbb_.js +10 -0
- package/dist/terraform-0mA5ERTe.js +2 -0
- package/dist/tex-B4uYy1vC.js +3 -0
- package/dist/tex-BoVFa1ir.js +3 -0
- package/dist/timeline-definition-IT6M3QCI-CSwH0Pnx.js +830 -0
- package/dist/tokyo-night-D0mU3-u8.js +2 -0
- package/dist/toml-vMAjra5M.js +2 -0
- package/dist/treemap-KMMF4GRG-COjpj6-C.js +8 -0
- package/dist/ts-tags-DRdTXGhb.js +38 -0
- package/dist/tsv-BnmbkntZ.js +2 -0
- package/dist/tsx-BaaPsUbd.js +2 -0
- package/dist/tsx-C0w0w5St.js +2 -0
- package/dist/turtle-4UWi_qX6.js +2 -0
- package/dist/turtle-BRmolh-6.js +2 -0
- package/dist/twig-cEhAbahS.js +33 -0
- package/dist/typescript-4YtK2JL4.js +2 -0
- package/dist/typescript-CmJ8D0yY.js +2 -0
- package/dist/typespec-CILw3zvZ.js +2 -0
- package/dist/typst-CLajFw6q.js +2 -0
- package/dist/v-MJV2RQvK.js +2 -0
- package/dist/vala-Dc1TiHw1.js +2 -0
- package/dist/vb-CoJdNmGs.js +2 -0
- package/dist/verilog-C7aVmiO0.js +2 -0
- package/dist/vesper-Cvcqyrim.js +2 -0
- package/dist/vhdl-CYQvzAG1.js +2 -0
- package/dist/viml-DOyjiDI8.js +2 -0
- package/dist/vitesse-black-CUYJaB5b.js +2 -0
- package/dist/vitesse-dark-BNlzDJ1Z.js +2 -0
- package/dist/vitesse-light-JU98KqVa.js +2 -0
- package/dist/vue-B3C4YeUK.js +8 -0
- package/dist/vue-DMpjAWNv.js +20 -0
- package/dist/vue-html-BIZN50ug.js +13 -0
- package/dist/vue-vine-DxezWcjL.js +22 -0
- package/dist/vyper-JU_r7Ch6.js +2 -0
- package/dist/wasm-DJ1S--fN.js +2 -0
- package/dist/wasm-eLFiAU8u.js +2 -0
- package/dist/wenyan-CqkzmyWz.js +2 -0
- package/dist/wgsl-gV62iTnF.js +2 -0
- package/dist/wikitext-BfUl8La4.js +2 -0
- package/dist/wit-kp_bCf2U.js +2 -0
- package/dist/wolfram-aPsN9AKt.js +2 -0
- package/dist/xml-BglBgo29.js +3 -0
- package/dist/xml-BxRdgEAX.js +3 -0
- package/dist/xsl-Cni90e0k.js +4 -0
- package/dist/xychartDiagram-PRI3JC2R-CGXFYn39.js +2022 -0
- package/dist/yaml-DQRfaSRo.js +2 -0
- package/dist/yaml-P2kjOPvW.js +2 -0
- package/dist/zenscript-BuY4FX-t.js +2 -0
- package/dist/zig-CGDGjytz.js +2 -0
- package/package.json +10 -6
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -6
- package/auto-imports.d.ts +0 -73
- package/components.d.ts +0 -312
- package/components.json +0 -21
- package/index.html +0 -13
- package/src/App.vue +0 -68
- package/src/components/ChatConversation/ChatConversation.vue +0 -97
- package/src/components/ChatConversation/index.ts +0 -1
- package/src/components/ChatPromptInputProvider/ChatPromptInputProvider.vue +0 -47
- package/src/components/ChatPromptInputProvider/index.ts +0 -1
- package/src/components/ai-elements/artifact/Artifact.vue +0 -23
- package/src/components/ai-elements/artifact/ArtifactAction.vue +0 -72
- package/src/components/ai-elements/artifact/ArtifactActions.vue +0 -19
- package/src/components/ai-elements/artifact/ArtifactClose.vue +0 -39
- package/src/components/ai-elements/artifact/ArtifactContent.vue +0 -20
- package/src/components/ai-elements/artifact/ArtifactDescription.vue +0 -20
- package/src/components/ai-elements/artifact/ArtifactHeader.vue +0 -23
- package/src/components/ai-elements/artifact/ArtifactTitle.vue +0 -20
- package/src/components/ai-elements/artifact/index.ts +0 -8
- package/src/components/ai-elements/canvas/Canvas.vue +0 -37
- package/src/components/ai-elements/canvas/index.ts +0 -1
- package/src/components/ai-elements/chain-of-thought/ChainOfThought.vue +0 -41
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue +0 -32
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue +0 -43
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue +0 -25
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue +0 -24
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue +0 -17
- package/src/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue +0 -54
- package/src/components/ai-elements/chain-of-thought/context.ts +0 -22
- package/src/components/ai-elements/chain-of-thought/index.ts +0 -7
- package/src/components/ai-elements/checkpoint/Checkpoint.vue +0 -19
- package/src/components/ai-elements/checkpoint/CheckpointIcon.vue +0 -19
- package/src/components/ai-elements/checkpoint/CheckpointTrigger.vue +0 -46
- package/src/components/ai-elements/checkpoint/index.ts +0 -3
- package/src/components/ai-elements/code-block/CodeBlock.vue +0 -84
- package/src/components/ai-elements/code-block/CodeBlockCopyButton.vue +0 -84
- package/src/components/ai-elements/code-block/context.ts +0 -7
- package/src/components/ai-elements/code-block/index.ts +0 -2
- package/src/components/ai-elements/code-block/utils.ts +0 -46
- package/src/components/ai-elements/confirmation/Confirmation.vue +0 -30
- package/src/components/ai-elements/confirmation/ConfirmationAccepted.vue +0 -18
- package/src/components/ai-elements/confirmation/ConfirmationAction.vue +0 -9
- package/src/components/ai-elements/confirmation/ConfirmationActions.vue +0 -23
- package/src/components/ai-elements/confirmation/ConfirmationRejected.vue +0 -18
- package/src/components/ai-elements/confirmation/ConfirmationRequest.vue +0 -11
- package/src/components/ai-elements/confirmation/ConfirmationTitle.vue +0 -18
- package/src/components/ai-elements/confirmation/context.ts +0 -46
- package/src/components/ai-elements/confirmation/index.ts +0 -7
- package/src/components/ai-elements/connection/Connection.vue +0 -36
- package/src/components/ai-elements/connection/index.ts +0 -1
- package/src/components/ai-elements/context/Context.vue +0 -29
- package/src/components/ai-elements/context/ContextCacheUsage.vue +0 -45
- package/src/components/ai-elements/context/ContextContent.vue +0 -20
- package/src/components/ai-elements/context/ContextContentBody.vue +0 -14
- package/src/components/ai-elements/context/ContextContentFooter.vue +0 -49
- package/src/components/ai-elements/context/ContextContentHeader.vue +0 -49
- package/src/components/ai-elements/context/ContextIcon.vue +0 -62
- package/src/components/ai-elements/context/ContextInputUsage.vue +0 -46
- package/src/components/ai-elements/context/ContextOutputUsage.vue +0 -45
- package/src/components/ai-elements/context/ContextReasoningUsage.vue +0 -48
- package/src/components/ai-elements/context/ContextTrigger.vue +0 -32
- package/src/components/ai-elements/context/TokensWithCost.vue +0 -25
- package/src/components/ai-elements/context/context.ts +0 -23
- package/src/components/ai-elements/context/index.ts +0 -12
- package/src/components/ai-elements/controls/Controls.vue +0 -25
- package/src/components/ai-elements/controls/index.ts +0 -1
- package/src/components/ai-elements/conversation/Conversation.vue +0 -37
- package/src/components/ai-elements/conversation/ConversationContent.vue +0 -21
- package/src/components/ai-elements/conversation/ConversationEmptyState.vue +0 -40
- package/src/components/ai-elements/conversation/ConversationScrollButton.vue +0 -34
- package/src/components/ai-elements/conversation/index.ts +0 -4
- package/src/components/ai-elements/edge/Animated.vue +0 -91
- package/src/components/ai-elements/edge/Temporary.vue +0 -28
- package/src/components/ai-elements/edge/index.ts +0 -2
- package/src/components/ai-elements/image/Image.vue +0 -29
- package/src/components/ai-elements/image/index.ts +0 -1
- package/src/components/ai-elements/inline-citation/InlineCitation.vue +0 -14
- package/src/components/ai-elements/inline-citation/InlineCitationCard.vue +0 -17
- package/src/components/ai-elements/inline-citation/InlineCitationCardBody.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue +0 -35
- package/src/components/ai-elements/inline-citation/InlineCitationCarousel.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue +0 -9
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue +0 -16
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue +0 -46
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue +0 -15
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue +0 -23
- package/src/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue +0 -23
- package/src/components/ai-elements/inline-citation/InlineCitationQuote.vue +0 -16
- package/src/components/ai-elements/inline-citation/InlineCitationSource.vue +0 -26
- package/src/components/ai-elements/inline-citation/InlineCitationText.vue +0 -14
- package/src/components/ai-elements/inline-citation/index.ts +0 -14
- package/src/components/ai-elements/loader/Loader.vue +0 -23
- package/src/components/ai-elements/loader/LoaderIcon.vue +0 -38
- package/src/components/ai-elements/loader/index.ts +0 -2
- package/src/components/ai-elements/message/Message.vue +0 -27
- package/src/components/ai-elements/message/MessageAction.vue +0 -45
- package/src/components/ai-elements/message/MessageActions.vue +0 -19
- package/src/components/ai-elements/message/MessageAttachment.vue +0 -87
- package/src/components/ai-elements/message/MessageAttachments.vue +0 -25
- package/src/components/ai-elements/message/MessageAvatar.vue +0 -22
- package/src/components/ai-elements/message/MessageBranch.vue +0 -66
- package/src/components/ai-elements/message/MessageBranchContent.vue +0 -51
- package/src/components/ai-elements/message/MessageBranchNext.vue +0 -23
- package/src/components/ai-elements/message/MessageBranchPage.vue +0 -28
- package/src/components/ai-elements/message/MessageBranchPrevious.vue +0 -23
- package/src/components/ai-elements/message/MessageBranchSelector.vue +0 -23
- package/src/components/ai-elements/message/MessageContent.vue +0 -26
- package/src/components/ai-elements/message/MessageResponse.vue +0 -42
- package/src/components/ai-elements/message/MessageToolbar.vue +0 -24
- package/src/components/ai-elements/message/context.ts +0 -22
- package/src/components/ai-elements/message/index.ts +0 -15
- package/src/components/ai-elements/model-selector/ModelSelector.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorContent.vue +0 -29
- package/src/components/ai-elements/model-selector/ModelSelectorDialog.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorEmpty.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorGroup.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorInput.vue +0 -18
- package/src/components/ai-elements/model-selector/ModelSelectorItem.vue +0 -10
- package/src/components/ai-elements/model-selector/ModelSelectorList.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorLogo.vue +0 -22
- package/src/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue +0 -24
- package/src/components/ai-elements/model-selector/ModelSelectorName.vue +0 -19
- package/src/components/ai-elements/model-selector/ModelSelectorSeparator.vue +0 -7
- package/src/components/ai-elements/model-selector/ModelSelectorShortcut.vue +0 -9
- package/src/components/ai-elements/model-selector/ModelSelectorTrigger.vue +0 -9
- package/src/components/ai-elements/model-selector/index.ts +0 -14
- package/src/components/ai-elements/node/Node.vue +0 -31
- package/src/components/ai-elements/node/NodeAction.vue +0 -9
- package/src/components/ai-elements/node/NodeContent.vue +0 -15
- package/src/components/ai-elements/node/NodeDescription.vue +0 -9
- package/src/components/ai-elements/node/NodeFooter.vue +0 -15
- package/src/components/ai-elements/node/NodeHeader.vue +0 -15
- package/src/components/ai-elements/node/NodeTitle.vue +0 -9
- package/src/components/ai-elements/node/index.ts +0 -7
- package/src/components/ai-elements/open-in-chat/OpenIn.vue +0 -20
- package/src/components/ai-elements/open-in-chat/OpenInContent.vue +0 -25
- package/src/components/ai-elements/open-in-chat/OpenInItemLink.vue +0 -30
- package/src/components/ai-elements/open-in-chat/OpenInTrigger.vue +0 -16
- package/src/components/ai-elements/open-in-chat/context.ts +0 -20
- package/src/components/ai-elements/open-in-chat/index.ts +0 -9
- package/src/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue +0 -13
- package/src/components/ai-elements/open-in-chat/providers/icons/Claude.vue +0 -15
- package/src/components/ai-elements/open-in-chat/providers/icons/Cursor.vue +0 -13
- package/src/components/ai-elements/open-in-chat/providers/icons/Github.vue +0 -8
- package/src/components/ai-elements/open-in-chat/providers/icons/Scira.vue +0 -58
- package/src/components/ai-elements/open-in-chat/providers/icons/V0.vue +0 -15
- package/src/components/ai-elements/open-in-chat/providers/icons/index.ts +0 -6
- package/src/components/ai-elements/open-in-chat/providers/index.ts +0 -69
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue +0 -18
- package/src/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue +0 -18
- package/src/components/ai-elements/panel/Panel.vue +0 -28
- package/src/components/ai-elements/panel/index.ts +0 -1
- package/src/components/ai-elements/plan/Plan.vue +0 -32
- package/src/components/ai-elements/plan/PlanAction.vue +0 -9
- package/src/components/ai-elements/plan/PlanContent.vue +0 -12
- package/src/components/ai-elements/plan/PlanDescription.vue +0 -25
- package/src/components/ai-elements/plan/PlanFooter.vue +0 -9
- package/src/components/ai-elements/plan/PlanHeader.vue +0 -18
- package/src/components/ai-elements/plan/PlanTitle.vue +0 -16
- package/src/components/ai-elements/plan/PlanTrigger.vue +0 -25
- package/src/components/ai-elements/plan/context.ts +0 -20
- package/src/components/ai-elements/plan/index.ts +0 -8
- package/src/components/ai-elements/prompt-input/PromptInput.vue +0 -116
- package/src/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputActionMenu.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue +0 -21
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputAttachment.vue +0 -94
- package/src/components/ai-elements/prompt-input/PromptInputAttachments.vue +0 -22
- package/src/components/ai-elements/prompt-input/PromptInputBody.vue +0 -12
- package/src/components/ai-elements/prompt-input/PromptInputButton.vue +0 -56
- package/src/components/ai-elements/prompt-input/PromptInputCommand.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandGroup.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandInput.vue +0 -17
- package/src/components/ai-elements/prompt-input/PromptInputCommandItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputCommandList.vue +0 -17
- package/src/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputFooter.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHeader.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHoverCard.vue +0 -23
- package/src/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputProvider.vue +0 -32
- package/src/components/ai-elements/prompt-input/PromptInputSelect.vue +0 -15
- package/src/components/ai-elements/prompt-input/PromptInputSelectContent.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSelectItem.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue +0 -26
- package/src/components/ai-elements/prompt-input/PromptInputSelectValue.vue +0 -19
- package/src/components/ai-elements/prompt-input/PromptInputSpeechButton.vue +0 -137
- package/src/components/ai-elements/prompt-input/PromptInputSubmit.vue +0 -60
- package/src/components/ai-elements/prompt-input/PromptInputTab.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabBody.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabItem.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabLabel.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTabsList.vue +0 -16
- package/src/components/ai-elements/prompt-input/PromptInputTextarea.vue +0 -78
- package/src/components/ai-elements/prompt-input/PromptInputTools.vue +0 -12
- package/src/components/ai-elements/prompt-input/context.ts +0 -223
- package/src/components/ai-elements/prompt-input/index.ts +0 -39
- package/src/components/ai-elements/prompt-input/types.ts +0 -28
- package/src/components/ai-elements/queue/Queue.vue +0 -21
- package/src/components/ai-elements/queue/QueueItem.vue +0 -21
- package/src/components/ai-elements/queue/QueueItemAction.vue +0 -25
- package/src/components/ai-elements/queue/QueueItemActions.vue +0 -14
- package/src/components/ai-elements/queue/QueueItemAttachment.vue +0 -14
- package/src/components/ai-elements/queue/QueueItemContent.vue +0 -32
- package/src/components/ai-elements/queue/QueueItemDescription.vue +0 -32
- package/src/components/ai-elements/queue/QueueItemFile.vue +0 -25
- package/src/components/ai-elements/queue/QueueItemImage.vue +0 -18
- package/src/components/ai-elements/queue/QueueItemIndicator.vue +0 -30
- package/src/components/ai-elements/queue/QueueList.vue +0 -22
- package/src/components/ai-elements/queue/QueueSection.vue +0 -26
- package/src/components/ai-elements/queue/QueueSectionContent.vue +0 -15
- package/src/components/ai-elements/queue/QueueSectionLabel.vue +0 -26
- package/src/components/ai-elements/queue/QueueSectionTrigger.vue +0 -25
- package/src/components/ai-elements/queue/index.ts +0 -15
- package/src/components/ai-elements/reasoning/Reasoning.vue +0 -94
- package/src/components/ai-elements/reasoning/ReasoningContent.vue +0 -41
- package/src/components/ai-elements/reasoning/ReasoningTrigger.vue +0 -61
- package/src/components/ai-elements/reasoning/context.ts +0 -19
- package/src/components/ai-elements/reasoning/index.ts +0 -3
- package/src/components/ai-elements/shimmer/Shimmer.vue +0 -69
- package/src/components/ai-elements/shimmer/index.ts +0 -1
- package/src/components/ai-elements/sources/Source.vue +0 -26
- package/src/components/ai-elements/sources/Sources.vue +0 -17
- package/src/components/ai-elements/sources/SourcesContent.vue +0 -23
- package/src/components/ai-elements/sources/SourcesTrigger.vue +0 -24
- package/src/components/ai-elements/sources/index.ts +0 -4
- package/src/components/ai-elements/suggestion/Suggestion.vue +0 -38
- package/src/components/ai-elements/suggestion/Suggestions.vue +0 -20
- package/src/components/ai-elements/suggestion/index.ts +0 -2
- package/src/components/ai-elements/task/Task.vue +0 -32
- package/src/components/ai-elements/task/TaskContent.vue +0 -27
- package/src/components/ai-elements/task/TaskItem.vue +0 -16
- package/src/components/ai-elements/task/TaskItemFile.vue +0 -18
- package/src/components/ai-elements/task/TaskTrigger.vue +0 -33
- package/src/components/ai-elements/task/index.ts +0 -5
- package/src/components/ai-elements/tool/Tool.vue +0 -18
- package/src/components/ai-elements/tool/ToolContent.vue +0 -23
- package/src/components/ai-elements/tool/ToolHeader.vue +0 -38
- package/src/components/ai-elements/tool/ToolInput.vue +0 -32
- package/src/components/ai-elements/tool/ToolOutput.vue +0 -69
- package/src/components/ai-elements/tool/ToolStatusBadge.vue +0 -63
- package/src/components/ai-elements/tool/index.ts +0 -5
- package/src/components/ai-elements/toolbar/Toolbar.vue +0 -32
- package/src/components/ai-elements/toolbar/index.ts +0 -1
- package/src/components/ai-elements/web-preview/WebPreview.vue +0 -60
- package/src/components/ai-elements/web-preview/WebPreviewBody.vue +0 -34
- package/src/components/ai-elements/web-preview/WebPreviewConsole.vue +0 -92
- package/src/components/ai-elements/web-preview/WebPreviewNavigation.vue +0 -21
- package/src/components/ai-elements/web-preview/WebPreviewNavigationButton.vue +0 -45
- package/src/components/ai-elements/web-preview/WebPreviewUrl.vue +0 -43
- package/src/components/ai-elements/web-preview/context.ts +0 -25
- package/src/components/ai-elements/web-preview/index.ts +0 -7
- package/src/components/ui/alert/Alert.vue +0 -21
- package/src/components/ui/alert/AlertDescription.vue +0 -17
- package/src/components/ui/alert/AlertTitle.vue +0 -17
- package/src/components/ui/alert/index.ts +0 -24
- package/src/components/ui/avatar/Avatar.vue +0 -18
- package/src/components/ui/avatar/AvatarFallback.vue +0 -21
- package/src/components/ui/avatar/AvatarImage.vue +0 -16
- package/src/components/ui/avatar/index.ts +0 -3
- package/src/components/ui/badge/Badge.vue +0 -26
- package/src/components/ui/badge/index.ts +0 -26
- package/src/components/ui/button/Button.vue +0 -29
- package/src/components/ui/button/index.ts +0 -38
- package/src/components/ui/button-group/ButtonGroup.vue +0 -22
- package/src/components/ui/button-group/ButtonGroupSeparator.vue +0 -24
- package/src/components/ui/button-group/ButtonGroupText.vue +0 -29
- package/src/components/ui/button-group/index.ts +0 -25
- package/src/components/ui/card/Card.vue +0 -22
- package/src/components/ui/card/CardAction.vue +0 -17
- package/src/components/ui/card/CardContent.vue +0 -17
- package/src/components/ui/card/CardDescription.vue +0 -17
- package/src/components/ui/card/CardFooter.vue +0 -17
- package/src/components/ui/card/CardHeader.vue +0 -17
- package/src/components/ui/card/CardTitle.vue +0 -17
- package/src/components/ui/card/index.ts +0 -7
- package/src/components/ui/carousel/Carousel.vue +0 -53
- package/src/components/ui/carousel/CarouselContent.vue +0 -33
- package/src/components/ui/carousel/CarouselItem.vue +0 -24
- package/src/components/ui/carousel/CarouselNext.vue +0 -41
- package/src/components/ui/carousel/CarouselPrevious.vue +0 -41
- package/src/components/ui/carousel/index.ts +0 -10
- package/src/components/ui/carousel/interface.ts +0 -26
- package/src/components/ui/carousel/useCarousel.ts +0 -56
- package/src/components/ui/collapsible/Collapsible.vue +0 -19
- package/src/components/ui/collapsible/CollapsibleContent.vue +0 -15
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +0 -15
- package/src/components/ui/collapsible/index.ts +0 -3
- package/src/components/ui/command/Command.vue +0 -87
- package/src/components/ui/command/CommandDialog.vue +0 -31
- package/src/components/ui/command/CommandEmpty.vue +0 -27
- package/src/components/ui/command/CommandGroup.vue +0 -45
- package/src/components/ui/command/CommandInput.vue +0 -39
- package/src/components/ui/command/CommandItem.vue +0 -76
- package/src/components/ui/command/CommandList.vue +0 -25
- package/src/components/ui/command/CommandSeparator.vue +0 -21
- package/src/components/ui/command/CommandShortcut.vue +0 -17
- package/src/components/ui/command/index.ts +0 -25
- package/src/components/ui/dialog/Dialog.vue +0 -19
- package/src/components/ui/dialog/DialogClose.vue +0 -15
- package/src/components/ui/dialog/DialogContent.vue +0 -53
- package/src/components/ui/dialog/DialogDescription.vue +0 -23
- package/src/components/ui/dialog/DialogFooter.vue +0 -15
- package/src/components/ui/dialog/DialogHeader.vue +0 -17
- package/src/components/ui/dialog/DialogOverlay.vue +0 -21
- package/src/components/ui/dialog/DialogScrollContent.vue +0 -59
- package/src/components/ui/dialog/DialogTitle.vue +0 -23
- package/src/components/ui/dialog/DialogTrigger.vue +0 -15
- package/src/components/ui/dialog/index.ts +0 -10
- package/src/components/ui/dropdown-menu/DropdownMenu.vue +0 -19
- package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -39
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -39
- package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +0 -15
- package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -31
- package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +0 -23
- package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -21
- package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -40
- package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -23
- package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +0 -17
- package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +0 -18
- package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +0 -27
- package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +0 -30
- package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -17
- package/src/components/ui/dropdown-menu/index.ts +0 -16
- package/src/components/ui/hover-card/HoverCard.vue +0 -19
- package/src/components/ui/hover-card/HoverCardContent.vue +0 -43
- package/src/components/ui/hover-card/HoverCardTrigger.vue +0 -15
- package/src/components/ui/hover-card/index.ts +0 -3
- package/src/components/ui/input/Input.vue +0 -33
- package/src/components/ui/input/index.ts +0 -1
- package/src/components/ui/input-group/InputGroup.vue +0 -37
- package/src/components/ui/input-group/InputGroupAddon.vue +0 -36
- package/src/components/ui/input-group/InputGroupButton.vue +0 -21
- package/src/components/ui/input-group/InputGroupInput.vue +0 -19
- package/src/components/ui/input-group/InputGroupText.vue +0 -19
- package/src/components/ui/input-group/InputGroupTextarea.vue +0 -19
- package/src/components/ui/input-group/index.ts +0 -59
- package/src/components/ui/progress/Progress.vue +0 -38
- package/src/components/ui/progress/index.ts +0 -1
- package/src/components/ui/scroll-area/ScrollArea.vue +0 -33
- package/src/components/ui/scroll-area/ScrollBar.vue +0 -32
- package/src/components/ui/scroll-area/index.ts +0 -2
- package/src/components/ui/select/Select.vue +0 -19
- package/src/components/ui/select/SelectContent.vue +0 -51
- package/src/components/ui/select/SelectGroup.vue +0 -15
- package/src/components/ui/select/SelectItem.vue +0 -44
- package/src/components/ui/select/SelectItemText.vue +0 -15
- package/src/components/ui/select/SelectLabel.vue +0 -17
- package/src/components/ui/select/SelectScrollDownButton.vue +0 -26
- package/src/components/ui/select/SelectScrollUpButton.vue +0 -26
- package/src/components/ui/select/SelectSeparator.vue +0 -19
- package/src/components/ui/select/SelectTrigger.vue +0 -33
- package/src/components/ui/select/SelectValue.vue +0 -15
- package/src/components/ui/select/index.ts +0 -11
- package/src/components/ui/separator/Separator.vue +0 -29
- package/src/components/ui/separator/index.ts +0 -1
- package/src/components/ui/textarea/Textarea.vue +0 -28
- package/src/components/ui/textarea/index.ts +0 -1
- package/src/components/ui/tooltip/Tooltip.vue +0 -19
- package/src/components/ui/tooltip/TooltipContent.vue +0 -34
- package/src/components/ui/tooltip/TooltipProvider.vue +0 -14
- package/src/components/ui/tooltip/TooltipTrigger.vue +0 -15
- package/src/components/ui/tooltip/index.ts +0 -4
- package/src/composables/useChat.ts +0 -46
- package/src/index.ts +0 -3
- package/src/lib/utils.ts +0 -7
- package/src/main.ts +0 -5
- package/src/request/index.ts +0 -41
- package/src/style.css +0 -120
- package/tsconfig.app.json +0 -25
- package/tsconfig.json +0 -13
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -26
- /package/{public → dist}/vite.svg +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { FileUIPart } from 'ai'
|
|
3
|
-
import type { HTMLAttributes } from 'vue'
|
|
4
|
-
import { Button } from '@/components/ui/button'
|
|
5
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
|
|
6
|
-
import { cn } from '@/lib/utils'
|
|
7
|
-
import { PaperclipIcon, XIcon } from 'lucide-vue-next'
|
|
8
|
-
import { computed } from 'vue'
|
|
9
|
-
|
|
10
|
-
interface Props {
|
|
11
|
-
data: FileUIPart
|
|
12
|
-
class?: HTMLAttributes['class']
|
|
13
|
-
}
|
|
14
|
-
const props = defineProps<Props>()
|
|
15
|
-
|
|
16
|
-
const emits = defineEmits<{
|
|
17
|
-
(e: 'remove'): void
|
|
18
|
-
}>()
|
|
19
|
-
|
|
20
|
-
const filename = computed(() => props.data.filename || '')
|
|
21
|
-
const mediaType = computed(() =>
|
|
22
|
-
props.data.mediaType?.startsWith('image/') && props.data.url ? 'image' : 'file',
|
|
23
|
-
)
|
|
24
|
-
const isImage = computed(() => mediaType.value === 'image')
|
|
25
|
-
const attachmentLabel = computed(() =>
|
|
26
|
-
filename.value || (isImage.value ? 'Image' : 'Attachment'),
|
|
27
|
-
)
|
|
28
|
-
</script>
|
|
29
|
-
|
|
30
|
-
<template>
|
|
31
|
-
<div
|
|
32
|
-
:class="
|
|
33
|
-
cn(
|
|
34
|
-
'group relative size-24 overflow-hidden rounded-lg',
|
|
35
|
-
props.class,
|
|
36
|
-
)
|
|
37
|
-
"
|
|
38
|
-
v-bind="$attrs"
|
|
39
|
-
>
|
|
40
|
-
<template v-if="isImage">
|
|
41
|
-
<img
|
|
42
|
-
:src="props.data.url"
|
|
43
|
-
:alt="filename || 'attachment'"
|
|
44
|
-
class="size-full object-cover"
|
|
45
|
-
height="100"
|
|
46
|
-
width="100"
|
|
47
|
-
>
|
|
48
|
-
<Button
|
|
49
|
-
aria-label="Remove attachment"
|
|
50
|
-
class="absolute top-2 right-2 size-6 rounded-full bg-background/80 p-0 opacity-0 backdrop-blur-sm transition-opacity hover:bg-background group-hover:opacity-100 [&>svg]:size-3"
|
|
51
|
-
type="button"
|
|
52
|
-
variant="ghost"
|
|
53
|
-
@click.stop="emits('remove')"
|
|
54
|
-
>
|
|
55
|
-
<XIcon />
|
|
56
|
-
<span class="sr-only">Remove</span>
|
|
57
|
-
</Button>
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<template v-else>
|
|
61
|
-
<TooltipProvider>
|
|
62
|
-
<Tooltip>
|
|
63
|
-
<TooltipTrigger as-child>
|
|
64
|
-
<div
|
|
65
|
-
class="flex size-full shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground"
|
|
66
|
-
>
|
|
67
|
-
<PaperclipIcon class="size-4" />
|
|
68
|
-
</div>
|
|
69
|
-
</TooltipTrigger>
|
|
70
|
-
<TooltipContent>
|
|
71
|
-
<p>{{ attachmentLabel }}</p>
|
|
72
|
-
</TooltipContent>
|
|
73
|
-
</Tooltip>
|
|
74
|
-
</TooltipProvider>
|
|
75
|
-
<Button
|
|
76
|
-
aria-label="Remove attachment"
|
|
77
|
-
class="size-6 shrink-0 rounded-full p-0 opacity-0 transition-opacity hover:bg-accent group-hover:opacity-100 [&>svg]:size-3"
|
|
78
|
-
type="button"
|
|
79
|
-
variant="ghost"
|
|
80
|
-
@click.stop="emits('remove')"
|
|
81
|
-
>
|
|
82
|
-
<XIcon />
|
|
83
|
-
<span class="sr-only">Remove</span>
|
|
84
|
-
</Button>
|
|
85
|
-
</template>
|
|
86
|
-
</div>
|
|
87
|
-
</template>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { cn } from '@/lib/utils'
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
class?: HTMLAttributes['class']
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const props = defineProps<Props>()
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<div
|
|
14
|
-
v-if="$slots.default"
|
|
15
|
-
:class="
|
|
16
|
-
cn(
|
|
17
|
-
'ml-auto flex w-fit flex-wrap items-start gap-2',
|
|
18
|
-
props.class,
|
|
19
|
-
)
|
|
20
|
-
"
|
|
21
|
-
v-bind="$attrs"
|
|
22
|
-
>
|
|
23
|
-
<slot />
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
|
|
4
|
-
import { computed } from 'vue'
|
|
5
|
-
|
|
6
|
-
interface Props {
|
|
7
|
-
src: string
|
|
8
|
-
name?: string
|
|
9
|
-
class?: HTMLAttributes['class']
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const props = defineProps<Props>()
|
|
13
|
-
|
|
14
|
-
const fallbackText = computed(() => props.name?.slice(0, 2) ?? 'ME')
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<template>
|
|
18
|
-
<Avatar class="size-8 ring-1 ring-border" :class="[props.class]" v-bind="$attrs">
|
|
19
|
-
<AvatarImage alt="" class="mt-0 mb-0" :src="props.src" />
|
|
20
|
-
<AvatarFallback>{{ fallbackText }}</AvatarFallback>
|
|
21
|
-
</Avatar>
|
|
22
|
-
</template>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes, VNode } from 'vue'
|
|
3
|
-
import type { MessageBranchContextType } from './context'
|
|
4
|
-
import { cn } from '@/lib/utils'
|
|
5
|
-
import { provide, readonly, ref } from 'vue'
|
|
6
|
-
import { MessageBranchKey } from './context'
|
|
7
|
-
|
|
8
|
-
interface Props {
|
|
9
|
-
defaultBranch?: number
|
|
10
|
-
class?: HTMLAttributes['class']
|
|
11
|
-
}
|
|
12
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
13
|
-
defaultBranch: 0,
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
const emits = defineEmits<{
|
|
17
|
-
(e: 'branchChange', branchIndex: number): void
|
|
18
|
-
}>()
|
|
19
|
-
|
|
20
|
-
const currentBranch = ref<number>(props.defaultBranch)
|
|
21
|
-
const branches = ref<VNode[]>([])
|
|
22
|
-
const totalBranches = ref<number>(0)
|
|
23
|
-
|
|
24
|
-
function handleBranchChange(index: number) {
|
|
25
|
-
currentBranch.value = index
|
|
26
|
-
emits('branchChange', index)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function goToPrevious() {
|
|
30
|
-
if (totalBranches.value === 0)
|
|
31
|
-
return
|
|
32
|
-
const next = currentBranch.value > 0 ? currentBranch.value - 1 : totalBranches.value - 1
|
|
33
|
-
handleBranchChange(next)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function goToNext() {
|
|
37
|
-
if (totalBranches.value === 0)
|
|
38
|
-
return
|
|
39
|
-
const next = currentBranch.value < totalBranches.value - 1 ? currentBranch.value + 1 : 0
|
|
40
|
-
handleBranchChange(next)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function setBranches(count: number) {
|
|
44
|
-
totalBranches.value = count
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const contextValue: MessageBranchContextType = {
|
|
48
|
-
currentBranch: readonly(currentBranch),
|
|
49
|
-
totalBranches: readonly(totalBranches),
|
|
50
|
-
goToPrevious,
|
|
51
|
-
goToNext,
|
|
52
|
-
branches,
|
|
53
|
-
setBranches,
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
provide(MessageBranchKey, contextValue)
|
|
57
|
-
</script>
|
|
58
|
-
|
|
59
|
-
<template>
|
|
60
|
-
<div
|
|
61
|
-
:class="cn('grid w-full gap-2 [&>div]:pb-0', props.class)"
|
|
62
|
-
v-bind="$attrs"
|
|
63
|
-
>
|
|
64
|
-
<slot />
|
|
65
|
-
</div>
|
|
66
|
-
</template>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { cn } from '@/lib/utils'
|
|
4
|
-
import { computed, Fragment, isVNode, onMounted, useSlots, watch } from 'vue'
|
|
5
|
-
import { useMessageBranchContext } from './context'
|
|
6
|
-
|
|
7
|
-
interface Props {
|
|
8
|
-
class?: HTMLAttributes['class']
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const props = defineProps<Props>()
|
|
12
|
-
const slots = useSlots()
|
|
13
|
-
|
|
14
|
-
const { currentBranch, setBranches } = useMessageBranchContext()
|
|
15
|
-
|
|
16
|
-
const branchVNodes = computed(() => {
|
|
17
|
-
const nodes = slots.default?.() ?? []
|
|
18
|
-
|
|
19
|
-
const extractChildren = (node: any): any[] => {
|
|
20
|
-
if (isVNode(node) && node.type === Fragment) {
|
|
21
|
-
return Array.isArray(node.children) ? node.children : []
|
|
22
|
-
}
|
|
23
|
-
return [node]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const allNodes = nodes.flatMap(extractChildren)
|
|
27
|
-
|
|
28
|
-
return allNodes.filter((node) => {
|
|
29
|
-
if (!isVNode(node))
|
|
30
|
-
return false
|
|
31
|
-
return node.type && typeof node.type === 'object'
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
const sync = () => setBranches(branchVNodes.value.length)
|
|
36
|
-
onMounted(sync)
|
|
37
|
-
watch(branchVNodes, sync)
|
|
38
|
-
|
|
39
|
-
const baseClasses = computed(() => cn('grid gap-2 overflow-hidden [&>div]:pb-0', props.class))
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<template>
|
|
43
|
-
<template v-for="(node, index) in branchVNodes" :key="(node.key as any) ?? index">
|
|
44
|
-
<div
|
|
45
|
-
:class="cn(baseClasses, index === currentBranch ? 'block' : 'hidden')"
|
|
46
|
-
v-bind="$attrs"
|
|
47
|
-
>
|
|
48
|
-
<component :is="node" />
|
|
49
|
-
</div>
|
|
50
|
-
</template>
|
|
51
|
-
</template>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { Button } from '@/components/ui/button'
|
|
3
|
-
import { ChevronRightIcon } from 'lucide-vue-next'
|
|
4
|
-
import { useMessageBranchContext } from './context'
|
|
5
|
-
|
|
6
|
-
const { goToNext, totalBranches } = useMessageBranchContext()
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<Button
|
|
11
|
-
aria-label="Next branch"
|
|
12
|
-
:disabled="totalBranches <= 1"
|
|
13
|
-
size="icon-sm"
|
|
14
|
-
type="button"
|
|
15
|
-
variant="ghost"
|
|
16
|
-
v-bind="$attrs"
|
|
17
|
-
@click="goToNext"
|
|
18
|
-
>
|
|
19
|
-
<slot>
|
|
20
|
-
<ChevronRightIcon :size="14" />
|
|
21
|
-
</slot>
|
|
22
|
-
</Button>
|
|
23
|
-
</template>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { ButtonGroupText } from '@/components/ui/button-group'
|
|
4
|
-
import { cn } from '@/lib/utils'
|
|
5
|
-
import { useMessageBranchContext } from './context'
|
|
6
|
-
|
|
7
|
-
interface Props {
|
|
8
|
-
class?: HTMLAttributes['class']
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const props = defineProps<Props>()
|
|
12
|
-
|
|
13
|
-
const { currentBranch, totalBranches } = useMessageBranchContext()
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<template>
|
|
17
|
-
<ButtonGroupText
|
|
18
|
-
:class="
|
|
19
|
-
cn(
|
|
20
|
-
'border-none bg-transparent text-muted-foreground shadow-none',
|
|
21
|
-
props.class,
|
|
22
|
-
)
|
|
23
|
-
"
|
|
24
|
-
v-bind="$attrs"
|
|
25
|
-
>
|
|
26
|
-
{{ currentBranch + 1 }} of {{ totalBranches }}
|
|
27
|
-
</ButtonGroupText>
|
|
28
|
-
</template>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { Button } from '@/components/ui/button'
|
|
3
|
-
import { ChevronLeftIcon } from 'lucide-vue-next'
|
|
4
|
-
import { useMessageBranchContext } from './context'
|
|
5
|
-
|
|
6
|
-
const { goToPrevious, totalBranches } = useMessageBranchContext()
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<Button
|
|
11
|
-
aria-label="Previous branch"
|
|
12
|
-
:disabled="totalBranches <= 1"
|
|
13
|
-
size="icon-sm"
|
|
14
|
-
type="button"
|
|
15
|
-
variant="ghost"
|
|
16
|
-
v-bind="$attrs"
|
|
17
|
-
@click="goToPrevious"
|
|
18
|
-
>
|
|
19
|
-
<slot>
|
|
20
|
-
<ChevronLeftIcon :size="14" />
|
|
21
|
-
</slot>
|
|
22
|
-
</Button>
|
|
23
|
-
</template>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { UIMessage } from 'ai'
|
|
3
|
-
import { ButtonGroup } from '@/components/ui/button-group'
|
|
4
|
-
import { useMessageBranchContext } from './context'
|
|
5
|
-
|
|
6
|
-
interface Props {
|
|
7
|
-
from: UIMessage['role']
|
|
8
|
-
}
|
|
9
|
-
defineProps<Props>()
|
|
10
|
-
|
|
11
|
-
const { totalBranches } = useMessageBranchContext()
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<template>
|
|
15
|
-
<ButtonGroup
|
|
16
|
-
v-if="totalBranches > 1"
|
|
17
|
-
class="[&>*:not(:first-child)]:rounded-l-md [&>*:not(:last-child)]:rounded-r-md"
|
|
18
|
-
orientation="horizontal"
|
|
19
|
-
v-bind="$attrs"
|
|
20
|
-
>
|
|
21
|
-
<slot />
|
|
22
|
-
</ButtonGroup>
|
|
23
|
-
</template>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { cn } from '@/lib/utils'
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
class?: HTMLAttributes['class']
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const props = defineProps<Props>()
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<div
|
|
14
|
-
:class="
|
|
15
|
-
cn(
|
|
16
|
-
'is-user:dark flex w-fit flex-col gap-2 overflow-hidden text-sm',
|
|
17
|
-
'group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground',
|
|
18
|
-
'group-[.is-assistant]:text-foreground',
|
|
19
|
-
props.class,
|
|
20
|
-
)
|
|
21
|
-
"
|
|
22
|
-
v-bind="$attrs"
|
|
23
|
-
>
|
|
24
|
-
<slot />
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { cn } from '@/lib/utils'
|
|
4
|
-
import { StreamMarkdown } from 'streamdown-vue'
|
|
5
|
-
import { computed, useSlots } from 'vue'
|
|
6
|
-
|
|
7
|
-
interface Props {
|
|
8
|
-
content?: string
|
|
9
|
-
class?: HTMLAttributes['class']
|
|
10
|
-
}
|
|
11
|
-
const props = defineProps<Props>()
|
|
12
|
-
|
|
13
|
-
const slots = useSlots()
|
|
14
|
-
const slotContent = computed<string | undefined>(() => {
|
|
15
|
-
const nodes = slots.default?.() || []
|
|
16
|
-
let text = ''
|
|
17
|
-
for (const node of nodes) {
|
|
18
|
-
if (typeof node.children === 'string')
|
|
19
|
-
text += node.children
|
|
20
|
-
}
|
|
21
|
-
return text || undefined
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
const md = computed(() => (slotContent.value ?? props.content ?? '') as string)
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<template>
|
|
28
|
-
<StreamMarkdown
|
|
29
|
-
:shiki-theme="{
|
|
30
|
-
light: 'github-light',
|
|
31
|
-
dark: 'github-dark',
|
|
32
|
-
}"
|
|
33
|
-
:content="md"
|
|
34
|
-
:class="
|
|
35
|
-
cn(
|
|
36
|
-
'size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0',
|
|
37
|
-
props.class,
|
|
38
|
-
)
|
|
39
|
-
"
|
|
40
|
-
v-bind="$attrs"
|
|
41
|
-
/>
|
|
42
|
-
</template>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { cn } from '@/lib/utils'
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
class?: HTMLAttributes['class']
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const props = defineProps<Props>()
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<div
|
|
14
|
-
:class="
|
|
15
|
-
cn(
|
|
16
|
-
'mt-4 flex w-full items-center justify-between gap-4',
|
|
17
|
-
props.class,
|
|
18
|
-
)
|
|
19
|
-
"
|
|
20
|
-
v-bind="$attrs"
|
|
21
|
-
>
|
|
22
|
-
<slot />
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { InjectionKey, Ref, VNode } from 'vue'
|
|
2
|
-
import { inject } from 'vue'
|
|
3
|
-
|
|
4
|
-
export interface MessageBranchContextType<T = VNode[]> {
|
|
5
|
-
currentBranch: Readonly<Ref<number>>
|
|
6
|
-
totalBranches: Readonly<Ref<number>>
|
|
7
|
-
goToPrevious: () => void
|
|
8
|
-
goToNext: () => void
|
|
9
|
-
branches: Ref<T>
|
|
10
|
-
setBranches: (count: number) => void
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const MessageBranchKey: InjectionKey<MessageBranchContextType>
|
|
14
|
-
= Symbol('MessageBranch')
|
|
15
|
-
|
|
16
|
-
export function useMessageBranchContext(): MessageBranchContextType {
|
|
17
|
-
const ctx = inject(MessageBranchKey)
|
|
18
|
-
if (!ctx) {
|
|
19
|
-
throw new Error('Message Branch components must be used within Message Branch')
|
|
20
|
-
}
|
|
21
|
-
return ctx
|
|
22
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { default as Message } from './Message.vue'
|
|
2
|
-
export { default as MessageAction } from './MessageAction.vue'
|
|
3
|
-
export { default as MessageActions } from './MessageActions.vue'
|
|
4
|
-
export { default as MessageAttachment } from './MessageAttachment.vue'
|
|
5
|
-
export { default as MessageAttachments } from './MessageAttachments.vue'
|
|
6
|
-
export { default as MessageAvatar } from './MessageAvatar.vue'
|
|
7
|
-
export { default as MessageBranch } from './MessageBranch.vue'
|
|
8
|
-
export { default as MessageBranchContent } from './MessageBranchContent.vue'
|
|
9
|
-
export { default as MessageBranchNext } from './MessageBranchNext.vue'
|
|
10
|
-
export { default as MessageBranchPage } from './MessageBranchPage.vue'
|
|
11
|
-
export { default as MessageBranchPrevious } from './MessageBranchPrevious.vue'
|
|
12
|
-
export { default as MessageBranchSelector } from './MessageBranchSelector.vue'
|
|
13
|
-
export { default as MessageContent } from './MessageContent.vue'
|
|
14
|
-
export { default as MessageResponse } from './MessageResponse.vue'
|
|
15
|
-
export { default as MessageToolbar } from './MessageToolbar.vue'
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { Command } from '@/components/ui/command'
|
|
4
|
-
import { DialogContent, DialogTitle } from '@/components/ui/dialog'
|
|
5
|
-
import { cn } from '@/lib/utils'
|
|
6
|
-
|
|
7
|
-
interface Props {
|
|
8
|
-
title?: string
|
|
9
|
-
class?: HTMLAttributes['class']
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
13
|
-
title: 'Model Selector',
|
|
14
|
-
})
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<template>
|
|
18
|
-
<DialogContent
|
|
19
|
-
:class="cn('p-0', props.class)"
|
|
20
|
-
v-bind="$attrs"
|
|
21
|
-
>
|
|
22
|
-
<DialogTitle class="sr-only">
|
|
23
|
-
{{ props.title }}
|
|
24
|
-
</DialogTitle>
|
|
25
|
-
<Command class="**:data-[slot=command-input-wrapper]:h-auto">
|
|
26
|
-
<slot />
|
|
27
|
-
</Command>
|
|
28
|
-
</DialogContent>
|
|
29
|
-
</template>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { CommandInput } from '@/components/ui/command'
|
|
4
|
-
import { cn } from '@/lib/utils'
|
|
5
|
-
|
|
6
|
-
interface Props {
|
|
7
|
-
class?: HTMLAttributes['class']
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const props = defineProps<Props>()
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<template>
|
|
14
|
-
<CommandInput
|
|
15
|
-
:class="cn('h-auto py-3.5', props.class)"
|
|
16
|
-
v-bind="$attrs"
|
|
17
|
-
/>
|
|
18
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { cn } from '@/lib/utils'
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
provider: string
|
|
7
|
-
class?: HTMLAttributes['class']
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const props = defineProps<Props>()
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<template>
|
|
14
|
-
<img
|
|
15
|
-
v-bind="$attrs"
|
|
16
|
-
:alt="`${props.provider} logo`"
|
|
17
|
-
:class="cn('size-3 dark:invert', props.class)"
|
|
18
|
-
height="12"
|
|
19
|
-
:src="`https://models.dev/logos/${props.provider}.svg`"
|
|
20
|
-
width="12"
|
|
21
|
-
>
|
|
22
|
-
</template>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { cn } from '@/lib/utils'
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
class?: HTMLAttributes['class']
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const props = defineProps<Props>()
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<div
|
|
14
|
-
:class="
|
|
15
|
-
cn(
|
|
16
|
-
'-space-x-1 flex shrink-0 items-center [&>img]:rounded-full [&>img]:bg-background [&>img]:p-px [&>img]:ring-1 dark:[&>img]:bg-foreground',
|
|
17
|
-
props.class,
|
|
18
|
-
)
|
|
19
|
-
"
|
|
20
|
-
v-bind="$attrs"
|
|
21
|
-
>
|
|
22
|
-
<slot />
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from 'vue'
|
|
3
|
-
import { cn } from '@/lib/utils'
|
|
4
|
-
|
|
5
|
-
interface Props {
|
|
6
|
-
class?: HTMLAttributes['class']
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const props = defineProps<Props>()
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<span
|
|
14
|
-
:class="cn('flex-1 truncate text-left', props.class)"
|
|
15
|
-
v-bind="$attrs"
|
|
16
|
-
>
|
|
17
|
-
<slot />
|
|
18
|
-
</span>
|
|
19
|
-
</template>
|