@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 {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,friendlyMediaError}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,runMatchLook,runTrackedLipSync,runExtendVideo}from'./canvasEditOps.js';import {editToolsForItem,EDIT_TOOL_META}from'./editTools.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;
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
- }) : [], [kind, videoToVideo]);
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 [lipText, setLipText] = useState("");
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 measure = () => new Promise((resolve, reject) => {
103
- if (kind === "image") {
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 || busy) return;
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 dims = await measure();
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
- const out = await runReframeChoice(runAction, kind, item.src, choice, dims);
136
- url = out.url;
137
- note = out.note ? `${formatName(reframeFormat)}: ${out.note}` : `${formatName(reframeFormat)}: ${describeReframe(choice, dims)}.`;
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)) throw new Error("Type a hex colour like #00ff00");
140
- url = await runRemoveBackground(runAction, kind, item.src, {
141
- key: keyChoice,
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 dims = await measure();
148
- const out = upscalePlan(dims, upscaleTarget);
149
- if (!out) throw new Error("Already at or above that size");
150
- url = await runUpscale(runAction, kind, item.src, out);
151
- } else if (tool === "match-look") {
152
- url = await runMatchLook(runAction, kind, item.src);
153
- } else if (tool === "lip-sync") {
154
- if (!lipText.trim()) throw new Error("Type a line for the mouth to follow");
155
- url = await runTrackedLipSync(runAction, item.src, {
156
- text: lipText
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
- url = await runExtendVideo(runAction, item.src, extendPrompt);
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
- return /* @__PURE__ */ jsxs(View, { style: styles.root, children: [
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__ */ jsx(ScrollView, { style: HSCROLL, horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.chips, children: tools.map((id) => {
173
- const meta = EDIT_TOOL_META[id];
174
- const on = tool === id;
175
- return /* @__PURE__ */ jsxs(Pressable, { onPress: () => setTool(on ? null : id), style: ({
176
- pressed
177
- }) => [styles.chip, on && styles.chipOn, pressedStyle(pressed)], children: [
178
- /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: meta.icon, size: 14, color: on ? theme.background : theme.foreground }),
179
- /* @__PURE__ */ jsx(Text, { style: [styles.chipLabel, on && styles.chipLabelOn], children: meta.label })
180
- ] }, id);
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__ */ jsxs(View, { style: styles.opts, children: [
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, so the keyed area turns black." })
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
- tool === "lip-sync" ? /* @__PURE__ */ jsx(TextInput, { value: lipText, onChangeText: setLipText, placeholder: "Line to speak\u2026", placeholderTextColor: theme.mutedForeground, style: styles.field }) : null,
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
- receipt ? /* @__PURE__ */ jsx(Text, { style: styles.blurb, children: receipt }) : null,
248
- tool ? /* @__PURE__ */ jsx(Pressable, { onPress: () => void run(), disabled: busy || !runAction, style: ({
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, (busy || !runAction) && styles.ctaOff, pressedStyle(pressed && !busy && Boolean(runAction))], children: busy ? /* @__PURE__ */ jsx(ActivityIndicator, { color: theme.primaryForeground }) : /* @__PURE__ */ jsx(Text, { style: styles.ctaLabel, children: tool === "edit-video" ? "Open editor" : "Apply" }) }) : null
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",