@vvedantb/ui 0.67.0 → 0.69.0

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.
Files changed (417) hide show
  1. package/app/src/auth/useStableAuth.ts +0 -2
  2. package/app/src/confirm/ConfirmSkipHint.tsx +0 -2
  3. package/app/src/confirm/useAltHeld.ts +0 -17
  4. package/app/src/convex/ConvexClerkProvider.tsx +0 -3
  5. package/app/src/convex/env.ts +0 -4
  6. package/app/src/convex/errorMessage.ts +0 -1
  7. package/app/src/convex/useHeldResult.ts +0 -3
  8. package/app/src/page-motion/PageMotionProvider.tsx +0 -6
  9. package/app/src/page-title/createPageTitleContext.tsx +0 -14
  10. package/app/src/settings/SettingsEmptyState.tsx +0 -4
  11. package/app/src/settings/SettingsField.tsx +0 -4
  12. package/app/src/settings/SettingsPage.tsx +0 -12
  13. package/app/src/settings/SettingsSection.tsx +0 -14
  14. package/app/src/settings/ThemeModePicker.tsx +0 -6
  15. package/app/src/theme/createThemeProvider.tsx +0 -33
  16. package/app/src/time/compactRelativeTime.ts +0 -16
  17. package/app/src/update/staleDeployReload.ts +0 -40
  18. package/app/src/update/updateWatcher.ts +0 -8
  19. package/dist/app/src/auth/useStableAuth.js +0 -1
  20. package/dist/app/src/confirm/ConfirmSkipHint.js +0 -3
  21. package/dist/app/src/confirm/useAltHeld.js +0 -17
  22. package/dist/app/src/convex/env.js +0 -3
  23. package/dist/app/src/convex/errorMessage.js +0 -2
  24. package/dist/app/src/settings/ThemeModePicker.js +0 -1
  25. package/dist/app/src/theme/createThemeProvider.js +1 -11
  26. package/dist/app/src/time/compactRelativeTime.js +0 -8
  27. package/dist/app/src/update/staleDeployReload.js +3 -38
  28. package/dist/app/src/update/updateWatcher.js +1 -3
  29. package/dist/shell/src/AppShell.js +0 -14
  30. package/dist/shell/src/PageHeaderBar.js +0 -3
  31. package/dist/shell/src/SessionsHoverCard.js +0 -9
  32. package/dist/shell/src/SidePanelTabs.js +0 -36
  33. package/dist/shell/src/Sidebar.js +0 -1
  34. package/dist/shell/src/SidebarChrome.js +0 -19
  35. package/dist/shell/src/SidebarIconTooltip.js +0 -1
  36. package/dist/shell/src/SidebarRail.js +0 -12
  37. package/dist/shell/src/SidebarResize.js +1 -4
  38. package/dist/shell/src/app-shell-classes.js +0 -10
  39. package/dist/shell/src/index.js +0 -1
  40. package/dist/shell/src/shell-panel-motion.js +0 -12
  41. package/dist/src/ai-elements/activity-shared.js +0 -6
  42. package/dist/src/ai-elements/activity-step-label.js +0 -6
  43. package/dist/src/ai-elements/activity-step-types.js +0 -4
  44. package/dist/src/ai-elements/activity-tasks-utils.js +0 -17
  45. package/dist/src/ai-elements/activity-tasks.js +0 -55
  46. package/dist/src/ai-elements/artifact.js +0 -4
  47. package/dist/src/ai-elements/attachments.js +0 -41
  48. package/dist/src/ai-elements/code-block.js +0 -18
  49. package/dist/src/ai-elements/collapsible-user-message-body.js +0 -2
  50. package/dist/src/ai-elements/context.js +0 -13
  51. package/dist/src/ai-elements/conversation.js +0 -4
  52. package/dist/src/ai-elements/jump-rail.js +0 -5
  53. package/dist/src/ai-elements/message.js +0 -7
  54. package/dist/src/ai-elements/model-picker-types.js +0 -1
  55. package/dist/src/ai-elements/model-picker.js +1 -6
  56. package/dist/src/ai-elements/model-selector.js +0 -4
  57. package/dist/src/ai-elements/prompt-input-speech.js +0 -13
  58. package/dist/src/ai-elements/prompt-input.js +0 -1
  59. package/dist/src/ai-elements/provider-icon.js +0 -4
  60. package/dist/src/ai-elements/queue.js +0 -15
  61. package/dist/src/ai-elements/shimmer.js +0 -14
  62. package/dist/src/ai-elements/speech-input.js +0 -7
  63. package/dist/src/artifacts/artifact-frame.js +0 -2
  64. package/dist/src/audio/playChime.js +0 -2
  65. package/dist/src/audio/playTone.js +1 -4
  66. package/dist/src/brand/AppWordmark.js +0 -5
  67. package/dist/src/brand/svg.js +0 -6
  68. package/dist/src/client.js +0 -43
  69. package/dist/src/composer/Composer.js +0 -27
  70. package/dist/src/composer/input-area/InputArea.js +0 -3
  71. package/dist/src/composer/input-area/InputAreaEditor.js +1 -50
  72. package/dist/src/composer/input-area/composerPrediction.js +0 -3
  73. package/dist/src/generative-ui/content.js +0 -2
  74. package/dist/src/generative-ui/index.js +0 -3
  75. package/dist/src/generative-ui/layout.js +0 -5
  76. package/dist/src/hooks/use-count-up-display.js +0 -2
  77. package/dist/src/hooks/use-idle-callback.js +0 -3
  78. package/dist/src/hooks/use-persisted-scroll-parent.js +1 -8
  79. package/dist/src/icons/animated/index.js +0 -4
  80. package/dist/src/icons/board-icon.js +74 -41
  81. package/dist/src/icons/bolt-icon.js +30 -20
  82. package/dist/src/icons/building-icon.js +125 -61
  83. package/dist/src/icons/files-icon.js +103 -43
  84. package/dist/src/icons/inbox-icon.js +101 -49
  85. package/dist/src/icons/index.js +2 -1
  86. package/dist/src/icons/memory-icon.js +135 -58
  87. package/dist/src/icons/search-icon.js +143 -46
  88. package/dist/src/icons/settings-icon.js +113 -53
  89. package/dist/src/icons/solid-icons.js +665 -0
  90. package/dist/src/icons/with-active.js +25 -0
  91. package/dist/src/index.js +0 -40
  92. package/dist/src/kibo/gantt-features.js +0 -10
  93. package/dist/src/kibo/gantt-provider.js +0 -34
  94. package/dist/src/kibo/kanban.js +0 -15
  95. package/dist/src/kibo/list.js +0 -3
  96. package/dist/src/kibo/video-player.js +0 -7
  97. package/dist/src/logos/index.js +0 -4
  98. package/dist/src/markdown/Markdown.js +0 -15
  99. package/dist/src/markdown/MarkdownCodeBlock.js +0 -16
  100. package/dist/src/markdown/MarkdownInlineCode.js +0 -6
  101. package/dist/src/markdown/MarkdownLink.js +0 -5
  102. package/dist/src/markdown/codeFence.js +0 -1
  103. package/dist/src/markdown/codeHighlight.js +0 -19
  104. package/dist/src/markdown/incrementalBlocks.js +0 -45
  105. package/dist/src/markdown/markdownClipboard.js +0 -13
  106. package/dist/src/markdown/mermaid.js +0 -25
  107. package/dist/src/markdown/rehypeGithubAlerts.js +0 -4
  108. package/dist/src/markdown/useSmoothText.js +0 -5
  109. package/dist/src/marketing/PricingModal.js +0 -2
  110. package/dist/src/marketing/ProductHero.js +0 -2
  111. package/dist/src/marketing/createLandingKit.js +0 -5
  112. package/dist/src/marketing/marketing-classes.js +0 -7
  113. package/dist/src/motion/dock-motion.js +0 -27
  114. package/dist/src/motion/panel-transition.js +0 -2
  115. package/dist/src/ui/_field-classes.js +0 -3
  116. package/dist/src/ui/_menu-classes.js +0 -6
  117. package/dist/src/ui/_picker-classes.js +0 -9
  118. package/dist/src/ui/accordion.alt.js +0 -12
  119. package/dist/src/ui/badge.js +0 -1
  120. package/dist/src/ui/border-beam.js +0 -2
  121. package/dist/src/ui/breadcrumb.js +0 -15
  122. package/dist/src/ui/bulk-action-bar.js +0 -11
  123. package/dist/src/ui/button.js +0 -20
  124. package/dist/src/ui/calendar.js +1 -20
  125. package/dist/src/ui/card.js +0 -3
  126. package/dist/src/ui/carousel.js +0 -1
  127. package/dist/src/ui/clear-input.alt.js +0 -9
  128. package/dist/src/ui/clearInputDissolve.js +0 -4
  129. package/dist/src/ui/command.js +0 -15
  130. package/dist/src/ui/confetti-burst.js +0 -3
  131. package/dist/src/ui/confirm-dialog-parts.js +0 -11
  132. package/dist/src/ui/confirm-dialog.js +0 -6
  133. package/dist/src/ui/crossfade-icon.js +0 -2
  134. package/dist/src/ui/date-picker.js +0 -22
  135. package/dist/src/ui/dialog.js +0 -5
  136. package/dist/src/ui/empty-state.js +0 -7
  137. package/dist/src/ui/field.js +0 -21
  138. package/dist/src/ui/image-lightbox.js +0 -5
  139. package/dist/src/ui/input-group.alt.js +0 -24
  140. package/dist/src/ui/input-group.js +0 -4
  141. package/dist/src/ui/kbd.js +0 -3
  142. package/dist/src/ui/loading-state.js +0 -17
  143. package/dist/src/ui/marquee-on-hover.js +0 -3
  144. package/dist/src/ui/media-preview.js +0 -2
  145. package/dist/src/ui/modalTransition.js +0 -33
  146. package/dist/src/ui/overlay-a11y.js +0 -1
  147. package/dist/src/ui/page-title.js +0 -3
  148. package/dist/src/ui/refresh-spin-icon.js +0 -12
  149. package/dist/src/ui/search-input.js +0 -1
  150. package/dist/src/ui/select-field.js +0 -1
  151. package/dist/src/ui/send-queue-icon.js +0 -3
  152. package/dist/src/ui/sheet.js +0 -33
  153. package/dist/src/ui/slider.js +103 -82
  154. package/dist/src/ui/sonner-icons.js +0 -5
  155. package/dist/src/ui/sonner.js +0 -60
  156. package/dist/src/ui/spinner.js +0 -35
  157. package/dist/src/ui/status-dot.js +0 -2
  158. package/dist/src/ui/surface.js +0 -14
  159. package/dist/src/ui/switch.js +213 -36
  160. package/dist/src/ui/table.js +0 -1
  161. package/dist/src/ui/tabs-transition.js +0 -1
  162. package/dist/src/ui/tabs.js +0 -17
  163. package/dist/src/ui/tabsSliding.js +0 -6
  164. package/dist/src/ui/time-picker.js +0 -15
  165. package/dist/src/ui/toggle-search.js +0 -3
  166. package/dist/src/ui/ui-config.js +0 -16
  167. package/dist/src/utils/cat-color.js +0 -17
  168. package/dist/src/utils/cn.js +0 -5
  169. package/dist/src/utils/gesture.js +0 -8
  170. package/dist/src/utils/ref.js +0 -1
  171. package/dist/src/utils/runtimeVisibility.js +1 -22
  172. package/dist/src/utils/surface-radius.js +0 -11
  173. package/dist/src/utils/useDragSensors.js +0 -4
  174. package/dist/tokens/src/tailwind-preset.mjs +0 -3
  175. package/package.json +1 -1
  176. package/scripts/build-brand-assets.mjs +0 -8
  177. package/shell/src/AppShell.tsx +0 -37
  178. package/shell/src/AppSidebar.tsx +0 -14
  179. package/shell/src/ButtonTrack.tsx +0 -1
  180. package/shell/src/PageHeaderBar.tsx +0 -61
  181. package/shell/src/PageWrapper.tsx +0 -26
  182. package/shell/src/PillTabs.tsx +0 -1
  183. package/shell/src/SessionsHoverCard.tsx +0 -40
  184. package/shell/src/SidePanelTabs.tsx +0 -61
  185. package/shell/src/Sidebar.tsx +0 -1
  186. package/shell/src/SidebarAccountMenu.tsx +0 -40
  187. package/shell/src/SidebarChrome.tsx +0 -32
  188. package/shell/src/SidebarIconTooltip.tsx +0 -3
  189. package/shell/src/SidebarPanel.tsx +0 -20
  190. package/shell/src/SidebarRail.tsx +0 -44
  191. package/shell/src/SidebarResize.tsx +0 -6
  192. package/shell/src/SidebarUpgradeCard.tsx +0 -2
  193. package/shell/src/SignOutDialog.tsx +0 -6
  194. package/shell/src/app-shell-classes.ts +0 -15
  195. package/shell/src/index.ts +0 -1
  196. package/shell/src/shell-panel-motion.ts +0 -11
  197. package/shell/src/shell-variant.ts +0 -6
  198. package/src/ai-elements/activity-question.tsx +0 -2
  199. package/src/ai-elements/activity-shared.tsx +0 -11
  200. package/src/ai-elements/activity-step-detail.tsx +0 -2
  201. package/src/ai-elements/activity-step-label.ts +0 -5
  202. package/src/ai-elements/activity-step-types.ts +0 -24
  203. package/src/ai-elements/activity-tasks-utils.ts +0 -13
  204. package/src/ai-elements/activity-tasks.tsx +0 -61
  205. package/src/ai-elements/artifact.tsx +0 -7
  206. package/src/ai-elements/attachments.tsx +0 -33
  207. package/src/ai-elements/chat-day-divider.tsx +0 -3
  208. package/src/ai-elements/chat-jump-rail.tsx +0 -9
  209. package/src/ai-elements/code-block.tsx +0 -28
  210. package/src/ai-elements/collapsible-user-message-body.tsx +0 -2
  211. package/src/ai-elements/context.tsx +0 -10
  212. package/src/ai-elements/conversation.tsx +0 -16
  213. package/src/ai-elements/jump-rail.tsx +0 -31
  214. package/src/ai-elements/message.tsx +0 -32
  215. package/src/ai-elements/model-picker-content.tsx +0 -17
  216. package/src/ai-elements/model-picker-types.ts +0 -5
  217. package/src/ai-elements/model-picker.tsx +0 -36
  218. package/src/ai-elements/model-selector.tsx +0 -5
  219. package/src/ai-elements/prompt-input-speech.tsx +0 -11
  220. package/src/ai-elements/prompt-input.tsx +0 -26
  221. package/src/ai-elements/provider-icon.tsx +0 -2
  222. package/src/ai-elements/queue.tsx +0 -19
  223. package/src/ai-elements/reasoning.tsx +0 -4
  224. package/src/ai-elements/shimmer.tsx +0 -16
  225. package/src/ai-elements/simple-model-ladder.tsx +0 -1
  226. package/src/ai-elements/speech-input.tsx +0 -6
  227. package/src/ai-elements/test-results.tsx +0 -5
  228. package/src/ai-elements/trace.tsx +0 -2
  229. package/src/ai-elements/web-preview.tsx +0 -7
  230. package/src/artifacts/artifact-card.tsx +0 -7
  231. package/src/artifacts/artifact-dialogs.tsx +0 -4
  232. package/src/artifacts/artifact-frame.tsx +0 -10
  233. package/src/artifacts/artifact-list-toolbar.tsx +0 -6
  234. package/src/artifacts/artifact-list.tsx +0 -4
  235. package/src/artifacts/artifact-type-icon.tsx +0 -1
  236. package/src/artifacts/artifact-versions-menu.tsx +0 -3
  237. package/src/artifacts/artifact-viewer.tsx +0 -5
  238. package/src/artifacts/types.ts +0 -1
  239. package/src/audio/playChime.ts +0 -1
  240. package/src/audio/playTone.ts +0 -7
  241. package/src/brand/AppIcons.tsx +0 -5
  242. package/src/brand/AppMark.tsx +0 -6
  243. package/src/brand/AppWordmark.tsx +0 -10
  244. package/src/brand/familyApps.ts +0 -2
  245. package/src/brand/svg.ts +0 -9
  246. package/src/client.ts +0 -34
  247. package/src/composer/Composer.tsx +0 -70
  248. package/src/composer/input-area/ComposerSlashMenu.tsx +0 -1
  249. package/src/composer/input-area/ConnectionStatusMenuItem.tsx +0 -2
  250. package/src/composer/input-area/FadePresence.tsx +0 -4
  251. package/src/composer/input-area/InputActions.tsx +0 -5
  252. package/src/composer/input-area/InputArea.tsx +1 -28
  253. package/src/composer/input-area/InputAreaEditor.tsx +0 -39
  254. package/src/composer/input-area/InputBanners.tsx +0 -1
  255. package/src/composer/input-area/PromoBanner.tsx +0 -1
  256. package/src/composer/input-area/composerPrediction.ts +0 -2
  257. package/src/composer/input-area/useComposerSlashMenu.ts +0 -1
  258. package/src/composer/input-area/useInputAreaPrediction.ts +0 -1
  259. package/src/composer/prediction.ts +0 -6
  260. package/src/composer/useComposerPrediction.ts +0 -2
  261. package/src/generative-ui/GenerativeUiPanel.tsx +0 -11
  262. package/src/generative-ui/content.tsx +0 -2
  263. package/src/generative-ui/index.ts +0 -3
  264. package/src/generative-ui/layout.tsx +0 -5
  265. package/src/hooks/use-count-up-display.ts +0 -1
  266. package/src/hooks/use-idle-callback.ts +0 -5
  267. package/src/hooks/use-persisted-scroll-parent.ts +0 -4
  268. package/src/hooks/use-single-flight.ts +0 -5
  269. package/src/icons/animated/animated-bell-icon.tsx +0 -6
  270. package/src/icons/animated/animated-counter.tsx +0 -5
  271. package/src/icons/animated/animated-key-icon.tsx +0 -4
  272. package/src/icons/animated/animated-notification-icon.tsx +0 -14
  273. package/src/icons/animated/animated-progress.tsx +0 -10
  274. package/src/icons/animated/animated-status-dot.tsx +0 -4
  275. package/src/icons/animated/index.ts +0 -4
  276. package/src/icons/animated/morphing-menu-icon.tsx +0 -5
  277. package/src/icons/animated/morphing-mic-icon.tsx +0 -2
  278. package/src/icons/animated/pulsing-rings.tsx +0 -4
  279. package/src/icons/automation-icon.tsx +0 -1
  280. package/src/icons/board-icon.tsx +13 -10
  281. package/src/icons/bolt-icon.tsx +5 -4
  282. package/src/icons/building-icon.tsx +11 -9
  283. package/src/icons/draft-icon.tsx +0 -1
  284. package/src/icons/files-icon.tsx +9 -5
  285. package/src/icons/inbox-arrow-icon.tsx +0 -1
  286. package/src/icons/inbox-icon.tsx +9 -5
  287. package/src/icons/index.ts +12 -1
  288. package/src/icons/memory-icon.tsx +9 -11
  289. package/src/icons/nav-icon-base.tsx +0 -10
  290. package/src/icons/search-icon.tsx +7 -6
  291. package/src/icons/settings-icon.tsx +11 -13
  292. package/src/icons/sidebar-toggle-icon.tsx +0 -1
  293. package/src/icons/solid-icons.tsx +138 -0
  294. package/src/icons/with-active.tsx +14 -0
  295. package/src/index.ts +0 -30
  296. package/src/kibo/gantt-features.tsx +0 -16
  297. package/src/kibo/gantt-header.tsx +0 -4
  298. package/src/kibo/gantt-provider.tsx +0 -36
  299. package/src/kibo/gantt-sidebar.tsx +0 -7
  300. package/src/kibo/gantt-timeline.tsx +0 -4
  301. package/src/kibo/kanban.tsx +0 -49
  302. package/src/kibo/list.tsx +0 -8
  303. package/src/kibo/theme-switcher.tsx +0 -5
  304. package/src/kibo/video-player.tsx +0 -9
  305. package/src/logos/index.ts +0 -3
  306. package/src/logos/logo-svg.tsx +0 -5
  307. package/src/markdown/Markdown.tsx +0 -20
  308. package/src/markdown/MarkdownCodeBlock.tsx +0 -14
  309. package/src/markdown/MarkdownInlineCode.tsx +0 -6
  310. package/src/markdown/MarkdownLink.tsx +0 -4
  311. package/src/markdown/codeFence.ts +0 -3
  312. package/src/markdown/codeHighlight.ts +0 -16
  313. package/src/markdown/incrementalBlocks.ts +0 -49
  314. package/src/markdown/markdownClipboard.ts +0 -12
  315. package/src/markdown/mermaid.ts +0 -22
  316. package/src/markdown/rehypeGithubAlerts.ts +0 -3
  317. package/src/markdown/useSmoothText.ts +0 -5
  318. package/src/marketing/FloatingBar.tsx +0 -3
  319. package/src/marketing/PricingModal.tsx +0 -45
  320. package/src/marketing/ProductHero.tsx +0 -23
  321. package/src/marketing/ProductHeroOrbit.tsx +0 -5
  322. package/src/marketing/SiteFooter.tsx +0 -23
  323. package/src/marketing/SiteHeader.tsx +0 -14
  324. package/src/marketing/VProPricingModal.tsx +0 -5
  325. package/src/marketing/createLandingKit.tsx +0 -12
  326. package/src/marketing/landing.tsx +0 -12
  327. package/src/marketing/marketing-classes.ts +0 -7
  328. package/src/motion/dock-motion.ts +0 -25
  329. package/src/motion/list-enter.tsx +0 -4
  330. package/src/motion/panel-transition.tsx +0 -5
  331. package/src/ui/_field-classes.ts +0 -2
  332. package/src/ui/_menu-classes.ts +0 -4
  333. package/src/ui/_menu-parts.tsx +0 -5
  334. package/src/ui/_picker-classes.ts +0 -6
  335. package/src/ui/accordion.alt.tsx +0 -8
  336. package/src/ui/accordion.tsx +0 -4
  337. package/src/ui/badge.tsx +0 -1
  338. package/src/ui/border-beam.tsx +0 -11
  339. package/src/ui/breadcrumb.tsx +0 -13
  340. package/src/ui/bulk-action-bar.tsx +0 -24
  341. package/src/ui/button.tsx +0 -27
  342. package/src/ui/calendar.tsx +0 -18
  343. package/src/ui/card.tsx +0 -3
  344. package/src/ui/carousel.tsx +0 -4
  345. package/src/ui/checkbox.tsx +0 -1
  346. package/src/ui/clear-input.alt.tsx +0 -8
  347. package/src/ui/clear-input.tsx +0 -16
  348. package/src/ui/clearInputDissolve.ts +0 -4
  349. package/src/ui/command.tsx +0 -22
  350. package/src/ui/confetti-burst.tsx +0 -4
  351. package/src/ui/confirm-dialog-parts.tsx +0 -45
  352. package/src/ui/confirm-dialog.tsx +0 -26
  353. package/src/ui/context-menu.tsx +0 -10
  354. package/src/ui/count-pop.tsx +0 -2
  355. package/src/ui/crossfade-icon.tsx +0 -3
  356. package/src/ui/date-picker.tsx +0 -40
  357. package/src/ui/dialog.tsx +0 -18
  358. package/src/ui/dropdown-menu.tsx +0 -11
  359. package/src/ui/empty-state.tsx +0 -15
  360. package/src/ui/error-boundary.tsx +0 -7
  361. package/src/ui/field.tsx +0 -18
  362. package/src/ui/hover-card.tsx +0 -6
  363. package/src/ui/image-lightbox.tsx +0 -7
  364. package/src/ui/input-group.alt.tsx +0 -16
  365. package/src/ui/input-group.tsx +0 -3
  366. package/src/ui/kbd.tsx +0 -3
  367. package/src/ui/label.tsx +0 -1
  368. package/src/ui/labeled-slider-row.tsx +0 -2
  369. package/src/ui/list-row.tsx +0 -46
  370. package/src/ui/loading-state.tsx +0 -23
  371. package/src/ui/marquee-on-hover.tsx +1 -6
  372. package/src/ui/media-preview.tsx +0 -5
  373. package/src/ui/modalTransition.ts +0 -25
  374. package/src/ui/overlay-a11y.ts +0 -1
  375. package/src/ui/page-title.tsx +0 -4
  376. package/src/ui/popover.tsx +0 -8
  377. package/src/ui/progress.tsx +0 -1
  378. package/src/ui/refresh-spin-icon.tsx +0 -11
  379. package/src/ui/relative-date-time.tsx +0 -3
  380. package/src/ui/rolling-number.tsx +0 -2
  381. package/src/ui/search-input.tsx +0 -9
  382. package/src/ui/select-field.tsx +0 -5
  383. package/src/ui/select.tsx +0 -8
  384. package/src/ui/send-queue-icon.tsx +0 -3
  385. package/src/ui/separator.tsx +0 -1
  386. package/src/ui/sheet.tsx +0 -42
  387. package/src/ui/slide-over-panel.tsx +0 -2
  388. package/src/ui/slider.tsx +21 -9
  389. package/src/ui/sonner-icons.tsx +0 -4
  390. package/src/ui/sonner.tsx +0 -78
  391. package/src/ui/spinner.tsx +0 -50
  392. package/src/ui/status-dot.tsx +0 -10
  393. package/src/ui/surface.tsx +0 -13
  394. package/src/ui/switch.tsx +72 -3
  395. package/src/ui/table.tsx +0 -3
  396. package/src/ui/tabs-transition.tsx +0 -12
  397. package/src/ui/tabs.tsx +0 -17
  398. package/src/ui/tabsSliding.ts +0 -5
  399. package/src/ui/time-picker.tsx +0 -17
  400. package/src/ui/toggle-search.tsx +0 -6
  401. package/src/ui/toolbar-search-input.tsx +0 -3
  402. package/src/ui/tooltip.tsx +0 -5
  403. package/src/ui/ui-config.tsx +0 -19
  404. package/src/utils/cat-color.ts +0 -20
  405. package/src/utils/cn.ts +0 -4
  406. package/src/utils/gesture.ts +0 -8
  407. package/src/utils/ref.ts +0 -1
  408. package/src/utils/runtimeVisibility.ts +0 -19
  409. package/src/utils/surface-radius.ts +0 -11
  410. package/src/utils/useDragSensors.ts +0 -2
  411. package/tokens/examples/compat-shadcn-rgb/vite.config.ts +0 -2
  412. package/tokens/examples/toaster/Fixture.tsx +0 -4
  413. package/tokens/examples/toaster/UpdateToastFixture.tsx +0 -4
  414. package/tokens/examples/toaster/vite.config.ts +0 -2
  415. package/tokens/examples/tokens-moved/Fixture.tsx +0 -4
  416. package/tokens/examples/tokens-moved/vite.config.ts +0 -2
  417. package/tokens/src/tailwind-preset.mjs +0 -3
@@ -12,23 +12,8 @@ import { Textarea } from "../ui/textarea.js";
12
12
  import { useCn, useUiConfig } from "../ui/ui-config.js";
13
13
  import { IconChevronDown, IconChevronRight, IconEdit, IconTrash, IconCheck, IconX, IconStack2 } from "@tabler/icons-react";
14
14
 
15
- // One Queue family, used in one of two ways:
16
- // - The queued-messages widget: `Queue` with `count`, `QueueHeader`,
17
- // `QueueList` and `QueueItem` with `text`. It animates with `motion.*`.
18
- // - Composable parts (the AI Elements `Queue`): `Queue` without `count`, the
19
- // `QueueSection*` parts, `QueueList`, `QueueItem` with children and the
20
- // `QueueItem*` parts. Plain elements only, no `motion.*`, so it renders
21
- // under a strict `LazyMotion`.
22
- // `QueueList` inside a composable `Queue` is the plain list; anywhere else it
23
- // is the widget's animated list.
24
- //
25
- // The widget keeps its own markup: its rows, actions and list have other
26
- // elements and classes than the parts, so building it on them would change
27
- // its DOM.
28
-
29
15
  /** `UiConfig.Queue`: `classes.sectionTrigger` replaces the section header's classes. */
30
16
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
31
- /** True inside a composable `Queue` (one without `count`). */
32
17
  const QueuePartsContext = /*#__PURE__*/createContext(false);
33
18
 
34
19
  /** The queued-messages widget: animates in while `count > 0`. */
@@ -4,8 +4,6 @@ import { cn } from "../utils/cn.js";
4
4
  import { useAnimOffscreenRef } from "../utils/runtimeVisibility.js";
5
5
  import { useCn, useUiConfig } from "../ui/ui-config.js";
6
6
 
7
- /** Custom properties the `mask` sweep reads from the app's `.shimmer-*` CSS. */
8
-
9
7
  /**
10
8
  * `UiConfig.Shimmer`. `mode: "mask"` sweeps a masked copy of the text on the
11
9
  * compositor (no repaint per frame, paused offscreen) instead of animating a
@@ -54,12 +52,6 @@ function Shimmer(t0) {
54
52
  }
55
53
  return t1;
56
54
  }
57
- /**
58
- * One motion component per `as` element, created once and reused. `m.create`
59
- * returns a new component type on each call; React treats a new type as a
60
- * different element and remounts the node, which restarts the sweep on every
61
- * parent re-render. Caching by element keeps the node stable.
62
- */
63
55
  const createMotion = Component => m.create(Component);
64
56
  const motionComponents = new Map();
65
57
  function motionComponentFor(Component) {
@@ -156,12 +148,6 @@ function GradientShimmer(t0) {
156
148
  }
157
149
  return t10;
158
150
  }
159
- /**
160
- * The text renders once in the base colour; a copy in the highlight colour
161
- * sits over it, masked to a soft band. The band translates one way while the
162
- * copy inside it translates the other by the same amount, so only the mask
163
- * moves: two transform animations, no repaint. The copy is `aria-hidden`.
164
- */
165
151
  function MaskShimmer(t0) {
166
152
  const $ = _c(23);
167
153
  const {
@@ -3,13 +3,6 @@ import { Button } from "../ui/button.js";
3
3
  import { Spinner } from "../ui/spinner.js";
4
4
  import { cn } from "../utils/cn.js";
5
5
  import { useEffect, useRef, useState } from "react";
6
- // Only the members this component uses, so an app's own (wider or narrower)
7
- // speech recognition typings stay assignable to it.
8
-
9
- // Read the constructors through a local type: a package must not augment the
10
- // global Window. Apps often declare their own `Window.SpeechRecognition`, so
11
- // `window` is cast to this shape rather than assigned (see
12
- // consumer/window-speech-global.d.ts).
13
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
7
  const getSpeechRecognitionConstructor = () => {
15
8
  const speechWindow = window;
@@ -14,8 +14,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  function toError(reason) {
15
15
  return reason instanceof Error ? reason : new Error(String(reason));
16
16
  }
17
-
18
- // The save in flight for each store, so a reload (another version, say) reads after it.
19
17
  const savesInFlight = new WeakMap();
20
18
 
21
19
  /**
@@ -1,6 +1,4 @@
1
1
  import { playTone } from "./playTone.js";
2
-
3
- /** A soft rising interval (A5 then D6). The second note overlaps the first. */
4
2
  const REPLY_CHIME = [{
5
3
  frequency: 880,
6
4
  startOffsetS: 0,
@@ -1,5 +1,4 @@
1
1
  import { tryAcquireAudioFloor } from "./audioFloor.js";
2
- /** Long enough to avoid a click on attack. */
3
2
  const ATTACK_S = 0.012;
4
3
  let sharedContext = null;
5
4
  function getAudioContext() {
@@ -46,7 +45,5 @@ export function playTone(tones) {
46
45
  oscillator.start(toneStart);
47
46
  oscillator.stop(toneEnd);
48
47
  }
49
- } catch {
50
- // Audio is optional. Stay silent on any failure.
51
- }
48
+ } catch {}
52
49
  }
@@ -4,11 +4,6 @@ import { APP_ICONS } from "./AppIcons.js";
4
4
 
5
5
  /** The five product apps. `projectv` keeps its Michroma wordmark and never uses `AppWordmark`. `eva` and `bee` are icons only. */
6
6
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
7
- /**
8
- * Icon frame size relative to the text font size. The glyphs fill about 55-80% of their square frame, so 1.4 makes the
9
- * visible glyph about 1.3x the Instrument Sans 500 cap height (0.72em): a slight overhang above and below the letters.
10
- * Stroke glyphs may read light next to weight-500 text. That is an observation only: stroke widths are unchanged.
11
- */
12
7
  const ICON_SCALE = 1.4;
13
8
  const FOCUS_RING = "rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background";
14
9
 
@@ -1,6 +1,3 @@
1
- // Geometry and raw SVG strings for the family app marks. No imports, so the
2
- // asset script can load this file directly with Node.
3
-
4
1
  /** Every mark. `eva` and `bee` are marks and icons only: they are not family apps, so `FAMILY_APPS` leaves them out. */
5
2
  export const APP_NAMES = ["projectv", "vibot", "vhub", "vmem", "verve", "velth", "eva", "bee"];
6
3
 
@@ -62,7 +59,6 @@ export const APP_MARKS = {
62
59
  paths: ["M304 530.7A208.1 208.1 0 1 1 720.1 530.7A208.1 208.1 0 1 1 304 530.7", "M447.5 414.2L447.5 445.4", "M576.5 414.2L576.5 445.4", "M306.3 561.9L717.7 561.9", "M344 653.4L680 653.4", "M468.3 341.4Q455.8 291.4 420.5 260.2", "M555.7 341.4Q568.2 291.4 603.5 260.2"]
63
60
  }
64
61
  };
65
- /** Roots in (0, 1) of the derivative of a Bezier with 1D control values `v` (quadratic or cubic). */
66
62
  function bezierExtrema(v) {
67
63
  const roots = [];
68
64
  if (v.length === 3) {
@@ -86,8 +82,6 @@ function bezierAt(v, t) {
86
82
  const [p0, p1, p2, p3] = v;
87
83
  return v.length === 3 ? u * u * p0 + 2 * u * t * p1 + t * t * p2 : u ** 3 * p0 + 3 * u * u * t * p1 + 3 * u * t * t * p2 + t ** 3 * p3;
88
84
  }
89
-
90
- /** Extreme points of an SVG elliptical arc (endpoint form, no rotation), including both ends. */
91
85
  function arcPoints(from, [rx0, ry0,, large, sweep, x, y]) {
92
86
  const [x0, y0] = from;
93
87
  let rx = Math.abs(rx0);
@@ -1,9 +1,3 @@
1
- // @vvedantb/ui/client: the root without `@vvedantb/server`, convex or Clerk, for
2
- // Chrome extensions and other pages that cannot load them. It leaves out the
3
- // artifact viewers (`src/artifacts`), `ConvexClerkProvider`, `useStableAuth`
4
- // and `useEnsureUser`; everything else matches the root. Keep it in step with
5
- // src/index.ts: src/client-exports.test.ts compares the two, and
6
- // app/tests-node/client-graph.test.mjs checks the module graph.
7
1
  export { cn } from "./utils/cn.js";
8
2
  export { UiConfigProvider, useUiConfig } from "./ui/ui-config.js";
9
3
  export { floatingSurfaceClass, triggerZoomAnimateClass } from "./ui/_menu-classes.js";
@@ -12,16 +6,12 @@ export * from "./ui/surface-classes.js";
12
6
  export * from "./motion/presets.js";
13
7
  export * from "./motion/panel-transition.js";
14
8
  export { ListEnter, useFirstPaintGate } from "./motion/list-enter.js";
15
- // Gesture physics and animation budget helpers (shared clock, on-screen and
16
- // page-visibility pausing for infinite animations).
17
9
  export { DRAG_ACTIVATION_DISTANCE_PX, projectVelocity, rubberband } from "./utils/gesture.js";
18
10
  export { bindRuntimeAnimation, ensureRuntimeVisibility, observeAnimVisibility, useAnimOffscreenRef } from "./utils/runtimeVisibility.js";
19
11
  export { msUntilNextBoundary, quantizedSnapshot, subscribeQuantized } from "./utils/sharedClock.js";
20
12
  export { CAT_SLOT_COUNT, catColorForId, catColorForSlot, catSlotForId } from "./utils/cat-color.js";
21
13
  export { CONTROL_RADIUS_CLASS, SURFACE_RADIUS_CLASS } from "./utils/surface-radius.js";
22
14
  export { restoreModalScrollLock } from "./ui/overlay-a11y.js";
23
- // Generic hooks: media query, page visibility, trailing debounce,
24
- // single-flight async calls and a persisted scroll container.
25
15
  export * from "./hooks/index.js";
26
16
  export { ErrorBoundary } from "./ui/error-boundary.js";
27
17
  export { CountPop, countLabel, UnreadDot, CORNER_BADGE_CLASS, UnreadCornerBadge } from "./ui/count-pop.js";
@@ -96,12 +86,7 @@ export * from "./ui/kbd.js";
96
86
  export * from "./ui/sheet.js";
97
87
  export * from "./ui/visually-hidden.js";
98
88
  export * from "./ui/clearInputDissolve.js";
99
-
100
- // Animated nav icons. Styles: `@vvedantb/ui/tokens/css/nav-icons.css`.
101
89
  export * from "./icons/index.js";
102
-
103
- // Dual copies: the richer file uses the plain name. The deprecated `Alt` exports
104
- // (accordion, clear input, input group) wrap the main parts with the old markup.
105
90
  export * from "./ui/accordion.js";
106
91
  export { AccordionAlt, AccordionItemAlt, AccordionTriggerAlt, AccordionContentAlt } from "./ui/accordion.alt.js";
107
92
  export * from "./ui/clear-input.js";
@@ -136,10 +121,6 @@ export * from "./ai-elements/shimmer.js";
136
121
  export * from "./ai-elements/sources.js";
137
122
  export * from "./ai-elements/speech-input.js";
138
123
  export * from "./ai-elements/suggestion.js";
139
-
140
- // Agent activity and run surfaces (moved from an app): the activity timeline and
141
- // its step model, Trace lines, plan, test results, web preview, context usage
142
- // and the model picker.
143
124
  export * from "./ai-elements/activity-shared.js";
144
125
  export * from "./ai-elements/activity-question.js";
145
126
  export * from "./ai-elements/activity-tasks.js";
@@ -151,35 +132,22 @@ export * from "./ai-elements/web-preview.js";
151
132
  export * from "./ai-elements/context.js";
152
133
  export * from "./ai-elements/model-picker.js";
153
134
  export * from "./ai-elements/provider-icon.js";
154
-
155
- // Kibo UI blocks: gantt, kanban, list, contribution graph, video player,
156
- // cursor, avatar stack, theme switcher. Kanban, list and gantt drag with
157
- // `useDragSensors`, the shared dnd-kit sensor split.
158
135
  export * from "./kibo/index.js";
159
136
  export { useDragSensors } from "./utils/useDragSensors.js";
160
-
161
- // Markdown renderer (Streamdown + code blocks, callouts, links, KaTeX).
162
- // Styles: `@vvedantb/ui/tokens/css/markdown.css`.
163
137
  export * from "./markdown/index.js";
164
138
  export * from "./audio/index.js";
165
139
  export * from "./composer/index.js";
166
140
  export { toast } from "sonner";
167
-
168
- // Shell: router-free pieces. Shell's own `cn` and `ClassValue` are not re-exported;
169
- // use the root `cn` (clsx + tailwind-merge).
170
141
  export { SidebarHeader } from "../shell/src/SidebarHeader.js";
171
142
  export { SidebarUpgradeCard } from "../shell/src/SidebarUpgradeCard.js";
172
143
  export { PillTabs } from "../shell/src/PillTabs.js";
173
144
  export { SessionsHoverCard } from "../shell/src/SessionsHoverCard.js";
174
- // App shell: sidebar and main page layout. Widths come from the
175
- // `--app-shell-*` CSS variables that `AppShell` sets.
176
145
  export { AppShell } from "../shell/src/AppShell.js";
177
146
  export { useAppShellVariant } from "../shell/src/shell-variant.js";
178
147
  export { popInShellPanelNextFrame, popOutShellPanel, toggleShellPanel } from "../shell/src/shell-panel-motion.js";
179
148
  export { ButtonTrack, buttonTrackClass } from "../shell/src/ButtonTrack.js";
180
149
  export { SidePanelTabs, popOutSidePanel, SIDE_PANEL_RAIL_WIDTH_PX, SIDE_PANEL_RAIL_LABELLED_WIDTH_PX } from "../shell/src/SidePanelTabs.js";
181
150
  export { AppSidebar } from "../shell/src/AppSidebar.js";
182
- // Composable sidebar parts (`Sidebar.Root`, `Sidebar.Rail`, ...) and their prop types.
183
151
  export * from "../shell/src/Sidebar.js";
184
152
  export { SidebarRail, RailTile, RailDivider, RailCollapseTile, shellDockTileProps, useInRailGroup } from "../shell/src/SidebarRail.js";
185
153
  export { SidebarResizeHandle, useAppShellResize } from "../shell/src/SidebarResize.js";
@@ -190,8 +158,6 @@ export { SignOutDialog } from "../shell/src/SignOutDialog.js";
190
158
  export { PageHeaderBar } from "../shell/src/PageHeaderBar.js";
191
159
  export { PageWrapper } from "../shell/src/PageWrapper.js";
192
160
  export { railBadgeClass, railTileClass, SIDEBAR_RAIL_APP_ICON_SIZE, railTileStateClass, railGroupClass, sidebarNavIconClass, sidebarNavItemActionsClass, sidebarNavItemClass, sidebarNavItemIndentStyle, sidebarNavItemLabelClass, sidebarNavItemLeadingClass, sidebarNavItemSubtitleClass, sidebarNavItemTrailingClass, sidebarNavLinkTextClass, sidebarNavRowClass, sidebarSectionLabelClass } from "../shell/src/app-shell-classes.js";
193
- // Marketing: landing kit, site footer and pricing dialog. Router- and Motion-free;
194
- // `createLandingKit` takes the app's `motion`. Styles: `@vvedantb/ui/landing.css`.
195
161
  export { LandingFeatureCard, LandingFooter, LandingLattice, LandingNavMenu, LandingPageLayout, LandingSection, LandingSectionHeading, landingItemVariants } from "./marketing/landing.js";
196
162
  export { createLandingKit } from "./marketing/createLandingKit.js";
197
163
  export { landingFooterButtonClass, landingFooterLinkClass, landingPanelClass, landingShellClass } from "./marketing/marketing-classes.js";
@@ -202,9 +168,6 @@ export { ProductHero } from "./marketing/ProductHero.js";
202
168
  export { ProductHeroOrbit } from "./marketing/ProductHeroOrbit.js";
203
169
  export { PROJECT_V_HOME_URL } from "./marketing/projectV.js";
204
170
  export { PricingModal, V_PRO_APP_BENEFITS } from "./marketing/PricingModal.js";
205
- // App helpers: confirm skip, update watcher, settings chrome, theme, page title,
206
- // page motion, time, VITE env and error messages. Not here: `ConvexClerkProvider`,
207
- // `useStableAuth` and `useEnsureUser`, which import convex or Clerk.
208
171
  export { bindToWindow, createAltHeldStore, getAltHeld, useAltHeld } from "../app/src/confirm/useAltHeld.js";
209
172
  export { requestConfirm, shouldSkipConfirm } from "../app/src/confirm/confirmSkip.js";
210
173
  export { useRequestConfirm } from "../app/src/confirm/useRequestConfirm.js";
@@ -226,12 +189,6 @@ export { formatCompactRelativeTime } from "../app/src/time/compactRelativeTime.j
226
189
  export { parseClientEnv, VITE_ENV_NAMES } from "../app/src/convex/env.js";
227
190
  export { convexErrorMessage, userFacingErrorMessage } from "../app/src/convex/errorMessage.js";
228
191
  export { useHeldResult } from "../app/src/convex/useHeldResult.js";
229
-
230
- // Family app marks (Icon* components, deprecated AppMark and raw SVG strings for favicons).
231
192
  export * from "./brand/index.js";
232
-
233
- // Third-party brand logos (`GitHubIcon`, `SlackIcon`, `ClaudeIcon`, ...). Also `@vvedantb/ui/logos`.
234
193
  export * from "./logos/index.js";
235
-
236
- // Native tokens (JS values that match tokens.css).
237
194
  export { tokens } from "../tokens/src/native.js";
@@ -13,15 +13,11 @@ import { useComposerPrediction } from "./useComposerPrediction.js";
13
13
  */
14
14
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  const DEFAULT_MAX_HEIGHT = 200;
16
-
17
- // The textarea and its ghost text mirror must share these metrics.
18
16
  const TEXT_METRICS_BASE = "block w-full text-sm leading-6 break-words whitespace-pre-wrap";
19
17
  const textMetrics = layout => cn(TEXT_METRICS_BASE, layout === "inline" ? "px-2 py-1" : "px-4 pt-3.5 pb-1");
20
18
  function isCaretAtEnd(el) {
21
19
  return el.selectionStart === el.selectionEnd && el.selectionEnd === el.value.length;
22
20
  }
23
-
24
- /** Icon-only ghost button for the footer: `plusMenu` triggers, `trailingActions`. */
25
21
  const ComposerIconButton = /*#__PURE__*/React.forwardRef((t0, ref) => {
26
22
  const $ = _c(15);
27
23
  let className;
@@ -84,12 +80,6 @@ const ComposerIconButton = /*#__PURE__*/React.forwardRef((t0, ref) => {
84
80
  return t5;
85
81
  });
86
82
  ComposerIconButton.displayName = "ComposerIconButton";
87
- /**
88
- * Outer chrome of the composer: border, field tokens, focus ring, attachments,
89
- * plus-menu and trailing slots, and send or stop. Put your input in `children`.
90
- * The focus ring follows any descendant with the `data-composer-input`
91
- * attribute that matches `:focus-visible`.
92
- */
93
83
  function ComposerShell(t0) {
94
84
  const $ = _c(42);
95
85
  const {
@@ -311,11 +301,6 @@ function ComposerShell(t0) {
311
301
  }
312
302
  return t22;
313
303
  }
314
- /**
315
- * Input-agnostic ghost overlay. It renders the draft invisibly, then the ghost
316
- * text, so the ghost lands after the last character. Position it absolutely
317
- * under (or over) your input and give it the same padding and font classes.
318
- */
319
304
  const ComposerGhostText = /*#__PURE__*/React.forwardRef(function ComposerGhostText(t0, ref) {
320
305
  const $ = _c(11);
321
306
  const {
@@ -372,12 +357,6 @@ const ComposerGhostText = /*#__PURE__*/React.forwardRef(function ComposerGhostTe
372
357
  }
373
358
  return t4;
374
359
  });
375
-
376
- /**
377
- * Chat composer: autosizing textarea, plus-menu and action slots, send/stop
378
- * button and optional ghost-text predictions. The ref points at the textarea.
379
- */
380
- /** @deprecated Use `InputArea` from `@vvedantb/ui`. Kept unchanged for existing consumers. */
381
360
  const Composer = /*#__PURE__*/React.forwardRef(function Composer({
382
361
  value: valueProp,
383
362
  defaultValue = "",
@@ -417,8 +396,6 @@ const Composer = /*#__PURE__*/React.forwardRef(function Composer({
417
396
  if (!isControlled) setInner(next);
418
397
  onChange?.(next);
419
398
  }, [isControlled, onChange]);
420
-
421
- // Ghost text shows only while the caret sits at the end of the draft.
422
399
  const [caretAtEnd, setCaretAtEnd] = React.useState(true);
423
400
  const prediction = useComposerPrediction({
424
401
  value,
@@ -428,8 +405,6 @@ const Composer = /*#__PURE__*/React.forwardRef(function Composer({
428
405
  minLength: predictionMinLength
429
406
  });
430
407
  const ghost = prediction.ghost;
431
-
432
- // Autosize: grow with the content up to `maxHeight`, then scroll.
433
408
  React.useLayoutEffect(() => {
434
409
  const el = textareaRef.current;
435
410
  if (custom || !el) return;
@@ -454,7 +429,6 @@ const Composer = /*#__PURE__*/React.forwardRef(function Composer({
454
429
  if (!isControlled) onChange?.("");
455
430
  prediction.clear();
456
431
  if (result && typeof result.then === "function") {
457
- // A failed async submit gives the draft back, unless the user already typed again.
458
432
  result.then(undefined, () => {
459
433
  if (!isControlled) setInner(current => current === "" ? draft : current);
460
434
  });
@@ -470,7 +444,6 @@ const Composer = /*#__PURE__*/React.forwardRef(function Composer({
470
444
  const native = event.nativeEvent;
471
445
  if (native.isComposing || event.keyCode === 229) return;
472
446
  if (event.key === "Tab" && !event.shiftKey && !event.altKey && !event.ctrlKey && !event.metaKey) {
473
- // The caret gate applies to the default textarea only. A custom input owns it.
474
447
  const atEnd = custom || !(el_0 instanceof HTMLTextAreaElement) || isCaretAtEnd(el_0);
475
448
  if (ghost && atEnd) {
476
449
  event.preventDefault();
@@ -20,9 +20,6 @@ import { useComposerSlashMenu } from "./useComposerSlashMenu.js";
20
20
  import { useInputAreaPrediction } from "./useInputAreaPrediction.js";
21
21
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
22
22
  const EXPANDED_EDITOR = "min-h-16 max-h-50 w-full self-stretch overflow-y-auto rounded-none px-4 pt-3.5 pb-1 text-left";
23
- // Block, not flex: chips and text must share one inline flow, or a click lands
24
- // the caret inside a chip. The 36px box (py-2 + leading-5) centres the line, and
25
- // `align-top` keeps chips level with the text as the old flex row did.
26
23
  const COMPACT_EDITOR = "block min-h-9 max-h-9 min-w-0 w-auto overflow-hidden whitespace-pre! rounded-none px-1 py-2 text-left leading-5 [&>[data-composer-chips-inline]>*]:align-top";
27
24
  const COMPACT_START_ADDON = "order-first shrink-0 justify-start gap-1 py-0 pl-1.5 pr-0 has-[>button]:ml-0";
28
25
  const COMPACT_END_ADDON = "order-last shrink-0 justify-end gap-1 py-0 pr-1.5 pl-1 has-[>button]:mr-0";
@@ -13,17 +13,8 @@ export const GHOST_COLOR_VAR = "--composer-ghost-color";
13
13
  * carries `suggestionClassName`. Muted foreground is the fallback.
14
14
  */
15
15
  export const INLINE_EDITOR_CLASS = "relative block w-full cursor-text whitespace-pre-wrap wrap-break-word bg-transparent outline-hidden data-empty:after:pointer-events-none data-empty:after:select-none data-empty:after:text-muted-foreground data-empty:after:content-[attr(data-placeholder)] data-suggestion:after:pointer-events-none data-suggestion:after:select-none data-suggestion:after:text-[color:var(--composer-ghost-color,var(--color-muted-foreground))] data-suggestion:after:content-[attr(data-suggestion)]";
16
-
17
- // `contents` so each chip is an inline atom in the editor's own flow (same as
18
- // session-composer chip spans). A wrapping flex host becomes one box and puts
19
- // the text in a column beside it.
20
16
  const CHIPS_HOST_CLASS = "contents empty:hidden [&>*]:mr-1.5";
21
17
  const ZERO_WIDTH_SPACE = "\u200b";
22
-
23
- /**
24
- * A value of "\n" is an empty draft: Shift+Enter on an empty editor, or a
25
- * stray line holder that apps stored before 0.5.4. Mirrors `isComposerCompact`.
26
- */
27
18
  function isEmptyDraft(value) {
28
19
  return value === "" || value === "\n";
29
20
  }
@@ -42,7 +33,6 @@ export function extractEditorText(root) {
42
33
  if (child instanceof HTMLElement) {
43
34
  if (child.hasAttribute(CHIPS_HOST_ATTR)) return;
44
35
  if (child.tagName === "BR") {
45
- // A trailing <br> only holds the line open.
46
36
  if (isRoot && index === node.childNodes.length - 1) {
47
37
  heldByBr = true;
48
38
  return;
@@ -66,21 +56,12 @@ export function extractEditorText(root) {
66
56
  walk(root, true);
67
57
  return !heldByBr && out.endsWith("\n") ? out.slice(0, -1) : out;
68
58
  }
69
-
70
- /** The DOM text for a value: a trailing "\n" gets its line holder. */
71
59
  function editorTextFor(value) {
72
60
  return value.endsWith("\n") ? `${value}\n` : value;
73
61
  }
74
-
75
- /** Every editor node except the chips host: the anchor, text and line breaks. */
76
62
  function textNodes(root) {
77
63
  return Array.from(root.childNodes).filter(child => !(child instanceof HTMLElement && child.hasAttribute(CHIPS_HOST_ATTR)));
78
64
  }
79
-
80
- /**
81
- * True when the DOM shows `shown`. An empty draft must be the bare U+200B
82
- * anchor: a stray "\n" or `<br>` reads as "" but pushes the placeholder down.
83
- */
84
65
  function editorShows(root, shown) {
85
66
  if (shown !== "") return extractEditorText(root) === shown;
86
67
  const [only, ...rest] = textNodes(root);
@@ -92,12 +73,6 @@ function chipsHost(root) {
92
73
  }
93
74
  return null;
94
75
  }
95
-
96
- /**
97
- * Returns the text node right after the chips host, creating it if missing.
98
- * It starts with U+200B, so the caret always has an editable position after
99
- * the chips, even with an empty draft. `extractEditorText` strips U+200B.
100
- */
101
76
  function ensureCaretAnchor(root) {
102
77
  const existing = findCaretAnchor(root);
103
78
  if (existing) return existing;
@@ -114,11 +89,6 @@ function findCaretAnchor(root) {
114
89
  function setSelection(anchorNode, anchorOffset, focusNode = anchorNode, focusOffset = anchorOffset) {
115
90
  window.getSelection()?.setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset);
116
91
  }
117
-
118
- /**
119
- * End of the text: the last text node before its trailing line holder, or the
120
- * end of the editor after a line break.
121
- */
122
92
  function textEnd(root) {
123
93
  ensureCaretAnchor(root);
124
94
  const last = root.lastChild;
@@ -151,15 +121,12 @@ export function normaliseSelection(root) {
151
121
  const anchor = ensureCaretAnchor(root);
152
122
  const first = document.createRange();
153
123
  first.setStart(anchor, 1);
154
- // The host comes first, so only the start can be before the text unless both are.
155
124
  if (first.comparePoint(startContainer, startOffset) >= 0) return;
156
125
  const endBefore = first.comparePoint(endContainer, endOffset) < 0;
157
126
  const [end, endAt] = endBefore ? [anchor, 1] : [endContainer, endOffset];
158
127
  const backwards = !range.collapsed && sel.anchorNode === endContainer && sel.anchorOffset === endOffset;
159
128
  if (backwards) setSelection(end, endAt, anchor, 1);else setSelection(anchor, 1, end, endAt);
160
129
  }
161
-
162
- /** Selects the text only, never the chips host. */
163
130
  function selectText(root) {
164
131
  const anchor = ensureCaretAnchor(root);
165
132
  const [node, offset] = textEnd(root);
@@ -173,15 +140,12 @@ function selectText(root) {
173
140
  export function readInlineChipsWidth(root) {
174
141
  const anchor = findCaretAnchor(root);
175
142
  if (!anchor || !chipsHost(root)?.childElementCount) return 0;
176
- // A text offset, not an element boundary: Chromium gives no rect for the latter.
177
143
  const textStart = document.createRange();
178
144
  textStart.setStart(anchor, 0);
179
145
  const style = getComputedStyle(root);
180
146
  const contentLeft = root.getBoundingClientRect().left + root.clientLeft + (Number.parseFloat(style.paddingLeft) || 0);
181
147
  return Math.max(0, textStart.getBoundingClientRect().left - contentLeft);
182
148
  }
183
-
184
- /** True when nothing but the chips host sits before the caret. */
185
149
  function caretAtTextStart(root) {
186
150
  const sel = window.getSelection();
187
151
  if (!sel || sel.rangeCount === 0 || !sel.isCollapsed) return false;
@@ -196,8 +160,6 @@ function caretAtTextStart(root) {
196
160
  const before = probe.cloneContents();
197
161
  return (before.textContent ?? "").replaceAll(ZERO_WIDTH_SPACE, "") === "" && before.querySelector("br, div, p") === null;
198
162
  }
199
-
200
- /** Clicks on chip controls, such as remove buttons, keep their own behaviour. */
201
163
  function isChipControl(target) {
202
164
  if (!(target instanceof Element)) return false;
203
165
  const control = target.closest("button, a, input, [role=button]");
@@ -251,9 +213,6 @@ export function InputAreaEditor({
251
213
  const keepCaretOutsideChips = root => {
252
214
  if (!composingRef.current) normaliseSelection(root);
253
215
  };
254
-
255
- // Native listeners: React has no `selectionchange`, and its `onBeforeInput`
256
- // does not see deletions.
257
216
  const setRefs = node_0 => {
258
217
  assignEditorRef(node_0);
259
218
  const keepSelectionOutsideChips = () => {
@@ -278,9 +237,6 @@ export function InputAreaEditor({
278
237
  }
279
238
  ensureCaretAnchor(root_0);
280
239
  });
281
-
282
- // Copy the probe colour to the editor. Opacity below 1 is folded into the
283
- // colour, so the `::after` needs one variable.
284
240
  useLayoutEffect(() => {
285
241
  const root_1 = rootRef.current;
286
242
  if (!root_1) return;
@@ -303,7 +259,6 @@ export function InputAreaEditor({
303
259
  selectText(root_2);
304
260
  return;
305
261
  }
306
- // Before the default action, so a selection never spans the chips host.
307
262
  normaliseSelection(root_2);
308
263
  if (event.key === "Enter") {
309
264
  if (event.shiftKey) return;
@@ -314,7 +269,6 @@ export function InputAreaEditor({
314
269
  form?.requestSubmit();
315
270
  return;
316
271
  }
317
- // Nothing visible to delete. The default would eat the U+200B anchor.
318
272
  if (event.key === "Backspace" && caretAtTextStart(root_2)) {
319
273
  event.preventDefault();
320
274
  if (chipCount > 0) onRemoveLastChip?.();
@@ -367,10 +321,7 @@ export function InputAreaEditor({
367
321
  className: CHIPS_HOST_CLASS,
368
322
  children: chips
369
323
  })
370
- }), suggestion && suggestionClassName ? /*#__PURE__*/
371
- // Outside the editor, so reconciliation and the text value never see it.
372
- // Zero-size, not `display: none`, so the computed colour is real.
373
- _jsx("span", {
324
+ }), suggestion && suggestionClassName ? /*#__PURE__*/_jsx("span", {
374
325
  "aria-hidden": true,
375
326
  "data-composer-ghost-probe": "",
376
327
  className: "pointer-events-none absolute size-0 select-none overflow-hidden text-foreground",
@@ -1,7 +1,4 @@
1
- /** Trailing-edge debounce: how long the user must pause before asking the model. */
2
1
  const PREDICTION_IDLE_MS = 500;
3
-
4
- /** Below this, there is not enough text to continue usefully. */
5
2
  const PREDICTION_MIN_CHARS = 12;
6
3
 
7
4
  /**
@@ -7,8 +7,6 @@ import { Progress } from "../ui/progress.js";
7
7
  import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../ui/table.js";
8
8
  import { cn } from "../utils/cn.js";
9
9
  import { BADGE_VARIANT, TONE_SURFACE, TONE_TEXT } from "./toneStyles.js";
10
-
11
- /** The leaves of a composed panel: everything that shows the agent's content. */
12
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
11
  const TEXT_VARIANT = {
14
12
  body: "text-sm text-foreground",
@@ -1,5 +1,2 @@
1
- // Generative UI on the web: agent-composed panels from the shared catalog
2
- // (`@vvedantb/server/generative-ui`). Needs `@json-render/core` and
3
- // `@json-render/react`; a separate subpath, so the root export does not.
4
1
  export { GenerativeUiPanel } from "./GenerativeUiPanel.js";
5
2
  export { GenerativeUiRenderer, generativeUiCatalog } from "./renderer.js";
@@ -2,11 +2,6 @@ import { c as _c } from "react/compiler-runtime";
2
2
  import { Separator } from "../ui/separator.js";
3
3
  import { Surface } from "../ui/surface.js";
4
4
  import { cn } from "../utils/cn.js";
5
-
6
- /**
7
- * The containers a composed panel is built from. Tailwind needs literal class
8
- * names, so every prop value maps through a lookup, never string interpolation.
9
- */
10
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
6
  const GAP = {
12
7
  sm: "gap-2",
@@ -3,8 +3,6 @@ import { animate } from "motion/react";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import { useDisablePageMotion } from "../../app/src/page-motion/PageMotionProvider.js";
5
5
  import { motionEase, tokenTransition } from "../motion/presets.js";
6
-
7
- /** Suffixes we will count; compound durations like "1h 12m" stay static. */
8
6
  const COUNTABLE_SUFFIX = /^(?:%|h|k|m|s|ms)?$/i;
9
7
 
10
8
  /**
@@ -1,8 +1,5 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { useState } from "react";
3
-
4
- /** Anything worth passing through a debounced callback. */
5
-
6
3
  /**
7
4
  * The debounce itself, free of React so it can be tested with fake timers.
8
5
  * `getFn` is read at fire time rather than captured, so the caller always runs
@@ -1,7 +1,5 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { useLayoutEffect, useState } from "react";
3
-
4
- /** Re-apply after a virtualised list measures; first paint often resets scrollTop. */
5
3
  function applyScrollTop(el, scrollTop) {
6
4
  el.scrollTop = scrollTop;
7
5
  requestAnimationFrame(() => {
@@ -13,21 +11,16 @@ function applyScrollTop(el, scrollTop) {
13
11
  }
14
12
  function readScrollTop(key) {
15
13
  try {
16
- // Stored as JSON; a JSON number is also a plain numeric string.
17
14
  const value = Number(sessionStorage.getItem(key) ?? 0);
18
15
  return Number.isFinite(value) ? value : 0;
19
16
  } catch {
20
17
  return 0;
21
18
  }
22
19
  }
23
-
24
- /** JSON, so a value written by an older `useSessionStorage` reads back. */
25
20
  function writeScrollTop(key, scrollTop) {
26
21
  try {
27
22
  sessionStorage.setItem(key, JSON.stringify(Math.round(scrollTop)));
28
- } catch {
29
- // Ignore quota / private-mode failures.
30
- }
23
+ } catch {}
31
24
  }
32
25
 
33
26
  /**
@@ -1,7 +1,3 @@
1
- // Motion-driven animated SVG icons. Entry: `@vvedantb/ui/icons/animated` (not re-exported from
2
- // the root or `/client`, so apps that do not use them do not load them). They need the optional
3
- // `motion` peer and animate through `m.*`, so wrap the app in `MotionProvider` (or its own
4
- // `LazyMotion`); without it they render their resting frame. No stylesheet is needed.
5
1
  export { AnimatedBellIcon } from "./animated-bell-icon.js";
6
2
  export { AnimatedCounter } from "./animated-counter.js";
7
3
  export { AnimatedKeyIcon } from "./animated-key-icon.js";