@planningcenter/chat-react-native 4.5.1-qa-1062.0 → 4.5.1-qa-staging.12

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 (923) hide show
  1. package/build/components/conversation/attachments/attachment_card.d.ts +9 -0
  2. package/build/components/conversation/attachments/attachment_card.d.ts.map +1 -0
  3. package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts +2 -0
  4. package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts.map +1 -0
  5. package/build/components/conversation/attachments/audio_attachment.d.ts +7 -0
  6. package/build/components/conversation/attachments/audio_attachment.d.ts.map +1 -0
  7. package/build/components/conversation/attachments/constants.d.ts +3 -0
  8. package/build/components/conversation/attachments/constants.d.ts.map +1 -0
  9. package/build/components/conversation/attachments/expanded_link.d.ts +6 -0
  10. package/build/components/conversation/attachments/expanded_link.d.ts.map +1 -0
  11. package/build/components/conversation/attachments/generic_file_attachment.d.ts +7 -0
  12. package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +1 -0
  13. package/build/components/conversation/attachments/giphy_attachment.d.ts +6 -0
  14. package/build/components/conversation/attachments/giphy_attachment.d.ts.map +1 -0
  15. package/build/components/conversation/attachments/image_attachment.d.ts +14 -0
  16. package/build/components/conversation/attachments/image_attachment.d.ts.map +1 -0
  17. package/build/components/conversation/attachments/video_attachment.d.ts +7 -0
  18. package/build/components/conversation/attachments/video_attachment.d.ts.map +1 -0
  19. package/build/components/conversation/conversation_start_banner.d.ts +9 -0
  20. package/build/components/conversation/conversation_start_banner.d.ts.map +1 -0
  21. package/build/components/conversation/empty_conversation_blank_state.d.ts +2 -0
  22. package/build/components/conversation/empty_conversation_blank_state.d.ts.map +1 -0
  23. package/build/components/conversation/jump_to_bottom_button.d.ts +7 -0
  24. package/build/components/conversation/jump_to_bottom_button.d.ts.map +1 -0
  25. package/build/components/conversation/message.d.ts +17 -0
  26. package/build/components/conversation/message.d.ts.map +1 -0
  27. package/build/components/conversation/message_attachments.d.ts +9 -0
  28. package/build/components/conversation/message_attachments.d.ts.map +1 -0
  29. package/build/components/conversation/message_form/message_form_attachment_file.d.ts +10 -0
  30. package/build/components/conversation/message_form/message_form_attachment_file.d.ts.map +1 -0
  31. package/build/components/conversation/message_form/message_form_attachment_image.d.ts +12 -0
  32. package/build/components/conversation/message_form/message_form_attachment_image.d.ts.map +1 -0
  33. package/build/components/conversation/message_form/message_form_attachment_video.d.ts +9 -0
  34. package/build/components/conversation/message_form/message_form_attachment_video.d.ts.map +1 -0
  35. package/build/components/conversation/message_form.d.ts +24 -0
  36. package/build/components/conversation/message_form.d.ts.map +1 -0
  37. package/build/components/conversation/message_list.d.ts +24 -0
  38. package/build/components/conversation/message_list.d.ts.map +1 -0
  39. package/build/components/conversation/message_list.js +155 -123
  40. package/build/components/conversation/message_list.js.map +1 -1
  41. package/build/components/conversation/message_markdown.d.ts +6 -0
  42. package/build/components/conversation/message_markdown.d.ts.map +1 -0
  43. package/build/components/conversation/message_reaction.d.ts +34 -0
  44. package/build/components/conversation/message_reaction.d.ts.map +1 -0
  45. package/build/components/conversation/message_read_receipts.d.ts +6 -0
  46. package/build/components/conversation/message_read_receipts.d.ts.map +1 -0
  47. package/build/components/conversation/messages_disabled_banners.d.ts +14 -0
  48. package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -0
  49. package/build/components/conversation/missing_message.d.ts +2 -0
  50. package/build/components/conversation/missing_message.d.ts.map +1 -0
  51. package/build/components/conversation/reply_connectors.d.ts +10 -0
  52. package/build/components/conversation/reply_connectors.d.ts.map +1 -0
  53. package/build/components/conversation/reply_shadow_message.d.ts +12 -0
  54. package/build/components/conversation/reply_shadow_message.d.ts.map +1 -0
  55. package/build/components/conversation/system_message.d.ts +9 -0
  56. package/build/components/conversation/system_message.d.ts.map +1 -0
  57. package/build/components/conversation/typing_indicator.d.ts +6 -0
  58. package/build/components/conversation/typing_indicator.d.ts.map +1 -0
  59. package/build/components/conversations/archived_results_footer.d.ts +6 -0
  60. package/build/components/conversations/archived_results_footer.d.ts.map +1 -0
  61. package/build/components/conversations/conversation_actions.d.ts +11 -0
  62. package/build/components/conversations/conversation_actions.d.ts.map +1 -0
  63. package/build/components/conversations/conversation_preview.d.ts +12 -0
  64. package/build/components/conversations/conversation_preview.d.ts.map +1 -0
  65. package/build/components/conversations/conversations.d.ts +7 -0
  66. package/build/components/conversations/conversations.d.ts.map +1 -0
  67. package/build/components/conversations/conversations.js +1 -0
  68. package/build/components/conversations/conversations.js.map +1 -1
  69. package/build/components/conversations/conversations_blank_state.d.ts +7 -0
  70. package/build/components/conversations/conversations_blank_state.d.ts.map +1 -0
  71. package/build/components/conversations/filtered_results_footer.d.ts +2 -0
  72. package/build/components/conversations/filtered_results_footer.d.ts.map +1 -0
  73. package/build/components/conversations/mute_indicator.d.ts +4 -0
  74. package/build/components/conversations/mute_indicator.d.ts.map +1 -0
  75. package/build/components/conversations/swipeable_toggle_button.d.ts +20 -0
  76. package/build/components/conversations/swipeable_toggle_button.d.ts.map +1 -0
  77. package/build/components/conversations/unread_count_badge.d.ts +6 -0
  78. package/build/components/conversations/unread_count_badge.d.ts.map +1 -0
  79. package/build/components/display/action_button.d.ts +15 -0
  80. package/build/components/display/action_button.d.ts.map +1 -0
  81. package/build/components/display/adult_requirement_notice.d.ts +7 -0
  82. package/build/components/display/adult_requirement_notice.d.ts.map +1 -0
  83. package/build/components/display/avatar.d.ts +15 -0
  84. package/build/components/display/avatar.d.ts.map +1 -0
  85. package/build/components/display/avatar_group.d.ts +14 -0
  86. package/build/components/display/avatar_group.d.ts.map +1 -0
  87. package/build/components/display/badge.d.ts +55 -0
  88. package/build/components/display/badge.d.ts.map +1 -0
  89. package/build/components/display/banner.d.ts +38 -0
  90. package/build/components/display/banner.d.ts.map +1 -0
  91. package/build/components/display/banner_collapsible.d.ts +11 -0
  92. package/build/components/display/banner_collapsible.d.ts.map +1 -0
  93. package/build/components/display/button.d.ts +67 -0
  94. package/build/components/display/button.d.ts.map +1 -0
  95. package/build/components/display/child_notice.d.ts +10 -0
  96. package/build/components/display/child_notice.d.ts.map +1 -0
  97. package/build/components/display/conversation_avatar.d.ts +17 -0
  98. package/build/components/display/conversation_avatar.d.ts.map +1 -0
  99. package/build/components/display/conversation_avatar.js +77 -66
  100. package/build/components/display/conversation_avatar.js.map +1 -1
  101. package/build/components/display/emoji_avatar.d.ts +11 -0
  102. package/build/components/display/emoji_avatar.d.ts.map +1 -0
  103. package/build/components/display/file_attachment_preview.d.ts +11 -0
  104. package/build/components/display/file_attachment_preview.d.ts.map +1 -0
  105. package/build/components/display/filter_dropdown.d.ts +36 -0
  106. package/build/components/display/filter_dropdown.d.ts.map +1 -0
  107. package/build/components/display/heading.d.ts +10 -0
  108. package/build/components/display/heading.d.ts.map +1 -0
  109. package/build/components/display/icon.d.ts +64 -0
  110. package/build/components/display/icon.d.ts.map +1 -0
  111. package/build/components/display/icon_avatar.d.ts +11 -0
  112. package/build/components/display/icon_avatar.d.ts.map +1 -0
  113. package/build/components/display/icon_button.d.ts +56 -0
  114. package/build/components/display/icon_button.d.ts.map +1 -0
  115. package/build/components/display/icon_tile.d.ts +13 -0
  116. package/build/components/display/icon_tile.d.ts.map +1 -0
  117. package/build/components/display/image.d.ts +39 -0
  118. package/build/components/display/image.d.ts.map +1 -0
  119. package/build/components/display/image.js +47 -44
  120. package/build/components/display/image.js.map +1 -1
  121. package/build/components/display/image_attachment_preview.d.ts +13 -0
  122. package/build/components/display/image_attachment_preview.d.ts.map +1 -0
  123. package/build/components/display/index.d.ts +34 -0
  124. package/build/components/display/index.d.ts.map +1 -0
  125. package/build/components/display/keyboard_scroll_view.d.ts +5 -0
  126. package/build/components/display/keyboard_scroll_view.d.ts.map +1 -0
  127. package/build/components/display/keyboard_scroll_view.js +1 -0
  128. package/build/components/display/keyboard_scroll_view.js.map +1 -1
  129. package/build/components/display/keyboard_view.d.ts +5 -0
  130. package/build/components/display/keyboard_view.d.ts.map +1 -0
  131. package/build/components/display/person.d.ts +9 -0
  132. package/build/components/display/person.d.ts.map +1 -0
  133. package/build/components/display/platform_modal_header_buttons.d.ts +61 -0
  134. package/build/components/display/platform_modal_header_buttons.d.ts.map +1 -0
  135. package/build/components/display/popover_menu_view.d.ts +8 -0
  136. package/build/components/display/popover_menu_view.d.ts.map +1 -0
  137. package/build/components/display/pressable_row.d.ts +14 -0
  138. package/build/components/display/pressable_row.d.ts.map +1 -0
  139. package/build/components/display/spinner.d.ts +22 -0
  140. package/build/components/display/spinner.d.ts.map +1 -0
  141. package/build/components/display/switch.d.ts +3 -0
  142. package/build/components/display/switch.d.ts.map +1 -0
  143. package/build/components/display/tabs.d.ts +17 -0
  144. package/build/components/display/tabs.d.ts.map +1 -0
  145. package/build/components/display/text.d.ts +25 -0
  146. package/build/components/display/text.d.ts.map +1 -0
  147. package/build/components/display/text_button.d.ts +39 -0
  148. package/build/components/display/text_button.d.ts.map +1 -0
  149. package/build/components/display/text_inline_button.d.ts +11 -0
  150. package/build/components/display/text_inline_button.d.ts.map +1 -0
  151. package/build/components/display/text_input.d.ts +8 -0
  152. package/build/components/display/text_input.d.ts.map +1 -0
  153. package/build/components/display/toggle_button.d.ts +55 -0
  154. package/build/components/display/toggle_button.d.ts.map +1 -0
  155. package/build/components/display/utils/avatar_gradient_colors.d.ts +17 -0
  156. package/build/components/display/utils/avatar_gradient_colors.d.ts.map +1 -0
  157. package/build/components/display/utils/button_colors.d.ts +39 -0
  158. package/build/components/display/utils/button_colors.d.ts.map +1 -0
  159. package/build/components/display/utils/status_colors.d.ts +17 -0
  160. package/build/components/display/utils/status_colors.d.ts.map +1 -0
  161. package/build/components/display/version_footer.d.ts +2 -0
  162. package/build/components/display/version_footer.d.ts.map +1 -0
  163. package/build/components/display/video_attachment_preview.d.ts +11 -0
  164. package/build/components/display/video_attachment_preview.d.ts.map +1 -0
  165. package/build/components/group_conversation_list.d.ts +23 -0
  166. package/build/components/group_conversation_list.d.ts.map +1 -0
  167. package/build/components/index.d.ts +7 -0
  168. package/build/components/index.d.ts.map +1 -0
  169. package/build/components/page/component_error_boundary.d.ts +4 -0
  170. package/build/components/page/component_error_boundary.d.ts.map +1 -0
  171. package/build/components/page/error_boundary.d.ts +20 -0
  172. package/build/components/page/error_boundary.d.ts.map +1 -0
  173. package/build/components/page/loading.d.ts +2 -0
  174. package/build/components/page/loading.d.ts.map +1 -0
  175. package/build/components/page/page_error_boundary.d.ts +12 -0
  176. package/build/components/page/page_error_boundary.d.ts.map +1 -0
  177. package/build/components/page/page_error_boundary.js +56 -31
  178. package/build/components/page/page_error_boundary.js.map +1 -1
  179. package/build/components/primitive/avatar_primitive.d.ts +51 -0
  180. package/build/components/primitive/avatar_primitive.d.ts.map +1 -0
  181. package/build/components/primitive/banner_primitive.d.ts +48 -0
  182. package/build/components/primitive/banner_primitive.d.ts.map +1 -0
  183. package/build/components/primitive/blank_state_primitive.d.ts +41 -0
  184. package/build/components/primitive/blank_state_primitive.d.ts.map +1 -0
  185. package/build/components/primitive/form_sheet.d.ts +75 -0
  186. package/build/components/primitive/form_sheet.d.ts.map +1 -0
  187. package/build/components/safe_area_modal.d.ts +7 -0
  188. package/build/components/safe_area_modal.d.ts.map +1 -0
  189. package/build/contexts/api_provider.d.ts +7 -0
  190. package/build/contexts/api_provider.d.ts.map +1 -0
  191. package/build/contexts/api_provider.js +11 -5
  192. package/build/contexts/api_provider.js.map +1 -1
  193. package/build/contexts/chat_context.d.ts +37 -0
  194. package/build/contexts/chat_context.d.ts.map +1 -0
  195. package/build/contexts/conversation_context.d.ts +13 -0
  196. package/build/contexts/conversation_context.d.ts.map +1 -0
  197. package/build/contexts/conversations_context.d.ts +16 -0
  198. package/build/contexts/conversations_context.d.ts.map +1 -0
  199. package/build/contexts/session_context.d.ts +44 -0
  200. package/build/contexts/session_context.d.ts.map +1 -0
  201. package/build/hooks/attachments/fallback_chat_configuration.d.ts +5 -0
  202. package/build/hooks/attachments/fallback_chat_configuration.d.ts.map +1 -0
  203. package/build/hooks/direct_messages/find_direct_message_conversation.d.ts +14 -0
  204. package/build/hooks/direct_messages/find_direct_message_conversation.d.ts.map +1 -0
  205. package/build/hooks/direct_messages/resolve_message_available_members_link.d.ts +16 -0
  206. package/build/hooks/direct_messages/resolve_message_available_members_link.d.ts.map +1 -0
  207. package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts +6 -0
  208. package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts.map +1 -0
  209. package/build/hooks/direct_messages/use_direct_message_candidates.d.ts +4 -0
  210. package/build/hooks/direct_messages/use_direct_message_candidates.d.ts.map +1 -0
  211. package/build/hooks/direct_messages/use_direct_message_conversation_validate.d.ts +11 -0
  212. package/build/hooks/direct_messages/use_direct_message_conversation_validate.d.ts.map +1 -0
  213. package/build/hooks/direct_messages/use_find_or_create_direct_message_conversation.d.ts +13 -0
  214. package/build/hooks/direct_messages/use_find_or_create_direct_message_conversation.d.ts.map +1 -0
  215. package/build/hooks/direct_messages/use_message_available_members.d.ts +6 -0
  216. package/build/hooks/direct_messages/use_message_available_members.d.ts.map +1 -0
  217. package/build/hooks/direct_messages/use_message_available_members_action.d.ts +6 -0
  218. package/build/hooks/direct_messages/use_message_available_members_action.d.ts.map +1 -0
  219. package/build/hooks/groups/use_group_chat_conversation_payload.d.ts +168 -0
  220. package/build/hooks/groups/use_group_chat_conversation_payload.d.ts.map +1 -0
  221. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +232 -0
  222. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -0
  223. package/build/hooks/groups/use_groups_conversation_create.d.ts +10 -0
  224. package/build/hooks/groups/use_groups_conversation_create.d.ts.map +1 -0
  225. package/build/hooks/index.d.ts +34 -0
  226. package/build/hooks/index.d.ts.map +1 -0
  227. package/build/hooks/index.js +1 -0
  228. package/build/hooks/index.js.map +1 -1
  229. package/build/hooks/paginator_meta.d.ts +4 -0
  230. package/build/hooks/paginator_meta.d.ts.map +1 -0
  231. package/build/hooks/services/use_find_or_create_services_conversation.d.ts +138 -0
  232. package/build/hooks/services/use_find_or_create_services_conversation.d.ts.map +1 -0
  233. package/build/hooks/services/use_services_chat_conversation_payload.d.ts +164 -0
  234. package/build/hooks/services/use_services_chat_conversation_payload.d.ts.map +1 -0
  235. package/build/hooks/services/use_services_team.d.ts +4 -0
  236. package/build/hooks/services/use_services_team.d.ts.map +1 -0
  237. package/build/hooks/services/use_team_members_for_new_conversation.d.ts +176 -0
  238. package/build/hooks/services/use_team_members_for_new_conversation.d.ts.map +1 -0
  239. package/build/hooks/services/use_team_plans.d.ts +17 -0
  240. package/build/hooks/services/use_team_plans.d.ts.map +1 -0
  241. package/build/hooks/use_animated_message_background_color.d.ts +9 -0
  242. package/build/hooks/use_animated_message_background_color.d.ts.map +1 -0
  243. package/build/hooks/use_api.d.ts +391 -0
  244. package/build/hooks/use_api.d.ts.map +1 -0
  245. package/build/hooks/use_api_client.d.ts +7 -0
  246. package/build/hooks/use_api_client.d.ts.map +1 -0
  247. package/build/hooks/use_app_name.d.ts +3 -0
  248. package/build/hooks/use_app_name.d.ts.map +1 -0
  249. package/build/hooks/use_app_state.d.ts +2 -0
  250. package/build/hooks/use_app_state.d.ts.map +1 -0
  251. package/build/hooks/use_async_storage.d.ts +4 -0
  252. package/build/hooks/use_async_storage.d.ts.map +1 -0
  253. package/build/hooks/use_at_font_scale_breakpoint.d.ts +2 -0
  254. package/build/hooks/use_at_font_scale_breakpoint.d.ts.map +1 -0
  255. package/build/hooks/use_attachment_uploader.d.ts +22 -0
  256. package/build/hooks/use_attachment_uploader.d.ts.map +1 -0
  257. package/build/hooks/use_broadcast_typing_status.d.ts +9 -0
  258. package/build/hooks/use_broadcast_typing_status.d.ts.map +1 -0
  259. package/build/hooks/use_can_browse_archived_conversations.d.ts +2 -0
  260. package/build/hooks/use_can_browse_archived_conversations.d.ts.map +1 -0
  261. package/build/hooks/use_chat_configuration.d.ts +7 -0
  262. package/build/hooks/use_chat_configuration.d.ts.map +1 -0
  263. package/build/hooks/use_chat_permissions.d.ts +190 -0
  264. package/build/hooks/use_chat_permissions.d.ts.map +1 -0
  265. package/build/hooks/use_clear_conversation_filters.d.ts +2 -0
  266. package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -0
  267. package/build/hooks/use_conversation.d.ts +275 -0
  268. package/build/hooks/use_conversation.d.ts.map +1 -0
  269. package/build/hooks/use_conversation_avatar_update.d.ts +27 -0
  270. package/build/hooks/use_conversation_avatar_update.d.ts.map +1 -0
  271. package/build/hooks/use_conversation_avatar_update.js +146 -48
  272. package/build/hooks/use_conversation_avatar_update.js.map +1 -1
  273. package/build/hooks/use_conversation_jolt_events.d.ts +6 -0
  274. package/build/hooks/use_conversation_jolt_events.d.ts.map +1 -0
  275. package/build/hooks/use_conversation_membership.d.ts +5 -0
  276. package/build/hooks/use_conversation_membership.d.ts.map +1 -0
  277. package/build/hooks/use_conversation_message.d.ts +12 -0
  278. package/build/hooks/use_conversation_message.d.ts.map +1 -0
  279. package/build/hooks/use_conversation_messages.d.ts +23 -0
  280. package/build/hooks/use_conversation_messages.d.ts.map +1 -0
  281. package/build/hooks/use_conversation_messages_jolt_events.d.ts +6 -0
  282. package/build/hooks/use_conversation_messages_jolt_events.d.ts.map +1 -0
  283. package/build/hooks/use_conversation_validate.d.ts +12 -0
  284. package/build/hooks/use_conversation_validate.d.ts.map +1 -0
  285. package/build/hooks/use_conversations.d.ts +12 -0
  286. package/build/hooks/use_conversations.d.ts.map +1 -0
  287. package/build/hooks/use_conversations_actions.d.ts +221 -0
  288. package/build/hooks/use_conversations_actions.d.ts.map +1 -0
  289. package/build/hooks/use_conversations_cache.d.ts +20 -0
  290. package/build/hooks/use_conversations_cache.d.ts.map +1 -0
  291. package/build/hooks/use_conversations_jolt_events.d.ts +2 -0
  292. package/build/hooks/use_conversations_jolt_events.d.ts.map +1 -0
  293. package/build/hooks/use_create_android_ripple_color.d.ts +4 -0
  294. package/build/hooks/use_create_android_ripple_color.d.ts.map +1 -0
  295. package/build/hooks/use_current_person.d.ts +18 -0
  296. package/build/hooks/use_current_person.d.ts.map +1 -0
  297. package/build/hooks/use_debounced_search_term.d.ts +2 -0
  298. package/build/hooks/use_debounced_search_term.d.ts.map +1 -0
  299. package/build/hooks/use_deleting_ids.d.ts +4 -0
  300. package/build/hooks/use_deleting_ids.d.ts.map +1 -0
  301. package/build/hooks/use_direct_message_eligibility.d.ts +14 -0
  302. package/build/hooks/use_direct_message_eligibility.d.ts.map +1 -0
  303. package/build/hooks/use_direct_messages_eligible.d.ts +2 -0
  304. package/build/hooks/use_direct_messages_eligible.d.ts.map +1 -0
  305. package/build/hooks/use_enrich_people.d.ts +13 -0
  306. package/build/hooks/use_enrich_people.d.ts.map +1 -0
  307. package/build/hooks/use_features.d.ts +38 -0
  308. package/build/hooks/use_features.d.ts.map +1 -0
  309. package/build/hooks/use_filter_dropdown_enabled.d.ts +2 -0
  310. package/build/hooks/use_filter_dropdown_enabled.d.ts.map +1 -0
  311. package/build/hooks/use_font_scale.d.ts +5 -0
  312. package/build/hooks/use_font_scale.d.ts.map +1 -0
  313. package/build/hooks/use_giphy.d.ts +9 -0
  314. package/build/hooks/use_giphy.d.ts.map +1 -0
  315. package/build/hooks/use_groups.d.ts +214 -0
  316. package/build/hooks/use_groups.d.ts.map +1 -0
  317. package/build/hooks/use_groups_groups.d.ts +208 -0
  318. package/build/hooks/use_groups_groups.d.ts.map +1 -0
  319. package/build/hooks/use_has_direct_messages.d.ts +2 -0
  320. package/build/hooks/use_has_direct_messages.d.ts.map +1 -0
  321. package/build/hooks/use_interaction_tinted_background_color.d.ts +2 -0
  322. package/build/hooks/use_interaction_tinted_background_color.d.ts.map +1 -0
  323. package/build/hooks/use_jolt.d.ts +11 -0
  324. package/build/hooks/use_jolt.d.ts.map +1 -0
  325. package/build/hooks/use_live_relative_time.d.ts +3 -0
  326. package/build/hooks/use_live_relative_time.d.ts.map +1 -0
  327. package/build/hooks/use_manual_archiving_enabled.d.ts +2 -0
  328. package/build/hooks/use_manual_archiving_enabled.d.ts.map +1 -0
  329. package/build/hooks/use_mark_latest_message_read.d.ts +9 -0
  330. package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -0
  331. package/build/hooks/use_message_create_or_update.d.ts +110 -0
  332. package/build/hooks/use_message_create_or_update.d.ts.map +1 -0
  333. package/build/hooks/use_message_draft.d.ts +13 -0
  334. package/build/hooks/use_message_draft.d.ts.map +1 -0
  335. package/build/hooks/use_message_reaction_toggle.d.ts +21 -0
  336. package/build/hooks/use_message_reaction_toggle.d.ts.map +1 -0
  337. package/build/hooks/use_my_gender.d.ts +7 -0
  338. package/build/hooks/use_my_gender.d.ts.map +1 -0
  339. package/build/hooks/use_new_conversation_entry.d.ts +8 -0
  340. package/build/hooks/use_new_conversation_entry.d.ts.map +1 -0
  341. package/build/hooks/use_new_conversation_from_filter.d.ts +12 -0
  342. package/build/hooks/use_new_conversation_from_filter.d.ts.map +1 -0
  343. package/build/hooks/use_organization.d.ts +39 -0
  344. package/build/hooks/use_organization.d.ts.map +1 -0
  345. package/build/hooks/use_people_person.d.ts +18 -0
  346. package/build/hooks/use_people_person.d.ts.map +1 -0
  347. package/build/hooks/use_person_settings.d.ts +6 -0
  348. package/build/hooks/use_person_settings.d.ts.map +1 -0
  349. package/build/hooks/use_preview_avatar_diameter.d.ts +2 -0
  350. package/build/hooks/use_preview_avatar_diameter.d.ts.map +1 -0
  351. package/build/hooks/use_product_analytics.d.ts +24 -0
  352. package/build/hooks/use_product_analytics.d.ts.map +1 -0
  353. package/build/hooks/use_qualified_by_age.d.ts +2 -0
  354. package/build/hooks/use_qualified_by_age.d.ts.map +1 -0
  355. package/build/hooks/use_read_receipts.d.ts +40 -0
  356. package/build/hooks/use_read_receipts.d.ts.map +1 -0
  357. package/build/hooks/use_reduce_motion.d.ts +2 -0
  358. package/build/hooks/use_reduce_motion.d.ts.map +1 -0
  359. package/build/hooks/use_report_bug_action.d.ts +6 -0
  360. package/build/hooks/use_report_bug_action.d.ts.map +1 -0
  361. package/build/hooks/use_report_message.d.ts +6 -0
  362. package/build/hooks/use_report_message.d.ts.map +1 -0
  363. package/build/hooks/use_rest_away_from_dismiss_edge.d.ts +19 -0
  364. package/build/hooks/use_rest_away_from_dismiss_edge.d.ts.map +1 -0
  365. package/build/hooks/use_scalable_number_of_lines.d.ts +2 -0
  366. package/build/hooks/use_scalable_number_of_lines.d.ts.map +1 -0
  367. package/build/hooks/use_search_enabled.d.ts +2 -0
  368. package/build/hooks/use_search_enabled.d.ts.map +1 -0
  369. package/build/hooks/use_search_results.d.ts +19 -0
  370. package/build/hooks/use_search_results.d.ts.map +1 -0
  371. package/build/hooks/use_selected_chip_background_color.d.ts +2 -0
  372. package/build/hooks/use_selected_chip_background_color.d.ts.map +1 -0
  373. package/build/hooks/use_storage.d.ts +9 -0
  374. package/build/hooks/use_storage.d.ts.map +1 -0
  375. package/build/hooks/use_submit_age_check.d.ts +78 -0
  376. package/build/hooks/use_submit_age_check.d.ts.map +1 -0
  377. package/build/hooks/use_suspense_api.d.ts +86 -0
  378. package/build/hooks/use_suspense_api.d.ts.map +1 -0
  379. package/build/hooks/use_system_message_people.d.ts +14 -0
  380. package/build/hooks/use_system_message_people.d.ts.map +1 -0
  381. package/build/hooks/use_system_message_people.js +101 -0
  382. package/build/hooks/use_system_message_people.js.map +1 -0
  383. package/build/hooks/use_teams.d.ts +207 -0
  384. package/build/hooks/use_teams.d.ts.map +1 -0
  385. package/build/hooks/use_theme.d.ts +3 -0
  386. package/build/hooks/use_theme.d.ts.map +1 -0
  387. package/build/hooks/use_typing_indicators.d.ts +13 -0
  388. package/build/hooks/use_typing_indicators.d.ts.map +1 -0
  389. package/build/hooks/use_typing_status_cache.d.ts +14 -0
  390. package/build/hooks/use_typing_status_cache.d.ts.map +1 -0
  391. package/build/hooks/use_unarchive_conversation_action.d.ts +7 -0
  392. package/build/hooks/use_unarchive_conversation_action.d.ts.map +1 -0
  393. package/build/hooks/use_upload_client.d.ts +32 -0
  394. package/build/hooks/use_upload_client.d.ts.map +1 -0
  395. package/build/hooks/use_video_moderation_jolt_events.d.ts +4 -0
  396. package/build/hooks/use_video_moderation_jolt_events.d.ts.map +1 -0
  397. package/build/icons/font_awesome.d.ts +2 -0
  398. package/build/icons/font_awesome.d.ts.map +1 -0
  399. package/build/index.d.ts +20 -0
  400. package/build/index.d.ts.map +1 -0
  401. package/build/jest.d.ts +18 -0
  402. package/build/jest.d.ts.map +1 -0
  403. package/build/navigation/chat_access_gate.d.ts +3 -0
  404. package/build/navigation/chat_access_gate.d.ts.map +1 -0
  405. package/build/navigation/index.d.ts +392 -0
  406. package/build/navigation/index.d.ts.map +1 -0
  407. package/build/navigation/index.js +3 -1
  408. package/build/navigation/index.js.map +1 -1
  409. package/build/navigation/page_error_fallbacks.d.ts +7 -0
  410. package/build/navigation/page_error_fallbacks.d.ts.map +1 -0
  411. package/build/navigation/page_error_fallbacks.js +7 -0
  412. package/build/navigation/page_error_fallbacks.js.map +1 -0
  413. package/build/navigation/screenLayout.d.ts +8 -0
  414. package/build/navigation/screenLayout.d.ts.map +1 -0
  415. package/build/navigation/screenLayout.js +10 -6
  416. package/build/navigation/screenLayout.js.map +1 -1
  417. package/build/polyfills/events/CustomEvent.d.ts +21 -0
  418. package/build/polyfills/events/CustomEvent.d.ts.map +1 -0
  419. package/build/polyfills/events/Event.d.ts +45 -0
  420. package/build/polyfills/events/Event.d.ts.map +1 -0
  421. package/build/polyfills/events/EventHandlerAttributes.d.ts +8 -0
  422. package/build/polyfills/events/EventHandlerAttributes.d.ts.map +1 -0
  423. package/build/polyfills/events/EventTarget.d.ts +30 -0
  424. package/build/polyfills/events/EventTarget.d.ts.map +1 -0
  425. package/build/polyfills/events/internals/EventInternals.d.ts +30 -0
  426. package/build/polyfills/events/internals/EventInternals.d.ts.map +1 -0
  427. package/build/polyfills/events/internals/EventTargetInternals.d.ts +9 -0
  428. package/build/polyfills/events/internals/EventTargetInternals.d.ts.map +1 -0
  429. package/build/polyfills/webidl/PlatformObjects.d.ts +31 -0
  430. package/build/polyfills/webidl/PlatformObjects.d.ts.map +1 -0
  431. package/build/screens/age_check/age_check_required_screen.d.ts +2 -0
  432. package/build/screens/age_check/age_check_required_screen.d.ts.map +1 -0
  433. package/build/screens/age_check/age_check_required_screen.js +1 -0
  434. package/build/screens/age_check/age_check_required_screen.js.map +1 -1
  435. package/build/screens/age_check/age_check_underage_screen.d.ts +5 -0
  436. package/build/screens/age_check/age_check_underage_screen.d.ts.map +1 -0
  437. package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts +10 -0
  438. package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts.map +1 -0
  439. package/build/screens/age_check/index.d.ts +3 -0
  440. package/build/screens/age_check/index.d.ts.map +1 -0
  441. package/build/screens/age_check/screen_props.d.ts +5 -0
  442. package/build/screens/age_check/screen_props.d.ts.map +1 -0
  443. package/build/screens/attachment_actions/attachment_actions_screen.d.ts +12 -0
  444. package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -0
  445. package/build/screens/attachment_actions/hooks/useDeleteAttachment.d.ts +10 -0
  446. package/build/screens/attachment_actions/hooks/useDeleteAttachment.d.ts.map +1 -0
  447. package/build/screens/avatar_picker/avatar_picker_screen.d.ts +11 -0
  448. package/build/screens/avatar_picker/avatar_picker_screen.d.ts.map +1 -0
  449. package/build/screens/avatar_picker/avatar_picker_screen.js +76 -66
  450. package/build/screens/avatar_picker/avatar_picker_screen.js.map +1 -1
  451. package/build/screens/avatar_picker/avatar_picker_state.d.ts +38 -0
  452. package/build/screens/avatar_picker/avatar_picker_state.d.ts.map +1 -0
  453. package/build/screens/avatar_picker/avatar_preview.d.ts +9 -0
  454. package/build/screens/avatar_picker/avatar_preview.d.ts.map +1 -0
  455. package/build/screens/avatar_picker/color_picker.d.ts +8 -0
  456. package/build/screens/avatar_picker/color_picker.d.ts.map +1 -0
  457. package/build/screens/avatar_picker/constants.d.ts +3 -0
  458. package/build/screens/avatar_picker/constants.d.ts.map +1 -0
  459. package/build/screens/avatar_picker/emoji_tab.d.ts +6 -0
  460. package/build/screens/avatar_picker/emoji_tab.d.ts.map +1 -0
  461. package/build/screens/avatar_picker/icon_grid.d.ts +7 -0
  462. package/build/screens/avatar_picker/icon_grid.d.ts.map +1 -0
  463. package/build/screens/avatar_picker/upload_tab.d.ts +8 -0
  464. package/build/screens/avatar_picker/upload_tab.d.ts.map +1 -0
  465. package/build/screens/bug_report_screen.d.ts +4 -0
  466. package/build/screens/bug_report_screen.d.ts.map +1 -0
  467. package/build/screens/conversation/message_read_receipts_screen.d.ts +8 -0
  468. package/build/screens/conversation/message_read_receipts_screen.d.ts.map +1 -0
  469. package/build/screens/conversation_details_screen.d.ts +6 -0
  470. package/build/screens/conversation_details_screen.d.ts.map +1 -0
  471. package/build/screens/conversation_details_screen.js +1 -0
  472. package/build/screens/conversation_details_screen.js.map +1 -1
  473. package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +11 -0
  474. package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -0
  475. package/build/screens/conversation_filter_recipients/components/header_row.d.ts +11 -0
  476. package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +1 -0
  477. package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts +4 -0
  478. package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +1 -0
  479. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts +10 -0
  480. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts.map +1 -0
  481. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts +176 -0
  482. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts.map +1 -0
  483. package/build/screens/conversation_filter_recipients/types.d.ts +48 -0
  484. package/build/screens/conversation_filter_recipients/types.d.ts.map +1 -0
  485. package/build/screens/conversation_filters/components/conversation_filters.d.ts +2 -0
  486. package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -0
  487. package/build/screens/conversation_filters/components/rows.d.ts +42 -0
  488. package/build/screens/conversation_filters/components/rows.d.ts.map +1 -0
  489. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts +27 -0
  490. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -0
  491. package/build/screens/conversation_filters/filter_types.d.ts +9 -0
  492. package/build/screens/conversation_filters/filter_types.d.ts.map +1 -0
  493. package/build/screens/conversation_filters/group_filters.d.ts +5 -0
  494. package/build/screens/conversation_filters/group_filters.d.ts.map +1 -0
  495. package/build/screens/conversation_filters/hooks/filters.d.ts +415 -0
  496. package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -0
  497. package/build/screens/conversation_filters/screen_props.d.ts +16 -0
  498. package/build/screens/conversation_filters/screen_props.d.ts.map +1 -0
  499. package/build/screens/conversation_filters/team_filters.d.ts +5 -0
  500. package/build/screens/conversation_filters/team_filters.d.ts.map +1 -0
  501. package/build/screens/conversation_filters_screen.d.ts +5 -0
  502. package/build/screens/conversation_filters_screen.d.ts.map +1 -0
  503. package/build/screens/conversation_new/components/avatar_selection_row.d.ts +11 -0
  504. package/build/screens/conversation_new/components/avatar_selection_row.d.ts.map +1 -0
  505. package/build/screens/conversation_new/components/filter_by_plan.d.ts +22 -0
  506. package/build/screens/conversation_new/components/filter_by_plan.d.ts.map +1 -0
  507. package/build/screens/conversation_new/components/form_list.d.ts +13 -0
  508. package/build/screens/conversation_new/components/form_list.d.ts.map +1 -0
  509. package/build/screens/conversation_new/components/form_list.js +1 -0
  510. package/build/screens/conversation_new/components/form_list.js.map +1 -1
  511. package/build/screens/conversation_new/components/gender_filter_toggle.d.ts +9 -0
  512. package/build/screens/conversation_new/components/gender_filter_toggle.d.ts.map +1 -0
  513. package/build/screens/conversation_new/components/groups_form.d.ts +10 -0
  514. package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -0
  515. package/build/screens/conversation_new/components/services_form.d.ts +11 -0
  516. package/build/screens/conversation_new/components/services_form.d.ts.map +1 -0
  517. package/build/screens/conversation_new/components/source_app_error_card.d.ts +2 -0
  518. package/build/screens/conversation_new/components/source_app_error_card.d.ts.map +1 -0
  519. package/build/screens/conversation_new/conversation_new_screen.d.ts +18 -0
  520. package/build/screens/conversation_new/conversation_new_screen.d.ts.map +1 -0
  521. package/build/screens/conversation_notification_level_select_screen.d.ts +7 -0
  522. package/build/screens/conversation_notification_level_select_screen.d.ts.map +1 -0
  523. package/build/screens/conversation_screen.d.ts +28 -0
  524. package/build/screens/conversation_screen.d.ts.map +1 -0
  525. package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts +8 -0
  526. package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts.map +1 -0
  527. package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts +11 -0
  528. package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts.map +1 -0
  529. package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts +7 -0
  530. package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts.map +1 -0
  531. package/build/screens/conversation_select_recipients/components/results_heading.d.ts +6 -0
  532. package/build/screens/conversation_select_recipients/components/results_heading.d.ts.map +1 -0
  533. package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts +8 -0
  534. package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts.map +1 -0
  535. package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts +8 -0
  536. package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts.map +1 -0
  537. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts +3 -0
  538. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts.map +1 -0
  539. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +1 -0
  540. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js.map +1 -1
  541. package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts +3 -0
  542. package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +1 -0
  543. package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js +332 -291
  544. package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js.map +1 -1
  545. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts +3 -0
  546. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts.map +1 -0
  547. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js +1 -0
  548. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js.map +1 -1
  549. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts +3 -0
  550. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts.map +1 -0
  551. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js +1 -0
  552. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js.map +1 -1
  553. package/build/screens/conversation_select_recipients/types/screen_props.d.ts +11 -0
  554. package/build/screens/conversation_select_recipients/types/screen_props.d.ts.map +1 -0
  555. package/build/screens/conversation_select_type_screen.d.ts +12 -0
  556. package/build/screens/conversation_select_type_screen.d.ts.map +1 -0
  557. package/build/screens/conversations/components/chat_group_badge.d.ts +4 -0
  558. package/build/screens/conversations/components/chat_group_badge.d.ts.map +1 -0
  559. package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts +2 -0
  560. package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -0
  561. package/build/screens/conversations/components/list_header_action_button.d.ts +19 -0
  562. package/build/screens/conversations/components/list_header_action_button.d.ts.map +1 -0
  563. package/build/screens/conversations/components/list_header_component.d.ts +2 -0
  564. package/build/screens/conversations/components/list_header_component.d.ts.map +1 -0
  565. package/build/screens/conversations/components/search_list_header_component.d.ts +2 -0
  566. package/build/screens/conversations/components/search_list_header_component.d.ts.map +1 -0
  567. package/build/screens/conversations/conversations_screen.d.ts +13 -0
  568. package/build/screens/conversations/conversations_screen.d.ts.map +1 -0
  569. package/build/screens/design_system_screen.d.ts +2 -0
  570. package/build/screens/design_system_screen.d.ts.map +1 -0
  571. package/build/screens/get_help_screen.d.ts +10 -0
  572. package/build/screens/get_help_screen.d.ts.map +1 -0
  573. package/build/screens/get_help_screen.js +56 -62
  574. package/build/screens/get_help_screen.js.map +1 -1
  575. package/build/screens/group_notification_level_select_screen.d.ts +7 -0
  576. package/build/screens/group_notification_level_select_screen.d.ts.map +1 -0
  577. package/build/screens/group_notification_settings_screen.d.ts +7 -0
  578. package/build/screens/group_notification_settings_screen.d.ts.map +1 -0
  579. package/build/screens/group_notification_settings_screen.js +3 -2
  580. package/build/screens/group_notification_settings_screen.js.map +1 -1
  581. package/build/screens/index.d.ts +25 -0
  582. package/build/screens/index.d.ts.map +1 -0
  583. package/build/screens/message_actions_screen.d.ts +12 -0
  584. package/build/screens/message_actions_screen.d.ts.map +1 -0
  585. package/build/screens/message_report/components/message_preview.d.ts +9 -0
  586. package/build/screens/message_report/components/message_preview.d.ts.map +1 -0
  587. package/build/screens/message_report/components/report_reason_list.d.ts +8 -0
  588. package/build/screens/message_report/components/report_reason_list.d.ts.map +1 -0
  589. package/build/screens/message_report_screen.d.ts +9 -0
  590. package/build/screens/message_report_screen.d.ts.map +1 -0
  591. package/build/screens/not_found.d.ts +2 -0
  592. package/build/screens/not_found.d.ts.map +1 -0
  593. package/build/screens/notification_settings/hooks/groups.d.ts +96 -0
  594. package/build/screens/notification_settings/hooks/groups.d.ts.map +1 -0
  595. package/build/screens/notification_settings_screen.d.ts +4 -0
  596. package/build/screens/notification_settings_screen.d.ts.map +1 -0
  597. package/build/screens/notification_settings_screen.js +1 -0
  598. package/build/screens/notification_settings_screen.js.map +1 -1
  599. package/build/screens/preferred_app/hooks/use_chat_types.d.ts +39 -0
  600. package/build/screens/preferred_app/hooks/use_chat_types.d.ts.map +1 -0
  601. package/build/screens/preferred_app_selection_screen.d.ts +9 -0
  602. package/build/screens/preferred_app_selection_screen.d.ts.map +1 -0
  603. package/build/screens/preferred_app_selection_screen.js +45 -39
  604. package/build/screens/preferred_app_selection_screen.js.map +1 -1
  605. package/build/screens/reactions_screen.d.ts +9 -0
  606. package/build/screens/reactions_screen.d.ts.map +1 -0
  607. package/build/screens/search/components/conversation_result_row.d.ts +8 -0
  608. package/build/screens/search/components/conversation_result_row.d.ts.map +1 -0
  609. package/build/screens/search/components/conversation_results.d.ts +8 -0
  610. package/build/screens/search/components/conversation_results.d.ts.map +1 -0
  611. package/build/screens/search/components/message_result_row.d.ts +8 -0
  612. package/build/screens/search/components/message_result_row.d.ts.map +1 -0
  613. package/build/screens/search/components/result_row.d.ts +10 -0
  614. package/build/screens/search/components/result_row.d.ts.map +1 -0
  615. package/build/screens/search/components/results_section.d.ts +9 -0
  616. package/build/screens/search/components/results_section.d.ts.map +1 -0
  617. package/build/screens/search/components/search_blank_states.d.ts +7 -0
  618. package/build/screens/search/components/search_blank_states.d.ts.map +1 -0
  619. package/build/screens/search/components/search_field.d.ts +7 -0
  620. package/build/screens/search/components/search_field.d.ts.map +1 -0
  621. package/build/screens/search/components/search_results_list.d.ts +16 -0
  622. package/build/screens/search/components/search_results_list.d.ts.map +1 -0
  623. package/build/screens/search/components/search_results_list.js +136 -110
  624. package/build/screens/search/components/search_results_list.js.map +1 -1
  625. package/build/screens/search/components/snippet.d.ts +8 -0
  626. package/build/screens/search/components/snippet.d.ts.map +1 -0
  627. package/build/screens/search/search_screen.d.ts +5 -0
  628. package/build/screens/search/search_screen.d.ts.map +1 -0
  629. package/build/screens/search/search_screen.js +21 -28
  630. package/build/screens/search/search_screen.js.map +1 -1
  631. package/build/screens/send_giphy_screen.d.ts +9 -0
  632. package/build/screens/send_giphy_screen.d.ts.map +1 -0
  633. package/build/screens/settings_screen.d.ts +4 -0
  634. package/build/screens/settings_screen.d.ts.map +1 -0
  635. package/build/screens/settings_screen.js +7 -6
  636. package/build/screens/settings_screen.js.map +1 -1
  637. package/build/screens/system_message_people_screen.d.ts +8 -0
  638. package/build/screens/system_message_people_screen.d.ts.map +1 -0
  639. package/build/screens/system_message_people_screen.js +33 -96
  640. package/build/screens/system_message_people_screen.js.map +1 -1
  641. package/build/screens/team_conversation_screen.d.ts +8 -0
  642. package/build/screens/team_conversation_screen.d.ts.map +1 -0
  643. package/build/types/api_primitives.d.ts +45 -0
  644. package/build/types/api_primitives.d.ts.map +1 -0
  645. package/build/types/index.d.ts +4 -0
  646. package/build/types/index.d.ts.map +1 -0
  647. package/build/types/jolt_events/attachment_events.d.ts +14 -0
  648. package/build/types/jolt_events/attachment_events.d.ts.map +1 -0
  649. package/build/types/jolt_events/conversation_events.d.ts +42 -0
  650. package/build/types/jolt_events/conversation_events.d.ts.map +1 -0
  651. package/build/types/jolt_events/index.d.ts +14 -0
  652. package/build/types/jolt_events/index.d.ts.map +1 -0
  653. package/build/types/jolt_events/message_events.d.ts +44 -0
  654. package/build/types/jolt_events/message_events.d.ts.map +1 -0
  655. package/build/types/jolt_events/reaction_events.d.ts +27 -0
  656. package/build/types/jolt_events/reaction_events.d.ts.map +1 -0
  657. package/build/types/jolt_events/typing_events.d.ts +16 -0
  658. package/build/types/jolt_events/typing_events.d.ts.map +1 -0
  659. package/build/types/product_analytics.d.ts +6 -0
  660. package/build/types/product_analytics.d.ts.map +1 -0
  661. package/build/types/resources/analytics_metadata.d.ts +5 -0
  662. package/build/types/resources/analytics_metadata.d.ts.map +1 -0
  663. package/build/types/resources/app_grant.d.ts +8 -0
  664. package/build/types/resources/app_grant.d.ts.map +1 -0
  665. package/build/types/resources/app_name.d.ts +2 -0
  666. package/build/types/resources/app_name.d.ts.map +1 -0
  667. package/build/types/resources/chat_configuration_resource.d.ts +9 -0
  668. package/build/types/resources/chat_configuration_resource.d.ts.map +1 -0
  669. package/build/types/resources/conversation.d.ts +48 -0
  670. package/build/types/resources/conversation.d.ts.map +1 -0
  671. package/build/types/resources/conversation_badge.d.ts +12 -0
  672. package/build/types/resources/conversation_badge.d.ts.map +1 -0
  673. package/build/types/resources/conversation_membership.d.ts +16 -0
  674. package/build/types/resources/conversation_membership.d.ts.map +1 -0
  675. package/build/types/resources/conversation_validate.d.ts +10 -0
  676. package/build/types/resources/conversation_validate.d.ts.map +1 -0
  677. package/build/types/resources/denormalized_attachment_resource.d.ts +65 -0
  678. package/build/types/resources/denormalized_attachment_resource.d.ts.map +1 -0
  679. package/build/types/resources/denormalized_attachment_resource_for_create.d.ts +53 -0
  680. package/build/types/resources/denormalized_attachment_resource_for_create.d.ts.map +1 -0
  681. package/build/types/resources/direct_message_affiliations.d.ts +9 -0
  682. package/build/types/resources/direct_message_affiliations.d.ts.map +1 -0
  683. package/build/types/resources/direct_message_candidate.d.ts +13 -0
  684. package/build/types/resources/direct_message_candidate.d.ts.map +1 -0
  685. package/build/types/resources/feature_resource.d.ts +7 -0
  686. package/build/types/resources/feature_resource.d.ts.map +1 -0
  687. package/build/types/resources/group_membership.d.ts +13 -0
  688. package/build/types/resources/group_membership.d.ts.map +1 -0
  689. package/build/types/resources/group_resource.d.ts +18 -0
  690. package/build/types/resources/group_resource.d.ts.map +1 -0
  691. package/build/types/resources/groups/groups_group_resource.d.ts +15 -0
  692. package/build/types/resources/groups/groups_group_resource.d.ts.map +1 -0
  693. package/build/types/resources/groups/groups_member_resource_with_person.d.ts +15 -0
  694. package/build/types/resources/groups/groups_member_resource_with_person.d.ts.map +1 -0
  695. package/build/types/resources/groups/index.d.ts +2 -0
  696. package/build/types/resources/groups/index.d.ts.map +1 -0
  697. package/build/types/resources/index.d.ts +18 -0
  698. package/build/types/resources/index.d.ts.map +1 -0
  699. package/build/types/resources/member.d.ts +16 -0
  700. package/build/types/resources/member.d.ts.map +1 -0
  701. package/build/types/resources/member_ability.d.ts +12 -0
  702. package/build/types/resources/member_ability.d.ts.map +1 -0
  703. package/build/types/resources/message.d.ts +44 -0
  704. package/build/types/resources/message.d.ts.map +1 -0
  705. package/build/types/resources/message_report.d.ts +19 -0
  706. package/build/types/resources/message_report.d.ts.map +1 -0
  707. package/build/types/resources/oauth_token.d.ts +9 -0
  708. package/build/types/resources/oauth_token.d.ts.map +1 -0
  709. package/build/types/resources/organization.d.ts +8 -0
  710. package/build/types/resources/organization.d.ts.map +1 -0
  711. package/build/types/resources/person.d.ts +24 -0
  712. package/build/types/resources/person.d.ts.map +1 -0
  713. package/build/types/resources/reaction.d.ts +10 -0
  714. package/build/types/resources/reaction.d.ts.map +1 -0
  715. package/build/types/resources/read_receipt.d.ts +7 -0
  716. package/build/types/resources/read_receipt.d.ts.map +1 -0
  717. package/build/types/resources/search_result.d.ts +29 -0
  718. package/build/types/resources/search_result.d.ts.map +1 -0
  719. package/build/types/resources/services/chat_resource.d.ts +53 -0
  720. package/build/types/resources/services/chat_resource.d.ts.map +1 -0
  721. package/build/types/resources/services/index.d.ts +3 -0
  722. package/build/types/resources/services/index.d.ts.map +1 -0
  723. package/build/types/resources/services/team_resource.d.ts +19 -0
  724. package/build/types/resources/services/team_resource.d.ts.map +1 -0
  725. package/build/types/utils/index.d.ts +5 -0
  726. package/build/types/utils/index.d.ts.map +1 -0
  727. package/build/utils/archived_conversation.d.ts +5 -0
  728. package/build/utils/archived_conversation.d.ts.map +1 -0
  729. package/build/utils/assert_keys_are_numbers.d.ts +2 -0
  730. package/build/utils/assert_keys_are_numbers.d.ts.map +1 -0
  731. package/build/utils/attachment_kind.d.ts +5 -0
  732. package/build/utils/attachment_kind.d.ts.map +1 -0
  733. package/build/utils/auth_events.d.ts +7 -0
  734. package/build/utils/auth_events.d.ts.map +1 -0
  735. package/build/utils/cache/index.d.ts +2 -0
  736. package/build/utils/cache/index.d.ts.map +1 -0
  737. package/build/utils/cache/messages_cache.d.ts +13 -0
  738. package/build/utils/cache/messages_cache.d.ts.map +1 -0
  739. package/build/utils/cache/messages_window.d.ts +11 -0
  740. package/build/utils/cache/messages_window.d.ts.map +1 -0
  741. package/build/utils/cache/optimistically_create_message.d.ts +12 -0
  742. package/build/utils/cache/optimistically_create_message.d.ts.map +1 -0
  743. package/build/utils/cache/optimistically_update_message.d.ts +8 -0
  744. package/build/utils/cache/optimistically_update_message.d.ts.map +1 -0
  745. package/build/utils/cache/page_mutations.d.ts +96 -0
  746. package/build/utils/cache/page_mutations.d.ts.map +1 -0
  747. package/build/utils/can_submit_message.d.ts +10 -0
  748. package/build/utils/can_submit_message.d.ts.map +1 -0
  749. package/build/utils/chat_type_label.d.ts +2 -0
  750. package/build/utils/chat_type_label.d.ts.map +1 -0
  751. package/build/utils/client/client.d.ts +30 -0
  752. package/build/utils/client/client.d.ts.map +1 -0
  753. package/build/utils/client/index.d.ts +3 -0
  754. package/build/utils/client/index.d.ts.map +1 -0
  755. package/build/utils/client/instrumented_fetch.d.ts +2 -0
  756. package/build/utils/client/instrumented_fetch.d.ts.map +1 -0
  757. package/build/utils/client/request_helpers.d.ts +28 -0
  758. package/build/utils/client/request_helpers.d.ts.map +1 -0
  759. package/build/utils/client/transform_request_data.d.ts +13 -0
  760. package/build/utils/client/transform_request_data.d.ts.map +1 -0
  761. package/build/utils/client/transform_response.d.ts +3 -0
  762. package/build/utils/client/transform_response.d.ts.map +1 -0
  763. package/build/utils/client/types.d.ts +62 -0
  764. package/build/utils/client/types.d.ts.map +1 -0
  765. package/build/utils/client/utils.d.ts +5 -0
  766. package/build/utils/client/utils.d.ts.map +1 -0
  767. package/build/utils/conversation_safety_constants.d.ts +2 -0
  768. package/build/utils/conversation_safety_constants.d.ts.map +1 -0
  769. package/build/utils/convert_attachments_for_create.d.ts +12 -0
  770. package/build/utils/convert_attachments_for_create.d.ts.map +1 -0
  771. package/build/utils/date.d.ts +11 -0
  772. package/build/utils/date.d.ts.map +1 -0
  773. package/build/utils/dayjs.d.ts +3 -0
  774. package/build/utils/dayjs.d.ts.map +1 -0
  775. package/build/utils/deepCamelCaseKeys.d.ts +4 -0
  776. package/build/utils/deepCamelCaseKeys.d.ts.map +1 -0
  777. package/build/utils/deep_snake_case_keys.d.ts +4 -0
  778. package/build/utils/deep_snake_case_keys.d.ts.map +1 -0
  779. package/build/utils/destructure_chat_group_graph_id.d.ts +10 -0
  780. package/build/utils/destructure_chat_group_graph_id.d.ts.map +1 -0
  781. package/build/utils/gender_display_label.d.ts +2 -0
  782. package/build/utils/gender_display_label.d.ts.map +1 -0
  783. package/build/utils/generate_placeholder_ulid.d.ts +10 -0
  784. package/build/utils/generate_placeholder_ulid.d.ts.map +1 -0
  785. package/build/utils/group_messages.d.ts +22 -0
  786. package/build/utils/group_messages.d.ts.map +1 -0
  787. package/build/utils/host_bridge.d.ts +20 -0
  788. package/build/utils/host_bridge.d.ts.map +1 -0
  789. package/build/utils/index.d.ts +21 -0
  790. package/build/utils/index.d.ts.map +1 -0
  791. package/build/utils/is_input_editable.d.ts +6 -0
  792. package/build/utils/is_input_editable.d.ts.map +1 -0
  793. package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts +7 -0
  794. package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts.map +1 -0
  795. package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts +12 -0
  796. package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts.map +1 -0
  797. package/build/utils/liquid_glass.d.ts +3 -0
  798. package/build/utils/liquid_glass.d.ts.map +1 -0
  799. package/build/utils/membership_sync_info_text.d.ts +2 -0
  800. package/build/utils/membership_sync_info_text.d.ts.map +1 -0
  801. package/build/utils/message_text.d.ts +3 -0
  802. package/build/utils/message_text.d.ts.map +1 -0
  803. package/build/utils/native_adapters/audio.d.ts +14 -0
  804. package/build/utils/native_adapters/audio.d.ts.map +1 -0
  805. package/build/utils/native_adapters/clipboard.d.ts +6 -0
  806. package/build/utils/native_adapters/clipboard.d.ts.map +1 -0
  807. package/build/utils/native_adapters/configuration.d.ts +36 -0
  808. package/build/utils/native_adapters/configuration.d.ts.map +1 -0
  809. package/build/utils/native_adapters/document_picker.d.ts +28 -0
  810. package/build/utils/native_adapters/document_picker.d.ts.map +1 -0
  811. package/build/utils/native_adapters/haptic.d.ts +23 -0
  812. package/build/utils/native_adapters/haptic.d.ts.map +1 -0
  813. package/build/utils/native_adapters/image_picker.d.ts +31 -0
  814. package/build/utils/native_adapters/image_picker.d.ts.map +1 -0
  815. package/build/utils/native_adapters/index.d.ts +12 -0
  816. package/build/utils/native_adapters/index.d.ts.map +1 -0
  817. package/build/utils/native_adapters/linking.d.ts +15 -0
  818. package/build/utils/native_adapters/linking.d.ts.map +1 -0
  819. package/build/utils/native_adapters/log.d.ts +26 -0
  820. package/build/utils/native_adapters/log.d.ts.map +1 -0
  821. package/build/utils/native_adapters/menu.d.ts +40 -0
  822. package/build/utils/native_adapters/menu.d.ts.map +1 -0
  823. package/build/utils/native_adapters/storage_adapter.d.ts +17 -0
  824. package/build/utils/native_adapters/storage_adapter.d.ts.map +1 -0
  825. package/build/utils/native_adapters/video.d.ts +22 -0
  826. package/build/utils/native_adapters/video.d.ts.map +1 -0
  827. package/build/utils/package_version.d.ts +2 -0
  828. package/build/utils/package_version.d.ts.map +1 -0
  829. package/build/utils/parse_simple_markdown.d.ts +7 -0
  830. package/build/utils/parse_simple_markdown.d.ts.map +1 -0
  831. package/build/utils/performance_tracking.d.ts +26 -0
  832. package/build/utils/performance_tracking.d.ts.map +1 -0
  833. package/build/utils/pluralize.d.ts +2 -0
  834. package/build/utils/pluralize.d.ts.map +1 -0
  835. package/build/utils/reaction_constants.d.ts +3 -0
  836. package/build/utils/reaction_constants.d.ts.map +1 -0
  837. package/build/utils/replace_equal_by_id.d.ts +6 -0
  838. package/build/utils/replace_equal_by_id.d.ts.map +1 -0
  839. package/build/utils/request/conversation.d.ts +12 -0
  840. package/build/utils/request/conversation.d.ts.map +1 -0
  841. package/build/utils/request/get_chat_configuration.d.ts +10 -0
  842. package/build/utils/request/get_chat_configuration.d.ts.map +1 -0
  843. package/build/utils/request/get_features.d.ts +17 -0
  844. package/build/utils/request/get_features.d.ts.map +1 -0
  845. package/build/utils/request/get_message.d.ts +20 -0
  846. package/build/utils/request/get_message.d.ts.map +1 -0
  847. package/build/utils/request/get_messages.d.ts +21 -0
  848. package/build/utils/request/get_messages.d.ts.map +1 -0
  849. package/build/utils/request/get_search_results.d.ts +13 -0
  850. package/build/utils/request/get_search_results.d.ts.map +1 -0
  851. package/build/utils/request/messages_data_options.d.ts +7 -0
  852. package/build/utils/request/messages_data_options.d.ts.map +1 -0
  853. package/build/utils/response_error.d.ts +11 -0
  854. package/build/utils/response_error.d.ts.map +1 -0
  855. package/build/utils/session.d.ts +38 -0
  856. package/build/utils/session.d.ts.map +1 -0
  857. package/build/utils/session_manager.d.ts +21 -0
  858. package/build/utils/session_manager.d.ts.map +1 -0
  859. package/build/utils/sha_256.d.ts +31 -0
  860. package/build/utils/sha_256.d.ts.map +1 -0
  861. package/build/utils/styles.d.ts +11 -0
  862. package/build/utils/styles.d.ts.map +1 -0
  863. package/build/utils/system_messages.d.ts +17 -0
  864. package/build/utils/system_messages.d.ts.map +1 -0
  865. package/build/utils/theme.d.ts +88 -0
  866. package/build/utils/theme.d.ts.map +1 -0
  867. package/build/utils/time.d.ts +9 -0
  868. package/build/utils/time.d.ts.map +1 -0
  869. package/build/utils/upload_uri.d.ts +24 -0
  870. package/build/utils/upload_uri.d.ts.map +1 -0
  871. package/build/utils/uri.d.ts +29 -0
  872. package/build/utils/uri.d.ts.map +1 -0
  873. package/build/vendor/font_awesome_pro_solid_icons.d.ts +53 -0
  874. package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -0
  875. package/build/vendor/tapestry/alias_tokens_color_map.d.ts +89 -0
  876. package/build/vendor/tapestry/alias_tokens_color_map.d.ts.map +1 -0
  877. package/build/vendor/tapestry/tokens.d.ts +121 -0
  878. package/build/vendor/tapestry/tokens.d.ts.map +1 -0
  879. package/package.json +8 -12
  880. package/src/__tests__/utils/theme.ts +2 -5
  881. package/src/__utils__/render_with_query_client.tsx +13 -0
  882. package/src/components/conversation/__tests__/message_list.test.tsx +4 -0
  883. package/src/components/conversation/message_list.tsx +6 -0
  884. package/src/components/conversations/__tests__/conversation_preview.test.tsx +2 -2
  885. package/src/components/conversations/conversations.tsx +1 -0
  886. package/src/components/display/__tests__/conversation_avatar.test.tsx +94 -0
  887. package/src/components/display/conversation_avatar.tsx +9 -2
  888. package/src/components/display/image.tsx +10 -19
  889. package/src/components/display/keyboard_scroll_view.tsx +1 -0
  890. package/src/components/page/__tests__/page_error_boundary.test.tsx +33 -0
  891. package/src/components/page/page_error_boundary.tsx +43 -12
  892. package/src/contexts/__tests__/configured_retry.test.ts +39 -0
  893. package/src/contexts/api_provider.tsx +12 -5
  894. package/src/hooks/__tests__/use_conversation_avatar_update.test.tsx +40 -0
  895. package/src/hooks/__tests__/use_system_message_people.test.tsx +79 -0
  896. package/src/hooks/index.ts +1 -0
  897. package/src/hooks/use_conversation_avatar_update.ts +67 -11
  898. package/src/hooks/use_system_message_people.ts +55 -0
  899. package/src/navigation/index.tsx +6 -2
  900. package/src/navigation/page_error_fallbacks.ts +14 -0
  901. package/src/navigation/screenLayout.tsx +3 -1
  902. package/src/screens/age_check/age_check_required_screen.tsx +5 -1
  903. package/src/screens/avatar_picker/__tests__/avatar_picker_screen.test.tsx +67 -0
  904. package/src/screens/avatar_picker/avatar_picker_screen.tsx +7 -1
  905. package/src/screens/conversation_details_screen.tsx +1 -0
  906. package/src/screens/conversation_new/components/form_list.tsx +1 -0
  907. package/src/screens/conversation_select_recipients/__tests__/conversation_select_direct_message_recipients_screen.test.tsx +100 -0
  908. package/src/screens/conversation_select_recipients/conversation_new_entry_screen.tsx +4 -1
  909. package/src/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.tsx +78 -68
  910. package/src/screens/conversation_select_recipients/conversation_select_group_recipients_screen.tsx +1 -0
  911. package/src/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.tsx +1 -0
  912. package/src/screens/get_help_screen.tsx +4 -4
  913. package/src/screens/group_notification_settings_screen.tsx +3 -3
  914. package/src/screens/notification_settings_screen.tsx +1 -0
  915. package/src/screens/preferred_app_selection_screen.tsx +4 -4
  916. package/src/screens/search/__tests__/search_screen.test.tsx +11 -12
  917. package/src/screens/search/components/__tests__/conversation_results.test.tsx +14 -5
  918. package/src/screens/search/components/__tests__/message_result_row.test.tsx +5 -4
  919. package/src/screens/search/components/__tests__/search_results_list.test.tsx +10 -5
  920. package/src/screens/search/components/search_results_list.tsx +34 -13
  921. package/src/screens/search/search_screen.tsx +8 -18
  922. package/src/screens/settings_screen.tsx +25 -25
  923. package/src/screens/system_message_people_screen.tsx +6 -20
@@ -0,0 +1,100 @@
1
+ import { fireEvent, render } from '@testing-library/react-native'
2
+ import React from 'react'
3
+ import { SafeAreaProvider } from 'react-native-safe-area-context'
4
+ import { ScreenLayout } from '../../../navigation/screenLayout'
5
+ import { Log } from '../../../utils/native_adapters/configuration'
6
+ import { ResponseError } from '../../../utils/response_error'
7
+ import { ConversationSelectDirectMessageRecipientsScreen } from '../conversation_select_direct_message_recipients_screen'
8
+
9
+ jest.mock('@react-navigation/native', () => ({
10
+ ...jest.requireActual('@react-navigation/native'),
11
+ useNavigation: () => ({ getParent: jest.fn(), goBack: jest.fn(), navigate: jest.fn() }),
12
+ useRoute: () => ({ name: 'ConversationSelectDirectMessageRecipients' }),
13
+ }))
14
+ jest.mock('../../../hooks/use_features', () => ({
15
+ ...jest.requireActual('../../../hooks/use_features'),
16
+ useFeatures: () => ({ featureEnabled: () => false }),
17
+ }))
18
+ jest.mock('../../../hooks/use_debounced_search_term', () => ({
19
+ useDebouncedSearchTerm: (term: string) => term,
20
+ }))
21
+ jest.mock('../../../hooks/direct_messages/use_direct_message_conversation_validate', () => ({
22
+ useDirectMessageConversationValidate: () => ({ warnings: [], validationPending: false }),
23
+ }))
24
+ jest.mock('../../../hooks/direct_messages/use_find_or_create_direct_message_conversation', () => ({
25
+ useFindOrCreateDirectMessageConversation: () => ({
26
+ findOrCreateConversation: jest.fn(),
27
+ directMessageExists: false,
28
+ isFinding: false,
29
+ isError: false,
30
+ }),
31
+ }))
32
+ jest.mock('../../../hooks/direct_messages/use_direct_message_affiliations', () => ({
33
+ useDirectMessageAffiliations: () => ({
34
+ groups: new Map(),
35
+ teams: new Map(),
36
+ resultsDescription: null,
37
+ }),
38
+ }))
39
+ let mockSearchFailure: Error = new TypeError('Network request failed')
40
+ jest.mock('../../../hooks/direct_messages/use_direct_message_candidates', () => ({
41
+ useDirectMessageCandidates: (term: string) => {
42
+ if (term) throw mockSearchFailure
43
+ return { data: undefined, isFetching: false }
44
+ },
45
+ }))
46
+ jest.mock('../../../components/display/action_button', () => ({ ActionButton: () => null }))
47
+ jest.mock('../../../components/display/keyboard_view', () => ({
48
+ ...jest.requireActual('../../../components/display/keyboard_view'),
49
+ KeyboardView: ({ children }: { children: React.ReactNode }) => children,
50
+ }))
51
+
52
+ const renderScreen = () =>
53
+ render(
54
+ <SafeAreaProvider
55
+ initialMetrics={{
56
+ frame: { x: 0, y: 0, width: 390, height: 844 },
57
+ insets: { top: 0, left: 0, right: 0, bottom: 0 },
58
+ }}
59
+ >
60
+ <ScreenLayout>
61
+ <ConversationSelectDirectMessageRecipientsScreen route={{ params: {} } as never} />
62
+ </ScreenLayout>
63
+ </SafeAreaProvider>
64
+ )
65
+
66
+ describe('ConversationSelectDirectMessageRecipientsScreen', () => {
67
+ let reportError: jest.SpyInstance
68
+ let consoleError: jest.SpyInstance
69
+
70
+ beforeEach(() => {
71
+ reportError = jest.spyOn(Log, 'reportError').mockImplementation(() => {})
72
+ consoleError = jest.spyOn(console, 'error').mockImplementation(() => {})
73
+ })
74
+
75
+ afterEach(() => {
76
+ reportError.mockRestore()
77
+ consoleError.mockRestore()
78
+ })
79
+
80
+ it('hands a failed search to the page error view', () => {
81
+ mockSearchFailure = new TypeError('Network request failed')
82
+ const view = renderScreen()
83
+
84
+ fireEvent.changeText(view.getByPlaceholderText('Search'), 'pi')
85
+
86
+ expect(view.getByText('Problem connecting!')).toBeTruthy()
87
+ expect(view.queryByPlaceholderText('Search')).toBeNull()
88
+ expect(reportError).toHaveBeenCalledTimes(1)
89
+ })
90
+
91
+ it("uses the screen's own wording when the search fails for no known reason", () => {
92
+ mockSearchFailure = new ResponseError({ status: 500, statusText: 'x', errors: [] } as never)
93
+ const view = renderScreen()
94
+
95
+ fireEvent.changeText(view.getByPlaceholderText('Search'), 'pi')
96
+
97
+ expect(view.getByText("Couldn't load people right now")).toBeTruthy()
98
+ expect(view.queryByText('Oops!')).toBeNull()
99
+ })
100
+ })
@@ -59,7 +59,10 @@ export const ConversationNewEntryScreen = ({ route }: ConversationSelectRecipien
59
59
  }
60
60
 
61
61
  return (
62
- <ScrollView contentContainerStyle={styles.contentContainer}>
62
+ <ScrollView
63
+ contentInsetAdjustmentBehavior="automatic"
64
+ contentContainerStyle={styles.contentContainer}
65
+ >
63
66
  <View style={styles.header}>
64
67
  <Heading variant="h2">Start a conversation by</Heading>
65
68
  </View>
@@ -1,11 +1,10 @@
1
1
  import { PlatformPressable } from '@react-navigation/elements'
2
2
  import { StackActions, useNavigation } from '@react-navigation/native'
3
- import { RefObject, useRef, useState } from 'react'
3
+ import { ReactElement, RefObject, useRef, useState } from 'react'
4
4
  import { FlatList, Pressable, StyleSheet, TextInput, View } from 'react-native'
5
5
  import { Avatar, Badge, Banner, Icon, KeyboardView, Spinner, Text } from '../../components'
6
6
  import { ActionButton } from '../../components/display/action_button'
7
7
  import { AutoFocusAwareTextInput } from '../../components/display/text_input'
8
- import { ComponentErrorBoundary } from '../../components/page/component_error_boundary'
9
8
  import { useTheme } from '../../hooks'
10
9
  import { useDirectMessageAffiliations } from '../../hooks/direct_messages/use_direct_message_affiliations'
11
10
  import { useDirectMessageCandidates } from '../../hooks/direct_messages/use_direct_message_candidates'
@@ -92,38 +91,31 @@ export function ConversationSelectDirectMessageRecipientsScreen({
92
91
 
93
92
  return (
94
93
  <KeyboardView>
95
- {isError && (
96
- <Banner
97
- appearance="error"
98
- description="There was an issue starting the conversation. Please try again."
99
- style={styles.errorBanner}
100
- />
101
- )}
102
- <ToField
103
- selectedPeople={selectedPeople}
104
- searchTerm={searchTerm}
105
- onSearchChange={setSearchTerm}
106
- onRemove={removePerson}
107
- onClear={() => setSelectedPeople(new Map())}
108
- searchInputRef={searchInputRef}
109
- />
110
94
  <View style={styles.candidateResultsContainer}>
111
- <ComponentErrorBoundary
112
- key={debouncedTerm}
113
- fallback={
114
- <Banner
115
- appearance="error"
116
- description="Couldn't load people right now. Try again."
117
- style={styles.errorBanner}
118
- />
95
+ <CandidateResults
96
+ term={debouncedTerm}
97
+ selectedPeople={selectedPeople}
98
+ onSelect={selectPerson}
99
+ header={
100
+ <>
101
+ {isError && (
102
+ <Banner
103
+ appearance="error"
104
+ description="There was an issue starting the conversation. Please try again."
105
+ style={styles.errorBanner}
106
+ />
107
+ )}
108
+ <ToField
109
+ selectedPeople={selectedPeople}
110
+ searchTerm={searchTerm}
111
+ onSearchChange={setSearchTerm}
112
+ onRemove={removePerson}
113
+ onClear={() => setSelectedPeople(new Map())}
114
+ searchInputRef={searchInputRef}
115
+ />
116
+ </>
119
117
  }
120
- >
121
- <CandidateResults
122
- term={debouncedTerm}
123
- selectedPeople={selectedPeople}
124
- onSelect={selectPerson}
125
- />
126
- </ComponentErrorBoundary>
118
+ />
127
119
  </View>
128
120
  <ActionButton
129
121
  title={buttonText}
@@ -214,53 +206,57 @@ function CandidateResults({
214
206
  term,
215
207
  selectedPeople,
216
208
  onSelect,
209
+ header,
217
210
  }: {
218
211
  term: string
219
212
  selectedPeople: Map<string, DirectMessageCandidateResource>
220
213
  onSelect: (candidate: DirectMessageCandidateResource) => void
214
+ header: ReactElement
221
215
  }) {
222
216
  const styles = useStyles()
223
217
  const { data, isFetching } = useDirectMessageCandidates(term)
224
218
  const { groups, teams, resultsDescription } = useDirectMessageAffiliations()
225
219
 
226
- if (term.length < 1) {
227
- if (selectedPeople.size > 0) return null
220
+ const unselectedCandidates = (data?.data ?? []).filter(c => !selectedPeople.has(c.id))
221
+ const hasTruncated = (data?.meta.totalCount ?? 0) > (data?.data.length ?? 0)
222
+ const isAtLimit = selectedPeople.size >= MAX_RECIPIENTS
223
+ const showsResults = term.length >= 1 && !isAtLimit && unselectedCandidates.length > 0
228
224
 
229
- return (
230
- <View style={styles.emptyState}>
231
- <Icon name="churchCenter.people" size={40} style={styles.emptyStateIcon} />
232
- <Text style={styles.emptyStateTitle}>Search for people to direct message</Text>
233
- <Text variant="secondary" style={styles.emptyStateSubtitle}>
234
- Start a conversation with people in your groups and teams.
235
- </Text>
236
- </View>
237
- )
238
- }
225
+ const emptyState = (() => {
226
+ if (showsResults) return null
239
227
 
240
- const isAtLimit = selectedPeople.size >= MAX_RECIPIENTS
228
+ if (term.length < 1) {
229
+ if (selectedPeople.size > 0) return null
241
230
 
242
- if (isAtLimit) {
243
- return (
244
- <View style={styles.emptyState}>
245
- <Text variant="secondary" style={styles.emptyStateSubtitle}>
246
- You can add up to {MAX_RECIPIENTS} people to a direct message.
247
- </Text>
248
- </View>
249
- )
250
- }
231
+ return (
232
+ <View style={styles.emptyState}>
233
+ <Icon name="churchCenter.people" size={40} style={styles.emptyStateIcon} />
234
+ <Text style={styles.emptyStateTitle}>Search for people to direct message</Text>
235
+ <Text variant="secondary" style={styles.emptyStateSubtitle}>
236
+ Start a conversation with people in your groups and teams.
237
+ </Text>
238
+ </View>
239
+ )
240
+ }
251
241
 
252
- const unselectedCandidates = (data?.data ?? []).filter(c => !selectedPeople.has(c.id))
253
- const hasTruncated = (data?.meta.totalCount ?? 0) > (data?.data.length ?? 0)
242
+ if (isAtLimit) {
243
+ return (
244
+ <View style={styles.emptyState}>
245
+ <Text variant="secondary" style={styles.emptyStateSubtitle}>
246
+ You can add up to {MAX_RECIPIENTS} people to a direct message.
247
+ </Text>
248
+ </View>
249
+ )
250
+ }
254
251
 
255
- if (isFetching && unselectedCandidates.length === 0) {
256
- return (
257
- <View style={styles.emptyState}>
258
- <Spinner />
259
- </View>
260
- )
261
- }
252
+ if (isFetching) {
253
+ return (
254
+ <View style={styles.emptyState}>
255
+ <Spinner />
256
+ </View>
257
+ )
258
+ }
262
259
 
263
- if (!isFetching && unselectedCandidates.length === 0) {
264
260
  return (
265
261
  <View style={styles.emptyState}>
266
262
  <Icon name="general.search" size={32} style={styles.emptyStateIcon} />
@@ -270,13 +266,15 @@ function CandidateResults({
270
266
  </Text>
271
267
  </View>
272
268
  )
273
- }
269
+ })()
274
270
 
275
271
  return (
276
272
  <CandidateList
277
- candidates={unselectedCandidates}
273
+ header={header}
274
+ candidates={showsResults ? unselectedCandidates : []}
278
275
  hasTruncated={hasTruncated}
279
276
  description={resultsDescription}
277
+ emptyState={emptyState}
280
278
  groups={groups}
281
279
  teams={teams}
282
280
  onSelect={onSelect}
@@ -309,27 +307,33 @@ function candidateAffiliationNames(
309
307
  }
310
308
 
311
309
  function CandidateList({
310
+ header,
312
311
  candidates,
313
312
  hasTruncated,
314
313
  description,
314
+ emptyState,
315
315
  groups,
316
316
  teams,
317
317
  onSelect,
318
318
  }: {
319
+ header: ReactElement
319
320
  candidates: DirectMessageCandidateResource[]
320
321
  hasTruncated: boolean
321
322
  description: string | null
323
+ emptyState: ReactElement | null
322
324
  groups: Map<number, string>
323
325
  teams: Map<number, string>
324
326
  onSelect: (candidate: DirectMessageCandidateResource) => void
325
327
  }) {
326
328
  const styles = useStyles()
329
+ const hasCandidates = candidates.length > 0
327
330
  const available = candidates.filter(c => !c.directMessagesDisabled)
328
331
  const dmDisabled = candidates.filter(c => c.directMessagesDisabled)
329
332
 
330
333
  return (
331
334
  <FlatList<DirectMessageCandidateResource>
332
335
  data={available}
336
+ contentInsetAdjustmentBehavior="automatic"
333
337
  keyboardShouldPersistTaps="handled"
334
338
  keyExtractor={item => item.id}
335
339
  renderItem={({ item }) => (
@@ -340,7 +344,13 @@ function CandidateList({
340
344
  onSelect={() => onSelect(item)}
341
345
  />
342
346
  )}
343
- ListHeaderComponent={<ResultsHeading description={description} />}
347
+ ListHeaderComponent={
348
+ <>
349
+ {header}
350
+ {hasCandidates && <ResultsHeading description={description} />}
351
+ </>
352
+ }
353
+ ListEmptyComponent={emptyState}
344
354
  ListFooterComponent={
345
355
  <>
346
356
  {dmDisabled.length > 0 && (
@@ -361,7 +371,7 @@ function CandidateList({
361
371
  ))}
362
372
  </>
363
373
  )}
364
- {hasTruncated && (
374
+ {hasCandidates && hasTruncated && (
365
375
  <View style={styles.truncatedFooter}>
366
376
  <Text variant="secondary" style={styles.truncatedText}>
367
377
  Keep typing to narrow your results.
@@ -60,6 +60,7 @@ export const ConversationSelectGroupRecipientsScreen = ({
60
60
 
61
61
  return (
62
62
  <SectionList<GroupsGroupResource, GroupsSection>
63
+ contentInsetAdjustmentBehavior="automatic"
63
64
  sections={sections}
64
65
  keyExtractor={item => item.id.toString()}
65
66
  stickySectionHeadersEnabled={false}
@@ -32,6 +32,7 @@ export const ConversationSelectTeamsILeadRecipientsScreen = ({
32
32
 
33
33
  return (
34
34
  <FlatList
35
+ contentInsetAdjustmentBehavior="automatic"
35
36
  data={serviceTypes}
36
37
  keyExtractor={item => item.id.toString()}
37
38
  contentContainerStyle={styles.contentContainer}
@@ -1,6 +1,6 @@
1
1
  import { StaticScreenProps, useNavigation } from '@react-navigation/native'
2
2
  import { useCallback, useMemo } from 'react'
3
- import { Alert, StyleSheet, View } from 'react-native'
3
+ import { Alert, ScrollView, StyleSheet, View } from 'react-native'
4
4
  import { Heading, PressableRow, Text, TextInlineButton } from '../components'
5
5
  import { useApiGet, useTheme } from '../hooks'
6
6
  import { useAppName } from '../hooks/use_app_name'
@@ -56,7 +56,7 @@ export const GetHelpScreen = ({ route }: GetHelpScreenProps) => {
56
56
  }, [navigation])
57
57
 
58
58
  return (
59
- <View style={[styles.container]}>
59
+ <ScrollView contentInsetAdjustmentBehavior="automatic" contentContainerStyle={styles.container}>
60
60
  {appSpecificHelpUrls.length > 0 && (
61
61
  <Heading variant="h2" style={[styles.heading, styles.headingBottomBorder]}>
62
62
  How-to articles
@@ -90,7 +90,7 @@ export const GetHelpScreen = ({ route }: GetHelpScreenProps) => {
90
90
  to the development team.
91
91
  </Text>
92
92
  </View>
93
- </View>
93
+ </ScrollView>
94
94
  )
95
95
  }
96
96
 
@@ -145,7 +145,7 @@ const useStyles = () => {
145
145
 
146
146
  return StyleSheet.create({
147
147
  container: {
148
- flex: 1,
148
+ flexGrow: 1,
149
149
  },
150
150
  text: {
151
151
  paddingVertical: 4,
@@ -2,7 +2,7 @@ import { PlatformPressable } from '@react-navigation/elements'
2
2
  import { StaticScreenProps, useNavigation } from '@react-navigation/native'
3
3
  import type { NativeStackNavigationProp } from '@react-navigation/native-stack'
4
4
  import React, { useEffect } from 'react'
5
- import { Platform, StyleSheet, View } from 'react-native'
5
+ import { Platform, ScrollView, StyleSheet, View } from 'react-native'
6
6
  import { Heading, Icon, Text } from '../components'
7
7
  import { useTheme } from '../hooks'
8
8
  import { platformFontWeightBold } from '../utils/styles'
@@ -38,7 +38,7 @@ export function GroupNotificationSettingsScreen({ route }: GroupNotificationSett
38
38
  }
39
39
 
40
40
  return (
41
- <View style={styles.container}>
41
+ <ScrollView contentInsetAdjustmentBehavior="automatic" style={styles.container}>
42
42
  <View style={styles.sectionOuter}>
43
43
  <View style={styles.sectionInner}>
44
44
  <Heading variant="h2" style={styles.sectionHeading}>
@@ -76,7 +76,7 @@ export function GroupNotificationSettingsScreen({ route }: GroupNotificationSett
76
76
  )}
77
77
  </View>
78
78
  </PlatformPressable>
79
- </View>
79
+ </ScrollView>
80
80
  )
81
81
  }
82
82
 
@@ -123,6 +123,7 @@ export function NotificationSettingsScreen({}: NotificationSettingsScreenProps)
123
123
  return (
124
124
  <View style={styles.listContainer}>
125
125
  <FlatList
126
+ contentInsetAdjustmentBehavior="automatic"
126
127
  data={listData as SectionListData}
127
128
  contentContainerStyle={styles.contentContainer}
128
129
  renderItem={({ item, index }) => {
@@ -2,7 +2,7 @@ import { PlatformPressable } from '@react-navigation/elements'
2
2
  import { StaticScreenProps } from '@react-navigation/native'
3
3
  import { useMutation } from '@tanstack/react-query'
4
4
  import React, { type PropsWithChildren } from 'react'
5
- import { Image, StyleSheet, View, type ViewStyle } from 'react-native'
5
+ import { Image, ScrollView, StyleSheet, View, type ViewStyle } from 'react-native'
6
6
  import { Heading, Icon, Text } from '../components'
7
7
  import { useApiClient, useTheme } from '../hooks'
8
8
  import { useAppName } from '../hooks/use_app_name'
@@ -45,7 +45,7 @@ export function PreferredAppSelectionScreen({ route }: PreferredAppSelectionScre
45
45
  const sectionTitle = chatType ? chatTypeLabel(chatType.title) : undefined
46
46
 
47
47
  return (
48
- <View style={styles.container}>
48
+ <ScrollView contentInsetAdjustmentBehavior="automatic" contentContainerStyle={styles.container}>
49
49
  <View style={styles.section}>
50
50
  <Heading variant="h2" style={styles.sectionHeading}>
51
51
  {sectionTitle}
@@ -64,7 +64,7 @@ export function PreferredAppSelectionScreen({ route }: PreferredAppSelectionScre
64
64
  </PressableRow>
65
65
  ))}
66
66
  </View>
67
- </View>
67
+ </ScrollView>
68
68
  )
69
69
  }
70
70
 
@@ -118,7 +118,7 @@ const PressableRow = ({
118
118
 
119
119
  const styles = StyleSheet.create({
120
120
  container: {
121
- flex: 1,
121
+ flexGrow: 1,
122
122
  },
123
123
  section: {
124
124
  paddingTop: 24,
@@ -1,6 +1,7 @@
1
- import { act, fireEvent, render } from '@testing-library/react-native'
1
+ import { act, fireEvent } from '@testing-library/react-native'
2
2
  import React from 'react'
3
3
  import { Keyboard, ScrollView } from 'react-native'
4
+ import { renderWithQueryClient } from '../../../__utils__/render_with_query_client'
4
5
  import type { useSearchResults } from '../../../hooks/use_search_results'
5
6
  import type {
6
7
  ConversationSearchResultResource,
@@ -71,7 +72,7 @@ const renderWithResults = () => {
71
72
  hasNextPage: false,
72
73
  isFetchingNextPage: false,
73
74
  })
74
- const view = render(<SearchScreen />)
75
+ const view = renderWithQueryClient(<SearchScreen />)
75
76
  const input = view.getByLabelText(inputLabel)
76
77
  fireEvent.changeText(input, 'bud')
77
78
  fireEvent.changeText(input, 'budget')
@@ -99,37 +100,35 @@ afterEach(() => jest.useRealTimers())
99
100
 
100
101
  describe('SearchScreen', () => {
101
102
  it('searches once with the trimmed term after typing settles', () => {
102
- const view = render(<SearchScreen />)
103
+ const view = renderWithQueryClient(<SearchScreen />)
103
104
  const input = view.getByLabelText(inputLabel)
104
105
 
105
106
  fireEvent.changeText(input, 'bud')
106
107
  fireEvent.changeText(input, ' budget ')
107
108
 
108
109
  expect(view.getByText('Search chat')).toBeTruthy()
109
- expect(mockUseSearchResults).not.toHaveBeenCalled()
110
+ const searchedTerms = () =>
111
+ new Set(mockUseSearchResults.mock.calls.map(([term]) => term).filter(term => term.trim()))
112
+ expect([...searchedTerms()]).toEqual([])
110
113
 
111
114
  act(() => jest.advanceTimersByTime(200))
112
115
 
113
- const searchedTerms = new Set(mockUseSearchResults.mock.calls.map(([term]) => term))
114
- expect([...searchedTerms]).toEqual(['budget'])
116
+ expect([...searchedTerms()]).toEqual(['budget'])
115
117
  expect(view.queryByText('Search chat')).toBeNull()
116
118
  expect(view.getByLabelText('Loading results')).toBeTruthy()
117
119
  })
118
120
 
119
121
  it('lets the prompt scroll while taps still reach the field', () => {
120
- const view = render(<SearchScreen />)
122
+ const view = renderWithQueryClient(<SearchScreen />)
121
123
 
122
124
  const scrollView = view.UNSAFE_getByType(ScrollView)
123
125
  expect(scrollView.props.keyboardShouldPersistTaps).toBe('handled')
124
- expect(scrollView.props.contentContainerStyle).toMatchObject({
125
- flexGrow: 1,
126
- justifyContent: 'center',
127
- })
126
+ expect(scrollView.props.contentContainerStyle).toMatchObject({ flexGrow: 1 })
128
127
  expect(view.getByText('Search chat')).toBeTruthy()
129
128
  })
130
129
 
131
130
  it('returns to the prompt as soon as the term is cleared', () => {
132
- const view = render(<SearchScreen />)
131
+ const view = renderWithQueryClient(<SearchScreen />)
133
132
  const input = view.getByLabelText(inputLabel)
134
133
 
135
134
  fireEvent.changeText(input, 'budget')
@@ -1,5 +1,6 @@
1
- import { fireEvent, render } from '@testing-library/react-native'
1
+ import { fireEvent } from '@testing-library/react-native'
2
2
  import React from 'react'
3
+ import { renderWithQueryClient } from '../../../../__utils__/render_with_query_client'
3
4
  import type { ConversationSearchResultResource } from '../../../../types'
4
5
  import { ConversationResults } from '../conversation_results'
5
6
 
@@ -14,7 +15,9 @@ const buildResults = (count: number, prefix = 'Conversation') =>
14
15
 
15
16
  describe('ConversationResults', () => {
16
17
  it('caps at five rows until View more is pressed, then offers View less', () => {
17
- const view = render(<ConversationResults results={buildResults(6)} onSelect={jest.fn()} />)
18
+ const view = renderWithQueryClient(
19
+ <ConversationResults results={buildResults(6)} onSelect={jest.fn()} />
20
+ )
18
21
 
19
22
  expect(view.getByText('Conversation 5')).toBeTruthy()
20
23
  expect(view.queryByText('Conversation 6')).toBeNull()
@@ -27,14 +30,18 @@ describe('ConversationResults', () => {
27
30
  })
28
31
 
29
32
  it('renders no footer for five or fewer results', () => {
30
- const view = render(<ConversationResults results={buildResults(4)} onSelect={jest.fn()} />)
33
+ const view = renderWithQueryClient(
34
+ <ConversationResults results={buildResults(4)} onSelect={jest.fn()} />
35
+ )
31
36
 
32
37
  expect(view.getByText('Conversation 4')).toBeTruthy()
33
38
  expect(view.queryByText('View more')).toBeNull()
34
39
  })
35
40
 
36
41
  it('stays expanded when the parent re-renders with a new results array', () => {
37
- const view = render(<ConversationResults results={buildResults(6)} onSelect={jest.fn()} />)
42
+ const view = renderWithQueryClient(
43
+ <ConversationResults results={buildResults(6)} onSelect={jest.fn()} />
44
+ )
38
45
  fireEvent.press(view.getByText('View more'))
39
46
 
40
47
  view.rerender(<ConversationResults results={buildResults(6)} onSelect={jest.fn()} />)
@@ -46,7 +53,9 @@ describe('ConversationResults', () => {
46
53
  it('passes the pressed result and its position to onSelect', () => {
47
54
  const onSelect = jest.fn()
48
55
  const results = buildResults(2)
49
- const view = render(<ConversationResults results={results} onSelect={onSelect} />)
56
+ const view = renderWithQueryClient(
57
+ <ConversationResults results={results} onSelect={onSelect} />
58
+ )
50
59
 
51
60
  fireEvent.press(view.getByText('Conversation 2'))
52
61
 
@@ -1,5 +1,6 @@
1
- import { fireEvent, render } from '@testing-library/react-native'
1
+ import { fireEvent } from '@testing-library/react-native'
2
2
  import React from 'react'
3
+ import { renderWithQueryClient } from '../../../../__utils__/render_with_query_client'
3
4
  import type { MessageSearchResultResource } from '../../../../types/resources/search_result'
4
5
  import { formatDatePreview } from '../../../../utils/date'
5
6
  import { defaultTheme } from '../../../../utils/theme'
@@ -33,7 +34,7 @@ const interactionColor = defaultTheme('light').colors.interaction
33
34
 
34
35
  describe('MessageResultRow', () => {
35
36
  it('renders the title, author, snippet, and date', () => {
36
- const view = render(<MessageResultRow result={result} onPress={jest.fn()} />)
37
+ const view = renderWithQueryClient(<MessageResultRow result={result} onPress={jest.fn()} />)
37
38
 
38
39
  expect(view.getByText('Worship Team')).toBeTruthy()
39
40
  expect(view.getByText('Ada Lovelace:', { exact: false })).toBeTruthy()
@@ -44,7 +45,7 @@ describe('MessageResultRow', () => {
44
45
  })
45
46
 
46
47
  it('colors matched segments with the interaction color', () => {
47
- const view = render(<MessageResultRow result={result} onPress={jest.fn()} />)
48
+ const view = renderWithQueryClient(<MessageResultRow result={result} onPress={jest.fn()} />)
48
49
 
49
50
  expect(view.getByText('budget')).toHaveStyle({ color: interactionColor })
50
51
  expect(view.getByText('…planning the ')).not.toHaveStyle({ color: interactionColor })
@@ -53,7 +54,7 @@ describe('MessageResultRow', () => {
53
54
  it('exposes the row as a button with a composed label and reports presses', () => {
54
55
  const onPress = jest.fn()
55
56
  const date = formatDatePreview(result.extra.createdAt)
56
- const view = render(<MessageResultRow result={result} onPress={onPress} />)
57
+ const view = renderWithQueryClient(<MessageResultRow result={result} onPress={onPress} />)
57
58
 
58
59
  const row = view.getByRole('button', {
59
60
  name: `Worship Team, Ada Lovelace: …planning the budget meeting for next week, ${date}`,
@@ -1,6 +1,7 @@
1
- import { fireEvent, render } from '@testing-library/react-native'
1
+ import { fireEvent } from '@testing-library/react-native'
2
2
  import React from 'react'
3
3
  import { FlatList } from 'react-native'
4
+ import { renderWithQueryClient } from '../../../../__utils__/render_with_query_client'
4
5
  import type { useSearchResults } from '../../../../hooks/use_search_results'
5
6
  import type {
6
7
  ConversationSearchResultResource,
@@ -49,10 +50,14 @@ const messageResult = (id: string): MessageSearchResultResource => ({
49
50
  },
50
51
  })
51
52
 
53
+ const slots = { header: <></>, prompt: <></> }
54
+
52
55
  const renderList = (state: Partial<SearchState>, onSettled = jest.fn()) => {
53
56
  mockUseSearchResults.mockReturnValue(searchState(state))
54
- const list = () => <SearchResultsList term="potluck" onSelect={jest.fn()} onSettled={onSettled} />
55
- const view = render(list())
57
+ const list = () => (
58
+ <SearchResultsList term="potluck" onSelect={jest.fn()} onSettled={onSettled} {...slots} />
59
+ )
60
+ const view = renderWithQueryClient(list())
56
61
  const rerenderWith = (next: Partial<SearchState>) => {
57
62
  mockUseSearchResults.mockReturnValue(searchState(next))
58
63
  view.rerender(list())
@@ -129,8 +134,8 @@ describe('SearchResultsList', () => {
129
134
  const onSelect = jest.fn()
130
135
  const results = [conversationResult('1'), messageResult('1'), messageResult('2')]
131
136
  mockUseSearchResults.mockReturnValue(searchState({ results }))
132
- const view = render(
133
- <SearchResultsList term="potluck" onSelect={onSelect} onSettled={jest.fn()} />
137
+ const view = renderWithQueryClient(
138
+ <SearchResultsList term="potluck" onSelect={onSelect} onSettled={jest.fn()} {...slots} />
134
139
  )
135
140
 
136
141
  fireEvent.press(view.getByLabelText(/^Message 2/))