@adminide-stack/yantra-mobile 12.0.195 → 12.0.196-alpha.1

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
@@ -0,0 +1,396 @@
1
+ /**
2
+ * The user's own images and logos (canvas designs, generated images, uploads) for a site:
3
+ * listing parsers, the `[Asset]` turn note, and the `#webbuilder_asset=` receiving link. Pure.
4
+ *
5
+ * Port of web `assets/myAssets.ts` (0.20.20). Hermes-safe: no `.at()`/`.flat()`, no `atob`/`btoa`/
6
+ * `TextDecoder` (the base64url payload is decoded by hand), the query keys read without iterating
7
+ * `URLSearchParams`.
8
+ */
9
+ import { toBase64Url } from '../../codezenHandoff';
10
+
11
+ export type AssetRole = 'logo' | 'image';
12
+
13
+ export const ASSET_ROLES: readonly AssetRole[] = ['logo', 'image'];
14
+
15
+ /** One picked asset riding a turn. */
16
+ export interface TurnAsset {
17
+ role: AssetRole;
18
+ name: string;
19
+ url: string;
20
+ }
21
+
22
+ /** One tile in the picker. */
23
+ export interface AssetItem {
24
+ id: string;
25
+ name: string;
26
+ url: string;
27
+ thumbUrl?: string;
28
+ /** A CDN URL that never expires (safe to keep in the brand kit). */
29
+ permanent: boolean;
30
+ source: 'design' | 'generated';
31
+ format?: string;
32
+ updatedAt?: string;
33
+ /** A canvas design with no stored preview: rendered when picked (`url` is its thumbnail or ''). */
34
+ artifactId?: string;
35
+ needsRender?: boolean;
36
+ }
37
+
38
+ export interface AssetPage {
39
+ items: AssetItem[];
40
+ /** Opaque; null when there is nothing more to load. */
41
+ cursor: string | null;
42
+ }
43
+
44
+ const IMAGE_EXT_RE = /\.(png|jpe?g|gif|webp|svg|avif)$/i;
45
+ const SIGNED_PARAM_RE =
46
+ /^(x-goog-signature|x-goog-expires|x-amz-signature|x-amz-expires|signature|expires|sig|se|token)$/i;
47
+
48
+ const clip = (s: string, n: number) => (s.length > n ? s.slice(0, n) : s);
49
+
50
+ function httpsUrl(raw: unknown): URL | null {
51
+ if (typeof raw !== 'string' || !raw.trim() || raw.length > 4096) return null;
52
+ try {
53
+ const u = new URL(raw.trim());
54
+ return u.protocol === 'https:' && !u.username && !u.password ? u : null;
55
+ } catch {
56
+ return null;
57
+ }
58
+ }
59
+
60
+ /** The query's parameter names (no `URLSearchParams` iteration, which some polyfills lack). */
61
+ function queryKeys(u: URL): string[] {
62
+ const search = String(u.search || '').replace(/^\?/, '');
63
+ if (!search) return [];
64
+ return search.split('&').map((part) => {
65
+ const key = part.split('=')[0].replace(/\+/g, ' ');
66
+ try {
67
+ return decodeURIComponent(key);
68
+ } catch {
69
+ return key;
70
+ }
71
+ });
72
+ }
73
+
74
+ export function isImageKey(key: string | null | undefined): boolean {
75
+ const path = String(key ?? '').split(/[?#]/)[0];
76
+ return IMAGE_EXT_RE.test(path);
77
+ }
78
+
79
+ /** https and not presigned: a signed URL expires, so it may only ride one turn. */
80
+ export function isPermanentAssetUrl(raw: string | null | undefined): boolean {
81
+ const u = httpsUrl(raw);
82
+ if (!u) return false;
83
+ return !queryKeys(u).some((key) => SIGNED_PARAM_RE.test(key));
84
+ }
85
+
86
+ /** The file name at the end of a URL or key, decoded; `fallback` when there is none. */
87
+ export function assetNameFromUrl(raw: string, fallback = 'image'): string {
88
+ const path = String(raw || '').split(/[?#]/)[0];
89
+ const last = path.split('/').filter(Boolean).pop() || '';
90
+ try {
91
+ return clip(decodeURIComponent(last), 120) || fallback;
92
+ } catch {
93
+ return clip(last, 120) || fallback;
94
+ }
95
+ }
96
+
97
+ function cleanName(name: string): string {
98
+ return clip(
99
+ String(name || '')
100
+ .replace(/["\r\n\t]+/g, ' ')
101
+ .replace(/\s+/g, ' ')
102
+ .trim(),
103
+ 120,
104
+ );
105
+ }
106
+
107
+ /** A clean asset, or null when the role or URL is not acceptable. */
108
+ export function sanitizeTurnAsset(raw: unknown): TurnAsset | null {
109
+ if (!raw || typeof raw !== 'object') return null;
110
+ const r = raw as Record<string, unknown>;
111
+ const role = ASSET_ROLES.includes(r.role as AssetRole) ? (r.role as AssetRole) : null;
112
+ const u = httpsUrl(r.url);
113
+ if (!role || !u) return null;
114
+ const url = u.toString();
115
+ return { role, url, name: cleanName(String(r.name ?? '')) || assetNameFromUrl(url) };
116
+ }
117
+
118
+ /** `[Asset] role=logo name="acme.png" url=https://…` */
119
+ export function assetNote(asset: TurnAsset): string {
120
+ return `[Asset] role=${asset.role} name="${cleanName(asset.name)}" url=${asset.url}`;
121
+ }
122
+
123
+ export function assetNotes(assets: ReadonlyArray<TurnAsset> | null | undefined): string[] {
124
+ return (assets ?? [])
125
+ .map(sanitizeTurnAsset)
126
+ .filter((a): a is TurnAsset => Boolean(a))
127
+ .map(assetNote);
128
+ }
129
+
130
+ export function mimeTypeForAsset(url: string): string {
131
+ const ext = (/\.([a-z0-9]+)$/i.exec(String(url).split(/[?#]/)[0])?.[1] || '').toLowerCase();
132
+ if (ext === 'jpg' || ext === 'jpeg') return 'image/jpeg';
133
+ if (ext === 'svg') return 'image/svg+xml';
134
+ if (['png', 'gif', 'webp', 'avif'].includes(ext)) return `image/${ext}`;
135
+ return 'image/png';
136
+ }
137
+
138
+ /* ── listings ── */
139
+
140
+ function record(raw: unknown): Record<string, unknown> {
141
+ return raw && typeof raw === 'object' && !Array.isArray(raw) ? (raw as Record<string, unknown>) : {};
142
+ }
143
+
144
+ function designName(title: unknown, url: string): string {
145
+ const name = cleanName(String(title ?? ''));
146
+ if (name) return name;
147
+ return url ? assetNameFromUrl(url, 'design') : 'Untitled design';
148
+ }
149
+
150
+ /** `YANTRA_CAROUSEL_LIST_DESIGNS` output -> tiles (designs without a preview are rendered when picked). */
151
+ export function designsFromListing(raw: unknown): { items: AssetItem[]; hasMore: boolean; nextOffset: number | null } {
152
+ const data = record(raw);
153
+ const designs = Array.isArray(data.designs) ? data.designs : [];
154
+ const items: AssetItem[] = [];
155
+ designs.forEach((d) => {
156
+ const r = record(d);
157
+ const previews = Array.isArray(r.previewUrls) ? r.previewUrls : [];
158
+ const preview = previews.map(httpsUrl).find(Boolean);
159
+ const thumb = httpsUrl(r.thumbUrl);
160
+ const id = String(r.artifactId ?? '').trim();
161
+ if (!id) return;
162
+ const url = (preview ?? thumb)?.toString() ?? '';
163
+ items.push({
164
+ id: `design:${id}`,
165
+ name: designName(r.title, url),
166
+ url,
167
+ ...(thumb ? { thumbUrl: thumb.toString() } : {}),
168
+ permanent: Boolean(preview) && isPermanentAssetUrl(url),
169
+ source: 'design',
170
+ ...(preview ? {} : { artifactId: id, needsRender: true }),
171
+ ...(typeof r.format === 'string' && r.format ? { format: r.format } : {}),
172
+ ...(typeof r.updatedAt === 'string' ? { updatedAt: r.updatedAt } : {}),
173
+ });
174
+ });
175
+ items.sort((a, b) => Number(b.format === 'logo') - Number(a.format === 'logo'));
176
+ const hasMore = data.hasMore === true;
177
+ const next = typeof data.nextOffset === 'number' && Number.isFinite(data.nextOffset) ? data.nextOffset : null;
178
+ return { items, hasMore: hasMore && next !== null, nextOffset: hasMore ? next : null };
179
+ }
180
+
181
+ /** `YANTRA_CAROUSEL_RENDER_DESIGN` output -> page 1's URL, permanent only when the previews are durable. */
182
+ export function renderedDesign(raw: unknown): { url: string; permanent: boolean } | null {
183
+ const data = record(raw);
184
+ const urls = Array.isArray(data.previewUrls) ? data.previewUrls : [];
185
+ const u = urls.map(httpsUrl).find(Boolean);
186
+ if (!u) return null;
187
+ const url = u.toString();
188
+ return { url, permanent: data.previewsDurable === true && isPermanentAssetUrl(url) };
189
+ }
190
+
191
+ /** `YANTRA_STORAGE_LIST_OBJECTS` output -> image tiles; prefers the CDN URL over the signed one. */
192
+ export function assetsFromStorageObjects(raw: unknown): { items: AssetItem[]; cursor: string | null } {
193
+ const data = record(raw);
194
+ const page = record(data.storageObjects ?? data);
195
+ const list = Array.isArray(page.items) ? page.items : [];
196
+ const items: AssetItem[] = [];
197
+ list.forEach((it) => {
198
+ const r = record(it);
199
+ const key = String(r.key ?? '');
200
+ if (r.isFolder === true || !isImageKey(key)) return;
201
+ const cdn = httpsUrl(r.publicUrl);
202
+ const signed = httpsUrl(r.url);
203
+ const chosen = cdn ?? signed;
204
+ if (!chosen) return;
205
+ const url = chosen.toString();
206
+ items.push({
207
+ id: `key:${key}`,
208
+ name: assetNameFromUrl(key),
209
+ url,
210
+ permanent: Boolean(cdn) || isPermanentAssetUrl(url),
211
+ source: 'generated',
212
+ ...(typeof r.lastModified === 'string' ? { updatedAt: r.lastModified } : {}),
213
+ });
214
+ });
215
+ const token =
216
+ typeof page.nextContinuationToken === 'string' && page.nextContinuationToken
217
+ ? page.nextContinuationToken
218
+ : null;
219
+ return { items, cursor: token };
220
+ }
221
+
222
+ /** `YANTRA_STORAGE_LIST_FILES` output -> image tiles (rows whose url is a bare key are skipped). */
223
+ export function assetsFromFilesInfo(raw: unknown): { items: AssetItem[]; rows: number } {
224
+ const data = record(raw);
225
+ const page = record(data.filesInfo ?? data);
226
+ const rows = Array.isArray(page.data) ? page.data : [];
227
+ const items: AssetItem[] = [];
228
+ rows.forEach((row) => {
229
+ const r = record(row);
230
+ const u = httpsUrl(r.url);
231
+ const mime = String(r.mimeType ?? '');
232
+ if (!u) return;
233
+ const url = u.toString();
234
+ if (!mime.startsWith('image/') && !isImageKey(u.pathname)) return;
235
+ items.push({
236
+ id: `key:${u.pathname.replace(/^\/+/, '')}`,
237
+ name: cleanName(String(r.name ?? '')) || assetNameFromUrl(url),
238
+ url,
239
+ permanent: isPermanentAssetUrl(url),
240
+ source: 'generated',
241
+ ...(typeof r.createdAt === 'string' ? { updatedAt: r.createdAt } : {}),
242
+ });
243
+ });
244
+ return { items, rows: rows.length };
245
+ }
246
+
247
+ function sameObject(a: AssetItem, b: AssetItem): boolean {
248
+ if (a.id === b.id) return true;
249
+ if (!a.id.startsWith('key:') || !b.id.startsWith('key:')) return false;
250
+ // A URL path may carry the bucket in front of the key.
251
+ const ka = a.id.slice(4);
252
+ const kb = b.id.slice(4);
253
+ return ka.endsWith(`/${kb}`) || kb.endsWith(`/${ka}`);
254
+ }
255
+
256
+ /** Merge listings newest first, dropping the same object seen twice (keeps the permanent copy). */
257
+ export function mergeAssetLists(...lists: ReadonlyArray<ReadonlyArray<AssetItem>>): AssetItem[] {
258
+ const out: AssetItem[] = [];
259
+ lists.forEach((list) =>
260
+ list.forEach((item) => {
261
+ const i = out.findIndex((seen) => sameObject(seen, item));
262
+ if (i < 0) out.push(item);
263
+ else if (!out[i].permanent && item.permanent) out[i] = item;
264
+ }),
265
+ );
266
+ const time = (i: AssetItem) => (i.updatedAt ? Date.parse(i.updatedAt) || 0 : 0);
267
+ return out.sort((a, b) => time(b) - time(a));
268
+ }
269
+
270
+ /* ── receiving link ── */
271
+
272
+ export const WEBBUILDER_ASSET_PARAM = 'webbuilder_asset';
273
+ export const ASSET_LINK_MAX_CHARS = 4096;
274
+
275
+ export interface WebbuilderAssetLink {
276
+ v: 1;
277
+ url: string;
278
+ role: AssetRole;
279
+ name?: string;
280
+ source: 'canvas';
281
+ }
282
+
283
+ const B64URL = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
284
+
285
+ /** base64url (no padding) -> UTF-8 text, by hand (Hermes may lack `atob` and `TextDecoder`). */
286
+ export function fromBase64Url(payload: string): string {
287
+ const bytes: number[] = [];
288
+ let bits = 0;
289
+ let acc = 0;
290
+ for (let i = 0; i < payload.length; i += 1) {
291
+ const v = B64URL.indexOf(payload[i]);
292
+ if (v < 0) throw new Error('not base64url');
293
+ acc = (acc << 6) | v;
294
+ bits += 6;
295
+ if (bits >= 8) {
296
+ bits -= 8;
297
+ bytes.push((acc >> bits) & 0xff);
298
+ }
299
+ }
300
+ let out = '';
301
+ let i = 0;
302
+ while (i < bytes.length) {
303
+ const b = bytes[i];
304
+ let code = b;
305
+ let extra = 0;
306
+ if (b >= 0xf0) {
307
+ code = b & 0x07;
308
+ extra = 3;
309
+ } else if (b >= 0xe0) {
310
+ code = b & 0x0f;
311
+ extra = 2;
312
+ } else if (b >= 0xc0) {
313
+ code = b & 0x1f;
314
+ extra = 1;
315
+ }
316
+ for (let k = 1; k <= extra; k += 1) code = (code << 6) | ((bytes[i + k] ?? 0) & 0x3f);
317
+ out += String.fromCodePoint(code);
318
+ i += extra + 1;
319
+ }
320
+ return out;
321
+ }
322
+
323
+ /** `webbuilder_asset=<payload>` (no leading `#`). */
324
+ export function encodeWebbuilderAsset(link: WebbuilderAssetLink): string {
325
+ return `${WEBBUILDER_ASSET_PARAM}=${toBase64Url(JSON.stringify(link))}`;
326
+ }
327
+
328
+ export function validateAssetLink(raw: unknown): WebbuilderAssetLink | null {
329
+ const r = record(raw);
330
+ if (r.v !== 1 || r.source !== 'canvas') return null;
331
+ const asset = sanitizeTurnAsset(r);
332
+ if (!asset) return null;
333
+ const name = typeof r.name === 'string' && r.name.trim() ? cleanName(r.name) : undefined;
334
+ return { v: 1, url: asset.url, role: asset.role, ...(name ? { name } : {}), source: 'canvas' };
335
+ }
336
+
337
+ /** The asset in a URL fragment, or null. */
338
+ export function decodeWebbuilderAsset(hashOrUrl: string | null | undefined): WebbuilderAssetLink | null {
339
+ if (!hashOrUrl) return null;
340
+ const hashAt = hashOrUrl.indexOf('#');
341
+ const fragment = hashAt >= 0 ? hashOrUrl.slice(hashAt + 1) : hashOrUrl;
342
+ const payload = fragment
343
+ .split('&')
344
+ .map((part) => part.split('='))
345
+ .find(([key]) => key === WEBBUILDER_ASSET_PARAM)?.[1];
346
+ if (!payload || payload.length > ASSET_LINK_MAX_CHARS || !/^[A-Za-z0-9_-]+$/.test(payload)) return null;
347
+ try {
348
+ return validateAssetLink(JSON.parse(fromBase64Url(payload)));
349
+ } catch {
350
+ return null;
351
+ }
352
+ }
353
+
354
+ /**
355
+ * The asset handed to this page (`#webbuilder_asset=` or `?asset_url=&asset_role=`) and the URL
356
+ * without it. `asset` is null when there is none or it is not valid; `cleanUrl` is null when the
357
+ * URL needs no change.
358
+ */
359
+ export function assetFromLocation(href: string): { asset: WebbuilderAssetLink | null; cleanUrl: string | null } {
360
+ let u: URL;
361
+ try {
362
+ u = new URL(href);
363
+ } catch {
364
+ return { asset: null, cleanUrl: null };
365
+ }
366
+ let asset: WebbuilderAssetLink | null = null;
367
+ let changed = false;
368
+ const hash = u.hash.replace(/^#/, '');
369
+ if (hash.split('&').some((p) => p.startsWith(`${WEBBUILDER_ASSET_PARAM}=`))) {
370
+ asset = decodeWebbuilderAsset(hash);
371
+ const rest = hash.split('&').filter((p) => !p.startsWith(`${WEBBUILDER_ASSET_PARAM}=`));
372
+ u.hash = rest.length ? `#${rest.join('&')}` : '';
373
+ changed = true;
374
+ }
375
+ if (u.searchParams.has('asset_url')) {
376
+ if (!asset) {
377
+ asset = validateAssetLink({
378
+ v: 1,
379
+ source: 'canvas',
380
+ url: u.searchParams.get('asset_url'),
381
+ role: u.searchParams.get('asset_role') || 'image',
382
+ name: u.searchParams.get('asset_name') || undefined,
383
+ });
384
+ }
385
+ u.searchParams.delete('asset_url');
386
+ u.searchParams.delete('asset_role');
387
+ u.searchParams.delete('asset_name');
388
+ changed = true;
389
+ }
390
+ return { asset, cleanUrl: changed ? u.toString() : null };
391
+ }
392
+
393
+ /** The composer text a received or picked asset starts with. */
394
+ export function assetPrompt(role: AssetRole): string {
395
+ return role === 'logo' ? 'Use this as the site logo.' : 'Add this image to the site.';
396
+ }
@@ -0,0 +1,46 @@
1
+ const KINDS = {
2
+ h1: "Heading",
3
+ h2: "Heading",
4
+ h3: "Heading",
5
+ h4: "Heading",
6
+ h5: "Heading",
7
+ h6: "Heading",
8
+ p: "Paragraph",
9
+ span: "Text",
10
+ strong: "Text",
11
+ em: "Text",
12
+ b: "Text",
13
+ i: "Text",
14
+ small: "Text",
15
+ label: "Label",
16
+ blockquote: "Quote",
17
+ a: "Link",
18
+ button: "Button",
19
+ img: "Image",
20
+ picture: "Image",
21
+ svg: "Icon",
22
+ video: "Video",
23
+ ul: "List",
24
+ ol: "List",
25
+ li: "List item",
26
+ nav: "Menu",
27
+ header: "Header",
28
+ footer: "Footer",
29
+ section: "Section",
30
+ article: "Card",
31
+ aside: "Sidebar",
32
+ main: "Page content",
33
+ form: "Form",
34
+ input: "Input",
35
+ textarea: "Text box",
36
+ select: "Dropdown",
37
+ table: "Table",
38
+ figure: "Figure",
39
+ figcaption: "Caption",
40
+ hr: "Divider",
41
+ div: "Box"
42
+ };
43
+ function elementKind(tagName) {
44
+ var _a;
45
+ return (_a = KINDS[(tagName || "").toLowerCase()]) != null ? _a : "Element";
46
+ }export{elementKind};//# sourceMappingURL=elementName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elementName.js","sources":["../../../../../src/features/webbuilder/web/canvas/elementName.ts"],"sourcesContent":["/** Plain names for page elements, shown to people instead of tags and CSS selectors (same as the editor's). Pure. */\nconst KINDS: Record<string, string> = {\n h1: 'Heading',\n h2: 'Heading',\n h3: 'Heading',\n h4: 'Heading',\n h5: 'Heading',\n h6: 'Heading',\n p: 'Paragraph',\n span: 'Text',\n strong: 'Text',\n em: 'Text',\n b: 'Text',\n i: 'Text',\n small: 'Text',\n label: 'Label',\n blockquote: 'Quote',\n a: 'Link',\n button: 'Button',\n img: 'Image',\n picture: 'Image',\n svg: 'Icon',\n video: 'Video',\n ul: 'List',\n ol: 'List',\n li: 'List item',\n nav: 'Menu',\n header: 'Header',\n footer: 'Footer',\n section: 'Section',\n article: 'Card',\n aside: 'Sidebar',\n main: 'Page content',\n form: 'Form',\n input: 'Input',\n textarea: 'Text box',\n select: 'Dropdown',\n table: 'Table',\n figure: 'Figure',\n figcaption: 'Caption',\n hr: 'Divider',\n div: 'Box',\n};\n\nexport function elementKind(tagName: string | null | undefined): string {\n return KINDS[(tagName || '').toLowerCase()] ?? 'Element';\n}\n\n/** \"Heading “Our plants”\": the kind, plus a short quote of its text when it has some. */\nexport function friendlyElementName(el: { tagName: string; text?: string | null }, maxText = 28): string {\n const kind = elementKind(el.tagName);\n const text = (el.text || '').replace(/\\s+/g, ' ').trim();\n if (!text) return kind;\n const short = text.length > maxText ? `${text.slice(0, maxText - 1).trimEnd()}…` : text;\n return `${kind} “${short}”`;\n}\n"],"names":[],"mappings":"AACA,MAAM,KAAgC,GAAA;AAAA,EACpC,EAAI,EAAA,SAAA;AAAA,EACJ,EAAI,EAAA,SAAA;AAAA,EACJ,EAAI,EAAA,SAAA;AAAA,EACJ,EAAI,EAAA,SAAA;AAAA,EACJ,EAAI,EAAA,SAAA;AAAA,EACJ,EAAI,EAAA,SAAA;AAAA,EACJ,CAAG,EAAA,WAAA;AA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hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
17
+ const BRIDGE_SOURCE = "yantra-ve";
18
+ const BRIDGE_VERSION = 1;
19
+ function isRec(value) {
20
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
21
+ }
22
+ function str(value, max = 2e4) {
23
+ if (typeof value !== "string") return void 0;
24
+ return value.length > max ? value.slice(0, max) : value;
25
+ }
26
+ function parseBridgeMessage(data) {
27
+ if (!isRec(data) || data.source !== BRIDGE_SOURCE) return null;
28
+ if (data.v !== void 0 && data.v !== BRIDGE_VERSION) return null;
29
+ switch (data.type) {
30
+ case "ready":
31
+ return {
32
+ type: "ready",
33
+ version: str(data.version, 100) || "",
34
+ capabilities: Array.isArray(data.capabilities) ? data.capabilities.filter((c) => typeof c === "string").slice(0, 50) : []
35
+ };
36
+ case "mode":
37
+ if (typeof data.enabled !== "boolean") return null;
38
+ return __spreadValues({
39
+ type: "mode",
40
+ enabled: data.enabled
41
+ }, typeof data.sourceTags === "boolean" ? {
42
+ sourceTags: data.sourceTags
43
+ } : {});
44
+ case "error": {
45
+ const message = str(data.message, 4e3);
46
+ if (!message) return null;
47
+ const origin = data.errorSource;
48
+ const source = origin === "console" || origin === "unhandledrejection" ? origin : "runtime";
49
+ const stack = str(data.stack, 8e3);
50
+ const url = str(data.url, 2e3);
51
+ return __spreadValues(__spreadValues({
52
+ type: "error",
53
+ message,
54
+ source
55
+ }, stack ? {
56
+ stack
57
+ } : {}), url ? {
58
+ url
59
+ } : {});
60
+ }
61
+ case "console": {
62
+ const message = str(data.message, 4e3);
63
+ if (!message) return null;
64
+ const lv = data.level;
65
+ const level = lv === "info" || lv === "warn" || lv === "error" ? lv : "log";
66
+ const stack = str(data.stack, 8e3);
67
+ return __spreadValues({
68
+ type: "console",
69
+ level,
70
+ message
71
+ }, stack ? {
72
+ stack
73
+ } : {});
74
+ }
75
+ case "network": {
76
+ const url = str(data.url, 2e3);
77
+ if (!url) return null;
78
+ const status = Number(data.status);
79
+ const statusText = str(data.statusText, 200);
80
+ const error = str(data.error, 500);
81
+ return __spreadValues(__spreadValues({
82
+ type: "network",
83
+ method: (str(data.method, 16) || "GET").toUpperCase(),
84
+ url,
85
+ status: Number.isFinite(status) && status > 0 ? Math.trunc(status) : 0
86
+ }, statusText ? {
87
+ statusText
88
+ } : {}), error ? {
89
+ error
90
+ } : {});
91
+ }
92
+ default:
93
+ return null;
94
+ }
95
+ }export{BRIDGE_SOURCE,BRIDGE_VERSION,parseBridgeMessage};//# sourceMappingURL=visualEditorBridge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visualEditorBridge.js","sources":["../../../../../src/features/webbuilder/web/canvas/visualEditorBridge.ts"],"sourcesContent":["/**\n * Visual editor bridge messages - the console's part of web `canvas/visualEditorBridge.ts` (0.20.20):\n * the `ready` / `mode` / `error` / `console` / `network` messages and their guard. The phone has no\n * visual editor yet, so selection, changes, point/scroll and tools are not ported here. Pure.\n *\n * Every message is `{ source: 'yantra-ve', v: 1, type, ...payload }`. On the phone the page posts it\n * through `window.ReactNativeWebView` (see `previewConsoleScript.ts`), never from another frame.\n */\n\nexport const BRIDGE_SOURCE = 'yantra-ve';\nexport const BRIDGE_VERSION = 1;\n\nexport type BridgeInbound =\n | { type: 'ready'; version: string; capabilities: string[] }\n | { type: 'mode'; enabled: boolean; sourceTags?: boolean }\n | {\n type: 'error';\n message: string;\n stack?: string;\n source: 'runtime' | 'console' | 'unhandledrejection';\n url?: string;\n }\n | { type: 'console'; level: 'log' | 'info' | 'warn' | 'error'; message: string; stack?: string }\n | { type: 'network'; method: string; url: string; status: number; statusText?: string; error?: string };\n\ntype Rec = Record<string, unknown>;\n\nfunction isRec(value: unknown): value is Rec {\n return Boolean(value) && typeof value === 'object' && !Array.isArray(value);\n}\n\nfunction str(value: unknown, max = 20_000): string | undefined {\n if (typeof value !== 'string') return undefined;\n return value.length > max ? value.slice(0, max) : value;\n}\n\n/** Validate an inbound message's DATA. Null for anything that is not a well-formed v1 bridge message. */\nexport function parseBridgeMessage(data: unknown): BridgeInbound | null {\n if (!isRec(data) || data.source !== BRIDGE_SOURCE) return null;\n if (data.v !== undefined && data.v !== BRIDGE_VERSION) return null;\n switch (data.type) {\n case 'ready':\n return {\n type: 'ready',\n version: str(data.version, 100) || '',\n capabilities: Array.isArray(data.capabilities)\n ? data.capabilities.filter((c): c is string => typeof c === 'string').slice(0, 50)\n : [],\n };\n case 'mode':\n if (typeof data.enabled !== 'boolean') return null;\n return {\n type: 'mode',\n enabled: data.enabled,\n ...(typeof data.sourceTags === 'boolean' ? { sourceTags: data.sourceTags } : {}),\n };\n case 'error': {\n const message = str(data.message, 4000);\n if (!message) return null;\n // Spec §4: the error kind rides as `errorSource` (`source` is the envelope).\n const origin = data.errorSource;\n const source = origin === 'console' || origin === 'unhandledrejection' ? origin : 'runtime';\n const stack = str(data.stack, 8000);\n const url = str(data.url, 2000);\n return {\n type: 'error',\n message,\n source,\n ...(stack ? { stack } : {}),\n ...(url ? { url } : {}),\n };\n }\n case 'console': {\n const message = str(data.message, 4000);\n if (!message) return null;\n const lv = data.level;\n const level = lv === 'info' || lv === 'warn' || lv === 'error' ? lv : 'log';\n const stack = str(data.stack, 8000);\n return { type: 'console', level, message, ...(stack ? { stack } : {}) };\n }\n case 'network': {\n const url = str(data.url, 2000);\n if (!url) return null;\n const status = Number(data.status);\n const statusText = str(data.statusText, 200);\n const error = str(data.error, 500);\n return {\n type: 'network',\n method: (str(data.method, 16) || 'GET').toUpperCase(),\n url,\n status: Number.isFinite(status) && status > 0 ? Math.trunc(status) : 0,\n ...(statusText ? { statusText } : {}),\n ...(error ? { error } : {}),\n };\n }\n default:\n return null;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AASO,MAAM,aAAgB,GAAA;AACtB,MAAM,cAAiB,GAAA;AA6B9B,SAAS,MAAM,KAA8B,EAAA;AAC3C,EAAO,OAAA,OAAA,CAAQ,KAAK,CAAK,IAAA,OAAO,UAAU,QAAY,IAAA,CAAC,KAAM,CAAA,OAAA,CAAQ,KAAK,CAAA;AAC5E;AACA,SAAS,GAAA,CAAI,KAAgB,EAAA,GAAA,GAAM,GAA4B,EAAA;AAC7D,EAAI,IAAA,OAAO,KAAU,KAAA,QAAA,EAAiB,OAAA,MAAA;AACtC,EAAA,OAAO,MAAM,MAAS,GAAA,GAAA,GAAM,MAAM,KAAM,CAAA,CAAA,EAAG,GAAG,CAAI,GAAA,KAAA;AACpD;AAGO,SAAS,mBAAmB,IAAqC,EAAA;AACtE,EAAA,IAAI,CAAC,KAAM,CAAA,IAAI,KAAK,IAAK,CAAA,MAAA,KAAW,eAAsB,OAAA,IAAA;AAC1D,EAAA,IAAI,KAAK,CAAM,KAAA,MAAA,IAAa,IAAK,CAAA,CAAA,KAAM,gBAAuB,OAAA,IAAA;AAC9D,EAAA,QAAQ,KAAK,IAAM;AAAA,IACjB,KAAK,OAAA;AACH,MAAO,OAAA;AAAA,QACL,IAAM,EAAA,OAAA;AAAA,QACN,OAAS,EAAA,GAAA,CAAI,IAAK,CAAA,OAAA,EAAS,GAAG,CAAK,IAAA,EAAA;AAAA,QACnC,cAAc,KAAM,CAAA,OAAA,CAAQ,KAAK,YAAY,CAAA,GAAI,KAAK,YAAa,CAAA,MAAA,CAAO,CAAC,CAAmB,KAAA,OAAO,MAAM,QAAQ,CAAA,CAAE,MAAM,CAAG,EAAA,EAAE,IAAI;AAAC,OACvI;AAAA,IACF,K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AAA,KAAA;AACtE,MAAA,MAAM,KAAQ,GAAA,GAAA,CAAI,IAAK,CAAA,KAAA,EAAO,GAAI,CAAA;AAClC,MAAO,OAAA,cAAA,CAAA;AAAA,QACL,IAAM,EAAA,SAAA;AAAA,QACN,KAAA;AAAA,QACA;AAAA,OAAA,EACI,KAAQ,GAAA;AAAA,QACV;AAAA,UACE,EAAC,CAAA;AAAA;AAET,IACF,KAAK,SACH,EAAA;AACE,MAAA,MAAM,GAAM,GAAA,GAAA,CAAI,IAAK,CAAA,GAAA,EAAK,GAAI,CAAA;AAC9B,MAAI,IAAA,CAAC,KAAY,OAAA,IAAA;AACjB,MAAM,MAAA,MAAA,GAAS,MAAO,CAAA,IAAA,CAAK,MAAM,CAAA;AACjC,MAAA,MAAM,UAAa,GAAA,GAAA,CAAI,IAAK,CAAA,UAAA,EAAY,GAAG,CAAA;AAC3C,MAAA,MAAM,KAAQ,GAAA,GAAA,CAAI,IAAK,CAAA,KAAA,EAAO,GAAG,CAAA;AACjC,MAAO,OAAA,cAAA,CAAA,cAAA,CAAA;AAAA,QACL,IAAM,EAAA,SAAA;AAAA,QACN,SAAS,GAAI,CAAA,IAAA,CAAK,QAAQ,EAAE,CAAA,IAAK,OAAO,WAAY,EAAA;AAAA,QACpD,GAAA;AAAA,QACA,MAAA,EAAQ,MAAO,CAAA,QAAA,CAAS,MAAM,CAAA,IAAK,SAAS,CAAI,GAAA,IAAA,CAAK,KAAM,CAAA,MAAM,CAAI,GAAA;AAAA,OAAA,EACjE,UAAa,GAAA;AAAA,QACf;AAAA,OACF,GAAI,EAAC,CAAA,EACD,KAAQ,GAAA;AAAA,QACV;AAAA,UACE,EAAC,CAAA;AAAA;AAET,IACF;AACE,MAAO,OAAA,IAAA;AAAA;AAEb"}
@@ -0,0 +1,24 @@
1
+ const MODE_NOTES = {
2
+ chat: "[Mode: chat] Discuss only: answer, explain, suggest. Do not create or change any sandbox, files or deployment in this turn.",
3
+ plan: '[Mode: plan] Plan only: reply with a short build plan (pages and sections, style, features, data) in markdown, then ask "Build this?". Do not create or change any sandbox in this turn.'
4
+ };
5
+ const clip = (s, n) => s.length > n ? `${s.slice(0, n - 1)}\u2026` : s;
6
+ function approvedPlanNote(plan) {
7
+ const p = String(plan != null ? plan : "").trim();
8
+ return p ? `[Approved plan] The user approved this plan. Build exactly this, ask nothing:
9
+ ${clip(p, 6e3)}` : null;
10
+ }
11
+ function withAgentNotes(text, opts = {}) {
12
+ const notes = [];
13
+ if (opts.mode && opts.mode !== "build") notes.push(MODE_NOTES[opts.mode]);
14
+ const plan = approvedPlanNote(opts.plan);
15
+ if (plan) notes.push(plan);
16
+ return notes.length ? `${text}
17
+
18
+ ${notes.join("\n")}` : text;
19
+ }
20
+ function designDirectionNote(d) {
21
+ if (!d) return null;
22
+ const palette = Object.entries(d.palette).filter(([, v]) => Boolean(v)).map(([k, v]) => `${k} ${v}`).join(", ");
23
+ return `[Style direction] "${d.name}": ${d.mood} Palette: ${palette}. Fonts: ${d.fonts.heading} / ${d.fonts.body}. Radius ${d.radius}, ${d.density} spacing, ${d.imagery} imagery.`;
24
+ }export{MODE_NOTES,approvedPlanNote,designDirectionNote,withAgentNotes};//# sourceMappingURL=agentTurn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentTurn.js","sources":["../../../../../src/features/webbuilder/web/chat/agentTurn.ts"],"sourcesContent":["/**\n * The mode, approved-plan and style-direction notes of web `chat/agentTurn.ts` (0.20.20), trimmed to\n * what the native composer sends. The agent chat only reads text: a Chat-mode turn and a plan build carry short\n * bracketed notes the skill knows (webbuilder-design-pro \"Notes from the surface\"), appended after\n * the person's words so the chat bubble strips them (`stripAgentNote`).\n */\nimport type { DesignDirection } from '../design/directions';\n\n/** \"Discuss only\" / \"plan only\" turns (Chat and Plan modes); Build is the default. */\nexport type AgentMode = 'build' | 'chat' | 'plan';\n\nexport const MODE_NOTES: Record<Exclude<AgentMode, 'build'>, string> = {\n chat: '[Mode: chat] Discuss only: answer, explain, suggest. Do not create or change any sandbox, files or deployment in this turn.',\n plan: '[Mode: plan] Plan only: reply with a short build plan (pages and sections, style, features, data) in markdown, then ask \"Build this?\". Do not create or change any sandbox in this turn.',\n};\n\nconst clip = (s: string, n: number) => (s.length > n ? `${s.slice(0, n - 1)}…` : s);\n\n/** The web's `props.plan` note: \"Build this plan\" builds exactly the approved plan. Null without a plan. */\nexport function approvedPlanNote(plan: string | null | undefined): string | null {\n const p = String(plan ?? '').trim();\n return p ? `[Approved plan] The user approved this plan. Build exactly this, ask nothing:\\n${clip(p, 6000)}` : null;\n}\n\n/** The turn's text with its notes after a blank line (web `useAgentChatLane`: `message += \\n\\n notes`). */\nexport function withAgentNotes(text: string, opts: { mode?: AgentMode; plan?: string | null } = {}): string {\n const notes: string[] = [];\n if (opts.mode && opts.mode !== 'build') notes.push(MODE_NOTES[opts.mode]);\n const plan = approvedPlanNote(opts.plan);\n if (plan) notes.push(plan);\n return notes.length ? `${text}\\n\\n${notes.join('\\n')}` : text;\n}\n\n/**\n * G4: the picked style direction as its `[Style direction]` note (web `agentTurnNotes`, the agent-chat\n * twin of `props.designDirection`). Null without a direction.\n */\nexport function designDirectionNote(d: DesignDirection | null | undefined): string | null {\n if (!d) return null;\n const palette = Object.entries(d.palette)\n .filter(([, v]) => Boolean(v))\n .map(([k, v]) => `${k} ${v}`)\n .join(', ');\n return `[Style direction] \"${d.name}\": ${d.mood} Palette: ${palette}. Fonts: ${d.fonts.heading} / ${d.fonts.body}. Radius ${d.radius}, ${d.density} spacing, ${d.imagery} imagery.`;\n}\n"],"names":[],"mappings":"AAUO,MAAM,UAA0D,GAAA;AAAA,EACrE,IAAM,EAAA,6HAAA;AAAA,EACN,IAAM,EAAA;AACR;AACA,MAAM,IAAO,GAAA,CAAC,CAAW,EAAA,CAAA,KAAc,EAAE,MAAS,GAAA,CAAA,GAAI,CAAG,EAAA,CAAA,CAAE,KAAM,CAAA,CAAA,EAAG,CAAI,GAAA,CAAC,CAAC,CAAM,MAAA,CAAA,GA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