@crievo/omni 0.0.0-stage → 0.1.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/.env.example +41 -0
- package/README.md +2 -2
- package/bin/omni.mjs +14 -0
- package/docs/onboarding/clone-voice.png +0 -0
- package/docs/onboarding/getting-started.png +0 -0
- package/docs/onboarding/new-video.png +0 -0
- package/docs/onboarding/providers.png +0 -0
- package/docs/onboarding/publish.png +0 -0
- package/docs/onboarding/references.png +0 -0
- package/docs/onboarding.md +212 -0
- package/omnivideo.config.example.json +437 -0
- package/package.json +40 -4
- package/reference/captions.md +156 -0
- package/reference/carousel-contract.md +91 -0
- package/reference/cloud.md +96 -0
- package/reference/learnings.md +792 -0
- package/reference/omnichat.md +305 -0
- package/reference/premiere-mcp.md +91 -0
- package/reference/publish.md +305 -0
- package/reference/scenes-contract.md +109 -0
- package/reference/studio.md +666 -0
- package/reference/voicestudio.md +81 -0
- package/reference/writing-for-voice.md +67 -0
- package/requirements.txt +3 -0
- package/studio/api/app.ts +87 -0
- package/studio/api/lib/errors.ts +33 -0
- package/studio/api/lib/files.ts +41 -0
- package/studio/api/lib/hono.ts +9 -0
- package/studio/api/lib/result.ts +14 -0
- package/studio/api/lib/validate.ts +31 -0
- package/studio/api/lib/video.ts +10 -0
- package/studio/api/middleware/json-charset.ts +11 -0
- package/studio/api/middleware/local-only.ts +32 -0
- package/studio/api/middleware/no-timeout.ts +10 -0
- package/studio/api/routes/admin.ts +18 -0
- package/studio/api/routes/agent-cascade.ts +100 -0
- package/studio/api/routes/agent-history.ts +23 -0
- package/studio/api/routes/agent.ts +162 -0
- package/studio/api/routes/analytics.ts +31 -0
- package/studio/api/routes/approval.ts +60 -0
- package/studio/api/routes/archive.ts +12 -0
- package/studio/api/routes/captions.ts +28 -0
- package/studio/api/routes/carousel.ts +38 -0
- package/studio/api/routes/clone.ts +27 -0
- package/studio/api/routes/create.ts +19 -0
- package/studio/api/routes/events.ts +11 -0
- package/studio/api/routes/export.ts +14 -0
- package/studio/api/routes/media.ts +30 -0
- package/studio/api/routes/omnichat.ts +113 -0
- package/studio/api/routes/onboarding.ts +14 -0
- package/studio/api/routes/publish.ts +40 -0
- package/studio/api/routes/queue.ts +14 -0
- package/studio/api/routes/references.ts +40 -0
- package/studio/api/routes/runner.ts +17 -0
- package/studio/api/routes/schedule.ts +47 -0
- package/studio/api/routes/services.ts +11 -0
- package/studio/api/routes/sessions.ts +27 -0
- package/studio/api/routes/settings.ts +102 -0
- package/studio/api/routes/sound.ts +45 -0
- package/studio/api/routes/thumbnail.ts +18 -0
- package/studio/api/routes/usage.ts +13 -0
- package/studio/api/routes/videos.ts +41 -0
- package/studio/api/routes/voices.ts +71 -0
- package/studio/api/services/admin.ts +113 -0
- package/studio/api/services/agent-cascade.ts +975 -0
- package/studio/api/services/agent-claude.ts +47 -0
- package/studio/api/services/agent-history.ts +103 -0
- package/studio/api/services/agent-persona.ts +77 -0
- package/studio/api/services/agent-tools.ts +2237 -0
- package/studio/api/services/agent-ui-tools.ts +259 -0
- package/studio/api/services/agent-wait.ts +32 -0
- package/studio/api/services/agent.ts +553 -0
- package/studio/api/services/analytics.ts +92 -0
- package/studio/api/services/approval.ts +134 -0
- package/studio/api/services/archive.ts +38 -0
- package/studio/api/services/captions.ts +268 -0
- package/studio/api/services/carousel.ts +206 -0
- package/studio/api/services/classify.ts +196 -0
- package/studio/api/services/clone-phrases.ts +75 -0
- package/studio/api/services/clone.ts +722 -0
- package/studio/api/services/create.ts +421 -0
- package/studio/api/services/events.ts +215 -0
- package/studio/api/services/media.ts +32 -0
- package/studio/api/services/omnichat.ts +624 -0
- package/studio/api/services/onboarding.ts +77 -0
- package/studio/api/services/publish.ts +287 -0
- package/studio/api/services/queue.ts +150 -0
- package/studio/api/services/references.ts +269 -0
- package/studio/api/services/root.ts +60 -0
- package/studio/api/services/services.ts +114 -0
- package/studio/api/services/sessions.ts +1007 -0
- package/studio/api/services/settings.ts +983 -0
- package/studio/api/services/sound.ts +311 -0
- package/studio/api/services/thumbnail.ts +133 -0
- package/studio/api/services/usage.ts +27 -0
- package/studio/api/services/videos.ts +418 -0
- package/studio/api/services/voice-pause.ts +98 -0
- package/studio/api/services/voices.ts +324 -0
- package/studio/runner/runner.ts +244 -0
- package/studio/shared/omni-actions.ts +68 -0
- package/studio/shared/omni-admin.ts +52 -0
- package/studio/shared/omni-farewell.ts +48 -0
- package/studio/shared/omni-hotword.ts +20 -0
- package/studio/shared/omni-screens.ts +228 -0
- package/studio/shared/schemas/admin.ts +15 -0
- package/studio/shared/schemas/agent-cascade.ts +58 -0
- package/studio/shared/schemas/agent-history.ts +73 -0
- package/studio/shared/schemas/agent.ts +50 -0
- package/studio/shared/schemas/analytics.ts +6 -0
- package/studio/shared/schemas/approval.ts +22 -0
- package/studio/shared/schemas/captions.ts +19 -0
- package/studio/shared/schemas/carousel.ts +26 -0
- package/studio/shared/schemas/clone.ts +40 -0
- package/studio/shared/schemas/common.ts +16 -0
- package/studio/shared/schemas/omnichat.ts +54 -0
- package/studio/shared/schemas/onboarding.ts +5 -0
- package/studio/shared/schemas/publish.ts +45 -0
- package/studio/shared/schemas/references.ts +20 -0
- package/studio/shared/schemas/settings.ts +82 -0
- package/studio/shared/schemas/sound.ts +22 -0
- package/studio/shared/schemas/videos.ts +38 -0
- package/studio/shared/schemas/voices.ts +23 -0
- package/studio/shared/types/api.ts +1290 -0
- package/studio/studio.ts +148 -0
- package/studio/tsconfig.json +15 -0
- package/studio/web/assets/logos/cartesia.svg +4 -0
- package/studio/web/assets/logos/elevenlabs.svg +12 -0
- package/studio/web/assets/logos/fish.svg +24 -0
- package/studio/web/assets/logos/omni-black.png +0 -0
- package/studio/web/assets/logos/omni-white.png +0 -0
- package/studio/web/assets/logos/voicestudio.svg +21 -0
- package/studio/web/components/AgentMark.tsx +7 -0
- package/studio/web/components/AgentWalking.tsx +11 -0
- package/studio/web/components/ApiKeyField.tsx +104 -0
- package/studio/web/components/AppShell.tsx +64 -0
- package/studio/web/components/ApprovalNotice.tsx +65 -0
- package/studio/web/components/AvatarGroupIcon.tsx +22 -0
- package/studio/web/components/AvatarNameField.tsx +86 -0
- package/studio/web/components/AvatarPicker.tsx +84 -0
- package/studio/web/components/BrandLogo.tsx +16 -0
- package/studio/web/components/CartesiaPlanSetting.tsx +90 -0
- package/studio/web/components/ClaudeWalking.tsx +32 -0
- package/studio/web/components/CloneVoiceDialog/GuidedScript.tsx +39 -0
- package/studio/web/components/CloneVoiceDialog/LanguageBar.tsx +37 -0
- package/studio/web/components/CloneVoiceDialog/LevelMeter.tsx +31 -0
- package/studio/web/components/CloneVoiceDialog/ProviderChoice.tsx +81 -0
- package/studio/web/components/CloneVoiceDialog/QualityPanel.tsx +62 -0
- package/studio/web/components/CloneVoiceDialog/RecordStep.tsx +50 -0
- package/studio/web/components/CloneVoiceDialog/RecorderBar.tsx +79 -0
- package/studio/web/components/CloneVoiceDialog/RedoSummary.tsx +54 -0
- package/studio/web/components/CloneVoiceDialog/SaveStep.tsx +91 -0
- package/studio/web/components/CloneVoiceDialog/SourceBar.tsx +30 -0
- package/studio/web/components/CloneVoiceDialog/index.tsx +141 -0
- package/studio/web/components/CloneVoiceDialog/types.ts +28 -0
- package/studio/web/components/CloneVoiceDialog/useCloneVoice.ts +528 -0
- package/studio/web/components/ConnectionSignals.tsx +51 -0
- package/studio/web/components/EditVoiceDialog/EditVoiceFooter.tsx +72 -0
- package/studio/web/components/EditVoiceDialog/ProviderCards.tsx +81 -0
- package/studio/web/components/EditVoiceDialog/index.tsx +256 -0
- package/studio/web/components/ErrorBanner.tsx +115 -0
- package/studio/web/components/FinishedTask.tsx +41 -0
- package/studio/web/components/FishModelSetting.tsx +69 -0
- package/studio/web/components/FishPriceSetting.tsx +44 -0
- package/studio/web/components/HumanBanner.tsx +64 -0
- package/studio/web/components/Lightbox.tsx +41 -0
- package/studio/web/components/LogStream.tsx +42 -0
- package/studio/web/components/Markdown.tsx +21 -0
- package/studio/web/components/MissingDmsPanel/BatchSend.tsx +137 -0
- package/studio/web/components/MissingDmsPanel/CommentCard.tsx +168 -0
- package/studio/web/components/MissingDmsPanel/CommentFeed.tsx +45 -0
- package/studio/web/components/MissingDmsPanel/DmBubble.tsx +38 -0
- package/studio/web/components/MissingDmsPanel/ReplyComposer.tsx +63 -0
- package/studio/web/components/MissingDmsPanel/index.tsx +98 -0
- package/studio/web/components/NotFound.tsx +48 -0
- package/studio/web/components/Omni/OmniAvatarPicker.tsx +92 -0
- package/studio/web/components/Omni/OmniCards.tsx +202 -0
- package/studio/web/components/Omni/OmniGlow.tsx +183 -0
- package/studio/web/components/Omni/OmniHistory.tsx +119 -0
- package/studio/web/components/Omni/OmniHotword.tsx +40 -0
- package/studio/web/components/Omni/OmniMicSelect.tsx +92 -0
- package/studio/web/components/Omni/OmniVoiceSample.tsx +81 -0
- package/studio/web/components/Omni/OmniWidget.tsx +743 -0
- package/studio/web/components/Omni/PendingActions.tsx +200 -0
- package/studio/web/components/Omni/Transcript.tsx +127 -0
- package/studio/web/components/OmnichatAccountStatus.tsx +87 -0
- package/studio/web/components/OmnichatRulePanel/RuleConfig.tsx +150 -0
- package/studio/web/components/OmnichatRulePanel/RuleDryRun.tsx +15 -0
- package/studio/web/components/OmnichatRulePanel/RuleEnableConfirm.tsx +42 -0
- package/studio/web/components/OmnichatRulePanel/RuleSkeleton.tsx +18 -0
- package/studio/web/components/OmnichatRulePanel/RuleStatus.tsx +55 -0
- package/studio/web/components/OmnichatRulePanel/index.tsx +115 -0
- package/studio/web/components/OmnichatRulePanel/rule-steps.ts +67 -0
- package/studio/web/components/OmnichatRulePanel/steps/MessageStep.tsx +91 -0
- package/studio/web/components/OmnichatRulePanel/steps/RepliesStep.tsx +201 -0
- package/studio/web/components/OmnichatRulePanel/steps/TriggerStep.tsx +76 -0
- package/studio/web/components/OmnichatRulePanel/steps/types.ts +11 -0
- package/studio/web/components/Palette.tsx +17 -0
- package/studio/web/components/PlatformCard.tsx +109 -0
- package/studio/web/components/PlatformIcon.tsx +19 -0
- package/studio/web/components/ProviderCard.tsx +80 -0
- package/studio/web/components/ProviderDetail.tsx +367 -0
- package/studio/web/components/ProviderLogo.tsx +20 -0
- package/studio/web/components/QueuePanel.tsx +77 -0
- package/studio/web/components/ReferenceActions.tsx +89 -0
- package/studio/web/components/ReferencePicker.tsx +136 -0
- package/studio/web/components/ResultMessage.tsx +7 -0
- package/studio/web/components/RuleForm.tsx +138 -0
- package/studio/web/components/RuleLog.tsx +151 -0
- package/studio/web/components/RunningTask.tsx +23 -0
- package/studio/web/components/SampleList.tsx +55 -0
- package/studio/web/components/SessionPanel.tsx +352 -0
- package/studio/web/components/SettingRow.tsx +14 -0
- package/studio/web/components/SettingsCategorySkeleton.tsx +25 -0
- package/studio/web/components/SidePanel.tsx +77 -0
- package/studio/web/components/Sidebar.tsx +289 -0
- package/studio/web/components/StageStepper.tsx +87 -0
- package/studio/web/components/StudioOffline.tsx +80 -0
- package/studio/web/components/TaskName.tsx +17 -0
- package/studio/web/components/TopBanners.tsx +30 -0
- package/studio/web/components/VideoOmnichatPanel.tsx +287 -0
- package/studio/web/components/VoiceAvatar.tsx +33 -0
- package/studio/web/components/VoiceCarousel.tsx +196 -0
- package/studio/web/components/VoiceCategory.tsx +9 -0
- package/studio/web/components/VoiceModal.tsx +39 -0
- package/studio/web/components/VoiceProfileCard.tsx +75 -0
- package/studio/web/components/VoiceProfilePicker.tsx +107 -0
- package/studio/web/components/VoiceProfilesSettings.tsx +150 -0
- package/studio/web/components/VoiceProviderCard.tsx +118 -0
- package/studio/web/components/VoiceProvidersCard.tsx +26 -0
- package/studio/web/components/WaitList.tsx +21 -0
- package/studio/web/components/icons.tsx +247 -0
- package/studio/web/components/ui/accordion.tsx +47 -0
- package/studio/web/components/ui/badge.tsx +18 -0
- package/studio/web/components/ui/calendar.tsx +43 -0
- package/studio/web/components/ui/chart.tsx +229 -0
- package/studio/web/components/ui/checkbox.tsx +26 -0
- package/studio/web/components/ui/cx.ts +2 -0
- package/studio/web/components/ui/date-time-picker.tsx +84 -0
- package/studio/web/components/ui/panel.tsx +23 -0
- package/studio/web/components/ui/picker.tsx +58 -0
- package/studio/web/components/ui/popover.tsx +24 -0
- package/studio/web/components/ui/select.tsx +89 -0
- package/studio/web/components/ui/skeleton.tsx +10 -0
- package/studio/web/components/ui/slider.tsx +68 -0
- package/studio/web/components/ui/switch.tsx +13 -0
- package/studio/web/components/ui/tooltip.test.tsx +30 -0
- package/studio/web/components/ui/tooltip.tsx +59 -0
- package/studio/web/hooks/useAccounts.ts +27 -0
- package/studio/web/hooks/useAdmin.ts +12 -0
- package/studio/web/hooks/useAnalytics.ts +21 -0
- package/studio/web/hooks/useAvatarAudioReactive.ts +87 -0
- package/studio/web/hooks/useBrowserConnect.ts +48 -0
- package/studio/web/hooks/useClonePlan.ts +14 -0
- package/studio/web/hooks/useConnected.ts +7 -0
- package/studio/web/hooks/useLiveQuery.ts +29 -0
- package/studio/web/hooks/useMenuCollapsed.ts +32 -0
- package/studio/web/hooks/useMicDevices.ts +53 -0
- package/studio/web/hooks/useMissingDms.ts +211 -0
- package/studio/web/hooks/useMissingSetupSteps.ts +26 -0
- package/studio/web/hooks/useNow.ts +11 -0
- package/studio/web/hooks/useOmniAgent.ts +278 -0
- package/studio/web/hooks/useOmniClaude.ts +124 -0
- package/studio/web/hooks/useOmniDock.ts +142 -0
- package/studio/web/hooks/useOmniGreeting.ts +60 -0
- package/studio/web/hooks/useOmniHotword.ts +128 -0
- package/studio/web/hooks/useOmnichat.ts +26 -0
- package/studio/web/hooks/useOnboarding.ts +27 -0
- package/studio/web/hooks/usePost.ts +23 -0
- package/studio/web/hooks/useQueue.ts +10 -0
- package/studio/web/hooks/useReferences.ts +20 -0
- package/studio/web/hooks/useRuleEditor.ts +101 -0
- package/studio/web/hooks/useRunner.ts +24 -0
- package/studio/web/hooks/useSaveAction.ts +23 -0
- package/studio/web/hooks/useSchedule.ts +11 -0
- package/studio/web/hooks/useServices.ts +10 -0
- package/studio/web/hooks/useSessions.ts +15 -0
- package/studio/web/hooks/useSettings.ts +11 -0
- package/studio/web/hooks/useSettingsSection.ts +30 -0
- package/studio/web/hooks/useSidePanel.ts +23 -0
- package/studio/web/hooks/useSound.ts +30 -0
- package/studio/web/hooks/useUsage.ts +11 -0
- package/studio/web/hooks/useVideoVoice.ts +36 -0
- package/studio/web/hooks/useVideos.ts +21 -0
- package/studio/web/hooks/useVoiceProfilePreview.ts +52 -0
- package/studio/web/hooks/useVoiceProfiles.ts +7 -0
- package/studio/web/hooks/useVoiceRunning.ts +10 -0
- package/studio/web/hooks/useVoiceStudioClosed.ts +8 -0
- package/studio/web/index.html +19 -0
- package/studio/web/lib/agent.ts +7 -0
- package/studio/web/lib/alerts.ts +210 -0
- package/studio/web/lib/analytics-metrics.ts +351 -0
- package/studio/web/lib/api.ts +70 -0
- package/studio/web/lib/audio.ts +39 -0
- package/studio/web/lib/avatars.ts +41 -0
- package/studio/web/lib/calendar.ts +218 -0
- package/studio/web/lib/caption-position.ts +249 -0
- package/studio/web/lib/carousel.ts +24 -0
- package/studio/web/lib/chime.ts +42 -0
- package/studio/web/lib/clone-voice.ts +55 -0
- package/studio/web/lib/export.ts +11 -0
- package/studio/web/lib/files.ts +8 -0
- package/studio/web/lib/format.ts +93 -0
- package/studio/web/lib/media.ts +29 -0
- package/studio/web/lib/mic-device.ts +72 -0
- package/studio/web/lib/missing-dms.ts +70 -0
- package/studio/web/lib/omni-cards.ts +42 -0
- package/studio/web/lib/omni-cascade.ts +1067 -0
- package/studio/web/lib/omni-greeting-audio.ts +24 -0
- package/studio/web/lib/omni-hotword.ts +231 -0
- package/studio/web/lib/omni-panel.ts +67 -0
- package/studio/web/lib/omni-realtime.ts +811 -0
- package/studio/web/lib/omni-ui.ts +402 -0
- package/studio/web/lib/omni-wait.ts +174 -0
- package/studio/web/lib/omnichat-api.ts +44 -0
- package/studio/web/lib/orb.ts +270 -0
- package/studio/web/lib/pcm-recorder.ts +115 -0
- package/studio/web/lib/platforms.ts +17 -0
- package/studio/web/lib/providers.ts +27 -0
- package/studio/web/lib/publish-draft.ts +52 -0
- package/studio/web/lib/publish-settings.ts +81 -0
- package/studio/web/lib/query-client.ts +122 -0
- package/studio/web/lib/references.ts +13 -0
- package/studio/web/lib/services.ts +40 -0
- package/studio/web/lib/sessions.ts +103 -0
- package/studio/web/lib/settings-categories.ts +58 -0
- package/studio/web/lib/sound-audio.ts +33 -0
- package/studio/web/lib/sound-timeline.ts +291 -0
- package/studio/web/lib/sse.ts +86 -0
- package/studio/web/lib/stage-history.ts +141 -0
- package/studio/web/lib/stages.ts +344 -0
- package/studio/web/lib/studio-offline.ts +60 -0
- package/studio/web/lib/upload.ts +24 -0
- package/studio/web/lib/video-tabs.ts +118 -0
- package/studio/web/lib/voice-profile-draft.ts +34 -0
- package/studio/web/lib/voice-profiles.ts +3 -0
- package/studio/web/main.tsx +14 -0
- package/studio/web/pages/AdminPage/index.tsx +123 -0
- package/studio/web/pages/AgentPage/components/Measurements.tsx +102 -0
- package/studio/web/pages/AgentPage/index.tsx +28 -0
- package/studio/web/pages/AnalyticsPage/components/About.tsx +52 -0
- package/studio/web/pages/AnalyticsPage/components/ChannelCards.tsx +106 -0
- package/studio/web/pages/AnalyticsPage/components/ChannelView.tsx +137 -0
- package/studio/web/pages/AnalyticsPage/components/CollectionStatus.tsx +46 -0
- package/studio/web/pages/AnalyticsPage/components/Comparison.tsx +68 -0
- package/studio/web/pages/AnalyticsPage/components/Diagnosis.tsx +50 -0
- package/studio/web/pages/AnalyticsPage/components/Highlights.tsx +49 -0
- package/studio/web/pages/AnalyticsPage/components/Hint.tsx +11 -0
- package/studio/web/pages/AnalyticsPage/components/HookVsBody.tsx +100 -0
- package/studio/web/pages/AnalyticsPage/components/HourlyWave.tsx +133 -0
- package/studio/web/pages/AnalyticsPage/components/Insights.tsx +70 -0
- package/studio/web/pages/AnalyticsPage/components/MetricCard.tsx +46 -0
- package/studio/web/pages/AnalyticsPage/components/PlanSection.tsx +40 -0
- package/studio/web/pages/AnalyticsPage/components/ProgressionChart.tsx +155 -0
- package/studio/web/pages/AnalyticsPage/components/ReelBarsChart.tsx +154 -0
- package/studio/web/pages/AnalyticsPage/components/ReelThumb.tsx +19 -0
- package/studio/web/pages/AnalyticsPage/components/ReelView.tsx +290 -0
- package/studio/web/pages/AnalyticsPage/components/ReelsTable.tsx +269 -0
- package/studio/web/pages/AnalyticsPage/components/RequestWithFocus.tsx +38 -0
- package/studio/web/pages/AnalyticsPage/components/SegmentedControl.tsx +35 -0
- package/studio/web/pages/AnalyticsPage/components/VsMedian.tsx +31 -0
- package/studio/web/pages/AnalyticsPage/index.tsx +17 -0
- package/studio/web/pages/GettingStartedPage/index.tsx +174 -0
- package/studio/web/pages/NewVideoPage/components/DeliverablesPicker.tsx +62 -0
- package/studio/web/pages/NewVideoPage/components/FormatPicker.tsx +33 -0
- package/studio/web/pages/NewVideoPage/index.tsx +133 -0
- package/studio/web/pages/NotFoundPage/index.tsx +9 -0
- package/studio/web/pages/OmnichatPage/components/NewFromLink.tsx +59 -0
- package/studio/web/pages/OmnichatPage/components/RuleListItem.tsx +64 -0
- package/studio/web/pages/OmnichatPage/components/RulePreview.tsx +14 -0
- package/studio/web/pages/OmnichatPage/components/RuleView.tsx +88 -0
- package/studio/web/pages/OmnichatPage/index.tsx +153 -0
- package/studio/web/pages/QueuePage/index.tsx +22 -0
- package/studio/web/pages/ReferencePage/components/ReferenceTexts.tsx +131 -0
- package/studio/web/pages/ReferencePage/index.tsx +216 -0
- package/studio/web/pages/ReferencesPage/components/NewReferenceForm.tsx +150 -0
- package/studio/web/pages/ReferencesPage/components/ReferenceCard.tsx +42 -0
- package/studio/web/pages/ReferencesPage/components/ReferenceGridSkeleton.tsx +31 -0
- package/studio/web/pages/ReferencesPage/index.tsx +67 -0
- package/studio/web/pages/SchedulePage/components/CalendarSkeleton.tsx +18 -0
- package/studio/web/pages/SchedulePage/components/DayView.tsx +177 -0
- package/studio/web/pages/SchedulePage/components/HourPicker.tsx +103 -0
- package/studio/web/pages/SchedulePage/components/MonthDayCell.tsx +111 -0
- package/studio/web/pages/SchedulePage/components/MonthView.tsx +47 -0
- package/studio/web/pages/SchedulePage/components/PlatformIcons.tsx +12 -0
- package/studio/web/pages/SchedulePage/components/PostThumb.tsx +15 -0
- package/studio/web/pages/SchedulePage/components/WeekColumn.tsx +75 -0
- package/studio/web/pages/SchedulePage/components/WeekView.tsx +35 -0
- package/studio/web/pages/SchedulePage/index.tsx +285 -0
- package/studio/web/pages/SettingsPage/components/AgentAccounts.tsx +263 -0
- package/studio/web/pages/SettingsPage/components/AgentCategory.tsx +20 -0
- package/studio/web/pages/SettingsPage/components/ModelPicker.tsx +49 -0
- package/studio/web/pages/SettingsPage/components/ModelsSettings.tsx +138 -0
- package/studio/web/pages/SettingsPage/components/PlatformsCategory.tsx +23 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/AccountStatus.tsx +29 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/AutoPublishPanel.tsx +90 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/BrowserConnect.tsx +62 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/CheckField.tsx +19 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/InstagramPanel.tsx +113 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/OmnichatSettingsPanel.tsx +146 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/SaveBar.tsx +33 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/SchedulePanel.tsx +132 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/SettingsCard.tsx +47 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/SettingsCardGroup.tsx +19 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/TextPanel.tsx +55 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/TiktokPanel.tsx +123 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/YoutubePanel.tsx +100 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/badges.tsx +15 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/index.tsx +40 -0
- package/studio/web/pages/SettingsPage/components/PublishingCategory/types.ts +10 -0
- package/studio/web/pages/SettingsPage/components/UsageCategory.tsx +389 -0
- package/studio/web/pages/SettingsPage/components/VoiceProvidersCategory.tsx +97 -0
- package/studio/web/pages/SettingsPage/index.tsx +85 -0
- package/studio/web/pages/VideoPage/components/AudioPlayer.tsx +113 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/AxisField.tsx +50 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/CaptionList.tsx +56 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/CaptionListItem.tsx +92 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/CaptionMargins.tsx +57 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/CaptionStyleFields.tsx +70 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/CaptionTextForm.tsx +87 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/ColorField.tsx +37 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/MarginField.tsx +59 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/NumberField.tsx +57 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/PositionControls.tsx +140 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/captionEditor.ts +215 -0
- package/studio/web/pages/VideoPage/components/CaptionPositionEditor/useCaptionPosition.ts +154 -0
- package/studio/web/pages/VideoPage/components/CarouselChangeRequest.tsx +72 -0
- package/studio/web/pages/VideoPage/components/CarouselCompositionStage.tsx +80 -0
- package/studio/web/pages/VideoPage/components/CarouselCreate.tsx +63 -0
- package/studio/web/pages/VideoPage/components/CarouselMissing.tsx +19 -0
- package/studio/web/pages/VideoPage/components/CarouselPublishStage.tsx +173 -0
- package/studio/web/pages/VideoPage/components/CarouselScriptStage.tsx +82 -0
- package/studio/web/pages/VideoPage/components/CarouselSlideCard.tsx +49 -0
- package/studio/web/pages/VideoPage/components/CarouselViewer.tsx +55 -0
- package/studio/web/pages/VideoPage/components/ChangedVoices.tsx +53 -0
- package/studio/web/pages/VideoPage/components/CompositionStage.tsx +78 -0
- package/studio/web/pages/VideoPage/components/CoverPicker.tsx +32 -0
- package/studio/web/pages/VideoPage/components/EditorStage.tsx +53 -0
- package/studio/web/pages/VideoPage/components/LineTakes.tsx +160 -0
- package/studio/web/pages/VideoPage/components/LineTextEditor.tsx +124 -0
- package/studio/web/pages/VideoPage/components/LineVoicePicker.tsx +37 -0
- package/studio/web/pages/VideoPage/components/MediaImage.tsx +25 -0
- package/studio/web/pages/VideoPage/components/MotionScriptStage.tsx +39 -0
- package/studio/web/pages/VideoPage/components/NarrationStage.tsx +70 -0
- package/studio/web/pages/VideoPage/components/PublishForm.tsx +387 -0
- package/studio/web/pages/VideoPage/components/PublishStage.tsx +76 -0
- package/studio/web/pages/VideoPage/components/PublishText.tsx +149 -0
- package/studio/web/pages/VideoPage/components/ScenesApprovalPanel.tsx +278 -0
- package/studio/web/pages/VideoPage/components/ScheduledInfo.tsx +72 -0
- package/studio/web/pages/VideoPage/components/ScriptApprovalPanel.tsx +189 -0
- package/studio/web/pages/VideoPage/components/ScriptStage.tsx +17 -0
- package/studio/web/pages/VideoPage/components/SequencePlayer.tsx +146 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/AddSound.tsx +117 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/AreaSelection.tsx +74 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/BedPanel.tsx +94 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/BedRow.tsx +45 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/CaptionOverlay.tsx +44 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/CaptionSaveBar.tsx +32 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/CaptionsPanel.tsx +22 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/ClipBlock.tsx +111 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/ClipPanel.tsx +76 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/CutsPanel.tsx +44 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/EditorTabBar.tsx +73 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/EffectChoice.tsx +46 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/EffectItem.tsx +89 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/EffectPanel.tsx +232 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/EffectsRow.tsx +21 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/Lane.tsx +39 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/MarkerRow.tsx +40 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/MuteButton.tsx +36 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/NumberInput.tsx +37 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/PlanWarnings.tsx +19 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/PlayerResizeHandle.tsx +50 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/PreviewControls.tsx +51 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/SceneRow.tsx +54 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/SettingsPanel.tsx +65 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/SoundLibrary.tsx +99 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/SoundPreview.tsx +82 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/SpeedPanel.tsx +128 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/TimelineDock.tsx +56 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/TimelineFooter.tsx +26 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/TimelineSkeleton.tsx +21 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/TimelineToolbar.tsx +160 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/TimelineTracks.tsx +121 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/TrackSidebar.tsx +30 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/VoiceRow.tsx +53 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/Waveform.tsx +97 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/clipActions.ts +50 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/effectActions.ts +161 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/index.tsx +161 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/timelineGeometry.ts +45 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/types.ts +43 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/useAutosave.ts +107 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/useEditorShortcuts.ts +168 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/useFitHeight.ts +40 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/useFollowPlayhead.ts +21 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/useListenMix.ts +43 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/usePlayback.ts +231 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/usePlayerWidth.ts +27 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/useSoundData.ts +124 -0
- package/studio/web/pages/VideoPage/components/SoundTimeline/useSoundTimeline.ts +511 -0
- package/studio/web/pages/VideoPage/components/StageDrawer/CompareVersions.tsx +111 -0
- package/studio/web/pages/VideoPage/components/StageDrawer/VersionCard.tsx +81 -0
- package/studio/web/pages/VideoPage/components/StageDrawer/VersionMedia.tsx +24 -0
- package/studio/web/pages/VideoPage/components/StageDrawer/VersionText.tsx +15 -0
- package/studio/web/pages/VideoPage/components/StageDrawer/index.tsx +109 -0
- package/studio/web/pages/VideoPage/components/StageProcess.tsx +126 -0
- package/studio/web/pages/VideoPage/components/StageResult.tsx +69 -0
- package/studio/web/pages/VideoPage/components/SwapReference.tsx +92 -0
- package/studio/web/pages/VideoPage/components/ThumbnailPanel.tsx +252 -0
- package/studio/web/pages/VideoPage/components/TimingPanel.tsx +89 -0
- package/studio/web/pages/VideoPage/components/VideoPlayer.tsx +18 -0
- package/studio/web/pages/VideoPage/components/VideoSkeleton.tsx +50 -0
- package/studio/web/pages/VideoPage/components/VideoVoiceInfo.tsx +33 -0
- package/studio/web/pages/VideoPage/components/VideoVoicePicker.tsx +165 -0
- package/studio/web/pages/VideoPage/components/VoicePauseBanner.tsx +56 -0
- package/studio/web/pages/VideoPage/components/WithLogo.tsx +10 -0
- package/studio/web/pages/VideoPage/index.tsx +295 -0
- package/studio/web/pages/VideosPage/components/PublishedOn.tsx +85 -0
- package/studio/web/pages/VideosPage/components/ServicesPanel.tsx +81 -0
- package/studio/web/pages/VideosPage/components/SessionsPanel.tsx +62 -0
- package/studio/web/pages/VideosPage/components/VideoListSkeleton.tsx +25 -0
- package/studio/web/pages/VideosPage/components/VideoRow.tsx +122 -0
- package/studio/web/pages/VideosPage/index.tsx +134 -0
- package/studio/web/pages/VoicePage/index.tsx +28 -0
- package/studio/web/router.tsx +201 -0
- package/studio/web/styles/base/elements.css +55 -0
- package/studio/web/styles/base/utilities.css +25 -0
- package/studio/web/styles/components/badge.css +33 -0
- package/studio/web/styles/components/claude-running.css +27 -0
- package/studio/web/styles/components/claude-session.css +212 -0
- package/studio/web/styles/components/claude-walking.css +92 -0
- package/studio/web/styles/components/clone-voice-save.css +136 -0
- package/studio/web/styles/components/clone-voice.css +379 -0
- package/studio/web/styles/components/controls.css +70 -0
- package/studio/web/styles/components/data-and-image.css +54 -0
- package/studio/web/styles/components/forms.css +132 -0
- package/studio/web/styles/components/human-banner.css +99 -0
- package/studio/web/styles/components/lightbox.css +50 -0
- package/studio/web/styles/components/markdown.css +68 -0
- package/studio/web/styles/components/modal.css +70 -0
- package/studio/web/styles/components/omni-cards.css +105 -0
- package/studio/web/styles/components/omni.css +859 -0
- package/studio/web/styles/components/omnichat.css +538 -0
- package/studio/web/styles/components/panel.css +115 -0
- package/studio/web/styles/components/platform-card.css +140 -0
- package/studio/web/styles/components/provider-card.css +132 -0
- package/studio/web/styles/components/queue.css +185 -0
- package/studio/web/styles/components/reference-actions.css +133 -0
- package/studio/web/styles/components/reference-picker.css +146 -0
- package/studio/web/styles/components/results-drawer.css +224 -0
- package/studio/web/styles/components/segmented.css +115 -0
- package/studio/web/styles/components/side-panel-tab.css +23 -0
- package/studio/web/styles/components/status-signals.css +66 -0
- package/studio/web/styles/components/stepper.css +208 -0
- package/studio/web/styles/components/table.css +19 -0
- package/studio/web/styles/components/tabs.css +24 -0
- package/studio/web/styles/components/ui/accordion.css +71 -0
- package/studio/web/styles/components/ui/chart.css +162 -0
- package/studio/web/styles/components/ui/checkbox.css +37 -0
- package/studio/web/styles/components/ui/date-picker.css +153 -0
- package/studio/web/styles/components/ui/select.css +110 -0
- package/studio/web/styles/components/ui/skeleton.css +25 -0
- package/studio/web/styles/components/ui/slider.css +81 -0
- package/studio/web/styles/components/ui/switch.css +41 -0
- package/studio/web/styles/components/ui/tooltip.css +24 -0
- package/studio/web/styles/components/voice-carousel.css +255 -0
- package/studio/web/styles/components/voice-editor.css +179 -0
- package/studio/web/styles/components/voice-grid.css +56 -0
- package/studio/web/styles/components/voice-profiles.css +192 -0
- package/studio/web/styles/design-system.md +136 -0
- package/studio/web/styles/index.css +116 -0
- package/studio/web/styles/layout/page.css +41 -0
- package/studio/web/styles/layout/sidebar-groups.css +39 -0
- package/studio/web/styles/layout/sidebar.css +111 -0
- package/studio/web/styles/pages/agent.css +26 -0
- package/studio/web/styles/pages/analytics/dashboard.css +614 -0
- package/studio/web/styles/pages/analytics/insights.css +48 -0
- package/studio/web/styles/pages/getting-started.css +166 -0
- package/studio/web/styles/pages/new-video/form.css +32 -0
- package/studio/web/styles/pages/not-found.css +59 -0
- package/studio/web/styles/pages/references.css +204 -0
- package/studio/web/styles/pages/schedule/calendar.css +541 -0
- package/studio/web/styles/pages/schedule/chip-states.css +60 -0
- package/studio/web/styles/pages/settings/models.css +72 -0
- package/studio/web/styles/pages/settings/shell.css +361 -0
- package/studio/web/styles/pages/settings/usage.css +63 -0
- package/studio/web/styles/pages/studio-offline.css +105 -0
- package/studio/web/styles/pages/video/caption-controls.css +194 -0
- package/studio/web/styles/pages/video/captions-grid.css +70 -0
- package/studio/web/styles/pages/video/captions.css +79 -0
- package/studio/web/styles/pages/video/editor-chat.css +103 -0
- package/studio/web/styles/pages/video/export.css +50 -0
- package/studio/web/styles/pages/video/frames.css +29 -0
- package/studio/web/styles/pages/video/fullscreen-stage.css +400 -0
- package/studio/web/styles/pages/video/instagram-carousel.css +309 -0
- package/studio/web/styles/pages/video/layout.css +285 -0
- package/studio/web/styles/pages/video/narration.css +138 -0
- package/studio/web/styles/pages/video/preview-overview.css +11 -0
- package/studio/web/styles/pages/video/processing-notice.css +34 -0
- package/studio/web/styles/pages/video/publish-when.css +76 -0
- package/studio/web/styles/pages/video/publish.css +97 -0
- package/studio/web/styles/pages/video/result.css +96 -0
- package/studio/web/styles/pages/video/scenes.css +167 -0
- package/studio/web/styles/pages/video/sound-timeline.css +672 -0
- package/studio/web/styles/pages/video/sound-toolbar.css +149 -0
- package/studio/web/styles/pages/video/take-player.css +100 -0
- package/studio/web/styles/pages/video/thumbnail.css +157 -0
- package/studio/web/styles/pages/video/timeline.css +117 -0
- package/studio/web/styles/pages/video/voice-picker.css +14 -0
- package/studio/web/styles/pages/video-list/active-row.css +27 -0
- package/studio/web/styles/pages/video-list/card-link.css +49 -0
- package/studio/web/styles/pages/video-list/list.css +86 -0
- package/studio/web/styles/theme/identity/details.css +204 -0
- package/studio/web/styles/theme/identity/shell.css +249 -0
- package/studio/web/styles/theme/identity/surfaces.css +183 -0
- package/studio/web/styles/theme/identity/titles-and-buttons.css +120 -0
- package/studio/web/styles/theme/no-borders/blocks.css +208 -0
- package/studio/web/styles/theme/no-borders/controls.css +256 -0
- package/studio/web/styles/tokens.css +245 -0
- package/studio/web/types/api.ts +2 -0
- package/studio/web/types/assets.d.ts +9 -0
- package/templates/brief.md +27 -0
- package/templates/captions.html +204 -0
- package/templates/carousel-composition.md +47 -0
- package/templates/carousel-script.md +60 -0
- package/templates/components/voiceavatar/README.md +87 -0
- package/templates/components/voiceavatar/demo.html +50 -0
- package/templates/components/voiceavatar/voiceavatar.js +415 -0
- package/templates/motion.md +80 -0
- package/templates/playbook.md +43 -0
- package/templates/reference.md +123 -0
- package/templates/scene.html +112 -0
- package/templates/scenes.example.json +96 -0
- package/templates/script.md +63 -0
- package/templates/slide.html +71 -0
- package/templates/wireframe.html +91 -0
- package/tools/analysis.mjs +300 -0
- package/tools/approval.mjs +442 -0
- package/tools/assemble.mjs +942 -0
- package/tools/build-motion.mjs +437 -0
- package/tools/captions.mjs +246 -0
- package/tools/carousel.mjs +558 -0
- package/tools/compose.mjs +307 -0
- package/tools/cuts.mjs +74 -0
- package/tools/editor.mjs +419 -0
- package/tools/epidemic-capture.js +54 -0
- package/tools/fanout.mjs +69 -0
- package/tools/history.mjs +70 -0
- package/tools/history.py +61 -0
- package/tools/job-queue.mjs +180 -0
- package/tools/job_queue.py +430 -0
- package/tools/lib/agents.mjs +412 -0
- package/tools/lib/channel.mjs +399 -0
- package/tools/lib/claude-settings.mjs +67 -0
- package/tools/lib/cli.mjs +9 -0
- package/tools/lib/fanout.mjs +234 -0
- package/tools/lib/http.mjs +94 -0
- package/tools/lib/index.js +14 -0
- package/tools/lib/mcp-server.mjs +69 -0
- package/tools/lib/metrics/metrics.mjs +204 -0
- package/tools/lib/narration.mjs +15 -0
- package/tools/lib/oauth-client.mjs +295 -0
- package/tools/lib/omnichat/config.mjs +139 -0
- package/tools/lib/omnichat/errors.mjs +42 -0
- package/tools/lib/omnichat/extract.mjs +82 -0
- package/tools/lib/omnichat/gate.mjs +151 -0
- package/tools/lib/omnichat/manual.mjs +166 -0
- package/tools/lib/omnichat/match.mjs +78 -0
- package/tools/lib/omnichat/pass.mjs +393 -0
- package/tools/lib/omnichat/record.mjs +208 -0
- package/tools/lib/omnichat/text.mjs +315 -0
- package/tools/lib/omnichat/webhook.mjs +166 -0
- package/tools/lib/pairing.mjs +99 -0
- package/tools/lib/paths.mjs +41 -0
- package/tools/lib/platforms/instagram.mjs +469 -0
- package/tools/lib/platforms/tiktok.mjs +343 -0
- package/tools/lib/platforms/youtube.mjs +228 -0
- package/tools/lib/publish/publish.mjs +244 -0
- package/tools/lib/schedule/schedule.mjs +191 -0
- package/tools/lib/service.mjs +134 -0
- package/tools/lib/skill-client.mjs +126 -0
- package/tools/lib/skills-release.mjs +196 -0
- package/tools/lib/testing.mjs +52 -0
- package/tools/lib/up.mjs +187 -0
- package/tools/metrics.mjs +415 -0
- package/tools/models.mjs +134 -0
- package/tools/narrate.mjs +257 -0
- package/tools/omni.mjs +298 -0
- package/tools/omni_paths.py +12 -0
- package/tools/omnichat.mjs +1577 -0
- package/tools/omnivideo.py +1122 -0
- package/tools/package.mjs +130 -0
- package/tools/platforms.mjs +236 -0
- package/tools/premiere.mjs +533 -0
- package/tools/publish.mjs +1496 -0
- package/tools/reference.mjs +1408 -0
- package/tools/render.mjs +426 -0
- package/tools/runner.mjs +156 -0
- package/tools/setup.mjs +466 -0
- package/tools/skills-release.mjs +93 -0
- package/tools/sound.mjs +1323 -0
- package/tools/soundtrack.mjs +217 -0
- package/tools/thumbnail.mjs +271 -0
- package/tools/timing.mjs +108 -0
- package/tools/usage.py +628 -0
- package/tools/voice-envelope.mjs +185 -0
- package/tools/voice.py +448 -0
- package/tools/voice_sample.py +75 -0
- package/tools/wireframe.mjs +230 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* The voice picker of the new video and of the Voice stage: the active voice comes checked.
|
|
2
|
+
Making another one active writes it to the config (applies to the next videos). */
|
|
3
|
+
|
|
4
|
+
import { useEffect, useRef } from "react";
|
|
5
|
+
import { Link } from "@tanstack/react-router";
|
|
6
|
+
import { useAvatarAudioReactive } from "../hooks/useAvatarAudioReactive";
|
|
7
|
+
import { useSaveAction } from "../hooks/useSaveAction";
|
|
8
|
+
import { api } from "../lib/api";
|
|
9
|
+
import { useVoiceProfilePreview } from "../hooks/useVoiceProfilePreview";
|
|
10
|
+
import type { VoiceProfile } from "../types/api";
|
|
11
|
+
import { Check, MicrophoneSlash, Plus } from "./icons";
|
|
12
|
+
import { ResultMessage } from "./ResultMessage";
|
|
13
|
+
import { VoiceProfileCard } from "./VoiceProfileCard";
|
|
14
|
+
|
|
15
|
+
export function VoiceProfilePicker({
|
|
16
|
+
profiles,
|
|
17
|
+
defaultId,
|
|
18
|
+
value,
|
|
19
|
+
onChange,
|
|
20
|
+
onDefaultChange,
|
|
21
|
+
silent,
|
|
22
|
+
onSilentChange,
|
|
23
|
+
}: {
|
|
24
|
+
profiles: VoiceProfile[];
|
|
25
|
+
defaultId: string | null;
|
|
26
|
+
value: string;
|
|
27
|
+
onChange: (id: string) => void;
|
|
28
|
+
onDefaultChange: () => void;
|
|
29
|
+
/* the new video's "Sem narração e voz" card, to the left of the voices: with `onSilentChange` it shows, and
|
|
30
|
+
`silent` says it is the chosen one (no voice then) */
|
|
31
|
+
silent?: boolean;
|
|
32
|
+
onSilentChange?: (silent: boolean) => void;
|
|
33
|
+
}) {
|
|
34
|
+
const { result, saving, save } = useSaveAction(onDefaultChange);
|
|
35
|
+
const current = profiles.find(p => p.id === value);
|
|
36
|
+
const { listening, listeningId, error: sampleError, listen, stop, analyser, clearError } = useVoiceProfilePreview();
|
|
37
|
+
const strip = useRef<HTMLDivElement>(null);
|
|
38
|
+
/* the playing voice's avatar moves faster */
|
|
39
|
+
useAvatarAudioReactive(listening === "playing", strip, analyser, r =>
|
|
40
|
+
listeningId
|
|
41
|
+
? Array.from(r.querySelectorAll<HTMLElement>(".voice-profile-card"))
|
|
42
|
+
.filter(c => c.getAttribute("data-voice") === listeningId)
|
|
43
|
+
.flatMap(c => Array.from(c.querySelectorAll<HTMLCanvasElement>(".voice-avatar")))
|
|
44
|
+
: [],
|
|
45
|
+
);
|
|
46
|
+
/* switched voice: the previous one's sample does not keep playing */
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
stop();
|
|
49
|
+
clearError();
|
|
50
|
+
}, [value]);
|
|
51
|
+
return (
|
|
52
|
+
<div className="field">
|
|
53
|
+
<span>Voz</span>
|
|
54
|
+
<div ref={strip} className="profiles-strip" role="radiogroup" aria-label="Voz">
|
|
55
|
+
{onSilentChange && (
|
|
56
|
+
<button
|
|
57
|
+
type="button"
|
|
58
|
+
className={`voice-profile silent${silent ? " chosen" : ""}`}
|
|
59
|
+
onClick={() => onSilentChange(!silent)}
|
|
60
|
+
aria-pressed={!!silent}
|
|
61
|
+
title="Pula o roteiro falado, a narração e a voz: vai direto para o roteiro de motion, a composição e o editor"
|
|
62
|
+
>
|
|
63
|
+
<span className="avatar-silent">
|
|
64
|
+
<MicrophoneSlash />
|
|
65
|
+
</span>
|
|
66
|
+
<b>Sem narração e voz</b>
|
|
67
|
+
<small>Só motion</small>
|
|
68
|
+
</button>
|
|
69
|
+
)}
|
|
70
|
+
{profiles.map(p => (
|
|
71
|
+
<VoiceProfileCard
|
|
72
|
+
key={p.id}
|
|
73
|
+
profile={p}
|
|
74
|
+
chosen={!silent && p.id === value}
|
|
75
|
+
onChoose={() => {
|
|
76
|
+
onSilentChange?.(false);
|
|
77
|
+
onChange(p.id);
|
|
78
|
+
}}
|
|
79
|
+
listening={listeningId === p.id ? listening : null}
|
|
80
|
+
onListen={() => listen(p.id)}
|
|
81
|
+
/>
|
|
82
|
+
))}
|
|
83
|
+
<Link to="/settings/$category" params={{ category: "voice" }} className="voice-profile more">
|
|
84
|
+
<span className="avatar-more">
|
|
85
|
+
<Plus />
|
|
86
|
+
</span>
|
|
87
|
+
<b>Nova voz</b>
|
|
88
|
+
<small>Em Configurações</small>
|
|
89
|
+
</Link>
|
|
90
|
+
</div>
|
|
91
|
+
{!silent && current && current.id !== defaultId && (
|
|
92
|
+
<div className="profile-actions">
|
|
93
|
+
<button
|
|
94
|
+
type="button"
|
|
95
|
+
className="button small"
|
|
96
|
+
disabled={saving}
|
|
97
|
+
onClick={() => save(() => api.settings["voice-profile"].default.$post({ json: { id: current.id } }))}
|
|
98
|
+
>
|
|
99
|
+
<Check className="ic" /> {saving ? "Gravando…" : `Usar “${current.name}” como voz ativa`}
|
|
100
|
+
</button>
|
|
101
|
+
</div>
|
|
102
|
+
)}
|
|
103
|
+
{sampleError && <p className="response error">{sampleError}</p>}
|
|
104
|
+
<ResultMessage result={result} />
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* Configurações → Voz. The page is just the voice carousel: from it a voice becomes the active one
|
|
2
|
+
or opens to edit, and the last item adds a voice.
|
|
3
|
+
|
|
4
|
+
Adding opens the clone modal (CloneVoiceDialog), which also leads to "já tenho voz criada nos
|
|
5
|
+
provedores"; editing opens the same frame, in the view of the existing voice. Both paths are
|
|
6
|
+
EditVoiceDialog: avatar and name on the right, providers on the left (details in
|
|
7
|
+
EditVoiceDialog/index.tsx).
|
|
8
|
+
|
|
9
|
+
"Refazer voz" (only on an existing voice, with a clone on some provider) swaps this frame for
|
|
10
|
+
the clone one, in the redo view: the stored recording comes attached and more can be recorded,
|
|
11
|
+
or everything deleted and recorded again. The voice stays the same (name, avatar, order); the
|
|
12
|
+
clone is created again on each provider. */
|
|
13
|
+
|
|
14
|
+
import { useEffect, useState, type ReactNode } from "react";
|
|
15
|
+
import { api, send } from "../lib/api";
|
|
16
|
+
import type { Settings } from "../types/api";
|
|
17
|
+
import { CloneVoiceDialog } from "./CloneVoiceDialog";
|
|
18
|
+
import { EditVoiceDialog } from "./EditVoiceDialog";
|
|
19
|
+
import { VoiceCarousel } from "./VoiceCarousel";
|
|
20
|
+
|
|
21
|
+
/* `aside` is the card next to the carousel (70 % the carousel, the rest the card) */
|
|
22
|
+
export function VoiceProfilesSettings({
|
|
23
|
+
settings,
|
|
24
|
+
reload,
|
|
25
|
+
aside,
|
|
26
|
+
}: {
|
|
27
|
+
settings: Settings;
|
|
28
|
+
reload: () => void;
|
|
29
|
+
aside?: ReactNode;
|
|
30
|
+
}) {
|
|
31
|
+
const profiles = settings.voice.profiles;
|
|
32
|
+
/* "Adicionar voz" opens the clone modal; from there, "já tenho voz criada nos provedores"
|
|
33
|
+
switches to the Voice IDs form. Editing a voice opens only the form. */
|
|
34
|
+
const [cloning, setCloning] = useState(false);
|
|
35
|
+
const [editing, setEditing] = useState<{ id: string | null; warnings?: string[] } | null>(null);
|
|
36
|
+
/* the id of the voice being redone: opens the clone modal with its recording attached */
|
|
37
|
+
const [redoing, setRedoing] = useState<string | null>(null);
|
|
38
|
+
const [focus, setFocus] = useState<string | null>(null);
|
|
39
|
+
/* what the removal did on each provider; stays under the carousel until the next action */
|
|
40
|
+
const [message, setMessage] = useState<string | null>(null);
|
|
41
|
+
/* the clone creates the voice by itself: when the new profile shows up, it comes to the center.
|
|
42
|
+
If some provider failed, the voice opens in edit with the warning, to create again only there */
|
|
43
|
+
const [cloned, setCloned] = useState<{ before: string[]; warnings: string[] } | null>(null);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (!cloned) return;
|
|
46
|
+
const added = profiles.find(p => !cloned.before.includes(p.id));
|
|
47
|
+
if (!added) return;
|
|
48
|
+
setFocus(added.id);
|
|
49
|
+
setCloned(null);
|
|
50
|
+
setCloning(false);
|
|
51
|
+
setEditing(cloned.warnings.length ? { id: added.id, warnings: cloned.warnings } : null);
|
|
52
|
+
}, [profiles, cloned]);
|
|
53
|
+
|
|
54
|
+
const activate = async (id: string) => {
|
|
55
|
+
const r = await send(api.settings["voice-profile"].default.$post({ json: { id } }));
|
|
56
|
+
if (r.ok) reload();
|
|
57
|
+
return r;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<>
|
|
62
|
+
<div className="voice-grid">
|
|
63
|
+
<section className="panel">
|
|
64
|
+
<VoiceCarousel
|
|
65
|
+
profiles={profiles}
|
|
66
|
+
defaultId={settings.voice.default_profile}
|
|
67
|
+
focus={focus}
|
|
68
|
+
onActivate={activate}
|
|
69
|
+
onEdit={id => {
|
|
70
|
+
setMessage(null);
|
|
71
|
+
setEditing({ id });
|
|
72
|
+
}}
|
|
73
|
+
onAdd={() => {
|
|
74
|
+
setMessage(null);
|
|
75
|
+
setCloning(true);
|
|
76
|
+
}}
|
|
77
|
+
/>
|
|
78
|
+
{message && <p className="response ok center">{message}</p>}
|
|
79
|
+
</section>
|
|
80
|
+
{aside}
|
|
81
|
+
</div>
|
|
82
|
+
{cloning && (
|
|
83
|
+
<CloneVoiceDialog
|
|
84
|
+
settings={settings}
|
|
85
|
+
reload={reload}
|
|
86
|
+
onClose={() => setCloning(false)}
|
|
87
|
+
onAlreadyHave={() => {
|
|
88
|
+
setCloning(false);
|
|
89
|
+
setEditing({ id: null });
|
|
90
|
+
}}
|
|
91
|
+
onCreate={warnings => {
|
|
92
|
+
setCloned({ before: profiles.map(p => p.id), warnings });
|
|
93
|
+
reload();
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
)}
|
|
97
|
+
{redoing &&
|
|
98
|
+
(() => {
|
|
99
|
+
const profile = profiles.find(p => p.id === redoing);
|
|
100
|
+
return (
|
|
101
|
+
profile && (
|
|
102
|
+
<CloneVoiceDialog
|
|
103
|
+
key={profile.id}
|
|
104
|
+
settings={settings}
|
|
105
|
+
reload={reload}
|
|
106
|
+
redo={profile}
|
|
107
|
+
onClose={() => setRedoing(null)}
|
|
108
|
+
onRedone={output => {
|
|
109
|
+
setRedoing(null);
|
|
110
|
+
setFocus(profile.id);
|
|
111
|
+
setMessage(output);
|
|
112
|
+
reload();
|
|
113
|
+
}}
|
|
114
|
+
/>
|
|
115
|
+
)
|
|
116
|
+
);
|
|
117
|
+
})()}
|
|
118
|
+
{editing &&
|
|
119
|
+
(() => {
|
|
120
|
+
const profile = profiles.find(p => p.id === editing.id);
|
|
121
|
+
return (
|
|
122
|
+
<EditVoiceDialog
|
|
123
|
+
key={profile?.id ?? "new"}
|
|
124
|
+
settings={settings}
|
|
125
|
+
profile={profile}
|
|
126
|
+
reload={reload}
|
|
127
|
+
warnings={editing.warnings}
|
|
128
|
+
onClose={() => setEditing(null)}
|
|
129
|
+
onSave={id => {
|
|
130
|
+
setFocus(id);
|
|
131
|
+
setEditing(null);
|
|
132
|
+
}}
|
|
133
|
+
onCloneInstead={() => {
|
|
134
|
+
setEditing(null);
|
|
135
|
+
setCloning(true);
|
|
136
|
+
}}
|
|
137
|
+
onRedo={() => {
|
|
138
|
+
setEditing(null);
|
|
139
|
+
setRedoing(editing.id);
|
|
140
|
+
}}
|
|
141
|
+
onRemove={output => {
|
|
142
|
+
setEditing(null);
|
|
143
|
+
setMessage(output);
|
|
144
|
+
}}
|
|
145
|
+
/>
|
|
146
|
+
);
|
|
147
|
+
})()}
|
|
148
|
+
</>
|
|
149
|
+
);
|
|
150
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* The provider card: priority arrows on the left (only with more than one checked), the logo, the
|
|
2
|
+
name and the status; on the right the play (the voice's sample on that provider, when `listen`
|
|
3
|
+
comes) and "Configurar". Without a key, or without the voice created on the provider, there is
|
|
4
|
+
no checkbox; VoiceStudio with the app closed is dimmed. */
|
|
5
|
+
|
|
6
|
+
import type { ReactNode } from "react";
|
|
7
|
+
import { PROVIDER_NAME, type VoiceProviderId } from "../lib/providers";
|
|
8
|
+
import { ArrowDown, ArrowUp, Gear, Pause, Play } from "./icons";
|
|
9
|
+
import { ProviderCard } from "./ProviderCard";
|
|
10
|
+
|
|
11
|
+
export function VoiceProviderCard({
|
|
12
|
+
id,
|
|
13
|
+
checked,
|
|
14
|
+
has,
|
|
15
|
+
closed = false,
|
|
16
|
+
noClone = false,
|
|
17
|
+
noVoice = false,
|
|
18
|
+
position,
|
|
19
|
+
total,
|
|
20
|
+
disabled,
|
|
21
|
+
onToggle,
|
|
22
|
+
onMove,
|
|
23
|
+
onConfigure,
|
|
24
|
+
listen,
|
|
25
|
+
}: {
|
|
26
|
+
id: VoiceProviderId;
|
|
27
|
+
checked: boolean;
|
|
28
|
+
has: boolean;
|
|
29
|
+
closed?: boolean;
|
|
30
|
+
/* on edit: the voice doesn't exist on this provider yet (no Voice ID). It can't be checked;
|
|
31
|
+
"Configurar" is where it gets cloned or the Voice ID pasted, and then it comes checked */
|
|
32
|
+
noVoice?: boolean;
|
|
33
|
+
/* on clone creation: the key is fine, but the provider plan doesn't allow cloning through the API */
|
|
34
|
+
noClone?: boolean;
|
|
35
|
+
/* the position among the checked ones (-1 if not checked) and how many are checked */
|
|
36
|
+
position: number;
|
|
37
|
+
total: number;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
onToggle: () => void;
|
|
40
|
+
onMove: (d: -1 | 1) => void;
|
|
41
|
+
onConfigure: () => void;
|
|
42
|
+
listen?: { playing: boolean; busy: boolean; onListen: () => void };
|
|
43
|
+
}) {
|
|
44
|
+
const name = PROVIDER_NAME[id];
|
|
45
|
+
const subtitle = closed
|
|
46
|
+
? "Abra o app na máquina"
|
|
47
|
+
: id === "voicestudio"
|
|
48
|
+
? "Local, precisa do app aberto"
|
|
49
|
+
: has && noClone
|
|
50
|
+
? "Conectado, mas o plano não deixa clonar"
|
|
51
|
+
: has && noVoice
|
|
52
|
+
? "Conectado, sem esta voz criada"
|
|
53
|
+
: has
|
|
54
|
+
? "Provider conectado"
|
|
55
|
+
: "Provider não conectado";
|
|
56
|
+
let start: ReactNode = null;
|
|
57
|
+
if (total > 1) {
|
|
58
|
+
start = (
|
|
59
|
+
<span className="provider-card-order">
|
|
60
|
+
{checked && (
|
|
61
|
+
<>
|
|
62
|
+
<button
|
|
63
|
+
type="button"
|
|
64
|
+
className="button small"
|
|
65
|
+
disabled={disabled || position === 0}
|
|
66
|
+
onClick={() => onMove(-1)}
|
|
67
|
+
aria-label={`Subir ${name}`}
|
|
68
|
+
>
|
|
69
|
+
<ArrowUp weight="bold" />
|
|
70
|
+
</button>
|
|
71
|
+
<button
|
|
72
|
+
type="button"
|
|
73
|
+
className="button small"
|
|
74
|
+
disabled={disabled || position === total - 1}
|
|
75
|
+
onClick={() => onMove(1)}
|
|
76
|
+
aria-label={`Descer ${name}`}
|
|
77
|
+
>
|
|
78
|
+
<ArrowDown weight="bold" />
|
|
79
|
+
</button>
|
|
80
|
+
</>
|
|
81
|
+
)}
|
|
82
|
+
</span>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
return (
|
|
86
|
+
<ProviderCard
|
|
87
|
+
id={id}
|
|
88
|
+
name={name}
|
|
89
|
+
checked={checked}
|
|
90
|
+
has={has}
|
|
91
|
+
disabled={disabled}
|
|
92
|
+
subtitle={subtitle}
|
|
93
|
+
alert={has && noClone && !closed}
|
|
94
|
+
inactive={closed}
|
|
95
|
+
selectable={(has && !closed && !noVoice) || checked}
|
|
96
|
+
onToggle={onToggle}
|
|
97
|
+
start={start}
|
|
98
|
+
end={
|
|
99
|
+
<>
|
|
100
|
+
{listen && (
|
|
101
|
+
<button
|
|
102
|
+
type="button"
|
|
103
|
+
className="button small"
|
|
104
|
+
disabled={disabled || closed || listen.busy}
|
|
105
|
+
onClick={listen.onListen}
|
|
106
|
+
aria-label={`Ouvir a voz em ${name}`}
|
|
107
|
+
>
|
|
108
|
+
{listen.playing ? <Pause weight="fill" /> : <Play weight="fill" />}
|
|
109
|
+
</button>
|
|
110
|
+
)}
|
|
111
|
+
<button type="button" className="button small" disabled={disabled || closed} onClick={onConfigure}>
|
|
112
|
+
<Gear className="ic" /> Configurar
|
|
113
|
+
</button>
|
|
114
|
+
</>
|
|
115
|
+
}
|
|
116
|
+
/>
|
|
117
|
+
);
|
|
118
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* The whole card leads to Provedores de voz; "Configurar" is only the button look inside it */
|
|
2
|
+
|
|
3
|
+
import { Link } from "@tanstack/react-router";
|
|
4
|
+
import { Gear } from "./icons";
|
|
5
|
+
import { ProviderLogo } from "./ProviderLogo";
|
|
6
|
+
|
|
7
|
+
export function VoiceProvidersCard() {
|
|
8
|
+
return (
|
|
9
|
+
<Link to="/settings/$category" params={{ category: "providers" }} className="providers-card">
|
|
10
|
+
<span className="avatar-group" aria-hidden="true">
|
|
11
|
+
{["elevenlabs", "cartesia", "fish"].map(id => (
|
|
12
|
+
<ProviderLogo key={id} id={id} size={48} />
|
|
13
|
+
))}
|
|
14
|
+
</span>
|
|
15
|
+
<b>Provedores de voz</b>
|
|
16
|
+
<p>
|
|
17
|
+
Provedores são os serviços que transformam o texto de cada fala em áudio com a voz clonada do canal: ElevenLabs,
|
|
18
|
+
Fish Audio e Cartesia, na nuvem, e o VoiceStudio, que roda nesta máquina. Cada um tem a sua chave e o seu
|
|
19
|
+
modelo, e o studio tenta na ordem de prioridade, passando ao próximo se um falhar.
|
|
20
|
+
</p>
|
|
21
|
+
<span className="button large">
|
|
22
|
+
<Gear className="ic" /> Configurar
|
|
23
|
+
</span>
|
|
24
|
+
</Link>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useNow } from "../hooks/useNow";
|
|
2
|
+
import { formatElapsed, ticketOrigin, toMs } from "../lib/format";
|
|
3
|
+
import type { Ticket } from "../types/api";
|
|
4
|
+
import { TaskName } from "./TaskName";
|
|
5
|
+
|
|
6
|
+
/* the position is in the whole machine queue, even when the list shows one video only */
|
|
7
|
+
export function WaitList({ queue, all }: { queue: Ticket[]; all: Ticket[] }) {
|
|
8
|
+
const now = useNow();
|
|
9
|
+
return (
|
|
10
|
+
<ol className="wait-list">
|
|
11
|
+
{queue.map(t => (
|
|
12
|
+
<li key={t.id}>
|
|
13
|
+
<span className="wait-list-pos">{all.findIndex(x => x.id === t.id) + 1}º</span>
|
|
14
|
+
<TaskName ticket={t} />
|
|
15
|
+
<span className="subtle">{ticketOrigin(t)}</span>
|
|
16
|
+
<span className="time">Esperando há {formatElapsed(now - (toMs(t.arrived_at) ?? now))}</span>
|
|
17
|
+
</li>
|
|
18
|
+
))}
|
|
19
|
+
</ol>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/* Studio icons: Hugeicons (@hugeicons/react + @hugeicons/core-free-icons, rounded stroke).
|
|
2
|
+
Every icon comes out of here with the same props (`weight`, `size`, `className`), so pages
|
|
3
|
+
don't know the library. Hugeicons measure 1em here, so the size comes from the font-size
|
|
4
|
+
where the icon sits; `.ic` aligns it inside a line. `weight="bold"` thickens the stroke and
|
|
5
|
+
`weight="fill"` fills the shape (play, pause, stop, circle). */
|
|
6
|
+
|
|
7
|
+
import type { ReactNode, SVGProps } from "react";
|
|
8
|
+
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
|
|
9
|
+
import {
|
|
10
|
+
Add01Icon,
|
|
11
|
+
ArrowTurnBackwardIcon,
|
|
12
|
+
Mail01Icon,
|
|
13
|
+
SecurityCheckIcon,
|
|
14
|
+
SubtitleIcon,
|
|
15
|
+
CallEnd01Icon,
|
|
16
|
+
MicOff01Icon,
|
|
17
|
+
ThumbsDownIcon,
|
|
18
|
+
ThumbsUpIcon,
|
|
19
|
+
MessageMultiple01Icon,
|
|
20
|
+
ArrowDown01Icon,
|
|
21
|
+
Copy01Icon,
|
|
22
|
+
Download01Icon,
|
|
23
|
+
Exchange01Icon,
|
|
24
|
+
FloppyDiskIcon,
|
|
25
|
+
FolderOpenIcon,
|
|
26
|
+
ImageDone01Icon,
|
|
27
|
+
Link01Icon,
|
|
28
|
+
Plug01Icon,
|
|
29
|
+
PowerIcon,
|
|
30
|
+
SentIcon,
|
|
31
|
+
ShuffleIcon,
|
|
32
|
+
SidebarRightIcon,
|
|
33
|
+
Undo02Icon,
|
|
34
|
+
ArrowDownLeft01Icon,
|
|
35
|
+
ArrowDownRight01Icon,
|
|
36
|
+
ArrowLeft01Icon,
|
|
37
|
+
ArrowRight01Icon,
|
|
38
|
+
ArrowUp01Icon,
|
|
39
|
+
ArrowUpLeft01Icon,
|
|
40
|
+
ArrowUpRight01Icon,
|
|
41
|
+
ArrowExpand01Icon,
|
|
42
|
+
BlockedIcon,
|
|
43
|
+
Calendar01Icon,
|
|
44
|
+
Cancel01Icon,
|
|
45
|
+
MinusSignIcon,
|
|
46
|
+
Chart01Icon,
|
|
47
|
+
Chat01Icon,
|
|
48
|
+
DashboardSquare01Icon,
|
|
49
|
+
ViewIcon,
|
|
50
|
+
Radar01Icon,
|
|
51
|
+
FavouriteIcon,
|
|
52
|
+
Forward01Icon,
|
|
53
|
+
Bookmark01Icon,
|
|
54
|
+
Share08Icon,
|
|
55
|
+
UserMultipleIcon,
|
|
56
|
+
Table01Icon,
|
|
57
|
+
Idea01Icon,
|
|
58
|
+
TaskDone01Icon,
|
|
59
|
+
Target01Icon,
|
|
60
|
+
MicroscopeIcon,
|
|
61
|
+
FilmRoll01Icon,
|
|
62
|
+
Flag01Icon,
|
|
63
|
+
NoteIcon,
|
|
64
|
+
Activity01Icon,
|
|
65
|
+
CircleIcon,
|
|
66
|
+
Clock01Icon,
|
|
67
|
+
HistoryIcon,
|
|
68
|
+
Delete02Icon,
|
|
69
|
+
Key01Icon,
|
|
70
|
+
Layers01Icon,
|
|
71
|
+
LeftToRightListBulletIcon,
|
|
72
|
+
Mic01Icon,
|
|
73
|
+
PauseIcon,
|
|
74
|
+
PencilEdit01Icon,
|
|
75
|
+
PlayCircleIcon,
|
|
76
|
+
PlayIcon,
|
|
77
|
+
RefreshIcon,
|
|
78
|
+
Settings01Icon,
|
|
79
|
+
SlidersHorizontalIcon,
|
|
80
|
+
SparklesIcon,
|
|
81
|
+
StopIcon,
|
|
82
|
+
Tick02Icon,
|
|
83
|
+
Upload01Icon,
|
|
84
|
+
Video01Icon,
|
|
85
|
+
InformationCircleIcon,
|
|
86
|
+
ChartIncreaseIcon,
|
|
87
|
+
ChartDecreaseIcon,
|
|
88
|
+
ColumnInsertIcon,
|
|
89
|
+
ScissorIcon,
|
|
90
|
+
Cursor01Icon,
|
|
91
|
+
BoundingBoxIcon,
|
|
92
|
+
VolumeHighIcon,
|
|
93
|
+
VolumeOffIcon,
|
|
94
|
+
SidebarLeftIcon,
|
|
95
|
+
Knife01Icon,
|
|
96
|
+
CarouselHorizontalIcon,
|
|
97
|
+
ArrowLeft02Icon,
|
|
98
|
+
ArrowRight02Icon,
|
|
99
|
+
} from "@hugeicons/core-free-icons";
|
|
100
|
+
|
|
101
|
+
type Props = Omit<SVGProps<SVGSVGElement>, "ref" | "strokeWidth" | "size"> & {
|
|
102
|
+
weight?: "regular" | "bold" | "fill" | "duotone";
|
|
103
|
+
size?: string | number;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
function icon(svg: IconSvgElement, name: string) {
|
|
107
|
+
const Icon = ({ weight = "regular", size = "1em", ...rest }: Props) => (
|
|
108
|
+
<HugeiconsIcon
|
|
109
|
+
icon={svg}
|
|
110
|
+
size={size}
|
|
111
|
+
strokeWidth={weight === "bold" ? 2.2 : 1.6}
|
|
112
|
+
{...(weight === "fill" ? { fill: "currentColor" } : {})}
|
|
113
|
+
{...rest}
|
|
114
|
+
/>
|
|
115
|
+
);
|
|
116
|
+
Icon.displayName = name;
|
|
117
|
+
return Icon;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Claude's mark (the official svg of the Claude Code extension), in the brand color */
|
|
121
|
+
export function ClaudeMark({
|
|
122
|
+
size = "1em",
|
|
123
|
+
...rest
|
|
124
|
+
}: Omit<SVGProps<SVGSVGElement>, "ref"> & { size?: string | number }) {
|
|
125
|
+
return (
|
|
126
|
+
<svg viewBox="0 0 24 24" width={size} height={size} aria-hidden="true" {...rest}>
|
|
127
|
+
<path
|
|
128
|
+
fill="#D97757"
|
|
129
|
+
fillRule="nonzero"
|
|
130
|
+
d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"
|
|
131
|
+
/>
|
|
132
|
+
</svg>
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export const ArrowClockwise = icon(RefreshIcon, "ArrowClockwise");
|
|
137
|
+
export const ArrowCounterClockwise = icon(Undo02Icon, "ArrowCounterClockwise");
|
|
138
|
+
export const ArrowDown = icon(ArrowDown01Icon, "ArrowDown");
|
|
139
|
+
export const ArrowDownLeft = icon(ArrowDownLeft01Icon, "ArrowDownLeft");
|
|
140
|
+
export const ArrowDownRight = icon(ArrowDownRight01Icon, "ArrowDownRight");
|
|
141
|
+
export const ArrowLeft = icon(ArrowLeft01Icon, "ArrowLeft");
|
|
142
|
+
export const ArrowRight = icon(ArrowRight01Icon, "ArrowRight");
|
|
143
|
+
export const ArrowUp = icon(ArrowUp01Icon, "ArrowUp");
|
|
144
|
+
export const ArrowUpLeft = icon(ArrowUpLeft01Icon, "ArrowUpLeft");
|
|
145
|
+
export const ArrowUpRight = icon(ArrowUpRight01Icon, "ArrowUpRight");
|
|
146
|
+
export const ArrowExpand = icon(ArrowExpand01Icon, "ArrowExpand");
|
|
147
|
+
export const CalendarBlank = icon(Calendar01Icon, "CalendarBlank");
|
|
148
|
+
export const Chart = icon(Chart01Icon, "Chart");
|
|
149
|
+
export const Dashboard = icon(DashboardSquare01Icon, "Dashboard");
|
|
150
|
+
/* the Dashboard tabs: metrics and sections */
|
|
151
|
+
export const Eye = icon(ViewIcon, "Eye");
|
|
152
|
+
export const Radar = icon(Radar01Icon, "Radar");
|
|
153
|
+
export const Heart = icon(FavouriteIcon, "Heart");
|
|
154
|
+
export const FastForward = icon(Forward01Icon, "FastForward");
|
|
155
|
+
export const Bookmark = icon(Bookmark01Icon, "Bookmark");
|
|
156
|
+
export const ShareNetwork = icon(Share08Icon, "ShareNetwork");
|
|
157
|
+
export const Users = icon(UserMultipleIcon, "Users");
|
|
158
|
+
export const Table = icon(Table01Icon, "Table");
|
|
159
|
+
export const Lightbulb = icon(Idea01Icon, "Lightbulb");
|
|
160
|
+
export const ListChecks = icon(TaskDone01Icon, "ListChecks");
|
|
161
|
+
export const Target = icon(Target01Icon, "Target");
|
|
162
|
+
export const Microscope = icon(MicroscopeIcon, "Microscope");
|
|
163
|
+
export const FilmStrip = icon(FilmRoll01Icon, "FilmStrip");
|
|
164
|
+
export const Flag = icon(Flag01Icon, "Flag");
|
|
165
|
+
export const Notepad = icon(NoteIcon, "Notepad");
|
|
166
|
+
export const Activity = icon(Activity01Icon, "Activity");
|
|
167
|
+
export const ChatCircleText = icon(Chat01Icon, "ChatCircleText");
|
|
168
|
+
export const Envelope = icon(Mail01Icon, "Envelope");
|
|
169
|
+
export const ArrowBendUpLeft = icon(ArrowTurnBackwardIcon, "ArrowBendUpLeft");
|
|
170
|
+
export const ChatsCircle = icon(MessageMultiple01Icon, "ChatsCircle");
|
|
171
|
+
export const Check = icon(Tick02Icon, "Check");
|
|
172
|
+
export const Circle = icon(CircleIcon, "Circle");
|
|
173
|
+
export const Clock = icon(Clock01Icon, "Clock");
|
|
174
|
+
export const History = icon(HistoryIcon, "History");
|
|
175
|
+
export const Copy = icon(Copy01Icon, "Copy");
|
|
176
|
+
export const Dot = icon(CircleIcon, "Dot");
|
|
177
|
+
export const DownloadSimple = icon(Download01Icon, "DownloadSimple");
|
|
178
|
+
export const Exchange = icon(Exchange01Icon, "Exchange");
|
|
179
|
+
export const FloppyDisk = icon(FloppyDiskIcon, "FloppyDisk");
|
|
180
|
+
export const FolderOpen = icon(FolderOpenIcon, "FolderOpen");
|
|
181
|
+
export const ImageSquare = icon(ImageDone01Icon, "ImageSquare");
|
|
182
|
+
export const Key = icon(Key01Icon, "Key");
|
|
183
|
+
export const ShieldCheck = icon(SecurityCheckIcon, "ShieldCheck");
|
|
184
|
+
export const LinkSimple = icon(Link01Icon, "LinkSimple");
|
|
185
|
+
export const Microphone = icon(Mic01Icon, "Microphone");
|
|
186
|
+
export const MicrophoneSlash = icon(MicOff01Icon, "MicrophoneSlash");
|
|
187
|
+
export const PhoneDisconnect = icon(CallEnd01Icon, "PhoneDisconnect");
|
|
188
|
+
export const ThumbsUp = icon(ThumbsUpIcon, "ThumbsUp");
|
|
189
|
+
export const ThumbsDown = icon(ThumbsDownIcon, "ThumbsDown");
|
|
190
|
+
export const PaperPlane = icon(SentIcon, "PaperPlane");
|
|
191
|
+
export const Pause = icon(PauseIcon, "Pause");
|
|
192
|
+
export const Gear = icon(Settings01Icon, "Gear");
|
|
193
|
+
export const Play = icon(PlayIcon, "Play");
|
|
194
|
+
export const PlayCircle = icon(PlayCircleIcon, "PlayCircle");
|
|
195
|
+
export const Plug = icon(Plug01Icon, "Plug");
|
|
196
|
+
export const Plus = icon(Add01Icon, "Plus");
|
|
197
|
+
export const Power = icon(PowerIcon, "Power");
|
|
198
|
+
export const Prohibit = icon(BlockedIcon, "Prohibit");
|
|
199
|
+
export const Queue = icon(LeftToRightListBulletIcon, "Queue");
|
|
200
|
+
export const Shuffle = icon(ShuffleIcon, "Shuffle");
|
|
201
|
+
export const SidebarRight = icon(SidebarRightIcon, "SidebarRight");
|
|
202
|
+
export const SlidersHorizontal = icon(SlidersHorizontalIcon, "SlidersHorizontal");
|
|
203
|
+
export const Sparkle = icon(SparklesIcon, "Sparkle");
|
|
204
|
+
export const Stack = icon(Layers01Icon, "Stack");
|
|
205
|
+
export const Stop = icon(StopIcon, "Stop");
|
|
206
|
+
export const SidebarLeft = icon(SidebarLeftIcon, "SidebarLeft");
|
|
207
|
+
export const Razor = icon(Knife01Icon, "Razor");
|
|
208
|
+
export const Scissors = icon(ScissorIcon, "Scissors");
|
|
209
|
+
export const SelectionArea = icon(BoundingBoxIcon, "SelectionArea");
|
|
210
|
+
export const Cursor = icon(Cursor01Icon, "Cursor");
|
|
211
|
+
export const Trash = icon(Delete02Icon, "Trash");
|
|
212
|
+
export const Pencil = icon(PencilEdit01Icon, "Pencil");
|
|
213
|
+
export const UploadSimple = icon(Upload01Icon, "UploadSimple");
|
|
214
|
+
export const Carousel = icon(CarouselHorizontalIcon, "Carousel");
|
|
215
|
+
export const CaretLeft = icon(ArrowLeft02Icon, "CaretLeft");
|
|
216
|
+
export const CaretRight = icon(ArrowRight02Icon, "CaretRight");
|
|
217
|
+
export const Subtitles = icon(SubtitleIcon, "Subtitles");
|
|
218
|
+
export const VideoCamera = icon(Video01Icon, "VideoCamera");
|
|
219
|
+
export const VolumeHigh = icon(VolumeHighIcon, "VolumeHigh");
|
|
220
|
+
export const VolumeOff = icon(VolumeOffIcon, "VolumeOff");
|
|
221
|
+
export const X = icon(Cancel01Icon, "X");
|
|
222
|
+
export const Minus = icon(MinusSignIcon, "Minus");
|
|
223
|
+
export const Info = icon(InformationCircleIcon, "Info");
|
|
224
|
+
export const TrendUp = icon(ChartIncreaseIcon, "TrendUp");
|
|
225
|
+
export const TrendDown = icon(ChartDecreaseIcon, "TrendDown");
|
|
226
|
+
export const Columns = icon(ColumnInsertIcon, "Columns");
|
|
227
|
+
|
|
228
|
+
/* the state of a queue run (ok, error, interrupted, waiting) */
|
|
229
|
+
export const STATE_ICON: Record<string, ReactNode> = {
|
|
230
|
+
ok: <Check weight="bold" />,
|
|
231
|
+
error: <X weight="bold" />,
|
|
232
|
+
interrupted: <Prohibit weight="bold" />,
|
|
233
|
+
waiting: <Clock weight="bold" />,
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
/* the 3 × 3 caption position grid */
|
|
237
|
+
export const ANCHOR_ARROW: Record<string, ReactNode> = {
|
|
238
|
+
"top-left": <ArrowUpLeft weight="bold" />,
|
|
239
|
+
"top-center": <ArrowUp weight="bold" />,
|
|
240
|
+
"top-right": <ArrowUpRight weight="bold" />,
|
|
241
|
+
"middle-left": <ArrowLeft weight="bold" />,
|
|
242
|
+
"middle-center": <Dot weight="fill" size="0.5em" />,
|
|
243
|
+
"middle-right": <ArrowRight weight="bold" />,
|
|
244
|
+
"bottom-left": <ArrowDownLeft weight="bold" />,
|
|
245
|
+
"bottom-center": <ArrowDown weight="bold" />,
|
|
246
|
+
"bottom-right": <ArrowDownRight weight="bold" />,
|
|
247
|
+
};
|