@repzo/widget-react-native 1.0.0

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 (448) hide show
  1. package/README.md +482 -0
  2. package/lib/commonjs/agent-ui-blocks.js +159 -0
  3. package/lib/commonjs/agent-ui-blocks.js.map +1 -0
  4. package/lib/commonjs/api/client.js +267 -0
  5. package/lib/commonjs/api/client.js.map +1 -0
  6. package/lib/commonjs/api/realtime.js +193 -0
  7. package/lib/commonjs/api/realtime.js.map +1 -0
  8. package/lib/commonjs/api/sse-parser.js +58 -0
  9. package/lib/commonjs/api/sse-parser.js.map +1 -0
  10. package/lib/commonjs/controller.js +23 -0
  11. package/lib/commonjs/controller.js.map +1 -0
  12. package/lib/commonjs/device-id.js +75 -0
  13. package/lib/commonjs/device-id.js.map +1 -0
  14. package/lib/commonjs/events.js +49 -0
  15. package/lib/commonjs/events.js.map +1 -0
  16. package/lib/commonjs/i18n.js +106 -0
  17. package/lib/commonjs/i18n.js.map +1 -0
  18. package/lib/commonjs/index.js +98 -0
  19. package/lib/commonjs/index.js.map +1 -0
  20. package/lib/commonjs/locales.js +85 -0
  21. package/lib/commonjs/locales.js.map +1 -0
  22. package/lib/commonjs/package.json +1 -0
  23. package/lib/commonjs/push/push-notifications.js +208 -0
  24. package/lib/commonjs/push/push-notifications.js.map +1 -0
  25. package/lib/commonjs/state/use-widget-state.js +23 -0
  26. package/lib/commonjs/state/use-widget-state.js.map +1 -0
  27. package/lib/commonjs/state/widget-store.js +1682 -0
  28. package/lib/commonjs/state/widget-store.js.map +1 -0
  29. package/lib/commonjs/storage.js +147 -0
  30. package/lib/commonjs/storage.js.map +1 -0
  31. package/lib/commonjs/types.js +44 -0
  32. package/lib/commonjs/types.js.map +1 -0
  33. package/lib/commonjs/ui/WidgetProvider.js +404 -0
  34. package/lib/commonjs/ui/WidgetProvider.js.map +1 -0
  35. package/lib/commonjs/ui/components/AgentUiBlocks.js +864 -0
  36. package/lib/commonjs/ui/components/AgentUiBlocks.js.map +1 -0
  37. package/lib/commonjs/ui/components/Avatar.js +76 -0
  38. package/lib/commonjs/ui/components/Avatar.js.map +1 -0
  39. package/lib/commonjs/ui/components/ConversationRow.js +155 -0
  40. package/lib/commonjs/ui/components/ConversationRow.js.map +1 -0
  41. package/lib/commonjs/ui/components/ErrorBoundary.js +44 -0
  42. package/lib/commonjs/ui/components/ErrorBoundary.js.map +1 -0
  43. package/lib/commonjs/ui/components/Gradient.js +168 -0
  44. package/lib/commonjs/ui/components/Gradient.js.map +1 -0
  45. package/lib/commonjs/ui/components/Launcher.js +125 -0
  46. package/lib/commonjs/ui/components/Launcher.js.map +1 -0
  47. package/lib/commonjs/ui/components/Markdown.js +257 -0
  48. package/lib/commonjs/ui/components/Markdown.js.map +1 -0
  49. package/lib/commonjs/ui/components/OutboundMessageCard.js +157 -0
  50. package/lib/commonjs/ui/components/OutboundMessageCard.js.map +1 -0
  51. package/lib/commonjs/ui/components/WidgetPanel.js +131 -0
  52. package/lib/commonjs/ui/components/WidgetPanel.js.map +1 -0
  53. package/lib/commonjs/ui/components/icons.js +383 -0
  54. package/lib/commonjs/ui/components/icons.js.map +1 -0
  55. package/lib/commonjs/ui/hooks/use-keyboard-overlap.js +113 -0
  56. package/lib/commonjs/ui/hooks/use-keyboard-overlap.js.map +1 -0
  57. package/lib/commonjs/ui/hooks/use-reduce-motion.js +38 -0
  58. package/lib/commonjs/ui/hooks/use-reduce-motion.js.map +1 -0
  59. package/lib/commonjs/ui/hooks/use-widget-insets.js +41 -0
  60. package/lib/commonjs/ui/hooks/use-widget-insets.js.map +1 -0
  61. package/lib/commonjs/ui/screens/chat/ChatView.js +590 -0
  62. package/lib/commonjs/ui/screens/chat/ChatView.js.map +1 -0
  63. package/lib/commonjs/ui/screens/chat/ChatView.styles.js +362 -0
  64. package/lib/commonjs/ui/screens/chat/ChatView.styles.js.map +1 -0
  65. package/lib/commonjs/ui/screens/chat/ChatView.types.js +6 -0
  66. package/lib/commonjs/ui/screens/chat/ChatView.types.js.map +1 -0
  67. package/lib/commonjs/ui/screens/conversations/ConversationsList.js +150 -0
  68. package/lib/commonjs/ui/screens/conversations/ConversationsList.js.map +1 -0
  69. package/lib/commonjs/ui/screens/conversations/ConversationsList.styles.js +118 -0
  70. package/lib/commonjs/ui/screens/conversations/ConversationsList.styles.js.map +1 -0
  71. package/lib/commonjs/ui/screens/conversations/ConversationsList.types.js +6 -0
  72. package/lib/commonjs/ui/screens/conversations/ConversationsList.types.js.map +1 -0
  73. package/lib/commonjs/ui/screens/home/HomeView.js +336 -0
  74. package/lib/commonjs/ui/screens/home/HomeView.js.map +1 -0
  75. package/lib/commonjs/ui/screens/home/HomeView.styles.js +245 -0
  76. package/lib/commonjs/ui/screens/home/HomeView.styles.js.map +1 -0
  77. package/lib/commonjs/ui/screens/home/HomeView.types.js +6 -0
  78. package/lib/commonjs/ui/screens/home/HomeView.types.js.map +1 -0
  79. package/lib/commonjs/ui/screens/home/greeting.js +49 -0
  80. package/lib/commonjs/ui/screens/home/greeting.js.map +1 -0
  81. package/lib/commonjs/ui/screens/pre-chat/PreChatForm.js +229 -0
  82. package/lib/commonjs/ui/screens/pre-chat/PreChatForm.js.map +1 -0
  83. package/lib/commonjs/ui/screens/pre-chat/PreChatForm.styles.js +125 -0
  84. package/lib/commonjs/ui/screens/pre-chat/PreChatForm.styles.js.map +1 -0
  85. package/lib/commonjs/ui/screens/pre-chat/PreChatForm.types.js +6 -0
  86. package/lib/commonjs/ui/screens/pre-chat/PreChatForm.types.js.map +1 -0
  87. package/lib/commonjs/ui/styles/global.js +55 -0
  88. package/lib/commonjs/ui/styles/global.js.map +1 -0
  89. package/lib/commonjs/ui/styles/theme.js +148 -0
  90. package/lib/commonjs/ui/styles/theme.js.map +1 -0
  91. package/lib/commonjs/ui/utils/conversations.js +125 -0
  92. package/lib/commonjs/ui/utils/conversations.js.map +1 -0
  93. package/lib/commonjs/ui/utils/html.js +44 -0
  94. package/lib/commonjs/ui/utils/html.js.map +1 -0
  95. package/lib/commonjs/ui/utils/native-gradient.js +65 -0
  96. package/lib/commonjs/ui/utils/native-gradient.js.map +1 -0
  97. package/lib/commonjs/ui/utils/rtl.js +56 -0
  98. package/lib/commonjs/ui/utils/rtl.js.map +1 -0
  99. package/lib/commonjs/ui/utils/safe-url.js +67 -0
  100. package/lib/commonjs/ui/utils/safe-url.js.map +1 -0
  101. package/lib/module/agent-ui-blocks.js +152 -0
  102. package/lib/module/agent-ui-blocks.js.map +1 -0
  103. package/lib/module/api/client.js +261 -0
  104. package/lib/module/api/client.js.map +1 -0
  105. package/lib/module/api/realtime.js +189 -0
  106. package/lib/module/api/realtime.js.map +1 -0
  107. package/lib/module/api/sse-parser.js +53 -0
  108. package/lib/module/api/sse-parser.js.map +1 -0
  109. package/lib/module/controller.js +19 -0
  110. package/lib/module/controller.js.map +1 -0
  111. package/lib/module/device-id.js +69 -0
  112. package/lib/module/device-id.js.map +1 -0
  113. package/lib/module/events.js +44 -0
  114. package/lib/module/events.js.map +1 -0
  115. package/lib/module/i18n.js +99 -0
  116. package/lib/module/i18n.js.map +1 -0
  117. package/lib/module/index.js +55 -0
  118. package/lib/module/index.js.map +1 -0
  119. package/lib/module/locales.js +80 -0
  120. package/lib/module/locales.js.map +1 -0
  121. package/lib/module/package.json +1 -0
  122. package/lib/module/push/push-notifications.js +204 -0
  123. package/lib/module/push/push-notifications.js.map +1 -0
  124. package/lib/module/state/use-widget-state.js +18 -0
  125. package/lib/module/state/use-widget-state.js.map +1 -0
  126. package/lib/module/state/widget-store.js +1677 -0
  127. package/lib/module/state/widget-store.js.map +1 -0
  128. package/lib/module/storage.js +141 -0
  129. package/lib/module/storage.js.map +1 -0
  130. package/lib/module/types.js +40 -0
  131. package/lib/module/types.js.map +1 -0
  132. package/lib/module/ui/WidgetProvider.js +400 -0
  133. package/lib/module/ui/WidgetProvider.js.map +1 -0
  134. package/lib/module/ui/components/AgentUiBlocks.js +857 -0
  135. package/lib/module/ui/components/AgentUiBlocks.js.map +1 -0
  136. package/lib/module/ui/components/Avatar.js +71 -0
  137. package/lib/module/ui/components/Avatar.js.map +1 -0
  138. package/lib/module/ui/components/ConversationRow.js +150 -0
  139. package/lib/module/ui/components/ConversationRow.js.map +1 -0
  140. package/lib/module/ui/components/ErrorBoundary.js +39 -0
  141. package/lib/module/ui/components/ErrorBoundary.js.map +1 -0
  142. package/lib/module/ui/components/Gradient.js +165 -0
  143. package/lib/module/ui/components/Gradient.js.map +1 -0
  144. package/lib/module/ui/components/Launcher.js +121 -0
  145. package/lib/module/ui/components/Launcher.js.map +1 -0
  146. package/lib/module/ui/components/Markdown.js +253 -0
  147. package/lib/module/ui/components/Markdown.js.map +1 -0
  148. package/lib/module/ui/components/OutboundMessageCard.js +153 -0
  149. package/lib/module/ui/components/OutboundMessageCard.js.map +1 -0
  150. package/lib/module/ui/components/WidgetPanel.js +127 -0
  151. package/lib/module/ui/components/WidgetPanel.js.map +1 -0
  152. package/lib/module/ui/components/icons.js +370 -0
  153. package/lib/module/ui/components/icons.js.map +1 -0
  154. package/lib/module/ui/hooks/use-keyboard-overlap.js +109 -0
  155. package/lib/module/ui/hooks/use-keyboard-overlap.js.map +1 -0
  156. package/lib/module/ui/hooks/use-reduce-motion.js +34 -0
  157. package/lib/module/ui/hooks/use-reduce-motion.js.map +1 -0
  158. package/lib/module/ui/hooks/use-widget-insets.js +37 -0
  159. package/lib/module/ui/hooks/use-widget-insets.js.map +1 -0
  160. package/lib/module/ui/screens/chat/ChatView.js +586 -0
  161. package/lib/module/ui/screens/chat/ChatView.js.map +1 -0
  162. package/lib/module/ui/screens/chat/ChatView.styles.js +358 -0
  163. package/lib/module/ui/screens/chat/ChatView.styles.js.map +1 -0
  164. package/lib/module/ui/screens/chat/ChatView.types.js +4 -0
  165. package/lib/module/ui/screens/chat/ChatView.types.js.map +1 -0
  166. package/lib/module/ui/screens/conversations/ConversationsList.js +146 -0
  167. package/lib/module/ui/screens/conversations/ConversationsList.js.map +1 -0
  168. package/lib/module/ui/screens/conversations/ConversationsList.styles.js +114 -0
  169. package/lib/module/ui/screens/conversations/ConversationsList.styles.js.map +1 -0
  170. package/lib/module/ui/screens/conversations/ConversationsList.types.js +4 -0
  171. package/lib/module/ui/screens/conversations/ConversationsList.types.js.map +1 -0
  172. package/lib/module/ui/screens/home/HomeView.js +332 -0
  173. package/lib/module/ui/screens/home/HomeView.js.map +1 -0
  174. package/lib/module/ui/screens/home/HomeView.styles.js +242 -0
  175. package/lib/module/ui/screens/home/HomeView.styles.js.map +1 -0
  176. package/lib/module/ui/screens/home/HomeView.types.js +4 -0
  177. package/lib/module/ui/screens/home/HomeView.types.js.map +1 -0
  178. package/lib/module/ui/screens/home/greeting.js +44 -0
  179. package/lib/module/ui/screens/home/greeting.js.map +1 -0
  180. package/lib/module/ui/screens/pre-chat/PreChatForm.js +225 -0
  181. package/lib/module/ui/screens/pre-chat/PreChatForm.js.map +1 -0
  182. package/lib/module/ui/screens/pre-chat/PreChatForm.styles.js +121 -0
  183. package/lib/module/ui/screens/pre-chat/PreChatForm.styles.js.map +1 -0
  184. package/lib/module/ui/screens/pre-chat/PreChatForm.types.js +4 -0
  185. package/lib/module/ui/screens/pre-chat/PreChatForm.types.js.map +1 -0
  186. package/lib/module/ui/styles/global.js +51 -0
  187. package/lib/module/ui/styles/global.js.map +1 -0
  188. package/lib/module/ui/styles/theme.js +137 -0
  189. package/lib/module/ui/styles/theme.js.map +1 -0
  190. package/lib/module/ui/utils/conversations.js +115 -0
  191. package/lib/module/ui/utils/conversations.js.map +1 -0
  192. package/lib/module/ui/utils/html.js +39 -0
  193. package/lib/module/ui/utils/html.js.map +1 -0
  194. package/lib/module/ui/utils/native-gradient.js +60 -0
  195. package/lib/module/ui/utils/native-gradient.js.map +1 -0
  196. package/lib/module/ui/utils/rtl.js +49 -0
  197. package/lib/module/ui/utils/rtl.js.map +1 -0
  198. package/lib/module/ui/utils/safe-url.js +59 -0
  199. package/lib/module/ui/utils/safe-url.js.map +1 -0
  200. package/lib/typescript/commonjs/agent-ui-blocks.d.ts +20 -0
  201. package/lib/typescript/commonjs/agent-ui-blocks.d.ts.map +1 -0
  202. package/lib/typescript/commonjs/api/client.d.ts +115 -0
  203. package/lib/typescript/commonjs/api/client.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/api/realtime.d.ts +39 -0
  205. package/lib/typescript/commonjs/api/realtime.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/api/sse-parser.d.ts +13 -0
  207. package/lib/typescript/commonjs/api/sse-parser.d.ts.map +1 -0
  208. package/lib/typescript/commonjs/controller.d.ts +15 -0
  209. package/lib/typescript/commonjs/controller.d.ts.map +1 -0
  210. package/lib/typescript/commonjs/device-id.d.ts +15 -0
  211. package/lib/typescript/commonjs/device-id.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/events.d.ts +41 -0
  213. package/lib/typescript/commonjs/events.d.ts.map +1 -0
  214. package/lib/typescript/commonjs/i18n.d.ts +78 -0
  215. package/lib/typescript/commonjs/i18n.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/index.d.ts +103 -0
  217. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  218. package/lib/typescript/commonjs/locales.d.ts +18 -0
  219. package/lib/typescript/commonjs/locales.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/package.json +1 -0
  221. package/lib/typescript/commonjs/push/push-notifications.d.ts +71 -0
  222. package/lib/typescript/commonjs/push/push-notifications.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/state/use-widget-state.d.ts +10 -0
  224. package/lib/typescript/commonjs/state/use-widget-state.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/state/widget-store.d.ts +227 -0
  226. package/lib/typescript/commonjs/state/widget-store.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/storage.d.ts +42 -0
  228. package/lib/typescript/commonjs/storage.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/types.d.ts +391 -0
  230. package/lib/typescript/commonjs/types.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/ui/WidgetProvider.d.ts +15 -0
  232. package/lib/typescript/commonjs/ui/WidgetProvider.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/ui/components/AgentUiBlocks.d.ts +27 -0
  234. package/lib/typescript/commonjs/ui/components/AgentUiBlocks.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/ui/components/Avatar.d.ts +19 -0
  236. package/lib/typescript/commonjs/ui/components/Avatar.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/ui/components/ConversationRow.d.ts +26 -0
  238. package/lib/typescript/commonjs/ui/components/ConversationRow.d.ts.map +1 -0
  239. package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts +27 -0
  240. package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +1 -0
  241. package/lib/typescript/commonjs/ui/components/Gradient.d.ts +33 -0
  242. package/lib/typescript/commonjs/ui/components/Gradient.d.ts.map +1 -0
  243. package/lib/typescript/commonjs/ui/components/Launcher.d.ts +18 -0
  244. package/lib/typescript/commonjs/ui/components/Launcher.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/ui/components/Markdown.d.ts +19 -0
  246. package/lib/typescript/commonjs/ui/components/Markdown.d.ts.map +1 -0
  247. package/lib/typescript/commonjs/ui/components/OutboundMessageCard.d.ts +20 -0
  248. package/lib/typescript/commonjs/ui/components/OutboundMessageCard.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/ui/components/WidgetPanel.d.ts +26 -0
  250. package/lib/typescript/commonjs/ui/components/WidgetPanel.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/ui/components/icons.d.ts +38 -0
  252. package/lib/typescript/commonjs/ui/components/icons.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/ui/hooks/use-keyboard-overlap.d.ts +33 -0
  254. package/lib/typescript/commonjs/ui/hooks/use-keyboard-overlap.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/ui/hooks/use-reduce-motion.d.ts +11 -0
  256. package/lib/typescript/commonjs/ui/hooks/use-reduce-motion.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/ui/hooks/use-widget-insets.d.ts +16 -0
  258. package/lib/typescript/commonjs/ui/hooks/use-widget-insets.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/ui/screens/chat/ChatView.d.ts +11 -0
  260. package/lib/typescript/commonjs/ui/screens/chat/ChatView.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/ui/screens/chat/ChatView.styles.d.ts +349 -0
  262. package/lib/typescript/commonjs/ui/screens/chat/ChatView.styles.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/ui/screens/chat/ChatView.types.d.ts +48 -0
  264. package/lib/typescript/commonjs/ui/screens/chat/ChatView.types.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.d.ts +10 -0
  266. package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.styles.d.ts +113 -0
  268. package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.styles.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.types.d.ts +31 -0
  270. package/lib/typescript/commonjs/ui/screens/conversations/ConversationsList.types.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/ui/screens/home/HomeView.d.ts +17 -0
  272. package/lib/typescript/commonjs/ui/screens/home/HomeView.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/ui/screens/home/HomeView.styles.d.ts +227 -0
  274. package/lib/typescript/commonjs/ui/screens/home/HomeView.styles.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/ui/screens/home/HomeView.types.d.ts +40 -0
  276. package/lib/typescript/commonjs/ui/screens/home/HomeView.types.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/ui/screens/home/greeting.d.ts +19 -0
  278. package/lib/typescript/commonjs/ui/screens/home/greeting.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.d.ts +7 -0
  280. package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.styles.d.ts +115 -0
  282. package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.styles.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.types.d.ts +20 -0
  284. package/lib/typescript/commonjs/ui/screens/pre-chat/PreChatForm.types.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/ui/styles/global.d.ts +46 -0
  286. package/lib/typescript/commonjs/ui/styles/global.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/ui/styles/theme.d.ts +103 -0
  288. package/lib/typescript/commonjs/ui/styles/theme.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/ui/utils/conversations.d.ts +41 -0
  290. package/lib/typescript/commonjs/ui/utils/conversations.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/ui/utils/html.d.ts +10 -0
  292. package/lib/typescript/commonjs/ui/utils/html.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/ui/utils/native-gradient.d.ts +61 -0
  294. package/lib/typescript/commonjs/ui/utils/native-gradient.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/ui/utils/rtl.d.ts +33 -0
  296. package/lib/typescript/commonjs/ui/utils/rtl.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/ui/utils/safe-url.d.ts +21 -0
  298. package/lib/typescript/commonjs/ui/utils/safe-url.d.ts.map +1 -0
  299. package/lib/typescript/module/agent-ui-blocks.d.ts +20 -0
  300. package/lib/typescript/module/agent-ui-blocks.d.ts.map +1 -0
  301. package/lib/typescript/module/api/client.d.ts +115 -0
  302. package/lib/typescript/module/api/client.d.ts.map +1 -0
  303. package/lib/typescript/module/api/realtime.d.ts +39 -0
  304. package/lib/typescript/module/api/realtime.d.ts.map +1 -0
  305. package/lib/typescript/module/api/sse-parser.d.ts +13 -0
  306. package/lib/typescript/module/api/sse-parser.d.ts.map +1 -0
  307. package/lib/typescript/module/controller.d.ts +15 -0
  308. package/lib/typescript/module/controller.d.ts.map +1 -0
  309. package/lib/typescript/module/device-id.d.ts +15 -0
  310. package/lib/typescript/module/device-id.d.ts.map +1 -0
  311. package/lib/typescript/module/events.d.ts +41 -0
  312. package/lib/typescript/module/events.d.ts.map +1 -0
  313. package/lib/typescript/module/i18n.d.ts +78 -0
  314. package/lib/typescript/module/i18n.d.ts.map +1 -0
  315. package/lib/typescript/module/index.d.ts +103 -0
  316. package/lib/typescript/module/index.d.ts.map +1 -0
  317. package/lib/typescript/module/locales.d.ts +18 -0
  318. package/lib/typescript/module/locales.d.ts.map +1 -0
  319. package/lib/typescript/module/package.json +1 -0
  320. package/lib/typescript/module/push/push-notifications.d.ts +71 -0
  321. package/lib/typescript/module/push/push-notifications.d.ts.map +1 -0
  322. package/lib/typescript/module/state/use-widget-state.d.ts +10 -0
  323. package/lib/typescript/module/state/use-widget-state.d.ts.map +1 -0
  324. package/lib/typescript/module/state/widget-store.d.ts +227 -0
  325. package/lib/typescript/module/state/widget-store.d.ts.map +1 -0
  326. package/lib/typescript/module/storage.d.ts +42 -0
  327. package/lib/typescript/module/storage.d.ts.map +1 -0
  328. package/lib/typescript/module/types.d.ts +391 -0
  329. package/lib/typescript/module/types.d.ts.map +1 -0
  330. package/lib/typescript/module/ui/WidgetProvider.d.ts +15 -0
  331. package/lib/typescript/module/ui/WidgetProvider.d.ts.map +1 -0
  332. package/lib/typescript/module/ui/components/AgentUiBlocks.d.ts +27 -0
  333. package/lib/typescript/module/ui/components/AgentUiBlocks.d.ts.map +1 -0
  334. package/lib/typescript/module/ui/components/Avatar.d.ts +19 -0
  335. package/lib/typescript/module/ui/components/Avatar.d.ts.map +1 -0
  336. package/lib/typescript/module/ui/components/ConversationRow.d.ts +26 -0
  337. package/lib/typescript/module/ui/components/ConversationRow.d.ts.map +1 -0
  338. package/lib/typescript/module/ui/components/ErrorBoundary.d.ts +27 -0
  339. package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +1 -0
  340. package/lib/typescript/module/ui/components/Gradient.d.ts +33 -0
  341. package/lib/typescript/module/ui/components/Gradient.d.ts.map +1 -0
  342. package/lib/typescript/module/ui/components/Launcher.d.ts +18 -0
  343. package/lib/typescript/module/ui/components/Launcher.d.ts.map +1 -0
  344. package/lib/typescript/module/ui/components/Markdown.d.ts +19 -0
  345. package/lib/typescript/module/ui/components/Markdown.d.ts.map +1 -0
  346. package/lib/typescript/module/ui/components/OutboundMessageCard.d.ts +20 -0
  347. package/lib/typescript/module/ui/components/OutboundMessageCard.d.ts.map +1 -0
  348. package/lib/typescript/module/ui/components/WidgetPanel.d.ts +26 -0
  349. package/lib/typescript/module/ui/components/WidgetPanel.d.ts.map +1 -0
  350. package/lib/typescript/module/ui/components/icons.d.ts +38 -0
  351. package/lib/typescript/module/ui/components/icons.d.ts.map +1 -0
  352. package/lib/typescript/module/ui/hooks/use-keyboard-overlap.d.ts +33 -0
  353. package/lib/typescript/module/ui/hooks/use-keyboard-overlap.d.ts.map +1 -0
  354. package/lib/typescript/module/ui/hooks/use-reduce-motion.d.ts +11 -0
  355. package/lib/typescript/module/ui/hooks/use-reduce-motion.d.ts.map +1 -0
  356. package/lib/typescript/module/ui/hooks/use-widget-insets.d.ts +16 -0
  357. package/lib/typescript/module/ui/hooks/use-widget-insets.d.ts.map +1 -0
  358. package/lib/typescript/module/ui/screens/chat/ChatView.d.ts +11 -0
  359. package/lib/typescript/module/ui/screens/chat/ChatView.d.ts.map +1 -0
  360. package/lib/typescript/module/ui/screens/chat/ChatView.styles.d.ts +349 -0
  361. package/lib/typescript/module/ui/screens/chat/ChatView.styles.d.ts.map +1 -0
  362. package/lib/typescript/module/ui/screens/chat/ChatView.types.d.ts +48 -0
  363. package/lib/typescript/module/ui/screens/chat/ChatView.types.d.ts.map +1 -0
  364. package/lib/typescript/module/ui/screens/conversations/ConversationsList.d.ts +10 -0
  365. package/lib/typescript/module/ui/screens/conversations/ConversationsList.d.ts.map +1 -0
  366. package/lib/typescript/module/ui/screens/conversations/ConversationsList.styles.d.ts +113 -0
  367. package/lib/typescript/module/ui/screens/conversations/ConversationsList.styles.d.ts.map +1 -0
  368. package/lib/typescript/module/ui/screens/conversations/ConversationsList.types.d.ts +31 -0
  369. package/lib/typescript/module/ui/screens/conversations/ConversationsList.types.d.ts.map +1 -0
  370. package/lib/typescript/module/ui/screens/home/HomeView.d.ts +17 -0
  371. package/lib/typescript/module/ui/screens/home/HomeView.d.ts.map +1 -0
  372. package/lib/typescript/module/ui/screens/home/HomeView.styles.d.ts +227 -0
  373. package/lib/typescript/module/ui/screens/home/HomeView.styles.d.ts.map +1 -0
  374. package/lib/typescript/module/ui/screens/home/HomeView.types.d.ts +40 -0
  375. package/lib/typescript/module/ui/screens/home/HomeView.types.d.ts.map +1 -0
  376. package/lib/typescript/module/ui/screens/home/greeting.d.ts +19 -0
  377. package/lib/typescript/module/ui/screens/home/greeting.d.ts.map +1 -0
  378. package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.d.ts +7 -0
  379. package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.d.ts.map +1 -0
  380. package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.styles.d.ts +115 -0
  381. package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.styles.d.ts.map +1 -0
  382. package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.types.d.ts +20 -0
  383. package/lib/typescript/module/ui/screens/pre-chat/PreChatForm.types.d.ts.map +1 -0
  384. package/lib/typescript/module/ui/styles/global.d.ts +46 -0
  385. package/lib/typescript/module/ui/styles/global.d.ts.map +1 -0
  386. package/lib/typescript/module/ui/styles/theme.d.ts +103 -0
  387. package/lib/typescript/module/ui/styles/theme.d.ts.map +1 -0
  388. package/lib/typescript/module/ui/utils/conversations.d.ts +41 -0
  389. package/lib/typescript/module/ui/utils/conversations.d.ts.map +1 -0
  390. package/lib/typescript/module/ui/utils/html.d.ts +10 -0
  391. package/lib/typescript/module/ui/utils/html.d.ts.map +1 -0
  392. package/lib/typescript/module/ui/utils/native-gradient.d.ts +61 -0
  393. package/lib/typescript/module/ui/utils/native-gradient.d.ts.map +1 -0
  394. package/lib/typescript/module/ui/utils/rtl.d.ts +33 -0
  395. package/lib/typescript/module/ui/utils/rtl.d.ts.map +1 -0
  396. package/lib/typescript/module/ui/utils/safe-url.d.ts +21 -0
  397. package/lib/typescript/module/ui/utils/safe-url.d.ts.map +1 -0
  398. package/metro.js +40 -0
  399. package/package.json +116 -0
  400. package/src/agent-ui-blocks.ts +302 -0
  401. package/src/api/client.ts +332 -0
  402. package/src/api/realtime.ts +225 -0
  403. package/src/api/sse-parser.ts +51 -0
  404. package/src/controller.ts +20 -0
  405. package/src/device-id.ts +71 -0
  406. package/src/events.ts +74 -0
  407. package/src/i18n.ts +114 -0
  408. package/src/index.tsx +199 -0
  409. package/src/locales.ts +80 -0
  410. package/src/push/push-notifications.ts +254 -0
  411. package/src/state/use-widget-state.ts +20 -0
  412. package/src/state/widget-store.ts +1815 -0
  413. package/src/storage.ts +153 -0
  414. package/src/types.ts +445 -0
  415. package/src/ui/WidgetProvider.tsx +434 -0
  416. package/src/ui/components/AgentUiBlocks.tsx +912 -0
  417. package/src/ui/components/Avatar.tsx +86 -0
  418. package/src/ui/components/ConversationRow.tsx +163 -0
  419. package/src/ui/components/ErrorBoundary.tsx +49 -0
  420. package/src/ui/components/Gradient.tsx +165 -0
  421. package/src/ui/components/Launcher.tsx +128 -0
  422. package/src/ui/components/Markdown.tsx +291 -0
  423. package/src/ui/components/OutboundMessageCard.tsx +154 -0
  424. package/src/ui/components/WidgetPanel.tsx +133 -0
  425. package/src/ui/components/icons.tsx +315 -0
  426. package/src/ui/hooks/use-keyboard-overlap.ts +134 -0
  427. package/src/ui/hooks/use-reduce-motion.ts +39 -0
  428. package/src/ui/hooks/use-widget-insets.ts +44 -0
  429. package/src/ui/screens/chat/ChatView.styles.ts +357 -0
  430. package/src/ui/screens/chat/ChatView.tsx +690 -0
  431. package/src/ui/screens/chat/ChatView.types.ts +46 -0
  432. package/src/ui/screens/conversations/ConversationsList.styles.ts +111 -0
  433. package/src/ui/screens/conversations/ConversationsList.tsx +144 -0
  434. package/src/ui/screens/conversations/ConversationsList.types.ts +33 -0
  435. package/src/ui/screens/home/HomeView.styles.ts +246 -0
  436. package/src/ui/screens/home/HomeView.tsx +336 -0
  437. package/src/ui/screens/home/HomeView.types.ts +42 -0
  438. package/src/ui/screens/home/greeting.ts +50 -0
  439. package/src/ui/screens/pre-chat/PreChatForm.styles.ts +120 -0
  440. package/src/ui/screens/pre-chat/PreChatForm.tsx +221 -0
  441. package/src/ui/screens/pre-chat/PreChatForm.types.ts +22 -0
  442. package/src/ui/styles/global.ts +50 -0
  443. package/src/ui/styles/theme.ts +155 -0
  444. package/src/ui/utils/conversations.ts +122 -0
  445. package/src/ui/utils/html.ts +58 -0
  446. package/src/ui/utils/native-gradient.ts +60 -0
  447. package/src/ui/utils/rtl.ts +43 -0
  448. package/src/ui/utils/safe-url.ts +63 -0
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.styles = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _ConversationRow = require("../../components/ConversationRow.js");
9
+ var _theme = require("../../styles/theme.js");
10
+ /** Styles for the Messages space: centered header, row list and the floating pill. */
11
+
12
+ const styles = exports.styles = _reactNative.StyleSheet.create({
13
+ header: {
14
+ alignItems: 'center',
15
+ justifyContent: 'center',
16
+ // Leaves room for the absolutely-placed close button on both sides so the
17
+ // title stays optically centered.
18
+ paddingHorizontal: _theme.spacing.xxl + _theme.spacing.lg,
19
+ paddingTop: _theme.spacing.lg,
20
+ paddingBottom: _theme.spacing.md,
21
+ borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
22
+ borderBottomColor: _theme.palette.borderSoft
23
+ },
24
+ headerCopy: {
25
+ alignItems: 'center',
26
+ gap: 2
27
+ },
28
+ title: {
29
+ fontSize: _theme.fontSize.title,
30
+ fontWeight: '600',
31
+ color: _theme.palette.ink
32
+ },
33
+ statusLine: {
34
+ flexDirection: 'row',
35
+ alignItems: 'center',
36
+ gap: _theme.spacing.xs + 2
37
+ },
38
+ statusDot: {
39
+ width: 7,
40
+ height: 7,
41
+ borderRadius: 3.5
42
+ },
43
+ statusText: {
44
+ fontSize: _theme.fontSize.caption,
45
+ color: _theme.palette.textMuted
46
+ },
47
+ close: {
48
+ position: 'absolute',
49
+ end: _theme.spacing.lg,
50
+ top: 0,
51
+ bottom: 0,
52
+ justifyContent: 'center',
53
+ paddingHorizontal: _theme.spacing.xs
54
+ },
55
+ listContent: {
56
+ flexGrow: 1
57
+ },
58
+ listContentEmpty: {
59
+ justifyContent: 'center'
60
+ },
61
+ divider: {
62
+ marginStart: (0, _ConversationRow.rowDividerInset)()
63
+ },
64
+ empty: {
65
+ alignItems: 'center',
66
+ paddingHorizontal: _theme.spacing.xxl,
67
+ paddingVertical: 48
68
+ },
69
+ emptyIcon: {
70
+ width: 64,
71
+ height: 64,
72
+ borderRadius: 32,
73
+ alignItems: 'center',
74
+ justifyContent: 'center',
75
+ marginBottom: _theme.spacing.lg
76
+ },
77
+ emptyTitle: {
78
+ fontSize: _theme.fontSize.body,
79
+ fontWeight: '600',
80
+ color: _theme.palette.ink,
81
+ textAlign: 'center'
82
+ },
83
+ emptySubtitle: {
84
+ fontSize: _theme.fontSize.meta,
85
+ color: _theme.palette.textSubtle,
86
+ marginTop: _theme.spacing.xs,
87
+ textAlign: 'center'
88
+ },
89
+ fabWrapper: {
90
+ position: 'absolute',
91
+ left: 0,
92
+ right: 0,
93
+ bottom: _theme.spacing.lg,
94
+ alignItems: 'center'
95
+ },
96
+ fab: {
97
+ flexDirection: 'row',
98
+ alignItems: 'center',
99
+ gap: _theme.spacing.sm,
100
+ minHeight: 46,
101
+ paddingHorizontal: _theme.spacing.xl,
102
+ paddingVertical: _theme.spacing.md,
103
+ borderRadius: _theme.radius.pill,
104
+ ..._theme.shadows.floating
105
+ },
106
+ fabPressed: {
107
+ opacity: 0.9,
108
+ transform: [{
109
+ scale: 0.98
110
+ }]
111
+ },
112
+ fabLabel: {
113
+ color: _theme.palette.white,
114
+ fontSize: _theme.fontSize.meta,
115
+ fontWeight: '600'
116
+ }
117
+ });
118
+ //# sourceMappingURL=ConversationsList.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_ConversationRow","_theme","styles","exports","StyleSheet","create","header","alignItems","justifyContent","paddingHorizontal","spacing","xxl","lg","paddingTop","paddingBottom","md","borderBottomWidth","hairlineWidth","borderBottomColor","palette","borderSoft","headerCopy","gap","title","fontSize","fontWeight","color","ink","statusLine","flexDirection","xs","statusDot","width","height","borderRadius","statusText","caption","textMuted","close","position","end","top","bottom","listContent","flexGrow","listContentEmpty","divider","marginStart","rowDividerInset","empty","paddingVertical","emptyIcon","marginBottom","emptyTitle","body","textAlign","emptySubtitle","meta","textSubtle","marginTop","fabWrapper","left","right","fab","sm","minHeight","xl","radius","pill","shadows","floating","fabPressed","opacity","transform","scale","fabLabel","white"],"sourceRoot":"../../../../../src","sources":["ui/screens/conversations/ConversationsList.styles.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AALA;;AAOO,MAAMG,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EACtCC,MAAM,EAAE;IACNC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxB;IACA;IACAC,iBAAiB,EAAEC,cAAO,CAACC,GAAG,GAAGD,cAAO,CAACE,EAAE;IAC3CC,UAAU,EAAEH,cAAO,CAACE,EAAE;IACtBE,aAAa,EAAEJ,cAAO,CAACK,EAAE;IACzBC,iBAAiB,EAAEZ,uBAAU,CAACa,aAAa;IAC3CC,iBAAiB,EAAEC,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CAACE;EACxB,CAAC;EACDyC,UAAU,EAAE;IACV7B,QAAQ,EAAEA,eAAQ,CAAC8B,IAAI;IACvB7B,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEP,cAAO,CAACQ,GAAG;IAClB4B,SAAS,EAAE;EACb,CAAC;EACDC,aAAa,EAAE;IACbhC,QAAQ,EAAEA,eAAQ,CAACiC,IAAI;IACvB/B,KAAK,EAAEP,cAAO,CAACuC,UAAU;IACzBC,SAAS,EAAEjD,cAAO,CAACoB,EAAE;IACrByB,SAAS,EAAE;EACb,CAAC;EACDK,UAAU,EAAE;IACVrB,QAAQ,EAAE,UAAU;IACpBsB,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRpB,MAAM,EAAEhC,cAAO,CAACE,EAAE;IAClBL,UAAU,EAAE;EACd,CAAC;EACDwD,GAAG,EAAE;IACHlC,aAAa,EAAE,KAAK;IACpBtB,UAAU,EAAE,QAAQ;IACpBe,GAAG,EAAEZ,cAAO,CAACsD,EAAE;IACfC,SAAS,EAAE,EAAE;IACbxD,iBAAiB,EAAEC,cAAO,CAACwD,EAAE;IAC7BhB,eAAe,EAAExC,cAAO,CAACK,EAAE;IAC3BmB,YAAY,EAAEiC,aAAM,CAACC,IAAI;IACzB,GAAGC,cAAO,CAACC;EACb,CAAC;EACDC,UAAU,EAAE;IACVC,OAAO,EAAE,GAAG;IACZC,SAAS,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAK,CAAC;EAC7B,CAAC;EACDC,QAAQ,EAAE;IACRjD,KAAK,EAAEP,cAAO,CAACyD,KAAK;IACpBpD,QAAQ,EAAEA,eAAQ,CAACiC,IAAI;IACvBhC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=ConversationsList.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["ui/screens/conversations/ConversationsList.types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,336 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HomeView = HomeView;
7
+ var _react = require("react");
8
+ var _reactNative = require("react-native");
9
+ var _Avatar = require("../../components/Avatar.js");
10
+ var _ConversationRow = require("../../components/ConversationRow.js");
11
+ var _Gradient = require("../../components/Gradient.js");
12
+ var _icons = require("../../components/icons.js");
13
+ var _useReduceMotion = require("../../hooks/use-reduce-motion.js");
14
+ var _global = require("../../styles/global.js");
15
+ var _theme = require("../../styles/theme.js");
16
+ var _rtl = require("../../utils/rtl.js");
17
+ var _greeting = require("./greeting.js");
18
+ var _HomeViewStyles = require("./HomeView.styles.js");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ /**
21
+ * Home space — branded greeting header, the "start a conversation" card, a
22
+ * preview of recent threads and a team/availability strip.
23
+ * Port of `client/src/widget/components/HomeView.tsx`.
24
+ *
25
+ * The header meets the white body on a straight seam, the same as the web
26
+ * widget. Whether that seam is a hard edge or the background washing out into
27
+ * white is the dashboard's `homeBackgroundFade` toggle, and the start card sits
28
+ * astride it either way: top over the brand background, bottom over white.
29
+ *
30
+ * Everything on this screen comes from the widget config or the conversations
31
+ * the visitor already has; nothing here assumes a field the backend does not
32
+ * send today.
33
+ */
34
+
35
+ /**
36
+ * The admin's explicit black/white toggle always wins. Older configs can omit
37
+ * it, and defaulting to dark text over a dark brand header is unreadable, so
38
+ * derive something legible from the background instead.
39
+ */
40
+ function resolveHeaderTextColor(config, fallbackColor) {
41
+ if (config?.homeHeaderTextColor === 'white') return _theme.palette.white;
42
+ if (config?.homeHeaderTextColor === 'black') return _theme.palette.ink;
43
+ if (config?.homeBackgroundType === 'image') return _theme.palette.white;
44
+ if (config?.homeBackgroundType === 'gradient') {
45
+ return (0, _theme.contrastingTextColor)(config.homeBackgroundGradientStart || fallbackColor);
46
+ }
47
+ return (0, _theme.contrastingTextColor)(config?.homeBackgroundColor || fallbackColor);
48
+ }
49
+ function HomeView({
50
+ config,
51
+ color,
52
+ visitorName,
53
+ conversationCount,
54
+ recentConversations,
55
+ unreadByConversation,
56
+ teamAgents,
57
+ isOnline,
58
+ offlineMessage,
59
+ startConversationLabel,
60
+ replyTimeLabel,
61
+ allowNewConversations,
62
+ showPreviousConversations,
63
+ labels,
64
+ onClose,
65
+ onStartConversation,
66
+ onViewConversations,
67
+ onOpenConversation
68
+ }) {
69
+ const heading = (0, _greeting.personalizeGreeting)(config?.welcomeHeading, visitorName, 'Hi there');
70
+ // Both lines render exactly as the dashboard sent them, so the admin sees the
71
+ // same header in the preview and on the phone, even when the subheading
72
+ // repeats the reply time printed on the start card below.
73
+ const subheading = config?.welcomeSubheading || 'How can we help?';
74
+ const textColor = resolveHeaderTextColor(config, color);
75
+ const secondaryTextColor = textColor === _theme.palette.white ? (0, _theme.withAlpha)(_theme.palette.white, 0.8) : 'rgba(26,26,26,0.58)';
76
+ // A pale brand color would otherwise put a white glyph on a near-white disc.
77
+ const startIconColor = (0, _theme.contrastingTextColor)(color);
78
+ const backgroundType = config?.homeBackgroundType ?? 'solid';
79
+ const gradientColors = [config?.homeBackgroundGradientStart || '#f2f2f2', config?.homeBackgroundGradientMiddle || '', config?.homeBackgroundGradientEnd || '#bfbfbf'].filter(Boolean);
80
+ // Off, the background stops dead at the seam. On, it washes out into the body
81
+ // colour over the bottom of the header, so the start card lands on near-white.
82
+ const fade = config?.homeBackgroundFade ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Gradient.FadeOverlay, {
83
+ height: _HomeViewStyles.HEADER_FADE_HEIGHT
84
+ }) : null;
85
+ const showRecent = showPreviousConversations && recentConversations.length > 0;
86
+ const showViewAll = conversationCount > recentConversations.length;
87
+ const showEmptyHint = showPreviousConversations && conversationCount === 0 && allowNewConversations;
88
+ // One agent already has their face in the row above; repeating it reads as a bug.
89
+ const showAvatarStack = teamAgents.length >= 2;
90
+
91
+ // The start card is pulled up over the seam by a fixed amount, so the header
92
+ // pads its bottom by that same amount and the greeting never slides under it.
93
+ const headerStyle = [_HomeViewStyles.styles.header, allowNewConversations ? {
94
+ paddingBottom: _HomeViewStyles.HEADER_BOTTOM_PADDING + _HomeViewStyles.START_CARD_LIFT
95
+ } : null];
96
+ const headerContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
97
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
98
+ style: _HomeViewStyles.styles.headerTop,
99
+ children: [config?.homeLogoUrl ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
100
+ source: {
101
+ uri: config.homeLogoUrl
102
+ },
103
+ style: _HomeViewStyles.styles.logo,
104
+ resizeMode: "contain",
105
+ accessibilityIgnoresInvertColors: true
106
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
107
+ onPress: onClose,
108
+ accessibilityRole: "button",
109
+ accessibilityLabel: labels.close,
110
+ hitSlop: 12,
111
+ style: _HomeViewStyles.styles.closeButton,
112
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CloseIcon, {
113
+ size: _HomeViewStyles.CLOSE_ICON_SIZE,
114
+ color: textColor
115
+ })
116
+ })]
117
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
118
+ style: _HomeViewStyles.styles.headerSpacer
119
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(FadeSlideIn, {
120
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
121
+ style: [_HomeViewStyles.styles.heading, {
122
+ color: textColor
123
+ }],
124
+ children: heading
125
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
126
+ style: [_HomeViewStyles.styles.subheading, {
127
+ color: secondaryTextColor
128
+ }],
129
+ children: subheading
130
+ })]
131
+ })]
132
+ });
133
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
134
+ style: _global.globalStyles.screen,
135
+ contentContainerStyle: _HomeViewStyles.styles.contentContainer,
136
+ keyboardShouldPersistTaps: "handled",
137
+ children: [backgroundType === 'image' && config?.homeBackgroundImageUrl ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
138
+ style: headerStyle,
139
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
140
+ source: {
141
+ uri: config.homeBackgroundImageUrl
142
+ },
143
+ style: _reactNative.StyleSheet.absoluteFill,
144
+ resizeMode: "cover",
145
+ accessibilityIgnoresInvertColors: true
146
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
147
+ style: _HomeViewStyles.styles.imageScrim
148
+ }), headerContent, fade]
149
+ }) : backgroundType === 'gradient' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Gradient.GradientBackground, {
150
+ colors: gradientColors,
151
+ style: headerStyle,
152
+ children: [headerContent, fade]
153
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
154
+ style: [headerStyle, {
155
+ backgroundColor: config?.homeBackgroundColor || '#f2f2f2'
156
+ }],
157
+ children: [headerContent, fade]
158
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
159
+ style: _HomeViewStyles.styles.body,
160
+ children: [allowNewConversations ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
161
+ style: _HomeViewStyles.styles.startCardSlot,
162
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FadeSlideIn, {
163
+ delay: 40,
164
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
165
+ onPress: onStartConversation,
166
+ accessibilityRole: "button",
167
+ android_ripple: {
168
+ color: _theme.palette.borderSoft
169
+ },
170
+ style: ({
171
+ pressed
172
+ }) => [_HomeViewStyles.styles.startCard, pressed && _HomeViewStyles.styles.startCardPressed],
173
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
174
+ style: [_HomeViewStyles.styles.startIcon, {
175
+ backgroundColor: color
176
+ }],
177
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ChatIcon, {
178
+ size: 18,
179
+ color: startIconColor
180
+ })
181
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
182
+ style: _HomeViewStyles.styles.startCopy,
183
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
184
+ style: _HomeViewStyles.styles.startTitle,
185
+ children: startConversationLabel
186
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
187
+ style: _HomeViewStyles.styles.startSubtitle,
188
+ children: replyTimeLabel
189
+ })]
190
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ArrowRightIcon, {
191
+ size: 18,
192
+ color: color,
193
+ style: (0, _rtl.flipForRTL)()
194
+ })]
195
+ })
196
+ })
197
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
198
+ style: _HomeViewStyles.styles.bodyContent,
199
+ children: [offlineMessage ? /*#__PURE__*/(0, _jsxRuntime.jsx)(FadeSlideIn, {
200
+ delay: 70,
201
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
202
+ style: _HomeViewStyles.styles.offlineNotice,
203
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.AlertIcon, {
204
+ size: 18
205
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
206
+ style: _HomeViewStyles.styles.offlineText,
207
+ children: offlineMessage
208
+ })]
209
+ })
210
+ }) : null, showRecent ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(FadeSlideIn, {
211
+ delay: 140,
212
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
213
+ style: _HomeViewStyles.styles.recentHeader,
214
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
215
+ style: _HomeViewStyles.styles.recentTitle,
216
+ children: labels.recentTitle
217
+ }), showViewAll ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
218
+ onPress: onViewConversations,
219
+ accessibilityRole: "button",
220
+ accessibilityLabel: labels.viewPrevious,
221
+ hitSlop: 10,
222
+ style: ({
223
+ pressed
224
+ }) => [_HomeViewStyles.styles.viewAllButton, pressed && _global.globalStyles.pressed],
225
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
226
+ style: [_HomeViewStyles.styles.viewAllLabel, {
227
+ color
228
+ }],
229
+ children: labels.viewAll
230
+ })
231
+ }) : null]
232
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
233
+ style: [_global.globalStyles.card, _HomeViewStyles.styles.recentCard],
234
+ children: recentConversations.map((conversation, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
235
+ children: [index > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
236
+ style: [_global.globalStyles.divider, _HomeViewStyles.styles.recentDivider]
237
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConversationRow.ConversationRow, {
238
+ conversation: conversation,
239
+ color: color,
240
+ fallbackName: labels.team,
241
+ timeLabels: labels.time,
242
+ unreadCount: unreadByConversation[conversation.id] ?? 0,
243
+ unreadLabel: labels.unread,
244
+ horizontalPadding: _theme.spacing.lg,
245
+ onPress: () => onOpenConversation(conversation.id)
246
+ })]
247
+ }, conversation.id))
248
+ })]
249
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
250
+ style: _HomeViewStyles.styles.spacer,
251
+ children: showEmptyHint ? /*#__PURE__*/(0, _jsxRuntime.jsx)(FadeSlideIn, {
252
+ delay: 140,
253
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
254
+ style: _HomeViewStyles.styles.emptyHint,
255
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ChatOutlineIcon, {
256
+ size: 30,
257
+ color: _theme.palette.disabled
258
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
259
+ style: _HomeViewStyles.styles.emptyHintText,
260
+ children: labels.noConversations
261
+ })]
262
+ })
263
+ }) : null
264
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(FadeSlideIn, {
265
+ delay: 200,
266
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
267
+ style: _HomeViewStyles.styles.statusStrip,
268
+ children: [showAvatarStack ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
269
+ style: _HomeViewStyles.styles.avatarStack,
270
+ children: teamAgents.map((agent, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
271
+ avatar: agent.avatar,
272
+ name: agent.name,
273
+ size: 26,
274
+ color: color,
275
+ style: [_HomeViewStyles.styles.avatarStackItem, index > 0 ? _HomeViewStyles.styles.avatarStackOverlap : null]
276
+ }, `${agent.name ?? 'agent'}-${index}`))
277
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
278
+ style: [_HomeViewStyles.styles.statusDot, {
279
+ backgroundColor: isOnline ? _theme.palette.online : _theme.palette.textSubtle
280
+ }]
281
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
282
+ style: _HomeViewStyles.styles.statusText,
283
+ numberOfLines: 1,
284
+ children: isOnline ? labels.statusOnline : labels.statusAway
285
+ })]
286
+ })
287
+ })]
288
+ })]
289
+ })]
290
+ });
291
+ }
292
+
293
+ /**
294
+ * Staggered entrance for the body sections. Opacity and translate only, so the
295
+ * whole thing runs on the native driver and never touches layout.
296
+ */
297
+ function FadeSlideIn({
298
+ delay = 0,
299
+ children
300
+ }) {
301
+ const reduceMotion = (0, _useReduceMotion.useReduceMotion)();
302
+ const progress = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
303
+ (0, _react.useEffect)(() => {
304
+ // `null` means the reduce-motion answer has not landed yet; hold at 0
305
+ // rather than animating and snapping back.
306
+ if (reduceMotion === null) return undefined;
307
+ if (reduceMotion) {
308
+ progress.setValue(1);
309
+ return undefined;
310
+ }
311
+ _reactNative.Animated.timing(progress, {
312
+ toValue: 1,
313
+ duration: 260,
314
+ delay,
315
+ easing: _reactNative.Easing.out(_reactNative.Easing.quad),
316
+ useNativeDriver: true
317
+ }).start();
318
+ return () => {
319
+ progress.stopAnimation();
320
+ };
321
+ }, [delay, progress, reduceMotion]);
322
+ const translateY = progress.interpolate({
323
+ inputRange: [0, 1],
324
+ outputRange: [12, 0]
325
+ });
326
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
327
+ style: {
328
+ opacity: progress,
329
+ transform: [{
330
+ translateY
331
+ }]
332
+ },
333
+ children: children
334
+ });
335
+ }
336
+ //# sourceMappingURL=HomeView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNative","_Avatar","_ConversationRow","_Gradient","_icons","_useReduceMotion","_global","_theme","_rtl","_greeting","_HomeViewStyles","_jsxRuntime","resolveHeaderTextColor","config","fallbackColor","homeHeaderTextColor","palette","white","ink","homeBackgroundType","contrastingTextColor","homeBackgroundGradientStart","homeBackgroundColor","HomeView","color","visitorName","conversationCount","recentConversations","unreadByConversation","teamAgents","isOnline","offlineMessage","startConversationLabel","replyTimeLabel","allowNewConversations","showPreviousConversations","labels","onClose","onStartConversation","onViewConversations","onOpenConversation","heading","personalizeGreeting","welcomeHeading","subheading","welcomeSubheading","textColor","secondaryTextColor","withAlpha","startIconColor","backgroundType","gradientColors","homeBackgroundGradientMiddle","homeBackgroundGradientEnd","filter","Boolean","fade","homeBackgroundFade","jsx","FadeOverlay","height","HEADER_FADE_HEIGHT","showRecent","length","showViewAll","showEmptyHint","showAvatarStack","headerStyle","styles","header","paddingBottom","HEADER_BOTTOM_PADDING","START_CARD_LIFT","headerContent","jsxs","Fragment","children","View","style","headerTop","homeLogoUrl","Image","source","uri","logo","resizeMode","accessibilityIgnoresInvertColors","Pressable","onPress","accessibilityRole","accessibilityLabel","close","hitSlop","closeButton","CloseIcon","size","CLOSE_ICON_SIZE","headerSpacer","FadeSlideIn","Text","ScrollView","globalStyles","screen","contentContainerStyle","contentContainer","keyboardShouldPersistTaps","homeBackgroundImageUrl","StyleSheet","absoluteFill","imageScrim","GradientBackground","colors","backgroundColor","body","startCardSlot","delay","android_ripple","borderSoft","pressed","startCard","startCardPressed","startIcon","ChatIcon","startCopy","startTitle","startSubtitle","ArrowRightIcon","flipForRTL","bodyContent","offlineNotice","AlertIcon","offlineText","recentHeader","recentTitle","viewPrevious","viewAllButton","viewAllLabel","viewAll","card","recentCard","map","conversation","index","divider","recentDivider","ConversationRow","fallbackName","team","timeLabels","time","unreadCount","id","unreadLabel","unread","horizontalPadding","spacing","lg","spacer","emptyHint","ChatOutlineIcon","disabled","emptyHintText","noConversations","statusStrip","avatarStack","agent","Avatar","avatar","name","avatarStackItem","avatarStackOverlap","statusDot","online","textSubtle","statusText","numberOfLines","statusOnline","statusAway","reduceMotion","useReduceMotion","progress","useRef","Animated","Value","current","useEffect","undefined","setValue","timing","toValue","duration","easing","Easing","out","quad","useNativeDriver","start","stopAnimation","translateY","interpolate","inputRange","outputRange","opacity","transform"],"sourceRoot":"../../../../../src","sources":["ui/screens/home/HomeView.tsx"],"mappings":";;;;;;AAeA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAYA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAOA,IAAAM,gBAAA,GAAAN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