@adminide-stack/yantra-mobile 12.0.196-alpha.0 → 12.0.196

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 (382) hide show
  1. package/lib/components/CustomDrawer.js +17 -1
  2. package/lib/components/CustomDrawer.js.map +1 -1
  3. package/lib/compute.js +57 -1
  4. package/lib/compute.js.map +1 -1
  5. package/lib/config/env-config.js +11 -1
  6. package/lib/config/env-config.js.map +1 -1
  7. package/lib/features/agent-chat/NativeAgentChat.js +7 -0
  8. package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
  9. package/lib/features/canvas/extendVideo.js +5 -1
  10. package/lib/features/canvas/extendVideo.js.map +1 -1
  11. package/lib/features/canvas/workflow/StepSheet.js +18 -1
  12. package/lib/features/canvas/workflow/StepSheet.js.map +1 -1
  13. package/lib/features/canvas/workflow/workflowSteps.js +102 -31
  14. package/lib/features/canvas/workflow/workflowSteps.js.map +1 -1
  15. package/lib/features/chat/ComposerMicSend.js +35 -0
  16. package/lib/features/chat/ComposerMicSend.js.map +1 -0
  17. package/lib/features/chat/ComposerModeSwitch.js +64 -1
  18. package/lib/features/chat/ComposerModeSwitch.js.map +1 -1
  19. package/lib/features/chat/askUser.js +6 -1
  20. package/lib/features/chat/askUser.js.map +1 -1
  21. package/lib/features/connectors/ConnectorSheet.js +443 -0
  22. package/lib/features/connectors/ConnectorSheet.js.map +1 -0
  23. package/lib/features/connectors/ConnectorsPage.js +320 -0
  24. package/lib/features/connectors/ConnectorsPage.js.map +1 -0
  25. package/lib/features/connectors/connectConnector.js +278 -0
  26. package/lib/features/connectors/connectConnector.js.map +1 -0
  27. package/lib/features/connectors/connectorCatalog.js +222 -0
  28. package/lib/features/connectors/connectorCatalog.js.map +1 -0
  29. package/lib/features/connectors/useConnectorCatalog.js +153 -0
  30. package/lib/features/connectors/useConnectorCatalog.js.map +1 -0
  31. package/lib/features/home/needsYou/HomeNeedsYou.js +618 -0
  32. package/lib/features/home/needsYou/HomeNeedsYou.js.map +1 -0
  33. package/lib/features/home/needsYou/chatFollowUps.js +333 -0
  34. package/lib/features/home/needsYou/chatFollowUps.js.map +1 -0
  35. package/lib/features/home/needsYou/format.js +47 -0
  36. package/lib/features/home/needsYou/format.js.map +1 -0
  37. package/lib/features/home/needsYou/historyText.js +40 -0
  38. package/lib/features/home/needsYou/historyText.js.map +1 -0
  39. package/lib/features/home/needsYou/inboxHighlights.js +152 -0
  40. package/lib/features/home/needsYou/inboxHighlights.js.map +1 -0
  41. package/lib/features/home/needsYou/panelsSettings.js +71 -0
  42. package/lib/features/home/needsYou/panelsSettings.js.map +1 -0
  43. package/lib/features/home/needsYou/ported/commandConfirmProtocol.js +13 -0
  44. package/lib/features/home/needsYou/ported/commandConfirmProtocol.js.map +1 -0
  45. package/lib/features/home/needsYou/ported/paymentApprovalProtocol.js +91 -0
  46. package/lib/features/home/needsYou/ported/paymentApprovalProtocol.js.map +1 -0
  47. package/lib/features/home/needsYou/ported/resultCardModels.js +659 -0
  48. package/lib/features/home/needsYou/ported/resultCardModels.js.map +1 -0
  49. package/lib/features/home/needsYou/types.js +1 -0
  50. package/lib/features/home/needsYou/types.js.map +1 -0
  51. package/lib/features/home/needsYou/useChatFollowUps.js +149 -0
  52. package/lib/features/home/needsYou/useChatFollowUps.js.map +1 -0
  53. package/lib/features/home/needsYou/useHomeBriefing.js +68 -0
  54. package/lib/features/home/needsYou/useHomeBriefing.js.map +1 -0
  55. package/lib/features/home/needsYou/useInboxHighlights.js +173 -0
  56. package/lib/features/home/needsYou/useInboxHighlights.js.map +1 -0
  57. package/lib/features/home/needsYou/usePanelsSettings.js +105 -0
  58. package/lib/features/home/needsYou/usePanelsSettings.js.map +1 -0
  59. package/lib/features/shopping/DealCard.js +8 -1
  60. package/lib/features/shopping/DealCard.js.map +1 -1
  61. package/lib/features/shopping/DealRails.js +24 -7
  62. package/lib/features/shopping/DealRails.js.map +1 -1
  63. package/lib/features/shopping/DealsPanel.js +1 -1
  64. package/lib/features/shopping/DealsPanel.js.map +1 -1
  65. package/lib/features/shopping/HolidayDealsPanel.js +529 -0
  66. package/lib/features/shopping/HolidayDealsPanel.js.map +1 -0
  67. package/lib/features/shopping/HolidayDealsParts.js +954 -0
  68. package/lib/features/shopping/HolidayDealsParts.js.map +1 -0
  69. package/lib/features/shopping/HolidayOffers.js +351 -0
  70. package/lib/features/shopping/HolidayOffers.js.map +1 -0
  71. package/lib/features/shopping/ProductCard.js +80 -14
  72. package/lib/features/shopping/ProductCard.js.map +1 -1
  73. package/lib/features/shopping/ProductDetailSheet.js +22 -3
  74. package/lib/features/shopping/ProductDetailSheet.js.map +1 -1
  75. package/lib/features/shopping/SavedPanel.js +341 -5
  76. package/lib/features/shopping/SavedPanel.js.map +1 -1
  77. package/lib/features/shopping/SearchResults.js +8 -2
  78. package/lib/features/shopping/SearchResults.js.map +1 -1
  79. package/lib/features/shopping/ShoppingAgentChatPane.js +12 -0
  80. package/lib/features/shopping/ShoppingAgentChatPane.js.map +1 -1
  81. package/lib/features/shopping/ShoppingExperience.js +56 -19
  82. package/lib/features/shopping/ShoppingExperience.js.map +1 -1
  83. package/lib/features/shopping/TrendingSections.js +13 -4
  84. package/lib/features/shopping/TrendingSections.js.map +1 -1
  85. package/lib/features/shopping/WatchlistPanel.js +61 -5
  86. package/lib/features/shopping/WatchlistPanel.js.map +1 -1
  87. package/lib/features/shopping/catalog.js +41 -2
  88. package/lib/features/shopping/catalog.js.map +1 -1
  89. package/lib/features/shopping/chat/brainRouter.js +14 -0
  90. package/lib/features/shopping/chat/brainRouter.js.map +1 -1
  91. package/lib/features/shopping/chat/shoppingTurn.js +88 -16
  92. package/lib/features/shopping/chat/shoppingTurn.js.map +1 -1
  93. package/lib/features/shopping/hooks/useHolidayDeals.js +388 -0
  94. package/lib/features/shopping/hooks/useHolidayDeals.js.map +1 -0
  95. package/lib/features/shopping/hooks/useProductMedia.js +33 -6
  96. package/lib/features/shopping/hooks/useProductMedia.js.map +1 -1
  97. package/lib/features/shopping/hooks/useShoppingHistorySync.js +8 -4
  98. package/lib/features/shopping/hooks/useShoppingHistorySync.js.map +1 -1
  99. package/lib/features/shopping/hooks/useTrendingProducts.js +11 -3
  100. package/lib/features/shopping/hooks/useTrendingProducts.js.map +1 -1
  101. package/lib/features/shopping/savedProducts.js +76 -6
  102. package/lib/features/shopping/savedProducts.js.map +1 -1
  103. package/lib/features/shopping/services/aiRelevance.js +212 -0
  104. package/lib/features/shopping/services/aiRelevance.js.map +1 -0
  105. package/lib/features/shopping/services/blackFriday.js +301 -0
  106. package/lib/features/shopping/services/blackFriday.js.map +1 -0
  107. package/lib/features/shopping/services/blackFridayBrowserSites.js +137 -0
  108. package/lib/features/shopping/services/blackFridayBrowserSites.js.map +1 -0
  109. package/lib/features/shopping/services/catalogProductSearch.js +21 -3
  110. package/lib/features/shopping/services/catalogProductSearch.js.map +1 -1
  111. package/lib/features/shopping/services/holidayDeals.js +143 -0
  112. package/lib/features/shopping/services/holidayDeals.js.map +1 -0
  113. package/lib/features/shopping/services/mediaShape.js +7 -0
  114. package/lib/features/shopping/services/mediaShape.js.map +1 -0
  115. package/lib/features/shopping/services/modelStep.js +95 -0
  116. package/lib/features/shopping/services/modelStep.js.map +1 -0
  117. package/lib/features/shopping/services/modelWords.js +14 -0
  118. package/lib/features/shopping/services/modelWords.js.map +1 -0
  119. package/lib/features/shopping/services/productAvailability.js +5 -1
  120. package/lib/features/shopping/services/productAvailability.js.map +1 -1
  121. package/lib/features/shopping/services/productFilters.js +2 -2
  122. package/lib/features/shopping/services/productFilters.js.map +1 -1
  123. package/lib/features/shopping/services/productMedia.js +103 -18
  124. package/lib/features/shopping/services/productMedia.js.map +1 -1
  125. package/lib/features/shopping/services/retailerUrl.js +11 -8
  126. package/lib/features/shopping/services/retailerUrl.js.map +1 -1
  127. package/lib/features/shopping/services/salesDealsStore.js +3 -2
  128. package/lib/features/shopping/services/salesDealsStore.js.map +1 -1
  129. package/lib/features/shopping/services/savedReads.js +82 -0
  130. package/lib/features/shopping/services/savedReads.js.map +1 -0
  131. package/lib/features/shopping/services/searchCardFields.js +2 -0
  132. package/lib/features/shopping/services/searchCardFields.js.map +1 -1
  133. package/lib/features/shopping/services/searchRelevance.js +154 -24
  134. package/lib/features/shopping/services/searchRelevance.js.map +1 -1
  135. package/lib/features/shopping/services/secondHand.js +12 -0
  136. package/lib/features/shopping/services/secondHand.js.map +1 -0
  137. package/lib/features/shopping/services/shoppingProductSearch.js +82 -10
  138. package/lib/features/shopping/services/shoppingProductSearch.js.map +1 -1
  139. package/lib/features/shopping/services/shoppingSearchConnectorClient.js +14 -1
  140. package/lib/features/shopping/services/shoppingSearchConnectorClient.js.map +1 -1
  141. package/lib/features/shopping/services/shoppingSubgraph.js +2 -1
  142. package/lib/features/shopping/services/shoppingSubgraph.js.map +1 -1
  143. package/lib/features/shopping/services/storedGalleries.js +130 -0
  144. package/lib/features/shopping/services/storedGalleries.js.map +1 -0
  145. package/lib/features/shopping/services/usedSites.js +263 -0
  146. package/lib/features/shopping/services/usedSites.js.map +1 -0
  147. package/lib/features/shopping/services/verifyProducts.js +3 -3
  148. package/lib/features/shopping/services/verifyProducts.js.map +1 -1
  149. package/lib/features/shopping/services/watchDeal.js +61 -0
  150. package/lib/features/shopping/services/watchDeal.js.map +1 -0
  151. package/lib/features/shopping/shoppingRuntime.js +7 -2
  152. package/lib/features/shopping/shoppingRuntime.js.map +1 -1
  153. package/lib/features/shopping/state/accountCaches.js +20 -0
  154. package/lib/features/shopping/state/accountCaches.js.map +1 -0
  155. package/lib/features/shopping/state/holidayDealsRequest.js +22 -0
  156. package/lib/features/shopping/state/holidayDealsRequest.js.map +1 -0
  157. package/lib/features/shopping/tutorials/ShoppingTutorialDock.js +1 -1
  158. package/lib/features/shopping/tutorials/ShoppingTutorialDock.js.map +1 -1
  159. package/lib/features/shopping/tutorials/shoppingTutorials.js +2 -0
  160. package/lib/features/shopping/tutorials/shoppingTutorials.js.map +1 -1
  161. package/lib/features/shopping/useShoppingSearch.js +74 -18
  162. package/lib/features/shopping/useShoppingSearch.js.map +1 -1
  163. package/lib/features/team-chat/TeamChatExperience.js +474 -0
  164. package/lib/features/team-chat/TeamChatExperience.js.map +1 -0
  165. package/lib/features/team-chat/api/client.js +198 -0
  166. package/lib/features/team-chat/api/client.js.map +1 -0
  167. package/lib/features/team-chat/api/live.js +160 -0
  168. package/lib/features/team-chat/api/live.js.map +1 -0
  169. package/lib/features/team-chat/api/ops.js +241 -0
  170. package/lib/features/team-chat/api/ops.js.map +1 -0
  171. package/lib/features/team-chat/app.js +12 -0
  172. package/lib/features/team-chat/app.js.map +1 -0
  173. package/lib/features/team-chat/components/Avatar.js +107 -0
  174. package/lib/features/team-chat/components/Avatar.js.map +1 -0
  175. package/lib/features/team-chat/components/Composer.js +641 -0
  176. package/lib/features/team-chat/components/Composer.js.map +1 -0
  177. package/lib/features/team-chat/components/Dialogs.js +598 -0
  178. package/lib/features/team-chat/components/Dialogs.js.map +1 -0
  179. package/lib/features/team-chat/components/EmojiPicker.js +165 -0
  180. package/lib/features/team-chat/components/EmojiPicker.js.map +1 -0
  181. package/lib/features/team-chat/components/MessageItem.js +658 -0
  182. package/lib/features/team-chat/components/MessageItem.js.map +1 -0
  183. package/lib/features/team-chat/components/MessageList.js +248 -0
  184. package/lib/features/team-chat/components/MessageList.js.map +1 -0
  185. package/lib/features/team-chat/components/Mrkdwn.js +228 -0
  186. package/lib/features/team-chat/components/Mrkdwn.js.map +1 -0
  187. package/lib/features/team-chat/components/QuickSwitcher.js +215 -0
  188. package/lib/features/team-chat/components/QuickSwitcher.js.map +1 -0
  189. package/lib/features/team-chat/components/ui.js +662 -0
  190. package/lib/features/team-chat/components/ui.js.map +1 -0
  191. package/lib/features/team-chat/nativeTeamChatRegistry.js +15 -0
  192. package/lib/features/team-chat/nativeTeamChatRegistry.js.map +1 -0
  193. package/lib/features/team-chat/state/fetched.js +39 -0
  194. package/lib/features/team-chat/state/fetched.js.map +1 -0
  195. package/lib/features/team-chat/state/lists.js +230 -0
  196. package/lib/features/team-chat/state/lists.js.map +1 -0
  197. package/lib/features/team-chat/state/store.js +1108 -0
  198. package/lib/features/team-chat/state/store.js.map +1 -0
  199. package/lib/features/team-chat/state/useChannelDirectory.js +21 -0
  200. package/lib/features/team-chat/state/useChannelDirectory.js.map +1 -0
  201. package/lib/features/team-chat/theme.js +77 -0
  202. package/lib/features/team-chat/theme.js.map +1 -0
  203. package/lib/features/team-chat/utils/composeText.js +72 -0
  204. package/lib/features/team-chat/utils/composeText.js.map +1 -0
  205. package/lib/features/team-chat/utils/emoji.js +369 -0
  206. package/lib/features/team-chat/utils/emoji.js.map +1 -0
  207. package/lib/features/team-chat/utils/format.js +109 -0
  208. package/lib/features/team-chat/utils/format.js.map +1 -0
  209. package/lib/features/team-chat/utils/messageRows.js +24 -0
  210. package/lib/features/team-chat/utils/messageRows.js.map +1 -0
  211. package/lib/features/team-chat/utils/mrkdwn.js +222 -0
  212. package/lib/features/team-chat/utils/mrkdwn.js.map +1 -0
  213. package/lib/features/team-chat/utils/notify.js +47 -0
  214. package/lib/features/team-chat/utils/notify.js.map +1 -0
  215. package/lib/features/team-chat/utils/pickFiles.js +81 -0
  216. package/lib/features/team-chat/utils/pickFiles.js.map +1 -0
  217. package/lib/features/team-chat/views/ActivityView.js +235 -0
  218. package/lib/features/team-chat/views/ActivityView.js.map +1 -0
  219. package/lib/features/team-chat/views/BrowseView.js +179 -0
  220. package/lib/features/team-chat/views/BrowseView.js.map +1 -0
  221. package/lib/features/team-chat/views/ChannelView.js +475 -0
  222. package/lib/features/team-chat/views/ChannelView.js.map +1 -0
  223. package/lib/features/team-chat/views/DetailsPane.js +816 -0
  224. package/lib/features/team-chat/views/DetailsPane.js.map +1 -0
  225. package/lib/features/team-chat/views/DraftsView.js +212 -0
  226. package/lib/features/team-chat/views/DraftsView.js.map +1 -0
  227. package/lib/features/team-chat/views/FilesView.js +152 -0
  228. package/lib/features/team-chat/views/FilesView.js.map +1 -0
  229. package/lib/features/team-chat/views/NewMessageView.js +286 -0
  230. package/lib/features/team-chat/views/NewMessageView.js.map +1 -0
  231. package/lib/features/team-chat/views/PeopleView.js +118 -0
  232. package/lib/features/team-chat/views/PeopleView.js.map +1 -0
  233. package/lib/features/team-chat/views/ProfilePane.js +220 -0
  234. package/lib/features/team-chat/views/ProfilePane.js.map +1 -0
  235. package/lib/features/team-chat/views/SavedView.js +113 -0
  236. package/lib/features/team-chat/views/SavedView.js.map +1 -0
  237. package/lib/features/team-chat/views/SearchView.js +307 -0
  238. package/lib/features/team-chat/views/SearchView.js.map +1 -0
  239. package/lib/features/team-chat/views/Sidebar.js +368 -0
  240. package/lib/features/team-chat/views/Sidebar.js.map +1 -0
  241. package/lib/features/team-chat/views/ThreadPane.js +139 -0
  242. package/lib/features/team-chat/views/ThreadPane.js.map +1 -0
  243. package/lib/features/team-chat/views/ThreadsView.js +157 -0
  244. package/lib/features/team-chat/views/ThreadsView.js.map +1 -0
  245. package/lib/features/webbuilder/WebBuilderExperience.js +276 -42
  246. package/lib/features/webbuilder/WebBuilderExperience.js.map +1 -1
  247. package/lib/features/webbuilder/buildFragments.js +10 -4
  248. package/lib/features/webbuilder/buildFragments.js.map +1 -1
  249. package/lib/features/webbuilder/components/AssetChips.js +61 -0
  250. package/lib/features/webbuilder/components/AssetChips.js.map +1 -0
  251. package/lib/features/webbuilder/components/AssetSiteChooser.js +100 -0
  252. package/lib/features/webbuilder/components/AssetSiteChooser.js.map +1 -0
  253. package/lib/features/webbuilder/components/CommentsLayer.js +485 -0
  254. package/lib/features/webbuilder/components/CommentsLayer.js.map +1 -0
  255. package/lib/features/webbuilder/components/Composer.js +16 -2
  256. package/lib/features/webbuilder/components/Composer.js.map +1 -1
  257. package/lib/features/webbuilder/components/ComposerModeSwitch.js +71 -0
  258. package/lib/features/webbuilder/components/ComposerModeSwitch.js.map +1 -0
  259. package/lib/features/webbuilder/components/MyAssetsPicker.js +500 -0
  260. package/lib/features/webbuilder/components/MyAssetsPicker.js.map +1 -0
  261. package/lib/features/webbuilder/components/PlanDocument.js +165 -0
  262. package/lib/features/webbuilder/components/PlanDocument.js.map +1 -0
  263. package/lib/features/webbuilder/components/PlanDraftCard.js +205 -0
  264. package/lib/features/webbuilder/components/PlanDraftCard.js.map +1 -0
  265. package/lib/features/webbuilder/components/PlanView.js +788 -0
  266. package/lib/features/webbuilder/components/PlanView.js.map +1 -0
  267. package/lib/features/webbuilder/components/PreviewConsoleSheet.js +334 -0
  268. package/lib/features/webbuilder/components/PreviewConsoleSheet.js.map +1 -0
  269. package/lib/features/webbuilder/components/PreviewFrame.js +45 -3
  270. package/lib/features/webbuilder/components/PreviewFrame.js.map +1 -1
  271. package/lib/features/webbuilder/components/PreviewScreen.js +94 -10
  272. package/lib/features/webbuilder/components/PreviewScreen.js.map +1 -1
  273. package/lib/features/webbuilder/components/ProjectChat.js +84 -14
  274. package/lib/features/webbuilder/components/ProjectChat.js.map +1 -1
  275. package/lib/features/webbuilder/components/StudioHome.js +69 -6
  276. package/lib/features/webbuilder/components/StudioHome.js.map +1 -1
  277. package/lib/features/webbuilder/components/StyleDirectionsSheet.js +291 -0
  278. package/lib/features/webbuilder/components/StyleDirectionsSheet.js.map +1 -0
  279. package/lib/features/webbuilder/components/VersionChangesView.js +574 -0
  280. package/lib/features/webbuilder/components/VersionChangesView.js.map +1 -0
  281. package/lib/features/webbuilder/components/VersionPreviewView.js +186 -0
  282. package/lib/features/webbuilder/components/VersionPreviewView.js.map +1 -0
  283. package/lib/features/webbuilder/components/VersionsSheet.js +673 -16
  284. package/lib/features/webbuilder/components/VersionsSheet.js.map +1 -1
  285. package/lib/features/webbuilder/connectorTemplates.js +6 -1
  286. package/lib/features/webbuilder/connectorTemplates.js.map +1 -1
  287. package/lib/features/webbuilder/myAssets.js +101 -0
  288. package/lib/features/webbuilder/myAssets.js.map +1 -0
  289. package/lib/features/webbuilder/planChat.js +146 -0
  290. package/lib/features/webbuilder/planChat.js.map +1 -0
  291. package/lib/features/webbuilder/planDocument.js +89 -0
  292. package/lib/features/webbuilder/planDocument.js.map +1 -0
  293. package/lib/features/webbuilder/planStore.js +55 -0
  294. package/lib/features/webbuilder/planStore.js.map +1 -0
  295. package/lib/features/webbuilder/previewCommentsScript.js +218 -0
  296. package/lib/features/webbuilder/previewCommentsScript.js.map +1 -0
  297. package/lib/features/webbuilder/previewConsoleScript.js +39 -0
  298. package/lib/features/webbuilder/previewConsoleScript.js.map +1 -0
  299. package/lib/features/webbuilder/styleDirections.js +85 -0
  300. package/lib/features/webbuilder/styleDirections.js.map +1 -0
  301. package/lib/features/webbuilder/useCanvasComments.js +335 -0
  302. package/lib/features/webbuilder/useCanvasComments.js.map +1 -0
  303. package/lib/features/webbuilder/useCatalogTemplates.js +37 -0
  304. package/lib/features/webbuilder/useCatalogTemplates.js.map +1 -0
  305. package/lib/features/webbuilder/usePlanMode.js +145 -0
  306. package/lib/features/webbuilder/usePlanMode.js.map +1 -0
  307. package/lib/features/webbuilder/useStyleDirections.js +112 -0
  308. package/lib/features/webbuilder/useStyleDirections.js.map +1 -0
  309. package/lib/features/webbuilder/web/assets/assetsApi.js +174 -0
  310. package/lib/features/webbuilder/web/assets/assetsApi.js.map +1 -0
  311. package/lib/features/webbuilder/web/assets/assetsApi.ts +173 -0
  312. package/lib/features/webbuilder/web/assets/myAssets.js +341 -0
  313. package/lib/features/webbuilder/web/assets/myAssets.js.map +1 -0
  314. package/lib/features/webbuilder/web/assets/myAssets.ts +396 -0
  315. package/lib/features/webbuilder/web/canvas/elementName.js +46 -0
  316. package/lib/features/webbuilder/web/canvas/elementName.js.map +1 -0
  317. package/lib/features/webbuilder/web/canvas/visualEditorBridge.js +95 -0
  318. package/lib/features/webbuilder/web/canvas/visualEditorBridge.js.map +1 -0
  319. package/lib/features/webbuilder/web/chat/agentTurn.js +24 -0
  320. package/lib/features/webbuilder/web/chat/agentTurn.js.map +1 -0
  321. package/lib/features/webbuilder/web/chat/planMode.js +164 -0
  322. package/lib/features/webbuilder/web/chat/planMode.js.map +1 -0
  323. package/lib/features/webbuilder/web/chat/realPlans.js +66 -0
  324. package/lib/features/webbuilder/web/chat/realPlans.js.map +1 -0
  325. package/lib/features/webbuilder/web/comments/comments.js +336 -0
  326. package/lib/features/webbuilder/web/comments/comments.js.map +1 -0
  327. package/lib/features/webbuilder/web/comments/commentsApi.js +59 -0
  328. package/lib/features/webbuilder/web/comments/commentsApi.js.map +1 -0
  329. package/lib/features/webbuilder/web/components/planView.js +21 -0
  330. package/lib/features/webbuilder/web/components/planView.js.map +1 -0
  331. package/lib/features/webbuilder/web/console/consolePanel.js +43 -0
  332. package/lib/features/webbuilder/web/console/consolePanel.js.map +1 -0
  333. package/lib/features/webbuilder/web/console/previewConsole.js +256 -0
  334. package/lib/features/webbuilder/web/console/previewConsole.js.map +1 -0
  335. package/lib/features/webbuilder/web/console/usePreviewConsole.js +147 -0
  336. package/lib/features/webbuilder/web/console/usePreviewConsole.js.map +1 -0
  337. package/lib/features/webbuilder/web/design/directions.js +419 -1
  338. package/lib/features/webbuilder/web/design/directions.js.map +1 -1
  339. package/lib/features/webbuilder/web/history/diffActions.js +222 -0
  340. package/lib/features/webbuilder/web/history/diffActions.js.map +1 -0
  341. package/lib/features/webbuilder/web/history/diffHighlight.js +18 -0
  342. package/lib/features/webbuilder/web/history/diffHighlight.js.map +1 -0
  343. package/lib/features/webbuilder/web/history/versionActions.js +272 -0
  344. package/lib/features/webbuilder/web/history/versionActions.js.map +1 -0
  345. package/lib/features/webbuilder/web/history/versionDiff.js +338 -0
  346. package/lib/features/webbuilder/web/history/versionDiff.js.map +1 -0
  347. package/lib/features/webbuilder/web/history/versionPreview.js +83 -0
  348. package/lib/features/webbuilder/web/history/versionPreview.js.map +1 -0
  349. package/lib/features/webbuilder/web/history/versionPreviewMachine.js +150 -0
  350. package/lib/features/webbuilder/web/history/versionPreviewMachine.js.map +1 -0
  351. package/lib/features/webbuilder/web/history/versions.js +326 -1
  352. package/lib/features/webbuilder/web/history/versions.js.map +1 -1
  353. package/lib/features/webbuilder/web/hosted/hostedTurn.js +36 -0
  354. package/lib/features/webbuilder/web/hosted/hostedTurn.js.map +1 -0
  355. package/lib/features/webbuilder/web/studio/brandKit.js +25 -0
  356. package/lib/features/webbuilder/web/studio/brandKit.js.map +1 -0
  357. package/lib/features/webbuilder/web/utils/promptSafe.js +15 -0
  358. package/lib/features/webbuilder/web/utils/promptSafe.js.map +1 -0
  359. package/lib/features/webbuilder/web/webServices.js +3 -1
  360. package/lib/features/webbuilder/web/webServices.js.map +1 -1
  361. package/lib/index.js +1 -1
  362. package/lib/index.js.map +1 -1
  363. package/lib/routes.json +55 -0
  364. package/lib/screens/Account/index.js +13 -5
  365. package/lib/screens/Account/index.js.map +1 -1
  366. package/lib/screens/Chat/index.js +16 -0
  367. package/lib/screens/Chat/index.js.map +1 -1
  368. package/lib/screens/Home/HomeScreen.js +202 -39
  369. package/lib/screens/Home/HomeScreen.js.map +1 -1
  370. package/lib/screens/Home/components/HomeHero.js +52 -38
  371. package/lib/screens/Home/components/HomeHero.js.map +1 -1
  372. package/lib/screens/Home/components/homeCatalog.js +8 -1
  373. package/lib/screens/Home/components/homeCatalog.js.map +1 -1
  374. package/lib/screens/TeamChat/index.js +41 -0
  375. package/lib/screens/TeamChat/index.js.map +1 -0
  376. package/lib/screens/WebBuilder/nativeWebBuilderRedirect.js +9 -2
  377. package/lib/screens/WebBuilder/nativeWebBuilderRedirect.js.map +1 -1
  378. package/lib/screens/WebBuilderNative/index.js +13 -3
  379. package/lib/screens/WebBuilderNative/index.js.map +1 -1
  380. package/lib/screens/WebBuilderNative/useConnectorTemplates.js +2 -2
  381. package/lib/screens/WebBuilderNative/useConnectorTemplates.js.map +1 -1
  382. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import {jsxs,jsx,Fragment}from'react/jsx-runtime';import React__default,{useRef,useState,useCallback,useMemo,useEffect}from'react';import {View,StyleSheet,useWindowDimensions,InteractionManager,Animated,Keyboard,Pressable,Platform}from'react-native';import {Text,InputToolBar}from'@admin-layout/gluestack-ui-mobile';import {useSafeAreaInsets,SafeAreaView}from'react-native-safe-area-context';import {useNavigation,useRoute,useFocusEffect,CommonActions,useIsFocused}from'@react-navigation/native';import {useDispatch,useSelector}from'react-redux';import {userSelector}from'@adminide-stack/user-auth0-client';import {v4}from'uuid';import {pickGivenName}from'../../utils/authUserDisplay.js';import {KeyboardAwareScreen,KeyboardComposerDock}from'../../components/KeyboardComposerDock.js';import {useKeyboardBottomOffset}from'../../hooks/useKeyboardBottomOffset.js';import {dismissKeyboard}from'../../utils/keyboardController.js';import {usePrerequisiteIds}from'../../hooks/usePrerequisiteIds.js';import {syncMobileOrgRouteContext}from'../../utils/syncMobileOrgRouteContext.js';import {useChatMutations,usePrefetchChatHistory}from'../../hooks/useChatApi.js';import {hydrateChatHistorySnapshot,persistChatHistorySnapshot}from'../../features/chat/chatHistorySnapshot.js';import {AudioRecorderPanel}from'../../features/audio-input/AudioRecorderPanel.js';import {MicErrorBoundary}from'../../features/audio-input/MicErrorBoundary.js';import {requestMicPermission}from'../../features/audio-input/useAudioPermission.js';import {mobileTokens}from'../../theme/mobileTokens.js';import {useAppTheme}from'../../theme/AppThemeProvider.js';import {groupByKind,BUILD_KINDS,kindForGroup,buildKind,CODE_ASSISTANT_GROUP}from'../../features/templates/buildKinds.js';import {ComposerModeSwitch,composerMode}from'../../features/chat/ComposerModeSwitch.js';import {useMarketplaceTemplateGroups}from'../../hooks/useMarketplaceTemplateGroups.js';import {useImageAttachments}from'../../features/attachments/useImageAttachments.js';import {ComposerAttachmentBar}from'../../features/attachments/ComposerAttachmentBar.js';import {useComposerAttachMenu}from'../../features/attachments/ComposerAttachMenu.js';import {stashComposerAttachments}from'../../features/attachments/composerAttachmentHandoff.js';import {nativeHandoffParams}from'../../features/apps/nativeAppNavigation.js';import {ConnectAppsSheet}from'../../features/channels/ConnectAppsSheet.js';import {HomeImessage}from'../../features/channels/HomeImessage.js';import {IMESSAGE_CHANNEL}from'../../features/channels/channelLinks.js';import {useChannelBindings}from'../../features/channels/useChannelsApi.js';import {ChatModelSheet}from'../../features/chat/ChatModelSheet.js';import {isFillComplete,firstUnfilledBlank,startFill,filledPrompt,answerBlank,nextEmptyBlank,blankLabel}from'../../features/chat/promptBlanks.js';import {PromptFillBar}from'../../features/chat/PromptFillBar.js';import {HomeSky}from'../../features/home/sky/HomeSky.js';import {setHomeSkyBar}from'../../features/home/sky/homeSkyBar.js';import {useSkyScene}from'../../features/home/sky/useSkyScene.js';import {useHomeWeather}from'../../features/home/useHomeWeather.js';import {BuildKindPicker,BuildGroupTabs}from'./components/BuildKindPicker.js';import {buildPalette}from'./components/buildTheme.js';import {BuildTemplatesSection}from'./components/BuildTemplatesSection.js';import {ChooseTemplateModal}from'./components/ChooseTemplateModal.js';import {TemplateSuggestionBanner}from'./components/TemplateSuggestionBanner.js';import {SUGGEST_MIN_QUERY,suggestTemplateGroup,SUGGEST_DEBOUNCE_MS}from'../../features/templates/templateSuggestion.js';import {HomeHero}from'./components/HomeHero.js';import {FreeCreditsCard}from'../../features/credits/FreeCreditsCard.js';import {shouldOfferFreeCredits}from'../../features/credits/freeCredits.js';import {useFreeCredits}from'../../features/credits/useFreeCredits.js';import {HomeSuggestions}from'./components/HomeSuggestions.js';import {HomeWash}from'./components/HomeWash.js';import {WebBuilderPrewarm}from'./components/WebBuilderPrewarm.js';import {CanvasPrewarm}from'./components/CanvasPrewarm.js';import {WebBuilderCodePrewarm}from'./components/WebBuilderCodePrewarm.js';import {resetDrawerClosed,dispatchDrawerAction,afterNativeModalClose}from'../../utils/drawerNavigation.js';var __defProp = Object.defineProperty;
1
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import React__default,{useRef,useState,useCallback,useMemo,useEffect}from'react';import {View,StyleSheet,useWindowDimensions,InteractionManager,Platform,Keyboard,Animated,Pressable}from'react-native';import {Text,InputToolBar}from'@admin-layout/gluestack-ui-mobile';import {useSafeAreaInsets,SafeAreaView}from'react-native-safe-area-context';import {useNavigation,useRoute,useFocusEffect,CommonActions,useIsFocused}from'@react-navigation/native';import {useDispatch,useSelector}from'react-redux';import {userSelector}from'@adminide-stack/user-auth0-client';import {v4}from'uuid';import {pickGivenName}from'../../utils/authUserDisplay.js';import {KeyboardAwareScreen,KeyboardComposerDock}from'../../components/KeyboardComposerDock.js';import {useKeyboardBottomOffset}from'../../hooks/useKeyboardBottomOffset.js';import {dismissKeyboard}from'../../utils/keyboardController.js';import {usePrerequisiteIds}from'../../hooks/usePrerequisiteIds.js';import {syncMobileOrgRouteContext}from'../../utils/syncMobileOrgRouteContext.js';import {useChatMutations,usePrefetchChatHistory}from'../../hooks/useChatApi.js';import {hydrateChatHistorySnapshot,persistChatHistorySnapshot}from'../../features/chat/chatHistorySnapshot.js';import {AudioRecorderPanel}from'../../features/audio-input/AudioRecorderPanel.js';import {MicErrorBoundary}from'../../features/audio-input/MicErrorBoundary.js';import {requestMicPermission}from'../../features/audio-input/useAudioPermission.js';import {mobileTokens}from'../../theme/mobileTokens.js';import {useAppTheme}from'../../theme/AppThemeProvider.js';import {groupByKind,BUILD_KINDS,kindForGroup,buildKind,CODE_ASSISTANT_GROUP}from'../../features/templates/buildKinds.js';import {ComposerModeSwitch,ComposerModeSegments,composerMode}from'../../features/chat/ComposerModeSwitch.js';import {ComposerMicSend}from'../../features/chat/ComposerMicSend.js';import {useMarketplaceTemplateGroups}from'../../hooks/useMarketplaceTemplateGroups.js';import {useImageAttachments}from'../../features/attachments/useImageAttachments.js';import {ComposerAttachmentBar}from'../../features/attachments/ComposerAttachmentBar.js';import {useComposerAttachMenu}from'../../features/attachments/ComposerAttachMenu.js';import {stashComposerAttachments}from'../../features/attachments/composerAttachmentHandoff.js';import {nativeHandoffParams}from'../../features/apps/nativeAppNavigation.js';import {ConnectAppsSheet}from'../../features/channels/ConnectAppsSheet.js';import {HomeImessage}from'../../features/channels/HomeImessage.js';import {IMESSAGE_CHANNEL}from'../../features/channels/channelLinks.js';import {useChannelBindings}from'../../features/channels/useChannelsApi.js';import {ChatModelSheet}from'../../features/chat/ChatModelSheet.js';import {isFillComplete,firstUnfilledBlank,startFill,filledPrompt,answerBlank,nextEmptyBlank,blankLabel}from'../../features/chat/promptBlanks.js';import {PromptFillBar}from'../../features/chat/PromptFillBar.js';import {HomeSky}from'../../features/home/sky/HomeSky.js';import {setHomeSkyBar}from'../../features/home/sky/homeSkyBar.js';import {useSkyScene}from'../../features/home/sky/useSkyScene.js';import {useHomeWeather}from'../../features/home/useHomeWeather.js';import {BuildKindPicker,BuildGroupTabs}from'./components/BuildKindPicker.js';import {buildPalette}from'./components/buildTheme.js';import {BuildTemplatesSection}from'./components/BuildTemplatesSection.js';import {ChooseTemplateModal}from'./components/ChooseTemplateModal.js';import {TemplateSuggestionBanner}from'./components/TemplateSuggestionBanner.js';import {SUGGEST_MIN_QUERY,suggestTemplateGroup,SUGGEST_DEBOUNCE_MS}from'../../features/templates/templateSuggestion.js';import {HomeHero}from'./components/HomeHero.js';import {ConnectorSheet}from'../../features/connectors/ConnectorSheet.js';import {HomeNeedsYou}from'../../features/home/needsYou/HomeNeedsYou.js';import {GMAIL_CONNECTOR_ALIASES,GMAIL_CONNECTOR}from'../../features/home/needsYou/inboxHighlights.js';import {useHomeBriefing}from'../../features/home/needsYou/useHomeBriefing.js';import {FreeCreditsCard}from'../../features/credits/FreeCreditsCard.js';import {shouldOfferFreeCredits}from'../../features/credits/freeCredits.js';import {useFreeCredits}from'../../features/credits/useFreeCredits.js';import {HomeSuggestions}from'./components/HomeSuggestions.js';import {HomeWash}from'./components/HomeWash.js';import {WebBuilderPrewarm}from'./components/WebBuilderPrewarm.js';import {CanvasPrewarm}from'./components/CanvasPrewarm.js';import {WebBuilderCodePrewarm}from'./components/WebBuilderCodePrewarm.js';import {resetDrawerClosed,dispatchDrawerAction,afterNativeModalClose}from'../../utils/drawerNavigation.js';var __defProp = Object.defineProperty;
2
2
  var __defProps = Object.defineProperties;
3
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -61,13 +61,24 @@ const EmptyStateSection = React__default.memo(function EmptyStateSection2({
61
61
  skySecondaryColor,
62
62
  channelChip,
63
63
  freeCreditsOffer,
64
+ needsYou,
65
+ waiting,
66
+ composer,
67
+ composerHint,
64
68
  anchorRef,
65
69
  onAnchorLayout
66
70
  }) {
67
71
  return /* @__PURE__ */ jsxs(View, { style: styles.homeInner, children: [
68
- /* @__PURE__ */ jsx(View, { ref: anchorRef, collapsable: false, onLayout: onAnchorLayout, style: styles.anchor, children: /* @__PURE__ */ jsx(HomeHero, { firstName, weather, primaryTextColor: skyPrimaryColor, secondaryTextColor: skySecondaryColor, channelChip }) }),
72
+ /* @__PURE__ */ jsx(View, { ref: anchorRef, collapsable: false, onLayout: onAnchorLayout, style: styles.anchor, children: /* @__PURE__ */ jsx(HomeHero, { firstName, weather, primaryTextColor: skyPrimaryColor, secondaryTextColor: skySecondaryColor, waiting, channelChip }) }),
73
+ /* @__PURE__ */ jsxs(View, { style: styles.inlineComposerWrap, children: [
74
+ composer,
75
+ /* @__PURE__ */ jsx(Text, { style: [styles.composerHint, {
76
+ color: skySecondaryColor
77
+ }], children: composerHint })
78
+ ] }),
69
79
  freeCreditsOffer,
70
- /* @__PURE__ */ jsx(HomeSuggestions, { isDark, primaryTextColor, secondaryTextColor, headingColor: skyPrimaryColor, headingMutedColor: skySecondaryColor, onInjectPrompt, onOpenRoute })
80
+ needsYou,
81
+ /* @__PURE__ */ jsx(HomeSuggestions, { isDark, primaryTextColor, secondaryTextColor, headingColor: primaryTextColor, headingMutedColor: secondaryTextColor, onInjectPrompt, onOpenRoute })
71
82
  ] });
72
83
  });
73
84
  function HomeScreenContent({
@@ -78,7 +89,8 @@ function HomeScreenContent({
78
89
  }) {
79
90
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
80
91
  const {
81
- width: screenWidth
92
+ width: screenWidth,
93
+ height: screenHeight
82
94
  } = useWindowDimensions();
83
95
  const {
84
96
  isDark
@@ -343,6 +355,44 @@ function HomeScreenContent({
343
355
  animated: true
344
356
  });
345
357
  }, [scrollRunway]);
358
+ const inlineComposer = !isBuildMode;
359
+ const composerWrapRef = useRef(null);
360
+ const [inlineKeysHeight, setInlineKeysHeight] = useState(0);
361
+ useEffect(() => {
362
+ if (!inlineComposer) {
363
+ setInlineKeysHeight(0);
364
+ return void 0;
365
+ }
366
+ const ios = Platform.OS === "ios";
367
+ let timer;
368
+ const willShow = ios ? Keyboard.addListener("keyboardWillShow", (event) => setInlineKeysHeight(event.endCoordinates.height)) : null;
369
+ const show = Keyboard.addListener("keyboardDidShow", (event) => {
370
+ const keysTop = event.endCoordinates.screenY;
371
+ setInlineKeysHeight(event.endCoordinates.height);
372
+ if (timer) clearTimeout(timer);
373
+ timer = setTimeout(() => {
374
+ var _a2;
375
+ (_a2 = composerWrapRef.current) == null ? void 0 : _a2.measureInWindow((_x, y, _w, h) => {
376
+ var _a3;
377
+ if (!h) return;
378
+ const gap = y + h + 12 - keysTop;
379
+ if (Math.abs(gap) < 2) return;
380
+ const target = Math.max(0, scrollOffsetRef.current + gap);
381
+ (_a3 = emptyScrollRef.current) == null ? void 0 : _a3.scrollTo({
382
+ y: target,
383
+ animated: true
384
+ });
385
+ });
386
+ }, 30);
387
+ });
388
+ const hide = Keyboard.addListener(ios ? "keyboardWillHide" : "keyboardDidHide", () => setInlineKeysHeight(0));
389
+ return () => {
390
+ if (timer) clearTimeout(timer);
391
+ willShow == null ? void 0 : willShow.remove();
392
+ show.remove();
393
+ hide.remove();
394
+ };
395
+ }, [inlineComposer]);
346
396
  const handleScrollLayout = useCallback((event) => {
347
397
  scrollViewportRef.current = event.nativeEvent.layout.height;
348
398
  }, []);
@@ -644,6 +694,76 @@ function HomeScreenContent({
644
694
  return (_a2 = inputRef.current) == null ? void 0 : _a2.focus();
645
695
  }, 60);
646
696
  }, [handleModeSwitch]);
697
+ const openCardChat = useCallback((chatId, draft) => {
698
+ var _a2;
699
+ navigation.dispatch(CommonActions.navigate({
700
+ name: "MainStack.Chat",
701
+ params: __spreadValues({
702
+ channelId: chatId,
703
+ orgName: (_a2 = effectiveOrgName != null ? effectiveOrgName : routeOrgName) != null ? _a2 : void 0
704
+ }, draft ? {
705
+ initialDraft: draft
706
+ } : {})
707
+ }));
708
+ }, [navigation, effectiveOrgName, routeOrgName]);
709
+ const sendToCardChat = useCallback((chatId, text) => {
710
+ var _a2;
711
+ navigation.dispatch(CommonActions.navigate({
712
+ name: "MainStack.Chat",
713
+ params: {
714
+ channelId: chatId,
715
+ orgName: (_a2 = effectiveOrgName != null ? effectiveOrgName : routeOrgName) != null ? _a2 : void 0,
716
+ initialQuery: text,
717
+ initialMode: "chat",
718
+ // The card's answer belongs in its own chat, never a Shop or app hand-off.
719
+ shopRouteChecked: true
720
+ }
721
+ }));
722
+ }, [navigation, effectiveOrgName, routeOrgName]);
723
+ const startCardChat = useCallback((prompt) => {
724
+ if (!effectiveOrgName) return;
725
+ const id = v4();
726
+ void createChannel({
727
+ id,
728
+ title: buildChannelTitle("chat", id),
729
+ isShared: false,
730
+ sharedSlug: null,
731
+ isArchived: false,
732
+ isPinned: false,
733
+ model: null,
734
+ systemPrompt: null,
735
+ orgName: effectiveOrgName,
736
+ projectId: effectiveProjectId || TESTING_PROJECT_ID
737
+ }).catch((err) => console.error("[HomeScreen] createChannel for a card failed:", err));
738
+ sendToCardChat(id, prompt);
739
+ }, [createChannel, effectiveOrgName, effectiveProjectId, sendToCardChat]);
740
+ const draftNewCardChat = useCallback((prompt) => handleInjectPrompt(prompt, "chat"), [handleInjectPrompt]);
741
+ const briefing = useHomeBriefing({
742
+ orgName: effectiveOrgName,
743
+ accountUserId,
744
+ focused: homeFocused,
745
+ enabled: Boolean(effectiveOrgName),
746
+ onOpenChat: openCardChat,
747
+ onSendToChat: sendToCardChat,
748
+ onStartChat: startCardChat,
749
+ onDraftNewChat: draftNewCardChat
750
+ });
751
+ const [gmailConnect, setGmailConnect] = useState(null);
752
+ const connectGmail = useCallback(() => setGmailConnect({
753
+ connector: GMAIL_CONNECTOR,
754
+ aliases: GMAIL_CONNECTOR_ALIASES,
755
+ title: "Gmail"
756
+ }), []);
757
+ const {
758
+ gmailConnected,
759
+ setInboxHighlights
760
+ } = briefing;
761
+ const handleGmailConnected = useCallback(() => {
762
+ setGmailConnect(null);
763
+ gmailConnected();
764
+ setInboxHighlights(true);
765
+ }, [gmailConnected, setInboxHighlights]);
766
+ const needsYou = useMemo(() => /* @__PURE__ */ jsx(HomeNeedsYou, { briefing, isDark, headingColor: skyPrimaryColor, headingMutedColor: skySecondaryColor, onConnectGmail: connectGmail }), [briefing, isDark, skyPrimaryColor, skySecondaryColor, connectGmail]);
647
767
  const applyFill = useCallback((next) => {
648
768
  setFill(next);
649
769
  setValue(filledPrompt(next));
@@ -717,7 +837,7 @@ function HomeScreenContent({
717
837
  const handleRecorderError = useCallback((error) => {
718
838
  setVoiceError(error);
719
839
  }, []);
720
- const modeSwitch = useMemo(() => /* @__PURE__ */ jsx(ComposerModeSwitch, { activeMode, onSelect: handleModeSwitch, isDark }), [activeMode, handleModeSwitch, isDark]);
840
+ const modeSwitch = useMemo(() => activeMode === "build" ? /* @__PURE__ */ jsx(ComposerModeSwitch, { activeMode, onSelect: handleModeSwitch, isDark }) : /* @__PURE__ */ jsx(ComposerModeSegments, { activeMode, onSelect: handleModeSwitch, isDark }), [activeMode, handleModeSwitch, isDark]);
721
841
  const templateButton = useMemo(() => {
722
842
  var _a2;
723
843
  if (!isBuildMode || !selectedBuildTemplate) return null;
@@ -796,6 +916,23 @@ function HomeScreenContent({
796
916
  disabled: isLoading || disabled,
797
917
  isLoading: isLoading || sendWhenReady
798
918
  }), [fill, hasQuery, hasAttachments, handleSubmit, handleMicPress, isLoading, disabled, sendWhenReady]);
919
+ const composerBody = /* @__PURE__ */ jsxs(View, { ref: composerWrapRef, collapsable: false, style: inlineComposer ? styles.composerInline : [styles.composerInner, {
920
+ width: contentMaxWidth
921
+ }], children: [
922
+ voiceError || composerAttachments.error ? /* @__PURE__ */ jsx(View, { style: [styles.voiceErrorBanner, {
923
+ backgroundColor: isDark ? "#2b1a1d" : "#fef2f2",
924
+ borderColor: isDark ? "#7f1d1d" : "#fecaca"
925
+ }], children: /* @__PURE__ */ jsx(Text, { style: [styles.voiceErrorText, {
926
+ color: isDark ? "#fecaca" : "#991b1b"
927
+ }], children: voiceError || composerAttachments.error }) }) : null,
928
+ showAudioRecorder ? /* @__PURE__ */ jsx(MicErrorBoundary, { onCancel: handleRecorderCancel, onError: handleRecorderError, children: /* @__PURE__ */ jsx(AudioRecorderPanel, { isDark, onTranscriptionComplete: handleTranscriptionComplete, onCancel: handleRecorderCancel, onError: handleRecorderError }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
929
+ /* @__PURE__ */ jsx(ComposerAttachmentBar, { attachments: composerAttachments.pending, onRemove: composerAttachments.remove, isDark }),
930
+ /* @__PURE__ */ jsx(InputToolBar, { inputConfig, leftCustomRender: modeSwitch, rightItems, rightCustomRender: inlineComposer ? /* @__PURE__ */ jsx(ComposerMicSend, __spreadValues({ leading: rightItems.map((item) => /* @__PURE__ */ jsx(React__default.Fragment, { children: item.customButton }, item.id)) }, micSendButton)) : void 0, templateButton, topContent: fill ? /* @__PURE__ */ jsx(PromptFillBar, { fill, isDark, onSelectBlank: handleSelectBlank, onPickAnswer: handlePickAnswer, onEditAll: handleEditAllFill, onCancel: handleCancelFill }) : blankHintLine != null ? blankHintLine : draftReadable ? /* @__PURE__ */ jsx(TemplateSuggestionBanner, { selectedLabel: selectedTemplateGroup ? (_k = bannerGroup == null ? void 0 : bannerGroup.label) != null ? _k : null : null, suggestedLabel: selectedTemplateGroup ? null : (_l = bannerGroup == null ? void 0 : bannerGroup.label) != null ? _l : null, description: bannerGroup == null ? void 0 : bannerGroup.description, isAnalyzing: analyzingQuery, onChange: () => {
931
+ dismissKeyboard();
932
+ setGroupPickerOpen(true);
933
+ }, palette: buildColors }) : null, micSendButton }, composerEpoch)
934
+ ] })
935
+ ] });
799
936
  return /* @__PURE__ */ jsxs(SafeAreaView, { ref: screenRef, collapsable: false, edges: ["left", "right"], style: {
800
937
  flex: 1,
801
938
  backgroundColor: surfaceColor
@@ -803,14 +940,19 @@ function HomeScreenContent({
803
940
  /* @__PURE__ */ jsx(WebBuilderPrewarm, { enabled: isBuildMode, orgName: effectiveOrgName, projectId: effectiveProjectId, tagId }),
804
941
  /* @__PURE__ */ jsx(CanvasPrewarm, { orgName: effectiveOrgName, projectId: effectiveProjectId, tagId }),
805
942
  /* @__PURE__ */ jsx(WebBuilderCodePrewarm, {}),
806
- sky ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: [styles.skyOverscroll, {
807
- backgroundColor: sky.palette[0]
943
+ sky ? /* @__PURE__ */ jsx(Animated.View, { pointerEvents: "none", style: [styles.skyOverscroll, {
944
+ top: -screenHeight,
945
+ height: screenHeight,
946
+ backgroundColor: sky.palette[0],
947
+ transform: [{
948
+ translateY: Animated.multiply(scrollY, -1)
949
+ }]
808
950
  }] }) : null,
809
951
  sky && skyAnchor ? /* @__PURE__ */ jsx(HomeSky, { scene: sky, anchor: skyAnchor, pageColor: surfaceColor, scrollY, active: homeFocused }) : isBuildMode ? /* @__PURE__ */ jsx(View, { style: [StyleSheet.absoluteFill, {
810
952
  backgroundColor: buildColors.page
811
953
  }] }) : /* @__PURE__ */ jsx(HomeWash, { isDark }),
812
954
  /* @__PURE__ */ jsx(KeyboardAwareScreen, { children: /* @__PURE__ */ jsxs(View, { style: styles.flex, children: [
813
- /* @__PURE__ */ jsx(View, { style: styles.flex, children: /* @__PURE__ */ jsx(Animated.ScrollView, { ref: emptyScrollRef, style: styles.flex, onLayout: handleScrollLayout, onScroll: Animated.event([{
955
+ /* @__PURE__ */ jsx(View, { style: styles.flex, children: /* @__PURE__ */ jsxs(Animated.ScrollView, { ref: emptyScrollRef, style: styles.flex, onLayout: handleScrollLayout, onScroll: Animated.event([{
814
956
  nativeEvent: {
815
957
  contentOffset: {
816
958
  y: scrollY
@@ -818,32 +960,31 @@ function HomeScreenContent({
818
960
  }
819
961
  }], {
820
962
  useNativeDriver: true
821
- }), scrollEventThrottle: 16, contentContainerStyle: [styles.emptyScroll, isBuildMode ? styles.buildScroll : null, keyboardVisible && !isBuildMode ? styles.emptyScrollKeyboardOpen : null, scrollRunway.height ? {
822
- paddingBottom: HOME_SCROLL_PADDING_BOTTOM + scrollRunway.height
823
- } : null], keyboardShouldPersistTaps: "handled", keyboardDismissMode: Platform.OS === "ios" ? "interactive" : "on-drag", automaticallyAdjustKeyboardInsets: false, contentInsetAdjustmentBehavior: "never", showsVerticalScrollIndicator: false, children: /* @__PURE__ */ jsx(Pressable, { style: styles.dismissArea, onPress: dismissKeyboard, onLayout: handleHomeContentLayout, accessible: false, children: isBuildMode ? /* @__PURE__ */ jsxs(View, { style: styles.buildInner, children: [
824
- /* @__PURE__ */ jsx(View, { ref: anchorRef, collapsable: false, onLayout: measureSkyAnchor, style: styles.anchor, children: /* @__PURE__ */ jsx(BuildKindPicker, { kindGroups, activeKind: galleryKindId, onPickKind: handlePickKind, onTryPrompt: handleTryBuildPrompt, palette: buildColors, compact: keyboardVisible }) }),
825
- keyboardVisible ? null : /* @__PURE__ */ jsx(BuildTemplatesSection, { enabled: true, group: galleryGroup, orgName: effectiveOrgName, isDark, palette: buildColors, selectedTemplateId: (_k = selectedBuildTemplate == null ? void 0 : selectedBuildTemplate.id) != null ? _k : null, onUseTemplate: handleUseBuildTemplate, kind: galleryKindId, title: galleryKindId ? buildKind(galleryKindId).title : void 0, tabs: /* @__PURE__ */ jsx(BuildGroupTabs, { kindLabel: galleryKindId ? buildKind(galleryKindId).label : "Template", groups: galleryKindGroups, activeGroup: galleryGroup, onPickGroup: handleSelectTemplateGroup, palette: buildColors }), onDescribeOwn: focusComposer })
826
- ] }) : /* @__PURE__ */ jsx(EmptyStateSection, { isDark, secondaryTextColor, primaryTextColor, onInjectPrompt: handleInjectPrompt, onOpenRoute: handleOpenRoute, firstName, weather: homeWeather, skyPrimaryColor, skySecondaryColor, channelChip, freeCreditsOffer, anchorRef, onAnchorLayout: measureSkyAnchor }) }) }) }),
827
- /* @__PURE__ */ jsx(KeyboardComposerDock, { closedInset: insets.bottom, onSwipeUp: () => {
963
+ }), scrollEventThrottle: 16, contentContainerStyle: [
964
+ styles.emptyScroll,
965
+ isBuildMode ? styles.buildScroll : null,
966
+ scrollRunway.height ? {
967
+ paddingBottom: HOME_SCROLL_PADDING_BOTTOM + scrollRunway.height
968
+ } : null,
969
+ // No dock under the page: it runs to the screen's foot, top-aligned so the room made
970
+ // for the keys (the spacer below) never re-centres it and throws it up past them.
971
+ inlineComposer ? {
972
+ justifyContent: "flex-start",
973
+ paddingBottom: HOME_SCROLL_PADDING_BOTTOM + insets.bottom
974
+ } : null
975
+ ], keyboardShouldPersistTaps: "handled", keyboardDismissMode: Platform.OS === "ios" ? "interactive" : "on-drag", automaticallyAdjustKeyboardInsets: false, contentInsetAdjustmentBehavior: "never", showsVerticalScrollIndicator: false, children: [
976
+ /* @__PURE__ */ jsx(Pressable, { style: styles.dismissArea, onPress: dismissKeyboard, onLayout: handleHomeContentLayout, accessible: false, children: isBuildMode ? /* @__PURE__ */ jsxs(View, { style: styles.buildInner, children: [
977
+ /* @__PURE__ */ jsx(View, { ref: anchorRef, collapsable: false, onLayout: measureSkyAnchor, style: styles.anchor, children: /* @__PURE__ */ jsx(BuildKindPicker, { kindGroups, activeKind: galleryKindId, onPickKind: handlePickKind, onTryPrompt: handleTryBuildPrompt, palette: buildColors, compact: keyboardVisible }) }),
978
+ keyboardVisible ? null : /* @__PURE__ */ jsx(BuildTemplatesSection, { enabled: true, group: galleryGroup, orgName: effectiveOrgName, isDark, palette: buildColors, selectedTemplateId: (_m = selectedBuildTemplate == null ? void 0 : selectedBuildTemplate.id) != null ? _m : null, onUseTemplate: handleUseBuildTemplate, kind: galleryKindId, title: galleryKindId ? buildKind(galleryKindId).title : void 0, tabs: /* @__PURE__ */ jsx(BuildGroupTabs, { kindLabel: galleryKindId ? buildKind(galleryKindId).label : "Template", groups: galleryKindGroups, activeGroup: galleryGroup, onPickGroup: handleSelectTemplateGroup, palette: buildColors }), onDescribeOwn: focusComposer })
979
+ ] }) : /* @__PURE__ */ jsx(EmptyStateSection, { isDark, secondaryTextColor, primaryTextColor, onInjectPrompt: handleInjectPrompt, onOpenRoute: handleOpenRoute, firstName, weather: homeWeather, skyPrimaryColor, skySecondaryColor, channelChip, freeCreditsOffer, needsYou, composer: composerBody, composerHint: composerMode(activeMode).hint, waiting: briefing.loaded ? briefing.cards.length : void 0, anchorRef, onAnchorLayout: measureSkyAnchor }) }),
980
+ inlineComposer && inlineKeysHeight > 0 ? /* @__PURE__ */ jsx(View, { style: {
981
+ height: inlineKeysHeight
982
+ } }) : null
983
+ ] }) }),
984
+ inlineComposer ? null : /* @__PURE__ */ jsx(KeyboardComposerDock, { closedInset: insets.bottom, onSwipeUp: () => {
828
985
  var _a2;
829
986
  return (_a2 = inputRef.current) == null ? void 0 : _a2.focus();
830
- }, onKeyboardLift: handleKeyboardLift, children: /* @__PURE__ */ jsxs(View, { style: [styles.composerInner, {
831
- width: contentMaxWidth
832
- }], children: [
833
- voiceError || composerAttachments.error ? /* @__PURE__ */ jsx(View, { style: [styles.voiceErrorBanner, {
834
- backgroundColor: isDark ? "#2b1a1d" : "#fef2f2",
835
- borderColor: isDark ? "#7f1d1d" : "#fecaca"
836
- }], children: /* @__PURE__ */ jsx(Text, { style: [styles.voiceErrorText, {
837
- color: isDark ? "#fecaca" : "#991b1b"
838
- }], children: voiceError || composerAttachments.error }) }) : null,
839
- showAudioRecorder ? /* @__PURE__ */ jsx(MicErrorBoundary, { onCancel: handleRecorderCancel, onError: handleRecorderError, children: /* @__PURE__ */ jsx(AudioRecorderPanel, { isDark, onTranscriptionComplete: handleTranscriptionComplete, onCancel: handleRecorderCancel, onError: handleRecorderError }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
840
- /* @__PURE__ */ jsx(ComposerAttachmentBar, { attachments: composerAttachments.pending, onRemove: composerAttachments.remove, isDark }),
841
- /* @__PURE__ */ jsx(InputToolBar, { inputConfig, leftCustomRender: modeSwitch, rightItems, templateButton, topContent: fill ? /* @__PURE__ */ jsx(PromptFillBar, { fill, isDark, onSelectBlank: handleSelectBlank, onPickAnswer: handlePickAnswer, onEditAll: handleEditAllFill, onCancel: handleCancelFill }) : blankHintLine != null ? blankHintLine : draftReadable ? /* @__PURE__ */ jsx(TemplateSuggestionBanner, { selectedLabel: selectedTemplateGroup ? (_l = bannerGroup == null ? void 0 : bannerGroup.label) != null ? _l : null : null, suggestedLabel: selectedTemplateGroup ? null : (_m = bannerGroup == null ? void 0 : bannerGroup.label) != null ? _m : null, description: bannerGroup == null ? void 0 : bannerGroup.description, isAnalyzing: analyzingQuery, onChange: () => {
842
- dismissKeyboard();
843
- setGroupPickerOpen(true);
844
- }, palette: buildColors }) : null, micSendButton }, composerEpoch)
845
- ] })
846
- ] }) })
987
+ }, onKeyboardLift: handleKeyboardLift, children: composerBody })
847
988
  ] }) }),
848
989
  attachMenu,
849
990
  /* @__PURE__ */ jsx(ChooseTemplateModal, { isOpen: groupPickerOpen, onClose: () => setGroupPickerOpen(false), templates: marketplaceTemplateGroups, selectedId: selectedTemplateGroup, suggestedId: suggestedGroupId, onSelect: (id) => {
@@ -851,6 +992,11 @@ function HomeScreenContent({
851
992
  setGroupPickerOpen(false);
852
993
  }, title: "Choose Template", isDark }),
853
994
  /* @__PURE__ */ jsx(ChatModelSheet, { visible: showModelSheet, isDark, orgName: effectiveOrgName, projectId: effectiveProjectId, onClose: () => setShowModelSheet(false) }),
995
+ /* @__PURE__ */ jsx(ConnectorSheet, { request: gmailConnect, scope: {
996
+ orgName: effectiveOrgName != null ? effectiveOrgName : void 0,
997
+ projectId: effectiveProjectId != null ? effectiveProjectId : void 0,
998
+ environmentTag: tagId != null ? tagId : void 0
999
+ }, isDark, onClose: () => setGmailConnect(null), onConnected: handleGmailConnected }),
854
1000
  /* @__PURE__ */ jsx(ConnectAppsSheet, { visible: connectSheet !== null, isDark, initialChannel: connectSheet == null ? void 0 : connectSheet.channel, ensureChatSessionId, onClose: closeConnectSheet })
855
1001
  ] });
856
1002
  }
@@ -858,10 +1004,8 @@ const styles = StyleSheet.create({
858
1004
  // Behind HomeSky: what a pull past the top shows instead of the white page.
859
1005
  skyOverscroll: {
860
1006
  position: "absolute",
861
- top: 0,
862
1007
  left: 0,
863
- right: 0,
864
- height: "50%"
1008
+ right: 0
865
1009
  },
866
1010
  blankHint: {
867
1011
  fontSize: 13,
@@ -888,10 +1032,6 @@ const styles = StyleSheet.create({
888
1032
  justifyContent: "flex-start",
889
1033
  paddingTop: 20
890
1034
  },
891
- // With the keys up, what fits sits on the composer rather than floating mid-page.
892
- emptyScrollKeyboardOpen: {
893
- justifyContent: "flex-end"
894
- },
895
1035
  homeInner: {
896
1036
  alignItems: "flex-start",
897
1037
  width: "100%",
@@ -909,6 +1049,29 @@ const styles = StyleSheet.create({
909
1049
  anchor: {
910
1050
  width: "100%"
911
1051
  },
1052
+ // The composer in the page: the home's full width, raised off the sky like the web's card.
1053
+ inlineComposerWrap: {
1054
+ width: "100%",
1055
+ marginTop: 22
1056
+ },
1057
+ composerInline: {
1058
+ width: "100%",
1059
+ borderRadius: 24,
1060
+ shadowColor: "#0f172a",
1061
+ shadowOpacity: 0.12,
1062
+ shadowRadius: 18,
1063
+ shadowOffset: {
1064
+ width: 0,
1065
+ height: 8
1066
+ },
1067
+ elevation: 4
1068
+ },
1069
+ composerHint: {
1070
+ marginTop: 10,
1071
+ fontSize: 13,
1072
+ lineHeight: 18,
1073
+ textAlign: "center"
1074
+ },
912
1075
  composerInner: {
913
1076
  paddingHorizontal: 14,
914
1077
  paddingTop: 4