@adminide-stack/yantra-mobile 12.0.69-alpha.9 → 12.0.69

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 (522) hide show
  1. package/lib/components/GatewayConnector/GatewayConnector.js +2 -2
  2. package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
  3. package/lib/components/KeyboardComposerDock.js +8 -1
  4. package/lib/components/KeyboardComposerDock.js.map +1 -1
  5. package/lib/components/NavigationHeader/NavigationHeader.js +2 -2
  6. package/lib/components/NavigationHeader/NavigationHeader.js.map +1 -1
  7. package/lib/config/env-config.js +4 -0
  8. package/lib/config/env-config.js.map +1 -1
  9. package/lib/contexts/ChatLiveStreamContext.js +4 -1
  10. package/lib/contexts/ChatLiveStreamContext.js.map +1 -1
  11. package/lib/features/agent-chat/NativeAgentChat.js +2 -0
  12. package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
  13. package/lib/features/apps/AppsCatalog.js +2 -2
  14. package/lib/features/apps/AppsCatalog.js.map +1 -1
  15. package/lib/features/audio-input/MicErrorBoundary.js +2 -2
  16. package/lib/features/audio-input/MicErrorBoundary.js.map +1 -1
  17. package/lib/features/canvas/AudioEditorExperience.js +308 -0
  18. package/lib/features/canvas/AudioEditorExperience.js.map +1 -0
  19. package/lib/features/canvas/CanvasAgentChatPane.js +310 -0
  20. package/lib/features/canvas/CanvasAgentChatPane.js.map +1 -0
  21. package/lib/features/canvas/CanvasBoardsGrid.js +414 -0
  22. package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -0
  23. package/lib/features/canvas/CanvasChatResultCard.js +113 -0
  24. package/lib/features/canvas/CanvasChatResultCard.js.map +1 -0
  25. package/lib/features/canvas/CanvasEditToolsPanel.js +179 -0
  26. package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -0
  27. package/lib/features/canvas/CanvasExperience.js +859 -0
  28. package/lib/features/canvas/CanvasExperience.js.map +1 -0
  29. package/lib/features/canvas/CanvasGeneratePanel.js +514 -0
  30. package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -0
  31. package/lib/features/canvas/CanvasLibrarySheet.js +355 -0
  32. package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -0
  33. package/lib/features/canvas/CanvasLooksPanel.js +184 -0
  34. package/lib/features/canvas/CanvasLooksPanel.js.map +1 -0
  35. package/lib/features/canvas/CanvasTasksPanel.js +138 -0
  36. package/lib/features/canvas/CanvasTasksPanel.js.map +1 -0
  37. package/lib/features/canvas/CanvasTemplatesPanel.js +226 -0
  38. package/lib/features/canvas/CanvasTemplatesPanel.js.map +1 -0
  39. package/lib/features/canvas/CanvasToolDock.js +423 -0
  40. package/lib/features/canvas/CanvasToolDock.js.map +1 -0
  41. package/lib/features/canvas/FrameExtractorExperience.js +242 -0
  42. package/lib/features/canvas/FrameExtractorExperience.js.map +1 -0
  43. package/lib/features/canvas/ImageEditorExperience.js +491 -0
  44. package/lib/features/canvas/ImageEditorExperience.js.map +1 -0
  45. package/lib/features/canvas/InfluencerStudioExperience.js +288 -0
  46. package/lib/features/canvas/InfluencerStudioExperience.js.map +1 -0
  47. package/lib/features/canvas/MoodboardExperience.js +205 -0
  48. package/lib/features/canvas/MoodboardExperience.js.map +1 -0
  49. package/lib/features/canvas/NativeCanvasViewer.js +929 -0
  50. package/lib/features/canvas/NativeCanvasViewer.js.map +1 -0
  51. package/lib/features/canvas/PromoContextFields.js +150 -0
  52. package/lib/features/canvas/PromoContextFields.js.map +1 -0
  53. package/lib/features/canvas/SetStudioExperience.js +323 -0
  54. package/lib/features/canvas/SetStudioExperience.js.map +1 -0
  55. package/lib/features/canvas/VideoClipsExperience.js +175 -0
  56. package/lib/features/canvas/VideoClipsExperience.js.map +1 -0
  57. package/lib/features/canvas/VideoEditExperience.js +824 -0
  58. package/lib/features/canvas/VideoEditExperience.js.map +1 -0
  59. package/lib/features/canvas/VideoEditorExperience.js +3050 -0
  60. package/lib/features/canvas/VideoEditorExperience.js.map +1 -0
  61. package/lib/features/canvas/VideoGeneratorExperience.js +415 -0
  62. package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -0
  63. package/lib/features/canvas/aiEdit.js +53 -0
  64. package/lib/features/canvas/aiEdit.js.map +1 -0
  65. package/lib/features/canvas/canvasAgentChat.js +76 -0
  66. package/lib/features/canvas/canvasAgentChat.js.map +1 -0
  67. package/lib/features/canvas/canvasBoardsCatalog.js +59 -0
  68. package/lib/features/canvas/canvasBoardsCatalog.js.map +1 -0
  69. package/lib/features/canvas/canvasBoardsSnapshot.js +14 -1
  70. package/lib/features/canvas/canvasBoardsSnapshot.js.map +1 -1
  71. package/lib/features/canvas/canvasChatDisplay.js +38 -0
  72. package/lib/features/canvas/canvasChatDisplay.js.map +1 -0
  73. package/lib/features/canvas/canvasChatTemplates.js +219 -0
  74. package/lib/features/canvas/canvasChatTemplates.js.map +1 -0
  75. package/lib/features/canvas/canvasCore.js +138 -1
  76. package/lib/features/canvas/canvasCore.js.map +1 -1
  77. package/lib/features/canvas/canvasEditOps.js +224 -0
  78. package/lib/features/canvas/canvasEditOps.js.map +1 -0
  79. package/lib/features/canvas/canvasTasks.js +187 -0
  80. package/lib/features/canvas/canvasTasks.js.map +1 -0
  81. package/lib/features/canvas/designPromptTemplates.js +3084 -0
  82. package/lib/features/canvas/designPromptTemplates.js.map +1 -0
  83. package/lib/features/canvas/editTools.js +54 -0
  84. package/lib/features/canvas/editTools.js.map +1 -0
  85. package/lib/features/canvas/extendVideo.js +5 -0
  86. package/lib/features/canvas/extendVideo.js.map +1 -0
  87. package/lib/features/canvas/frameExtract.js +33 -0
  88. package/lib/features/canvas/frameExtract.js.map +1 -0
  89. package/lib/features/canvas/generationModels.js +201 -0
  90. package/lib/features/canvas/generationModels.js.map +1 -0
  91. package/lib/features/canvas/influencer/influencerPipeline.js +170 -0
  92. package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -0
  93. package/lib/features/canvas/influencer/productReel.js +72 -0
  94. package/lib/features/canvas/influencer/productReel.js.map +1 -0
  95. package/lib/features/canvas/influencer/reelPlan.js +159 -0
  96. package/lib/features/canvas/influencer/reelPlan.js.map +1 -0
  97. package/lib/features/canvas/moodboardCore.js +13 -0
  98. package/lib/features/canvas/moodboardCore.js.map +1 -0
  99. package/lib/features/canvas/promoProjectImport.js +99 -0
  100. package/lib/features/canvas/promoProjectImport.js.map +1 -0
  101. package/lib/features/canvas/promoVideo.js +312 -0
  102. package/lib/features/canvas/promoVideo.js.map +1 -0
  103. package/lib/features/canvas/recorder/CameraRecorderExperience.js +109 -0
  104. package/lib/features/canvas/recorder/CameraRecorderExperience.js.map +1 -0
  105. package/lib/features/canvas/sessionIdentity.js +28 -1
  106. package/lib/features/canvas/sessionIdentity.js.map +1 -1
  107. package/lib/features/canvas/set/SetViewportWebView.js +133 -0
  108. package/lib/features/canvas/set/SetViewportWebView.js.map +1 -0
  109. package/lib/features/canvas/set/cameraPath.js +194 -0
  110. package/lib/features/canvas/set/cameraPath.js.map +1 -0
  111. package/lib/features/canvas/set/setProject.js +24 -0
  112. package/lib/features/canvas/set/setProject.js.map +1 -0
  113. package/lib/features/canvas/storageLibrary.js +184 -0
  114. package/lib/features/canvas/storageLibrary.js.map +1 -0
  115. package/lib/features/canvas/studioCatalog.js +129 -0
  116. package/lib/features/canvas/studioCatalog.js.map +1 -0
  117. package/lib/features/canvas/studioLooks.js +189 -0
  118. package/lib/features/canvas/studioLooks.js.map +1 -0
  119. package/lib/features/canvas/surfaceIndex.js +63 -1
  120. package/lib/features/canvas/surfaceIndex.js.map +1 -1
  121. package/lib/features/canvas/templateImport/invideoNative.js +221 -0
  122. package/lib/features/canvas/templateImport/invideoNative.js.map +1 -0
  123. package/lib/features/canvas/templateImport/loadTemplate.js +43 -0
  124. package/lib/features/canvas/templateImport/loadTemplate.js.map +1 -0
  125. package/lib/features/canvas/templateImport/renderConfig.js +93 -0
  126. package/lib/features/canvas/templateImport/renderConfig.js.map +1 -0
  127. package/lib/features/canvas/useStudioCatalogTemplates.js +134 -0
  128. package/lib/features/canvas/useStudioCatalogTemplates.js.map +1 -0
  129. package/lib/features/canvas/video3d.js +109 -0
  130. package/lib/features/canvas/video3d.js.map +1 -0
  131. package/lib/features/canvas/videoClips.js +42 -0
  132. package/lib/features/canvas/videoClips.js.map +1 -0
  133. package/lib/features/canvas/videoEditor/agent/AgentCutPane.js +120 -0
  134. package/lib/features/canvas/videoEditor/agent/AgentCutPane.js.map +1 -0
  135. package/lib/features/canvas/videoEditor/agent/agentLoop.js +69 -0
  136. package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -0
  137. package/lib/features/canvas/videoEditor/agent/brainClient.js +45 -0
  138. package/lib/features/canvas/videoEditor/agent/brainClient.js.map +1 -0
  139. package/lib/features/canvas/videoEditor/agent/cutTools.js +129 -0
  140. package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -0
  141. package/lib/features/canvas/videoEditor/editorModel.js +346 -0
  142. package/lib/features/canvas/videoEditor/editorModel.js.map +1 -0
  143. package/lib/features/canvas/videoEditor/exportRenderer.js +214 -0
  144. package/lib/features/canvas/videoEditor/exportRenderer.js.map +1 -0
  145. package/lib/features/canvas/videoEditor/filters.js +41 -0
  146. package/lib/features/canvas/videoEditor/filters.js.map +1 -0
  147. package/lib/features/canvas/videoEditor/mediaActions.js +57 -0
  148. package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -0
  149. package/lib/features/canvas/videoEditor/remoteMediaClient.js +129 -0
  150. package/lib/features/canvas/videoEditor/remoteMediaClient.js.map +1 -0
  151. package/lib/features/canvas/videoEditor/solidColorPng.js +115 -0
  152. package/lib/features/canvas/videoEditor/solidColorPng.js.map +1 -0
  153. package/lib/features/canvas/videoEditor/videoEditOps.js +191 -0
  154. package/lib/features/canvas/videoEditor/videoEditOps.js.map +1 -0
  155. package/lib/features/canvas/videoEditor/videoProjectsStore.js +82 -0
  156. package/lib/features/canvas/videoEditor/videoProjectsStore.js.map +1 -0
  157. package/lib/features/canvas/videoRenderer.js +8 -0
  158. package/lib/features/canvas/videoRenderer.js.map +1 -0
  159. package/lib/features/canvas/withRemoteSafeArea.js +2 -2
  160. package/lib/features/canvas/withRemoteSafeArea.js.map +1 -1
  161. package/lib/features/characters/characterStudioProps.js +14 -0
  162. package/lib/features/characters/characterStudioProps.js.map +1 -0
  163. package/lib/features/chat/ChatCodeBlock.js +7 -3
  164. package/lib/features/chat/ChatCodeBlock.js.map +1 -1
  165. package/lib/features/chat/ChatTranscript.js +7 -3
  166. package/lib/features/chat/ChatTranscript.js.map +1 -1
  167. package/lib/features/chat/ChatWidgetCard.js +13 -0
  168. package/lib/features/chat/ChatWidgetCard.js.map +1 -0
  169. package/lib/features/chat/ConnectorConnectCard.js +164 -0
  170. package/lib/features/chat/ConnectorConnectCard.js.map +1 -0
  171. package/lib/features/chat/ConnectorConnectPrompt.js +254 -0
  172. package/lib/features/chat/ConnectorConnectPrompt.js.map +1 -0
  173. package/lib/features/chat/MessageActionBar.js.map +1 -1
  174. package/lib/features/chat/QueuedFollowUps.js +71 -0
  175. package/lib/features/chat/QueuedFollowUps.js.map +1 -0
  176. package/lib/features/chat/chatWidgets.js +37 -0
  177. package/lib/features/chat/chatWidgets.js.map +1 -0
  178. package/lib/features/chat/connectorConnect.js +179 -0
  179. package/lib/features/chat/connectorConnect.js.map +1 -0
  180. package/lib/features/chat/connectorConnectHandbacks.js +55 -0
  181. package/lib/features/chat/connectorConnectHandbacks.js.map +1 -0
  182. package/lib/features/design/DesignEditorExperience.js +643 -0
  183. package/lib/features/design/DesignEditorExperience.js.map +1 -0
  184. package/lib/features/design/DesignExperience.js +444 -0
  185. package/lib/features/design/DesignExperience.js.map +1 -0
  186. package/lib/features/design/designCore.js +298 -0
  187. package/lib/features/design/designCore.js.map +1 -0
  188. package/lib/features/design/designIndex.js +150 -0
  189. package/lib/features/design/designIndex.js.map +1 -0
  190. package/lib/features/design/exportDesign.js +133 -0
  191. package/lib/features/design/exportDesign.js.map +1 -0
  192. package/lib/features/job-search/ApplicationsPanel.js +907 -0
  193. package/lib/features/job-search/ApplicationsPanel.js.map +1 -0
  194. package/lib/features/job-search/ContactsPanel.js +627 -0
  195. package/lib/features/job-search/ContactsPanel.js.map +1 -0
  196. package/lib/features/job-search/InsightsPanel.js +299 -0
  197. package/lib/features/job-search/InsightsPanel.js.map +1 -0
  198. package/lib/features/job-search/InterviewPanel.js +637 -0
  199. package/lib/features/job-search/InterviewPanel.js.map +1 -0
  200. package/lib/features/job-search/JdPastePrompt.js +130 -0
  201. package/lib/features/job-search/JdPastePrompt.js.map +1 -0
  202. package/lib/features/job-search/JobCard.js +199 -0
  203. package/lib/features/job-search/JobCard.js.map +1 -0
  204. package/lib/features/job-search/JobDetailSheet.js +255 -0
  205. package/lib/features/job-search/JobDetailSheet.js.map +1 -0
  206. package/lib/features/job-search/JobSearchAgentChatPane.js +377 -0
  207. package/lib/features/job-search/JobSearchAgentChatPane.js.map +1 -0
  208. package/lib/features/job-search/JobSearchExperience.js +1324 -0
  209. package/lib/features/job-search/JobSearchExperience.js.map +1 -0
  210. package/lib/features/job-search/JobSearchLocationField.js +231 -0
  211. package/lib/features/job-search/JobSearchLocationField.js.map +1 -0
  212. package/lib/features/job-search/ProfilePanel.js +679 -0
  213. package/lib/features/job-search/ProfilePanel.js.map +1 -0
  214. package/lib/features/job-search/RepliesPanel.js +344 -0
  215. package/lib/features/job-search/RepliesPanel.js.map +1 -0
  216. package/lib/features/job-search/SavedPanel.js +297 -0
  217. package/lib/features/job-search/SavedPanel.js.map +1 -0
  218. package/lib/features/job-search/chat/widgetContent.js +29 -0
  219. package/lib/features/job-search/chat/widgetContent.js.map +1 -0
  220. package/lib/features/job-search/cvText.js +91 -0
  221. package/lib/features/job-search/cvText.js.map +1 -0
  222. package/lib/features/job-search/jobAgentSwipe.js +7 -0
  223. package/lib/features/job-search/jobAgentSwipe.js.map +1 -0
  224. package/lib/features/job-search/jobSearchClient.js +184 -0
  225. package/lib/features/job-search/jobSearchClient.js.map +1 -0
  226. package/lib/features/job-search/jobSearchExec.js +14 -0
  227. package/lib/features/job-search/jobSearchExec.js.map +1 -0
  228. package/lib/features/job-search/jobSearchRuntime.js +50 -0
  229. package/lib/features/job-search/jobSearchRuntime.js.map +1 -0
  230. package/lib/features/job-search/jobSearchTheme.js +44 -0
  231. package/lib/features/job-search/jobSearchTheme.js.map +1 -0
  232. package/lib/features/job-search/savedJobs.js +85 -0
  233. package/lib/features/job-search/savedJobs.js.map +1 -0
  234. package/lib/features/job-search/searchHistory.js +117 -0
  235. package/lib/features/job-search/searchHistory.js.map +1 -0
  236. package/lib/features/job-search/types.js +36 -0
  237. package/lib/features/job-search/types.js.map +1 -0
  238. package/lib/features/job-search/useJobSearchSession.js +558 -0
  239. package/lib/features/job-search/useJobSearchSession.js.map +1 -0
  240. package/lib/features/messaging/ChatComponents.js +529 -0
  241. package/lib/features/messaging/ChatComponents.js.map +1 -0
  242. package/lib/features/messaging/ChatInviteDeepLink.js +116 -0
  243. package/lib/features/messaging/ChatInviteDeepLink.js.map +1 -0
  244. package/lib/features/messaging/ContactsScreen.js +288 -0
  245. package/lib/features/messaging/ContactsScreen.js.map +1 -0
  246. package/lib/features/messaging/ConversationListScreen.js +147 -0
  247. package/lib/features/messaging/ConversationListScreen.js.map +1 -0
  248. package/lib/features/messaging/MessageActions.js +290 -0
  249. package/lib/features/messaging/MessageActions.js.map +1 -0
  250. package/lib/features/messaging/NativeChatExperience.js +189 -0
  251. package/lib/features/messaging/NativeChatExperience.js.map +1 -0
  252. package/lib/features/messaging/RegistrationScreen.js +11 -14
  253. package/lib/features/messaging/RegistrationScreen.js.map +1 -1
  254. package/lib/features/messaging/ThreadScreen.js +215 -0
  255. package/lib/features/messaging/ThreadScreen.js.map +1 -0
  256. package/lib/features/messaging/chatInviteLink.js +52 -0
  257. package/lib/features/messaging/chatInviteLink.js.map +1 -0
  258. package/lib/features/messaging/chatModel.js +278 -0
  259. package/lib/features/messaging/chatModel.js.map +1 -0
  260. package/lib/features/messaging/chatOperations.js +106 -1
  261. package/lib/features/messaging/chatOperations.js.map +1 -1
  262. package/lib/features/messaging/emojiCatalog.js +60 -0
  263. package/lib/features/messaging/emojiCatalog.js.map +1 -0
  264. package/lib/features/messaging/emojiKeywords.js +1592 -0
  265. package/lib/features/messaging/emojiKeywords.js.map +1 -0
  266. package/lib/features/messaging/nativeChatChannelQuery.js +27 -0
  267. package/lib/features/messaging/nativeChatChannelQuery.js.map +1 -0
  268. package/lib/features/messaging/phoneNumbers.js +52 -1
  269. package/lib/features/messaging/phoneNumbers.js.map +1 -1
  270. package/lib/features/messaging/sha256.js +68 -0
  271. package/lib/features/messaging/sha256.js.map +1 -0
  272. package/lib/features/messaging/useChatData.js +421 -0
  273. package/lib/features/messaging/useChatData.js.map +1 -0
  274. package/lib/features/messaging/useContactMatches.js +191 -0
  275. package/lib/features/messaging/useContactMatches.js.map +1 -0
  276. package/lib/features/messaging/usePhoneVerification.js +12 -12
  277. package/lib/features/messaging/usePhoneVerification.js.map +1 -1
  278. package/lib/features/messaging/yantraChatOrg.js +8 -3
  279. package/lib/features/messaging/yantraChatOrg.js.map +1 -1
  280. package/lib/features/resume/AnnotateModal.js +100 -0
  281. package/lib/features/resume/AnnotateModal.js.map +1 -0
  282. package/lib/features/resume/AnnotationBar.js +69 -0
  283. package/lib/features/resume/AnnotationBar.js.map +1 -0
  284. package/lib/features/resume/ExportSheet.js +105 -0
  285. package/lib/features/resume/ExportSheet.js.map +1 -0
  286. package/lib/features/resume/ResumeAgentChatPane.js +95 -0
  287. package/lib/features/resume/ResumeAgentChatPane.js.map +1 -0
  288. package/lib/features/resume/ResumeEditor.js +676 -0
  289. package/lib/features/resume/ResumeEditor.js.map +1 -0
  290. package/lib/features/resume/ResumeExperience.js +235 -0
  291. package/lib/features/resume/ResumeExperience.js.map +1 -0
  292. package/lib/features/resume/ResumeListPanel.js +262 -0
  293. package/lib/features/resume/ResumeListPanel.js.map +1 -0
  294. package/lib/features/resume/ResumeToolbar.js +236 -0
  295. package/lib/features/resume/ResumeToolbar.js.map +1 -0
  296. package/lib/features/resume/annotations.js +17 -0
  297. package/lib/features/resume/annotations.js.map +1 -0
  298. package/lib/features/resume/documentCss.js +52 -0
  299. package/lib/features/resume/documentCss.js.map +1 -0
  300. package/lib/features/resume/draft.js +89 -0
  301. package/lib/features/resume/draft.js.map +1 -0
  302. package/lib/features/resume/exportResume.js +43 -0
  303. package/lib/features/resume/exportResume.js.map +1 -0
  304. package/lib/features/resume/pickResumePhoto.js +22 -0
  305. package/lib/features/resume/pickResumePhoto.js.map +1 -0
  306. package/lib/features/resume/renderResume.js +121 -0
  307. package/lib/features/resume/renderResume.js.map +1 -0
  308. package/lib/features/resume/resumeClient.js +69 -0
  309. package/lib/features/resume/resumeClient.js.map +1 -0
  310. package/lib/features/resume/resumeExec.js +14 -0
  311. package/lib/features/resume/resumeExec.js.map +1 -0
  312. package/lib/features/resume/resumeIndex.js +244 -0
  313. package/lib/features/resume/resumeIndex.js.map +1 -0
  314. package/lib/features/resume/resumeRuntime.js +50 -0
  315. package/lib/features/resume/resumeRuntime.js.map +1 -0
  316. package/lib/features/resume/resumeTheme.js +34 -0
  317. package/lib/features/resume/resumeTheme.js.map +1 -0
  318. package/lib/features/resume/resumeToolbox.js +49 -0
  319. package/lib/features/resume/resumeToolbox.js.map +1 -0
  320. package/lib/features/resume/templates.js +90 -0
  321. package/lib/features/resume/templates.js.map +1 -0
  322. package/lib/features/resume/types.js +10 -0
  323. package/lib/features/resume/types.js.map +1 -0
  324. package/lib/features/resume/useResumeSession.js +183 -0
  325. package/lib/features/resume/useResumeSession.js.map +1 -0
  326. package/lib/features/shopping/DealsPanel.js +254 -0
  327. package/lib/features/shopping/DealsPanel.js.map +1 -0
  328. package/lib/features/shopping/HistoryPanel.js +147 -0
  329. package/lib/features/shopping/HistoryPanel.js.map +1 -0
  330. package/lib/features/shopping/OrdersPanel.js +157 -0
  331. package/lib/features/shopping/OrdersPanel.js.map +1 -0
  332. package/lib/features/shopping/ProductCard.js +326 -0
  333. package/lib/features/shopping/ProductCard.js.map +1 -0
  334. package/lib/features/shopping/ProductDetailSheet.js +313 -0
  335. package/lib/features/shopping/ProductDetailSheet.js.map +1 -0
  336. package/lib/features/shopping/ProductFilterBar.js +153 -0
  337. package/lib/features/shopping/ProductFilterBar.js.map +1 -0
  338. package/lib/features/shopping/ProductPhoto.js +27 -0
  339. package/lib/features/shopping/ProductPhoto.js.map +1 -0
  340. package/lib/features/shopping/SavedPanel.js +139 -0
  341. package/lib/features/shopping/SavedPanel.js.map +1 -0
  342. package/lib/features/shopping/ShoppingAgentChatPane.js +436 -0
  343. package/lib/features/shopping/ShoppingAgentChatPane.js.map +1 -0
  344. package/lib/features/shopping/ShoppingExperience.js +888 -0
  345. package/lib/features/shopping/ShoppingExperience.js.map +1 -0
  346. package/lib/features/shopping/TrendingSections.js +199 -0
  347. package/lib/features/shopping/TrendingSections.js.map +1 -0
  348. package/lib/features/shopping/WatchlistPanel.js +148 -0
  349. package/lib/features/shopping/WatchlistPanel.js.map +1 -0
  350. package/lib/features/shopping/catalog.js +238 -0
  351. package/lib/features/shopping/catalog.js.map +1 -0
  352. package/lib/features/shopping/chat/ShoppingChatResultCard.js +175 -0
  353. package/lib/features/shopping/chat/ShoppingChatResultCard.js.map +1 -0
  354. package/lib/features/shopping/chat/streamAssistantReply.js +34 -0
  355. package/lib/features/shopping/chat/streamAssistantReply.js.map +1 -0
  356. package/lib/features/shopping/chat/widgetContent.js +233 -0
  357. package/lib/features/shopping/chat/widgetContent.js.map +1 -0
  358. package/lib/features/shopping/hooks/useTrendingProducts.js +162 -0
  359. package/lib/features/shopping/hooks/useTrendingProducts.js.map +1 -0
  360. package/lib/features/shopping/productImage.js +42 -0
  361. package/lib/features/shopping/productImage.js.map +1 -0
  362. package/lib/features/shopping/savedProducts.js +84 -0
  363. package/lib/features/shopping/savedProducts.js.map +1 -0
  364. package/lib/features/shopping/services/catalogActions.js +166 -0
  365. package/lib/features/shopping/services/catalogActions.js.map +1 -0
  366. package/lib/features/shopping/services/parsePriceCheckIntent.js +58 -0
  367. package/lib/features/shopping/services/parsePriceCheckIntent.js.map +1 -0
  368. package/lib/features/shopping/services/parseShoppingIntent.js +67 -0
  369. package/lib/features/shopping/services/parseShoppingIntent.js.map +1 -0
  370. package/lib/features/shopping/services/productAvailability.js +25 -0
  371. package/lib/features/shopping/services/productAvailability.js.map +1 -0
  372. package/lib/features/shopping/services/productFilters.js +72 -0
  373. package/lib/features/shopping/services/productFilters.js.map +1 -0
  374. package/lib/features/shopping/services/retailerUrl.js +75 -0
  375. package/lib/features/shopping/services/retailerUrl.js.map +1 -0
  376. package/lib/features/shopping/services/shoppingChatReply.js +46 -0
  377. package/lib/features/shopping/services/shoppingChatReply.js.map +1 -0
  378. package/lib/features/shopping/services/shoppingProductSearch.js +336 -0
  379. package/lib/features/shopping/services/shoppingProductSearch.js.map +1 -0
  380. package/lib/features/shopping/services/shoppingSearchConnectorClient.js +41 -0
  381. package/lib/features/shopping/services/shoppingSearchConnectorClient.js.map +1 -0
  382. package/lib/features/shopping/shopAgentSwipe.js +7 -0
  383. package/lib/features/shopping/shopAgentSwipe.js.map +1 -0
  384. package/lib/features/shopping/shoppingCart.js +116 -0
  385. package/lib/features/shopping/shoppingCart.js.map +1 -0
  386. package/lib/features/shopping/shoppingExec.js +14 -0
  387. package/lib/features/shopping/shoppingExec.js.map +1 -0
  388. package/lib/features/shopping/shoppingHistoryStore.js +176 -0
  389. package/lib/features/shopping/shoppingHistoryStore.js.map +1 -0
  390. package/lib/features/shopping/shoppingRuntime.js +63 -0
  391. package/lib/features/shopping/shoppingRuntime.js.map +1 -0
  392. package/lib/features/shopping/timeAgo.js +14 -0
  393. package/lib/features/shopping/timeAgo.js.map +1 -0
  394. package/lib/features/shopping/useShoppingSearch.js +262 -0
  395. package/lib/features/shopping/useShoppingSearch.js.map +1 -0
  396. package/lib/features/travel/BookHeaderGlow.js +48 -0
  397. package/lib/features/travel/BookHeaderGlow.js.map +1 -0
  398. package/lib/features/travel/BookingsPanel.js +29 -0
  399. package/lib/features/travel/BookingsPanel.js.map +1 -0
  400. package/lib/features/travel/DiscoverPanel.js +155 -0
  401. package/lib/features/travel/DiscoverPanel.js.map +1 -0
  402. package/lib/features/travel/FlightCompareBar.js +86 -0
  403. package/lib/features/travel/FlightCompareBar.js.map +1 -0
  404. package/lib/features/travel/FlightDealsBoard.js +100 -0
  405. package/lib/features/travel/FlightDealsBoard.js.map +1 -0
  406. package/lib/features/travel/HistoryPanel.js +82 -0
  407. package/lib/features/travel/HistoryPanel.js.map +1 -0
  408. package/lib/features/travel/PopularDestinations.js +144 -0
  409. package/lib/features/travel/PopularDestinations.js.map +1 -0
  410. package/lib/features/travel/SavedPanel.js +27 -0
  411. package/lib/features/travel/SavedPanel.js.map +1 -0
  412. package/lib/features/travel/TravelAgentChatPane.js +303 -0
  413. package/lib/features/travel/TravelAgentChatPane.js.map +1 -0
  414. package/lib/features/travel/TravelBookHero.js +425 -0
  415. package/lib/features/travel/TravelBookHero.js.map +1 -0
  416. package/lib/features/travel/TravelDatesField.js +234 -0
  417. package/lib/features/travel/TravelDatesField.js.map +1 -0
  418. package/lib/features/travel/TravelDetailSheet.js +106 -0
  419. package/lib/features/travel/TravelDetailSheet.js.map +1 -0
  420. package/lib/features/travel/TravelExperience.js +624 -0
  421. package/lib/features/travel/TravelExperience.js.map +1 -0
  422. package/lib/features/travel/TravelGuestsField.js +85 -0
  423. package/lib/features/travel/TravelGuestsField.js.map +1 -0
  424. package/lib/features/travel/TravelLanding.js +318 -0
  425. package/lib/features/travel/TravelLanding.js.map +1 -0
  426. package/lib/features/travel/TravelLocationField.js +179 -0
  427. package/lib/features/travel/TravelLocationField.js.map +1 -0
  428. package/lib/features/travel/TravelPropertyCard.js +266 -0
  429. package/lib/features/travel/TravelPropertyCard.js.map +1 -0
  430. package/lib/features/travel/TravelPropertyPhoto.js +22 -0
  431. package/lib/features/travel/TravelPropertyPhoto.js.map +1 -0
  432. package/lib/features/travel/TravelRailFlyout.js +79 -0
  433. package/lib/features/travel/TravelRailFlyout.js.map +1 -0
  434. package/lib/features/travel/TravelResultsMap.js +126 -0
  435. package/lib/features/travel/TravelResultsMap.js.map +1 -0
  436. package/lib/features/travel/WorkspacePanel.js +148 -0
  437. package/lib/features/travel/WorkspacePanel.js.map +1 -0
  438. package/lib/features/travel/appNav.js +244 -0
  439. package/lib/features/travel/appNav.js.map +1 -0
  440. package/lib/features/travel/calendarDays.js +50 -0
  441. package/lib/features/travel/calendarDays.js.map +1 -0
  442. package/lib/features/travel/catalog.js +72 -0
  443. package/lib/features/travel/catalog.js.map +1 -0
  444. package/lib/features/travel/chat/TravelChatResultCard.js +107 -0
  445. package/lib/features/travel/chat/TravelChatResultCard.js.map +1 -0
  446. package/lib/features/travel/chat/widgetContent.js +107 -0
  447. package/lib/features/travel/chat/widgetContent.js.map +1 -0
  448. package/lib/features/travel/flightDeals.js +65 -0
  449. package/lib/features/travel/flightDeals.js.map +1 -0
  450. package/lib/features/travel/mapCoordinates.js +36 -0
  451. package/lib/features/travel/mapCoordinates.js.map +1 -0
  452. package/lib/features/travel/parseTravelIntent.js +303 -0
  453. package/lib/features/travel/parseTravelIntent.js.map +1 -0
  454. package/lib/features/travel/savedStays.js +66 -0
  455. package/lib/features/travel/savedStays.js.map +1 -0
  456. package/lib/features/travel/services/flightDealsBoard.js +111 -0
  457. package/lib/features/travel/services/flightDealsBoard.js.map +1 -0
  458. package/lib/features/travel/services/flightSearchConnectorClient.js +42 -0
  459. package/lib/features/travel/services/flightSearchConnectorClient.js.map +1 -0
  460. package/lib/features/travel/services/geocodeLocation.js +79 -0
  461. package/lib/features/travel/services/geocodeLocation.js.map +1 -0
  462. package/lib/features/travel/services/placePredictions.js +113 -0
  463. package/lib/features/travel/services/placePredictions.js.map +1 -0
  464. package/lib/features/travel/services/resolveOriginCity.js +27 -0
  465. package/lib/features/travel/services/resolveOriginCity.js.map +1 -0
  466. package/lib/features/travel/services/resortifiConnectorClient.js +76 -0
  467. package/lib/features/travel/services/resortifiConnectorClient.js.map +1 -0
  468. package/lib/features/travel/services/travelFlightSearch.js +289 -0
  469. package/lib/features/travel/services/travelFlightSearch.js.map +1 -0
  470. package/lib/features/travel/services/travelPropertySearch.js +377 -0
  471. package/lib/features/travel/services/travelPropertySearch.js.map +1 -0
  472. package/lib/features/travel/travelAgentSwipe.js +7 -0
  473. package/lib/features/travel/travelAgentSwipe.js.map +1 -0
  474. package/lib/features/travel/travelExec.js +14 -0
  475. package/lib/features/travel/travelExec.js.map +1 -0
  476. package/lib/features/travel/travelHistoryStore.js +108 -0
  477. package/lib/features/travel/travelHistoryStore.js.map +1 -0
  478. package/lib/features/travel/travelRuntime.js +62 -0
  479. package/lib/features/travel/travelRuntime.js.map +1 -0
  480. package/lib/features/travel/types.js +9 -0
  481. package/lib/features/travel/types.js.map +1 -0
  482. package/lib/features/travel/useTravelSearch.js +330 -0
  483. package/lib/features/travel/useTravelSearch.js.map +1 -0
  484. package/lib/features/travel/workspaceContent.js +548 -0
  485. package/lib/features/travel/workspaceContent.js.map +1 -0
  486. package/lib/hooks/useCdecliChannel.js +128 -6
  487. package/lib/hooks/useCdecliChannel.js.map +1 -1
  488. package/lib/hooks/useChatApi.js +4 -2
  489. package/lib/hooks/useChatApi.js.map +1 -1
  490. package/lib/hooks/useChatStream.js +77 -63
  491. package/lib/hooks/useChatStream.js.map +1 -1
  492. package/lib/hooks/useHostConnectorCard.js +24 -0
  493. package/lib/hooks/useHostConnectorCard.js.map +1 -0
  494. package/lib/hooks/useObtainSystemToken.js +23 -5
  495. package/lib/hooks/useObtainSystemToken.js.map +1 -1
  496. package/lib/hooks/webViewRetentionPolicy.js +1 -0
  497. package/lib/hooks/webViewRetentionPolicy.js.map +1 -1
  498. package/lib/index.js +1 -1
  499. package/lib/index.js.map +1 -1
  500. package/lib/screens/Chat/index.js +51 -22
  501. package/lib/screens/Chat/index.js.map +1 -1
  502. package/lib/screens/ChatNative/index.js +13 -2
  503. package/lib/screens/ChatNative/index.js.map +1 -1
  504. package/lib/screens/Home/HomeScreen.js +3 -3
  505. package/lib/screens/Home/HomeScreen.js.map +1 -1
  506. package/lib/screens/Home/components/ChatHistoryLanding.js +32 -32
  507. package/lib/screens/Home/components/ChatHistoryLanding.js.map +1 -1
  508. package/lib/screens/JobSearchNative/useJobSearchHostChat.js +12 -6
  509. package/lib/screens/JobSearchNative/useJobSearchHostChat.js.map +1 -1
  510. package/lib/screens/ResumeNative/useResumeHostChat.js +12 -6
  511. package/lib/screens/ResumeNative/useResumeHostChat.js.map +1 -1
  512. package/lib/screens/ShoppingNative/useShoppingHostChat.js +12 -6
  513. package/lib/screens/ShoppingNative/useShoppingHostChat.js.map +1 -1
  514. package/lib/screens/TravelNative/useTravelHostChat.js +12 -6
  515. package/lib/screens/TravelNative/useTravelHostChat.js.map +1 -1
  516. package/lib/screens/WebBuilder/WebViewWithNavigation.js +2 -2
  517. package/lib/screens/WebBuilder/WebViewWithNavigation.js.map +1 -1
  518. package/lib/services/brainQuickReply.js +38 -1
  519. package/lib/services/brainQuickReply.js.map +1 -1
  520. package/lib/state/chatThreadMerge.js +6 -1
  521. package/lib/state/chatThreadMerge.js.map +1 -1
  522. package/package.json +6 -4
@@ -0,0 +1,929 @@
1
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import React__default,{useState,useEffect,useRef,useMemo,useCallback}from'react';import {StyleSheet,useWindowDimensions,View,Text,Share,TextInput}from'react-native';import {Gesture,GestureHandlerRootView,Pressable,GestureDetector}from'react-native-gesture-handler';import Animated,{useSharedValue,useAnimatedReaction,runOnJS,useAnimatedStyle}from'react-native-reanimated';import {Image}from'expo-image';import {MaterialCommunityIcons}from'@expo/vector-icons';import {getVideoItemRenderer}from'./videoRenderer.js';import {spreadStackedItems,coerceUploadSizedItem,paintOrder,applyItemFrame,MAX_ZOOM,MIN_ZOOM,removeItem,boardBounds,resizeFrame}from'./canvasCore.js';import {CanvasAgentChatPane}from'./CanvasAgentChatPane.js';var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
21
+ const HANDLE_SLOP = 12;
22
+ const SELECTION_COLOR = "#3b82f6";
23
+ function MediaGlyph({
24
+ item
25
+ }) {
26
+ return /* @__PURE__ */ jsxs(View, { style: [StyleSheet.absoluteFill, styles.mediaTile], accessibilityLabel: `Canvas ${item.type}`, children: [
27
+ /* @__PURE__ */ jsx(Text, { style: styles.mediaTileGlyph, children: item.type === "video" ? "\u25B6" : "\u266A" }),
28
+ item.generatedAssetName ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles.mediaTileLabel, children: item.generatedAssetName }) : null
29
+ ] });
30
+ }
31
+ class VideoRenderIsland extends React__default.Component {
32
+ constructor() {
33
+ super(...arguments);
34
+ __publicField(this, "state", {
35
+ failed: false
36
+ });
37
+ }
38
+ static getDerivedStateFromError() {
39
+ return {
40
+ failed: true
41
+ };
42
+ }
43
+ componentDidCatch(error) {
44
+ if (__DEV__) {
45
+ console.warn("[NativeCanvasViewer] video renderer failed, using glyph:", error);
46
+ }
47
+ }
48
+ render() {
49
+ return this.state.failed ? this.props.fallback : this.props.children;
50
+ }
51
+ }
52
+ function ItemContent({
53
+ item
54
+ }) {
55
+ var _a;
56
+ if (item.type === "image") {
57
+ return /* @__PURE__ */ jsx(Image, { source: {
58
+ uri: item.src
59
+ }, style: [StyleSheet.absoluteFill, styles.itemImage], contentFit: "cover", transition: 120, accessibilityLabel: (_a = item.generatedAssetName) != null ? _a : "Canvas image" });
60
+ }
61
+ const VideoRenderer = item.type === "video" ? getVideoItemRenderer() : null;
62
+ if (VideoRenderer) {
63
+ return /* @__PURE__ */ jsx(VideoRenderIsland, { fallback: /* @__PURE__ */ jsx(MediaGlyph, { item }), children: /* @__PURE__ */ jsx(VideoRenderer, { item }) });
64
+ }
65
+ return /* @__PURE__ */ jsx(MediaGlyph, { item });
66
+ }
67
+ function StaticItem({
68
+ item,
69
+ onTap
70
+ }) {
71
+ const tap = Gesture.Tap().runOnJS(true).blocksExternalGesture().onEnd(() => onTap(item));
72
+ return /* @__PURE__ */ jsx(GestureDetector, { gesture: tap, children: /* @__PURE__ */ jsx(View, { style: {
73
+ position: "absolute",
74
+ left: item.x,
75
+ top: item.y,
76
+ width: item.width,
77
+ height: item.height,
78
+ zIndex: item.zIndex,
79
+ overflow: "hidden",
80
+ borderRadius: 8
81
+ }, children: /* @__PURE__ */ jsx(ItemContent, { item }) }) });
82
+ }
83
+ const CORNERS = ["tl", "tr", "bl", "br"];
84
+ function ItemHoverToolbar({
85
+ item,
86
+ onAction,
87
+ onRemove,
88
+ onChromeTouch
89
+ }) {
90
+ const [moreOpen, setMoreOpen] = useState(false);
91
+ const [promptOpen, setPromptOpen] = useState(false);
92
+ const [prompt, setPrompt] = useState("");
93
+ const download = useCallback(() => {
94
+ setMoreOpen(false);
95
+ void Share.share({
96
+ url: item.src,
97
+ message: item.src
98
+ }).catch(() => void 0);
99
+ }, [item.src]);
100
+ const stealTouches = useMemo(() => Gesture.Native().blocksExternalGesture(), []);
101
+ return /* @__PURE__ */ jsx(View, { style: styles.hoverWrap, pointerEvents: "box-none", children: /* @__PURE__ */ jsx(GestureDetector, { gesture: stealTouches, children: /* @__PURE__ */ jsxs(View, { style: styles.hoverCluster, pointerEvents: "auto", onTouchStart: onChromeTouch, children: [
102
+ /* @__PURE__ */ jsxs(View, { style: styles.hoverBar, children: [
103
+ /* @__PURE__ */ jsx(View, { style: styles.hoverActions, children: /* @__PURE__ */ jsxs(View, { style: styles.hoverActionsInner, children: [
104
+ item.type === "image" ? /* @__PURE__ */ jsxs(Fragment, { children: [
105
+ /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
106
+ setMoreOpen(false);
107
+ setPromptOpen((v) => !v);
108
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
109
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "pencil-outline", size: 20, color: "#64748b" }),
110
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, numberOfLines: 1, children: "Edit Image" })
111
+ ] }),
112
+ /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
113
+ setMoreOpen(false);
114
+ setPromptOpen(false);
115
+ onAction == null ? void 0 : onAction("edit-image", item);
116
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
117
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "content-cut", size: 20, color: "#64748b" }),
118
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, children: "Editor" })
119
+ ] }),
120
+ /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
121
+ setMoreOpen(false);
122
+ setPromptOpen(false);
123
+ onAction == null ? void 0 : onAction("mark-edit", item);
124
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
125
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "marker", size: 20, color: "#64748b" }),
126
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, children: "Mark & edit" })
127
+ ] })
128
+ ] }) : null,
129
+ item.type === "video" ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
130
+ setMoreOpen(false);
131
+ onAction == null ? void 0 : onAction("edit-video", item);
132
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
133
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "content-cut", size: 20, color: "#64748b" }),
134
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, children: "Edit Video" })
135
+ ] }) : null,
136
+ item.type === "audio" ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
137
+ setMoreOpen(false);
138
+ onAction == null ? void 0 : onAction("edit-audio", item);
139
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
140
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "content-cut", size: 20, color: "#64748b" }),
141
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, children: "Edit Audio" })
142
+ ] }) : null,
143
+ /* @__PURE__ */ jsx(View, { style: styles.hoverDivider }),
144
+ /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
145
+ setMoreOpen(false);
146
+ onAction == null ? void 0 : onAction("create-video", item);
147
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
148
+ /* @__PURE__ */ jsxs(View, { children: [
149
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "video-outline", size: 20, color: "#64748b" }),
150
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "star-four-points", size: 8, color: "#94a3b8", style: styles.hoverSparkle })
151
+ ] }),
152
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, children: "Create Video" })
153
+ ] }),
154
+ item.type === "video" ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
155
+ setMoreOpen(false);
156
+ onAction == null ? void 0 : onAction("restyle-video", item);
157
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
158
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "auto-fix", size: 20, color: "#64748b" }),
159
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, children: "Restyle" })
160
+ ] }) : null,
161
+ item.type === "image" || item.type === "video" ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
162
+ setMoreOpen(false);
163
+ onAction == null ? void 0 : onAction("promo-video", item);
164
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
165
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "bullhorn-outline", size: 20, color: "#64748b" }),
166
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, children: "Promo" })
167
+ ] }) : null,
168
+ item.type === "video" ? /* @__PURE__ */ jsxs(Fragment, { children: [
169
+ /* @__PURE__ */ jsx(View, { style: styles.hoverDivider }),
170
+ /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
171
+ setMoreOpen(false);
172
+ onAction == null ? void 0 : onAction("trim-video", item);
173
+ }, style: styles.hoverBtn, accessibilityRole: "button", children: [
174
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "movie-open-outline", size: 20, color: "#64748b" }),
175
+ /* @__PURE__ */ jsx(Text, { style: styles.hoverLabel, children: "Clips" })
176
+ ] })
177
+ ] }) : null,
178
+ /* @__PURE__ */ jsx(View, { style: styles.hoverDivider }),
179
+ /* @__PURE__ */ jsx(Pressable, { onPress: download, style: styles.hoverIconBtn, accessibilityRole: "button", accessibilityLabel: "Download", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "download-outline", size: 20, color: "#94a3b8" }) })
180
+ ] }) }),
181
+ /* @__PURE__ */ jsx(View, { style: styles.hoverDivider }),
182
+ /* @__PURE__ */ jsxs(View, { style: styles.moreWrap, children: [
183
+ /* @__PURE__ */ jsx(Pressable, { onPress: () => {
184
+ setPromptOpen(false);
185
+ setMoreOpen((v) => !v);
186
+ }, style: styles.hoverIconBtn, accessibilityRole: "button", accessibilityLabel: "More", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "dots-vertical", size: 20, color: "#94a3b8" }) }),
187
+ moreOpen ? /* @__PURE__ */ jsxs(View, { style: styles.moreMenu, children: [
188
+ /* @__PURE__ */ jsxs(Pressable, { onPress: () => {
189
+ setMoreOpen(false);
190
+ onRemove();
191
+ }, style: styles.moreRow, accessibilityRole: "button", children: [
192
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "trash-can-outline", size: 20, color: "#64748b" }),
193
+ /* @__PURE__ */ jsx(Text, { style: styles.moreLabel, children: "Remove" })
194
+ ] }),
195
+ /* @__PURE__ */ jsxs(Pressable, { onPress: download, style: styles.moreRow, accessibilityRole: "button", children: [
196
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "download-outline", size: 20, color: "#64748b" }),
197
+ /* @__PURE__ */ jsx(Text, { style: styles.moreLabel, children: "Download" })
198
+ ] })
199
+ ] }) : null
200
+ ] })
201
+ ] }),
202
+ promptOpen && item.type === "image" ? /* @__PURE__ */ jsx(View, { style: styles.editPrompt, children: /* @__PURE__ */ jsx(TextInput, { value: prompt, onChangeText: setPrompt, placeholder: "Describe how to edit this image\u2026", placeholderTextColor: "#94a3b8", multiline: true, style: styles.editPromptInput }) }) : null
203
+ ] }) }) });
204
+ }
205
+ function DotGrid() {
206
+ return /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles.dots, children: Array.from({
207
+ length: 40
208
+ }).map((_, row) => /* @__PURE__ */ jsx(View, { style: styles.dotRow, children: Array.from({
209
+ length: 24
210
+ }).map((__, col) => /* @__PURE__ */ jsx(View, { style: styles.dotCell, children: /* @__PURE__ */ jsx(View, { style: styles.dot }) }, col)) }, row)) });
211
+ }
212
+ function SelectedItem({
213
+ item,
214
+ cameraScale,
215
+ onCommit,
216
+ onTap,
217
+ showToolbar,
218
+ onAction,
219
+ onRemove,
220
+ onChromeTouch
221
+ }) {
222
+ const fx = useSharedValue(item.x);
223
+ const fy = useSharedValue(item.y);
224
+ const fw = useSharedValue(item.width);
225
+ const fh = useSharedValue(item.height);
226
+ const start = useSharedValue({
227
+ x: item.x,
228
+ y: item.y,
229
+ width: item.width,
230
+ height: item.height
231
+ });
232
+ useEffect(() => {
233
+ fx.value = item.x;
234
+ fy.value = item.y;
235
+ fw.value = item.width;
236
+ fh.value = item.height;
237
+ }, [item.id, item.x, item.y, item.width, item.height]);
238
+ const commit = useCallback((frame) => {
239
+ onCommit(item.id, frame);
240
+ }, [item.id, onCommit]);
241
+ const snapshot = () => {
242
+ "worklet";
243
+ start.value = {
244
+ x: fx.value,
245
+ y: fy.value,
246
+ width: fw.value,
247
+ height: fh.value
248
+ };
249
+ };
250
+ const finish = () => {
251
+ "worklet";
252
+ runOnJS(commit)({
253
+ x: fx.value,
254
+ y: fy.value,
255
+ width: fw.value,
256
+ height: fh.value
257
+ });
258
+ };
259
+ const drag = Gesture.Pan().maxPointers(1).onStart(snapshot).onUpdate((e) => {
260
+ "worklet";
261
+ const s = cameraScale.value;
262
+ fx.value = start.value.x + e.translationX / s;
263
+ fy.value = start.value.y + e.translationY / s;
264
+ }).onEnd(finish);
265
+ const tap = Gesture.Tap().runOnJS(true).blocksExternalGesture().onEnd(() => onTap == null ? void 0 : onTap(item));
266
+ const bodyGesture = item.type === "video" || item.type === "audio" ? null : Gesture.Exclusive(tap, drag);
267
+ const frameStyle = useAnimatedStyle(() => ({
268
+ position: "absolute",
269
+ left: fx.value,
270
+ top: fy.value,
271
+ width: fw.value,
272
+ height: fh.value,
273
+ // Editing brings the item above its neighbours for the duration.
274
+ zIndex: 99999
275
+ }));
276
+ const ringStyle = useAnimatedStyle(() => ({
277
+ borderWidth: 2 / cameraScale.value,
278
+ borderRadius: 8 / cameraScale.value
279
+ }));
280
+ const cornerGestures = useMemo(
281
+ () => CORNERS.map((corner) => Gesture.Pan().maxPointers(1).onStart(snapshot).onUpdate((e) => {
282
+ "worklet";
283
+ const s = cameraScale.value;
284
+ const next = resizeFrame(start.value, corner, e.translationX / s, e.translationY / s);
285
+ fx.value = next.x;
286
+ fy.value = next.y;
287
+ fw.value = next.width;
288
+ fh.value = next.height;
289
+ }).onEnd(finish)),
290
+ // Shared values and worklets are stable; rebuild only when the target changes.
291
+ // eslint-disable-next-line react-hooks/exhaustive-deps
292
+ [item.id]
293
+ );
294
+ const handleStyle = styles.webHandle;
295
+ const cornerPlacement = {
296
+ tl: {
297
+ left: 0,
298
+ top: 0
299
+ },
300
+ tr: {
301
+ right: 0,
302
+ top: 0
303
+ },
304
+ bl: {
305
+ left: 0,
306
+ bottom: 0
307
+ },
308
+ br: {
309
+ right: 0,
310
+ bottom: 0
311
+ }
312
+ };
313
+ const media = /* @__PURE__ */ jsxs(View, { style: [StyleSheet.absoluteFill, {
314
+ overflow: "hidden",
315
+ borderRadius: 8
316
+ }], children: [
317
+ /* @__PURE__ */ jsx(ItemContent, { item }),
318
+ /* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, styles.selectionRing, ringStyle] })
319
+ ] });
320
+ return /* @__PURE__ */ jsxs(Animated.View, { style: [frameStyle, styles.selectedOverflow], children: [
321
+ bodyGesture ? /* @__PURE__ */ jsx(GestureDetector, { gesture: bodyGesture, children: media }) : media,
322
+ (item.type === "video" || item.type === "audio") && /* @__PURE__ */ jsx(GestureDetector, { gesture: drag, children: /* @__PURE__ */ jsxs(View, { style: styles.videoDragBar, accessibilityLabel: "Drag to move", children: [
323
+ /* @__PURE__ */ jsx(View, { style: styles.videoDragGrip }),
324
+ /* @__PURE__ */ jsx(View, { style: styles.videoDragGrip }),
325
+ /* @__PURE__ */ jsx(View, { style: styles.videoDragGrip })
326
+ ] }) }),
327
+ CORNERS.map((corner, i) => /* @__PURE__ */ jsx(GestureDetector, { gesture: cornerGestures[i], children: /* @__PURE__ */ jsx(View, { style: [styles.handleAnchor, cornerPlacement[corner]], hitSlop: HANDLE_SLOP, children: /* @__PURE__ */ jsx(View, { style: handleStyle }) }) }, corner)),
328
+ showToolbar ? /* @__PURE__ */ jsx(ItemHoverToolbar, { item, onAction, onRemove, onChromeTouch }) : null
329
+ ] });
330
+ }
331
+ function NativeCanvasViewer({
332
+ board,
333
+ onItemPress,
334
+ onBoardChange,
335
+ controls,
336
+ onItemAction,
337
+ onBoardsPress,
338
+ initialAgentOpen = false,
339
+ onAgentOpenChange,
340
+ runAction,
341
+ onAgentGenerated,
342
+ onAgentReplace,
343
+ onSelectionChange,
344
+ onUseTemplate,
345
+ testID
346
+ }) {
347
+ var _a;
348
+ const {
349
+ width: winW,
350
+ height: winH
351
+ } = useWindowDimensions();
352
+ const [viewport, setViewport] = useState({
353
+ width: winW,
354
+ height: winH
355
+ });
356
+ const [items, setItems] = useState(() => spreadStackedItems(board.items.map(coerceUploadSizedItem)));
357
+ const [selectedId, setSelectedId] = useState(null);
358
+ const [agentOpen, setAgentOpen] = useState(initialAgentOpen);
359
+ useEffect(() => {
360
+ onAgentOpenChange == null ? void 0 : onAgentOpenChange(agentOpen);
361
+ }, [agentOpen, onAgentOpenChange]);
362
+ useEffect(() => {
363
+ var _a2;
364
+ onSelectionChange == null ? void 0 : onSelectionChange(selectedId ? (_a2 = items.find((it) => it.id === selectedId)) != null ? _a2 : null : null);
365
+ }, [selectedId, items, onSelectionChange]);
366
+ const boardMediaKey = board.items.map((it) => `${it.id} ${it.src}`).join("\0");
367
+ const prevItemIdsRef = useRef(new Set(board.items.map((it) => it.id)));
368
+ const ordered = useMemo(() => paintOrder(items), [items]);
369
+ const scale = useSharedValue(1);
370
+ const tx = useSharedValue(0);
371
+ const ty = useSharedValue(0);
372
+ const startScale = useSharedValue(1);
373
+ const startTx = useSharedValue(0);
374
+ const startTy = useSharedValue(0);
375
+ const applyCamera = (list) => {
376
+ const fit = boardBounds(list);
377
+ if (!fit) {
378
+ scale.value = 1;
379
+ tx.value = 0;
380
+ ty.value = 0;
381
+ return;
382
+ }
383
+ const boardW = Math.max(1, fit.maxX - fit.minX);
384
+ const boardH = Math.max(1, fit.maxY - fit.minY);
385
+ scale.value = 1;
386
+ tx.value = (viewport.width - boardW) / 2 - fit.minX;
387
+ ty.value = (viewport.height - boardH) / 2 - fit.minY;
388
+ };
389
+ useEffect(() => {
390
+ const spread = spreadStackedItems(board.items.map(coerceUploadSizedItem));
391
+ const prevIds = prevItemIdsRef.current;
392
+ const added = spread.filter((it) => !prevIds.has(it.id));
393
+ const removedCount = [...prevIds].filter((id) => !spread.some((s) => s.id === id)).length;
394
+ const appended = added.length > 0 && removedCount === 0 && spread.length > prevIds.size;
395
+ prevItemIdsRef.current = new Set(spread.map((it) => it.id));
396
+ setItems(spread);
397
+ setSelectedId(appended ? added[added.length - 1].id : null);
398
+ applyCamera(spread);
399
+ }, [boardMediaKey]);
400
+ useEffect(() => {
401
+ applyCamera(items);
402
+ }, [viewport.width, viewport.height]);
403
+ const handleCommit = useCallback((id, frame) => {
404
+ setItems((prev) => {
405
+ const next = applyItemFrame(prev, id, frame);
406
+ const snapshot = __spreadProps(__spreadValues({}, board), {
407
+ items: next
408
+ });
409
+ queueMicrotask(() => onBoardChange == null ? void 0 : onBoardChange(snapshot));
410
+ return next;
411
+ });
412
+ }, [board, onBoardChange]);
413
+ const handleSelect = useCallback((item) => {
414
+ setSelectedId(item.id);
415
+ onItemPress == null ? void 0 : onItemPress(item);
416
+ }, [onItemPress]);
417
+ const skipDeselectUntil = useRef(0);
418
+ const armChromeTouch = useCallback(() => {
419
+ skipDeselectUntil.current = Date.now() + 400;
420
+ }, []);
421
+ const handleBackgroundTap = useCallback((absX, absY) => {
422
+ if (Date.now() < skipDeselectUntil.current) return;
423
+ const item = selectedId ? items.find((it) => it.id === selectedId) : void 0;
424
+ if (item) {
425
+ const s = scale.value;
426
+ const left = item.x * s + tx.value;
427
+ const top = item.y * s + ty.value;
428
+ if (absX >= left && absX <= left + item.width * s && absY >= top - 80 && absY <= top + item.height * s) {
429
+ return;
430
+ }
431
+ }
432
+ setSelectedId(null);
433
+ }, [items, selectedId]);
434
+ const [zoomPct, setZoomPct] = useState(100);
435
+ useAnimatedReaction(() => Math.round(scale.value * 100), (pct, prev) => {
436
+ if (pct !== prev) runOnJS(setZoomPct)(pct);
437
+ });
438
+ const zoomBy = useCallback(
439
+ (factor) => {
440
+ const next = Math.min(MAX_ZOOM, Math.max(MIN_ZOOM, scale.value * factor));
441
+ const ratio = next / scale.value;
442
+ const cx = viewport.width / 2;
443
+ const cy = viewport.height / 2;
444
+ tx.value = cx - (cx - tx.value) * ratio;
445
+ ty.value = cy - (cy - ty.value) * ratio;
446
+ scale.value = next;
447
+ },
448
+ // Shared values are stable refs.
449
+ // eslint-disable-next-line react-hooks/exhaustive-deps
450
+ [viewport.width, viewport.height]
451
+ );
452
+ const fitBoard = useCallback(() => {
453
+ applyCamera(items);
454
+ }, [items, viewport.width, viewport.height]);
455
+ const commitItems = useCallback((next) => {
456
+ setItems(next);
457
+ onBoardChange == null ? void 0 : onBoardChange(__spreadProps(__spreadValues({}, board), {
458
+ items: [...next]
459
+ }));
460
+ }, [board, onBoardChange]);
461
+ const pan = Gesture.Pan().minDistance(10).averageTouches(true).onStart(() => {
462
+ startTx.value = tx.value;
463
+ startTy.value = ty.value;
464
+ }).onUpdate((e) => {
465
+ tx.value = startTx.value + e.translationX;
466
+ ty.value = startTy.value + e.translationY;
467
+ });
468
+ const pinch = Gesture.Pinch().onStart(() => {
469
+ startScale.value = scale.value;
470
+ startTx.value = tx.value;
471
+ startTy.value = ty.value;
472
+ }).onUpdate((e) => {
473
+ "worklet";
474
+ const raw = startScale.value * e.scale;
475
+ const next = Math.min(MAX_ZOOM, Math.max(MIN_ZOOM, raw));
476
+ const ratio = next / startScale.value;
477
+ tx.value = e.focalX - (e.focalX - startTx.value) * ratio;
478
+ ty.value = e.focalY - (e.focalY - startTy.value) * ratio;
479
+ scale.value = next;
480
+ });
481
+ const backgroundTap = Gesture.Tap().runOnJS(true).onEnd((e) => {
482
+ handleBackgroundTap(e.absoluteX, e.absoluteY);
483
+ });
484
+ const gesture = Gesture.Simultaneous(pan, pinch, backgroundTap);
485
+ const planeStyle = useAnimatedStyle(() => ({
486
+ transform: [{
487
+ translateX: tx.value
488
+ }, {
489
+ translateY: ty.value
490
+ }, {
491
+ scale: scale.value
492
+ }]
493
+ }));
494
+ return (
495
+ // Self-sufficient gesture root: hosts differ in whether they wrap
496
+ // screens in GestureHandlerRootView (the Expo app's canvas screen
497
+ // does not), and GestureDetector throws without one. Nesting under a
498
+ // host-provided root is safe.
499
+ /* @__PURE__ */ jsxs(GestureHandlerRootView, { style: styles.viewport, testID, onLayout: (e) => {
500
+ const {
501
+ width,
502
+ height
503
+ } = e.nativeEvent.layout;
504
+ if (width > 0 && height > 0) setViewport({
505
+ width,
506
+ height
507
+ });
508
+ }, children: [
509
+ onBoardsPress ? /* @__PURE__ */ jsxs(View, { style: styles.boardHeader, children: [
510
+ /* @__PURE__ */ jsxs(Pressable, { onPress: onBoardsPress, accessibilityRole: "button", accessibilityLabel: "Boards", style: styles.boardsBtn, children: [
511
+ /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "view-grid-outline", size: 16, color: "#64748b" }),
512
+ /* @__PURE__ */ jsx(Text, { style: styles.boardsLabel, children: "Boards" })
513
+ ] }),
514
+ /* @__PURE__ */ jsx(View, { style: styles.headerRule }),
515
+ /* @__PURE__ */ jsxs(Text, { style: styles.itemCount, children: [
516
+ items.length,
517
+ " ",
518
+ items.length === 1 ? "item" : "items"
519
+ ] }),
520
+ /* @__PURE__ */ jsxs(View, { style: styles.headerZoom, children: [
521
+ /* @__PURE__ */ jsx(Pressable, { onPress: () => zoomBy(1 / 1.25), hitSlop: 8, accessibilityRole: "button", accessibilityLabel: "Zoom out", style: styles.zoomBtn, children: /* @__PURE__ */ jsx(Text, { style: styles.zoomBtnGlyph, children: "\u2212" }) }),
522
+ /* @__PURE__ */ jsx(Pressable, { onPress: fitBoard, hitSlop: 8, accessibilityRole: "button", accessibilityLabel: "Fit board", children: /* @__PURE__ */ jsxs(Text, { style: styles.zoomPct, children: [
523
+ zoomPct,
524
+ "%"
525
+ ] }) }),
526
+ /* @__PURE__ */ jsx(Pressable, { onPress: () => zoomBy(1.25), hitSlop: 8, accessibilityRole: "button", accessibilityLabel: "Zoom in", style: styles.zoomBtn, children: /* @__PURE__ */ jsx(Text, { style: styles.zoomBtnGlyph, children: "+" }) })
527
+ ] }),
528
+ /* @__PURE__ */ jsx(View, { style: styles.headerRule }),
529
+ /* @__PURE__ */ jsx(Pressable, { onPress: () => setAgentOpen(true), style: styles.askAgentBtn, accessibilityRole: "button", accessibilityLabel: "Ask agent", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "creation", size: 16, color: "#64748b" }) })
530
+ ] }) : null,
531
+ /* @__PURE__ */ jsxs(View, { style: styles.canvasPlane, onLayout: (e) => {
532
+ const {
533
+ width,
534
+ height
535
+ } = e.nativeEvent.layout;
536
+ if (width > 0 && height > 0) setViewport({
537
+ width,
538
+ height
539
+ });
540
+ }, children: [
541
+ /* @__PURE__ */ jsx(DotGrid, {}),
542
+ /* @__PURE__ */ jsx(GestureDetector, { gesture, children: /* @__PURE__ */ jsx(View, { style: StyleSheet.absoluteFill, collapsable: false, children: /* @__PURE__ */ jsx(Animated.View, { style: [styles.plane, planeStyle, {
543
+ transformOrigin: "0 0"
544
+ }], pointerEvents: "box-none", children: ordered.map((item) => item.id === selectedId ? /* @__PURE__ */ jsx(SelectedItem, { item, cameraScale: scale, onCommit: handleCommit, onTap: onItemPress, showToolbar: controls, onAction: onItemAction, onRemove: () => {
545
+ commitItems(removeItem(items, item.id));
546
+ setSelectedId(null);
547
+ }, onChromeTouch: armChromeTouch }, item.id) : /* @__PURE__ */ jsx(StaticItem, { item, onTap: handleSelect }, item.id)) }) }) }),
548
+ items.length === 0 ? /* @__PURE__ */ jsxs(View, { style: styles.emptyHint, pointerEvents: "none", children: [
549
+ /* @__PURE__ */ jsx(Text, { style: styles.emptyHintTitle, children: "Your canvas is empty" }),
550
+ /* @__PURE__ */ jsx(Text, { style: styles.emptyHintDetail, children: "Tap Generate below for an image, video, audio, slides, clips or a promo." })
551
+ ] }) : null,
552
+ controls && !onBoardsPress ? /* @__PURE__ */ jsxs(View, { style: styles.zoomHud, pointerEvents: "box-none", children: [
553
+ /* @__PURE__ */ jsx(Pressable, { onPress: () => zoomBy(1 / 1.25), hitSlop: 8, accessibilityRole: "button", accessibilityLabel: "Zoom out", style: styles.zoomBtn, children: /* @__PURE__ */ jsx(Text, { style: styles.zoomBtnGlyph, children: "\u2212" }) }),
554
+ /* @__PURE__ */ jsx(Pressable, { onPress: fitBoard, hitSlop: 8, accessibilityRole: "button", accessibilityLabel: "Fit board", children: /* @__PURE__ */ jsxs(Text, { style: styles.zoomPct, children: [
555
+ zoomPct,
556
+ "%"
557
+ ] }) }),
558
+ /* @__PURE__ */ jsx(Pressable, { onPress: () => zoomBy(1.25), hitSlop: 8, accessibilityRole: "button", accessibilityLabel: "Zoom in", style: styles.zoomBtn, children: /* @__PURE__ */ jsx(Text, { style: styles.zoomBtnGlyph, children: "+" }) })
559
+ ] }) : null
560
+ ] }),
561
+ /* @__PURE__ */ jsx(CanvasAgentChatPane, { visible: agentOpen, onClose: () => setAgentOpen(false), runAction, boardItems: items, selectedItem: (_a = items.find((it) => it.id === selectedId)) != null ? _a : null, onGenerated: (url, meta) => onAgentGenerated == null ? void 0 : onAgentGenerated(url, meta), onReplace: (itemId, url) => onAgentReplace == null ? void 0 : onAgentReplace(itemId, url), onOpenItem: (itemId) => {
562
+ setSelectedId(itemId);
563
+ setAgentOpen(false);
564
+ }, onUseTemplate })
565
+ ] })
566
+ );
567
+ }
568
+ function initialZoomFor(_board, _viewportWidth, _viewportHeight) {
569
+ return 1;
570
+ }
571
+ const styles = StyleSheet.create({
572
+ viewport: {
573
+ flex: 1,
574
+ overflow: "hidden",
575
+ backgroundColor: "#eef1f4"
576
+ },
577
+ canvasPlane: {
578
+ flex: 1,
579
+ overflow: "hidden"
580
+ },
581
+ emptyHint: __spreadProps(__spreadValues({}, StyleSheet.absoluteFillObject), {
582
+ alignItems: "center",
583
+ justifyContent: "center",
584
+ paddingHorizontal: 32,
585
+ paddingTop: 8,
586
+ paddingBottom: 72
587
+ }),
588
+ emptyHintTitle: {
589
+ fontSize: 14,
590
+ fontWeight: "500",
591
+ color: "#0f172a",
592
+ marginBottom: 6
593
+ },
594
+ emptyHintDetail: {
595
+ fontSize: 12,
596
+ color: "#64748b",
597
+ textAlign: "center",
598
+ maxWidth: 280,
599
+ lineHeight: 17
600
+ },
601
+ boardHeader: {
602
+ flexDirection: "row",
603
+ alignItems: "center",
604
+ gap: 6,
605
+ paddingHorizontal: 8,
606
+ paddingVertical: 6,
607
+ backgroundColor: "#ffffff",
608
+ borderBottomWidth: StyleSheet.hairlineWidth,
609
+ borderBottomColor: "#e2e8f0",
610
+ zIndex: 50
611
+ },
612
+ boardsBtn: {
613
+ flexDirection: "row",
614
+ alignItems: "center",
615
+ gap: 6,
616
+ paddingHorizontal: 6,
617
+ paddingVertical: 6
618
+ },
619
+ boardsLabel: {
620
+ fontSize: 12,
621
+ fontWeight: "600",
622
+ color: "#64748b"
623
+ },
624
+ headerRule: {
625
+ width: StyleSheet.hairlineWidth,
626
+ height: 16,
627
+ backgroundColor: "#e2e8f0"
628
+ },
629
+ itemCount: {
630
+ fontSize: 11,
631
+ color: "#94a3b8",
632
+ fontVariant: ["tabular-nums"]
633
+ },
634
+ headerZoom: {
635
+ marginLeft: "auto",
636
+ flexDirection: "row",
637
+ alignItems: "center",
638
+ gap: 2,
639
+ flexShrink: 0
640
+ },
641
+ askAgentBtn: {
642
+ alignItems: "center",
643
+ justifyContent: "center",
644
+ borderWidth: StyleSheet.hairlineWidth,
645
+ borderColor: "#e2e8f0",
646
+ borderRadius: 8,
647
+ width: 36,
648
+ height: 32,
649
+ flexShrink: 0
650
+ },
651
+ askAgentLabel: {
652
+ fontSize: 11,
653
+ fontWeight: "600",
654
+ color: "#64748b"
655
+ },
656
+ plane: {
657
+ position: "absolute",
658
+ left: 0,
659
+ top: 0,
660
+ width: 1,
661
+ height: 1,
662
+ overflow: "visible"
663
+ },
664
+ itemImage: {
665
+ borderRadius: 8,
666
+ backgroundColor: "#e2e8f0"
667
+ },
668
+ zoomHud: {
669
+ position: "absolute",
670
+ top: 12,
671
+ right: 12,
672
+ flexDirection: "row",
673
+ alignItems: "center",
674
+ gap: 6,
675
+ paddingHorizontal: 12,
676
+ paddingVertical: 8,
677
+ borderRadius: 14,
678
+ backgroundColor: "#ffffff",
679
+ borderWidth: StyleSheet.hairlineWidth,
680
+ borderColor: "#e2e8f0",
681
+ shadowColor: "#0f172a",
682
+ shadowOpacity: 0.08,
683
+ shadowRadius: 8,
684
+ shadowOffset: {
685
+ width: 0,
686
+ height: 2
687
+ },
688
+ elevation: 3
689
+ },
690
+ selectedOverflow: {
691
+ overflow: "visible"
692
+ },
693
+ videoDragBar: {
694
+ position: "absolute",
695
+ top: 0,
696
+ left: 0,
697
+ right: 0,
698
+ height: 22,
699
+ borderTopLeftRadius: 8,
700
+ borderTopRightRadius: 8,
701
+ backgroundColor: "rgba(15, 23, 42, 0.35)",
702
+ flexDirection: "row",
703
+ alignItems: "center",
704
+ justifyContent: "center",
705
+ gap: 3,
706
+ zIndex: 20
707
+ },
708
+ videoDragGrip: {
709
+ width: 3,
710
+ height: 10,
711
+ borderRadius: 1.5,
712
+ backgroundColor: "rgba(255,255,255,0.75)"
713
+ },
714
+ dots: __spreadValues({}, StyleSheet.absoluteFillObject),
715
+ dotRow: {
716
+ flexDirection: "row",
717
+ height: 22
718
+ },
719
+ dotCell: {
720
+ width: 22,
721
+ height: 22,
722
+ alignItems: "center",
723
+ justifyContent: "center"
724
+ },
725
+ dot: {
726
+ width: 2,
727
+ height: 2,
728
+ borderRadius: 1,
729
+ backgroundColor: "rgba(15,23,42,0.14)"
730
+ },
731
+ hoverWrap: {
732
+ position: "absolute",
733
+ left: 0,
734
+ right: 0,
735
+ bottom: "100%",
736
+ alignItems: "center",
737
+ marginBottom: 4,
738
+ zIndex: 50,
739
+ overflow: "visible"
740
+ },
741
+ hoverCluster: {
742
+ alignItems: "center",
743
+ zIndex: 50
744
+ },
745
+ hoverBar: {
746
+ flexDirection: "row",
747
+ alignItems: "center",
748
+ maxWidth: "100%",
749
+ overflow: "visible",
750
+ paddingHorizontal: 10,
751
+ paddingVertical: 8,
752
+ borderRadius: 14,
753
+ backgroundColor: "#ffffff",
754
+ borderWidth: StyleSheet.hairlineWidth,
755
+ borderColor: "rgba(15,23,42,0.08)",
756
+ shadowColor: "#0f172a",
757
+ shadowOpacity: 0.12,
758
+ shadowRadius: 16,
759
+ shadowOffset: {
760
+ width: 0,
761
+ height: 4
762
+ },
763
+ elevation: 6
764
+ },
765
+ hoverActions: {
766
+ flexShrink: 1,
767
+ flexDirection: "row",
768
+ justifyContent: "flex-end",
769
+ overflow: "hidden"
770
+ },
771
+ hoverActionsInner: {
772
+ flexDirection: "row",
773
+ alignItems: "center",
774
+ flexShrink: 0
775
+ },
776
+ moreWrap: {
777
+ position: "relative",
778
+ flexShrink: 0,
779
+ zIndex: 80
780
+ },
781
+ editPrompt: {
782
+ marginTop: 8,
783
+ width: 280,
784
+ borderRadius: 16,
785
+ backgroundColor: "#ffffff",
786
+ borderWidth: StyleSheet.hairlineWidth,
787
+ borderColor: "rgba(15,23,42,0.08)",
788
+ paddingHorizontal: 14,
789
+ paddingVertical: 12,
790
+ shadowColor: "#0f172a",
791
+ shadowOpacity: 0.1,
792
+ shadowRadius: 16,
793
+ shadowOffset: {
794
+ width: 0,
795
+ height: 8
796
+ },
797
+ elevation: 6
798
+ },
799
+ editPromptInput: {
800
+ minHeight: 44,
801
+ fontSize: 15,
802
+ color: "#334155",
803
+ padding: 0
804
+ },
805
+ hoverBtn: {
806
+ flexDirection: "row",
807
+ alignItems: "center",
808
+ gap: 8,
809
+ paddingHorizontal: 12,
810
+ paddingVertical: 9
811
+ },
812
+ hoverIconBtn: {
813
+ paddingHorizontal: 10,
814
+ paddingVertical: 9
815
+ },
816
+ hoverLabel: {
817
+ fontSize: 15,
818
+ fontWeight: "600",
819
+ color: "#334155"
820
+ },
821
+ hoverDivider: {
822
+ width: StyleSheet.hairlineWidth,
823
+ alignSelf: "stretch",
824
+ backgroundColor: "#e2e8f0",
825
+ marginVertical: 4,
826
+ marginHorizontal: 2
827
+ },
828
+ hoverSparkle: {
829
+ position: "absolute",
830
+ top: -3,
831
+ right: -6
832
+ },
833
+ moreMenu: {
834
+ position: "absolute",
835
+ top: "100%",
836
+ right: 0,
837
+ marginTop: 8,
838
+ zIndex: 90,
839
+ minWidth: 176,
840
+ borderRadius: 10,
841
+ backgroundColor: "#ffffff",
842
+ borderWidth: StyleSheet.hairlineWidth,
843
+ borderColor: "rgba(15,23,42,0.08)",
844
+ paddingVertical: 4,
845
+ shadowColor: "#0f172a",
846
+ shadowOpacity: 0.12,
847
+ shadowRadius: 12,
848
+ shadowOffset: {
849
+ width: 0,
850
+ height: 4
851
+ },
852
+ elevation: 6
853
+ },
854
+ moreRow: {
855
+ flexDirection: "row",
856
+ alignItems: "center",
857
+ gap: 8,
858
+ paddingHorizontal: 12,
859
+ paddingVertical: 10
860
+ },
861
+ moreLabel: {
862
+ fontSize: 14,
863
+ color: "#334155"
864
+ },
865
+ zoomBtn: {
866
+ paddingHorizontal: 8,
867
+ paddingVertical: 2
868
+ },
869
+ zoomBtnGlyph: {
870
+ fontSize: 20,
871
+ color: "#334155",
872
+ fontWeight: "500"
873
+ },
874
+ zoomPct: {
875
+ fontSize: 15,
876
+ color: "#0f172a",
877
+ fontVariant: ["tabular-nums"],
878
+ minWidth: 52,
879
+ textAlign: "center"
880
+ },
881
+ selectionRing: {
882
+ borderColor: SELECTION_COLOR
883
+ },
884
+ handleAnchor: {
885
+ position: "absolute",
886
+ width: 1,
887
+ height: 1,
888
+ alignItems: "center",
889
+ justifyContent: "center",
890
+ zIndex: 1
891
+ },
892
+ webHandle: {
893
+ width: 12,
894
+ height: 12,
895
+ marginLeft: -6,
896
+ marginTop: -6,
897
+ borderRadius: 2,
898
+ backgroundColor: "#3b82f6",
899
+ borderWidth: 1,
900
+ borderColor: "#ffffff"
901
+ },
902
+ mediaTile: {
903
+ borderRadius: 8,
904
+ backgroundColor: "#0f172a",
905
+ alignItems: "center",
906
+ justifyContent: "center",
907
+ padding: 8
908
+ },
909
+ mediaTileGlyph: {
910
+ color: "#f8fafc",
911
+ fontSize: 28,
912
+ marginBottom: 4
913
+ },
914
+ mediaTileLabel: {
915
+ color: "#cbd5e1",
916
+ fontSize: 11,
917
+ maxWidth: "90%"
918
+ },
919
+ empty: {
920
+ flex: 1,
921
+ alignItems: "center",
922
+ justifyContent: "center",
923
+ backgroundColor: "#f8fafc"
924
+ },
925
+ emptyText: {
926
+ color: "#64748b",
927
+ fontSize: 14
928
+ }
929
+ });export{NativeCanvasViewer,initialZoomFor};//# sourceMappingURL=NativeCanvasViewer.js.map