@alexgorbatchev/shadcn 0.0.42 → 0.0.43
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 +46 -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-cyfbg25t.js → chunk-0ybh8xre.js} +3 -3
- 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-ttdeyjvj.js → chunk-3c35ysaq.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-0skytwpk.js → chunk-634pk1cg.js} +2 -2
- package/dist/{chunk-vf1rsqpk.js → chunk-645dhey7.js} +1 -1
- 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-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-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-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-aexby8h3.js → chunk-w9s21aj0.js} +17 -2
- 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 +3 -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/providers/AnalyticsProvider.md +59 -0
- package/llms/setup.md +46 -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,24 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useAnalytics2
|
|
3
|
+
} from "./chunk-7ny0vyek.js";
|
|
1
4
|
import {
|
|
2
5
|
cn2
|
|
3
6
|
} from "./chunk-cp2m7y7v.js";
|
|
4
|
-
import {
|
|
5
|
-
buttonVariants2,
|
|
6
|
-
Button2
|
|
7
|
-
} from "./chunk-q7p28b89.js";
|
|
8
7
|
import {
|
|
9
8
|
DensityContext,
|
|
10
9
|
useDensity
|
|
11
10
|
} from "./chunk-e6hk39ev.js";
|
|
12
11
|
import {
|
|
13
|
-
usePortalContainer2
|
|
14
|
-
} from "./chunk-j89xg1ak.js";
|
|
15
|
-
import {
|
|
12
|
+
usePortalContainer2,
|
|
16
13
|
usePortalNode,
|
|
17
14
|
PortalProvider2
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-x90xmrba.js";
|
|
19
16
|
import {
|
|
20
17
|
useDirection2
|
|
21
18
|
} from "./chunk-jpvw9xqy.js";
|
|
19
|
+
import {
|
|
20
|
+
TooltipProvider2,
|
|
21
|
+
Tooltip2,
|
|
22
|
+
TooltipTrigger2,
|
|
23
|
+
TooltipContent2,
|
|
24
|
+
buttonVariants2,
|
|
25
|
+
Button2
|
|
26
|
+
} from "./chunk-38301e40.js";
|
|
22
27
|
import {
|
|
23
28
|
DropdownMenu2,
|
|
24
29
|
DropdownMenuPortal2,
|
|
@@ -33,13 +38,13 @@ import {
|
|
|
33
38
|
DropdownMenuRadioGroup2,
|
|
34
39
|
DropdownMenuSeparator2,
|
|
35
40
|
DropdownMenuShortcut2
|
|
36
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-8wc2z7te.js";
|
|
37
42
|
import {
|
|
38
43
|
Skeleton2
|
|
39
44
|
} from "./chunk-d70rcwk7.js";
|
|
40
45
|
import {
|
|
41
46
|
Input2
|
|
42
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-0fmrwsgp.js";
|
|
43
48
|
import {
|
|
44
49
|
Separator2
|
|
45
50
|
} from "./chunk-rajgnfbr.js";
|
|
@@ -51,13 +56,10 @@ import {
|
|
|
51
56
|
} from "./chunk-6jpz5geq.js";
|
|
52
57
|
import {
|
|
53
58
|
Textarea2
|
|
54
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-tq0pfv5h.js";
|
|
55
60
|
import {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
TooltipTrigger2,
|
|
59
|
-
TooltipContent2
|
|
60
|
-
} from "./chunk-mz3e810d.js";
|
|
61
|
+
RadioGroup2
|
|
62
|
+
} from "./chunk-ekbesw9t.js";
|
|
61
63
|
import {
|
|
62
64
|
Card2,
|
|
63
65
|
CardHeader2,
|
|
@@ -80,7 +82,7 @@ import {
|
|
|
80
82
|
ComboboxChipsInput2,
|
|
81
83
|
useComboboxAnchor2,
|
|
82
84
|
ScrollArea2
|
|
83
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-p1eqxz4v.js";
|
|
84
86
|
import {
|
|
85
87
|
Badge2
|
|
86
88
|
} from "./chunk-wjx6zf94.js";
|
|
@@ -113,7 +115,10 @@ import {
|
|
|
113
115
|
import {
|
|
114
116
|
NativeSelect2,
|
|
115
117
|
NativeSelectOption2
|
|
116
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-r4jzz4f2.js";
|
|
119
|
+
import {
|
|
120
|
+
AnalyticsLink
|
|
121
|
+
} from "./chunk-4710gn6d.js";
|
|
117
122
|
import {
|
|
118
123
|
SidebarProvider2,
|
|
119
124
|
Sidebar2,
|
|
@@ -126,12 +131,19 @@ import {
|
|
|
126
131
|
SidebarMenu2,
|
|
127
132
|
SidebarMenuItem2,
|
|
128
133
|
SidebarMenuButton2
|
|
129
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-c9ypcp4s.js";
|
|
135
|
+
import {
|
|
136
|
+
AnalyticsButton
|
|
137
|
+
} from "./chunk-tcefvfr8.js";
|
|
138
|
+
import {
|
|
139
|
+
useAnalyticsCallback
|
|
140
|
+
} from "./chunk-5mydsjp3.js";
|
|
130
141
|
// src/components/ButtonLink.tsx
|
|
131
142
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
132
143
|
import { useRender } from "@base-ui/react/use-render";
|
|
133
144
|
import { jsx } from "react/jsx-runtime";
|
|
134
145
|
function ButtonLink2({
|
|
146
|
+
analytics,
|
|
135
147
|
density,
|
|
136
148
|
className,
|
|
137
149
|
variant = "default",
|
|
@@ -143,6 +155,7 @@ function ButtonLink2({
|
|
|
143
155
|
children,
|
|
144
156
|
...props
|
|
145
157
|
}) {
|
|
158
|
+
const onClick = useAnalyticsCallback("ButtonLink", analytics, { name: "ui.activate" }, props.onClick);
|
|
146
159
|
return useRender({
|
|
147
160
|
defaultTagName: "a",
|
|
148
161
|
props: mergeProps({
|
|
@@ -151,7 +164,7 @@ function ButtonLink2({
|
|
|
151
164
|
className: "min-w-0 truncate",
|
|
152
165
|
children
|
|
153
166
|
}) : children
|
|
154
|
-
}, props),
|
|
167
|
+
}, { ...props, onClick }),
|
|
155
168
|
render,
|
|
156
169
|
state: {
|
|
157
170
|
slot: "button-link",
|
|
@@ -163,12 +176,14 @@ function ButtonLink2({
|
|
|
163
176
|
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
164
177
|
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
165
178
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
166
|
-
function Accordion2({ density, className, ...props }) {
|
|
179
|
+
function Accordion2({ analytics, density, className, ...props }) {
|
|
180
|
+
const trackedOnValueChange = useAnalyticsCallback("Accordion", analytics, { name: "ui.change-request" }, props.onValueChange);
|
|
167
181
|
return /* @__PURE__ */ jsx2(AccordionPrimitive.Root, {
|
|
168
182
|
"data-density": density,
|
|
169
183
|
"data-slot": "accordion",
|
|
170
184
|
className: (state) => cn2("flex w-full flex-col", typeof className === "function" ? className(state) : className),
|
|
171
|
-
...props
|
|
185
|
+
...props,
|
|
186
|
+
onValueChange: trackedOnValueChange
|
|
172
187
|
});
|
|
173
188
|
}
|
|
174
189
|
function AccordionItem2({ density, className, ...props }) {
|
|
@@ -399,10 +414,15 @@ import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog
|
|
|
399
414
|
import { useDirection } from "@base-ui/react/direction-provider";
|
|
400
415
|
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
401
416
|
"use client";
|
|
402
|
-
function AlertDialog2({
|
|
417
|
+
function AlertDialog2({
|
|
418
|
+
analytics,
|
|
419
|
+
...props
|
|
420
|
+
}) {
|
|
421
|
+
const trackedOnOpenChange = useAnalyticsCallback("AlertDialog", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
403
422
|
return /* @__PURE__ */ jsx7(AlertDialogPrimitive.Root, {
|
|
404
423
|
"data-slot": "alert-dialog",
|
|
405
|
-
...props
|
|
424
|
+
...props,
|
|
425
|
+
onOpenChange: trackedOnOpenChange
|
|
406
426
|
});
|
|
407
427
|
}
|
|
408
428
|
function AlertDialogTrigger2({ ...props }) {
|
|
@@ -524,7 +544,18 @@ import { useDirection as useDirection3 } from "@base-ui/react/direction-provider
|
|
|
524
544
|
import { ChevronDownIcon as ChevronDownIcon2, CheckIcon, ChevronUpIcon as ChevronUpIcon2 } from "lucide-react";
|
|
525
545
|
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
526
546
|
"use client";
|
|
527
|
-
|
|
547
|
+
function Select2({
|
|
548
|
+
analytics,
|
|
549
|
+
...props
|
|
550
|
+
}) {
|
|
551
|
+
const onValueChange = useAnalyticsCallback("Select", analytics, { name: "ui.change-request" }, props.onValueChange);
|
|
552
|
+
const onOpenChange = useAnalyticsCallback("Select", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
553
|
+
return /* @__PURE__ */ jsx8(SelectPrimitive.Root, {
|
|
554
|
+
...props,
|
|
555
|
+
onValueChange,
|
|
556
|
+
onOpenChange
|
|
557
|
+
});
|
|
558
|
+
}
|
|
528
559
|
function SelectGroup2({ density, className, ...props }) {
|
|
529
560
|
return /* @__PURE__ */ jsx8(SelectPrimitive.Group, {
|
|
530
561
|
"data-density": density,
|
|
@@ -1092,12 +1123,13 @@ function BreadcrumbItem2({ density, className, ...props }) {
|
|
|
1092
1123
|
...props
|
|
1093
1124
|
});
|
|
1094
1125
|
}
|
|
1095
|
-
function BreadcrumbLink2({ density, className, render, ...props }) {
|
|
1126
|
+
function BreadcrumbLink2({ analytics, density, className, render, ...props }) {
|
|
1127
|
+
const onClick = useAnalyticsCallback("BreadcrumbLink", analytics, { name: "ui.activate" }, props.onClick);
|
|
1096
1128
|
return useRender3({
|
|
1097
1129
|
defaultTagName: "a",
|
|
1098
1130
|
props: mergeProps3({
|
|
1099
1131
|
className: cn2("transition-colors hover:text-foreground", className)
|
|
1100
|
-
}, props),
|
|
1132
|
+
}, { ...props, onClick }),
|
|
1101
1133
|
render,
|
|
1102
1134
|
state: {
|
|
1103
1135
|
density,
|
|
@@ -1369,13 +1401,16 @@ function PaginationItem2({ ...props }) {
|
|
|
1369
1401
|
});
|
|
1370
1402
|
}
|
|
1371
1403
|
function PaginationLink2({
|
|
1404
|
+
analytics,
|
|
1372
1405
|
density,
|
|
1373
1406
|
className,
|
|
1374
1407
|
isActive,
|
|
1375
1408
|
size = "icon",
|
|
1376
1409
|
...props
|
|
1377
1410
|
}) {
|
|
1378
|
-
return /* @__PURE__ */ jsx15(
|
|
1411
|
+
return /* @__PURE__ */ jsx15(AnalyticsLink, {
|
|
1412
|
+
component: "PaginationLink",
|
|
1413
|
+
analytics,
|
|
1379
1414
|
"data-density": density,
|
|
1380
1415
|
className: cn2(buttonVariants2({ variant: isActive ? "outline" : "ghost", size }), className),
|
|
1381
1416
|
"aria-current": isActive ? "page" : undefined,
|
|
@@ -1464,12 +1499,14 @@ function useDrawer() {
|
|
|
1464
1499
|
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
1465
1500
|
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1466
1501
|
function Drawer2({
|
|
1502
|
+
analytics,
|
|
1467
1503
|
modal = true,
|
|
1468
1504
|
showSwipeHandle = false,
|
|
1469
1505
|
snapPoints,
|
|
1470
1506
|
swipeDirection = "down",
|
|
1471
1507
|
...props
|
|
1472
1508
|
}) {
|
|
1509
|
+
const trackedOnOpenChange = useAnalyticsCallback("Drawer", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
1473
1510
|
const hasSnapPoints = snapPoints != null && snapPoints.length > 0;
|
|
1474
1511
|
const contextValue = useMemo2(() => ({ hasSnapPoints, modal, showSwipeHandle, swipeDirection }), [hasSnapPoints, modal, showSwipeHandle, swipeDirection]);
|
|
1475
1512
|
return /* @__PURE__ */ jsx16(DrawerContext.Provider, {
|
|
@@ -1479,7 +1516,8 @@ function Drawer2({
|
|
|
1479
1516
|
modal,
|
|
1480
1517
|
snapPoints,
|
|
1481
1518
|
swipeDirection,
|
|
1482
|
-
...props
|
|
1519
|
+
...props,
|
|
1520
|
+
onOpenChange: trackedOnOpenChange
|
|
1483
1521
|
})
|
|
1484
1522
|
});
|
|
1485
1523
|
}
|
|
@@ -1602,10 +1640,12 @@ import { ChevronRightIcon as ChevronRightIcon3, CheckIcon as CheckIcon2 } from "
|
|
|
1602
1640
|
import { useDirection as useDirection4 } from "@base-ui/react/direction-provider";
|
|
1603
1641
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
1604
1642
|
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1605
|
-
function ContextMenu2({ ...props }) {
|
|
1643
|
+
function ContextMenu2({ analytics, ...props }) {
|
|
1644
|
+
const trackedOnOpenChange = useAnalyticsCallback("ContextMenu", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
1606
1645
|
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.Root, {
|
|
1607
1646
|
"data-slot": "context-menu",
|
|
1608
|
-
...props
|
|
1647
|
+
...props,
|
|
1648
|
+
onOpenChange: trackedOnOpenChange
|
|
1609
1649
|
});
|
|
1610
1650
|
}
|
|
1611
1651
|
function ContextMenuPortal2({ container, ref, children, ...props }) {
|
|
@@ -1674,20 +1714,34 @@ function ContextMenuLabel2({ density, className, inset, ...props }) {
|
|
|
1674
1714
|
...props
|
|
1675
1715
|
});
|
|
1676
1716
|
}
|
|
1677
|
-
function ContextMenuItem2({
|
|
1717
|
+
function ContextMenuItem2({
|
|
1718
|
+
analytics,
|
|
1719
|
+
density,
|
|
1720
|
+
className,
|
|
1721
|
+
inset,
|
|
1722
|
+
variant = "default",
|
|
1723
|
+
...props
|
|
1724
|
+
}) {
|
|
1725
|
+
const trackedOnClick = useAnalyticsCallback("ContextMenuItem", analytics, { name: "ui.activate" }, props.onClick);
|
|
1678
1726
|
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.Item, {
|
|
1679
1727
|
"data-density": density,
|
|
1680
1728
|
"data-slot": "context-menu-item",
|
|
1681
1729
|
"data-inset": inset,
|
|
1682
1730
|
"data-variant": variant,
|
|
1683
1731
|
className: (state) => cn2("group/context-menu-item relative flex cursor-default items-center gap-control-gap rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive", typeof className === "function" ? className(state) : className),
|
|
1684
|
-
...props
|
|
1732
|
+
...props,
|
|
1733
|
+
onClick: trackedOnClick
|
|
1685
1734
|
});
|
|
1686
1735
|
}
|
|
1687
|
-
function ContextMenuSub2({
|
|
1736
|
+
function ContextMenuSub2({
|
|
1737
|
+
analytics,
|
|
1738
|
+
...props
|
|
1739
|
+
}) {
|
|
1740
|
+
const trackedOnOpenChange = useAnalyticsCallback("ContextMenuSub", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
1688
1741
|
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.SubmenuRoot, {
|
|
1689
1742
|
"data-slot": "context-menu-sub",
|
|
1690
|
-
...props
|
|
1743
|
+
...props,
|
|
1744
|
+
onOpenChange: trackedOnOpenChange
|
|
1691
1745
|
});
|
|
1692
1746
|
}
|
|
1693
1747
|
function ContextMenuSubTrigger2({ density, className, inset, children, ...props }) {
|
|
@@ -1714,6 +1768,7 @@ function ContextMenuSubContent2({ ...props }) {
|
|
|
1714
1768
|
});
|
|
1715
1769
|
}
|
|
1716
1770
|
function ContextMenuCheckboxItem2({
|
|
1771
|
+
analytics,
|
|
1717
1772
|
density,
|
|
1718
1773
|
className,
|
|
1719
1774
|
children,
|
|
@@ -1721,6 +1776,7 @@ function ContextMenuCheckboxItem2({
|
|
|
1721
1776
|
inset,
|
|
1722
1777
|
...props
|
|
1723
1778
|
}) {
|
|
1779
|
+
const trackedOnCheckedChange = useAnalyticsCallback("ContextMenuCheckboxItem", analytics, { name: "ui.change-request" }, props.onCheckedChange);
|
|
1724
1780
|
return /* @__PURE__ */ jsxs11(ContextMenuPrimitive.CheckboxItem, {
|
|
1725
1781
|
"data-density": density,
|
|
1726
1782
|
"data-slot": "context-menu-checkbox-item",
|
|
@@ -1728,6 +1784,7 @@ function ContextMenuCheckboxItem2({
|
|
|
1728
1784
|
className: (state) => cn2("relative flex cursor-default items-center gap-control-gap rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
1729
1785
|
checked,
|
|
1730
1786
|
...props,
|
|
1787
|
+
onCheckedChange: trackedOnCheckedChange,
|
|
1731
1788
|
children: [
|
|
1732
1789
|
/* @__PURE__ */ jsx17("span", {
|
|
1733
1790
|
className: "pointer-events-none absolute end-2",
|
|
@@ -1739,10 +1796,15 @@ function ContextMenuCheckboxItem2({
|
|
|
1739
1796
|
]
|
|
1740
1797
|
});
|
|
1741
1798
|
}
|
|
1742
|
-
function ContextMenuRadioGroup2({
|
|
1799
|
+
function ContextMenuRadioGroup2({
|
|
1800
|
+
analytics,
|
|
1801
|
+
...props
|
|
1802
|
+
}) {
|
|
1803
|
+
const trackedOnValueChange = useAnalyticsCallback("ContextMenuRadioGroup", analytics, { name: "ui.change-request" }, props.onValueChange);
|
|
1743
1804
|
return /* @__PURE__ */ jsx17(ContextMenuPrimitive.RadioGroup, {
|
|
1744
1805
|
"data-slot": "context-menu-radio-group",
|
|
1745
|
-
...props
|
|
1806
|
+
...props,
|
|
1807
|
+
onValueChange: trackedOnValueChange
|
|
1746
1808
|
});
|
|
1747
1809
|
}
|
|
1748
1810
|
function ContextMenuRadioItem2({ density, className, children, inset, ...props }) {
|
|
@@ -1792,10 +1854,15 @@ function Menubar2({ density, className, ...props }) {
|
|
|
1792
1854
|
...props
|
|
1793
1855
|
});
|
|
1794
1856
|
}
|
|
1795
|
-
function MenubarMenu2({
|
|
1857
|
+
function MenubarMenu2({
|
|
1858
|
+
analytics,
|
|
1859
|
+
...props
|
|
1860
|
+
}) {
|
|
1861
|
+
const trackedOnOpenChange = useAnalyticsCallback("MenubarMenu", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
1796
1862
|
return /* @__PURE__ */ jsx18(DropdownMenu2, {
|
|
1797
1863
|
"data-slot": "menubar-menu",
|
|
1798
|
-
...props
|
|
1864
|
+
...props,
|
|
1865
|
+
onOpenChange: trackedOnOpenChange
|
|
1799
1866
|
});
|
|
1800
1867
|
}
|
|
1801
1868
|
function MenubarGroup2({ ...props }) {
|
|
@@ -1836,17 +1903,27 @@ function MenubarContent2({
|
|
|
1836
1903
|
...props
|
|
1837
1904
|
});
|
|
1838
1905
|
}
|
|
1839
|
-
function MenubarItem2({
|
|
1906
|
+
function MenubarItem2({
|
|
1907
|
+
analytics,
|
|
1908
|
+
density,
|
|
1909
|
+
className,
|
|
1910
|
+
inset,
|
|
1911
|
+
variant = "default",
|
|
1912
|
+
...props
|
|
1913
|
+
}) {
|
|
1914
|
+
const trackedOnClick = useAnalyticsCallback("MenubarItem", analytics, { name: "ui.activate" }, props.onClick);
|
|
1840
1915
|
return /* @__PURE__ */ jsx18(DropdownMenuItem2, {
|
|
1841
1916
|
density,
|
|
1842
1917
|
"data-slot": "menubar-item",
|
|
1843
1918
|
inset,
|
|
1844
1919
|
variant,
|
|
1845
1920
|
className: (state) => cn2("group/menubar-item gap-control-gap rounded-md px-1.5 py-1 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!", typeof className === "function" ? className(state) : className),
|
|
1846
|
-
...props
|
|
1921
|
+
...props,
|
|
1922
|
+
onClick: trackedOnClick
|
|
1847
1923
|
});
|
|
1848
1924
|
}
|
|
1849
1925
|
function MenubarCheckboxItem2({
|
|
1926
|
+
analytics,
|
|
1850
1927
|
density,
|
|
1851
1928
|
className,
|
|
1852
1929
|
children,
|
|
@@ -1854,6 +1931,7 @@ function MenubarCheckboxItem2({
|
|
|
1854
1931
|
inset,
|
|
1855
1932
|
...props
|
|
1856
1933
|
}) {
|
|
1934
|
+
const trackedOnCheckedChange = useAnalyticsCallback("MenubarCheckboxItem", analytics, { name: "ui.change-request" }, props.onCheckedChange);
|
|
1857
1935
|
return /* @__PURE__ */ jsxs12(MenuPrimitive.CheckboxItem, {
|
|
1858
1936
|
"data-density": density,
|
|
1859
1937
|
"data-slot": "menubar-checkbox-item",
|
|
@@ -1861,6 +1939,7 @@ function MenubarCheckboxItem2({
|
|
|
1861
1939
|
className: (state) => cn2("relative flex cursor-default items-center gap-control-gap rounded-md py-1 pe-1.5 ps-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", typeof className === "function" ? className(state) : className),
|
|
1862
1940
|
checked,
|
|
1863
1941
|
...props,
|
|
1942
|
+
onCheckedChange: trackedOnCheckedChange,
|
|
1864
1943
|
children: [
|
|
1865
1944
|
/* @__PURE__ */ jsx18("span", {
|
|
1866
1945
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
@@ -1950,18 +2029,21 @@ import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/naviga
|
|
|
1950
2029
|
import { cva as cva3 } from "class-variance-authority";
|
|
1951
2030
|
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1952
2031
|
function NavigationMenu2({
|
|
2032
|
+
analytics,
|
|
1953
2033
|
density,
|
|
1954
2034
|
align = "start",
|
|
1955
2035
|
className,
|
|
1956
2036
|
children,
|
|
1957
2037
|
...props
|
|
1958
2038
|
}) {
|
|
2039
|
+
const trackedOnValueChange = useAnalyticsCallback("NavigationMenu", analytics, { name: "ui.change-request" }, props.onValueChange);
|
|
1959
2040
|
const resolvedDensity = useDensity(density);
|
|
1960
2041
|
return /* @__PURE__ */ jsxs13(NavigationMenuPrimitive.Root, {
|
|
1961
2042
|
"data-density": resolvedDensity,
|
|
1962
2043
|
"data-slot": "navigation-menu",
|
|
1963
2044
|
className: (state) => cn2("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", typeof className === "function" ? className(state) : className),
|
|
1964
2045
|
...props,
|
|
2046
|
+
onValueChange: trackedOnValueChange,
|
|
1965
2047
|
children: [
|
|
1966
2048
|
children,
|
|
1967
2049
|
/* @__PURE__ */ jsx19(NavigationMenuPositioner2, {
|
|
@@ -2047,12 +2129,14 @@ function NavigationMenuPositioner2({
|
|
|
2047
2129
|
})
|
|
2048
2130
|
});
|
|
2049
2131
|
}
|
|
2050
|
-
function NavigationMenuLink2({ density, className, ...props }) {
|
|
2132
|
+
function NavigationMenuLink2({ analytics, density, className, ...props }) {
|
|
2133
|
+
const trackedOnClick = useAnalyticsCallback("NavigationMenuLink", analytics, { name: "ui.activate" }, props.onClick);
|
|
2051
2134
|
return /* @__PURE__ */ jsx19(NavigationMenuPrimitive.Link, {
|
|
2052
2135
|
"data-density": density,
|
|
2053
2136
|
"data-slot": "navigation-menu-link",
|
|
2054
2137
|
className: (state) => cn2("flex items-center gap-2 rounded-sm p-2 text-sm transition-colors outline-none hover:bg-muted focus:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
2055
|
-
...props
|
|
2138
|
+
...props,
|
|
2139
|
+
onClick: trackedOnClick
|
|
2056
2140
|
});
|
|
2057
2141
|
}
|
|
2058
2142
|
function NavigationMenuIndicator2({
|
|
@@ -2133,6 +2217,7 @@ function ToastDescription2({ className, ...props }) {
|
|
|
2133
2217
|
});
|
|
2134
2218
|
}
|
|
2135
2219
|
function ToastAction2({
|
|
2220
|
+
analytics,
|
|
2136
2221
|
className,
|
|
2137
2222
|
render = /* @__PURE__ */ jsx20(Button2, {
|
|
2138
2223
|
variant: "outline",
|
|
@@ -2140,14 +2225,17 @@ function ToastAction2({
|
|
|
2140
2225
|
}),
|
|
2141
2226
|
...props
|
|
2142
2227
|
}) {
|
|
2228
|
+
const trackedOnClick = useAnalyticsCallback("ToastAction", analytics, { name: "ui.activate" }, props.onClick);
|
|
2143
2229
|
return /* @__PURE__ */ jsx20(ToastPrimitive.Action, {
|
|
2144
2230
|
"data-slot": "toast-action",
|
|
2145
2231
|
render,
|
|
2146
2232
|
className: (state) => cn2("shrink-0", typeof className === "function" ? className(state) : className),
|
|
2147
|
-
...props
|
|
2233
|
+
...props,
|
|
2234
|
+
onClick: trackedOnClick
|
|
2148
2235
|
});
|
|
2149
2236
|
}
|
|
2150
2237
|
function ToastClose2({
|
|
2238
|
+
analytics,
|
|
2151
2239
|
className,
|
|
2152
2240
|
children,
|
|
2153
2241
|
render = /* @__PURE__ */ jsx20(Button2, {
|
|
@@ -2156,12 +2244,14 @@ function ToastClose2({
|
|
|
2156
2244
|
}),
|
|
2157
2245
|
...props
|
|
2158
2246
|
}) {
|
|
2247
|
+
const trackedOnClick = useAnalyticsCallback("ToastClose", analytics, { name: "ui.activate" }, props.onClick);
|
|
2159
2248
|
return /* @__PURE__ */ jsx20(ToastPrimitive.Close, {
|
|
2160
2249
|
"data-slot": "toast-close",
|
|
2161
2250
|
"aria-label": "Close toast",
|
|
2162
2251
|
render,
|
|
2163
2252
|
className: (state) => cn2("relative shrink-0 text-muted-foreground hover:text-foreground", typeof className === "function" ? className(state) : className),
|
|
2164
2253
|
...props,
|
|
2254
|
+
onClick: trackedOnClick,
|
|
2165
2255
|
children: children ?? /* @__PURE__ */ jsx20(XIcon, {
|
|
2166
2256
|
"aria-hidden": "true"
|
|
2167
2257
|
})
|
|
@@ -2541,10 +2631,18 @@ function AttachmentAction2({
|
|
|
2541
2631
|
...props
|
|
2542
2632
|
});
|
|
2543
2633
|
}
|
|
2544
|
-
function AttachmentTrigger2({
|
|
2634
|
+
function AttachmentTrigger2({
|
|
2635
|
+
analytics,
|
|
2636
|
+
density,
|
|
2637
|
+
className,
|
|
2638
|
+
render,
|
|
2639
|
+
type,
|
|
2640
|
+
...props
|
|
2641
|
+
}) {
|
|
2642
|
+
const onClick = useAnalyticsCallback("AttachmentTrigger", analytics, { name: "ui.activate" }, props.onClick);
|
|
2545
2643
|
return useRender9({
|
|
2546
2644
|
defaultTagName: "button",
|
|
2547
|
-
props: mergeProps8({ type: render ? type : type ?? "button", className: cn2("absolute inset-0 z-10 outline-none", className) }, props),
|
|
2645
|
+
props: mergeProps8({ type: render ? type : type ?? "button", className: cn2("absolute inset-0 z-10 outline-none", className) }, { ...props, onClick }),
|
|
2548
2646
|
render,
|
|
2549
2647
|
state: { slot: "attachment-trigger", density }
|
|
2550
2648
|
});
|
|
@@ -2561,6 +2659,7 @@ function AttachmentGroup2({ density, className, ...props }) {
|
|
|
2561
2659
|
import { useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
2562
2660
|
import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2563
2661
|
function InlineEdit2({
|
|
2662
|
+
analytics,
|
|
2564
2663
|
label,
|
|
2565
2664
|
value,
|
|
2566
2665
|
density,
|
|
@@ -2570,6 +2669,7 @@ function InlineEdit2({
|
|
|
2570
2669
|
onCommit,
|
|
2571
2670
|
onCancel
|
|
2572
2671
|
}) {
|
|
2672
|
+
const track = useAnalytics2("InlineEdit", analytics);
|
|
2573
2673
|
const input = useRef2(null);
|
|
2574
2674
|
const isFinished = useRef2(false);
|
|
2575
2675
|
const shouldCancel = useRef2(false);
|
|
@@ -2588,6 +2688,7 @@ function InlineEdit2({
|
|
|
2588
2688
|
setError("");
|
|
2589
2689
|
try {
|
|
2590
2690
|
await onCommit(value);
|
|
2691
|
+
track({ name: "ui.commit" });
|
|
2591
2692
|
} catch (error) {
|
|
2592
2693
|
isFinished.current = false;
|
|
2593
2694
|
setError(error instanceof Error ? error.message : "Could not save this edit.");
|
|
@@ -2603,6 +2704,7 @@ function InlineEdit2({
|
|
|
2603
2704
|
},
|
|
2604
2705
|
children: [
|
|
2605
2706
|
/* @__PURE__ */ jsx25(Input2, {
|
|
2707
|
+
analytics: false,
|
|
2606
2708
|
ref: input,
|
|
2607
2709
|
density,
|
|
2608
2710
|
"aria-label": label,
|
|
@@ -2640,11 +2742,18 @@ function InlineEdit2({
|
|
|
2640
2742
|
}
|
|
2641
2743
|
// src/components/StarRating.tsx
|
|
2642
2744
|
import { Radio } from "@base-ui/react/radio";
|
|
2643
|
-
import { RadioGroup } from "@base-ui/react/radio-group";
|
|
2644
2745
|
import { StarIcon, CircleOffIcon } from "lucide-react";
|
|
2645
2746
|
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2646
|
-
function StarRating2({
|
|
2647
|
-
|
|
2747
|
+
function StarRating2({
|
|
2748
|
+
analytics,
|
|
2749
|
+
label,
|
|
2750
|
+
value,
|
|
2751
|
+
disabled,
|
|
2752
|
+
density,
|
|
2753
|
+
onValueChange
|
|
2754
|
+
}) {
|
|
2755
|
+
return /* @__PURE__ */ jsx26(RadioGroup2, {
|
|
2756
|
+
analytics,
|
|
2648
2757
|
"aria-label": label,
|
|
2649
2758
|
value,
|
|
2650
2759
|
disabled,
|
|
@@ -2654,7 +2763,8 @@ function StarRating2({ label, value, disabled, density, onValueChange }) {
|
|
|
2654
2763
|
children: [1, 2, 3, 4, 5, 0].map((star) => /* @__PURE__ */ jsx26(Radio.Root, {
|
|
2655
2764
|
value: star,
|
|
2656
2765
|
nativeButton: true,
|
|
2657
|
-
render: /* @__PURE__ */ jsx26(
|
|
2766
|
+
render: /* @__PURE__ */ jsx26(AnalyticsButton, {
|
|
2767
|
+
component: "StarRating",
|
|
2658
2768
|
type: "button"
|
|
2659
2769
|
}),
|
|
2660
2770
|
"aria-label": star === 0 ? "Unrated" : `${star} ${star === 1 ? "star" : "stars"}`,
|
|
@@ -2760,7 +2870,16 @@ function useObjectURL(file) {
|
|
|
2760
2870
|
|
|
2761
2871
|
// src/components/ImagePicker.tsx
|
|
2762
2872
|
import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2763
|
-
function ImagePicker2({
|
|
2873
|
+
function ImagePicker2({
|
|
2874
|
+
analytics,
|
|
2875
|
+
src,
|
|
2876
|
+
file,
|
|
2877
|
+
label,
|
|
2878
|
+
disabled,
|
|
2879
|
+
onFileChange,
|
|
2880
|
+
onClear
|
|
2881
|
+
}) {
|
|
2882
|
+
const track = useAnalytics2("ImagePicker", analytics);
|
|
2764
2883
|
const input = useRef3(null);
|
|
2765
2884
|
const preview = useObjectURL(file);
|
|
2766
2885
|
const image = file === null ? undefined : preview ?? src;
|
|
@@ -2793,8 +2912,10 @@ function ImagePicker2({ src, file, label, disabled, onFileChange, onClear }) {
|
|
|
2793
2912
|
disabled,
|
|
2794
2913
|
onChange: (event) => {
|
|
2795
2914
|
const selected = event.currentTarget.files?.[0];
|
|
2796
|
-
if (selected)
|
|
2915
|
+
if (selected) {
|
|
2797
2916
|
onFileChange(selected);
|
|
2917
|
+
track({ name: "ui.commit" }, event.nativeEvent);
|
|
2918
|
+
}
|
|
2798
2919
|
event.currentTarget.value = "";
|
|
2799
2920
|
}
|
|
2800
2921
|
}),
|
|
@@ -2959,7 +3080,8 @@ function AppShell2({
|
|
|
2959
3080
|
children: /* @__PURE__ */ jsx31(SidebarMenu2, {
|
|
2960
3081
|
children: navigation.map((item) => /* @__PURE__ */ jsx31(SidebarMenuItem2, {
|
|
2961
3082
|
children: /* @__PURE__ */ jsxs18(SidebarMenuButton2, {
|
|
2962
|
-
render: /* @__PURE__ */ jsx31(
|
|
3083
|
+
render: /* @__PURE__ */ jsx31(AnalyticsLink, {
|
|
3084
|
+
component: "AppShell",
|
|
2963
3085
|
href: item.href,
|
|
2964
3086
|
"aria-current": item.active ? "page" : undefined
|
|
2965
3087
|
}),
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-1wz92wgg.js";
|
|
10
10
|
import {
|
|
11
11
|
Collapsible2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-fw86vanx.js";
|
|
13
13
|
|
|
14
14
|
// src/components/assistant-ui/elements/ReasoningRoot.tsx
|
|
15
15
|
import { forwardRef, useCallback, useRef, useState } from "react";
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnalyticsButton
|
|
3
|
+
} from "./chunk-tcefvfr8.js";
|
|
1
4
|
import {
|
|
2
5
|
cn2
|
|
3
6
|
} from "./chunk-cp2m7y7v.js";
|
|
4
7
|
import {
|
|
5
8
|
Button2
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-38301e40.js";
|
|
7
10
|
import {
|
|
8
11
|
clamp
|
|
9
12
|
} from "./chunk-v8ks0cfq.js";
|
|
@@ -47,7 +50,8 @@ function VoiceConversation3({
|
|
|
47
50
|
className: cn2(cn2(paper, "flex w-full max-w-xs flex-col items-center gap-4 rounded-md px-5 py-5"), className),
|
|
48
51
|
...props,
|
|
49
52
|
children: [
|
|
50
|
-
/* @__PURE__ */ jsxs(
|
|
53
|
+
/* @__PURE__ */ jsxs(AnalyticsButton, {
|
|
54
|
+
component: "VoiceConversation",
|
|
51
55
|
type: "button",
|
|
52
56
|
onClick: onInterrupt,
|
|
53
57
|
disabled: !canInterrupt,
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-k01gpm23.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceConnectButton2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-hxg0pkj9.js";
|
|
7
7
|
import {
|
|
8
8
|
VoiceMuteButton2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-05shyxqp.js";
|
|
10
10
|
import {
|
|
11
11
|
VoiceDisconnectButton2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-c4m53x5s.js";
|
|
13
13
|
|
|
14
14
|
// src/components/assistant-ui/native/VoiceControl.tsx
|
|
15
15
|
import { AuiIf } from "@assistant-ui/react";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useAnalyticsCallback
|
|
3
|
+
} from "./chunk-5mydsjp3.js";
|
|
4
|
+
|
|
5
|
+
// src/components/analytics/AnalyticsLink.tsx
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
function AnalyticsLink({ component, analytics, ...props }) {
|
|
8
|
+
const onClick = useAnalyticsCallback(component, analytics, { name: "ui.activate" }, props.onClick);
|
|
9
|
+
return /* @__PURE__ */ jsx("a", {
|
|
10
|
+
...props,
|
|
11
|
+
onClick
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { AnalyticsLink };
|