@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,1005 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useResolvedPortalContainer
|
|
3
|
+
} from "./chunk-dtkw8m6d.js";
|
|
4
|
+
import {
|
|
5
|
+
useDensity
|
|
6
|
+
} from "./chunk-e6hk39ev.js";
|
|
7
|
+
import {
|
|
8
|
+
cn2
|
|
9
|
+
} from "./chunk-cp2m7y7v.js";
|
|
10
|
+
import {
|
|
11
|
+
Button2
|
|
12
|
+
} from "./chunk-73rkr9ct.js";
|
|
13
|
+
import {
|
|
14
|
+
TooltipIconButton2
|
|
15
|
+
} from "./chunk-q40gqpwh.js";
|
|
16
|
+
import {
|
|
17
|
+
UserMessageAttachments2,
|
|
18
|
+
ComposerAttachments3,
|
|
19
|
+
ComposerAddAttachment2
|
|
20
|
+
} from "./chunk-j5wk4ffj.js";
|
|
21
|
+
import {
|
|
22
|
+
getFileHref,
|
|
23
|
+
File2
|
|
24
|
+
} from "./chunk-ef04mmf4.js";
|
|
25
|
+
import {
|
|
26
|
+
ThreadFollowupSuggestions2
|
|
27
|
+
} from "./chunk-c2vcrwjp.js";
|
|
28
|
+
import {
|
|
29
|
+
Image2
|
|
30
|
+
} from "./chunk-1apg76a7.js";
|
|
31
|
+
import {
|
|
32
|
+
MarkdownText2
|
|
33
|
+
} from "./chunk-q2ewq67a.js";
|
|
34
|
+
import {
|
|
35
|
+
ReasoningTrigger2
|
|
36
|
+
} from "./chunk-3c7tvhtx.js";
|
|
37
|
+
import {
|
|
38
|
+
ReasoningContent2
|
|
39
|
+
} from "./chunk-wnyxdfzd.js";
|
|
40
|
+
import {
|
|
41
|
+
ReasoningText2
|
|
42
|
+
} from "./chunk-m99hfsps.js";
|
|
43
|
+
import {
|
|
44
|
+
ReasoningRoot2,
|
|
45
|
+
Reasoning2
|
|
46
|
+
} from "./chunk-9msk1t9e.js";
|
|
47
|
+
import {
|
|
48
|
+
ToolFallback2
|
|
49
|
+
} from "./chunk-yp12vs0s.js";
|
|
50
|
+
import {
|
|
51
|
+
ToolGroupRoot2,
|
|
52
|
+
ToolGroupTrigger2,
|
|
53
|
+
ToolGroupContent2
|
|
54
|
+
} from "./chunk-sbrpnv8s.js";
|
|
55
|
+
import {
|
|
56
|
+
Skeleton2
|
|
57
|
+
} from "./chunk-d70rcwk7.js";
|
|
58
|
+
|
|
59
|
+
// src/components/assistant-ui/native/Thread.tsx
|
|
60
|
+
import {
|
|
61
|
+
ActionBarMorePrimitive,
|
|
62
|
+
ActionBarPrimitive,
|
|
63
|
+
AuiIf,
|
|
64
|
+
BranchPickerPrimitive,
|
|
65
|
+
ComposerPrimitive,
|
|
66
|
+
ErrorPrimitive,
|
|
67
|
+
groupPartByType,
|
|
68
|
+
MessagePrimitive,
|
|
69
|
+
SuggestionPrimitive,
|
|
70
|
+
ThreadPrimitive,
|
|
71
|
+
useAuiState
|
|
72
|
+
} from "@assistant-ui/react";
|
|
73
|
+
import {
|
|
74
|
+
ArrowDownIcon,
|
|
75
|
+
ArrowUpIcon,
|
|
76
|
+
AudioLinesIcon,
|
|
77
|
+
CheckIcon,
|
|
78
|
+
ChevronLeftIcon,
|
|
79
|
+
ChevronRightIcon,
|
|
80
|
+
CopyIcon,
|
|
81
|
+
DownloadIcon,
|
|
82
|
+
MicIcon,
|
|
83
|
+
MoreHorizontalIcon,
|
|
84
|
+
PencilIcon,
|
|
85
|
+
PhoneIcon,
|
|
86
|
+
RefreshCwIcon,
|
|
87
|
+
SquareIcon,
|
|
88
|
+
PlayIcon,
|
|
89
|
+
ThumbsDownIcon,
|
|
90
|
+
ThumbsUpIcon
|
|
91
|
+
} from "lucide-react";
|
|
92
|
+
import {
|
|
93
|
+
createContext,
|
|
94
|
+
useContext,
|
|
95
|
+
useLayoutEffect,
|
|
96
|
+
useRef
|
|
97
|
+
} from "react";
|
|
98
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
99
|
+
var shouldShowComposerResume = (s) => !!s.thread.canResume && s.composer.type === "thread" && s.composer.isEmpty;
|
|
100
|
+
var reasoningDuration = (timing) => timing?.completedAt === undefined ? undefined : Math.round((timing.completedAt - timing.startedAt) / 1000);
|
|
101
|
+
var messageGroupBy = groupPartByType({
|
|
102
|
+
reasoning: ["group-chainOfThought", "group-reasoning"],
|
|
103
|
+
"tool-call": ["group-chainOfThought", "group-tool"],
|
|
104
|
+
"standalone-tool-call": []
|
|
105
|
+
});
|
|
106
|
+
var TASK_GROUP_PATH = ["group-chainOfThought", "group-task"];
|
|
107
|
+
var taskAwareGroupBy = (part, context) => {
|
|
108
|
+
const path = messageGroupBy(part, context);
|
|
109
|
+
return part.type === "tool-call" && part.messages !== undefined && path.length > 0 && !context?.toolUIs?.[part.toolName]?.length ? TASK_GROUP_PATH : path;
|
|
110
|
+
};
|
|
111
|
+
var EMPTY_COMPONENTS = {};
|
|
112
|
+
var ThreadComponentsContext = createContext(EMPTY_COMPONENTS);
|
|
113
|
+
var isNewChatView = (s) => s.thread.messages.length === 0 && (!s.thread.isLoading || s.threads.isLoading);
|
|
114
|
+
var isHistoryLoadingView = (s) => s.thread.messages.length === 0 && s.thread.isLoading && !s.thread.isDisabled && !s.threads.isLoading;
|
|
115
|
+
var ThreadHistorySkeleton = () => /* @__PURE__ */ jsxs("div", {
|
|
116
|
+
"data-slot": "aui_thread-history-skeleton",
|
|
117
|
+
role: "status",
|
|
118
|
+
className: "animate-in fade-in fill-mode-both flex flex-col gap-y-6 [animation-delay:150ms] [animation-duration:200ms]",
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ jsx("span", {
|
|
121
|
+
className: "sr-only",
|
|
122
|
+
children: "Loading conversation"
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ jsx(Skeleton2, {
|
|
125
|
+
className: "h-3 w-full"
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ jsxs("div", {
|
|
128
|
+
className: "flex flex-col gap-y-2",
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ jsx(Skeleton2, {
|
|
131
|
+
className: "h-3 w-full"
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ jsx(Skeleton2, {
|
|
134
|
+
className: "h-3 w-full"
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ jsx(Skeleton2, {
|
|
137
|
+
className: "h-3 w-full"
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ jsx(Skeleton2, {
|
|
142
|
+
className: "h-3 w-full"
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ jsxs("div", {
|
|
145
|
+
className: "flex flex-col gap-y-2",
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ jsx(Skeleton2, {
|
|
148
|
+
className: "h-3 w-full"
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ jsx(Skeleton2, {
|
|
151
|
+
className: "h-3 w-full"
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
})
|
|
155
|
+
]
|
|
156
|
+
});
|
|
157
|
+
function Thread2({
|
|
158
|
+
components = EMPTY_COMPONENTS,
|
|
159
|
+
autoFocus = true,
|
|
160
|
+
emptyComposerPosition = "center"
|
|
161
|
+
}) {
|
|
162
|
+
const isEmpty = useAuiState(isNewChatView);
|
|
163
|
+
return /* @__PURE__ */ jsx(ThreadComponentsContext.Provider, {
|
|
164
|
+
value: components,
|
|
165
|
+
children: /* @__PURE__ */ jsx(ThreadRoot, {
|
|
166
|
+
isEmpty,
|
|
167
|
+
autoFocus,
|
|
168
|
+
emptyComposerPosition
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
var ThreadRoot = ({ isEmpty, autoFocus, emptyComposerPosition }) => {
|
|
173
|
+
const { Welcome = ThreadWelcome } = useContext(ThreadComponentsContext);
|
|
174
|
+
const isCentered = isEmpty && emptyComposerPosition === "center";
|
|
175
|
+
return /* @__PURE__ */ jsx(ThreadPrimitive.Root, {
|
|
176
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
177
|
+
className: cn2("aui-root aui-thread-root bg-background @container flex h-full flex-col", "[--thread-max-width:704px] [--composer-bg:var(--secondary)] [--composer-radius:var(--radius-md)] [--composer-padding:6px]")
|
|
178
|
+
}),
|
|
179
|
+
children: /* @__PURE__ */ jsx(ThreadPrimitive.Viewport, {
|
|
180
|
+
turnAnchor: "top",
|
|
181
|
+
"data-slot": "aui_thread-viewport",
|
|
182
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
183
|
+
className: "relative flex flex-1 flex-col overflow-x-auto overflow-y-scroll scroll-smooth"
|
|
184
|
+
}),
|
|
185
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
186
|
+
className: cn2("mx-auto flex w-full max-w-(--thread-max-width) flex-1 flex-col px-4 pt-4", isCentered && "justify-center"),
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
189
|
+
condition: isNewChatView,
|
|
190
|
+
children: /* @__PURE__ */ jsx(Welcome, {})
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
193
|
+
condition: isHistoryLoadingView,
|
|
194
|
+
children: /* @__PURE__ */ jsx(ThreadHistorySkeleton, {})
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ jsx(ThreadLoadEarlier, {}),
|
|
197
|
+
/* @__PURE__ */ jsx("div", {
|
|
198
|
+
"data-slot": "aui_message-group",
|
|
199
|
+
className: "mb-14 flex flex-col gap-y-6 empty:hidden",
|
|
200
|
+
children: /* @__PURE__ */ jsx(ThreadPrimitive.Messages, {
|
|
201
|
+
children: () => /* @__PURE__ */ jsx(ThreadMessage, {})
|
|
202
|
+
})
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ jsxs(ThreadPrimitive.ViewportFooter, {
|
|
205
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
206
|
+
className: cn2("aui-thread-viewport-footer bg-background sticky bottom-0 flex flex-col gap-4 overflow-visible pb-4 md:pb-6", !isCentered && "mt-auto rounded-t-(--composer-radius)")
|
|
207
|
+
}),
|
|
208
|
+
children: [
|
|
209
|
+
/* @__PURE__ */ jsx(ThreadScrollToBottom, {}),
|
|
210
|
+
/* @__PURE__ */ jsx(ThreadFollowupSuggestions2, {}),
|
|
211
|
+
/* @__PURE__ */ jsx(Composer, {
|
|
212
|
+
autoFocus
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
215
|
+
condition: (s) => isNewChatView(s) && s.composer.isEmpty,
|
|
216
|
+
children: /* @__PURE__ */ jsx(ThreadSuggestions, {})
|
|
217
|
+
})
|
|
218
|
+
]
|
|
219
|
+
})
|
|
220
|
+
]
|
|
221
|
+
})
|
|
222
|
+
})
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
var ThreadMessage = () => {
|
|
226
|
+
const { AssistantMessage: AssistantMessageComponent = AssistantMessage } = useContext(ThreadComponentsContext);
|
|
227
|
+
const role = useAuiState((s) => s.message.role);
|
|
228
|
+
const isEditing = useAuiState((s) => s.message.composer.isEditing);
|
|
229
|
+
const isSpoken = useAuiState((s) => s.message.metadata.modality === "voice");
|
|
230
|
+
if (isEditing)
|
|
231
|
+
return /* @__PURE__ */ jsx(EditComposer, {});
|
|
232
|
+
if (isSpoken)
|
|
233
|
+
return /* @__PURE__ */ jsx(SpokenMessage, {});
|
|
234
|
+
if (role === "user")
|
|
235
|
+
return /* @__PURE__ */ jsx(UserMessage, {});
|
|
236
|
+
return /* @__PURE__ */ jsx(AssistantMessageComponent, {});
|
|
237
|
+
};
|
|
238
|
+
var useVoiceRunPosition = () => useAuiState((s) => {
|
|
239
|
+
const before = s.thread.messages[s.message.index - 1]?.metadata.modality === "voice";
|
|
240
|
+
const after = s.thread.messages[s.message.index + 1]?.metadata.modality === "voice";
|
|
241
|
+
if (before)
|
|
242
|
+
return after ? "middle" : "end";
|
|
243
|
+
return after ? "start" : "single";
|
|
244
|
+
});
|
|
245
|
+
var SpokenText = ({ text }) => /* @__PURE__ */ jsx("p", {
|
|
246
|
+
className: "aui-spoken-message-text m-0",
|
|
247
|
+
children: text
|
|
248
|
+
});
|
|
249
|
+
var SpokenMessage = () => {
|
|
250
|
+
const role = useAuiState((s) => s.message.role);
|
|
251
|
+
const position = useVoiceRunPosition();
|
|
252
|
+
const isSpeaking = useAuiState((s) => s.message.role === "assistant" && s.message.status?.type === "running");
|
|
253
|
+
const opensExchange = position === "start" || position === "single";
|
|
254
|
+
return /* @__PURE__ */ jsxs(MessagePrimitive.Root, {
|
|
255
|
+
"data-slot": "aui_spoken-message-root",
|
|
256
|
+
"data-role": role,
|
|
257
|
+
"data-voice-run": position,
|
|
258
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
259
|
+
className: cn2("aui-spoken-message bg-muted/40 mx-2 px-3 py-1.5 [contain-intrinsic-size:auto_48px] [content-visibility:auto]", position === "single" && "rounded-md py-2", position === "start" && "rounded-t-xl pt-2", position === "middle" && "-mt-6", position === "end" && "-mt-6 rounded-b-xl pb-2")
|
|
260
|
+
}),
|
|
261
|
+
children: [
|
|
262
|
+
opensExchange && /* @__PURE__ */ jsxs("div", {
|
|
263
|
+
"data-slot": "aui_spoken-exchange-header",
|
|
264
|
+
className: "text-muted-foreground mb-1.5 flex items-center gap-1.5 text-sm",
|
|
265
|
+
children: [
|
|
266
|
+
/* @__PURE__ */ jsx(PhoneIcon, {
|
|
267
|
+
"aria-hidden": "true",
|
|
268
|
+
className: "size-3.5 shrink-0"
|
|
269
|
+
}),
|
|
270
|
+
/* @__PURE__ */ jsx("span", {
|
|
271
|
+
children: "Voice conversation"
|
|
272
|
+
})
|
|
273
|
+
]
|
|
274
|
+
}),
|
|
275
|
+
/* @__PURE__ */ jsxs("div", {
|
|
276
|
+
"data-slot": "aui_spoken-message-content",
|
|
277
|
+
className: "text-foreground flex items-start gap-2 text-sm leading-relaxed",
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ jsx("span", {
|
|
280
|
+
className: "text-muted-foreground mt-1 shrink-0",
|
|
281
|
+
"aria-hidden": true,
|
|
282
|
+
children: role === "user" ? /* @__PURE__ */ jsx(MicIcon, {
|
|
283
|
+
"aria-hidden": "true",
|
|
284
|
+
className: "size-3.5 shrink-0"
|
|
285
|
+
}) : /* @__PURE__ */ jsx(AudioLinesIcon, {
|
|
286
|
+
"aria-hidden": "true",
|
|
287
|
+
className: "size-3.5 shrink-0"
|
|
288
|
+
})
|
|
289
|
+
}),
|
|
290
|
+
/* @__PURE__ */ jsx("span", {
|
|
291
|
+
className: "sr-only",
|
|
292
|
+
children: role === "user" ? "You said" : "Assistant said"
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ jsxs("div", {
|
|
295
|
+
className: "min-w-0 flex-1 wrap-break-word",
|
|
296
|
+
children: [
|
|
297
|
+
/* @__PURE__ */ jsx(MessagePrimitive.Parts, {
|
|
298
|
+
components: { Text: SpokenText }
|
|
299
|
+
}),
|
|
300
|
+
isSpeaking && /* @__PURE__ */ jsx("span", {
|
|
301
|
+
"data-slot": "aui_spoken-message-indicator",
|
|
302
|
+
role: "status",
|
|
303
|
+
className: "text-muted-foreground ms-1 animate-pulse font-sans",
|
|
304
|
+
"aria-label": "Assistant is speaking",
|
|
305
|
+
children: "●"
|
|
306
|
+
})
|
|
307
|
+
]
|
|
308
|
+
}),
|
|
309
|
+
/* @__PURE__ */ jsx(SpokenActionBar, {})
|
|
310
|
+
]
|
|
311
|
+
})
|
|
312
|
+
]
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
var SpokenActionBar = () => {
|
|
316
|
+
return /* @__PURE__ */ jsx(ActionBarPrimitive.Root, {
|
|
317
|
+
hideWhenRunning: true,
|
|
318
|
+
autohide: "always",
|
|
319
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
320
|
+
className: "aui-spoken-action-bar text-muted-foreground flex shrink-0 gap-1"
|
|
321
|
+
}),
|
|
322
|
+
children: /* @__PURE__ */ jsx(ActionBarPrimitive.Copy, {
|
|
323
|
+
asChild: true,
|
|
324
|
+
children: /* @__PURE__ */ jsxs(TooltipIconButton2, {
|
|
325
|
+
tooltip: "Copy",
|
|
326
|
+
children: [
|
|
327
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
328
|
+
condition: (s) => s.message.isCopied,
|
|
329
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {
|
|
330
|
+
"aria-hidden": "true",
|
|
331
|
+
className: "size-4 shrink-0"
|
|
332
|
+
})
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
335
|
+
condition: (s) => !s.message.isCopied,
|
|
336
|
+
children: /* @__PURE__ */ jsx(CopyIcon, {
|
|
337
|
+
"aria-hidden": "true",
|
|
338
|
+
className: "size-4 shrink-0"
|
|
339
|
+
})
|
|
340
|
+
})
|
|
341
|
+
]
|
|
342
|
+
})
|
|
343
|
+
})
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
var FOCUSABLE_SELECTOR = "a[href], button:not([disabled]), input:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1']):not([disabled])";
|
|
347
|
+
var nextFocusable = (start) => {
|
|
348
|
+
for (let element = start.nextElementSibling;element; element = element.nextElementSibling) {
|
|
349
|
+
const target = element.matches(FOCUSABLE_SELECTOR) ? element : element.querySelector(FOCUSABLE_SELECTOR);
|
|
350
|
+
if (target instanceof HTMLElement)
|
|
351
|
+
return target;
|
|
352
|
+
}
|
|
353
|
+
return null;
|
|
354
|
+
};
|
|
355
|
+
var ThreadLoadEarlier = () => {
|
|
356
|
+
const visible = useAuiState((s) => s.thread.hasEarlier || s.thread.isLoadingEarlier);
|
|
357
|
+
const loading = useAuiState((s) => s.thread.isLoadingEarlier);
|
|
358
|
+
const slotRef = useRef(null);
|
|
359
|
+
const focusedRef = useRef(null);
|
|
360
|
+
useLayoutEffect(() => {
|
|
361
|
+
const focused = focusedRef.current;
|
|
362
|
+
const slot = slotRef.current;
|
|
363
|
+
if (visible || !focused || focused.isConnected || !slot)
|
|
364
|
+
return;
|
|
365
|
+
focusedRef.current = null;
|
|
366
|
+
const active = document.activeElement;
|
|
367
|
+
if (active && active !== document.body)
|
|
368
|
+
return;
|
|
369
|
+
nextFocusable(slot)?.focus();
|
|
370
|
+
}, [visible]);
|
|
371
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
372
|
+
ref: slotRef,
|
|
373
|
+
className: "contents",
|
|
374
|
+
onFocus: (event) => {
|
|
375
|
+
focusedRef.current = event.target;
|
|
376
|
+
},
|
|
377
|
+
children: [
|
|
378
|
+
/* @__PURE__ */ jsx("span", {
|
|
379
|
+
role: "status",
|
|
380
|
+
className: "sr-only",
|
|
381
|
+
children: loading ? "Loading earlier messages" : ""
|
|
382
|
+
}),
|
|
383
|
+
visible && /* @__PURE__ */ jsx(ThreadPrimitive.LoadEarlier, {
|
|
384
|
+
asChild: true,
|
|
385
|
+
children: /* @__PURE__ */ jsx(Button2, {
|
|
386
|
+
variant: "ghost",
|
|
387
|
+
"data-slot": "aui_thread-load-earlier",
|
|
388
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
389
|
+
className: cn2(loading && "shimmer motion-reduce:animate-none"),
|
|
390
|
+
children: loading ? "Loading earlier messages" : "Load earlier messages"
|
|
391
|
+
})
|
|
392
|
+
})
|
|
393
|
+
})
|
|
394
|
+
]
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
var ThreadScrollToBottom = () => {
|
|
398
|
+
return /* @__PURE__ */ jsx(ThreadPrimitive.ScrollToBottom, {
|
|
399
|
+
asChild: true,
|
|
400
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
401
|
+
tooltip: "Scroll to bottom",
|
|
402
|
+
variant: "default",
|
|
403
|
+
className: "absolute end-0 bottom-full mb-2 disabled:invisible",
|
|
404
|
+
children: /* @__PURE__ */ jsx(ArrowDownIcon, {
|
|
405
|
+
"aria-hidden": "true",
|
|
406
|
+
className: "size-4 shrink-0"
|
|
407
|
+
})
|
|
408
|
+
})
|
|
409
|
+
});
|
|
410
|
+
};
|
|
411
|
+
var ThreadWelcome = () => {
|
|
412
|
+
return /* @__PURE__ */ jsx("div", {
|
|
413
|
+
className: "aui-thread-welcome-root mb-6 flex flex-col px-2",
|
|
414
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
415
|
+
className: "aui-thread-welcome-message-inner fade-in slide-in-from-bottom-1 animate-in fill-mode-both text-2xl font-medium tracking-tight duration-200",
|
|
416
|
+
children: "How can I help you today?"
|
|
417
|
+
})
|
|
418
|
+
});
|
|
419
|
+
};
|
|
420
|
+
var ThreadSuggestions = () => {
|
|
421
|
+
return /* @__PURE__ */ jsx("div", {
|
|
422
|
+
className: "aui-thread-welcome-suggestions flex w-full flex-col",
|
|
423
|
+
children: /* @__PURE__ */ jsx(ThreadPrimitive.Suggestions, {
|
|
424
|
+
children: () => /* @__PURE__ */ jsx(ThreadSuggestionItem, {})
|
|
425
|
+
})
|
|
426
|
+
});
|
|
427
|
+
};
|
|
428
|
+
var ThreadSuggestionItem = () => {
|
|
429
|
+
return /* @__PURE__ */ jsx("div", {
|
|
430
|
+
className: "aui-thread-welcome-suggestion-display fade-in slide-in-from-bottom-2 animate-in fill-mode-both duration-200",
|
|
431
|
+
children: /* @__PURE__ */ jsxs(SuggestionPrimitive.Trigger, {
|
|
432
|
+
send: true,
|
|
433
|
+
render: /* @__PURE__ */ jsx("button", {
|
|
434
|
+
type: "button",
|
|
435
|
+
className: "aui-thread-welcome-suggestion group hover:bg-foreground/[0.03] focus-visible:ring-ring/50 flex w-full items-baseline gap-2.5 rounded-md px-2 py-2 text-start text-sm transition-colors outline-none focus-visible:ring-1 motion-reduce:transition-none"
|
|
436
|
+
}),
|
|
437
|
+
children: [
|
|
438
|
+
/* @__PURE__ */ jsx("span", {
|
|
439
|
+
"aria-hidden": true,
|
|
440
|
+
className: "text-muted-foreground/60 group-hover:text-foreground font-mono text-sm transition-colors motion-reduce:transition-none",
|
|
441
|
+
children: ">"
|
|
442
|
+
}),
|
|
443
|
+
/* @__PURE__ */ jsxs("span", {
|
|
444
|
+
className: "min-w-0 flex-1 truncate",
|
|
445
|
+
children: [
|
|
446
|
+
/* @__PURE__ */ jsx(SuggestionPrimitive.Title, {
|
|
447
|
+
render: /* @__PURE__ */ jsx("span", {
|
|
448
|
+
className: "aui-thread-welcome-suggestion-text-1 text-foreground"
|
|
449
|
+
})
|
|
450
|
+
}),
|
|
451
|
+
" ",
|
|
452
|
+
/* @__PURE__ */ jsx(SuggestionPrimitive.Description, {
|
|
453
|
+
render: /* @__PURE__ */ jsx("span", {
|
|
454
|
+
className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground empty:hidden"
|
|
455
|
+
})
|
|
456
|
+
})
|
|
457
|
+
]
|
|
458
|
+
})
|
|
459
|
+
]
|
|
460
|
+
})
|
|
461
|
+
});
|
|
462
|
+
};
|
|
463
|
+
var Composer = ({ autoFocus }) => {
|
|
464
|
+
return /* @__PURE__ */ jsx(ComposerPrimitive.Root, {
|
|
465
|
+
render: /* @__PURE__ */ jsx("form", {
|
|
466
|
+
className: "aui-composer-root relative flex w-full flex-col"
|
|
467
|
+
}),
|
|
468
|
+
children: /* @__PURE__ */ jsxs(ComposerPrimitive.AttachmentDropzone, {
|
|
469
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
470
|
+
"data-slot": "aui_composer-shell",
|
|
471
|
+
className: "border-frame-edge focus-within:border-foreground/25 data-[dragging=true]:border-ring flex w-full cursor-text flex-col gap-2 rounded-(--composer-radius) border bg-(--composer-bg) p-(--composer-padding) transition-[border-color] data-[dragging=true]:border-dashed data-[dragging=true]:bg-[color-mix(in_oklab,var(--color-accent)_50%,var(--color-background))]"
|
|
472
|
+
}),
|
|
473
|
+
children: [
|
|
474
|
+
/* @__PURE__ */ jsx(ComposerAttachments3, {}),
|
|
475
|
+
/* @__PURE__ */ jsx(ComposerPrimitive.Input, {
|
|
476
|
+
placeholder: "Send a message...",
|
|
477
|
+
rows: 1,
|
|
478
|
+
autoFocus,
|
|
479
|
+
enterKeyHint: "send",
|
|
480
|
+
"aria-label": "Message input",
|
|
481
|
+
render: /* @__PURE__ */ jsx("textarea", {
|
|
482
|
+
className: "aui-composer-input caret-primary placeholder:text-muted-foreground/60 max-h-48 min-h-10 w-full resize-none bg-transparent px-2.5 py-1 text-lg leading-6 outline-none"
|
|
483
|
+
})
|
|
484
|
+
}),
|
|
485
|
+
/* @__PURE__ */ jsx(ComposerAction, {})
|
|
486
|
+
]
|
|
487
|
+
})
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
var ComposerAction = () => {
|
|
491
|
+
const isSending = useAuiState((s) => s.composer.submission !== undefined && !(s.thread.isRunning && s.thread.capabilities.cancel));
|
|
492
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
493
|
+
className: "aui-composer-action-wrapper relative flex items-center justify-between",
|
|
494
|
+
children: [
|
|
495
|
+
/* @__PURE__ */ jsx(ComposerAddAttachment2, {}),
|
|
496
|
+
/* @__PURE__ */ jsxs("div", {
|
|
497
|
+
className: "flex items-center gap-1.5",
|
|
498
|
+
children: [
|
|
499
|
+
/* @__PURE__ */ jsxs(AuiIf, {
|
|
500
|
+
condition: (s) => s.thread.capabilities.dictation,
|
|
501
|
+
children: [
|
|
502
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
503
|
+
condition: (s) => s.composer.dictation == null,
|
|
504
|
+
children: /* @__PURE__ */ jsx(ComposerPrimitive.Dictate, {
|
|
505
|
+
asChild: true,
|
|
506
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
507
|
+
tooltip: "Voice input",
|
|
508
|
+
side: "bottom",
|
|
509
|
+
type: "button",
|
|
510
|
+
variant: "ghost",
|
|
511
|
+
"aria-label": "Start voice input",
|
|
512
|
+
children: /* @__PURE__ */ jsx(MicIcon, {
|
|
513
|
+
"aria-hidden": "true",
|
|
514
|
+
className: "size-4 shrink-0"
|
|
515
|
+
})
|
|
516
|
+
})
|
|
517
|
+
})
|
|
518
|
+
}),
|
|
519
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
520
|
+
condition: (s) => s.composer.dictation != null,
|
|
521
|
+
children: /* @__PURE__ */ jsx(ComposerPrimitive.StopDictation, {
|
|
522
|
+
asChild: true,
|
|
523
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
524
|
+
tooltip: "Stop dictation",
|
|
525
|
+
side: "bottom",
|
|
526
|
+
type: "button",
|
|
527
|
+
variant: "ghost",
|
|
528
|
+
"aria-label": "Stop voice input",
|
|
529
|
+
children: /* @__PURE__ */ jsx(SquareIcon, {
|
|
530
|
+
"aria-hidden": "true",
|
|
531
|
+
className: "size-3.5 shrink-0 animate-pulse motion-reduce:animate-none"
|
|
532
|
+
})
|
|
533
|
+
})
|
|
534
|
+
})
|
|
535
|
+
})
|
|
536
|
+
]
|
|
537
|
+
}),
|
|
538
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
539
|
+
condition: (s) => (!s.composer.canCancel || s.thread.voice !== undefined && s.composer.submission === undefined) && !shouldShowComposerResume(s),
|
|
540
|
+
children: /* @__PURE__ */ jsx(ComposerPrimitive.Send, {
|
|
541
|
+
asChild: true,
|
|
542
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
543
|
+
tooltip: "Send message",
|
|
544
|
+
side: "bottom",
|
|
545
|
+
type: "button",
|
|
546
|
+
variant: "default",
|
|
547
|
+
"aria-label": "Send message",
|
|
548
|
+
children: /* @__PURE__ */ jsx(ArrowUpIcon, {
|
|
549
|
+
"aria-hidden": "true",
|
|
550
|
+
className: "size-4 shrink-0"
|
|
551
|
+
})
|
|
552
|
+
})
|
|
553
|
+
})
|
|
554
|
+
}),
|
|
555
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
556
|
+
condition: shouldShowComposerResume,
|
|
557
|
+
children: /* @__PURE__ */ jsx(ComposerPrimitive.Resume, {
|
|
558
|
+
asChild: true,
|
|
559
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
560
|
+
tooltip: "Resume generating",
|
|
561
|
+
side: "bottom",
|
|
562
|
+
type: "button",
|
|
563
|
+
variant: "default",
|
|
564
|
+
"aria-label": "Resume generating",
|
|
565
|
+
children: /* @__PURE__ */ jsx(PlayIcon, {
|
|
566
|
+
"aria-hidden": "true",
|
|
567
|
+
className: "size-4 shrink-0"
|
|
568
|
+
})
|
|
569
|
+
})
|
|
570
|
+
})
|
|
571
|
+
}),
|
|
572
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
573
|
+
condition: (s) => s.composer.canCancel && (s.thread.voice === undefined || s.composer.submission !== undefined),
|
|
574
|
+
children: /* @__PURE__ */ jsx(ComposerPrimitive.Cancel, {
|
|
575
|
+
asChild: true,
|
|
576
|
+
children: /* @__PURE__ */ jsx(Button2, {
|
|
577
|
+
type: "button",
|
|
578
|
+
variant: "default",
|
|
579
|
+
"aria-label": isSending ? "Cancel sending" : "Stop generating",
|
|
580
|
+
children: /* @__PURE__ */ jsx(SquareIcon, {
|
|
581
|
+
"aria-hidden": "true",
|
|
582
|
+
className: "size-3.5 shrink-0"
|
|
583
|
+
})
|
|
584
|
+
})
|
|
585
|
+
})
|
|
586
|
+
})
|
|
587
|
+
]
|
|
588
|
+
})
|
|
589
|
+
]
|
|
590
|
+
});
|
|
591
|
+
};
|
|
592
|
+
var MessageError = () => {
|
|
593
|
+
return /* @__PURE__ */ jsx(MessagePrimitive.Error, {
|
|
594
|
+
children: /* @__PURE__ */ jsx(ErrorPrimitive.Root, {
|
|
595
|
+
role: "alert",
|
|
596
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
597
|
+
className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive mt-2 rounded-md border p-2 text-sm"
|
|
598
|
+
}),
|
|
599
|
+
children: /* @__PURE__ */ jsx(ErrorPrimitive.Message, {
|
|
600
|
+
render: /* @__PURE__ */ jsx("span", {
|
|
601
|
+
className: "aui-message-error-message line-clamp-2"
|
|
602
|
+
})
|
|
603
|
+
})
|
|
604
|
+
})
|
|
605
|
+
});
|
|
606
|
+
};
|
|
607
|
+
var AssistantMessage = () => {
|
|
608
|
+
const {
|
|
609
|
+
ToolFallback: ToolFallbackComponent = ToolFallback2,
|
|
610
|
+
ToolGroup,
|
|
611
|
+
ReasoningGroup,
|
|
612
|
+
TaskGroup: TaskGroupComponent
|
|
613
|
+
} = useContext(ThreadComponentsContext);
|
|
614
|
+
const groupBy = TaskGroupComponent ? taskAwareGroupBy : messageGroupBy;
|
|
615
|
+
const ACTION_BAR_PT = "pt-1.5";
|
|
616
|
+
const ACTION_BAR_HEIGHT = `min-h-7.5 ${ACTION_BAR_PT}`;
|
|
617
|
+
return /* @__PURE__ */ jsxs(MessagePrimitive.Root, {
|
|
618
|
+
"data-slot": "aui_assistant-message-root",
|
|
619
|
+
"data-role": "assistant",
|
|
620
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
621
|
+
className: "fade-in slide-in-from-bottom-1 animate-in relative -mb-7.5 pb-7.5 duration-150 [contain-intrinsic-size:auto_200px] [content-visibility:auto]"
|
|
622
|
+
}),
|
|
623
|
+
children: [
|
|
624
|
+
/* @__PURE__ */ jsxs("div", {
|
|
625
|
+
"data-slot": "aui_assistant-message-content",
|
|
626
|
+
className: "text-foreground px-2 leading-relaxed wrap-break-word",
|
|
627
|
+
children: [
|
|
628
|
+
/* @__PURE__ */ jsx(MessagePrimitive.GroupedParts, {
|
|
629
|
+
groupBy,
|
|
630
|
+
children: ({ part, children }) => {
|
|
631
|
+
switch (part.type) {
|
|
632
|
+
case "group-chainOfThought":
|
|
633
|
+
return /* @__PURE__ */ jsx("div", {
|
|
634
|
+
"data-slot": "aui_chain-of-thought",
|
|
635
|
+
children
|
|
636
|
+
});
|
|
637
|
+
case "group-task":
|
|
638
|
+
return TaskGroupComponent ? /* @__PURE__ */ jsx(TaskGroupComponent, {
|
|
639
|
+
group: part
|
|
640
|
+
}) : null;
|
|
641
|
+
case "group-tool":
|
|
642
|
+
if (ToolGroup) {
|
|
643
|
+
return /* @__PURE__ */ jsx(ToolGroup, {
|
|
644
|
+
group: part,
|
|
645
|
+
children
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
return /* @__PURE__ */ jsxs(ToolGroupRoot2, {
|
|
649
|
+
variant: "ghost",
|
|
650
|
+
children: [
|
|
651
|
+
/* @__PURE__ */ jsx(ToolGroupTrigger2, {
|
|
652
|
+
count: part.indices.length,
|
|
653
|
+
active: part.status.type === "running"
|
|
654
|
+
}),
|
|
655
|
+
/* @__PURE__ */ jsx(ToolGroupContent2, {
|
|
656
|
+
children
|
|
657
|
+
})
|
|
658
|
+
]
|
|
659
|
+
});
|
|
660
|
+
case "group-reasoning": {
|
|
661
|
+
if (ReasoningGroup) {
|
|
662
|
+
return /* @__PURE__ */ jsx(ReasoningGroup, {
|
|
663
|
+
group: part,
|
|
664
|
+
children
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
const running = part.status.type === "running";
|
|
668
|
+
return /* @__PURE__ */ jsxs(ReasoningRoot2, {
|
|
669
|
+
streaming: running,
|
|
670
|
+
children: [
|
|
671
|
+
/* @__PURE__ */ jsx(ReasoningTrigger2, {
|
|
672
|
+
active: running,
|
|
673
|
+
duration: reasoningDuration(part.timing)
|
|
674
|
+
}),
|
|
675
|
+
/* @__PURE__ */ jsx(ReasoningContent2, {
|
|
676
|
+
"aria-busy": running,
|
|
677
|
+
children: /* @__PURE__ */ jsx(ReasoningText2, {
|
|
678
|
+
children
|
|
679
|
+
})
|
|
680
|
+
})
|
|
681
|
+
]
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
case "text":
|
|
685
|
+
return /* @__PURE__ */ jsx(MarkdownText2, {});
|
|
686
|
+
case "reasoning":
|
|
687
|
+
return /* @__PURE__ */ jsx(Reasoning2, {
|
|
688
|
+
...part
|
|
689
|
+
});
|
|
690
|
+
case "tool-call":
|
|
691
|
+
return part.toolUI ?? /* @__PURE__ */ jsx(ToolFallbackComponent, {
|
|
692
|
+
...part
|
|
693
|
+
});
|
|
694
|
+
case "data":
|
|
695
|
+
return part.dataRendererUI;
|
|
696
|
+
case "file":
|
|
697
|
+
return /* @__PURE__ */ jsx("div", {
|
|
698
|
+
"data-slot": "aui_assistant-message-file",
|
|
699
|
+
className: "py-1",
|
|
700
|
+
children: /* @__PURE__ */ jsx(MessageFile, {
|
|
701
|
+
...part
|
|
702
|
+
})
|
|
703
|
+
});
|
|
704
|
+
case "image":
|
|
705
|
+
return /* @__PURE__ */ jsx("div", {
|
|
706
|
+
"data-slot": "aui_assistant-message-image",
|
|
707
|
+
className: "py-1",
|
|
708
|
+
children: /* @__PURE__ */ jsx(Image2, {
|
|
709
|
+
...part
|
|
710
|
+
})
|
|
711
|
+
});
|
|
712
|
+
case "indicator":
|
|
713
|
+
return /* @__PURE__ */ jsx("span", {
|
|
714
|
+
"data-slot": "aui_assistant-message-indicator",
|
|
715
|
+
className: "animate-pulse font-sans",
|
|
716
|
+
"aria-label": "Assistant is working",
|
|
717
|
+
children: "●"
|
|
718
|
+
});
|
|
719
|
+
default:
|
|
720
|
+
return null;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}),
|
|
724
|
+
/* @__PURE__ */ jsx(MessageError, {})
|
|
725
|
+
]
|
|
726
|
+
}),
|
|
727
|
+
/* @__PURE__ */ jsxs("div", {
|
|
728
|
+
"data-slot": "aui_assistant-message-footer",
|
|
729
|
+
className: cn2("ms-2 flex items-center", ACTION_BAR_HEIGHT),
|
|
730
|
+
children: [
|
|
731
|
+
/* @__PURE__ */ jsx(BranchPicker, {}),
|
|
732
|
+
/* @__PURE__ */ jsx(AssistantActionBar, {})
|
|
733
|
+
]
|
|
734
|
+
})
|
|
735
|
+
]
|
|
736
|
+
});
|
|
737
|
+
};
|
|
738
|
+
var AssistantActionBar = () => {
|
|
739
|
+
const { container: portalContainer, isReady: isPortalReady } = useResolvedPortalContainer();
|
|
740
|
+
const density = useDensity();
|
|
741
|
+
return /* @__PURE__ */ jsxs(ActionBarPrimitive.Root, {
|
|
742
|
+
hideWhenRunning: true,
|
|
743
|
+
autohide: "not-last",
|
|
744
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
745
|
+
className: "aui-assistant-action-bar-root text-muted-foreground animate-in fade-in col-start-3 row-start-2 -ms-1 flex gap-1 duration-200"
|
|
746
|
+
}),
|
|
747
|
+
children: [
|
|
748
|
+
/* @__PURE__ */ jsx(ActionBarPrimitive.Copy, {
|
|
749
|
+
asChild: true,
|
|
750
|
+
children: /* @__PURE__ */ jsxs(TooltipIconButton2, {
|
|
751
|
+
tooltip: "Copy",
|
|
752
|
+
children: [
|
|
753
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
754
|
+
condition: (s) => s.message.isCopied,
|
|
755
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {
|
|
756
|
+
"aria-hidden": "true",
|
|
757
|
+
className: "size-4 shrink-0"
|
|
758
|
+
})
|
|
759
|
+
}),
|
|
760
|
+
/* @__PURE__ */ jsx(AuiIf, {
|
|
761
|
+
condition: (s) => !s.message.isCopied,
|
|
762
|
+
children: /* @__PURE__ */ jsx(CopyIcon, {
|
|
763
|
+
"aria-hidden": "true",
|
|
764
|
+
className: "size-4 shrink-0"
|
|
765
|
+
})
|
|
766
|
+
})
|
|
767
|
+
]
|
|
768
|
+
})
|
|
769
|
+
}),
|
|
770
|
+
/* @__PURE__ */ jsxs(AuiIf, {
|
|
771
|
+
condition: (s) => s.thread.capabilities.feedback,
|
|
772
|
+
children: [
|
|
773
|
+
/* @__PURE__ */ jsx(ActionBarPrimitive.FeedbackPositive, {
|
|
774
|
+
asChild: true,
|
|
775
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
776
|
+
tooltip: "Helpful",
|
|
777
|
+
children: /* @__PURE__ */ jsx(ThumbsUpIcon, {
|
|
778
|
+
"aria-hidden": "true",
|
|
779
|
+
className: "size-4 shrink-0"
|
|
780
|
+
})
|
|
781
|
+
})
|
|
782
|
+
}),
|
|
783
|
+
/* @__PURE__ */ jsx(ActionBarPrimitive.FeedbackNegative, {
|
|
784
|
+
asChild: true,
|
|
785
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
786
|
+
tooltip: "Not helpful",
|
|
787
|
+
children: /* @__PURE__ */ jsx(ThumbsDownIcon, {
|
|
788
|
+
"aria-hidden": "true",
|
|
789
|
+
className: "size-4 shrink-0"
|
|
790
|
+
})
|
|
791
|
+
})
|
|
792
|
+
})
|
|
793
|
+
]
|
|
794
|
+
}),
|
|
795
|
+
/* @__PURE__ */ jsx(ActionBarPrimitive.Reload, {
|
|
796
|
+
asChild: true,
|
|
797
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
798
|
+
tooltip: "Refresh",
|
|
799
|
+
children: /* @__PURE__ */ jsx(RefreshCwIcon, {
|
|
800
|
+
"aria-hidden": "true",
|
|
801
|
+
className: "size-4 shrink-0"
|
|
802
|
+
})
|
|
803
|
+
})
|
|
804
|
+
}),
|
|
805
|
+
/* @__PURE__ */ jsxs(ActionBarMorePrimitive.Root, {
|
|
806
|
+
children: [
|
|
807
|
+
/* @__PURE__ */ jsx(ActionBarMorePrimitive.Trigger, {
|
|
808
|
+
asChild: true,
|
|
809
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
810
|
+
tooltip: "More",
|
|
811
|
+
children: /* @__PURE__ */ jsx(MoreHorizontalIcon, {
|
|
812
|
+
"aria-hidden": "true",
|
|
813
|
+
className: "size-4 shrink-0"
|
|
814
|
+
})
|
|
815
|
+
})
|
|
816
|
+
}),
|
|
817
|
+
isPortalReady && /* @__PURE__ */ jsx(ActionBarMorePrimitive.Content, {
|
|
818
|
+
"data-density": density,
|
|
819
|
+
side: "bottom",
|
|
820
|
+
align: "start",
|
|
821
|
+
sideOffset: 6,
|
|
822
|
+
asChild: true,
|
|
823
|
+
portalProps: { container: portalContainer },
|
|
824
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
825
|
+
className: "aui-action-bar-more-content bg-popover text-popover-foreground data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[128px] overflow-hidden rounded-md border p-1.5",
|
|
826
|
+
children: /* @__PURE__ */ jsx(ActionBarPrimitive.ExportMarkdown, {
|
|
827
|
+
asChild: true,
|
|
828
|
+
children: /* @__PURE__ */ jsx(ActionBarMorePrimitive.Item, {
|
|
829
|
+
asChild: true,
|
|
830
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
831
|
+
className: "aui-action-bar-more-item hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-sm outline-none select-none",
|
|
832
|
+
children: [
|
|
833
|
+
/* @__PURE__ */ jsx(DownloadIcon, {
|
|
834
|
+
"aria-hidden": "true",
|
|
835
|
+
className: "size-4 shrink-0"
|
|
836
|
+
}),
|
|
837
|
+
"Export as Markdown"
|
|
838
|
+
]
|
|
839
|
+
})
|
|
840
|
+
})
|
|
841
|
+
})
|
|
842
|
+
})
|
|
843
|
+
})
|
|
844
|
+
]
|
|
845
|
+
})
|
|
846
|
+
]
|
|
847
|
+
});
|
|
848
|
+
};
|
|
849
|
+
var MessageFile = (part) => {
|
|
850
|
+
const image = part.mimeType.toLowerCase().startsWith("image/") ? getFileHref(part.data, part.mimeType, part.sourceType) : null;
|
|
851
|
+
if (!image)
|
|
852
|
+
return /* @__PURE__ */ jsx(File2, {
|
|
853
|
+
...part
|
|
854
|
+
});
|
|
855
|
+
return /* @__PURE__ */ jsx(Image2, {
|
|
856
|
+
type: "image",
|
|
857
|
+
image,
|
|
858
|
+
status: part.status,
|
|
859
|
+
...part.filename !== undefined && { filename: part.filename }
|
|
860
|
+
});
|
|
861
|
+
};
|
|
862
|
+
var UserFilePart = (part) => /* @__PURE__ */ jsx("div", {
|
|
863
|
+
"data-slot": "aui_user-message-file",
|
|
864
|
+
className: "py-1",
|
|
865
|
+
children: /* @__PURE__ */ jsx(MessageFile, {
|
|
866
|
+
...part
|
|
867
|
+
})
|
|
868
|
+
});
|
|
869
|
+
var UserImagePart = (part) => /* @__PURE__ */ jsx("div", {
|
|
870
|
+
"data-slot": "aui_user-message-image",
|
|
871
|
+
className: "py-1",
|
|
872
|
+
children: /* @__PURE__ */ jsx(Image2, {
|
|
873
|
+
...part
|
|
874
|
+
})
|
|
875
|
+
});
|
|
876
|
+
var UserMessage = () => {
|
|
877
|
+
return /* @__PURE__ */ jsxs(MessagePrimitive.Root, {
|
|
878
|
+
"data-slot": "aui_user-message-root",
|
|
879
|
+
"data-role": "user",
|
|
880
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
881
|
+
className: "fade-in slide-in-from-bottom-1 animate-in grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] content-start gap-y-2 px-2 duration-150 [contain-intrinsic-size:auto_200px] [content-visibility:auto] [&:where(>*)]:col-start-2"
|
|
882
|
+
}),
|
|
883
|
+
children: [
|
|
884
|
+
/* @__PURE__ */ jsx(UserMessageAttachments2, {}),
|
|
885
|
+
/* @__PURE__ */ jsxs("div", {
|
|
886
|
+
className: "aui-user-message-content-wrapper relative col-start-2 min-w-0",
|
|
887
|
+
children: [
|
|
888
|
+
/* @__PURE__ */ jsx("div", {
|
|
889
|
+
className: "aui-user-message-content peer bg-muted text-foreground rounded-(--composer-radius) px-4 py-2 wrap-break-word empty:hidden",
|
|
890
|
+
children: /* @__PURE__ */ jsx(MessagePrimitive.Parts, {
|
|
891
|
+
components: { File: UserFilePart, Image: UserImagePart }
|
|
892
|
+
})
|
|
893
|
+
}),
|
|
894
|
+
/* @__PURE__ */ jsx("div", {
|
|
895
|
+
className: "aui-user-action-bar-wrapper absolute start-0 top-1/2 -translate-x-full -translate-y-1/2 pe-2 peer-empty:hidden rtl:translate-x-full",
|
|
896
|
+
children: /* @__PURE__ */ jsx(UserActionBar, {})
|
|
897
|
+
})
|
|
898
|
+
]
|
|
899
|
+
}),
|
|
900
|
+
/* @__PURE__ */ jsx(BranchPicker, {
|
|
901
|
+
"data-slot": "aui_user-branch-picker",
|
|
902
|
+
className: "col-span-full col-start-1 -me-1 justify-end"
|
|
903
|
+
})
|
|
904
|
+
]
|
|
905
|
+
});
|
|
906
|
+
};
|
|
907
|
+
var UserActionBar = () => {
|
|
908
|
+
return /* @__PURE__ */ jsx(ActionBarPrimitive.Root, {
|
|
909
|
+
hideWhenRunning: true,
|
|
910
|
+
autohide: "not-last",
|
|
911
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
912
|
+
className: "aui-user-action-bar-root flex flex-col items-end"
|
|
913
|
+
}),
|
|
914
|
+
children: /* @__PURE__ */ jsx(ActionBarPrimitive.Edit, {
|
|
915
|
+
asChild: true,
|
|
916
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
917
|
+
tooltip: "Edit",
|
|
918
|
+
children: /* @__PURE__ */ jsx(PencilIcon, {
|
|
919
|
+
"aria-hidden": "true",
|
|
920
|
+
className: "size-4 shrink-0"
|
|
921
|
+
})
|
|
922
|
+
})
|
|
923
|
+
})
|
|
924
|
+
});
|
|
925
|
+
};
|
|
926
|
+
var EditComposer = () => {
|
|
927
|
+
return /* @__PURE__ */ jsx(MessagePrimitive.Root, {
|
|
928
|
+
"data-slot": "aui_edit-composer-wrapper",
|
|
929
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
930
|
+
className: "flex flex-col px-2 [contain-intrinsic-size:auto_200px] [content-visibility:auto]"
|
|
931
|
+
}),
|
|
932
|
+
children: /* @__PURE__ */ jsxs(ComposerPrimitive.Root, {
|
|
933
|
+
render: /* @__PURE__ */ jsx("form", {
|
|
934
|
+
className: "aui-edit-composer-root border-frame-edge focus-within:border-foreground/25 ms-auto flex w-full max-w-[85%] cursor-text flex-col rounded-(--composer-radius) border bg-(--composer-bg) transition-[border-color]"
|
|
935
|
+
}),
|
|
936
|
+
children: [
|
|
937
|
+
/* @__PURE__ */ jsx(ComposerPrimitive.Input, {
|
|
938
|
+
"aria-label": "Edit message",
|
|
939
|
+
autoFocus: true,
|
|
940
|
+
render: /* @__PURE__ */ jsx("textarea", {
|
|
941
|
+
className: "aui-edit-composer-input text-foreground min-h-14 w-full resize-none bg-transparent px-2 pt-2 pb-1 text-base outline-none"
|
|
942
|
+
})
|
|
943
|
+
}),
|
|
944
|
+
/* @__PURE__ */ jsxs("div", {
|
|
945
|
+
className: "aui-edit-composer-footer mx-2.5 mb-2.5 flex items-center gap-1.5 self-end",
|
|
946
|
+
children: [
|
|
947
|
+
/* @__PURE__ */ jsx(ComposerPrimitive.Cancel, {
|
|
948
|
+
asChild: true,
|
|
949
|
+
children: /* @__PURE__ */ jsx(Button2, {
|
|
950
|
+
variant: "ghost",
|
|
951
|
+
children: "Cancel"
|
|
952
|
+
})
|
|
953
|
+
}),
|
|
954
|
+
/* @__PURE__ */ jsx(ComposerPrimitive.Send, {
|
|
955
|
+
asChild: true,
|
|
956
|
+
children: /* @__PURE__ */ jsx(Button2, {
|
|
957
|
+
children: "Update"
|
|
958
|
+
})
|
|
959
|
+
})
|
|
960
|
+
]
|
|
961
|
+
})
|
|
962
|
+
]
|
|
963
|
+
})
|
|
964
|
+
});
|
|
965
|
+
};
|
|
966
|
+
var BranchPicker = ({ className, ...rest }) => {
|
|
967
|
+
return /* @__PURE__ */ jsxs(BranchPickerPrimitive.Root, {
|
|
968
|
+
hideWhenSingleBranch: true,
|
|
969
|
+
...rest,
|
|
970
|
+
render: /* @__PURE__ */ jsx("div", {
|
|
971
|
+
className: cn2("aui-branch-picker-root text-muted-foreground -ms-2 me-2 inline-flex items-center text-sm", className)
|
|
972
|
+
}),
|
|
973
|
+
children: [
|
|
974
|
+
/* @__PURE__ */ jsx(BranchPickerPrimitive.Previous, {
|
|
975
|
+
asChild: true,
|
|
976
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
977
|
+
tooltip: "Previous",
|
|
978
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, {
|
|
979
|
+
"aria-hidden": "true",
|
|
980
|
+
className: "size-4 shrink-0"
|
|
981
|
+
})
|
|
982
|
+
})
|
|
983
|
+
}),
|
|
984
|
+
/* @__PURE__ */ jsxs("span", {
|
|
985
|
+
children: [
|
|
986
|
+
/* @__PURE__ */ jsx(BranchPickerPrimitive.Number, {}),
|
|
987
|
+
" / ",
|
|
988
|
+
/* @__PURE__ */ jsx(BranchPickerPrimitive.Count, {})
|
|
989
|
+
]
|
|
990
|
+
}),
|
|
991
|
+
/* @__PURE__ */ jsx(BranchPickerPrimitive.Next, {
|
|
992
|
+
asChild: true,
|
|
993
|
+
children: /* @__PURE__ */ jsx(TooltipIconButton2, {
|
|
994
|
+
tooltip: "Next",
|
|
995
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
996
|
+
"aria-hidden": "true",
|
|
997
|
+
className: "size-4 shrink-0"
|
|
998
|
+
})
|
|
999
|
+
})
|
|
1000
|
+
})
|
|
1001
|
+
]
|
|
1002
|
+
});
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
export { Thread2 };
|