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