@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
package/dist/src/index.js CHANGED
@@ -1,5 +1,3 @@
1
- // Colour, radius, shadow and font tokens live in @vvedantb/ui/tokens. Import that
2
- // stylesheet in the app. This package does not ship a second token set.
3
1
  export { cn } from "./utils/cn.js";
4
2
  export { UiConfigProvider, useUiConfig } from "./ui/ui-config.js";
5
3
  export { floatingSurfaceClass, triggerZoomAnimateClass } from "./ui/_menu-classes.js";
@@ -8,16 +6,12 @@ export * from "./ui/surface-classes.js";
8
6
  export * from "./motion/presets.js";
9
7
  export * from "./motion/panel-transition.js";
10
8
  export { ListEnter, useFirstPaintGate } from "./motion/list-enter.js";
11
- // Gesture physics and animation budget helpers (shared clock, on-screen and
12
- // page-visibility pausing for infinite animations).
13
9
  export { DRAG_ACTIVATION_DISTANCE_PX, projectVelocity, rubberband } from "./utils/gesture.js";
14
10
  export { bindRuntimeAnimation, ensureRuntimeVisibility, observeAnimVisibility, useAnimOffscreenRef } from "./utils/runtimeVisibility.js";
15
11
  export { msUntilNextBoundary, quantizedSnapshot, subscribeQuantized } from "./utils/sharedClock.js";
16
12
  export { CAT_SLOT_COUNT, catColorForId, catColorForSlot, catSlotForId } from "./utils/cat-color.js";
17
13
  export { CONTROL_RADIUS_CLASS, SURFACE_RADIUS_CLASS } from "./utils/surface-radius.js";
18
14
  export { restoreModalScrollLock } from "./ui/overlay-a11y.js";
19
- // Generic hooks: media query, page visibility, trailing debounce,
20
- // single-flight async calls and a persisted scroll container.
21
15
  export * from "./hooks/index.js";
22
16
  export { ErrorBoundary } from "./ui/error-boundary.js";
23
17
  export { CountPop, countLabel, UnreadDot, CORNER_BADGE_CLASS, UnreadCornerBadge } from "./ui/count-pop.js";
@@ -92,12 +86,7 @@ export * from "./ui/kbd.js";
92
86
  export * from "./ui/sheet.js";
93
87
  export * from "./ui/visually-hidden.js";
94
88
  export * from "./ui/clearInputDissolve.js";
95
-
96
- // Animated nav icons. Styles: `@vvedantb/ui/tokens/css/nav-icons.css`.
97
89
  export * from "./icons/index.js";
98
-
99
- // Dual copies: the richer file uses the plain name. The deprecated `Alt` exports
100
- // (accordion, clear input, input group) wrap the main parts with the old markup.
101
90
  export * from "./ui/accordion.js";
102
91
  export { AccordionAlt, AccordionItemAlt, AccordionTriggerAlt, AccordionContentAlt } from "./ui/accordion.alt.js";
103
92
  export * from "./ui/clear-input.js";
@@ -132,10 +121,6 @@ export * from "./ai-elements/shimmer.js";
132
121
  export * from "./ai-elements/sources.js";
133
122
  export * from "./ai-elements/speech-input.js";
134
123
  export * from "./ai-elements/suggestion.js";
135
-
136
- // Agent activity and run surfaces (moved from an app): the activity timeline and
137
- // its step model, Trace lines, plan, test results, web preview, context usage
138
- // and the model picker.
139
124
  export * from "./ai-elements/activity-shared.js";
140
125
  export * from "./ai-elements/activity-question.js";
141
126
  export * from "./ai-elements/activity-tasks.js";
@@ -147,39 +132,23 @@ export * from "./ai-elements/web-preview.js";
147
132
  export * from "./ai-elements/context.js";
148
133
  export * from "./ai-elements/model-picker.js";
149
134
  export * from "./ai-elements/provider-icon.js";
150
-
151
- // Artifact viewers: frame with the state bridge, card, list, toolbar, viewer.
152
- // The core (schemas, state ops, document wrapper) comes from `@vvedantb/server`.
153
135
  export * from "./artifacts/index.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
136
  export * from "./kibo/index.js";
159
137
  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
138
  export * from "./markdown/index.js";
164
139
  export * from "./audio/index.js";
165
140
  export * from "./composer/index.js";
166
141
  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
142
  export { SidebarHeader } from "../shell/src/SidebarHeader.js";
171
143
  export { SidebarUpgradeCard } from "../shell/src/SidebarUpgradeCard.js";
172
144
  export { PillTabs } from "../shell/src/PillTabs.js";
173
145
  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
146
  export { AppShell } from "../shell/src/AppShell.js";
177
147
  export { useAppShellVariant } from "../shell/src/shell-variant.js";
178
148
  export { popInShellPanelNextFrame, popOutShellPanel, toggleShellPanel } from "../shell/src/shell-panel-motion.js";
179
149
  export { ButtonTrack, buttonTrackClass } from "../shell/src/ButtonTrack.js";
180
150
  export { SidePanelTabs, popOutSidePanel, SIDE_PANEL_RAIL_WIDTH_PX, SIDE_PANEL_RAIL_LABELLED_WIDTH_PX } from "../shell/src/SidePanelTabs.js";
181
151
  export { AppSidebar } from "../shell/src/AppSidebar.js";
182
- // Composable sidebar parts (`Sidebar.Root`, `Sidebar.Rail`, ...) and their prop types.
183
152
  export * from "../shell/src/Sidebar.js";
184
153
  export { SidebarRail, RailTile, RailDivider, RailCollapseTile, shellDockTileProps, useInRailGroup } from "../shell/src/SidebarRail.js";
185
154
  export { SidebarResizeHandle, useAppShellResize } from "../shell/src/SidebarResize.js";
@@ -190,8 +159,6 @@ export { SignOutDialog } from "../shell/src/SignOutDialog.js";
190
159
  export { PageHeaderBar } from "../shell/src/PageHeaderBar.js";
191
160
  export { PageWrapper } from "../shell/src/PageWrapper.js";
192
161
  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
162
  export { LandingFeatureCard, LandingFooter, LandingLattice, LandingNavMenu, LandingPageLayout, LandingSection, LandingSectionHeading, landingItemVariants } from "./marketing/landing.js";
196
163
  export { createLandingKit } from "./marketing/createLandingKit.js";
197
164
  export { landingFooterButtonClass, landingFooterLinkClass, landingPanelClass, landingShellClass } from "./marketing/marketing-classes.js";
@@ -203,14 +170,7 @@ export { ProductHeroOrbit } from "./marketing/ProductHeroOrbit.js";
203
170
  export { PROJECT_V_HOME_URL } from "./marketing/projectV.js";
204
171
  export { PricingModal, V_PRO_APP_BENEFITS } from "./marketing/PricingModal.js";
205
172
  export { VProPricingModal } from "./marketing/VProPricingModal.js";
206
- // App helpers: confirm skip, update watcher, settings chrome, stable auth, Convex provider, VITE env and ensure-user.
207
173
  export * from "../app/src/index.js";
208
-
209
- // Family app marks (Icon* components, deprecated AppMark and raw SVG strings for favicons).
210
174
  export * from "./brand/index.js";
211
-
212
- // Third-party brand logos (`GitHubIcon`, `SlackIcon`, `ClaudeIcon`, ...). Also `@vvedantb/ui/logos`.
213
175
  export * from "./logos/index.js";
214
-
215
- // Native tokens (JS values that match tokens.css).
216
176
  export { tokens } from "../tokens/src/native.js";
@@ -234,9 +234,6 @@ export const GanttFeatureItem = ({
234
234
  const width = useMemo(() => getWidth(startAt, endAt, gantt), [startAt, endAt, gantt]);
235
235
  const offset = useMemo(() => getOffset(startAt, timelineStartDate, gantt), [startAt, timelineStartDate, gantt]);
236
236
  const addRange = useMemo(() => getAddRange(gantt.range), [gantt.range]);
237
-
238
- // Pixels per day for the active range, so drag deltas map to dates correctly
239
- // in every zoom (daily columns are per-day; monthly/quarterly are per-month).
240
237
  const pxPerDay = useMemo(() => {
241
238
  const colW = gantt.columnWidth * gantt.zoom / 100;
242
239
  return gantt.range === "daily" ? colW : colW / 30;
@@ -244,10 +241,6 @@ export const GanttFeatureItem = ({
244
241
  const [, setPreviousMouseX] = useState(0);
245
242
  const [previousStartAt, setPreviousStartAt] = useState(startAt);
246
243
  const [previousEndAt, setPreviousEndAt] = useState(endAt);
247
-
248
- // A `MouseSensor` alone meant a gantt bar could not be moved or resized by
249
- // touch or pen at all — the three `DndContext`s below never armed off a
250
- // finger.
251
244
  const sensors = useDragSensors();
252
245
  const handleItemDragStart = useCallback(() => {
253
246
  const mouseX = gantt.scrollX;
@@ -273,9 +266,6 @@ export const GanttFeatureItem = ({
273
266
  const newEndAt = dayjs(feature.endAt).add(daysDelta_1, "day").toDate();
274
267
  setEndAt(newEndAt);
275
268
  }, [pxPerDay, feature.endAt]);
276
-
277
- // When the bar sits outside the visible canvas, show a clickable date chip
278
- // pinned to the viewport edge that scrolls back to it (Linear's "← date").
279
269
  const viewportWidth = gantt.ref?.current?.clientWidth ?? 0;
280
270
  const visibleEnd = gantt.scrollX + Math.max(0, viewportWidth - gantt.sidebarWidth);
281
271
  const roundedOffset = Math.round(offset);
@@ -48,16 +48,7 @@ export function useGanttClasses() {
48
48
  }
49
49
  return t1;
50
50
  }
51
- /** The issue-list column at desktop width. */
52
51
  const GANTT_SIDEBAR_WIDTH_PX = 300;
53
-
54
- /**
55
- * The sidebar is a grid track, not a sized element, so its width has to be a
56
- * number. Hardcoded at 300 it left roughly 90px of chart canvas on a 390px
57
- * phone — the timeline was there, just not wide enough to read. Capped at 45% of
58
- * the viewport, a phone keeps the majority of the width for the bars while
59
- * desktop is unchanged.
60
- */
61
52
  function ganttSidebarWidth() {
62
53
  return Math.min(GANTT_SIDEBAR_WIDTH_PX, Math.round(window.innerWidth * 0.45));
63
54
  }
@@ -203,8 +194,6 @@ export const GanttProvider = ({
203
194
  const [sidebarWidth, setSidebarWidth] = useState(0);
204
195
  const headerHeight = 60;
205
196
  const rowHeight = 36;
206
- // Daily is rendered as a Linear-style weekly grid (~16px/day → ~112px/week),
207
- // so the per-day column is narrow and only week starts are labelled.
208
197
  let columnWidth = 16;
209
198
  if (range === "monthly") {
210
199
  columnWidth = 150;
@@ -221,12 +210,7 @@ export const GanttProvider = ({
221
210
  };
222
211
  return vars;
223
212
  }, [zoom, columnWidth, sidebarWidth]);
224
-
225
- // Center the canvas on today once the sidebar width is known, matching
226
- // Linear's default (today near the middle of the viewport). Runs once.
227
213
  const didCenterRef = useRef(false);
228
- /* Scrolls the real element and then records where it landed; the scroll
229
- position only exists after layout, so it cannot be derived during render. */
230
214
  useEffect(() => {
231
215
  const el = scrollRef.current;
232
216
  if (!el || didCenterRef.current || sidebarWidth === 0) return;
@@ -251,9 +235,6 @@ export const GanttProvider = ({
251
235
  setScrollX(el.scrollLeft);
252
236
  didCenterRef.current = true;
253
237
  }, [sidebarWidth, zoom, range, columnWidth, timelineData, onAddItem]);
254
-
255
- // Ctrl/Cmd + wheel (and trackpad pinch, which sends ctrlKey) zooms the
256
- // timeline like Linear, instead of zooming the page. Plain wheel scrolls.
257
238
  const zoomRef = useRef(zoom);
258
239
  zoomRef.current = zoom;
259
240
  useEffect(() => {
@@ -274,10 +255,6 @@ export const GanttProvider = ({
274
255
  });
275
256
  return () => el_0.removeEventListener("wheel", onWheel);
276
257
  }, [onZoomChange]);
277
-
278
- /* Measures the rendered sidebar via a MutationObserver plus resize. There is
279
- no snapshot to read before the first paint, so useSyncExternalStore has
280
- nothing to return on mount. */
281
258
  useEffect(() => {
282
259
  const updateSidebarWidth = () => {
283
260
  const sidebarElement = scrollRef.current?.querySelector('[data-roadmap-ui="gantt-sidebar"]');
@@ -292,10 +269,6 @@ export const GanttProvider = ({
292
269
  subtree: true
293
270
  });
294
271
  }
295
-
296
- // The width is viewport-relative below the full 300px, so it has to be
297
- // recomputed on resize and rotation — this number is also the scroll maths'
298
- // origin, so letting it drift from the rendered track mis-centres the chart.
299
272
  window.addEventListener("resize", updateSidebarWidth);
300
273
  return () => {
301
274
  observer.disconnect();
@@ -367,11 +340,6 @@ export const GanttProvider = ({
367
340
  scrollElement_0.addEventListener("scroll", handleScroll);
368
341
  return () => scrollElement_0.removeEventListener("scroll", handleScroll);
369
342
  }, [handleScroll]);
370
-
371
- // Drag-to-pan: with the scrollbar hidden, pressing on empty canvas and
372
- // dragging scrolls the timeline like Linear's roadmap. Bars, the sidebar and
373
- // any interactive control opt out via the selector below so their own
374
- // click/drag behaviour is preserved.
375
343
  useEffect(() => {
376
344
  const el_2 = scrollRef.current;
377
345
  if (!el_2) return;
@@ -459,8 +427,6 @@ export const GanttProvider = ({
459
427
  scrollX: 0,
460
428
  setScrollX: () => {}
461
429
  });
462
-
463
- // Centre today in the viewport rather than pinning it to the left edge.
464
430
  scrollElement_2.scrollTo({
465
431
  left: Math.max(0, offset_1 - scrollElement_2.clientWidth / 2),
466
432
  behavior: "smooth"
@@ -22,9 +22,6 @@ const KanbanContext = /*#__PURE__*/createContext({
22
22
  export const useKanbanContext = () => {
23
23
  return useContext(KanbanContext);
24
24
  };
25
-
26
- // --- KanbanBoard: droppable column zone ---
27
-
28
25
  export const KanbanBoard = t0 => {
29
26
  const $ = _c(11);
30
27
  const {
@@ -82,9 +79,6 @@ export const KanbanBoard = t0 => {
82
79
  }
83
80
  return t5;
84
81
  };
85
-
86
- // --- KanbanCard: sortable item wrapper ---
87
-
88
82
  export const KanbanCard = t0 => {
89
83
  const $ = _c(18);
90
84
  const {
@@ -174,9 +168,6 @@ export const KanbanCard = t0 => {
174
168
  }
175
169
  return t8;
176
170
  };
177
-
178
- // --- KanbanCards: SortableContext + auto-filter by column from context ---
179
-
180
171
  export const KanbanCards = t0 => {
181
172
  const $ = _c(18);
182
173
  let children;
@@ -255,9 +246,6 @@ export const KanbanCards = t0 => {
255
246
  }
256
247
  return t5;
257
248
  };
258
-
259
- // --- KanbanHeader: simple styled header ---
260
-
261
249
  export const KanbanHeader = t0 => {
262
250
  const $ = _c(9);
263
251
  let className;
@@ -298,9 +286,6 @@ export const KanbanHeader = t0 => {
298
286
  }
299
287
  return t2;
300
288
  };
301
-
302
- // --- KanbanProvider: DnD context + Kanban context + a11y ---
303
-
304
289
  export const KanbanProvider = t0 => {
305
290
  const $ = _c(40);
306
291
  const {
@@ -108,9 +108,6 @@ export const SortableListGroup = t0 => {
108
108
  }
109
109
  return t4;
110
110
  };
111
- // Not built on `ListRow`: that row always wraps its children in a padded body
112
- // `<div>` and adds its own surface, radius and hover, so rendering through it
113
- // would change this item's DOM for every caller. This item is only the draggable box.
114
111
  export const SortableListItem = t0 => {
115
112
  const $ = _c(22);
116
113
  const {
@@ -6,13 +6,6 @@ const defaultClasses = {
6
6
  root: "overflow-hidden rounded-surface shadow-lg shadow-black/20",
7
7
  controlBar: "bg-zinc-950/95 px-1 *:transition-colors *:duration-150"
8
8
  };
9
-
10
- // The control bar carries the dark backdrop (set via Tailwind on the bar),
11
- // so individual controls stay transparent and hover applies a subtle light
12
- // overlay on top — that reads as a "dimmer highlight" rather than going
13
- // transparent against the chat bubble behind.
14
- // Tooltip background is set explicitly because the default falls through
15
- // to --media-secondary-color, which is transparent here.
16
9
  const variables = {
17
10
  "--media-primary-color": "rgb(255 255 255 / 0.96)",
18
11
  "--media-secondary-color": "transparent",
@@ -1,7 +1,3 @@
1
- // Third-party brand logos (full-colour unless noted). Family app marks live in `../brand`.
2
- // Each logo takes `LogoProps`: `size` (default 24), `title` (labelled `role="img"`; otherwise
3
- // `aria-hidden`) and any other SVG prop. Paths are the vendors' own; do not recolour them.
4
-
5
1
  export { ChromeIcon } from "./chrome-icon.js";
6
2
  export { ClaudeIcon } from "./claude-icon.js";
7
3
  export { ConvexIcon } from "./convex-icon.js";
@@ -13,7 +13,6 @@ import { MarkdownLink } from "./MarkdownLink.js";
13
13
  import { mermaidPlugin } from "./mermaid.js";
14
14
  import { copyMarkdownSelection } from "./markdownClipboard.js";
15
15
  import { rehypeGithubAlerts } from "./rehypeGithubAlerts.js";
16
- // The math plugin renders KaTeX markup but ships no stylesheet with it.
17
16
  import "katex/dist/katex.min.css";
18
17
  import { useSmoothText } from "./useSmoothText.js";
19
18
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -23,22 +22,8 @@ const PLUGINS = {
23
22
  math,
24
23
  mermaid: mermaidPlugin
25
24
  };
26
-
27
- /**
28
- * `remarkPlugins` / `rehypePlugins` REPLACE Streamdown's defaults rather than
29
- * extending them, so the defaults (GFM + fence meta; raw HTML, sanitise,
30
- * harden) are spread back in first. Alerts run after the sanitiser, which
31
- * would otherwise strip the attribute they set.
32
- */
33
25
  const REMARK_PLUGINS = Object.values(defaultRemarkPlugins);
34
26
  const REHYPE_PLUGINS = [...Object.values(defaultRehypePlugins), rehypeGithubAlerts];
35
-
36
- /**
37
- * Plain tags where Streamdown's defaults bake in Tailwind classes (text-3xl
38
- * headings, `list-inside` lists, a `span` for bold, padded table cells): the
39
- * `.markdown` stylesheet owns typography, so these render unstyled. `table`
40
- * itself stays Streamdown's, for its copy / download / fullscreen controls.
41
- */
42
27
  const MARKDOWN_COMPONENTS = {
43
28
  h1: "h1",
44
29
  h2: "h2",
@@ -8,12 +8,6 @@ import { useHighlightedLines } from "./codeHighlight.js";
8
8
  import { useMermaidRender } from "./mermaid.js";
9
9
  import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
10
10
  const COPIED_MS = 1200;
11
-
12
- /**
13
- * Token colours travel as custom properties so one render serves both
14
- * themes: `--md-c` is the light colour, `--shiki-dark` the dark one, and the
15
- * stylesheet picks between them.
16
- */
17
11
  function tokenStyle(token) {
18
12
  const style = {};
19
13
  if (token.color) style["--md-c"] = token.color;
@@ -249,17 +243,7 @@ function MarkdownCodeBlock(t0) {
249
243
  }
250
244
  return t18;
251
245
  }
252
-
253
- /** Start a diagram render this far before it scrolls into view. */
254
246
  const MERMAID_PRELOAD_MARGIN = "400px";
255
-
256
- /**
257
- * A mermaid fence: the plain code block until the diagram has rendered, then
258
- * Streamdown's diagram view (pan, zoom, fullscreen, download). A fence still
259
- * streaming, or one that will not parse, stays code — no error box. Nothing
260
- * renders (or loads mermaid) until the block nears the viewport, so a long
261
- * chat does not render every diagram in its history on open.
262
- */
263
247
  function MarkdownMermaid(t0) {
264
248
  const $ = _c(10);
265
249
  const {
@@ -2,12 +2,6 @@ import { c as _c } from "react/compiler-runtime";
2
2
  import { Children } from "react";
3
3
  import { IconFile } from "@tabler/icons-react";
4
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- /**
6
- * Inline code that names a file, optionally with a `:line[:col]` suffix. A
7
- * path with a directory (`src/a.ts`, `./x/y.md`, `~/z.json`) may end in any
8
- * extension; a bare name must end in a common source extension, because
9
- * `console.log` and `ctx.db` are code, not files.
10
- */
11
5
  const PATH_WITH_DIRECTORY = /^(?:~|\.{1,2})?\/?(?:[\w@.+-]+\/)*[\w@+-][\w@.+-]*\.[a-z][a-z0-9]{0,7}(?::\d+(?::\d+)?)?$/i;
12
6
  const BARE_FILE_NAME = /^[\w@+-][\w@.+-]*\.(?:[cm]?[jt]sx?|json|jsonc|mdx?|css|scss|html|ya?ml|toml|py|rb|go|rs|java|kt|swift|c|h|cpp|hpp|cs|php|sh|sql|txt|lock|xml|svg|vue|svelte|astro|prisma|graphql|csv|ipynb|env)(?::\d+(?::\d+)?)?$/;
13
7
  export function looksLikeFilePath(text) {
@@ -2,14 +2,9 @@ import { c as _c } from "react/compiler-runtime";
2
2
  import { Children } from "react";
3
3
  import { IconBrandGithub, IconWorld } from "@tabler/icons-react";
4
4
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
5
- /** Streamdown's placeholder href for a link whose `(url)` has not streamed yet. */
6
5
  const INCOMPLETE_LINK = "streamdown:incomplete-link";
7
- /** Break opportunities in a bare URL: after separators, never mid-word. */
8
6
  const URL_BREAK_AFTER = /([/.?&=#_-]+)/;
9
-
10
- /** Hosts whose favicon is a black glyph that vanishes in dark mode. */
11
7
  const MONOCHROME_HOSTS = new Set(["github.com", "gist.github.com"]);
12
- /** Hosts whose favicon failed this session; they get the globe from now on. */
13
8
  const failedFavicons = new Set();
14
9
  function externalHost(href) {
15
10
  if (!URL.canParse(href)) return null;
@@ -1,6 +1,5 @@
1
1
  const LANGUAGE_CLASS = /^language-(.+)$/;
2
2
  const TITLE_ATTRIBUTE = /(?:^|\s)(?:title|file|filename)=(?:"([^"]+)"|'([^']+)'|(\S+))/;
3
- /** A bare meta token that names a file: has a dot or slash, no `=` or braces. */
4
3
  const BARE_FILE = /^[\w@~./\\-]*[./\\][\w@~./\\-]+$/;
5
4
  function textOf(node) {
6
5
  if (node.type === "text") return node.value;
@@ -1,27 +1,8 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { code as shiki } from "@streamdown/code";
3
3
  import { useState, useSyncExternalStore } from "react";
4
-
5
- /** A Shiki language id, as the plugin names it. */
6
-
7
- /** Streamdown declares these without exporting them. */
8
-
9
- /**
10
- * Syntax highlighting for markdown code blocks, on the same Shiki plugin
11
- * Streamdown ships (JS regex engine, one lazily-created highlighter per
12
- * language, `github-light` / `github-dark` tokens in a single pass).
13
- *
14
- * The plugin's own cache is keyed by a hash of the code's length and edges and
15
- * starts a fresh job on every uncached call, so this module keeps a small
16
- * cache of its own that dedupes in-flight work and notifies subscribers — the
17
- * shape `useSyncExternalStore` needs, with no effect.
18
- */
19
-
20
4
  const THEMES = shiki.getThemes();
21
- /** Fence language (lowercased) → Shiki id. Aliases (`ts`, `sh`, `py`) are
22
- * keys too; the plugin resolves them to their grammar. */
23
5
  const LANGUAGES = new Map(shiki.getSupportedLanguages().map(id => [id, id]));
24
- /** Enough for every code block on screen plus scroll-back; oldest dropped. */
25
6
  const CACHE_LIMIT = 200;
26
7
  const cache = new Map();
27
8
  const listeners = new Map();
@@ -1,48 +1,10 @@
1
1
  import { parseMarkdownIntoBlocks } from "streamdown";
2
-
3
- /**
4
- * Streamdown already renders a streamed reply block by block: each block is
5
- * memoised on its own text, so appending a token only re-renders the block
6
- * still being written. What it does *not* skip is the split itself — the
7
- * default `parseMarkdownIntoBlocks` runs marked's block lexer over the whole
8
- * reply on every token, so a long answer costs O(length) lexing per token and
9
- * O(length^2) over the turn. That is the work behind the mid-stream freezes on
10
- * a slow laptop: the DOM update is small, the re-parse before it is not.
11
- *
12
- * This is the same split, done incrementally. Blocks already produced from a
13
- * byte-identical prefix are reused verbatim and only the tail is re-lexed, so
14
- * the per-token cost is one prefix comparison plus lexing the paragraph being
15
- * written. Identical output, not an approximation — see the invariant test.
16
- *
17
- * Reuse is only allowed up to a block that ends on a blank line. A blank line
18
- * closes every leaf block in CommonMark, so marked's tokeniser starts the next
19
- * block from a clean state and cannot reinterpret what came before it (a
20
- * setext underline, a lazy list continuation). Without such a boundary we fall
21
- * back to a full parse.
22
- */
23
-
24
- /** How many recent splits to keep. In practice: the streaming reply, plus the
25
- * streamed reasoning prose rendered alongside it, plus headroom. */
26
2
  const CACHE_SIZE = 4;
27
3
  const cache = [];
28
-
29
- /** A block that ends on a blank line closes cleanly. */
30
4
  const ENDS_ON_BLANK_LINE = /\n[ \t]*\n$/;
31
-
32
- /**
33
- * Footnotes make Streamdown emit the whole document as one block, because a
34
- * reference resolves against a definition anywhere in it. Any document that
35
- * could take that path is parsed whole — a prefix split from before the
36
- * footnote appeared would not match what a full parse produces now.
37
- */
38
5
  function mayContainFootnotes(markdown) {
39
6
  return markdown.includes("[^");
40
7
  }
41
-
42
- /**
43
- * Indexes a split so later ticks can slice it by offset without re-scanning.
44
- * The final block is never a cut point: it is the one still being written.
45
- */
46
8
  function describeSplit(source, blocks, exact) {
47
9
  const offsets = [];
48
10
  const endsClean = [];
@@ -75,13 +37,6 @@ function fullSplit(markdown) {
75
37
  const blocks = parseMarkdownIntoBlocks(markdown);
76
38
  return describeSplit(markdown, blocks, blocks.join("") === markdown);
77
39
  }
78
-
79
- /**
80
- * How much of `base` is a byte-identical, cleanly-closed prefix of `markdown`.
81
- * The common case — the reply only grew — is one string comparison. The slow
82
- * walk is for a rewritten tail: Streamdown closes an open code fence before
83
- * splitting, so the string it hands us can change at the end between ticks.
84
- */
85
40
  function reusablePrefix(base, markdown) {
86
41
  if (base.cleanLength === 0) return {
87
42
  count: 0,
@@ -1,14 +1,3 @@
1
- /**
2
- * Copying rendered markdown puts markdown on the clipboard, not the flattened
3
- * text the browser produces (lists lose their bullets, code loses its fence,
4
- * links lose their URL). The selection's DOM is walked back into markdown;
5
- * `text/html` still carries the rich fragment for editors that want it.
6
- *
7
- * Elements can speak for themselves with `data-markdown-copy`: `"skip"` drops
8
- * them (code block headers), any other value replaces their content (alert
9
- * titles emit their `[!NOTE]` marker).
10
- */
11
-
12
1
  const SKIPPED_TAGS = new Set(["BUTTON", "SVG", "STYLE", "SCRIPT", "TEMPLATE", "WBR"]);
13
2
  function isElement(node) {
14
3
  return node.nodeType === Node.ELEMENT_NODE;
@@ -16,8 +5,6 @@ function isElement(node) {
16
5
  function skipped(element) {
17
6
  return SKIPPED_TAGS.has(element.tagName.toUpperCase()) || element.dataset.markdownCopy === "skip" || element.getAttribute("aria-hidden") === "true" || element.classList.contains("sr-only");
18
7
  }
19
-
20
- /** A fence longer than any backtick run inside the code. */
21
8
  function fence(code) {
22
9
  const longest = Math.max(0, ...(code.match(/`+/g) ?? []).map(run => run.length));
23
10
  return "`".repeat(Math.max(3, longest + 1));
@@ -1,31 +1,14 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { useSyncExternalStore } from "react";
3
3
  import { readDocumentAppearance, subscribeDocumentAppearance } from "../hooks/use-document-appearance.js";
4
-
5
- /**
6
- * Mermaid for markdown, loaded on first use. `@streamdown/mermaid` imports
7
- * mermaid statically, so a plain plugin import put mermaid in every chunk
8
- * that renders markdown. Here the plugin is a dynamic import that runs only
9
- * when a finished mermaid fence mounts.
10
- *
11
- * One render serves two readers: `MarkdownMermaid` waits for it to decide
12
- * diagram or plain code block (a diagram that will not parse stays code), and
13
- * Streamdown's diagram view gets the same cached SVG through `mermaidPlugin`.
14
- */
15
-
16
- /** `id` is the element id mermaid baked into `svg` (its styles and markers use it). */
17
-
18
- /** Enough for every diagram on screen plus scroll-back; oldest dropped. */
19
4
  const CACHE_LIMIT = 50;
20
5
  const cache = new Map();
21
6
  const listeners = new Map();
22
7
  let pluginPromise = null;
23
- /** `initialize` is global to mermaid, so set-theme-then-render runs one at a time. */
24
8
  let queue = Promise.resolve();
25
9
  let renderCount = 0;
26
10
  function loadPlugin() {
27
11
  pluginPromise ??= import("@streamdown/mermaid").then(module => module.mermaid, error => {
28
- // A failed chunk load may succeed later; do not cache the failure.
29
12
  pluginPromise = null;
30
13
  throw error;
31
14
  });
@@ -35,7 +18,6 @@ function renderNow(theme, code) {
35
18
  const job = queue.then(async () => {
36
19
  const plugin = await loadPlugin();
37
20
  renderCount += 1;
38
- // The `-svg` suffix keeps one id from being a prefix of another.
39
21
  const id = `markdown-mermaid-${renderCount}-svg`;
40
22
  const {
41
23
  svg
@@ -56,7 +38,6 @@ function cacheKey(theme, code) {
56
38
  function store(key, entry) {
57
39
  cache.delete(key);
58
40
  cache.set(key, entry);
59
- // Drop the oldest entries nobody is watching; mounted diagrams stay.
60
41
  for (const candidate of cache.keys()) {
61
42
  if (cache.size <= CACHE_LIMIT) return;
62
43
  if (!listeners.has(candidate)) cache.delete(candidate);
@@ -73,7 +54,6 @@ function request(theme, code) {
73
54
  };
74
55
  store(key, entry);
75
56
  const settle = status => {
76
- // An entry evicted (or replaced) while pending stays gone.
77
57
  if (cache.get(key)?.promise !== promise) return;
78
58
  store(key, {
79
59
  promise,
@@ -93,8 +73,6 @@ function subscribe(key, notify) {
93
73
  if (set.size === 0) listeners.delete(key);
94
74
  };
95
75
  }
96
-
97
- /** Mermaid's theme for the page's current appearance (neutral is dark-family). */
98
76
  function readTheme() {
99
77
  return readDocumentAppearance() === "dark" ? "dark" : "default";
100
78
  }
@@ -109,9 +87,6 @@ export const mermaidPlugin = {
109
87
  language: "mermaid",
110
88
  getMermaid: () => ({
111
89
  initialize: () => {},
112
- // The cached SVG is shared, so give each copy the caller's unique id:
113
- // two copies with one id (inline + fullscreen, or a repeated diagram)
114
- // would share `#id` styles and `url(#id_marker)` references.
115
90
  render: (id, code) => request(readTheme(), code).promise.then(result => ({
116
91
  svg: result.svg.replaceAll(result.id, id)
117
92
  }))
@@ -19,8 +19,6 @@ function isElement(node, tagName) {
19
19
  function isBlank(node) {
20
20
  return node.type === "text" && (node.value ?? "").trim() === "";
21
21
  }
22
-
23
- /** Tags `blockquote` as an alert and strips its marker, if it has one. */
24
22
  function convert(blockquote) {
25
23
  const paragraph = blockquote.children?.find(child => !isBlank(child));
26
24
  if (!paragraph || !isElement(paragraph, "p") || !paragraph.children) return;
@@ -32,8 +30,6 @@ function convert(blockquote) {
32
30
  const endsLine = match[2] !== "";
33
31
  const rest = (first.value ?? "").slice(match[0].length);
34
32
  if (!endsLine) {
35
- // Marker ran to the end of the text node: the line ends only if a hard
36
- // break (remark-breaks) or nothing follows it.
37
33
  if (second !== undefined && !isElement(second, "br")) return;
38
34
  paragraph.children.splice(1, second === undefined ? 0 : 1);
39
35
  const next = paragraph.children[1];
@@ -1,10 +1,5 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { useEffect, useRef, useState } from "react";
3
-
4
- /**
5
- * Share of the unshown text revealed on each frame. A burst of 400 characters
6
- * plays out over about half a second; a trickle shows as it arrives.
7
- */
8
3
  const REVEAL_PER_FRAME = 0.08;
9
4
 
10
5
  /**
@@ -9,7 +9,6 @@ export { V_PRO_APP_BENEFITS };
9
9
  import { VisuallyHidden } from "../ui/visually-hidden.js";
10
10
  import { pricingModalClasses, pricingMultiClasses } from "./marketing-classes.js";
11
11
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
12
- /** Upgrade dialog. With `plans`: wide multi-plan layout. Without: the single-plan layout. */
13
12
  function AppIcon(t0) {
14
13
  const $ = _c(6);
15
14
  let app;
@@ -41,7 +40,6 @@ function AppIcon(t0) {
41
40
  return t1;
42
41
  }
43
42
  function sortAppBenefits(groups, currentApp) {
44
- // Stable sort: the current app moves to the front, the rest keep their order.
45
43
  return [...groups].sort((a, b) => Number(b.app === currentApp) - Number(a.app === currentApp));
46
44
  }
47
45
  export function PricingModal(props) {