@adminide-stack/yantra-mobile 12.0.160-alpha.0 → 12.0.160-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +3 -3
  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 {useState,useMemo,useEffect,useRef,useCallback}from'react';import {StyleSheet,useWindowDimensions,View,Text,ScrollView,FlatList,Linking}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {Image}from'expo-image';import {DesignPageView}from'../design/render/DesignPageView.js';import {isUnsetBoardTitle}from'./canvasCore.js';import {WORK_PAGE,mergeWork,availableFilters,matchesFilter,WORK_FILTERS,studioNoun,designNoun,pageCount,boardCover,videoCoverFrame}from'./homeWork.js';import {HeroComposer}from'./home/HeroComposer.js';import {LookDetail}from'./home/LookDetail.js';import {LoopingVideo}from'./home/LoopingVideo.js';import {pickPlayingRegion,centredIndex}from'./home/heroShots.js';import {resultUrl}from'./videoEditor/mediaActions.js';import {unwrapProxyUrl}from'./videoEditor/remoteMediaClient.js';import {renewMediaUrl,useMediaSource}from'./useMediaSource.js';import {useCanvasTheme,themedStyles,CanvasThemeToggle}from'./canvasTheme.js';import {Pressable,pressedStyle,SectionHeader,Segmented,RADIUS,SPACE,Skeleton,CoverPlaceholder,TYPE}from'./canvasUi.js';import {docPreviewLines}from'../docs/blocks.js';var __defProp = Object.defineProperty;
1
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useState,useMemo,useRef,useCallback}from'react';import {useWindowDimensions,View,Text,ScrollView,TextInput,FlatList,StyleSheet,Linking}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {WORK_PAGE,gridColumns,keptFilesText,boardCover,boardMeta,relativeTime}from'./homeWork.js';import {BoardHistorySheet}from'./home/BoardHistorySheet.js';import {BoardMenuSheet,RenameBoardSheet,BoardMenuButton}from'./home/BoardMenuSheet.js';import {WorkNotice,COVER_RATIO,NoMatches,CardBody,BoardCover}from'./home/BoardTile.js';import {HeroComposer}from'./home/HeroComposer.js';import {LoopingVideo}from'./home/LoopingVideo.js';import {pickPlayingRegion,centredIndex}from'./home/heroShots.js';import {TrashView}from'./home/TrashView.js';import {useYourWork}from'./home/useYourWork.js';import {renewMediaUrl}from'./useMediaSource.js';import {useCanvasTheme,themedStyles,CanvasThemeToggle}from'./canvasTheme.js';import {Pressable,pressedStyle,SectionHeader,Skeleton,RADIUS,SPACE,CoverPlaceholder,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,174 +17,76 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- const MINUTE = 6e4;
21
- const HOUR = 60 * MINUTE;
22
- const DAY = 24 * HOUR;
23
20
  const GUTTER = SPACE.lg;
24
- const COVER_STALL_MS = 12e3;
25
- function relativeTime(ts) {
26
- const diff = Date.now() - ts;
27
- if (diff < HOUR) return `${Math.max(1, Math.round(diff / MINUTE))}m ago`;
28
- if (diff < DAY) return `${Math.round(diff / HOUR)}h ago`;
29
- if (diff < 30 * DAY) return `${Math.round(diff / DAY)}d ago`;
30
- return new Date(ts).toLocaleDateString(void 0, {
31
- month: "short",
32
- day: "numeric"
33
- });
34
- }
35
- const LANE_HUES = {
36
- image: {
37
- light: ["#fef3c7", "#b45309"],
38
- dark: ["rgba(251,191,36,0.14)", "#fcd34d"]
39
- },
40
- video: {
41
- light: ["#ffe4e6", "#be123c"],
42
- dark: ["rgba(251,113,133,0.14)", "#fda4af"]
43
- },
44
- audio: {
45
- light: ["#e0f2fe", "#0369a1"],
46
- dark: ["rgba(56,189,248,0.14)", "#7dd3fc"]
47
- },
48
- slides: {
49
- light: ["#ede9fe", "#6d28d9"],
50
- dark: ["rgba(167,139,250,0.16)", "#c4b5fd"]
51
- },
52
- clips: {
53
- light: ["#d1fae5", "#047857"],
54
- dark: ["rgba(52,211,153,0.14)", "#6ee7b7"]
55
- },
56
- promo: {
57
- light: ["#ffedd5", "#c2410c"],
58
- dark: ["rgba(251,146,60,0.14)", "#fdba74"]
59
- }
60
- };
61
- const FORMAT_SHAPE = {
62
- presentation: {
63
- w: 16,
64
- h: 9,
65
- stack: true
66
- },
67
- social: {
68
- w: 1,
69
- h: 1
70
- },
71
- carousel: {
72
- w: 4,
73
- h: 5,
74
- stack: true
75
- },
76
- flyer: {
77
- w: 3,
78
- h: 4
79
- },
80
- "business-card": {
81
- w: 7,
82
- h: 4,
83
- stack: true
84
- },
85
- logo: {
86
- w: 1,
87
- h: 1,
88
- round: true
89
- },
90
- banner: {
91
- w: 3,
92
- h: 1
93
- },
94
- brochure: {
95
- w: 11,
96
- h: 8.5,
97
- stack: true
98
- },
99
- branding: {
100
- w: 8.5,
101
- h: 11
102
- },
103
- doc: {
104
- w: 8.5,
105
- h: 11
106
- },
107
- custom: {
108
- w: 5,
109
- h: 4
110
- },
111
- tshirt: {
112
- w: 5,
113
- h: 6
21
+ const GROUP_HUES = {
22
+ generate: {
23
+ wash: "rgba(239,68,68,0.1)",
24
+ rule: ["rgba(239,68,68,0.25)", "rgba(248,113,113,0.3)"],
25
+ ink: ["#b91c1c", "#fca5a5"],
26
+ title: ["#991b1b", "#fecaca"]
27
+ },
28
+ edit: {
29
+ wash: "rgba(139,92,246,0.1)",
30
+ rule: ["rgba(139,92,246,0.25)", "rgba(167,139,250,0.3)"],
31
+ ink: ["#6d28d9", "#c4b5fd"],
32
+ title: ["#5b21b6", "#ddd6fe"]
114
33
  }
115
34
  };
116
- const TEMPLATE_HEIGHT = 176;
117
- const TEMPLATE_SKELETON_RATIOS = [210 / 297, 16 / 9];
35
+ const CREATE_COLUMN_GAP = 12;
36
+ const CREATE_ROW_MIN = 144;
118
37
  const SHOWCASE_WIDTH = 248;
38
+ const TILE_MIN = 148;
39
+ const TILE_GAP = 12;
119
40
  function CanvasBoardsGrid({
120
41
  boards,
42
+ loading = false,
43
+ boardsMissing,
121
44
  onOpen,
45
+ manager,
122
46
  onNewCanvas,
123
- designs = [],
124
- onOpenDesign,
125
- studioDesigns = [],
126
- onOpenStudioDesign,
127
- docs = [],
128
- onOpenDoc,
129
47
  onAskAgent,
130
48
  createGroups = [],
131
49
  onCreate,
132
50
  featuredLooks = [],
133
- onRecreateLook,
134
- onOpenCategory,
135
- templateRails,
136
- onOpenTemplate,
137
- onSeeAllTemplates,
138
- onRetryTemplates,
139
51
  showcase = [],
140
52
  onUseShowcasePrompt,
141
53
  runAction,
142
54
  onStartWithPrompt,
143
55
  onPickReference,
144
56
  onBrowseTemplates,
145
- studioMore = false,
146
- studioError = null,
147
- onRetryStudioDesigns,
148
- onLoadMoreWork,
149
57
  currentSessionId,
150
58
  onOpenSession
151
59
  }) {
152
60
  const theme = useCanvasTheme();
153
61
  const styles = makeStyles(theme);
154
- const {
155
- width
156
- } = useWindowDimensions();
157
- const tileWidth = Math.max(140, (width - GUTTER * 3) / 2);
158
- const laneWidth = (width - GUTTER * 2 - SPACE.sm * 2) / 3;
62
+ const window = useWindowDimensions();
63
+ const [planeWidth, setPlaneWidth] = useState(0);
64
+ const width = planeWidth || window.width;
65
+ const contentWidth = width - GUTTER * 2;
66
+ const columns = gridColumns(contentWidth, TILE_MIN, TILE_GAP);
67
+ const tileWidth = Math.floor((contentWidth - TILE_GAP * (columns - 1)) / columns);
68
+ const rowWidth = (contentWidth - CREATE_COLUMN_GAP) / 2 >= CREATE_ROW_MIN ? (contentWidth - CREATE_COLUMN_GAP) / 2 : contentWidth;
159
69
  const [visible, setVisible] = useState(WORK_PAGE);
160
- const [filter, setFilter] = useState("all");
161
- const [lookIndex, setLookIndex] = useState(-1);
162
70
  const renew = useMemo(() => renewMediaUrl(runAction), [runAction]);
163
- const work = useMemo(() => mergeWork(boards, designs, studioDesigns, docs), [boards, designs, studioDesigns, docs]);
164
- const filters = useMemo(() => availableFilters(work), [work]);
165
- const active = filters.includes(filter) ? filter : "all";
166
- const shown = useMemo(() => work.filter((item) => matchesFilter(item, active)), [work, active]);
167
- useEffect(() => {
168
- setVisible(WORK_PAGE);
169
- }, [active]);
170
- const startSession = currentSessionId && onOpenSession && (active === "all" || active === "canvases") && !boards.some((b) => b.channelId === currentSessionId) ? currentSessionId : null;
171
- const lead = useMemo(() => [{
172
- kind: "new",
173
- id: "__new__"
174
- }, ...startSession ? [{
71
+ const work = useYourWork(boards, manager);
72
+ const {
73
+ items,
74
+ search,
75
+ nameOf
76
+ } = work;
77
+ const startSession = currentSessionId && onOpenSession && !search && !boards.some((b) => b.channelId === currentSessionId) ? currentSessionId : null;
78
+ const tiles = useMemo(() => [...startSession ? [{
175
79
  kind: "start",
176
80
  id: "__start__",
177
81
  sessionId: startSession
178
- }] : []], [startSession]);
179
- const tiles = useMemo(() => [...lead, ...shown.slice(0, visible).map((entry) => ({
180
- kind: "work",
181
- id: `${entry.type}:${entry.id}`,
182
- work: entry
183
- }))], [lead, shown, visible]);
184
- const hasMore = visible < shown.length || studioMore;
185
- const {
186
- height: windowHeight
187
- } = useWindowDimensions();
82
+ }] : [], ...(search ? items : items.slice(0, visible)).map((board) => ({
83
+ kind: "board",
84
+ id: board.channelId,
85
+ board
86
+ }))], [startSession, items, search, visible]);
87
+ const inTrash = work.view === "trash";
88
+ const hasMore = !inTrash && !search && visible < items.length;
89
+ const windowHeight = window.height;
188
90
  const regions = useRef({
189
91
  hero: {
190
92
  top: 0,
@@ -207,12 +109,23 @@ function CanvasBoardsGrid({
207
109
  }, regions.current[id])), viewport.current.top, viewport.current.height);
208
110
  setPlaying((prev) => prev === next ? prev : next);
209
111
  }, []);
210
- const measure = (id) => (e) => {
112
+ const measureHero = (e) => {
113
+ const {
114
+ y,
115
+ height
116
+ } = e.nativeEvent.layout;
117
+ regions.current.hero = {
118
+ top: y + SPACE.sm,
119
+ height
120
+ };
121
+ govern();
122
+ };
123
+ const measureShowcase = (e) => {
211
124
  const {
212
125
  y,
213
126
  height
214
127
  } = e.nativeEvent.layout;
215
- regions.current[id] = {
128
+ regions.current.showcase = {
216
129
  top: y + SPACE.sm,
217
130
  height
218
131
  };
@@ -237,38 +150,51 @@ function CanvasBoardsGrid({
237
150
  const next = centredIndex(contentOffset.x, layoutMeasurement.width, SHOWCASE_WIDTH, SPACE.sm, GUTTER, showcase.length);
238
151
  setShowcaseIndex((prev) => prev === next ? prev : next);
239
152
  };
240
- const playingNow = lookIndex >= 0 ? null : playing;
241
153
  const rows = useMemo(() => {
154
+ if (inTrash) return [];
242
155
  const chunked = [];
243
- for (let i = 0; i < tiles.length; i += 2) chunked.push(tiles.slice(i, i + 2));
156
+ for (let i = 0; i < tiles.length; i += columns) chunked.push(tiles.slice(i, i + columns));
244
157
  return chunked;
245
- }, [tiles]);
158
+ }, [tiles, columns, inTrash]);
246
159
  const loadMore = useCallback(() => {
247
- if (visible < shown.length) {
248
- setVisible((count) => Math.min(count + WORK_PAGE, shown.length));
249
- return;
250
- }
251
- if (studioMore) onLoadMoreWork == null ? void 0 : onLoadMoreWork();
252
- }, [visible, shown.length, studioMore, onLoadMoreWork]);
253
- const group = (id) => createGroups.find((g) => g.id === id);
254
- const generate = group("generate");
255
- const edit = group("edit");
256
- const designGroup = group("design");
257
- const lane = (tile) => {
258
- const hue = LANE_HUES[tile.id];
259
- const [wash, ink] = hue ? theme.isDark ? hue.dark : hue.light : [theme.card, theme.foreground];
260
- return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onCreate == null ? void 0 : onCreate(tile.action, tile.id), style: ({
261
- pressed
262
- }) => [styles.lane, {
263
- width: laneWidth,
264
- backgroundColor: wash
265
- }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `${tile.label}: ${tile.hint}`, testID: `create-tile-${tile.id}`, children: [
266
- /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: tile.icon, size: 24, color: ink }),
267
- /* @__PURE__ */ jsx(Text, { style: [styles.laneLabel, {
268
- color: theme.isDark ? theme.foreground : ink
269
- }], numberOfLines: 2, children: tile.label })
270
- ] }, tile.id);
160
+ setVisible((count) => Math.min(count + WORK_PAGE, items.length));
161
+ }, [items.length]);
162
+ const createGroup = (entry) => {
163
+ var _a;
164
+ const hue = (_a = GROUP_HUES[entry.id]) != null ? _a : GROUP_HUES.generate;
165
+ const shade = theme.isDark ? 1 : 0;
166
+ return /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
167
+ /* @__PURE__ */ jsx(Text, { style: [styles.groupTitle, {
168
+ color: hue.title[shade],
169
+ borderBottomColor: hue.rule[shade]
170
+ }], accessibilityRole: "header", children: entry.title }),
171
+ /* @__PURE__ */ jsx(View, { style: styles.createRows, children: entry.tiles.map((tile) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => onCreate == null ? void 0 : onCreate(tile.action, tile.id), style: ({
172
+ pressed
173
+ }) => [styles.createRow, {
174
+ width: rowWidth
175
+ }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `${tile.label}: ${tile.hint}`, testID: `create-tile-${tile.id}`, children: [
176
+ /* @__PURE__ */ jsx(View, { style: [styles.createIcon, {
177
+ backgroundColor: hue.wash
178
+ }], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: tile.icon, size: 16, color: hue.ink[shade] }) }),
179
+ /* @__PURE__ */ jsxs(View, { style: styles.createText, children: [
180
+ /* @__PURE__ */ jsx(Text, { style: styles.createLabel, children: tile.label }),
181
+ /* @__PURE__ */ jsx(Text, { style: styles.createHint, children: tile.hint })
182
+ ] })
183
+ ] }, tile.id)) })
184
+ ] }, entry.id);
271
185
  };
186
+ const shownNotice = work.notice;
187
+ const noticeAction = (shownNotice == null ? void 0 : shownNotice.kind) === "trashed" ? {
188
+ action: {
189
+ label: "Undo",
190
+ onPress: () => void work.undoTrash(shownNotice.boardId, shownNotice.name)
191
+ }
192
+ } : (shownNotice == null ? void 0 : shownNotice.kind) === "copied" ? {
193
+ action: {
194
+ label: "Open",
195
+ onPress: () => onOpen(shownNotice.boardId)
196
+ }
197
+ } : {};
272
198
  const header = /* @__PURE__ */ jsxs(View, { style: styles.header, children: [
273
199
  onStartWithPrompt ? null : (
274
200
  // Without the hero (no generator seam) home keeps a plain title row.
@@ -284,7 +210,7 @@ function CanvasBoardsGrid({
284
210
  /* @__PURE__ */ jsx(Text, { style: styles.promptText, numberOfLines: 1, children: "Describe what you want to make" }),
285
211
  /* @__PURE__ */ jsx(View, { style: styles.promptGo, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "arrow-up", size: 18, color: theme.primaryForeground }) })
286
212
  ] }) : null,
287
- onStartWithPrompt ? /* @__PURE__ */ jsx(View, { onLayout: measure("hero"), children: /* @__PURE__ */ jsx(HeroComposer, { featuredLooks, showcase, playing: playingNow === "hero", onStartWithPrompt, onPickReference, onBrowseTemplates, headerActions: /* @__PURE__ */ jsxs(Fragment, { children: [
213
+ onStartWithPrompt ? /* @__PURE__ */ jsx(View, { onLayout: measureHero, children: /* @__PURE__ */ jsx(HeroComposer, { featuredLooks, showcase, playing: playing === "hero", onStartWithPrompt, onPickReference, onBrowseTemplates, runAction, headerActions: /* @__PURE__ */ jsxs(Fragment, { children: [
288
214
  onAskAgent ? /* @__PURE__ */ jsx(Pressable, { onPress: onAskAgent, style: ({
289
215
  pressed
290
216
  }) => [styles.toggle, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: "Open AI Chat", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "creation", size: 20, color: theme.foreground }) }) : null,
@@ -294,235 +220,106 @@ function CanvasBoardsGrid({
294
220
  // Web home: the hero, then a "Create" heading over the tool groups.
295
221
  /* @__PURE__ */ jsxs(View, { style: styles.createHead, children: [
296
222
  /* @__PURE__ */ jsx(Text, { style: styles.createTitle, accessibilityRole: "header", children: "Create" }),
297
- /* @__PURE__ */ jsx(Text, { style: styles.createSub, children: "Generate, edit, or start a blank design." })
223
+ /* @__PURE__ */ jsx(Text, { style: styles.createSub, children: "Generate or edit media." })
298
224
  ] })
299
225
  ) : null,
300
- onCreate && generate ? /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
301
- /* @__PURE__ */ jsx(SectionHeader, { title: "Generate with AI" }),
302
- /* @__PURE__ */ jsx(View, { style: styles.lanes, children: generate.tiles.map(lane) })
303
- ] }) : null,
304
- onCreate && designGroup ? /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
305
- /* @__PURE__ */ jsx(SectionHeader, { title: "Design" }),
306
- /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, children: designGroup.tiles.map((tile) => /* @__PURE__ */ jsx(FormatTile, { tile, onPress: () => {
307
- if (!(onOpenCategory == null ? void 0 : onOpenCategory(tile.id))) onCreate(tile.action, tile.id);
308
- } }, tile.id)) })
309
- ] }) : null,
310
- onCreate && edit ? /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
311
- /* @__PURE__ */ jsx(SectionHeader, { title: "Edit & produce" }),
312
- /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, children: edit.tiles.map((tile) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => onCreate(tile.action, tile.id), style: ({
313
- pressed
314
- }) => [styles.tool, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `${tile.label}: ${tile.hint}`, testID: `create-tile-${tile.id}`, children: [
315
- /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: tile.icon, size: 18, color: theme.foreground }),
316
- /* @__PURE__ */ jsx(Text, { style: styles.toolLabel, children: tile.label })
317
- ] }, tile.id)) })
318
- ] }) : null,
319
- featuredLooks.length > 0 && onRecreateLook ? /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
320
- /* @__PURE__ */ jsx(SectionHeader, { title: "Looks", detail: "Recreate a studio style" }),
321
- /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, children: featuredLooks.map((look, i) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => setLookIndex(i), style: ({
322
- pressed
323
- }) => [styles.look, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open look ${look.name}`, children: [
324
- look.cover ? /* @__PURE__ */ jsx(Image, { source: {
325
- uri: look.cover
326
- }, style: StyleSheet.absoluteFill, contentFit: "cover" }) : /* @__PURE__ */ jsx(View, { style: [styles.fill, styles.centered], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "movie-open-outline", size: 22, color: theme.mutedForeground }) }),
327
- /* @__PURE__ */ jsx(View, { style: styles.lookCaption, children: /* @__PURE__ */ jsx(Text, { style: styles.lookName, numberOfLines: 2, children: look.name }) })
328
- ] }, look.id)) })
329
- ] }) : null,
330
- templateRails && onOpenTemplate ? /* @__PURE__ */ jsx(TemplateRails, { state: templateRails, onOpenTemplate, onSeeAll: onSeeAllTemplates, onRetry: onRetryTemplates }) : null,
331
- showcase.length > 0 && onUseShowcasePrompt ? /* @__PURE__ */ jsxs(View, { style: styles.section, onLayout: measure("showcase"), children: [
226
+ onCreate ? createGroups.map(createGroup) : null,
227
+ showcase.length > 0 && onUseShowcasePrompt ? /* @__PURE__ */ jsxs(View, { style: styles.showcaseSection, onLayout: measureShowcase, children: [
332
228
  /* @__PURE__ */ jsx(SectionHeader, { title: "Made with Seedance 2.0" }),
333
- /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, onScroll: onShowcaseScroll, scrollEventThrottle: 100, children: showcase.map((clip, i) => /* @__PURE__ */ jsx(ShowcaseTile, { clip, playing: playingNow === "showcase" && i === showcaseIndex, onUse: () => onUseShowcasePrompt(clip) }, clip.id)) })
229
+ /* @__PURE__ */ jsx(Text, { style: styles.showcaseSub, children: "Community examples, CC-BY-4.0. Use one as your starting prompt." }),
230
+ /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.bleed, contentContainerStyle: styles.railContent, onScroll: onShowcaseScroll, scrollEventThrottle: 100, children: showcase.map((clip, i) => /* @__PURE__ */ jsx(ShowcaseTile, { clip, playing: playing === "showcase" && i === showcaseIndex, onUse: () => onUseShowcasePrompt(clip) }, clip.id)) })
334
231
  ] }) : null,
335
232
  /* @__PURE__ */ jsxs(View, { style: styles.workHead, children: [
336
- /* @__PURE__ */ jsx(SectionHeader, { title: "Your work", detail: work.length > 0 ? String(work.length) : void 0, style: styles.noMargin }),
337
- filters.length > 0 ? /* @__PURE__ */ jsx(Segmented, { options: WORK_FILTERS.filter((f) => filters.includes(f.id)), value: active, onChange: setFilter, style: styles.segmented }) : null
338
- ] }),
339
- studioError ? /* @__PURE__ */ jsxs(View, { style: styles.railError, accessibilityRole: "alert", children: [
340
- /* @__PURE__ */ jsx(Text, { style: styles.railErrorText, children: "Couldn't load your designs." }),
341
- onRetryStudioDesigns ? /* @__PURE__ */ jsxs(Pressable, { onPress: onRetryStudioDesigns, hitSlop: 8, style: ({
342
- pressed
343
- }) => [styles.retry, pressedStyle(pressed)], accessibilityRole: "button", children: [
344
- /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "refresh", size: 16, color: theme.foreground }),
345
- /* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: "Retry" })
233
+ /* @__PURE__ */ jsx(Text, { style: styles.createTitle, accessibilityRole: "header", children: inTrash ? "Trash" : "Your work" }),
234
+ /* @__PURE__ */ jsxs(View, { style: styles.workActions, children: [
235
+ manager ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => work.switchView(inTrash ? "work" : "trash"), style: ({
236
+ pressed
237
+ }) => [styles.blank, pressedStyle(pressed)], accessibilityRole: "button", testID: inTrash ? "work-view-work" : "work-view-trash", children: [
238
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: inTrash ? "arrow-left" : "trash-can-outline", size: 16, color: theme.foreground }),
239
+ /* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: inTrash ? "Your work" : "Trash" })
240
+ ] }) : null,
241
+ /* @__PURE__ */ jsxs(Pressable, { onPress: onNewCanvas, style: ({
242
+ pressed
243
+ }) => [styles.blank, pressedStyle(pressed)], accessibilityRole: "button", children: [
244
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 16, color: theme.foreground }),
245
+ /* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: "Blank canvas" })
246
+ ] })
247
+ ] }),
248
+ inTrash || boards.length > 0 ? /* @__PURE__ */ jsxs(View, { style: styles.search, children: [
249
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "magnify", size: 16, color: theme.mutedForeground }),
250
+ /* @__PURE__ */ jsx(TextInput, { value: work.query, onChangeText: work.setQuery, placeholder: "Search canvases", placeholderTextColor: theme.mutedForeground, accessibilityLabel: "Search canvases", returnKeyType: "search", autoCorrect: false, clearButtonMode: "while-editing", style: styles.searchInput, testID: "work-search" })
346
251
  ] }) : null
347
- ] }) : null
252
+ ] }),
253
+ work.notice ? /* @__PURE__ */ jsx(WorkNotice, __spreadProps(__spreadValues({ tone: work.notice.kind === "error" ? "error" : "info", text: work.notice.text }, noticeAction), { onDismiss: () => work.setNotice(null) })) : null,
254
+ work.kept ? /* @__PURE__ */ jsx(WorkNotice, { tone: "info", text: keptFilesText(work.kept), onDismiss: () => work.setKept(null) }) : null,
255
+ !inTrash && boardsMissing && !work.missingDismissed ? /* @__PURE__ */ jsx(WorkNotice, __spreadProps(__spreadValues({ tone: "error", text: "Some of your canvases couldn't be loaded, so they're missing here and from search." }, manager ? {
256
+ action: {
257
+ label: "Try again",
258
+ onPress: manager.refresh
259
+ }
260
+ } : {}), { onDismiss: () => work.setMissingDismissed(true) })) : null
348
261
  ] });
349
262
  const footer = hasMore ? /* @__PURE__ */ jsx(View, { style: styles.workFooter, children: /* @__PURE__ */ jsx(Pressable, { onPress: loadMore, style: ({
350
263
  pressed
351
264
  }) => [styles.showAll, pressedStyle(pressed)], accessibilityRole: "button", testID: "your-work-load-more", children: /* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: "Load more" }) }) }) : null;
265
+ const empty = inTrash && manager ? /* @__PURE__ */ jsx(TrashView, { query: search, onClearQuery: () => work.setQuery(""), tileWidth, gap: TILE_GAP, index: manager.index, nameOf, onOpen, onChanged: manager.refresh, runAction, renew }) : loading && boards.length === 0 ? /* @__PURE__ */ jsx(View, { style: styles.row, accessibilityState: {
266
+ busy: true
267
+ }, children: [0, 1].map((i) => /* @__PURE__ */ jsx(Skeleton, { radius: RADIUS.md, style: {
268
+ width: tileWidth,
269
+ aspectRatio: COVER_RATIO
270
+ } }, i)) }) : search ? /* @__PURE__ */ jsx(NoMatches, { onClear: () => work.setQuery("") }) : /* @__PURE__ */ jsxs(View, { style: styles.empty, children: [
271
+ /* @__PURE__ */ jsx(Text, { style: styles.emptyTitle, children: "Your canvases will appear here" }),
272
+ /* @__PURE__ */ jsx(Text, { style: styles.emptyDetail, children: "Choose a tool in Create, or start from a template below. Your canvases will appear here, newest first." })
273
+ ] });
352
274
  const renderTile = (item) => {
353
- var _a, _b, _c;
354
- if (item.kind === "new") {
355
- return /* @__PURE__ */ jsxs(Pressable, { onPress: onNewCanvas, style: ({
356
- pressed
357
- }) => [{
358
- width: tileWidth
359
- }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: "New canvas", children: [
360
- /* @__PURE__ */ jsx(View, { style: [styles.cover, styles.coverNew], children: /* @__PURE__ */ jsx(View, { style: styles.newPlus, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 24, color: theme.primaryForeground }) }) }),
361
- /* @__PURE__ */ jsx(Text, { style: styles.workTitle, children: "New canvas" }),
362
- /* @__PURE__ */ jsx(Text, { style: styles.workMeta, children: "Start blank" })
363
- ] });
364
- }
365
275
  if (item.kind === "start") {
366
276
  return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpenSession == null ? void 0 : onOpenSession(item.sessionId), style: ({
367
277
  pressed
368
278
  }) => [{
369
279
  width: tileWidth
370
280
  }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: "Open this chat's canvas", children: [
371
- /* @__PURE__ */ jsx(View, { style: [styles.cover, styles.coverNew], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "image-outline", size: 26, color: theme.mutedForeground }) }),
372
- /* @__PURE__ */ jsx(Text, { style: styles.workTitle, children: "This chat's canvas" }),
373
- /* @__PURE__ */ jsx(Text, { style: styles.workMeta, children: "Canvas \xB7 Start creating here" })
374
- ] });
375
- }
376
- const {
377
- work: entry
378
- } = item;
379
- if (entry.type === "doc") {
380
- const title2 = ((_a = entry.doc.title) == null ? void 0 : _a.trim()) || "Untitled doc";
381
- return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpenDoc == null ? void 0 : onOpenDoc(entry.doc.id), style: ({
382
- pressed
383
- }) => [{
384
- width: tileWidth
385
- }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open doc ${title2}`, children: [
386
- /* @__PURE__ */ jsx(View, { style: [styles.cover, styles.centered], children: /* @__PURE__ */ jsx(DocPaper, { blocks: entry.doc.doc.blocks, title: title2, height: tileWidth - SPACE.lg * 2 }) }),
387
- /* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: title2 }),
388
- /* @__PURE__ */ jsx(Text, { style: styles.workMeta, numberOfLines: 1, children: `Doc \xB7 ${relativeTime(entry.doc.updatedAt)}` })
389
- ] });
390
- }
391
- if (entry.type === "studio") {
392
- const {
393
- doc,
394
- title: title2
395
- } = entry.studio;
396
- const page = doc.pages[0];
397
- const frame = tileWidth - SPACE.xl * 2;
398
- const ratio = doc.pageHeight / doc.pageWidth;
399
- const pageW = ratio > 1 ? frame / ratio : frame;
400
- const noun = studioNoun(entry.studio);
401
- const meta = [noun, doc.pages.length > 1 ? `${doc.pages.length} pages` : "", relativeTime(entry.studio.updatedAt)].filter(Boolean).join(" \xB7 ");
402
- return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpenStudioDesign == null ? void 0 : onOpenStudioDesign(entry.studio.id), style: ({
403
- pressed
404
- }) => [{
405
- width: tileWidth
406
- }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open ${noun.toLowerCase()} ${title2}`, children: [
407
- /* @__PURE__ */ jsx(View, { style: [styles.cover, styles.centered], children: page ? /* @__PURE__ */ jsx(DesignPageView, { doc, page, width: pageW }) : null }),
408
- /* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: title2 || "Untitled design" }),
409
- /* @__PURE__ */ jsx(Text, { style: styles.workMeta, numberOfLines: 1, children: meta })
410
- ] });
411
- }
412
- if (entry.type === "design") {
413
- const {
414
- design
415
- } = entry;
416
- const noun = designNoun(design.doc);
417
- const title2 = ((_b = design.title) == null ? void 0 : _b.trim()) || `Untitled ${noun.toLowerCase()}`;
418
- const meta = [noun, pageCount(design.doc), relativeTime(design.savedAt)].filter(Boolean).join(" \xB7 ");
419
- return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpenDesign == null ? void 0 : onOpenDesign(design.channelId), style: ({
420
- pressed
421
- }) => [{
422
- width: tileWidth
423
- }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open ${noun.toLowerCase()} ${title2}`, children: [
424
- /* @__PURE__ */ jsx(View, { style: [styles.cover, styles.centered], children: /* @__PURE__ */ jsx(DesignThumb, { doc: design.doc, maxWidth: tileWidth - SPACE.xl * 2, maxHeight: tileWidth - SPACE.xl * 2 }) }),
425
- /* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: title2 }),
426
- /* @__PURE__ */ jsx(Text, { style: styles.workMeta, numberOfLines: 1, children: meta })
281
+ /* @__PURE__ */ jsx(View, { style: [styles.coverNew, {
282
+ width: tileWidth,
283
+ height: Math.round(tileWidth / COVER_RATIO)
284
+ }], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "image-outline", size: 24, color: theme.mutedForeground }) }),
285
+ /* @__PURE__ */ jsx(CardBody, { title: "This chat's canvas", meta: "Start creating here" })
427
286
  ] });
428
287
  }
429
288
  const {
430
289
  board
431
- } = entry;
432
- const cover = boardCover(board.board.items);
433
- const title = !isUnsetBoardTitle(board.title) ? board.title : ((_c = board.board.items.find((it) => it.generatedAssetName)) == null ? void 0 : _c.generatedAssetName) || "Untitled canvas";
434
- return /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpen(board.channelId), style: ({
435
- pressed
436
- }) => [{
290
+ } = item;
291
+ const title = nameOf(board);
292
+ return /* @__PURE__ */ jsxs(View, { style: {
437
293
  width: tileWidth
438
- }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Open canvas ${title}`, children: [
439
- /* @__PURE__ */ jsxs(View, { style: [styles.cover, styles.centered], children: [
440
- cover ? /* @__PURE__ */ jsx(BoardCover, { item: cover, seed: board.channelId, runAction, renew }, cover.src) : /* @__PURE__ */ jsx(CoverPlaceholder, { seed: board.channelId, icon: "image-multiple-outline" }),
441
- board.itemCount > 1 ? /* @__PURE__ */ jsx(View, { style: styles.countBadge, pointerEvents: "none", children: /* @__PURE__ */ jsx(Text, { style: styles.countBadgeText, children: board.itemCount }) }) : null
294
+ }, children: [
295
+ /* @__PURE__ */ jsxs(Pressable, { onPress: () => onOpen(board.channelId), style: ({
296
+ pressed
297
+ }) => pressedStyle(pressed), accessibilityRole: "button", accessibilityLabel: `Open canvas ${title}`, children: [
298
+ /* @__PURE__ */ jsx(BoardCover, { item: boardCover(board.board.items), width: tileWidth, runAction, renew }),
299
+ /* @__PURE__ */ jsx(CardBody, { title, meta: boardMeta(board.itemCount, relativeTime(board.savedAt)) })
442
300
  ] }),
443
- /* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: title }),
444
- /* @__PURE__ */ jsx(Text, { style: styles.workMeta, numberOfLines: 1, children: `Canvas \xB7 ${relativeTime(board.savedAt)}` })
301
+ manager ? /* @__PURE__ */ jsx(View, { style: styles.tileMenu, children: /* @__PURE__ */ jsx(BoardMenuButton, { title, busy: work.busy.has(board.channelId), onPress: () => work.setMenuFor(board) }) }) : null
445
302
  ] });
446
303
  };
447
- return /* @__PURE__ */ jsxs(View, { style: styles.plane, children: [
448
- work.length === 0 ? /* @__PURE__ */ jsxs(ScrollView, { contentContainerStyle: styles.list, showsVerticalScrollIndicator: false, onScroll: onListScroll, scrollEventThrottle: 100, children: [
449
- header,
450
- /* @__PURE__ */ jsxs(View, { style: styles.empty, children: [
451
- /* @__PURE__ */ jsx(View, { style: styles.emptyIcon, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "image-multiple-outline", size: 26, color: theme.foreground }) }),
452
- /* @__PURE__ */ jsx(Text, { style: styles.emptyTitle, children: "Nothing here yet" }),
453
- /* @__PURE__ */ jsx(Text, { style: styles.emptyDetail, children: "Every chat gets its own canvas. Generate an image, video or audio and it lands here." }),
454
- /* @__PURE__ */ jsxs(Pressable, { onPress: onNewCanvas, style: ({
455
- pressed
456
- }) => [styles.emptyCta, pressedStyle(pressed)], accessibilityRole: "button", children: [
457
- /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 18, color: theme.primaryForeground }),
458
- /* @__PURE__ */ jsx(Text, { style: styles.emptyCtaLabel, children: "New canvas" })
459
- ] })
460
- ] })
461
- ] }) : /* @__PURE__ */ jsx(FlatList, { data: rows, keyExtractor: (pair) => pair.map((item) => item.id).join(":"), contentContainerStyle: styles.list, showsVerticalScrollIndicator: false, onEndReached: loadMore, onEndReachedThreshold: 0.4, onScroll: onListScroll, scrollEventThrottle: 100, ListHeaderComponent: header, ListFooterComponent: footer, renderItem: ({
304
+ return /* @__PURE__ */ jsxs(View, { style: styles.plane, onLayout: (e) => setPlaneWidth(e.nativeEvent.layout.width), children: [
305
+ /* @__PURE__ */ jsx(FlatList, { data: rows, extraData: [work.busy, work.notice, tileWidth], keyboardShouldPersistTaps: "handled", keyExtractor: (pair) => pair.map((item) => item.id).join(":"), contentContainerStyle: styles.list, showsVerticalScrollIndicator: false, onScroll: onListScroll, scrollEventThrottle: 100, ListHeaderComponent: header, ListEmptyComponent: empty, ListFooterComponent: footer, renderItem: ({
462
306
  item: pair
463
- }) => /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
464
- pair.map((entry) => /* @__PURE__ */ jsx(View, { children: renderTile(entry) }, entry.id)),
465
- pair.length < 2 ? /* @__PURE__ */ jsx(View, { style: {
466
- width: tileWidth
467
- } }) : null
468
- ] }) }),
469
- onRecreateLook ? /* @__PURE__ */ jsx(LookDetail, { looks: featuredLooks, index: lookIndex, onIndexChange: setLookIndex, onRecreate: (look) => {
470
- setLookIndex(-1);
471
- onRecreateLook(look);
472
- }, onClose: () => setLookIndex(-1) }) : null
473
- ] });
474
- }
475
- function TemplateRails({
476
- state,
477
- onOpenTemplate,
478
- onSeeAll,
479
- onRetry
480
- }) {
481
- const theme = useCanvasTheme();
482
- const styles = makeStyles(theme);
483
- const count = state.rows[0].length + state.rows[1].length;
484
- const pending = state.status === "loading";
485
- if (state.status === "ready" && count === 0) return null;
486
- return /* @__PURE__ */ jsxs(View, { style: styles.section, children: [
487
- /* @__PURE__ */ jsx(SectionHeader, { title: "Templates for you", action: onSeeAll ? "See all" : void 0, onAction: onSeeAll }),
488
- state.status === "failed" ? /* @__PURE__ */ jsxs(View, { style: styles.railError, children: [
489
- /* @__PURE__ */ jsx(Text, { style: styles.railErrorText, children: count ? "Some templates couldn't load." : "Templates couldn't load." }),
490
- onRetry ? /* @__PURE__ */ jsxs(Pressable, { onPress: onRetry, hitSlop: 8, style: ({
491
- pressed
492
- }) => [styles.retry, pressedStyle(pressed)], accessibilityRole: "button", children: [
493
- /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "refresh", size: 16, color: theme.foreground }),
494
- /* @__PURE__ */ jsx(Text, { style: styles.retryLabel, children: "Retry" })
495
- ] }) : null
496
- ] }) : null,
497
- state.rows.map((row, index) => row.length || pending ? /* @__PURE__ */ jsxs(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: [styles.bleed, index === 0 && styles.templateRowGap], contentContainerStyle: styles.railContent, children: [
498
- row.map((card) => /* @__PURE__ */ jsx(TemplateCover, { card, onPress: () => onOpenTemplate(card.id) }, card.id)),
499
- pending ? Array.from({
500
- length: row.length ? 2 : 4
501
- }, (_, i) => /* @__PURE__ */ jsx(Skeleton, { radius: RADIUS.md, style: {
502
- width: Math.round(TEMPLATE_HEIGHT * TEMPLATE_SKELETON_RATIOS[(i + index) % TEMPLATE_SKELETON_RATIOS.length]),
503
- height: TEMPLATE_HEIGHT
504
- } }, `skeleton-${i}`)) : null
505
- ] }, index) : null)
506
- ] });
507
- }
508
- function TemplateCover({
509
- card,
510
- onPress
511
- }) {
512
- const theme = useCanvasTheme();
513
- const styles = makeStyles(theme);
514
- const [loaded, setLoaded] = useState(false);
515
- const width = Math.min(Math.round(TEMPLATE_HEIGHT * card.pageWidth / card.pageHeight), TEMPLATE_HEIGHT * 2);
516
- return /* @__PURE__ */ jsxs(Pressable, { onPress, style: ({
517
- pressed
518
- }) => [styles.templateCover, {
519
- width,
520
- height: TEMPLATE_HEIGHT
521
- }, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Use template ${card.title}`, children: [
522
- loaded ? null : /* @__PURE__ */ jsx(Skeleton, {}),
523
- /* @__PURE__ */ jsx(Image, { source: {
524
- uri: card.coverUrl
525
- }, style: StyleSheet.absoluteFill, contentFit: "contain", transition: 150, onLoad: () => setLoaded(true) })
307
+ }) => /* @__PURE__ */ jsx(View, { style: styles.row, children: pair.map((entry) => /* @__PURE__ */ jsx(View, { children: renderTile(entry) }, entry.id)) }) }),
308
+ manager ? /* @__PURE__ */ jsx(BoardMenuSheet, { title: work.menuFor ? nameOf(work.menuFor) : null, onAction: work.act, onClose: () => work.setMenuFor(null) }) : null,
309
+ work.renaming ? /* @__PURE__ */ jsx(RenameBoardSheet, { initial: nameOf(work.renaming), onCommit: (typed) => {
310
+ if (work.renaming) void work.rename(work.renaming, typed);
311
+ }, onClose: () => work.setRenaming(null) }) : null,
312
+ manager && work.historyFor ? /* @__PURE__ */ jsx(BoardHistorySheet, { boardId: work.historyFor.channelId, itemCount: work.historyFor.itemCount, index: manager.index, runAction, renew, onRestored: () => {
313
+ work.setHistoryFor(null);
314
+ work.setNotice({
315
+ kind: "info",
316
+ text: "Version restored. What was on the canvas before is kept in Version history, so you can switch back."
317
+ });
318
+ manager.refresh();
319
+ }, onFailed: (reason) => work.setNotice({
320
+ kind: "error",
321
+ text: `Version not restored. ${reason}`
322
+ }), onClose: () => work.setHistoryFor(null) }) : null
526
323
  ] });
527
324
  }
528
325
  function ShowcaseTile({
@@ -540,8 +337,7 @@ function ShowcaseTile({
540
337
  pressed
541
338
  }) => [styles.showcasePoster, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `Use the prompt from ${clip.title}`, children: [
542
339
  /* @__PURE__ */ jsx(CoverPlaceholder, { seed: clip.id, icon: "play" }),
543
- /* @__PURE__ */ jsx(LoopingVideo, { src: clip.hls, poster: clip.poster, playing }),
544
- playing ? null : /* @__PURE__ */ jsx(View, { style: styles.playBadge, pointerEvents: "none", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "play", size: 16, color: "#fafafa" }) })
340
+ /* @__PURE__ */ jsx(LoopingVideo, { src: clip.hls, poster: clip.poster, playing })
545
341
  ] }),
546
342
  /* @__PURE__ */ jsx(Text, { style: styles.workTitle, numberOfLines: 1, children: clip.title }),
547
343
  /* @__PURE__ */ jsxs(Pressable, { onPress: openSource, hitSlop: 6, style: styles.credit, accessibilityRole: "link", accessibilityLabel: `By ${clip.author}, ${clip.license}. Open the original post`, children: [
@@ -556,211 +352,6 @@ function ShowcaseTile({
556
352
  ] })
557
353
  ] });
558
354
  }
559
- function FormatTile({
560
- tile,
561
- onPress
562
- }) {
563
- var _a;
564
- const theme = useCanvasTheme();
565
- const styles = makeStyles(theme);
566
- const shape = (_a = FORMAT_SHAPE[tile.id]) != null ? _a : {
567
- w: 1,
568
- h: 1
569
- };
570
- const box = 56;
571
- const scale = box / Math.max(shape.w, shape.h);
572
- const pageW = shape.w * scale;
573
- const pageH = shape.h * scale;
574
- return /* @__PURE__ */ jsxs(Pressable, { onPress, style: ({
575
- pressed
576
- }) => [styles.format, pressedStyle(pressed)], accessibilityRole: "button", accessibilityLabel: `${tile.label}: ${tile.hint}`, testID: `create-tile-${tile.id}`, children: [
577
- /* @__PURE__ */ jsxs(View, { style: styles.formatWell, children: [
578
- shape.stack ? /* @__PURE__ */ jsx(View, { style: [styles.formatPage, styles.formatPageBack, {
579
- width: pageW,
580
- height: pageH
581
- }] }) : null,
582
- /* @__PURE__ */ jsx(View, { style: [styles.formatPage, {
583
- width: pageW,
584
- height: pageH
585
- }, shape.round && {
586
- borderRadius: pageW / 2
587
- }], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: tile.icon, size: 18, color: theme.mutedForeground }) })
588
- ] }),
589
- /* @__PURE__ */ jsx(Text, { style: styles.formatLabel, numberOfLines: 1, children: tile.label })
590
- ] });
591
- }
592
- function BoardCover({
593
- item,
594
- seed,
595
- runAction,
596
- renew
597
- }) {
598
- const theme = useCanvasTheme();
599
- const styles = makeStyles(theme);
600
- const isVideo = item.type === "video";
601
- const [frame, setFrame] = useState(isVideo ? void 0 : item.src);
602
- const [loaded, setLoaded] = useState(false);
603
- useEffect(() => {
604
- if (!isVideo) return void 0;
605
- if (!runAction) {
606
- setFrame(null);
607
- return void 0;
608
- }
609
- let live = true;
610
- void videoCoverFrame(unwrapProxyUrl(item.src), runAction, (result) => resultUrl(result, "YANTRA_VIDEO_EDIT_THUMBNAIL")).then((url) => {
611
- if (live) setFrame(url);
612
- });
613
- return () => {
614
- live = false;
615
- };
616
- }, [item.src, isVideo, runAction]);
617
- const media = useMediaSource(frame != null ? frame : "", "image", renew);
618
- const [stalled, setStalled] = useState(false);
619
- useEffect(() => {
620
- setLoaded(false);
621
- setStalled(false);
622
- const timer = setTimeout(() => setStalled(true), COVER_STALL_MS);
623
- return () => clearTimeout(timer);
624
- }, [media.key]);
625
- if (frame === null || media.phase === "broken") {
626
- return /* @__PURE__ */ jsx(CoverPlaceholder, { seed, icon: isVideo ? "play" : "image-outline", label: isVideo ? "Video" : void 0 });
627
- }
628
- return /* @__PURE__ */ jsxs(Fragment, { children: [
629
- loaded && media.phase === "ok" ? null : stalled ? /* @__PURE__ */ jsx(CoverPlaceholder, { seed, icon: isVideo ? "play" : "image-outline" }) : /* @__PURE__ */ jsx(Skeleton, {}),
630
- frame ? /* @__PURE__ */ jsx(Image, { source: {
631
- uri: media.src
632
- }, style: StyleSheet.absoluteFill, contentFit: "cover", transition: 200, onLoad: () => setLoaded(true), onError: media.onError }, media.key) : null,
633
- isVideo && loaded ? /* @__PURE__ */ jsx(View, { style: styles.playBadge, pointerEvents: "none", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "play", size: 16, color: "#fafafa" }) }) : null
634
- ] });
635
- }
636
- function DesignThumb({
637
- doc,
638
- maxWidth,
639
- maxHeight
640
- }) {
641
- const theme = useCanvasTheme();
642
- const styles = makeStyles(theme);
643
- const page = doc.pages[0];
644
- if (!page || !(page.width > 0) || !(page.height > 0)) {
645
- return /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "shape-outline", size: 28, color: theme.mutedForeground });
646
- }
647
- const scale = Math.min(maxWidth / page.width, maxHeight / page.height);
648
- const layers = [...page.layers].sort((a, b) => a.zIndex - b.zIndex);
649
- return /* @__PURE__ */ jsx(View, { style: [styles.designPage, {
650
- width: page.width * scale,
651
- height: page.height * scale,
652
- backgroundColor: page.background || "#ffffff"
653
- }], pointerEvents: "none", children: layers.length === 0 ? (
654
- // An untouched page: a faint layout sketch (title, lines, picture) instead of a blank sheet.
655
- /* @__PURE__ */ jsxs(View, { style: styles.sketch, children: [
656
- /* @__PURE__ */ jsx(View, { style: [styles.sketchBar, {
657
- width: "62%",
658
- height: "9%"
659
- }] }),
660
- /* @__PURE__ */ jsx(View, { style: [styles.sketchBar, {
661
- width: "86%",
662
- height: "5%"
663
- }] }),
664
- /* @__PURE__ */ jsx(View, { style: [styles.sketchBar, {
665
- width: "70%",
666
- height: "5%"
667
- }] }),
668
- /* @__PURE__ */ jsx(View, { style: [styles.sketchBar, styles.sketchBlock], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "image-outline", size: 16, color: "#b4b4bb" }) }),
669
- /* @__PURE__ */ jsx(Text, { style: styles.blankPage, children: designNoun(doc) })
670
- ] })
671
- ) : layers.map((layer) => /* @__PURE__ */ jsx(DesignThumbLayer, { layer, scale }, layer.id)) });
672
- }
673
- function DesignThumbLayer({
674
- layer,
675
- scale
676
- }) {
677
- const box = {
678
- position: "absolute",
679
- left: layer.x * scale,
680
- top: layer.y * scale,
681
- width: layer.width * scale,
682
- height: layer.height * scale,
683
- opacity: layer.opacity
684
- };
685
- if (layer.type === "image") {
686
- return /* @__PURE__ */ jsx(Image, { source: {
687
- uri: layer.src
688
- }, style: box, contentFit: "cover" });
689
- }
690
- if (layer.type === "shape") {
691
- return /* @__PURE__ */ jsx(View, { style: [box, {
692
- backgroundColor: layer.fill,
693
- borderRadius: layer.cornerRadius * scale
694
- }] });
695
- }
696
- return /* @__PURE__ */ jsx(Text, { style: [box, {
697
- color: layer.color,
698
- fontSize: Math.max(4, layer.fontSize * scale),
699
- lineHeight: Math.max(5, layer.fontSize * scale * 1.15),
700
- fontWeight: layer.bold ? "700" : "400",
701
- textAlign: layer.align
702
- }], numberOfLines: 3, children: layer.text });
703
- }
704
- function DocPaper({
705
- blocks,
706
- title,
707
- height
708
- }) {
709
- const lines = docPreviewLines(blocks, 7);
710
- const width = Math.round(height * 8.5 / 11);
711
- return /* @__PURE__ */ jsxs(View, { style: [docPaperStyles.page, {
712
- width,
713
- height
714
- }], pointerEvents: "none", children: [
715
- /* @__PURE__ */ jsx(Text, { style: docPaperStyles.title, numberOfLines: 1, children: title }),
716
- lines.length ? lines.map((line, i) => /* @__PURE__ */ jsx(Text, { style: line.heading ? docPaperStyles.heading : docPaperStyles.line, numberOfLines: 2, children: line.text }, i)) : (
717
- // A new doc has no words yet; ruled lines say "page" without inventing text.
718
- [92, 100, 84, 96, 70].map((w, i) => /* @__PURE__ */ jsx(View, { style: [docPaperStyles.rule, {
719
- width: `${w}%`
720
- }] }, i))
721
- )
722
- ] });
723
- }
724
- const docPaperStyles = StyleSheet.create({
725
- page: {
726
- backgroundColor: "#ffffff",
727
- borderRadius: 3,
728
- padding: 10,
729
- gap: 5,
730
- overflow: "hidden",
731
- shadowColor: "#000",
732
- shadowOpacity: 0.12,
733
- shadowRadius: 4,
734
- shadowOffset: {
735
- width: 0,
736
- height: 1
737
- },
738
- elevation: 2
739
- },
740
- title: {
741
- fontSize: 10,
742
- lineHeight: 13,
743
- fontWeight: "700",
744
- color: "#171717"
745
- },
746
- heading: {
747
- fontSize: 8,
748
- lineHeight: 11,
749
- fontWeight: "600",
750
- color: "#262626"
751
- },
752
- line: {
753
- fontSize: 8,
754
- lineHeight: 11,
755
- color: "#525252"
756
- },
757
- rule: {
758
- height: 4,
759
- borderRadius: 2,
760
- backgroundColor: "#e5e5e5",
761
- marginTop: 4
762
- }
763
- });
764
355
  const makeStyles = themedStyles((theme) => StyleSheet.create({
765
356
  plane: {
766
357
  flex: 1,
@@ -841,114 +432,49 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
841
432
  paddingHorizontal: GUTTER,
842
433
  gap: SPACE.sm
843
434
  },
844
- lanes: {
435
+ groupTitle: __spreadProps(__spreadValues({}, TYPE.title), {
436
+ fontSize: 18,
437
+ lineHeight: 24,
438
+ marginBottom: SPACE.md,
439
+ paddingBottom: SPACE.sm,
440
+ borderBottomWidth: StyleSheet.hairlineWidth
441
+ }),
442
+ createRows: {
845
443
  flexDirection: "row",
846
444
  flexWrap: "wrap",
847
- gap: SPACE.sm
848
- },
849
- lane: {
850
- height: 92,
851
- borderRadius: RADIUS.lg,
852
- padding: SPACE.md,
853
- justifyContent: "space-between"
854
- },
855
- laneLabel: __spreadProps(__spreadValues({}, TYPE.label), {
856
- lineHeight: 17
857
- }),
858
- format: {
859
- width: 84,
860
- alignItems: "center",
861
- gap: SPACE.sm
445
+ columnGap: CREATE_COLUMN_GAP,
446
+ rowGap: SPACE.xs
862
447
  },
863
- formatWell: {
864
- width: 84,
865
- height: 84,
866
- borderRadius: RADIUS.lg,
867
- backgroundColor: theme.card,
868
- alignItems: "center",
869
- justifyContent: "center"
870
- },
871
- formatPage: {
448
+ createRow: {
449
+ flexDirection: "row",
450
+ alignItems: "flex-start",
451
+ gap: SPACE.sm + 2,
452
+ minHeight: 48,
453
+ paddingVertical: SPACE.sm
454
+ },
455
+ createIcon: {
456
+ width: 36,
457
+ height: 36,
458
+ flexShrink: 0,
872
459
  alignItems: "center",
873
460
  justifyContent: "center",
874
- borderRadius: 4,
875
- backgroundColor: theme.isDark ? theme.secondary : theme.surface,
876
- borderWidth: StyleSheet.hairlineWidth,
877
- borderColor: theme.borderStrong
878
- },
879
- formatPageBack: {
880
- position: "absolute",
881
- transform: [{
882
- translateX: 6
883
- }, {
884
- translateY: -6
885
- }],
886
- opacity: 0.6
461
+ borderRadius: RADIUS.md
887
462
  },
888
- formatLabel: __spreadProps(__spreadValues({}, TYPE.caption), {
889
- color: theme.foreground
890
- }),
891
- tool: {
892
- flexDirection: "row",
893
- alignItems: "center",
894
- gap: SPACE.sm,
895
- minHeight: 44,
896
- paddingHorizontal: SPACE.lg - 2,
897
- borderRadius: RADIUS.pill,
898
- backgroundColor: theme.card
463
+ createText: {
464
+ flex: 1,
465
+ minWidth: 0
899
466
  },
900
- toolLabel: __spreadProps(__spreadValues({}, TYPE.label), {
467
+ createLabel: __spreadProps(__spreadValues({}, TYPE.label), {
468
+ fontSize: 14,
469
+ lineHeight: 20,
901
470
  color: theme.foreground
902
471
  }),
903
- look: {
904
- width: 136,
905
- height: 176,
906
- borderRadius: RADIUS.lg,
907
- overflow: "hidden",
908
- backgroundColor: theme.card
909
- },
910
- lookCaption: {
911
- position: "absolute",
912
- left: 0,
913
- right: 0,
914
- bottom: 0,
915
- paddingHorizontal: SPACE.md - 2,
916
- paddingVertical: SPACE.sm + 2,
917
- backgroundColor: "rgba(10,10,10,0.55)"
918
- },
919
- lookName: __spreadProps(__spreadValues({}, TYPE.label), {
920
- color: "#fafafa"
921
- }),
922
- templateRowGap: {
923
- marginBottom: SPACE.md
924
- },
925
- templateCover: {
926
- borderRadius: RADIUS.md,
927
- overflow: "hidden",
928
- backgroundColor: theme.card,
929
- borderWidth: StyleSheet.hairlineWidth,
930
- borderColor: theme.border
931
- },
932
- railError: {
933
- flexDirection: "row",
934
- alignItems: "center",
935
- flexWrap: "wrap",
936
- gap: SPACE.md,
937
- marginBottom: SPACE.md
938
- },
939
- railErrorText: __spreadProps(__spreadValues({}, TYPE.body), {
940
- fontSize: 14,
472
+ createHint: __spreadProps(__spreadValues({}, TYPE.caption), {
473
+ fontWeight: "400",
474
+ marginTop: 2,
475
+ lineHeight: 16,
941
476
  color: theme.mutedForeground
942
477
  }),
943
- retry: {
944
- flexDirection: "row",
945
- alignItems: "center",
946
- gap: SPACE.xs + 2,
947
- minHeight: 36,
948
- paddingHorizontal: SPACE.md,
949
- borderRadius: RADIUS.pill,
950
- backgroundColor: theme.card
951
- },
952
478
  retryLabel: __spreadProps(__spreadValues({}, TYPE.label), {
953
479
  color: theme.foreground
954
480
  }),
@@ -989,13 +515,60 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
989
515
  usePromptLabel: __spreadProps(__spreadValues({}, TYPE.label), {
990
516
  color: theme.foreground
991
517
  }),
518
+ showcaseSection: {
519
+ marginBottom: SPACE.xl
520
+ },
521
+ showcaseSub: __spreadProps(__spreadValues({}, TYPE.caption), {
522
+ fontWeight: "400",
523
+ marginBottom: SPACE.md,
524
+ color: theme.mutedForeground
525
+ }),
526
+ // Wraps as web's does: heading, then the buttons on the right, then the search on a row of its own.
992
527
  workHead: {
993
- gap: SPACE.md,
528
+ flexDirection: "row",
529
+ flexWrap: "wrap",
530
+ alignItems: "center",
531
+ columnGap: SPACE.lg,
532
+ rowGap: SPACE.md,
994
533
  marginBottom: SPACE.lg
995
534
  },
996
- workFooter: {
535
+ workActions: {
536
+ flexDirection: "row",
537
+ alignItems: "center",
538
+ gap: SPACE.sm,
539
+ marginLeft: "auto"
540
+ },
541
+ blank: {
542
+ flexDirection: "row",
543
+ alignItems: "center",
544
+ gap: SPACE.xs + 2,
545
+ minHeight: 36,
546
+ paddingHorizontal: SPACE.md + 2,
547
+ borderRadius: RADIUS.md,
548
+ borderWidth: StyleSheet.hairlineWidth,
549
+ borderColor: theme.borderStrong
550
+ },
551
+ search: {
552
+ flexDirection: "row",
997
553
  alignItems: "center",
998
554
  gap: SPACE.sm,
555
+ width: "100%",
556
+ minHeight: 40,
557
+ paddingHorizontal: SPACE.md,
558
+ borderRadius: RADIUS.md,
559
+ borderWidth: StyleSheet.hairlineWidth,
560
+ borderColor: theme.borderStrong,
561
+ backgroundColor: theme.background
562
+ },
563
+ searchInput: __spreadProps(__spreadValues({}, TYPE.body), {
564
+ fontSize: 14,
565
+ flex: 1,
566
+ minWidth: 0,
567
+ paddingVertical: 0,
568
+ color: theme.foreground
569
+ }),
570
+ workFooter: {
571
+ alignItems: "center",
999
572
  marginTop: SPACE.xs
1000
573
  },
1001
574
  showAll: {
@@ -1006,135 +579,37 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
1006
579
  borderWidth: StyleSheet.hairlineWidth,
1007
580
  borderColor: theme.borderStrong
1008
581
  },
1009
- workNote: __spreadProps(__spreadValues({}, TYPE.caption), {
1010
- color: theme.mutedForeground,
1011
- textAlign: "center"
1012
- }),
1013
- noMargin: {
1014
- marginBottom: 0
1015
- },
1016
- segmented: {
1017
- flexGrow: 0,
1018
- alignSelf: "flex-start"
1019
- },
1020
582
  row: {
1021
583
  flexDirection: "row",
1022
- gap: GUTTER,
584
+ gap: TILE_GAP,
1023
585
  marginBottom: SPACE.xl - 4
1024
586
  },
1025
- cover: {
1026
- aspectRatio: 1,
1027
- borderRadius: RADIUS.lg,
1028
- overflow: "hidden",
1029
- backgroundColor: theme.card,
1030
- marginBottom: SPACE.sm
1031
- },
1032
587
  coverNew: {
1033
588
  alignItems: "center",
1034
589
  justifyContent: "center",
1035
- borderWidth: 1.5,
590
+ marginBottom: SPACE.sm,
591
+ borderRadius: RADIUS.md,
592
+ borderWidth: 1,
1036
593
  borderStyle: "dashed",
1037
- borderColor: theme.borderStrong,
1038
- backgroundColor: "transparent"
1039
- },
1040
- newPlus: {
1041
- width: 48,
1042
- height: 48,
1043
- borderRadius: 24,
1044
- alignItems: "center",
1045
- justifyContent: "center",
1046
- backgroundColor: theme.primary
1047
- },
1048
- centered: {
1049
- alignItems: "center",
1050
- justifyContent: "center"
594
+ borderColor: theme.borderStrong
1051
595
  },
1052
- fill: __spreadValues({}, StyleSheet.absoluteFillObject),
1053
596
  workTitle: __spreadProps(__spreadValues({}, TYPE.label), {
1054
597
  fontSize: 14,
1055
598
  color: theme.foreground
1056
599
  }),
1057
- workMeta: __spreadProps(__spreadValues({}, TYPE.caption), {
1058
- marginTop: 1,
1059
- color: theme.mutedForeground
1060
- }),
1061
- countBadge: {
600
+ tileMenu: {
1062
601
  position: "absolute",
1063
602
  top: SPACE.sm,
1064
- right: SPACE.sm,
1065
- minWidth: 24,
1066
- height: 24,
1067
- paddingHorizontal: 7,
1068
- borderRadius: 12,
1069
- alignItems: "center",
1070
- justifyContent: "center",
1071
- backgroundColor: "rgba(10,10,10,0.55)"
1072
- },
1073
- countBadgeText: {
1074
- fontSize: 12,
1075
- fontWeight: "600",
1076
- color: "#fafafa"
1077
- },
1078
- playBadge: {
1079
- position: "absolute",
1080
- left: SPACE.sm,
1081
- bottom: SPACE.sm,
1082
- width: 28,
1083
- height: 28,
1084
- borderRadius: 14,
1085
- alignItems: "center",
1086
- justifyContent: "center",
1087
- backgroundColor: "rgba(10,10,10,0.55)"
1088
- },
1089
- designPage: {
1090
- overflow: "hidden",
1091
- borderRadius: 3,
1092
- shadowColor: "#000",
1093
- shadowOpacity: theme.isDark ? 0 : 0.1,
1094
- shadowRadius: 6,
1095
- shadowOffset: {
1096
- width: 0,
1097
- height: 2
1098
- },
1099
- elevation: 2
1100
- },
1101
- // The sketch sits on the design's own (usually white) page, so its ink is fixed, not themed.
1102
- sketch: __spreadProps(__spreadValues({}, StyleSheet.absoluteFillObject), {
1103
- padding: "10%",
1104
- gap: 6
1105
- }),
1106
- sketchBar: {
1107
- borderRadius: 3,
1108
- backgroundColor: "#ececef"
1109
- },
1110
- sketchBlock: {
1111
- flex: 1,
1112
- width: "100%",
1113
- marginTop: 4,
1114
- alignItems: "center",
1115
- justifyContent: "center"
1116
- },
1117
- blankPage: {
1118
- fontSize: 10,
1119
- fontWeight: "600",
1120
- color: "#a1a1aa",
1121
- textAlign: "center"
603
+ right: SPACE.sm
1122
604
  },
1123
605
  empty: {
1124
606
  alignItems: "center",
1125
607
  paddingVertical: SPACE.xxl,
1126
608
  paddingHorizontal: SPACE.xl,
1127
- borderRadius: RADIUS.xl,
1128
- backgroundColor: theme.card
1129
- },
1130
- emptyIcon: {
1131
- width: 52,
1132
- height: 52,
1133
- borderRadius: 26,
1134
- alignItems: "center",
1135
- justifyContent: "center",
1136
- backgroundColor: theme.background,
1137
- marginBottom: SPACE.md
609
+ borderRadius: RADIUS.lg,
610
+ borderWidth: 1,
611
+ borderStyle: "dashed",
612
+ borderColor: theme.borderStrong
1138
613
  },
1139
614
  emptyTitle: __spreadProps(__spreadValues({}, TYPE.title), {
1140
615
  color: theme.foreground,
@@ -1146,19 +621,5 @@ const makeStyles = themedStyles((theme) => StyleSheet.create({
1146
621
  color: theme.mutedForeground,
1147
622
  textAlign: "center",
1148
623
  maxWidth: 300
1149
- }),
1150
- emptyCta: {
1151
- marginTop: SPACE.lg + 2,
1152
- flexDirection: "row",
1153
- alignItems: "center",
1154
- gap: SPACE.sm,
1155
- minHeight: 44,
1156
- paddingHorizontal: SPACE.xl - 4,
1157
- borderRadius: RADIUS.pill,
1158
- backgroundColor: theme.primary
1159
- },
1160
- emptyCtaLabel: __spreadProps(__spreadValues({}, TYPE.label), {
1161
- fontSize: 15,
1162
- color: theme.primaryForeground
1163
624
  })
1164
625
  }));export{CanvasBoardsGrid};//# sourceMappingURL=CanvasBoardsGrid.js.map