@vetta-org/theme-ui 0.1.1 → 0.2.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/package.json +740 -20
- package/src/action-approval/AppearanceActionPickerView.tsx +2 -78
- package/src/action-approval/AppearanceApprovalDrawerView.tsx +2 -9
- package/src/action-approval/BatchTasksApprovalFrameView.tsx +4 -1
- package/src/action-approval/GenericActionApprovalView.tsx +2 -9
- package/src/action-approval/ManageActionApprovalFrameView.tsx +4 -1
- package/src/action-approval/NavigationOpenApprovalView.tsx +2 -9
- package/src/action-approval/SchedulerActionApprovalDialogView.tsx +3 -1
- package/src/action-approval/SchedulerEditApprovalDrawerView.tsx +3 -10
- package/src/action-approval/index.ts +0 -1
- package/src/activity/ActivityPanel.tsx +13 -10
- package/src/activity/ActivityPanelFrame.test.tsx +32 -0
- package/src/activity/ActivityPanelFrame.tsx +3 -2
- package/src/activity/BackgroundTasksTabPanelView.tsx +1 -1
- package/src/activity/BrowserPanelView.tsx +48 -49
- package/src/activity/CodePreview.tsx +15 -1
- package/src/activity/DebugTabPanelView.tsx +1 -1
- package/src/activity/MarkdownPreviewView.test.tsx +53 -0
- package/src/activity/MarkdownPreviewView.tsx +135 -62
- package/src/activity/PluginTabPickerView.tsx +5 -3
- package/src/activity/PortsTabPanelView.tsx +911 -0
- package/src/activity/ToolCallsSubTabView.tsx +1 -1
- package/src/activity/WorkflowTabPanelView.tsx +1 -1
- package/src/activity/index.ts +9 -0
- package/src/app/AppBackground.tsx +1 -1
- package/src/app/AppBootLoadingView.tsx +4 -2
- package/src/app-shell/DefaultWindowControls.tsx +1 -1
- package/src/app-shell/PageHeaderActionGroup.tsx +1 -1
- package/src/app-shell/PageHeaderContent.tsx +36 -7
- package/src/app-shell/PageHeaderFrame.tsx +15 -3
- package/src/app-shell/PageHeaderSidebarTrigger.tsx +1 -1
- package/src/app-shell/PageHeaderTitle.tsx +1 -1
- package/src/app-shell/WindowControlButton.tsx +1 -1
- package/src/app-shell/header-crowding.test.ts +62 -0
- package/src/app-shell/header-crowding.tsx +137 -0
- package/src/appearance/BackgroundImageFrame.tsx +1 -1
- package/src/appearance/CenterSliceImageFrame.tsx +1 -1
- package/src/appearance/CornerImageFrame.tsx +1 -1
- package/src/appearance/HorizontalSliceImageFrame.tsx +1 -1
- package/src/appearance/NineSliceImageFrame.tsx +1 -1
- package/src/appearance/ThemeSurface.tsx +1 -1
- package/src/batch-tasks/BatchProjectFoldersFieldView.tsx +2 -1
- package/src/batch-tasks/BatchTaskProjectActionsView.test.tsx +97 -0
- package/src/batch-tasks/BatchTaskProjectActionsView.tsx +45 -35
- package/src/batch-tasks/batchTaskUi.tsx +0 -29
- package/src/bottom-panel/BottomPanelView.test.tsx +43 -0
- package/src/bottom-panel/BottomPanelView.tsx +222 -0
- package/src/bottom-panel/index.ts +26 -0
- package/src/chat/AgentAvatarView.tsx +1 -1
- package/src/chat/AnnotationViews.tsx +107 -0
- package/src/chat/AskUserQuestionView.tsx +18 -11
- package/src/chat/AssistantMessageView.tsx +48 -13
- package/src/chat/AtPanelView.test.tsx +61 -0
- package/src/chat/AtPanelView.tsx +63 -38
- package/src/chat/BashTerminalCard.tsx +1 -2
- package/src/chat/ChatHeaderActionsView.tsx +74 -18
- package/src/chat/CompactionStepView.test.tsx +34 -0
- package/src/chat/CompactionStepView.tsx +85 -0
- package/src/chat/ContextRingView.test.tsx +81 -0
- package/src/chat/ContextRingView.tsx +78 -62
- package/src/chat/ExecutionModeSelectorView.tsx +20 -5
- package/src/chat/HeaderActionBarView.tsx +806 -0
- package/src/chat/HeaderActionOverflowMenu.tsx +128 -0
- package/src/chat/InlineModelPicker.test.tsx +81 -0
- package/src/chat/InlineModelPicker.tsx +201 -0
- package/src/chat/InlineTokenChip.tsx +2 -68
- package/src/chat/InputBarBackground.tsx +1 -1
- package/src/chat/InputBarPlaceholder.tsx +26 -3
- package/src/chat/LiveThinkingView.tsx +51 -37
- package/src/chat/MessageBoundaryViews.tsx +21 -0
- package/src/chat/MessageFeedContext.tsx +13 -5
- package/src/chat/MessageFeedLayoutView.tsx +29 -3
- package/src/chat/MessageFeedView.test.tsx +81 -0
- package/src/chat/MessageFeedView.tsx +72 -152
- package/src/chat/MessageInputView.tsx +6 -2
- package/src/chat/MessageLayoutView.tsx +1 -1
- package/src/chat/MessageSelectionContextMenuView.tsx +4 -1
- package/src/chat/MessageTimelineView.tsx +1 -1
- package/src/chat/MessageView.tsx +1 -1
- package/src/chat/MessageVisualView.tsx +1 -1
- package/src/chat/ModelConfiguration.tsx +283 -0
- package/src/chat/ModelSelectorTrigger.tsx +63 -0
- package/src/chat/ModelSelectorView.tsx +1037 -223
- package/src/chat/NewSession.ts +1 -37
- package/src/chat/NewSessionPicker.tsx +3 -2
- package/src/chat/ProjectSelectorView.tsx +3 -2
- package/src/chat/ReasoningStepSlider.tsx +61 -0
- package/src/chat/RemoteSessionBadgeView.tsx +24 -0
- package/src/chat/SkillPromptAreaView.tsx +5 -19
- package/src/chat/TeamMemberReplyCardView.test.tsx +33 -0
- package/src/chat/TeamMemberReplyCardView.tsx +133 -0
- package/src/chat/TextBlockView.tsx +7 -770
- package/src/chat/TodoProgress.tsx +25 -53
- package/src/chat/TodoStatusBarView.tsx +14 -5
- package/src/chat/UserMessageView.tsx +113 -33
- package/src/chat/header-action-narrow.test.ts +21 -0
- package/src/chat/header-action-narrow.ts +38 -0
- package/src/chat/index.ts +33 -27
- package/src/chat/markdown-link.ts +7 -279
- package/src/chat/message-feed-fade.css +80 -0
- package/src/chat/message-feed-fade.test.tsx +75 -0
- package/src/chat/send-button.css +4 -22
- package/src/chat/streaming-reveal.test.ts +218 -0
- package/src/chat/streaming-reveal.ts +13 -0
- package/src/file-explorer/ConfirmDeleteDialogView.tsx +2 -1
- package/src/file-explorer/FileContextMenuView.tsx +44 -11
- package/src/file-explorer/FileExplorerSettingsView.tsx +97 -0
- package/src/file-explorer/FileTreeCreateRow.tsx +1 -1
- package/src/file-explorer/FileTreeNodeView.tsx +59 -18
- package/src/file-explorer/FileTreeView.tsx +236 -129
- package/src/file-explorer/file-tree-dom.ts +23 -0
- package/src/file-explorer/file-tree-rows.test.ts +74 -0
- package/src/file-explorer/file-tree-rows.ts +168 -0
- package/src/file-explorer/index.ts +17 -0
- package/src/file-explorer/types.ts +3 -0
- package/src/file-explorer/useFileTreeMarqueeSelection.ts +24 -16
- package/src/file-preview/FilePreviewDialogView.tsx +2 -2
- package/src/file-preview/FilePreviewView.tsx +12 -2
- package/src/file-preview/ReadonlyCodeView.tsx +46 -0
- package/src/file-preview/TextFileEditorView.tsx +2 -1
- package/src/file-preview/syntax-tokens.css +1 -1
- package/src/image-assets.d.ts +4 -0
- package/src/index.ts +1 -0
- package/src/knowledge/KnowledgeHowItWorksDialogView.tsx +1 -1
- package/src/layout/AppFrame.tsx +3 -2
- package/src/layout/MainContentFrame.tsx +7 -2
- package/src/layout/ResizeHandle.tsx +68 -17
- package/src/layout/SidebarDock.tsx +75 -19
- package/src/layout/SidebarOverlay.tsx +1 -1
- package/src/layout/index.ts +1 -1
- package/src/layout/resize-handle-axis.test.ts +51 -0
- package/src/live-indicators.test.ts +43 -0
- package/src/markdown/CodeBlock.tsx +123 -0
- package/src/markdown/FileLinkBadge.tsx +77 -0
- package/src/markdown/InlineTokenChip.tsx +68 -0
- package/src/markdown/MarkdownContent.tsx +418 -0
- package/src/markdown/MarkdownImage.tsx +41 -0
- package/src/markdown/MathFormula.tsx +46 -0
- package/src/markdown/MermaidBlock.tsx +82 -0
- package/src/markdown/RichCodeBlock.tsx +127 -0
- package/src/markdown/SvgPreview.tsx +45 -0
- package/src/markdown/WebsiteIcon.tsx +94 -0
- package/src/markdown/builtin-renderers.tsx +43 -0
- package/src/markdown/definition.tsx +49 -0
- package/src/markdown/host.tsx +18 -0
- package/src/markdown/image-actions.ts +29 -0
- package/src/markdown/index.ts +12 -0
- package/src/markdown/inline-tokens.ts +187 -0
- package/src/markdown/markdown-link.ts +279 -0
- package/src/markdown/math-client.ts +116 -0
- package/src/markdown/math-render.ts +23 -0
- package/src/markdown/math-syntax.ts +80 -0
- package/src/markdown/math.worker.ts +16 -0
- package/src/markdown/nodes.ts +15 -0
- package/src/markdown/preview-policy.test.ts +31 -0
- package/src/markdown/preview-policy.ts +76 -0
- package/src/markdown/progressive-chunks.test.ts +43 -0
- package/src/markdown/progressive-chunks.ts +58 -0
- package/src/markdown/rich-labels.ts +55 -0
- package/src/markdown/rich-syntax.ts +93 -0
- package/src/markdown/stable-blocks.test.ts +90 -0
- package/src/markdown/stable-blocks.ts +124 -0
- package/src/markdown/streaming-reveal.ts +297 -0
- package/src/markdown/streaming.test.ts +57 -0
- package/src/markdown/streaming.ts +211 -0
- package/src/markdown/use-render-snapshot.ts +24 -0
- package/src/markdown/use-rich-visibility.ts +24 -0
- package/src/overlays/CommandMenuRow.tsx +77 -17
- package/src/overlays/CommandMenuView.tsx +163 -118
- package/src/overlays/ConfirmDialogView.tsx +25 -20
- package/src/overlays/DiagnosticsExportDialogView.tsx +236 -0
- package/src/overlays/MagpieHandoverDialogView.tsx +217 -0
- package/src/overlays/ReleaseNoteMarkdown.test.tsx +24 -0
- package/src/overlays/ReleaseNoteMarkdown.tsx +55 -0
- package/src/overlays/SplashOptionRow.tsx +46 -0
- package/src/overlays/SplashPanel.tsx +85 -0
- package/src/overlays/SplashParts.tsx +217 -0
- package/src/overlays/UpdateCheckerView.tsx +34 -18
- package/src/overlays/UpdateRestartDialogView.tsx +203 -53
- package/src/overlays/assets/diagnostics-banner.webp +0 -0
- package/src/overlays/command-menu-types.ts +15 -1
- package/src/overlays/command-menu.css +1 -20
- package/src/overlays/index.ts +26 -1
- package/src/plugin-ui/index.ts +10 -0
- package/src/project/ConversationTagDotsView.tsx +1 -1
- package/src/project/ConversationTagEditorDialogView.tsx +4 -1
- package/src/project/DefaultConversationSectionView.tsx +15 -24
- package/src/project/DefaultSessionListView.tsx +5 -31
- package/src/project/DefaultSessionRowView.tsx +114 -55
- package/src/project/ManageSessionsSplashView.tsx +439 -0
- package/src/project/NewProjectDialogView.tsx +3 -10
- package/src/project/ProjectContextMenuView.tsx +30 -139
- package/src/project/ProjectDetailPageView.test.tsx +140 -0
- package/src/project/ProjectDetailPageView.tsx +372 -165
- package/src/project/ProjectGroupView.tsx +1 -1
- package/src/project/ProjectRowView.tsx +29 -12
- package/src/project/ProjectSessionsView.tsx +25 -47
- package/src/project/QuickScrollOverlay.tsx +1 -1
- package/src/project/SessionContextMenuView.tsx +15 -7
- package/src/project/SessionRowMoreButton.tsx +50 -0
- package/src/project/SessionRowView.tsx +106 -63
- package/src/project/SessionTitleMarquee.tsx +54 -0
- package/src/project/SidebarProjectDisclosure.tsx +60 -0
- package/src/project/SidebarProjectsSectionView.tsx +6 -1
- package/src/project/index.ts +12 -0
- package/src/project/session-row-transition.ts +9 -0
- package/src/project/types.ts +4 -2
- package/src/project/useActiveSessionAutoScroll.ts +10 -4
- package/src/registry.ts +0 -2
- package/src/scheduler/AutomationDetailPaneView.tsx +68 -0
- package/src/scheduler/AutomationPageView.tsx +118 -121
- package/src/scheduler/ExecutionHistoryView.tsx +7 -5
- package/src/scheduler/TaskListView.tsx +52 -201
- package/src/scheduler/index.ts +7 -12
- package/src/settings/AppshotSettingsView.tsx +0 -1
- package/src/settings/ArchivedProjectsSettingsView.tsx +122 -1
- package/src/settings/BuiltinMcpSectionView.tsx +1 -1
- package/src/settings/EnvironmentGitRowView.tsx +156 -0
- package/src/settings/EnvironmentSettingsView.tsx +25 -3
- package/src/settings/GeneralSettingsView.tsx +18 -24
- package/src/settings/ImChannelGuideDialogView.tsx +2 -2
- package/src/settings/ImFeishuDialogView.tsx +1 -1
- package/src/settings/ImLegacyImportBannerView.tsx +1 -1
- package/src/settings/ImLogDrawerView.tsx +2 -1
- package/src/settings/JsonConfigInputView.tsx +171 -0
- package/src/settings/LauncherSettingsView.test.tsx +95 -0
- package/src/settings/LauncherSettingsView.tsx +273 -0
- package/src/settings/ModelsFetchedModelsDrawerView.tsx +292 -0
- package/src/settings/ModelsProvidersSectionView.tsx +26 -23
- package/src/settings/MotionSelect.tsx +9 -7
- package/src/settings/NotificationSettingsView.tsx +79 -0
- package/src/settings/PermissionsSettingsView.tsx +3 -7
- package/src/settings/PetActionGalleryView.test.tsx +163 -0
- package/src/settings/PetActionGalleryView.tsx +216 -0
- package/src/settings/PetSettingsView.test.tsx +117 -0
- package/src/settings/PetSettingsView.tsx +86 -22
- package/src/settings/PresetProviderModelsListView.tsx +141 -24
- package/src/settings/PresetProviderRowView.tsx +147 -185
- package/src/settings/ProxySettingsSectionView.tsx +182 -0
- package/src/settings/QrBindDialogView.tsx +1 -1
- package/src/settings/RemoteMcpSectionView.tsx +1 -1
- package/src/settings/SettingChrome.tsx +2 -2
- package/src/settings/SettingsAiAssistButtonView.tsx +9 -119
- package/src/settings/SettingsFormFields.tsx +4 -7
- package/src/settings/SettingsSidebarView.tsx +64 -3
- package/src/settings/ShortcutRecorderView.test.tsx +108 -0
- package/src/settings/ShortcutRecorderView.tsx +15 -9
- package/src/settings/ShortcutsSettingsView.tsx +1 -5
- package/src/settings/SpaceEditorDialogView.tsx +158 -0
- package/src/settings/SpacesSettingsView.tsx +150 -0
- package/src/settings/WebhookEndpointListView.tsx +4 -5
- package/src/settings/assets/space-editor-illustration.webp +0 -0
- package/src/settings/index.ts +59 -68
- package/src/shared/ActivityStatusDot.tsx +69 -0
- package/src/shared/AvatarStackView.tsx +13 -13
- package/src/shared/BotAvatar.tsx +11 -9
- package/src/shared/CodeBlockCopyButton.tsx +1 -1
- package/src/shared/ContextMenuView.tsx +4 -11
- package/src/shared/MarkdownTable.tsx +2 -2
- package/src/shared/SegmentedControl.test.tsx +68 -0
- package/src/shared/SegmentedControl.tsx +10 -2
- package/src/shared/SyntaxHighlightedCode.tsx +0 -0
- package/src/shared/TabBar.outline.test.tsx +59 -0
- package/src/shared/TabBar.tsx +23 -18
- package/src/shared/VettaKbd.test.tsx +52 -0
- package/src/shared/VettaKbd.tsx +100 -0
- package/src/shared/connected-tab-outline.test.ts +2 -2
- package/src/shared/connected-tab-outline.ts +2 -1
- package/src/shared/index.ts +7 -0
- package/src/shared/kbd-keys.test.ts +61 -0
- package/src/shared/kbd-keys.ts +253 -0
- package/src/shared/platform.ts +9 -0
- package/src/shared/provider-icon/icons.ts +4 -2
- package/src/shared/provider-icon/index.tsx +1 -1
- package/src/shared/provider-icon/magpie.svg +1 -0
- package/src/sidebar/AddProjectMenuTriggerView.tsx +33 -24
- package/src/sidebar/DefaultSidebar.tsx +3 -1
- package/src/sidebar/MessageCenterDialogView.tsx +3 -2
- package/src/sidebar/MessageCenterEmptyState.tsx +1 -1
- package/src/sidebar/MessageCenterTabs.tsx +1 -1
- package/src/sidebar/MessageCenterToolbarButton.tsx +1 -1
- package/src/sidebar/MessageCenterTriggerView.tsx +2 -2
- package/src/sidebar/ProjectsPanelEmptyState.tsx +26 -7
- package/src/sidebar/SessionStatusIcon.tsx +16 -1
- package/src/sidebar/SettingsMenuThemeSection.tsx +1 -1
- package/src/sidebar/SettingsMenuTriggerView.test.tsx +42 -0
- package/src/sidebar/SettingsMenuTriggerView.tsx +29 -50
- package/src/sidebar/ShowMoreSessionsButton.tsx +1 -1
- package/src/sidebar/SidebarFilterSelectView.tsx +8 -16
- package/src/sidebar/SidebarNavBadgeView.tsx +1 -1
- package/src/sidebar/SidebarNavIcon.tsx +1 -1
- package/src/sidebar/SidebarNavItemButton.tsx +1 -1
- package/src/sidebar/SidebarNavMorePanel.tsx +19 -7
- package/src/sidebar/SidebarNavigation.tsx +24 -15
- package/src/sidebar/SidebarPanel.tsx +11 -2
- package/src/sidebar/SidebarSectionActionButton.test.tsx +91 -0
- package/src/sidebar/SidebarSectionActionButton.tsx +52 -0
- package/src/sidebar/SidebarSectionTriggerLabel.tsx +20 -0
- package/src/sidebar/SidebarTopBar.tsx +10 -7
- package/src/sidebar/WaitingPulseBadge.tsx +19 -0
- package/src/sidebar/index.ts +1 -16
- package/src/skills/index.ts +0 -19
- package/src/skills/skill-icon.tsx +4 -8
- package/src/styles.css +26 -6
- package/src/chat/DefaultSceneCarousel.tsx +0 -113
- package/src/chat/SceneCard.tsx +0 -138
- package/src/scheduler/HistoryDrawerView.tsx +0 -149
- package/src/scheduler/TaskFormDialogView.tsx +0 -60
- package/src/settings/AchievementNavigationButtonView.tsx +0 -90
- package/src/settings/AchievementPromotionDialogView.tsx +0 -91
- package/src/settings/AchievementSettingsView.tsx +0 -44
- package/src/settings/PetBubbleStylePreviewView.tsx +0 -44
- package/src/settings/QuickPanelSettingsSectionView.tsx +0 -66
- package/src/settings/SubscriptionActionsView.tsx +0 -63
- package/src/settings/SubscriptionCardsView.tsx +0 -212
- package/src/settings/TeamDetailView.tsx +0 -148
- package/src/settings/TeamDialogsView.tsx +0 -151
- package/src/settings/TeamListView.tsx +0 -57
- package/src/settings/TeamSettingsView.tsx +0 -51
- package/src/settings/TokenActivityChartView.tsx +0 -286
- package/src/settings/UsageStatsView.tsx +0 -101
- package/src/settings/achievements/AchievementCurtains.tsx +0 -50
- package/src/settings/achievements/AchievementPromotionBadge3D.tsx +0 -350
- package/src/settings/achievements/AchievementPromotionConfetti.tsx +0 -71
- package/src/settings/achievements/AchievementTitle.tsx +0 -52
- package/src/settings/achievements/index.ts +0 -13
- package/src/settings/shouldCloseEmptyApiKeyEditor.test.ts +0 -135
- package/src/settings/shouldCloseEmptyApiKeyEditor.ts +0 -40
- package/src/settings/token-activity.test.ts +0 -195
- package/src/settings/token-activity.ts +0 -320
- package/src/sidebar/AddProjectMenuItem.tsx +0 -21
- package/src/sidebar/AddProjectMenuPopoverView.tsx +0 -52
- package/src/sidebar/NotificationMessageListView.tsx +0 -136
- package/src/sidebar/SettingsMenuAccountSection.tsx +0 -32
- package/src/sidebar/SettingsMenuQuotaSection.tsx +0 -45
- package/src/skills/SceneCardView.tsx +0 -194
- package/src/skills/SkillCardView.tsx +0 -186
- package/src/skills/SkillDetailDialogView.tsx +0 -138
- package/src/skills/SkillTagGroupView.tsx +0 -56
- package/src/skills/SkillToggleSwitch.tsx +0 -31
package/src/overlays/index.ts
CHANGED
|
@@ -17,14 +17,37 @@ export type {
|
|
|
17
17
|
export type { DetailDrawerProps } from "./DetailDrawer";
|
|
18
18
|
export { DetailDrawer } from "./DetailDrawer";
|
|
19
19
|
export { DetailDrawerEnter } from "./DetailDrawerEnter";
|
|
20
|
+
export type {
|
|
21
|
+
DiagnosticsExportDialogPhase,
|
|
22
|
+
DiagnosticsExportDialogViewLabels,
|
|
23
|
+
DiagnosticsExportDialogViewProps,
|
|
24
|
+
} from "./DiagnosticsExportDialogView";
|
|
25
|
+
export { DiagnosticsExportDialogView } from "./DiagnosticsExportDialogView";
|
|
20
26
|
export { shouldCloseDetailDrawer } from "./detail-drawer-guard";
|
|
21
27
|
export type { KnowledgeDropOverlayViewProps } from "./KnowledgeDropOverlayView";
|
|
22
28
|
export { KnowledgeDropOverlayView } from "./KnowledgeDropOverlayView";
|
|
29
|
+
export type {
|
|
30
|
+
MagpieHandoverDialogViewLabels,
|
|
31
|
+
MagpieHandoverDialogViewProps,
|
|
32
|
+
} from "./MagpieHandoverDialogView";
|
|
33
|
+
export { MagpieHandoverDialogView } from "./MagpieHandoverDialogView";
|
|
23
34
|
export type {
|
|
24
35
|
RouteErrorPageViewLabels,
|
|
25
36
|
RouteErrorPageViewProps,
|
|
26
37
|
} from "./RouteErrorPageView";
|
|
27
38
|
export { RouteErrorPageView } from "./RouteErrorPageView";
|
|
39
|
+
export type { SplashOptionRowProps } from "./SplashOptionRow";
|
|
40
|
+
export { SplashOptionRow } from "./SplashOptionRow";
|
|
41
|
+
export type { SplashPanelProps } from "./SplashPanel";
|
|
42
|
+
export { SplashPanel } from "./SplashPanel";
|
|
43
|
+
export type { SplashInputHeaderProps, SplashTitleHeaderProps } from "./SplashParts";
|
|
44
|
+
export {
|
|
45
|
+
SplashFooter,
|
|
46
|
+
SplashInputHeader,
|
|
47
|
+
SplashNotice,
|
|
48
|
+
SplashStep,
|
|
49
|
+
SplashTitleHeader,
|
|
50
|
+
} from "./SplashParts";
|
|
28
51
|
export type {
|
|
29
52
|
ToasterItemView,
|
|
30
53
|
ToasterVariant,
|
|
@@ -38,7 +61,9 @@ export type {
|
|
|
38
61
|
} from "./UpdateCheckerView";
|
|
39
62
|
export { UpdateCheckerAction, UpdateCheckerDetail, UpdateCheckerView } from "./UpdateCheckerView";
|
|
40
63
|
export type {
|
|
41
|
-
|
|
64
|
+
UpdateRestartDialogAction,
|
|
65
|
+
UpdateRestartDialogEarlierNote,
|
|
66
|
+
UpdateRestartDialogStatus,
|
|
42
67
|
UpdateRestartDialogViewProps,
|
|
43
68
|
} from "./UpdateRestartDialogView";
|
|
44
69
|
export { UpdateRestartDialogView } from "./UpdateRestartDialogView";
|
package/src/plugin-ui/index.ts
CHANGED
|
@@ -18,9 +18,19 @@ export type {
|
|
|
18
18
|
ModelSelectorLabels,
|
|
19
19
|
ModelSelectorOptionView,
|
|
20
20
|
ModelSelectorProviderGroup,
|
|
21
|
+
ModelSelectorTriggerVariant,
|
|
21
22
|
ModelSelectorViewProps,
|
|
22
23
|
} from "../chat/ModelSelectorView";
|
|
23
24
|
export { ModelSelectorView } from "../chat/ModelSelectorView";
|
|
25
|
+
export type { MotionSelectOption, MotionSelectProps } from "../settings/MotionSelect";
|
|
26
|
+
export { MotionSelect } from "../settings/MotionSelect";
|
|
27
|
+
export type { SettingSectionMeta } from "../settings/SettingChrome";
|
|
28
|
+
export { SettingHeading, SettingRow, SettingSection } from "../settings/SettingChrome";
|
|
29
|
+
export type { VettaKbdKey, VettaKbdPlatform } from "../shared/kbd-keys";
|
|
24
30
|
export type { MultiplierTagProps } from "../shared/MultiplierTag";
|
|
25
31
|
export { fmtMultiplier, MultiplierTag } from "../shared/MultiplierTag";
|
|
26
32
|
export { getProviderIcon, PROVIDER_ICONS, ProviderIcon } from "../shared/provider-icon";
|
|
33
|
+
export type { SegmentedControlItem, SegmentedControlProps } from "../shared/SegmentedControl";
|
|
34
|
+
export { SegmentedControl } from "../shared/SegmentedControl";
|
|
35
|
+
export type { VettaKbdProps, VettaKbdSize } from "../shared/VettaKbd";
|
|
36
|
+
export { VettaKbd } from "../shared/VettaKbd";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Button
|
|
1
|
+
import { Button } from "@vetta-org/ui/button";
|
|
2
|
+
import { cn } from "@vetta-org/ui/utils";
|
|
3
|
+
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@vetta-org/ui/dialog";
|
|
4
|
+
import { Input } from "@vetta-org/ui/input";
|
|
2
5
|
import { useCallback, useEffect, useRef, useState, type JSX } from "react";
|
|
3
6
|
|
|
4
7
|
export interface ConversationTagEditorTagView {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { cn } from "@vetta-org/ui";
|
|
1
|
+
import { cn } from "@vetta-org/ui/utils";
|
|
2
2
|
import type { JSX, ReactNode } from "react";
|
|
3
|
+
import { SidebarSectionActionButton } from "../sidebar/SidebarSectionActionButton";
|
|
3
4
|
|
|
4
5
|
export interface DefaultConversationSectionViewLabels {
|
|
5
6
|
more: string;
|
|
@@ -15,10 +16,7 @@ export interface DefaultConversationSectionViewProps {
|
|
|
15
16
|
onNewSession?: () => void;
|
|
16
17
|
onOpenContextMenu: (event: React.MouseEvent) => void;
|
|
17
18
|
showNewSession: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* When the conversation list is empty, keep header actions visible so users
|
|
20
|
-
* can discover “new session” without hovering the row.
|
|
21
|
-
*/
|
|
19
|
+
/** 对话列表为空时常驻标题行操作,引导开始第一个对话;有对话后只在悬停标题行时出现。 */
|
|
22
20
|
actionsAlwaysVisible?: boolean;
|
|
23
21
|
}
|
|
24
22
|
|
|
@@ -36,35 +34,28 @@ export function DefaultConversationSectionView({
|
|
|
36
34
|
showNewSession,
|
|
37
35
|
actionsAlwaysVisible = false,
|
|
38
36
|
}: DefaultConversationSectionViewProps): JSX.Element {
|
|
39
|
-
const
|
|
40
|
-
? "flex items-center justify-center rounded-md p-1.5 text-foreground opacity-70 transition-opacity hover:bg-accent hover:opacity-100"
|
|
41
|
-
: "flex items-center justify-center rounded-md p-1.5 text-foreground opacity-0 transition-opacity hover:bg-accent group-hover:opacity-60 group-hover:hover:opacity-100";
|
|
42
|
-
|
|
37
|
+
const reveal = actionsAlwaysVisible ? "always" : "hover";
|
|
43
38
|
return (
|
|
44
39
|
<div className={cn("flex flex-col", className)}>
|
|
45
40
|
<div
|
|
46
|
-
className="group -mx-1.5 flex shrink-0 items-center justify-between pb-1 pl-
|
|
41
|
+
className="group -mx-1.5 flex shrink-0 items-center justify-between pb-1 pl-1.5 pr-2.5 pt-1"
|
|
47
42
|
onContextMenu={onOpenContextMenu}
|
|
48
43
|
>
|
|
49
44
|
<div className="flex min-w-0 items-center gap-0.5">{filterSelect}</div>
|
|
50
45
|
<div className="flex items-center">
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
<SidebarSectionActionButton
|
|
47
|
+
iconClassName="icon-[solar--menu-dots-bold]"
|
|
48
|
+
label={labels.more}
|
|
54
49
|
onClick={onMoreClick}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<span className="icon-[solar--menu-dots-linear] h-4 w-4" />
|
|
58
|
-
</button>
|
|
50
|
+
reveal={reveal}
|
|
51
|
+
/>
|
|
59
52
|
{showNewSession && onNewSession && (
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
<SidebarSectionActionButton
|
|
54
|
+
iconClassName="icon-[solar--add-linear]"
|
|
55
|
+
label={labels.newSession}
|
|
63
56
|
onClick={onNewSession}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<span className="icon-[solar--add-square-outline] h-4 w-4" />
|
|
67
|
-
</button>
|
|
57
|
+
reveal={reveal}
|
|
58
|
+
/>
|
|
68
59
|
)}
|
|
69
60
|
</div>
|
|
70
61
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn } from "@vetta-org/ui";
|
|
1
|
+
import { cn } from "@vetta-org/ui/utils";
|
|
2
2
|
import { useRef, type JSX, type ReactNode } from "react";
|
|
3
3
|
import { Virtuoso, type VirtuosoHandle } from "react-virtuoso";
|
|
4
4
|
import {
|
|
@@ -16,6 +16,8 @@ export interface DefaultSessionListViewItem {
|
|
|
16
16
|
export interface DefaultSessionListViewLabels {
|
|
17
17
|
collapse: string;
|
|
18
18
|
expand: string;
|
|
19
|
+
/** Accessible name for each row's hover "more" trigger. */
|
|
20
|
+
more: string;
|
|
19
21
|
/** Primary empty-state line. */
|
|
20
22
|
emptyTitle: string;
|
|
21
23
|
/** Guidance under the title. */
|
|
@@ -45,7 +47,6 @@ export function DefaultSessionListView<T extends DefaultSessionListViewItem>({
|
|
|
45
47
|
hasMore,
|
|
46
48
|
labels,
|
|
47
49
|
loading = false,
|
|
48
|
-
onEmptyAction,
|
|
49
50
|
onToggleShowAll,
|
|
50
51
|
renderSession,
|
|
51
52
|
scrollParent,
|
|
@@ -60,35 +61,8 @@ export function DefaultSessionListView<T extends DefaultSessionListViewItem>({
|
|
|
60
61
|
useActiveSessionAutoScroll({ activeIndex, activeKey, scrollParent, virtuosoRef });
|
|
61
62
|
if (loading) return <ProjectSessionsLoadingView />;
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return (
|
|
66
|
-
<div
|
|
67
|
-
className={cn(
|
|
68
|
-
"flex flex-col items-center gap-2.5 px-3 py-8 text-center",
|
|
69
|
-
className,
|
|
70
|
-
)}
|
|
71
|
-
>
|
|
72
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-xl bg-muted/60">
|
|
73
|
-
<span className="icon-[solar--chat-round-line-linear] h-5 w-5 text-muted-foreground/70" />
|
|
74
|
-
</div>
|
|
75
|
-
<div className="flex flex-col gap-1">
|
|
76
|
-
<p className="text-[12px] font-medium text-foreground/80">{labels.emptyTitle}</p>
|
|
77
|
-
<p className="text-[11px] leading-relaxed text-muted-foreground">{labels.emptyDescription}</p>
|
|
78
|
-
</div>
|
|
79
|
-
{showAction && (
|
|
80
|
-
<button
|
|
81
|
-
type="button"
|
|
82
|
-
onClick={onEmptyAction}
|
|
83
|
-
className="mt-0.5 inline-flex items-center gap-1 rounded-md bg-primary/10 px-2.5 py-1.5 text-[11px] font-medium text-primary transition-colors hover:bg-primary/15"
|
|
84
|
-
>
|
|
85
|
-
<span className="icon-[solar--add-circle-linear] h-3.5 w-3.5 shrink-0" />
|
|
86
|
-
{labels.emptyAction}
|
|
87
|
-
</button>
|
|
88
|
-
)}
|
|
89
|
-
</div>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
64
|
+
// 空状态的引导统一放在项目区的卡片里,对话区本身不放内容。
|
|
65
|
+
if (totalCount === 0) return <></>;
|
|
92
66
|
|
|
93
67
|
const useVirtual = showAll && scrollParent != null;
|
|
94
68
|
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { cn } from "@vetta-org/ui";
|
|
1
|
+
import { cn } from "@vetta-org/ui/utils";
|
|
2
2
|
import { memo, type JSX } from "react";
|
|
3
3
|
import { AvatarStackView } from "../shared/AvatarStackView";
|
|
4
|
+
import { SessionStatusIcon } from "../sidebar/SessionStatusIcon";
|
|
4
5
|
import { ConversationTagDotsView } from "./ConversationTagDotsView";
|
|
6
|
+
import { IMMEDIATE_SESSION_SELECTION_STYLE } from "./session-row-transition";
|
|
5
7
|
import { SessionRenameInputView } from "./SessionRenameInputView";
|
|
8
|
+
import {
|
|
9
|
+
SESSION_ROW_CONTENT_FADE_CLASS,
|
|
10
|
+
SessionRowMoreButton,
|
|
11
|
+
} from "./SessionRowMoreButton";
|
|
12
|
+
import { SessionTitleMarquee } from "./SessionTitleMarquee";
|
|
6
13
|
import { prepareSidebarSelection } from "./useActiveSessionAutoScroll";
|
|
7
14
|
|
|
8
15
|
export interface DefaultSessionRowViewProps {
|
|
@@ -18,10 +25,14 @@ export interface DefaultSessionRowViewProps {
|
|
|
18
25
|
sessionPath?: string;
|
|
19
26
|
/** Tooltip / secondary label (e.g. forked-from preview). */
|
|
20
27
|
titleExtra?: string;
|
|
28
|
+
/** 标题后的弱化短文本,例如平铺列表中会话所属的项目名。 */
|
|
29
|
+
secondaryLabel?: string;
|
|
21
30
|
/** Session was forked from another session. */
|
|
22
31
|
forked?: boolean;
|
|
23
32
|
/** Tag colors carried by this conversation; replaces the leading icon when present. */
|
|
24
33
|
tagColors?: readonly string[];
|
|
34
|
+
/** Accessible name for the hover "more" trigger. */
|
|
35
|
+
moreLabel?: string;
|
|
25
36
|
onOpenContextMenu: (event: React.MouseEvent) => void;
|
|
26
37
|
onRename: (name: string) => void;
|
|
27
38
|
onRenameDone: () => void;
|
|
@@ -30,6 +41,13 @@ export interface DefaultSessionRowViewProps {
|
|
|
30
41
|
renaming: boolean;
|
|
31
42
|
running: boolean;
|
|
32
43
|
scheduled: boolean;
|
|
44
|
+
/** 会话正等着用户处理;优先于 running/scheduled,左侧换成停转的琥珀色问号。 */
|
|
45
|
+
waiting?: boolean;
|
|
46
|
+
/** 自动化会话组组头:本组运行次数。存在时整行点击即展开/收起,不提供更多菜单。 */
|
|
47
|
+
groupCount?: number;
|
|
48
|
+
groupExpanded?: boolean;
|
|
49
|
+
/** 会话组展开后的组员行,缩进一级。 */
|
|
50
|
+
nested?: boolean;
|
|
33
51
|
}
|
|
34
52
|
|
|
35
53
|
/** memo:理由同 SessionRowView——切换会话只改两行,其余行 props 未变。 */
|
|
@@ -41,7 +59,9 @@ export const DefaultSessionRowView = memo(function DefaultSessionRowView({
|
|
|
41
59
|
trailingAvatarUrls,
|
|
42
60
|
sessionPath,
|
|
43
61
|
titleExtra,
|
|
62
|
+
secondaryLabel,
|
|
44
63
|
forked,
|
|
64
|
+
moreLabel,
|
|
45
65
|
onOpenContextMenu,
|
|
46
66
|
onRename,
|
|
47
67
|
onRenameDone,
|
|
@@ -50,12 +70,16 @@ export const DefaultSessionRowView = memo(function DefaultSessionRowView({
|
|
|
50
70
|
renaming,
|
|
51
71
|
running,
|
|
52
72
|
scheduled,
|
|
73
|
+
waiting = false,
|
|
74
|
+
groupCount,
|
|
75
|
+
groupExpanded,
|
|
76
|
+
nested = false,
|
|
53
77
|
tagColors,
|
|
54
78
|
}: DefaultSessionRowViewProps): JSX.Element {
|
|
55
79
|
const title = renaming ? undefined : titleExtra ? `${label}\n${titleExtra}` : label;
|
|
56
|
-
//
|
|
80
|
+
// 标签色点让位于「等你处理 / 正在运行 / 已排期」这类瞬时状态——它们是需要立刻读到的信号,
|
|
57
81
|
// 标签则是长期归属,挤掉钉住/分叉图标即可。
|
|
58
|
-
const showTagDots = !running && !scheduled && tagColors !== undefined && tagColors.length > 0;
|
|
82
|
+
const showTagDots = !waiting && !running && !scheduled && tagColors !== undefined && tagColors.length > 0;
|
|
59
83
|
const leadingIconClassName = running
|
|
60
84
|
? "project-running-icon icon-[solar--refresh-linear] animate-spin"
|
|
61
85
|
: scheduled
|
|
@@ -64,62 +88,97 @@ export const DefaultSessionRowView = memo(function DefaultSessionRowView({
|
|
|
64
88
|
? "icon-[mdi--source-fork]"
|
|
65
89
|
: pinned
|
|
66
90
|
? "icon-[solar--pin-linear] text-primary/80"
|
|
67
|
-
: iconClassName
|
|
91
|
+
: iconClassName;
|
|
68
92
|
return (
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<span
|
|
101
|
-
data-session-leading-icon="true"
|
|
102
|
-
aria-hidden="true"
|
|
103
|
-
className={cn(
|
|
104
|
-
leadingIconClassName,
|
|
105
|
-
"h-3.5 w-3.5 shrink-0",
|
|
106
|
-
active ? "text-foreground/70" : "text-muted-foreground/50",
|
|
107
|
-
)}
|
|
108
|
-
/>
|
|
109
|
-
)}
|
|
110
|
-
<span
|
|
93
|
+
<div className="group/session-row relative">
|
|
94
|
+
<button
|
|
95
|
+
type="button"
|
|
96
|
+
data-session-active={active ? "true" : undefined}
|
|
97
|
+
aria-expanded={groupCount !== undefined ? groupExpanded === true : undefined}
|
|
98
|
+
data-session-path={sessionPath || undefined}
|
|
99
|
+
onClick={(event) => {
|
|
100
|
+
if (renaming) return;
|
|
101
|
+
prepareSidebarSelection(event.currentTarget);
|
|
102
|
+
onSelect();
|
|
103
|
+
}}
|
|
104
|
+
onContextMenu={(event) => {
|
|
105
|
+
event.preventDefault();
|
|
106
|
+
if (!contextMenuEnabled) return;
|
|
107
|
+
onOpenContextMenu(event);
|
|
108
|
+
}}
|
|
109
|
+
className={cn(
|
|
110
|
+
"flex w-full items-center gap-2 rounded-md py-[6px] pr-2.5 text-left",
|
|
111
|
+
nested ? "pl-7" : "pl-2.5",
|
|
112
|
+
active ? "bg-primary/15 text-foreground" : "hover:bg-accent/50",
|
|
113
|
+
)}
|
|
114
|
+
style={IMMEDIATE_SESSION_SELECTION_STYLE}
|
|
115
|
+
>
|
|
116
|
+
{renaming ? (
|
|
117
|
+
<SessionRenameInputView
|
|
118
|
+
initialValue={label}
|
|
119
|
+
onCancel={onRenameDone}
|
|
120
|
+
onCommit={onRename}
|
|
121
|
+
/>
|
|
122
|
+
) : (
|
|
123
|
+
<div
|
|
111
124
|
className={cn(
|
|
112
|
-
"min-w-0 flex-1
|
|
113
|
-
|
|
125
|
+
"flex min-w-0 flex-1 items-center gap-2",
|
|
126
|
+
SESSION_ROW_CONTENT_FADE_CLASS,
|
|
114
127
|
)}
|
|
115
128
|
>
|
|
116
|
-
{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
129
|
+
{waiting ? (
|
|
130
|
+
<SessionStatusIcon active={active} running={running} scheduled={scheduled} waiting />
|
|
131
|
+
) : showTagDots ? (
|
|
132
|
+
<ConversationTagDotsView colors={tagColors} />
|
|
133
|
+
) : leadingIconClassName ? (
|
|
134
|
+
<span
|
|
135
|
+
data-session-leading-icon="true"
|
|
136
|
+
aria-hidden="true"
|
|
137
|
+
className={cn(
|
|
138
|
+
leadingIconClassName,
|
|
139
|
+
"h-3.5 w-3.5 shrink-0",
|
|
140
|
+
active ? "text-foreground/70" : "text-muted-foreground/50",
|
|
141
|
+
)}
|
|
142
|
+
/>
|
|
143
|
+
) : null}
|
|
144
|
+
<SessionTitleMarquee
|
|
145
|
+
className={cn(
|
|
146
|
+
"text-[13px]",
|
|
147
|
+
active ? "font-semibold text-foreground" : "text-foreground",
|
|
148
|
+
)}
|
|
149
|
+
label={label}
|
|
150
|
+
title={title}
|
|
151
|
+
/>
|
|
152
|
+
{secondaryLabel ? (
|
|
153
|
+
<span className="max-w-[45%] shrink-0 truncate text-[11px] text-muted-foreground/60">
|
|
154
|
+
{secondaryLabel}
|
|
155
|
+
</span>
|
|
156
|
+
) : null}
|
|
157
|
+
{trailingAvatarUrls && trailingAvatarUrls.length > 0 ? (
|
|
158
|
+
<AvatarStackView avatarUrls={trailingAvatarUrls} />
|
|
159
|
+
) : null}
|
|
160
|
+
{groupCount !== undefined ? (
|
|
161
|
+
<>
|
|
162
|
+
<span className="shrink-0 text-[11px] tabular-nums text-muted-foreground/60">{groupCount}</span>
|
|
163
|
+
<span
|
|
164
|
+
aria-hidden="true"
|
|
165
|
+
className={cn(
|
|
166
|
+
"icon-[mdi--chevron-right] h-3.5 w-3.5 shrink-0 text-muted-foreground/60 transition-transform",
|
|
167
|
+
groupExpanded && "rotate-90",
|
|
168
|
+
)}
|
|
169
|
+
/>
|
|
170
|
+
</>
|
|
171
|
+
) : null}
|
|
172
|
+
</div>
|
|
173
|
+
)}
|
|
174
|
+
</button>
|
|
175
|
+
{renaming || !contextMenuEnabled || groupCount !== undefined ? null : (
|
|
176
|
+
<SessionRowMoreButton
|
|
177
|
+
className="rounded-r-md"
|
|
178
|
+
label={moreLabel}
|
|
179
|
+
onOpen={onOpenContextMenu}
|
|
180
|
+
/>
|
|
122
181
|
)}
|
|
123
|
-
</
|
|
182
|
+
</div>
|
|
124
183
|
);
|
|
125
184
|
});
|