laif-ds 0.1.2 → 0.1.3
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/_virtual/jsx-runtime.js +6 -0
- package/dist/_virtual/jsx-runtime2.js +5 -0
- package/dist/_virtual/react-jsx-runtime.development.js +5 -0
- package/dist/_virtual/react-jsx-runtime.production.js +5 -0
- package/dist/components/ui/accordion.js +65 -0
- package/dist/components/ui/alert-dialog.js +147 -0
- package/dist/components/ui/alert.js +67 -0
- package/dist/components/ui/aspect-ratio.js +11 -0
- package/dist/components/ui/async-select.js +172 -0
- package/dist/components/ui/audio-visualizer.js +94 -0
- package/dist/components/ui/avatar.js +54 -0
- package/dist/components/ui/badge.js +41 -0
- package/dist/components/ui/button.js +66 -0
- package/dist/components/ui/calendar.js +62 -0
- package/dist/components/ui/card.js +77 -0
- package/dist/components/ui/carousel.js +178 -0
- package/dist/components/ui/chart.js +216 -0
- package/dist/components/ui/chat-message.js +250 -0
- package/dist/components/ui/chat.js +226 -0
- package/dist/components/ui/checkbox.js +32 -0
- package/dist/components/ui/collapsible.js +35 -0
- package/dist/components/ui/command.js +162 -0
- package/dist/components/ui/context-menu.js +224 -0
- package/dist/components/ui/copy-button.js +45 -0
- package/dist/components/ui/date-picker.js +59 -0
- package/dist/components/ui/dialog.js +123 -0
- package/dist/components/ui/drawer.js +120 -0
- package/dist/components/ui/file-preview.js +120 -0
- package/dist/components/ui/form.js +102 -0
- package/dist/components/ui/hover-card.js +39 -0
- package/dist/components/ui/icon.js +35 -0
- package/dist/components/ui/input-otp.js +62 -0
- package/dist/components/ui/input-selector.js +119 -0
- package/dist/components/ui/input.js +70 -0
- package/dist/components/ui/interrupt-prompt.js +38 -0
- package/dist/components/ui/label.js +23 -0
- package/dist/components/ui/markdown-renderer.js +126 -0
- package/dist/components/ui/menubar.js +252 -0
- package/dist/components/ui/message-input.js +336 -0
- package/dist/components/ui/message-list.js +29 -0
- package/dist/components/ui/multiple-selector.js +350 -0
- package/dist/components/ui/navigation-menu.js +171 -0
- package/dist/components/ui/pagination.js +119 -0
- package/dist/components/ui/popover.js +39 -0
- package/dist/components/ui/progress.js +32 -0
- package/dist/components/ui/prompt-suggestions.js +23 -0
- package/dist/components/ui/radio-group.js +46 -0
- package/dist/components/ui/resizable.js +49 -0
- package/dist/components/ui/scroll-area.js +61 -0
- package/dist/components/ui/select.js +189 -0
- package/dist/components/ui/separator.js +27 -0
- package/dist/components/ui/sheet.js +121 -0
- package/dist/components/ui/sidebar.js +599 -0
- package/dist/components/ui/skeleton.js +16 -0
- package/dist/components/ui/sonner.js +23 -0
- package/dist/components/ui/switch.js +32 -0
- package/dist/components/ui/table.js +115 -0
- package/dist/components/ui/tabs.js +68 -0
- package/dist/components/ui/textarea.js +19 -0
- package/dist/components/ui/toggle-group.js +63 -0
- package/dist/components/ui/toggle.js +44 -0
- package/dist/components/ui/tooltip.js +56 -0
- package/dist/components/ui/typing-indicator.js +13 -0
- package/dist/hooks/use-audio-recording.js +55 -0
- package/dist/hooks/use-auto-scroll.js +37 -0
- package/dist/hooks/use-autosize-textarea.js +22 -0
- package/dist/hooks/use-copy-to-clipboard.js +25 -0
- package/dist/hooks/use-debounce.js +16 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/index.d.ts +1088 -8
- package/dist/index.js +299 -0
- package/dist/lib/audio-utils.js +30 -0
- package/dist/lib/utils.js +9 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
- package/dist/node_modules/react/jsx-runtime.js +11 -0
- package/dist/styles.css +1 -1
- package/package.json +15 -43
- package/dist/abap-BmBUA35e.js +0 -6
- package/dist/actionscript-3-zFUbzQa9.js +0 -6
- package/dist/ada-CBvPkFpZ.js +0 -6
- package/dist/andromeeda-uXNdzNpk.js +0 -4
- package/dist/angular-html-0fTdLuKf.js +0 -32
- package/dist/angular-ts-wkniW60G.js +0 -21
- package/dist/apache-CVNlsSDc.js +0 -6
- package/dist/apex-DFk3KRB1.js +0 -6
- package/dist/apl-TLDHFJX6.js +0 -16
- package/dist/applescript-CYMR_y0g.js +0 -6
- package/dist/ara-4QmU5e04.js +0 -6
- package/dist/asciidoc-v_1bjgUg.js +0 -6
- package/dist/asm-RC0Yh-NZ.js +0 -6
- package/dist/astro-Uf8_VxKJ.js +0 -16
- package/dist/aurora-x-BwoVEUWZ.js +0 -4
- package/dist/awk-gPH8MVMW.js +0 -6
- package/dist/ayu-dark-CxPZkpb2.js +0 -4
- package/dist/ballerina-kvLnRU_e.js +0 -6
- package/dist/bat-BHYy44sT.js +0 -6
- package/dist/beancount-D-MADTs_.js +0 -6
- package/dist/berry-Ci9U0o4h.js +0 -6
- package/dist/bibtex-CX618D15.js +0 -6
- package/dist/bicep-iuYiPopT.js +0 -6
- package/dist/blade-BtR00Gx0.js +0 -18
- package/dist/bsl-BIXPNqL4.js +0 -8
- package/dist/c-DASdrs7p.js +0 -6
- package/dist/cadence-BDALQi26.js +0 -6
- package/dist/cairo-tXZKA2PT.js +0 -8
- package/dist/catppuccin-frappe-BrTOiad2.js +0 -4
- package/dist/catppuccin-latte-D-dc_R4m.js +0 -4
- package/dist/catppuccin-macchiato-DN4jOp0G.js +0 -4
- package/dist/catppuccin-mocha-B8yCE3-3.js +0 -4
- package/dist/clarity-CNgV2Ths.js +0 -6
- package/dist/clojure-CsKKFGwv.js +0 -6
- package/dist/cmake-Dr-A3iJx.js +0 -6
- package/dist/cobol-DMssKNmC.js +0 -10
- package/dist/codeowners-Bt9yU6NX.js +0 -6
- package/dist/codeql-DBNTqJi1.js +0 -6
- package/dist/coffee-D_GzM8k1.js +0 -8
- package/dist/common-lisp-r7ZEOG7T.js +0 -6
- package/dist/components/atoms/index.d.ts +0 -20
- package/dist/components/index.d.ts +0 -3
- package/dist/components/molecules/index.d.ts +0 -29
- package/dist/components/organisms/index.d.ts +0 -14
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/alert-dialog.d.ts +0 -14
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/async-select.d.ts +0 -54
- package/dist/components/ui/audio-visualizer.d.ts +0 -7
- package/dist/components/ui/avatar.d.ts +0 -6
- package/dist/components/ui/badge.d.ts +0 -9
- package/dist/components/ui/button.d.ts +0 -14
- package/dist/components/ui/calendar.d.ts +0 -4
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/chart.d.ts +0 -40
- package/dist/components/ui/chat-message.d.ts +0 -62
- package/dist/components/ui/chat.d.ts +0 -53
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/command.d.ts +0 -16
- package/dist/components/ui/context-menu.d.ts +0 -25
- package/dist/components/ui/copy-button.d.ts +0 -6
- package/dist/components/ui/date-picker.d.ts +0 -11
- package/dist/components/ui/dialog.d.ts +0 -13
- package/dist/components/ui/drawer.d.ts +0 -13
- package/dist/components/ui/file-preview.d.ts +0 -7
- package/dist/components/ui/form.d.ts +0 -24
- package/dist/components/ui/hover-card.d.ts +0 -6
- package/dist/components/ui/icon.d.ts +0 -33
- package/dist/components/ui/input-otp.d.ts +0 -11
- package/dist/components/ui/input-selector.d.ts +0 -14
- package/dist/components/ui/input.d.ts +0 -14
- package/dist/components/ui/interrupt-prompt.d.ts +0 -6
- package/dist/components/ui/label.d.ts +0 -4
- package/dist/components/ui/markdown-renderer.d.ts +0 -5
- package/dist/components/ui/menubar.d.ts +0 -26
- package/dist/components/ui/message-input.d.ts +0 -23
- package/dist/components/ui/message-list.d.ts +0 -10
- package/dist/components/ui/multiple-selector.d.ts +0 -75
- package/dist/components/ui/navigation-menu.d.ts +0 -14
- package/dist/components/ui/pagination.d.ts +0 -13
- package/dist/components/ui/popover.d.ts +0 -7
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/prompt-suggestions.d.ts +0 -10
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/resizable.d.ts +0 -8
- package/dist/components/ui/scroll-area.d.ts +0 -5
- package/dist/components/ui/select.d.ts +0 -21
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/components/ui/sheet.d.ts +0 -13
- package/dist/components/ui/sidebar.d.ts +0 -69
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/sonner.d.ts +0 -3
- package/dist/components/ui/switch.d.ts +0 -4
- package/dist/components/ui/table.d.ts +0 -10
- package/dist/components/ui/tabs.d.ts +0 -7
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/toggle-group.d.ts +0 -7
- package/dist/components/ui/toggle.d.ts +0 -9
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/components/ui/typing-indicator.d.ts +0 -1
- package/dist/coq-CB6Pv_W9.js +0 -6
- package/dist/cpp-CJF2i3ah.js +0 -18
- package/dist/crystal-BKWnaU3g.js +0 -18
- package/dist/csharp-CYWRhZ2R.js +0 -6
- package/dist/css-D1aVdRIU.js +0 -6
- package/dist/csv-DvCncUGQ.js +0 -6
- package/dist/cue-BXMrmvay.js +0 -6
- package/dist/cypher-DTm5zNR1.js +0 -6
- package/dist/d-D6ZXmn3l.js +0 -6
- package/dist/dark-plus-pUHDTVV0.js +0 -4
- package/dist/dart-Dz59Is3F.js +0 -6
- package/dist/dax-DTVGzydb.js +0 -6
- package/dist/desktop-Db9vb-dl.js +0 -6
- package/dist/diff-XmNrvgM1.js +0 -6
- package/dist/docker-DWH2onkn.js +0 -6
- package/dist/dotenv-4337wvzu.js +0 -6
- package/dist/dracula-BtZx2Kac.js +0 -4
- package/dist/dracula-soft-BKa-aqBv.js +0 -4
- package/dist/dream-maker-CvvfrJSx.js +0 -6
- package/dist/edge-CgxR-qhM.js +0 -12
- package/dist/elixir-DZkeSPwW.js +0 -8
- package/dist/elm-BKuV1HE1.js +0 -8
- package/dist/emacs-lisp-BAefI874.js +0 -6
- package/dist/erb-BLwkpXUJ.js +0 -10
- package/dist/erlang-CmIiwF3I.js +0 -6
- package/dist/everforest-dark-DMCBqXCK.js +0 -4
- package/dist/everforest-light-BbXl82Em.js +0 -4
- package/dist/fennel-DNqkz9pE.js +0 -6
- package/dist/fish-DIm72t2T.js +0 -6
- package/dist/fluent-BapTxJsC.js +0 -6
- package/dist/fortran-fixed-form-s9Hnb3av.js +0 -8
- package/dist/fortran-free-form-CNDsBFUj.js +0 -6
- package/dist/fsharp-Cv0x43wb.js +0 -8
- package/dist/gdresource-CMcKXvgJ.js +0 -10
- package/dist/gdscript-D7aheHm-.js +0 -6
- package/dist/gdshader-BGJEsM2Z.js +0 -6
- package/dist/genie-C9gPjc6J.js +0 -6
- package/dist/gherkin-bka1Exbx.js +0 -6
- package/dist/git-commit-BspYIY3P.js +0 -8
- package/dist/git-rebase--zLBTjUa.js +0 -8
- package/dist/github-dark-DenFmJkN.js +0 -4
- package/dist/github-dark-default-BJPUVz4H.js +0 -4
- package/dist/github-dark-dimmed-DUshB20C.js +0 -4
- package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
- package/dist/github-light-JYsPkUQd.js +0 -4
- package/dist/github-light-default-D99KPAby.js +0 -4
- package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
- package/dist/gleam-B4k9YFGD.js +0 -6
- package/dist/glimmer-js-DhY9umHJ.js +0 -14
- package/dist/glimmer-ts-CCrHcYH5.js +0 -14
- package/dist/glsl-XLGYNq5B.js +0 -8
- package/dist/gnuplot-DnWoRZt-.js +0 -6
- package/dist/go-BErP6iv1.js +0 -6
- package/dist/graphql-DWpQF4JI.js +0 -14
- package/dist/groovy-IWs5-NIO.js +0 -6
- package/dist/hack-CQrV-ytR.js +0 -10
- package/dist/haml-CMN0hQaL.js +0 -10
- package/dist/handlebars-Cc-7fXX5.js +0 -14
- package/dist/haskell-CtlGos0K.js +0 -6
- package/dist/haxe-CZZ33vZw.js +0 -6
- package/dist/hcl-6hOg9WP4.js +0 -6
- package/dist/hjson-CgwED-oz.js +0 -6
- package/dist/hlsl-3-lv4gi7.js +0 -6
- package/dist/hooks/index.d.ts +0 -6
- package/dist/hooks/use-audio-recording.d.ts +0 -14
- package/dist/hooks/use-auto-scroll.d.ts +0 -7
- package/dist/hooks/use-autosize-textarea.d.ts +0 -8
- package/dist/hooks/use-copy-to-clipboard.d.ts +0 -9
- package/dist/hooks/use-debounce.d.ts +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/houston-BDYrDoDW.js +0 -4
- package/dist/html-B0P_v3yU.js +0 -10
- package/dist/html-derivative-D59SHfh8.js +0 -8
- package/dist/http-Dcjm_K1m.js +0 -14
- package/dist/hxml-BNKImryz.js +0 -8
- package/dist/hy-C2xHhR6I.js +0 -6
- package/dist/imba-Drd0AMDo.js +0 -8
- package/dist/index-B3zhPw_i.js +0 -6376
- package/dist/index-CX8WDA1V.js +0 -71798
- package/dist/ini-BUcvsX-U.js +0 -6
- package/dist/java-B7odJ7Ap.js +0 -6
- package/dist/javascript-fa8UlHZE.js +0 -6
- package/dist/jinja-CCSYduCH.js +0 -11
- package/dist/jison-BygvlveW.js +0 -8
- package/dist/json-71t8ZF9g.js +0 -6
- package/dist/json5-Z7F6rA6a.js +0 -6
- package/dist/jsonc-Dphhs4m2.js +0 -6
- package/dist/jsonl-D9jj92Gg.js +0 -6
- package/dist/jsonnet-DEQ7IUoJ.js +0 -6
- package/dist/jssm-j74e88UX.js +0 -6
- package/dist/jsx-Bkesy5tT.js +0 -6
- package/dist/julia-CiahampL.js +0 -16
- package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
- package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
- package/dist/kanagawa-wave-CQwozSzG.js +0 -4
- package/dist/kotlin-DCgZY7Ii.js +0 -6
- package/dist/kusto-Cw029H-v.js +0 -6
- package/dist/laif-ds.es.js +0 -238
- package/dist/laif-ds.umd.js +0 -8032
- package/dist/laserwave-6a00oqik.js +0 -4
- package/dist/latex-LfGCYGw5.js +0 -8
- package/dist/lean-CYSet4vs.js +0 -6
- package/dist/less-DQA4v-Nm.js +0 -6
- package/dist/light-plus-CZuVqSLX.js +0 -4
- package/dist/liquid-CvufO3kO.js +0 -14
- package/dist/log-D2eRfqDn.js +0 -6
- package/dist/logo-QEAtGWZ9.js +0 -6
- package/dist/lua-BVfhNLDr.js +0 -8
- package/dist/luau-BjYGiqID.js +0 -6
- package/dist/make-BjuHP00g.js +0 -6
- package/dist/markdown-B6guhLWd.js +0 -6
- package/dist/marko-CHlMS8w5.js +0 -14
- package/dist/material-theme-D6KBX41T.js +0 -4
- package/dist/material-theme-darker-CkRroheE.js +0 -4
- package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
- package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
- package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
- package/dist/matlab-BpQlIJiw.js +0 -6
- package/dist/mdc-4K6B6lHG.js +0 -12
- package/dist/mdx-DIoECIFU.js +0 -6
- package/dist/mermaid-BZ7WHNIe.js +0 -6
- package/dist/min-dark-C7ak0t6c.js +0 -4
- package/dist/min-light-CKFxVcPp.js +0 -4
- package/dist/mipsasm-DusDYkFc.js +0 -6
- package/dist/mojo-CY9jaezJ.js +0 -6
- package/dist/monokai-C1KBYcO0.js +0 -4
- package/dist/move-ChphFumd.js +0 -6
- package/dist/narrat-Dz4d7OmN.js +0 -6
- package/dist/nextflow-DW0Yq9a2.js +0 -6
- package/dist/nginx-Can2eAjw.js +0 -8
- package/dist/night-owl-Bm2rzalh.js +0 -4
- package/dist/nim-B3r2RtQZ.js +0 -20
- package/dist/nix-Cg5uV_xg.js +0 -6
- package/dist/nord-CC5OiUXg.js +0 -4
- package/dist/nushell-BfRnzRWn.js +0 -6
- package/dist/objective-c-BGg9R27G.js +0 -6
- package/dist/objective-cpp-CJ3y3V_5.js +0 -6
- package/dist/ocaml-BZLsfx_o.js +0 -6
- package/dist/one-dark-pro-D7-kP8fv.js +0 -4
- package/dist/one-light-D9sNaUtq.js +0 -4
- package/dist/pascal-l2bqd7Dz.js +0 -6
- package/dist/perl-DaMQyPwp.js +0 -16
- package/dist/php-BL3EfPBi.js +0 -18
- package/dist/plastic-CSTz3KZp.js +0 -4
- package/dist/plsql-oVq_K_wH.js +0 -6
- package/dist/po-5jaeIyVd.js +0 -6
- package/dist/poimandres-C-VADXHD.js +0 -4
- package/dist/polar-wcLp8ci7.js +0 -6
- package/dist/postcss-BZ3MNRIJ.js +0 -6
- package/dist/powerquery-CgRa2XRw.js +0 -6
- package/dist/powershell-Diwyv8Eh.js +0 -6
- package/dist/prisma-COL_v1x4.js +0 -6
- package/dist/prolog-CuvJOxqT.js +0 -6
- package/dist/proto-o9HLmF90.js +0 -6
- package/dist/pug-HKe4Luo3.js +0 -12
- package/dist/puppet-wpGOnQp5.js +0 -6
- package/dist/purescript-B_1NgE2N.js +0 -6
- package/dist/python-xYxLFJY-.js +0 -6
- package/dist/qml-FlMIyjU9.js +0 -8
- package/dist/qmldir-BInDYbpo.js +0 -6
- package/dist/qss-D-h4NdUG.js +0 -6
- package/dist/r-F-9I-ITZ.js +0 -6
- package/dist/racket-BoD1TBFT.js +0 -6
- package/dist/raku-IaYcw19m.js +0 -6
- package/dist/razor-CeqqNtyB.js +0 -10
- package/dist/red-7y8PH7HH.js +0 -4
- package/dist/reg-CMUdAgIP.js +0 -6
- package/dist/regexp-GiFkbxS-.js +0 -6
- package/dist/rel-BaRn3QX7.js +0 -6
- package/dist/riscv-B9V3SsvW.js +0 -6
- package/dist/rose-pine-DhT-HZE9.js +0 -4
- package/dist/rose-pine-dawn-DiCjL2i4.js +0 -4
- package/dist/rose-pine-moon-BNmGHlcn.js +0 -4
- package/dist/rst-C3D6-dqL.js +0 -22
- package/dist/ruby-DcPLUUK3.js +0 -30
- package/dist/rust-Pc7DCsZD.js +0 -6
- package/dist/sas-tDSYjXcL.js +0 -8
- package/dist/sass-iCyS6eP9.js +0 -6
- package/dist/scala-Cly-fENF.js +0 -6
- package/dist/scheme-Zi24oEYu.js +0 -6
- package/dist/scss-DhHc4lxB.js +0 -8
- package/dist/sdbl-BBamrXFL.js +0 -6
- package/dist/shaderlab-CvqEIoL0.js +0 -8
- package/dist/shellscript-Dn0-btNd.js +0 -6
- package/dist/shellsession-8OLo3sB6.js +0 -8
- package/dist/slack-dark-i7wN4OET.js +0 -4
- package/dist/slack-ochin-ndHf0LoP.js +0 -4
- package/dist/smalltalk-Cns31tKw.js +0 -6
- package/dist/snazzy-light-BlSJXAu4.js +0 -4
- package/dist/solarized-dark-UTmkh7lw.js +0 -4
- package/dist/solarized-light-BheCkDPT.js +0 -4
- package/dist/solidity-BG_k8fA_.js +0 -6
- package/dist/soy-EwHMOVPj.js +0 -8
- package/dist/sparql-DhuelBut.js +0 -8
- package/dist/splunk-CTqDjQdo.js +0 -6
- package/dist/sql-DCkt643-.js +0 -6
- package/dist/ssh-config-DHHGll-v.js +0 -6
- package/dist/stata-Dok6hMw0.js +0 -8
- package/dist/stylus-n_9f0QQ5.js +0 -6
- package/dist/svelte-01qw6Rxm.js +0 -14
- package/dist/swift-BAWqNR8A.js +0 -6
- package/dist/synthwave-84-NU3C_KFZ.js +0 -4
- package/dist/system-verilog-Cui-g-ut.js +0 -6
- package/dist/systemd-CsKYQIQK.js +0 -6
- package/dist/talonscript-D2dGh8FO.js +0 -6
- package/dist/tasl-D3W8HMV6.js +0 -6
- package/dist/tcl-2y0Fuc4S.js +0 -6
- package/dist/templ-Hmy8U0DD.js +0 -12
- package/dist/terraform-BGW6Oerf.js +0 -6
- package/dist/tex-mHs7a43s.js +0 -8
- package/dist/tokyo-night-LhP3hHhi.js +0 -4
- package/dist/toml-CQSfOn0e.js +0 -6
- package/dist/ts-tags-DYZ4SGcN.js +0 -41
- package/dist/tsv-BtvSkaG0.js +0 -6
- package/dist/tsx-DiGsgWT8.js +0 -6
- package/dist/turtle-BJ2wmjPc.js +0 -6
- package/dist/twig-BmytkGQV.js +0 -18
- package/dist/typescript-buWNZFwO.js +0 -6
- package/dist/typespec-bLbdsxJL.js +0 -6
- package/dist/typst-Y9_SmXTs.js +0 -6
- package/dist/v-wa8Orrdd.js +0 -6
- package/dist/vala-DRdriFr_.js +0 -6
- package/dist/vb-E2_-jk4M.js +0 -6
- package/dist/verilog-B1iBoR5_.js +0 -6
- package/dist/vesper-CJsaOsSM.js +0 -4
- package/dist/vhdl-CRVaAhXk.js +0 -6
- package/dist/viml-B-zWOd7Z.js +0 -6
- package/dist/vitesse-black-BoGvW84i.js +0 -4
- package/dist/vitesse-dark-Cym-eLtO.js +0 -4
- package/dist/vitesse-light-CcmG315c.js +0 -4
- package/dist/vue-Bl1uVNsA.js +0 -31
- package/dist/vue-html-DHr5wjBG.js +0 -10
- package/dist/vyper-DWutKXpa.js +0 -6
- package/dist/wasm-Bv5f0gKv.js +0 -6
- package/dist/wasm-DQxwEHae.js +0 -7
- package/dist/wenyan-BMYnfus1.js +0 -6
- package/dist/wgsl-DnPoPGDU.js +0 -6
- package/dist/wikitext-CntM04PE.js +0 -6
- package/dist/wolfram-Ws5qPlX9.js +0 -6
- package/dist/xml-ChBsf5uy.js +0 -8
- package/dist/xsl-BefjlXrd.js +0 -8
- package/dist/yaml-Bbg74JKr.js +0 -6
- package/dist/zenscript-C0RKE4nU.js +0 -6
- package/dist/zig-D6SXBGNm.js +0 -6
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { useMemo as N, Suspense as p, useState as v } from "react";
|
|
4
|
+
import { cva as y } from "class-variance-authority";
|
|
5
|
+
import { motion as w } from "framer-motion";
|
|
6
|
+
import { ChevronRight as C, Ban as k, Code2 as U, Terminal as S, Loader2 as T } from "lucide-react";
|
|
7
|
+
import { cn as a } from "../../lib/utils.js";
|
|
8
|
+
import { Collapsible as O, CollapsibleTrigger as R, CollapsibleContent as B } from "./collapsible.js";
|
|
9
|
+
import { FilePreview as M } from "./file-preview.js";
|
|
10
|
+
import { MarkdownRenderer as g } from "./markdown-renderer.js";
|
|
11
|
+
const h = y(
|
|
12
|
+
"group/message relative break-words rounded-lg p-3 text-sm sm:max-w-[70%]",
|
|
13
|
+
{
|
|
14
|
+
variants: {
|
|
15
|
+
isUser: {
|
|
16
|
+
true: "bg-primary text-primary-foreground",
|
|
17
|
+
false: "bg-muted text-foreground"
|
|
18
|
+
},
|
|
19
|
+
animation: {
|
|
20
|
+
none: "",
|
|
21
|
+
slide: "duration-300 animate-in fade-in-0",
|
|
22
|
+
scale: "duration-300 animate-in fade-in-0 zoom-in-75",
|
|
23
|
+
fade: "duration-500 animate-in fade-in-0"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
compoundVariants: [
|
|
27
|
+
{
|
|
28
|
+
isUser: !0,
|
|
29
|
+
animation: "slide",
|
|
30
|
+
class: "slide-in-from-right"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
isUser: !1,
|
|
34
|
+
animation: "slide",
|
|
35
|
+
class: "slide-in-from-left"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
isUser: !0,
|
|
39
|
+
animation: "scale",
|
|
40
|
+
class: "origin-bottom-right"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
isUser: !1,
|
|
44
|
+
animation: "scale",
|
|
45
|
+
class: "origin-bottom-left"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
), K = ({
|
|
50
|
+
role: t,
|
|
51
|
+
content: r,
|
|
52
|
+
createdAt: s,
|
|
53
|
+
showTimeStamp: d = !1,
|
|
54
|
+
animation: o = "scale",
|
|
55
|
+
actions: m,
|
|
56
|
+
experimental_attachments: c,
|
|
57
|
+
toolInvocations: u,
|
|
58
|
+
parts: x
|
|
59
|
+
}) => {
|
|
60
|
+
const j = N(() => c == null ? void 0 : c.map((l) => {
|
|
61
|
+
const i = $(l.url);
|
|
62
|
+
return new File([i], l.name ?? "Unknown");
|
|
63
|
+
}), [c]), n = t === "user", f = s == null ? void 0 : s.toLocaleTimeString("en-US", {
|
|
64
|
+
hour: "2-digit",
|
|
65
|
+
minute: "2-digit"
|
|
66
|
+
});
|
|
67
|
+
return n ? /* @__PURE__ */ e.jsxs(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: a("flex flex-col", n ? "items-end" : "items-start"),
|
|
71
|
+
children: [
|
|
72
|
+
j ? /* @__PURE__ */ e.jsx("div", { className: "mb-1 flex flex-wrap gap-2", children: j.map((l, i) => /* @__PURE__ */ e.jsx(M, { file: l }, i)) }) : null,
|
|
73
|
+
/* @__PURE__ */ e.jsx("div", { className: a(h({ isUser: n, animation: o })), children: /* @__PURE__ */ e.jsx(p, { fallback: /* @__PURE__ */ e.jsx("div", { className: "text-muted-foreground", children: "Caricamento..." }), children: /* @__PURE__ */ e.jsx(g, { children: r }) }) }),
|
|
74
|
+
d && s ? /* @__PURE__ */ e.jsx(
|
|
75
|
+
"time",
|
|
76
|
+
{
|
|
77
|
+
dateTime: s.toISOString(),
|
|
78
|
+
className: a(
|
|
79
|
+
"mt-1 block px-1 text-xs opacity-50",
|
|
80
|
+
o !== "none" && "duration-500 animate-in fade-in-0"
|
|
81
|
+
),
|
|
82
|
+
children: f
|
|
83
|
+
}
|
|
84
|
+
) : null
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
) : x && x.length > 0 ? x.map((l, i) => l.type === "text" ? /* @__PURE__ */ e.jsxs(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: a(
|
|
91
|
+
"flex flex-col",
|
|
92
|
+
n ? "items-end" : "items-start"
|
|
93
|
+
),
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ e.jsxs("div", { className: a(h({ isUser: n, animation: o })), children: [
|
|
96
|
+
/* @__PURE__ */ e.jsx(p, { fallback: /* @__PURE__ */ e.jsx("div", { className: "text-muted-foreground", children: "Caricamento..." }), children: /* @__PURE__ */ e.jsx(g, { children: l.text }) }),
|
|
97
|
+
m ? /* @__PURE__ */ e.jsx("div", { className: "absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-background p-1 text-foreground opacity-0 transition-opacity group-hover/message:opacity-100", children: m }) : null
|
|
98
|
+
] }),
|
|
99
|
+
d && s ? /* @__PURE__ */ e.jsx(
|
|
100
|
+
"time",
|
|
101
|
+
{
|
|
102
|
+
dateTime: s.toISOString(),
|
|
103
|
+
className: a(
|
|
104
|
+
"mt-1 block px-1 text-xs opacity-50",
|
|
105
|
+
o !== "none" && "duration-500 animate-in fade-in-0"
|
|
106
|
+
),
|
|
107
|
+
children: f
|
|
108
|
+
}
|
|
109
|
+
) : null
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
`text-${i}`
|
|
113
|
+
) : l.type === "reasoning" ? /* @__PURE__ */ e.jsx(F, { part: l }, `reasoning-${i}`) : l.type === "tool-invocation" ? /* @__PURE__ */ e.jsx(
|
|
114
|
+
b,
|
|
115
|
+
{
|
|
116
|
+
toolInvocations: [l.toolInvocation]
|
|
117
|
+
},
|
|
118
|
+
`tool-${i}`
|
|
119
|
+
) : null) : u && u.length > 0 ? /* @__PURE__ */ e.jsx(b, { toolInvocations: u }) : /* @__PURE__ */ e.jsxs("div", { className: a("flex flex-col", n ? "items-end" : "items-start"), children: [
|
|
120
|
+
/* @__PURE__ */ e.jsxs("div", { className: a(h({ isUser: n, animation: o })), children: [
|
|
121
|
+
/* @__PURE__ */ e.jsx(p, { fallback: /* @__PURE__ */ e.jsx("div", { className: "text-muted-foreground", children: "Caricamento..." }), children: /* @__PURE__ */ e.jsx(g, { children: r }) }),
|
|
122
|
+
m ? /* @__PURE__ */ e.jsx("div", { className: "absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-background p-1 text-foreground opacity-0 transition-opacity group-hover/message:opacity-100", children: m }) : null
|
|
123
|
+
] }),
|
|
124
|
+
d && s ? /* @__PURE__ */ e.jsx(
|
|
125
|
+
"time",
|
|
126
|
+
{
|
|
127
|
+
dateTime: s.toISOString(),
|
|
128
|
+
className: a(
|
|
129
|
+
"mt-1 block px-1 text-xs opacity-50",
|
|
130
|
+
o !== "none" && "duration-500 animate-in fade-in-0"
|
|
131
|
+
),
|
|
132
|
+
children: f
|
|
133
|
+
}
|
|
134
|
+
) : null
|
|
135
|
+
] });
|
|
136
|
+
};
|
|
137
|
+
function $(t) {
|
|
138
|
+
const r = t.split(",")[1], s = Buffer.from(r, "base64");
|
|
139
|
+
return new Uint8Array(s);
|
|
140
|
+
}
|
|
141
|
+
const F = ({ part: t }) => {
|
|
142
|
+
const [r, s] = v(!1);
|
|
143
|
+
return /* @__PURE__ */ e.jsx("div", { className: "mb-2 flex flex-col items-start sm:max-w-[70%]", children: /* @__PURE__ */ e.jsxs(
|
|
144
|
+
O,
|
|
145
|
+
{
|
|
146
|
+
open: r,
|
|
147
|
+
onOpenChange: s,
|
|
148
|
+
className: "group w-full overflow-hidden rounded-lg border bg-muted/50",
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex items-center p-2", children: /* @__PURE__ */ e.jsx(R, { asChild: !0, children: /* @__PURE__ */ e.jsxs("button", { className: "flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground", children: [
|
|
151
|
+
/* @__PURE__ */ e.jsx(C, { className: "h-4 w-4 transition-transform group-data-[state=open]:rotate-90" }),
|
|
152
|
+
/* @__PURE__ */ e.jsx("span", { children: "Thinking" })
|
|
153
|
+
] }) }) }),
|
|
154
|
+
/* @__PURE__ */ e.jsx(B, { forceMount: !0, children: /* @__PURE__ */ e.jsx(
|
|
155
|
+
w.div,
|
|
156
|
+
{
|
|
157
|
+
initial: !1,
|
|
158
|
+
animate: r ? "open" : "closed",
|
|
159
|
+
variants: {
|
|
160
|
+
open: { height: "auto", opacity: 1 },
|
|
161
|
+
closed: { height: 0, opacity: 0 }
|
|
162
|
+
},
|
|
163
|
+
transition: { duration: 0.3, ease: [0.04, 0.62, 0.23, 0.98] },
|
|
164
|
+
className: "border-t",
|
|
165
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "p-2", children: /* @__PURE__ */ e.jsx("div", { className: "whitespace-pre-wrap text-xs", children: t.reasoning }) })
|
|
166
|
+
}
|
|
167
|
+
) })
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
) });
|
|
171
|
+
};
|
|
172
|
+
function b({
|
|
173
|
+
toolInvocations: t
|
|
174
|
+
}) {
|
|
175
|
+
return t != null && t.length ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-start gap-2", children: t.map((r, s) => {
|
|
176
|
+
if (r.state === "result" && r.result.__cancelled === !0)
|
|
177
|
+
return /* @__PURE__ */ e.jsxs(
|
|
178
|
+
"div",
|
|
179
|
+
{
|
|
180
|
+
className: "flex items-center gap-2 rounded-lg border bg-muted/50 px-3 py-2 text-sm text-muted-foreground",
|
|
181
|
+
children: [
|
|
182
|
+
/* @__PURE__ */ e.jsx(k, { className: "h-4 w-4" }),
|
|
183
|
+
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
184
|
+
"Cancelled",
|
|
185
|
+
" ",
|
|
186
|
+
/* @__PURE__ */ e.jsxs("span", { className: "font-mono", children: [
|
|
187
|
+
"`",
|
|
188
|
+
r.toolName,
|
|
189
|
+
"`"
|
|
190
|
+
] })
|
|
191
|
+
] })
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
s
|
|
195
|
+
);
|
|
196
|
+
switch (r.state) {
|
|
197
|
+
case "partial-call":
|
|
198
|
+
case "call":
|
|
199
|
+
return /* @__PURE__ */ e.jsxs(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
className: "flex items-center gap-2 rounded-lg border bg-muted/50 px-3 py-2 text-sm text-muted-foreground",
|
|
203
|
+
children: [
|
|
204
|
+
/* @__PURE__ */ e.jsx(S, { className: "h-4 w-4" }),
|
|
205
|
+
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
206
|
+
"Calling",
|
|
207
|
+
" ",
|
|
208
|
+
/* @__PURE__ */ e.jsxs("span", { className: "font-mono", children: [
|
|
209
|
+
"`",
|
|
210
|
+
r.toolName,
|
|
211
|
+
"`"
|
|
212
|
+
] }),
|
|
213
|
+
"..."
|
|
214
|
+
] }),
|
|
215
|
+
/* @__PURE__ */ e.jsx(T, { className: "h-3 w-3 animate-spin" })
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
s
|
|
219
|
+
);
|
|
220
|
+
case "result":
|
|
221
|
+
return /* @__PURE__ */ e.jsxs(
|
|
222
|
+
"div",
|
|
223
|
+
{
|
|
224
|
+
className: "flex flex-col gap-1.5 rounded-lg border bg-muted/50 px-3 py-2 text-sm",
|
|
225
|
+
children: [
|
|
226
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
227
|
+
/* @__PURE__ */ e.jsx(U, { className: "h-4 w-4" }),
|
|
228
|
+
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
229
|
+
"Result from",
|
|
230
|
+
" ",
|
|
231
|
+
/* @__PURE__ */ e.jsxs("span", { className: "font-mono", children: [
|
|
232
|
+
"`",
|
|
233
|
+
r.toolName,
|
|
234
|
+
"`"
|
|
235
|
+
] })
|
|
236
|
+
] })
|
|
237
|
+
] }),
|
|
238
|
+
/* @__PURE__ */ e.jsx("pre", { className: "overflow-x-auto whitespace-pre-wrap text-foreground", children: JSON.stringify(r.result, null, 2) })
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
s
|
|
242
|
+
);
|
|
243
|
+
default:
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
246
|
+
}) }) : null;
|
|
247
|
+
}
|
|
248
|
+
export {
|
|
249
|
+
K as ChatMessage
|
|
250
|
+
};
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { forwardRef as T, useRef as M, useCallback as N, useState as _ } from "react";
|
|
4
|
+
import { ThumbsUp as L, ThumbsDown as z, ArrowDown as B } from "lucide-react";
|
|
5
|
+
import { cn as D } from "../../lib/utils.js";
|
|
6
|
+
import { useAutoScroll as P } from "../../hooks/use-auto-scroll.js";
|
|
7
|
+
import { Button as C } from "./button.js";
|
|
8
|
+
import { CopyButton as b } from "./copy-button.js";
|
|
9
|
+
import { MessageInput as E } from "./message-input.js";
|
|
10
|
+
import { MessageList as U } from "./message-list.js";
|
|
11
|
+
import { PromptSuggestions as O } from "./prompt-suggestions.js";
|
|
12
|
+
function q({
|
|
13
|
+
messages: e,
|
|
14
|
+
handleSubmit: n,
|
|
15
|
+
input: i,
|
|
16
|
+
handleInputChange: f,
|
|
17
|
+
stop: l,
|
|
18
|
+
isGenerating: c,
|
|
19
|
+
append: u,
|
|
20
|
+
suggestions: d,
|
|
21
|
+
className: p,
|
|
22
|
+
onRateResponse: x,
|
|
23
|
+
setMessages: j,
|
|
24
|
+
transcribeAudio: S
|
|
25
|
+
}) {
|
|
26
|
+
const w = e.at(-1), k = e.length === 0, y = (w == null ? void 0 : w.role) === "user", v = M(e);
|
|
27
|
+
v.current = e;
|
|
28
|
+
const A = N(() => {
|
|
29
|
+
if (l == null || l(), !j) return;
|
|
30
|
+
const s = [...v.current], r = s.findLast(
|
|
31
|
+
(a) => a.role === "assistant"
|
|
32
|
+
);
|
|
33
|
+
if (!r) return;
|
|
34
|
+
let m = !1, h = { ...r };
|
|
35
|
+
if (r.toolInvocations) {
|
|
36
|
+
const a = r.toolInvocations.map(
|
|
37
|
+
(o) => o.state === "call" ? (m = !0, {
|
|
38
|
+
...o,
|
|
39
|
+
state: "result",
|
|
40
|
+
result: {
|
|
41
|
+
content: "Tool execution was cancelled",
|
|
42
|
+
__cancelled: !0
|
|
43
|
+
// Special marker to indicate cancellation
|
|
44
|
+
}
|
|
45
|
+
}) : o
|
|
46
|
+
);
|
|
47
|
+
m && (h = {
|
|
48
|
+
...h,
|
|
49
|
+
toolInvocations: a
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (r.parts && r.parts.length > 0) {
|
|
53
|
+
const a = r.parts.map((o) => o.type === "tool-invocation" && o.toolInvocation && o.toolInvocation.state === "call" ? (m = !0, {
|
|
54
|
+
...o,
|
|
55
|
+
toolInvocation: {
|
|
56
|
+
...o.toolInvocation,
|
|
57
|
+
state: "result",
|
|
58
|
+
result: {
|
|
59
|
+
content: "Tool execution was cancelled",
|
|
60
|
+
__cancelled: !0
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}) : o);
|
|
64
|
+
m && (h = {
|
|
65
|
+
...h,
|
|
66
|
+
parts: a
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
if (m) {
|
|
70
|
+
const a = s.findIndex(
|
|
71
|
+
(o) => o.id === r.id
|
|
72
|
+
);
|
|
73
|
+
a !== -1 && (s[a] = h, j(s));
|
|
74
|
+
}
|
|
75
|
+
}, [l, j, v]), F = N(
|
|
76
|
+
(s) => ({
|
|
77
|
+
actions: x ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
78
|
+
/* @__PURE__ */ t.jsx("div", { className: "border-r pr-1", children: /* @__PURE__ */ t.jsx(
|
|
79
|
+
b,
|
|
80
|
+
{
|
|
81
|
+
content: s.content,
|
|
82
|
+
copyMessage: "Copied response to clipboard!"
|
|
83
|
+
}
|
|
84
|
+
) }),
|
|
85
|
+
/* @__PURE__ */ t.jsx(
|
|
86
|
+
C,
|
|
87
|
+
{
|
|
88
|
+
size: "icon",
|
|
89
|
+
variant: "ghost",
|
|
90
|
+
className: "h-6 w-6",
|
|
91
|
+
onClick: () => x(s.id, "thumbs-up"),
|
|
92
|
+
children: /* @__PURE__ */ t.jsx(L, { className: "h-4 w-4" })
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ t.jsx(
|
|
96
|
+
C,
|
|
97
|
+
{
|
|
98
|
+
size: "icon",
|
|
99
|
+
variant: "ghost",
|
|
100
|
+
className: "h-6 w-6",
|
|
101
|
+
onClick: () => x(s.id, "thumbs-down"),
|
|
102
|
+
children: /* @__PURE__ */ t.jsx(z, { className: "h-4 w-4" })
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
] }) : /* @__PURE__ */ t.jsx(
|
|
106
|
+
b,
|
|
107
|
+
{
|
|
108
|
+
content: s.content,
|
|
109
|
+
copyMessage: "Copied response to clipboard!"
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
}),
|
|
113
|
+
[x]
|
|
114
|
+
);
|
|
115
|
+
return /* @__PURE__ */ t.jsxs(g, { className: p, children: [
|
|
116
|
+
k && u && d ? /* @__PURE__ */ t.jsx(
|
|
117
|
+
O,
|
|
118
|
+
{
|
|
119
|
+
label: "Try these prompts ✨",
|
|
120
|
+
append: u,
|
|
121
|
+
suggestions: d
|
|
122
|
+
}
|
|
123
|
+
) : null,
|
|
124
|
+
e.length > 0 ? /* @__PURE__ */ t.jsx(H, { messages: e, children: /* @__PURE__ */ t.jsx(
|
|
125
|
+
U,
|
|
126
|
+
{
|
|
127
|
+
messages: e,
|
|
128
|
+
isTyping: y,
|
|
129
|
+
messageOptions: F
|
|
130
|
+
}
|
|
131
|
+
) }) : null,
|
|
132
|
+
/* @__PURE__ */ t.jsx(
|
|
133
|
+
I,
|
|
134
|
+
{
|
|
135
|
+
className: "flex-shrink-0",
|
|
136
|
+
isPending: c || y,
|
|
137
|
+
handleSubmit: n,
|
|
138
|
+
children: ({ files: s, setFiles: r }) => /* @__PURE__ */ t.jsx(
|
|
139
|
+
E,
|
|
140
|
+
{
|
|
141
|
+
value: i,
|
|
142
|
+
onChange: f,
|
|
143
|
+
allowAttachments: !0,
|
|
144
|
+
files: s,
|
|
145
|
+
setFiles: r,
|
|
146
|
+
stop: A,
|
|
147
|
+
isGenerating: c,
|
|
148
|
+
transcribeAudio: S
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
] });
|
|
154
|
+
}
|
|
155
|
+
q.displayName = "Chat";
|
|
156
|
+
function H({
|
|
157
|
+
messages: e,
|
|
158
|
+
children: n
|
|
159
|
+
}) {
|
|
160
|
+
const {
|
|
161
|
+
containerRef: i,
|
|
162
|
+
scrollToBottom: f,
|
|
163
|
+
handleScroll: l,
|
|
164
|
+
shouldAutoScroll: c,
|
|
165
|
+
handleTouchStart: u
|
|
166
|
+
} = P([e]);
|
|
167
|
+
return /* @__PURE__ */ t.jsxs(
|
|
168
|
+
"div",
|
|
169
|
+
{
|
|
170
|
+
className: "flex-1 relative overflow-y-auto pb-4",
|
|
171
|
+
ref: i,
|
|
172
|
+
onScroll: l,
|
|
173
|
+
onTouchStart: u,
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ t.jsx("div", { className: "max-w-full", children: n }),
|
|
176
|
+
!c && /* @__PURE__ */ t.jsx("div", { className: "pointer-events-none absolute bottom-0 left-0 right-0 flex items-end justify-end", children: /* @__PURE__ */ t.jsx("div", { className: "sticky bottom-0 left-0 flex w-full justify-end", children: /* @__PURE__ */ t.jsx(
|
|
177
|
+
C,
|
|
178
|
+
{
|
|
179
|
+
onClick: f,
|
|
180
|
+
className: "pointer-events-auto h-8 w-8 rounded-full ease-in-out animate-in fade-in-0 slide-in-from-bottom-1",
|
|
181
|
+
size: "icon",
|
|
182
|
+
variant: "ghost",
|
|
183
|
+
children: /* @__PURE__ */ t.jsx(B, { className: "h-4 w-4" })
|
|
184
|
+
}
|
|
185
|
+
) }) })
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
const g = T(({ className: e, ...n }, i) => /* @__PURE__ */ t.jsx(
|
|
191
|
+
"div",
|
|
192
|
+
{
|
|
193
|
+
ref: i,
|
|
194
|
+
className: D("flex flex-col max-h-full w-full h-full", e),
|
|
195
|
+
...n
|
|
196
|
+
}
|
|
197
|
+
));
|
|
198
|
+
g.displayName = "ChatContainer";
|
|
199
|
+
const I = T(
|
|
200
|
+
({ children: e, handleSubmit: n, className: i }, f) => {
|
|
201
|
+
const [l, c] = _(null), u = (d) => {
|
|
202
|
+
if (!l) {
|
|
203
|
+
n(d);
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
const p = J(l);
|
|
207
|
+
n(d, { experimental_attachments: p }), c(null);
|
|
208
|
+
};
|
|
209
|
+
return /* @__PURE__ */ t.jsx("form", { ref: f, onSubmit: u, className: i, children: e({ files: l, setFiles: c }) });
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
I.displayName = "ChatForm";
|
|
213
|
+
function J(e) {
|
|
214
|
+
if (typeof window > "u")
|
|
215
|
+
return {};
|
|
216
|
+
const n = new DataTransfer();
|
|
217
|
+
for (const i of Array.from(e))
|
|
218
|
+
n.items.add(i);
|
|
219
|
+
return n.files;
|
|
220
|
+
}
|
|
221
|
+
export {
|
|
222
|
+
q as Chat,
|
|
223
|
+
g as ChatContainer,
|
|
224
|
+
I as ChatForm,
|
|
225
|
+
H as ChatMessages
|
|
226
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as r from "@radix-ui/react-checkbox";
|
|
4
|
+
import { CheckIcon as a } from "lucide-react";
|
|
5
|
+
import { cn as o } from "../../lib/utils.js";
|
|
6
|
+
function c({
|
|
7
|
+
className: i,
|
|
8
|
+
...t
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ e.jsx(
|
|
11
|
+
r.Root,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "checkbox",
|
|
14
|
+
className: o(
|
|
15
|
+
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
16
|
+
i
|
|
17
|
+
),
|
|
18
|
+
...t,
|
|
19
|
+
children: /* @__PURE__ */ e.jsx(
|
|
20
|
+
r.Indicator,
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "checkbox-indicator",
|
|
23
|
+
className: "flex items-center justify-center text-current transition-none",
|
|
24
|
+
children: /* @__PURE__ */ e.jsx(a, { className: "size-3.5" })
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
c as Checkbox
|
|
32
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as o from "@radix-ui/react-collapsible";
|
|
4
|
+
function i({
|
|
5
|
+
...l
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ t.jsx(o.Root, { "data-slot": "collapsible", ...l });
|
|
8
|
+
}
|
|
9
|
+
function s({
|
|
10
|
+
...l
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ t.jsx(
|
|
13
|
+
o.CollapsibleTrigger,
|
|
14
|
+
{
|
|
15
|
+
"data-slot": "collapsible-trigger",
|
|
16
|
+
...l
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function r({
|
|
21
|
+
...l
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ t.jsx(
|
|
24
|
+
o.CollapsibleContent,
|
|
25
|
+
{
|
|
26
|
+
"data-slot": "collapsible-content",
|
|
27
|
+
...l
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
i as Collapsible,
|
|
33
|
+
r as CollapsibleContent,
|
|
34
|
+
s as CollapsibleTrigger
|
|
35
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { Command as a } from "cmdk";
|
|
4
|
+
import { SearchIcon as m } from "lucide-react";
|
|
5
|
+
import { cn as n } from "../../lib/utils.js";
|
|
6
|
+
import { Dialog as s, DialogHeader as c, DialogTitle as i, DialogDescription as l, DialogContent as u } from "./dialog.js";
|
|
7
|
+
function p({
|
|
8
|
+
className: e,
|
|
9
|
+
...o
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ t.jsx(
|
|
12
|
+
a,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "command",
|
|
15
|
+
className: n(
|
|
16
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
17
|
+
e
|
|
18
|
+
),
|
|
19
|
+
...o
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
function k({
|
|
24
|
+
title: e = "Command Palette",
|
|
25
|
+
description: o = "Search for a command to run...",
|
|
26
|
+
children: d,
|
|
27
|
+
...r
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ t.jsxs(s, { ...r, children: [
|
|
30
|
+
/* @__PURE__ */ t.jsxs(c, { className: "sr-only", children: [
|
|
31
|
+
/* @__PURE__ */ t.jsx(i, { children: e }),
|
|
32
|
+
/* @__PURE__ */ t.jsx(l, { children: o })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ t.jsx(u, { className: "overflow-hidden p-0", children: /* @__PURE__ */ t.jsx(p, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: d }) })
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
function v({
|
|
38
|
+
className: e,
|
|
39
|
+
...o
|
|
40
|
+
}) {
|
|
41
|
+
return /* @__PURE__ */ t.jsxs(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "command-input-wrapper",
|
|
45
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ t.jsx(m, { className: "size-4 shrink-0 opacity-50" }),
|
|
48
|
+
/* @__PURE__ */ t.jsx(
|
|
49
|
+
a.Input,
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "command-input",
|
|
52
|
+
className: n(
|
|
53
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
54
|
+
e
|
|
55
|
+
),
|
|
56
|
+
...o
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function j({
|
|
64
|
+
className: e,
|
|
65
|
+
...o
|
|
66
|
+
}) {
|
|
67
|
+
return /* @__PURE__ */ t.jsx(
|
|
68
|
+
a.List,
|
|
69
|
+
{
|
|
70
|
+
"data-slot": "command-list",
|
|
71
|
+
className: n(
|
|
72
|
+
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
73
|
+
e
|
|
74
|
+
),
|
|
75
|
+
...o
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function w({
|
|
80
|
+
...e
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ t.jsx(
|
|
83
|
+
a.Empty,
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "command-empty",
|
|
86
|
+
className: "py-6 text-center text-sm",
|
|
87
|
+
...e
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function y({
|
|
92
|
+
className: e,
|
|
93
|
+
...o
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ t.jsx(
|
|
96
|
+
a.Group,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "command-group",
|
|
99
|
+
className: n(
|
|
100
|
+
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
101
|
+
e
|
|
102
|
+
),
|
|
103
|
+
...o
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function C({
|
|
108
|
+
className: e,
|
|
109
|
+
...o
|
|
110
|
+
}) {
|
|
111
|
+
return /* @__PURE__ */ t.jsx(
|
|
112
|
+
a.Separator,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "command-separator",
|
|
115
|
+
className: n("bg-border -mx-1 h-px", e),
|
|
116
|
+
...o
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function N({
|
|
121
|
+
className: e,
|
|
122
|
+
...o
|
|
123
|
+
}) {
|
|
124
|
+
return /* @__PURE__ */ t.jsx(
|
|
125
|
+
a.Item,
|
|
126
|
+
{
|
|
127
|
+
"data-slot": "command-item",
|
|
128
|
+
className: n(
|
|
129
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
130
|
+
e
|
|
131
|
+
),
|
|
132
|
+
...o
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
function b({
|
|
137
|
+
className: e,
|
|
138
|
+
...o
|
|
139
|
+
}) {
|
|
140
|
+
return /* @__PURE__ */ t.jsx(
|
|
141
|
+
"span",
|
|
142
|
+
{
|
|
143
|
+
"data-slot": "command-shortcut",
|
|
144
|
+
className: n(
|
|
145
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
146
|
+
e
|
|
147
|
+
),
|
|
148
|
+
...o
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
export {
|
|
153
|
+
p as Command,
|
|
154
|
+
k as CommandDialog,
|
|
155
|
+
w as CommandEmpty,
|
|
156
|
+
y as CommandGroup,
|
|
157
|
+
v as CommandInput,
|
|
158
|
+
N as CommandItem,
|
|
159
|
+
j as CommandList,
|
|
160
|
+
C as CommandSeparator,
|
|
161
|
+
b as CommandShortcut
|
|
162
|
+
};
|