@adminide-stack/yantra-mobile 12.0.160-alpha.1 → 12.0.160

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.
Files changed (489) hide show
  1. package/lib/assets/channels/lucy.jpg +0 -0
  2. package/lib/components/GatewayConnector/GatewayConnector.js +3 -2
  3. package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
  4. package/lib/components/GatewayToolbarButtonMobile.js +4 -2
  5. package/lib/components/GatewayToolbarButtonMobile.js.map +1 -1
  6. package/lib/components/NavigationHeader/HeaderMoreMenu.js +2 -1
  7. package/lib/components/NavigationHeader/HeaderMoreMenu.js.map +1 -1
  8. package/lib/components/NavigationHeader/NavigationHeader.js +13 -11
  9. package/lib/components/NavigationHeader/NavigationHeader.js.map +1 -1
  10. package/lib/features/attachments/ComposerAttachMenu.js +15 -6
  11. package/lib/features/attachments/ComposerAttachMenu.js.map +1 -1
  12. package/lib/features/canvas/AudioEditorExperience.js +44 -1
  13. package/lib/features/canvas/AudioEditorExperience.js.map +1 -1
  14. package/lib/features/canvas/CanvasAppsPanel.js +240 -0
  15. package/lib/features/canvas/CanvasAppsPanel.js.map +1 -0
  16. package/lib/features/canvas/CanvasBoardsGrid.js +264 -803
  17. package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -1
  18. package/lib/features/canvas/CanvasEditToolsPanel.js +320 -66
  19. package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -1
  20. package/lib/features/canvas/CanvasExperience.js +366 -235
  21. package/lib/features/canvas/CanvasExperience.js.map +1 -1
  22. package/lib/features/canvas/CanvasGeneratePanel.js +437 -117
  23. package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -1
  24. package/lib/features/canvas/CanvasLibrarySheet.js +218 -18
  25. package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -1
  26. package/lib/features/canvas/CanvasLooksPanel.js +2 -2
  27. package/lib/features/canvas/CanvasLooksPanel.js.map +1 -1
  28. package/lib/features/canvas/CanvasTasksPanel.js +52 -12
  29. package/lib/features/canvas/CanvasTasksPanel.js.map +1 -1
  30. package/lib/features/canvas/CanvasTemplatesPanel.js +2 -2
  31. package/lib/features/canvas/CanvasTemplatesPanel.js.map +1 -1
  32. package/lib/features/canvas/CanvasToolDock.js +146 -37
  33. package/lib/features/canvas/CanvasToolDock.js.map +1 -1
  34. package/lib/features/canvas/DesignCategoryGallery.js +264 -7
  35. package/lib/features/canvas/DesignCategoryGallery.js.map +1 -1
  36. package/lib/features/canvas/NativeCanvasViewer.js +54 -7
  37. package/lib/features/canvas/NativeCanvasViewer.js.map +1 -1
  38. package/lib/features/canvas/SetStudioExperience.js +7 -5
  39. package/lib/features/canvas/SetStudioExperience.js.map +1 -1
  40. package/lib/features/canvas/VideoEditorExperience.js +9 -5
  41. package/lib/features/canvas/VideoEditorExperience.js.map +1 -1
  42. package/lib/features/canvas/VideoGeneratorExperience.js +295 -96
  43. package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
  44. package/lib/features/canvas/appsCatalog.js +554 -0
  45. package/lib/features/canvas/appsCatalog.js.map +1 -0
  46. package/lib/features/canvas/boardActions.js +547 -0
  47. package/lib/features/canvas/boardActions.js.map +1 -0
  48. package/lib/features/canvas/boardHistory.js +264 -0
  49. package/lib/features/canvas/boardHistory.js.map +1 -0
  50. package/lib/features/canvas/canvasAgentChat.js +3 -2
  51. package/lib/features/canvas/canvasAgentChat.js.map +1 -1
  52. package/lib/features/canvas/canvasArtifacts.js +115 -0
  53. package/lib/features/canvas/canvasArtifacts.js.map +1 -0
  54. package/lib/features/canvas/canvasCore.js +5 -2
  55. package/lib/features/canvas/canvasCore.js.map +1 -1
  56. package/lib/features/canvas/canvasEditHistory.js +42 -0
  57. package/lib/features/canvas/canvasEditHistory.js.map +1 -0
  58. package/lib/features/canvas/canvasEditOps.js +27 -21
  59. package/lib/features/canvas/canvasEditOps.js.map +1 -1
  60. package/lib/features/canvas/canvasTasks.js +5 -4
  61. package/lib/features/canvas/canvasTasks.js.map +1 -1
  62. package/lib/features/canvas/canvasUi.js +9 -4
  63. package/lib/features/canvas/canvasUi.js.map +1 -1
  64. package/lib/features/canvas/catalogSearchIndex.js +271 -0
  65. package/lib/features/canvas/catalogSearchIndex.js.map +1 -0
  66. package/lib/features/canvas/characters/CharacterBuilder.js +331 -0
  67. package/lib/features/canvas/characters/CharacterBuilder.js.map +1 -0
  68. package/lib/features/canvas/characters/CharacterPicker.js +207 -0
  69. package/lib/features/canvas/characters/CharacterPicker.js.map +1 -0
  70. package/lib/features/canvas/characters/CharacterStudio.js +106 -0
  71. package/lib/features/canvas/characters/CharacterStudio.js.map +1 -0
  72. package/lib/features/canvas/characters/PhotoDumpTool.js +157 -0
  73. package/lib/features/canvas/characters/PhotoDumpTool.js.map +1 -0
  74. package/lib/features/canvas/characters/PhotoSlot.js +104 -0
  75. package/lib/features/canvas/characters/PhotoSlot.js.map +1 -0
  76. package/lib/features/canvas/characters/RunFooter.js +126 -0
  77. package/lib/features/canvas/characters/RunFooter.js.map +1 -0
  78. package/lib/features/canvas/characters/StoryFramesTool.js +245 -0
  79. package/lib/features/canvas/characters/StoryFramesTool.js.map +1 -0
  80. package/lib/features/canvas/characters/SubjectPicker.js +198 -0
  81. package/lib/features/canvas/characters/SubjectPicker.js.map +1 -0
  82. package/lib/features/canvas/characters/characterActions.js +364 -0
  83. package/lib/features/canvas/characters/characterActions.js.map +1 -0
  84. package/lib/features/canvas/characters/characterRuns.js +256 -0
  85. package/lib/features/canvas/characters/characterRuns.js.map +1 -0
  86. package/lib/features/canvas/characters/characterStore.js +137 -0
  87. package/lib/features/canvas/characters/characterStore.js.map +1 -0
  88. package/lib/features/canvas/characters/characterTools.js +33 -0
  89. package/lib/features/canvas/characters/characterTools.js.map +1 -0
  90. package/lib/features/canvas/characters/characterVocabulary.js +1138 -0
  91. package/lib/features/canvas/characters/characterVocabulary.js.map +1 -0
  92. package/lib/features/canvas/characters/charactersRpc.js +70 -0
  93. package/lib/features/canvas/characters/charactersRpc.js.map +1 -0
  94. package/lib/features/canvas/characters/photoDumpPacks.js +252 -0
  95. package/lib/features/canvas/characters/photoDumpPacks.js.map +1 -0
  96. package/lib/features/canvas/characters/placement.js +114 -0
  97. package/lib/features/canvas/characters/placement.js.map +1 -0
  98. package/lib/features/canvas/characters/storyboard.js +188 -0
  99. package/lib/features/canvas/characters/storyboard.js.map +1 -0
  100. package/lib/features/canvas/createTiles.js +16 -98
  101. package/lib/features/canvas/createTiles.js.map +1 -1
  102. package/lib/features/canvas/creditsOffer.js +21 -0
  103. package/lib/features/canvas/creditsOffer.js.map +1 -0
  104. package/lib/features/canvas/deepLinks.js.map +1 -1
  105. package/lib/features/canvas/designCatalog.js +6 -13
  106. package/lib/features/canvas/designCatalog.js.map +1 -1
  107. package/lib/features/canvas/editTools.js +122 -10
  108. package/lib/features/canvas/editTools.js.map +1 -1
  109. package/lib/features/canvas/editorControls.js +1 -1
  110. package/lib/features/canvas/elements/ElementForm.js +389 -0
  111. package/lib/features/canvas/elements/ElementForm.js.map +1 -0
  112. package/lib/features/canvas/elements/ElementMentionMenu.js +125 -0
  113. package/lib/features/canvas/elements/ElementMentionMenu.js.map +1 -0
  114. package/lib/features/canvas/elements/ElementThumb.js +23 -0
  115. package/lib/features/canvas/elements/ElementThumb.js.map +1 -0
  116. package/lib/features/canvas/elements/ElementsButton.js +55 -0
  117. package/lib/features/canvas/elements/ElementsButton.js.map +1 -0
  118. package/lib/features/canvas/elements/ElementsSheet.js +392 -0
  119. package/lib/features/canvas/elements/ElementsSheet.js.map +1 -0
  120. package/lib/features/canvas/elements/MentionedElements.js +159 -0
  121. package/lib/features/canvas/elements/MentionedElements.js.map +1 -0
  122. package/lib/features/canvas/elements/elementCopy.js +37 -0
  123. package/lib/features/canvas/elements/elementCopy.js.map +1 -0
  124. package/lib/features/canvas/elements/elementImages.js +66 -0
  125. package/lib/features/canvas/elements/elementImages.js.map +1 -0
  126. package/lib/features/canvas/elements/elementsStore.js +164 -0
  127. package/lib/features/canvas/elements/elementsStore.js.map +1 -0
  128. package/lib/features/canvas/elements/shotMentions.js +94 -0
  129. package/lib/features/canvas/elements/shotMentions.js.map +1 -0
  130. package/lib/features/canvas/elements/unicodeWords.js +13 -0
  131. package/lib/features/canvas/elements/unicodeWords.js.map +1 -0
  132. package/lib/features/canvas/elements/useElementMentions.js +94 -0
  133. package/lib/features/canvas/elements/useElementMentions.js.map +1 -0
  134. package/lib/features/canvas/elements/useGeneratorElements.js +83 -0
  135. package/lib/features/canvas/elements/useGeneratorElements.js.map +1 -0
  136. package/lib/features/canvas/elements/useSavedElements.js +170 -0
  137. package/lib/features/canvas/elements/useSavedElements.js.map +1 -0
  138. package/lib/features/canvas/enhance/AnimateControls.js +249 -0
  139. package/lib/features/canvas/enhance/AnimateControls.js.map +1 -0
  140. package/lib/features/canvas/enhance/ClipAudioControls.js +184 -0
  141. package/lib/features/canvas/enhance/ClipAudioControls.js.map +1 -0
  142. package/lib/features/canvas/enhance/ImageAiControls.js +293 -0
  143. package/lib/features/canvas/enhance/ImageAiControls.js.map +1 -0
  144. package/lib/features/canvas/enhance/MediaSlot.js +220 -0
  145. package/lib/features/canvas/enhance/MediaSlot.js.map +1 -0
  146. package/lib/features/canvas/enhance/PixelToolControls.js +236 -0
  147. package/lib/features/canvas/enhance/PixelToolControls.js.map +1 -0
  148. package/lib/features/canvas/enhance/RemixControls.js +166 -0
  149. package/lib/features/canvas/enhance/RemixControls.js.map +1 -0
  150. package/lib/features/canvas/enhance/enhanceUi.js +182 -0
  151. package/lib/features/canvas/enhance/enhanceUi.js.map +1 -0
  152. package/lib/features/canvas/enhance/useEnhanceRunner.js +218 -0
  153. package/lib/features/canvas/enhance/useEnhanceRunner.js.map +1 -0
  154. package/lib/features/canvas/enhanceCatalog.js +110 -0
  155. package/lib/features/canvas/enhanceCatalog.js.map +1 -0
  156. package/lib/features/canvas/enhanceOps.js +630 -0
  157. package/lib/features/canvas/enhanceOps.js.map +1 -0
  158. package/lib/features/canvas/enhanceRpc.js +404 -0
  159. package/lib/features/canvas/enhanceRpc.js.map +1 -0
  160. package/lib/features/canvas/generationModels.js +82 -11
  161. package/lib/features/canvas/generationModels.js.map +1 -1
  162. package/lib/features/canvas/generationTasks.js +46 -17
  163. package/lib/features/canvas/generationTasks.js.map +1 -1
  164. package/lib/features/canvas/generator/GeneratorModelMenu.js +118 -0
  165. package/lib/features/canvas/generator/GeneratorModelMenu.js.map +1 -0
  166. package/lib/features/canvas/generator/audio/AudioLaneSettings.js +127 -0
  167. package/lib/features/canvas/generator/audio/AudioLaneSettings.js.map +1 -0
  168. package/lib/features/canvas/generator/audio/audioLane.js +163 -0
  169. package/lib/features/canvas/generator/audio/audioLane.js.map +1 -0
  170. package/lib/features/canvas/generator/audio/audioVoices.js +108 -0
  171. package/lib/features/canvas/generator/audio/audioVoices.js.map +1 -0
  172. package/lib/features/canvas/generator/audio/clipAudio.js +149 -0
  173. package/lib/features/canvas/generator/audio/clipAudio.js.map +1 -0
  174. package/lib/features/canvas/generator/audio/dub.js +109 -0
  175. package/lib/features/canvas/generator/audio/dub.js.map +1 -0
  176. package/lib/features/canvas/generator/audio/soundtrack.js +70 -0
  177. package/lib/features/canvas/generator/audio/soundtrack.js.map +1 -0
  178. package/lib/features/canvas/generator/audio/useAudioVoices.js +38 -0
  179. package/lib/features/canvas/generator/audio/useAudioVoices.js.map +1 -0
  180. package/lib/features/canvas/generator/audio/useSamplePlayer.js +72 -0
  181. package/lib/features/canvas/generator/audio/useSamplePlayer.js.map +1 -0
  182. package/lib/features/canvas/generator/audio/useSampleUploads.js +11 -0
  183. package/lib/features/canvas/generator/audio/useSampleUploads.js.map +1 -0
  184. package/lib/features/canvas/generator/batchImages.js +198 -0
  185. package/lib/features/canvas/generator/batchImages.js.map +1 -0
  186. package/lib/features/canvas/generator/batchLayout.js +36 -0
  187. package/lib/features/canvas/generator/batchLayout.js.map +1 -0
  188. package/lib/features/canvas/generator/brandKitGeneration.js +47 -0
  189. package/lib/features/canvas/generator/brandKitGeneration.js.map +1 -0
  190. package/lib/features/canvas/generator/cameraVocabulary.js +90 -0
  191. package/lib/features/canvas/generator/cameraVocabulary.js.map +1 -1
  192. package/lib/features/canvas/generator/cinematicVocabulary.js +58 -0
  193. package/lib/features/canvas/generator/cinematicVocabulary.js.map +1 -1
  194. package/lib/features/canvas/generator/elementMentions.js +402 -0
  195. package/lib/features/canvas/generator/elementMentions.js.map +1 -0
  196. package/lib/features/canvas/generator/reuse/BatchCountPill.js +136 -0
  197. package/lib/features/canvas/generator/reuse/BatchCountPill.js.map +1 -0
  198. package/lib/features/canvas/generator/reuse/busyRuns.js +17 -0
  199. package/lib/features/canvas/generator/reuse/busyRuns.js.map +1 -0
  200. package/lib/features/canvas/generator/reuse/generationRecord.js +368 -0
  201. package/lib/features/canvas/generator/reuse/generationRecord.js.map +1 -0
  202. package/lib/features/canvas/generator/reuse/generationReuse.js +77 -0
  203. package/lib/features/canvas/generator/reuse/generationReuse.js.map +1 -0
  204. package/lib/features/canvas/generator/reuse/laneInputs.js +75 -0
  205. package/lib/features/canvas/generator/reuse/laneInputs.js.map +1 -0
  206. package/lib/features/canvas/generator/reuse/modelFavourites.js +87 -0
  207. package/lib/features/canvas/generator/reuse/modelFavourites.js.map +1 -0
  208. package/lib/features/canvas/generator/reuse/recreate.js +121 -0
  209. package/lib/features/canvas/generator/reuse/recreate.js.map +1 -0
  210. package/lib/features/canvas/generator/reuse/retryJob.js +142 -0
  211. package/lib/features/canvas/generator/reuse/retryJob.js.map +1 -0
  212. package/lib/features/canvas/generator/reuse/reusePlan.js +203 -0
  213. package/lib/features/canvas/generator/reuse/reusePlan.js.map +1 -0
  214. package/lib/features/canvas/generator/reuse/runBoard.js +117 -0
  215. package/lib/features/canvas/generator/reuse/runBoard.js.map +1 -0
  216. package/lib/features/canvas/generator/useShotSpec.js +4 -3
  217. package/lib/features/canvas/generator/useShotSpec.js.map +1 -1
  218. package/lib/features/canvas/generator/video/VideoExtrasControls.js +276 -0
  219. package/lib/features/canvas/generator/video/VideoExtrasControls.js.map +1 -0
  220. package/lib/features/canvas/generator/video/cameraMotions.js +66 -0
  221. package/lib/features/canvas/generator/video/cameraMotions.js.map +1 -0
  222. package/lib/features/canvas/generator/video/clipTile.js +20 -0
  223. package/lib/features/canvas/generator/video/clipTile.js.map +1 -0
  224. package/lib/features/canvas/generator/video/mediaSeconds.js +31 -0
  225. package/lib/features/canvas/generator/video/mediaSeconds.js.map +1 -0
  226. package/lib/features/canvas/generator/video/referenceMedia.js +156 -0
  227. package/lib/features/canvas/generator/video/referenceMedia.js.map +1 -0
  228. package/lib/features/canvas/generator/video/useVideoGenExtras.js +179 -0
  229. package/lib/features/canvas/generator/video/useVideoGenExtras.js.map +1 -0
  230. package/lib/features/canvas/generator/video/videoExtras.js +34 -0
  231. package/lib/features/canvas/generator/video/videoExtras.js.map +1 -0
  232. package/lib/features/canvas/generator/video/videoModelCaps.js +96 -0
  233. package/lib/features/canvas/generator/video/videoModelCaps.js.map +1 -0
  234. package/lib/features/canvas/home/BoardHistorySheet.js +266 -0
  235. package/lib/features/canvas/home/BoardHistorySheet.js.map +1 -0
  236. package/lib/features/canvas/home/BoardMenuSheet.js +157 -0
  237. package/lib/features/canvas/home/BoardMenuSheet.js.map +1 -0
  238. package/lib/features/canvas/home/BoardTile.js +224 -0
  239. package/lib/features/canvas/home/BoardTile.js.map +1 -0
  240. package/lib/features/canvas/home/HeroComposer.js +72 -6
  241. package/lib/features/canvas/home/HeroComposer.js.map +1 -1
  242. package/lib/features/canvas/home/SlidesPrompt.js +79 -0
  243. package/lib/features/canvas/home/SlidesPrompt.js.map +1 -0
  244. package/lib/features/canvas/home/TemplatesGallery.js +2 -19
  245. package/lib/features/canvas/home/TemplatesGallery.js.map +1 -1
  246. package/lib/features/canvas/home/TrashView.js +299 -0
  247. package/lib/features/canvas/home/TrashView.js.map +1 -0
  248. package/lib/features/canvas/home/heroShots.js +4 -2
  249. package/lib/features/canvas/home/heroShots.js.map +1 -1
  250. package/lib/features/canvas/home/templatesGallerySources.js +13 -58
  251. package/lib/features/canvas/home/templatesGallerySources.js.map +1 -1
  252. package/lib/features/canvas/home/useYourWork.js +218 -0
  253. package/lib/features/canvas/home/useYourWork.js.map +1 -0
  254. package/lib/features/canvas/homeWork.js +54 -119
  255. package/lib/features/canvas/homeWork.js.map +1 -1
  256. package/lib/features/canvas/influencer/influencerPipeline.js +9 -8
  257. package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -1
  258. package/lib/features/canvas/lazyEditors.js +3 -2
  259. package/lib/features/canvas/lazyEditors.js.map +1 -1
  260. package/lib/features/canvas/lookReading.js +38 -0
  261. package/lib/features/canvas/lookReading.js.map +1 -0
  262. package/lib/features/canvas/matchLook.js +81 -0
  263. package/lib/features/canvas/matchLook.js.map +1 -0
  264. package/lib/features/canvas/mediaUrls.js +22 -1
  265. package/lib/features/canvas/mediaUrls.js.map +1 -1
  266. package/lib/features/canvas/pngPixels.js +224 -0
  267. package/lib/features/canvas/pngPixels.js.map +1 -0
  268. package/lib/features/canvas/rankedCatalogSearch.js +1 -1
  269. package/lib/features/canvas/serverTasks.js +12 -5
  270. package/lib/features/canvas/serverTasks.js.map +1 -1
  271. package/lib/features/canvas/studioCatalog.js +1 -1
  272. package/lib/features/canvas/surfaceIndex.js +287 -11
  273. package/lib/features/canvas/surfaceIndex.js.map +1 -1
  274. package/lib/features/canvas/templateSearch.js +90 -11
  275. package/lib/features/canvas/templateSearch.js.map +1 -1
  276. package/lib/features/canvas/videoEditor/agent/agentLoop.js +6 -5
  277. package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -1
  278. package/lib/features/canvas/videoEditor/agent/brainClient.js +13 -2
  279. package/lib/features/canvas/videoEditor/agent/brainClient.js.map +1 -1
  280. package/lib/features/canvas/videoEditor/agent/cutTools.js +150 -4
  281. package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -1
  282. package/lib/features/canvas/videoEditor/exportTask.js +5 -2
  283. package/lib/features/canvas/videoEditor/exportTask.js.map +1 -1
  284. package/lib/features/canvas/videoEditor/formWidgets.js +1 -1
  285. package/lib/features/canvas/videoEditor/mediaActions.js +18 -3
  286. package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -1
  287. package/lib/features/canvas/videoEditor/produce/ProduceVideoSheet.js +25 -2
  288. package/lib/features/canvas/videoEditor/produce/ProduceVideoSheet.js.map +1 -1
  289. package/lib/features/canvas/videoEditor/produce/produceScenes.js +15 -7
  290. package/lib/features/canvas/videoEditor/produce/produceScenes.js.map +1 -1
  291. package/lib/features/canvas/videoEditor/remoteMediaClient.js +3 -3
  292. package/lib/features/canvas/videoEditor/remoteMediaClient.js.map +1 -1
  293. package/lib/features/channels/ChannelIcon.js +62 -0
  294. package/lib/features/channels/ChannelIcon.js.map +1 -0
  295. package/lib/features/channels/ConnectAppsSheet.js +721 -0
  296. package/lib/features/channels/ConnectAppsSheet.js.map +1 -0
  297. package/lib/features/channels/HomeImessage.js +48 -0
  298. package/lib/features/channels/HomeImessage.js.map +1 -0
  299. package/lib/features/channels/channelLinks.js +90 -0
  300. package/lib/features/channels/channelLinks.js.map +1 -0
  301. package/lib/features/channels/useChannelsApi.js +299 -0
  302. package/lib/features/channels/useChannelsApi.js.map +1 -0
  303. package/lib/features/chat/AskUserCard.js +327 -21
  304. package/lib/features/chat/AskUserCard.js.map +1 -1
  305. package/lib/features/chat/ChatModelSheet.js +414 -0
  306. package/lib/features/chat/ChatModelSheet.js.map +1 -0
  307. package/lib/features/chat/TemplatesChatCards.js +32 -1
  308. package/lib/features/chat/TemplatesChatCards.js.map +1 -1
  309. package/lib/features/chat/askUser.js +130 -17
  310. package/lib/features/chat/askUser.js.map +1 -1
  311. package/lib/features/chat/chatModelCredentials.js +76 -0
  312. package/lib/features/chat/chatModelCredentials.js.map +1 -0
  313. package/lib/features/chat/chatModelPick.js +67 -0
  314. package/lib/features/chat/chatModelPick.js.map +1 -0
  315. package/lib/features/chat/credentialTemplates.js +43 -0
  316. package/lib/features/chat/credentialTemplates.js.map +1 -0
  317. package/lib/features/design/DesignEditorExperience.js +208 -22
  318. package/lib/features/design/DesignEditorExperience.js.map +1 -1
  319. package/lib/features/design/DesignExperience.js +23 -6
  320. package/lib/features/design/DesignExperience.js.map +1 -1
  321. package/lib/features/design/doc/aiDesign.js +6 -16
  322. package/lib/features/design/doc/aiDesign.js.map +1 -1
  323. package/lib/features/design/doc/arrange.js +72 -0
  324. package/lib/features/design/doc/arrange.js.map +1 -0
  325. package/lib/features/design/doc/artifacts.js +40 -10
  326. package/lib/features/design/doc/artifacts.js.map +1 -1
  327. package/lib/features/design/doc/bleedRunout.js +201 -0
  328. package/lib/features/design/doc/bleedRunout.js.map +1 -0
  329. package/lib/features/design/doc/briefForms.js +218 -0
  330. package/lib/features/design/doc/briefForms.js.map +1 -0
  331. package/lib/features/design/doc/chart.js +11 -1
  332. package/lib/features/design/doc/chart.js.map +1 -1
  333. package/lib/features/design/doc/deletedWork.js +13 -0
  334. package/lib/features/design/doc/deletedWork.js.map +1 -0
  335. package/lib/features/design/doc/demoVideo.js +91 -0
  336. package/lib/features/design/doc/demoVideo.js.map +1 -0
  337. package/lib/features/design/doc/docOps.js +15 -0
  338. package/lib/features/design/doc/docOps.js.map +1 -1
  339. package/lib/features/design/doc/layoutGuides.js +159 -0
  340. package/lib/features/design/doc/layoutGuides.js.map +1 -0
  341. package/lib/features/design/doc/pageTemplates.js +286 -0
  342. package/lib/features/design/doc/pageTemplates.js.map +1 -0
  343. package/lib/features/design/doc/resize.js +8 -3
  344. package/lib/features/design/doc/resize.js.map +1 -1
  345. package/lib/features/design/doc/sizes.js +18 -5
  346. package/lib/features/design/doc/sizes.js.map +1 -1
  347. package/lib/features/design/doc/textRuns.js +67 -0
  348. package/lib/features/design/doc/textRuns.js.map +1 -0
  349. package/lib/features/design/doc/types.js +8 -1
  350. package/lib/features/design/doc/types.js.map +1 -1
  351. package/lib/features/design/editor/AiPanel.js +71 -74
  352. package/lib/features/design/editor/AiPanel.js.map +1 -1
  353. package/lib/features/design/editor/AllPagesPanel.js +64 -0
  354. package/lib/features/design/editor/AllPagesPanel.js.map +1 -0
  355. package/lib/features/design/editor/CarouselWizard.js +139 -0
  356. package/lib/features/design/editor/CarouselWizard.js.map +1 -0
  357. package/lib/features/design/editor/DesignCanvas.js +205 -14
  358. package/lib/features/design/editor/DesignCanvas.js.map +1 -1
  359. package/lib/features/design/editor/ExportSheet.js +24 -8
  360. package/lib/features/design/editor/ExportSheet.js.map +1 -1
  361. package/lib/features/design/editor/FlyerBriefForm.js +221 -0
  362. package/lib/features/design/editor/FlyerBriefForm.js.map +1 -0
  363. package/lib/features/design/editor/GuidesPanel.js +152 -0
  364. package/lib/features/design/editor/GuidesPanel.js.map +1 -0
  365. package/lib/features/design/editor/LayerTools.js +24 -1
  366. package/lib/features/design/editor/LayerTools.js.map +1 -1
  367. package/lib/features/design/editor/LayersPanel.js +156 -0
  368. package/lib/features/design/editor/LayersPanel.js.map +1 -0
  369. package/lib/features/design/editor/ToolPanels.js +34 -1
  370. package/lib/features/design/editor/ToolPanels.js.map +1 -1
  371. package/lib/features/design/editor/WordStyleRow.js +66 -0
  372. package/lib/features/design/editor/WordStyleRow.js.map +1 -0
  373. package/lib/features/design/editor/useDesignSave.js +36 -2
  374. package/lib/features/design/editor/useDesignSave.js.map +1 -1
  375. package/lib/features/design/export/exportDesign.js +79 -19
  376. package/lib/features/design/export/exportDesign.js.map +1 -1
  377. package/lib/features/design/export/fetchBytes.js +26 -0
  378. package/lib/features/design/export/fetchBytes.js.map +1 -0
  379. package/lib/features/design/export/pdf.js +16 -1
  380. package/lib/features/design/export/pdf.js.map +1 -1
  381. package/lib/features/design/export/pptx.js +621 -0
  382. package/lib/features/design/export/pptx.js.map +1 -0
  383. package/lib/features/design/export/pptxChart.js +106 -0
  384. package/lib/features/design/export/pptxChart.js.map +1 -0
  385. package/lib/features/design/export/pptxGeometry.js +219 -0
  386. package/lib/features/design/export/pptxGeometry.js.map +1 -0
  387. package/lib/features/design/export/printFile.js +19 -0
  388. package/lib/features/design/export/printFile.js.map +1 -0
  389. package/lib/features/design/export/zip.js +91 -0
  390. package/lib/features/design/export/zip.js.map +1 -0
  391. package/lib/features/design/render/PageCapture.js +95 -23
  392. package/lib/features/design/render/PageCapture.js.map +1 -1
  393. package/lib/features/design/render/TextMeasure.js +1 -1
  394. package/lib/features/design/render/layers.js +1 -1
  395. package/lib/features/design/surface/BoardScreen.js +139 -102
  396. package/lib/features/design/surface/BoardScreen.js.map +1 -1
  397. package/lib/features/design/surface/BrandSheet.js +407 -0
  398. package/lib/features/design/surface/BrandSheet.js.map +1 -0
  399. package/lib/features/design/surface/ChatWorkView.js +154 -0
  400. package/lib/features/design/surface/ChatWorkView.js.map +1 -0
  401. package/lib/features/design/surface/CreationScreen.js +36 -2
  402. package/lib/features/design/surface/CreationScreen.js.map +1 -1
  403. package/lib/features/design/surface/DesignAgentChatPane.js +7 -1
  404. package/lib/features/design/surface/DesignAgentChatPane.js.map +1 -1
  405. package/lib/features/design/surface/DesignHome.js +505 -0
  406. package/lib/features/design/surface/DesignHome.js.map +1 -0
  407. package/lib/features/design/surface/DesignSurfaceExperience.js +182 -9
  408. package/lib/features/design/surface/DesignSurfaceExperience.js.map +1 -1
  409. package/lib/features/design/surface/TasksSheet.js +141 -0
  410. package/lib/features/design/surface/TasksSheet.js.map +1 -0
  411. package/lib/features/design/surface/TemplatesGallery.js +67 -17
  412. package/lib/features/design/surface/TemplatesGallery.js.map +1 -1
  413. package/lib/features/design/surface/WorkTiles.js +207 -0
  414. package/lib/features/design/surface/WorkTiles.js.map +1 -0
  415. package/lib/features/design/surface/agentTurn.js +4 -4
  416. package/lib/features/design/surface/agentTurn.js.map +1 -1
  417. package/lib/features/design/surface/brandKit.js +204 -0
  418. package/lib/features/design/surface/brandKit.js.map +1 -0
  419. package/lib/features/design/surface/designBoard.js +269 -58
  420. package/lib/features/design/surface/designBoard.js.map +1 -1
  421. package/lib/features/design/surface/designChannel.js +30 -6
  422. package/lib/features/design/surface/designChannel.js.map +1 -1
  423. package/lib/features/design/surface/designConnector.js +11 -3
  424. package/lib/features/design/surface/designConnector.js.map +1 -1
  425. package/lib/features/design/surface/designErrors.js +92 -0
  426. package/lib/features/design/surface/designErrors.js.map +1 -0
  427. package/lib/features/design/surface/designLinks.js +64 -1
  428. package/lib/features/design/surface/designLinks.js.map +1 -1
  429. package/lib/features/design/surface/designRun.js +7 -3
  430. package/lib/features/design/surface/designRun.js.map +1 -1
  431. package/lib/features/design/surface/designTheme.js +54 -93
  432. package/lib/features/design/surface/designTheme.js.map +1 -1
  433. package/lib/features/design/surface/execStream.js +2 -2
  434. package/lib/features/design/surface/execStream.js.map +1 -1
  435. package/lib/features/design/surface/freshLinks.js +69 -0
  436. package/lib/features/design/surface/freshLinks.js.map +1 -0
  437. package/lib/features/design/surface/graphicChat.js +37 -0
  438. package/lib/features/design/surface/graphicChat.js.map +1 -0
  439. package/lib/features/design/surface/templateKinds.js +61 -0
  440. package/lib/features/design/surface/templateKinds.js.map +1 -0
  441. package/lib/features/design/surface/useBrandKitInUse.js +90 -0
  442. package/lib/features/design/surface/useBrandKitInUse.js.map +1 -0
  443. package/lib/features/design/surface/useDesignSurface.js +202 -43
  444. package/lib/features/design/surface/useDesignSurface.js.map +1 -1
  445. package/lib/features/design/surface/workList.js +184 -0
  446. package/lib/features/design/surface/workList.js.map +1 -0
  447. package/lib/features/devices/bodyComposition.js.map +1 -1
  448. package/lib/features/docs/DocsEditorExperience.js +18 -3
  449. package/lib/features/docs/DocsEditorExperience.js.map +1 -1
  450. package/lib/features/docs/docArtifacts.js +11 -23
  451. package/lib/features/docs/docArtifacts.js.map +1 -1
  452. package/lib/features/docs/docExport.js +1 -13
  453. package/lib/features/docs/docExport.js.map +1 -1
  454. package/lib/features/docs/docShare.js +28 -1
  455. package/lib/features/docs/docShare.js.map +1 -1
  456. package/lib/features/docs/docxFile.js +221 -0
  457. package/lib/features/docs/docxFile.js.map +1 -0
  458. package/lib/features/home/sky/HomeSky.js +526 -0
  459. package/lib/features/home/sky/HomeSky.js.map +1 -0
  460. package/lib/features/home/sky/homeSkyBar.js +16 -0
  461. package/lib/features/home/sky/homeSkyBar.js.map +1 -0
  462. package/lib/features/home/sky/skyScene.js +273 -0
  463. package/lib/features/home/sky/skyScene.js.map +1 -0
  464. package/lib/features/home/sky/useSkyScene.js +32 -0
  465. package/lib/features/home/sky/useSkyScene.js.map +1 -0
  466. package/lib/features/home/weather.js +8 -3
  467. package/lib/features/home/weather.js.map +1 -1
  468. package/lib/features/links/openInApp.js +8 -1
  469. package/lib/features/links/openInApp.js.map +1 -1
  470. package/lib/features/webbuilder/codezenHandoff.js +7 -1
  471. package/lib/features/webbuilder/codezenHandoff.js.map +1 -1
  472. package/lib/hooks/useChatStream.js +3 -2
  473. package/lib/hooks/useChatStream.js.map +1 -1
  474. package/lib/screens/DesignNative/index.js +13 -3
  475. package/lib/screens/DesignNative/index.js.map +1 -1
  476. package/lib/screens/Devices/index.js.map +1 -1
  477. package/lib/screens/Home/HomeScreen.js +150 -28
  478. package/lib/screens/Home/HomeScreen.js.map +1 -1
  479. package/lib/screens/Home/components/HomeHero.js +7 -4
  480. package/lib/screens/Home/components/HomeHero.js.map +1 -1
  481. package/lib/screens/Home/components/HomeSuggestions.js +5 -3
  482. package/lib/screens/Home/components/HomeSuggestions.js.map +1 -1
  483. package/package.json +4 -4
  484. package/lib/features/design/surface/DesignBoards.js +0 -441
  485. package/lib/features/design/surface/DesignBoards.js.map +0 -1
  486. package/lib/features/design/surface/WetPaint.js +0 -140
  487. package/lib/features/design/surface/WetPaint.js.map +0 -1
  488. package/lib/features/design/surface/metaball.js +0 -48
  489. package/lib/features/design/surface/metaball.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useMemo,useState,useRef,useEffect}from'react';import {View,ScrollView,Text,TextInput,ActivityIndicator,StyleSheet}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {resultUrl,friendlyMediaError,generationImageUrl,generationMediaUrl}from'./videoEditor/mediaActions.js';import {unwrapProxyUrl}from'./videoEditor/remoteMediaClient.js';import {STATIC_IMAGE_MODELS,normalizeModels,promptAudioModels,STATIC_VIDEO_MODELS,generationCapabilities,videoReferenceCap,modelThatReadsImages,videoDurationOptions,buildVideoGenerateParams}from'./generationModels.js';import {MAX_REFERENCE_IMAGES,PROMO_MAX_REFERENCES,addReference,imageLaneCall}from'./generatorReferences.js';import {modelForCommand,parseCommandLine,matchCommands,laneForCommand,findCommand,missingFor,MISSING_LABEL,VIDEO_INPUT_MODEL,commandPrompt}from'./generatorCommands.js';import {ReferenceStrip,StillRoleSwitch,FrameSlot}from'./GeneratorReferenceSlots.js';import {CanvasTemplatesPanel}from'./CanvasTemplatesPanel.js';import {nearestAspect}from'./studioLooks.js';import {ensureFetchableMediaUrls,ensureFetchableMediaUrl}from'./mediaUrls.js';import {DEFAULT_PROMO_PRESET,EMPTY_PROMO_CONTEXT,defaultPromoQuality,defaultNarration,PROMO_PRESETS,PROMO_DURATIONS,PROMO_ASPECT_RATIOS,PROMO_PLAYBOOKS,lookupPromoPreset,designPromoProject,PROMO_CONNECTOR}from'./promoVideo.js';import {PromoContextFields,PromoProductionFields}from'./PromoContextFields.js';import {startPromoTask}from'./canvasTasks.js';import {runTrackedGeneration}from'./generationTasks.js';import {DirectorPill,DirectorSheet}from'./generator/DirectorSheet.js';import {EMPTY_DIRECTION,directedPrompt}from'./generator/direction.js';import {ShotPanel,ShotStructureButton}from'./generator/ShotPanel.js';import {briefWorthStructuring}from'./generator/shot.js';import {useShotSpec}from'./generator/useShotSpec.js';import {RunLogCard}from'./generator/RunLogCard.js';import {logStep,startRun,finishRun,failRun}from'./generator/runLog.js';import {CLIP_COUNT_CHOICES,CLIP_ASPECT_RATIOS,CLIP_RESOLUTIONS,buildClipRunParams,parseClipRunResult}from'./videoClips.js';import {NativeDictationBar}from'../audio-input/NativeDictationBar.js';import {useCanvasTheme,themedStyles}from'./canvasTheme.js';import {Segmented,Pressable,pressedStyle,SPACE,RADIUS,HIT,TYPE}from'./canvasUi.js';var __defProp = Object.defineProperty;
1
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useMemo,useState,useRef,useEffect}from'react';import {View,ScrollView,Text,TextInput,ActivityIndicator,StyleSheet}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {resultUrl,friendlyMediaError,generationMediaUrl}from'./videoEditor/mediaActions.js';import {unwrapProxyUrl}from'./videoEditor/remoteMediaClient.js';import {STATIC_IMAGE_MODELS,normalizeModels,promptAudioModels,STATIC_VIDEO_MODELS,generationCapabilities,videoReferenceCap,modelThatReadsImages,modelThatTakesReferences,videoDurationOptions,buildVideoGenerateParams}from'./generationModels.js';import {MAX_REFERENCE_IMAGES,PROMO_MAX_REFERENCES,addReference}from'./generatorReferences.js';import {modelForCommand,parseCommandLine,matchCommands,laneForCommand,findCommand,missingFor,MISSING_LABEL,VIDEO_INPUT_MODEL,commandPrompt}from'./generatorCommands.js';import {ReferenceStrip,StillRoleSwitch,FrameSlot}from'./GeneratorReferenceSlots.js';import {CanvasTemplatesPanel}from'./CanvasTemplatesPanel.js';import {nearestAspect}from'./studioLooks.js';import {ensureFetchableMediaUrl,ensureFetchableMediaUrls}from'./mediaUrls.js';import {DEFAULT_PROMO_PRESET,EMPTY_PROMO_CONTEXT,defaultPromoQuality,defaultNarration,PROMO_PRESETS,PROMO_DURATIONS,PROMO_ASPECT_RATIOS,PROMO_PLAYBOOKS,lookupPromoPreset,designPromoProject,PROMO_CONNECTOR}from'./promoVideo.js';import {PromoContextFields,PromoProductionFields}from'./PromoContextFields.js';import {brandedMediaPrompt,promoBrandFromKit}from'./generator/brandKitGeneration.js';import {BrandMark,BrandSheet}from'../design/surface/BrandSheet.js';import {useBrandKitInUse}from'../design/surface/useBrandKitInUse.js';import {startPromoTask}from'./canvasTasks.js';import {runTrackedGeneration,describeGenerationInput}from'./generationTasks.js';import {probeVideo}from'./enhanceOps.js';import {ElementMentionMenu}from'./elements/ElementMentionMenu.js';import {ElementsButton}from'./elements/ElementsButton.js';import {ElementsSheet}from'./elements/ElementsSheet.js';import {MentionedElements}from'./elements/MentionedElements.js';import {retargetMention,detachMention}from'./generator/elementMentions.js';import {keepBriefMentions,mentionInShot}from'./elements/shotMentions.js';import {useGeneratorElements}from'./elements/useGeneratorElements.js';import {refreshElements,savedElementsNow}from'./elements/useSavedElements.js';import {runImageBatch}from'./generator/batchImages.js';import {batchProgressLine,partialBatchNotice,imageBatchSummary}from'./generator/batchLayout.js';import {GeneratorModelMenu}from'./generator/GeneratorModelMenu.js';import {useBatchSettings,BatchCountPill}from'./generator/reuse/BatchCountPill.js';import {generationFromCall,generationForResult}from'./generator/reuse/generationRecord.js';import {settleGeneratorRun,unplacedSummary}from'./generator/reuse/runBoard.js';import {modelLabelFor,modelForRun}from'./generator/reuse/modelFavourites.js';import {applySeedToGenerator,reuseNotice}from'./generator/reuse/reusePlan.js';import {DirectorPill,DirectorSheet}from'./generator/DirectorSheet.js';import {EMPTY_DIRECTION,directedPrompt}from'./generator/direction.js';import {ShotPanel,ShotStructureButton}from'./generator/ShotPanel.js';import {briefWorthStructuring}from'./generator/shot.js';import {useShotSpec}from'./generator/useShotSpec.js';import {RunLogCard}from'./generator/RunLogCard.js';import {AudioLaneSettings}from'./generator/audio/AudioLaneSettings.js';import {DEFAULT_AUDIO_LANE,audioPromptPlaceholder,sampleUploadWait,audioLaneProblem,audioLaneOptions,describeAudioLane}from'./generator/audio/audioLane.js';import {useSampleUploads}from'./generator/audio/useSampleUploads.js';import {ELEVENLABS_VOICES}from'./generator/audio/audioVoices.js';import {audioLaneFromOptions,videoExtrasInputs,measuredPatch}from'./generator/reuse/laneInputs.js';import {readClipAspect,madeAspect}from'./generator/video/clipTile.js';import {referenceMediaCaps}from'./generator/video/referenceMedia.js';import {useVideoGenExtras}from'./generator/video/useVideoGenExtras.js';import {SeedPill,VideoReferenceMedia,CameraMotionPicker,SeedSheet}from'./generator/video/VideoExtrasControls.js';import {describeVideoExtras}from'./generator/video/videoExtras.js';import {videoAspectOptions,videoResolutionOptions,videoResolutionParam,keepVideoResolution,keepVideoAspect,videoResolutionListed,seedRange,videoAspectParam}from'./generator/video/videoModelCaps.js';import {logStep,startRun,finishRun,failRun}from'./generator/runLog.js';import {CLIP_COUNT_CHOICES,CLIP_ASPECT_RATIOS,CLIP_RESOLUTIONS,buildClipRunParams,parseClipRunResult}from'./videoClips.js';import {NativeDictationBar}from'../audio-input/NativeDictationBar.js';import {useCanvasTheme,themedStyles}from'./canvasTheme.js';import {Segmented,Pressable,pressedStyle,SPACE,RADIUS,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;
@@ -17,6 +17,9 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ const keepMentions = (brief, spec, supportsAudio) => keepBriefMentions(brief, spec, savedElementsNow().elements, {
21
+ supportsAudio
22
+ });
20
23
  const ASPECTS = ["16:9", "9:16", "1:1"];
21
24
  const MODES = [{
22
25
  id: "image",
@@ -49,13 +52,21 @@ function CanvasGeneratePanel({
49
52
  restyle,
50
53
  lookSeed,
51
54
  boardId,
55
+ placeableBoard,
52
56
  onSlides,
53
57
  onGenerated,
54
58
  onPromoDesigned,
55
59
  onPromoQueued,
56
- pickStill
60
+ pickStill,
61
+ pickMedia,
62
+ onVideoModelChange,
63
+ onImageModelChange,
64
+ boardItems,
65
+ request,
66
+ onRequestDone,
67
+ runHolds
57
68
  }) {
58
- var _a;
69
+ var _a, _b, _c, _d;
59
70
  const theme = useCanvasTheme();
60
71
  const styles = useMemo(() => makeStyles(theme), [theme]);
61
72
  const [mode, setMode] = useState("image");
@@ -67,6 +78,9 @@ function CanvasGeneratePanel({
67
78
  const [videoDuration, setVideoDuration] = useState(0);
68
79
  const [busy, setBusy] = useState(false);
69
80
  const [notice, setNotice] = useState(null);
81
+ const [info, setInfo] = useState(null);
82
+ const [reusedFootage, setReusedFootage] = useState(null);
83
+ const imageBatch = useBatchSettings();
70
84
  const [dictating, setDictating] = useState(false);
71
85
  const [promoPreset, setPromoPreset] = useState(DEFAULT_PROMO_PRESET);
72
86
  const [promoDuration, setPromoDuration] = useState(30);
@@ -98,8 +112,14 @@ function CanvasGeneratePanel({
98
112
  const [direction, setDirection] = useState(EMPTY_DIRECTION);
99
113
  const [directorOpen, setDirectorOpen] = useState(false);
100
114
  const [runLog, setRunLog] = useState(null);
101
- const shot = useShotSpec(runAction);
115
+ const [audioLane, setAudioLane] = useState(DEFAULT_AUDIO_LANE);
116
+ const voiceSamples = useSampleUploads();
117
+ const [seedOpen, setSeedOpen] = useState(false);
118
+ const shot = useShotSpec(runAction, keepMentions);
119
+ const brand = useBrandKitInUse(runAction, "canvas");
120
+ const [brandOpen, setBrandOpen] = useState(false);
102
121
  const pendingCommand = useRef(null);
122
+ const pendingModel = useRef(null);
103
123
  useEffect(() => {
104
124
  if (frameUrl) setStartFrame(frameUrl);
105
125
  }, [frameUrl]);
@@ -134,7 +154,7 @@ function CanvasGeneratePanel({
134
154
  let cancelled = false;
135
155
  const job = mode === "image" ? runAction("yantra-image-generation", "YANTRA_GEMINI_IMAGE_LIST_MODELS", {}) : mode === "audio" ? runAction("yantra-audio", "YANTRA_AUDIO_LIST_MODELS", {}) : runAction("yantra-video-generation", "YANTRA_VIDEO_GENERATION_LIST_MODELS", {});
136
156
  job.then((result) => {
137
- var _a2, _b, _c, _d;
157
+ var _a2, _b2, _c2, _d2, _e;
138
158
  if (cancelled) return;
139
159
  let list = normalizeModels(result);
140
160
  if (mode === "audio") list = promptAudioModels(list);
@@ -143,7 +163,9 @@ function CanvasGeneratePanel({
143
163
  setModels(list);
144
164
  const cmd = pendingCommand.current;
145
165
  pendingCommand.current = null;
146
- setSelectedModel(cmd ? modelForCommand(cmd, list, (_b = (_a2 = list[0]) == null ? void 0 : _a2.id) != null ? _b : "") : (_d = (_c = list[0]) == null ? void 0 : _c.id) != null ? _d : "");
166
+ const loaded = ((_a2 = pendingModel.current) == null ? void 0 : _a2.mode) === mode ? pendingModel.current.id : null;
167
+ pendingModel.current = null;
168
+ setSelectedModel(loaded != null ? loaded : cmd ? modelForCommand(cmd, list, (_c2 = (_b2 = list[0]) == null ? void 0 : _b2.id) != null ? _c2 : "") : (_e = (_d2 = list[0]) == null ? void 0 : _d2.id) != null ? _e : "");
147
169
  }).catch(() => {
148
170
  if (cancelled) return;
149
171
  if (mode === "video") {
@@ -159,20 +181,80 @@ function CanvasGeneratePanel({
159
181
  };
160
182
  }, [mode, runAction]);
161
183
  const modelInfo = models.find((m) => m.id === selectedModel);
184
+ useEffect(() => {
185
+ if (mode === "video" && selectedModel) onVideoModelChange == null ? void 0 : onVideoModelChange(selectedModel);
186
+ }, [mode, selectedModel, onVideoModelChange]);
187
+ const imageModelLabel = mode === "image" ? modelInfo == null ? void 0 : modelInfo.label : void 0;
188
+ useEffect(() => {
189
+ if (mode === "image" && selectedModel) onImageModelChange == null ? void 0 : onImageModelChange(selectedModel, imageModelLabel);
190
+ }, [mode, selectedModel, imageModelLabel, onImageModelChange]);
162
191
  const videoCaps = generationCapabilities(modelInfo);
163
192
  const refCap = videoReferenceCap(models, selectedModel);
164
- const resolutions = mode === "video" ? (_a = modelInfo == null ? void 0 : modelInfo.resolutions) != null ? _a : [] : [];
165
- const effectiveResolution = resolutions.length ? resolutions.includes(videoResolution) ? videoResolution : resolutions.includes("1080p") ? "1080p" : resolutions[resolutions.length - 1] : void 0;
166
- const footageSrc = (seedItem == null ? void 0 : seedItem.type) === "video" ? unwrapProxyUrl(seedItem.src) : void 0;
193
+ const videoAspects = useMemo(() => videoAspectOptions(modelInfo, {
194
+ hasStartFrame: Boolean(startFrame)
195
+ }), [modelInfo, startFrame]);
196
+ const resolutions = useMemo(() => mode === "video" ? videoResolutionOptions(modelInfo) : [], [mode, modelInfo]);
197
+ const effectiveResolution = mode === "video" ? videoResolutionParam(modelInfo, keepVideoResolution(videoResolution, resolutions)) : void 0;
198
+ useEffect(() => {
199
+ if (mode !== "video" || !modelInfo) return;
200
+ setAspect((current) => keepVideoAspect(current, videoAspects));
201
+ }, [mode, modelInfo, videoAspects]);
202
+ const footageSrc = reusedFootage != null ? reusedFootage : (seedItem == null ? void 0 : seedItem.type) === "video" ? unwrapProxyUrl(seedItem.src) : void 0;
167
203
  const hasStill = mode === "image" ? imageStills.length > 0 : Boolean(startFrame || imageStills[0]);
168
204
  const commandLine = parseCommandLine(prompt);
169
205
  const commandSuggestions = (commandLine == null ? void 0 : commandLine.typing) && (mode === "image" || mode === "video") ? matchCommands(commandLine.token) : [];
206
+ const elements = useGeneratorElements({
207
+ prompt,
208
+ setPrompt,
209
+ lane: useMemo(() => ({
210
+ mode,
211
+ imageReferences: imageStills,
212
+ videoReferences: videoRefs,
213
+ imageCap: MAX_REFERENCE_IMAGES,
214
+ videoCap: refCap,
215
+ hasStartFrame: Boolean(startFrame),
216
+ hasEndFrame: Boolean(endFrame),
217
+ // A reference lane (Wan 3.0) has no frame inputs, so frames ride along as stills.
218
+ framesBecomeStills: referenceMediaCaps(modelInfo).framesBecomeStills
219
+ }), [mode, imageStills, videoRefs, refCap, startFrame, endFrame, modelInfo]),
220
+ shot: {
221
+ spec: shot.spec,
222
+ supportsAudio: (_b = (_a = shot.constraints) == null ? void 0 : _a.supportsAudio) != null ? _b : false,
223
+ setSpec: shot.setSpec
224
+ }
225
+ });
226
+ const {
227
+ mentionedCount
228
+ } = elements;
229
+ const videoExtras = useVideoGenExtras({
230
+ model: mode === "video" ? modelInfo : void 0,
231
+ runAction,
232
+ hasStartFrame: Boolean(startFrame),
233
+ hasEndFrame: Boolean(endFrame),
234
+ // The stills this run would send: the strip plus the mentioned elements' pictures.
235
+ stillCount: mode === "video" && elements.preview ? elements.preview.references.length : videoRefs.length,
236
+ // Only footage that goes with the run: a seeded clip with no restyle is a continuation frame.
237
+ sourceVideoUrl: restyle || reusedFootage ? footageSrc != null ? footageSrc : null : null,
238
+ onNotice: setInfo
239
+ });
240
+ const canMention = mode === "image" || mode === "video";
241
+ const boardImages = useMemo(() => (boardItems != null ? boardItems : []).filter((it) => it.type === "image").map((it) => __spreadValues({
242
+ id: it.id,
243
+ src: it.src
244
+ }, it.generatedAssetName ? {
245
+ label: it.generatedAssetName
246
+ } : {})), [boardItems]);
170
247
  useEffect(() => {
171
- const attached = mode === "image" ? imageStills.length > 0 : mode === "video" && Boolean(startFrame);
248
+ const attached = mode === "image" ? imageStills.length + mentionedCount > 0 : mode === "video" && Boolean(startFrame);
172
249
  if (!attached) return;
173
250
  const alt = modelThatReadsImages(models, selectedModel);
174
251
  if (alt) setSelectedModel(alt);
175
- }, [mode, imageStills.length, startFrame, models, selectedModel]);
252
+ }, [mode, imageStills.length, mentionedCount, startFrame, models, selectedModel]);
253
+ useEffect(() => {
254
+ if (mode !== "video" || videoRefs.length + mentionedCount === 0) return;
255
+ const alt = modelThatTakesReferences(models, selectedModel);
256
+ if (alt) setSelectedModel(alt);
257
+ }, [mode, videoRefs.length, mentionedCount, models, selectedModel]);
176
258
  const switchMode = (id) => {
177
259
  setMode(id);
178
260
  setShowModels(false);
@@ -198,6 +280,88 @@ function CanvasGeneratePanel({
198
280
  setSelectedModel(modelForCommand(cmd, models, selectedModel));
199
281
  }
200
282
  };
283
+ const loadSeed = (seed, review) => {
284
+ const setModelFor = (lane) => (id) => {
285
+ pendingModel.current = {
286
+ mode: lane,
287
+ id
288
+ };
289
+ setSelectedModel(id);
290
+ };
291
+ const unloaded = applySeedToGenerator(seed, {
292
+ openPanel: (lane, start) => {
293
+ setTemplatesOpen(false);
294
+ setShowModels(false);
295
+ if (lane !== mode) switchMode(lane);
296
+ setImageStills([]);
297
+ setVideoRefs([]);
298
+ setStartFrame(start != null ? start : null);
299
+ setEndFrame(null);
300
+ setReusedFootage(null);
301
+ setStillRole("source");
302
+ videoExtras.resetInputs();
303
+ },
304
+ clearShot: shot.clear,
305
+ setPrompt,
306
+ image: {
307
+ setModel: setModelFor("image"),
308
+ setAspect,
309
+ setReferences: setImageStills,
310
+ setStillRole
311
+ },
312
+ video: {
313
+ setModel: setModelFor("video"),
314
+ setAspect,
315
+ setDuration: setVideoDuration,
316
+ setResolution: setVideoResolution,
317
+ setReferences: setVideoRefs,
318
+ setEndFrame,
319
+ setSourceVideo: setReusedFootage,
320
+ // Reference clips and audio, camera moves and the seed, in the lane's own controls.
321
+ setExtras: (extras) => {
322
+ const inputs = videoExtrasInputs(extras);
323
+ videoExtras.setClips(inputs.clips);
324
+ videoExtras.setAudio(inputs.audio);
325
+ videoExtras.setMotions(inputs.motions);
326
+ videoExtras.setSeed(inputs.seed);
327
+ void measuredPatch(inputs.clips, "video", videoExtras.measure).then(videoExtras.setClips);
328
+ void measuredPatch(inputs.audio, "audio", videoExtras.measure).then(videoExtras.setAudio);
329
+ }
330
+ },
331
+ audio: {
332
+ setModel: setModelFor("audio"),
333
+ // The voice, voice sample, lyrics, vocals and length.
334
+ setOptions: (options) => setAudioLane(audioLaneFromOptions(options))
335
+ }
336
+ });
337
+ const told = review ? {
338
+ title: "Check the settings, then generate",
339
+ description: `Not run yet: ${seed.notes.join(" ")}${unloaded.length ? ` Not loaded here: ${unloaded.join(" and ")}.` : ""}`
340
+ } : reuseNotice(seed, unloaded);
341
+ setInfo(`${told.title}. ${told.description}`);
342
+ };
343
+ const taken = useRef(null);
344
+ useEffect(() => {
345
+ if (!request || taken.current === request.nonce) return;
346
+ taken.current = request.nonce;
347
+ onRequestDone == null ? void 0 : onRequestDone();
348
+ if (request.kind === "seed") {
349
+ loadSeed(request.seed, request.review);
350
+ return;
351
+ }
352
+ const {
353
+ item
354
+ } = request;
355
+ elements.setPicker({
356
+ view: "create",
357
+ seed: [__spreadValues({
358
+ id: item.id,
359
+ src: item.src
360
+ }, item.generatedAssetName ? {
361
+ label: item.generatedAssetName
362
+ } : {})]
363
+ });
364
+ }, [request]);
201
365
  const pickInto = (target) => pickStill ? (source) => {
202
366
  setPicking(target);
203
367
  pickStill(target, source).then((url) => {
@@ -208,15 +372,19 @@ function CanvasGeneratePanel({
208
372
  else if (target === "endFrame") setEndFrame(clean);
209
373
  else if (target === "videoReference") setVideoRefs((p) => addReference(p, clean, refCap));
210
374
  else setPromoRefs((p) => addReference(p, clean, PROMO_MAX_REFERENCES));
211
- }).catch((err) => setNotice(err instanceof Error ? err.message : "Could not add that image")).finally(() => setPicking(null));
375
+ }).catch((err) => setNotice(friendlyMediaError(err, "image pick"))).finally(() => setPicking(null));
212
376
  } : void 0;
213
- const aspectChoices = mode === "video" ? videoCaps.aspects : [...ASPECTS];
377
+ const aspectChoices = mode === "video" ? videoAspects : [...ASPECTS];
214
378
  const durations = mode === "video" ? videoDurationOptions(modelInfo) : [];
215
379
  const noun = mode === "promo" ? "marketing video" : mode === "slides" ? "slides" : mode;
380
+ const brandPill = mode === "image" || mode === "video" || mode === "promo";
216
381
  const generate = () => {
217
- var _a2, _b;
382
+ var _a2, _b2, _c2, _d2;
218
383
  if (mode === "slides") {
219
- onSlides();
384
+ const topic = prompt.trim();
385
+ if (!topic) return;
386
+ setPrompt("");
387
+ onSlides(topic);
220
388
  return;
221
389
  }
222
390
  if (!runAction) {
@@ -246,8 +414,19 @@ function CanvasGeneratePanel({
246
414
  }
247
415
  const raw = prompt.trim();
248
416
  if (!raw || busy) return;
417
+ if (mode === "video" && videoExtras.blocker) {
418
+ setNotice(videoExtras.blocker);
419
+ return;
420
+ }
421
+ if (mode === "audio") {
422
+ const laneBlock = (_a2 = sampleUploadWait(selectedModel, voiceSamples.uploads, modelInfo == null ? void 0 : modelInfo.type)) != null ? _a2 : audioLaneProblem(selectedModel, audioLane, modelInfo == null ? void 0 : modelInfo.type);
423
+ if (laneBlock) {
424
+ setNotice(laneBlock);
425
+ return;
426
+ }
427
+ }
249
428
  const cmd = mode === "image" || mode === "video" ? findCommand(raw) : void 0;
250
- let model = selectedModel || void 0;
429
+ let model = modelForRun(selectedModel);
251
430
  if (cmd) {
252
431
  const has = {
253
432
  still: hasStill,
@@ -265,7 +444,7 @@ function CanvasGeneratePanel({
265
444
  setNotice(`${cmd.label} needs ${MISSING_LABEL[missing]}`);
266
445
  return;
267
446
  }
268
- model = has.footage && lane === "video" ? (_b = (_a2 = models.find((m) => m.supportsVideoInput)) == null ? void 0 : _a2.id) != null ? _b : VIDEO_INPUT_MODEL : modelForCommand(cmd, models, selectedModel);
447
+ model = has.footage && lane === "video" ? (_c2 = (_b2 = models.find((m) => m.supportsVideoInput)) == null ? void 0 : _b2.id) != null ? _c2 : VIDEO_INPUT_MODEL : modelForCommand(cmd, models, selectedModel);
269
448
  }
270
449
  const typed = cmd ? commandPrompt(raw) : raw;
271
450
  const {
@@ -275,15 +454,39 @@ function CanvasGeneratePanel({
275
454
  compiled: null,
276
455
  snapshot: null
277
456
  };
278
- const text = mode === "video" ? directedPrompt((capturedShot == null ? void 0 : capturedShot.prompt) || typed, direction) : typed;
457
+ const words = (capturedShot == null ? void 0 : capturedShot.prompt) || typed;
458
+ const {
459
+ run: mentionRun,
460
+ block
461
+ } = elements.resolveRun(words);
462
+ if (block) {
463
+ setNotice(`${block.title}. ${block.description}`);
464
+ return;
465
+ }
466
+ const text = mode === "video" ? directedPrompt(words, direction) : typed;
467
+ const spoken = (_d2 = mentionRun == null ? void 0 : mentionRun.prompt) != null ? _d2 : words;
468
+ const modelWords = mode === "video" ? directedPrompt(spoken, direction) : spoken;
469
+ const capturedBrand = brandPill ? brand.kit : null;
470
+ const mediaPrompt = brandedMediaPrompt(modelWords, capturedBrand);
471
+ const branded = promoBrandFromKit({
472
+ brandName: "",
473
+ callToAction: "",
474
+ logoUrl: promoLogoUrl,
475
+ context: promoContext
476
+ }, capturedBrand);
279
477
  if (capturedShot) shot.clear();
478
+ const takenExtras = mode === "video" ? videoExtras.take() : null;
479
+ let sentVideoAspect;
480
+ let audioReceipt = "";
280
481
  setBusy(true);
281
482
  setNotice(null);
483
+ setInfo(null);
484
+ const hold = runHolds == null ? void 0 : runHolds.begin(mode);
282
485
  let log = startRun(`Generate ${noun}`);
283
486
  log = logStep(log, mode === "promo" ? "Submitting the production\u2026" : "Submitting\u2026");
284
487
  setRunLog(log);
285
- const footage = mode === "video" && footageSrc && (restyle || cmd && cmd.needs !== "image") ? footageSrc : void 0;
286
- const promoRequest = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
488
+ const footage = mode === "video" && footageSrc && (restyle || reusedFootage || cmd && cmd.needs !== "image") ? footageSrc : void 0;
489
+ const promoRequest = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
287
490
  prompt: text,
288
491
  preset: promoPreset,
289
492
  durationSeconds: promoDuration,
@@ -292,44 +495,82 @@ function CanvasGeneratePanel({
292
495
  referenceImageUrls: promoRefs
293
496
  } : {}), footageSrc ? {
294
497
  sourceVideoUrl: footageSrc
295
- } : {}), promoLogoUrl ? {
296
- logoUrl: promoLogoUrl
297
- } : {}), promoContext), promoPlaybook ? {
498
+ } : {}), branded.brandName ? {
499
+ brandName: branded.brandName
500
+ } : {}), branded.callToAction ? {
501
+ callToAction: branded.callToAction
502
+ } : {}), branded.logoUrl ? {
503
+ logoUrl: unwrapProxyUrl(branded.logoUrl)
504
+ } : {}), branded.context), promoPlaybook ? {
298
505
  stylePlaybook: promoPlaybook
299
506
  } : {});
507
+ let sentCall = null;
508
+ let batch = null;
509
+ const editing = (cmd ? true : stillRole === "source") && imageStills.length > 0;
510
+ const imageText = editing ? modelWords : mediaPrompt;
511
+ const tracked = {};
512
+ const undelivered = {
513
+ delivered: false,
514
+ onTaskId: (id) => {
515
+ tracked.taskId = id;
516
+ }
517
+ };
300
518
  const job = mode === "image" ? (async () => {
301
- const stills = await ensureFetchableMediaUrls(runAction, imageStills);
302
- const call = imageLaneCall({
303
- prompt: text,
304
- aspectRatio: aspect,
305
- model,
306
- stills,
307
- role: cmd ? "source" : stillRole
308
- });
309
- return runTrackedGeneration({
519
+ var _a3;
520
+ batch = await runImageBatch(__spreadProps(__spreadValues({
310
521
  run: runAction,
522
+ lane: editing ? "edit" : "generate",
523
+ prompt: imageText,
524
+ brief: text,
525
+ model,
526
+ aspectRatio: aspect,
527
+ references: (_a3 = mentionRun == null ? void 0 : mentionRun.references) != null ? _a3 : imageStills,
528
+ count: imageBatch.count,
529
+ replaceFailures: imageBatch.replaceFailures,
530
+ boardId
531
+ }, undelivered), {
532
+ onProgress: (progress) => {
533
+ const line = batchProgressLine(progress);
534
+ if (!line) return;
535
+ log = logStep(log, line);
536
+ setRunLog(log);
537
+ }
538
+ }));
539
+ sentCall = {
311
540
  connector: "yantra-image-generation",
312
- action: call.action,
313
- params: call.params,
314
- mode: "image",
315
- prompt: text,
316
- boardId,
317
- resolveUrl: generationImageUrl
318
- });
319
- })() : mode === "audio" ? runTrackedGeneration({
320
- run: runAction,
321
- connector: "yantra-audio",
322
- action: "YANTRA_AUDIO_RUN_PROMPT",
323
- params: __spreadValues({
541
+ action: batch.call.action,
542
+ params: batch.call.params,
543
+ sent: imageText
544
+ };
545
+ return batch.urls;
546
+ })() : mode === "audio" ? (async () => {
547
+ const laneOptions = audioLaneOptions(selectedModel, audioLane, modelInfo == null ? void 0 : modelInfo.type);
548
+ const params = __spreadValues(__spreadValues(__spreadValues({
324
549
  prompt: text
325
550
  }, model ? {
326
551
  model
327
- } : {}),
328
- mode: "audio",
329
- prompt: text,
330
- boardId,
331
- resolveUrl: (result) => resultUrl(result, "YANTRA_AUDIO_RUN_PROMPT")
332
- }) : mode === "promo" ? startPromoTask(runAction, {
552
+ } : {}), laneOptions), laneOptions.refAudioUrl ? {
553
+ refAudioUrl: await ensureFetchableMediaUrl(runAction, laneOptions.refAudioUrl)
554
+ } : {});
555
+ sentCall = {
556
+ connector: "yantra-audio",
557
+ action: "YANTRA_AUDIO_RUN_PROMPT",
558
+ params,
559
+ sent: text
560
+ };
561
+ audioReceipt = describeAudioLane(selectedModel, audioLane, ELEVENLABS_VOICES, modelInfo == null ? void 0 : modelInfo.type);
562
+ return runTrackedGeneration(__spreadProps(__spreadValues({
563
+ run: runAction,
564
+ connector: "yantra-audio",
565
+ action: "YANTRA_AUDIO_RUN_PROMPT",
566
+ params,
567
+ mode: "audio",
568
+ prompt: text,
569
+ boardId
570
+ }, undelivered), {
571
+ resolveUrl: (result) => resultUrl(result, "YANTRA_AUDIO_RUN_PROMPT")
572
+ })).then((url) => [url]);
573
+ })() : mode === "promo" ? startPromoTask(runAction, {
333
574
  boardId: boardId || "global",
334
575
  brief: text,
335
576
  request: __spreadValues(__spreadValues(__spreadProps(__spreadValues({}, promoRequest), {
@@ -344,58 +585,114 @@ function CanvasGeneratePanel({
344
585
  }).then(() => {
345
586
  onPromoQueued == null ? void 0 : onPromoQueued();
346
587
  setNotice("Production queued. Track it under More > Tasks");
347
- return "";
588
+ return [];
348
589
  }) : (async () => {
590
+ var _a3, _b3;
349
591
  const first = startFrame && !footage && videoCaps.canStartFrame ? await ensureFetchableMediaUrl(runAction, startFrame) : void 0;
350
592
  const last = endFrame && videoCaps.canEndFrame ? await ensureFetchableMediaUrl(runAction, endFrame) : void 0;
351
- const refs = await ensureFetchableMediaUrls(runAction, videoRefs.slice(0, refCap));
352
- return runTrackedGeneration({
593
+ const refs = await ensureFetchableMediaUrls(runAction, ((_a3 = mentionRun == null ? void 0 : mentionRun.references) != null ? _a3 : videoRefs).slice(0, refCap));
594
+ const extras = (_b3 = takenExtras == null ? void 0 : takenExtras.options) != null ? _b3 : {};
595
+ sentVideoAspect = videoAspectParam(modelInfo, keepVideoAspect((capturedShot == null ? void 0 : capturedShot.aspectRatio) || aspect, videoAspects), {
596
+ hasStartFrame: Boolean(first)
597
+ });
598
+ const params = buildVideoGenerateParams(__spreadValues(__spreadValues(__spreadValues({
599
+ prompt: mediaPrompt,
600
+ aspectRatio: sentVideoAspect,
601
+ model,
602
+ durationSeconds: (capturedShot == null ? void 0 : capturedShot.durationSeconds) || videoDuration || void 0,
603
+ referenceImageUrl: first,
604
+ referenceEndImageUrl: last,
605
+ styleReferenceUrls: refs,
606
+ referenceVideoUrl: footage,
607
+ resolution: effectiveResolution,
608
+ // Constraints ride the provider's negative_prompt, never the prompt.
609
+ negativePrompt: capturedShot == null ? void 0 : capturedShot.negativePrompt
610
+ }, extras), extras.referenceVideoUrls ? {
611
+ referenceVideoUrls: await ensureFetchableMediaUrls(runAction, extras.referenceVideoUrls)
612
+ } : {}), extras.referenceAudioUrls ? {
613
+ referenceAudioUrls: await ensureFetchableMediaUrls(runAction, extras.referenceAudioUrls)
614
+ } : {}));
615
+ sentCall = {
616
+ connector: "yantra-video-generation",
617
+ action: "YANTRA_VIDEO_GENERATION_GENERATE",
618
+ params,
619
+ sent: mediaPrompt
620
+ };
621
+ const url = await runTrackedGeneration(__spreadProps(__spreadValues({
353
622
  run: runAction,
354
623
  connector: "yantra-video-generation",
355
624
  action: "YANTRA_VIDEO_GENERATION_GENERATE",
356
- params: buildVideoGenerateParams({
357
- prompt: text,
358
- // The spec's framing wins when it has one: the compiled prompt was written against it.
359
- aspectRatio: (capturedShot == null ? void 0 : capturedShot.aspectRatio) || aspect,
360
- model,
361
- durationSeconds: (capturedShot == null ? void 0 : capturedShot.durationSeconds) || videoDuration || void 0,
362
- referenceImageUrl: first,
363
- referenceEndImageUrl: last,
364
- styleReferenceUrls: refs,
365
- referenceVideoUrl: footage,
366
- resolution: effectiveResolution,
367
- // Constraints ride the provider's negative_prompt, never the prompt.
368
- negativePrompt: capturedShot == null ? void 0 : capturedShot.negativePrompt
369
- }),
625
+ params,
370
626
  mode: "video",
371
627
  prompt: text,
372
- boardId,
628
+ boardId
629
+ }, undelivered), {
373
630
  resolveUrl: generationMediaUrl
374
- });
631
+ }));
632
+ return [url];
375
633
  })();
376
634
  log = logStep(log, mode === "promo" ? "Queued as a background task" : `Generating ${noun}\u2026`);
377
635
  setRunLog(log);
378
- job.then((url) => {
379
- if (url) onGenerated(url, {
380
- prompt: text,
381
- aspect,
636
+ job.then(async (urls) => {
637
+ var _a3;
638
+ const delivered = mode === "video" && urls[0] ? await readClipAspect(urls[0], async (src) => (await probeVideo(runAction, src)).dims) : void 0;
639
+ const madeRatio = madeAspect(sentVideoAspect, delivered);
640
+ const call = sentCall;
641
+ const record = call ? generationFromCall(describeGenerationInput(call.sent, call.connector, call.action, call.params), {
642
+ prompt: mode === "audio" ? text : modelWords,
643
+ modelPrompt: call.sent
644
+ }) : void 0;
645
+ const landing = settleGeneratorRun({
646
+ taskId: tracked.taskId,
647
+ startedOn: boardId != null ? boardId : null,
382
648
  mode
649
+ }, placeableBoard(), urls, text, () => {
650
+ var _a4;
651
+ for (const url of urls) {
652
+ onGenerated(url, __spreadValues({
653
+ prompt: text,
654
+ aspect: mode === "video" ? (_a4 = delivered != null ? delivered : sentVideoAspect) != null ? _a4 : aspect : aspect,
655
+ mode
656
+ }, record ? {
657
+ generation: generationForResult(record, url)
658
+ } : {}));
659
+ }
383
660
  });
384
- const summary = mode === "promo" ? "Production queued. Track it under More > Tasks." : mode === "video" ? `Generated a ${(capturedShot == null ? void 0 : capturedShot.durationSeconds) || videoDuration ? `${(capturedShot == null ? void 0 : capturedShot.durationSeconds) || videoDuration}s ` : ""}${(capturedShot == null ? void 0 : capturedShot.aspectRatio) || aspect}${effectiveResolution ? ` ${effectiveResolution}` : ""} video and placed it on the board.` : `Generated ${mode === "image" ? "an image" : "audio"} and placed it on the board.`;
385
- setRunLog(finishRun(log, summary));
661
+ const made = batch;
662
+ const shortfall = made ? partialBatchNotice(made) : null;
663
+ if (shortfall) setNotice(`${shortfall.title}. ${shortfall.description}`);
664
+ const summary = mode === "promo" ? "Production queued. Track it under More > Tasks." : mode === "video" ? `Generated a ${[(capturedShot == null ? void 0 : capturedShot.durationSeconds) || videoDuration ? `${(capturedShot == null ? void 0 : capturedShot.durationSeconds) || videoDuration}s` : "", madeRatio != null ? madeRatio : "", effectiveResolution != null ? effectiveResolution : ""].filter(Boolean).join(" ")} video and placed it on the board.${takenExtras && describeVideoExtras(takenExtras.options) ? ` ${describeVideoExtras(takenExtras.options)}` : ""}` : made ? imageBatchSummary({
665
+ batch: made,
666
+ editing,
667
+ aspectRatio: aspect,
668
+ guidedBy: editing ? 0 : ((_a3 = mentionRun == null ? void 0 : mentionRun.references) != null ? _a3 : imageStills).length,
669
+ modelLabel: model ? modelLabelFor(models, model) : ""
670
+ }) : `Generated audio${audioReceipt} and placed it on the board.`;
671
+ setRunLog(finishRun(log, landing === "left" ? unplacedSummary(summary) : summary));
386
672
  }).catch((err) => {
387
673
  const message = friendlyMediaError(err, `${noun} generation`);
388
674
  setNotice(message);
389
675
  setRunLog(failRun(log, message));
390
676
  if (shotSnapshot == null ? void 0 : shotSnapshot.spec) shot.restore(shotSnapshot);
391
- }).finally(() => setBusy(false));
677
+ if (takenExtras) videoExtras.restore(takenExtras.inputs);
678
+ }).finally(() => {
679
+ setBusy(false);
680
+ if (hold !== void 0) runHolds == null ? void 0 : runHolds.end(hold);
681
+ });
392
682
  };
393
- const placeholder = mode === "clips" ? "Paste a video URL\u2026" : `Describe the ${mode === "promo" ? "promo" : mode} you want to generate\u2026`;
394
- const cta = mode === "slides" ? "Open slides studio" : `Generate ${noun}`;
395
- const canGo = mode === "slides" || mode === "clips" ? clipUrl.trim().length > 0 || mode === "slides" : prompt.trim().length > 0;
683
+ const brandLabel = brand.off ? "No brand" : (_d = (_c = brand.active) == null ? void 0 : _c.name) != null ? _d : "Add your brand";
684
+ const placeholder = mode === "clips" ? "Paste a video URL\u2026" : mode === "audio" && audioPromptPlaceholder(selectedModel, modelInfo == null ? void 0 : modelInfo.type) ? audioPromptPlaceholder(selectedModel, modelInfo == null ? void 0 : modelInfo.type) : `Describe the ${mode === "promo" ? "promo" : mode} you want to generate\u2026`;
685
+ const cta = `Generate ${noun}`;
686
+ const canGo = mode === "clips" ? clipUrl.trim().length > 0 : prompt.trim().length > 0;
396
687
  return /* @__PURE__ */ jsxs(View, { style: styles.root, children: [
397
688
  /* @__PURE__ */ jsxs(ScrollView, { keyboardShouldPersistTaps: "handled", contentContainerStyle: styles.body, children: [
398
689
  /* @__PURE__ */ jsx(Segmented, { options: MODES, value: mode, onChange: switchMode, style: styles.tabs }),
690
+ brandPill && runAction ? /* @__PURE__ */ jsx(View, { style: styles.pills, children: /* @__PURE__ */ jsxs(Pressable, { onPress: () => setBrandOpen(true), style: ({
691
+ pressed
692
+ }) => [styles.pill, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Brand: ${brandLabel}`, testID: "generate-brand-pill", children: [
693
+ /* @__PURE__ */ jsx(BrandMark, { kit: brand.kit, size: 20 }),
694
+ /* @__PURE__ */ jsx(Text, { style: styles.pillLabel, numberOfLines: 1, children: brandLabel })
695
+ ] }) }) : null,
399
696
  mode === "video" && (seedItem == null ? void 0 : seedItem.type) === "video" && !restyle ? /* @__PURE__ */ jsxs(View, { style: styles.frameBox, children: [
400
697
  /* @__PURE__ */ jsxs(Text, { style: styles.hint, children: [
401
698
  "Continuation frame \xB7 ",
@@ -414,10 +711,10 @@ function CanvasGeneratePanel({
414
711
  pressed
415
712
  }) => [styles.pill, pressedStyle(pressed)], children: [
416
713
  /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "auto-fix", size: 14, color: theme.mutedForeground }),
417
- /* @__PURE__ */ jsx(Text, { style: styles.pillLabel, numberOfLines: 1, children: (modelInfo == null ? void 0 : modelInfo.label) || selectedModel || "Model\u2026" }),
714
+ /* @__PURE__ */ jsx(Text, { style: styles.pillLabel, numberOfLines: 1, children: selectedModel ? modelLabelFor(models, selectedModel) : "Model\u2026" }),
418
715
  /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "chevron-down", size: 14, color: theme.mutedForeground })
419
716
  ] }),
420
- mode !== "audio" ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
717
+ mode !== "audio" && aspectChoices.length > 0 ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
421
718
  const i = aspectChoices.indexOf(aspect);
422
719
  setAspect(aspectChoices[(i < 0 ? 0 : i + 1) % aspectChoices.length]);
423
720
  }, style: ({
@@ -437,7 +734,7 @@ function CanvasGeneratePanel({
437
734
  /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "clock-outline", size: 14, color: theme.mutedForeground }),
438
735
  /* @__PURE__ */ jsx(Text, { style: styles.pillLabel, children: videoDuration ? `${videoDuration}s` : "Auto" })
439
736
  ] }) : null,
440
- effectiveResolution ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
737
+ effectiveResolution && videoResolutionListed(modelInfo) ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
441
738
  const i = resolutions.indexOf(effectiveResolution);
442
739
  setVideoResolution(resolutions[(i + 1) % resolutions.length]);
443
740
  }, style: ({
@@ -446,7 +743,12 @@ function CanvasGeneratePanel({
446
743
  /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "high-definition-box", size: 14, color: theme.mutedForeground }),
447
744
  /* @__PURE__ */ jsx(Text, { style: styles.pillLabel, children: effectiveResolution })
448
745
  ] }) : null,
746
+ mode === "image" ? /* @__PURE__ */ jsx(BatchCountPill, { count: imageBatch.count, onCountChange: imageBatch.setCount, replaceFailures: imageBatch.replaceFailures, onReplaceFailuresChange: imageBatch.setReplaceFailures, disabled: busy }) : null,
747
+ canMention ? /* @__PURE__ */ jsx(ElementsButton, { mentioned: mentionedCount, onPress: () => elements.setPicker({
748
+ view: "list"
749
+ }) }) : null,
449
750
  mode === "video" ? /* @__PURE__ */ jsx(DirectorPill, { value: direction, onPress: () => setDirectorOpen(true) }) : null,
751
+ mode === "video" && videoExtras.takesSeed ? /* @__PURE__ */ jsx(SeedPill, { value: videoExtras.seed, onPress: () => setSeedOpen(true), disabled: busy }) : null,
450
752
  /* @__PURE__ */ jsxs(Pressable, { onPress: () => setTemplatesOpen((v) => !v), style: ({
451
753
  pressed
452
754
  }) => [styles.pill, templatesOpen && styles.pillOn, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: "Browse prompt templates", children: [
@@ -461,10 +763,16 @@ function CanvasGeneratePanel({
461
763
  setPrompt(template.prompt || template.description || template.title);
462
764
  setTemplatesOpen(false);
463
765
  } }) : null,
766
+ mode === "audio" ? /* @__PURE__ */ jsx(AudioLaneSettings, { model: selectedModel, modelType: modelInfo == null ? void 0 : modelInfo.type, value: audioLane, onChange: setAudioLane, trackSampleUpload: voiceSamples.track, sampleUploads: voiceSamples.uploads, disabled: busy, runAction, pickMedia, boardMedia: boardItems }) : null,
464
767
  mode === "image" ? /* @__PURE__ */ jsxs(View, { style: styles.refBlock, children: [
465
768
  /* @__PURE__ */ jsx(ReferenceStrip, { label: "Images", hint: "Attach a still to edit it, or to guide a new image", urls: imageStills, cap: MAX_REFERENCE_IMAGES, busy: picking === "reference", onPick: pickInto("reference"), onRemove: (url) => setImageStills((p) => p.filter((u) => u !== url)) }),
466
769
  imageStills.length > 0 ? /* @__PURE__ */ jsx(StillRoleSwitch, { value: stillRole, onChange: setStillRole }) : null
467
770
  ] }) : null,
771
+ mode === "video" && reusedFootage ? /* @__PURE__ */ jsx(View, { style: styles.pills, children: /* @__PURE__ */ jsxs(View, { style: styles.pill, children: [
772
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "movie-open-outline", size: 14, color: theme.mutedForeground }),
773
+ /* @__PURE__ */ jsx(Text, { style: styles.pillLabel, children: videoExtras.footageBadge }),
774
+ /* @__PURE__ */ jsx(Pressable, { onPress: () => setReusedFootage(null), hitSlop: 10, accessibilityRole: "button", accessibilityLabel: "Leave out the source clip", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "close", size: 14, color: theme.mutedForeground }) })
775
+ ] }) }) : null,
468
776
  mode === "video" && !(restyle && footageSrc) ? /* @__PURE__ */ jsxs(View, { style: styles.refBlock, children: [
469
777
  /* @__PURE__ */ jsx(Text, { style: styles.rowLabel, children: "Reference" }),
470
778
  /* @__PURE__ */ jsxs(View, { style: styles.slotRow, children: [
@@ -473,15 +781,21 @@ function CanvasGeneratePanel({
473
781
  ] }),
474
782
  /* @__PURE__ */ jsx(ReferenceStrip, { label: "Other references", hint: "Keep a look, character or product, without opening on it", urls: videoRefs.slice(0, refCap), cap: refCap, busy: picking === "videoReference", onPick: pickInto("videoReference"), onRemove: (url) => setVideoRefs((p) => p.filter((u) => u !== url)) })
475
783
  ] }) : null,
476
- showModels && models.length > 0 ? /* @__PURE__ */ jsx(View, { style: styles.menu, children: models.map((m) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
477
- setSelectedModel(m.id);
478
- setShowModels(false);
479
- }, style: ({
480
- pressed
481
- }) => [styles.menuRow, m.id === selectedModel && styles.menuRowOn, pressedStyle(pressed)], children: [
482
- /* @__PURE__ */ jsx(Text, { style: styles.menuLabel, numberOfLines: 1, children: m.label || m.id }),
483
- m.id === selectedModel ? /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "check", size: 18, color: theme.foreground }) : null
484
- ] }, m.id)) }) : null,
784
+ mode === "video" ? /* @__PURE__ */ jsx(VideoReferenceMedia, { extras: videoExtras, boardMedia: boardItems != null ? boardItems : [], pickMedia, disabled: busy }) : null,
785
+ mode === "video" && videoExtras.takesMotions ? /* @__PURE__ */ jsx(CameraMotionPicker, { value: videoExtras.motions, onChange: videoExtras.setMotions, hasFrame: Boolean(startFrame || endFrame), disabled: busy }) : null,
786
+ showModels && models.length > 0 ? /* @__PURE__ */ jsx(
787
+ GeneratorModelMenu,
788
+ {
789
+ lane: mode === "image" ? "image" : mode === "video" ? "video" : "audio",
790
+ models,
791
+ selectedId: selectedModel,
792
+ onSelect: (id) => {
793
+ setSelectedModel(id);
794
+ setShowModels(false);
795
+ },
796
+ blocked: (m) => mode === "video" ? videoExtras.blockReason(m) : mode === "image" && imageStills.length > 0 && m.supportsImageInput === false ? `${m.label || m.id} cannot read a reference image - remove the stills to use it` : null
797
+ }
798
+ ) : null,
485
799
  mode === "promo" ? /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.hScroll, contentContainerStyle: styles.pills, children: PROMO_PRESETS.map((p) => /* @__PURE__ */ jsx(Pressable, { onPress: () => {
486
800
  setPromoPreset(p.id);
487
801
  setPromoDuration(p.defaultDurationSeconds);
@@ -530,13 +844,14 @@ function CanvasGeneratePanel({
530
844
  id: value,
531
845
  label: `${value}p`
532
846
  })), value: clipRes, onChange: setClipRes, style: styles.segmented })
533
- ] }) : mode === "slides" ? /* @__PURE__ */ jsx(Text, { style: styles.hint, children: "Opens the slides studio, the same as Generate, then Slides, on the web." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
847
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
534
848
  mode === "video" && shot.spec && shot.constraints ? /* @__PURE__ */ jsx(ShotPanel, { spec: shot.spec, constraints: shot.constraints, onChange: shot.setSpec, onDiscard: () => {
535
849
  const brief = shot.discard();
536
850
  if (brief) setPrompt(brief);
537
- }, onRestructure: () => void shot.structure(shot.brief.current, selectedModel), busy: shot.busy }) : /* @__PURE__ */ jsx(TextInput, { value: prompt, onChangeText: setPrompt, placeholder: mode === "image" || mode === "video" ? `${placeholder} Type / for effects` : placeholder, placeholderTextColor: theme.mutedForeground, multiline: true, style: styles.prompt }),
851
+ }, onRestructure: () => void shot.structure(shot.brief.current, selectedModel), busy: shot.busy }) : /* @__PURE__ */ jsx(TextInput, __spreadProps(__spreadValues({ value: prompt }, elements.mentions.inputProps), { placeholder: mode === "image" || mode === "video" ? `${placeholder} Type / for effects, @ for a saved element` : placeholder, placeholderTextColor: theme.mutedForeground, multiline: true, style: styles.prompt })),
538
852
  mode === "video" && !shot.spec && briefWorthStructuring(prompt) && runAction ? /* @__PURE__ */ jsx(ShotStructureButton, { busy: shot.busy, onPress: () => void shot.structure(prompt, selectedModel) }) : null,
539
853
  shot.error && mode === "video" ? /* @__PURE__ */ jsx(Text, { style: styles.hint, children: shot.error }) : null,
854
+ /* @__PURE__ */ jsx(MentionedElements, { run: elements.preview, status: elements.store.status, onPromptChange: elements.editMentions, onRetry: () => void refreshElements(), asWritten: elements.asWritten, onSendAsWritten: elements.sendAsWritten }),
540
855
  commandSuggestions.length > 0 ? /* @__PURE__ */ jsx(ScrollView, { horizontal: true, keyboardShouldPersistTaps: "handled", showsHorizontalScrollIndicator: false, style: styles.hScroll, contentContainerStyle: styles.pills, children: commandSuggestions.map((cmd) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => applyCommand(cmd), style: ({
541
856
  pressed
542
857
  }) => [styles.pill, pressedStyle(pressed)], accessibilityRole: "button", accessibilityHint: cmd.blurb, children: [
@@ -548,7 +863,11 @@ function CanvasGeneratePanel({
548
863
  ] }, cmd.id)) }) : null
549
864
  ] })
550
865
  ] }),
866
+ elements.mentions.open ? /* @__PURE__ */ jsx(ElementMentionMenu, { elements: elements.mentions.matches, onPick: elements.mentions.pick, onCreate: () => elements.setPicker({
867
+ view: "create"
868
+ }) }) : null,
551
869
  runLog ? /* @__PURE__ */ jsx(View, { style: styles.runLog, children: /* @__PURE__ */ jsx(RunLogCard, { run: runLog }) }) : null,
870
+ info ? /* @__PURE__ */ jsx(Text, { style: styles.info, children: info }) : null,
552
871
  notice ? /* @__PURE__ */ jsx(Text, { style: styles.notice, children: notice }) : null,
553
872
  /* @__PURE__ */ jsxs(View, { style: styles.actions, children: [
554
873
  dictating ? /* @__PURE__ */ jsx(View, { style: {
@@ -583,14 +902,30 @@ function CanvasGeneratePanel({
583
902
  }, disabled: busy || !prompt.trim(), style: ({
584
903
  pressed
585
904
  }) => [styles.designCta, (busy || !prompt.trim()) && styles.ctaOff, pressedStyle(pressed && !busy)], accessibilityRole: "button", accessibilityLabel: "Design editable cut", children: /* @__PURE__ */ jsx(Text, { style: styles.designCtaLabel, children: "Design cut" }) }) : null,
586
- /* @__PURE__ */ jsx(Pressable, { onPress: generate, disabled: busy || !canGo && mode !== "slides", style: ({
905
+ /* @__PURE__ */ jsx(Pressable, { onPress: generate, disabled: busy || !canGo, style: ({
587
906
  pressed
588
- }) => [styles.cta, (busy || !canGo && mode !== "slides") && styles.ctaOff, pressedStyle(pressed && !busy)], accessibilityRole: "button", children: busy ? /* @__PURE__ */ jsx(ActivityIndicator, { color: theme.primaryForeground }) : /* @__PURE__ */ jsxs(Fragment, { children: [
907
+ }) => [styles.cta, (busy || !canGo) && styles.ctaOff, pressedStyle(pressed && !busy)], accessibilityRole: "button", children: busy ? /* @__PURE__ */ jsx(ActivityIndicator, { color: theme.primaryForeground }) : /* @__PURE__ */ jsxs(Fragment, { children: [
589
908
  /* @__PURE__ */ jsx(Text, { style: styles.ctaLabel, children: cta }),
590
909
  /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "arrow-right", size: 18, color: theme.primaryForeground })
591
910
  ] }) })
592
911
  ] }),
593
- directorOpen && mode === "video" ? /* @__PURE__ */ jsx(DirectorSheet, { value: direction, onChange: setDirection, onClose: () => setDirectorOpen(false), prompt }) : null
912
+ elements.picker ? /* @__PURE__ */ jsx(ElementsSheet, __spreadProps(__spreadValues({ boardImages, lane: mode === "video" ? "video" : "image", canMention, preview: elements.preview, startWith: elements.picker.view }, elements.picker.seed ? {
913
+ seedImages: elements.picker.seed
914
+ } : {}), { onPick: (element) => {
915
+ elements.setPicker(null);
916
+ if (mode === "video" && shot.spec) {
917
+ shot.setSpec(mentionInShot(shot.spec, element.handle, elements.store.elements));
918
+ } else {
919
+ elements.mentions.insert(element);
920
+ }
921
+ }, onDeleted: (element) => elements.editMentions((text) => detachMention(text, element, elements.store.elements)), onSaved: (saved, previous) => {
922
+ if (previous) {
923
+ elements.editMentions((text) => retargetMention(text, previous, saved, elements.store.elements));
924
+ }
925
+ }, onClose: () => elements.setPicker(null) })) : null,
926
+ directorOpen && mode === "video" ? /* @__PURE__ */ jsx(DirectorSheet, { value: direction, onChange: setDirection, onClose: () => setDirectorOpen(false), prompt }) : null,
927
+ seedOpen && mode === "video" ? /* @__PURE__ */ jsx(SeedSheet, { value: videoExtras.seed, onChange: videoExtras.setSeed, range: seedRange(modelInfo), onClose: () => setSeedOpen(false) }) : null,
928
+ /* @__PURE__ */ jsx(BrandSheet, { visible: brandOpen, kits: brand.kits, active: brand.active, off: brand.off, loading: brand.loading, error: brand.error, onClose: () => setBrandOpen(false), onPick: brand.pick, onOff: brand.setOff, onSave: brand.save, onDelete: brand.remove, onPickLogo: pickStill ? () => pickStill("reference", "device") : void 0 })
594
929
  ] });
595
930
  }
596
931
  const makeStyles = themedStyles((theme) => StyleSheet.create({
@@ -656,27 +991,6 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
656
991
  rowLabel: __spreadProps(__spreadValues({}, TYPE.label), {
657
992
  color: theme.foreground
658
993
  }),
659
- menu: {
660
- borderRadius: RADIUS.lg,
661
- backgroundColor: theme.card,
662
- padding: SPACE.xs,
663
- overflow: "hidden"
664
- },
665
- menuRow: {
666
- flexDirection: "row",
667
- alignItems: "center",
668
- gap: SPACE.sm,
669
- minHeight: HIT,
670
- paddingHorizontal: SPACE.md,
671
- borderRadius: RADIUS.md
672
- },
673
- menuRowOn: {
674
- backgroundColor: theme.isDark ? theme.secondary : theme.surface
675
- },
676
- menuLabel: __spreadProps(__spreadValues({}, TYPE.body), {
677
- flex: 1,
678
- color: theme.foreground
679
- }),
680
994
  prompt: {
681
995
  minHeight: 128,
682
996
  flexGrow: 1,
@@ -704,6 +1018,12 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
704
1018
  color: theme.mutedForeground,
705
1019
  paddingVertical: SPACE.sm
706
1020
  }),
1021
+ info: __spreadProps(__spreadValues({}, TYPE.caption), {
1022
+ fontWeight: "400",
1023
+ paddingHorizontal: SPACE.lg,
1024
+ paddingBottom: SPACE.sm,
1025
+ color: theme.mutedForeground
1026
+ }),
707
1027
  notice: __spreadProps(__spreadValues({}, TYPE.caption), {
708
1028
  fontWeight: "400",
709
1029
  paddingHorizontal: SPACE.lg,