@vvedantb/ui 0.66.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.
- package/app/src/auth/useStableAuth.ts +0 -2
- package/app/src/confirm/ConfirmSkipHint.tsx +0 -2
- package/app/src/confirm/useAltHeld.ts +0 -17
- package/app/src/convex/ConvexClerkProvider.tsx +0 -3
- package/app/src/convex/env.ts +0 -4
- package/app/src/convex/errorMessage.ts +0 -1
- package/app/src/convex/useHeldResult.ts +0 -3
- package/app/src/page-motion/PageMotionProvider.tsx +0 -6
- package/app/src/page-title/createPageTitleContext.tsx +0 -14
- package/app/src/settings/SettingsEmptyState.tsx +0 -4
- package/app/src/settings/SettingsField.tsx +0 -4
- package/app/src/settings/SettingsPage.tsx +0 -12
- package/app/src/settings/SettingsSection.tsx +0 -14
- package/app/src/settings/ThemeModePicker.tsx +0 -6
- package/app/src/theme/createThemeProvider.tsx +0 -33
- package/app/src/time/compactRelativeTime.ts +0 -16
- package/app/src/update/staleDeployReload.ts +0 -40
- package/app/src/update/updateWatcher.ts +0 -8
- package/dist/app/src/auth/useStableAuth.js +0 -1
- package/dist/app/src/confirm/ConfirmSkipHint.js +0 -3
- package/dist/app/src/confirm/useAltHeld.js +0 -17
- package/dist/app/src/convex/env.js +0 -3
- package/dist/app/src/convex/errorMessage.js +0 -2
- package/dist/app/src/settings/ThemeModePicker.js +0 -1
- package/dist/app/src/theme/createThemeProvider.js +1 -11
- package/dist/app/src/time/compactRelativeTime.js +0 -8
- package/dist/app/src/update/staleDeployReload.js +3 -38
- package/dist/app/src/update/updateWatcher.js +1 -3
- package/dist/shell/src/AppShell.js +0 -14
- package/dist/shell/src/PageHeaderBar.js +0 -3
- package/dist/shell/src/SessionsHoverCard.js +0 -9
- package/dist/shell/src/SidePanelTabs.js +0 -36
- package/dist/shell/src/Sidebar.js +0 -1
- package/dist/shell/src/SidebarAccountMenu.js +1 -1
- package/dist/shell/src/SidebarChrome.js +0 -19
- package/dist/shell/src/SidebarIconTooltip.js +0 -1
- package/dist/shell/src/SidebarRail.js +0 -12
- package/dist/shell/src/SidebarResize.js +1 -4
- package/dist/shell/src/app-shell-classes.js +0 -10
- package/dist/shell/src/index.js +0 -1
- package/dist/shell/src/shell-panel-motion.js +0 -12
- package/dist/src/ai-elements/activity-shared.js +0 -6
- package/dist/src/ai-elements/activity-step-label.js +0 -6
- package/dist/src/ai-elements/activity-step-types.js +0 -4
- package/dist/src/ai-elements/activity-tasks-utils.js +0 -17
- package/dist/src/ai-elements/activity-tasks.js +0 -55
- package/dist/src/ai-elements/artifact.js +0 -4
- package/dist/src/ai-elements/attachments.js +0 -41
- package/dist/src/ai-elements/code-block.js +0 -18
- package/dist/src/ai-elements/collapsible-user-message-body.js +0 -2
- package/dist/src/ai-elements/context.js +0 -13
- package/dist/src/ai-elements/conversation.js +0 -4
- package/dist/src/ai-elements/jump-rail.js +0 -5
- package/dist/src/ai-elements/message.js +3 -9
- package/dist/src/ai-elements/model-picker-types.js +0 -1
- package/dist/src/ai-elements/model-picker.js +1 -6
- package/dist/src/ai-elements/model-selector.js +0 -4
- package/dist/src/ai-elements/prompt-input-speech.js +0 -13
- package/dist/src/ai-elements/prompt-input.js +0 -1
- package/dist/src/ai-elements/provider-icon.js +0 -4
- package/dist/src/ai-elements/queue.js +2 -16
- package/dist/src/ai-elements/shimmer.js +0 -14
- package/dist/src/ai-elements/speech-input.js +0 -7
- package/dist/src/artifacts/artifact-card.js +1 -1
- package/dist/src/artifacts/artifact-frame.js +0 -2
- package/dist/src/artifacts/artifact-viewer.js +2 -1
- package/dist/src/audio/playChime.js +0 -2
- package/dist/src/audio/playTone.js +1 -4
- package/dist/src/brand/AppWordmark.js +0 -5
- package/dist/src/brand/svg.js +0 -6
- package/dist/src/client.js +0 -43
- package/dist/src/composer/Composer.js +0 -27
- package/dist/src/composer/input-area/InputArea.js +0 -3
- package/dist/src/composer/input-area/InputAreaEditor.js +1 -50
- package/dist/src/composer/input-area/composerPrediction.js +0 -3
- package/dist/src/generative-ui/content.js +0 -2
- package/dist/src/generative-ui/index.js +0 -3
- package/dist/src/generative-ui/layout.js +0 -5
- package/dist/src/hooks/use-count-up-display.js +0 -2
- package/dist/src/hooks/use-idle-callback.js +0 -3
- package/dist/src/hooks/use-persisted-scroll-parent.js +1 -8
- package/dist/src/icons/animated/index.js +0 -4
- package/dist/src/icons/board-icon.js +74 -41
- package/dist/src/icons/bolt-icon.js +30 -20
- package/dist/src/icons/building-icon.js +125 -61
- package/dist/src/icons/files-icon.js +103 -43
- package/dist/src/icons/inbox-icon.js +101 -49
- package/dist/src/icons/index.js +2 -1
- package/dist/src/icons/memory-icon.js +135 -58
- package/dist/src/icons/search-icon.js +143 -46
- package/dist/src/icons/settings-icon.js +113 -53
- package/dist/src/icons/solid-icons.js +665 -0
- package/dist/src/icons/with-active.js +25 -0
- package/dist/src/index.js +0 -40
- package/dist/src/kibo/gantt-features.js +0 -10
- package/dist/src/kibo/gantt-provider.js +0 -34
- package/dist/src/kibo/kanban.js +0 -15
- package/dist/src/kibo/list.js +0 -3
- package/dist/src/kibo/video-player.js +0 -7
- package/dist/src/logos/index.js +0 -4
- package/dist/src/markdown/Markdown.js +0 -15
- package/dist/src/markdown/MarkdownCodeBlock.js +0 -16
- package/dist/src/markdown/MarkdownInlineCode.js +0 -6
- package/dist/src/markdown/MarkdownLink.js +0 -5
- package/dist/src/markdown/codeFence.js +0 -1
- package/dist/src/markdown/codeHighlight.js +0 -19
- package/dist/src/markdown/incrementalBlocks.js +0 -45
- package/dist/src/markdown/markdownClipboard.js +0 -13
- package/dist/src/markdown/mermaid.js +0 -25
- package/dist/src/markdown/rehypeGithubAlerts.js +0 -4
- package/dist/src/markdown/useSmoothText.js +0 -5
- package/dist/src/marketing/PricingModal.js +0 -2
- package/dist/src/marketing/ProductHero.js +0 -2
- package/dist/src/marketing/createLandingKit.js +0 -5
- package/dist/src/marketing/marketing-classes.js +0 -7
- package/dist/src/motion/dock-motion.js +0 -27
- package/dist/src/motion/panel-transition.js +0 -2
- package/dist/src/ui/_field-classes.js +0 -3
- package/dist/src/ui/_menu-classes.js +6 -6
- package/dist/src/ui/_picker-classes.js +0 -9
- package/dist/src/ui/accordion.alt.js +0 -12
- package/dist/src/ui/badge.js +0 -1
- package/dist/src/ui/border-beam.js +0 -2
- package/dist/src/ui/breadcrumb.js +0 -15
- package/dist/src/ui/bulk-action-bar.js +0 -11
- package/dist/src/ui/button.js +0 -20
- package/dist/src/ui/calendar.js +1 -20
- package/dist/src/ui/card.js +0 -3
- package/dist/src/ui/carousel.js +0 -1
- package/dist/src/ui/clear-input.alt.js +0 -9
- package/dist/src/ui/clearInputDissolve.js +0 -4
- package/dist/src/ui/command.js +0 -15
- package/dist/src/ui/confetti-burst.js +0 -3
- package/dist/src/ui/confirm-dialog-parts.js +0 -11
- package/dist/src/ui/confirm-dialog.js +0 -6
- package/dist/src/ui/context-menu.js +40 -34
- package/dist/src/ui/crossfade-icon.js +0 -2
- package/dist/src/ui/date-picker.js +0 -22
- package/dist/src/ui/dialog.js +0 -5
- package/dist/src/ui/dropdown-menu.js +40 -34
- package/dist/src/ui/empty-state.js +0 -7
- package/dist/src/ui/field.js +0 -21
- package/dist/src/ui/image-lightbox.js +0 -5
- package/dist/src/ui/input-group.alt.js +0 -24
- package/dist/src/ui/input-group.js +0 -4
- package/dist/src/ui/kbd.js +0 -3
- package/dist/src/ui/loading-state.js +0 -17
- package/dist/src/ui/marquee-on-hover.js +0 -3
- package/dist/src/ui/media-preview.js +0 -2
- package/dist/src/ui/modalTransition.js +0 -33
- package/dist/src/ui/overlay-a11y.js +0 -1
- package/dist/src/ui/page-title.js +0 -3
- package/dist/src/ui/refresh-spin-icon.js +0 -12
- package/dist/src/ui/search-input.js +0 -1
- package/dist/src/ui/select-field.js +0 -1
- package/dist/src/ui/send-queue-icon.js +0 -3
- package/dist/src/ui/sheet.js +0 -33
- package/dist/src/ui/slider.js +103 -82
- package/dist/src/ui/sonner-icons.js +0 -5
- package/dist/src/ui/sonner.js +0 -60
- package/dist/src/ui/spinner.js +0 -35
- package/dist/src/ui/status-dot.js +0 -2
- package/dist/src/ui/surface.js +0 -14
- package/dist/src/ui/switch.js +213 -36
- package/dist/src/ui/table.js +0 -1
- package/dist/src/ui/tabs-transition.js +0 -1
- package/dist/src/ui/tabs.js +0 -17
- package/dist/src/ui/tabsSliding.js +0 -6
- package/dist/src/ui/time-picker.js +0 -15
- package/dist/src/ui/toggle-search.js +0 -3
- package/dist/src/ui/ui-config.js +0 -16
- package/dist/src/utils/cat-color.js +0 -17
- package/dist/src/utils/cn.js +0 -5
- package/dist/src/utils/gesture.js +0 -8
- package/dist/src/utils/ref.js +0 -1
- package/dist/src/utils/runtimeVisibility.js +1 -22
- package/dist/src/utils/surface-radius.js +0 -11
- package/dist/src/utils/useDragSensors.js +0 -4
- package/dist/tokens/src/tailwind-preset.mjs +0 -3
- package/package.json +3 -3
- package/scripts/build-brand-assets.mjs +0 -8
- package/shell/src/AppShell.tsx +0 -37
- package/shell/src/AppSidebar.tsx +0 -14
- package/shell/src/ButtonTrack.tsx +0 -1
- package/shell/src/PageHeaderBar.tsx +0 -61
- package/shell/src/PageWrapper.tsx +0 -26
- package/shell/src/PillTabs.tsx +0 -1
- package/shell/src/SessionsHoverCard.tsx +0 -40
- package/shell/src/SidePanelTabs.tsx +0 -61
- package/shell/src/Sidebar.tsx +0 -1
- package/shell/src/SidebarAccountMenu.tsx +1 -41
- package/shell/src/SidebarChrome.tsx +0 -32
- package/shell/src/SidebarIconTooltip.tsx +0 -3
- package/shell/src/SidebarPanel.tsx +0 -20
- package/shell/src/SidebarRail.tsx +0 -44
- package/shell/src/SidebarResize.tsx +0 -6
- package/shell/src/SidebarUpgradeCard.tsx +0 -2
- package/shell/src/SignOutDialog.tsx +0 -6
- package/shell/src/app-shell-classes.ts +0 -15
- package/shell/src/index.ts +0 -1
- package/shell/src/shell-panel-motion.ts +0 -11
- package/shell/src/shell-variant.ts +0 -6
- package/src/ai-elements/__snapshots__/queue.test.tsx.snap +2 -2
- package/src/ai-elements/activity-question.tsx +0 -2
- package/src/ai-elements/activity-shared.tsx +0 -11
- package/src/ai-elements/activity-step-detail.tsx +0 -2
- package/src/ai-elements/activity-step-label.ts +0 -5
- package/src/ai-elements/activity-step-types.ts +0 -24
- package/src/ai-elements/activity-tasks-utils.ts +0 -13
- package/src/ai-elements/activity-tasks.tsx +0 -61
- package/src/ai-elements/artifact.tsx +0 -7
- package/src/ai-elements/attachments.tsx +0 -33
- package/src/ai-elements/chat-day-divider.tsx +0 -3
- package/src/ai-elements/chat-jump-rail.tsx +0 -9
- package/src/ai-elements/code-block.tsx +0 -28
- package/src/ai-elements/collapsible-user-message-body.tsx +0 -2
- package/src/ai-elements/context.tsx +0 -10
- package/src/ai-elements/conversation.tsx +0 -16
- package/src/ai-elements/jump-rail.tsx +0 -31
- package/src/ai-elements/message.tsx +3 -34
- package/src/ai-elements/model-picker-content.tsx +0 -17
- package/src/ai-elements/model-picker-types.ts +0 -5
- package/src/ai-elements/model-picker.tsx +0 -36
- package/src/ai-elements/model-selector.tsx +0 -5
- package/src/ai-elements/prompt-input-speech.tsx +0 -11
- package/src/ai-elements/prompt-input.tsx +0 -26
- package/src/ai-elements/provider-icon.tsx +0 -2
- package/src/ai-elements/queue.tsx +2 -20
- package/src/ai-elements/reasoning.tsx +0 -4
- package/src/ai-elements/shimmer.tsx +0 -16
- package/src/ai-elements/simple-model-ladder.tsx +0 -1
- package/src/ai-elements/speech-input.tsx +0 -6
- package/src/ai-elements/test-results.tsx +0 -5
- package/src/ai-elements/trace.tsx +0 -2
- package/src/ai-elements/web-preview.tsx +0 -7
- package/src/artifacts/artifact-card.tsx +1 -8
- package/src/artifacts/artifact-dialogs.tsx +0 -4
- package/src/artifacts/artifact-frame.tsx +0 -10
- package/src/artifacts/artifact-list-toolbar.tsx +0 -6
- package/src/artifacts/artifact-list.tsx +0 -4
- package/src/artifacts/artifact-type-icon.tsx +0 -1
- package/src/artifacts/artifact-versions-menu.tsx +0 -3
- package/src/artifacts/artifact-viewer.tsx +2 -6
- package/src/artifacts/types.ts +0 -1
- package/src/audio/playChime.ts +0 -1
- package/src/audio/playTone.ts +0 -7
- package/src/brand/AppIcons.tsx +0 -5
- package/src/brand/AppMark.tsx +0 -6
- package/src/brand/AppWordmark.tsx +0 -10
- package/src/brand/familyApps.ts +0 -2
- package/src/brand/svg.ts +0 -9
- package/src/client.ts +0 -34
- package/src/composer/Composer.tsx +0 -70
- package/src/composer/input-area/ComposerSlashMenu.tsx +0 -1
- package/src/composer/input-area/ConnectionStatusMenuItem.tsx +0 -2
- package/src/composer/input-area/FadePresence.tsx +0 -4
- package/src/composer/input-area/InputActions.tsx +0 -5
- package/src/composer/input-area/InputArea.tsx +1 -28
- package/src/composer/input-area/InputAreaEditor.tsx +0 -39
- package/src/composer/input-area/InputBanners.tsx +0 -1
- package/src/composer/input-area/PromoBanner.tsx +0 -1
- package/src/composer/input-area/composerPrediction.ts +0 -2
- package/src/composer/input-area/useComposerSlashMenu.ts +0 -1
- package/src/composer/input-area/useInputAreaPrediction.ts +0 -1
- package/src/composer/prediction.ts +0 -6
- package/src/composer/useComposerPrediction.ts +0 -2
- package/src/generative-ui/GenerativeUiPanel.tsx +0 -11
- package/src/generative-ui/content.tsx +0 -2
- package/src/generative-ui/index.ts +0 -3
- package/src/generative-ui/layout.tsx +0 -5
- package/src/hooks/use-count-up-display.ts +0 -1
- package/src/hooks/use-idle-callback.ts +0 -5
- package/src/hooks/use-persisted-scroll-parent.ts +0 -4
- package/src/hooks/use-single-flight.ts +0 -5
- package/src/icons/animated/animated-bell-icon.tsx +0 -6
- package/src/icons/animated/animated-counter.tsx +0 -5
- package/src/icons/animated/animated-key-icon.tsx +0 -4
- package/src/icons/animated/animated-notification-icon.tsx +0 -14
- package/src/icons/animated/animated-progress.tsx +0 -10
- package/src/icons/animated/animated-status-dot.tsx +0 -4
- package/src/icons/animated/index.ts +0 -4
- package/src/icons/animated/morphing-menu-icon.tsx +0 -5
- package/src/icons/animated/morphing-mic-icon.tsx +0 -2
- package/src/icons/animated/pulsing-rings.tsx +0 -4
- package/src/icons/automation-icon.tsx +0 -1
- package/src/icons/board-icon.tsx +13 -10
- package/src/icons/bolt-icon.tsx +5 -4
- package/src/icons/building-icon.tsx +11 -9
- package/src/icons/draft-icon.tsx +0 -1
- package/src/icons/files-icon.tsx +9 -5
- package/src/icons/inbox-arrow-icon.tsx +0 -1
- package/src/icons/inbox-icon.tsx +9 -5
- package/src/icons/index.ts +12 -1
- package/src/icons/memory-icon.tsx +9 -11
- package/src/icons/nav-icon-base.tsx +0 -10
- package/src/icons/search-icon.tsx +7 -6
- package/src/icons/settings-icon.tsx +11 -13
- package/src/icons/sidebar-toggle-icon.tsx +0 -1
- package/src/icons/solid-icons.tsx +138 -0
- package/src/icons/with-active.tsx +14 -0
- package/src/index.ts +0 -30
- package/src/kibo/gantt-features.tsx +0 -16
- package/src/kibo/gantt-header.tsx +0 -4
- package/src/kibo/gantt-provider.tsx +0 -36
- package/src/kibo/gantt-sidebar.tsx +0 -7
- package/src/kibo/gantt-timeline.tsx +0 -4
- package/src/kibo/kanban.tsx +0 -49
- package/src/kibo/list.tsx +0 -8
- package/src/kibo/theme-switcher.tsx +0 -5
- package/src/kibo/video-player.tsx +0 -9
- package/src/logos/index.ts +0 -3
- package/src/logos/logo-svg.tsx +0 -5
- package/src/markdown/Markdown.tsx +0 -20
- package/src/markdown/MarkdownCodeBlock.tsx +0 -14
- package/src/markdown/MarkdownInlineCode.tsx +0 -6
- package/src/markdown/MarkdownLink.tsx +0 -4
- package/src/markdown/codeFence.ts +0 -3
- package/src/markdown/codeHighlight.ts +0 -16
- package/src/markdown/incrementalBlocks.ts +0 -49
- package/src/markdown/markdownClipboard.ts +0 -12
- package/src/markdown/mermaid.ts +0 -22
- package/src/markdown/rehypeGithubAlerts.ts +0 -3
- package/src/markdown/useSmoothText.ts +0 -5
- package/src/marketing/FloatingBar.tsx +0 -3
- package/src/marketing/PricingModal.tsx +0 -45
- package/src/marketing/ProductHero.tsx +0 -23
- package/src/marketing/ProductHeroOrbit.tsx +0 -5
- package/src/marketing/SiteFooter.tsx +0 -23
- package/src/marketing/SiteHeader.tsx +0 -14
- package/src/marketing/VProPricingModal.tsx +0 -5
- package/src/marketing/createLandingKit.tsx +0 -12
- package/src/marketing/landing.tsx +0 -12
- package/src/marketing/marketing-classes.ts +0 -7
- package/src/motion/dock-motion.ts +0 -25
- package/src/motion/list-enter.tsx +0 -4
- package/src/motion/panel-transition.tsx +0 -5
- package/src/ui/_field-classes.ts +0 -2
- package/src/ui/_menu-classes.ts +7 -4
- package/src/ui/_menu-parts.tsx +0 -5
- package/src/ui/_picker-classes.ts +0 -6
- package/src/ui/accordion.alt.tsx +0 -8
- package/src/ui/accordion.tsx +0 -4
- package/src/ui/badge.tsx +0 -1
- package/src/ui/border-beam.tsx +0 -11
- package/src/ui/breadcrumb.tsx +0 -13
- package/src/ui/bulk-action-bar.tsx +0 -24
- package/src/ui/button.tsx +0 -27
- package/src/ui/calendar.tsx +0 -18
- package/src/ui/card.tsx +0 -3
- package/src/ui/carousel.tsx +0 -4
- package/src/ui/checkbox.tsx +0 -1
- package/src/ui/clear-input.alt.tsx +0 -8
- package/src/ui/clear-input.tsx +0 -16
- package/src/ui/clearInputDissolve.ts +0 -4
- package/src/ui/command.tsx +0 -22
- package/src/ui/confetti-burst.tsx +0 -4
- package/src/ui/confirm-dialog-parts.tsx +0 -45
- package/src/ui/confirm-dialog.tsx +0 -26
- package/src/ui/context-menu.tsx +4 -11
- package/src/ui/count-pop.tsx +0 -2
- package/src/ui/crossfade-icon.tsx +0 -3
- package/src/ui/date-picker.tsx +0 -40
- package/src/ui/dialog.tsx +0 -18
- package/src/ui/dropdown-menu.tsx +4 -12
- package/src/ui/empty-state.tsx +0 -15
- package/src/ui/error-boundary.tsx +0 -7
- package/src/ui/field.tsx +0 -18
- package/src/ui/hover-card.tsx +0 -6
- package/src/ui/image-lightbox.tsx +0 -7
- package/src/ui/input-group.alt.tsx +0 -16
- package/src/ui/input-group.tsx +0 -3
- package/src/ui/kbd.tsx +0 -3
- package/src/ui/label.tsx +0 -1
- package/src/ui/labeled-slider-row.tsx +0 -2
- package/src/ui/list-row.tsx +0 -46
- package/src/ui/loading-state.tsx +0 -23
- package/src/ui/marquee-on-hover.tsx +1 -6
- package/src/ui/media-preview.tsx +0 -5
- package/src/ui/modalTransition.ts +0 -25
- package/src/ui/overlay-a11y.ts +0 -1
- package/src/ui/page-title.tsx +0 -4
- package/src/ui/popover.tsx +0 -8
- package/src/ui/progress.tsx +0 -1
- package/src/ui/refresh-spin-icon.tsx +0 -11
- package/src/ui/relative-date-time.tsx +0 -3
- package/src/ui/rolling-number.tsx +0 -2
- package/src/ui/search-input.tsx +0 -9
- package/src/ui/select-field.tsx +0 -5
- package/src/ui/select.tsx +0 -8
- package/src/ui/send-queue-icon.tsx +0 -3
- package/src/ui/separator.tsx +0 -1
- package/src/ui/sheet.tsx +0 -42
- package/src/ui/slide-over-panel.tsx +0 -2
- package/src/ui/slider.tsx +21 -9
- package/src/ui/sonner-icons.tsx +0 -4
- package/src/ui/sonner.tsx +0 -78
- package/src/ui/spinner.tsx +0 -50
- package/src/ui/status-dot.tsx +0 -10
- package/src/ui/surface.tsx +0 -13
- package/src/ui/switch.tsx +72 -3
- package/src/ui/table.tsx +0 -3
- package/src/ui/tabs-transition.tsx +0 -12
- package/src/ui/tabs.tsx +0 -17
- package/src/ui/tabsSliding.ts +0 -5
- package/src/ui/time-picker.tsx +0 -17
- package/src/ui/toggle-search.tsx +0 -6
- package/src/ui/toolbar-search-input.tsx +0 -3
- package/src/ui/tooltip.tsx +0 -5
- package/src/ui/ui-config.tsx +0 -19
- package/src/utils/cat-color.ts +0 -20
- package/src/utils/cn.ts +0 -4
- package/src/utils/gesture.ts +0 -8
- package/src/utils/ref.ts +0 -1
- package/src/utils/runtimeVisibility.ts +0 -19
- package/src/utils/surface-radius.ts +0 -11
- package/src/utils/useDragSensors.ts +0 -2
- package/tokens/examples/compat-shadcn-rgb/vite.config.ts +0 -2
- package/tokens/examples/toaster/Fixture.tsx +0 -4
- package/tokens/examples/toaster/UpdateToastFixture.tsx +0 -4
- package/tokens/examples/toaster/vite.config.ts +0 -2
- package/tokens/examples/tokens-moved/Fixture.tsx +0 -4
- package/tokens/examples/tokens-moved/vite.config.ts +0 -2
- package/tokens/src/tailwind-preset.mjs +0 -3
|
@@ -5,10 +5,6 @@ import { useCn, useUiConfig } from "../ui/ui-config.js";
|
|
|
5
5
|
import { useEffect, useState, useSyncExternalStore } from "react";
|
|
6
6
|
import { quantizedSnapshot, subscribeQuantized } from "../utils/sharedClock.js";
|
|
7
7
|
|
|
8
|
-
/** Props the activity timeline passes to its Markdown renderer. */
|
|
9
|
-
// A type alias, not an interface: streamdown 2.7.1 gave its props a
|
|
10
|
-
// `data-*` index signature, and only an alias is assignable to that.
|
|
11
|
-
|
|
12
8
|
/**
|
|
13
9
|
* `UiConfig.ActivityTasks`: defaults for the agent activity timeline
|
|
14
10
|
* (`ActivityTasks`, `ActivityThinkingIcon`).
|
|
@@ -67,8 +63,6 @@ export function ActivityThinkingIcon(t0) {
|
|
|
67
63
|
}
|
|
68
64
|
return t4;
|
|
69
65
|
}
|
|
70
|
-
|
|
71
|
-
/** The `status` step glyph: the `circle` {@link Spinner}. */
|
|
72
66
|
function ActivityStatusSpinner() {
|
|
73
67
|
const $ = _c(1);
|
|
74
68
|
let t0;
|
|
@@ -636,11 +636,6 @@ function joinCommandText(verb, target) {
|
|
|
636
636
|
}
|
|
637
637
|
return `${verb} ${target}`;
|
|
638
638
|
}
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Past-tense phrase used when a step type is folded into a group summary line.
|
|
642
|
-
* Deliberately plural/vague — the exact call is one click away in the fold.
|
|
643
|
-
*/
|
|
644
639
|
const GROUP_PHRASES = {
|
|
645
640
|
read: "read files",
|
|
646
641
|
edit: "edited files",
|
|
@@ -667,7 +662,6 @@ function groupPhraseForStep(step) {
|
|
|
667
662
|
if (step.type !== "tool") {
|
|
668
663
|
return GROUP_PHRASES[step.type];
|
|
669
664
|
}
|
|
670
|
-
// Codex reports edits as a `file_change` tool call, not an edit step.
|
|
671
665
|
if (isFileChangeTool(step)) {
|
|
672
666
|
return GROUP_PHRASES.edit;
|
|
673
667
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// Pure step types for the activity timeline: no React, so `@vvedantb/native-ui`
|
|
2
|
-
// keeps a byte-identical copy (`src/ai/activity-step-types.ts`), with the step
|
|
3
|
-
// labels and grouping that read them.
|
|
4
|
-
|
|
5
1
|
/** One item in a todo checklist step (type "todos"). */
|
|
6
2
|
|
|
7
3
|
/** One choice offered by an AskUserQuestion prompt. */
|
|
@@ -3,17 +3,8 @@
|
|
|
3
3
|
* inside that agent (keyed by parentToolUseId → toolUseId).
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Status-filler thinking labels emitted by older callback versions (and by
|
|
8
|
-
* prod until the current callback deploys). The response/reasoning text is
|
|
9
|
-
* shown directly, so these narration rows are pure noise — hide them.
|
|
10
|
-
*/
|
|
11
6
|
const LEGACY_NOISE_LABELS = new Set(["Generating response...", "Generated response", "Streaming response...", "Streamed response", "Finalizing response..."]);
|
|
12
|
-
|
|
13
|
-
/** Thinking labels that mark model reasoning rather than status narration. */
|
|
14
7
|
const REASONING_LABELS = new Set(["Thinking...", "Thought"]);
|
|
15
|
-
|
|
16
|
-
/** Placeholder details older callbacks attached to reasoning-label steps. */
|
|
17
8
|
const FILLER_DETAILS = new Set(["Claude is reasoning...", "Codex is reasoning...", "Opencode is reasoning...", "Cursor is reasoning...", "Receiving reply..."]);
|
|
18
9
|
|
|
19
10
|
/**
|
|
@@ -35,8 +26,6 @@ export function normalizeStep(step) {
|
|
|
35
26
|
}
|
|
36
27
|
return step;
|
|
37
28
|
}
|
|
38
|
-
|
|
39
|
-
/** Builds one row per normalized step (no consecutive-type merging). */
|
|
40
29
|
function stepsToRows(steps) {
|
|
41
30
|
const rows = [];
|
|
42
31
|
for (const raw of steps) {
|
|
@@ -48,11 +37,6 @@ function stepsToRows(steps) {
|
|
|
48
37
|
}
|
|
49
38
|
return rows;
|
|
50
39
|
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Row types that read as narration rather than work: they already summarise
|
|
54
|
-
* themselves, so folding them into an action group would hide their only text.
|
|
55
|
-
*/
|
|
56
40
|
const STANDALONE_TYPES = new Set(["todos", "notice", "status", "question", "steer"]);
|
|
57
41
|
|
|
58
42
|
/** One block in the activity timeline: prose, a lone row, or a folded run. */
|
|
@@ -73,7 +57,6 @@ export function groupActivityRows(rows) {
|
|
|
73
57
|
});
|
|
74
58
|
continue;
|
|
75
59
|
}
|
|
76
|
-
// Mid-turn reply text: it ends the tool run before it, like reasoning.
|
|
77
60
|
if (row.step.type === "response") {
|
|
78
61
|
segments.push({
|
|
79
62
|
kind: "response",
|
|
@@ -18,8 +18,6 @@ import { FileChip } from "./file-chip.js";
|
|
|
18
18
|
import { AgentTrace, AgentTraceCollapsible, AgentTraceCollapsibleContent, AgentTraceCollapsibleTrigger, AgentTraceDescription, AgentTraceIcon, AgentTraceLine, AgentTraceTitle } from "./trace.js";
|
|
19
19
|
import { useStreamingDisclosure } from "./use-streaming-disclosure.js";
|
|
20
20
|
import { RollingNumber } from "../ui/rolling-number.js";
|
|
21
|
-
|
|
22
|
-
/** The app's Markdown renderer (`UiConfig.ActivityTasks.markdown`), or the package `Markdown`. */
|
|
23
21
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
22
|
function useActivityMarkdown() {
|
|
25
23
|
return useUiConfig("ActivityTasks")?.markdown ?? PackageMarkdown;
|
|
@@ -107,20 +105,9 @@ const ActivityStreamingHeader = /*#__PURE__*/memo(function ActivityStreamingHead
|
|
|
107
105
|
}
|
|
108
106
|
return t6;
|
|
109
107
|
});
|
|
110
|
-
|
|
111
|
-
/** Max timeline blocks shown before the overflow toggle appears. */
|
|
112
108
|
const MAX_VISIBLE_ROWS = 8;
|
|
113
|
-
|
|
114
|
-
/** Max nested child rows shown under a subtask before "+N more". */
|
|
115
109
|
const MAX_VISIBLE_CHILDREN = 8;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Both layouts show mid-turn reply text in the timeline, in the order it was
|
|
119
|
-
* written, so a live turn never stacks its first words below newer steps.
|
|
120
|
-
*/
|
|
121
110
|
const HIDDEN_TYPES = new Set(["thinking"]);
|
|
122
|
-
|
|
123
|
-
/** A subagent's own text belongs to its child thread view, not under its row. */
|
|
124
111
|
const HIDDEN_CHILD_TYPES = new Set(["thinking", "response"]);
|
|
125
112
|
|
|
126
113
|
/**
|
|
@@ -129,7 +116,6 @@ const HIDDEN_CHILD_TYPES = new Set(["thinking", "response"]);
|
|
|
129
116
|
* `inline` (Claude-style): every step and the text between them stay open.
|
|
130
117
|
*/
|
|
131
118
|
|
|
132
|
-
/** Nearest ancestor that actually scrolls — used to keep the overflow toggle pinned. */
|
|
133
119
|
function findScrollParent(el) {
|
|
134
120
|
let current = el.parentElement;
|
|
135
121
|
while (current) {
|
|
@@ -143,12 +129,6 @@ function findScrollParent(el) {
|
|
|
143
129
|
}
|
|
144
130
|
return null;
|
|
145
131
|
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Expand/collapse while keeping `anchor` visually fixed (t3code work-group
|
|
149
|
-
* toggle pattern). Content inserted above the control would otherwise shove it
|
|
150
|
-
* down the viewport.
|
|
151
|
-
*/
|
|
152
132
|
function toggleWithScrollCompensation(anchor, toggle) {
|
|
153
133
|
const scrollParent = findScrollParent(anchor);
|
|
154
134
|
const bottomBefore = anchor.getBoundingClientRect().bottom;
|
|
@@ -159,11 +139,6 @@ function toggleWithScrollCompensation(anchor, toggle) {
|
|
|
159
139
|
}
|
|
160
140
|
scrollParent.scrollTop += delta;
|
|
161
141
|
}
|
|
162
|
-
/**
|
|
163
|
-
* Asks the owner of the payload for the untrimmed steps. Passed by context
|
|
164
|
-
* rather than props because all three collapsibles that can reveal a stripped
|
|
165
|
-
* row sit at different depths, and none of them otherwise needs the callback.
|
|
166
|
-
*/
|
|
167
142
|
const RequestFullDetailContext = /*#__PURE__*/createContext(undefined);
|
|
168
143
|
|
|
169
144
|
/**
|
|
@@ -172,8 +147,6 @@ const RequestFullDetailContext = /*#__PURE__*/createContext(undefined);
|
|
|
172
147
|
* offer "View" where it works.
|
|
173
148
|
*/
|
|
174
149
|
export const OpenSubagentContext = /*#__PURE__*/createContext(undefined);
|
|
175
|
-
|
|
176
|
-
/** "View" link on a subtask row that opens its child thread. */
|
|
177
150
|
function OpenSubagentButton(t0) {
|
|
178
151
|
const $ = _c(6);
|
|
179
152
|
const {
|
|
@@ -220,8 +193,6 @@ function OpenSubagentButton(t0) {
|
|
|
220
193
|
}
|
|
221
194
|
return t3;
|
|
222
195
|
}
|
|
223
|
-
|
|
224
|
-
/** `onOpenChange` handler that asks for the full payload the first time a fold opens. */
|
|
225
196
|
function useRequestFullDetailOnOpen() {
|
|
226
197
|
const $ = _c(2);
|
|
227
198
|
const request = useContext(RequestFullDetailContext);
|
|
@@ -239,7 +210,6 @@ function useRequestFullDetailOnOpen() {
|
|
|
239
210
|
}
|
|
240
211
|
return t0;
|
|
241
212
|
}
|
|
242
|
-
/** Status glyph for one todo row. */
|
|
243
213
|
function TodoStatusIcon(t0) {
|
|
244
214
|
const $ = _c(5);
|
|
245
215
|
const {
|
|
@@ -277,8 +247,6 @@ function TodoStatusIcon(t0) {
|
|
|
277
247
|
}
|
|
278
248
|
return t2;
|
|
279
249
|
}
|
|
280
|
-
|
|
281
|
-
/** Renders a todo checklist, or a plain fallback line for legacy/empty snapshots. */
|
|
282
250
|
function TodoChecklist(t0) {
|
|
283
251
|
const $ = _c(9);
|
|
284
252
|
const {
|
|
@@ -343,8 +311,6 @@ function bashIconForKind(kind) {
|
|
|
343
311
|
if (kind === "git") return IconGitBranch;
|
|
344
312
|
return IconTerminal2;
|
|
345
313
|
}
|
|
346
|
-
|
|
347
|
-
/** Glyph for a step — shell steps swap in a glyph matching what they ran. */
|
|
348
314
|
function iconForStep(step) {
|
|
349
315
|
if (step.type === "bash" && step.detail) {
|
|
350
316
|
return bashIconForKind(resolveCommandVisualKind(step.detail));
|
|
@@ -357,18 +323,11 @@ function traceStatusForStep(step) {
|
|
|
357
323
|
if (step.status === "pending") return "pending";
|
|
358
324
|
return undefined;
|
|
359
325
|
}
|
|
360
|
-
|
|
361
|
-
/** Whole seconds a finished step took; undefined when unknown or under 1s. */
|
|
362
326
|
function stepSeconds(step) {
|
|
363
327
|
if (step.status !== "complete" || !step.durationMs) return undefined;
|
|
364
328
|
const seconds = Math.round(step.durationMs / 1000);
|
|
365
329
|
return seconds >= 1 ? seconds : undefined;
|
|
366
330
|
}
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* One thinking block behind a "Thought 12s" line. Streaming steps open
|
|
370
|
-
* themselves so live thinking is readable as it lands, then auto-close.
|
|
371
|
-
*/
|
|
372
331
|
function ActivityReasoningLine(t0) {
|
|
373
332
|
const $ = _c(19);
|
|
374
333
|
const {
|
|
@@ -468,8 +427,6 @@ function ActivityReasoningLine(t0) {
|
|
|
468
427
|
}
|
|
469
428
|
return t5;
|
|
470
429
|
}
|
|
471
|
-
|
|
472
|
-
/** The to-do snapshot as one line with done/total, folding open to the checklist. */
|
|
473
430
|
function ActivityTodosLine(t0) {
|
|
474
431
|
const $ = _c(25);
|
|
475
432
|
const {
|
|
@@ -583,8 +540,6 @@ function ActivityTodosLine(t0) {
|
|
|
583
540
|
}
|
|
584
541
|
return t11;
|
|
585
542
|
}
|
|
586
|
-
|
|
587
|
-
/** One per-call activity line with Synara-style humanized label. */
|
|
588
543
|
function _temp3(todo) {
|
|
589
544
|
return todo.status === "completed";
|
|
590
545
|
}
|
|
@@ -936,9 +891,6 @@ function ActivityStepRow(t0) {
|
|
|
936
891
|
}
|
|
937
892
|
return t12;
|
|
938
893
|
}
|
|
939
|
-
|
|
940
|
-
/** Model reasoning, shown as ordinary prose rather than another muted row. */
|
|
941
|
-
/** Reply text the agent wrote between tool runs, set like the final reply. */
|
|
942
894
|
function _temp4(child) {
|
|
943
895
|
return !HIDDEN_CHILD_TYPES.has(child.step.type);
|
|
944
896
|
}
|
|
@@ -1009,8 +961,6 @@ function ActivityReasoningBlock(t0) {
|
|
|
1009
961
|
}
|
|
1010
962
|
return t2;
|
|
1011
963
|
}
|
|
1012
|
-
|
|
1013
|
-
/** A run of tool calls, folded behind one muted "what happened" summary line. */
|
|
1014
964
|
function ActivityActionGroup(t0) {
|
|
1015
965
|
const $ = _c(28);
|
|
1016
966
|
const {
|
|
@@ -1202,11 +1152,6 @@ function ActivitySegmentBlock(t0) {
|
|
|
1202
1152
|
}
|
|
1203
1153
|
return t1;
|
|
1204
1154
|
}
|
|
1205
|
-
|
|
1206
|
-
/**
|
|
1207
|
-
* Renders timeline blocks with an overflow cap. Settled turns cap from the front
|
|
1208
|
-
* (first N); streaming turns cap from the end (newest N) so latest stays visible.
|
|
1209
|
-
*/
|
|
1210
1155
|
function ActivityRowList(t0) {
|
|
1211
1156
|
const $ = _c(18);
|
|
1212
1157
|
const {
|
|
@@ -235,17 +235,13 @@ export const ArtifactActions = t0 => {
|
|
|
235
235
|
}
|
|
236
236
|
return t3;
|
|
237
237
|
};
|
|
238
|
-
/** A component (`IconCopy`) rather than a rendered node (`<IconCopy />`). */
|
|
239
238
|
function isIconComponent(icon) {
|
|
240
239
|
if (typeof icon === "function") return true;
|
|
241
|
-
// forwardRef / memo components are objects with `render` / `type`.
|
|
242
240
|
return typeof icon === "object" && icon !== null && ! /*#__PURE__*/isValidElement(icon) && ("render" in icon || "type" in icon);
|
|
243
241
|
}
|
|
244
242
|
const renderIcon = (Icon, className) => /*#__PURE__*/_jsx(Icon, {
|
|
245
243
|
className: className
|
|
246
244
|
});
|
|
247
|
-
|
|
248
|
-
/** Button shared by `ArtifactAction` and `ArtifactClose`. */
|
|
249
245
|
function ArtifactActionButton(t0) {
|
|
250
246
|
const $ = _c(25);
|
|
251
247
|
let children;
|
|
@@ -6,9 +6,6 @@ import { flatElevatedSurfaceHoverClass, flatPanelSubtleClass } from "../ui/surfa
|
|
|
6
6
|
import { useCn, useUiConfig } from "../ui/ui-config.js";
|
|
7
7
|
import { IconFileText, IconMusic, IconPaperclip, IconPhoto, IconVideo, IconWorld, IconX } from "@tabler/icons-react";
|
|
8
8
|
import { createContext, useContext } from "react";
|
|
9
|
-
// ============================================================================
|
|
10
|
-
// Types
|
|
11
|
-
// ============================================================================
|
|
12
9
|
|
|
13
10
|
/**
|
|
14
11
|
* `UiConfig.Attachments`: per-variant classes that replace the variant part
|
|
@@ -24,9 +21,6 @@ const mediaCategoryIcons = {
|
|
|
24
21
|
unknown: IconPaperclip,
|
|
25
22
|
video: IconVideo
|
|
26
23
|
};
|
|
27
|
-
// ============================================================================
|
|
28
|
-
// Utility Functions
|
|
29
|
-
// ============================================================================
|
|
30
24
|
export const getMediaCategory = data => {
|
|
31
25
|
if (data.type === "source-document") {
|
|
32
26
|
return "source";
|
|
@@ -66,15 +60,8 @@ const renderAttachmentImage = (url, filename, isGrid) => isGrid ? /*#__PURE__*/_
|
|
|
66
60
|
src: url,
|
|
67
61
|
width: 20
|
|
68
62
|
});
|
|
69
|
-
// ============================================================================
|
|
70
|
-
// Contexts
|
|
71
|
-
// ============================================================================
|
|
72
|
-
|
|
73
63
|
const AttachmentsContext = /*#__PURE__*/createContext(null);
|
|
74
64
|
const AttachmentContext = /*#__PURE__*/createContext(null);
|
|
75
|
-
// ============================================================================
|
|
76
|
-
// Hooks
|
|
77
|
-
// ============================================================================
|
|
78
65
|
export const useAttachmentsContext = () => {
|
|
79
66
|
return useContext(AttachmentsContext) ?? {
|
|
80
67
|
variant: "grid"
|
|
@@ -87,10 +74,6 @@ export const useAttachmentContext = () => {
|
|
|
87
74
|
}
|
|
88
75
|
return ctx;
|
|
89
76
|
};
|
|
90
|
-
// ============================================================================
|
|
91
|
-
// Attachments - Container
|
|
92
|
-
// ============================================================================
|
|
93
|
-
|
|
94
77
|
export const Attachments = t0 => {
|
|
95
78
|
const $ = _c(19);
|
|
96
79
|
let children;
|
|
@@ -169,10 +152,6 @@ export const Attachments = t0 => {
|
|
|
169
152
|
}
|
|
170
153
|
return t7;
|
|
171
154
|
};
|
|
172
|
-
// ============================================================================
|
|
173
|
-
// Attachment - Item
|
|
174
|
-
// ============================================================================
|
|
175
|
-
|
|
176
155
|
export const Attachment = t0 => {
|
|
177
156
|
const $ = _c(25);
|
|
178
157
|
let children;
|
|
@@ -271,10 +250,6 @@ export const Attachment = t0 => {
|
|
|
271
250
|
}
|
|
272
251
|
return t5;
|
|
273
252
|
};
|
|
274
|
-
// ============================================================================
|
|
275
|
-
// AttachmentPreview - Media preview
|
|
276
|
-
// ============================================================================
|
|
277
|
-
|
|
278
253
|
export const AttachmentPreview = t0 => {
|
|
279
254
|
const $ = _c(23);
|
|
280
255
|
let className;
|
|
@@ -375,10 +350,6 @@ export const AttachmentPreview = t0 => {
|
|
|
375
350
|
}
|
|
376
351
|
return t5;
|
|
377
352
|
};
|
|
378
|
-
// ============================================================================
|
|
379
|
-
// AttachmentInfo - Name and type display
|
|
380
|
-
// ============================================================================
|
|
381
|
-
|
|
382
353
|
export const AttachmentInfo = t0 => {
|
|
383
354
|
const $ = _c(19);
|
|
384
355
|
let className;
|
|
@@ -466,10 +437,6 @@ export const AttachmentInfo = t0 => {
|
|
|
466
437
|
}
|
|
467
438
|
return t6;
|
|
468
439
|
};
|
|
469
|
-
// ============================================================================
|
|
470
|
-
// AttachmentRemove - Remove button
|
|
471
|
-
// ============================================================================
|
|
472
|
-
|
|
473
440
|
export const AttachmentRemove = t0 => {
|
|
474
441
|
const $ = _c(23);
|
|
475
442
|
let children;
|
|
@@ -569,10 +536,6 @@ export const AttachmentRemove = t0 => {
|
|
|
569
536
|
}
|
|
570
537
|
return t6;
|
|
571
538
|
};
|
|
572
|
-
// ============================================================================
|
|
573
|
-
// AttachmentHoverCard - Hover preview
|
|
574
|
-
// ============================================================================
|
|
575
|
-
|
|
576
539
|
export const AttachmentHoverCard = t0 => {
|
|
577
540
|
const $ = _c(8);
|
|
578
541
|
let props;
|
|
@@ -672,10 +635,6 @@ export const AttachmentHoverCardContent = t0 => {
|
|
|
672
635
|
}
|
|
673
636
|
return t3;
|
|
674
637
|
};
|
|
675
|
-
// ============================================================================
|
|
676
|
-
// AttachmentEmpty - Empty state
|
|
677
|
-
// ============================================================================
|
|
678
|
-
|
|
679
638
|
export const AttachmentEmpty = t0 => {
|
|
680
639
|
const $ = _c(11);
|
|
681
640
|
let children;
|
|
@@ -9,7 +9,6 @@ import { createContext, useContext, useEffect, useRef, useState } from "react";
|
|
|
9
9
|
import { bundledLanguages, createHighlighter } from "shiki";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
const isBundledLanguage = lang => lang in bundledLanguages;
|
|
12
|
-
// Shiki uses bitflags for font styles: 1=italic, 2=bold, 4=underline
|
|
13
12
|
// biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
|
|
14
13
|
// eslint-disable-next-line no-bitwise -- shiki bitflag check
|
|
15
14
|
const isItalic = fontStyle => fontStyle && fontStyle & 1;
|
|
@@ -21,8 +20,6 @@ const isUnderline = fontStyle =>
|
|
|
21
20
|
// biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
|
|
22
21
|
// oxlint-disable-next-line eslint(no-bitwise)
|
|
23
22
|
fontStyle && fontStyle & 4;
|
|
24
|
-
// Transform tokens to include pre-computed keys to avoid noArrayIndexKey lint
|
|
25
|
-
|
|
26
23
|
const addKeysToTokens = lines => lines.map((line, lineIdx) => ({
|
|
27
24
|
key: `line-${lineIdx}`,
|
|
28
25
|
tokens: line.map((token, tokenIdx) => ({
|
|
@@ -30,7 +27,6 @@ const addKeysToTokens = lines => lines.map((line, lineIdx) => ({
|
|
|
30
27
|
token
|
|
31
28
|
}))
|
|
32
29
|
}));
|
|
33
|
-
// Token rendering component
|
|
34
30
|
const TokenSpan = t0 => {
|
|
35
31
|
const $ = _c(10);
|
|
36
32
|
const {
|
|
@@ -75,7 +71,6 @@ const TokenSpan = t0 => {
|
|
|
75
71
|
}
|
|
76
72
|
return t6;
|
|
77
73
|
};
|
|
78
|
-
// Line rendering component
|
|
79
74
|
const LineSpan = t0 => {
|
|
80
75
|
const $ = _c(5);
|
|
81
76
|
const {
|
|
@@ -105,7 +100,6 @@ const LineSpan = t0 => {
|
|
|
105
100
|
}
|
|
106
101
|
return t3;
|
|
107
102
|
};
|
|
108
|
-
// Types
|
|
109
103
|
|
|
110
104
|
/**
|
|
111
105
|
* `UiConfig.CodeBlock`: `plain` default, and classes that replace the
|
|
@@ -117,15 +111,11 @@ const LineSpan = t0 => {
|
|
|
117
111
|
*/
|
|
118
112
|
|
|
119
113
|
const containerClasses = "relative w-full overflow-hidden rounded-lg bg-surface-secondary/60 text-foreground";
|
|
120
|
-
// Context
|
|
121
114
|
const CodeBlockContext = /*#__PURE__*/createContext({
|
|
122
115
|
code: ""
|
|
123
116
|
});
|
|
124
|
-
// Highlighter cache (singleton per language)
|
|
125
117
|
const highlighterCache = new Map();
|
|
126
|
-
// Token cache
|
|
127
118
|
const tokensCache = new Map();
|
|
128
|
-
// Subscribers for async token updates
|
|
129
119
|
const subscribers = new Map();
|
|
130
120
|
const getTokensCacheKey = (code, language) => {
|
|
131
121
|
const start = code.slice(0, 100);
|
|
@@ -144,7 +134,6 @@ const getHighlighter = language => {
|
|
|
144
134
|
highlighterCache.set(language, highlighterPromise);
|
|
145
135
|
return highlighterPromise;
|
|
146
136
|
};
|
|
147
|
-
// Create raw tokens for immediate display while highlighting loads
|
|
148
137
|
const createRawTokens = code => ({
|
|
149
138
|
bg: "transparent",
|
|
150
139
|
fg: "inherit",
|
|
@@ -153,23 +142,19 @@ const createRawTokens = code => ({
|
|
|
153
142
|
content: line
|
|
154
143
|
}])
|
|
155
144
|
});
|
|
156
|
-
// Synchronous highlight with callback for async results
|
|
157
145
|
export const highlightCode = (code, language, callback) => {
|
|
158
146
|
if (!isBundledLanguage(language)) return null;
|
|
159
147
|
const tokensCacheKey = getTokensCacheKey(code, language);
|
|
160
|
-
// Return cached result if available
|
|
161
148
|
const cached = tokensCache.get(tokensCacheKey);
|
|
162
149
|
if (cached) {
|
|
163
150
|
return cached;
|
|
164
151
|
}
|
|
165
|
-
// Subscribe callback if provided
|
|
166
152
|
if (callback) {
|
|
167
153
|
if (!subscribers.has(tokensCacheKey)) {
|
|
168
154
|
subscribers.set(tokensCacheKey, new Set());
|
|
169
155
|
}
|
|
170
156
|
subscribers.get(tokensCacheKey)?.add(callback);
|
|
171
157
|
}
|
|
172
|
-
// Start highlighting in background - fire-and-forget async pattern
|
|
173
158
|
getHighlighter(language)
|
|
174
159
|
// oxlint-disable-next-line eslint-plugin-promise(prefer-await-to-then)
|
|
175
160
|
.then(highlighter => {
|
|
@@ -187,9 +172,7 @@ export const highlightCode = (code, language, callback) => {
|
|
|
187
172
|
fg: result.fg ?? "inherit",
|
|
188
173
|
tokens: result.tokens
|
|
189
174
|
};
|
|
190
|
-
// Cache the result
|
|
191
175
|
tokensCache.set(tokensCacheKey, tokenized);
|
|
192
|
-
// Notify all subscribers
|
|
193
176
|
const subs = subscribers.get(tokensCacheKey);
|
|
194
177
|
if (subs) {
|
|
195
178
|
for (const sub of subs) {
|
|
@@ -205,7 +188,6 @@ export const highlightCode = (code, language, callback) => {
|
|
|
205
188
|
});
|
|
206
189
|
return null;
|
|
207
190
|
};
|
|
208
|
-
// Line number styles using CSS counters
|
|
209
191
|
const LINE_NUMBER_CLASSES = cn("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-8", "before:mr-4", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none");
|
|
210
192
|
function CodeBlockBody(t0) {
|
|
211
193
|
const $ = _c(24);
|
|
@@ -5,8 +5,6 @@ import { useState } from "react";
|
|
|
5
5
|
import { Button } from "../ui/button.js";
|
|
6
6
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
|
|
7
7
|
import { cn } from "../utils/cn.js";
|
|
8
|
-
|
|
9
|
-
/** Match t3code MessagesTimeline collapsible user prompts. */
|
|
10
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
9
|
const MAX_COLLAPSED_USER_MESSAGE_LINES = 8;
|
|
12
10
|
const MAX_COLLAPSED_USER_MESSAGE_LENGTH = 600;
|
|
@@ -13,18 +13,6 @@ const ICON_RADIUS = 10;
|
|
|
13
13
|
const ICON_VIEWBOX = 24;
|
|
14
14
|
const ICON_CENTER = 12;
|
|
15
15
|
const ICON_STROKE_WIDTH = 2;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Per-category token counts. Cache reads and writes are priced very differently
|
|
19
|
-
* (reads ~0.1x input, writes ~1.25x input), so they are tracked separately.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Pre-computed costs (USD). Pass these when the authoritative cost is known
|
|
24
|
-
* (e.g. Claude returns `total_cost_usd` directly). Avoids needing a pricing
|
|
25
|
-
* catalog at render time.
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
16
|
const ContextContext = /*#__PURE__*/createContext(null);
|
|
29
17
|
const useContextValue = () => {
|
|
30
18
|
const context = useContext(ContextContext);
|
|
@@ -457,7 +445,6 @@ export const ContextUsageContentBody = t0 => {
|
|
|
457
445
|
};
|
|
458
446
|
const formatUSD = value => new Intl.NumberFormat("en-US", {
|
|
459
447
|
currency: "USD",
|
|
460
|
-
// Claude's per-call cost is often sub-cent; show enough precision to be useful.
|
|
461
448
|
maximumFractionDigits: 4,
|
|
462
449
|
minimumFractionDigits: 2,
|
|
463
450
|
style: "currency"
|
|
@@ -188,10 +188,6 @@ export const ConversationEmptyState = t0 => {
|
|
|
188
188
|
}
|
|
189
189
|
return t5;
|
|
190
190
|
};
|
|
191
|
-
/**
|
|
192
|
-
* `wanted`, or (with a delay or reset key) `wanted` held for `delay` ms, and
|
|
193
|
-
* a function that hides it at once.
|
|
194
|
-
*/
|
|
195
191
|
function useDelayedShow(wanted, delay, resetKey) {
|
|
196
192
|
const $ = _c(16);
|
|
197
193
|
const debounced = delay > 0 || resetKey !== undefined;
|
|
@@ -40,9 +40,6 @@ export function JumpRail({
|
|
|
40
40
|
const merge = useCn();
|
|
41
41
|
const [hoverIndex, setHoverIndex] = useState(null);
|
|
42
42
|
const [inViewIds, setInViewIds] = useState(() => new Set());
|
|
43
|
-
|
|
44
|
-
// Latest props for the effect and handlers, so an inline getter or resolver
|
|
45
|
-
// does not rebuild the observer on every render.
|
|
46
43
|
const latest = useRef({
|
|
47
44
|
scrollRef,
|
|
48
45
|
getScrollElement,
|
|
@@ -95,8 +92,6 @@ export function JumpRail({
|
|
|
95
92
|
onSelect?.(id_1);
|
|
96
93
|
return;
|
|
97
94
|
}
|
|
98
|
-
// Rendering earlier rows grows the content; a reader stuck to the bottom
|
|
99
|
-
// would be pulled back down instead of reaching the item.
|
|
100
95
|
onBeforeScroll?.();
|
|
101
96
|
onReveal?.(id_1);
|
|
102
97
|
onSelect?.(id_1);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { destructiveGhostClass } from "../ui/_menu-classes.js";
|
|
2
3
|
import { Button } from "../ui/button.js";
|
|
3
4
|
import { ButtonGroup, ButtonGroupText } from "../ui/button-group.js";
|
|
4
5
|
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from "../ui/context-menu.js";
|
|
@@ -668,11 +669,6 @@ function EagerMessageAction(t0) {
|
|
|
668
669
|
}
|
|
669
670
|
return button;
|
|
670
671
|
}
|
|
671
|
-
/**
|
|
672
|
-
* The tooltip mounts on first hover or focus, not with the button. Each Radix
|
|
673
|
-
* tooltip is a dozen components plus a re-render once it has measured its
|
|
674
|
-
* anchor; a long chat has hundreds of these buttons.
|
|
675
|
-
*/
|
|
676
672
|
function LazyMessageAction(t0) {
|
|
677
673
|
const $ = _c(42);
|
|
678
674
|
let children;
|
|
@@ -1118,8 +1114,6 @@ export const MessageBranchSelector = t0 => {
|
|
|
1118
1114
|
}
|
|
1119
1115
|
return t3;
|
|
1120
1116
|
};
|
|
1121
|
-
// Prev and next sit in a `ButtonGroup` with `rounded-md` inner corners, so they
|
|
1122
|
-
// default to `shape="rounded"`; a pill would pair a round outer end with them.
|
|
1123
1117
|
export const MessageBranchPrevious = t0 => {
|
|
1124
1118
|
const $ = _c(11);
|
|
1125
1119
|
let children;
|
|
@@ -1334,7 +1328,7 @@ function _temp(action) {
|
|
|
1334
1328
|
return /*#__PURE__*/_jsx(ContextMenuItem, {
|
|
1335
1329
|
disabled: action.disabled,
|
|
1336
1330
|
startContent: action.icon,
|
|
1337
|
-
|
|
1331
|
+
variant: action.destructive ? "destructive" : "default",
|
|
1338
1332
|
onSelect: action.onSelect,
|
|
1339
1333
|
children: action.label
|
|
1340
1334
|
}, action.key);
|
|
@@ -1349,7 +1343,7 @@ function _temp3(action_0) {
|
|
|
1349
1343
|
tooltipSide: "bottom",
|
|
1350
1344
|
tooltipClassName: "max-sm:hidden",
|
|
1351
1345
|
disabled: action_0.disabled,
|
|
1352
|
-
className: action_0.destructive ?
|
|
1346
|
+
className: action_0.destructive ? destructiveGhostClass : undefined,
|
|
1353
1347
|
onClick: action_0.onSelect,
|
|
1354
1348
|
children: action_0.icon
|
|
1355
1349
|
}, action_0.key);
|
|
@@ -17,7 +17,6 @@ export function getProviderLabel(provider) {
|
|
|
17
17
|
|
|
18
18
|
/** t3code-style list/trigger label: "Claude Opus", not bare "Opus". */
|
|
19
19
|
export function formatModelDisplayLabel(provider, label) {
|
|
20
|
-
// Codex models are already named "GPT …"; don't prefix with "Codex".
|
|
21
20
|
if (provider === "codex") {
|
|
22
21
|
return label;
|
|
23
22
|
}
|
|
@@ -21,12 +21,7 @@ export { ModelPickerContent };
|
|
|
21
21
|
* default `var(--color-surface-secondary)`).
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
const TRIGGER_CLASS =
|
|
25
|
-
// Carries `data-slot="select-trigger"` and is styled to read as one, so it
|
|
26
|
-
// has to press like one: `motion-press active:scale-[0.98]`, like the select
|
|
27
|
-
// triggers it sits beside in a composer footer. `motion-press` supersedes
|
|
28
|
-
// `transition-colors`: the two at equal specificity replace each other.
|
|
29
|
-
"motion-press flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium text-muted-foreground hover:bg-surface-tertiary hover:text-foreground active:scale-[0.98] disabled:opacity-50";
|
|
24
|
+
const TRIGGER_CLASS = "motion-press flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium text-muted-foreground hover:bg-surface-tertiary hover:text-foreground active:scale-[0.98] disabled:opacity-50";
|
|
30
25
|
|
|
31
26
|
/**
|
|
32
27
|
* Shared chrome for the picker panel (popover + menu submenu). Keep these in
|
|
@@ -293,10 +293,6 @@ export const ModelSelectorSeparator = props => {
|
|
|
293
293
|
* Now SVG props: the logo renders `ProviderIcon` (see `ModelSelectorLogo`).
|
|
294
294
|
*/
|
|
295
295
|
|
|
296
|
-
/**
|
|
297
|
-
* models.dev provider ids that have a `ProviderIcon` mark. `ProviderIcon`
|
|
298
|
-
* knows four marks: Claude, OpenAI (`codex`), OpenCode and Cursor.
|
|
299
|
-
*/
|
|
300
296
|
const LOGO_PROVIDER = {
|
|
301
297
|
anthropic: "claude",
|
|
302
298
|
"google-vertex-anthropic": "claude",
|
|
@@ -2,17 +2,6 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
3
|
import { IconMicrophone, IconPlayerStop } from "@tabler/icons-react";
|
|
4
4
|
import { PromptInputButton } from "./prompt-input.js";
|
|
5
|
-
|
|
6
|
-
// Web Speech API dictation for the prompt input: `useSpeechRecognition` streams
|
|
7
|
-
// the transcript (prefix + finals + interim) to a callback, and
|
|
8
|
-
// `PromptInputSpeech` is a microphone button that writes it into the form's
|
|
9
|
-
// `textarea[name="message"]`.
|
|
10
|
-
|
|
11
|
-
// Read the constructors through a local type: a package must not augment the
|
|
12
|
-
// global Window. Apps often declare their own `Window.SpeechRecognition` with
|
|
13
|
-
// other event types, so `window` is cast to this shape rather than assigned
|
|
14
|
-
// (an assignment fails to typecheck in those apps; see
|
|
15
|
-
// consumer/window-speech-global.d.ts).
|
|
16
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
6
|
/** The browser's `SpeechRecognition` constructor, or `null` without one. */
|
|
18
7
|
export function getSpeechRecognition() {
|
|
@@ -78,8 +67,6 @@ export function useSpeechRecognition(onUpdate) {
|
|
|
78
67
|
start(prefix_0);
|
|
79
68
|
}
|
|
80
69
|
};
|
|
81
|
-
|
|
82
|
-
// Stop listening on unmount.
|
|
83
70
|
useEffect(() => () => {
|
|
84
71
|
recognitionRef.current?.stop();
|
|
85
72
|
recognitionRef.current = null;
|