@alexgorbatchev/shadcn 0.0.12 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/THIRD_PARTY_NOTICES.md +53 -1
- package/assistant-ui-catalog.json +2861 -0
- package/dist/assistant-ui/geo-map.css +75 -0
- package/dist/assistant-ui/markdown.css +47 -0
- package/dist/assistant-ui.css +146 -0
- package/dist/chunk-06c2d8rd.js +35 -0
- package/dist/chunk-0nmj2qb8.js +107 -0
- package/dist/chunk-0qkdp68h.js +38 -0
- package/dist/chunk-0vgs0ebx.js +39 -0
- package/dist/chunk-0xrvhezs.js +465 -0
- package/dist/chunk-0y0kqaqj.js +103 -0
- package/dist/chunk-0yqwq0ev.js +88 -0
- package/dist/chunk-19441s27.js +125 -0
- package/dist/chunk-1akz4hf3.js +16 -0
- package/dist/chunk-1apg76a7.js +537 -0
- package/dist/chunk-1hbge1cb.js +17 -0
- package/dist/chunk-1jeg5z55.js +111 -0
- package/dist/chunk-1s7af44v.js +78 -0
- package/dist/chunk-1wz92wgg.js +8 -0
- package/dist/chunk-1x2ch0xc.js +42 -0
- package/dist/chunk-22678d2t.js +546 -0
- package/dist/chunk-23ey5ek0.js +117 -0
- package/dist/chunk-24d68cjp.js +23 -0
- package/dist/chunk-299wvwy8.js +336 -0
- package/dist/chunk-2b9agdrf.js +82 -0
- package/dist/chunk-2ewx9qdn.js +45 -0
- package/dist/chunk-2g0zzx6f.js +102 -0
- package/dist/chunk-2gten6a1.js +19 -0
- package/dist/chunk-2m0zpzbm.js +90 -0
- package/dist/chunk-2tn2pg48.js +15 -0
- package/dist/chunk-2y5f271v.js +196 -0
- package/dist/chunk-2ye8evra.js +94 -0
- package/dist/chunk-34ndz1gf.js +35 -0
- package/dist/chunk-3552jz55.js +128 -0
- package/dist/chunk-3bzbwhda.js +104 -0
- package/dist/chunk-3c7tvhtx.js +39 -0
- package/dist/chunk-3esarnmt.js +248 -0
- package/dist/chunk-3g8p9apn.js +24 -0
- package/dist/chunk-3hvpcsb4.js +184 -0
- package/dist/chunk-3kp7kvdb.js +100 -0
- package/dist/chunk-3ptcdy6g.js +99 -0
- package/dist/chunk-3t4dphfj.js +98 -0
- package/dist/chunk-3xw5sdfk.js +65 -0
- package/dist/chunk-41vczcvf.js +195 -0
- package/dist/chunk-41wmtqkq.js +142 -0
- package/dist/chunk-41wykzq3.js +104 -0
- package/dist/chunk-47xfhw4f.js +114 -0
- package/dist/chunk-48b1ya7g.js +21 -0
- package/dist/chunk-490byd18.js +38 -0
- package/dist/chunk-493ghkkr.js +36 -0
- package/dist/chunk-4bjqbky7.js +19 -0
- package/dist/chunk-4c2sqyrp.js +14 -0
- package/dist/chunk-4gby2v61.js +133 -0
- package/dist/chunk-4k2jzddw.js +64 -0
- package/dist/chunk-4mmxn1c3.js +20 -0
- package/dist/chunk-4pae2b1z.js +16 -0
- package/dist/chunk-53cmv2aj.js +64 -0
- package/dist/chunk-53q730zs.js +53 -0
- package/dist/chunk-548kkcx4.js +28 -0
- package/dist/chunk-550z7s64.js +33 -0
- package/dist/chunk-55bcw5ff.js +74 -0
- package/dist/chunk-58resytq.js +112 -0
- package/dist/chunk-59p19t57.js +18 -0
- package/dist/chunk-5fg2ns3n.js +16 -0
- package/dist/chunk-5h6m9dsm.js +86 -0
- package/dist/chunk-5h7vkgvz.js +85 -0
- package/dist/chunk-5j39rehg.js +63 -0
- package/dist/chunk-5ntb7p4q.js +1005 -0
- package/dist/chunk-5r99spxq.js +64 -0
- package/dist/chunk-5s6r4g8w.js +16 -0
- package/dist/chunk-5wemmqv5.js +117 -0
- package/dist/chunk-63gvcckp.js +84 -0
- package/dist/chunk-644cnngf.js +54 -0
- package/dist/chunk-64564z9p.js +8 -0
- package/dist/chunk-6hbx647r.js +35 -0
- package/dist/chunk-6jpz5geq.js +150 -0
- package/dist/chunk-6krk6rjd.js +99 -0
- package/dist/chunk-6synj4j9.js +36 -0
- package/dist/chunk-6xr41wyr.js +33 -0
- package/dist/chunk-71efbr5n.js +24 -0
- package/dist/{chunk-tnktkgvp.js → chunk-73rkr9ct.js} +5 -2
- package/dist/chunk-74aknkhq.js +75 -0
- package/dist/chunk-7b3n0ftm.js +80 -0
- package/dist/chunk-7g1dx0bn.js +32 -0
- package/dist/chunk-7g39g3h8.js +104 -0
- package/dist/chunk-7ppfbxdh.js +101 -0
- package/dist/chunk-82e7fbmq.js +278 -0
- package/dist/chunk-86211e5a.js +19 -0
- package/dist/chunk-8799zv5c.js +25 -0
- package/dist/chunk-8g1npthk.js +92 -0
- package/dist/chunk-8k1y6w5k.js +141 -0
- package/dist/chunk-8r57zwqg.js +16 -0
- package/dist/chunk-8ye0k6z7.js +22 -0
- package/dist/chunk-97kagey4.js +105 -0
- package/dist/chunk-9de1htr5.js +69 -0
- package/dist/chunk-9dw4dyzq.js +89 -0
- package/dist/chunk-9msk1t9e.js +99 -0
- package/dist/chunk-9vm8fks0.js +397 -0
- package/dist/chunk-9zyam2cn.js +127 -0
- package/dist/chunk-a3r74mbf.js +65 -0
- package/dist/chunk-a6e11wj6.js +85 -0
- package/dist/chunk-aehkndxh.js +100 -0
- package/dist/chunk-aexby8h3.js +92 -0
- package/dist/chunk-ag6xpy6q.js +189 -0
- package/dist/chunk-avrh238b.js +117 -0
- package/dist/chunk-b06rfrfz.js +128 -0
- package/dist/chunk-b12s32e3.js +61 -0
- package/dist/chunk-b2jkgq4n.js +22 -0
- package/dist/chunk-b3b2tvkg.js +41 -0
- package/dist/chunk-bhejvd5q.js +76 -0
- package/dist/chunk-bnaejcfx.js +43 -0
- package/dist/chunk-bt5ksk3z.js +76 -0
- package/dist/chunk-c2vcrwjp.js +70 -0
- package/dist/chunk-cn1ns1xj.js +98 -0
- package/dist/chunk-czg9p52v.js +74 -0
- package/dist/chunk-d70rcwk7.js +16 -0
- package/dist/chunk-dd53t01w.js +14 -0
- package/dist/chunk-dg14mg3y.js +56 -0
- package/dist/chunk-djrb64cg.js +141 -0
- package/dist/chunk-dnja1pz5.js +18 -0
- package/dist/chunk-dnvb9r71.js +96 -0
- package/dist/chunk-ds65prb9.js +229 -0
- package/dist/chunk-dtkw8m6d.js +18 -0
- package/dist/chunk-e50068hn.js +51 -0
- package/dist/chunk-e59sfvpe.js +78 -0
- package/dist/{chunk-rjjwytbx.js → chunk-e6hk39ev.js} +3 -1
- package/dist/chunk-e6tx49rb.js +55 -0
- package/dist/chunk-ed49y20r.js +109 -0
- package/dist/chunk-eehfrrdz.js +37 -0
- package/dist/chunk-ef04mmf4.js +284 -0
- package/dist/chunk-emasqc8x.js +19 -0
- package/dist/chunk-ep057ccn.js +19 -0
- package/dist/chunk-eqmptn43.js +96 -0
- package/dist/chunk-erpzgt57.js +87 -0
- package/dist/chunk-ets9h67e.js +26 -0
- package/dist/chunk-f1mdtq5p.js +11 -0
- package/dist/chunk-f25bby84.js +96 -0
- package/dist/chunk-f307aaa6.js +299 -0
- package/dist/chunk-f3f76m3p.js +14 -0
- package/dist/chunk-f63f8w58.js +44 -0
- package/dist/chunk-f8zc8ceg.js +5 -0
- package/dist/chunk-ff8bpz3p.js +86 -0
- package/dist/chunk-fgfaarep.js +37 -0
- package/dist/chunk-fgmcbtyt.js +23 -0
- package/dist/chunk-fh3nme7f.js +45 -0
- package/dist/chunk-fq8taatb.js +85 -0
- package/dist/chunk-fqekyjkh.js +65 -0
- package/dist/chunk-fvg93469.js +42 -0
- package/dist/chunk-fy1jbp97.js +47 -0
- package/dist/chunk-gc0s6z4e.js +83 -0
- package/dist/chunk-gdtrt9dz.js +83 -0
- package/dist/chunk-ge705y2w.js +26 -0
- package/dist/chunk-gfm2arhj.js +165 -0
- package/dist/chunk-gg39sggp.js +59 -0
- package/dist/chunk-gknaq8ep.js +86 -0
- package/dist/chunk-gt8m0zeq.js +112 -0
- package/dist/chunk-gyg2s982.js +143 -0
- package/dist/chunk-h0g7qkya.js +265 -0
- package/dist/chunk-h51gnkz8.js +99 -0
- package/dist/chunk-h561m2ae.js +75 -0
- package/dist/chunk-h6kcqtzf.js +121 -0
- package/dist/chunk-h77yk9sn.js +148 -0
- package/dist/chunk-h8awhm19.js +52 -0
- package/dist/chunk-ha24sd50.js +78 -0
- package/dist/chunk-hhvp5352.js +19 -0
- package/dist/chunk-hpmvzsnv.js +258 -0
- package/dist/chunk-hxctrrkh.js +68 -0
- package/dist/chunk-hz9azhzx.js +16 -0
- package/dist/chunk-j5wk4ffj.js +251 -0
- package/dist/chunk-j89xg1ak.js +14 -0
- package/dist/chunk-j9d304dz.js +203 -0
- package/dist/chunk-jacxpetf.js +45 -0
- package/dist/chunk-jcxxjkqx.js +17 -0
- package/dist/chunk-jhw9q2eq.js +57 -0
- package/dist/chunk-jq6tc65r.js +86 -0
- package/dist/chunk-jwajmmfb.js +14 -0
- package/dist/chunk-jxwfkmdh.js +35 -0
- package/dist/chunk-jy57625a.js +19 -0
- package/dist/chunk-jy6nfnbx.js +94 -0
- package/dist/chunk-k01gpm23.js +22 -0
- package/dist/chunk-k3hjzpvz.js +67 -0
- package/dist/chunk-k6hfm259.js +37 -0
- package/dist/chunk-k99h6evz.js +11 -0
- package/dist/chunk-kbcprevc.js +17 -0
- package/dist/chunk-khgrv6k6.js +56 -0
- package/dist/chunk-khkdgmvm.js +95 -0
- package/dist/chunk-kjx7n6a7.js +20 -0
- package/dist/chunk-kp3jgjng.js +20 -0
- package/dist/chunk-kz9np152.js +43 -0
- package/dist/chunk-m0e0an33.js +78 -0
- package/dist/chunk-m1a9e1py.js +27 -0
- package/dist/chunk-m1hr3w94.js +35 -0
- package/dist/chunk-m54kq3he.js +59 -0
- package/dist/chunk-m99hfsps.js +63 -0
- package/dist/chunk-mammcx1w.js +33 -0
- package/dist/chunk-mfx3kkk3.js +38 -0
- package/dist/chunk-mjpc4qf7.js +322 -0
- package/dist/chunk-msave608.js +139 -0
- package/dist/chunk-mx21wpq0.js +204 -0
- package/dist/chunk-mznfmtt8.js +78 -0
- package/dist/chunk-n94jf71r.js +101 -0
- package/dist/chunk-njzam0hx.js +101 -0
- package/dist/chunk-nkx7ncf1.js +92 -0
- package/dist/chunk-nz2e73h2.js +132 -0
- package/dist/chunk-nzas8r5v.js +22 -0
- package/dist/chunk-p9aqek06.js +68 -0
- package/dist/chunk-pa07b92f.js +20 -0
- package/dist/chunk-pb8tsrdf.js +26 -0
- package/dist/chunk-pe1vvkp7.js +33 -0
- package/dist/chunk-pkegpb49.js +364 -0
- package/dist/chunk-q2ewq67a.js +171 -0
- package/dist/chunk-q40gqpwh.js +41 -0
- package/dist/chunk-q4264v6h.js +123 -0
- package/dist/chunk-q7zc22qp.js +77 -0
- package/dist/chunk-q9qm7skj.js +132 -0
- package/dist/chunk-qk167mcx.js +87 -0
- package/dist/chunk-qxt0fx4f.js +93 -0
- package/dist/chunk-r07v9c4f.js +65 -0
- package/dist/chunk-r6p7982y.js +64 -0
- package/dist/chunk-r7fy89jq.js +33 -0
- package/dist/chunk-r9mng3ws.js +27 -0
- package/dist/chunk-rc9kpszb.js +144 -0
- package/dist/chunk-rrd9fsz6.js +68 -0
- package/dist/chunk-ryvvtyjq.js +117 -0
- package/dist/chunk-s29j7505.js +147 -0
- package/dist/chunk-s3wqwhxc.js +15 -0
- package/dist/chunk-sbrpnv8s.js +117 -0
- package/dist/chunk-serw27sv.js +146 -0
- package/dist/chunk-smdxxnb8.js +19 -0
- package/dist/chunk-smzhep9f.js +245 -0
- package/dist/chunk-tetvt0c3.js +161 -0
- package/dist/chunk-tsekdy3w.js +449 -0
- package/dist/chunk-ttdeyjvj.js +88 -0
- package/dist/{chunk-8a7dn9ps.js → chunk-ttyqqw3y.js} +1 -1
- package/dist/chunk-tx19w12r.js +36 -0
- package/dist/chunk-tzred534.js +16 -0
- package/dist/chunk-v00z8h0n.js +52 -0
- package/dist/chunk-v0pj5b4g.js +11 -0
- package/dist/chunk-v8ks0cfq.js +32 -0
- package/dist/chunk-v9r6zprz.js +91 -0
- package/dist/chunk-vfhztmet.js +114 -0
- package/dist/chunk-vnxy5dtp.js +16 -0
- package/dist/chunk-vs1n47pw.js +60 -0
- package/dist/chunk-vx7c2xhq.js +33 -0
- package/dist/chunk-vxera95d.js +19 -0
- package/dist/chunk-vxvaaptq.js +36 -0
- package/dist/chunk-vygzdvrk.js +16 -0
- package/dist/chunk-vyve5wf3.js +24 -0
- package/dist/chunk-wbj4frbk.js +26 -0
- package/dist/chunk-wf5cnpdg.js +33 -0
- package/dist/chunk-wgxs6b5t.js +44 -0
- package/dist/chunk-wjx6zf94.js +41 -0
- package/dist/chunk-wkg0rssg.js +37 -0
- package/dist/chunk-wndqbss9.js +34 -0
- package/dist/chunk-wnyxdfzd.js +41 -0
- package/dist/chunk-wwfj7ga3.js +221 -0
- package/dist/chunk-wy701sqv.js +19 -0
- package/dist/chunk-x1z72h7w.js +92 -0
- package/dist/chunk-x7z9jzyf.js +84 -0
- package/dist/chunk-xhtsnwnb.js +29 -0
- package/dist/chunk-xjxhnvcc.js +36 -0
- package/dist/chunk-xkvyk2qf.js +27 -0
- package/dist/chunk-xqn8mef3.js +117 -0
- package/dist/chunk-xvgp05yg.js +23 -0
- package/dist/chunk-xvs5y4v7.js +706 -0
- package/dist/chunk-xxk0akfn.js +12 -0
- package/dist/chunk-y4gbweym.js +84 -0
- package/dist/chunk-yabr2qx9.js +66 -0
- package/dist/chunk-ybypybsb.js +43 -0
- package/dist/chunk-ydfsxbrn.js +48 -0
- package/dist/chunk-ydfx8r6d.js +15 -0
- package/dist/chunk-yn3e9w1j.js +74 -0
- package/dist/chunk-yncp9nsv.js +106 -0
- package/dist/chunk-ynh7v8n7.js +146 -0
- package/dist/chunk-ynkpdpn0.js +60 -0
- package/dist/chunk-yp12vs0s.js +862 -0
- package/dist/chunk-yqs310vg.js +49 -0
- package/dist/chunk-zbm0xcq3.js +86 -0
- package/dist/chunk-zc60zhz7.js +16 -0
- package/dist/chunk-zcwynyr0.js +54 -0
- package/dist/chunk-zgpdhtkw.js +35 -0
- package/dist/chunk-zhnwybhq.js +143 -0
- package/dist/chunk-zj30cfgx.js +20 -0
- package/dist/chunk-zjbk25js.js +88 -0
- package/dist/chunk-zp1emfpq.js +83 -0
- package/dist/chunk-zpcxr2r4.js +98 -0
- package/dist/chunk-zve48bc0.js +88 -0
- package/dist/components/AlertDialog.d.ts +1 -1
- package/dist/components/Attachment.d.ts +1 -1
- package/dist/components/Badge.d.ts +1 -1
- package/dist/components/Bubble.d.ts +1 -1
- package/dist/components/Button.d.ts +5 -4
- package/dist/components/ContextMenu.d.ts +1 -1
- package/dist/components/Dialog.d.ts +2 -2
- package/dist/components/Drawer.d.ts +1 -1
- package/dist/components/DropdownMenu.d.ts +1 -1
- package/dist/components/Field.d.ts +1 -1
- package/dist/components/InputGroup.d.ts +2 -2
- package/dist/components/Item.d.ts +2 -2
- package/dist/components/Marker.d.ts +1 -1
- package/dist/components/PageMessage.d.ts +9 -0
- package/dist/components/PortalProvider.d.ts +7 -0
- package/dist/components/Progress.d.ts +5 -2
- package/dist/components/Sidebar.d.ts +2 -2
- package/dist/components/ThemeProvider.d.ts +3 -2
- package/dist/components/Toast.d.ts +1 -1
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/assistant-ui/conversationMap/types.d.ts +20 -0
- package/dist/components/assistant-ui/elements/ActivityGraph.d.ts +11 -0
- package/dist/components/assistant-ui/elements/ActivityGraph.js +8 -0
- package/dist/components/assistant-ui/elements/AgentCard.d.ts +19 -0
- package/dist/components/assistant-ui/elements/AgentCard.js +8 -0
- package/dist/components/assistant-ui/elements/AgentHandoff.d.ts +11 -0
- package/dist/components/assistant-ui/elements/AgentHandoff.js +7 -0
- package/dist/components/assistant-ui/elements/AgentPlan.d.ts +14 -0
- package/dist/components/assistant-ui/elements/AgentPlan.js +8 -0
- package/dist/components/assistant-ui/elements/AgentStatus.d.ts +11 -0
- package/dist/components/assistant-ui/elements/AgentStatus.js +7 -0
- package/dist/components/assistant-ui/elements/ApprovalCard.d.ts +21 -0
- package/dist/components/assistant-ui/elements/ApprovalCard.js +9 -0
- package/dist/components/assistant-ui/elements/ArtifactCard.d.ts +10 -0
- package/dist/components/assistant-ui/elements/ArtifactCard.js +9 -0
- package/dist/components/assistant-ui/elements/AudioPlayer.d.ts +9 -0
- package/dist/components/assistant-ui/elements/AudioPlayer.js +9 -0
- package/dist/components/assistant-ui/elements/BackgroundInbox.d.ts +15 -0
- package/dist/components/assistant-ui/elements/BackgroundInbox.js +9 -0
- package/dist/components/assistant-ui/elements/CanvasSplit.d.ts +29 -0
- package/dist/components/assistant-ui/elements/CanvasSplit.js +20 -0
- package/dist/components/assistant-ui/elements/Chart.d.ts +14 -0
- package/dist/components/assistant-ui/elements/Chart.js +11 -0
- package/dist/components/assistant-ui/elements/ChatPanel.d.ts +20 -0
- package/dist/components/assistant-ui/elements/ChatPanel.js +21 -0
- package/dist/components/assistant-ui/elements/CheckpointHistory.d.ts +15 -0
- package/dist/components/assistant-ui/elements/CheckpointHistory.js +8 -0
- package/dist/components/assistant-ui/elements/Citation.d.ts +16 -0
- package/dist/components/assistant-ui/elements/Citation.js +11 -0
- package/dist/components/assistant-ui/elements/ClaudeLogo.d.ts +6 -0
- package/dist/components/assistant-ui/elements/ClaudeLogo.js +6 -0
- package/dist/components/assistant-ui/elements/CodeDiff.d.ts +16 -0
- package/dist/components/assistant-ui/elements/CodeDiff.js +8 -0
- package/dist/components/assistant-ui/elements/CodeRunner.d.ts +13 -0
- package/dist/components/assistant-ui/elements/CodeRunner.js +8 -0
- package/dist/components/assistant-ui/elements/CommandPalette.d.ts +17 -0
- package/dist/components/assistant-ui/elements/CommandPalette.js +16 -0
- package/dist/components/assistant-ui/elements/ComparisonCard.d.ts +16 -0
- package/dist/components/assistant-ui/elements/ComparisonCard.js +7 -0
- package/dist/components/assistant-ui/elements/Composer.d.ts +5 -0
- package/dist/components/assistant-ui/elements/Composer.js +7 -0
- package/dist/components/assistant-ui/elements/ComposerActions.d.ts +5 -0
- package/dist/components/assistant-ui/elements/ComposerActions.js +7 -0
- package/dist/components/assistant-ui/elements/ComposerAttachButton.d.ts +5 -0
- package/dist/components/assistant-ui/elements/ComposerAttachButton.js +8 -0
- package/dist/components/assistant-ui/elements/ComposerAttachmentChip.d.ts +9 -0
- package/dist/components/assistant-ui/elements/ComposerAttachmentChip.js +9 -0
- package/dist/components/assistant-ui/elements/ComposerAttachments.d.ts +5 -0
- package/dist/components/assistant-ui/elements/ComposerAttachments.js +11 -0
- package/dist/components/assistant-ui/elements/ComposerBar.d.ts +7 -0
- package/dist/components/assistant-ui/elements/ComposerBar.js +11 -0
- package/dist/components/assistant-ui/elements/ComposerCommandItem.d.ts +9 -0
- package/dist/components/assistant-ui/elements/ComposerCommandItem.js +10 -0
- package/dist/components/assistant-ui/elements/ComposerContext.d.ts +7 -0
- package/dist/components/assistant-ui/elements/ComposerContext.js +13 -0
- package/dist/components/assistant-ui/elements/ComposerInput.d.ts +7 -0
- package/dist/components/assistant-ui/elements/ComposerInput.js +11 -0
- package/dist/components/assistant-ui/elements/ComposerMenu.d.ts +7 -0
- package/dist/components/assistant-ui/elements/ComposerMenu.js +7 -0
- package/dist/components/assistant-ui/elements/ComposerMenuItem.d.ts +8 -0
- package/dist/components/assistant-ui/elements/ComposerMenuItem.js +9 -0
- package/dist/components/assistant-ui/elements/ComposerModelItem.d.ts +9 -0
- package/dist/components/assistant-ui/elements/ComposerModelItem.js +10 -0
- package/dist/components/assistant-ui/elements/ComposerModelTrigger.d.ts +8 -0
- package/dist/components/assistant-ui/elements/ComposerModelTrigger.js +8 -0
- package/dist/components/assistant-ui/elements/ComposerPersonItem.d.ts +9 -0
- package/dist/components/assistant-ui/elements/ComposerPersonItem.js +10 -0
- package/dist/components/assistant-ui/elements/ComposerSend.d.ts +8 -0
- package/dist/components/assistant-ui/elements/ComposerSend.js +8 -0
- package/dist/components/assistant-ui/elements/ComposerToolbar.d.ts +5 -0
- package/dist/components/assistant-ui/elements/ComposerToolbar.js +11 -0
- package/dist/components/assistant-ui/elements/ComposerVoice.d.ts +9 -0
- package/dist/components/assistant-ui/elements/ComposerVoice.js +8 -0
- package/dist/components/assistant-ui/elements/ComposerVoiceButton.d.ts +7 -0
- package/dist/components/assistant-ui/elements/ComposerVoiceButton.js +8 -0
- package/dist/components/assistant-ui/elements/ComputerUse.d.ts +17 -0
- package/dist/components/assistant-ui/elements/ComputerUse.js +7 -0
- package/dist/components/assistant-ui/elements/ConfidenceMarker.d.ts +16 -0
- package/dist/components/assistant-ui/elements/ConfidenceMarker.js +7 -0
- package/dist/components/assistant-ui/elements/ConnectionState.d.ts +10 -0
- package/dist/components/assistant-ui/elements/ConnectionState.js +8 -0
- package/dist/components/assistant-ui/elements/ContextBreakdown.d.ts +15 -0
- package/dist/components/assistant-ui/elements/ContextBreakdown.js +8 -0
- package/dist/components/assistant-ui/elements/ContextDisplay.d.ts +15 -0
- package/dist/components/assistant-ui/elements/ContextDisplay.js +20 -0
- package/dist/components/assistant-ui/elements/ContextDisplayBar.d.ts +3 -0
- package/dist/components/assistant-ui/elements/ContextDisplayBar.js +17 -0
- package/dist/components/assistant-ui/elements/ContextDisplayContent.d.ts +6 -0
- package/dist/components/assistant-ui/elements/ContextDisplayContent.js +13 -0
- package/dist/components/assistant-ui/elements/ContextDisplayRing.d.ts +3 -0
- package/dist/components/assistant-ui/elements/ContextDisplayRing.js +17 -0
- package/dist/components/assistant-ui/elements/ContextDisplayRoot.d.ts +15 -0
- package/dist/components/assistant-ui/elements/ContextDisplayRoot.js +11 -0
- package/dist/components/assistant-ui/elements/ContextDisplayText.d.ts +3 -0
- package/dist/components/assistant-ui/elements/ContextDisplayText.js +17 -0
- package/dist/components/assistant-ui/elements/ContextDisplayTrigger.d.ts +4 -0
- package/dist/components/assistant-ui/elements/ContextDisplayTrigger.js +10 -0
- package/dist/components/assistant-ui/elements/ContextDisplayValue.d.ts +6 -0
- package/dist/components/assistant-ui/elements/ContextDisplayValue.js +9 -0
- package/dist/components/assistant-ui/elements/ConversationMap.d.ts +16 -0
- package/dist/components/assistant-ui/elements/ConversationMap.js +10 -0
- package/dist/components/assistant-ui/elements/ConversationSearch.d.ts +18 -0
- package/dist/components/assistant-ui/elements/ConversationSearch.js +11 -0
- package/dist/components/assistant-ui/elements/CostMeter.d.ts +16 -0
- package/dist/components/assistant-ui/elements/CostMeter.js +8 -0
- package/dist/components/assistant-ui/elements/DataTable.d.ts +4 -0
- package/dist/components/assistant-ui/elements/DataTable.js +12 -0
- package/dist/components/assistant-ui/elements/DataTableValueCell.d.ts +10 -0
- package/dist/components/assistant-ui/elements/DaySeparator.d.ts +14 -0
- package/dist/components/assistant-ui/elements/DaySeparator.js +7 -0
- package/dist/components/assistant-ui/elements/Diagram.d.ts +13 -0
- package/dist/components/assistant-ui/elements/Diagram.js +8 -0
- package/dist/components/assistant-ui/elements/DiffViewer.d.ts +18 -0
- package/dist/components/assistant-ui/elements/DiffViewer.js +19 -0
- package/dist/components/assistant-ui/elements/DiffViewerContent.d.ts +3 -0
- package/dist/components/assistant-ui/elements/DiffViewerContent.js +7 -0
- package/dist/components/assistant-ui/elements/DiffViewerFile.d.ts +3 -0
- package/dist/components/assistant-ui/elements/DiffViewerFile.js +7 -0
- package/dist/components/assistant-ui/elements/DiffViewerFileBadge.d.ts +6 -0
- package/dist/components/assistant-ui/elements/DiffViewerFileBadge.js +8 -0
- package/dist/components/assistant-ui/elements/DiffViewerFileContent.d.ts +14 -0
- package/dist/components/assistant-ui/elements/DiffViewerHeader.d.ts +14 -0
- package/dist/components/assistant-ui/elements/DiffViewerHeader.js +12 -0
- package/dist/components/assistant-ui/elements/DiffViewerLine.d.ts +9 -0
- package/dist/components/assistant-ui/elements/DiffViewerLine.js +8 -0
- package/dist/components/assistant-ui/elements/DiffViewerSplitLine.d.ts +9 -0
- package/dist/components/assistant-ui/elements/DiffViewerSplitLine.js +8 -0
- package/dist/components/assistant-ui/elements/DiffViewerStats.d.ts +6 -0
- package/dist/components/assistant-ui/elements/DiffViewerStats.js +8 -0
- package/dist/components/assistant-ui/elements/DiffViewerText.d.ts +6 -0
- package/dist/components/assistant-ui/elements/DirectiveText.d.ts +25 -0
- package/dist/components/assistant-ui/elements/DirectiveText.js +8 -0
- package/dist/components/assistant-ui/elements/DocumentReference.d.ts +15 -0
- package/dist/components/assistant-ui/elements/DocumentReference.js +8 -0
- package/dist/components/assistant-ui/elements/DotMatrix.d.ts +9 -0
- package/dist/components/assistant-ui/elements/DotMatrix.js +8 -0
- package/dist/components/assistant-ui/elements/DraftRestore.d.ts +10 -0
- package/dist/components/assistant-ui/elements/DraftRestore.js +8 -0
- package/dist/components/assistant-ui/elements/EditMessage.d.ts +12 -0
- package/dist/components/assistant-ui/elements/EditMessage.js +14 -0
- package/dist/components/assistant-ui/elements/ElicitationForm.d.ts +21 -0
- package/dist/components/assistant-ui/elements/ElicitationForm.js +16 -0
- package/dist/components/assistant-ui/elements/EmptyState.d.ts +5 -0
- package/dist/components/assistant-ui/elements/EmptyState.js +8 -0
- package/dist/components/assistant-ui/elements/EmptyStateComposer.d.ts +10 -0
- package/dist/components/assistant-ui/elements/EmptyStateComposer.js +11 -0
- package/dist/components/assistant-ui/elements/EmptyStateGreeting.d.ts +4 -0
- package/dist/components/assistant-ui/elements/EmptyStateGreeting.js +7 -0
- package/dist/components/assistant-ui/elements/EmptyStateSuggestion.d.ts +7 -0
- package/dist/components/assistant-ui/elements/EmptyStateSuggestion.js +8 -0
- package/dist/components/assistant-ui/elements/EmptyStateSuggestions.d.ts +4 -0
- package/dist/components/assistant-ui/elements/EmptyStateSuggestions.js +7 -0
- package/dist/components/assistant-ui/elements/ErrorState.d.ts +9 -0
- package/dist/components/assistant-ui/elements/ErrorState.js +9 -0
- package/dist/components/assistant-ui/elements/EveAskQuestion.d.ts +4 -0
- package/dist/components/assistant-ui/elements/EveAskQuestion.js +11 -0
- package/dist/components/assistant-ui/elements/FeedbackDialog.d.ts +12 -0
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +14 -0
- package/dist/components/assistant-ui/elements/File.d.ts +36 -0
- package/dist/components/assistant-ui/elements/File.js +23 -0
- package/dist/components/assistant-ui/elements/FileTree.d.ts +17 -0
- package/dist/components/assistant-ui/elements/FileTree.js +8 -0
- package/dist/components/assistant-ui/elements/FlowGraph.d.ts +21 -0
- package/dist/components/assistant-ui/elements/FlowGraph.js +8 -0
- package/dist/components/assistant-ui/elements/Frac.d.ts +7 -0
- package/dist/components/assistant-ui/elements/Frac.js +6 -0
- package/dist/components/assistant-ui/elements/GeminiLogo.d.ts +3 -0
- package/dist/components/assistant-ui/elements/GeminiLogo.js +6 -0
- package/dist/components/assistant-ui/elements/GenerationLoader.d.ts +9 -0
- package/dist/components/assistant-ui/elements/GenerationLoader.js +8 -0
- package/dist/components/assistant-ui/elements/GenerativeUi.d.ts +9 -0
- package/dist/components/assistant-ui/elements/GenerativeUi.js +17 -0
- package/dist/components/assistant-ui/elements/GeoMap.d.ts +26 -0
- package/dist/components/assistant-ui/elements/GeoMap.js +8 -0
- package/dist/components/assistant-ui/elements/GitHubIcon.d.ts +6 -0
- package/dist/components/assistant-ui/elements/GitHubIcon.js +6 -0
- package/dist/components/assistant-ui/elements/GuardrailNotice.d.ts +11 -0
- package/dist/components/assistant-ui/elements/GuardrailNotice.js +9 -0
- package/dist/components/assistant-ui/elements/HeatGraph.d.ts +11 -0
- package/dist/components/assistant-ui/elements/HeatGraph.js +7 -0
- package/dist/components/assistant-ui/elements/Image.d.ts +45 -0
- package/dist/components/assistant-ui/elements/Image.js +29 -0
- package/dist/components/assistant-ui/elements/ImageGallery.d.ts +20 -0
- package/dist/components/assistant-ui/elements/ImageGallery.js +11 -0
- package/dist/components/assistant-ui/elements/ImageGeneration.d.ts +10 -0
- package/dist/components/assistant-ui/elements/ImageGeneration.js +9 -0
- package/dist/components/assistant-ui/elements/InlineCitation.d.ts +4 -0
- package/dist/components/assistant-ui/elements/InlineCitation.js +7 -0
- package/dist/components/assistant-ui/elements/JobProgress.d.ts +24 -0
- package/dist/components/assistant-ui/elements/JobProgress.js +9 -0
- package/dist/components/assistant-ui/elements/LauncherBubble.d.ts +13 -0
- package/dist/components/assistant-ui/elements/LauncherBubble.js +9 -0
- package/dist/components/assistant-ui/elements/LinkPreview.d.ts +13 -0
- package/dist/components/assistant-ui/elements/LinkPreview.js +7 -0
- package/dist/components/assistant-ui/elements/MapAnswer.d.ts +17 -0
- package/dist/components/assistant-ui/elements/MapAnswer.js +8 -0
- package/dist/components/assistant-ui/elements/MarkdownText.d.ts +12 -0
- package/dist/components/assistant-ui/elements/MarkdownText.js +18 -0
- package/dist/components/assistant-ui/elements/MathBlock.d.ts +13 -0
- package/dist/components/assistant-ui/elements/MathBlock.js +7 -0
- package/dist/components/assistant-ui/elements/McpServerPanel.d.ts +17 -0
- package/dist/components/assistant-ui/elements/McpServerPanel.js +11 -0
- package/dist/components/assistant-ui/elements/MemoryChips.d.ts +14 -0
- package/dist/components/assistant-ui/elements/MemoryChips.js +8 -0
- package/dist/components/assistant-ui/elements/MermaidDiagram.d.ts +6 -0
- package/dist/components/assistant-ui/elements/MermaidDiagram.js +13 -0
- package/dist/components/assistant-ui/elements/MermaidSvg.d.ts +7 -0
- package/dist/components/assistant-ui/elements/MermaidZoom.d.ts +7 -0
- package/dist/components/assistant-ui/elements/MermaidZoom.js +11 -0
- package/dist/components/assistant-ui/elements/MessageActions.d.ts +12 -0
- package/dist/components/assistant-ui/elements/MessageActions.js +9 -0
- package/dist/components/assistant-ui/elements/MessageAttachments.d.ts +16 -0
- package/dist/components/assistant-ui/elements/MessageAttachments.js +8 -0
- package/dist/components/assistant-ui/elements/MessageBranches.d.ts +8 -0
- package/dist/components/assistant-ui/elements/MessageBranches.js +8 -0
- package/dist/components/assistant-ui/elements/MessagePair.d.ts +12 -0
- package/dist/components/assistant-ui/elements/MessagePair.js +8 -0
- package/dist/components/assistant-ui/elements/MessageQueue.d.ts +13 -0
- package/dist/components/assistant-ui/elements/MessageQueue.js +8 -0
- package/dist/components/assistant-ui/elements/MessageTiming.d.ts +10 -0
- package/dist/components/assistant-ui/elements/MessageTiming.js +7 -0
- package/dist/components/assistant-ui/elements/MobileComposer.d.ts +15 -0
- package/dist/components/assistant-ui/elements/MobileComposer.js +11 -0
- package/dist/components/assistant-ui/elements/ModelPicker.d.ts +16 -0
- package/dist/components/assistant-ui/elements/ModelPicker.js +13 -0
- package/dist/components/assistant-ui/elements/ModelSelector.d.ts +9 -0
- package/dist/components/assistant-ui/elements/ModelSelector.js +28 -0
- package/dist/components/assistant-ui/elements/ModelSelectorContent.d.ts +6 -0
- package/dist/components/assistant-ui/elements/ModelSelectorContent.js +24 -0
- package/dist/components/assistant-ui/elements/ModelSelectorEffort.d.ts +5 -0
- package/dist/components/assistant-ui/elements/ModelSelectorEffort.js +8 -0
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.d.ts +3 -0
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +15 -0
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.d.ts +2 -0
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +15 -0
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.d.ts +3 -0
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +15 -0
- package/dist/components/assistant-ui/elements/ModelSelectorItem.d.ts +7 -0
- package/dist/components/assistant-ui/elements/ModelSelectorItem.js +17 -0
- package/dist/components/assistant-ui/elements/ModelSelectorList.d.ts +3 -0
- package/dist/components/assistant-ui/elements/ModelSelectorList.js +19 -0
- package/dist/components/assistant-ui/elements/ModelSelectorRoot.d.ts +16 -0
- package/dist/components/assistant-ui/elements/ModelSelectorRoot.js +11 -0
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.d.ts +3 -0
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +15 -0
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.d.ts +3 -0
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +15 -0
- package/dist/components/assistant-ui/elements/ModelSelectorTrigger.d.ts +6 -0
- package/dist/components/assistant-ui/elements/ModelSelectorTrigger.js +13 -0
- package/dist/components/assistant-ui/elements/ModelSelectorValue.d.ts +6 -0
- package/dist/components/assistant-ui/elements/ModelSelectorValue.js +8 -0
- package/dist/components/assistant-ui/elements/NumberRoll.d.ts +13 -0
- package/dist/components/assistant-ui/elements/NumberRoll.js +8 -0
- package/dist/components/assistant-ui/elements/NumberRollDigit.d.ts +8 -0
- package/dist/components/assistant-ui/elements/NumberRollPart.d.ts +9 -0
- package/dist/components/assistant-ui/elements/NumberTicker.d.ts +8 -0
- package/dist/components/assistant-ui/elements/NumberTicker.js +7 -0
- package/dist/components/assistant-ui/elements/Onboarding.d.ts +15 -0
- package/dist/components/assistant-ui/elements/Onboarding.js +8 -0
- package/dist/components/assistant-ui/elements/OpenAILogo.d.ts +3 -0
- package/dist/components/assistant-ui/elements/OpenAILogo.js +6 -0
- package/dist/components/assistant-ui/elements/OptionList.d.ts +15 -0
- package/dist/components/assistant-ui/elements/OptionList.js +11 -0
- package/dist/components/assistant-ui/elements/OptionText.d.ts +8 -0
- package/dist/components/assistant-ui/elements/OptionText.js +7 -0
- package/dist/components/assistant-ui/elements/PermissionGrant.d.ts +12 -0
- package/dist/components/assistant-ui/elements/PermissionGrant.js +9 -0
- package/dist/components/assistant-ui/elements/PromptLibrary.d.ts +18 -0
- package/dist/components/assistant-ui/elements/PromptLibrary.js +11 -0
- package/dist/components/assistant-ui/elements/QuestionFlow.d.ts +11 -0
- package/dist/components/assistant-ui/elements/QuestionFlow.js +12 -0
- package/dist/components/assistant-ui/elements/QuotaBanner.d.ts +12 -0
- package/dist/components/assistant-ui/elements/QuotaBanner.js +9 -0
- package/dist/components/assistant-ui/elements/QuoteReply.d.ts +18 -0
- package/dist/components/assistant-ui/elements/QuoteReply.js +8 -0
- package/dist/components/assistant-ui/elements/ReadAloud.d.ts +14 -0
- package/dist/components/assistant-ui/elements/ReadAloud.js +9 -0
- package/dist/components/assistant-ui/elements/ReasoningContent.d.ts +4 -0
- package/dist/components/assistant-ui/elements/ReasoningContent.js +10 -0
- package/dist/components/assistant-ui/elements/ReasoningEffort.d.ts +15 -0
- package/dist/components/assistant-ui/elements/ReasoningEffort.js +9 -0
- package/dist/components/assistant-ui/elements/ReasoningFade.d.ts +7 -0
- package/dist/components/assistant-ui/elements/ReasoningFade.js +7 -0
- package/dist/components/assistant-ui/elements/ReasoningPanel.d.ts +15 -0
- package/dist/components/assistant-ui/elements/ReasoningPanel.js +11 -0
- package/dist/components/assistant-ui/elements/ReasoningRoot.d.ts +25 -0
- package/dist/components/assistant-ui/elements/ReasoningRoot.js +10 -0
- package/dist/components/assistant-ui/elements/ReasoningText.d.ts +5 -0
- package/dist/components/assistant-ui/elements/ReasoningText.js +8 -0
- package/dist/components/assistant-ui/elements/ReasoningTrigger.d.ts +9 -0
- package/dist/components/assistant-ui/elements/ReasoningTrigger.js +8 -0
- package/dist/components/assistant-ui/elements/RecommendationCard.d.ts +15 -0
- package/dist/components/assistant-ui/elements/RecommendationCard.js +9 -0
- package/dist/components/assistant-ui/elements/RegenerateMenu.d.ts +16 -0
- package/dist/components/assistant-ui/elements/RegenerateMenu.js +12 -0
- package/dist/components/assistant-ui/elements/ResearchReport.d.ts +17 -0
- package/dist/components/assistant-ui/elements/ResearchReport.js +7 -0
- package/dist/components/assistant-ui/elements/RetrievalChunks.d.ts +17 -0
- package/dist/components/assistant-ui/elements/RetrievalChunks.js +9 -0
- package/dist/components/assistant-ui/elements/ReviewableDiff.d.ts +19 -0
- package/dist/components/assistant-ui/elements/ReviewableDiff.js +8 -0
- package/dist/components/assistant-ui/elements/RunActivity.d.ts +23 -0
- package/dist/components/assistant-ui/elements/RunActivity.js +8 -0
- package/dist/components/assistant-ui/elements/ScheduleCard.d.ts +17 -0
- package/dist/components/assistant-ui/elements/ScheduleCard.js +8 -0
- package/dist/components/assistant-ui/elements/ScoreBreakdown.d.ts +17 -0
- package/dist/components/assistant-ui/elements/ScoreBreakdown.js +9 -0
- package/dist/components/assistant-ui/elements/ScrollAnchor.d.ts +13 -0
- package/dist/components/assistant-ui/elements/ScrollAnchor.js +7 -0
- package/dist/components/assistant-ui/elements/SettingsPanel.d.ts +21 -0
- package/dist/components/assistant-ui/elements/SettingsPanel.js +11 -0
- package/dist/components/assistant-ui/elements/ShareMeter.d.ts +10 -0
- package/dist/components/assistant-ui/elements/ShareMeter.js +6 -0
- package/dist/components/assistant-ui/elements/SharedConversation.d.ts +13 -0
- package/dist/components/assistant-ui/elements/SharedConversation.js +8 -0
- package/dist/components/assistant-ui/elements/ShikiHighlighter.d.ts +24 -0
- package/dist/components/assistant-ui/elements/ShikiHighlighter.js +7 -0
- package/dist/components/assistant-ui/elements/ShimmerLabel.d.ts +6 -0
- package/dist/components/assistant-ui/elements/ShimmerLabel.js +7 -0
- package/dist/components/assistant-ui/elements/SourceGlyph.d.ts +6 -0
- package/dist/components/assistant-ui/elements/SourceGlyph.js +6 -0
- package/dist/components/assistant-ui/elements/Sources.d.ts +18 -0
- package/dist/components/assistant-ui/elements/Sources.js +9 -0
- package/dist/components/assistant-ui/elements/SpeakerIdentity.d.ts +15 -0
- package/dist/components/assistant-ui/elements/SpeakerIdentity.js +7 -0
- package/dist/components/assistant-ui/elements/SpecSheet.d.ts +15 -0
- package/dist/components/assistant-ui/elements/SpecSheet.js +7 -0
- package/dist/components/assistant-ui/elements/StoppedRun.d.ts +10 -0
- package/dist/components/assistant-ui/elements/StoppedRun.js +8 -0
- package/dist/components/assistant-ui/elements/StreamingText.d.ts +13 -0
- package/dist/components/assistant-ui/elements/StreamingText.js +7 -0
- package/dist/components/assistant-ui/elements/Sub.d.ts +2 -0
- package/dist/components/assistant-ui/elements/Sub.js +6 -0
- package/dist/components/assistant-ui/elements/SubagentList.d.ts +15 -0
- package/dist/components/assistant-ui/elements/SubagentList.js +8 -0
- package/dist/components/assistant-ui/elements/Suggestions.d.ts +10 -0
- package/dist/components/assistant-ui/elements/Suggestions.js +8 -0
- package/dist/components/assistant-ui/elements/Sup.d.ts +2 -0
- package/dist/components/assistant-ui/elements/Sup.js +6 -0
- package/dist/components/assistant-ui/elements/SwapLabel.d.ts +7 -0
- package/dist/components/assistant-ui/elements/SwapLabel.js +8 -0
- package/dist/components/assistant-ui/elements/SyntaxHighlighter.d.ts +3 -0
- package/dist/components/assistant-ui/elements/SyntaxHighlighter.js +6 -0
- package/dist/components/assistant-ui/elements/TaskCard.d.ts +16 -0
- package/dist/components/assistant-ui/elements/TaskCard.js +9 -0
- package/dist/components/assistant-ui/elements/TaskStateIcon.d.ts +7 -0
- package/dist/components/assistant-ui/elements/TaskStateIcon.js +7 -0
- package/dist/components/assistant-ui/elements/TerminalAnsiFragment.d.ts +7 -0
- package/dist/components/assistant-ui/elements/TerminalBlock.d.ts +17 -0
- package/dist/components/assistant-ui/elements/TerminalBlock.js +9 -0
- package/dist/components/assistant-ui/elements/ThinkingIndicator.d.ts +8 -0
- package/dist/components/assistant-ui/elements/ThinkingIndicator.js +8 -0
- package/dist/components/assistant-ui/elements/ThreadList.d.ts +17 -0
- package/dist/components/assistant-ui/elements/ThreadList.js +8 -0
- package/dist/components/assistant-ui/elements/ThreadSearch.d.ts +25 -0
- package/dist/components/assistant-ui/elements/ThreadSearch.js +11 -0
- package/dist/components/assistant-ui/elements/Timeline.d.ts +16 -0
- package/dist/components/assistant-ui/elements/Timeline.js +7 -0
- package/dist/components/assistant-ui/elements/TodoList.d.ts +19 -0
- package/dist/components/assistant-ui/elements/TodoList.js +8 -0
- package/dist/components/assistant-ui/elements/ToolCall.d.ts +12 -0
- package/dist/components/assistant-ui/elements/ToolCall.js +11 -0
- package/dist/components/assistant-ui/elements/ToolError.d.ts +14 -0
- package/dist/components/assistant-ui/elements/ToolError.js +8 -0
- package/dist/components/assistant-ui/elements/ToolGroup.d.ts +18 -0
- package/dist/components/assistant-ui/elements/ToolGroup.js +8 -0
- package/dist/components/assistant-ui/elements/ToolTimeline.d.ts +24 -0
- package/dist/components/assistant-ui/elements/ToolTimeline.js +11 -0
- package/dist/components/assistant-ui/elements/TooltipIconButton.d.ts +9 -0
- package/dist/components/assistant-ui/elements/TooltipIconButton.js +12 -0
- package/dist/components/assistant-ui/elements/TraceWaterfall.d.ts +18 -0
- package/dist/components/assistant-ui/elements/TraceWaterfall.js +7 -0
- package/dist/components/assistant-ui/elements/TypingIndicator.d.ts +7 -0
- package/dist/components/assistant-ui/elements/TypingIndicator.js +7 -0
- package/dist/components/assistant-ui/elements/VideoPlayer.d.ts +9 -0
- package/dist/components/assistant-ui/elements/VideoPlayer.js +8 -0
- package/dist/components/assistant-ui/elements/VoiceConversation.d.ts +16 -0
- package/dist/components/assistant-ui/elements/VoiceConversation.js +8 -0
- package/dist/components/assistant-ui/elements/VoiceOrb.d.ts +8 -0
- package/dist/components/assistant-ui/elements/VoiceOrb.js +9 -0
- package/dist/components/assistant-ui/elements/WebPreview.d.ts +17 -0
- package/dist/components/assistant-ui/elements/WebPreview.js +9 -0
- package/dist/components/assistant-ui/elements/WebSearch.d.ts +15 -0
- package/dist/components/assistant-ui/elements/WebSearch.js +8 -0
- package/dist/components/assistant-ui/elements/composer/types.d.ts +27 -0
- package/dist/components/assistant-ui/elements/constants.d.ts +14 -0
- package/dist/components/assistant-ui/elements/types.d.ts +24 -0
- package/dist/components/assistant-ui/eveAskQuestionToolkit.d.ts +8 -0
- package/dist/components/assistant-ui/eveAskQuestionToolkit.js +12 -0
- package/dist/components/assistant-ui/hooks/useAttachmentSrc.d.ts +1 -0
- package/dist/components/assistant-ui/hooks/useContextDisplay.d.ts +2 -0
- package/dist/components/assistant-ui/hooks/useControllableState.d.ts +8 -0
- package/dist/components/assistant-ui/hooks/useConversationMapViewport.d.ts +10 -0
- package/dist/components/assistant-ui/hooks/useConversationProjection.d.ts +3 -0
- package/dist/components/assistant-ui/hooks/useCopyToClipboard.d.ts +9 -0
- package/dist/components/assistant-ui/hooks/useCustomServersSection.d.ts +11 -0
- package/dist/components/assistant-ui/hooks/useFitInComposer.d.ts +9 -0
- package/dist/components/assistant-ui/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/components/assistant-ui/hooks/useMediaDuration.d.ts +7 -0
- package/dist/components/assistant-ui/hooks/useModalSize.d.ts +13 -0
- package/dist/components/assistant-ui/hooks/useModelSelectorContext.d.ts +2 -0
- package/dist/components/assistant-ui/hooks/useModelSelectorEfforts.d.ts +8 -0
- package/dist/components/assistant-ui/hooks/usePrefersReducedMotion.d.ts +1 -0
- package/dist/components/assistant-ui/hooks/useReceiptFocus.d.ts +8 -0
- package/dist/components/assistant-ui/hooks/useResolvedPortalContainer.d.ts +6 -0
- package/dist/components/assistant-ui/hooks/useServerActionFocus.d.ts +7 -0
- package/dist/components/assistant-ui/hooks/useServerAnnouncement.d.ts +1 -0
- package/dist/components/assistant-ui/hooks/useStartOfToday.d.ts +1 -0
- package/dist/components/assistant-ui/hooks/useTaskElapsed.d.ts +2 -0
- package/dist/components/assistant-ui/hooks/useTaskSummary.d.ts +2 -0
- package/dist/components/assistant-ui/hooks/useThreadListGroups.d.ts +2 -0
- package/dist/components/assistant-ui/hooks/useVoiceTranscript.d.ts +2 -0
- package/dist/components/assistant-ui/index.d.ts +363 -0
- package/dist/components/assistant-ui/index.js +865 -0
- package/dist/components/assistant-ui/native/AgentStatus.d.ts +6 -0
- package/dist/components/assistant-ui/native/AgentStatus.js +10 -0
- package/dist/components/assistant-ui/native/AssistantModal.d.ts +2 -0
- package/dist/components/assistant-ui/native/AssistantModal.js +41 -0
- package/dist/components/assistant-ui/native/AssistantSidebar.d.ts +3 -0
- package/dist/components/assistant-ui/native/AssistantSidebar.js +40 -0
- package/dist/components/assistant-ui/native/AttachmentPreview.d.ts +4 -0
- package/dist/components/assistant-ui/native/AttachmentPreview.js +19 -0
- package/dist/components/assistant-ui/native/ComposerQuotePreview.d.ts +19 -0
- package/dist/components/assistant-ui/native/ComposerQuotePreview.js +14 -0
- package/dist/components/assistant-ui/native/ComposerTriggerPopover.d.ts +47 -0
- package/dist/components/assistant-ui/native/ComposerTriggerPopover.js +7 -0
- package/dist/components/assistant-ui/native/ContextDisplay.d.ts +15 -0
- package/dist/components/assistant-ui/native/ContextDisplay.js +22 -0
- package/dist/components/assistant-ui/native/ContextDisplayBar.d.ts +3 -0
- package/dist/components/assistant-ui/native/ContextDisplayBar.js +19 -0
- package/dist/components/assistant-ui/native/ContextDisplayRing.d.ts +3 -0
- package/dist/components/assistant-ui/native/ContextDisplayRing.js +19 -0
- package/dist/components/assistant-ui/native/ContextDisplayRoot.d.ts +8 -0
- package/dist/components/assistant-ui/native/ContextDisplayRoot.js +13 -0
- package/dist/components/assistant-ui/native/ContextDisplayRuntimeRoot.d.ts +3 -0
- package/dist/components/assistant-ui/native/ContextDisplayRuntimeRoot.js +12 -0
- package/dist/components/assistant-ui/native/ContextDisplayText.d.ts +3 -0
- package/dist/components/assistant-ui/native/ContextDisplayText.js +19 -0
- package/dist/components/assistant-ui/native/ConversationMapAui.d.ts +7 -0
- package/dist/components/assistant-ui/native/ConversationMapAui.js +12 -0
- package/dist/components/assistant-ui/native/DirectiveText.d.ts +3 -0
- package/dist/components/assistant-ui/native/DirectiveText.js +9 -0
- package/dist/components/assistant-ui/native/FollowupSuggestionsRow.d.ts +2 -0
- package/dist/components/assistant-ui/native/FollowupSuggestionsRow.js +6 -0
- package/dist/components/assistant-ui/native/McpConfigDialog.d.ts +27 -0
- package/dist/components/assistant-ui/native/McpConfigDialog.js +15 -0
- package/dist/components/assistant-ui/native/MermaidDiagram.d.ts +28 -0
- package/dist/components/assistant-ui/native/MermaidDiagram.js +14 -0
- package/dist/components/assistant-ui/native/MessageTiming.d.ts +25 -0
- package/dist/components/assistant-ui/native/MessageTiming.js +10 -0
- package/dist/components/assistant-ui/native/ModelSelector.d.ts +30 -0
- package/dist/components/assistant-ui/native/ModelSelector.js +30 -0
- package/dist/components/assistant-ui/native/QuoteBlock.d.ts +16 -0
- package/dist/components/assistant-ui/native/QuoteBlock.js +12 -0
- package/dist/components/assistant-ui/native/Reasoning.d.ts +30 -0
- package/dist/components/assistant-ui/native/Reasoning.js +27 -0
- package/dist/components/assistant-ui/native/SelectionToolbar.d.ts +19 -0
- package/dist/components/assistant-ui/native/SelectionToolbar.js +10 -0
- package/dist/components/assistant-ui/native/Sources.d.ts +46 -0
- package/dist/components/assistant-ui/native/Sources.js +16 -0
- package/dist/components/assistant-ui/native/SyntaxHighlighter.d.ts +28 -0
- package/dist/components/assistant-ui/native/SyntaxHighlighter.js +8 -0
- package/dist/components/assistant-ui/native/TaskCard.d.ts +11 -0
- package/dist/components/assistant-ui/native/TaskCard.js +21 -0
- package/dist/components/assistant-ui/native/TaskGroup.d.ts +8 -0
- package/dist/components/assistant-ui/native/TaskGroup.js +22 -0
- package/dist/components/assistant-ui/native/TaskTray.d.ts +3 -0
- package/dist/components/assistant-ui/native/TaskTray.js +14 -0
- package/dist/components/assistant-ui/native/Thread.d.ts +34 -0
- package/dist/components/assistant-ui/native/Thread.js +38 -0
- package/dist/components/assistant-ui/native/ThreadList.d.ts +24 -0
- package/dist/components/assistant-ui/native/ThreadList.js +23 -0
- package/dist/components/assistant-ui/native/ThreadListSidebar.d.ts +3 -0
- package/dist/components/assistant-ui/native/ThreadListSidebar.js +19 -0
- package/dist/components/assistant-ui/native/ToolFallbackRoot.d.ts +71 -0
- package/dist/components/assistant-ui/native/ToolFallbackRoot.js +28 -0
- package/dist/components/assistant-ui/native/ToolGroup.d.ts +38 -0
- package/dist/components/assistant-ui/native/ToolGroup.js +14 -0
- package/dist/components/assistant-ui/native/VoiceConnectButton.d.ts +2 -0
- package/dist/components/assistant-ui/native/VoiceConnectButton.js +8 -0
- package/dist/components/assistant-ui/native/VoiceControl.d.ts +2 -0
- package/dist/components/assistant-ui/native/VoiceControl.js +17 -0
- package/dist/components/assistant-ui/native/VoiceConversation.d.ts +3 -0
- package/dist/components/assistant-ui/native/VoiceConversation.js +9 -0
- package/dist/components/assistant-ui/native/VoiceDisconnectButton.d.ts +2 -0
- package/dist/components/assistant-ui/native/VoiceDisconnectButton.js +13 -0
- package/dist/components/assistant-ui/native/VoiceMuteButton.d.ts +2 -0
- package/dist/components/assistant-ui/native/VoiceMuteButton.js +13 -0
- package/dist/components/assistant-ui/native/VoiceOrb.d.ts +7 -0
- package/dist/components/assistant-ui/native/VoiceOrb.js +10 -0
- package/dist/components/assistant-ui/native/VoiceStatusDot.d.ts +2 -0
- package/dist/components/assistant-ui/native/VoiceStatusDot.js +7 -0
- package/dist/components/assistant-ui/native/constants.d.ts +3 -0
- package/dist/components/assistant-ui/native/index.d.ts +92 -0
- package/dist/components/assistant-ui/native/index.js +312 -0
- package/dist/components/assistant-ui/threadList/types.d.ts +11 -0
- package/dist/components/assistant-ui/utils/askQuestion.d.ts +14 -0
- package/dist/components/assistant-ui/utils/contextDisplayContext.d.ts +8 -0
- package/dist/components/assistant-ui/utils/contextUsage.d.ts +16 -0
- package/dist/components/assistant-ui/utils/dataTable/constants.d.ts +2 -0
- package/dist/components/assistant-ui/utils/dataTable/types.d.ts +66 -0
- package/dist/components/assistant-ui/utils/dataTableUtils.d.ts +20 -0
- package/dist/components/assistant-ui/utils/deriveVoiceOrbState.d.ts +3 -0
- package/dist/components/assistant-ui/utils/diffViewer/computeDiff.d.ts +2 -0
- package/dist/components/assistant-ui/utils/diffViewer/constants.d.ts +10 -0
- package/dist/components/assistant-ui/utils/diffViewer/formatUnifiedDiff.d.ts +2 -0
- package/dist/components/assistant-ui/utils/diffViewer/pairLinesForSplit.d.ts +2 -0
- package/dist/components/assistant-ui/utils/diffViewer/parsePatch.d.ts +2 -0
- package/dist/components/assistant-ui/utils/diffViewer/types.d.ts +33 -0
- package/dist/components/assistant-ui/utils/fileUtils.d.ts +10 -0
- package/dist/components/assistant-ui/utils/formatJobElapsed.d.ts +6 -0
- package/dist/components/assistant-ui/utils/formatMediaDuration.d.ts +1 -0
- package/dist/components/assistant-ui/utils/geoMap.d.ts +4 -0
- package/dist/components/assistant-ui/utils/getDotMatrixPattern.d.ts +151 -0
- package/dist/components/assistant-ui/utils/getNumberRollParts.d.ts +6 -0
- package/dist/components/assistant-ui/utils/groupThreads.d.ts +2 -0
- package/dist/components/assistant-ui/utils/href.d.ts +15 -0
- package/dist/components/assistant-ui/utils/imageUtils.d.ts +4 -0
- package/dist/components/assistant-ui/utils/isTaskPart.d.ts +6 -0
- package/dist/components/assistant-ui/utils/mcpConfigState.d.ts +6 -0
- package/dist/components/assistant-ui/utils/modelSelection.d.ts +34 -0
- package/dist/components/assistant-ui/utils/numberRollTypes.d.ts +17 -0
- package/dist/components/assistant-ui/utils/parseTerminalLine.d.ts +17 -0
- package/dist/components/assistant-ui/utils/prepareMermaidSvg.d.ts +1 -0
- package/dist/components/assistant-ui/utils/projectConversation.d.ts +3 -0
- package/dist/components/assistant-ui/utils/range.d.ts +32 -0
- package/dist/components/assistant-ui/utils/readTerminalBackground.d.ts +2 -0
- package/dist/components/assistant-ui/utils/readableTerminalForeground.d.ts +2 -0
- package/dist/components/assistant-ui/utils/reasoningPreviewContext.d.ts +1 -0
- package/dist/components/assistant-ui/utils/stripTerminalControls.d.ts +2 -0
- package/dist/components/assistant-ui/utils/taskSummary/types.d.ts +8 -0
- package/dist/components/assistant-ui/utils/taskSummaryUtils.d.ts +6 -0
- package/dist/components/assistant-ui/utils/taskUtils.d.ts +11 -0
- package/dist/components/assistant-ui/utils/tokens.d.ts +8 -0
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +19 -281
- package/dist/components/command/index.js +27 -139
- package/dist/components/message-scroller/index.js +1 -1
- package/dist/components/persian-calendar/index.js +2 -2
- package/dist/components/questionnaire/index.js +1 -1
- package/dist/components/resizable/SplitView.d.ts +3 -1
- package/dist/components/resizable/index.js +25 -67
- package/dist/components/sonner/index.js +2 -2
- package/dist/components/virtual-table/VirtualTable.d.ts +23 -0
- package/dist/components/virtual-table/index.d.ts +2 -0
- package/dist/components/virtual-table/index.js +103 -0
- package/dist/generative-ui.css +1578 -0
- package/dist/hooks/usePortalContainer.d.ts +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1892 -3461
- package/dist/options/types.d.ts +5 -0
- package/dist/portal/PortalContext.d.ts +1 -0
- package/dist/portal/types.d.ts +3 -0
- package/package.json +1050 -13
- package/dist/chunk-5wvvqege.js +0 -259
- package/patches/@shadcn%2Freact@0.3.1.patch +0 -35
- package/patches/input-otp@1.5.0.patch +0 -20
- package/patches/sonner@2.0.8.patch +0 -87
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import {
|
|
2
|
+
usePrefersReducedMotion
|
|
3
|
+
} from "./chunk-jy57625a.js";
|
|
4
|
+
import {
|
|
5
|
+
useTheme2
|
|
6
|
+
} from "./chunk-1j2hz3w9.js";
|
|
7
|
+
import {
|
|
8
|
+
cn2
|
|
9
|
+
} from "./chunk-cp2m7y7v.js";
|
|
10
|
+
|
|
11
|
+
// src/components/assistant-ui/elements/VoiceOrb.tsx
|
|
12
|
+
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
var VARIANT_TOKENS = {
|
|
15
|
+
default: ["--muted-foreground", "--foreground", "--faint-foreground"],
|
|
16
|
+
primary: ["--primary", "--foreground", "--muted-foreground"],
|
|
17
|
+
warning: ["--warning", "--foreground", "--muted-foreground"],
|
|
18
|
+
success: ["--success", "--foreground", "--muted-foreground"]
|
|
19
|
+
};
|
|
20
|
+
function readOrbPalette(element, variant) {
|
|
21
|
+
const canvas = document.createElement("canvas");
|
|
22
|
+
canvas.width = 1;
|
|
23
|
+
canvas.height = 1;
|
|
24
|
+
const context = canvas.getContext("2d", { willReadFrequently: true });
|
|
25
|
+
if (!context)
|
|
26
|
+
return null;
|
|
27
|
+
const style = getComputedStyle(element);
|
|
28
|
+
const readColor = (token) => {
|
|
29
|
+
context.clearRect(0, 0, 1, 1);
|
|
30
|
+
context.fillStyle = style.getPropertyValue(token);
|
|
31
|
+
context.fillRect(0, 0, 1, 1);
|
|
32
|
+
const pixels = context.getImageData(0, 0, 1, 1).data;
|
|
33
|
+
return [pixels[0] / 255, pixels[1] / 255, pixels[2] / 255];
|
|
34
|
+
};
|
|
35
|
+
const [first, second, third] = VARIANT_TOKENS[variant];
|
|
36
|
+
return [readColor(first), readColor(second), readColor(third)];
|
|
37
|
+
}
|
|
38
|
+
var STATE_PARAMS = {
|
|
39
|
+
idle: {
|
|
40
|
+
speed: 0.15,
|
|
41
|
+
amplitude: 0.04,
|
|
42
|
+
glow: 0.15,
|
|
43
|
+
brightness: 0.55,
|
|
44
|
+
pulse: 0,
|
|
45
|
+
saturation: 0.7
|
|
46
|
+
},
|
|
47
|
+
connecting: {
|
|
48
|
+
speed: 0.5,
|
|
49
|
+
amplitude: 0.1,
|
|
50
|
+
glow: 0.45,
|
|
51
|
+
brightness: 0.75,
|
|
52
|
+
pulse: 1,
|
|
53
|
+
saturation: 0.9
|
|
54
|
+
},
|
|
55
|
+
listening: {
|
|
56
|
+
speed: 0.4,
|
|
57
|
+
amplitude: 0.14,
|
|
58
|
+
glow: 0.5,
|
|
59
|
+
brightness: 0.85,
|
|
60
|
+
pulse: 0,
|
|
61
|
+
saturation: 1
|
|
62
|
+
},
|
|
63
|
+
speaking: {
|
|
64
|
+
speed: 1.4,
|
|
65
|
+
amplitude: 0.35,
|
|
66
|
+
glow: 0.9,
|
|
67
|
+
brightness: 1,
|
|
68
|
+
pulse: 0,
|
|
69
|
+
saturation: 1
|
|
70
|
+
},
|
|
71
|
+
muted: {
|
|
72
|
+
speed: 0.06,
|
|
73
|
+
amplitude: 0.015,
|
|
74
|
+
glow: 0.08,
|
|
75
|
+
brightness: 0.35,
|
|
76
|
+
pulse: 0,
|
|
77
|
+
saturation: 0.2
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var VERT_SRC = `#version 300 es
|
|
81
|
+
in vec2 a_position;
|
|
82
|
+
out vec2 v_uv;
|
|
83
|
+
void main() {
|
|
84
|
+
v_uv = a_position * 0.5 + 0.5;
|
|
85
|
+
gl_Position = vec4(a_position, 0.0, 1.0);
|
|
86
|
+
}`;
|
|
87
|
+
var FRAG_SRC = `#version 300 es
|
|
88
|
+
precision highp float;
|
|
89
|
+
|
|
90
|
+
in vec2 v_uv;
|
|
91
|
+
out vec4 fragColor;
|
|
92
|
+
|
|
93
|
+
uniform float u_time;
|
|
94
|
+
uniform float u_speed;
|
|
95
|
+
uniform float u_amplitude;
|
|
96
|
+
uniform float u_glow;
|
|
97
|
+
uniform float u_brightness;
|
|
98
|
+
uniform float u_pulse;
|
|
99
|
+
uniform float u_saturation;
|
|
100
|
+
uniform vec3 u_color0;
|
|
101
|
+
uniform vec3 u_color1;
|
|
102
|
+
uniform vec3 u_color2;
|
|
103
|
+
uniform float u_dpr;
|
|
104
|
+
|
|
105
|
+
// Simplex-like noise (3D)
|
|
106
|
+
vec3 mod289(vec3 x) { return x - floor(x / 289.0) * 289.0; }
|
|
107
|
+
vec4 mod289(vec4 x) { return x - floor(x / 289.0) * 289.0; }
|
|
108
|
+
vec4 permute(vec4 x) { return mod289((x * 34.0 + 1.0) * x); }
|
|
109
|
+
vec4 taylorInvSqrt(vec4 r) { return 1.79284291400159 - 0.85373472095314 * r; }
|
|
110
|
+
|
|
111
|
+
float snoise(vec3 v) {
|
|
112
|
+
const vec2 C = vec2(1.0 / 6.0, 1.0 / 3.0);
|
|
113
|
+
vec3 i = floor(v + dot(v, vec3(C.y)));
|
|
114
|
+
vec3 x0 = v - i + dot(i, vec3(C.x));
|
|
115
|
+
vec3 g = step(x0.yzx, x0.xyz);
|
|
116
|
+
vec3 l = 1.0 - g;
|
|
117
|
+
vec3 i1 = min(g, l.zxy);
|
|
118
|
+
vec3 i2 = max(g, l.zxy);
|
|
119
|
+
vec3 x1 = x0 - i1 + C.x;
|
|
120
|
+
vec3 x2 = x0 - i2 + C.y;
|
|
121
|
+
vec3 x3 = x0 - 0.5;
|
|
122
|
+
i = mod289(i);
|
|
123
|
+
vec4 p = permute(permute(permute(
|
|
124
|
+
i.z + vec4(0.0, i1.z, i2.z, 1.0))
|
|
125
|
+
+ i.y + vec4(0.0, i1.y, i2.y, 1.0))
|
|
126
|
+
+ i.x + vec4(0.0, i1.x, i2.x, 1.0));
|
|
127
|
+
vec4 j = p - 49.0 * floor(p / 49.0);
|
|
128
|
+
vec4 x_ = floor(j / 7.0);
|
|
129
|
+
vec4 y_ = floor(j - 7.0 * x_);
|
|
130
|
+
vec4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0;
|
|
131
|
+
vec4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0;
|
|
132
|
+
vec4 h = 1.0 - abs(x) - abs(y);
|
|
133
|
+
vec4 b0 = vec4(x.xy, y.xy);
|
|
134
|
+
vec4 b1 = vec4(x.zw, y.zw);
|
|
135
|
+
vec4 s0 = floor(b0) * 2.0 + 1.0;
|
|
136
|
+
vec4 s1 = floor(b1) * 2.0 + 1.0;
|
|
137
|
+
vec4 sh = -step(h, vec4(0.0));
|
|
138
|
+
vec4 a0 = b0.xzyw + s0.xzyw * sh.xxyy;
|
|
139
|
+
vec4 a1 = b1.xzyw + s1.xzyw * sh.zzww;
|
|
140
|
+
vec3 g0 = vec3(a0.xy, h.x);
|
|
141
|
+
vec3 g1 = vec3(a0.zw, h.y);
|
|
142
|
+
vec3 g2 = vec3(a1.xy, h.z);
|
|
143
|
+
vec3 g3 = vec3(a1.zw, h.w);
|
|
144
|
+
vec4 norm = taylorInvSqrt(vec4(dot(g0,g0), dot(g1,g1), dot(g2,g2), dot(g3,g3)));
|
|
145
|
+
g0 *= norm.x; g1 *= norm.y; g2 *= norm.z; g3 *= norm.w;
|
|
146
|
+
vec4 m = max(0.6 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0);
|
|
147
|
+
m = m * m;
|
|
148
|
+
return 42.0 * dot(m * m, vec4(dot(g0,x0), dot(g1,x1), dot(g2,x2), dot(g3,x3)));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
void main() {
|
|
152
|
+
vec2 uv = v_uv * 2.0 - 1.0;
|
|
153
|
+
float dist = length(uv);
|
|
154
|
+
float t = u_time * u_speed;
|
|
155
|
+
|
|
156
|
+
// Perfect circle — hard boundary, soft anti-aliased edge
|
|
157
|
+
float radius = 0.44;
|
|
158
|
+
float circle = 1.0 - smoothstep(radius - 0.008, radius + 0.008, dist);
|
|
159
|
+
|
|
160
|
+
if (circle < 0.001) {
|
|
161
|
+
// Outer glow only
|
|
162
|
+
float glowDist = dist - radius;
|
|
163
|
+
float glow = exp(-glowDist * 12.0) * u_glow * 0.4;
|
|
164
|
+
vec3 glowColor = mix(u_color0, u_color1, 0.5);
|
|
165
|
+
fragColor = vec4(glowColor * glow, glow);
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
float n1 = snoise(vec3(uv * 2.0, t * 0.6)) * 0.5 + 0.5;
|
|
170
|
+
float n2 = snoise(vec3(uv * 3.5 + 7.0, t * 0.9)) * 0.5 + 0.5;
|
|
171
|
+
float n3 = snoise(vec3(uv * 1.5 - 3.0, t * 0.4 + 10.0)) * 0.5 + 0.5;
|
|
172
|
+
|
|
173
|
+
vec2 distort = vec2(
|
|
174
|
+
snoise(vec3(uv * 2.0 + 5.0, t * 0.7)),
|
|
175
|
+
snoise(vec3(uv * 2.0 + 15.0, t * 0.7))
|
|
176
|
+
) * u_amplitude * 2.0;
|
|
177
|
+
float n4 = snoise(vec3((uv + distort) * 3.0, t * 0.5)) * 0.5 + 0.5;
|
|
178
|
+
|
|
179
|
+
vec3 col = mix(u_color0, u_color1, n1);
|
|
180
|
+
col = mix(col, u_color2, n2 * 0.5);
|
|
181
|
+
col = mix(col, u_color1 * 1.3, n4 * 0.4);
|
|
182
|
+
|
|
183
|
+
float vein = pow(n3, 3.0) * u_amplitude * 6.0;
|
|
184
|
+
col += vein * mix(u_color1, vec3(1.0), 0.3);
|
|
185
|
+
|
|
186
|
+
float centerDist = dist / radius;
|
|
187
|
+
float depthShade = 1.0 - centerDist * centerDist * 0.4;
|
|
188
|
+
col *= depthShade;
|
|
189
|
+
|
|
190
|
+
float rim = pow(centerDist, 4.0) * 0.6;
|
|
191
|
+
col += rim * mix(u_color0, vec3(1.0), 0.5);
|
|
192
|
+
|
|
193
|
+
vec2 lightPos = vec2(-0.15, -0.18);
|
|
194
|
+
float specDist = length(uv - lightPos);
|
|
195
|
+
float spec = exp(-specDist * specDist * 30.0) * 0.7;
|
|
196
|
+
col += spec * vec3(1.0);
|
|
197
|
+
|
|
198
|
+
vec2 lightPos2 = vec2(0.2, 0.25);
|
|
199
|
+
float spec2 = exp(-length(uv - lightPos2) * 8.0) * 0.15;
|
|
200
|
+
col += spec2 * u_color1;
|
|
201
|
+
|
|
202
|
+
float pulseFactor = 1.0 + u_pulse * sin(u_time * 3.5) * 0.35;
|
|
203
|
+
|
|
204
|
+
float lum = dot(col, vec3(0.299, 0.587, 0.114));
|
|
205
|
+
col = mix(vec3(lum), col, u_saturation);
|
|
206
|
+
|
|
207
|
+
col *= u_brightness * pulseFactor;
|
|
208
|
+
|
|
209
|
+
fragColor = vec4(col, circle);
|
|
210
|
+
}`;
|
|
211
|
+
function createShader(gl, type, source) {
|
|
212
|
+
const shader = gl.createShader(type);
|
|
213
|
+
if (!shader)
|
|
214
|
+
return null;
|
|
215
|
+
gl.shaderSource(shader, source);
|
|
216
|
+
gl.compileShader(shader);
|
|
217
|
+
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
|
|
218
|
+
gl.deleteShader(shader);
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
return shader;
|
|
222
|
+
}
|
|
223
|
+
function initWebGL(canvas) {
|
|
224
|
+
const gl = canvas.getContext("webgl2", {
|
|
225
|
+
alpha: true,
|
|
226
|
+
premultipliedAlpha: false,
|
|
227
|
+
antialias: true
|
|
228
|
+
});
|
|
229
|
+
if (!gl)
|
|
230
|
+
return null;
|
|
231
|
+
const vs = createShader(gl, gl.VERTEX_SHADER, VERT_SRC);
|
|
232
|
+
const fs = createShader(gl, gl.FRAGMENT_SHADER, FRAG_SRC);
|
|
233
|
+
if (!vs || !fs) {
|
|
234
|
+
if (vs)
|
|
235
|
+
gl.deleteShader(vs);
|
|
236
|
+
if (fs)
|
|
237
|
+
gl.deleteShader(fs);
|
|
238
|
+
return null;
|
|
239
|
+
}
|
|
240
|
+
const program = gl.createProgram();
|
|
241
|
+
gl.attachShader(program, vs);
|
|
242
|
+
gl.attachShader(program, fs);
|
|
243
|
+
gl.linkProgram(program);
|
|
244
|
+
gl.deleteShader(vs);
|
|
245
|
+
gl.deleteShader(fs);
|
|
246
|
+
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
|
|
247
|
+
gl.deleteProgram(program);
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
gl.useProgram(program);
|
|
251
|
+
const buf = gl.createBuffer();
|
|
252
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, buf);
|
|
253
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]), gl.STATIC_DRAW);
|
|
254
|
+
const loc = gl.getAttribLocation(program, "a_position");
|
|
255
|
+
gl.enableVertexAttribArray(loc);
|
|
256
|
+
gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0);
|
|
257
|
+
gl.enable(gl.BLEND);
|
|
258
|
+
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
|
|
259
|
+
const uniforms = {
|
|
260
|
+
u_time: gl.getUniformLocation(program, "u_time"),
|
|
261
|
+
u_speed: gl.getUniformLocation(program, "u_speed"),
|
|
262
|
+
u_amplitude: gl.getUniformLocation(program, "u_amplitude"),
|
|
263
|
+
u_glow: gl.getUniformLocation(program, "u_glow"),
|
|
264
|
+
u_brightness: gl.getUniformLocation(program, "u_brightness"),
|
|
265
|
+
u_pulse: gl.getUniformLocation(program, "u_pulse"),
|
|
266
|
+
u_saturation: gl.getUniformLocation(program, "u_saturation"),
|
|
267
|
+
u_color0: gl.getUniformLocation(program, "u_color0"),
|
|
268
|
+
u_color1: gl.getUniformLocation(program, "u_color1"),
|
|
269
|
+
u_color2: gl.getUniformLocation(program, "u_color2"),
|
|
270
|
+
u_dpr: gl.getUniformLocation(program, "u_dpr")
|
|
271
|
+
};
|
|
272
|
+
return { gl, uniforms, program, buffer: buf };
|
|
273
|
+
}
|
|
274
|
+
function lerp(a, b, t) {
|
|
275
|
+
return a + (b - a) * t;
|
|
276
|
+
}
|
|
277
|
+
var VoiceOrb3 = memo(function VoiceOrb({ state = "idle", volume = 0, variant = "default" }) {
|
|
278
|
+
const prefersReducedMotion = usePrefersReducedMotion();
|
|
279
|
+
const reducedMotionRef = useRef(prefersReducedMotion);
|
|
280
|
+
const volumeRef = useRef(0);
|
|
281
|
+
volumeRef.current = volume;
|
|
282
|
+
const canvasRef = useRef(null);
|
|
283
|
+
const glRef = useRef(null);
|
|
284
|
+
const animRef = useRef(0);
|
|
285
|
+
const startTime = useRef(performance.now());
|
|
286
|
+
const currentParams = useRef({ ...STATE_PARAMS.idle });
|
|
287
|
+
const targetParams = useRef({ ...STATE_PARAMS.idle });
|
|
288
|
+
useEffect(() => {
|
|
289
|
+
targetParams.current = { ...STATE_PARAMS[state] };
|
|
290
|
+
}, [state]);
|
|
291
|
+
const colorScheme = useTheme2().resolvedTheme;
|
|
292
|
+
const colorsRef = useRef(null);
|
|
293
|
+
useEffect(() => {
|
|
294
|
+
const canvas = canvasRef.current;
|
|
295
|
+
if (canvas)
|
|
296
|
+
colorsRef.current = readOrbPalette(canvas, variant);
|
|
297
|
+
}, [variant, colorScheme]);
|
|
298
|
+
const [ready, setReady] = useState(false);
|
|
299
|
+
useEffect(() => {
|
|
300
|
+
const id = requestAnimationFrame(() => setReady(true));
|
|
301
|
+
return () => {
|
|
302
|
+
cancelAnimationFrame(id);
|
|
303
|
+
};
|
|
304
|
+
}, []);
|
|
305
|
+
const render = useCallback(() => {
|
|
306
|
+
const ctx = glRef.current;
|
|
307
|
+
if (!ctx)
|
|
308
|
+
return;
|
|
309
|
+
const colors = colorsRef.current;
|
|
310
|
+
if (!colors)
|
|
311
|
+
return;
|
|
312
|
+
const { gl, uniforms } = ctx;
|
|
313
|
+
const canvas = canvasRef.current;
|
|
314
|
+
if (!canvas)
|
|
315
|
+
return;
|
|
316
|
+
const p = currentParams.current;
|
|
317
|
+
const tp = targetParams.current;
|
|
318
|
+
const s = reducedMotionRef.current ? 1 : 0.045;
|
|
319
|
+
p.speed = lerp(p.speed, tp.speed, s);
|
|
320
|
+
p.amplitude = lerp(p.amplitude, tp.amplitude, s);
|
|
321
|
+
p.glow = lerp(p.glow, tp.glow, s);
|
|
322
|
+
p.brightness = lerp(p.brightness, tp.brightness, s);
|
|
323
|
+
p.pulse = lerp(p.pulse, tp.pulse, s);
|
|
324
|
+
p.saturation = lerp(p.saturation, tp.saturation, s);
|
|
325
|
+
const elapsed = reducedMotionRef.current ? 0 : (performance.now() - startTime.current) / 1000;
|
|
326
|
+
const dpr = window.devicePixelRatio || 1;
|
|
327
|
+
const rect = canvas.getBoundingClientRect();
|
|
328
|
+
const w = Math.round(rect.width * dpr);
|
|
329
|
+
const h = Math.round(rect.height * dpr);
|
|
330
|
+
if (canvas.width !== w || canvas.height !== h) {
|
|
331
|
+
canvas.width = w;
|
|
332
|
+
canvas.height = h;
|
|
333
|
+
}
|
|
334
|
+
gl.viewport(0, 0, w, h);
|
|
335
|
+
gl.clearColor(0, 0, 0, 0);
|
|
336
|
+
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
337
|
+
const vol = volumeRef.current;
|
|
338
|
+
gl.uniform1f(uniforms.u_time, elapsed);
|
|
339
|
+
gl.uniform1f(uniforms.u_speed, p.speed + vol * 0.4);
|
|
340
|
+
gl.uniform1f(uniforms.u_amplitude, p.amplitude + vol * 0.12);
|
|
341
|
+
gl.uniform1f(uniforms.u_glow, p.glow + vol * 0.2);
|
|
342
|
+
gl.uniform1f(uniforms.u_brightness, p.brightness);
|
|
343
|
+
gl.uniform1f(uniforms.u_pulse, p.pulse);
|
|
344
|
+
gl.uniform1f(uniforms.u_saturation, p.saturation);
|
|
345
|
+
gl.uniform3fv(uniforms.u_color0, colors[0]);
|
|
346
|
+
gl.uniform3fv(uniforms.u_color1, colors[1]);
|
|
347
|
+
gl.uniform3fv(uniforms.u_color2, colors[2]);
|
|
348
|
+
gl.uniform1f(uniforms.u_dpr, dpr);
|
|
349
|
+
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
|
350
|
+
if (!reducedMotionRef.current)
|
|
351
|
+
animRef.current = requestAnimationFrame(render);
|
|
352
|
+
}, []);
|
|
353
|
+
useEffect(() => {
|
|
354
|
+
if (!ready)
|
|
355
|
+
return;
|
|
356
|
+
const canvas = canvasRef.current;
|
|
357
|
+
if (!canvas)
|
|
358
|
+
return;
|
|
359
|
+
glRef.current = initWebGL(canvas);
|
|
360
|
+
if (!glRef.current)
|
|
361
|
+
return;
|
|
362
|
+
animRef.current = requestAnimationFrame(render);
|
|
363
|
+
return () => {
|
|
364
|
+
cancelAnimationFrame(animRef.current);
|
|
365
|
+
const ctx = glRef.current;
|
|
366
|
+
if (ctx) {
|
|
367
|
+
ctx.gl.useProgram(null);
|
|
368
|
+
ctx.gl.bindBuffer(ctx.gl.ARRAY_BUFFER, null);
|
|
369
|
+
ctx.gl.deleteBuffer(ctx.buffer);
|
|
370
|
+
ctx.gl.deleteProgram(ctx.program);
|
|
371
|
+
}
|
|
372
|
+
glRef.current = null;
|
|
373
|
+
};
|
|
374
|
+
}, [ready, render]);
|
|
375
|
+
useEffect(() => {
|
|
376
|
+
reducedMotionRef.current = prefersReducedMotion;
|
|
377
|
+
if (ready) {
|
|
378
|
+
cancelAnimationFrame(animRef.current);
|
|
379
|
+
render();
|
|
380
|
+
}
|
|
381
|
+
}, [ready, prefersReducedMotion, render]);
|
|
382
|
+
useEffect(() => {
|
|
383
|
+
if (ready && prefersReducedMotion)
|
|
384
|
+
render();
|
|
385
|
+
}, [ready, prefersReducedMotion, render, state, volume, variant, colorScheme]);
|
|
386
|
+
return /* @__PURE__ */ jsx("canvas", {
|
|
387
|
+
"data-testid": "VoiceOrb",
|
|
388
|
+
ref: canvasRef,
|
|
389
|
+
role: "img",
|
|
390
|
+
"aria-label": `Voice activity: ${state}`,
|
|
391
|
+
className: cn2("aui-voice-orb size-16 shrink-0"),
|
|
392
|
+
"data-state": state
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
VoiceOrb3.displayName = "VoiceOrb";
|
|
396
|
+
|
|
397
|
+
export { VoiceOrb3 };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button2
|
|
3
|
+
} from "./chunk-73rkr9ct.js";
|
|
4
|
+
import {
|
|
5
|
+
Card2,
|
|
6
|
+
CardHeader2,
|
|
7
|
+
CardTitle2,
|
|
8
|
+
CardDescription2,
|
|
9
|
+
CardContent2,
|
|
10
|
+
CardFooter2
|
|
11
|
+
} from "./chunk-fqekyjkh.js";
|
|
12
|
+
import {
|
|
13
|
+
Field2,
|
|
14
|
+
FieldLabel2
|
|
15
|
+
} from "./chunk-6jpz5geq.js";
|
|
16
|
+
import {
|
|
17
|
+
Textarea2
|
|
18
|
+
} from "./chunk-hz9azhzx.js";
|
|
19
|
+
import {
|
|
20
|
+
ToggleGroup2,
|
|
21
|
+
ToggleGroupItem2
|
|
22
|
+
} from "./chunk-aexby8h3.js";
|
|
23
|
+
|
|
24
|
+
// src/components/assistant-ui/elements/FeedbackDialog.tsx
|
|
25
|
+
import { useId } from "react";
|
|
26
|
+
import { CheckIcon, ThumbsDownIcon } from "lucide-react";
|
|
27
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
28
|
+
function FeedbackDialog2({
|
|
29
|
+
reasons,
|
|
30
|
+
selected,
|
|
31
|
+
note,
|
|
32
|
+
sent,
|
|
33
|
+
onToggleReason,
|
|
34
|
+
onNoteChange,
|
|
35
|
+
onSubmit,
|
|
36
|
+
...props
|
|
37
|
+
}) {
|
|
38
|
+
const noteId = useId();
|
|
39
|
+
return /* @__PURE__ */ jsxs(Card2, {
|
|
40
|
+
"data-testid": "FeedbackDialog",
|
|
41
|
+
className: "w-full max-w-sm",
|
|
42
|
+
...props,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsx("div", {
|
|
45
|
+
role: "status",
|
|
46
|
+
className: sent ? "flex items-center gap-control-gap px-panel" : "sr-only",
|
|
47
|
+
children: sent && /* @__PURE__ */ jsxs(Fragment, {
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsx(CheckIcon, {
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
className: "size-4 text-success"
|
|
52
|
+
}),
|
|
53
|
+
"Thanks. That helps us tune the model."
|
|
54
|
+
]
|
|
55
|
+
})
|
|
56
|
+
}),
|
|
57
|
+
!sent && /* @__PURE__ */ jsxs(Fragment, {
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ jsxs(CardHeader2, {
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsxs(CardTitle2, {
|
|
62
|
+
className: "flex items-center gap-control-gap",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsx(ThumbsDownIcon, {
|
|
65
|
+
"aria-hidden": "true",
|
|
66
|
+
className: "size-4"
|
|
67
|
+
}),
|
|
68
|
+
"What went wrong?"
|
|
69
|
+
]
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ jsx(CardDescription2, {
|
|
72
|
+
children: "Optional"
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsxs(CardContent2, {
|
|
77
|
+
className: "flex flex-col gap-field-gap",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ jsx(ToggleGroup2, {
|
|
80
|
+
multiple: true,
|
|
81
|
+
value: [...selected],
|
|
82
|
+
disabled: !onToggleReason,
|
|
83
|
+
"aria-label": "Feedback reasons",
|
|
84
|
+
variant: "outline",
|
|
85
|
+
className: "flex-wrap",
|
|
86
|
+
onValueChange: (next) => {
|
|
87
|
+
for (const reason of reasons) {
|
|
88
|
+
if (next.includes(reason) !== selected.includes(reason))
|
|
89
|
+
onToggleReason?.(reason);
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
children: reasons.map((reason) => /* @__PURE__ */ jsx(ToggleGroupItem2, {
|
|
93
|
+
value: reason,
|
|
94
|
+
children: reason
|
|
95
|
+
}, reason))
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ jsxs(Field2, {
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ jsx(FieldLabel2, {
|
|
100
|
+
htmlFor: noteId,
|
|
101
|
+
children: "Anything else?"
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ jsx(Textarea2, {
|
|
104
|
+
id: noteId,
|
|
105
|
+
value: note,
|
|
106
|
+
readOnly: !onNoteChange,
|
|
107
|
+
onChange: (event) => onNoteChange?.(event.target.value),
|
|
108
|
+
rows: 2
|
|
109
|
+
})
|
|
110
|
+
]
|
|
111
|
+
})
|
|
112
|
+
]
|
|
113
|
+
}),
|
|
114
|
+
onSubmit && /* @__PURE__ */ jsx(CardFooter2, {
|
|
115
|
+
className: "justify-end",
|
|
116
|
+
children: /* @__PURE__ */ jsx(Button2, {
|
|
117
|
+
onClick: onSubmit,
|
|
118
|
+
children: "Send feedback"
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { FeedbackDialog2 };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn2
|
|
3
|
+
} from "./chunk-cp2m7y7v.js";
|
|
4
|
+
import {
|
|
5
|
+
Button2
|
|
6
|
+
} from "./chunk-73rkr9ct.js";
|
|
7
|
+
import {
|
|
8
|
+
paper,
|
|
9
|
+
mono
|
|
10
|
+
} from "./chunk-fgmcbtyt.js";
|
|
11
|
+
|
|
12
|
+
// src/components/assistant-ui/elements/DraftRestore.tsx
|
|
13
|
+
import { PencilLineIcon, XIcon } from "lucide-react";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
function DraftRestore2({ draft, savedAt, onRestore, onDiscard, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
17
|
+
"data-testid": "DraftRestore",
|
|
18
|
+
"data-slot": "draft-restore",
|
|
19
|
+
className: cn2(paper, "fade-in slide-in-from-bottom-1 animate-in flex w-full max-w-sm items-center gap-2.5 rounded-md py-2 pr-2 pl-3.5 duration-300"),
|
|
20
|
+
...props,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ jsx(PencilLineIcon, {
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
className: cn2("size-4")
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsxs("div", {
|
|
27
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ jsx("span", {
|
|
30
|
+
className: "text-foreground/70 truncate text-base",
|
|
31
|
+
children: draft
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ jsxs("span", {
|
|
34
|
+
className: cn2(mono, "text-muted-foreground"),
|
|
35
|
+
children: [
|
|
36
|
+
"unsent draft · ",
|
|
37
|
+
savedAt
|
|
38
|
+
]
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ jsx(Button2, {
|
|
43
|
+
type: "button",
|
|
44
|
+
onClick: onRestore,
|
|
45
|
+
disabled: !onRestore,
|
|
46
|
+
variant: "outline",
|
|
47
|
+
children: "Restore"
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ jsx(Button2, {
|
|
50
|
+
type: "button",
|
|
51
|
+
"aria-label": "Discard the draft",
|
|
52
|
+
onClick: onDiscard,
|
|
53
|
+
disabled: !onDiscard,
|
|
54
|
+
variant: "ghost",
|
|
55
|
+
size: "icon",
|
|
56
|
+
children: /* @__PURE__ */ jsx(XIcon, {
|
|
57
|
+
"aria-hidden": "true",
|
|
58
|
+
"data-icon": "inline-start"
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { DraftRestore2 };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button2
|
|
3
|
+
} from "./chunk-73rkr9ct.js";
|
|
4
|
+
import {
|
|
5
|
+
Card2,
|
|
6
|
+
CardHeader2,
|
|
7
|
+
CardTitle2,
|
|
8
|
+
CardDescription2,
|
|
9
|
+
CardContent2
|
|
10
|
+
} from "./chunk-fqekyjkh.js";
|
|
11
|
+
|
|
12
|
+
// src/components/assistant-ui/elements/BackgroundInbox.tsx
|
|
13
|
+
import { CheckIcon, Loader2Icon, XIcon } from "lucide-react";
|
|
14
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
15
|
+
function BackgroundInbox2({ runs, onCollect, ...props }) {
|
|
16
|
+
const ready = runs.filter((run) => run.state === "ready").length;
|
|
17
|
+
const running = runs.filter((run) => run.state === "running").length;
|
|
18
|
+
return /* @__PURE__ */ jsxs(Card2, {
|
|
19
|
+
"data-testid": "BackgroundInbox",
|
|
20
|
+
className: "w-full max-w-sm",
|
|
21
|
+
...props,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsxs(CardHeader2, {
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsx(CardTitle2, {
|
|
26
|
+
children: "Running elsewhere"
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsx(CardDescription2, {
|
|
29
|
+
children: ready > 0 ? `${ready} ready` : `${running} in flight`
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ jsx(CardContent2, {
|
|
34
|
+
className: "flex flex-col gap-control-gap",
|
|
35
|
+
children: runs.map((run) => {
|
|
36
|
+
const content = /* @__PURE__ */ jsxs(Fragment, {
|
|
37
|
+
children: [
|
|
38
|
+
run.state === "running" ? /* @__PURE__ */ jsx(Loader2Icon, {
|
|
39
|
+
"aria-hidden": "true",
|
|
40
|
+
className: "size-4 shrink-0 animate-spin motion-reduce:animate-none"
|
|
41
|
+
}) : run.state === "failed" ? /* @__PURE__ */ jsx(XIcon, {
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
className: "size-4 shrink-0 text-destructive"
|
|
44
|
+
}) : /* @__PURE__ */ jsx(CheckIcon, {
|
|
45
|
+
"aria-hidden": "true",
|
|
46
|
+
className: "size-4 shrink-0 text-success"
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ jsxs("span", {
|
|
49
|
+
className: "flex min-w-0 flex-1 flex-col gap-control-gap",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ jsx("span", {
|
|
52
|
+
className: "truncate",
|
|
53
|
+
children: run.title
|
|
54
|
+
}),
|
|
55
|
+
run.summary && /* @__PURE__ */ jsx("span", {
|
|
56
|
+
className: "truncate text-sm text-muted-foreground",
|
|
57
|
+
children: run.summary
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ jsx("span", {
|
|
62
|
+
className: "shrink-0 text-sm text-muted-foreground tabular-nums",
|
|
63
|
+
children: run.elapsed
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
return onCollect ? /* @__PURE__ */ jsx(Button2, {
|
|
68
|
+
fullWidth: true,
|
|
69
|
+
align: "start",
|
|
70
|
+
size: "content",
|
|
71
|
+
variant: "ghost",
|
|
72
|
+
disabled: run.state === "running",
|
|
73
|
+
onClick: () => onCollect(run.id),
|
|
74
|
+
children: content
|
|
75
|
+
}, run.id) : /* @__PURE__ */ jsx("div", {
|
|
76
|
+
className: "flex items-center gap-control-gap py-control-y",
|
|
77
|
+
children: content
|
|
78
|
+
}, run.id);
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { BackgroundInbox2 };
|