@alexgorbatchev/shadcn 0.0.42 → 0.0.44
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 +48 -24
- package/dist/analytics/AnalyticsContext.d.ts +2 -0
- package/dist/analytics/analyticsSource.d.ts +4 -0
- package/dist/analytics/types.d.ts +55 -0
- package/dist/{chunk-2agnzxa0.js → chunk-05shyxqp.js} +1 -1
- package/dist/{chunk-59p19t57.js → chunk-0fmrwsgp.js} +7 -2
- package/dist/{chunk-p45ytcc2.js → chunk-0gwqtywa.js} +3 -3
- package/dist/{chunk-60756tfb.js → chunk-0q9n4syq.js} +3 -3
- package/dist/{chunk-dwkjt1mm.js → chunk-0twprqdp.js} +13 -3
- package/dist/{chunk-rggdd436.js → chunk-0xqqs9kw.js} +1 -1
- package/dist/{chunk-dvmxyk3q.js → chunk-10t1w38s.js} +2 -2
- package/dist/{chunk-57jj9v64.js → chunk-14mh00z3.js} +3 -3
- package/dist/{chunk-h6kcqtzf.js → chunk-1hq2k0fs.js} +6 -2
- package/dist/{chunk-saf6rz9s.js → chunk-1hy9rfvc.js} +1 -1
- package/dist/{chunk-nvegyysk.js → chunk-1q30wk9x.js} +2 -2
- package/dist/{chunk-3bzbwhda.js → chunk-1sqv5axv.js} +6 -2
- package/dist/{chunk-yxgyprns.js → chunk-1sxpyjph.js} +1 -1
- package/dist/{chunk-zdx7dtcw.js → chunk-1t959882.js} +1 -1
- package/dist/{chunk-p8gshf3k.js → chunk-1zbtg30t.js} +6 -2
- package/dist/{chunk-4djw71cv.js → chunk-21ab0jsp.js} +12 -6
- package/dist/{chunk-7gpq6kty.js → chunk-23419f5j.js} +1 -1
- package/dist/{chunk-f5hphka1.js → chunk-23jrbq6y.js} +5 -1
- package/dist/{chunk-k4aawd44.js → chunk-2krw4tjq.js} +1 -1
- package/dist/{chunk-644cnngf.js → chunk-2mn2ctsk.js} +6 -0
- package/dist/{chunk-7e3samhv.js → chunk-2mswp6h1.js} +3 -3
- package/dist/{chunk-4zaj9tsr.js → chunk-2pzvxbq3.js} +3 -3
- package/dist/chunk-38301e40.js +182 -0
- package/dist/{chunk-he0w0tx1.js → chunk-3b6ws9hk.js} +1 -1
- package/dist/{chunk-4stkzcvt.js → chunk-3r0q02k6.js} +175 -53
- package/dist/{chunk-fgzcp6dt.js → chunk-3t7h84te.js} +1 -1
- package/dist/{chunk-7b3n0ftm.js → chunk-3v95p5js.js} +1 -1
- package/dist/{chunk-ey6q1ra5.js → chunk-3wap1z7h.js} +6 -2
- package/dist/{chunk-d0qccfv4.js → chunk-46tg5t7g.js} +3 -3
- package/dist/chunk-4710gn6d.js +15 -0
- package/dist/{chunk-5z9y2mdj.js → chunk-474fgeht.js} +1 -1
- package/dist/{chunk-7mj8g4vx.js → chunk-48yhjpfs.js} +1 -1
- package/dist/{chunk-yazbpnav.js → chunk-4e1eq1t5.js} +2 -2
- package/dist/{chunk-pqe77cc1.js → chunk-4e879g03.js} +1 -1
- package/dist/{chunk-espw1b6e.js → chunk-4gcpx4pm.js} +1 -1
- package/dist/{chunk-s0typ7hv.js → chunk-55s7v2mw.js} +2 -2
- package/dist/{chunk-ret3m6vs.js → chunk-588wj6g4.js} +1 -1
- package/dist/{chunk-mwzhaw5v.js → chunk-5h7xxnr7.js} +1 -1
- package/dist/chunk-5mydsjp3.js +48 -0
- package/dist/{chunk-pc2d5950.js → chunk-5myr07fp.js} +1 -1
- package/dist/{chunk-f0jej3qt.js → chunk-5w279fsn.js} +6 -6
- package/dist/{chunk-zn1w5cd5.js → chunk-5zyc28sc.js} +11 -7
- package/dist/{chunk-hh43wg05.js → chunk-60p7sagm.js} +12 -6
- package/dist/{chunk-vf1rsqpk.js → chunk-645dhey7.js} +1 -1
- package/dist/{chunk-0skytwpk.js → chunk-6475gsta.js} +2 -2
- package/dist/{chunk-na2mxcxz.js → chunk-6fp821jv.js} +2 -2
- package/dist/{chunk-dzvsjw59.js → chunk-6jw87d07.js} +33 -4
- package/dist/{chunk-58st8hnr.js → chunk-6kygf29c.js} +1 -1
- package/dist/{chunk-sb00e3gj.js → chunk-77xfccfq.js} +3 -3
- package/dist/{chunk-cyfbg25t.js → chunk-79vgr8w9.js} +3 -3
- package/dist/chunk-7jpsybag.js +33 -0
- package/dist/{chunk-987zth0a.js → chunk-7mnba0d8.js} +8 -3
- package/dist/chunk-7ny0vyek.js +25 -0
- package/dist/{chunk-jkgje3ar.js → chunk-7qwp41y5.js} +1 -1
- package/dist/{chunk-rffrerg5.js → chunk-7w8yemba.js} +7 -2
- package/dist/{chunk-809fwd84.js → chunk-7zyf9nnf.js} +24 -10
- package/dist/{chunk-k138cvn8.js → chunk-83v2vma2.js} +1 -1
- package/dist/{chunk-enxt9sfx.js → chunk-84gs32n6.js} +1 -1
- package/dist/{chunk-5x7387nh.js → chunk-8bxfp671.js} +1 -1
- package/dist/{chunk-726x26pk.js → chunk-8jnfvgvk.js} +1 -1
- package/dist/{chunk-6kwf9644.js → chunk-8k18tnap.js} +1 -1
- package/dist/{chunk-3jrsp186.js → chunk-8q0xpeh4.js} +1 -1
- package/dist/{chunk-gqm1483k.js → chunk-8rtm4y46.js} +2 -2
- package/dist/chunk-8ssktt4b.js +11 -0
- package/dist/{chunk-d4bm5rzy.js → chunk-8wc2z7te.js} +37 -12
- package/dist/{chunk-b06rfrfz.js → chunk-8xnjf4ef.js} +6 -2
- package/dist/{chunk-tfqfqn8z.js → chunk-96x8wa8w.js} +1 -1
- package/dist/{chunk-3se9vgw9.js → chunk-9qcqxp3v.js} +1 -1
- package/dist/{chunk-dtkw8m6d.js → chunk-9t5h5ps3.js} +1 -1
- package/dist/{chunk-tnnf8ydf.js → chunk-9w9berq8.js} +6 -1
- package/dist/{chunk-a50gtwc9.js → chunk-a82d9z1e.js} +1 -1
- package/dist/{chunk-q5m8vz61.js → chunk-aahx2gyb.js} +1 -1
- package/dist/{chunk-3dyqen8w.js → chunk-agy4dzea.js} +1 -1
- package/dist/{chunk-n789tekk.js → chunk-axw1yqxz.js} +1 -1
- package/dist/{chunk-97kagey4.js → chunk-beywepck.js} +5 -1
- package/dist/{chunk-rkbbjjwq.js → chunk-bt7ramb0.js} +6 -2
- package/dist/{chunk-ga79snaw.js → chunk-c4m53x5s.js} +1 -1
- package/dist/{chunk-8vfh3ez0.js → chunk-c9ypcp4s.js} +32 -19
- package/dist/{chunk-ybypybsb.js → chunk-cmd9erv0.js} +6 -1
- package/dist/{chunk-r6p7982y.js → chunk-cqbd39je.js} +6 -1
- package/dist/{chunk-81y5s246.js → chunk-ct6ayjkt.js} +1 -1
- package/dist/{chunk-bt57g6ms.js → chunk-cvg5366s.js} +1 -1
- package/dist/{chunk-7p6032sv.js → chunk-cy1xv5nz.js} +10 -2
- package/dist/{chunk-6wx7cr8d.js → chunk-d444bwwf.js} +2 -2
- package/dist/{chunk-yrxjwwz3.js → chunk-dfkzm4f1.js} +218 -199
- package/dist/{chunk-ttdeyjvj.js → chunk-dhmtrz6f.js} +1 -1
- package/dist/{chunk-x0megjk3.js → chunk-dq6se94p.js} +1 -1
- package/dist/{chunk-3zrw72sw.js → chunk-e970kv8r.js} +1 -1
- package/dist/{chunk-3x0ter92.js → chunk-e9756880.js} +1 -1
- package/dist/{chunk-0kyfh857.js → chunk-e9v481he.js} +1 -1
- package/dist/{chunk-wndqbss9.js → chunk-ekbesw9t.js} +7 -2
- package/dist/{chunk-yc9ytj9j.js → chunk-esrypw6g.js} +1 -1
- package/dist/{chunk-b43t3etd.js → chunk-ewhk1ze1.js} +1 -1
- package/dist/{chunk-kwbgqv5z.js → chunk-f08tw6hg.js} +1 -1
- package/dist/{chunk-mgdec3zt.js → chunk-f28xnx55.js} +2 -2
- package/dist/{chunk-43hfchxf.js → chunk-f63cr8mx.js} +9 -3
- package/dist/{chunk-jy50ebz0.js → chunk-f6rbv5gf.js} +8 -4
- package/dist/{chunk-78cs7n93.js → chunk-f72tygjq.js} +1 -1
- package/dist/{chunk-p9aqek06.js → chunk-f9kdk0q4.js} +5 -1
- package/dist/{chunk-ag6xpy6q.js → chunk-f9twxy4y.js} +11 -3
- package/dist/{chunk-arsjatb3.js → chunk-fky4t8cc.js} +2 -2
- package/dist/{chunk-4521sn9e.js → chunk-fkzh31y0.js} +1 -1
- package/dist/{chunk-09agnr7z.js → chunk-fpj82hex.js} +1 -1
- package/dist/{chunk-24d68cjp.js → chunk-fw86vanx.js} +8 -2
- package/dist/{chunk-gtbtfnd7.js → chunk-fxfwgr5g.js} +4 -4
- package/dist/{chunk-jf0y740b.js → chunk-fz2x6hvf.js} +1 -1
- package/dist/{chunk-1hj251b8.js → chunk-gbmvkt3q.js} +19 -7
- package/dist/{chunk-9nckfswe.js → chunk-ghz2g6j5.js} +9 -4
- package/dist/{chunk-sfmkphna.js → chunk-gtebjkkz.js} +10 -5
- package/dist/{chunk-dv8344f7.js → chunk-h3qqt3rg.js} +1 -1
- package/dist/{chunk-46jdxdzy.js → chunk-h5zhqdmb.js} +3 -3
- package/dist/{chunk-9a1hj7mc.js → chunk-hj9avapz.js} +4 -4
- package/dist/{chunk-b513tz37.js → chunk-hxg0pkj9.js} +1 -1
- package/dist/{chunk-jrzx4wre.js → chunk-j2hawnp9.js} +2 -2
- package/dist/{chunk-c2vcrwjp.js → chunk-j2n8684w.js} +6 -1
- package/dist/{chunk-ws4y7ctw.js → chunk-jadf0xqn.js} +6 -2
- package/dist/{chunk-ex1zk6ta.js → chunk-jgdpa00w.js} +10 -7
- package/dist/{chunk-yxej7z50.js → chunk-jk941nke.js} +1 -1
- package/dist/{chunk-e7wbz622.js → chunk-jwzg2twy.js} +1 -1
- package/dist/{chunk-pg9rhbgm.js → chunk-k455qwx2.js} +2 -2
- package/dist/{chunk-cgv6qm25.js → chunk-khtt3f21.js} +2 -2
- package/dist/{chunk-p6wb9jw3.js → chunk-kxx5fnpb.js} +1 -1
- package/dist/{chunk-1qsph9ej.js → chunk-kzar67tq.js} +3 -5
- package/dist/{chunk-tz8xh1nc.js → chunk-m0agthfm.js} +1 -1
- package/dist/{chunk-yf68wrse.js → chunk-m4wfy6n3.js} +2 -2
- package/dist/{chunk-21x1n6gn.js → chunk-m71d0g7v.js} +6 -6
- package/dist/{chunk-h19wjq6v.js → chunk-m7n2f6nf.js} +1 -1
- package/dist/{chunk-srv59vf3.js → chunk-m9rrhywc.js} +4 -4
- package/dist/{chunk-z7jkw7ds.js → chunk-mcdqy5gt.js} +1 -1
- package/dist/{chunk-dd4erwx8.js → chunk-mtx71g1t.js} +7 -3
- package/dist/{chunk-9vyg3854.js → chunk-mwzmmeeq.js} +5 -1
- package/dist/{chunk-w0bgsawz.js → chunk-n5ea9nv1.js} +2 -2
- package/dist/{chunk-krz4q9sz.js → chunk-ngq209hr.js} +2 -2
- package/dist/{chunk-7j9d7dtq.js → chunk-nw8zvj83.js} +1 -1
- package/dist/{chunk-52e8a05a.js → chunk-nxkbx5r2.js} +1 -1
- package/dist/{chunk-c7tnf6h7.js → chunk-p1eqxz4v.js} +28 -9
- package/dist/{chunk-9ye7w106.js → chunk-p5x18ckg.js} +1 -1
- package/dist/{chunk-ehgeg4q9.js → chunk-p6kw19sx.js} +17 -7
- package/dist/{chunk-3c7tvhtx.js → chunk-pa8yemp1.js} +1 -1
- package/dist/{chunk-zw6a73cm.js → chunk-prp1x0by.js} +1 -1
- package/dist/{chunk-8ye0k6z7.js → chunk-ptgtqv1a.js} +6 -1
- package/dist/{chunk-8k1y6w5k.js → chunk-pws4vb8r.js} +5 -1
- package/dist/{chunk-r07v9c4f.js → chunk-pzr1f2tz.js} +5 -1
- package/dist/{chunk-aexby8h3.js → chunk-q606kj28.js} +24 -2
- package/dist/{chunk-sat9hjv7.js → chunk-qky9999p.js} +1 -1
- package/dist/{chunk-svkzwq5e.js → chunk-qmfxytfb.js} +1 -1
- package/dist/{chunk-wnyxdfzd.js → chunk-qv3b2jvc.js} +1 -1
- package/dist/{chunk-5bw5h08v.js → chunk-r4jzz4f2.js} +7 -1
- package/dist/{chunk-cb51ybz5.js → chunk-r7mfpkbb.js} +12 -4
- package/dist/{chunk-5wndb6hx.js → chunk-ray29hdb.js} +6 -2
- package/dist/{chunk-z4jpedvh.js → chunk-rr74321a.js} +1 -1
- package/dist/{chunk-wensxzx9.js → chunk-rtb0ejf0.js} +1 -1
- package/dist/{chunk-tvd9n2kd.js → chunk-s0ecp1mv.js} +1 -1
- package/dist/{chunk-y7pkfcsz.js → chunk-s8ejm9d8.js} +1 -1
- package/dist/{chunk-v9r6t8bz.js → chunk-snq5m541.js} +6 -2
- package/dist/{chunk-4qn98ngf.js → chunk-srr328m4.js} +1 -1
- package/dist/{chunk-6p6zfyjr.js → chunk-svz0farj.js} +1 -1
- package/dist/{chunk-d3fr5vtc.js → chunk-t97ts9df.js} +1 -1
- package/dist/{chunk-79667fz5.js → chunk-tbd56x4h.js} +3 -3
- package/dist/chunk-tcefvfr8.js +15 -0
- package/dist/{chunk-0ftjkxjg.js → chunk-td7ra5d2.js} +1 -1
- package/dist/{chunk-6wvhq8wq.js → chunk-tg5grn8f.js} +2 -2
- package/dist/{chunk-hz9azhzx.js → chunk-tq0pfv5h.js} +7 -2
- package/dist/{chunk-4x3ck2yz.js → chunk-v24aqtkt.js} +1 -1
- package/dist/{chunk-sbrpnv8s.js → chunk-v8gdzaxt.js} +6 -2
- package/dist/{chunk-3mzqf6b4.js → chunk-vg2j5044.js} +1 -1
- package/dist/{chunk-map13pza.js → chunk-vhm7fpav.js} +11 -11
- package/dist/{chunk-kt085sbn.js → chunk-vm3fzfnj.js} +1 -1
- package/dist/{chunk-2bx2r98r.js → chunk-vrs3371x.js} +6 -2
- package/dist/{chunk-bqyvf9jn.js → chunk-w1jm0rx3.js} +8 -4
- package/dist/{chunk-e0pv0me5.js → chunk-w9jyajx3.js} +1 -1
- package/dist/{chunk-5v4typ39.js → chunk-wh7rmym5.js} +3 -3
- package/dist/{chunk-0mkv6zgs.js → chunk-wnhxn2se.js} +1 -1
- package/dist/{chunk-jfc7rhtt.js → chunk-wpa484a6.js} +1 -1
- package/dist/{chunk-pgq064p6.js → chunk-wq8jxf31.js} +7 -3
- package/dist/{chunk-6432235c.js → chunk-x1598f0d.js} +3 -3
- package/dist/{chunk-83zjj4jd.js → chunk-x6vx0v6d.js} +34 -7
- package/dist/{chunk-j4gd5awk.js → chunk-x6zmnr8m.js} +6 -6
- package/dist/{chunk-aa7m22zj.js → chunk-x90xmrba.js} +13 -4
- package/dist/{chunk-wjaehks2.js → chunk-xfhk2vrw.js} +6 -2
- package/dist/{chunk-5a2xnjyw.js → chunk-xgp1eyhr.js} +12 -4
- package/dist/{chunk-pwqw7ksj.js → chunk-xq579zwh.js} +1 -1
- package/dist/{chunk-ge5t1xhw.js → chunk-xvmv0xm5.js} +1 -1
- package/dist/{chunk-96wh7ccv.js → chunk-xwf411kf.js} +6 -2
- package/dist/{chunk-9jct7hv0.js → chunk-y7tyyzfy.js} +3 -3
- package/dist/{chunk-wqc963k8.js → chunk-ybyx7vt4.js} +2 -2
- package/dist/{chunk-rbm24fhv.js → chunk-z8n03ra5.js} +2 -2
- package/dist/{chunk-wmyj3hfw.js → chunk-zksbrzf6.js} +1 -1
- package/dist/{chunk-bsff5mmk.js → chunk-zp3wrbve.js} +1 -1
- package/dist/components/Accordion.d.ts +3 -2
- package/dist/components/AlertDialog.d.ts +3 -3
- package/dist/components/Attachment.d.ts +4 -3
- package/dist/components/Badge.d.ts +1 -1
- package/dist/components/Breadcrumb.d.ts +3 -2
- package/dist/components/Button.d.ts +8 -4
- package/dist/components/ButtonLink.d.ts +3 -2
- package/dist/components/Checkbox.d.ts +3 -2
- package/dist/components/Collapsible.d.ts +2 -1
- package/dist/components/Combobox.d.ts +2 -1
- package/dist/components/ContextMenu.d.ts +6 -5
- package/dist/components/Dialog.d.ts +2 -1
- package/dist/components/Drawer.d.ts +2 -1
- package/dist/components/DropTarget.d.ts +1 -1
- package/dist/components/DropdownMenu.d.ts +6 -5
- package/dist/components/HoverCard.d.ts +2 -1
- package/dist/components/ImagePicker.d.ts +3 -2
- package/dist/components/InlineEdit.d.ts +3 -2
- package/dist/components/Input.d.ts +3 -2
- package/dist/components/InputGroup.d.ts +2 -1
- package/dist/components/Item.d.ts +1 -1
- package/dist/components/Menubar.d.ts +4 -3
- package/dist/components/NativeSelect.d.ts +2 -1
- package/dist/components/NavigationMenu.d.ts +4 -3
- package/dist/components/NumberField.d.ts +2 -1
- package/dist/components/Pagination.d.ts +2 -1
- package/dist/components/Popover.d.ts +2 -1
- package/dist/components/RadioGroup.d.ts +3 -2
- package/dist/components/Select.d.ts +2 -1
- package/dist/components/Sheet.d.ts +2 -1
- package/dist/components/Sidebar.d.ts +8 -7
- package/dist/components/Slider.d.ts +2 -1
- package/dist/components/StarRating.d.ts +3 -2
- package/dist/components/Switch.d.ts +3 -2
- package/dist/components/Tabs.d.ts +3 -2
- package/dist/components/Textarea.d.ts +3 -2
- package/dist/components/Toast.d.ts +3 -2
- package/dist/components/Toggle.d.ts +3 -2
- package/dist/components/ToggleGroup.d.ts +17 -2
- package/dist/components/Toolbar.d.ts +4 -3
- package/dist/components/Tooltip.d.ts +2 -1
- package/dist/components/analytics/AnalyticsButton.d.ts +8 -0
- package/dist/components/analytics/AnalyticsImpression.d.ts +11 -0
- package/dist/components/analytics/AnalyticsInput.d.ts +7 -0
- package/dist/components/analytics/AnalyticsLink.d.ts +7 -0
- package/dist/components/analytics/AnalyticsProvider.d.ts +3 -0
- package/dist/components/analytics/AnalyticsScope.d.ts +3 -0
- package/dist/components/analytics/AnalyticsTextarea.d.ts +7 -0
- package/dist/components/analytics/index.d.ts +6 -0
- package/dist/components/analytics/index.js +145 -0
- package/dist/components/assistant-ui/elements/AgentCard.js +8 -2
- package/dist/components/assistant-ui/elements/ApprovalCard.js +8 -2
- package/dist/components/assistant-ui/elements/ArtifactCard.js +8 -2
- package/dist/components/assistant-ui/elements/AudioPlayer.js +9 -2
- package/dist/components/assistant-ui/elements/BackgroundInbox.js +8 -2
- package/dist/components/assistant-ui/elements/CanvasSplit.js +8 -2
- package/dist/components/assistant-ui/elements/Chart.js +6 -2
- package/dist/components/assistant-ui/elements/ChatPanel.js +12 -5
- package/dist/components/assistant-ui/elements/CheckpointHistory.js +8 -2
- package/dist/components/assistant-ui/elements/Citation.js +9 -5
- package/dist/components/assistant-ui/elements/CodeRunner.js +8 -2
- package/dist/components/assistant-ui/elements/CommandPalette.js +13 -9
- package/dist/components/assistant-ui/elements/ComposerAttachButton.js +8 -2
- package/dist/components/assistant-ui/elements/ComposerAttachmentChip.js +8 -2
- package/dist/components/assistant-ui/elements/ComposerAttachments.js +12 -5
- package/dist/components/assistant-ui/elements/ComposerBar.js +12 -5
- package/dist/components/assistant-ui/elements/ComposerCommandItem.js +9 -3
- package/dist/components/assistant-ui/elements/ComposerContext.js +8 -5
- package/dist/components/assistant-ui/elements/ComposerInput.js +12 -5
- package/dist/components/assistant-ui/elements/ComposerMenuItem.js +8 -2
- package/dist/components/assistant-ui/elements/ComposerModelItem.js +9 -3
- package/dist/components/assistant-ui/elements/ComposerModelTrigger.js +8 -2
- package/dist/components/assistant-ui/elements/ComposerPersonItem.js +9 -3
- package/dist/components/assistant-ui/elements/ComposerSend.js +8 -2
- package/dist/components/assistant-ui/elements/ComposerToolbar.js +12 -5
- package/dist/components/assistant-ui/elements/ComposerVoiceButton.js +8 -2
- package/dist/components/assistant-ui/elements/ConfidenceMarker.js +5 -1
- package/dist/components/assistant-ui/elements/ConnectionState.js +8 -2
- package/dist/components/assistant-ui/elements/ContextDisplay.js +13 -10
- package/dist/components/assistant-ui/elements/ContextDisplayBar.js +10 -7
- package/dist/components/assistant-ui/elements/ContextDisplayContent.js +6 -4
- package/dist/components/assistant-ui/elements/ContextDisplayRing.js +10 -7
- package/dist/components/assistant-ui/elements/ContextDisplayRoot.js +6 -4
- package/dist/components/assistant-ui/elements/ContextDisplayText.js +10 -7
- package/dist/components/assistant-ui/elements/ContextDisplayTrigger.js +7 -4
- package/dist/components/assistant-ui/elements/ConversationMap.js +7 -4
- package/dist/components/assistant-ui/elements/ConversationSearch.js +12 -5
- package/dist/components/assistant-ui/elements/DataTable.js +9 -2
- package/dist/components/assistant-ui/elements/Diagram.js +8 -2
- package/dist/components/assistant-ui/elements/DiffViewer.js +9 -3
- package/dist/components/assistant-ui/elements/DiffViewerHeader.js +8 -2
- package/dist/components/assistant-ui/elements/DocumentReference.js +8 -2
- package/dist/components/assistant-ui/elements/DraftRestore.js +8 -2
- package/dist/components/assistant-ui/elements/EditMessage.js +10 -3
- package/dist/components/assistant-ui/elements/ElicitationForm.js +12 -5
- package/dist/components/assistant-ui/elements/EmptyStateComposer.js +12 -5
- package/dist/components/assistant-ui/elements/EmptyStateSuggestion.js +8 -2
- package/dist/components/assistant-ui/elements/ErrorState.js +8 -2
- package/dist/components/assistant-ui/elements/EveAskQuestion.js +13 -5
- package/dist/components/assistant-ui/elements/FeedbackDialog.js +11 -4
- package/dist/components/assistant-ui/elements/File.js +11 -3
- package/dist/components/assistant-ui/elements/GenerativeUi.js +11 -8
- package/dist/components/assistant-ui/elements/GeoMap.js +8 -2
- package/dist/components/assistant-ui/elements/GuardrailNotice.js +8 -2
- package/dist/components/assistant-ui/elements/Image.js +10 -5
- package/dist/components/assistant-ui/elements/ImageGallery.js +10 -5
- package/dist/components/assistant-ui/elements/ImageGeneration.js +8 -2
- package/dist/components/assistant-ui/elements/JobProgress.js +8 -2
- package/dist/components/assistant-ui/elements/LauncherBubble.js +8 -2
- package/dist/components/assistant-ui/elements/LinkPreview.js +5 -1
- package/dist/components/assistant-ui/elements/MapAnswer.js +9 -2
- package/dist/components/assistant-ui/elements/MarkdownText.js +8 -6
- package/dist/components/assistant-ui/elements/McpServerPanel.js +9 -3
- package/dist/components/assistant-ui/elements/MemoryChips.js +8 -2
- package/dist/components/assistant-ui/elements/MermaidDiagram.js +9 -6
- package/dist/components/assistant-ui/elements/MermaidZoom.js +8 -5
- package/dist/components/assistant-ui/elements/MessageActions.js +9 -3
- package/dist/components/assistant-ui/elements/MessageAttachments.js +8 -2
- package/dist/components/assistant-ui/elements/MessageBranches.js +8 -2
- package/dist/components/assistant-ui/elements/MessagePair.js +8 -2
- package/dist/components/assistant-ui/elements/MessageQueue.js +8 -2
- package/dist/components/assistant-ui/elements/MobileComposer.js +12 -5
- package/dist/components/assistant-ui/elements/ModelPicker.js +5 -2
- package/dist/components/assistant-ui/elements/ModelSelector.js +24 -19
- package/dist/components/assistant-ui/elements/ModelSelectorContent.js +21 -16
- package/dist/components/assistant-ui/elements/ModelSelectorEffort.js +5 -1
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +13 -9
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +13 -9
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +13 -9
- package/dist/components/assistant-ui/elements/ModelSelectorItem.js +13 -9
- package/dist/components/assistant-ui/elements/ModelSelectorList.js +15 -11
- package/dist/components/assistant-ui/elements/ModelSelectorRoot.js +6 -4
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +13 -9
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +13 -9
- package/dist/components/assistant-ui/elements/ModelSelectorTrigger.js +7 -4
- package/dist/components/assistant-ui/elements/Onboarding.js +8 -2
- package/dist/components/assistant-ui/elements/OptionList.js +9 -3
- package/dist/components/assistant-ui/elements/PermissionGrant.js +8 -2
- package/dist/components/assistant-ui/elements/PromptLibrary.js +12 -5
- package/dist/components/assistant-ui/elements/QuestionFlow.js +10 -4
- package/dist/components/assistant-ui/elements/QuotaBanner.js +8 -2
- package/dist/components/assistant-ui/elements/QuoteReply.js +8 -2
- package/dist/components/assistant-ui/elements/ReadAloud.js +8 -2
- package/dist/components/assistant-ui/elements/ReasoningContent.js +5 -2
- package/dist/components/assistant-ui/elements/ReasoningEffort.js +5 -2
- package/dist/components/assistant-ui/elements/ReasoningPanel.js +6 -2
- package/dist/components/assistant-ui/elements/ReasoningRoot.js +5 -2
- package/dist/components/assistant-ui/elements/ReasoningTrigger.js +5 -2
- package/dist/components/assistant-ui/elements/RecommendationCard.js +8 -2
- package/dist/components/assistant-ui/elements/RegenerateMenu.js +7 -5
- package/dist/components/assistant-ui/elements/ReviewableDiff.js +8 -2
- package/dist/components/assistant-ui/elements/RunActivity.js +6 -2
- package/dist/components/assistant-ui/elements/ScheduleCard.js +5 -2
- package/dist/components/assistant-ui/elements/ScrollAnchor.js +5 -1
- package/dist/components/assistant-ui/elements/SettingsPanel.js +12 -5
- package/dist/components/assistant-ui/elements/SharedConversation.js +8 -2
- package/dist/components/assistant-ui/elements/Sources.js +7 -2
- package/dist/components/assistant-ui/elements/StoppedRun.js +8 -2
- package/dist/components/assistant-ui/elements/Suggestions.js +8 -2
- package/dist/components/assistant-ui/elements/TaskCard.js +8 -2
- package/dist/components/assistant-ui/elements/TerminalBlock.js +8 -2
- package/dist/components/assistant-ui/elements/ThreadList.js +8 -2
- package/dist/components/assistant-ui/elements/ThreadSearch.js +12 -5
- package/dist/components/assistant-ui/elements/TodoList.js +8 -2
- package/dist/components/assistant-ui/elements/ToolCall.js +6 -2
- package/dist/components/assistant-ui/elements/ToolError.js +8 -2
- package/dist/components/assistant-ui/elements/ToolGroup.js +8 -2
- package/dist/components/assistant-ui/elements/ToolTimeline.js +6 -2
- package/dist/components/assistant-ui/elements/TooltipIconButton.js +6 -5
- package/dist/components/assistant-ui/elements/VoiceConversation.js +9 -2
- package/dist/components/assistant-ui/elements/WebPreview.js +8 -2
- package/dist/components/assistant-ui/eveAskQuestionToolkit.js +14 -6
- package/dist/components/assistant-ui/index.js +148 -144
- package/dist/components/assistant-ui/native/AssistantModal.js +29 -25
- package/dist/components/assistant-ui/native/AssistantSidebar.js +28 -24
- package/dist/components/assistant-ui/native/AttachmentPreview.js +9 -7
- package/dist/components/assistant-ui/native/ComposerQuotePreview.js +5 -1
- package/dist/components/assistant-ui/native/ComposerTriggerPopover.js +5 -1
- package/dist/components/assistant-ui/native/ContextDisplay.js +15 -12
- package/dist/components/assistant-ui/native/ContextDisplayBar.js +12 -9
- package/dist/components/assistant-ui/native/ContextDisplayRing.js +12 -9
- package/dist/components/assistant-ui/native/ContextDisplayRoot.js +8 -6
- package/dist/components/assistant-ui/native/ContextDisplayRuntimeRoot.js +7 -5
- package/dist/components/assistant-ui/native/ContextDisplayText.js +12 -9
- package/dist/components/assistant-ui/native/ConversationMapAui.js +8 -5
- package/dist/components/assistant-ui/native/FollowupSuggestionsRow.js +5 -1
- package/dist/components/assistant-ui/native/McpConfigDialog.js +12 -6
- package/dist/components/assistant-ui/native/MermaidDiagram.js +10 -7
- package/dist/components/assistant-ui/native/MessageTiming.js +7 -4
- package/dist/components/assistant-ui/native/ModelSelector.js +26 -21
- package/dist/components/assistant-ui/native/Reasoning.js +13 -11
- package/dist/components/assistant-ui/native/SelectionToolbar.js +5 -1
- package/dist/components/assistant-ui/native/Sources.js +5 -1
- package/dist/components/assistant-ui/native/TaskCard.js +15 -11
- package/dist/components/assistant-ui/native/TaskGroup.js +16 -12
- package/dist/components/assistant-ui/native/TaskTray.js +7 -4
- package/dist/components/assistant-ui/native/Thread.js +26 -22
- package/dist/components/assistant-ui/native/ThreadList.d.ts +6 -4
- package/dist/components/assistant-ui/native/ThreadList.js +11 -5
- package/dist/components/assistant-ui/native/ThreadListSidebar.js +14 -10
- package/dist/components/assistant-ui/native/ToolFallbackRoot.js +12 -4
- package/dist/components/assistant-ui/native/ToolGroup.js +6 -2
- package/dist/components/assistant-ui/native/VoiceConnectButton.js +8 -2
- package/dist/components/assistant-ui/native/VoiceControl.js +10 -9
- package/dist/components/assistant-ui/native/VoiceConversation.js +10 -3
- package/dist/components/assistant-ui/native/VoiceDisconnectButton.js +7 -6
- package/dist/components/assistant-ui/native/VoiceMuteButton.js +7 -6
- package/dist/components/assistant-ui/native/index.js +81 -77
- package/dist/components/calendar/Calendar.d.ts +1 -1
- package/dist/components/calendar/index.js +9 -6
- package/dist/components/calendar/types.d.ts +2 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/index.js +8 -2
- package/dist/components/carousel/types.d.ts +2 -1
- package/dist/components/chart/index.js +5 -1
- package/dist/components/color-picker/ColorPicker.d.ts +2 -1
- package/dist/components/color-picker/index.js +26 -1
- package/dist/components/command/Command.d.ts +2 -1
- package/dist/components/command/index.js +12 -8
- package/dist/components/data-grid/index.js +16 -12
- package/dist/components/editor/RichTextEditor.d.ts +3 -2
- package/dist/components/editor/index.js +39 -3
- package/dist/components/event-calendar/EventCalendar.d.ts +2 -1
- package/dist/components/event-calendar/index.js +19 -3
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/index.js +20 -2
- package/dist/components/gantt/index.js +9 -3
- package/dist/components/image-crop/ImageCrop.d.ts +4 -3
- package/dist/components/image-crop/index.js +27 -1
- package/dist/components/input-otp/InputOTP.d.ts +3 -2
- package/dist/components/input-otp/index.js +9 -2
- package/dist/components/json-render/catalog.d.ts +1 -1
- package/dist/components/json-render/index.js +34 -31
- package/dist/components/message-scroller/MessageScroller.d.ts +3 -2
- package/dist/components/message-scroller/index.js +12 -1
- package/dist/components/persian-calendar/PersianCalendar.d.ts +3 -2
- package/dist/components/persian-calendar/index.js +16 -3
- package/dist/components/questionnaire/Questionnaire.d.ts +8 -7
- package/dist/components/questionnaire/index.js +37 -3
- package/dist/components/resizable/Resizable.d.ts +2 -1
- package/dist/components/resizable/index.js +4 -1
- package/dist/components/sonner/Sonner.d.ts +3 -2
- package/dist/components/sonner/index.js +14 -1
- package/dist/components/tree/Tree.d.ts +3 -2
- package/dist/components/tree/TreeItem.d.ts +3 -2
- package/dist/components/tree/index.js +28 -2
- package/dist/components/virtual-data-grid/index.js +11 -4
- package/dist/drag-drop/types.d.ts +2 -1
- package/dist/hooks/useAnalytics.d.ts +4 -0
- package/dist/hooks/useAnalyticsCallback.d.ts +5 -0
- package/dist/hooks/useAnalyticsEnabled.d.ts +2 -0
- package/dist/hooks/useAnalyticsInput.d.ts +8 -0
- package/dist/hooks/useDropTarget.d.ts +1 -1
- package/dist/index.js +39 -37
- package/dist/prototype.js +5 -1
- package/llms/components/actions/Button.md +20 -0
- package/llms/components/actions/ToggleGroup.md +48 -1
- package/llms/components/providers/AnalyticsProvider.md +59 -0
- package/llms/setup.md +48 -24
- package/llms.txt +1 -0
- package/package.json +5 -1
- package/dist/chunk-j89xg1ak.js +0 -14
- package/dist/chunk-mz3e810d.js +0 -83
- package/dist/chunk-q7p28b89.js +0 -68
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnalyticsButton
|
|
3
|
+
} from "./chunk-tcefvfr8.js";
|
|
4
|
+
import {
|
|
5
|
+
useAnalyticsInput
|
|
6
|
+
} from "./chunk-7jpsybag.js";
|
|
1
7
|
import {
|
|
2
8
|
useResolvedPortalContainer
|
|
3
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-9t5h5ps3.js";
|
|
4
10
|
import {
|
|
5
11
|
useDensity
|
|
6
12
|
} from "./chunk-e6hk39ev.js";
|
|
@@ -9,53 +15,63 @@ import {
|
|
|
9
15
|
} from "./chunk-cp2m7y7v.js";
|
|
10
16
|
import {
|
|
11
17
|
Button2
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-38301e40.js";
|
|
13
19
|
import {
|
|
14
20
|
TooltipIconButton2
|
|
15
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-kzar67tq.js";
|
|
16
22
|
import {
|
|
17
23
|
UserMessageAttachments2,
|
|
18
24
|
ComposerAttachments3,
|
|
19
25
|
ComposerAddAttachment2
|
|
20
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-gtebjkkz.js";
|
|
21
27
|
import {
|
|
22
28
|
getFileHref,
|
|
23
29
|
File2
|
|
24
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-mtx71g1t.js";
|
|
25
31
|
import {
|
|
26
32
|
ThreadFollowupSuggestions2
|
|
27
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-j2n8684w.js";
|
|
28
34
|
import {
|
|
29
35
|
Image2
|
|
30
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-xgp1eyhr.js";
|
|
31
37
|
import {
|
|
32
38
|
MarkdownText2
|
|
33
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-bt7ramb0.js";
|
|
34
40
|
import {
|
|
35
41
|
ReasoningTrigger2
|
|
36
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-pa8yemp1.js";
|
|
37
43
|
import {
|
|
38
44
|
ReasoningContent2
|
|
39
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-qv3b2jvc.js";
|
|
40
46
|
import {
|
|
41
47
|
ReasoningText2
|
|
42
48
|
} from "./chunk-m99hfsps.js";
|
|
43
49
|
import {
|
|
44
50
|
ReasoningRoot2,
|
|
45
51
|
Reasoning2
|
|
46
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-m9rrhywc.js";
|
|
47
53
|
import {
|
|
48
54
|
ToolFallback2
|
|
49
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-f6rbv5gf.js";
|
|
50
56
|
import {
|
|
51
57
|
ToolGroupRoot2,
|
|
52
58
|
ToolGroupTrigger2,
|
|
53
59
|
ToolGroupContent2
|
|
54
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-v8gdzaxt.js";
|
|
55
61
|
import {
|
|
56
62
|
Skeleton2
|
|
57
63
|
} from "./chunk-d70rcwk7.js";
|
|
58
64
|
|
|
65
|
+
// src/components/analytics/AnalyticsTextarea.tsx
|
|
66
|
+
import { jsx } from "react/jsx-runtime";
|
|
67
|
+
function AnalyticsTextarea({ component, analytics, ...props }) {
|
|
68
|
+
const handlers = useAnalyticsInput(component, analytics, props);
|
|
69
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
70
|
+
...props,
|
|
71
|
+
...handlers
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
59
75
|
// src/components/assistant-ui/native/Thread.tsx
|
|
60
76
|
import {
|
|
61
77
|
ActionBarMorePrimitive,
|
|
@@ -95,7 +111,7 @@ import {
|
|
|
95
111
|
useLayoutEffect,
|
|
96
112
|
useRef
|
|
97
113
|
} from "react";
|
|
98
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
114
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
99
115
|
var shouldShowComposerResume = (s) => !!s.thread.canResume && s.composer.type === "thread" && s.composer.isEmpty;
|
|
100
116
|
var reasoningDuration = (timing) => timing?.completedAt === undefined ? undefined : Math.round((timing.completedAt - timing.startedAt) / 1000);
|
|
101
117
|
var messageGroupBy = groupPartByType({
|
|
@@ -117,37 +133,37 @@ var ThreadHistorySkeleton = () => /* @__PURE__ */ jsxs("div", {
|
|
|
117
133
|
role: "status",
|
|
118
134
|
className: "animate-in fade-in fill-mode-both flex flex-col gap-y-6 [animation-delay:150ms] [animation-duration:200ms]",
|
|
119
135
|
children: [
|
|
120
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ jsx2("span", {
|
|
121
137
|
className: "sr-only",
|
|
122
138
|
children: "Loading conversation"
|
|
123
139
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ jsx2(Skeleton2, {
|
|
125
141
|
className: "h-3 w-full"
|
|
126
142
|
}),
|
|
127
143
|
/* @__PURE__ */ jsxs("div", {
|
|
128
144
|
className: "flex flex-col gap-y-2",
|
|
129
145
|
children: [
|
|
130
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ jsx2(Skeleton2, {
|
|
131
147
|
className: "h-3 w-full"
|
|
132
148
|
}),
|
|
133
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ jsx2(Skeleton2, {
|
|
134
150
|
className: "h-3 w-full"
|
|
135
151
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ jsx2(Skeleton2, {
|
|
137
153
|
className: "h-3 w-full"
|
|
138
154
|
})
|
|
139
155
|
]
|
|
140
156
|
}),
|
|
141
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ jsx2(Skeleton2, {
|
|
142
158
|
className: "h-3 w-full"
|
|
143
159
|
}),
|
|
144
160
|
/* @__PURE__ */ jsxs("div", {
|
|
145
161
|
className: "flex flex-col gap-y-2",
|
|
146
162
|
children: [
|
|
147
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ jsx2(Skeleton2, {
|
|
148
164
|
className: "h-3 w-full"
|
|
149
165
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ jsx2(Skeleton2, {
|
|
151
167
|
className: "h-3 w-full"
|
|
152
168
|
})
|
|
153
169
|
]
|
|
@@ -162,9 +178,9 @@ function Thread2({
|
|
|
162
178
|
composerInputRef
|
|
163
179
|
}) {
|
|
164
180
|
const isEmpty = useAuiState(isNewChatView);
|
|
165
|
-
return /* @__PURE__ */
|
|
181
|
+
return /* @__PURE__ */ jsx2(ThreadComponentsContext.Provider, {
|
|
166
182
|
value: components,
|
|
167
|
-
children: /* @__PURE__ */
|
|
183
|
+
children: /* @__PURE__ */ jsx2(ThreadRoot, {
|
|
168
184
|
isEmpty,
|
|
169
185
|
autoFocus,
|
|
170
186
|
emptyComposerPosition,
|
|
@@ -182,54 +198,54 @@ var ThreadRoot = ({
|
|
|
182
198
|
}) => {
|
|
183
199
|
const { Welcome = ThreadWelcome } = useContext(ThreadComponentsContext);
|
|
184
200
|
const isCentered = isEmpty && emptyComposerPosition === "center";
|
|
185
|
-
return /* @__PURE__ */
|
|
186
|
-
render: /* @__PURE__ */
|
|
201
|
+
return /* @__PURE__ */ jsx2(ThreadPrimitive.Root, {
|
|
202
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
187
203
|
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]")
|
|
188
204
|
}),
|
|
189
|
-
children: /* @__PURE__ */
|
|
205
|
+
children: /* @__PURE__ */ jsx2(ThreadPrimitive.Viewport, {
|
|
190
206
|
turnAnchor: "top",
|
|
191
207
|
...viewportProps,
|
|
192
208
|
"data-slot": "aui_thread-viewport",
|
|
193
|
-
render: /* @__PURE__ */
|
|
209
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
194
210
|
className: "relative flex flex-1 flex-col overflow-x-auto overflow-y-scroll scroll-smooth"
|
|
195
211
|
}),
|
|
196
212
|
children: /* @__PURE__ */ jsxs("div", {
|
|
197
213
|
className: cn2("mx-auto flex w-full max-w-(--thread-max-width) flex-1 flex-col px-4 pt-4", isCentered && "justify-center"),
|
|
198
214
|
children: [
|
|
199
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
200
216
|
condition: isNewChatView,
|
|
201
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ jsx2(Welcome, {})
|
|
202
218
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
204
220
|
condition: isHistoryLoadingView,
|
|
205
|
-
children: /* @__PURE__ */
|
|
221
|
+
children: /* @__PURE__ */ jsx2(ThreadHistorySkeleton, {})
|
|
206
222
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ jsx2(ThreadLoadEarlier, {}),
|
|
224
|
+
/* @__PURE__ */ jsx2("div", {
|
|
209
225
|
"data-slot": "aui_message-group",
|
|
210
226
|
className: "mb-14 flex flex-col gap-y-6 empty:hidden",
|
|
211
|
-
children: /* @__PURE__ */
|
|
212
|
-
children: () => /* @__PURE__ */
|
|
227
|
+
children: /* @__PURE__ */ jsx2(ThreadPrimitive.Messages, {
|
|
228
|
+
children: () => /* @__PURE__ */ jsx2(ThreadMessage, {})
|
|
213
229
|
})
|
|
214
230
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ jsx2("div", {
|
|
216
232
|
"aria-hidden": "true",
|
|
217
233
|
className: cn2(!isCentered && "flex-1")
|
|
218
234
|
}),
|
|
219
235
|
/* @__PURE__ */ jsxs(ThreadPrimitive.ViewportFooter, {
|
|
220
|
-
render: /* @__PURE__ */
|
|
236
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
221
237
|
className: cn2("aui-thread-viewport-footer bg-background sticky bottom-0 flex flex-col gap-4 overflow-visible pb-4 md:pb-6", !isCentered && "rounded-t-(--composer-radius)")
|
|
222
238
|
}),
|
|
223
239
|
children: [
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ jsx2(ThreadScrollToBottom, {}),
|
|
241
|
+
/* @__PURE__ */ jsx2(ThreadFollowupSuggestions2, {}),
|
|
242
|
+
/* @__PURE__ */ jsx2(Composer, {
|
|
227
243
|
autoFocus,
|
|
228
244
|
inputRef: composerInputRef
|
|
229
245
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
231
247
|
condition: (s) => isNewChatView(s) && s.composer.isEmpty,
|
|
232
|
-
children: /* @__PURE__ */
|
|
248
|
+
children: /* @__PURE__ */ jsx2(ThreadSuggestions, {})
|
|
233
249
|
})
|
|
234
250
|
]
|
|
235
251
|
})
|
|
@@ -244,12 +260,12 @@ var ThreadMessage = () => {
|
|
|
244
260
|
const isEditing = useAuiState((s) => s.message.composer.isEditing);
|
|
245
261
|
const isSpoken = useAuiState((s) => s.message.metadata.modality === "voice");
|
|
246
262
|
if (isEditing)
|
|
247
|
-
return /* @__PURE__ */
|
|
263
|
+
return /* @__PURE__ */ jsx2(EditComposer, {});
|
|
248
264
|
if (isSpoken)
|
|
249
|
-
return /* @__PURE__ */
|
|
265
|
+
return /* @__PURE__ */ jsx2(SpokenMessage, {});
|
|
250
266
|
if (role === "user")
|
|
251
|
-
return /* @__PURE__ */
|
|
252
|
-
return /* @__PURE__ */
|
|
267
|
+
return /* @__PURE__ */ jsx2(UserMessage, {});
|
|
268
|
+
return /* @__PURE__ */ jsx2(AssistantMessageComponent, {});
|
|
253
269
|
};
|
|
254
270
|
var useVoiceRunPosition = () => useAuiState((s) => {
|
|
255
271
|
const before = s.thread.messages[s.message.index - 1]?.metadata.modality === "voice";
|
|
@@ -258,7 +274,7 @@ var useVoiceRunPosition = () => useAuiState((s) => {
|
|
|
258
274
|
return after ? "middle" : "end";
|
|
259
275
|
return after ? "start" : "single";
|
|
260
276
|
});
|
|
261
|
-
var SpokenText = ({ text }) => /* @__PURE__ */
|
|
277
|
+
var SpokenText = ({ text }) => /* @__PURE__ */ jsx2("p", {
|
|
262
278
|
className: "aui-spoken-message-text m-0",
|
|
263
279
|
children: text
|
|
264
280
|
});
|
|
@@ -271,7 +287,7 @@ var SpokenMessage = () => {
|
|
|
271
287
|
"data-slot": "aui_spoken-message-root",
|
|
272
288
|
"data-role": role,
|
|
273
289
|
"data-voice-run": position,
|
|
274
|
-
render: /* @__PURE__ */
|
|
290
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
275
291
|
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")
|
|
276
292
|
}),
|
|
277
293
|
children: [
|
|
@@ -279,11 +295,11 @@ var SpokenMessage = () => {
|
|
|
279
295
|
"data-slot": "aui_spoken-exchange-header",
|
|
280
296
|
className: "text-muted-foreground mb-1.5 flex items-center gap-1.5 text-sm",
|
|
281
297
|
children: [
|
|
282
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ jsx2(PhoneIcon, {
|
|
283
299
|
"aria-hidden": "true",
|
|
284
300
|
className: "size-3.5 shrink-0"
|
|
285
301
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ jsx2("span", {
|
|
287
303
|
children: "Voice conversation"
|
|
288
304
|
})
|
|
289
305
|
]
|
|
@@ -292,28 +308,28 @@ var SpokenMessage = () => {
|
|
|
292
308
|
"data-slot": "aui_spoken-message-content",
|
|
293
309
|
className: "text-foreground flex items-start gap-2 text-sm leading-relaxed",
|
|
294
310
|
children: [
|
|
295
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ jsx2("span", {
|
|
296
312
|
className: "text-muted-foreground mt-1 shrink-0",
|
|
297
313
|
"aria-hidden": true,
|
|
298
|
-
children: role === "user" ? /* @__PURE__ */
|
|
314
|
+
children: role === "user" ? /* @__PURE__ */ jsx2(MicIcon, {
|
|
299
315
|
"aria-hidden": "true",
|
|
300
316
|
className: "size-3.5 shrink-0"
|
|
301
|
-
}) : /* @__PURE__ */
|
|
317
|
+
}) : /* @__PURE__ */ jsx2(AudioLinesIcon, {
|
|
302
318
|
"aria-hidden": "true",
|
|
303
319
|
className: "size-3.5 shrink-0"
|
|
304
320
|
})
|
|
305
321
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ jsx2("span", {
|
|
307
323
|
className: "sr-only",
|
|
308
324
|
children: role === "user" ? "You said" : "Assistant said"
|
|
309
325
|
}),
|
|
310
326
|
/* @__PURE__ */ jsxs("div", {
|
|
311
327
|
className: "min-w-0 flex-1 wrap-break-word",
|
|
312
328
|
children: [
|
|
313
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ jsx2(MessagePrimitive.Parts, {
|
|
314
330
|
components: { Text: SpokenText }
|
|
315
331
|
}),
|
|
316
|
-
isSpeaking && /* @__PURE__ */
|
|
332
|
+
isSpeaking && /* @__PURE__ */ jsx2("span", {
|
|
317
333
|
"data-slot": "aui_spoken-message-indicator",
|
|
318
334
|
role: "status",
|
|
319
335
|
className: "text-muted-foreground ms-1 animate-pulse font-sans",
|
|
@@ -322,34 +338,34 @@ var SpokenMessage = () => {
|
|
|
322
338
|
})
|
|
323
339
|
]
|
|
324
340
|
}),
|
|
325
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ jsx2(SpokenActionBar, {})
|
|
326
342
|
]
|
|
327
343
|
})
|
|
328
344
|
]
|
|
329
345
|
});
|
|
330
346
|
};
|
|
331
347
|
var SpokenActionBar = () => {
|
|
332
|
-
return /* @__PURE__ */
|
|
348
|
+
return /* @__PURE__ */ jsx2(ActionBarPrimitive.Root, {
|
|
333
349
|
hideWhenRunning: true,
|
|
334
350
|
autohide: "always",
|
|
335
|
-
render: /* @__PURE__ */
|
|
351
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
336
352
|
className: "aui-spoken-action-bar text-muted-foreground flex shrink-0 gap-1"
|
|
337
353
|
}),
|
|
338
|
-
children: /* @__PURE__ */
|
|
354
|
+
children: /* @__PURE__ */ jsx2(ActionBarPrimitive.Copy, {
|
|
339
355
|
asChild: true,
|
|
340
356
|
children: /* @__PURE__ */ jsxs(TooltipIconButton2, {
|
|
341
357
|
tooltip: "Copy",
|
|
342
358
|
children: [
|
|
343
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
344
360
|
condition: (s) => s.message.isCopied,
|
|
345
|
-
children: /* @__PURE__ */
|
|
361
|
+
children: /* @__PURE__ */ jsx2(CheckIcon, {
|
|
346
362
|
"aria-hidden": "true",
|
|
347
363
|
className: "size-4 shrink-0"
|
|
348
364
|
})
|
|
349
365
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
351
367
|
condition: (s) => !s.message.isCopied,
|
|
352
|
-
children: /* @__PURE__ */
|
|
368
|
+
children: /* @__PURE__ */ jsx2(CopyIcon, {
|
|
353
369
|
"aria-hidden": "true",
|
|
354
370
|
className: "size-4 shrink-0"
|
|
355
371
|
})
|
|
@@ -391,17 +407,17 @@ var ThreadLoadEarlier = () => {
|
|
|
391
407
|
focusedRef.current = event.target;
|
|
392
408
|
},
|
|
393
409
|
children: [
|
|
394
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ jsx2("span", {
|
|
395
411
|
role: "status",
|
|
396
412
|
className: "sr-only",
|
|
397
413
|
children: loading ? "Loading earlier messages" : ""
|
|
398
414
|
}),
|
|
399
|
-
visible && /* @__PURE__ */
|
|
415
|
+
visible && /* @__PURE__ */ jsx2(ThreadPrimitive.LoadEarlier, {
|
|
400
416
|
asChild: true,
|
|
401
|
-
children: /* @__PURE__ */
|
|
417
|
+
children: /* @__PURE__ */ jsx2(Button2, {
|
|
402
418
|
variant: "ghost",
|
|
403
419
|
"data-slot": "aui_thread-load-earlier",
|
|
404
|
-
children: /* @__PURE__ */
|
|
420
|
+
children: /* @__PURE__ */ jsx2("span", {
|
|
405
421
|
className: cn2(loading && "shimmer motion-reduce:animate-none"),
|
|
406
422
|
children: loading ? "Loading earlier messages" : "Load earlier messages"
|
|
407
423
|
})
|
|
@@ -411,13 +427,13 @@ var ThreadLoadEarlier = () => {
|
|
|
411
427
|
});
|
|
412
428
|
};
|
|
413
429
|
var ThreadScrollToBottom = () => {
|
|
414
|
-
return /* @__PURE__ */
|
|
430
|
+
return /* @__PURE__ */ jsx2(ThreadPrimitive.ScrollToBottom, {
|
|
415
431
|
asChild: true,
|
|
416
|
-
children: /* @__PURE__ */
|
|
432
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
417
433
|
tooltip: "Scroll to bottom",
|
|
418
434
|
variant: "default",
|
|
419
435
|
className: "absolute end-0 bottom-full mb-2 disabled:invisible",
|
|
420
|
-
children: /* @__PURE__ */
|
|
436
|
+
children: /* @__PURE__ */ jsx2(ArrowDownIcon, {
|
|
421
437
|
"aria-hidden": "true",
|
|
422
438
|
className: "size-4 shrink-0"
|
|
423
439
|
})
|
|
@@ -425,33 +441,34 @@ var ThreadScrollToBottom = () => {
|
|
|
425
441
|
});
|
|
426
442
|
};
|
|
427
443
|
var ThreadWelcome = () => {
|
|
428
|
-
return /* @__PURE__ */
|
|
444
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
429
445
|
className: "aui-thread-welcome-root mb-6 flex flex-col px-2",
|
|
430
|
-
children: /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ jsx2("p", {
|
|
431
447
|
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",
|
|
432
448
|
children: "How can I help you today?"
|
|
433
449
|
})
|
|
434
450
|
});
|
|
435
451
|
};
|
|
436
452
|
var ThreadSuggestions = () => {
|
|
437
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
438
454
|
className: "aui-thread-welcome-suggestions flex w-full flex-col",
|
|
439
|
-
children: /* @__PURE__ */
|
|
440
|
-
children: () => /* @__PURE__ */
|
|
455
|
+
children: /* @__PURE__ */ jsx2(ThreadPrimitive.Suggestions, {
|
|
456
|
+
children: () => /* @__PURE__ */ jsx2(ThreadSuggestionItem, {})
|
|
441
457
|
})
|
|
442
458
|
});
|
|
443
459
|
};
|
|
444
460
|
var ThreadSuggestionItem = () => {
|
|
445
|
-
return /* @__PURE__ */
|
|
461
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
446
462
|
className: "aui-thread-welcome-suggestion-display fade-in slide-in-from-bottom-2 animate-in fill-mode-both duration-200",
|
|
447
463
|
children: /* @__PURE__ */ jsxs(SuggestionPrimitive.Trigger, {
|
|
448
464
|
send: true,
|
|
449
|
-
render: /* @__PURE__ */
|
|
465
|
+
render: /* @__PURE__ */ jsx2(AnalyticsButton, {
|
|
466
|
+
component: "ThreadSuggestionItem",
|
|
450
467
|
type: "button",
|
|
451
468
|
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"
|
|
452
469
|
}),
|
|
453
470
|
children: [
|
|
454
|
-
/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ jsx2("span", {
|
|
455
472
|
"aria-hidden": true,
|
|
456
473
|
className: "text-muted-foreground/60 group-hover:text-foreground font-mono text-sm transition-colors motion-reduce:transition-none",
|
|
457
474
|
children: ">"
|
|
@@ -459,14 +476,14 @@ var ThreadSuggestionItem = () => {
|
|
|
459
476
|
/* @__PURE__ */ jsxs("span", {
|
|
460
477
|
className: "min-w-0 flex-1 truncate",
|
|
461
478
|
children: [
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
render: /* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ jsx2(SuggestionPrimitive.Title, {
|
|
480
|
+
render: /* @__PURE__ */ jsx2("span", {
|
|
464
481
|
className: "aui-thread-welcome-suggestion-text-1 text-foreground"
|
|
465
482
|
})
|
|
466
483
|
}),
|
|
467
484
|
" ",
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
-
render: /* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ jsx2(SuggestionPrimitive.Description, {
|
|
486
|
+
render: /* @__PURE__ */ jsx2("span", {
|
|
470
487
|
className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground empty:hidden"
|
|
471
488
|
})
|
|
472
489
|
})
|
|
@@ -477,29 +494,30 @@ var ThreadSuggestionItem = () => {
|
|
|
477
494
|
});
|
|
478
495
|
};
|
|
479
496
|
var Composer = ({ autoFocus, inputRef }) => {
|
|
480
|
-
return /* @__PURE__ */
|
|
481
|
-
render: /* @__PURE__ */
|
|
497
|
+
return /* @__PURE__ */ jsx2(ComposerPrimitive.Root, {
|
|
498
|
+
render: /* @__PURE__ */ jsx2("form", {
|
|
482
499
|
className: "aui-composer-root relative flex w-full flex-col"
|
|
483
500
|
}),
|
|
484
501
|
children: /* @__PURE__ */ jsxs(ComposerPrimitive.AttachmentDropzone, {
|
|
485
|
-
render: /* @__PURE__ */
|
|
502
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
486
503
|
"data-slot": "aui_composer-shell",
|
|
487
504
|
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))]"
|
|
488
505
|
}),
|
|
489
506
|
children: [
|
|
490
|
-
/* @__PURE__ */
|
|
491
|
-
/* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ jsx2(ComposerAttachments3, {}),
|
|
508
|
+
/* @__PURE__ */ jsx2(ComposerPrimitive.Input, {
|
|
492
509
|
ref: inputRef,
|
|
493
510
|
placeholder: "Send a message...",
|
|
494
511
|
rows: 1,
|
|
495
512
|
autoFocus,
|
|
496
513
|
enterKeyHint: "send",
|
|
497
514
|
"aria-label": "Message input",
|
|
498
|
-
render: /* @__PURE__ */
|
|
515
|
+
render: /* @__PURE__ */ jsx2(AnalyticsTextarea, {
|
|
516
|
+
component: "Composer",
|
|
499
517
|
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"
|
|
500
518
|
})
|
|
501
519
|
}),
|
|
502
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ jsx2(ComposerAction, {})
|
|
503
521
|
]
|
|
504
522
|
})
|
|
505
523
|
});
|
|
@@ -510,42 +528,42 @@ var ComposerAction = () => {
|
|
|
510
528
|
return /* @__PURE__ */ jsxs("div", {
|
|
511
529
|
className: "aui-composer-action-wrapper relative flex items-center justify-between",
|
|
512
530
|
children: [
|
|
513
|
-
/* @__PURE__ */
|
|
531
|
+
/* @__PURE__ */ jsx2(ComposerAddAttachment2, {}),
|
|
514
532
|
/* @__PURE__ */ jsxs("div", {
|
|
515
533
|
className: "flex items-center gap-1.5",
|
|
516
534
|
children: [
|
|
517
|
-
ComposerActions && /* @__PURE__ */
|
|
535
|
+
ComposerActions && /* @__PURE__ */ jsx2(ComposerActions, {}),
|
|
518
536
|
/* @__PURE__ */ jsxs(AuiIf, {
|
|
519
537
|
condition: (s) => s.thread.capabilities.dictation,
|
|
520
538
|
children: [
|
|
521
|
-
/* @__PURE__ */
|
|
539
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
522
540
|
condition: (s) => s.composer.dictation == null,
|
|
523
|
-
children: /* @__PURE__ */
|
|
541
|
+
children: /* @__PURE__ */ jsx2(ComposerPrimitive.Dictate, {
|
|
524
542
|
asChild: true,
|
|
525
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
526
544
|
tooltip: "Voice Input",
|
|
527
545
|
side: "bottom",
|
|
528
546
|
type: "button",
|
|
529
547
|
variant: "ghost",
|
|
530
548
|
"aria-label": "Start Voice Input",
|
|
531
|
-
children: /* @__PURE__ */
|
|
549
|
+
children: /* @__PURE__ */ jsx2(MicIcon, {
|
|
532
550
|
"aria-hidden": "true",
|
|
533
551
|
className: "size-4 shrink-0"
|
|
534
552
|
})
|
|
535
553
|
})
|
|
536
554
|
})
|
|
537
555
|
}),
|
|
538
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
539
557
|
condition: (s) => s.composer.dictation != null,
|
|
540
|
-
children: /* @__PURE__ */
|
|
558
|
+
children: /* @__PURE__ */ jsx2(ComposerPrimitive.StopDictation, {
|
|
541
559
|
asChild: true,
|
|
542
|
-
children: /* @__PURE__ */
|
|
560
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
543
561
|
tooltip: "Stop Dictation",
|
|
544
562
|
side: "bottom",
|
|
545
563
|
type: "button",
|
|
546
564
|
variant: "ghost",
|
|
547
565
|
"aria-label": "Stop Voice Input",
|
|
548
|
-
children: /* @__PURE__ */
|
|
566
|
+
children: /* @__PURE__ */ jsx2(SquareIcon, {
|
|
549
567
|
"aria-hidden": "true",
|
|
550
568
|
className: "size-3.5 shrink-0 animate-pulse motion-reduce:animate-none"
|
|
551
569
|
})
|
|
@@ -554,49 +572,49 @@ var ComposerAction = () => {
|
|
|
554
572
|
})
|
|
555
573
|
]
|
|
556
574
|
}),
|
|
557
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
558
576
|
condition: (s) => (!s.composer.canCancel || s.thread.voice !== undefined && s.composer.submission === undefined) && !shouldShowComposerResume(s),
|
|
559
|
-
children: /* @__PURE__ */
|
|
577
|
+
children: /* @__PURE__ */ jsx2(ComposerPrimitive.Send, {
|
|
560
578
|
asChild: true,
|
|
561
|
-
children: /* @__PURE__ */
|
|
579
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
562
580
|
tooltip: "Send Message",
|
|
563
581
|
side: "bottom",
|
|
564
582
|
type: "button",
|
|
565
583
|
variant: "default",
|
|
566
584
|
"aria-label": "Send Message",
|
|
567
|
-
children: /* @__PURE__ */
|
|
585
|
+
children: /* @__PURE__ */ jsx2(ArrowUpIcon, {
|
|
568
586
|
"aria-hidden": "true",
|
|
569
587
|
className: "size-4 shrink-0"
|
|
570
588
|
})
|
|
571
589
|
})
|
|
572
590
|
})
|
|
573
591
|
}),
|
|
574
|
-
/* @__PURE__ */
|
|
592
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
575
593
|
condition: shouldShowComposerResume,
|
|
576
|
-
children: /* @__PURE__ */
|
|
594
|
+
children: /* @__PURE__ */ jsx2(ComposerPrimitive.Resume, {
|
|
577
595
|
asChild: true,
|
|
578
|
-
children: /* @__PURE__ */
|
|
596
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
579
597
|
tooltip: "Resume Generating",
|
|
580
598
|
side: "bottom",
|
|
581
599
|
type: "button",
|
|
582
600
|
variant: "default",
|
|
583
601
|
"aria-label": "Resume Generating",
|
|
584
|
-
children: /* @__PURE__ */
|
|
602
|
+
children: /* @__PURE__ */ jsx2(PlayIcon, {
|
|
585
603
|
"aria-hidden": "true",
|
|
586
604
|
className: "size-4 shrink-0"
|
|
587
605
|
})
|
|
588
606
|
})
|
|
589
607
|
})
|
|
590
608
|
}),
|
|
591
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
592
610
|
condition: (s) => s.composer.canCancel && (s.thread.voice === undefined || s.composer.submission !== undefined),
|
|
593
|
-
children: /* @__PURE__ */
|
|
611
|
+
children: /* @__PURE__ */ jsx2(ComposerPrimitive.Cancel, {
|
|
594
612
|
asChild: true,
|
|
595
|
-
children: /* @__PURE__ */
|
|
613
|
+
children: /* @__PURE__ */ jsx2(Button2, {
|
|
596
614
|
type: "button",
|
|
597
615
|
variant: "default",
|
|
598
616
|
"aria-label": isSending ? "Cancel Sending" : "Stop Generating",
|
|
599
|
-
children: /* @__PURE__ */
|
|
617
|
+
children: /* @__PURE__ */ jsx2(SquareIcon, {
|
|
600
618
|
"aria-hidden": "true",
|
|
601
619
|
className: "size-3.5 shrink-0"
|
|
602
620
|
})
|
|
@@ -609,14 +627,14 @@ var ComposerAction = () => {
|
|
|
609
627
|
});
|
|
610
628
|
};
|
|
611
629
|
var MessageError = () => {
|
|
612
|
-
return /* @__PURE__ */
|
|
613
|
-
children: /* @__PURE__ */
|
|
630
|
+
return /* @__PURE__ */ jsx2(MessagePrimitive.Error, {
|
|
631
|
+
children: /* @__PURE__ */ jsx2(ErrorPrimitive.Root, {
|
|
614
632
|
role: "alert",
|
|
615
|
-
render: /* @__PURE__ */
|
|
633
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
616
634
|
className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive mt-2 rounded-md border p-2 text-sm"
|
|
617
635
|
}),
|
|
618
|
-
children: /* @__PURE__ */
|
|
619
|
-
render: /* @__PURE__ */
|
|
636
|
+
children: /* @__PURE__ */ jsx2(ErrorPrimitive.Message, {
|
|
637
|
+
render: /* @__PURE__ */ jsx2("span", {
|
|
620
638
|
className: "aui-message-error-message line-clamp-2"
|
|
621
639
|
})
|
|
622
640
|
})
|
|
@@ -636,7 +654,7 @@ var AssistantMessage = () => {
|
|
|
636
654
|
return /* @__PURE__ */ jsxs(MessagePrimitive.Root, {
|
|
637
655
|
"data-slot": "aui_assistant-message-root",
|
|
638
656
|
"data-role": "assistant",
|
|
639
|
-
render: /* @__PURE__ */
|
|
657
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
640
658
|
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]"
|
|
641
659
|
}),
|
|
642
660
|
children: [
|
|
@@ -644,22 +662,22 @@ var AssistantMessage = () => {
|
|
|
644
662
|
"data-slot": "aui_assistant-message-content",
|
|
645
663
|
className: "text-foreground px-2 leading-relaxed wrap-break-word",
|
|
646
664
|
children: [
|
|
647
|
-
/* @__PURE__ */
|
|
665
|
+
/* @__PURE__ */ jsx2(MessagePrimitive.GroupedParts, {
|
|
648
666
|
groupBy,
|
|
649
667
|
children: ({ part, children }) => {
|
|
650
668
|
switch (part.type) {
|
|
651
669
|
case "group-chainOfThought":
|
|
652
|
-
return /* @__PURE__ */
|
|
670
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
653
671
|
"data-slot": "aui_chain-of-thought",
|
|
654
672
|
children
|
|
655
673
|
});
|
|
656
674
|
case "group-task":
|
|
657
|
-
return TaskGroupComponent ? /* @__PURE__ */
|
|
675
|
+
return TaskGroupComponent ? /* @__PURE__ */ jsx2(TaskGroupComponent, {
|
|
658
676
|
group: part
|
|
659
677
|
}) : null;
|
|
660
678
|
case "group-tool":
|
|
661
679
|
if (ToolGroup) {
|
|
662
|
-
return /* @__PURE__ */
|
|
680
|
+
return /* @__PURE__ */ jsx2(ToolGroup, {
|
|
663
681
|
group: part,
|
|
664
682
|
children
|
|
665
683
|
});
|
|
@@ -667,18 +685,18 @@ var AssistantMessage = () => {
|
|
|
667
685
|
return /* @__PURE__ */ jsxs(ToolGroupRoot2, {
|
|
668
686
|
variant: "ghost",
|
|
669
687
|
children: [
|
|
670
|
-
/* @__PURE__ */
|
|
688
|
+
/* @__PURE__ */ jsx2(ToolGroupTrigger2, {
|
|
671
689
|
count: part.indices.length,
|
|
672
690
|
active: part.status.type === "running"
|
|
673
691
|
}),
|
|
674
|
-
/* @__PURE__ */
|
|
692
|
+
/* @__PURE__ */ jsx2(ToolGroupContent2, {
|
|
675
693
|
children
|
|
676
694
|
})
|
|
677
695
|
]
|
|
678
696
|
});
|
|
679
697
|
case "group-reasoning": {
|
|
680
698
|
if (ReasoningGroup) {
|
|
681
|
-
return /* @__PURE__ */
|
|
699
|
+
return /* @__PURE__ */ jsx2(ReasoningGroup, {
|
|
682
700
|
group: part,
|
|
683
701
|
children
|
|
684
702
|
});
|
|
@@ -687,13 +705,13 @@ var AssistantMessage = () => {
|
|
|
687
705
|
return /* @__PURE__ */ jsxs(ReasoningRoot2, {
|
|
688
706
|
streaming: running,
|
|
689
707
|
children: [
|
|
690
|
-
/* @__PURE__ */
|
|
708
|
+
/* @__PURE__ */ jsx2(ReasoningTrigger2, {
|
|
691
709
|
active: running,
|
|
692
710
|
duration: reasoningDuration(part.timing)
|
|
693
711
|
}),
|
|
694
|
-
/* @__PURE__ */
|
|
712
|
+
/* @__PURE__ */ jsx2(ReasoningContent2, {
|
|
695
713
|
"aria-busy": running,
|
|
696
|
-
children: /* @__PURE__ */
|
|
714
|
+
children: /* @__PURE__ */ jsx2(ReasoningText2, {
|
|
697
715
|
children
|
|
698
716
|
})
|
|
699
717
|
})
|
|
@@ -701,35 +719,35 @@ var AssistantMessage = () => {
|
|
|
701
719
|
});
|
|
702
720
|
}
|
|
703
721
|
case "text":
|
|
704
|
-
return /* @__PURE__ */
|
|
722
|
+
return /* @__PURE__ */ jsx2(MarkdownText2, {});
|
|
705
723
|
case "reasoning":
|
|
706
|
-
return /* @__PURE__ */
|
|
724
|
+
return /* @__PURE__ */ jsx2(Reasoning2, {
|
|
707
725
|
...part
|
|
708
726
|
});
|
|
709
727
|
case "tool-call":
|
|
710
|
-
return part.toolUI ?? /* @__PURE__ */
|
|
728
|
+
return part.toolUI ?? /* @__PURE__ */ jsx2(ToolFallbackComponent, {
|
|
711
729
|
...part
|
|
712
730
|
});
|
|
713
731
|
case "data":
|
|
714
732
|
return part.dataRendererUI;
|
|
715
733
|
case "file":
|
|
716
|
-
return /* @__PURE__ */
|
|
734
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
717
735
|
"data-slot": "aui_assistant-message-file",
|
|
718
736
|
className: "py-1",
|
|
719
|
-
children: /* @__PURE__ */
|
|
737
|
+
children: /* @__PURE__ */ jsx2(MessageFile, {
|
|
720
738
|
...part
|
|
721
739
|
})
|
|
722
740
|
});
|
|
723
741
|
case "image":
|
|
724
|
-
return /* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ jsx2("div", {
|
|
725
743
|
"data-slot": "aui_assistant-message-image",
|
|
726
744
|
className: "py-1",
|
|
727
|
-
children: /* @__PURE__ */
|
|
745
|
+
children: /* @__PURE__ */ jsx2(Image2, {
|
|
728
746
|
...part
|
|
729
747
|
})
|
|
730
748
|
});
|
|
731
749
|
case "indicator":
|
|
732
|
-
return /* @__PURE__ */
|
|
750
|
+
return /* @__PURE__ */ jsx2("span", {
|
|
733
751
|
"data-slot": "aui_assistant-message-indicator",
|
|
734
752
|
className: "animate-pulse font-sans",
|
|
735
753
|
"aria-label": "Assistant is working",
|
|
@@ -740,15 +758,15 @@ var AssistantMessage = () => {
|
|
|
740
758
|
}
|
|
741
759
|
}
|
|
742
760
|
}),
|
|
743
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ jsx2(MessageError, {})
|
|
744
762
|
]
|
|
745
763
|
}),
|
|
746
764
|
/* @__PURE__ */ jsxs("div", {
|
|
747
765
|
"data-slot": "aui_assistant-message-footer",
|
|
748
766
|
className: cn2("ms-2 flex items-center", ACTION_BAR_HEIGHT),
|
|
749
767
|
children: [
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ jsx2(BranchPicker, {}),
|
|
769
|
+
/* @__PURE__ */ jsx2(AssistantActionBar, {})
|
|
752
770
|
]
|
|
753
771
|
})
|
|
754
772
|
]
|
|
@@ -760,25 +778,25 @@ var AssistantActionBar = () => {
|
|
|
760
778
|
return /* @__PURE__ */ jsxs(ActionBarPrimitive.Root, {
|
|
761
779
|
hideWhenRunning: true,
|
|
762
780
|
autohide: "not-last",
|
|
763
|
-
render: /* @__PURE__ */
|
|
781
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
764
782
|
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"
|
|
765
783
|
}),
|
|
766
784
|
children: [
|
|
767
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ jsx2(ActionBarPrimitive.Copy, {
|
|
768
786
|
asChild: true,
|
|
769
787
|
children: /* @__PURE__ */ jsxs(TooltipIconButton2, {
|
|
770
788
|
tooltip: "Copy",
|
|
771
789
|
children: [
|
|
772
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
773
791
|
condition: (s) => s.message.isCopied,
|
|
774
|
-
children: /* @__PURE__ */
|
|
792
|
+
children: /* @__PURE__ */ jsx2(CheckIcon, {
|
|
775
793
|
"aria-hidden": "true",
|
|
776
794
|
className: "size-4 shrink-0"
|
|
777
795
|
})
|
|
778
796
|
}),
|
|
779
|
-
/* @__PURE__ */
|
|
797
|
+
/* @__PURE__ */ jsx2(AuiIf, {
|
|
780
798
|
condition: (s) => !s.message.isCopied,
|
|
781
|
-
children: /* @__PURE__ */
|
|
799
|
+
children: /* @__PURE__ */ jsx2(CopyIcon, {
|
|
782
800
|
"aria-hidden": "true",
|
|
783
801
|
className: "size-4 shrink-0"
|
|
784
802
|
})
|
|
@@ -789,21 +807,21 @@ var AssistantActionBar = () => {
|
|
|
789
807
|
/* @__PURE__ */ jsxs(AuiIf, {
|
|
790
808
|
condition: (s) => s.thread.capabilities.feedback,
|
|
791
809
|
children: [
|
|
792
|
-
/* @__PURE__ */
|
|
810
|
+
/* @__PURE__ */ jsx2(ActionBarPrimitive.FeedbackPositive, {
|
|
793
811
|
asChild: true,
|
|
794
|
-
children: /* @__PURE__ */
|
|
812
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
795
813
|
tooltip: "Helpful",
|
|
796
|
-
children: /* @__PURE__ */
|
|
814
|
+
children: /* @__PURE__ */ jsx2(ThumbsUpIcon, {
|
|
797
815
|
"aria-hidden": "true",
|
|
798
816
|
className: "size-4 shrink-0"
|
|
799
817
|
})
|
|
800
818
|
})
|
|
801
819
|
}),
|
|
802
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ jsx2(ActionBarPrimitive.FeedbackNegative, {
|
|
803
821
|
asChild: true,
|
|
804
|
-
children: /* @__PURE__ */
|
|
822
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
805
823
|
tooltip: "Not helpful",
|
|
806
|
-
children: /* @__PURE__ */
|
|
824
|
+
children: /* @__PURE__ */ jsx2(ThumbsDownIcon, {
|
|
807
825
|
"aria-hidden": "true",
|
|
808
826
|
className: "size-4 shrink-0"
|
|
809
827
|
})
|
|
@@ -811,11 +829,11 @@ var AssistantActionBar = () => {
|
|
|
811
829
|
})
|
|
812
830
|
]
|
|
813
831
|
}),
|
|
814
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ jsx2(ActionBarPrimitive.Reload, {
|
|
815
833
|
asChild: true,
|
|
816
|
-
children: /* @__PURE__ */
|
|
834
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
817
835
|
tooltip: "Refresh",
|
|
818
|
-
children: /* @__PURE__ */
|
|
836
|
+
children: /* @__PURE__ */ jsx2(RefreshCwIcon, {
|
|
819
837
|
"aria-hidden": "true",
|
|
820
838
|
className: "size-4 shrink-0"
|
|
821
839
|
})
|
|
@@ -823,33 +841,33 @@ var AssistantActionBar = () => {
|
|
|
823
841
|
}),
|
|
824
842
|
/* @__PURE__ */ jsxs(ActionBarMorePrimitive.Root, {
|
|
825
843
|
children: [
|
|
826
|
-
/* @__PURE__ */
|
|
844
|
+
/* @__PURE__ */ jsx2(ActionBarMorePrimitive.Trigger, {
|
|
827
845
|
asChild: true,
|
|
828
|
-
children: /* @__PURE__ */
|
|
846
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
829
847
|
tooltip: "More",
|
|
830
|
-
children: /* @__PURE__ */
|
|
848
|
+
children: /* @__PURE__ */ jsx2(MoreHorizontalIcon, {
|
|
831
849
|
"aria-hidden": "true",
|
|
832
850
|
className: "size-4 shrink-0"
|
|
833
851
|
})
|
|
834
852
|
})
|
|
835
853
|
}),
|
|
836
|
-
isPortalReady && /* @__PURE__ */
|
|
854
|
+
isPortalReady && /* @__PURE__ */ jsx2(ActionBarMorePrimitive.Content, {
|
|
837
855
|
"data-density": density,
|
|
838
856
|
side: "bottom",
|
|
839
857
|
align: "start",
|
|
840
858
|
sideOffset: 6,
|
|
841
859
|
asChild: true,
|
|
842
860
|
portalProps: { container: portalContainer },
|
|
843
|
-
children: /* @__PURE__ */
|
|
861
|
+
children: /* @__PURE__ */ jsx2("div", {
|
|
844
862
|
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",
|
|
845
|
-
children: /* @__PURE__ */
|
|
863
|
+
children: /* @__PURE__ */ jsx2(ActionBarPrimitive.ExportMarkdown, {
|
|
846
864
|
asChild: true,
|
|
847
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ jsx2(ActionBarMorePrimitive.Item, {
|
|
848
866
|
asChild: true,
|
|
849
867
|
children: /* @__PURE__ */ jsxs("div", {
|
|
850
868
|
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",
|
|
851
869
|
children: [
|
|
852
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ jsx2(DownloadIcon, {
|
|
853
871
|
"aria-hidden": "true",
|
|
854
872
|
className: "size-4 shrink-0"
|
|
855
873
|
}),
|
|
@@ -868,27 +886,27 @@ var AssistantActionBar = () => {
|
|
|
868
886
|
var MessageFile = (part) => {
|
|
869
887
|
const image = part.mimeType.toLowerCase().startsWith("image/") ? getFileHref(part.data, part.mimeType, part.sourceType) : null;
|
|
870
888
|
if (!image)
|
|
871
|
-
return /* @__PURE__ */
|
|
889
|
+
return /* @__PURE__ */ jsx2(File2, {
|
|
872
890
|
...part
|
|
873
891
|
});
|
|
874
|
-
return /* @__PURE__ */
|
|
892
|
+
return /* @__PURE__ */ jsx2(Image2, {
|
|
875
893
|
type: "image",
|
|
876
894
|
image,
|
|
877
895
|
status: part.status,
|
|
878
896
|
...part.filename !== undefined && { filename: part.filename }
|
|
879
897
|
});
|
|
880
898
|
};
|
|
881
|
-
var UserFilePart = (part) => /* @__PURE__ */
|
|
899
|
+
var UserFilePart = (part) => /* @__PURE__ */ jsx2("div", {
|
|
882
900
|
"data-slot": "aui_user-message-file",
|
|
883
901
|
className: "py-1",
|
|
884
|
-
children: /* @__PURE__ */
|
|
902
|
+
children: /* @__PURE__ */ jsx2(MessageFile, {
|
|
885
903
|
...part
|
|
886
904
|
})
|
|
887
905
|
});
|
|
888
|
-
var UserImagePart = (part) => /* @__PURE__ */
|
|
906
|
+
var UserImagePart = (part) => /* @__PURE__ */ jsx2("div", {
|
|
889
907
|
"data-slot": "aui_user-message-image",
|
|
890
908
|
className: "py-1",
|
|
891
|
-
children: /* @__PURE__ */
|
|
909
|
+
children: /* @__PURE__ */ jsx2(Image2, {
|
|
892
910
|
...part
|
|
893
911
|
})
|
|
894
912
|
});
|
|
@@ -897,27 +915,27 @@ var UserMessage = () => {
|
|
|
897
915
|
return /* @__PURE__ */ jsxs(MessagePrimitive.Root, {
|
|
898
916
|
"data-slot": "aui_user-message-root",
|
|
899
917
|
"data-role": "user",
|
|
900
|
-
render: /* @__PURE__ */
|
|
918
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
901
919
|
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"
|
|
902
920
|
}),
|
|
903
921
|
children: [
|
|
904
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ jsx2(UserMessageAttachments2, {}),
|
|
905
923
|
/* @__PURE__ */ jsxs("div", {
|
|
906
924
|
className: "aui-user-message-content-wrapper relative col-start-2 min-w-0",
|
|
907
925
|
children: [
|
|
908
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ jsx2("div", {
|
|
909
927
|
className: "aui-user-message-content peer bg-muted text-foreground rounded-(--composer-radius) px-4 py-2 wrap-break-word empty:hidden",
|
|
910
|
-
children: /* @__PURE__ */
|
|
928
|
+
children: /* @__PURE__ */ jsx2(MessagePrimitive.Parts, {
|
|
911
929
|
components: { Text: UserText, File: UserFilePart, Image: UserImagePart }
|
|
912
930
|
})
|
|
913
931
|
}),
|
|
914
|
-
/* @__PURE__ */
|
|
932
|
+
/* @__PURE__ */ jsx2("div", {
|
|
915
933
|
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",
|
|
916
|
-
children: /* @__PURE__ */
|
|
934
|
+
children: /* @__PURE__ */ jsx2(UserActionBar, {})
|
|
917
935
|
})
|
|
918
936
|
]
|
|
919
937
|
}),
|
|
920
|
-
/* @__PURE__ */
|
|
938
|
+
/* @__PURE__ */ jsx2(BranchPicker, {
|
|
921
939
|
"data-slot": "aui_user-branch-picker",
|
|
922
940
|
className: "col-span-full col-start-1 -me-1 justify-end"
|
|
923
941
|
})
|
|
@@ -925,17 +943,17 @@ var UserMessage = () => {
|
|
|
925
943
|
});
|
|
926
944
|
};
|
|
927
945
|
var UserActionBar = () => {
|
|
928
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ jsx2(ActionBarPrimitive.Root, {
|
|
929
947
|
hideWhenRunning: true,
|
|
930
948
|
autohide: "not-last",
|
|
931
|
-
render: /* @__PURE__ */
|
|
949
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
932
950
|
className: "aui-user-action-bar-root flex flex-col items-end"
|
|
933
951
|
}),
|
|
934
|
-
children: /* @__PURE__ */
|
|
952
|
+
children: /* @__PURE__ */ jsx2(ActionBarPrimitive.Edit, {
|
|
935
953
|
asChild: true,
|
|
936
|
-
children: /* @__PURE__ */
|
|
954
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
937
955
|
tooltip: "Edit",
|
|
938
|
-
children: /* @__PURE__ */
|
|
956
|
+
children: /* @__PURE__ */ jsx2(PencilIcon, {
|
|
939
957
|
"aria-hidden": "true",
|
|
940
958
|
className: "size-4 shrink-0"
|
|
941
959
|
})
|
|
@@ -944,36 +962,37 @@ var UserActionBar = () => {
|
|
|
944
962
|
});
|
|
945
963
|
};
|
|
946
964
|
var EditComposer = () => {
|
|
947
|
-
return /* @__PURE__ */
|
|
965
|
+
return /* @__PURE__ */ jsx2(MessagePrimitive.Root, {
|
|
948
966
|
"data-slot": "aui_edit-composer-wrapper",
|
|
949
|
-
render: /* @__PURE__ */
|
|
967
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
950
968
|
className: "flex flex-col px-2 [contain-intrinsic-size:auto_200px] [content-visibility:auto]"
|
|
951
969
|
}),
|
|
952
970
|
children: /* @__PURE__ */ jsxs(ComposerPrimitive.Root, {
|
|
953
|
-
render: /* @__PURE__ */
|
|
971
|
+
render: /* @__PURE__ */ jsx2("form", {
|
|
954
972
|
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]"
|
|
955
973
|
}),
|
|
956
974
|
children: [
|
|
957
|
-
/* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ jsx2(ComposerPrimitive.Input, {
|
|
958
976
|
"aria-label": "Edit message",
|
|
959
977
|
autoFocus: true,
|
|
960
|
-
render: /* @__PURE__ */
|
|
978
|
+
render: /* @__PURE__ */ jsx2(AnalyticsTextarea, {
|
|
979
|
+
component: "EditComposer",
|
|
961
980
|
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"
|
|
962
981
|
})
|
|
963
982
|
}),
|
|
964
983
|
/* @__PURE__ */ jsxs("div", {
|
|
965
984
|
className: "aui-edit-composer-footer mx-2.5 mb-2.5 flex items-center gap-1.5 self-end",
|
|
966
985
|
children: [
|
|
967
|
-
/* @__PURE__ */
|
|
986
|
+
/* @__PURE__ */ jsx2(ComposerPrimitive.Cancel, {
|
|
968
987
|
asChild: true,
|
|
969
|
-
children: /* @__PURE__ */
|
|
988
|
+
children: /* @__PURE__ */ jsx2(Button2, {
|
|
970
989
|
variant: "ghost",
|
|
971
990
|
children: "Cancel"
|
|
972
991
|
})
|
|
973
992
|
}),
|
|
974
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ jsx2(ComposerPrimitive.Send, {
|
|
975
994
|
asChild: true,
|
|
976
|
-
children: /* @__PURE__ */
|
|
995
|
+
children: /* @__PURE__ */ jsx2(Button2, {
|
|
977
996
|
children: "Update"
|
|
978
997
|
})
|
|
979
998
|
})
|
|
@@ -987,15 +1006,15 @@ var BranchPicker = ({ className, ...rest }) => {
|
|
|
987
1006
|
return /* @__PURE__ */ jsxs(BranchPickerPrimitive.Root, {
|
|
988
1007
|
hideWhenSingleBranch: true,
|
|
989
1008
|
...rest,
|
|
990
|
-
render: /* @__PURE__ */
|
|
1009
|
+
render: /* @__PURE__ */ jsx2("div", {
|
|
991
1010
|
className: cn2("aui-branch-picker-root text-muted-foreground -ms-2 me-2 inline-flex items-center text-sm", className)
|
|
992
1011
|
}),
|
|
993
1012
|
children: [
|
|
994
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ jsx2(BranchPickerPrimitive.Previous, {
|
|
995
1014
|
asChild: true,
|
|
996
|
-
children: /* @__PURE__ */
|
|
1015
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
997
1016
|
tooltip: "Previous",
|
|
998
|
-
children: /* @__PURE__ */
|
|
1017
|
+
children: /* @__PURE__ */ jsx2(ChevronLeftIcon, {
|
|
999
1018
|
"aria-hidden": "true",
|
|
1000
1019
|
className: "size-4 shrink-0"
|
|
1001
1020
|
})
|
|
@@ -1003,16 +1022,16 @@ var BranchPicker = ({ className, ...rest }) => {
|
|
|
1003
1022
|
}),
|
|
1004
1023
|
/* @__PURE__ */ jsxs("span", {
|
|
1005
1024
|
children: [
|
|
1006
|
-
/* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ jsx2(BranchPickerPrimitive.Number, {}),
|
|
1007
1026
|
" / ",
|
|
1008
|
-
/* @__PURE__ */
|
|
1027
|
+
/* @__PURE__ */ jsx2(BranchPickerPrimitive.Count, {})
|
|
1009
1028
|
]
|
|
1010
1029
|
}),
|
|
1011
|
-
/* @__PURE__ */
|
|
1030
|
+
/* @__PURE__ */ jsx2(BranchPickerPrimitive.Next, {
|
|
1012
1031
|
asChild: true,
|
|
1013
|
-
children: /* @__PURE__ */
|
|
1032
|
+
children: /* @__PURE__ */ jsx2(TooltipIconButton2, {
|
|
1014
1033
|
tooltip: "Next",
|
|
1015
|
-
children: /* @__PURE__ */
|
|
1034
|
+
children: /* @__PURE__ */ jsx2(ChevronRightIcon, {
|
|
1016
1035
|
"aria-hidden": "true",
|
|
1017
1036
|
className: "size-4 shrink-0"
|
|
1018
1037
|
})
|