@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';import {useMemo,useState,useEffect}from'react';import {Image,Text,View,ScrollView,TextInput,ActivityIndicator,StyleSheet}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {resultUrl
|
|
1
|
+
import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useMemo,useState,useEffect}from'react';import {Image,Text,View,ScrollView,TextInput,ActivityIndicator,StyleSheet}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {describeGrade}from'./matchLook.js';import {friendlyMediaError,resultUrl}from'./videoEditor/mediaActions.js';import {unwrapProxyUrl}from'./videoEditor/remoteMediaClient.js';import {ReframePreview}from'./generator/ReframePreview.js';import {dimsFromShape}from'./generator/reframeGeometry.js';import {removeBackgroundDefaults,KEY_COLOR_CHOICES,normalizeHex,UPSCALE_TARGETS,runReframeChoice,runRemoveBackground,upscalePlan,runUpscale,runExtendVideo,runGrade,runTrackedLipSync}from'./canvasEditOps.js';import {editToolsForItem,EDIT_TOOL_GROUPS,EDIT_TOOL_META}from'./editTools.js';import {probeVideo,mediaAspect}from'./enhanceOps.js';import {ShotsControls,AnglesControls,ProductShotControls,TryOnControls,StylizeControls,RestoreControls,EraseControls,ExpandControls,RelightControls}from'./enhance/ImageAiControls.js';import {TransitionControls,TalkingPhotoControls,MotionControls,EffectsControls}from'./enhance/AnimateControls.js';import {SoundtrackControls,DubControls}from'./enhance/ClipAudioControls.js';import {RemixControls}from'./enhance/RemixControls.js';import {ChipGroup,Note,EnhanceApply}from'./enhance/enhanceUi.js';import {MatchLookControls,LipSyncControls}from'./enhance/PixelToolControls.js';import {MediaSlotRunner,MediaSlot}from'./enhance/MediaSlot.js';import {RunLogCard}from'./generator/RunLogCard.js';import {REFRAME_FORMATS,REFRAME_BARS,stillReframeNote,formatName,describeReframe}from'./reframe.js';import {useCanvasTheme,themedStyles}from'./canvasTheme.js';import {Pressable,pressedStyle,Segmented,RADIUS,SPACE,HIT,TYPE}from'./canvasUi.js';var __defProp = Object.defineProperty;
|
|
2
2
|
var __defProps = Object.defineProperties;
|
|
3
3
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -24,6 +24,25 @@ const FOCUS_STOPS = [0, 0.5, 1];
|
|
|
24
24
|
const SIMILARITY_STEPS = [0.05, 0.1, 0.12, 0.2, 0.3];
|
|
25
25
|
const BLEND_STEPS = [0, 0.04, 0.08, 0.15, 0.25];
|
|
26
26
|
const pct = (v) => `${Math.round(v * 100)}%`;
|
|
27
|
+
const ENHANCE_CONTROLS = {
|
|
28
|
+
relight: RelightControls,
|
|
29
|
+
expand: ExpandControls,
|
|
30
|
+
erase: EraseControls,
|
|
31
|
+
restore: RestoreControls,
|
|
32
|
+
stylize: StylizeControls,
|
|
33
|
+
"try-on": TryOnControls,
|
|
34
|
+
"product-shot": ProductShotControls,
|
|
35
|
+
effects: EffectsControls,
|
|
36
|
+
motion: MotionControls,
|
|
37
|
+
"talking-photo": TalkingPhotoControls,
|
|
38
|
+
remix: RemixControls,
|
|
39
|
+
angles: AnglesControls,
|
|
40
|
+
shots: ShotsControls,
|
|
41
|
+
transition: TransitionControls,
|
|
42
|
+
dub: DubControls,
|
|
43
|
+
soundtrack: SoundtrackControls
|
|
44
|
+
};
|
|
45
|
+
const MEASURED_TOOLS = ["expand", "upscale", "remix", "transition", "extend-video", "dub", "soundtrack"];
|
|
27
46
|
function CanvasEditToolsPanel({
|
|
28
47
|
item,
|
|
29
48
|
runAction,
|
|
@@ -32,23 +51,28 @@ function CanvasEditToolsPanel({
|
|
|
32
51
|
onEditVideo,
|
|
33
52
|
initialTool = null,
|
|
34
53
|
onToolChange,
|
|
35
|
-
showTitle = true
|
|
54
|
+
showTitle = true,
|
|
55
|
+
enhance,
|
|
56
|
+
boardMedia = [],
|
|
57
|
+
pickMedia,
|
|
58
|
+
undoLabel,
|
|
59
|
+
onUndo
|
|
36
60
|
}) {
|
|
37
61
|
var _a, _b;
|
|
38
62
|
const theme = useCanvasTheme();
|
|
39
63
|
const styles = useMemo(() => makeStyles(theme), [theme]);
|
|
40
64
|
const kind = item.type === "video" ? "video" : item.type === "image" ? "image" : null;
|
|
65
|
+
const endFrames = enhance.endFrames;
|
|
41
66
|
const tools = useMemo(() => kind ? editToolsForItem(kind, {
|
|
42
|
-
videoToVideo
|
|
43
|
-
|
|
67
|
+
videoToVideo,
|
|
68
|
+
endFrames
|
|
69
|
+
}) : [], [kind, videoToVideo, endFrames]);
|
|
44
70
|
const [tool, setToolState] = useState(() => initialTool && tools.includes(initialTool) ? initialTool : null);
|
|
45
71
|
const setTool = (next) => {
|
|
46
72
|
setToolState(next);
|
|
47
73
|
onToolChange == null ? void 0 : onToolChange(next);
|
|
48
74
|
};
|
|
49
|
-
const [busy, setBusy] = useState(false);
|
|
50
75
|
const [notice, setNotice] = useState(null);
|
|
51
|
-
const [receipt, setReceipt] = useState(null);
|
|
52
76
|
const [formatId, setFormatId] = useState(REFRAME_FORMATS[0].id);
|
|
53
77
|
const [fit, setFit] = useState("crop");
|
|
54
78
|
const [bars, setBars] = useState("match");
|
|
@@ -58,11 +82,53 @@ function CanvasEditToolsPanel({
|
|
|
58
82
|
const [similarity, setSimilarity] = useState(removeBackgroundDefaults(kind === "video" ? "video" : "image").similarity);
|
|
59
83
|
const [blend, setBlend] = useState(removeBackgroundDefaults(kind === "video" ? "video" : "image").blend);
|
|
60
84
|
const [upscaleTarget, setUpscaleTarget] = useState("1080p");
|
|
61
|
-
const [
|
|
85
|
+
const [upscaleMethod, setUpscaleMethod] = useState("ai");
|
|
86
|
+
const [upscaleFactor, setUpscaleFactor] = useState(2);
|
|
87
|
+
const [backgroundMethod, setBackgroundMethod] = useState(kind === "video" ? "key" : "ai");
|
|
88
|
+
const [dims, setDims] = useState(null);
|
|
89
|
+
const [dimsError, setDimsError] = useState(null);
|
|
90
|
+
const [seconds, setSeconds] = useState(null);
|
|
91
|
+
const [secondsError, setSecondsError] = useState(null);
|
|
92
|
+
const [background, setBackground] = useState(null);
|
|
93
|
+
const [backgroundKind, setBackgroundKind] = useState("image");
|
|
62
94
|
const [extendPrompt, setExtendPrompt] = useState("");
|
|
63
95
|
const [previewDims, setPreviewDims] = useState(null);
|
|
64
96
|
const [previewUri, setPreviewUri] = useState(null);
|
|
65
97
|
const reframeOpen = tool === "reframe";
|
|
98
|
+
const measured = Boolean(tool && MEASURED_TOOLS.includes(tool));
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
if (!measured || !kind) return void 0;
|
|
101
|
+
let cancelled = false;
|
|
102
|
+
setDims(null);
|
|
103
|
+
setDimsError(null);
|
|
104
|
+
setSeconds(null);
|
|
105
|
+
setSecondsError(null);
|
|
106
|
+
if (kind === "image") {
|
|
107
|
+
Image.getSize(item.src, (width, height) => {
|
|
108
|
+
if (!cancelled) setDims({
|
|
109
|
+
width,
|
|
110
|
+
height
|
|
111
|
+
});
|
|
112
|
+
}, () => {
|
|
113
|
+
if (!cancelled) setDimsError("the picture did not load");
|
|
114
|
+
});
|
|
115
|
+
} else if (runAction) {
|
|
116
|
+
probeVideo(runAction, item.src).then((probe) => {
|
|
117
|
+
var _a2;
|
|
118
|
+
if (cancelled) return;
|
|
119
|
+
setDims((_a2 = probe.dims) != null ? _a2 : dimsFromShape(item.width, item.height));
|
|
120
|
+
setSeconds(probe.seconds);
|
|
121
|
+
if (probe.seconds === null) setSecondsError("the probe gave no length");
|
|
122
|
+
}).catch((err) => {
|
|
123
|
+
if (cancelled) return;
|
|
124
|
+
setDims(dimsFromShape(item.width, item.height));
|
|
125
|
+
setSecondsError(friendlyMediaError(err, "clip check").split("\n")[0]);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return () => {
|
|
129
|
+
cancelled = true;
|
|
130
|
+
};
|
|
131
|
+
}, [measured, kind, item.src, item.width, item.height, runAction]);
|
|
66
132
|
useEffect(() => {
|
|
67
133
|
if (!reframeOpen || !kind) return void 0;
|
|
68
134
|
let cancelled = false;
|
|
@@ -99,86 +165,197 @@ function CanvasEditToolsPanel({
|
|
|
99
165
|
fit,
|
|
100
166
|
bars
|
|
101
167
|
}) : null;
|
|
102
|
-
const
|
|
103
|
-
|
|
168
|
+
const Enhance = tool ? ENHANCE_CONTROLS[tool] : void 0;
|
|
169
|
+
const working = enhance.busy;
|
|
170
|
+
const applyEnhance = (request) => {
|
|
171
|
+
void enhance.apply(request, item).then((placed) => {
|
|
172
|
+
if (placed) setTool(null);
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
const aiUpscale = tool === "upscale" && upscaleMethod === "ai";
|
|
176
|
+
const aiCutout = tool === "remove-background" && kind === "image" && backgroundMethod === "ai";
|
|
177
|
+
const showsOwnApply = Boolean(Enhance) || aiUpscale || aiCutout || tool === "match-look" || tool === "lip-sync";
|
|
178
|
+
const aiOut = dims ? {
|
|
179
|
+
width: dims.width * upscaleFactor,
|
|
180
|
+
height: dims.height * upscaleFactor
|
|
181
|
+
} : null;
|
|
182
|
+
const noun = kind === "video" ? "clip" : "still";
|
|
183
|
+
const measure = async () => {
|
|
184
|
+
var _a2;
|
|
185
|
+
if (kind === "video") {
|
|
186
|
+
const probed = runAction ? await probeVideo(runAction, item.src).catch(() => null) : null;
|
|
187
|
+
return (_a2 = probed == null ? void 0 : probed.dims) != null ? _a2 : dimsFromShape(item.width, item.height);
|
|
188
|
+
}
|
|
189
|
+
return new Promise((resolve, reject) => {
|
|
104
190
|
Image.getSize(item.src, (width, height) => resolve({
|
|
105
191
|
width,
|
|
106
192
|
height
|
|
107
193
|
}), () => reject(new Error("Could not read image size")));
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
resolve({
|
|
111
|
-
width: 1920,
|
|
112
|
-
height: 1080
|
|
113
194
|
});
|
|
114
|
-
}
|
|
195
|
+
};
|
|
196
|
+
const perform = async (edit, work) => {
|
|
197
|
+
var _a2;
|
|
198
|
+
if (!tool || working) return;
|
|
199
|
+
setNotice(null);
|
|
200
|
+
const label = EDIT_TOOL_META[tool].label;
|
|
201
|
+
const startLine = (_a2 = edit.startLine) != null ? _a2 : `Running ${label.toLowerCase()} on the ${noun}\u2026`;
|
|
202
|
+
const out = await enhance.track(item, __spreadProps(__spreadValues({}, edit), {
|
|
203
|
+
startLine
|
|
204
|
+
}), work);
|
|
205
|
+
if (!out) return;
|
|
206
|
+
onReplaced(out.url, label);
|
|
207
|
+
setTool(null);
|
|
208
|
+
};
|
|
115
209
|
const run = async () => {
|
|
116
|
-
if (!runAction || !tool ||
|
|
210
|
+
if (!runAction || !tool || working) return;
|
|
117
211
|
if (tool === "edit-video") {
|
|
118
212
|
onEditVideo == null ? void 0 : onEditVideo();
|
|
119
213
|
return;
|
|
120
214
|
}
|
|
121
|
-
setBusy(true);
|
|
122
|
-
setNotice(null);
|
|
123
|
-
setReceipt(null);
|
|
124
215
|
try {
|
|
125
|
-
let url = "";
|
|
126
|
-
let note = null;
|
|
127
216
|
if (tool === "reframe") {
|
|
128
|
-
const
|
|
217
|
+
const src = await measure();
|
|
129
218
|
const choice = {
|
|
130
219
|
format: reframeFormat,
|
|
131
220
|
fit,
|
|
132
221
|
bars,
|
|
133
222
|
focus
|
|
134
223
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
224
|
+
await perform({
|
|
225
|
+
title: `Reframe for ${formatName(reframeFormat)}`,
|
|
226
|
+
key: JSON.stringify({
|
|
227
|
+
tool,
|
|
228
|
+
formatId,
|
|
229
|
+
fit,
|
|
230
|
+
bars,
|
|
231
|
+
focus
|
|
232
|
+
})
|
|
233
|
+
}, async () => {
|
|
234
|
+
var _a2;
|
|
235
|
+
const out = await runReframeChoice(runAction, kind, item.src, choice, src);
|
|
236
|
+
const how = (_a2 = out.note) != null ? _a2 : `${describeReframe(choice, src)}.`;
|
|
237
|
+
return {
|
|
238
|
+
url: out.url,
|
|
239
|
+
summary: `${formatName(reframeFormat)}: ${how}`
|
|
240
|
+
};
|
|
241
|
+
});
|
|
138
242
|
} else if (tool === "remove-background") {
|
|
139
|
-
if (keyChoice === "custom" && !normalizeHex(customHex))
|
|
140
|
-
|
|
141
|
-
|
|
243
|
+
if (keyChoice === "custom" && !normalizeHex(customHex)) {
|
|
244
|
+
setNotice("Type a hex colour like #00ff00");
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
const backgroundUrl = kind === "video" ? background == null ? void 0 : background.url : void 0;
|
|
248
|
+
const key = {
|
|
249
|
+
keyChoice,
|
|
142
250
|
customHex,
|
|
143
251
|
similarity,
|
|
144
|
-
blend
|
|
145
|
-
|
|
252
|
+
blend,
|
|
253
|
+
backgroundUrl
|
|
254
|
+
};
|
|
255
|
+
await perform({
|
|
256
|
+
title: "Remove background",
|
|
257
|
+
key: JSON.stringify(__spreadValues({
|
|
258
|
+
tool
|
|
259
|
+
}, key))
|
|
260
|
+
}, async () => ({
|
|
261
|
+
url: await runRemoveBackground(runAction, kind, item.src, {
|
|
262
|
+
key: keyChoice,
|
|
263
|
+
customHex,
|
|
264
|
+
similarity,
|
|
265
|
+
blend,
|
|
266
|
+
backgroundUrl
|
|
267
|
+
}),
|
|
268
|
+
summary: kind === "image" ? "Keyed out the background - the still is now a PNG with transparency." : backgroundUrl ? "Keyed out the colour and composited the clip over the new background." : "Keyed out the colour; the keyed area is black because MP4 carries no transparency - add a background to fill it."
|
|
269
|
+
}));
|
|
146
270
|
} else if (tool === "upscale") {
|
|
147
|
-
const
|
|
148
|
-
const out = upscalePlan(
|
|
149
|
-
if (!out)
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
271
|
+
const src = await measure();
|
|
272
|
+
const out = upscalePlan(src, upscaleTarget);
|
|
273
|
+
if (!out) {
|
|
274
|
+
setNotice(`Already ${upscaleTarget} or larger (${src.width}x${src.height}) - nothing to add`);
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
await perform({
|
|
278
|
+
title: `Upscale to ${upscaleTarget}`,
|
|
279
|
+
key: JSON.stringify({
|
|
280
|
+
tool,
|
|
281
|
+
upscaleTarget
|
|
282
|
+
})
|
|
283
|
+
}, async () => ({
|
|
284
|
+
url: await runUpscale(runAction, kind, item.src, out),
|
|
285
|
+
summary: `Scaled the ${noun} to ${out.width}x${out.height}.`
|
|
286
|
+
}));
|
|
158
287
|
} else if (tool === "extend-video") {
|
|
159
|
-
|
|
288
|
+
await perform({
|
|
289
|
+
title: "Extend clip",
|
|
290
|
+
key: JSON.stringify({
|
|
291
|
+
tool,
|
|
292
|
+
extendPrompt
|
|
293
|
+
}),
|
|
294
|
+
startLine: "Reading the closing frame\u2026"
|
|
295
|
+
}, async () => ({
|
|
296
|
+
url: await runExtendVideo(runAction, item.src, extendPrompt, mediaAspect(dims, item)),
|
|
297
|
+
summary: "Extended the clip past its end, joined on the closing frame."
|
|
298
|
+
}));
|
|
160
299
|
}
|
|
161
|
-
if (url) onReplaced(url);
|
|
162
|
-
setReceipt(note);
|
|
163
|
-
setTool(null);
|
|
164
300
|
} catch (err) {
|
|
165
301
|
setNotice(friendlyMediaError(err, "edit"));
|
|
166
|
-
} finally {
|
|
167
|
-
setBusy(false);
|
|
168
302
|
}
|
|
169
303
|
};
|
|
170
|
-
|
|
304
|
+
const applyGrade = (grade) => {
|
|
305
|
+
if (!runAction) return;
|
|
306
|
+
void perform({
|
|
307
|
+
title: "Match look",
|
|
308
|
+
key: JSON.stringify({
|
|
309
|
+
tool,
|
|
310
|
+
grade
|
|
311
|
+
})
|
|
312
|
+
}, async () => ({
|
|
313
|
+
url: await runGrade(runAction, kind, item.src, grade),
|
|
314
|
+
summary: `Graded the ${noun} to the reference: ${describeGrade(grade)}.`
|
|
315
|
+
}));
|
|
316
|
+
};
|
|
317
|
+
const applyLipSync = (speech) => {
|
|
318
|
+
if (!runAction) return;
|
|
319
|
+
const how = speech.audioUrl ? "your audio" : `"${speech.text}"`;
|
|
320
|
+
void perform({
|
|
321
|
+
title: "Lip sync",
|
|
322
|
+
key: JSON.stringify(__spreadValues({
|
|
323
|
+
tool
|
|
324
|
+
}, speech)),
|
|
325
|
+
startLine: speech.audioUrl ? "Sending your audio\u2026" : "Speaking the line\u2026"
|
|
326
|
+
}, async (note) => ({
|
|
327
|
+
url: await runTrackedLipSync(runAction, item.src, speech, note),
|
|
328
|
+
summary: `Re-timed the clip\u2019s mouth to ${how}. Replaced in place.`
|
|
329
|
+
}));
|
|
330
|
+
};
|
|
331
|
+
return /* @__PURE__ */ jsx(MediaSlotRunner.Provider, { value: runAction, children: /* @__PURE__ */ jsxs(View, { style: styles.root, children: [
|
|
171
332
|
showTitle ? /* @__PURE__ */ jsx(Text, { style: styles.title, children: "Edit selected" }) : null,
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
333
|
+
undoLabel && onUndo ? /* @__PURE__ */ jsxs(Pressable, { onPress: onUndo, disabled: working, accessibilityRole: "button", accessibilityLabel: `Undo ${undoLabel}`, style: ({
|
|
334
|
+
pressed
|
|
335
|
+
}) => [styles.undo, working && styles.ctaOff, pressedStyle(pressed && !working)], children: [
|
|
336
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "undo-variant", size: 15, color: theme.mutedForeground }),
|
|
337
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.undoLabel, numberOfLines: 1, children: [
|
|
338
|
+
"Undo ",
|
|
339
|
+
undoLabel
|
|
340
|
+
] })
|
|
341
|
+
] }) : null,
|
|
342
|
+
EDIT_TOOL_GROUPS.map((group) => {
|
|
343
|
+
const shelf = group.tools.filter((id) => tools.includes(id));
|
|
344
|
+
if (shelf.length === 0) return null;
|
|
345
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.shelf, children: [
|
|
346
|
+
/* @__PURE__ */ jsx(Text, { style: styles.shelfLabel, children: group.label }),
|
|
347
|
+
/* @__PURE__ */ jsx(ScrollView, { style: HSCROLL, horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsx(View, { style: styles.shelfChips, children: shelf.map((id) => {
|
|
348
|
+
const meta = EDIT_TOOL_META[id];
|
|
349
|
+
const on = tool === id;
|
|
350
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => setTool(on ? null : id), style: ({
|
|
351
|
+
pressed
|
|
352
|
+
}) => [styles.chip, on && styles.chipOn, pressedStyle(pressed)], children: [
|
|
353
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: meta.icon, size: 14, color: on ? theme.background : theme.foreground }),
|
|
354
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.chipLabel, on && styles.chipLabelOn], children: meta.label })
|
|
355
|
+
] }, id);
|
|
356
|
+
}) }) })
|
|
357
|
+
] }, group.label);
|
|
358
|
+
}),
|
|
182
359
|
tool ? /* @__PURE__ */ jsx(Text, { style: styles.blurb, children: EDIT_TOOL_META[tool].blurb }) : null,
|
|
183
360
|
tool === "reframe" ? /* @__PURE__ */ jsxs(View, { style: styles.opts, children: [
|
|
184
361
|
/* @__PURE__ */ jsx(View, { style: styles.chips, children: REFRAME_FORMATS.map((f) => /* @__PURE__ */ jsx(Pressable, { onPress: () => setFormatId(f.id), style: ({
|
|
@@ -206,7 +383,21 @@ function CanvasEditToolsPanel({
|
|
|
206
383
|
} }),
|
|
207
384
|
pendingStillNote ? /* @__PURE__ */ jsx(Text, { style: styles.blurb, children: pendingStillNote }) : null
|
|
208
385
|
] }) : null,
|
|
209
|
-
tool === "remove-background" ? /* @__PURE__ */
|
|
386
|
+
tool === "remove-background" && kind === "image" ? /* @__PURE__ */ jsx(ChipGroup, { options: [{
|
|
387
|
+
id: "ai",
|
|
388
|
+
label: "AI cut-out"
|
|
389
|
+
}, {
|
|
390
|
+
id: "key",
|
|
391
|
+
label: "Colour key"
|
|
392
|
+
}], value: backgroundMethod, onChange: setBackgroundMethod }) : null,
|
|
393
|
+
aiCutout ? /* @__PURE__ */ jsxs(View, { style: styles.opts, children: [
|
|
394
|
+
/* @__PURE__ */ jsx(Note, { children: "A matting model finds the subject and cuts it out with true transparency, so hair, fur and soft edges survive. Works on any background, flat or busy." }),
|
|
395
|
+
/* @__PURE__ */ jsx(EnhanceApply, { label: "Cut out the subject", busyLabel: "Cutting out\u2026", disabled: false, busy: enhance.busy, onPress: () => applyEnhance({
|
|
396
|
+
tool: "remove-background",
|
|
397
|
+
method: "ai"
|
|
398
|
+
}) })
|
|
399
|
+
] }) : null,
|
|
400
|
+
tool === "remove-background" && !aiCutout ? /* @__PURE__ */ jsxs(View, { style: styles.opts, children: [
|
|
210
401
|
/* @__PURE__ */ jsx(View, { style: styles.chips, children: KEY_COLOR_CHOICES.filter((c) => kind === "image" || c.id !== "auto").map((c) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => setKeyChoice(c.id), style: ({
|
|
211
402
|
pressed
|
|
212
403
|
}) => [styles.chip, keyChoice === c.id && styles.chipOn, pressedStyle(pressed)], children: [
|
|
@@ -235,20 +426,63 @@ function CanvasEditToolsPanel({
|
|
|
235
426
|
/* @__PURE__ */ jsx(View, { style: styles.chips, children: BLEND_STEPS.map((v) => /* @__PURE__ */ jsx(Pressable, { onPress: () => setBlend(v), style: ({
|
|
236
427
|
pressed
|
|
237
428
|
}) => [styles.chip, blend === v && styles.chipOn, pressedStyle(pressed)], children: /* @__PURE__ */ jsx(Text, { style: [styles.chipLabel, blend === v && styles.chipLabelOn], children: pct(v) }) }, v)) }),
|
|
238
|
-
/* @__PURE__ */ jsx(Text, { style: styles.blurb, children: kind === "image" ? "The result is a PNG with transparency where the background was." : "MP4 carries no transparency
|
|
429
|
+
/* @__PURE__ */ jsx(Text, { style: styles.blurb, children: kind === "image" ? "The result is a PNG with transparency where the background was." : "MP4 carries no transparency: without a background the keyed area comes back black. A still or a clip works." }),
|
|
430
|
+
kind === "video" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
431
|
+
/* @__PURE__ */ jsx(ChipGroup, { options: [{
|
|
432
|
+
id: "image",
|
|
433
|
+
label: "A still"
|
|
434
|
+
}, {
|
|
435
|
+
id: "video",
|
|
436
|
+
label: "A clip"
|
|
437
|
+
}], value: backgroundKind, onChange: (id) => {
|
|
438
|
+
setBackgroundKind(id);
|
|
439
|
+
setBackground(null);
|
|
440
|
+
} }),
|
|
441
|
+
/* @__PURE__ */ jsx(MediaSlot, { kind: backgroundKind, label: "A new background", value: background, onChange: setBackground, boardMedia, excludeId: item.id, disabled: working, pickMedia })
|
|
442
|
+
] }) : null
|
|
443
|
+
] }) : null,
|
|
444
|
+
tool === "upscale" ? /* @__PURE__ */ jsx(ChipGroup, { options: [{
|
|
445
|
+
id: "ai",
|
|
446
|
+
label: "AI detail"
|
|
447
|
+
}, {
|
|
448
|
+
id: "resample",
|
|
449
|
+
label: "Resample"
|
|
450
|
+
}], value: upscaleMethod, onChange: setUpscaleMethod }) : null,
|
|
451
|
+
aiUpscale ? /* @__PURE__ */ jsxs(View, { style: styles.opts, children: [
|
|
452
|
+
/* @__PURE__ */ jsx(ChipGroup, { options: [{
|
|
453
|
+
id: 2,
|
|
454
|
+
label: "2x"
|
|
455
|
+
}, {
|
|
456
|
+
id: 4,
|
|
457
|
+
label: "4x"
|
|
458
|
+
}], value: upscaleFactor, onChange: setUpscaleFactor }),
|
|
459
|
+
/* @__PURE__ */ jsx(Note, { children: dims && aiOut ? `${dims.width}x${dims.height} \u2192 ${aiOut.width}x${aiOut.height}` : dimsError ? `Could not read the ${kind === "video" ? "clip" : "still"}'s size: ${dimsError}` : "Measuring\u2026" }),
|
|
460
|
+
/* @__PURE__ */ jsxs(Note, { children: [
|
|
461
|
+
"A super-resolution model redraws fine detail at the larger size. It takes a few minutes",
|
|
462
|
+
kind === "video" ? ", longer for long clips" : "",
|
|
463
|
+
"."
|
|
464
|
+
] }),
|
|
465
|
+
/* @__PURE__ */ jsx(EnhanceApply, { label: `Upscale ${upscaleFactor}x with AI`, disabled: !dims, busy: enhance.busy, onPress: () => dims && applyEnhance({
|
|
466
|
+
tool: "upscale",
|
|
467
|
+
method: "ai",
|
|
468
|
+
factor: upscaleFactor,
|
|
469
|
+
src: dims
|
|
470
|
+
}) })
|
|
239
471
|
] }) : null,
|
|
240
|
-
tool === "upscale" ? /* @__PURE__ */ jsx(Segmented, { options: UPSCALE_TARGETS.map((t) => ({
|
|
472
|
+
tool === "upscale" && upscaleMethod === "resample" ? /* @__PURE__ */ jsx(Segmented, { options: UPSCALE_TARGETS.map((t) => ({
|
|
241
473
|
id: t.id,
|
|
242
474
|
label: t.label
|
|
243
475
|
})), value: upscaleTarget, onChange: setUpscaleTarget, style: styles.segmented }) : null,
|
|
244
|
-
|
|
476
|
+
Enhance ? /* @__PURE__ */ jsx(Enhance, { target: item, dims, dimsError, seconds, secondsError, busy: enhance.busy, onApply: applyEnhance, boardMedia, pickMedia, runAction }, item.id) : null,
|
|
477
|
+
tool === "match-look" ? /* @__PURE__ */ jsx(MatchLookControls, { target: item, busy: working, boardMedia, pickMedia, runAction, onApply: applyGrade }, item.id) : null,
|
|
478
|
+
tool === "lip-sync" ? /* @__PURE__ */ jsx(LipSyncControls, { busy: working, pickMedia, onApply: applyLipSync }, item.id) : null,
|
|
245
479
|
tool === "extend-video" ? /* @__PURE__ */ jsx(TextInput, { value: extendPrompt, onChangeText: setExtendPrompt, placeholder: "What should happen next? (optional)", placeholderTextColor: theme.mutedForeground, style: styles.field }) : null,
|
|
246
480
|
notice ? /* @__PURE__ */ jsx(Text, { style: styles.notice, children: notice }) : null,
|
|
247
|
-
|
|
248
|
-
tool ? /* @__PURE__ */ jsx(Pressable, { onPress: () => void run(), disabled:
|
|
481
|
+
enhance.run ? /* @__PURE__ */ jsx(RunLogCard, { run: enhance.run }) : null,
|
|
482
|
+
tool && !showsOwnApply ? /* @__PURE__ */ jsx(Pressable, { onPress: () => void run(), disabled: working || !runAction, style: ({
|
|
249
483
|
pressed
|
|
250
|
-
}) => [styles.cta, (
|
|
251
|
-
] });
|
|
484
|
+
}) => [styles.cta, (working || !runAction) && styles.ctaOff, pressedStyle(pressed && !working && Boolean(runAction))], children: working ? /* @__PURE__ */ jsx(ActivityIndicator, { color: theme.primaryForeground }) : /* @__PURE__ */ jsx(Text, { style: styles.ctaLabel, children: tool === "edit-video" ? "Open editor" : "Apply" }) }) : null
|
|
485
|
+
] }) });
|
|
252
486
|
}
|
|
253
487
|
const makeStyles = themedStyles((theme) => StyleSheet.create({
|
|
254
488
|
root: {
|
|
@@ -269,6 +503,26 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
|
|
|
269
503
|
flexWrap: "wrap",
|
|
270
504
|
gap: SPACE.sm - 2
|
|
271
505
|
},
|
|
506
|
+
undo: {
|
|
507
|
+
flexDirection: "row",
|
|
508
|
+
alignItems: "center",
|
|
509
|
+
alignSelf: "flex-start",
|
|
510
|
+
gap: SPACE.sm - 2,
|
|
511
|
+
minHeight: 32
|
|
512
|
+
},
|
|
513
|
+
undoLabel: __spreadProps(__spreadValues({}, TYPE.caption), {
|
|
514
|
+
color: theme.mutedForeground
|
|
515
|
+
}),
|
|
516
|
+
shelf: {
|
|
517
|
+
gap: SPACE.xs
|
|
518
|
+
},
|
|
519
|
+
shelfLabel: __spreadProps(__spreadValues({}, TYPE.caption), {
|
|
520
|
+
color: theme.mutedForeground
|
|
521
|
+
}),
|
|
522
|
+
shelfChips: {
|
|
523
|
+
flexDirection: "row",
|
|
524
|
+
gap: SPACE.sm - 2
|
|
525
|
+
},
|
|
272
526
|
chip: {
|
|
273
527
|
flexDirection: "row",
|
|
274
528
|
alignItems: "center",
|