@planningcenter/chat-react-native 3.30.0-rc.1 → 3.30.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (895) hide show
  1. package/build/components/conversation/attachments/attachment_card.js +3 -3
  2. package/build/components/conversation/attachments/attachment_card.js.map +1 -1
  3. package/build/components/conversation/attachments/attachment_deleting_overlay.js +2 -2
  4. package/build/components/conversation/attachments/attachment_deleting_overlay.js.map +1 -1
  5. package/build/components/conversation/attachments/audio_attachment.d.ts +1 -1
  6. package/build/components/conversation/attachments/audio_attachment.d.ts.map +1 -1
  7. package/build/components/conversation/attachments/audio_attachment.js +3 -3
  8. package/build/components/conversation/attachments/audio_attachment.js.map +1 -1
  9. package/build/components/conversation/attachments/expanded_link.d.ts +1 -1
  10. package/build/components/conversation/attachments/expanded_link.d.ts.map +1 -1
  11. package/build/components/conversation/attachments/expanded_link.js +3 -3
  12. package/build/components/conversation/attachments/expanded_link.js.map +1 -1
  13. package/build/components/conversation/attachments/generic_file_attachment.d.ts +1 -1
  14. package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +1 -1
  15. package/build/components/conversation/attachments/generic_file_attachment.js +4 -4
  16. package/build/components/conversation/attachments/generic_file_attachment.js.map +1 -1
  17. package/build/components/conversation/attachments/giphy_attachment.d.ts +1 -1
  18. package/build/components/conversation/attachments/giphy_attachment.d.ts.map +1 -1
  19. package/build/components/conversation/attachments/giphy_attachment.js +4 -4
  20. package/build/components/conversation/attachments/giphy_attachment.js.map +1 -1
  21. package/build/components/conversation/attachments/image_attachment.d.ts +1 -1
  22. package/build/components/conversation/attachments/image_attachment.d.ts.map +1 -1
  23. package/build/components/conversation/attachments/image_attachment.js +5 -5
  24. package/build/components/conversation/attachments/image_attachment.js.map +1 -1
  25. package/build/components/conversation/attachments/video_attachment.d.ts +1 -1
  26. package/build/components/conversation/attachments/video_attachment.d.ts.map +1 -1
  27. package/build/components/conversation/attachments/video_attachment.js +4 -4
  28. package/build/components/conversation/attachments/video_attachment.js.map +1 -1
  29. package/build/components/conversation/empty_conversation_blank_state.js +1 -1
  30. package/build/components/conversation/empty_conversation_blank_state.js.map +1 -1
  31. package/build/components/conversation/jump_to_bottom_button.js +3 -3
  32. package/build/components/conversation/jump_to_bottom_button.js.map +1 -1
  33. package/build/components/conversation/message.d.ts +1 -1
  34. package/build/components/conversation/message.d.ts.map +1 -1
  35. package/build/components/conversation/message.js +12 -12
  36. package/build/components/conversation/message.js.map +1 -1
  37. package/build/components/conversation/message_attachments.d.ts +1 -1
  38. package/build/components/conversation/message_attachments.d.ts.map +1 -1
  39. package/build/components/conversation/message_attachments.js +1 -1
  40. package/build/components/conversation/message_attachments.js.map +1 -1
  41. package/build/components/conversation/message_form/message_form_attachment_image.d.ts +1 -1
  42. package/build/components/conversation/message_form/message_form_attachment_image.d.ts.map +1 -1
  43. package/build/components/conversation/message_form/message_form_attachment_image.js +1 -1
  44. package/build/components/conversation/message_form/message_form_attachment_image.js.map +1 -1
  45. package/build/components/conversation/message_form/message_form_attachment_video.d.ts +1 -1
  46. package/build/components/conversation/message_form/message_form_attachment_video.d.ts.map +1 -1
  47. package/build/components/conversation/message_form/message_form_attachment_video.js +1 -1
  48. package/build/components/conversation/message_form/message_form_attachment_video.js.map +1 -1
  49. package/build/components/conversation/message_form.d.ts +1 -1
  50. package/build/components/conversation/message_form.d.ts.map +1 -1
  51. package/build/components/conversation/message_form.js +12 -12
  52. package/build/components/conversation/message_form.js.map +1 -1
  53. package/build/components/conversation/message_markdown.js +3 -3
  54. package/build/components/conversation/message_markdown.js.map +1 -1
  55. package/build/components/conversation/message_reaction.d.ts +2 -2
  56. package/build/components/conversation/message_reaction.d.ts.map +1 -1
  57. package/build/components/conversation/message_reaction.js +6 -6
  58. package/build/components/conversation/message_reaction.js.map +1 -1
  59. package/build/components/conversation/message_read_receipts.d.ts +1 -1
  60. package/build/components/conversation/message_read_receipts.d.ts.map +1 -1
  61. package/build/components/conversation/message_read_receipts.js +2 -2
  62. package/build/components/conversation/message_read_receipts.js.map +1 -1
  63. package/build/components/conversation/messages_disabled_banners.js +2 -2
  64. package/build/components/conversation/messages_disabled_banners.js.map +1 -1
  65. package/build/components/conversation/reply_connectors.d.ts +1 -1
  66. package/build/components/conversation/reply_connectors.d.ts.map +1 -1
  67. package/build/components/conversation/reply_connectors.js +2 -2
  68. package/build/components/conversation/reply_connectors.js.map +1 -1
  69. package/build/components/conversation/reply_shadow_message.d.ts +1 -1
  70. package/build/components/conversation/reply_shadow_message.d.ts.map +1 -1
  71. package/build/components/conversation/reply_shadow_message.js +6 -6
  72. package/build/components/conversation/reply_shadow_message.js.map +1 -1
  73. package/build/components/conversation/typing_indicator.js +3 -3
  74. package/build/components/conversation/typing_indicator.js.map +1 -1
  75. package/build/components/conversations/conversation_actions.d.ts +1 -1
  76. package/build/components/conversations/conversation_actions.d.ts.map +1 -1
  77. package/build/components/conversations/conversation_actions.js +5 -5
  78. package/build/components/conversations/conversation_actions.js.map +1 -1
  79. package/build/components/conversations/conversation_preview.d.ts +1 -1
  80. package/build/components/conversations/conversation_preview.d.ts.map +1 -1
  81. package/build/components/conversations/conversation_preview.js +3 -3
  82. package/build/components/conversations/conversation_preview.js.map +1 -1
  83. package/build/components/conversations/conversations.js +5 -5
  84. package/build/components/conversations/conversations.js.map +1 -1
  85. package/build/components/conversations/mute_indicator.js +3 -3
  86. package/build/components/conversations/mute_indicator.js.map +1 -1
  87. package/build/components/conversations/swipeable_toggle_button.d.ts +1 -1
  88. package/build/components/conversations/swipeable_toggle_button.d.ts.map +1 -1
  89. package/build/components/conversations/swipeable_toggle_button.js +5 -5
  90. package/build/components/conversations/swipeable_toggle_button.js.map +1 -1
  91. package/build/components/conversations/unread_count_badge.js +3 -3
  92. package/build/components/conversations/unread_count_badge.js.map +1 -1
  93. package/build/components/display/action_button.d.ts.map +1 -1
  94. package/build/components/display/action_button.js +2 -2
  95. package/build/components/display/action_button.js.map +1 -1
  96. package/build/components/display/avatar.d.ts +1 -1
  97. package/build/components/display/avatar.d.ts.map +1 -1
  98. package/build/components/display/avatar.js +1 -1
  99. package/build/components/display/avatar.js.map +1 -1
  100. package/build/components/display/avatar_group.d.ts +1 -1
  101. package/build/components/display/avatar_group.d.ts.map +1 -1
  102. package/build/components/display/avatar_group.js +1 -1
  103. package/build/components/display/avatar_group.js.map +1 -1
  104. package/build/components/display/badge.d.ts.map +1 -1
  105. package/build/components/display/badge.js +3 -3
  106. package/build/components/display/badge.js.map +1 -1
  107. package/build/components/display/banner.d.ts +1 -1
  108. package/build/components/display/banner.d.ts.map +1 -1
  109. package/build/components/display/banner.js +1 -1
  110. package/build/components/display/banner.js.map +1 -1
  111. package/build/components/display/banner_collapsible.d.ts.map +1 -1
  112. package/build/components/display/banner_collapsible.js +1 -1
  113. package/build/components/display/banner_collapsible.js.map +1 -1
  114. package/build/components/display/button.d.ts.map +1 -1
  115. package/build/components/display/button.js +3 -3
  116. package/build/components/display/button.js.map +1 -1
  117. package/build/components/display/child_notice.d.ts +1 -1
  118. package/build/components/display/child_notice.d.ts.map +1 -1
  119. package/build/components/display/child_notice.js +2 -2
  120. package/build/components/display/child_notice.js.map +1 -1
  121. package/build/components/display/heading.js +3 -3
  122. package/build/components/display/heading.js.map +1 -1
  123. package/build/components/display/icon.js +1 -1
  124. package/build/components/display/icon.js.map +1 -1
  125. package/build/components/display/icon_button.d.ts.map +1 -1
  126. package/build/components/display/icon_button.js +2 -2
  127. package/build/components/display/icon_button.js.map +1 -1
  128. package/build/components/display/image.js +1 -1
  129. package/build/components/display/image.js.map +1 -1
  130. package/build/components/display/image_attachment_preview.js +2 -2
  131. package/build/components/display/image_attachment_preview.js.map +1 -1
  132. package/build/components/display/keyboard_view.js +1 -1
  133. package/build/components/display/keyboard_view.js.map +1 -1
  134. package/build/components/display/person.d.ts +1 -1
  135. package/build/components/display/person.d.ts.map +1 -1
  136. package/build/components/display/person.js +1 -1
  137. package/build/components/display/person.js.map +1 -1
  138. package/build/components/display/platform_modal_header_buttons.js +1 -1
  139. package/build/components/display/platform_modal_header_buttons.js.map +1 -1
  140. package/build/components/display/pressable_row.d.ts.map +1 -1
  141. package/build/components/display/pressable_row.js +1 -1
  142. package/build/components/display/pressable_row.js.map +1 -1
  143. package/build/components/display/spinner.js +1 -1
  144. package/build/components/display/spinner.js.map +1 -1
  145. package/build/components/display/switch.js +1 -1
  146. package/build/components/display/switch.js.map +1 -1
  147. package/build/components/display/tabs.js +1 -1
  148. package/build/components/display/tabs.js.map +1 -1
  149. package/build/components/display/text.js +2 -2
  150. package/build/components/display/text.js.map +1 -1
  151. package/build/components/display/text_button.d.ts.map +1 -1
  152. package/build/components/display/text_button.js +2 -2
  153. package/build/components/display/text_button.js.map +1 -1
  154. package/build/components/display/text_inline_button.d.ts.map +1 -1
  155. package/build/components/display/text_inline_button.js +2 -2
  156. package/build/components/display/text_inline_button.js.map +1 -1
  157. package/build/components/display/toggle_button.d.ts.map +1 -1
  158. package/build/components/display/toggle_button.js +4 -4
  159. package/build/components/display/toggle_button.js.map +1 -1
  160. package/build/components/display/utils/button_colors.js +1 -1
  161. package/build/components/display/utils/button_colors.js.map +1 -1
  162. package/build/components/display/utils/status_colors.js +1 -1
  163. package/build/components/display/utils/status_colors.js.map +1 -1
  164. package/build/components/display/video_attachment_preview.js +3 -3
  165. package/build/components/display/video_attachment_preview.js.map +1 -1
  166. package/build/components/group_conversation_list.d.ts +1 -1
  167. package/build/components/group_conversation_list.d.ts.map +1 -1
  168. package/build/components/group_conversation_list.js +2 -2
  169. package/build/components/group_conversation_list.js.map +1 -1
  170. package/build/components/page/error_boundary.d.ts +1 -1
  171. package/build/components/page/error_boundary.d.ts.map +1 -1
  172. package/build/components/page/error_boundary.js +2 -2
  173. package/build/components/page/error_boundary.js.map +1 -1
  174. package/build/components/page/loading.js +1 -1
  175. package/build/components/page/loading.js.map +1 -1
  176. package/build/components/primitive/avatar_primitive.d.ts +2 -2
  177. package/build/components/primitive/avatar_primitive.d.ts.map +1 -1
  178. package/build/components/primitive/avatar_primitive.js +5 -5
  179. package/build/components/primitive/avatar_primitive.js.map +1 -1
  180. package/build/components/primitive/banner_primitive.d.ts +2 -2
  181. package/build/components/primitive/banner_primitive.d.ts.map +1 -1
  182. package/build/components/primitive/banner_primitive.js +8 -8
  183. package/build/components/primitive/banner_primitive.js.map +1 -1
  184. package/build/components/primitive/blank_state_primitive.d.ts +1 -1
  185. package/build/components/primitive/blank_state_primitive.d.ts.map +1 -1
  186. package/build/components/primitive/blank_state_primitive.js +2 -2
  187. package/build/components/primitive/blank_state_primitive.js.map +1 -1
  188. package/build/components/primitive/form_sheet.d.ts +2 -2
  189. package/build/components/primitive/form_sheet.d.ts.map +1 -1
  190. package/build/components/primitive/form_sheet.js +3 -3
  191. package/build/components/primitive/form_sheet.js.map +1 -1
  192. package/build/components/safe_area_modal.js +1 -1
  193. package/build/components/safe_area_modal.js.map +1 -1
  194. package/build/contexts/api_provider.js +4 -4
  195. package/build/contexts/api_provider.js.map +1 -1
  196. package/build/contexts/chat_context.d.ts +6 -6
  197. package/build/contexts/chat_context.d.ts.map +1 -1
  198. package/build/contexts/chat_context.js +2 -2
  199. package/build/contexts/chat_context.js.map +1 -1
  200. package/build/contexts/conversations_context.d.ts +2 -2
  201. package/build/contexts/conversations_context.d.ts.map +1 -1
  202. package/build/contexts/conversations_context.js +1 -1
  203. package/build/contexts/conversations_context.js.map +1 -1
  204. package/build/contexts/session_context.d.ts +3 -3
  205. package/build/contexts/session_context.d.ts.map +1 -1
  206. package/build/contexts/session_context.js +6 -6
  207. package/build/contexts/session_context.js.map +1 -1
  208. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +7 -7
  209. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
  210. package/build/hooks/groups/use_group_members_for_new_conversation.js +2 -2
  211. package/build/hooks/groups/use_group_members_for_new_conversation.js.map +1 -1
  212. package/build/hooks/groups/use_groups_conversation_create.d.ts +1 -1
  213. package/build/hooks/groups/use_groups_conversation_create.d.ts.map +1 -1
  214. package/build/hooks/groups/use_groups_conversation_create.js +2 -2
  215. package/build/hooks/groups/use_groups_conversation_create.js.map +1 -1
  216. package/build/hooks/services/use_find_or_create_services_conversation.d.ts +2 -2
  217. package/build/hooks/services/use_find_or_create_services_conversation.d.ts.map +1 -1
  218. package/build/hooks/services/use_find_or_create_services_conversation.js +2 -2
  219. package/build/hooks/services/use_find_or_create_services_conversation.js.map +1 -1
  220. package/build/hooks/services/use_services_team.d.ts +1 -1
  221. package/build/hooks/services/use_services_team.d.ts.map +1 -1
  222. package/build/hooks/services/use_services_team.js +1 -1
  223. package/build/hooks/services/use_services_team.js.map +1 -1
  224. package/build/hooks/services/use_team_members_for_new_conversation.d.ts +21 -21
  225. package/build/hooks/services/use_team_members_for_new_conversation.d.ts.map +1 -1
  226. package/build/hooks/services/use_team_members_for_new_conversation.js +1 -1
  227. package/build/hooks/services/use_team_members_for_new_conversation.js.map +1 -1
  228. package/build/hooks/services/use_team_plans.d.ts +1 -1
  229. package/build/hooks/services/use_team_plans.js +1 -1
  230. package/build/hooks/services/use_team_plans.js.map +1 -1
  231. package/build/hooks/use_api.d.ts +2 -2
  232. package/build/hooks/use_api.d.ts.map +1 -1
  233. package/build/hooks/use_api.js.map +1 -1
  234. package/build/hooks/use_api_client.d.ts +1 -1
  235. package/build/hooks/use_api_client.d.ts.map +1 -1
  236. package/build/hooks/use_api_client.js +3 -3
  237. package/build/hooks/use_api_client.js.map +1 -1
  238. package/build/hooks/use_async_storage.js +1 -1
  239. package/build/hooks/use_async_storage.js.map +1 -1
  240. package/build/hooks/use_attachment_uploader.d.ts +1 -1
  241. package/build/hooks/use_attachment_uploader.d.ts.map +1 -1
  242. package/build/hooks/use_attachment_uploader.js.map +1 -1
  243. package/build/hooks/use_broadcast_typing_status.js +1 -1
  244. package/build/hooks/use_broadcast_typing_status.js.map +1 -1
  245. package/build/hooks/use_chat_permissions.d.ts +21 -21
  246. package/build/hooks/use_chat_permissions.d.ts.map +1 -1
  247. package/build/hooks/use_chat_permissions.js.map +1 -1
  248. package/build/hooks/use_conversation.d.ts +5 -5
  249. package/build/hooks/use_conversation.d.ts.map +1 -1
  250. package/build/hooks/use_conversation.js +4 -3
  251. package/build/hooks/use_conversation.js.map +1 -1
  252. package/build/hooks/use_conversation_jolt_events.js +1 -1
  253. package/build/hooks/use_conversation_jolt_events.js.map +1 -1
  254. package/build/hooks/use_conversation_membership.d.ts +1 -1
  255. package/build/hooks/use_conversation_membership.d.ts.map +1 -1
  256. package/build/hooks/use_conversation_membership.js +2 -2
  257. package/build/hooks/use_conversation_membership.js.map +1 -1
  258. package/build/hooks/use_conversation_message.d.ts +1 -1
  259. package/build/hooks/use_conversation_message.d.ts.map +1 -1
  260. package/build/hooks/use_conversation_message.js +1 -1
  261. package/build/hooks/use_conversation_message.js.map +1 -1
  262. package/build/hooks/use_conversation_messages.d.ts +3 -3
  263. package/build/hooks/use_conversation_messages.d.ts.map +1 -1
  264. package/build/hooks/use_conversation_messages.js +1 -1
  265. package/build/hooks/use_conversation_messages.js.map +1 -1
  266. package/build/hooks/use_conversation_messages_jolt_events.js +6 -6
  267. package/build/hooks/use_conversation_messages_jolt_events.js.map +1 -1
  268. package/build/hooks/use_conversations.d.ts +2 -2
  269. package/build/hooks/use_conversations.d.ts.map +1 -1
  270. package/build/hooks/use_conversations.js +1 -1
  271. package/build/hooks/use_conversations.js.map +1 -1
  272. package/build/hooks/use_conversations_actions.d.ts +19 -19
  273. package/build/hooks/use_conversations_actions.d.ts.map +1 -1
  274. package/build/hooks/use_conversations_actions.js +1 -1
  275. package/build/hooks/use_conversations_actions.js.map +1 -1
  276. package/build/hooks/use_conversations_cache.d.ts +2 -2
  277. package/build/hooks/use_conversations_cache.d.ts.map +1 -1
  278. package/build/hooks/use_conversations_cache.js +2 -2
  279. package/build/hooks/use_conversations_cache.js.map +1 -1
  280. package/build/hooks/use_conversations_jolt_events.js +2 -2
  281. package/build/hooks/use_conversations_jolt_events.js.map +1 -1
  282. package/build/hooks/use_current_person.d.ts +1 -1
  283. package/build/hooks/use_current_person.d.ts.map +1 -1
  284. package/build/hooks/use_current_person.js.map +1 -1
  285. package/build/hooks/use_features.d.ts +2 -2
  286. package/build/hooks/use_features.d.ts.map +1 -1
  287. package/build/hooks/use_features.js +2 -2
  288. package/build/hooks/use_features.js.map +1 -1
  289. package/build/hooks/use_giphy.d.ts +1 -1
  290. package/build/hooks/use_giphy.d.ts.map +1 -1
  291. package/build/hooks/use_giphy.js +1 -1
  292. package/build/hooks/use_giphy.js.map +1 -1
  293. package/build/hooks/use_groups.d.ts +2 -2
  294. package/build/hooks/use_groups.d.ts.map +1 -1
  295. package/build/hooks/use_groups.js.map +1 -1
  296. package/build/hooks/use_groups_groups.d.ts +33 -33
  297. package/build/hooks/use_groups_groups.d.ts.map +1 -1
  298. package/build/hooks/use_groups_groups.js.map +1 -1
  299. package/build/hooks/use_jolt.js +2 -2
  300. package/build/hooks/use_jolt.js.map +1 -1
  301. package/build/hooks/use_live_relative_time.d.ts +1 -1
  302. package/build/hooks/use_live_relative_time.d.ts.map +1 -1
  303. package/build/hooks/use_live_relative_time.js +2 -2
  304. package/build/hooks/use_live_relative_time.js.map +1 -1
  305. package/build/hooks/use_mark_latest_message_read.d.ts +1 -1
  306. package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -1
  307. package/build/hooks/use_mark_latest_message_read.js.map +1 -1
  308. package/build/hooks/use_message_create_or_update.d.ts +2 -2
  309. package/build/hooks/use_message_create_or_update.d.ts.map +1 -1
  310. package/build/hooks/use_message_create_or_update.js +7 -7
  311. package/build/hooks/use_message_create_or_update.js.map +1 -1
  312. package/build/hooks/use_message_draft.d.ts +1 -1
  313. package/build/hooks/use_message_draft.d.ts.map +1 -1
  314. package/build/hooks/use_message_draft.js +1 -1
  315. package/build/hooks/use_message_draft.js.map +1 -1
  316. package/build/hooks/use_message_reaction_toggle.d.ts +2 -2
  317. package/build/hooks/use_message_reaction_toggle.d.ts.map +1 -1
  318. package/build/hooks/use_message_reaction_toggle.js +2 -2
  319. package/build/hooks/use_message_reaction_toggle.js.map +1 -1
  320. package/build/hooks/use_my_gender.js.map +1 -1
  321. package/build/hooks/use_organization.d.ts +5 -5
  322. package/build/hooks/use_organization.d.ts.map +1 -1
  323. package/build/hooks/use_organization.js.map +1 -1
  324. package/build/hooks/use_people_person.d.ts +1 -1
  325. package/build/hooks/use_people_person.d.ts.map +1 -1
  326. package/build/hooks/use_people_person.js.map +1 -1
  327. package/build/hooks/use_product_analytics.d.ts +1 -1
  328. package/build/hooks/use_product_analytics.d.ts.map +1 -1
  329. package/build/hooks/use_product_analytics.js +3 -3
  330. package/build/hooks/use_product_analytics.js.map +1 -1
  331. package/build/hooks/use_qualified_by_age.js +1 -1
  332. package/build/hooks/use_qualified_by_age.js.map +1 -1
  333. package/build/hooks/use_read_receipts.d.ts +2 -2
  334. package/build/hooks/use_read_receipts.d.ts.map +1 -1
  335. package/build/hooks/use_read_receipts.js.map +1 -1
  336. package/build/hooks/use_report_message.d.ts +1 -1
  337. package/build/hooks/use_report_message.d.ts.map +1 -1
  338. package/build/hooks/use_report_message.js +1 -1
  339. package/build/hooks/use_report_message.js.map +1 -1
  340. package/build/hooks/use_storage.d.ts +1 -1
  341. package/build/hooks/use_storage.d.ts.map +1 -1
  342. package/build/hooks/use_storage.js.map +1 -1
  343. package/build/hooks/use_submit_age_check.d.ts +1 -1
  344. package/build/hooks/use_submit_age_check.d.ts.map +1 -1
  345. package/build/hooks/use_submit_age_check.js +1 -1
  346. package/build/hooks/use_submit_age_check.js.map +1 -1
  347. package/build/hooks/use_suspense_api.d.ts +5 -5
  348. package/build/hooks/use_suspense_api.d.ts.map +1 -1
  349. package/build/hooks/use_suspense_api.js +2 -2
  350. package/build/hooks/use_suspense_api.js.map +1 -1
  351. package/build/hooks/use_teams.d.ts +1 -1
  352. package/build/hooks/use_teams.d.ts.map +1 -1
  353. package/build/hooks/use_teams.js.map +1 -1
  354. package/build/hooks/use_theme.d.ts +1 -1
  355. package/build/hooks/use_theme.d.ts.map +1 -1
  356. package/build/hooks/use_theme.js +1 -1
  357. package/build/hooks/use_theme.js.map +1 -1
  358. package/build/hooks/use_typing_indicators.d.ts.map +1 -1
  359. package/build/hooks/use_typing_indicators.js +1 -1
  360. package/build/hooks/use_typing_indicators.js.map +1 -1
  361. package/build/hooks/use_typing_status_cache.d.ts +1 -1
  362. package/build/hooks/use_typing_status_cache.d.ts.map +1 -1
  363. package/build/hooks/use_typing_status_cache.js.map +1 -1
  364. package/build/hooks/use_upload_client.d.ts +1 -1
  365. package/build/hooks/use_upload_client.d.ts.map +1 -1
  366. package/build/hooks/use_upload_client.js +3 -3
  367. package/build/hooks/use_upload_client.js.map +1 -1
  368. package/build/navigation/chat_access_gate.js +7 -7
  369. package/build/navigation/chat_access_gate.js.map +1 -1
  370. package/build/navigation/index.d.ts +25 -25
  371. package/build/navigation/index.d.ts.map +1 -1
  372. package/build/navigation/index.js +28 -28
  373. package/build/navigation/index.js.map +1 -1
  374. package/build/navigation/screenLayout.js +2 -2
  375. package/build/navigation/screenLayout.js.map +1 -1
  376. package/build/polyfills/events/Event.d.ts +4 -0
  377. package/build/polyfills/events/Event.d.ts.map +1 -1
  378. package/build/polyfills/events/Event.js +1 -5
  379. package/build/polyfills/events/Event.js.map +1 -1
  380. package/build/polyfills/events/EventTarget.d.ts +3 -0
  381. package/build/polyfills/events/EventTarget.d.ts.map +1 -1
  382. package/build/polyfills/events/EventTarget.js +1 -1
  383. package/build/polyfills/events/EventTarget.js.map +1 -1
  384. package/build/polyfills/events/internals/EventInternals.d.ts +2 -2
  385. package/build/polyfills/events/internals/EventInternals.d.ts.map +1 -1
  386. package/build/polyfills/events/internals/EventInternals.js.map +1 -1
  387. package/build/polyfills/events/internals/EventTargetInternals.d.ts +2 -2
  388. package/build/polyfills/events/internals/EventTargetInternals.d.ts.map +1 -1
  389. package/build/polyfills/events/internals/EventTargetInternals.js.map +1 -1
  390. package/build/screens/age_check/age_check_required_screen.js +8 -8
  391. package/build/screens/age_check/age_check_required_screen.js.map +1 -1
  392. package/build/screens/age_check/age_check_underage_screen.js +3 -3
  393. package/build/screens/age_check/age_check_underage_screen.js.map +1 -1
  394. package/build/screens/age_check/components/age_check_select_birthdate_modal.js +3 -3
  395. package/build/screens/age_check/components/age_check_select_birthdate_modal.js.map +1 -1
  396. package/build/screens/attachment_actions/attachment_actions_screen.js +1 -1
  397. package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
  398. package/build/screens/attachment_actions/hooks/useDeleteAttachment.js +3 -3
  399. package/build/screens/attachment_actions/hooks/useDeleteAttachment.js.map +1 -1
  400. package/build/screens/bug_report_screen.js +11 -11
  401. package/build/screens/bug_report_screen.js.map +1 -1
  402. package/build/screens/conversation/message_read_receipts_screen.js +4 -4
  403. package/build/screens/conversation/message_read_receipts_screen.js.map +1 -1
  404. package/build/screens/conversation_details_screen.d.ts.map +1 -1
  405. package/build/screens/conversation_details_screen.js +37 -9
  406. package/build/screens/conversation_details_screen.js.map +1 -1
  407. package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +1 -1
  408. package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -1
  409. package/build/screens/conversation_filter_recipients/components/checkbox_row.js +3 -3
  410. package/build/screens/conversation_filter_recipients/components/checkbox_row.js.map +1 -1
  411. package/build/screens/conversation_filter_recipients/components/header_row.d.ts +1 -1
  412. package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +1 -1
  413. package/build/screens/conversation_filter_recipients/components/header_row.js +4 -4
  414. package/build/screens/conversation_filter_recipients/components/header_row.js.map +1 -1
  415. package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +1 -1
  416. package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js +6 -6
  417. package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js.map +1 -1
  418. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts +1 -1
  419. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts.map +1 -1
  420. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.js +1 -1
  421. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.js.map +1 -1
  422. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts +22 -22
  423. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts.map +1 -1
  424. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.js +2 -2
  425. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.js.map +1 -1
  426. package/build/screens/conversation_filter_recipients/types.d.ts +1 -1
  427. package/build/screens/conversation_filter_recipients/types.d.ts.map +1 -1
  428. package/build/screens/conversation_filter_recipients/types.js.map +1 -1
  429. package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
  430. package/build/screens/conversation_filters/components/conversation_filters.js +5 -5
  431. package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
  432. package/build/screens/conversation_filters/components/rows.d.ts +4 -4
  433. package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
  434. package/build/screens/conversation_filters/components/rows.js +5 -5
  435. package/build/screens/conversation_filters/components/rows.js.map +1 -1
  436. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts +1 -1
  437. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
  438. package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
  439. package/build/screens/conversation_filters/group_filters.d.ts.map +1 -1
  440. package/build/screens/conversation_filters/group_filters.js +1 -1
  441. package/build/screens/conversation_filters/group_filters.js.map +1 -1
  442. package/build/screens/conversation_filters/hooks/filters.d.ts +54 -54
  443. package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -1
  444. package/build/screens/conversation_filters/hooks/filters.js +3 -3
  445. package/build/screens/conversation_filters/hooks/filters.js.map +1 -1
  446. package/build/screens/conversation_filters/screen_props.d.ts +1 -1
  447. package/build/screens/conversation_filters/screen_props.d.ts.map +1 -1
  448. package/build/screens/conversation_filters/screen_props.js.map +1 -1
  449. package/build/screens/conversation_filters/team_filters.d.ts.map +1 -1
  450. package/build/screens/conversation_filters/team_filters.js +1 -1
  451. package/build/screens/conversation_filters/team_filters.js.map +1 -1
  452. package/build/screens/conversation_filters_screen.d.ts.map +1 -1
  453. package/build/screens/conversation_filters_screen.js +1 -1
  454. package/build/screens/conversation_filters_screen.js.map +1 -1
  455. package/build/screens/conversation_new/components/filter_by_plan.js +7 -7
  456. package/build/screens/conversation_new/components/filter_by_plan.js.map +1 -1
  457. package/build/screens/conversation_new/components/form_list.d.ts +1 -1
  458. package/build/screens/conversation_new/components/form_list.d.ts.map +1 -1
  459. package/build/screens/conversation_new/components/form_list.js +2 -2
  460. package/build/screens/conversation_new/components/form_list.js.map +1 -1
  461. package/build/screens/conversation_new/components/gender_filter_toggle.js +3 -3
  462. package/build/screens/conversation_new/components/gender_filter_toggle.js.map +1 -1
  463. package/build/screens/conversation_new/components/groups_form.d.ts +1 -1
  464. package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -1
  465. package/build/screens/conversation_new/components/groups_form.js +10 -10
  466. package/build/screens/conversation_new/components/groups_form.js.map +1 -1
  467. package/build/screens/conversation_new/components/services_form.d.ts +1 -1
  468. package/build/screens/conversation_new/components/services_form.d.ts.map +1 -1
  469. package/build/screens/conversation_new/components/services_form.js +8 -8
  470. package/build/screens/conversation_new/components/services_form.js.map +1 -1
  471. package/build/screens/conversation_new/components/source_app_error_card.js +1 -1
  472. package/build/screens/conversation_new/components/source_app_error_card.js.map +1 -1
  473. package/build/screens/conversation_new/conversation_new_screen.d.ts +3 -3
  474. package/build/screens/conversation_new/conversation_new_screen.d.ts.map +1 -1
  475. package/build/screens/conversation_new/conversation_new_screen.js.map +1 -1
  476. package/build/screens/conversation_notification_level_select_screen.js +5 -5
  477. package/build/screens/conversation_notification_level_select_screen.js.map +1 -1
  478. package/build/screens/conversation_screen.d.ts +3 -3
  479. package/build/screens/conversation_screen.d.ts.map +1 -1
  480. package/build/screens/conversation_screen.js +21 -21
  481. package/build/screens/conversation_screen.js.map +1 -1
  482. package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts +1 -1
  483. package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts.map +1 -1
  484. package/build/screens/conversation_select_recipients/components/groups_recipient_row.js +1 -1
  485. package/build/screens/conversation_select_recipients/components/groups_recipient_row.js.map +1 -1
  486. package/build/screens/conversation_select_recipients/components/recipient_link_row.js +3 -3
  487. package/build/screens/conversation_select_recipients/components/recipient_link_row.js.map +1 -1
  488. package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts +1 -1
  489. package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts.map +1 -1
  490. package/build/screens/conversation_select_recipients/components/restricted_group_row.js +3 -3
  491. package/build/screens/conversation_select_recipients/components/restricted_group_row.js.map +1 -1
  492. package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts +1 -1
  493. package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts.map +1 -1
  494. package/build/screens/conversation_select_recipients/components/team_recipient_row.js +1 -1
  495. package/build/screens/conversation_select_recipients/components/team_recipient_row.js.map +1 -1
  496. package/build/screens/conversation_select_recipients/components/view_more_link_row.js +1 -1
  497. package/build/screens/conversation_select_recipients/components/view_more_link_row.js.map +1 -1
  498. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts.map +1 -1
  499. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +4 -4
  500. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js.map +1 -1
  501. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts.map +1 -1
  502. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js +2 -2
  503. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js.map +1 -1
  504. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts.map +1 -1
  505. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js +4 -4
  506. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js.map +1 -1
  507. package/build/screens/conversation_select_recipients/types/screen_props.d.ts +2 -2
  508. package/build/screens/conversation_select_recipients/types/screen_props.d.ts.map +1 -1
  509. package/build/screens/conversation_select_recipients/types/screen_props.js.map +1 -1
  510. package/build/screens/conversation_select_type_screen.d.ts +2 -2
  511. package/build/screens/conversation_select_type_screen.d.ts.map +1 -1
  512. package/build/screens/conversation_select_type_screen.js +2 -2
  513. package/build/screens/conversation_select_type_screen.js.map +1 -1
  514. package/build/screens/conversations/components/chat_group_badge.js +2 -2
  515. package/build/screens/conversations/components/chat_group_badge.js.map +1 -1
  516. package/build/screens/conversations/components/list_header_action_button.d.ts +1 -1
  517. package/build/screens/conversations/components/list_header_action_button.d.ts.map +1 -1
  518. package/build/screens/conversations/components/list_header_action_button.js +4 -4
  519. package/build/screens/conversations/components/list_header_action_button.js.map +1 -1
  520. package/build/screens/conversations/components/list_header_component.js +9 -9
  521. package/build/screens/conversations/components/list_header_component.js.map +1 -1
  522. package/build/screens/conversations/conversations_screen.d.ts +2 -2
  523. package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
  524. package/build/screens/conversations/conversations_screen.js +3 -3
  525. package/build/screens/conversations/conversations_screen.js.map +1 -1
  526. package/build/screens/design_system_screen.js +6 -6
  527. package/build/screens/design_system_screen.js.map +1 -1
  528. package/build/screens/get_help_screen.js +4 -4
  529. package/build/screens/get_help_screen.js.map +1 -1
  530. package/build/screens/group_notification_level_select_screen.js +3 -3
  531. package/build/screens/group_notification_level_select_screen.js.map +1 -1
  532. package/build/screens/group_notification_settings_screen.js +3 -3
  533. package/build/screens/group_notification_settings_screen.js.map +1 -1
  534. package/build/screens/message_actions_screen.js +10 -10
  535. package/build/screens/message_actions_screen.js.map +1 -1
  536. package/build/screens/message_report/components/message_preview.d.ts +1 -1
  537. package/build/screens/message_report/components/message_preview.d.ts.map +1 -1
  538. package/build/screens/message_report/components/message_preview.js +2 -2
  539. package/build/screens/message_report/components/message_preview.js.map +1 -1
  540. package/build/screens/message_report/components/report_reason_list.d.ts +1 -1
  541. package/build/screens/message_report/components/report_reason_list.d.ts.map +1 -1
  542. package/build/screens/message_report/components/report_reason_list.js +4 -4
  543. package/build/screens/message_report/components/report_reason_list.js.map +1 -1
  544. package/build/screens/message_report_screen.js +7 -7
  545. package/build/screens/message_report_screen.js.map +1 -1
  546. package/build/screens/notification_settings/hooks/groups.d.ts +7 -7
  547. package/build/screens/notification_settings/hooks/groups.d.ts.map +1 -1
  548. package/build/screens/notification_settings/hooks/groups.js +4 -4
  549. package/build/screens/notification_settings/hooks/groups.js.map +1 -1
  550. package/build/screens/notification_settings_screen.js +4 -4
  551. package/build/screens/notification_settings_screen.js.map +1 -1
  552. package/build/screens/preferred_app/hooks/use_chat_types.d.ts +5 -5
  553. package/build/screens/preferred_app/hooks/use_chat_types.d.ts.map +1 -1
  554. package/build/screens/preferred_app/hooks/use_chat_types.js +1 -1
  555. package/build/screens/preferred_app/hooks/use_chat_types.js.map +1 -1
  556. package/build/screens/preferred_app_selection_screen.d.ts.map +1 -1
  557. package/build/screens/preferred_app_selection_screen.js +7 -7
  558. package/build/screens/preferred_app_selection_screen.js.map +1 -1
  559. package/build/screens/reactions_screen.js +7 -7
  560. package/build/screens/reactions_screen.js.map +1 -1
  561. package/build/screens/send_giphy_screen.js +8 -8
  562. package/build/screens/send_giphy_screen.js.map +1 -1
  563. package/build/screens/team_conversation_screen.js +3 -3
  564. package/build/screens/team_conversation_screen.js.map +1 -1
  565. package/build/types/jolt_events/message_events.d.ts +1 -1
  566. package/build/types/jolt_events/message_events.d.ts.map +1 -1
  567. package/build/types/jolt_events/message_events.js.map +1 -1
  568. package/build/types/jolt_events/reaction_events.d.ts +1 -1
  569. package/build/types/jolt_events/reaction_events.d.ts.map +1 -1
  570. package/build/types/jolt_events/reaction_events.js.map +1 -1
  571. package/build/types/resources/app_grant.d.ts +1 -1
  572. package/build/types/resources/app_grant.d.ts.map +1 -1
  573. package/build/types/resources/app_grant.js.map +1 -1
  574. package/build/types/resources/conversation.d.ts +1 -0
  575. package/build/types/resources/conversation.d.ts.map +1 -1
  576. package/build/types/resources/conversation.js.map +1 -1
  577. package/build/types/resources/conversation_membership.d.ts +1 -1
  578. package/build/types/resources/conversation_membership.d.ts.map +1 -1
  579. package/build/types/resources/conversation_membership.js.map +1 -1
  580. package/build/types/resources/group_membership.d.ts +1 -1
  581. package/build/types/resources/group_membership.d.ts.map +1 -1
  582. package/build/types/resources/group_membership.js.map +1 -1
  583. package/build/types/resources/groups/groups_group_resource.d.ts +1 -1
  584. package/build/types/resources/groups/groups_group_resource.d.ts.map +1 -1
  585. package/build/types/resources/groups/groups_group_resource.js.map +1 -1
  586. package/build/types/resources/organization.d.ts +1 -1
  587. package/build/types/resources/organization.d.ts.map +1 -1
  588. package/build/types/resources/organization.js.map +1 -1
  589. package/build/types/resources/person.d.ts +1 -1
  590. package/build/types/resources/person.d.ts.map +1 -1
  591. package/build/types/resources/person.js.map +1 -1
  592. package/build/types/resources/services/chat_resource.d.ts +1 -1
  593. package/build/types/resources/services/chat_resource.d.ts.map +1 -1
  594. package/build/types/resources/services/chat_resource.js.map +1 -1
  595. package/build/types/resources/services/team_resource.d.ts +1 -1
  596. package/build/types/resources/services/team_resource.d.ts.map +1 -1
  597. package/build/types/resources/services/team_resource.js.map +1 -1
  598. package/build/utils/cache/messages_cache.d.ts +3 -3
  599. package/build/utils/cache/messages_cache.d.ts.map +1 -1
  600. package/build/utils/cache/messages_cache.js +3 -3
  601. package/build/utils/cache/messages_cache.js.map +1 -1
  602. package/build/utils/cache/optimistically_create_message.d.ts +2 -2
  603. package/build/utils/cache/optimistically_create_message.d.ts.map +1 -1
  604. package/build/utils/cache/optimistically_create_message.js +4 -4
  605. package/build/utils/cache/optimistically_create_message.js.map +1 -1
  606. package/build/utils/cache/optimistically_update_message.d.ts +1 -1
  607. package/build/utils/cache/optimistically_update_message.d.ts.map +1 -1
  608. package/build/utils/cache/optimistically_update_message.js +2 -2
  609. package/build/utils/cache/optimistically_update_message.js.map +1 -1
  610. package/build/utils/cache/page_mutations.d.ts +5 -5
  611. package/build/utils/cache/page_mutations.d.ts.map +1 -1
  612. package/build/utils/cache/page_mutations.js.map +1 -1
  613. package/build/utils/client/client.d.ts +1 -1
  614. package/build/utils/client/client.d.ts.map +1 -1
  615. package/build/utils/client/client.js.map +1 -1
  616. package/build/utils/convert_attachments_for_create.d.ts +2 -2
  617. package/build/utils/convert_attachments_for_create.d.ts.map +1 -1
  618. package/build/utils/convert_attachments_for_create.js.map +1 -1
  619. package/build/utils/destructure_chat_group_graph_id.d.ts +2 -2
  620. package/build/utils/destructure_chat_group_graph_id.d.ts.map +1 -1
  621. package/build/utils/destructure_chat_group_graph_id.js.map +1 -1
  622. package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts +2 -2
  623. package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts.map +1 -1
  624. package/build/utils/jolt/transform_message_event_data_to_message_resource.js +1 -1
  625. package/build/utils/jolt/transform_message_event_data_to_message_resource.js.map +1 -1
  626. package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts +3 -3
  627. package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts.map +1 -1
  628. package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.js.map +1 -1
  629. package/build/utils/performance_tracking.d.ts +1 -1
  630. package/build/utils/performance_tracking.d.ts.map +1 -1
  631. package/build/utils/performance_tracking.js.map +1 -1
  632. package/build/utils/reaction_constants.d.ts +1 -1
  633. package/build/utils/reaction_constants.d.ts.map +1 -1
  634. package/build/utils/reaction_constants.js.map +1 -1
  635. package/build/utils/request/conversation.d.ts +2 -2
  636. package/build/utils/request/conversation.d.ts.map +1 -1
  637. package/build/utils/request/conversation.js.map +1 -1
  638. package/build/utils/request/get_features.d.ts +1 -1
  639. package/build/utils/request/get_features.d.ts.map +1 -1
  640. package/build/utils/request/get_features.js +1 -1
  641. package/build/utils/request/get_features.js.map +1 -1
  642. package/build/utils/request/get_message.d.ts +1 -1
  643. package/build/utils/request/get_message.d.ts.map +1 -1
  644. package/build/utils/request/get_message.js +1 -1
  645. package/build/utils/request/get_message.js.map +1 -1
  646. package/build/utils/request/get_messages.d.ts +1 -1
  647. package/build/utils/request/get_messages.d.ts.map +1 -1
  648. package/build/utils/request/get_messages.js +1 -1
  649. package/build/utils/request/get_messages.js.map +1 -1
  650. package/build/utils/response_error.d.ts +1 -1
  651. package/build/utils/response_error.d.ts.map +1 -1
  652. package/build/utils/response_error.js.map +1 -1
  653. package/build/utils/session.d.ts +1 -1
  654. package/build/utils/session.d.ts.map +1 -1
  655. package/build/utils/session.js.map +1 -1
  656. package/build/utils/session_manager.d.ts +1 -1
  657. package/build/utils/session_manager.d.ts.map +1 -1
  658. package/build/utils/session_manager.js.map +1 -1
  659. package/build/utils/styles.js +1 -1
  660. package/build/utils/styles.js.map +1 -1
  661. package/build/utils/theme.d.ts +1 -1
  662. package/build/utils/theme.d.ts.map +1 -1
  663. package/build/utils/theme.js +2 -2
  664. package/build/utils/theme.js.map +1 -1
  665. package/package.json +3 -2
  666. package/src/__tests__/contexts/session_context.tsx +5 -5
  667. package/src/__tests__/event-polyfill.test.ts +3 -3
  668. package/src/__tests__/hooks/useTheme.tsx +2 -2
  669. package/src/__tests__/hooks/use_async_storage.test.tsx +1 -1
  670. package/src/__tests__/hooks/use_conversation_messages.ts +2 -2
  671. package/src/__tests__/hooks/use_font_scale.test.ts +1 -1
  672. package/src/__tests__/utils/cache/page_mutations.ts +1 -1
  673. package/src/__tests__/utils/client.ts +5 -5
  674. package/src/__tests__/utils/native_adapters/configuration.ts +4 -4
  675. package/src/__tests__/utils/parse_simple_markdown.ts +1 -1
  676. package/src/__tests__/utils/pluralize.tsx +1 -1
  677. package/src/__tests__/utils/session.ts +2 -2
  678. package/src/__tests__/utils/uri.ts +1 -1
  679. package/src/__utils__/handlers.ts +1 -1
  680. package/src/components/conversation/attachments/attachment_card.tsx +3 -3
  681. package/src/components/conversation/attachments/attachment_deleting_overlay.tsx +2 -2
  682. package/src/components/conversation/attachments/audio_attachment.tsx +4 -4
  683. package/src/components/conversation/attachments/expanded_link.tsx +4 -4
  684. package/src/components/conversation/attachments/generic_file_attachment.tsx +5 -5
  685. package/src/components/conversation/attachments/giphy_attachment.tsx +5 -5
  686. package/src/components/conversation/attachments/image_attachment.tsx +6 -6
  687. package/src/components/conversation/attachments/video_attachment.tsx +5 -5
  688. package/src/components/conversation/empty_conversation_blank_state.tsx +1 -1
  689. package/src/components/conversation/jump_to_bottom_button.tsx +3 -3
  690. package/src/components/conversation/message.tsx +19 -19
  691. package/src/components/conversation/message_attachments.tsx +5 -5
  692. package/src/components/conversation/message_form/message_form_attachment_image.tsx +2 -2
  693. package/src/components/conversation/message_form/message_form_attachment_video.tsx +2 -2
  694. package/src/components/conversation/message_form.tsx +17 -17
  695. package/src/components/conversation/message_markdown.tsx +3 -3
  696. package/src/components/conversation/message_reaction.tsx +8 -8
  697. package/src/components/conversation/message_read_receipts.tsx +3 -3
  698. package/src/components/conversation/messages_disabled_banners.tsx +2 -2
  699. package/src/components/conversation/reply_connectors.tsx +3 -3
  700. package/src/components/conversation/reply_shadow_message.tsx +9 -9
  701. package/src/components/conversation/typing_indicator.tsx +3 -3
  702. package/src/components/conversations/conversation_actions.tsx +6 -9
  703. package/src/components/conversations/conversation_preview.tsx +4 -9
  704. package/src/components/conversations/conversations.tsx +6 -6
  705. package/src/components/conversations/mute_indicator.tsx +3 -3
  706. package/src/components/conversations/swipeable_toggle_button.tsx +5 -5
  707. package/src/components/conversations/unread_count_badge.tsx +3 -3
  708. package/src/components/display/action_button.tsx +2 -2
  709. package/src/components/display/avatar.tsx +2 -2
  710. package/src/components/display/avatar_group.tsx +2 -2
  711. package/src/components/display/badge.tsx +3 -3
  712. package/src/components/display/banner.tsx +1 -1
  713. package/src/components/display/banner_collapsible.tsx +1 -1
  714. package/src/components/display/button.tsx +3 -3
  715. package/src/components/display/child_notice.tsx +3 -3
  716. package/src/components/display/heading.tsx +3 -3
  717. package/src/components/display/icon.tsx +1 -1
  718. package/src/components/display/icon_button.tsx +2 -2
  719. package/src/components/display/image.tsx +1 -1
  720. package/src/components/display/image_attachment_preview.tsx +2 -2
  721. package/src/components/display/keyboard_view.tsx +1 -1
  722. package/src/components/display/person.tsx +2 -2
  723. package/src/components/display/platform_modal_header_buttons.tsx +1 -1
  724. package/src/components/display/pressable_row.tsx +1 -1
  725. package/src/components/display/spinner.tsx +1 -1
  726. package/src/components/display/switch.tsx +1 -1
  727. package/src/components/display/tabs.tsx +1 -1
  728. package/src/components/display/text.tsx +2 -2
  729. package/src/components/display/text_button.tsx +2 -2
  730. package/src/components/display/text_inline_button.tsx +2 -2
  731. package/src/components/display/toggle_button.tsx +6 -6
  732. package/src/components/display/utils/button_colors.ts +1 -1
  733. package/src/components/display/utils/status_colors.ts +1 -1
  734. package/src/components/display/video_attachment_preview.tsx +3 -3
  735. package/src/components/group_conversation_list.tsx +5 -5
  736. package/src/components/page/error_boundary.tsx +2 -2
  737. package/src/components/page/loading.tsx +1 -1
  738. package/src/components/primitive/avatar_primitive.tsx +5 -5
  739. package/src/components/primitive/banner_primitive.tsx +11 -11
  740. package/src/components/primitive/blank_state_primitive.tsx +2 -2
  741. package/src/components/primitive/form_sheet.tsx +4 -4
  742. package/src/components/safe_area_modal.tsx +1 -1
  743. package/src/contexts/api_provider.tsx +4 -4
  744. package/src/contexts/chat_context.tsx +6 -6
  745. package/src/contexts/conversations_context.tsx +3 -3
  746. package/src/contexts/session_context.tsx +9 -9
  747. package/src/hooks/groups/use_group_members_for_new_conversation.ts +4 -4
  748. package/src/hooks/groups/use_groups_conversation_create.ts +3 -3
  749. package/src/hooks/services/use_find_or_create_services_conversation.ts +3 -3
  750. package/src/hooks/services/use_services_team.ts +2 -2
  751. package/src/hooks/services/use_team_members_for_new_conversation.ts +2 -2
  752. package/src/hooks/services/use_team_plans.ts +2 -2
  753. package/src/hooks/use_api.ts +2 -2
  754. package/src/hooks/use_api_client.ts +3 -3
  755. package/src/hooks/use_async_storage.ts +1 -1
  756. package/src/hooks/use_attachment_uploader.ts +5 -5
  757. package/src/hooks/use_broadcast_typing_status.ts +1 -1
  758. package/src/hooks/use_chat_permissions.ts +1 -1
  759. package/src/hooks/use_conversation.ts +5 -4
  760. package/src/hooks/use_conversation_jolt_events.ts +3 -3
  761. package/src/hooks/use_conversation_membership.ts +3 -3
  762. package/src/hooks/use_conversation_message.ts +2 -2
  763. package/src/hooks/use_conversation_messages.ts +2 -2
  764. package/src/hooks/use_conversation_messages_jolt_events.ts +14 -14
  765. package/src/hooks/use_conversations.ts +2 -2
  766. package/src/hooks/use_conversations_actions.ts +2 -2
  767. package/src/hooks/use_conversations_cache.ts +5 -5
  768. package/src/hooks/use_conversations_jolt_events.ts +4 -4
  769. package/src/hooks/use_current_person.ts +2 -2
  770. package/src/hooks/use_features.ts +4 -4
  771. package/src/hooks/use_giphy.ts +2 -2
  772. package/src/hooks/use_groups.ts +2 -2
  773. package/src/hooks/use_groups_groups.ts +1 -1
  774. package/src/hooks/use_jolt.ts +3 -3
  775. package/src/hooks/use_live_relative_time.ts +2 -2
  776. package/src/hooks/use_mark_latest_message_read.ts +1 -1
  777. package/src/hooks/use_message_create_or_update.ts +11 -11
  778. package/src/hooks/use_message_draft.ts +2 -2
  779. package/src/hooks/use_message_reaction_toggle.ts +4 -4
  780. package/src/hooks/use_my_gender.ts +1 -1
  781. package/src/hooks/use_organization.ts +1 -1
  782. package/src/hooks/use_people_person.ts +1 -1
  783. package/src/hooks/use_product_analytics.ts +5 -5
  784. package/src/hooks/use_qualified_by_age.ts +1 -1
  785. package/src/hooks/use_read_receipts.ts +1 -1
  786. package/src/hooks/use_report_message.ts +2 -2
  787. package/src/hooks/use_storage.ts +1 -1
  788. package/src/hooks/use_submit_age_check.ts +2 -2
  789. package/src/hooks/use_suspense_api.ts +5 -5
  790. package/src/hooks/use_teams.ts +1 -1
  791. package/src/hooks/use_theme.tsx +2 -2
  792. package/src/hooks/use_typing_indicators.ts +1 -1
  793. package/src/hooks/use_typing_status_cache.ts +1 -1
  794. package/src/hooks/use_upload_client.ts +3 -3
  795. package/src/navigation/chat_access_gate.tsx +7 -7
  796. package/src/navigation/index.tsx +31 -34
  797. package/src/navigation/screenLayout.tsx +2 -2
  798. package/src/polyfills/events/Event.ts +1 -1
  799. package/src/polyfills/events/EventTarget.ts +1 -1
  800. package/src/polyfills/events/internals/EventInternals.ts +2 -2
  801. package/src/polyfills/events/internals/EventTargetInternals.ts +2 -2
  802. package/src/screens/age_check/age_check_required_screen.tsx +8 -8
  803. package/src/screens/age_check/age_check_underage_screen.tsx +3 -3
  804. package/src/screens/age_check/components/age_check_select_birthdate_modal.tsx +3 -3
  805. package/src/screens/attachment_actions/attachment_actions_screen.tsx +1 -1
  806. package/src/screens/attachment_actions/hooks/useDeleteAttachment.tsx +3 -3
  807. package/src/screens/bug_report_screen.tsx +11 -11
  808. package/src/screens/conversation/message_read_receipts_screen.tsx +5 -5
  809. package/src/screens/conversation_details_screen.tsx +47 -12
  810. package/src/screens/conversation_filter_recipients/components/checkbox_row.tsx +8 -4
  811. package/src/screens/conversation_filter_recipients/components/header_row.tsx +5 -5
  812. package/src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx +6 -6
  813. package/src/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.tsx +5 -1
  814. package/src/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.ts +6 -3
  815. package/src/screens/conversation_filter_recipients/types.tsx +1 -1
  816. package/src/screens/conversation_filters/components/conversation_filters.tsx +8 -5
  817. package/src/screens/conversation_filters/components/rows.tsx +9 -14
  818. package/src/screens/conversation_filters/context/conversation_filter_context.tsx +4 -1
  819. package/src/screens/conversation_filters/group_filters.tsx +1 -1
  820. package/src/screens/conversation_filters/hooks/filters.ts +5 -5
  821. package/src/screens/conversation_filters/screen_props.ts +1 -1
  822. package/src/screens/conversation_filters/team_filters.tsx +1 -1
  823. package/src/screens/conversation_filters_screen.tsx +1 -1
  824. package/src/screens/conversation_new/components/filter_by_plan.tsx +7 -7
  825. package/src/screens/conversation_new/components/form_list.tsx +3 -3
  826. package/src/screens/conversation_new/components/gender_filter_toggle.tsx +3 -3
  827. package/src/screens/conversation_new/components/groups_form.tsx +14 -14
  828. package/src/screens/conversation_new/components/services_form.tsx +10 -10
  829. package/src/screens/conversation_new/components/source_app_error_card.tsx +1 -1
  830. package/src/screens/conversation_new/conversation_new_screen.tsx +3 -3
  831. package/src/screens/conversation_notification_level_select_screen.tsx +6 -6
  832. package/src/screens/conversation_screen.tsx +23 -23
  833. package/src/screens/conversation_select_recipients/components/groups_recipient_row.tsx +2 -2
  834. package/src/screens/conversation_select_recipients/components/recipient_link_row.tsx +3 -3
  835. package/src/screens/conversation_select_recipients/components/restricted_group_row.tsx +4 -4
  836. package/src/screens/conversation_select_recipients/components/team_recipient_row.tsx +2 -2
  837. package/src/screens/conversation_select_recipients/components/view_more_link_row.tsx +1 -1
  838. package/src/screens/conversation_select_recipients/conversation_new_entry_screen.tsx +4 -4
  839. package/src/screens/conversation_select_recipients/conversation_select_group_recipients_screen.tsx +3 -3
  840. package/src/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.tsx +7 -4
  841. package/src/screens/conversation_select_recipients/types/screen_props.tsx +2 -2
  842. package/src/screens/conversation_select_type_screen.tsx +4 -4
  843. package/src/screens/conversations/components/chat_group_badge.tsx +4 -4
  844. package/src/screens/conversations/components/list_header_action_button.tsx +4 -4
  845. package/src/screens/conversations/components/list_header_component.tsx +10 -10
  846. package/src/screens/conversations/conversations_screen.tsx +5 -5
  847. package/src/screens/design_system_screen.tsx +6 -6
  848. package/src/screens/get_help_screen.tsx +5 -5
  849. package/src/screens/group_notification_level_select_screen.tsx +3 -3
  850. package/src/screens/group_notification_settings_screen.tsx +3 -3
  851. package/src/screens/message_actions_screen.tsx +12 -12
  852. package/src/screens/message_report/components/message_preview.tsx +3 -3
  853. package/src/screens/message_report/components/report_reason_list.tsx +4 -7
  854. package/src/screens/message_report_screen.tsx +11 -11
  855. package/src/screens/notification_settings/hooks/groups.ts +6 -6
  856. package/src/screens/notification_settings_screen.tsx +4 -4
  857. package/src/screens/preferred_app/hooks/use_chat_types.ts +2 -2
  858. package/src/screens/preferred_app_selection_screen.tsx +7 -7
  859. package/src/screens/reactions_screen.tsx +9 -9
  860. package/src/screens/send_giphy_screen.tsx +8 -8
  861. package/src/screens/team_conversation_screen.tsx +3 -3
  862. package/src/types/jolt_events/message_events.ts +1 -1
  863. package/src/types/jolt_events/reaction_events.ts +1 -1
  864. package/src/types/resources/app_grant.ts +1 -1
  865. package/src/types/resources/conversation.ts +1 -0
  866. package/src/types/resources/conversation_membership.ts +1 -1
  867. package/src/types/resources/group_membership.ts +1 -1
  868. package/src/types/resources/groups/groups_group_resource.ts +1 -1
  869. package/src/types/resources/organization.ts +1 -1
  870. package/src/types/resources/person.ts +1 -1
  871. package/src/types/resources/services/chat_resource.ts +1 -1
  872. package/src/types/resources/services/team_resource.ts +1 -1
  873. package/src/utils/__tests__/convert_attachments_for_create.test.ts +3 -3
  874. package/src/utils/__tests__/session_manager.test.ts +3 -3
  875. package/src/utils/__tests__/sha_256.test.ts +1 -1
  876. package/src/utils/cache/messages_cache.ts +5 -5
  877. package/src/utils/cache/optimistically_create_message.ts +7 -7
  878. package/src/utils/cache/optimistically_update_message.ts +3 -3
  879. package/src/utils/cache/page_mutations.ts +1 -1
  880. package/src/utils/client/client.ts +1 -1
  881. package/src/utils/convert_attachments_for_create.ts +2 -2
  882. package/src/utils/destructure_chat_group_graph_id.ts +2 -2
  883. package/src/utils/jolt/transform_message_event_data_to_message_resource.ts +4 -4
  884. package/src/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.ts +3 -3
  885. package/src/utils/performance_tracking.ts +1 -1
  886. package/src/utils/reaction_constants.ts +1 -1
  887. package/src/utils/request/conversation.ts +2 -2
  888. package/src/utils/request/get_features.ts +1 -1
  889. package/src/utils/request/get_message.ts +1 -1
  890. package/src/utils/request/get_messages.ts +1 -1
  891. package/src/utils/response_error.ts +1 -1
  892. package/src/utils/session.ts +1 -1
  893. package/src/utils/session_manager.ts +1 -1
  894. package/src/utils/styles.ts +1 -1
  895. package/src/utils/theme.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"use_report_message.js","sourceRoot":"","sources":["../../src/hooks/use_report_message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,cAAsB,EAAE,SAAiB,EAAE,EAAE;IAC5E,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;IAEhC,OAAO,WAAW,CAAC;QACjB,UAAU,EAAE,KAAK,EAAE,EACjB,MAAM,EACN,YAAY,GAIb,EAAE,EAAE;YACH,MAAM,GAAG,GAAG,qBAAqB,cAAc,aAAa,SAAS,SAAS,CAAA;YAC9E,MAAM,IAAI,GAAyB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,eAAe;oBACrB,UAAU,EAAE;wBACV,MAAM;wBACN,GAAG,CAAC,YAAY,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;qBACrD;iBACF;aACF,CAAA;YAED,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;QAC3C,CAAC;QACD,SAAS,EAAE,GAAG,EAAE;YACd,MAAM,CAAC,mBAAmB,EAAE,CAAA;QAC9B,CAAC;QACD,OAAO,EAAE,GAAG,EAAE;YACZ,MAAM,CAAC,iBAAiB,EAAE,CAAA;QAC5B,CAAC;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { useMutation } from '@tanstack/react-query'\nimport { MessageReportReason, MessageReportPayload } from '../types/resources/message_report'\nimport { Haptic } from '../utils/native_adapters'\nimport { useApiClient } from './use_api_client'\n\nexport const useReportMessage = (conversationId: number, messageId: string) => {\n const apiClient = useApiClient()\n\n return useMutation({\n mutationFn: async ({\n reason,\n reasonDetail,\n }: {\n reason: MessageReportReason\n reasonDetail?: string\n }) => {\n const url = `/me/conversations/${conversationId}/messages/${messageId}/report`\n const data: MessageReportPayload = {\n data: {\n type: 'MessageReport',\n attributes: {\n reason,\n ...(reasonDetail && { reason_detail: reasonDetail }),\n },\n },\n }\n\n return apiClient.chat.post({ url, data })\n },\n onSuccess: () => {\n Haptic.notificationSuccess()\n },\n onError: () => {\n Haptic.notificationError()\n },\n })\n}\n"]}
1
+ {"version":3,"file":"use_report_message.js","sourceRoot":"","sources":["../../src/hooks/use_report_message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,cAAsB,EAAE,SAAiB,EAAE,EAAE;IAC5E,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;IAEhC,OAAO,WAAW,CAAC;QACjB,UAAU,EAAE,KAAK,EAAE,EACjB,MAAM,EACN,YAAY,GAIb,EAAE,EAAE;YACH,MAAM,GAAG,GAAG,qBAAqB,cAAc,aAAa,SAAS,SAAS,CAAA;YAC9E,MAAM,IAAI,GAAyB;gBACjC,IAAI,EAAE;oBACJ,IAAI,EAAE,eAAe;oBACrB,UAAU,EAAE;wBACV,MAAM;wBACN,GAAG,CAAC,YAAY,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;qBACrD;iBACF;aACF,CAAA;YAED,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;QAC3C,CAAC;QACD,SAAS,EAAE,GAAG,EAAE;YACd,MAAM,CAAC,mBAAmB,EAAE,CAAA;QAC9B,CAAC;QACD,OAAO,EAAE,GAAG,EAAE;YACZ,MAAM,CAAC,iBAAiB,EAAE,CAAA;QAC5B,CAAC;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { useMutation } from '@tanstack/react-query'\nimport { useApiClient } from './use_api_client'\nimport { MessageReportReason, MessageReportPayload } from '@/types/resources/message_report'\nimport { Haptic } from '@/utils/native_adapters'\n\nexport const useReportMessage = (conversationId: number, messageId: string) => {\n const apiClient = useApiClient()\n\n return useMutation({\n mutationFn: async ({\n reason,\n reasonDetail,\n }: {\n reason: MessageReportReason\n reasonDetail?: string\n }) => {\n const url = `/me/conversations/${conversationId}/messages/${messageId}/report`\n const data: MessageReportPayload = {\n data: {\n type: 'MessageReport',\n attributes: {\n reason,\n ...(reasonDetail && { reason_detail: reasonDetail }),\n },\n },\n }\n\n return apiClient.chat.post({ url, data })\n },\n onSuccess: () => {\n Haptic.notificationSuccess()\n },\n onError: () => {\n Haptic.notificationError()\n },\n })\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { StorageAdapter } from '../utils/native_adapters';
1
+ import { StorageAdapter } from '@/utils/native_adapters';
2
2
  type SetValue<TCacheData> = (_itemValue?: TCacheData | null) => Promise<any>;
3
3
  /**
4
4
  * Hook for using a storage adapter with React Query caching.
@@ -1 +1 @@
1
- {"version":3,"file":"use_storage.d.ts","sourceRoot":"","sources":["../../src/hooks/use_storage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAIzD,KAAK,QAAQ,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;AAE5E;;;GAGG;AACH,wBAAgB,UAAU,CAAC,UAAU,EACnC,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,UAAU,EACxB,YAAY,GAAE,OAAe,GAC5B,CAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAkDpC"}
1
+ {"version":3,"file":"use_storage.d.ts","sourceRoot":"","sources":["../../src/hooks/use_storage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAIxD,KAAK,QAAQ,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;AAE5E;;;GAGG;AACH,wBAAgB,UAAU,CAAC,UAAU,EACnC,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,UAAU,EACxB,YAAY,GAAE,OAAe,GAC5B,CAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAkDpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use_storage.js","sourceRoot":"","sources":["../../src/hooks/use_storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAGnC,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAA;AAIrE;;;GAGG;AACH,MAAM,UAAU,UAAU,CACxB,OAAuB,EACvB,GAAW,EACX,YAAwB,EACxB,eAAwB,KAAK;IAE7B,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAA;IAEvC,MAAM,EAAE,IAAI,EAAE,KA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,CAAA;IAED,OAAO,CAAC,KAAK,IAAI,YAAY,EAAE,QAAQ,CAAC,CAAA;AAC1C,CAAC","sourcesContent":["import { useSuspenseQuery } from '@tanstack/react-query'\nimport { noop } from 'lodash'\nimport { useCallback } from 'react'\nimport { StorageAdapter } from '../utils/native_adapters'\n\nconst cacheKeyGenerator = (key: string) => [`StorageResource:${key}`]\n\ntype SetValue<TCacheData> = (_itemValue?: TCacheData | null) => Promise<any>\n\n/**\n * Hook for using a storage adapter with React Query caching.\n * Similar to useAsyncStorage but accepts a StorageAdapter instead of using AsyncStorage directly.\n */\nexport function useStorage<TCacheData>(\n storage: StorageAdapter,\n key: string,\n initialValue: TCacheData,\n throwOnError: boolean = false\n): [TCacheData, SetValue<TCacheData>] {\n const cacheKey = cacheKeyGenerator(key)\n\n const { data: value, refetch } = useSuspenseQuery<TCacheData>({\n queryKey: cacheKey,\n queryFn: () =>\n storage\n .getItem(key)\n .then(storedValue => {\n if (!storedValue) return initialValue\n\n try {\n return JSON.parse(storedValue) as TCacheData\n } catch {\n return storedValue as TCacheData\n }\n })\n .catch(e => {\n if (!throwOnError) return initialValue\n\n return Promise.reject(e)\n }),\n })\n\n const setValue: SetValue<TCacheData> = useCallback(\n itemValue => {\n if (itemValue === null || itemValue === undefined) {\n return storage\n .removeItem(key)\n .then(() => {\n refetch()\n })\n .catch(noop)\n }\n\n return storage\n .setItem(key, JSON.stringify(itemValue))\n .then(() => {\n refetch()\n })\n .catch(e => {\n if (!throwOnError) return\n\n return Promise.reject(e)\n })\n },\n [throwOnError, key, refetch, storage]\n )\n\n return [value || initialValue, setValue]\n}\n"]}
1
+ {"version":3,"file":"use_storage.js","sourceRoot":"","sources":["../../src/hooks/use_storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AA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AC,GAAG,EAAE;YACT,OAAO,EAAE,CAAA;QACX,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE;YACT,IAAI,CAAC,YAAY;gBAAE,OAAM;YAEzB,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;QAC1B,CAAC,CAAC,CAAA;IACN,CAAC,EACD,CAAC,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CACtC,CAAA;IAED,OAAO,CAAC,KAAK,IAAI,YAAY,EAAE,QAAQ,CAAC,CAAA;AAC1C,CAAC","sourcesContent":["import { useSuspenseQuery } from '@tanstack/react-query'\nimport { noop } from 'lodash'\nimport { useCallback } from 'react'\nimport { StorageAdapter } from '@/utils/native_adapters'\n\nconst cacheKeyGenerator = (key: string) => [`StorageResource:${key}`]\n\ntype SetValue<TCacheData> = (_itemValue?: TCacheData | null) => Promise<any>\n\n/**\n * Hook for using a storage adapter with React Query caching.\n * Similar to useAsyncStorage but accepts a StorageAdapter instead of using AsyncStorage directly.\n */\nexport function useStorage<TCacheData>(\n storage: StorageAdapter,\n key: string,\n initialValue: TCacheData,\n throwOnError: boolean = false\n): [TCacheData, SetValue<TCacheData>] {\n const cacheKey = cacheKeyGenerator(key)\n\n const { data: value, refetch } = useSuspenseQuery<TCacheData>({\n queryKey: cacheKey,\n queryFn: () =>\n storage\n .getItem(key)\n .then(storedValue => {\n if (!storedValue) return initialValue\n\n try {\n return JSON.parse(storedValue) as TCacheData\n } catch {\n return storedValue as TCacheData\n }\n })\n .catch(e => {\n if (!throwOnError) return initialValue\n\n return Promise.reject(e)\n }),\n })\n\n const setValue: SetValue<TCacheData> = useCallback(\n itemValue => {\n if (itemValue === null || itemValue === undefined) {\n return storage\n .removeItem(key)\n .then(() => {\n refetch()\n })\n .catch(noop)\n }\n\n return storage\n .setItem(key, JSON.stringify(itemValue))\n .then(() => {\n refetch()\n })\n .catch(e => {\n if (!throwOnError) return\n\n return Promise.reject(e)\n })\n },\n [throwOnError, key, refetch, storage]\n )\n\n return [value || initialValue, setValue]\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { ApiResource } from '../types/api_primitives';
1
+ import { ApiResource } from '@/types/api_primitives';
2
2
  interface AgeCheckResource {
3
3
  type: 'AgeCheck';
4
4
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use_submit_age_check.d.ts","sourceRoot":"","sources":["../../src/hooks/use_submit_age_check.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAKrD,UAAU,gBAAgB;IACxB,IAAI,EAAE,UAAU,CAAA;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAC5B;AAED,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiChC"}
1
+ {"version":3,"file":"use_submit_age_check.d.ts","sourceRoot":"","sources":["../../src/hooks/use_submit_age_check.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGpD,UAAU,gBAAgB;IACxB,IAAI,EAAE,UAAU,CAAA;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAC5B;AAED,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiChC"}
@@ -1,8 +1,8 @@
1
1
  import { useMutation, useQueryClient } from '@tanstack/react-query';
2
2
  import { Alert } from 'react-native';
3
- import { Haptic } from '../utils/native_adapters';
4
3
  import { useApiClient } from './use_api_client';
5
4
  import { currentPersonQueryKey } from './use_current_person';
5
+ import { Haptic } from '@/utils/native_adapters';
6
6
  export function useSubmitAgeCheck() {
7
7
  const apiClient = useApiClient();
8
8
  const queryClient = useQueryClient();
@@ -1 +1 @@
1
- {"version":3,"file":"use_submit_age_check.js","sourceRoot":"","sources":["../../src/hooks/use_submit_age_check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAS5D,MAAM,UAAU,iBAAiB;IAC/B,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;IAChC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IAEpC,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,QAAQ,EAAE,GAAG,WAAW,CAAC;QAC/D,WAAW,EAAE,CAAC,gBAAgB,CAAC;QAC/B,UAAU,EAAE,CAAC,IAAU,EAAE,EAAE,CACzB,SAAS,CAAC,MAAM,CAAC,IAAI,CAAgC;YACnD,GAAG,EAAE,gBAAgB;YACrB,IAAI,EAAE;gBACJ,MAAM,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE;gBAC1C,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,UAAU,EAAE;wBACV,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;qBAChC;iBACF;aACF;SACF,CAAC;QACJ,SAAS,EAAE,CAAC,QAAuC,EAAE,EAAE;YACrD,WAAW,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,qBAAqB,EAAE,CAAC,CAAA;YAClE,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;gBACtC,MAAM,CAAC,mBAAmB,EAAE,CAAA;gBAC5B,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,kCAAkC,CAAC,CAAA;YACpE,CAAC;QACH,CAAC;QACD,OAAO,EAAE,GAAG,EAAE;YACZ,MAAM,CAAC,iBAAiB,EAAE,CAAA;YAC1B,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,4DAA4D,CAAC,CAAA;QACnF,CAAC;KACF,CAAC,CAAA;IAEF,OAAO,EAAE,cAAc,EAAE,GAAG,QAAQ,EAAE,CAAA;AACxC,CAAC","sourcesContent":["import { useMutation, useQueryClient } from '@tanstack/react-query'\nimport { Alert } from 'react-native'\nimport { ApiResource } from '../types/api_primitives'\nimport { Haptic } from '../utils/native_adapters'\nimport { useApiClient } from './use_api_client'\nimport { currentPersonQueryKey } from './use_current_person'\n\ninterface AgeCheckResource {\n type: 'AgeCheck'\n id: string\n stated_date: string\n status: 'passed' | 'failed'\n}\n\nexport function useSubmitAgeCheck() {\n const apiClient = useApiClient()\n const queryClient = useQueryClient()\n\n const { mutateAsync: submitAgeCheck, ...mutation } = useMutation({\n mutationKey: ['submitAgeCheck'],\n mutationFn: (date: Date) =>\n apiClient.people.post<ApiResource<AgeCheckResource>>({\n url: '/me/age_checks',\n data: {\n fields: { AgeCheck: 'stated_date,status' },\n data: {\n type: 'AgeCheck',\n attributes: {\n stated_date: date.toISOString(),\n },\n },\n },\n }),\n onSuccess: (response: ApiResource<AgeCheckResource>) => {\n queryClient.invalidateQueries({ queryKey: currentPersonQueryKey })\n if (response.data.status === 'passed') {\n Haptic.notificationSuccess()\n Alert.alert('Profile updated', `Your birthdate has been updated.`)\n }\n },\n onError: () => {\n Haptic.notificationError()\n Alert.alert('Oops', `We were unable to update your birthdate. Please try again.`)\n },\n })\n\n return { submitAgeCheck, ...mutation }\n}\n"]}
1
+ {"version":3,"file":"use_submit_age_check.js","sourceRoot":"","sources":["../../src/hooks/use_submit_age_check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACnE,O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EF,OAAO,EAAE,cAAc,EAAE,GAAG,QAAQ,EAAE,CAAA;AACxC,CAAC","sourcesContent":["import { useMutation, useQueryClient } from '@tanstack/react-query'\nimport { Alert } from 'react-native'\nimport { useApiClient } from './use_api_client'\nimport { currentPersonQueryKey } from './use_current_person'\nimport { ApiResource } from '@/types/api_primitives'\nimport { Haptic } from '@/utils/native_adapters'\n\ninterface AgeCheckResource {\n type: 'AgeCheck'\n id: string\n stated_date: string\n status: 'passed' | 'failed'\n}\n\nexport function useSubmitAgeCheck() {\n const apiClient = useApiClient()\n const queryClient = useQueryClient()\n\n const { mutateAsync: submitAgeCheck, ...mutation } = useMutation({\n mutationKey: ['submitAgeCheck'],\n mutationFn: (date: Date) =>\n apiClient.people.post<ApiResource<AgeCheckResource>>({\n url: '/me/age_checks',\n data: {\n fields: { AgeCheck: 'stated_date,status' },\n data: {\n type: 'AgeCheck',\n attributes: {\n stated_date: date.toISOString(),\n },\n },\n },\n }),\n onSuccess: (response: ApiResource<AgeCheckResource>) => {\n queryClient.invalidateQueries({ queryKey: currentPersonQueryKey })\n if (response.data.status === 'passed') {\n Haptic.notificationSuccess()\n Alert.alert('Profile updated', `Your birthdate has been updated.`)\n }\n },\n onError: () => {\n Haptic.notificationError()\n Alert.alert('Oops', `We were unable to update your birthdate. Please try again.`)\n },\n })\n\n return { submitAgeCheck, ...mutation }\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  import { AnyUseSuspenseInfiniteQueryOptions, InfiniteData, UseSuspenseQueryOptions } from '@tanstack/react-query';
2
- import { ApiCollection, ApiResource, ResourceObject } from '../types';
3
- import { FailedResponse } from '../types/api_primitives';
4
- import { GetRequest } from '../utils/client';
5
2
  import { App } from './use_api_client';
3
+ import { ApiCollection, ApiResource, ResourceObject } from '@/types';
4
+ import { FailedResponse } from '@/types/api_primitives';
5
+ import { GetRequest } from '@/utils/client';
6
6
  interface SuspenseGetOptions extends GetRequest {
7
7
  app?: App;
8
8
  reply_root_id?: string | null;
@@ -10,13 +10,13 @@ interface SuspenseGetOptions extends GetRequest {
10
10
  export type SuspenseGetQueryOptions<T extends ResourceObject | ResourceObject[]> = Omit<UseSuspenseQueryOptions<ApiResource<T>, FailedResponse>, 'queryKey' | 'queryFn'>;
11
11
  export declare const useSuspenseGet: <T extends ResourceObject | ResourceObject[]>(args: SuspenseGetOptions, options?: SuspenseGetQueryOptions<T>) => {
12
12
  error: FailedResponse | null;
13
- status: "success" | "error";
14
13
  isError: boolean;
15
14
  isPending: false;
16
15
  isLoading: false;
17
16
  isLoadingError: false;
18
17
  isRefetchError: boolean;
19
18
  isSuccess: boolean;
19
+ status: "error" | "success";
20
20
  dataUpdatedAt: number;
21
21
  errorUpdatedAt: number;
22
22
  failureCount: number;
@@ -40,13 +40,13 @@ export declare const useSuspensePaginator: <T extends ResourceObject>(args: Susp
40
40
  data: T[];
41
41
  totalCount: number;
42
42
  error: Response | null;
43
- status: "success" | "error";
44
43
  isError: boolean;
45
44
  isPending: false;
46
45
  isLoading: false;
47
46
  isLoadingError: false;
48
47
  isRefetchError: boolean;
49
48
  isSuccess: boolean;
49
+ status: "error" | "success";
50
50
  dataUpdatedAt: number;
51
51
  errorUpdatedAt: number;
52
52
  failureCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"use_suspense_api.d.ts","sourceRoot":"","sources":["../../src/hooks/use_suspense_api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,YAAY,EAGZ,uBAAuB,EACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EAAE,UAAU,EAAe,MAAM,iBAAiB,CAAA;AAEzD,OAAO,EAAE,GAAG,EAAgB,MAAM,kBAAkB,CAAA;AAEpD,UAAU,kBAAmB,SAAQ,UAAU;IAC7C,GAAG,CAAC,EAAE,GAAG,CAAA;I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BAAwB,CAAA;AAEvD,OAAO,EAAE,UAAU,EAAe,MAAM,gBAAgB,CAAA;AAGxD,UAAU,kBAAmB,SAAQ,UAAU;IAC7C,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B;AAED,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,IAAI,IAAI,CACrF,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,EACvD,UAAU,GAAG,SAAS,CACvB,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,QAClE,kBAAkB,YACd,uBAAuB,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBrC,CAAA;AAOD,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,kCAAkC,EAClC,kBAAkB,GAAG,kBAAkB,GAAG,SAAS,GAAG,UAAU,CACjE,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,cAAc,QACrD,kBAAkB,SACjB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ChC,CAAA;AAUD,MAAM,MAAM,eAAe,GAAG;IAC5B,kBAAkB,CAAC,KAAK,CAAC;IACzB,kBAAkB,CAAC,MAAM,CAAC;IAC1B,kBAAkB,CAAC,SAAS,CAAC;IAC7B,kBAAkB,CAAC,KAAK,CAAC;IACzB,kBAAkB,CAAC,eAAe,CAAC;CACpC,CAAA;AACD,eAAO,MAAM,kBAAkB,SAAU,kBAAkB,KAAG,eAM7D,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { useSuspenseInfiniteQuery, useSuspenseQuery, } from '@tanstack/react-query';
2
- import { Log } from '../utils';
3
- import { ResponseError } from '../utils/response_error';
4
2
  import { useApiClient } from './use_api_client';
3
+ import { Log } from '@/utils';
4
+ import { ResponseError } from '@/utils/response_error';
5
5
  export const useSuspenseGet = (args, options) => {
6
6
  const apiClient = useApiClient();
7
7
  const { data, ...query } = useSuspenseQuery({
@@ -1 +1 @@
1
- {"version":3,"file":"use_suspense_api.js","sourceRoot":"","sources":["../../src/hooks/use_suspense_api.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EACxB,gBAAgB,GAEjB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAO,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAYpD,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,IAAwB,EACxB,OAAoC,EACpC,EAAE;IAEF,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;IAEhC,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,gBAAgB,CAA2B;QACpE,QAAQ,EAAE,kBAAkB,CAAC,IAAI,CAAC;QAClC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;YACxB,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,GAAG,MAAM,CAAC,GAAG,QAA2B,CAAA;YACnE,OAAO,SAAS,CAAC,GAAG,CAAC;iBAClB,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC;iBAC9B,KAAK,CAAC,kBAAkB,CAAsB,CAAA;QACnD,CAAC;QACD,GAAG,OAAO;KACX,CAAC,CAAA;IAEF,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAA;AAC9B,CAAC,CAAA;AAYD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,IAAwB,EACxB,IAA+B,EAC/B,EAAE;IACF,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;IAChC,MAAM,KAAK,GAAG,wBAAwB,CAMpC;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,EAAE,CAAC;KAChB,CAAC,CAAA;IAEF,MAAM,IAAI,GAAQ,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA;IACpE,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,IAAI,IAAI,CAAC,MAAM,CAAA;IAExE,OAAO,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;AACvC,CAAC,CAAA;AAED,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAE,EAAE;IAC5C,IAAI,KAAK,YAAY,QAAQ,EAAE,CAAC;QAC9B,MAAM,IAAI,aAAa,CAAC,KAAuB,CAAC,CAAA;IAClD,CAAC;IAED,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC,CAAA;AASD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAwB,EAAmB,EAAE,CAAC;IAC/E,IAAI,CAAC,GAAG;IACR,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,OAAO;IACZ,IAAI,CAAC,GAAG,IAAI,MAAM;IAClB,IAAI,CAAC,aAAa;CACnB,CAAA","sourcesContent":["import {\n AnyUseSuspenseInfiniteQueryOptions,\n InfiniteData,\n useSuspenseInfiniteQuery,\n useSuspenseQuery,\n UseSuspenseQueryOptions,\n} from '@tanstack/react-query'\nimport { ApiCollection, ApiResource, ResourceObject } from '../types'\nimport { FailedResponse } from '../types/api_primitives'\nimport { Log } from '../utils'\nimport { GetRequest, RequestData } from '../utils/client'\nimport { ResponseError } from '../utils/response_error'\nimport { App, useApiClient } from './use_api_client'\n\ninterface SuspenseGetOptions extends GetRequest {\n app?: App\n reply_root_id?: string | null\n}\n\nexport type SuspenseGetQueryOptions<T extends ResourceObject | ResourceObject[]> = Omit<\n UseSuspenseQueryOptions<ApiResource<T>, FailedResponse>,\n 'queryKey' | 'queryFn'\n>\n\nexport const useSuspenseGet = <T extends ResourceObject | ResourceObject[]>(\n args: SuspenseGetOptions,\n options?: SuspenseGetQueryOptions<T>\n) => {\n type Resource = ApiResource<T>\n const apiClient = useApiClient()\n\n const { data, ...query } = useSuspenseQuery<Resource, FailedResponse>({\n queryKey: getRequestQueryKey(args),\n queryFn: ({ queryKey }) => {\n const [url, d, headers, app = 'chat'] = queryKey as RequestQueryKey\n return apiClient[app]\n .get({ url, data: d, headers })\n .catch(throwResponseError) as Promise<Resource>\n },\n ...options,\n })\n\n return { ...data, ...query }\n}\n\ntype NextMeta = Partial<{\n offset: string\n idLt: string\n}>\n\nexport type SuspensePaginatorOptions = Omit<\n AnyUseSuspenseInfiniteQueryOptions,\n 'getNextPageParam' | 'initialPageParam' | 'queryFn' | 'queryKey'\n>\n\nexport const useSuspensePaginator = <T extends ResourceObject>(\n args: SuspenseGetOptions,\n opts?: SuspensePaginatorOptions\n) => {\n const apiClient = useApiClient()\n const query = useSuspenseInfiniteQuery<\n ApiCollection<T>,\n Response,\n InfiniteData<ApiCollection<T>>,\n any,\n Partial<RequestData> | undefined\n >({\n queryKey: getRequestQueryKey(args),\n queryFn: ({ pageParam }) => {\n Log.info('useSuspenseGet', { pageParam })\n\n const pageParmWhere = pageParam?.where || {}\n const argsWhere = args.data.where || {}\n const where = { ...argsWhere, ...pageParmWhere }\n const app = args.app || 'chat'\n const offset = pageParam?.offset || args.data.offset\n const data = { ...args.data, where, offset }\n\n return apiClient[app]\n .get<ApiCollection<T>>({\n url: args.url,\n data,\n })\n .catch(throwResponseError)\n },\n initialPageParam: {} as Partial<RequestData>,\n getNextPageParam: lastPage => {\n const next: NextMeta = lastPage.meta?.next || {}\n const { offset, idLt } = next\n\n if (idLt) return { where: { id_lt: idLt } }\n if (offset) return { offset: Number(offset) }\n\n return undefined\n },\n ...(opts || {}),\n })\n\n const data: T[] = query.data?.pages.flatMap(page => page.data) || []\n const totalCount = query.data?.pages[0]?.meta?.totalCount || data.length\n\n return { ...query, data, totalCount }\n}\n\nconst throwResponseError = (error: unknown) => {\n if (error instanceof Response) {\n throw new ResponseError(error as FailedResponse)\n }\n\n return Promise.reject(error)\n}\n\nexport type RequestQueryKey = [\n SuspenseGetOptions['url'],\n SuspenseGetOptions['data'],\n SuspenseGetOptions['headers'],\n SuspenseGetOptions['app'],\n SuspenseGetOptions['reply_root_id'],\n]\nexport const getRequestQueryKey = (args: SuspenseGetOptions): RequestQueryKey => [\n args.url,\n args.data,\n args.headers,\n args.app || 'chat',\n args.reply_root_id,\n]\n"]}
1
+ {"version":3,"file":"use_suspense_api.js","sourceRoot":"","sources":["../../src/hooks/use_suspense_api.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,wBAAwB,EACxB,gBAAgB,GAEjB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAO,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAGpD,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAYtD,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,IAAwB,EACxB,OAAoC,EACpC,EAAE;IAEF,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;IAEhC,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,gBAAgB,CAA2B;QACpE,QAAQ,EAAE,kBAAkB,CAAC,IAAI,CAAC;QAClC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;YACxB,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,GAAG,MAAM,CAAC,GAAG,QAA2B,CAAA;YACnE,OAAO,SAAS,CAAC,GAAG,CAAC;iBAClB,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC;iBAC9B,KAAK,CAAC,kBAAkB,CAAsB,CA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query'\nimport { App, useApiClient } from './use_api_client'\nimport { ApiCollection, ApiResource, ResourceObject } from '@/types'\nimport { FailedResponse } from '@/types/api_primitives'\nimport { Log } from '@/utils'\nimport { GetRequest, RequestData } from '@/utils/client'\nimport { ResponseError } from '@/utils/response_error'\n\ninterface SuspenseGetOptions extends GetRequest {\n app?: App\n reply_root_id?: string | null\n}\n\nexport type SuspenseGetQueryOptions<T extends ResourceObject | ResourceObject[]> = Omit<\n UseSuspenseQueryOptions<ApiResource<T>, FailedResponse>,\n 'queryKey' | 'queryFn'\n>\n\nexport const useSuspenseGet = <T extends ResourceObject | ResourceObject[]>(\n args: SuspenseGetOptions,\n options?: SuspenseGetQueryOptions<T>\n) => {\n type Resource = ApiResource<T>\n const apiClient = useApiClient()\n\n const { data, ...query } = useSuspenseQuery<Resource, FailedResponse>({\n queryKey: getRequestQueryKey(args),\n queryFn: ({ queryKey }) => {\n const [url, d, headers, app = 'chat'] = queryKey as RequestQueryKey\n return apiClient[app]\n .get({ url, data: d, headers })\n .catch(throwResponseError) as Promise<Resource>\n },\n ...options,\n })\n\n return { ...data, ...query }\n}\n\ntype NextMeta = Partial<{\n offset: string\n idLt: string\n}>\n\nexport type SuspensePaginatorOptions = Omit<\n AnyUseSuspenseInfiniteQueryOptions,\n 'getNextPageParam' | 'initialPageParam' | 'queryFn' | 'queryKey'\n>\n\nexport const useSuspensePaginator = <T extends ResourceObject>(\n args: SuspenseGetOptions,\n opts?: SuspensePaginatorOptions\n) => {\n const apiClient = useApiClient()\n const query = useSuspenseInfiniteQuery<\n ApiCollection<T>,\n Response,\n InfiniteData<ApiCollection<T>>,\n any,\n Partial<RequestData> | undefined\n >({\n queryKey: getRequestQueryKey(args),\n queryFn: ({ pageParam }) => {\n Log.info('useSuspenseGet', { pageParam })\n\n const pageParmWhere = pageParam?.where || {}\n const argsWhere = args.data.where || {}\n const where = { ...argsWhere, ...pageParmWhere }\n const app = args.app || 'chat'\n const offset = pageParam?.offset || args.data.offset\n const data = { ...args.data, where, offset }\n\n return apiClient[app]\n .get<ApiCollection<T>>({\n url: args.url,\n data,\n })\n .catch(throwResponseError)\n },\n initialPageParam: {} as Partial<RequestData>,\n getNextPageParam: lastPage => {\n const next: NextMeta = lastPage.meta?.next || {}\n const { offset, idLt } = next\n\n if (idLt) return { where: { id_lt: idLt } }\n if (offset) return { offset: Number(offset) }\n\n return undefined\n },\n ...(opts || {}),\n })\n\n const data: T[] = query.data?.pages.flatMap(page => page.data) || []\n const totalCount = query.data?.pages[0]?.meta?.totalCount || data.length\n\n return { ...query, data, totalCount }\n}\n\nconst throwResponseError = (error: unknown) => {\n if (error instanceof Response) {\n throw new ResponseError(error as FailedResponse)\n }\n\n return Promise.reject(error)\n}\n\nexport type RequestQueryKey = [\n SuspenseGetOptions['url'],\n SuspenseGetOptions['data'],\n SuspenseGetOptions['headers'],\n SuspenseGetOptions['app'],\n SuspenseGetOptions['reply_root_id'],\n]\nexport const getRequestQueryKey = (args: SuspenseGetOptions): RequestQueryKey => [\n args.url,\n args.data,\n args.headers,\n args.app || 'chat',\n args.reply_root_id,\n]\n"]}
@@ -1,4 +1,4 @@
1
- import { GroupResource } from '../types/resources/group_resource';
1
+ import { GroupResource } from '@/types/resources/group_resource';
2
2
  export declare const useTeams: () => {
3
3
  data: GroupResource[];
4
4
  error: import("..").FailedResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"use_teams.d.ts","sourceRoot":"","sources":["../../src/hooks/use_teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAGjE,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBpB,CAAA;AAED,eAAO,MAAM,kBAAkB,eAI9B,CAAA"}
1
+ {"version":3,"file":"use_teams.d.ts","sourceRoot":"","sources":["../../src/hooks/use_teams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBpB,CAAA;AAED,eAAO,MAAM,kBAAkB,eAI9B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"use_teams.js","sourceRoot":"","sources":["../../src/hooks/use_teams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,OAAO,eAAe,CAAgB;QACpC,GAAG,EAAE,YAAY;QACjB,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,KAAK,EAAE,EAAE;aACV;YACD,KAAK,EAAE;gBACL,eAAe,EAAE,UAAU;gBAC3B,WAAW,EAAE,MAAM;aACpB;YACD,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,GAAG;SACb;QACD,GAAG,EAAE,MAAM;KACZ,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,QAAQ,EAAE,CAAA;IAEvC,OAAO,KAAK,EAAE,MAAM,GAAG,CAAC,CAAA;AAC1B,CAAC,CAAA","sourcesContent":["import { GroupResource } from '../types/resources/group_resource'\nimport { useApiPaginator } from './use_api'\n\nexport const useTeams = () => {\n return useApiPaginator<GroupResource>({\n url: '/me/groups',\n data: {\n fields: {\n Group: [],\n },\n where: {\n source_app_name: 'Services',\n source_type: 'Team',\n },\n order: 'name',\n perPage: 100,\n },\n app: 'chat',\n })\n}\n\nexport const useCanDisplayTeams = () => {\n const { data: teams = [] } = useTeams()\n\n return teams?.length > 0\n}\n"]}
1
+ {"version":3,"file":"use_teams.js","sourceRoot":"","sources":["../../src/hooks/use_teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAG3C,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,OAAO,eAAe,CAAgB;QACpC,GAAG,EAAE,YAAY;QACjB,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,KAAK,EAAE,EAAE;aACV;YACD,KAAK,EAAE;gBACL,eAAe,EAAE,UAAU;gBAC3B,WAAW,EAAE,MAAM;aACpB;YACD,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,GAAG;SACb;QACD,GAAG,EAAE,MAAM;KACZ,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,QAAQ,EAAE,CAAA;IAEvC,OAAO,KAAK,EAAE,MAAM,GAAG,CAAC,CAAA;AAC1B,CAAC,CAAA","sourcesContent":["import { useApiPaginator } from './use_api'\nimport { GroupResource } from '@/types/resources/group_resource'\n\nexport const useTeams = () => {\n return useApiPaginator<GroupResource>({\n url: '/me/groups',\n data: {\n fields: {\n Group: [],\n },\n where: {\n source_app_name: 'Services',\n source_type: 'Team',\n },\n order: 'name',\n perPage: 100,\n },\n app: 'chat',\n })\n}\n\nexport const useCanDisplayTeams = () => {\n const { data: teams = [] } = useTeams()\n\n return teams?.length > 0\n}\n"]}
@@ -1,3 +1,3 @@
1
- import { ChatTheme } from '../utils/theme';
1
+ import { ChatTheme } from '@/utils/theme';
2
2
  export declare const useTheme: () => ChatTheme;
3
3
  //# sourceMappingURL=use_theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use_theme.d.ts","sourceRoot":"","sources":["../../src/hooks/use_theme.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,eAAO,MAAM,QAAQ,QAAO,SAI3B,CAAA"}
1
+ {"version":3,"file":"use_theme.d.ts","sourceRoot":"","sources":["../../src/hooks/use_theme.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,eAAO,MAAM,QAAQ,QAAO,SAI3B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { useContext } from 'react';
2
- import { ChatContext } from '../contexts/chat_context';
2
+ import { ChatContext } from '@/contexts/chat_context';
3
3
  export const useTheme = () => {
4
4
  const { theme } = useContext(ChatContext);
5
5
  return theme;
@@ -1 +1 @@
1
- {"version":3,"file":"use_theme.js","sourceRoot":"","sources":["../../src/hooks/use_theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAc,EAAE;IACtC,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IAEzC,OAAO,KAAK,CAAA;AACd,CAAC,CAAA","sourcesContent":["import { useContext } from 'react'\nimport { ChatContext } from '../contexts/chat_context'\nimport { ChatTheme } from '../utils/theme'\n\nexport const useTheme = (): ChatTheme => {\n const { theme } = useContext(ChatContext)\n\n return theme\n}\n"]}
1
+ {"version":3,"file":"use_theme.js","sourceRoot":"","sources":["../../src/hooks/use_theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGrD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAc,EAAE;IACtC,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IAEzC,OAAO,KAAK,CAAA;AACd,CAAC,CAAA","sourcesContent":["import { useContext } from 'react'\nimport { ChatContext } from '@/contexts/chat_context'\nimport { ChatTheme } from '@/utils/theme'\n\nexport const useTheme = (): ChatTheme => {\n const { theme } = useContext(ChatContext)\n\n return theme\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"use_typing_indicators.d.ts","sourceRoot":"","sources":["../../src/hooks/use_typing_indicators.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,sBAuB/B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,WAAY,YAAY,EAAE,KAAG,MAU/D,CAAA"}
1
+ {"version":3,"file":"use_typing_indicators.d.ts","sourceRoot":"","sources":["../../src/hooks/use_typing_indicators.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAGxD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,sBAuB/B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,WAAY,YAAY,EAAE,KAAG,MAU/D,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { useQuery } from '@tanstack/react-query';
2
2
  import { useMemo } from 'react';
3
- import { useConversationContext } from '../contexts/conversation_context';
4
3
  import { useCurrentPerson } from './use_current_person';
4
+ import { useConversationContext } from '@/contexts/conversation_context';
5
5
  /**
6
6
  * Hook for getting people currently typing in a conversation
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"use_typing_indicators.js","sourceRoot":"","sources":["../../src/hooks/use_typing_indicators.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A;IACjD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAsB,EAAU,EAAE;IACvE,IAAI,CAAC,MAAM,CAAC,MAAM;QAAE,OAAO,EAAE,CAAA;IAE7B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,eAAe,CAAA;IAChD,CAAC;SAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,QAAQ,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,gBAAgB,CAAA;IAC9E,CAAC;SAAM,CAAC;QACN,OAAO,8BAA8B,CAAA;IACvC,CAAC;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAmB,EAAE,CAAA","sourcesContent":["import { useQuery } from '@tanstack/react-query'\nimport { useMemo } from 'react'\nimport { useConversationContext } from '../contexts/conversation_context'\nimport { useCurrentPerson } from './use_current_person'\nimport { PersonTyping } from './use_typing_status_cache'\n\n/**\n * Hook for getting people currently typing in a conversation\n *\n * The query function itself doesn't do anything, but we add to the cache\n * from useTypingStatusCache when we receive a typing event.\n */\nexport const useTypingIndicators = () => {\n const { conversationId, currentPageReplyRootId } = useConversationContext()\n const cacheKey = useMemo(() => ['conversationTyping', String(conversationId)], [conversationId])\n const currentPerson = useCurrentPerson()\n const isCurrentPerson = (authorId: number) => authorId === currentPerson?.id\n const inMainConversationView = !currentPageReplyRootId\n const now = Date.now()\n const { data } = useQuery({\n queryKey: cacheKey,\n queryFn: () => stableArray,\n initialData: stableArray,\n })\n\n return data.filter(({ author_id, expires, reply_root_id }) => {\n if (isCurrentPerson(author_id)) return false\n if (now > expires) return false\n\n // If you are in the main conversation view, you will see any message sent\n if (inMainConversationView) return true\n\n // If you are in a reply view, you will only see messages sent in this reply thread\n return reply_root_id === currentPageReplyRootId\n })\n}\n\n/**\n * Format text for typing indicators based on the number of people typing\n */\nexport const getTypingIndicatorText = (people: PersonTyping[]): string => {\n if (!people.length) return ''\n\n if (people.length === 1) {\n return `${people[0].author_name} is typing...`\n } else if (people.length === 2) {\n return `${people[0].author_name} and ${people[1].author_name} are typing...`\n } else {\n return 'Several people are typing...'\n }\n}\n\nconst stableArray: PersonTyping[] = []\n"]}
1
+ {"version":3,"file":"use_typing_indicators.js","sourceRoot":"","sources":["../../src/hooks/use_typing_indicators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAExE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,EAAE,cAAc,EAAE,sBAAsB,EAAE,GAAG,sBAAsB,EAAE,CAAA;IAC3E,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,oBAAoB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAA;IAChG,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAA;IACxC,MAAM,eAAe,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,QAAQ,KAAK,aAAa,EAAE,EAAE,CAAA;IAC5E,MAAM,sBAAsB,GAAG,CAAC,sBAAsB,CAAA;IACtD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IACtB,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;QACxB,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW;QAC1B,WAAW,EAAE,WAAW;KACzB,CAAC,CAAA;IAEF,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;QAC3D,IAAI,eAAe,CAAC,SAAS,CAAC;YAAE,OAAO,KAAK,CAAA;QAC5C,IAAI,GAAG,GAAG,OAAO;YAAE,OAAO,KAAK,CAAA;QAE/B,0EAA0E;QAC1E,IAAI,sBAAsB;YAAE,OAAO,IAAI,CAAA;QAEvC,mFAAmF;QACnF,OAAO,aAAa,KAAK,sBAAsB,CAAA;IACjD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAsB,EAAU,EAAE;IACvE,IAAI,CAAC,MAAM,CAAC,MAAM;QAAE,OAAO,EAAE,CAAA;IAE7B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,eAAe,CAAA;IAChD,CAAC;SAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,QAAQ,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,gBAAgB,CAAA;IAC9E,CAAC;SAAM,CAAC;QACN,OAAO,8BAA8B,CAAA;IACvC,CAAC;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAmB,EAAE,CAAA","sourcesContent":["import { useQuery } from '@tanstack/react-query'\nimport { useMemo } from 'react'\nimport { useCurrentPerson } from './use_current_person'\nimport { PersonTyping } from './use_typing_status_cache'\nimport { useConversationContext } from '@/contexts/conversation_context'\n\n/**\n * Hook for getting people currently typing in a conversation\n *\n * The query function itself doesn't do anything, but we add to the cache\n * from useTypingStatusCache when we receive a typing event.\n */\nexport const useTypingIndicators = () => {\n const { conversationId, currentPageReplyRootId } = useConversationContext()\n const cacheKey = useMemo(() => ['conversationTyping', String(conversationId)], [conversationId])\n const currentPerson = useCurrentPerson()\n const isCurrentPerson = (authorId: number) => authorId === currentPerson?.id\n const inMainConversationView = !currentPageReplyRootId\n const now = Date.now()\n const { data } = useQuery({\n queryKey: cacheKey,\n queryFn: () => stableArray,\n initialData: stableArray,\n })\n\n return data.filter(({ author_id, expires, reply_root_id }) => {\n if (isCurrentPerson(author_id)) return false\n if (now > expires) return false\n\n // If you are in the main conversation view, you will see any message sent\n if (inMainConversationView) return true\n\n // If you are in a reply view, you will only see messages sent in this reply thread\n return reply_root_id === currentPageReplyRootId\n })\n}\n\n/**\n * Format text for typing indicators based on the number of people typing\n */\nexport const getTypingIndicatorText = (people: PersonTyping[]): string => {\n if (!people.length) return ''\n\n if (people.length === 1) {\n return `${people[0].author_name} is typing...`\n } else if (people.length === 2) {\n return `${people[0].author_name} and ${people[1].author_name} are typing...`\n } else {\n return 'Several people are typing...'\n }\n}\n\nconst stableArray: PersonTyping[] = []\n"]}
@@ -1,4 +1,4 @@
1
- import { TypingBroadcastDataAttributes } from '../types/jolt_events/typing_events';
1
+ import { TypingBroadcastDataAttributes } from '@/types/jolt_events/typing_events';
2
2
  export declare const TYPING_TIMEOUT_INTERVAL = 6000;
3
3
  export interface PersonTyping extends TypingBroadcastDataAttributes {
4
4
  expires: number;
@@ -1 +1 @@
1
- {"version":3,"file":"use_typing_status_cache.d.ts","sourceRoot":"","sources":["../../src/hooks/use_typing_status_cache.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAElF,eAAO,MAAM,uBAAuB,OAAO,CAAA;AAE3C,MAAM,WAAW,YAAa,SAAQ,6BAA6B;IACjE,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,mBAAoB,MAAM;2BAKhD,6BAA6B;gCAa/B,MAAM;gDASA,MAAM;CAapB,CAAA"}
1
+ {"version":3,"file":"use_typing_status_cache.d.ts","sourceRoot":"","sources":["../../src/hooks/use_typing_status_cache.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAA;AAEjF,eAAO,MAAM,uBAAuB,OAAO,CAAA;AAE3C,MAAM,WAAW,YAAa,SAAQ,6BAA6B;IACjE,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,mBAAoB,MAAM;2BAKhD,6BAA6B;gCAa/B,MAAM;gDASA,MAAM;CAapB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"use_typing_status_cache.js","sourceRoot":"","sources":["../../src/hooks/use_typing_status_cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAG5C,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAA,CAAC,YAAY;AAMxD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAAsB,EAAE,EAAE;IAC7D,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IACpC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,oBAAoB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAA;IAEhG,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,IAAmC,EAAE,EAAE;QACtC,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,UAA0B,EAAE,EAAE,EAAE;YAClE,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAC7B,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CACvE,CAAA;YACD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,uBAAuB,CAAA;YACpD,OAAO,CAAC,GAAG,QAAQ,EAAE,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;QAC5C,CAAC,CAAC,CAAA;IACJ,CAAC,EACD,CAAC,WAAW,EAAE,QAAQ,CAAC,CACxB,CAAA;IAED,MAAM,qBAAqB,GAAG,WAAW,CACvC,CAAC,EAAU,EAAE,EAAE;QACb,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,UAA0B,EAAE,EAAE,EAAE;YAClE,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;QAC/C,CAAC,CAAC,CAAA;IACJ,CAAC,EACD,CAAC,WAAW,EAAE,QAAQ,CAAC,CACxB,CAAA;IAED,MAAM,+BAA+B,GAAG,WAAW,CACjD,CAAC,QAAgB,EAAE,EAAE;QACnB,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,UAA0B,EAAE,EAAE,EAAE;YAClE,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAA;QAC5D,CAAC,CAAC,CAAA;IACJ,CAAC,EACD,CAAC,WAAW,EAAE,QAAQ,CAAC,CACxB,CAAA;IAED,OAAO;QACL,cAAc;QACd,qBAAqB;QACrB,+BAA+B;KAChC,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { useQueryClient } from '@tanstack/react-query'\nimport { useCallback, useMemo } from 'react'\nimport { TypingBroadcastDataAttributes } from '../types/jolt_events/typing_events'\n\nexport const TYPING_TIMEOUT_INTERVAL = 6000 // 6 seconds\n\nexport interface PersonTyping extends TypingBroadcastDataAttributes {\n expires: number\n}\n\n/**\n * Hook for managing the cache of people currently typing in a conversation\n */\nexport const useTypingStatusCache = (conversationId: number) => {\n const queryClient = useQueryClient()\n const cacheKey = useMemo(() => ['conversationTyping', String(conversationId)], [conversationId])\n\n const addTypingEvent = useCallback(\n (data: TypingBroadcastDataAttributes) => {\n queryClient.setQueryData(cacheKey, (oldData: PersonTyping[] = []) => {\n const filtered = oldData.filter(\n item => item.author_id !== data.author_id && item.expires > Date.now()\n )\n const expires = Date.now() + TYPING_TIMEOUT_INTERVAL\n return [...filtered, { ...data, expires }]\n })\n },\n [queryClient, cacheKey]\n )\n\n const removeTypingEventById = useCallback(\n (id: string) => {\n queryClient.setQueryData(cacheKey, (oldData: PersonTyping[] = []) => {\n return oldData.filter(item => item.id !== id)\n })\n },\n [queryClient, cacheKey]\n )\n\n const removeAllTypingEventsByAuthorId = useCallback(\n (authorId: number) => {\n queryClient.setQueryData(cacheKey, (oldData: PersonTyping[] = []) => {\n return oldData.filter(item => item.author_id !== authorId)\n })\n },\n [queryClient, cacheKey]\n )\n\n return {\n addTypingEvent,\n removeTypingEventById,\n removeAllTypingEventsByAuthorId,\n }\n}\n"]}
1
+ {"version":3,"file":"use_typing_status_cache.js","sourceRoot":"","sources":["../../src/hooks/use_typing_status_cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAG5C,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAA,CAAC,YAAY;AAMxD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAAsB,EAAE,EAAE;IAC7D,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IACpC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,oBAAoB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAA;IAEhG,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,IAAmC,EAAE,EAAE;QACtC,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,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from 'react'\nimport { TypingBroadcastDataAttributes } from '@/types/jolt_events/typing_events'\n\nexport const TYPING_TIMEOUT_INTERVAL = 6000 // 6 seconds\n\nexport interface PersonTyping extends TypingBroadcastDataAttributes {\n expires: number\n}\n\n/**\n * Hook for managing the cache of people currently typing in a conversation\n */\nexport const useTypingStatusCache = (conversationId: number) => {\n const queryClient = useQueryClient()\n const cacheKey = useMemo(() => ['conversationTyping', String(conversationId)], [conversationId])\n\n const addTypingEvent = useCallback(\n (data: TypingBroadcastDataAttributes) => {\n queryClient.setQueryData(cacheKey, (oldData: PersonTyping[] = []) => {\n const filtered = oldData.filter(\n item => item.author_id !== data.author_id && item.expires > Date.now()\n )\n const expires = Date.now() + TYPING_TIMEOUT_INTERVAL\n return [...filtered, { ...data, expires }]\n })\n },\n [queryClient, cacheKey]\n )\n\n const removeTypingEventById = useCallback(\n (id: string) => {\n queryClient.setQueryData(cacheKey, (oldData: PersonTyping[] = []) => {\n return oldData.filter(item => item.id !== id)\n })\n },\n [queryClient, cacheKey]\n )\n\n const removeAllTypingEventsByAuthorId = useCallback(\n (authorId: number) => {\n queryClient.setQueryData(cacheKey, (oldData: PersonTyping[] = []) => {\n return oldData.filter(item => item.author_id !== authorId)\n })\n },\n [queryClient, cacheKey]\n )\n\n return {\n addTypingEvent,\n removeTypingEventById,\n removeAllTypingEventsByAuthorId,\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { Client } from '../utils';
1
+ import { Client } from '@/utils';
2
2
  export interface FileForUploadClient {
3
3
  uri: string;
4
4
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use_upload_client.d.ts","sourceRoot":"","sources":["../../src/hooks/use_upload_client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAGjC,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eA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ACjB,IAAI,EAAE,MAAM,CAAA;QACZ,YAAY,EAAE,MAAM,CAAA;QACpB,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF"}
@@ -1,7 +1,7 @@
1
1
  import { useContext, useMemo } from 'react';
2
- import { ChatContext } from '../contexts/chat_context';
3
- import { Client } from '../utils';
4
- import { UploadUri } from '../utils/upload_uri';
2
+ import { ChatContext } from '@/contexts/chat_context';
3
+ import { Client } from '@/utils';
4
+ import { UploadUri } from '@/utils/upload_uri';
5
5
  export const useUploadClient = () => {
6
6
  const { session, onUnauthorizedResponse } = useContext(ChatContext);
7
7
  const uri = useMemo(() => new UploadUri({ session }), [session]);
@@ -1 +1 @@
1
- {"version":3,"file":"use_upload_client.js","sourceRoot":"","sources":["../../src/hooks/use_upload_client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAQ/C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IAEnE,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEhE,MAAM,GAAG,GAAG,OAAO,CACjB,GAAG,EAAE,CACH,IAAI,YAAY,CAAC;QACf,OAAO,EAAE,YAAY,EAAE,4DAA4D;QACnF,IAAI,EAAE,GAAG,CAAC,OAAO;QACjB,cAAc,EAAE,GAAG,CAAC,OAAO;QAC3B,sBAAsB;KACvB,CAAC,EACJ,CAAC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AAC,CAAC,CAAA;IAC7B,CAAC;CACF","sourcesContent":["import { useContext, useMemo } from 'react'\nimport { ChatContext } from '../contexts/chat_context'\nimport { Client } from '../utils'\nimport { UploadUri } from '../utils/upload_uri'\n\nexport interface FileForUploadClient {\n uri: string\n name: string\n type: string // Should be a MIME type\n}\n\nexport const useUploadClient = () => {\n const { session, onUnauthorizedResponse } = useContext(ChatContext)\n\n const uri = useMemo(() => new UploadUri({ session }), [session])\n\n const api = useMemo(\n () =>\n new UploadClient({\n version: '2025-05-16', // not really needed, but required by the Client constructor\n root: uri.baseUrl,\n defaultHeaders: uri.headers,\n onUnauthorizedResponse,\n }),\n [uri, onUnauthorizedResponse]\n )\n\n return api\n}\n\nclass UploadClient extends Client {\n async uploadFile(file: FileForUploadClient): Promise<UploadedResource> {\n const formData = new FormData()\n formData.append('file', {\n uri: file.uri,\n name: file.name,\n type: file.type,\n })\n\n const headers: RequestInit['headers'] = { ...this.headers }\n delete headers['Content-Type']\n\n const response = await fetch(`${this.root}/v2/files`, {\n method: 'POST',\n headers,\n body: formData,\n })\n\n if (response.status === 403) {\n const errorBody = await response.json().catch(() => null)\n if (errorBody?.detail === 'Image was flagged') {\n return Promise.reject({ code: 'image_flagged' })\n }\n return this.handleNotOk(response)\n }\n\n if (!response.ok) {\n return this.handleNotOk(response)\n }\n\n const jsonResponse = await response.json()\n\n return jsonResponse.data[0]\n }\n}\n\ninterface UploadedResource {\n id: string\n type: string\n attributes: {\n organization_id: string\n person_id: string\n md5: string\n created_at: string\n expires_at: string\n source_ip: string\n name: string\n content_type: string\n file_size: number\n location: string\n }\n}\n"]}
1
+ {"version":3,"file":"use_upload_client.js","sourceRoot":"","sources":["../../src/hooks/use_upload_client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,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;YAC5B,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA;YACzD,IAAI,SAAS,EAAE,MAAM,KAAK,mBAAmB,EAAE,CAAC;gBAC9C,OAAO,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAA;YAClD,CAAC;YACD,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QACnC,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QACnC,CAAC;QAED,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;QAE1C,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC7B,CAAC;CACF","sourcesContent":["import { useContext, useMemo } from 'react'\nimport { ChatContext } from '@/contexts/chat_context'\nimport { Client } from '@/utils'\nimport { UploadUri } from '@/utils/upload_uri'\n\nexport interface FileForUploadClient {\n uri: string\n name: string\n type: string // Should be a MIME type\n}\n\nexport const useUploadClient = () => {\n const { session, onUnauthorizedResponse } = useContext(ChatContext)\n\n const uri = useMemo(() => new UploadUri({ session }), [session])\n\n const api = useMemo(\n () =>\n new UploadClient({\n version: '2025-05-16', // not really needed, but required by the Client constructor\n root: uri.baseUrl,\n defaultHeaders: uri.headers,\n onUnauthorizedResponse,\n }),\n [uri, onUnauthorizedResponse]\n )\n\n return api\n}\n\nclass UploadClient extends Client {\n async uploadFile(file: FileForUploadClient): Promise<UploadedResource> {\n const formData = new FormData()\n formData.append('file', {\n uri: file.uri,\n name: file.name,\n type: file.type,\n })\n\n const headers: RequestInit['headers'] = { ...this.headers }\n delete headers['Content-Type']\n\n const response = await fetch(`${this.root}/v2/files`, {\n method: 'POST',\n headers,\n body: formData,\n })\n\n if (response.status === 403) {\n const errorBody = await response.json().catch(() => null)\n if (errorBody?.detail === 'Image was flagged') {\n return Promise.reject({ code: 'image_flagged' })\n }\n return this.handleNotOk(response)\n }\n\n if (!response.ok) {\n return this.handleNotOk(response)\n }\n\n const jsonResponse = await response.json()\n\n return jsonResponse.data[0]\n }\n}\n\ninterface UploadedResource {\n id: string\n type: string\n attributes: {\n organization_id: string\n person_id: string\n md5: string\n created_at: string\n expires_at: string\n source_ip: string\n name: string\n content_type: string\n file_size: number\n location: string\n }\n}\n"]}
@@ -1,11 +1,11 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
- import { DefaultLoading } from '../components/page/loading';
3
- import { useChatContext } from '../contexts/chat_context';
4
- import { useApiGet, useOrganization } from '../hooks';
5
- import { currentPersonRequestArgs } from '../hooks/use_current_person';
6
- import { AgeCheckRequiredScreen } from '../screens/age_check/age_check_required_screen';
7
- import { AgeCheckUnderageScreen } from '../screens/age_check/age_check_underage_screen';
8
- import { AgeQualificationStatus } from '../types';
2
+ import { DefaultLoading } from '@/components/page/loading';
3
+ import { useChatContext } from '@/contexts/chat_context';
4
+ import { useApiGet, useOrganization } from '@/hooks';
5
+ import { currentPersonRequestArgs } from '@/hooks/use_current_person';
6
+ import { AgeCheckRequiredScreen } from '@/screens/age_check/age_check_required_screen';
7
+ import { AgeCheckUnderageScreen } from '@/screens/age_check/age_check_underage_screen';
8
+ import { AgeQualificationStatus } from '@/types';
9
9
  export function ChatAccessGate({ children }) {
10
10
  const { data: person, isFetched } = useApiGet(currentPersonRequestArgs);
11
11
  const { data: organization } = useOrganization();
@@ -1 +1 @@
1
- {"version":3,"file":"chat_access_gate.js","sourceRoot":"","sources":["../../src/navigation/chat_access_gate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CA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IAEhC,MAAM,EAAE,qBAAqB,EAAE,GAAG,cAAc,EAAE,CAAA;IAClD,MAAM,oBAAoB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAE1C,SAAS,CAAC,GAAG,EAAE;QACb,IACE,sBAAsB,KAAK,sBAAsB,CAAC,YAAY;YAC9D,CAAC,oBAAoB,CAAC,OAAO,EAC7B,CAAC;YACD,oBAAoB,CAAC,OAAO,GAAG,IAAI,CAAA;YACnC,qBAAqB,CAAC,EAAE,YAAY,EAAE,YAAY,IAAI,EAAE,EAAE,CAAC,CAAA;QAC7D,CAAC;IACH,CAAC,EAAE,CAAC,sBAAsB,EAAE,qBAAqB,EAAE,YAAY,CAAC,CAAC,CAAA;AACnE,CAAC","sourcesContent":["import React, { PropsWithChildren, useEffect, useRef } from 'react'\nimport { DefaultLoading } from '../components/page/loading'\nimport { useChatContext } from '../contexts/chat_context'\nimport { useApiGet, useOrganization } from '../hooks'\nimport { currentPersonRequestArgs } from '../hooks/use_current_person'\nimport { AgeCheckRequiredScreen } from '../screens/age_check/age_check_required_screen'\nimport { AgeCheckUnderageScreen } from '../screens/age_check/age_check_underage_screen'\nimport { AgeQualificationStatus, CurrentPersonResource } from '../types'\n\nexport function ChatAccessGate({ children }: PropsWithChildren) {\n const { data: person, isFetched } = useApiGet<CurrentPersonResource>(currentPersonRequestArgs)\n const { data: organization } = useOrganization()\n\n const ageQualificationStatus = person?.ageQualificationStatus\n const contactEmail = organization?.contactEmail\n\n useAgeDisqualification(ageQualificationStatus, contactEmail)\n\n if (!isFetched) {\n return <DefaultLoading />\n }\n\n if (!person) {\n throw new Error('Current person not found')\n }\n\n if (ageQualificationStatus === AgeQualificationStatus.DISQUALIFIED) {\n return <AgeCheckUnderageScreen contactEmail={contactEmail} />\n }\n\n if (ageQualificationStatus === AgeQualificationStatus.UNKNOWN) {\n return <AgeCheckRequiredScreen />\n }\n\n return <>{children}</>\n}\n\n/**\n * Helper hook that handles the age disqualification logic.\n *\n * If a host app provides an onAgeDisqualification callback, it will be called\n * when a user is found to be disqualified by their age.\n */\nfunction useAgeDisqualification(\n ageQualificationStatus: CurrentPersonResource['ageQualificationStatus'],\n contactEmail: string | undefined\n) {\n const { onAgeDisqualification } = useChatContext()\n const hasCalledCallbackRef = useRef(false)\n\n useEffect(() => {\n if (\n ageQualificationStatus === AgeQualificationStatus.DISQUALIFIED &&\n !hasCalledCallbackRef.current\n ) {\n hasCalledCallbackRef.current = true\n onAgeDisqualification({ contactEmail: contactEmail || '' })\n }\n }, [ageQualificationStatus, onAgeDisqualification, contactEmail])\n}\n"]}
1
+ {"version":3,"file":"chat_access_gate.js","sourceRoot":"","sources":["../../src/navigation/chat_access_gate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAE,sBAAsB,EAAyB,MAAM,SAAS,CAAA;AAEvE,MAAM,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAqB;IAC5D,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,CAAwB,wBAAwB,CAAC,CAAA;IAC9F,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,eAAe,EAAE,CAAA;IAEhD,MAAM,sBAAsB,GAAG,MAAM,EAAE,sBAAsB,CAAA;IAC7D,MAAM,YAAY,GAAG,YAAY,EAAE,YAAY,CAAA;IAE/C,sBAAsB,CAAC,sBAAsB,EAAE,YAAY,CAAC,CAAA;IAE5D,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,CAAC,cAAc,CAAC,AAAD,EAAG,CAAA;IAC3B,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;IAC7C,CAAC;IAED,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,YAAY,EAAE,CAAC;QACnE,OAAO,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,EAAG,CAAA;IAC/D,CAAC;IAED,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,OAAO,EAAE,CAAC;QAC9D,OAAO,CAAC,sBAAsB,CAAC,AAAD,EAAG,CAAA;IACnC,CAAC;IAED,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAA;AACxB,CAAC;AAED;;;;;GAKG;AACH,SAAS,sBAAsB,CAC7B,sBAAuE,EACvE,YAAgC;IAEhC,MAAM,EAAE,qBAAqB,EAAE,GAAG,cAAc,EAAE,CAAA;IAClD,MAAM,oBAAoB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAE1C,SAAS,CAAC,GAAG,EAAE;QACb,IACE,sBAAsB,KAAK,sBAAsB,CAAC,YAAY;YAC9D,CAAC,oBAAoB,CAAC,OAAO,EAC7B,CAAC;YACD,oBAAoB,CAAC,OAAO,GAAG,IAAI,CAAA;YACnC,qBAAqB,CAAC,EAAE,YAAY,EAAE,YAAY,IAAI,EAAE,EAAE,CAAC,CAAA;QAC7D,CAAC;IACH,CAAC,EAAE,CAAC,sBAAsB,EAAE,qBAAqB,EAAE,YAAY,CAAC,CAAC,CAAA;AACnE,CAAC","sourcesContent":["import React, { PropsWithChildren, useEffect, useRef } from 'react'\nimport { DefaultLoading } from '@/components/page/loading'\nimport { useChatContext } from '@/contexts/chat_context'\nimport { useApiGet, useOrganization } from '@/hooks'\nimport { currentPersonRequestArgs } from '@/hooks/use_current_person'\nimport { AgeCheckRequiredScreen } from '@/screens/age_check/age_check_required_screen'\nimport { AgeCheckUnderageScreen } from '@/screens/age_check/age_check_underage_screen'\nimport { AgeQualificationStatus, CurrentPersonResource } from '@/types'\n\nexport function ChatAccessGate({ children }: PropsWithChildren) {\n const { data: person, isFetched } = useApiGet<CurrentPersonResource>(currentPersonRequestArgs)\n const { data: organization } = useOrganization()\n\n const ageQualificationStatus = person?.ageQualificationStatus\n const contactEmail = organization?.contactEmail\n\n useAgeDisqualification(ageQualificationStatus, contactEmail)\n\n if (!isFetched) {\n return <DefaultLoading />\n }\n\n if (!person) {\n throw new Error('Current person not found')\n }\n\n if (ageQualificationStatus === AgeQualificationStatus.DISQUALIFIED) {\n return <AgeCheckUnderageScreen contactEmail={contactEmail} />\n }\n\n if (ageQualificationStatus === AgeQualificationStatus.UNKNOWN) {\n return <AgeCheckRequiredScreen />\n }\n\n return <>{children}</>\n}\n\n/**\n * Helper hook that handles the age disqualification logic.\n *\n * If a host app provides an onAgeDisqualification callback, it will be called\n * when a user is found to be disqualified by their age.\n */\nfunction useAgeDisqualification(\n ageQualificationStatus: CurrentPersonResource['ageQualificationStatus'],\n contactEmail: string | undefined\n) {\n const { onAgeDisqualification } = useChatContext()\n const hasCalledCallbackRef = useRef(false)\n\n useEffect(() => {\n if (\n ageQualificationStatus === AgeQualificationStatus.DISQUALIFIED &&\n !hasCalledCallbackRef.current\n ) {\n hasCalledCallbackRef.current = true\n onAgeDisqualification({ contactEmail: contactEmail || '' })\n }\n }, [ageQualificationStatus, onAgeDisqualification, contactEmail])\n}\n"]}
@@ -2,24 +2,24 @@ import { StaticParamList } from '@react-navigation/native';
2
2
  import { NativeStackHeaderRightProps } from '@react-navigation/native-stack';
3
3
  import { CardStyleInterpolators } from '@react-navigation/stack';
4
4
  import React from 'react';
5
- import { AttachmentActionsScreen } from '../screens/attachment_actions/attachment_actions_screen';
6
- import { BugReportScreen } from '../screens/bug_report_screen';
7
- import { MessageReadReceiptsScreen } from '../screens/conversation/message_read_receipts_screen';
8
- import { ConversationDetailsScreen } from '../screens/conversation_details_screen';
9
- import { ConversationNotificationLevelSelectScreen } from '../screens/conversation_notification_level_select_screen';
10
- import { ConversationScreen } from '../screens/conversation_screen';
11
- import { ConversationSelectTypeScreen } from '../screens/conversation_select_type_screen';
12
- import { ConversationsScreen } from '../screens/conversations/conversations_screen';
13
- import { GroupNotificationLevelSelectScreen } from '../screens/group_notification_level_select_screen';
14
- import { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen';
15
- import { MessageActionsScreen } from '../screens/message_actions_screen';
16
- import { MessageReportScreen } from '../screens/message_report_screen';
17
- import { NotFound } from '../screens/not_found';
18
- import { NotificationSettingsScreen } from '../screens/notification_settings_screen';
19
- import { PreferredAppSelectionScreen } from '../screens/preferred_app_selection_screen';
20
- import { ReactionsScreen } from '../screens/reactions_screen';
21
- import { SendGiphyScreen } from '../screens/send_giphy_screen';
22
5
  import { ScreenLayoutWithChatAccessGate } from './screenLayout';
6
+ import { AttachmentActionsScreen } from '@/screens/attachment_actions/attachment_actions_screen';
7
+ import { BugReportScreen } from '@/screens/bug_report_screen';
8
+ import { MessageReadReceiptsScreen } from '@/screens/conversation/message_read_receipts_screen';
9
+ import { ConversationDetailsScreen } from '@/screens/conversation_details_screen';
10
+ import { ConversationNotificationLevelSelectScreen } from '@/screens/conversation_notification_level_select_screen';
11
+ import { ConversationScreen } from '@/screens/conversation_screen';
12
+ import { ConversationSelectTypeScreen } from '@/screens/conversation_select_type_screen';
13
+ import { ConversationsScreen } from '@/screens/conversations/conversations_screen';
14
+ import { GroupNotificationLevelSelectScreen } from '@/screens/group_notification_level_select_screen';
15
+ import { GroupNotificationSettingsScreen } from '@/screens/group_notification_settings_screen';
16
+ import { MessageActionsScreen } from '@/screens/message_actions_screen';
17
+ import { MessageReportScreen } from '@/screens/message_report_screen';
18
+ import { NotFound } from '@/screens/not_found';
19
+ import { NotificationSettingsScreen } from '@/screens/notification_settings_screen';
20
+ import { PreferredAppSelectionScreen } from '@/screens/preferred_app_selection_screen';
21
+ import { ReactionsScreen } from '@/screens/reactions_screen';
22
+ import { SendGiphyScreen } from '@/screens/send_giphy_screen';
23
23
  export declare const NewConversationStack: import("@react-navigation/native").TypedNavigator<{
24
24
  ParamList: import("@react-navigation/native").ParamListBase;
25
25
  NavigatorID: undefined;
@@ -38,7 +38,7 @@ export declare const NewConversationStack: import("@react-navigation/native").Ty
38
38
  readonly screenLayout: typeof ScreenLayoutWithChatAccessGate;
39
39
  readonly screens: {
40
40
  readonly ConversationNewEntry: {
41
- readonly screen: ({ route }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
41
+ readonly screen: ({ route }: import("@/screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
42
42
  readonly options: ({ navigation }: {
43
43
  route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
44
44
  navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
@@ -50,7 +50,7 @@ export declare const NewConversationStack: import("@react-navigation/native").Ty
50
50
  };
51
51
  };
52
52
  readonly ConversationSelectGroupRecipients: {
53
- readonly screen: ({ route, }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
53
+ readonly screen: ({ route, }: import("@/screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
54
54
  readonly options: ({ navigation, route }: {
55
55
  route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
56
56
  navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
@@ -61,7 +61,7 @@ export declare const NewConversationStack: import("@react-navigation/native").Ty
61
61
  };
62
62
  };
63
63
  readonly ConversationSelectTeamsILeadRecipients: {
64
- readonly screen: ({ route, }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
64
+ readonly screen: ({ route, }: import("@/screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
65
65
  readonly options: ({ navigation, route }: {
66
66
  route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
67
67
  navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
@@ -130,7 +130,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
130
130
  };
131
131
  };
132
132
  readonly ConversationFilters: {
133
- readonly screen: (_props: import("../screens/conversation_filters/screen_props").ConversationFiltersScreenProps) => React.JSX.Element;
133
+ readonly screen: (_props: import("@/screens/conversation_filters/screen_props").ConversationFiltersScreenProps) => React.JSX.Element;
134
134
  readonly options: import("@react-navigation/native-stack").NativeStackNavigationOptions;
135
135
  };
136
136
  readonly Conversation: {
@@ -157,7 +157,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
157
157
  };
158
158
  };
159
159
  readonly TeamConversation: {
160
- readonly screen: ({ route }: import("../screens/team_conversation_screen").TeamConversationScreenProps) => React.JSX.Element;
160
+ readonly screen: ({ route }: import("@/screens/team_conversation_screen").TeamConversationScreenProps) => React.JSX.Element;
161
161
  readonly if: () => boolean;
162
162
  readonly options: {
163
163
  readonly title: "Finding conversation...";
@@ -233,7 +233,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
233
233
  readonly screenLayout: typeof ScreenLayoutWithChatAccessGate;
234
234
  readonly screens: {
235
235
  readonly ConversationNewEntry: {
236
- readonly screen: ({ route }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
236
+ readonly screen: ({ route }: import("@/screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
237
237
  readonly options: ({ navigation }: {
238
238
  route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
239
239
  navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
@@ -245,7 +245,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
245
245
  };
246
246
  };
247
247
  readonly ConversationSelectGroupRecipients: {
248
- readonly screen: ({ route, }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
248
+ readonly screen: ({ route, }: import("@/screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
249
249
  readonly options: ({ navigation, route }: {
250
250
  route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
251
251
  navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
@@ -256,7 +256,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
256
256
  };
257
257
  };
258
258
  readonly ConversationSelectTeamsILeadRecipients: {
259
- readonly screen: ({ route, }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
259
+ readonly screen: ({ route, }: import("@/screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
260
260
  readonly options: ({ navigation, route }: {
261
261
  route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
262
262
  navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/navigation/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAA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