@adminide-stack/yantra-mobile 12.0.160-alpha.1 → 12.0.160-alpha.2
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/lib/assets/channels/lucy.jpg +0 -0
- package/lib/components/GatewayConnector/GatewayConnector.js +3 -2
- package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
- package/lib/components/GatewayToolbarButtonMobile.js +4 -2
- package/lib/components/GatewayToolbarButtonMobile.js.map +1 -1
- package/lib/components/NavigationHeader/HeaderMoreMenu.js +2 -1
- package/lib/components/NavigationHeader/HeaderMoreMenu.js.map +1 -1
- package/lib/components/NavigationHeader/NavigationHeader.js +13 -11
- package/lib/components/NavigationHeader/NavigationHeader.js.map +1 -1
- package/lib/features/attachments/ComposerAttachMenu.js +15 -6
- package/lib/features/attachments/ComposerAttachMenu.js.map +1 -1
- package/lib/features/canvas/AudioEditorExperience.js +44 -1
- package/lib/features/canvas/AudioEditorExperience.js.map +1 -1
- package/lib/features/canvas/CanvasAppsPanel.js +240 -0
- package/lib/features/canvas/CanvasAppsPanel.js.map +1 -0
- package/lib/features/canvas/CanvasBoardsGrid.js +264 -803
- package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -1
- package/lib/features/canvas/CanvasEditToolsPanel.js +320 -66
- package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -1
- package/lib/features/canvas/CanvasExperience.js +366 -235
- package/lib/features/canvas/CanvasExperience.js.map +1 -1
- package/lib/features/canvas/CanvasGeneratePanel.js +437 -117
- package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -1
- package/lib/features/canvas/CanvasLibrarySheet.js +218 -18
- package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -1
- package/lib/features/canvas/CanvasLooksPanel.js +2 -2
- package/lib/features/canvas/CanvasLooksPanel.js.map +1 -1
- package/lib/features/canvas/CanvasTasksPanel.js +52 -12
- package/lib/features/canvas/CanvasTasksPanel.js.map +1 -1
- package/lib/features/canvas/CanvasTemplatesPanel.js +2 -2
- package/lib/features/canvas/CanvasTemplatesPanel.js.map +1 -1
- package/lib/features/canvas/CanvasToolDock.js +146 -37
- package/lib/features/canvas/CanvasToolDock.js.map +1 -1
- package/lib/features/canvas/DesignCategoryGallery.js +264 -7
- package/lib/features/canvas/DesignCategoryGallery.js.map +1 -1
- package/lib/features/canvas/NativeCanvasViewer.js +54 -7
- package/lib/features/canvas/NativeCanvasViewer.js.map +1 -1
- package/lib/features/canvas/SetStudioExperience.js +7 -5
- package/lib/features/canvas/SetStudioExperience.js.map +1 -1
- package/lib/features/canvas/VideoEditorExperience.js +9 -5
- package/lib/features/canvas/VideoEditorExperience.js.map +1 -1
- package/lib/features/canvas/VideoGeneratorExperience.js +295 -96
- package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
- package/lib/features/canvas/appsCatalog.js +554 -0
- package/lib/features/canvas/appsCatalog.js.map +1 -0
- package/lib/features/canvas/boardActions.js +547 -0
- package/lib/features/canvas/boardActions.js.map +1 -0
- package/lib/features/canvas/boardHistory.js +264 -0
- package/lib/features/canvas/boardHistory.js.map +1 -0
- package/lib/features/canvas/canvasAgentChat.js +3 -2
- package/lib/features/canvas/canvasAgentChat.js.map +1 -1
- package/lib/features/canvas/canvasArtifacts.js +115 -0
- package/lib/features/canvas/canvasArtifacts.js.map +1 -0
- package/lib/features/canvas/canvasCore.js +5 -2
- package/lib/features/canvas/canvasCore.js.map +1 -1
- package/lib/features/canvas/canvasEditHistory.js +42 -0
- package/lib/features/canvas/canvasEditHistory.js.map +1 -0
- package/lib/features/canvas/canvasEditOps.js +27 -21
- package/lib/features/canvas/canvasEditOps.js.map +1 -1
- package/lib/features/canvas/canvasTasks.js +5 -4
- package/lib/features/canvas/canvasTasks.js.map +1 -1
- package/lib/features/canvas/canvasUi.js +9 -4
- package/lib/features/canvas/canvasUi.js.map +1 -1
- package/lib/features/canvas/catalogSearchIndex.js +271 -0
- package/lib/features/canvas/catalogSearchIndex.js.map +1 -0
- package/lib/features/canvas/characters/CharacterBuilder.js +331 -0
- package/lib/features/canvas/characters/CharacterBuilder.js.map +1 -0
- package/lib/features/canvas/characters/CharacterPicker.js +207 -0
- package/lib/features/canvas/characters/CharacterPicker.js.map +1 -0
- package/lib/features/canvas/characters/CharacterStudio.js +106 -0
- package/lib/features/canvas/characters/CharacterStudio.js.map +1 -0
- package/lib/features/canvas/characters/PhotoDumpTool.js +157 -0
- package/lib/features/canvas/characters/PhotoDumpTool.js.map +1 -0
- package/lib/features/canvas/characters/PhotoSlot.js +104 -0
- package/lib/features/canvas/characters/PhotoSlot.js.map +1 -0
- package/lib/features/canvas/characters/RunFooter.js +126 -0
- package/lib/features/canvas/characters/RunFooter.js.map +1 -0
- package/lib/features/canvas/characters/StoryFramesTool.js +245 -0
- package/lib/features/canvas/characters/StoryFramesTool.js.map +1 -0
- package/lib/features/canvas/characters/SubjectPicker.js +198 -0
- package/lib/features/canvas/characters/SubjectPicker.js.map +1 -0
- package/lib/features/canvas/characters/characterActions.js +364 -0
- package/lib/features/canvas/characters/characterActions.js.map +1 -0
- package/lib/features/canvas/characters/characterRuns.js +256 -0
- package/lib/features/canvas/characters/characterRuns.js.map +1 -0
- package/lib/features/canvas/characters/characterStore.js +137 -0
- package/lib/features/canvas/characters/characterStore.js.map +1 -0
- package/lib/features/canvas/characters/characterTools.js +33 -0
- package/lib/features/canvas/characters/characterTools.js.map +1 -0
- package/lib/features/canvas/characters/characterVocabulary.js +1138 -0
- package/lib/features/canvas/characters/characterVocabulary.js.map +1 -0
- package/lib/features/canvas/characters/charactersRpc.js +70 -0
- package/lib/features/canvas/characters/charactersRpc.js.map +1 -0
- package/lib/features/canvas/characters/photoDumpPacks.js +252 -0
- package/lib/features/canvas/characters/photoDumpPacks.js.map +1 -0
- package/lib/features/canvas/characters/placement.js +114 -0
- package/lib/features/canvas/characters/placement.js.map +1 -0
- package/lib/features/canvas/characters/storyboard.js +188 -0
- package/lib/features/canvas/characters/storyboard.js.map +1 -0
- package/lib/features/canvas/createTiles.js +16 -98
- package/lib/features/canvas/createTiles.js.map +1 -1
- package/lib/features/canvas/creditsOffer.js +21 -0
- package/lib/features/canvas/creditsOffer.js.map +1 -0
- package/lib/features/canvas/deepLinks.js.map +1 -1
- package/lib/features/canvas/designCatalog.js +6 -13
- package/lib/features/canvas/designCatalog.js.map +1 -1
- package/lib/features/canvas/editTools.js +122 -10
- package/lib/features/canvas/editTools.js.map +1 -1
- package/lib/features/canvas/editorControls.js +1 -1
- package/lib/features/canvas/elements/ElementForm.js +389 -0
- package/lib/features/canvas/elements/ElementForm.js.map +1 -0
- package/lib/features/canvas/elements/ElementMentionMenu.js +125 -0
- package/lib/features/canvas/elements/ElementMentionMenu.js.map +1 -0
- package/lib/features/canvas/elements/ElementThumb.js +23 -0
- package/lib/features/canvas/elements/ElementThumb.js.map +1 -0
- package/lib/features/canvas/elements/ElementsButton.js +55 -0
- package/lib/features/canvas/elements/ElementsButton.js.map +1 -0
- package/lib/features/canvas/elements/ElementsSheet.js +392 -0
- package/lib/features/canvas/elements/ElementsSheet.js.map +1 -0
- package/lib/features/canvas/elements/MentionedElements.js +159 -0
- package/lib/features/canvas/elements/MentionedElements.js.map +1 -0
- package/lib/features/canvas/elements/elementCopy.js +37 -0
- package/lib/features/canvas/elements/elementCopy.js.map +1 -0
- package/lib/features/canvas/elements/elementImages.js +66 -0
- package/lib/features/canvas/elements/elementImages.js.map +1 -0
- package/lib/features/canvas/elements/elementsStore.js +164 -0
- package/lib/features/canvas/elements/elementsStore.js.map +1 -0
- package/lib/features/canvas/elements/shotMentions.js +94 -0
- package/lib/features/canvas/elements/shotMentions.js.map +1 -0
- package/lib/features/canvas/elements/unicodeWords.js +13 -0
- package/lib/features/canvas/elements/unicodeWords.js.map +1 -0
- package/lib/features/canvas/elements/useElementMentions.js +94 -0
- package/lib/features/canvas/elements/useElementMentions.js.map +1 -0
- package/lib/features/canvas/elements/useGeneratorElements.js +83 -0
- package/lib/features/canvas/elements/useGeneratorElements.js.map +1 -0
- package/lib/features/canvas/elements/useSavedElements.js +170 -0
- package/lib/features/canvas/elements/useSavedElements.js.map +1 -0
- package/lib/features/canvas/enhance/AnimateControls.js +249 -0
- package/lib/features/canvas/enhance/AnimateControls.js.map +1 -0
- package/lib/features/canvas/enhance/ClipAudioControls.js +184 -0
- package/lib/features/canvas/enhance/ClipAudioControls.js.map +1 -0
- package/lib/features/canvas/enhance/ImageAiControls.js +293 -0
- package/lib/features/canvas/enhance/ImageAiControls.js.map +1 -0
- package/lib/features/canvas/enhance/MediaSlot.js +220 -0
- package/lib/features/canvas/enhance/MediaSlot.js.map +1 -0
- package/lib/features/canvas/enhance/PixelToolControls.js +236 -0
- package/lib/features/canvas/enhance/PixelToolControls.js.map +1 -0
- package/lib/features/canvas/enhance/RemixControls.js +166 -0
- package/lib/features/canvas/enhance/RemixControls.js.map +1 -0
- package/lib/features/canvas/enhance/enhanceUi.js +182 -0
- package/lib/features/canvas/enhance/enhanceUi.js.map +1 -0
- package/lib/features/canvas/enhance/useEnhanceRunner.js +218 -0
- package/lib/features/canvas/enhance/useEnhanceRunner.js.map +1 -0
- package/lib/features/canvas/enhanceCatalog.js +110 -0
- package/lib/features/canvas/enhanceCatalog.js.map +1 -0
- package/lib/features/canvas/enhanceOps.js +630 -0
- package/lib/features/canvas/enhanceOps.js.map +1 -0
- package/lib/features/canvas/enhanceRpc.js +404 -0
- package/lib/features/canvas/enhanceRpc.js.map +1 -0
- package/lib/features/canvas/generationModels.js +82 -11
- package/lib/features/canvas/generationModels.js.map +1 -1
- package/lib/features/canvas/generationTasks.js +46 -17
- package/lib/features/canvas/generationTasks.js.map +1 -1
- package/lib/features/canvas/generator/GeneratorModelMenu.js +118 -0
- package/lib/features/canvas/generator/GeneratorModelMenu.js.map +1 -0
- package/lib/features/canvas/generator/audio/AudioLaneSettings.js +127 -0
- package/lib/features/canvas/generator/audio/AudioLaneSettings.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioLane.js +163 -0
- package/lib/features/canvas/generator/audio/audioLane.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioVoices.js +108 -0
- package/lib/features/canvas/generator/audio/audioVoices.js.map +1 -0
- package/lib/features/canvas/generator/audio/clipAudio.js +149 -0
- package/lib/features/canvas/generator/audio/clipAudio.js.map +1 -0
- package/lib/features/canvas/generator/audio/dub.js +109 -0
- package/lib/features/canvas/generator/audio/dub.js.map +1 -0
- package/lib/features/canvas/generator/audio/soundtrack.js +70 -0
- package/lib/features/canvas/generator/audio/soundtrack.js.map +1 -0
- package/lib/features/canvas/generator/audio/useAudioVoices.js +38 -0
- package/lib/features/canvas/generator/audio/useAudioVoices.js.map +1 -0
- package/lib/features/canvas/generator/audio/useSamplePlayer.js +72 -0
- package/lib/features/canvas/generator/audio/useSamplePlayer.js.map +1 -0
- package/lib/features/canvas/generator/audio/useSampleUploads.js +11 -0
- package/lib/features/canvas/generator/audio/useSampleUploads.js.map +1 -0
- package/lib/features/canvas/generator/batchImages.js +198 -0
- package/lib/features/canvas/generator/batchImages.js.map +1 -0
- package/lib/features/canvas/generator/batchLayout.js +36 -0
- package/lib/features/canvas/generator/batchLayout.js.map +1 -0
- package/lib/features/canvas/generator/brandKitGeneration.js +47 -0
- package/lib/features/canvas/generator/brandKitGeneration.js.map +1 -0
- package/lib/features/canvas/generator/cameraVocabulary.js +90 -0
- package/lib/features/canvas/generator/cameraVocabulary.js.map +1 -1
- package/lib/features/canvas/generator/cinematicVocabulary.js +58 -0
- package/lib/features/canvas/generator/cinematicVocabulary.js.map +1 -1
- package/lib/features/canvas/generator/elementMentions.js +402 -0
- package/lib/features/canvas/generator/elementMentions.js.map +1 -0
- package/lib/features/canvas/generator/reuse/BatchCountPill.js +136 -0
- package/lib/features/canvas/generator/reuse/BatchCountPill.js.map +1 -0
- package/lib/features/canvas/generator/reuse/busyRuns.js +17 -0
- package/lib/features/canvas/generator/reuse/busyRuns.js.map +1 -0
- package/lib/features/canvas/generator/reuse/generationRecord.js +368 -0
- package/lib/features/canvas/generator/reuse/generationRecord.js.map +1 -0
- package/lib/features/canvas/generator/reuse/generationReuse.js +77 -0
- package/lib/features/canvas/generator/reuse/generationReuse.js.map +1 -0
- package/lib/features/canvas/generator/reuse/laneInputs.js +75 -0
- package/lib/features/canvas/generator/reuse/laneInputs.js.map +1 -0
- package/lib/features/canvas/generator/reuse/modelFavourites.js +87 -0
- package/lib/features/canvas/generator/reuse/modelFavourites.js.map +1 -0
- package/lib/features/canvas/generator/reuse/recreate.js +121 -0
- package/lib/features/canvas/generator/reuse/recreate.js.map +1 -0
- package/lib/features/canvas/generator/reuse/retryJob.js +142 -0
- package/lib/features/canvas/generator/reuse/retryJob.js.map +1 -0
- package/lib/features/canvas/generator/reuse/reusePlan.js +203 -0
- package/lib/features/canvas/generator/reuse/reusePlan.js.map +1 -0
- package/lib/features/canvas/generator/reuse/runBoard.js +117 -0
- package/lib/features/canvas/generator/reuse/runBoard.js.map +1 -0
- package/lib/features/canvas/generator/useShotSpec.js +4 -3
- package/lib/features/canvas/generator/useShotSpec.js.map +1 -1
- package/lib/features/canvas/generator/video/VideoExtrasControls.js +276 -0
- package/lib/features/canvas/generator/video/VideoExtrasControls.js.map +1 -0
- package/lib/features/canvas/generator/video/cameraMotions.js +66 -0
- package/lib/features/canvas/generator/video/cameraMotions.js.map +1 -0
- package/lib/features/canvas/generator/video/clipTile.js +20 -0
- package/lib/features/canvas/generator/video/clipTile.js.map +1 -0
- package/lib/features/canvas/generator/video/mediaSeconds.js +31 -0
- package/lib/features/canvas/generator/video/mediaSeconds.js.map +1 -0
- package/lib/features/canvas/generator/video/referenceMedia.js +156 -0
- package/lib/features/canvas/generator/video/referenceMedia.js.map +1 -0
- package/lib/features/canvas/generator/video/useVideoGenExtras.js +179 -0
- package/lib/features/canvas/generator/video/useVideoGenExtras.js.map +1 -0
- package/lib/features/canvas/generator/video/videoExtras.js +34 -0
- package/lib/features/canvas/generator/video/videoExtras.js.map +1 -0
- package/lib/features/canvas/generator/video/videoModelCaps.js +96 -0
- package/lib/features/canvas/generator/video/videoModelCaps.js.map +1 -0
- package/lib/features/canvas/home/BoardHistorySheet.js +266 -0
- package/lib/features/canvas/home/BoardHistorySheet.js.map +1 -0
- package/lib/features/canvas/home/BoardMenuSheet.js +157 -0
- package/lib/features/canvas/home/BoardMenuSheet.js.map +1 -0
- package/lib/features/canvas/home/BoardTile.js +224 -0
- package/lib/features/canvas/home/BoardTile.js.map +1 -0
- package/lib/features/canvas/home/HeroComposer.js +72 -6
- package/lib/features/canvas/home/HeroComposer.js.map +1 -1
- package/lib/features/canvas/home/SlidesPrompt.js +79 -0
- package/lib/features/canvas/home/SlidesPrompt.js.map +1 -0
- package/lib/features/canvas/home/TemplatesGallery.js +2 -19
- package/lib/features/canvas/home/TemplatesGallery.js.map +1 -1
- package/lib/features/canvas/home/TrashView.js +299 -0
- package/lib/features/canvas/home/TrashView.js.map +1 -0
- package/lib/features/canvas/home/heroShots.js +4 -2
- package/lib/features/canvas/home/heroShots.js.map +1 -1
- package/lib/features/canvas/home/templatesGallerySources.js +13 -58
- package/lib/features/canvas/home/templatesGallerySources.js.map +1 -1
- package/lib/features/canvas/home/useYourWork.js +218 -0
- package/lib/features/canvas/home/useYourWork.js.map +1 -0
- package/lib/features/canvas/homeWork.js +54 -119
- package/lib/features/canvas/homeWork.js.map +1 -1
- package/lib/features/canvas/influencer/influencerPipeline.js +9 -8
- package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -1
- package/lib/features/canvas/lazyEditors.js +3 -2
- package/lib/features/canvas/lazyEditors.js.map +1 -1
- package/lib/features/canvas/lookReading.js +38 -0
- package/lib/features/canvas/lookReading.js.map +1 -0
- package/lib/features/canvas/matchLook.js +81 -0
- package/lib/features/canvas/matchLook.js.map +1 -0
- package/lib/features/canvas/mediaUrls.js +22 -1
- package/lib/features/canvas/mediaUrls.js.map +1 -1
- package/lib/features/canvas/pngPixels.js +224 -0
- package/lib/features/canvas/pngPixels.js.map +1 -0
- package/lib/features/canvas/rankedCatalogSearch.js +1 -1
- package/lib/features/canvas/serverTasks.js +12 -5
- package/lib/features/canvas/serverTasks.js.map +1 -1
- package/lib/features/canvas/studioCatalog.js +1 -1
- package/lib/features/canvas/surfaceIndex.js +287 -11
- package/lib/features/canvas/surfaceIndex.js.map +1 -1
- package/lib/features/canvas/templateSearch.js +90 -11
- package/lib/features/canvas/templateSearch.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/agentLoop.js +6 -5
- package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/brainClient.js +13 -2
- package/lib/features/canvas/videoEditor/agent/brainClient.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/cutTools.js +150 -4
- package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -1
- package/lib/features/canvas/videoEditor/exportTask.js +5 -2
- package/lib/features/canvas/videoEditor/exportTask.js.map +1 -1
- package/lib/features/canvas/videoEditor/formWidgets.js +1 -1
- package/lib/features/canvas/videoEditor/mediaActions.js +18 -3
- package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -1
- package/lib/features/canvas/videoEditor/produce/ProduceVideoSheet.js +25 -2
- package/lib/features/canvas/videoEditor/produce/ProduceVideoSheet.js.map +1 -1
- package/lib/features/canvas/videoEditor/produce/produceScenes.js +15 -7
- package/lib/features/canvas/videoEditor/produce/produceScenes.js.map +1 -1
- package/lib/features/canvas/videoEditor/remoteMediaClient.js +3 -3
- package/lib/features/canvas/videoEditor/remoteMediaClient.js.map +1 -1
- package/lib/features/channels/ChannelIcon.js +62 -0
- package/lib/features/channels/ChannelIcon.js.map +1 -0
- package/lib/features/channels/ConnectAppsSheet.js +721 -0
- package/lib/features/channels/ConnectAppsSheet.js.map +1 -0
- package/lib/features/channels/HomeImessage.js +48 -0
- package/lib/features/channels/HomeImessage.js.map +1 -0
- package/lib/features/channels/channelLinks.js +90 -0
- package/lib/features/channels/channelLinks.js.map +1 -0
- package/lib/features/channels/useChannelsApi.js +299 -0
- package/lib/features/channels/useChannelsApi.js.map +1 -0
- package/lib/features/chat/AskUserCard.js +327 -21
- package/lib/features/chat/AskUserCard.js.map +1 -1
- package/lib/features/chat/ChatModelSheet.js +414 -0
- package/lib/features/chat/ChatModelSheet.js.map +1 -0
- package/lib/features/chat/TemplatesChatCards.js +32 -1
- package/lib/features/chat/TemplatesChatCards.js.map +1 -1
- package/lib/features/chat/askUser.js +130 -17
- package/lib/features/chat/askUser.js.map +1 -1
- package/lib/features/chat/chatModelCredentials.js +76 -0
- package/lib/features/chat/chatModelCredentials.js.map +1 -0
- package/lib/features/chat/chatModelPick.js +67 -0
- package/lib/features/chat/chatModelPick.js.map +1 -0
- package/lib/features/chat/credentialTemplates.js +43 -0
- package/lib/features/chat/credentialTemplates.js.map +1 -0
- package/lib/features/design/DesignEditorExperience.js +208 -22
- package/lib/features/design/DesignEditorExperience.js.map +1 -1
- package/lib/features/design/DesignExperience.js +23 -6
- package/lib/features/design/DesignExperience.js.map +1 -1
- package/lib/features/design/doc/aiDesign.js +6 -16
- package/lib/features/design/doc/aiDesign.js.map +1 -1
- package/lib/features/design/doc/arrange.js +72 -0
- package/lib/features/design/doc/arrange.js.map +1 -0
- package/lib/features/design/doc/artifacts.js +40 -10
- package/lib/features/design/doc/artifacts.js.map +1 -1
- package/lib/features/design/doc/bleedRunout.js +201 -0
- package/lib/features/design/doc/bleedRunout.js.map +1 -0
- package/lib/features/design/doc/briefForms.js +218 -0
- package/lib/features/design/doc/briefForms.js.map +1 -0
- package/lib/features/design/doc/chart.js +11 -1
- package/lib/features/design/doc/chart.js.map +1 -1
- package/lib/features/design/doc/deletedWork.js +13 -0
- package/lib/features/design/doc/deletedWork.js.map +1 -0
- package/lib/features/design/doc/demoVideo.js +91 -0
- package/lib/features/design/doc/demoVideo.js.map +1 -0
- package/lib/features/design/doc/docOps.js +15 -0
- package/lib/features/design/doc/docOps.js.map +1 -1
- package/lib/features/design/doc/layoutGuides.js +159 -0
- package/lib/features/design/doc/layoutGuides.js.map +1 -0
- package/lib/features/design/doc/pageTemplates.js +286 -0
- package/lib/features/design/doc/pageTemplates.js.map +1 -0
- package/lib/features/design/doc/resize.js +8 -3
- package/lib/features/design/doc/resize.js.map +1 -1
- package/lib/features/design/doc/sizes.js +18 -5
- package/lib/features/design/doc/sizes.js.map +1 -1
- package/lib/features/design/doc/textRuns.js +67 -0
- package/lib/features/design/doc/textRuns.js.map +1 -0
- package/lib/features/design/doc/types.js +8 -1
- package/lib/features/design/doc/types.js.map +1 -1
- package/lib/features/design/editor/AiPanel.js +71 -74
- package/lib/features/design/editor/AiPanel.js.map +1 -1
- package/lib/features/design/editor/AllPagesPanel.js +64 -0
- package/lib/features/design/editor/AllPagesPanel.js.map +1 -0
- package/lib/features/design/editor/CarouselWizard.js +139 -0
- package/lib/features/design/editor/CarouselWizard.js.map +1 -0
- package/lib/features/design/editor/DesignCanvas.js +205 -14
- package/lib/features/design/editor/DesignCanvas.js.map +1 -1
- package/lib/features/design/editor/ExportSheet.js +24 -8
- package/lib/features/design/editor/ExportSheet.js.map +1 -1
- package/lib/features/design/editor/FlyerBriefForm.js +221 -0
- package/lib/features/design/editor/FlyerBriefForm.js.map +1 -0
- package/lib/features/design/editor/GuidesPanel.js +152 -0
- package/lib/features/design/editor/GuidesPanel.js.map +1 -0
- package/lib/features/design/editor/LayerTools.js +24 -1
- package/lib/features/design/editor/LayerTools.js.map +1 -1
- package/lib/features/design/editor/LayersPanel.js +156 -0
- package/lib/features/design/editor/LayersPanel.js.map +1 -0
- package/lib/features/design/editor/ToolPanels.js +34 -1
- package/lib/features/design/editor/ToolPanels.js.map +1 -1
- package/lib/features/design/editor/WordStyleRow.js +66 -0
- package/lib/features/design/editor/WordStyleRow.js.map +1 -0
- package/lib/features/design/editor/useDesignSave.js +36 -2
- package/lib/features/design/editor/useDesignSave.js.map +1 -1
- package/lib/features/design/export/exportDesign.js +79 -19
- package/lib/features/design/export/exportDesign.js.map +1 -1
- package/lib/features/design/export/fetchBytes.js +26 -0
- package/lib/features/design/export/fetchBytes.js.map +1 -0
- package/lib/features/design/export/pdf.js +16 -1
- package/lib/features/design/export/pdf.js.map +1 -1
- package/lib/features/design/export/pptx.js +621 -0
- package/lib/features/design/export/pptx.js.map +1 -0
- package/lib/features/design/export/pptxChart.js +106 -0
- package/lib/features/design/export/pptxChart.js.map +1 -0
- package/lib/features/design/export/pptxGeometry.js +219 -0
- package/lib/features/design/export/pptxGeometry.js.map +1 -0
- package/lib/features/design/export/printFile.js +19 -0
- package/lib/features/design/export/printFile.js.map +1 -0
- package/lib/features/design/export/zip.js +91 -0
- package/lib/features/design/export/zip.js.map +1 -0
- package/lib/features/design/render/PageCapture.js +95 -23
- package/lib/features/design/render/PageCapture.js.map +1 -1
- package/lib/features/design/render/TextMeasure.js +1 -1
- package/lib/features/design/render/layers.js +1 -1
- package/lib/features/design/surface/BoardScreen.js +139 -102
- package/lib/features/design/surface/BoardScreen.js.map +1 -1
- package/lib/features/design/surface/BrandSheet.js +407 -0
- package/lib/features/design/surface/BrandSheet.js.map +1 -0
- package/lib/features/design/surface/ChatWorkView.js +154 -0
- package/lib/features/design/surface/ChatWorkView.js.map +1 -0
- package/lib/features/design/surface/CreationScreen.js +36 -2
- package/lib/features/design/surface/CreationScreen.js.map +1 -1
- package/lib/features/design/surface/DesignAgentChatPane.js +7 -1
- package/lib/features/design/surface/DesignAgentChatPane.js.map +1 -1
- package/lib/features/design/surface/DesignHome.js +505 -0
- package/lib/features/design/surface/DesignHome.js.map +1 -0
- package/lib/features/design/surface/DesignSurfaceExperience.js +182 -9
- package/lib/features/design/surface/DesignSurfaceExperience.js.map +1 -1
- package/lib/features/design/surface/TasksSheet.js +141 -0
- package/lib/features/design/surface/TasksSheet.js.map +1 -0
- package/lib/features/design/surface/TemplatesGallery.js +67 -17
- package/lib/features/design/surface/TemplatesGallery.js.map +1 -1
- package/lib/features/design/surface/WorkTiles.js +207 -0
- package/lib/features/design/surface/WorkTiles.js.map +1 -0
- package/lib/features/design/surface/agentTurn.js +4 -4
- package/lib/features/design/surface/agentTurn.js.map +1 -1
- package/lib/features/design/surface/brandKit.js +204 -0
- package/lib/features/design/surface/brandKit.js.map +1 -0
- package/lib/features/design/surface/designBoard.js +269 -58
- package/lib/features/design/surface/designBoard.js.map +1 -1
- package/lib/features/design/surface/designChannel.js +30 -6
- package/lib/features/design/surface/designChannel.js.map +1 -1
- package/lib/features/design/surface/designConnector.js +11 -3
- package/lib/features/design/surface/designConnector.js.map +1 -1
- package/lib/features/design/surface/designErrors.js +92 -0
- package/lib/features/design/surface/designErrors.js.map +1 -0
- package/lib/features/design/surface/designLinks.js +64 -1
- package/lib/features/design/surface/designLinks.js.map +1 -1
- package/lib/features/design/surface/designRun.js +7 -3
- package/lib/features/design/surface/designRun.js.map +1 -1
- package/lib/features/design/surface/designTheme.js +54 -93
- package/lib/features/design/surface/designTheme.js.map +1 -1
- package/lib/features/design/surface/execStream.js +2 -2
- package/lib/features/design/surface/execStream.js.map +1 -1
- package/lib/features/design/surface/freshLinks.js +69 -0
- package/lib/features/design/surface/freshLinks.js.map +1 -0
- package/lib/features/design/surface/graphicChat.js +37 -0
- package/lib/features/design/surface/graphicChat.js.map +1 -0
- package/lib/features/design/surface/templateKinds.js +61 -0
- package/lib/features/design/surface/templateKinds.js.map +1 -0
- package/lib/features/design/surface/useBrandKitInUse.js +90 -0
- package/lib/features/design/surface/useBrandKitInUse.js.map +1 -0
- package/lib/features/design/surface/useDesignSurface.js +202 -43
- package/lib/features/design/surface/useDesignSurface.js.map +1 -1
- package/lib/features/design/surface/workList.js +184 -0
- package/lib/features/design/surface/workList.js.map +1 -0
- package/lib/features/devices/bodyComposition.js.map +1 -1
- package/lib/features/docs/DocsEditorExperience.js +18 -3
- package/lib/features/docs/DocsEditorExperience.js.map +1 -1
- package/lib/features/docs/docArtifacts.js +11 -23
- package/lib/features/docs/docArtifacts.js.map +1 -1
- package/lib/features/docs/docExport.js +1 -13
- package/lib/features/docs/docExport.js.map +1 -1
- package/lib/features/docs/docShare.js +28 -1
- package/lib/features/docs/docShare.js.map +1 -1
- package/lib/features/docs/docxFile.js +221 -0
- package/lib/features/docs/docxFile.js.map +1 -0
- package/lib/features/home/sky/HomeSky.js +526 -0
- package/lib/features/home/sky/HomeSky.js.map +1 -0
- package/lib/features/home/sky/homeSkyBar.js +16 -0
- package/lib/features/home/sky/homeSkyBar.js.map +1 -0
- package/lib/features/home/sky/skyScene.js +273 -0
- package/lib/features/home/sky/skyScene.js.map +1 -0
- package/lib/features/home/sky/useSkyScene.js +32 -0
- package/lib/features/home/sky/useSkyScene.js.map +1 -0
- package/lib/features/home/weather.js +8 -3
- package/lib/features/home/weather.js.map +1 -1
- package/lib/features/links/openInApp.js +8 -1
- package/lib/features/links/openInApp.js.map +1 -1
- package/lib/features/webbuilder/codezenHandoff.js +7 -1
- package/lib/features/webbuilder/codezenHandoff.js.map +1 -1
- package/lib/hooks/useChatStream.js +3 -2
- package/lib/hooks/useChatStream.js.map +1 -1
- package/lib/screens/DesignNative/index.js +13 -3
- package/lib/screens/DesignNative/index.js.map +1 -1
- package/lib/screens/Devices/index.js.map +1 -1
- package/lib/screens/Home/HomeScreen.js +150 -28
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/Home/components/HomeHero.js +7 -4
- package/lib/screens/Home/components/HomeHero.js.map +1 -1
- package/lib/screens/Home/components/HomeSuggestions.js +5 -3
- package/lib/screens/Home/components/HomeSuggestions.js.map +1 -1
- package/package.json +2 -2
- package/lib/features/design/surface/DesignBoards.js +0 -441
- package/lib/features/design/surface/DesignBoards.js.map +0 -1
- package/lib/features/design/surface/WetPaint.js +0 -140
- package/lib/features/design/surface/WetPaint.js.map +0 -1
- package/lib/features/design/surface/metaball.js +0 -48
- package/lib/features/design/surface/metaball.js.map +0 -1
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
import {runDubbedClip,runSoundtrackClip}from'./generator/audio/clipAudio.js';import {dubLanguage}from'./generator/audio/dub.js';import {soundtrackMood,DEFAULT_SOUNDTRACK_MOOD}from'./generator/audio/soundtrack.js';import {presetLabel,REMIX_STYLES,EFFECT_SCENES,ALL_EFFECT_SCENES}from'./enhanceCatalog.js';import {runImageEnhance,runVideoUpscale,runImageEditPrompt,runVideoRemix,runTalkingPhoto,runMotionTransfer,runVideoEffect}from'./enhanceRpc.js';import {buildVideoGenerateParams}from'./generationModels.js';import {runWithJob}from'./serverTasks.js';import {nearestAspect}from'./studioLooks.js';import {resultUrl,generationMediaUrl}from'./videoEditor/mediaActions.js';import {unwrapProxyUrl}from'./videoEditor/remoteMediaClient.js';var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
const EXPAND_MAX_SIDE = 700;
|
|
21
|
+
const MINUTE = 6e4;
|
|
22
|
+
function enhanceBudgetMs(req) {
|
|
23
|
+
if (req.tool === "remix") return 18 * MINUTE;
|
|
24
|
+
if (req.tool === "dub") return (req.lipSync ? 30 : 15) * MINUTE;
|
|
25
|
+
if (req.tool === "talking-photo" || req.tool === "transition" || req.tool === "soundtrack") return 15 * MINUTE;
|
|
26
|
+
return 9 * MINUTE;
|
|
27
|
+
}
|
|
28
|
+
function anglePrompt(rotate, tilt, zoom) {
|
|
29
|
+
const moves = [];
|
|
30
|
+
if (rotate) moves.push(`the camera has orbited ${Math.abs(rotate)} degrees to the ${rotate < 0 ? "left" : "right"} around the subject`);
|
|
31
|
+
if (tilt) moves.push(`the camera now looks ${tilt < 0 ? "down from above" : "up from below"} at ${Math.abs(tilt)} degrees`);
|
|
32
|
+
if (zoom !== "same") moves.push(zoom === "closer" ? "the framing is tighter and closer" : "the framing is wider, showing more of the surroundings");
|
|
33
|
+
const how = moves.length ? moves.join(", ") : "the camera has moved slightly";
|
|
34
|
+
return `Re-photograph this exact scene from a new camera angle: ${how}. Keep the same people, faces, clothing, objects, setting, lighting and style - only the viewpoint changes. Photorealistic if the original is a photo. No text, no borders.`;
|
|
35
|
+
}
|
|
36
|
+
const SHOT_SETS = {
|
|
37
|
+
coverage: {
|
|
38
|
+
label: "Coverage",
|
|
39
|
+
shots: ["extreme wide establishing shot", "wide shot", "medium shot", "medium close-up", "close-up", "extreme close-up on a detail", "low-angle shot", "high-angle shot", "over-the-shoulder shot"]
|
|
40
|
+
},
|
|
41
|
+
storyboard: {
|
|
42
|
+
label: "Storyboard",
|
|
43
|
+
shots: ["opening establishing shot", "the subject enters", "a reaction close-up", "a detail insert", "the action builds", "a tense close-up", "the turning point", "the aftermath, wide", "a closing shot"]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function shotsPrompt(set) {
|
|
47
|
+
const list = SHOT_SETS[set].shots.map((s, i) => `${i + 1}. ${s}`).join("; ");
|
|
48
|
+
return `Create a 3x3 contact sheet of nine different shots of this same scene, read left to right, top to bottom: ${list}. The same people, wardrobe, location, lighting and style in every panel, equal panels separated by thin white gutters, no text, no numbers, no captions.`;
|
|
49
|
+
}
|
|
50
|
+
function transitionPrompt(prompt) {
|
|
51
|
+
const how = (prompt == null ? void 0 : prompt.trim()) || "a smooth, seamless camera move";
|
|
52
|
+
return `A transition shot that starts exactly on the first frame and ends exactly on the last frame: ${how}. One continuous shot, no cuts, no text.`;
|
|
53
|
+
}
|
|
54
|
+
function pickEndFrameModel(models, selected) {
|
|
55
|
+
var _a, _b, _c;
|
|
56
|
+
return (_c = selected ? (_a = models.find((m) => m.id === selected && m.supportsEndFrame)) == null ? void 0 : _a.id : void 0) != null ? _c : (_b = models.find((m) => m.supportsEndFrame)) == null ? void 0 : _b.id;
|
|
57
|
+
}
|
|
58
|
+
const BRIDGE_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4"];
|
|
59
|
+
function mediaAspect(dims, shape, supported) {
|
|
60
|
+
var _a;
|
|
61
|
+
const {
|
|
62
|
+
width,
|
|
63
|
+
height
|
|
64
|
+
} = dims != null ? dims : shape;
|
|
65
|
+
if (!(width > 0) || !(height > 0)) return "16:9";
|
|
66
|
+
return (_a = nearestAspect(`${width}:${height}`, (supported == null ? void 0 : supported.length) ? supported : BRIDGE_ASPECTS)) != null ? _a : width >= height ? "16:9" : "9:16";
|
|
67
|
+
}
|
|
68
|
+
const TRANSITION_STYLES = [{
|
|
69
|
+
id: "seamless",
|
|
70
|
+
label: "Seamless",
|
|
71
|
+
prompt: "a smooth, seamless camera move from one scene into the next"
|
|
72
|
+
}, {
|
|
73
|
+
id: "morph",
|
|
74
|
+
label: "Morph",
|
|
75
|
+
prompt: "the first scene morphs fluidly into the second, shapes flowing into each other"
|
|
76
|
+
}, {
|
|
77
|
+
id: "zoom",
|
|
78
|
+
label: "Zoom through",
|
|
79
|
+
prompt: "the camera zooms rapidly forward through the first scene and emerges in the second"
|
|
80
|
+
}, {
|
|
81
|
+
id: "whip",
|
|
82
|
+
label: "Whip pan",
|
|
83
|
+
prompt: "a fast whip pan with motion blur that lands on the second scene"
|
|
84
|
+
}, {
|
|
85
|
+
id: "smoke",
|
|
86
|
+
label: "Smoke",
|
|
87
|
+
prompt: "thick smoke sweeps across the frame and clears to reveal the second scene"
|
|
88
|
+
}, {
|
|
89
|
+
id: "flame",
|
|
90
|
+
label: "Flame",
|
|
91
|
+
prompt: "flames burn across the first scene and the second scene appears behind them"
|
|
92
|
+
}, {
|
|
93
|
+
id: "liquid",
|
|
94
|
+
label: "Liquid",
|
|
95
|
+
prompt: "a splash of liquid washes over the frame and recedes on the second scene"
|
|
96
|
+
}, {
|
|
97
|
+
id: "melt",
|
|
98
|
+
label: "Melt",
|
|
99
|
+
prompt: "the first scene melts and drips away, revealing the second"
|
|
100
|
+
}, {
|
|
101
|
+
id: "particles",
|
|
102
|
+
label: "Particles",
|
|
103
|
+
prompt: "the first scene dissolves into glowing particles that reassemble into the second"
|
|
104
|
+
}, {
|
|
105
|
+
id: "light",
|
|
106
|
+
label: "Light flash",
|
|
107
|
+
prompt: "a bright flash of light whites out the frame and fades up on the second scene"
|
|
108
|
+
}, {
|
|
109
|
+
id: "glitch",
|
|
110
|
+
label: "Glitch",
|
|
111
|
+
prompt: "a digital glitch tears through the frame and settles on the second scene"
|
|
112
|
+
}, {
|
|
113
|
+
id: "portal",
|
|
114
|
+
label: "Portal",
|
|
115
|
+
prompt: "a swirling portal opens in the first scene and the camera flies through into the second"
|
|
116
|
+
}];
|
|
117
|
+
function clip(text, max) {
|
|
118
|
+
const t = text.trim();
|
|
119
|
+
if (t.length <= max) return t;
|
|
120
|
+
const cut = t.slice(0, max);
|
|
121
|
+
const space = cut.lastIndexOf(" ");
|
|
122
|
+
return `${(space > max * 0.6 ? cut.slice(0, space) : cut).trimEnd()}\u2026`;
|
|
123
|
+
}
|
|
124
|
+
const RESTORE_TITLES = {
|
|
125
|
+
restore: "Restore photo",
|
|
126
|
+
colorize: "Colorize",
|
|
127
|
+
retouch: "Retouch portrait"
|
|
128
|
+
};
|
|
129
|
+
const REMIX_TITLES = {
|
|
130
|
+
"object-swap": "Remix \xB7 swap",
|
|
131
|
+
"motion-transfer": "Remix \xB7 motion",
|
|
132
|
+
restyle: "Remix \xB7 restyle"
|
|
133
|
+
};
|
|
134
|
+
const styleName = (id) => {
|
|
135
|
+
var _a;
|
|
136
|
+
return id && ((_a = REMIX_STYLES.find((s) => s.id === id)) == null ? void 0 : _a.name) || (id ? presetLabel(id) : "a style");
|
|
137
|
+
};
|
|
138
|
+
function expandedDims(src, sides) {
|
|
139
|
+
if (!src || !sides) return void 0;
|
|
140
|
+
return {
|
|
141
|
+
width: src.width + sides.left + sides.right,
|
|
142
|
+
height: src.height + sides.top + sides.bottom
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function describeSides(sides) {
|
|
146
|
+
const parts = ["left", "right", "top", "bottom"].filter((k) => sides[k] > 0).map((k) => `${k} ${sides[k]}px`);
|
|
147
|
+
return parts.length ? parts.join(", ") : "no side";
|
|
148
|
+
}
|
|
149
|
+
function enhanceStartLine(req) {
|
|
150
|
+
switch (req.tool) {
|
|
151
|
+
case "effects":
|
|
152
|
+
case "motion":
|
|
153
|
+
return "Animating the still - this takes a few minutes\u2026";
|
|
154
|
+
case "talking-photo":
|
|
155
|
+
return "Preparing the speech\u2026";
|
|
156
|
+
case "remix":
|
|
157
|
+
return "Sending the clip to the remix\u2026";
|
|
158
|
+
case "transition":
|
|
159
|
+
return "Reading the two frames the bridge joins\u2026";
|
|
160
|
+
case "dub":
|
|
161
|
+
return "Sending the clip to the dubbing service\u2026";
|
|
162
|
+
case "soundtrack":
|
|
163
|
+
return "Measuring the clip for the music\u2026";
|
|
164
|
+
default:
|
|
165
|
+
return "Running the model on the still - up to a few minutes\u2026";
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function buildEnhanceOp(req, kind) {
|
|
169
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
170
|
+
const noun = kind === "video" ? "clip" : "still";
|
|
171
|
+
switch (req.tool) {
|
|
172
|
+
case "relight": {
|
|
173
|
+
const label = presetLabel(req.preset);
|
|
174
|
+
return {
|
|
175
|
+
op: "ai_relight",
|
|
176
|
+
params: {
|
|
177
|
+
preset: req.preset
|
|
178
|
+
},
|
|
179
|
+
title: `Relight \xB7 ${label}`,
|
|
180
|
+
summary: `Relit the still with ${label.toLowerCase()} light. Replaced in place.`
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
case "expand": {
|
|
184
|
+
const sides = req.sides && Object.values(req.sides).some((v) => v > 0) ? req.sides : void 0;
|
|
185
|
+
const dims = expandedDims(req.src, sides);
|
|
186
|
+
const how = sides ? `widened ${describeSides(sides)}` : `zoomed out ${(_a = req.zoomPercent) != null ? _a : 20}%`;
|
|
187
|
+
return __spreadValues({
|
|
188
|
+
op: "ai_expand",
|
|
189
|
+
params: __spreadValues(__spreadValues({}, sides ? {
|
|
190
|
+
sides
|
|
191
|
+
} : {
|
|
192
|
+
zoomPercent: (_b = req.zoomPercent) != null ? _b : 20
|
|
193
|
+
}), ((_c = req.prompt) == null ? void 0 : _c.trim()) ? {
|
|
194
|
+
prompt: req.prompt.trim()
|
|
195
|
+
} : {}),
|
|
196
|
+
title: "Expand",
|
|
197
|
+
summary: `Generated new surroundings - ${how}${dims ? ` to ${dims.width}x${dims.height}` : ""}. Replaced in place.`
|
|
198
|
+
}, dims ? {
|
|
199
|
+
dims
|
|
200
|
+
} : {});
|
|
201
|
+
}
|
|
202
|
+
case "erase":
|
|
203
|
+
return {
|
|
204
|
+
op: "ai_erase",
|
|
205
|
+
params: {
|
|
206
|
+
prompt: req.prompt.trim()
|
|
207
|
+
},
|
|
208
|
+
title: "Erase",
|
|
209
|
+
summary: `Removed "${clip(req.prompt, 40)}" and filled the gap. Replaced in place.`
|
|
210
|
+
};
|
|
211
|
+
case "restore":
|
|
212
|
+
return {
|
|
213
|
+
op: `ai_${req.mode}`,
|
|
214
|
+
params: {
|
|
215
|
+
mode: req.mode
|
|
216
|
+
},
|
|
217
|
+
title: RESTORE_TITLES[req.mode],
|
|
218
|
+
summary: req.mode === "colorize" ? "Added natural colour to the photo. Replaced in place." : req.mode === "retouch" ? "Retouched the portrait - smoother skin, even tone, same person. Replaced in place." : "Repaired scratches and fading and sharpened the photo. Replaced in place."
|
|
219
|
+
};
|
|
220
|
+
case "stylize": {
|
|
221
|
+
const label = req.preset ? presetLabel(req.preset) : "the reference picture\u2019s style";
|
|
222
|
+
return {
|
|
223
|
+
op: "ai_stylize",
|
|
224
|
+
params: req.preset ? {
|
|
225
|
+
preset: req.preset
|
|
226
|
+
} : {
|
|
227
|
+
referenceUrl: (_d = req.referenceUrl) != null ? _d : ""
|
|
228
|
+
},
|
|
229
|
+
title: req.preset ? `Stylize \xB7 ${label}` : "Stylize \xB7 from reference",
|
|
230
|
+
summary: `Redrew the still in ${req.preset ? label.toLowerCase() : label}. Replaced in place.`
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
case "try-on":
|
|
234
|
+
return {
|
|
235
|
+
op: "ai_try_on",
|
|
236
|
+
params: {
|
|
237
|
+
garmentUrl: req.garmentUrl
|
|
238
|
+
},
|
|
239
|
+
title: "Try on",
|
|
240
|
+
summary: "Dressed the person in the garment from the second photo, pose kept. Replaced in place."
|
|
241
|
+
};
|
|
242
|
+
case "product-shot":
|
|
243
|
+
return {
|
|
244
|
+
op: "ai_product_shot",
|
|
245
|
+
params: ((_e = req.scene) == null ? void 0 : _e.trim()) ? {
|
|
246
|
+
scene: req.scene.trim()
|
|
247
|
+
} : {},
|
|
248
|
+
title: "Product shot",
|
|
249
|
+
summary: ((_f = req.scene) == null ? void 0 : _f.trim()) ? `Placed the product in "${clip(req.scene, 40)}". Replaced in place.` : "Turned the photo into a studio product shot. Replaced in place."
|
|
250
|
+
};
|
|
251
|
+
case "effects": {
|
|
252
|
+
const label = presetLabel(req.effect);
|
|
253
|
+
return {
|
|
254
|
+
op: "ai_effect",
|
|
255
|
+
params: {
|
|
256
|
+
effect: req.effect,
|
|
257
|
+
duration: req.duration
|
|
258
|
+
},
|
|
259
|
+
title: `Effect \xB7 ${label}`,
|
|
260
|
+
summary: `Turned the still into a ${req.duration}s clip of the ${label.toLowerCase()} effect. Undo brings the still back.`
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
case "motion":
|
|
264
|
+
return {
|
|
265
|
+
op: "ai_motion",
|
|
266
|
+
params: __spreadValues({
|
|
267
|
+
videoUrl: req.videoUrl,
|
|
268
|
+
orientation: req.orientation,
|
|
269
|
+
keepSound: req.keepSound
|
|
270
|
+
}, ((_g = req.prompt) == null ? void 0 : _g.trim()) ? {
|
|
271
|
+
prompt: req.prompt.trim()
|
|
272
|
+
} : {}),
|
|
273
|
+
title: "Motion",
|
|
274
|
+
summary: `Made the person in the still perform the reference clip's movement${req.keepSound ? ", with its sound" : ""}. Undo brings the still back.`
|
|
275
|
+
};
|
|
276
|
+
case "talking-photo": {
|
|
277
|
+
const how = req.audioUrl ? "your audio" : `"${clip((_h = req.text) != null ? _h : "", 40)}"`;
|
|
278
|
+
return {
|
|
279
|
+
op: "ai_talking_photo",
|
|
280
|
+
params: __spreadProps(__spreadValues({}, req.audioUrl ? {
|
|
281
|
+
audioUrl: req.audioUrl
|
|
282
|
+
} : {
|
|
283
|
+
text: ((_i = req.text) != null ? _i : "").trim()
|
|
284
|
+
}), {
|
|
285
|
+
quality: req.quality
|
|
286
|
+
}),
|
|
287
|
+
title: "Talking photo",
|
|
288
|
+
summary: `Made the face speak ${how}. Undo brings the still back.`
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
case "remix": {
|
|
292
|
+
const count = (_k = (_j = req.imageUrls) == null ? void 0 : _j.length) != null ? _k : 0;
|
|
293
|
+
const summary = req.mode === "restyle" ? `Redrew the clip in ${styleName(req.styleId)}; motion and sound kept. Replaced in place.` : req.mode === "object-swap" ? `Swapped in ${count} ${count === 1 ? "image" : "images"}; motion, camera and sound kept. Replaced in place.` : `Gave the clip's motion to ${count} ${count === 1 ? "image" : "images"}. Replaced in place.`;
|
|
294
|
+
return {
|
|
295
|
+
op: `ai_remix_${req.mode.replace("-", "_")}`,
|
|
296
|
+
params: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
297
|
+
mode: req.mode
|
|
298
|
+
}, ((_l = req.imageUrls) == null ? void 0 : _l.length) ? {
|
|
299
|
+
imageUrls: req.imageUrls
|
|
300
|
+
} : {}), req.styleId ? {
|
|
301
|
+
styleId: req.styleId
|
|
302
|
+
} : {}), ((_m = req.prompt) == null ? void 0 : _m.trim()) ? {
|
|
303
|
+
prompt: req.prompt.trim()
|
|
304
|
+
} : {}), req.quality ? {
|
|
305
|
+
quality: req.quality
|
|
306
|
+
} : {}), req.resolution ? {
|
|
307
|
+
resolution: req.resolution
|
|
308
|
+
} : {}),
|
|
309
|
+
title: REMIX_TITLES[req.mode],
|
|
310
|
+
summary
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
case "angles": {
|
|
314
|
+
const parts = [req.rotate ? `orbit ${req.rotate < 0 ? "left" : "right"} ${Math.abs(req.rotate)}\xB0` : "", req.tilt ? `tilt ${req.tilt < 0 ? "down" : "up"} ${Math.abs(req.tilt)}\xB0` : "", req.zoom !== "same" ? req.zoom : ""].filter(Boolean);
|
|
315
|
+
return {
|
|
316
|
+
op: "ai_angles",
|
|
317
|
+
params: {
|
|
318
|
+
rotate: req.rotate,
|
|
319
|
+
tilt: req.tilt,
|
|
320
|
+
zoom: req.zoom
|
|
321
|
+
},
|
|
322
|
+
title: "New angle",
|
|
323
|
+
summary: `Redrew the still from a new camera angle (${parts.join(", ") || "a small move"}). Replaced in place.`
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
case "shots":
|
|
327
|
+
return {
|
|
328
|
+
op: "ai_shots",
|
|
329
|
+
params: {
|
|
330
|
+
set: req.set
|
|
331
|
+
},
|
|
332
|
+
title: `Shots \xB7 ${SHOT_SETS[req.set].label}`,
|
|
333
|
+
summary: `Made a 3x3 sheet of nine ${SHOT_SETS[req.set].label.toLowerCase()} shots of the scene. Undo brings the still back.`
|
|
334
|
+
};
|
|
335
|
+
case "transition": {
|
|
336
|
+
const label = (_n = TRANSITION_STYLES.find((s) => s.id === req.style)) == null ? void 0 : _n.label;
|
|
337
|
+
return {
|
|
338
|
+
op: "ai_transition",
|
|
339
|
+
params: __spreadValues(__spreadValues({
|
|
340
|
+
toUrl: req.toUrl
|
|
341
|
+
}, ((_o = req.prompt) == null ? void 0 : _o.trim()) ? {
|
|
342
|
+
prompt: req.prompt.trim()
|
|
343
|
+
} : {}), req.style ? {
|
|
344
|
+
style: req.style
|
|
345
|
+
} : {}),
|
|
346
|
+
title: label ? `Transition \xB7 ${label}` : "Transition",
|
|
347
|
+
summary: kind === "video" && req.toType === "video" ? `Generated a ${label ? `${label.toLowerCase()} ` : ""}bridge from this clip's last frame into the next clip's first and joined all three. Replaced in place.` : `Generated a ${label ? `${label.toLowerCase()} ` : ""}transition clip from one shot into the other. Replaced in place.`
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
case "app":
|
|
351
|
+
return {
|
|
352
|
+
op: `ai_app_${req.appId.replace(/-/g, "_")}`,
|
|
353
|
+
params: {
|
|
354
|
+
appId: req.appId
|
|
355
|
+
},
|
|
356
|
+
title: req.label,
|
|
357
|
+
summary: `Ran ${req.label} on the still with the image model. Replaced in place.`
|
|
358
|
+
};
|
|
359
|
+
case "dub": {
|
|
360
|
+
const name = (_q = (_p = dubLanguage(req.targetLanguage)) == null ? void 0 : _p.name) != null ? _q : req.targetLanguage;
|
|
361
|
+
return {
|
|
362
|
+
op: "ai_dub",
|
|
363
|
+
params: {
|
|
364
|
+
targetLanguage: req.targetLanguage,
|
|
365
|
+
lipSync: req.lipSync
|
|
366
|
+
},
|
|
367
|
+
title: `Dub \xB7 ${name}`,
|
|
368
|
+
summary: req.lipSync ? `Translated the speech into ${name}, re-voiced it and re-timed the mouth to the new words. Replaced in place.` : `Translated the speech into ${name} and re-voiced it; the picture is as filmed. Replaced in place.`
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
case "soundtrack": {
|
|
372
|
+
const own = (_r = req.prompt) == null ? void 0 : _r.trim();
|
|
373
|
+
const mood = own ? void 0 : (_s = soundtrackMood(req.mood)) != null ? _s : soundtrackMood(DEFAULT_SOUNDTRACK_MOOD);
|
|
374
|
+
return {
|
|
375
|
+
op: "ai_soundtrack",
|
|
376
|
+
params: __spreadValues(__spreadProps(__spreadValues({}, own ? {
|
|
377
|
+
prompt: own
|
|
378
|
+
} : {
|
|
379
|
+
mood: mood == null ? void 0 : mood.id
|
|
380
|
+
}), {
|
|
381
|
+
keepSound: req.keepSound
|
|
382
|
+
}), req.keepSound ? {
|
|
383
|
+
level: req.level
|
|
384
|
+
} : {}),
|
|
385
|
+
title: `Soundtrack \xB7 ${(_t = mood == null ? void 0 : mood.label) != null ? _t : (own != null ? own : "").slice(0, 24)}`,
|
|
386
|
+
summary: req.keepSound ? "Wrote instrumental music at the clip\u2019s length and mixed it under the clip\u2019s own sound. Replaced in place." : "Wrote instrumental music at the clip\u2019s length and made it the clip\u2019s only sound. Replaced in place."
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
case "upscale": {
|
|
390
|
+
const out = {
|
|
391
|
+
width: req.src.width * req.factor,
|
|
392
|
+
height: req.src.height * req.factor
|
|
393
|
+
};
|
|
394
|
+
return {
|
|
395
|
+
op: "ai_upscale",
|
|
396
|
+
params: {
|
|
397
|
+
factor: req.factor
|
|
398
|
+
},
|
|
399
|
+
title: `AI upscale ${req.factor}x`,
|
|
400
|
+
summary: `Upscaled the ${noun} ${req.factor}x with AI super-resolution to ${out.width}x${out.height}. Replaced in place.`,
|
|
401
|
+
dims: out
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
case "remove-background":
|
|
405
|
+
return {
|
|
406
|
+
op: "ai_cutout",
|
|
407
|
+
params: {},
|
|
408
|
+
title: "AI cut-out",
|
|
409
|
+
summary: "Cut the subject out with AI matting - the still is now a PNG with transparency."
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
function sidesForRatio(src, ratio) {
|
|
414
|
+
const current = src.width / src.height;
|
|
415
|
+
const cap = (v) => Math.max(0, Math.min(EXPAND_MAX_SIDE, Math.round(v)));
|
|
416
|
+
if (current < ratio) {
|
|
417
|
+
const extra2 = cap((src.height * ratio - src.width) / 2);
|
|
418
|
+
return {
|
|
419
|
+
left: extra2,
|
|
420
|
+
right: extra2,
|
|
421
|
+
top: 0,
|
|
422
|
+
bottom: 0
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
const extra = cap((src.width / ratio - src.height) / 2);
|
|
426
|
+
return {
|
|
427
|
+
left: 0,
|
|
428
|
+
right: 0,
|
|
429
|
+
top: extra,
|
|
430
|
+
bottom: extra
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
function rotateLabel(deg) {
|
|
434
|
+
return deg === 0 ? "Front" : `${deg < 0 ? "Left" : "Right"} ${Math.abs(deg)}\xB0`;
|
|
435
|
+
}
|
|
436
|
+
function filterEffects(group, query) {
|
|
437
|
+
const q = query.trim().toLowerCase().replace(/\s+/g, " ");
|
|
438
|
+
if (!q) return EFFECT_SCENES[group];
|
|
439
|
+
return ALL_EFFECT_SCENES.filter((id) => presetLabel(id).toLowerCase().includes(q) || id.includes(q.replace(/ /g, "_")));
|
|
440
|
+
}
|
|
441
|
+
const REMIX_MIN_SECONDS = 4;
|
|
442
|
+
const REMIX_MAX_SECONDS = 15;
|
|
443
|
+
function remixLengthProblem(seconds) {
|
|
444
|
+
if (seconds === null) return null;
|
|
445
|
+
if (seconds < REMIX_MIN_SECONDS) return `The clip is ${seconds.toFixed(1)}s; a remix needs at least ${REMIX_MIN_SECONDS}s.`;
|
|
446
|
+
if (seconds > REMIX_MAX_SECONDS) return `The clip is ${seconds.toFixed(1)}s; a remix takes up to ${REMIX_MAX_SECONDS}s. Trim it first in the video editor.`;
|
|
447
|
+
return null;
|
|
448
|
+
}
|
|
449
|
+
async function probeVideo(run, src) {
|
|
450
|
+
const raw = await run("yantra-video-editing", "YANTRA_VIDEO_EDIT_PROBE", {
|
|
451
|
+
input_url: unwrapProxyUrl(src)
|
|
452
|
+
});
|
|
453
|
+
return readVideoProbe(raw);
|
|
454
|
+
}
|
|
455
|
+
function readVideoProbe(raw) {
|
|
456
|
+
var _a, _b, _c, _d;
|
|
457
|
+
const d = raw.data && typeof raw.data === "object" ? raw.data : raw;
|
|
458
|
+
const format = (_a = d.format) != null ? _a : {};
|
|
459
|
+
const seconds = Number((_c = (_b = d.duration_secs) != null ? _b : d.duration) != null ? _c : format.duration);
|
|
460
|
+
const streams = Array.isArray(d.streams) ? d.streams : [];
|
|
461
|
+
const stream = (_d = streams.find((s) => s.codec_type === "video")) != null ? _d : d;
|
|
462
|
+
const width = Number(stream.width);
|
|
463
|
+
const height = Number(stream.height);
|
|
464
|
+
return {
|
|
465
|
+
seconds: Number.isFinite(seconds) && seconds > 0 ? seconds : null,
|
|
466
|
+
dims: width > 0 && height > 0 ? {
|
|
467
|
+
width,
|
|
468
|
+
height
|
|
469
|
+
} : null
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
async function runEnhanceEdit(req, src, kind, ctx) {
|
|
473
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
474
|
+
const image = async (p) => ({
|
|
475
|
+
url: await p,
|
|
476
|
+
type: "image"
|
|
477
|
+
});
|
|
478
|
+
const video = async (p) => ({
|
|
479
|
+
url: await p,
|
|
480
|
+
type: "video"
|
|
481
|
+
});
|
|
482
|
+
switch (req.tool) {
|
|
483
|
+
case "relight":
|
|
484
|
+
return image(runImageEnhance(ctx, "relight", src, {
|
|
485
|
+
prompt: req.preset
|
|
486
|
+
}));
|
|
487
|
+
case "expand": {
|
|
488
|
+
const sides = req.sides && Object.values(req.sides).some((v) => v > 0) ? req.sides : void 0;
|
|
489
|
+
const cap = (v) => Math.max(0, Math.min(EXPAND_MAX_SIDE, Math.round(v)));
|
|
490
|
+
return image(runImageEnhance(ctx, "outpaint", src, __spreadProps(__spreadValues({}, ((_a = req.prompt) == null ? void 0 : _a.trim()) ? {
|
|
491
|
+
prompt: req.prompt
|
|
492
|
+
} : {}), {
|
|
493
|
+
input: sides ? {
|
|
494
|
+
expand_left: cap(sides.left),
|
|
495
|
+
expand_right: cap(sides.right),
|
|
496
|
+
expand_top: cap(sides.top),
|
|
497
|
+
expand_bottom: cap(sides.bottom)
|
|
498
|
+
} : {
|
|
499
|
+
zoom_out_percentage: (_b = req.zoomPercent) != null ? _b : 20
|
|
500
|
+
}
|
|
501
|
+
})));
|
|
502
|
+
}
|
|
503
|
+
case "erase":
|
|
504
|
+
(_c = ctx.note) == null ? void 0 : _c.call(ctx, "Running the model on the still - up to a few minutes\u2026");
|
|
505
|
+
return image(runImageEnhance(ctx, "erase", src, {
|
|
506
|
+
prompt: req.prompt
|
|
507
|
+
}));
|
|
508
|
+
case "restore":
|
|
509
|
+
return image(runImageEnhance(ctx, req.mode, src));
|
|
510
|
+
case "stylize":
|
|
511
|
+
return image(runImageEnhance(ctx, "stylize", src, req.preset ? {
|
|
512
|
+
prompt: req.preset
|
|
513
|
+
} : {
|
|
514
|
+
secondImageUrl: (_d = req.referenceUrl) != null ? _d : ""
|
|
515
|
+
}));
|
|
516
|
+
case "try-on":
|
|
517
|
+
return image(runImageEnhance(ctx, "try-on", src, {
|
|
518
|
+
secondImageUrl: req.garmentUrl
|
|
519
|
+
}));
|
|
520
|
+
case "product-shot":
|
|
521
|
+
return image(runImageEnhance(ctx, "product-shot", src, ((_e = req.scene) == null ? void 0 : _e.trim()) ? {
|
|
522
|
+
// The default model takes no words; Bria's places the product in a described scene.
|
|
523
|
+
model: "fal-ai/bria/product-shot",
|
|
524
|
+
input: {
|
|
525
|
+
scene_description: req.scene.trim(),
|
|
526
|
+
placement_type: "automatic"
|
|
527
|
+
}
|
|
528
|
+
} : {}));
|
|
529
|
+
case "effects":
|
|
530
|
+
return video(runVideoEffect(ctx, {
|
|
531
|
+
imageUrl: src,
|
|
532
|
+
effect: req.effect,
|
|
533
|
+
duration: req.duration
|
|
534
|
+
}));
|
|
535
|
+
case "motion":
|
|
536
|
+
return video(runMotionTransfer(ctx, __spreadValues({
|
|
537
|
+
imageUrl: src,
|
|
538
|
+
videoUrl: req.videoUrl,
|
|
539
|
+
orientation: req.orientation,
|
|
540
|
+
keepSound: req.keepSound
|
|
541
|
+
}, req.prompt ? {
|
|
542
|
+
prompt: req.prompt
|
|
543
|
+
} : {})));
|
|
544
|
+
case "talking-photo":
|
|
545
|
+
return video(runTalkingPhoto(ctx, __spreadProps(__spreadValues({
|
|
546
|
+
imageUrl: src
|
|
547
|
+
}, req.audioUrl ? {
|
|
548
|
+
audioUrl: req.audioUrl
|
|
549
|
+
} : {
|
|
550
|
+
text: (_f = req.text) != null ? _f : ""
|
|
551
|
+
}), {
|
|
552
|
+
quality: req.quality
|
|
553
|
+
}), ctx.note));
|
|
554
|
+
case "remix":
|
|
555
|
+
return video(runVideoRemix(ctx, __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
556
|
+
mode: req.mode,
|
|
557
|
+
videoUrl: src
|
|
558
|
+
}, ((_g = req.imageUrls) == null ? void 0 : _g.length) ? {
|
|
559
|
+
imageUrls: req.imageUrls
|
|
560
|
+
} : {}), req.styleId ? {
|
|
561
|
+
styleId: req.styleId
|
|
562
|
+
} : {}), req.prompt ? {
|
|
563
|
+
prompt: req.prompt
|
|
564
|
+
} : {}), req.quality ? {
|
|
565
|
+
quality: req.quality
|
|
566
|
+
} : {}), req.resolution ? {
|
|
567
|
+
resolution: req.resolution
|
|
568
|
+
} : {}), req.seconds ? {
|
|
569
|
+
seconds: req.seconds
|
|
570
|
+
} : {}), ctx.note));
|
|
571
|
+
case "angles":
|
|
572
|
+
return image(runImageEditPrompt(ctx, anglePrompt(req.rotate, req.tilt, req.zoom), src));
|
|
573
|
+
case "shots":
|
|
574
|
+
return image(runImageEditPrompt(ctx, shotsPrompt(req.set), src));
|
|
575
|
+
case "transition":
|
|
576
|
+
return video(runTransition(req, src, kind, ctx));
|
|
577
|
+
case "app":
|
|
578
|
+
return image(runImageEditPrompt(ctx, req.prompt, src));
|
|
579
|
+
case "upscale":
|
|
580
|
+
return kind === "video" ? video(runVideoUpscale(ctx, {
|
|
581
|
+
videoUrl: src,
|
|
582
|
+
factor: req.factor
|
|
583
|
+
})) : image(runImageEnhance(ctx, "upscale", src, {
|
|
584
|
+
input: {
|
|
585
|
+
upscale_factor: req.factor
|
|
586
|
+
}
|
|
587
|
+
}));
|
|
588
|
+
case "remove-background":
|
|
589
|
+
return image(runImageEnhance(ctx, "cutout", src));
|
|
590
|
+
case "dub":
|
|
591
|
+
case "soundtrack": {
|
|
592
|
+
if (kind !== "video") throw new Error(`${req.tool === "dub" ? "Dub" : "Soundtrack"} works on a clip.`);
|
|
593
|
+
return video(req.tool === "dub" ? runDubbedClip(req, src, ctx) : runSoundtrackClip(req, src, ctx));
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
async function runTransition(req, src, kind, ctx) {
|
|
598
|
+
var _a, _b;
|
|
599
|
+
if (!ctx.endFrameModel) throw new Error("No video model that takes a last frame is available for transitions.");
|
|
600
|
+
const {
|
|
601
|
+
run
|
|
602
|
+
} = ctx;
|
|
603
|
+
const note = (_a = ctx.note) != null ? _a : (() => void 0);
|
|
604
|
+
const thumbnail = async (url, at) => resultUrl(await run("yantra-video-editing", "YANTRA_VIDEO_EDIT_THUMBNAIL", __spreadValues({
|
|
605
|
+
input_url: unwrapProxyUrl(url)
|
|
606
|
+
}, at)), "YANTRA_VIDEO_EDIT_THUMBNAIL");
|
|
607
|
+
const fromFrame = kind === "video" ? await thumbnail(src, {
|
|
608
|
+
at_end: true,
|
|
609
|
+
backoff_secs: 0.08
|
|
610
|
+
}) : unwrapProxyUrl(src);
|
|
611
|
+
const toFrame = req.toType === "video" ? await thumbnail(req.toUrl, {
|
|
612
|
+
time_secs: 0.05
|
|
613
|
+
}) : unwrapProxyUrl(req.toUrl);
|
|
614
|
+
const joins = kind === "video" && req.toType === "video";
|
|
615
|
+
note("Generating the bridge between the two frames\u2026");
|
|
616
|
+
const generated = await runWithJob(run, "yantra-video-generation", "YANTRA_VIDEO_GENERATION_GENERATE", buildVideoGenerateParams({
|
|
617
|
+
prompt: transitionPrompt(req.prompt),
|
|
618
|
+
aspectRatio: (_b = ctx.aspectRatio) != null ? _b : "16:9",
|
|
619
|
+
model: ctx.endFrameModel,
|
|
620
|
+
referenceImageUrl: fromFrame,
|
|
621
|
+
referenceEndImageUrl: toFrame
|
|
622
|
+
}), joins ? void 0 : ctx.job);
|
|
623
|
+
const bridge = generationMediaUrl(generated.result);
|
|
624
|
+
if (!joins) return bridge;
|
|
625
|
+
note("Joining the clip, the bridge and the next clip\u2026");
|
|
626
|
+
const joined = await runWithJob(run, "yantra-video-editing", "YANTRA_VIDEO_EDIT_CONCAT", {
|
|
627
|
+
input_urls: [unwrapProxyUrl(src), bridge, unwrapProxyUrl(req.toUrl)]
|
|
628
|
+
}, ctx.job);
|
|
629
|
+
return resultUrl(joined.result, "YANTRA_VIDEO_EDIT_CONCAT");
|
|
630
|
+
}export{EXPAND_MAX_SIDE,REMIX_MAX_SECONDS,REMIX_MIN_SECONDS,SHOT_SETS,TRANSITION_STYLES,anglePrompt,buildEnhanceOp,describeSides,enhanceBudgetMs,enhanceStartLine,expandedDims,filterEffects,mediaAspect,pickEndFrameModel,probeVideo,readVideoProbe,remixLengthProblem,rotateLabel,runEnhanceEdit,shotsPrompt,sidesForRatio,transitionPrompt};//# sourceMappingURL=enhanceOps.js.map
|