@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
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-cp2m7y7v.js";
|
|
4
4
|
import {
|
|
5
5
|
Button2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-38301e40.js";
|
|
7
7
|
import {
|
|
8
8
|
DropdownMenu2,
|
|
9
9
|
DropdownMenuTrigger2,
|
|
10
10
|
DropdownMenuContent2,
|
|
11
11
|
DropdownMenuItem2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-8wc2z7te.js";
|
|
13
13
|
import {
|
|
14
14
|
mono
|
|
15
15
|
} from "./chunk-fgmcbtyt.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnalyticsContext
|
|
3
|
+
} from "./chunk-7ny0vyek.js";
|
|
4
|
+
|
|
5
|
+
// src/hooks/useAnalyticsEnabled.ts
|
|
6
|
+
import { useContext } from "react";
|
|
7
|
+
function useAnalyticsEnabled(analytics) {
|
|
8
|
+
return useContext(AnalyticsContext)?.enabled === true && analytics !== false;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { useAnalyticsEnabled };
|
|
@@ -2,28 +2,34 @@ import {
|
|
|
2
2
|
useDensity
|
|
3
3
|
} from "./chunk-e6hk39ev.js";
|
|
4
4
|
import {
|
|
5
|
-
usePortalContainer2
|
|
6
|
-
} from "./chunk-j89xg1ak.js";
|
|
7
|
-
import {
|
|
5
|
+
usePortalContainer2,
|
|
8
6
|
usePortalNode,
|
|
9
7
|
PortalProvider2
|
|
10
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-x90xmrba.js";
|
|
11
9
|
import {
|
|
12
10
|
useDirection2
|
|
13
11
|
} from "./chunk-jpvw9xqy.js";
|
|
14
12
|
import {
|
|
15
13
|
cn2
|
|
16
14
|
} from "./chunk-cp2m7y7v.js";
|
|
15
|
+
import {
|
|
16
|
+
useAnalyticsCallback
|
|
17
|
+
} from "./chunk-5mydsjp3.js";
|
|
17
18
|
|
|
18
19
|
// src/components/DropdownMenu.tsx
|
|
19
20
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
20
21
|
import { ChevronRightIcon, CheckIcon } from "lucide-react";
|
|
21
22
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
23
|
"use client";
|
|
23
|
-
function DropdownMenu2({
|
|
24
|
+
function DropdownMenu2({
|
|
25
|
+
analytics,
|
|
26
|
+
...props
|
|
27
|
+
}) {
|
|
28
|
+
const trackedOnOpenChange = useAnalyticsCallback("DropdownMenu", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
24
29
|
return /* @__PURE__ */ jsx(MenuPrimitive.Root, {
|
|
25
30
|
"data-slot": "dropdown-menu",
|
|
26
|
-
...props
|
|
31
|
+
...props,
|
|
32
|
+
onOpenChange: trackedOnOpenChange
|
|
27
33
|
});
|
|
28
34
|
}
|
|
29
35
|
function DropdownMenuPortal2({ container, ref, children, ...props }) {
|
|
@@ -90,20 +96,31 @@ function DropdownMenuLabel2({ density, className, inset, ...props }) {
|
|
|
90
96
|
...props
|
|
91
97
|
});
|
|
92
98
|
}
|
|
93
|
-
function DropdownMenuItem2({
|
|
99
|
+
function DropdownMenuItem2({
|
|
100
|
+
analytics,
|
|
101
|
+
density,
|
|
102
|
+
className,
|
|
103
|
+
inset,
|
|
104
|
+
variant = "default",
|
|
105
|
+
...props
|
|
106
|
+
}) {
|
|
107
|
+
const trackedOnClick = useAnalyticsCallback("DropdownMenuItem", analytics, { name: "ui.activate" }, props.onClick);
|
|
94
108
|
return /* @__PURE__ */ jsx(MenuPrimitive.Item, {
|
|
95
109
|
"data-density": density,
|
|
96
110
|
"data-slot": "dropdown-menu-item",
|
|
97
111
|
"data-inset": inset,
|
|
98
112
|
"data-variant": variant,
|
|
99
113
|
className: (state) => cn2("group/dropdown-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 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:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", typeof className === "function" ? className(state) : className),
|
|
100
|
-
...props
|
|
114
|
+
...props,
|
|
115
|
+
onClick: trackedOnClick
|
|
101
116
|
});
|
|
102
117
|
}
|
|
103
|
-
function DropdownMenuSub2({ ...props }) {
|
|
118
|
+
function DropdownMenuSub2({ analytics, ...props }) {
|
|
119
|
+
const trackedOnOpenChange = useAnalyticsCallback("DropdownMenuSub", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
104
120
|
return /* @__PURE__ */ jsx(MenuPrimitive.SubmenuRoot, {
|
|
105
121
|
"data-slot": "dropdown-menu-sub",
|
|
106
|
-
...props
|
|
122
|
+
...props,
|
|
123
|
+
onOpenChange: trackedOnOpenChange
|
|
107
124
|
});
|
|
108
125
|
}
|
|
109
126
|
function DropdownMenuSubTrigger2({ density, className, inset, children, ...props }) {
|
|
@@ -143,6 +160,7 @@ function DropdownMenuSubContent2({
|
|
|
143
160
|
});
|
|
144
161
|
}
|
|
145
162
|
function DropdownMenuCheckboxItem2({
|
|
163
|
+
analytics,
|
|
146
164
|
density,
|
|
147
165
|
className,
|
|
148
166
|
children,
|
|
@@ -150,6 +168,7 @@ function DropdownMenuCheckboxItem2({
|
|
|
150
168
|
inset,
|
|
151
169
|
...props
|
|
152
170
|
}) {
|
|
171
|
+
const trackedOnCheckedChange = useAnalyticsCallback("DropdownMenuCheckboxItem", analytics, { name: "ui.change-request" }, props.onCheckedChange);
|
|
153
172
|
return /* @__PURE__ */ jsxs(MenuPrimitive.CheckboxItem, {
|
|
154
173
|
"data-density": density,
|
|
155
174
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -157,6 +176,7 @@ function DropdownMenuCheckboxItem2({
|
|
|
157
176
|
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 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),
|
|
158
177
|
checked,
|
|
159
178
|
...props,
|
|
179
|
+
onCheckedChange: trackedOnCheckedChange,
|
|
160
180
|
children: [
|
|
161
181
|
/* @__PURE__ */ jsx("span", {
|
|
162
182
|
className: "pointer-events-none absolute end-2 flex items-center justify-center",
|
|
@@ -169,10 +189,15 @@ function DropdownMenuCheckboxItem2({
|
|
|
169
189
|
]
|
|
170
190
|
});
|
|
171
191
|
}
|
|
172
|
-
function DropdownMenuRadioGroup2({
|
|
192
|
+
function DropdownMenuRadioGroup2({
|
|
193
|
+
analytics,
|
|
194
|
+
...props
|
|
195
|
+
}) {
|
|
196
|
+
const trackedOnValueChange = useAnalyticsCallback("DropdownMenuRadioGroup", analytics, { name: "ui.change-request" }, props.onValueChange);
|
|
173
197
|
return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, {
|
|
174
198
|
"data-slot": "dropdown-menu-radio-group",
|
|
175
|
-
...props
|
|
199
|
+
...props,
|
|
200
|
+
onValueChange: trackedOnValueChange
|
|
176
201
|
});
|
|
177
202
|
}
|
|
178
203
|
function DropdownMenuRadioItem2({ density, className, children, inset, ...props }) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnalyticsButton
|
|
3
|
+
} from "./chunk-tcefvfr8.js";
|
|
1
4
|
import {
|
|
2
5
|
cn2
|
|
3
6
|
} from "./chunk-cp2m7y7v.js";
|
|
@@ -5,7 +8,7 @@ import {
|
|
|
5
8
|
Collapsible2,
|
|
6
9
|
CollapsibleTrigger2,
|
|
7
10
|
CollapsibleContent2
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-fw86vanx.js";
|
|
9
12
|
import {
|
|
10
13
|
ShimmerLabel2
|
|
11
14
|
} from "./chunk-s3wqwhxc.js";
|
|
@@ -42,7 +45,8 @@ function ToolTimeline2({
|
|
|
42
45
|
}),
|
|
43
46
|
children: [
|
|
44
47
|
/* @__PURE__ */ jsxs(CollapsibleTrigger2, {
|
|
45
|
-
render: /* @__PURE__ */ jsx(
|
|
48
|
+
render: /* @__PURE__ */ jsx(AnalyticsButton, {
|
|
49
|
+
component: "ToolTimeline",
|
|
46
50
|
type: "button",
|
|
47
51
|
className: "group/trigger text-muted-foreground hover:text-foreground flex items-center gap-1.5 rounded-md py-1 text-[13.5px] transition-colors outline-none"
|
|
48
52
|
}),
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn2
|
|
3
3
|
} from "./chunk-cp2m7y7v.js";
|
|
4
|
+
import {
|
|
5
|
+
useAnalyticsCallback
|
|
6
|
+
} from "./chunk-5mydsjp3.js";
|
|
4
7
|
|
|
5
8
|
// src/components/Checkbox.tsx
|
|
6
9
|
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
7
10
|
import { CheckIcon } from "lucide-react";
|
|
8
11
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function Checkbox2({ density, className, ...props }) {
|
|
12
|
+
function Checkbox2({ analytics, density, className, ...props }) {
|
|
13
|
+
const trackedOnCheckedChange = useAnalyticsCallback("Checkbox", analytics, { name: "ui.change-request" }, props.onCheckedChange);
|
|
10
14
|
return /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
|
|
11
15
|
"data-density": density,
|
|
12
16
|
"data-slot": "checkbox",
|
|
13
17
|
className: (state) => cn2("peer relative flex size-4 shrink-0 items-center justify-center rounded-sm border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring data-disabled:cursor-not-allowed data-disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive aria-invalid:aria-checked:border-primary data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary", typeof className === "function" ? className(state) : className),
|
|
14
18
|
...props,
|
|
19
|
+
onCheckedChange: trackedOnCheckedChange,
|
|
15
20
|
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
|
|
16
21
|
"data-slot": "checkbox-indicator",
|
|
17
22
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnalyticsLink
|
|
3
|
+
} from "./chunk-4710gn6d.js";
|
|
1
4
|
import {
|
|
2
5
|
cn2
|
|
3
6
|
} from "./chunk-cp2m7y7v.js";
|
|
@@ -76,7 +79,8 @@ function LinkPreview2({
|
|
|
76
79
|
}) : null
|
|
77
80
|
]
|
|
78
81
|
}),
|
|
79
|
-
safeUrl ? /* @__PURE__ */ jsxs(
|
|
82
|
+
safeUrl ? /* @__PURE__ */ jsxs(AnalyticsLink, {
|
|
83
|
+
component: "LinkPreview",
|
|
80
84
|
href: safeUrl,
|
|
81
85
|
target: "_blank",
|
|
82
86
|
rel: "noopener noreferrer",
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnalyticsLink
|
|
3
|
+
} from "./chunk-4710gn6d.js";
|
|
1
4
|
import {
|
|
2
5
|
cn2
|
|
3
6
|
} from "./chunk-cp2m7y7v.js";
|
|
4
7
|
import {
|
|
5
8
|
TooltipIconButton2
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-kzar67tq.js";
|
|
7
10
|
import {
|
|
8
11
|
useCopyToClipboard
|
|
9
12
|
} from "./chunk-6synj4j9.js";
|
|
@@ -103,7 +106,8 @@ var defaultComponents = memoizeMarkdownComponents({
|
|
|
103
106
|
className: cn2("aui-md-p my-3 leading-relaxed first:mt-0 last:mb-0", className),
|
|
104
107
|
...props
|
|
105
108
|
}),
|
|
106
|
-
a: ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
109
|
+
a: ({ className, ...props }) => /* @__PURE__ */ jsx(AnalyticsLink, {
|
|
110
|
+
component: "MarkdownTextLink",
|
|
107
111
|
className: cn2("aui-md-a text-primary hover:text-primary/80 underline underline-offset-2", className),
|
|
108
112
|
...props
|
|
109
113
|
}),
|
|
@@ -3,24 +3,28 @@ import {
|
|
|
3
3
|
useDensity
|
|
4
4
|
} from "./chunk-e6hk39ev.js";
|
|
5
5
|
import {
|
|
6
|
-
usePortalContainer2
|
|
7
|
-
} from "./chunk-j89xg1ak.js";
|
|
8
|
-
import {
|
|
6
|
+
usePortalContainer2,
|
|
9
7
|
usePortalNode,
|
|
10
8
|
PortalProvider2
|
|
11
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-x90xmrba.js";
|
|
12
10
|
import {
|
|
13
11
|
cn2
|
|
14
12
|
} from "./chunk-cp2m7y7v.js";
|
|
15
|
-
import {
|
|
16
|
-
Button2
|
|
17
|
-
} from "./chunk-q7p28b89.js";
|
|
18
13
|
import {
|
|
19
14
|
useDirection2
|
|
20
15
|
} from "./chunk-jpvw9xqy.js";
|
|
16
|
+
import {
|
|
17
|
+
Tooltip2,
|
|
18
|
+
TooltipTrigger2,
|
|
19
|
+
TooltipContent2,
|
|
20
|
+
Button2
|
|
21
|
+
} from "./chunk-38301e40.js";
|
|
22
|
+
import {
|
|
23
|
+
AnalyticsButton
|
|
24
|
+
} from "./chunk-tcefvfr8.js";
|
|
21
25
|
import {
|
|
22
26
|
Input2
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-0fmrwsgp.js";
|
|
24
28
|
import {
|
|
25
29
|
Separator2
|
|
26
30
|
} from "./chunk-rajgnfbr.js";
|
|
@@ -28,19 +32,19 @@ import {
|
|
|
28
32
|
Skeleton2
|
|
29
33
|
} from "./chunk-d70rcwk7.js";
|
|
30
34
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
TooltipContent2
|
|
34
|
-
} from "./chunk-mz3e810d.js";
|
|
35
|
+
useAnalyticsCallback
|
|
36
|
+
} from "./chunk-5mydsjp3.js";
|
|
35
37
|
|
|
36
38
|
// src/components/Sheet.tsx
|
|
37
39
|
import { XIcon } from "lucide-react";
|
|
38
40
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
39
41
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
40
|
-
function Sheet2({ ...props }) {
|
|
42
|
+
function Sheet2({ analytics, ...props }) {
|
|
43
|
+
const trackedOnOpenChange = useAnalyticsCallback("Sheet", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
41
44
|
return /* @__PURE__ */ jsx(SheetPrimitive.Root, {
|
|
42
45
|
"data-slot": "sheet",
|
|
43
|
-
...props
|
|
46
|
+
...props,
|
|
47
|
+
onOpenChange: trackedOnOpenChange
|
|
44
48
|
});
|
|
45
49
|
}
|
|
46
50
|
function SheetTrigger2({ ...props }) {
|
|
@@ -388,7 +392,8 @@ function SidebarRail2({
|
|
|
388
392
|
...props
|
|
389
393
|
}) {
|
|
390
394
|
const { toggleSidebar, open, isMobile, openMobile } = useSidebar2();
|
|
391
|
-
return /* @__PURE__ */ jsx2(
|
|
395
|
+
return /* @__PURE__ */ jsx2(AnalyticsButton, {
|
|
396
|
+
component: "SidebarRail",
|
|
392
397
|
"data-density": density,
|
|
393
398
|
"data-sidebar": "rail",
|
|
394
399
|
"data-slot": "sidebar-rail",
|
|
@@ -493,18 +498,20 @@ function SidebarGroupLabel2({
|
|
|
493
498
|
});
|
|
494
499
|
}
|
|
495
500
|
function SidebarGroupAction2({
|
|
501
|
+
analytics,
|
|
496
502
|
density,
|
|
497
503
|
className,
|
|
498
504
|
render,
|
|
499
505
|
type,
|
|
500
506
|
...props
|
|
501
507
|
}) {
|
|
508
|
+
const onClick = useAnalyticsCallback("SidebarGroupAction", analytics, { name: "ui.activate" }, props.onClick);
|
|
502
509
|
return useRender({
|
|
503
510
|
defaultTagName: "button",
|
|
504
511
|
props: mergeProps({
|
|
505
512
|
type: type ?? (render ? undefined : "button"),
|
|
506
513
|
className: cn2("absolute top-panel end-panel flex aspect-square w-control-xs items-center justify-center rounded-sm p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-colors motion-reduce:transition-none group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-1 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", className)
|
|
507
|
-
}, props),
|
|
514
|
+
}, { ...props, onClick }),
|
|
508
515
|
render,
|
|
509
516
|
state: {
|
|
510
517
|
density,
|
|
@@ -558,6 +565,7 @@ var sidebarMenuButtonVariants = cva("peer/menu-button group/menu-button flex w-f
|
|
|
558
565
|
}
|
|
559
566
|
});
|
|
560
567
|
function SidebarMenuButton2({
|
|
568
|
+
analytics,
|
|
561
569
|
render,
|
|
562
570
|
isActive = false,
|
|
563
571
|
variant = "default",
|
|
@@ -570,6 +578,7 @@ function SidebarMenuButton2({
|
|
|
570
578
|
trailing,
|
|
571
579
|
...props
|
|
572
580
|
}) {
|
|
581
|
+
const onClick = useAnalyticsCallback("SidebarMenuButton", analytics, { name: "ui.activate" }, props.onClick);
|
|
573
582
|
const { isMobile, state } = useSidebar2();
|
|
574
583
|
const comp = useRender({
|
|
575
584
|
defaultTagName: "button",
|
|
@@ -589,7 +598,7 @@ function SidebarMenuButton2({
|
|
|
589
598
|
}),
|
|
590
599
|
type: type ?? (render ? undefined : "button"),
|
|
591
600
|
className: cn2(sidebarMenuButtonVariants({ variant, size }), className)
|
|
592
|
-
}, props),
|
|
601
|
+
}, { ...props, onClick }),
|
|
593
602
|
render,
|
|
594
603
|
state: {
|
|
595
604
|
density,
|
|
@@ -618,6 +627,7 @@ function SidebarMenuButton2({
|
|
|
618
627
|
});
|
|
619
628
|
}
|
|
620
629
|
function SidebarMenuAction2({
|
|
630
|
+
analytics,
|
|
621
631
|
density,
|
|
622
632
|
className,
|
|
623
633
|
render,
|
|
@@ -625,12 +635,13 @@ function SidebarMenuAction2({
|
|
|
625
635
|
showOnHover = false,
|
|
626
636
|
...props
|
|
627
637
|
}) {
|
|
638
|
+
const onClick = useAnalyticsCallback("SidebarMenuAction", analytics, { name: "ui.activate" }, props.onClick);
|
|
628
639
|
return useRender({
|
|
629
640
|
defaultTagName: "button",
|
|
630
641
|
props: mergeProps({
|
|
631
642
|
type: type ?? (render ? undefined : "button"),
|
|
632
643
|
className: cn2("absolute top-0.5 end-1 flex aspect-square w-control-xs items-center justify-center rounded-sm p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-colors motion-reduce:transition-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground top-0.5 peer-data-[size=lg]/menu-button:top-1.5 peer-data-[size=sm]/menu-button:top-0 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-1 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0", className)
|
|
633
|
-
}, props),
|
|
644
|
+
}, { ...props, onClick }),
|
|
634
645
|
render,
|
|
635
646
|
state: {
|
|
636
647
|
density,
|
|
@@ -696,6 +707,7 @@ function SidebarMenuSubItem2({ density, className, ...props }) {
|
|
|
696
707
|
});
|
|
697
708
|
}
|
|
698
709
|
function SidebarMenuSubButton2({
|
|
710
|
+
analytics,
|
|
699
711
|
render,
|
|
700
712
|
size = "md",
|
|
701
713
|
isActive = false,
|
|
@@ -703,11 +715,12 @@ function SidebarMenuSubButton2({
|
|
|
703
715
|
className,
|
|
704
716
|
...props
|
|
705
717
|
}) {
|
|
718
|
+
const onClick = useAnalyticsCallback("SidebarMenuSubButton", analytics, { name: "ui.activate" }, props.onClick);
|
|
706
719
|
return useRender({
|
|
707
720
|
defaultTagName: "a",
|
|
708
721
|
props: mergeProps({
|
|
709
722
|
className: cn2("flex h-control-sm min-w-0 items-center gap-control-gap overflow-hidden rounded-sm px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-1 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", className)
|
|
710
|
-
}, props),
|
|
723
|
+
}, { ...props, onClick }),
|
|
711
724
|
render,
|
|
712
725
|
state: {
|
|
713
726
|
density,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnalyticsButton
|
|
3
|
+
} from "./chunk-tcefvfr8.js";
|
|
4
|
+
|
|
1
5
|
// src/components/assistant-ui/native/SelectionToolbar.tsx
|
|
2
6
|
import { memo } from "react";
|
|
3
7
|
import { SelectionToolbarPrimitive } from "@assistant-ui/react";
|
|
@@ -17,7 +21,8 @@ function SelectionToolbarQuote2({ children, ...props }) {
|
|
|
17
21
|
return /* @__PURE__ */ jsx(SelectionToolbarPrimitive.Quote, {
|
|
18
22
|
"data-slot": "selection-toolbar-quote",
|
|
19
23
|
...props,
|
|
20
|
-
render: /* @__PURE__ */ jsx(
|
|
24
|
+
render: /* @__PURE__ */ jsx(AnalyticsButton, {
|
|
25
|
+
component: "SelectionToolbarQuote",
|
|
21
26
|
"data-testid": "SelectionToolbarQuote",
|
|
22
27
|
type: "button",
|
|
23
28
|
className: "text-popover-foreground hover:bg-accent flex items-center gap-1 rounded-sm px-2 py-1 text-sm transition-colors"
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnalyticsButton
|
|
3
|
+
} from "./chunk-tcefvfr8.js";
|
|
4
|
+
|
|
1
5
|
// src/components/assistant-ui/native/ComposerQuotePreview.tsx
|
|
2
6
|
import { memo } from "react";
|
|
3
7
|
import { ComposerPrimitive } from "@assistant-ui/react";
|
|
@@ -33,7 +37,8 @@ function ComposerQuotePreviewDismiss2({ children, ...props }) {
|
|
|
33
37
|
return /* @__PURE__ */ jsx(ComposerPrimitive.QuoteDismiss, {
|
|
34
38
|
"data-slot": "composer-quote-dismiss",
|
|
35
39
|
...props,
|
|
36
|
-
render: /* @__PURE__ */ jsx(
|
|
40
|
+
render: /* @__PURE__ */ jsx(AnalyticsButton, {
|
|
41
|
+
component: "ComposerQuotePreviewDismiss",
|
|
37
42
|
type: "button",
|
|
38
43
|
"aria-label": "Dismiss quote",
|
|
39
44
|
"data-testid": "ComposerQuotePreviewDismiss",
|
|
@@ -3,7 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-cp2m7y7v.js";
|
|
4
4
|
import {
|
|
5
5
|
buttonVariants2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-38301e40.js";
|
|
7
|
+
import {
|
|
8
|
+
useAnalyticsCallback
|
|
9
|
+
} from "./chunk-5mydsjp3.js";
|
|
7
10
|
|
|
8
11
|
// src/components/calendar/getCalendarClassNames.ts
|
|
9
12
|
import { getDefaultClassNames } from "@daypicker/react";
|
|
@@ -47,6 +50,7 @@ function getCalendarClassNames({
|
|
|
47
50
|
import { DayButton, DayPicker } from "@daypicker/react";
|
|
48
51
|
import { jsx } from "react/jsx-runtime";
|
|
49
52
|
function Calendar2({
|
|
53
|
+
analytics,
|
|
50
54
|
density,
|
|
51
55
|
className,
|
|
52
56
|
classNames,
|
|
@@ -58,6 +62,8 @@ function Calendar2({
|
|
|
58
62
|
components,
|
|
59
63
|
...props
|
|
60
64
|
}) {
|
|
65
|
+
const onDayClick = useAnalyticsCallback("Calendar", analytics, { name: "ui.change-request" }, props.onDayClick);
|
|
66
|
+
const onMonthChange = useAnalyticsCallback("Calendar", analytics, { name: "ui.navigate" }, props.onMonthChange);
|
|
61
67
|
return /* @__PURE__ */ jsx(DayPicker, {
|
|
62
68
|
"data-density": density,
|
|
63
69
|
"data-slot": "calendar",
|
|
@@ -74,7 +80,9 @@ function Calendar2({
|
|
|
74
80
|
DayButton: CalendarDayButton2,
|
|
75
81
|
...components
|
|
76
82
|
},
|
|
77
|
-
...props
|
|
83
|
+
...props,
|
|
84
|
+
onDayClick,
|
|
85
|
+
onMonthChange
|
|
78
86
|
});
|
|
79
87
|
}
|
|
80
88
|
function CalendarDayButton2({ className, day, modifiers, ...props }) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-wjx6zf94.js";
|
|
4
4
|
import {
|
|
5
5
|
Button2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-38301e40.js";
|
|
7
7
|
import {
|
|
8
8
|
Card2,
|
|
9
9
|
CardHeader2,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
Collapsible2,
|
|
16
16
|
CollapsibleTrigger2,
|
|
17
17
|
CollapsibleContent2
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-fw86vanx.js";
|
|
19
19
|
|
|
20
20
|
// src/components/assistant-ui/elements/McpServerPanel.tsx
|
|
21
21
|
import { ChevronRightIcon, PlugIcon } from "lucide-react";
|