@planningcenter/chat-react-native 3.30.0-rc.3 → 3.30.0-rc.5

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 (894) hide show
  1. package/build/components/conversation/attachments/attachment_card.js +3 -3
  2. package/build/components/conversation/attachments/attachment_card.js.map +1 -1
  3. package/build/components/conversation/attachments/attachment_deleting_overlay.js +2 -2
  4. package/build/components/conversation/attachments/attachment_deleting_overlay.js.map +1 -1
  5. package/build/components/conversation/attachments/audio_attachment.d.ts +1 -1
  6. package/build/components/conversation/attachments/audio_attachment.d.ts.map +1 -1
  7. package/build/components/conversation/attachments/audio_attachment.js +3 -3
  8. package/build/components/conversation/attachments/audio_attachment.js.map +1 -1
  9. package/build/components/conversation/attachments/expanded_link.d.ts +1 -1
  10. package/build/components/conversation/attachments/expanded_link.d.ts.map +1 -1
  11. package/build/components/conversation/attachments/expanded_link.js +3 -3
  12. package/build/components/conversation/attachments/expanded_link.js.map +1 -1
  13. package/build/components/conversation/attachments/generic_file_attachment.d.ts +1 -1
  14. package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +1 -1
  15. package/build/components/conversation/attachments/generic_file_attachment.js +4 -4
  16. package/build/components/conversation/attachments/generic_file_attachment.js.map +1 -1
  17. package/build/components/conversation/attachments/giphy_attachment.d.ts +1 -1
  18. package/build/components/conversation/attachments/giphy_attachment.d.ts.map +1 -1
  19. package/build/components/conversation/attachments/giphy_attachment.js +4 -4
  20. package/build/components/conversation/attachments/giphy_attachment.js.map +1 -1
  21. package/build/components/conversation/attachments/image_attachment.d.ts +1 -1
  22. package/build/components/conversation/attachments/image_attachment.d.ts.map +1 -1
  23. package/build/components/conversation/attachments/image_attachment.js +5 -5
  24. package/build/components/conversation/attachments/image_attachment.js.map +1 -1
  25. package/build/components/conversation/attachments/video_attachment.d.ts +1 -1
  26. package/build/components/conversation/attachments/video_attachment.d.ts.map +1 -1
  27. package/build/components/conversation/attachments/video_attachment.js +4 -4
  28. package/build/components/conversation/attachments/video_attachment.js.map +1 -1
  29. package/build/components/conversation/empty_conversation_blank_state.js +1 -1
  30. package/build/components/conversation/empty_conversation_blank_state.js.map +1 -1
  31. package/build/components/conversation/jump_to_bottom_button.js +3 -3
  32. package/build/components/conversation/jump_to_bottom_button.js.map +1 -1
  33. package/build/components/conversation/message.d.ts +1 -1
  34. package/build/components/conversation/message.d.ts.map +1 -1
  35. package/build/components/conversation/message.js +12 -12
  36. package/build/components/conversation/message.js.map +1 -1
  37. package/build/components/conversation/message_attachments.d.ts +1 -1
  38. package/build/components/conversation/message_attachments.d.ts.map +1 -1
  39. package/build/components/conversation/message_attachments.js +1 -1
  40. package/build/components/conversation/message_attachments.js.map +1 -1
  41. package/build/components/conversation/message_form/message_form_attachment_image.d.ts +1 -1
  42. package/build/components/conversation/message_form/message_form_attachment_image.d.ts.map +1 -1
  43. package/build/components/conversation/message_form/message_form_attachment_image.js +1 -1
  44. package/build/components/conversation/message_form/message_form_attachment_image.js.map +1 -1
  45. package/build/components/conversation/message_form/message_form_attachment_video.d.ts +1 -1
  46. package/build/components/conversation/message_form/message_form_attachment_video.d.ts.map +1 -1
  47. package/build/components/conversation/message_form/message_form_attachment_video.js +1 -1
  48. package/build/components/conversation/message_form/message_form_attachment_video.js.map +1 -1
  49. package/build/components/conversation/message_form.d.ts +1 -1
  50. package/build/components/conversation/message_form.d.ts.map +1 -1
  51. package/build/components/conversation/message_form.js +12 -12
  52. package/build/components/conversation/message_form.js.map +1 -1
  53. package/build/components/conversation/message_markdown.js +3 -3
  54. package/build/components/conversation/message_markdown.js.map +1 -1
  55. package/build/components/conversation/message_reaction.d.ts +2 -2
  56. package/build/components/conversation/message_reaction.d.ts.map +1 -1
  57. package/build/components/conversation/message_reaction.js +6 -6
  58. package/build/components/conversation/message_reaction.js.map +1 -1
  59. package/build/components/conversation/message_read_receipts.d.ts +1 -1
  60. package/build/components/conversation/message_read_receipts.d.ts.map +1 -1
  61. package/build/components/conversation/message_read_receipts.js +2 -2
  62. package/build/components/conversation/message_read_receipts.js.map +1 -1
  63. package/build/components/conversation/messages_disabled_banners.js +2 -2
  64. package/build/components/conversation/messages_disabled_banners.js.map +1 -1
  65. package/build/components/conversation/reply_connectors.d.ts +1 -1
  66. package/build/components/conversation/reply_connectors.d.ts.map +1 -1
  67. package/build/components/conversation/reply_connectors.js +2 -2
  68. package/build/components/conversation/reply_connectors.js.map +1 -1
  69. package/build/components/conversation/reply_shadow_message.d.ts +1 -1
  70. package/build/components/conversation/reply_shadow_message.d.ts.map +1 -1
  71. package/build/components/conversation/reply_shadow_message.js +6 -6
  72. package/build/components/conversation/reply_shadow_message.js.map +1 -1
  73. package/build/components/conversation/typing_indicator.js +3 -3
  74. package/build/components/conversation/typing_indicator.js.map +1 -1
  75. package/build/components/conversations/conversation_actions.d.ts +1 -1
  76. package/build/components/conversations/conversation_actions.d.ts.map +1 -1
  77. package/build/components/conversations/conversation_actions.js +5 -5
  78. package/build/components/conversations/conversation_actions.js.map +1 -1
  79. package/build/components/conversations/conversation_preview.d.ts +1 -1
  80. package/build/components/conversations/conversation_preview.d.ts.map +1 -1
  81. package/build/components/conversations/conversation_preview.js +3 -3
  82. package/build/components/conversations/conversation_preview.js.map +1 -1
  83. package/build/components/conversations/conversations.js +5 -5
  84. package/build/components/conversations/conversations.js.map +1 -1
  85. package/build/components/conversations/mute_indicator.js +3 -3
  86. package/build/components/conversations/mute_indicator.js.map +1 -1
  87. package/build/components/conversations/swipeable_toggle_button.d.ts +1 -1
  88. package/build/components/conversations/swipeable_toggle_button.d.ts.map +1 -1
  89. package/build/components/conversations/swipeable_toggle_button.js +5 -5
  90. package/build/components/conversations/swipeable_toggle_button.js.map +1 -1
  91. package/build/components/conversations/unread_count_badge.js +3 -3
  92. package/build/components/conversations/unread_count_badge.js.map +1 -1
  93. package/build/components/display/action_button.d.ts.map +1 -1
  94. package/build/components/display/action_button.js +2 -2
  95. package/build/components/display/action_button.js.map +1 -1
  96. package/build/components/display/avatar.d.ts +1 -1
  97. package/build/components/display/avatar.d.ts.map +1 -1
  98. package/build/components/display/avatar.js +1 -1
  99. package/build/components/display/avatar.js.map +1 -1
  100. package/build/components/display/avatar_group.d.ts +1 -1
  101. package/build/components/display/avatar_group.d.ts.map +1 -1
  102. package/build/components/display/avatar_group.js +1 -1
  103. package/build/components/display/avatar_group.js.map +1 -1
  104. package/build/components/display/badge.d.ts.map +1 -1
  105. package/build/components/display/badge.js +3 -3
  106. package/build/components/display/badge.js.map +1 -1
  107. package/build/components/display/banner.d.ts +1 -1
  108. package/build/components/display/banner.d.ts.map +1 -1
  109. package/build/components/display/banner.js +1 -1
  110. package/build/components/display/banner.js.map +1 -1
  111. package/build/components/display/banner_collapsible.d.ts.map +1 -1
  112. package/build/components/display/banner_collapsible.js +1 -1
  113. package/build/components/display/banner_collapsible.js.map +1 -1
  114. package/build/components/display/button.d.ts.map +1 -1
  115. package/build/components/display/button.js +3 -3
  116. package/build/components/display/button.js.map +1 -1
  117. package/build/components/display/child_notice.d.ts +1 -1
  118. package/build/components/display/child_notice.d.ts.map +1 -1
  119. package/build/components/display/child_notice.js +2 -2
  120. package/build/components/display/child_notice.js.map +1 -1
  121. package/build/components/display/heading.js +3 -3
  122. package/build/components/display/heading.js.map +1 -1
  123. package/build/components/display/icon.js +1 -1
  124. package/build/components/display/icon.js.map +1 -1
  125. package/build/components/display/icon_button.d.ts.map +1 -1
  126. package/build/components/display/icon_button.js +2 -2
  127. package/build/components/display/icon_button.js.map +1 -1
  128. package/build/components/display/image.js +1 -1
  129. package/build/components/display/image.js.map +1 -1
  130. package/build/components/display/image_attachment_preview.js +2 -2
  131. package/build/components/display/image_attachment_preview.js.map +1 -1
  132. package/build/components/display/keyboard_view.js +1 -1
  133. package/build/components/display/keyboard_view.js.map +1 -1
  134. package/build/components/display/person.d.ts +1 -1
  135. package/build/components/display/person.d.ts.map +1 -1
  136. package/build/components/display/person.js +1 -1
  137. package/build/components/display/person.js.map +1 -1
  138. package/build/components/display/platform_modal_header_buttons.js +1 -1
  139. package/build/components/display/platform_modal_header_buttons.js.map +1 -1
  140. package/build/components/display/pressable_row.d.ts.map +1 -1
  141. package/build/components/display/pressable_row.js +1 -1
  142. package/build/components/display/pressable_row.js.map +1 -1
  143. package/build/components/display/spinner.js +1 -1
  144. package/build/components/display/spinner.js.map +1 -1
  145. package/build/components/display/switch.js +1 -1
  146. package/build/components/display/switch.js.map +1 -1
  147. package/build/components/display/tabs.js +1 -1
  148. package/build/components/display/tabs.js.map +1 -1
  149. package/build/components/display/text.js +2 -2
  150. package/build/components/display/text.js.map +1 -1
  151. package/build/components/display/text_button.d.ts.map +1 -1
  152. package/build/components/display/text_button.js +2 -2
  153. package/build/components/display/text_button.js.map +1 -1
  154. package/build/components/display/text_inline_button.d.ts.map +1 -1
  155. package/build/components/display/text_inline_button.js +2 -2
  156. package/build/components/display/text_inline_button.js.map +1 -1
  157. package/build/components/display/toggle_button.d.ts.map +1 -1
  158. package/build/components/display/toggle_button.js +4 -4
  159. package/build/components/display/toggle_button.js.map +1 -1
  160. package/build/components/display/utils/button_colors.js +1 -1
  161. package/build/components/display/utils/button_colors.js.map +1 -1
  162. package/build/components/display/utils/status_colors.js +1 -1
  163. package/build/components/display/utils/status_colors.js.map +1 -1
  164. package/build/components/display/video_attachment_preview.js +3 -3
  165. package/build/components/display/video_attachment_preview.js.map +1 -1
  166. package/build/components/group_conversation_list.d.ts +1 -1
  167. package/build/components/group_conversation_list.d.ts.map +1 -1
  168. package/build/components/group_conversation_list.js +2 -2
  169. package/build/components/group_conversation_list.js.map +1 -1
  170. package/build/components/page/error_boundary.d.ts +1 -1
  171. package/build/components/page/error_boundary.d.ts.map +1 -1
  172. package/build/components/page/error_boundary.js +2 -2
  173. package/build/components/page/error_boundary.js.map +1 -1
  174. package/build/components/page/loading.js +1 -1
  175. package/build/components/page/loading.js.map +1 -1
  176. package/build/components/primitive/avatar_primitive.d.ts +2 -2
  177. package/build/components/primitive/avatar_primitive.d.ts.map +1 -1
  178. package/build/components/primitive/avatar_primitive.js +5 -5
  179. package/build/components/primitive/avatar_primitive.js.map +1 -1
  180. package/build/components/primitive/banner_primitive.d.ts +2 -2
  181. package/build/components/primitive/banner_primitive.d.ts.map +1 -1
  182. package/build/components/primitive/banner_primitive.js +8 -8
  183. package/build/components/primitive/banner_primitive.js.map +1 -1
  184. package/build/components/primitive/blank_state_primitive.d.ts +1 -1
  185. package/build/components/primitive/blank_state_primitive.d.ts.map +1 -1
  186. package/build/components/primitive/blank_state_primitive.js +2 -2
  187. package/build/components/primitive/blank_state_primitive.js.map +1 -1
  188. package/build/components/primitive/form_sheet.d.ts +2 -2
  189. package/build/components/primitive/form_sheet.d.ts.map +1 -1
  190. package/build/components/primitive/form_sheet.js +3 -3
  191. package/build/components/primitive/form_sheet.js.map +1 -1
  192. package/build/components/safe_area_modal.js +1 -1
  193. package/build/components/safe_area_modal.js.map +1 -1
  194. package/build/contexts/api_provider.js +4 -4
  195. package/build/contexts/api_provider.js.map +1 -1
  196. package/build/contexts/chat_context.d.ts +6 -6
  197. package/build/contexts/chat_context.d.ts.map +1 -1
  198. package/build/contexts/chat_context.js +2 -2
  199. package/build/contexts/chat_context.js.map +1 -1
  200. package/build/contexts/conversations_context.d.ts +2 -2
  201. package/build/contexts/conversations_context.d.ts.map +1 -1
  202. package/build/contexts/conversations_context.js +1 -1
  203. package/build/contexts/conversations_context.js.map +1 -1
  204. package/build/contexts/session_context.d.ts +3 -3
  205. package/build/contexts/session_context.d.ts.map +1 -1
  206. package/build/contexts/session_context.js +6 -6
  207. package/build/contexts/session_context.js.map +1 -1
  208. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +7 -7
  209. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
  210. package/build/hooks/groups/use_group_members_for_new_conversation.js +2 -2
  211. package/build/hooks/groups/use_group_members_for_new_conversation.js.map +1 -1
  212. package/build/hooks/groups/use_groups_conversation_create.d.ts +1 -1
  213. package/build/hooks/groups/use_groups_conversation_create.d.ts.map +1 -1
  214. package/build/hooks/groups/use_groups_conversation_create.js +2 -2
  215. package/build/hooks/groups/use_groups_conversation_create.js.map +1 -1
  216. package/build/hooks/services/use_find_or_create_services_conversation.d.ts +2 -2
  217. package/build/hooks/services/use_find_or_create_services_conversation.d.ts.map +1 -1
  218. package/build/hooks/services/use_find_or_create_services_conversation.js +2 -2
  219. package/build/hooks/services/use_find_or_create_services_conversation.js.map +1 -1
  220. package/build/hooks/services/use_services_team.d.ts +1 -1
  221. package/build/hooks/services/use_services_team.d.ts.map +1 -1
  222. package/build/hooks/services/use_services_team.js +1 -1
  223. package/build/hooks/services/use_services_team.js.map +1 -1
  224. package/build/hooks/services/use_team_members_for_new_conversation.d.ts +21 -21
  225. package/build/hooks/services/use_team_members_for_new_conversation.d.ts.map +1 -1
  226. package/build/hooks/services/use_team_members_for_new_conversation.js +1 -1
  227. package/build/hooks/services/use_team_members_for_new_conversation.js.map +1 -1
  228. package/build/hooks/services/use_team_plans.d.ts +1 -1
  229. package/build/hooks/services/use_team_plans.js +1 -1
  230. package/build/hooks/services/use_team_plans.js.map +1 -1
  231. package/build/hooks/use_api.d.ts +2 -2
  232. package/build/hooks/use_api.d.ts.map +1 -1
  233. package/build/hooks/use_api.js.map +1 -1
  234. package/build/hooks/use_api_client.d.ts +1 -1
  235. package/build/hooks/use_api_client.d.ts.map +1 -1
  236. package/build/hooks/use_api_client.js +3 -3
  237. package/build/hooks/use_api_client.js.map +1 -1
  238. package/build/hooks/use_async_storage.js +1 -1
  239. package/build/hooks/use_async_storage.js.map +1 -1
  240. package/build/hooks/use_attachment_uploader.d.ts +1 -1
  241. package/build/hooks/use_attachment_uploader.d.ts.map +1 -1
  242. package/build/hooks/use_attachment_uploader.js.map +1 -1
  243. package/build/hooks/use_broadcast_typing_status.js +1 -1
  244. package/build/hooks/use_broadcast_typing_status.js.map +1 -1
  245. package/build/hooks/use_chat_permissions.d.ts +21 -21
  246. package/build/hooks/use_chat_permissions.d.ts.map +1 -1
  247. package/build/hooks/use_chat_permissions.js.map +1 -1
  248. package/build/hooks/use_conversation.d.ts +5 -5
  249. package/build/hooks/use_conversation.d.ts.map +1 -1
  250. package/build/hooks/use_conversation.js +3 -3
  251. package/build/hooks/use_conversation.js.map +1 -1
  252. package/build/hooks/use_conversation_jolt_events.js +1 -1
  253. package/build/hooks/use_conversation_jolt_events.js.map +1 -1
  254. package/build/hooks/use_conversation_membership.d.ts +1 -1
  255. package/build/hooks/use_conversation_membership.d.ts.map +1 -1
  256. package/build/hooks/use_conversation_membership.js +2 -2
  257. package/build/hooks/use_conversation_membership.js.map +1 -1
  258. package/build/hooks/use_conversation_message.d.ts +1 -1
  259. package/build/hooks/use_conversation_message.d.ts.map +1 -1
  260. package/build/hooks/use_conversation_message.js +1 -1
  261. package/build/hooks/use_conversation_message.js.map +1 -1
  262. package/build/hooks/use_conversation_messages.d.ts +3 -3
  263. package/build/hooks/use_conversation_messages.d.ts.map +1 -1
  264. package/build/hooks/use_conversation_messages.js +1 -1
  265. package/build/hooks/use_conversation_messages.js.map +1 -1
  266. package/build/hooks/use_conversation_messages_jolt_events.js +6 -6
  267. package/build/hooks/use_conversation_messages_jolt_events.js.map +1 -1
  268. package/build/hooks/use_conversations.d.ts +2 -2
  269. package/build/hooks/use_conversations.d.ts.map +1 -1
  270. package/build/hooks/use_conversations.js +1 -1
  271. package/build/hooks/use_conversations.js.map +1 -1
  272. package/build/hooks/use_conversations_actions.d.ts +19 -19
  273. package/build/hooks/use_conversations_actions.d.ts.map +1 -1
  274. package/build/hooks/use_conversations_actions.js +1 -1
  275. package/build/hooks/use_conversations_actions.js.map +1 -1
  276. package/build/hooks/use_conversations_cache.d.ts +2 -2
  277. package/build/hooks/use_conversations_cache.d.ts.map +1 -1
  278. package/build/hooks/use_conversations_cache.js +2 -2
  279. package/build/hooks/use_conversations_cache.js.map +1 -1
  280. package/build/hooks/use_conversations_jolt_events.js +2 -2
  281. package/build/hooks/use_conversations_jolt_events.js.map +1 -1
  282. package/build/hooks/use_current_person.d.ts +1 -1
  283. package/build/hooks/use_current_person.d.ts.map +1 -1
  284. package/build/hooks/use_current_person.js.map +1 -1
  285. package/build/hooks/use_features.d.ts +1 -1
  286. package/build/hooks/use_features.d.ts.map +1 -1
  287. package/build/hooks/use_features.js +1 -1
  288. package/build/hooks/use_features.js.map +1 -1
  289. package/build/hooks/use_giphy.d.ts +1 -1
  290. package/build/hooks/use_giphy.d.ts.map +1 -1
  291. package/build/hooks/use_giphy.js +1 -1
  292. package/build/hooks/use_giphy.js.map +1 -1
  293. package/build/hooks/use_groups.d.ts +2 -2
  294. package/build/hooks/use_groups.d.ts.map +1 -1
  295. package/build/hooks/use_groups.js.map +1 -1
  296. package/build/hooks/use_groups_groups.d.ts +33 -33
  297. package/build/hooks/use_groups_groups.d.ts.map +1 -1
  298. package/build/hooks/use_groups_groups.js.map +1 -1
  299. package/build/hooks/use_jolt.js +2 -2
  300. package/build/hooks/use_jolt.js.map +1 -1
  301. package/build/hooks/use_live_relative_time.d.ts +1 -1
  302. package/build/hooks/use_live_relative_time.d.ts.map +1 -1
  303. package/build/hooks/use_live_relative_time.js +2 -2
  304. package/build/hooks/use_live_relative_time.js.map +1 -1
  305. package/build/hooks/use_mark_latest_message_read.d.ts +1 -1
  306. package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -1
  307. package/build/hooks/use_mark_latest_message_read.js.map +1 -1
  308. package/build/hooks/use_message_create_or_update.d.ts +2 -2
  309. package/build/hooks/use_message_create_or_update.d.ts.map +1 -1
  310. package/build/hooks/use_message_create_or_update.js +7 -7
  311. package/build/hooks/use_message_create_or_update.js.map +1 -1
  312. package/build/hooks/use_message_draft.d.ts +1 -1
  313. package/build/hooks/use_message_draft.d.ts.map +1 -1
  314. package/build/hooks/use_message_draft.js +1 -1
  315. package/build/hooks/use_message_draft.js.map +1 -1
  316. package/build/hooks/use_message_reaction_toggle.d.ts +2 -2
  317. package/build/hooks/use_message_reaction_toggle.d.ts.map +1 -1
  318. package/build/hooks/use_message_reaction_toggle.js +2 -2
  319. package/build/hooks/use_message_reaction_toggle.js.map +1 -1
  320. package/build/hooks/use_my_gender.js.map +1 -1
  321. package/build/hooks/use_organization.d.ts +5 -5
  322. package/build/hooks/use_organization.d.ts.map +1 -1
  323. package/build/hooks/use_organization.js.map +1 -1
  324. package/build/hooks/use_people_person.d.ts +1 -1
  325. package/build/hooks/use_people_person.d.ts.map +1 -1
  326. package/build/hooks/use_people_person.js.map +1 -1
  327. package/build/hooks/use_product_analytics.d.ts +1 -1
  328. package/build/hooks/use_product_analytics.d.ts.map +1 -1
  329. package/build/hooks/use_product_analytics.js +3 -3
  330. package/build/hooks/use_product_analytics.js.map +1 -1
  331. package/build/hooks/use_qualified_by_age.js +1 -1
  332. package/build/hooks/use_qualified_by_age.js.map +1 -1
  333. package/build/hooks/use_read_receipts.d.ts +2 -2
  334. package/build/hooks/use_read_receipts.d.ts.map +1 -1
  335. package/build/hooks/use_read_receipts.js.map +1 -1
  336. package/build/hooks/use_report_message.d.ts +1 -1
  337. package/build/hooks/use_report_message.d.ts.map +1 -1
  338. package/build/hooks/use_report_message.js +1 -1
  339. package/build/hooks/use_report_message.js.map +1 -1
  340. package/build/hooks/use_storage.d.ts +1 -1
  341. package/build/hooks/use_storage.d.ts.map +1 -1
  342. package/build/hooks/use_storage.js.map +1 -1
  343. package/build/hooks/use_submit_age_check.d.ts +1 -1
  344. package/build/hooks/use_submit_age_check.d.ts.map +1 -1
  345. package/build/hooks/use_submit_age_check.js +1 -1
  346. package/build/hooks/use_submit_age_check.js.map +1 -1
  347. package/build/hooks/use_suspense_api.d.ts +5 -5
  348. package/build/hooks/use_suspense_api.d.ts.map +1 -1
  349. package/build/hooks/use_suspense_api.js +2 -2
  350. package/build/hooks/use_suspense_api.js.map +1 -1
  351. package/build/hooks/use_teams.d.ts +1 -1
  352. package/build/hooks/use_teams.d.ts.map +1 -1
  353. package/build/hooks/use_teams.js.map +1 -1
  354. package/build/hooks/use_theme.d.ts +1 -1
  355. package/build/hooks/use_theme.d.ts.map +1 -1
  356. package/build/hooks/use_theme.js +1 -1
  357. package/build/hooks/use_theme.js.map +1 -1
  358. package/build/hooks/use_typing_indicators.d.ts.map +1 -1
  359. package/build/hooks/use_typing_indicators.js +1 -1
  360. package/build/hooks/use_typing_indicators.js.map +1 -1
  361. package/build/hooks/use_typing_status_cache.d.ts +1 -1
  362. package/build/hooks/use_typing_status_cache.d.ts.map +1 -1
  363. package/build/hooks/use_typing_status_cache.js.map +1 -1
  364. package/build/hooks/use_upload_client.d.ts +1 -1
  365. package/build/hooks/use_upload_client.d.ts.map +1 -1
  366. package/build/hooks/use_upload_client.js +3 -3
  367. package/build/hooks/use_upload_client.js.map +1 -1
  368. package/build/icons/font_awesome.js +1 -1
  369. package/build/icons/font_awesome.js.map +1 -1
  370. package/build/navigation/chat_access_gate.js +7 -7
  371. package/build/navigation/chat_access_gate.js.map +1 -1
  372. package/build/navigation/index.d.ts +25 -25
  373. package/build/navigation/index.d.ts.map +1 -1
  374. package/build/navigation/index.js +28 -28
  375. package/build/navigation/index.js.map +1 -1
  376. package/build/navigation/screenLayout.js +2 -2
  377. package/build/navigation/screenLayout.js.map +1 -1
  378. package/build/polyfills/events/Event.d.ts +0 -4
  379. package/build/polyfills/events/Event.d.ts.map +1 -1
  380. package/build/polyfills/events/Event.js +5 -1
  381. package/build/polyfills/events/Event.js.map +1 -1
  382. package/build/polyfills/events/EventTarget.d.ts +0 -3
  383. package/build/polyfills/events/EventTarget.d.ts.map +1 -1
  384. package/build/polyfills/events/EventTarget.js +1 -1
  385. package/build/polyfills/events/EventTarget.js.map +1 -1
  386. package/build/polyfills/events/internals/EventInternals.d.ts +2 -2
  387. package/build/polyfills/events/internals/EventInternals.d.ts.map +1 -1
  388. package/build/polyfills/events/internals/EventInternals.js.map +1 -1
  389. package/build/polyfills/events/internals/EventTargetInternals.d.ts +2 -2
  390. package/build/polyfills/events/internals/EventTargetInternals.d.ts.map +1 -1
  391. package/build/polyfills/events/internals/EventTargetInternals.js.map +1 -1
  392. package/build/screens/age_check/age_check_required_screen.js +8 -8
  393. package/build/screens/age_check/age_check_required_screen.js.map +1 -1
  394. package/build/screens/age_check/age_check_underage_screen.js +3 -3
  395. package/build/screens/age_check/age_check_underage_screen.js.map +1 -1
  396. package/build/screens/age_check/components/age_check_select_birthdate_modal.js +3 -3
  397. package/build/screens/age_check/components/age_check_select_birthdate_modal.js.map +1 -1
  398. package/build/screens/attachment_actions/attachment_actions_screen.js +1 -1
  399. package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
  400. package/build/screens/attachment_actions/hooks/useDeleteAttachment.js +3 -3
  401. package/build/screens/attachment_actions/hooks/useDeleteAttachment.js.map +1 -1
  402. package/build/screens/bug_report_screen.js +11 -11
  403. package/build/screens/bug_report_screen.js.map +1 -1
  404. package/build/screens/conversation/message_read_receipts_screen.js +4 -4
  405. package/build/screens/conversation/message_read_receipts_screen.js.map +1 -1
  406. package/build/screens/conversation_details_screen.js +8 -8
  407. package/build/screens/conversation_details_screen.js.map +1 -1
  408. package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +1 -1
  409. package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -1
  410. package/build/screens/conversation_filter_recipients/components/checkbox_row.js +3 -3
  411. package/build/screens/conversation_filter_recipients/components/checkbox_row.js.map +1 -1
  412. package/build/screens/conversation_filter_recipients/components/header_row.d.ts +1 -1
  413. package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +1 -1
  414. package/build/screens/conversation_filter_recipients/components/header_row.js +4 -4
  415. package/build/screens/conversation_filter_recipients/components/header_row.js.map +1 -1
  416. package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +1 -1
  417. package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js +6 -6
  418. package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js.map +1 -1
  419. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts +1 -1
  420. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts.map +1 -1
  421. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.js +1 -1
  422. package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.js.map +1 -1
  423. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts +22 -22
  424. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts.map +1 -1
  425. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.js +2 -2
  426. package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.js.map +1 -1
  427. package/build/screens/conversation_filter_recipients/types.d.ts +1 -1
  428. package/build/screens/conversation_filter_recipients/types.d.ts.map +1 -1
  429. package/build/screens/conversation_filter_recipients/types.js.map +1 -1
  430. package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
  431. package/build/screens/conversation_filters/components/conversation_filters.js +5 -5
  432. package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
  433. package/build/screens/conversation_filters/components/rows.d.ts +4 -4
  434. package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
  435. package/build/screens/conversation_filters/components/rows.js +5 -5
  436. package/build/screens/conversation_filters/components/rows.js.map +1 -1
  437. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts +1 -1
  438. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
  439. package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
  440. package/build/screens/conversation_filters/group_filters.d.ts.map +1 -1
  441. package/build/screens/conversation_filters/group_filters.js +1 -1
  442. package/build/screens/conversation_filters/group_filters.js.map +1 -1
  443. package/build/screens/conversation_filters/hooks/filters.d.ts +54 -54
  444. package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -1
  445. package/build/screens/conversation_filters/hooks/filters.js +3 -3
  446. package/build/screens/conversation_filters/hooks/filters.js.map +1 -1
  447. package/build/screens/conversation_filters/screen_props.d.ts +1 -1
  448. package/build/screens/conversation_filters/screen_props.d.ts.map +1 -1
  449. package/build/screens/conversation_filters/screen_props.js.map +1 -1
  450. package/build/screens/conversation_filters/team_filters.d.ts.map +1 -1
  451. package/build/screens/conversation_filters/team_filters.js +1 -1
  452. package/build/screens/conversation_filters/team_filters.js.map +1 -1
  453. package/build/screens/conversation_filters_screen.d.ts.map +1 -1
  454. package/build/screens/conversation_filters_screen.js +1 -1
  455. package/build/screens/conversation_filters_screen.js.map +1 -1
  456. package/build/screens/conversation_new/components/filter_by_plan.js +7 -7
  457. package/build/screens/conversation_new/components/filter_by_plan.js.map +1 -1
  458. package/build/screens/conversation_new/components/form_list.d.ts +1 -1
  459. package/build/screens/conversation_new/components/form_list.d.ts.map +1 -1
  460. package/build/screens/conversation_new/components/form_list.js +2 -2
  461. package/build/screens/conversation_new/components/form_list.js.map +1 -1
  462. package/build/screens/conversation_new/components/gender_filter_toggle.js +3 -3
  463. package/build/screens/conversation_new/components/gender_filter_toggle.js.map +1 -1
  464. package/build/screens/conversation_new/components/groups_form.d.ts +1 -1
  465. package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -1
  466. package/build/screens/conversation_new/components/groups_form.js +10 -10
  467. package/build/screens/conversation_new/components/groups_form.js.map +1 -1
  468. package/build/screens/conversation_new/components/services_form.d.ts +1 -1
  469. package/build/screens/conversation_new/components/services_form.d.ts.map +1 -1
  470. package/build/screens/conversation_new/components/services_form.js +8 -8
  471. package/build/screens/conversation_new/components/services_form.js.map +1 -1
  472. package/build/screens/conversation_new/components/source_app_error_card.js +1 -1
  473. package/build/screens/conversation_new/components/source_app_error_card.js.map +1 -1
  474. package/build/screens/conversation_new/conversation_new_screen.d.ts +3 -3
  475. package/build/screens/conversation_new/conversation_new_screen.d.ts.map +1 -1
  476. package/build/screens/conversation_new/conversation_new_screen.js.map +1 -1
  477. package/build/screens/conversation_notification_level_select_screen.js +5 -5
  478. package/build/screens/conversation_notification_level_select_screen.js.map +1 -1
  479. package/build/screens/conversation_screen.d.ts +3 -3
  480. package/build/screens/conversation_screen.d.ts.map +1 -1
  481. package/build/screens/conversation_screen.js +21 -21
  482. package/build/screens/conversation_screen.js.map +1 -1
  483. package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts +1 -1
  484. package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts.map +1 -1
  485. package/build/screens/conversation_select_recipients/components/groups_recipient_row.js +1 -1
  486. package/build/screens/conversation_select_recipients/components/groups_recipient_row.js.map +1 -1
  487. package/build/screens/conversation_select_recipients/components/recipient_link_row.js +3 -3
  488. package/build/screens/conversation_select_recipients/components/recipient_link_row.js.map +1 -1
  489. package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts +1 -1
  490. package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts.map +1 -1
  491. package/build/screens/conversation_select_recipients/components/restricted_group_row.js +3 -3
  492. package/build/screens/conversation_select_recipients/components/restricted_group_row.js.map +1 -1
  493. package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts +1 -1
  494. package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts.map +1 -1
  495. package/build/screens/conversation_select_recipients/components/team_recipient_row.js +1 -1
  496. package/build/screens/conversation_select_recipients/components/team_recipient_row.js.map +1 -1
  497. package/build/screens/conversation_select_recipients/components/view_more_link_row.js +1 -1
  498. package/build/screens/conversation_select_recipients/components/view_more_link_row.js.map +1 -1
  499. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts.map +1 -1
  500. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +4 -4
  501. package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js.map +1 -1
  502. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts.map +1 -1
  503. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js +2 -2
  504. package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js.map +1 -1
  505. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts.map +1 -1
  506. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js +4 -4
  507. package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js.map +1 -1
  508. package/build/screens/conversation_select_recipients/types/screen_props.d.ts +2 -2
  509. package/build/screens/conversation_select_recipients/types/screen_props.d.ts.map +1 -1
  510. package/build/screens/conversation_select_recipients/types/screen_props.js.map +1 -1
  511. package/build/screens/conversation_select_type_screen.d.ts +2 -2
  512. package/build/screens/conversation_select_type_screen.d.ts.map +1 -1
  513. package/build/screens/conversation_select_type_screen.js +2 -2
  514. package/build/screens/conversation_select_type_screen.js.map +1 -1
  515. package/build/screens/conversations/components/chat_group_badge.js +2 -2
  516. package/build/screens/conversations/components/chat_group_badge.js.map +1 -1
  517. package/build/screens/conversations/components/list_header_action_button.d.ts +1 -1
  518. package/build/screens/conversations/components/list_header_action_button.d.ts.map +1 -1
  519. package/build/screens/conversations/components/list_header_action_button.js +4 -4
  520. package/build/screens/conversations/components/list_header_action_button.js.map +1 -1
  521. package/build/screens/conversations/components/list_header_component.js +9 -9
  522. package/build/screens/conversations/components/list_header_component.js.map +1 -1
  523. package/build/screens/conversations/conversations_screen.d.ts +2 -2
  524. package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
  525. package/build/screens/conversations/conversations_screen.js +3 -3
  526. package/build/screens/conversations/conversations_screen.js.map +1 -1
  527. package/build/screens/design_system_screen.js +6 -6
  528. package/build/screens/design_system_screen.js.map +1 -1
  529. package/build/screens/get_help_screen.js +4 -4
  530. package/build/screens/get_help_screen.js.map +1 -1
  531. package/build/screens/group_notification_level_select_screen.js +3 -3
  532. package/build/screens/group_notification_level_select_screen.js.map +1 -1
  533. package/build/screens/group_notification_settings_screen.js +3 -3
  534. package/build/screens/group_notification_settings_screen.js.map +1 -1
  535. package/build/screens/message_actions_screen.js +10 -10
  536. package/build/screens/message_actions_screen.js.map +1 -1
  537. package/build/screens/message_report/components/message_preview.d.ts +1 -1
  538. package/build/screens/message_report/components/message_preview.d.ts.map +1 -1
  539. package/build/screens/message_report/components/message_preview.js +2 -2
  540. package/build/screens/message_report/components/message_preview.js.map +1 -1
  541. package/build/screens/message_report/components/report_reason_list.d.ts +1 -1
  542. package/build/screens/message_report/components/report_reason_list.d.ts.map +1 -1
  543. package/build/screens/message_report/components/report_reason_list.js +4 -4
  544. package/build/screens/message_report/components/report_reason_list.js.map +1 -1
  545. package/build/screens/message_report_screen.js +7 -7
  546. package/build/screens/message_report_screen.js.map +1 -1
  547. package/build/screens/notification_settings/hooks/groups.d.ts +7 -7
  548. package/build/screens/notification_settings/hooks/groups.d.ts.map +1 -1
  549. package/build/screens/notification_settings/hooks/groups.js +4 -4
  550. package/build/screens/notification_settings/hooks/groups.js.map +1 -1
  551. package/build/screens/notification_settings_screen.js +4 -4
  552. package/build/screens/notification_settings_screen.js.map +1 -1
  553. package/build/screens/preferred_app/hooks/use_chat_types.d.ts +5 -5
  554. package/build/screens/preferred_app/hooks/use_chat_types.d.ts.map +1 -1
  555. package/build/screens/preferred_app/hooks/use_chat_types.js +1 -1
  556. package/build/screens/preferred_app/hooks/use_chat_types.js.map +1 -1
  557. package/build/screens/preferred_app_selection_screen.d.ts.map +1 -1
  558. package/build/screens/preferred_app_selection_screen.js +7 -7
  559. package/build/screens/preferred_app_selection_screen.js.map +1 -1
  560. package/build/screens/reactions_screen.js +7 -7
  561. package/build/screens/reactions_screen.js.map +1 -1
  562. package/build/screens/send_giphy_screen.js +8 -8
  563. package/build/screens/send_giphy_screen.js.map +1 -1
  564. package/build/screens/team_conversation_screen.js +3 -3
  565. package/build/screens/team_conversation_screen.js.map +1 -1
  566. package/build/types/jolt_events/message_events.d.ts +1 -1
  567. package/build/types/jolt_events/message_events.d.ts.map +1 -1
  568. package/build/types/jolt_events/message_events.js.map +1 -1
  569. package/build/types/jolt_events/reaction_events.d.ts +1 -1
  570. package/build/types/jolt_events/reaction_events.d.ts.map +1 -1
  571. package/build/types/jolt_events/reaction_events.js.map +1 -1
  572. package/build/types/resources/app_grant.d.ts +1 -1
  573. package/build/types/resources/app_grant.d.ts.map +1 -1
  574. package/build/types/resources/app_grant.js.map +1 -1
  575. package/build/types/resources/conversation_membership.d.ts +1 -1
  576. package/build/types/resources/conversation_membership.d.ts.map +1 -1
  577. package/build/types/resources/conversation_membership.js.map +1 -1
  578. package/build/types/resources/group_membership.d.ts +1 -1
  579. package/build/types/resources/group_membership.d.ts.map +1 -1
  580. package/build/types/resources/group_membership.js.map +1 -1
  581. package/build/types/resources/groups/groups_group_resource.d.ts +1 -1
  582. package/build/types/resources/groups/groups_group_resource.d.ts.map +1 -1
  583. package/build/types/resources/groups/groups_group_resource.js.map +1 -1
  584. package/build/types/resources/organization.d.ts +1 -1
  585. package/build/types/resources/organization.d.ts.map +1 -1
  586. package/build/types/resources/organization.js.map +1 -1
  587. package/build/types/resources/person.d.ts +1 -1
  588. package/build/types/resources/person.d.ts.map +1 -1
  589. package/build/types/resources/person.js.map +1 -1
  590. package/build/types/resources/services/chat_resource.d.ts +1 -1
  591. package/build/types/resources/services/chat_resource.d.ts.map +1 -1
  592. package/build/types/resources/services/chat_resource.js.map +1 -1
  593. package/build/types/resources/services/team_resource.d.ts +1 -1
  594. package/build/types/resources/services/team_resource.d.ts.map +1 -1
  595. package/build/types/resources/services/team_resource.js.map +1 -1
  596. package/build/utils/cache/messages_cache.d.ts +3 -3
  597. package/build/utils/cache/messages_cache.d.ts.map +1 -1
  598. package/build/utils/cache/messages_cache.js +3 -3
  599. package/build/utils/cache/messages_cache.js.map +1 -1
  600. package/build/utils/cache/optimistically_create_message.d.ts +2 -2
  601. package/build/utils/cache/optimistically_create_message.d.ts.map +1 -1
  602. package/build/utils/cache/optimistically_create_message.js +4 -4
  603. package/build/utils/cache/optimistically_create_message.js.map +1 -1
  604. package/build/utils/cache/optimistically_update_message.d.ts +1 -1
  605. package/build/utils/cache/optimistically_update_message.d.ts.map +1 -1
  606. package/build/utils/cache/optimistically_update_message.js +2 -2
  607. package/build/utils/cache/optimistically_update_message.js.map +1 -1
  608. package/build/utils/cache/page_mutations.d.ts +5 -5
  609. package/build/utils/cache/page_mutations.d.ts.map +1 -1
  610. package/build/utils/cache/page_mutations.js.map +1 -1
  611. package/build/utils/client/client.d.ts +1 -1
  612. package/build/utils/client/client.d.ts.map +1 -1
  613. package/build/utils/client/client.js.map +1 -1
  614. package/build/utils/convert_attachments_for_create.d.ts +2 -2
  615. package/build/utils/convert_attachments_for_create.d.ts.map +1 -1
  616. package/build/utils/convert_attachments_for_create.js.map +1 -1
  617. package/build/utils/destructure_chat_group_graph_id.d.ts +2 -2
  618. package/build/utils/destructure_chat_group_graph_id.d.ts.map +1 -1
  619. package/build/utils/destructure_chat_group_graph_id.js.map +1 -1
  620. package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts +2 -2
  621. package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts.map +1 -1
  622. package/build/utils/jolt/transform_message_event_data_to_message_resource.js +1 -1
  623. package/build/utils/jolt/transform_message_event_data_to_message_resource.js.map +1 -1
  624. package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts +3 -3
  625. package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts.map +1 -1
  626. package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.js.map +1 -1
  627. package/build/utils/performance_tracking.d.ts +1 -1
  628. package/build/utils/performance_tracking.d.ts.map +1 -1
  629. package/build/utils/performance_tracking.js.map +1 -1
  630. package/build/utils/reaction_constants.d.ts +1 -1
  631. package/build/utils/reaction_constants.d.ts.map +1 -1
  632. package/build/utils/reaction_constants.js.map +1 -1
  633. package/build/utils/request/conversation.d.ts +2 -2
  634. package/build/utils/request/conversation.d.ts.map +1 -1
  635. package/build/utils/request/conversation.js.map +1 -1
  636. package/build/utils/request/get_features.d.ts +1 -1
  637. package/build/utils/request/get_features.d.ts.map +1 -1
  638. package/build/utils/request/get_features.js +1 -1
  639. package/build/utils/request/get_features.js.map +1 -1
  640. package/build/utils/request/get_message.d.ts +1 -1
  641. package/build/utils/request/get_message.d.ts.map +1 -1
  642. package/build/utils/request/get_message.js +1 -1
  643. package/build/utils/request/get_message.js.map +1 -1
  644. package/build/utils/request/get_messages.d.ts +1 -1
  645. package/build/utils/request/get_messages.d.ts.map +1 -1
  646. package/build/utils/request/get_messages.js +1 -1
  647. package/build/utils/request/get_messages.js.map +1 -1
  648. package/build/utils/response_error.d.ts +1 -1
  649. package/build/utils/response_error.d.ts.map +1 -1
  650. package/build/utils/response_error.js.map +1 -1
  651. package/build/utils/session.d.ts +1 -1
  652. package/build/utils/session.d.ts.map +1 -1
  653. package/build/utils/session.js.map +1 -1
  654. package/build/utils/session_manager.d.ts +1 -1
  655. package/build/utils/session_manager.d.ts.map +1 -1
  656. package/build/utils/session_manager.js.map +1 -1
  657. package/build/utils/styles.js +1 -1
  658. package/build/utils/styles.js.map +1 -1
  659. package/build/utils/theme.d.ts +1 -1
  660. package/build/utils/theme.d.ts.map +1 -1
  661. package/build/utils/theme.js +2 -2
  662. package/build/utils/theme.js.map +1 -1
  663. package/build/utils/upload_uri.d.ts +1 -1
  664. package/package.json +2 -3
  665. package/src/__tests__/contexts/session_context.tsx +5 -5
  666. package/src/__tests__/event-polyfill.test.ts +3 -3
  667. package/src/__tests__/hooks/useTheme.tsx +2 -2
  668. package/src/__tests__/hooks/use_async_storage.test.tsx +1 -1
  669. package/src/__tests__/hooks/use_conversation_messages.ts +2 -2
  670. package/src/__tests__/hooks/use_font_scale.test.ts +1 -1
  671. package/src/__tests__/utils/cache/page_mutations.ts +1 -1
  672. package/src/__tests__/utils/client.ts +5 -5
  673. package/src/__tests__/utils/native_adapters/configuration.ts +4 -4
  674. package/src/__tests__/utils/parse_simple_markdown.ts +1 -1
  675. package/src/__tests__/utils/pluralize.tsx +1 -1
  676. package/src/__tests__/utils/session.ts +2 -2
  677. package/src/__tests__/utils/uri.ts +1 -1
  678. package/src/__utils__/handlers.ts +1 -1
  679. package/src/components/conversation/attachments/attachment_card.tsx +3 -3
  680. package/src/components/conversation/attachments/attachment_deleting_overlay.tsx +2 -2
  681. package/src/components/conversation/attachments/audio_attachment.tsx +4 -4
  682. package/src/components/conversation/attachments/expanded_link.tsx +4 -4
  683. package/src/components/conversation/attachments/generic_file_attachment.tsx +5 -5
  684. package/src/components/conversation/attachments/giphy_attachment.tsx +5 -5
  685. package/src/components/conversation/attachments/image_attachment.tsx +6 -6
  686. package/src/components/conversation/attachments/video_attachment.tsx +5 -5
  687. package/src/components/conversation/empty_conversation_blank_state.tsx +1 -1
  688. package/src/components/conversation/jump_to_bottom_button.tsx +3 -3
  689. package/src/components/conversation/message.tsx +19 -19
  690. package/src/components/conversation/message_attachments.tsx +5 -5
  691. package/src/components/conversation/message_form/message_form_attachment_image.tsx +2 -2
  692. package/src/components/conversation/message_form/message_form_attachment_video.tsx +2 -2
  693. package/src/components/conversation/message_form.tsx +17 -17
  694. package/src/components/conversation/message_markdown.tsx +3 -3
  695. package/src/components/conversation/message_reaction.tsx +8 -8
  696. package/src/components/conversation/message_read_receipts.tsx +3 -3
  697. package/src/components/conversation/messages_disabled_banners.tsx +2 -2
  698. package/src/components/conversation/reply_connectors.tsx +3 -3
  699. package/src/components/conversation/reply_shadow_message.tsx +9 -9
  700. package/src/components/conversation/typing_indicator.tsx +3 -3
  701. package/src/components/conversations/conversation_actions.tsx +9 -6
  702. package/src/components/conversations/conversation_preview.tsx +9 -4
  703. package/src/components/conversations/conversations.tsx +6 -6
  704. package/src/components/conversations/mute_indicator.tsx +3 -3
  705. package/src/components/conversations/swipeable_toggle_button.tsx +5 -5
  706. package/src/components/conversations/unread_count_badge.tsx +3 -3
  707. package/src/components/display/action_button.tsx +2 -2
  708. package/src/components/display/avatar.tsx +2 -2
  709. package/src/components/display/avatar_group.tsx +2 -2
  710. package/src/components/display/badge.tsx +3 -3
  711. package/src/components/display/banner.tsx +1 -1
  712. package/src/components/display/banner_collapsible.tsx +1 -1
  713. package/src/components/display/button.tsx +3 -3
  714. package/src/components/display/child_notice.tsx +3 -3
  715. package/src/components/display/heading.tsx +3 -3
  716. package/src/components/display/icon.tsx +1 -1
  717. package/src/components/display/icon_button.tsx +2 -2
  718. package/src/components/display/image.tsx +1 -1
  719. package/src/components/display/image_attachment_preview.tsx +2 -2
  720. package/src/components/display/keyboard_view.tsx +1 -1
  721. package/src/components/display/person.tsx +2 -2
  722. package/src/components/display/platform_modal_header_buttons.tsx +1 -1
  723. package/src/components/display/pressable_row.tsx +1 -1
  724. package/src/components/display/spinner.tsx +1 -1
  725. package/src/components/display/switch.tsx +1 -1
  726. package/src/components/display/tabs.tsx +1 -1
  727. package/src/components/display/text.tsx +2 -2
  728. package/src/components/display/text_button.tsx +2 -2
  729. package/src/components/display/text_inline_button.tsx +2 -2
  730. package/src/components/display/toggle_button.tsx +6 -6
  731. package/src/components/display/utils/button_colors.ts +1 -1
  732. package/src/components/display/utils/status_colors.ts +1 -1
  733. package/src/components/display/video_attachment_preview.tsx +3 -3
  734. package/src/components/group_conversation_list.tsx +5 -5
  735. package/src/components/page/error_boundary.tsx +2 -2
  736. package/src/components/page/loading.tsx +1 -1
  737. package/src/components/primitive/avatar_primitive.tsx +5 -5
  738. package/src/components/primitive/banner_primitive.tsx +11 -11
  739. package/src/components/primitive/blank_state_primitive.tsx +2 -2
  740. package/src/components/primitive/form_sheet.tsx +4 -4
  741. package/src/components/safe_area_modal.tsx +1 -1
  742. package/src/contexts/api_provider.tsx +4 -4
  743. package/src/contexts/chat_context.tsx +6 -6
  744. package/src/contexts/conversations_context.tsx +3 -3
  745. package/src/contexts/session_context.tsx +9 -9
  746. package/src/hooks/groups/use_group_members_for_new_conversation.ts +4 -4
  747. package/src/hooks/groups/use_groups_conversation_create.ts +3 -3
  748. package/src/hooks/services/use_find_or_create_services_conversation.ts +3 -3
  749. package/src/hooks/services/use_services_team.ts +2 -2
  750. package/src/hooks/services/use_team_members_for_new_conversation.ts +2 -2
  751. package/src/hooks/services/use_team_plans.ts +2 -2
  752. package/src/hooks/use_api.ts +2 -2
  753. package/src/hooks/use_api_client.ts +3 -3
  754. package/src/hooks/use_async_storage.ts +1 -1
  755. package/src/hooks/use_attachment_uploader.ts +5 -5
  756. package/src/hooks/use_broadcast_typing_status.ts +1 -1
  757. package/src/hooks/use_chat_permissions.ts +1 -1
  758. package/src/hooks/use_conversation.ts +4 -4
  759. package/src/hooks/use_conversation_jolt_events.ts +3 -3
  760. package/src/hooks/use_conversation_membership.ts +3 -3
  761. package/src/hooks/use_conversation_message.ts +2 -2
  762. package/src/hooks/use_conversation_messages.ts +2 -2
  763. package/src/hooks/use_conversation_messages_jolt_events.ts +14 -14
  764. package/src/hooks/use_conversations.ts +2 -2
  765. package/src/hooks/use_conversations_actions.ts +2 -2
  766. package/src/hooks/use_conversations_cache.ts +5 -5
  767. package/src/hooks/use_conversations_jolt_events.ts +4 -4
  768. package/src/hooks/use_current_person.ts +2 -2
  769. package/src/hooks/use_features.ts +3 -3
  770. package/src/hooks/use_giphy.ts +2 -2
  771. package/src/hooks/use_groups.ts +2 -2
  772. package/src/hooks/use_groups_groups.ts +1 -1
  773. package/src/hooks/use_jolt.ts +3 -3
  774. package/src/hooks/use_live_relative_time.ts +2 -2
  775. package/src/hooks/use_mark_latest_message_read.ts +1 -1
  776. package/src/hooks/use_message_create_or_update.ts +11 -11
  777. package/src/hooks/use_message_draft.ts +2 -2
  778. package/src/hooks/use_message_reaction_toggle.ts +4 -4
  779. package/src/hooks/use_my_gender.ts +1 -1
  780. package/src/hooks/use_organization.ts +1 -1
  781. package/src/hooks/use_people_person.ts +1 -1
  782. package/src/hooks/use_product_analytics.ts +5 -5
  783. package/src/hooks/use_qualified_by_age.ts +1 -1
  784. package/src/hooks/use_read_receipts.ts +1 -1
  785. package/src/hooks/use_report_message.ts +2 -2
  786. package/src/hooks/use_storage.ts +1 -1
  787. package/src/hooks/use_submit_age_check.ts +2 -2
  788. package/src/hooks/use_suspense_api.ts +5 -5
  789. package/src/hooks/use_teams.ts +1 -1
  790. package/src/hooks/use_theme.tsx +2 -2
  791. package/src/hooks/use_typing_indicators.ts +1 -1
  792. package/src/hooks/use_typing_status_cache.ts +1 -1
  793. package/src/hooks/use_upload_client.ts +3 -3
  794. package/src/icons/font_awesome.ts +1 -1
  795. package/src/navigation/chat_access_gate.tsx +7 -7
  796. package/src/navigation/index.tsx +34 -31
  797. package/src/navigation/screenLayout.tsx +2 -2
  798. package/src/polyfills/events/Event.ts +1 -1
  799. package/src/polyfills/events/EventTarget.ts +1 -1
  800. package/src/polyfills/events/internals/EventInternals.ts +2 -2
  801. package/src/polyfills/events/internals/EventTargetInternals.ts +2 -2
  802. package/src/screens/age_check/age_check_required_screen.tsx +8 -8
  803. package/src/screens/age_check/age_check_underage_screen.tsx +3 -3
  804. package/src/screens/age_check/components/age_check_select_birthdate_modal.tsx +3 -3
  805. package/src/screens/attachment_actions/attachment_actions_screen.tsx +1 -1
  806. package/src/screens/attachment_actions/hooks/useDeleteAttachment.tsx +3 -3
  807. package/src/screens/bug_report_screen.tsx +11 -11
  808. package/src/screens/conversation/message_read_receipts_screen.tsx +5 -5
  809. package/src/screens/conversation_details_screen.tsx +10 -10
  810. package/src/screens/conversation_filter_recipients/components/checkbox_row.tsx +4 -8
  811. package/src/screens/conversation_filter_recipients/components/header_row.tsx +5 -5
  812. package/src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx +6 -6
  813. package/src/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.tsx +1 -5
  814. package/src/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.ts +3 -6
  815. package/src/screens/conversation_filter_recipients/types.tsx +1 -1
  816. package/src/screens/conversation_filters/components/conversation_filters.tsx +5 -8
  817. package/src/screens/conversation_filters/components/rows.tsx +14 -9
  818. package/src/screens/conversation_filters/context/conversation_filter_context.tsx +1 -4
  819. package/src/screens/conversation_filters/group_filters.tsx +1 -1
  820. package/src/screens/conversation_filters/hooks/filters.ts +5 -5
  821. package/src/screens/conversation_filters/screen_props.ts +1 -1
  822. package/src/screens/conversation_filters/team_filters.tsx +1 -1
  823. package/src/screens/conversation_filters_screen.tsx +1 -1
  824. package/src/screens/conversation_new/components/filter_by_plan.tsx +7 -7
  825. package/src/screens/conversation_new/components/form_list.tsx +3 -3
  826. package/src/screens/conversation_new/components/gender_filter_toggle.tsx +3 -3
  827. package/src/screens/conversation_new/components/groups_form.tsx +14 -14
  828. package/src/screens/conversation_new/components/services_form.tsx +10 -10
  829. package/src/screens/conversation_new/components/source_app_error_card.tsx +1 -1
  830. package/src/screens/conversation_new/conversation_new_screen.tsx +3 -3
  831. package/src/screens/conversation_notification_level_select_screen.tsx +6 -6
  832. package/src/screens/conversation_screen.tsx +23 -23
  833. package/src/screens/conversation_select_recipients/components/groups_recipient_row.tsx +2 -2
  834. package/src/screens/conversation_select_recipients/components/recipient_link_row.tsx +3 -3
  835. package/src/screens/conversation_select_recipients/components/restricted_group_row.tsx +4 -4
  836. package/src/screens/conversation_select_recipients/components/team_recipient_row.tsx +2 -2
  837. package/src/screens/conversation_select_recipients/components/view_more_link_row.tsx +1 -1
  838. package/src/screens/conversation_select_recipients/conversation_new_entry_screen.tsx +4 -4
  839. package/src/screens/conversation_select_recipients/conversation_select_group_recipients_screen.tsx +3 -3
  840. package/src/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.tsx +4 -7
  841. package/src/screens/conversation_select_recipients/types/screen_props.tsx +2 -2
  842. package/src/screens/conversation_select_type_screen.tsx +4 -4
  843. package/src/screens/conversations/components/chat_group_badge.tsx +4 -4
  844. package/src/screens/conversations/components/list_header_action_button.tsx +4 -4
  845. package/src/screens/conversations/components/list_header_component.tsx +10 -10
  846. package/src/screens/conversations/conversations_screen.tsx +5 -5
  847. package/src/screens/design_system_screen.tsx +6 -6
  848. package/src/screens/get_help_screen.tsx +5 -5
  849. package/src/screens/group_notification_level_select_screen.tsx +3 -3
  850. package/src/screens/group_notification_settings_screen.tsx +3 -3
  851. package/src/screens/message_actions_screen.tsx +12 -12
  852. package/src/screens/message_report/components/message_preview.tsx +3 -3
  853. package/src/screens/message_report/components/report_reason_list.tsx +7 -4
  854. package/src/screens/message_report_screen.tsx +11 -11
  855. package/src/screens/notification_settings/hooks/groups.ts +6 -6
  856. package/src/screens/notification_settings_screen.tsx +4 -4
  857. package/src/screens/preferred_app/hooks/use_chat_types.ts +2 -2
  858. package/src/screens/preferred_app_selection_screen.tsx +7 -7
  859. package/src/screens/reactions_screen.tsx +9 -9
  860. package/src/screens/send_giphy_screen.tsx +8 -8
  861. package/src/screens/team_conversation_screen.tsx +3 -3
  862. package/src/types/jolt_events/message_events.ts +1 -1
  863. package/src/types/jolt_events/reaction_events.ts +1 -1
  864. package/src/types/resources/app_grant.ts +1 -1
  865. package/src/types/resources/conversation_membership.ts +1 -1
  866. package/src/types/resources/group_membership.ts +1 -1
  867. package/src/types/resources/groups/groups_group_resource.ts +1 -1
  868. package/src/types/resources/organization.ts +1 -1
  869. package/src/types/resources/person.ts +1 -1
  870. package/src/types/resources/services/chat_resource.ts +1 -1
  871. package/src/types/resources/services/team_resource.ts +1 -1
  872. package/src/utils/__tests__/convert_attachments_for_create.test.ts +3 -3
  873. package/src/utils/__tests__/session_manager.test.ts +3 -3
  874. package/src/utils/__tests__/sha_256.test.ts +1 -1
  875. package/src/utils/cache/messages_cache.ts +5 -5
  876. package/src/utils/cache/optimistically_create_message.ts +7 -7
  877. package/src/utils/cache/optimistically_update_message.ts +3 -3
  878. package/src/utils/cache/page_mutations.ts +1 -1
  879. package/src/utils/client/client.ts +1 -1
  880. package/src/utils/convert_attachments_for_create.ts +2 -2
  881. package/src/utils/destructure_chat_group_graph_id.ts +2 -2
  882. package/src/utils/jolt/transform_message_event_data_to_message_resource.ts +4 -4
  883. package/src/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.ts +3 -3
  884. package/src/utils/performance_tracking.ts +1 -1
  885. package/src/utils/reaction_constants.ts +1 -1
  886. package/src/utils/request/conversation.ts +2 -2
  887. package/src/utils/request/get_features.ts +1 -1
  888. package/src/utils/request/get_message.ts +1 -1
  889. package/src/utils/request/get_messages.ts +1 -1
  890. package/src/utils/response_error.ts +1 -1
  891. package/src/utils/session.ts +1 -1
  892. package/src/utils/session_manager.ts +1 -1
  893. package/src/utils/styles.ts +1 -1
  894. package/src/utils/theme.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  import { type ViewStyle } from 'react-native';
2
- import { SetTeamFilters, TeamProps } from '@/screens/conversation_filter_recipients/types';
2
+ import { SetTeamFilters, TeamProps } from '../types';
3
3
  interface TeamRowProps {
4
4
  data: TeamProps;
5
5
  style?: ViewStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox_row.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/components/checkbox_row.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAG1E,OAAO,EAEL,cAAc,EACd,SAAS,EACV,MAAM,gDAAgD,CAAA;AAGvD,UAAU,YAAY;IACpB,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,eAAO,MAAM,WAAW,8DAKrB,YAAY,gCAgCd,CAAA"}
1
+ {"version":3,"file":"checkbox_row.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/components/checkbox_row.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAI1E,OAAO,EAA2C,cAAc,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAE7F,UAAU,YAAY;IACpB,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,eAAO,MAAM,WAAW,8DAKrB,YAAY,gCAgCd,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { useRoute } from '@react-navigation/native';
2
2
  import { Pressable, View, StyleSheet } from 'react-native';
3
- import { Icon, Text } from '@/components';
4
- import { useTheme } from '@/hooks';
5
- import { tokens } from '@/vendor/tapestry/tokens';
3
+ import { Icon, Text } from '../../../components';
4
+ import { useTheme } from '../../../hooks';
5
+ import { tokens } from '../../../vendor/tapestry/tokens';
6
6
  export const CheckboxRow = ({ data, style, accessibilityLabelledBy, setTeamFilters, }) => {
7
7
  const styles = useStyles();
8
8
  const route = useRoute();
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox_row.js","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/components/checkbox_row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAA;AAC1E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAMlC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AASjD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,IAAI,EACJ,KAAK,EACL,uBAAuB,EACvB,cAAc,GACD,EAAE,EAAE;IACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,MAAM,KAAK,GAAG,QAAQ,EAA+D,CAAA;IAErF,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;IACjC,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC,MAAM,CAAA;IAEjD,MAAM,OAAO,GAAG,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK,CAAA;IACzD,M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kB,CAAA;IAElF,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CACxB;MAAA,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,EAAG,CAC/E;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC;AAED,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAA;IAE7B,MAAM,kBAAkB,GAAc;QACpC,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB,CAAA;IAED,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,WAAW,EAAE;YACX,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,QAAQ;YACpB,GAAG,EAAE,EAAE;YACP,OAAO,EAAE,EAAE;YACX,cAAc,EAAE,CAAC;YACjB,cAAc,EAAE,MAAM,CAAC,qBAAqB;YAC5C,eAAe,EAAE,MAAM,CAAC,eAAe;SACxC;QACD,kBAAkB,EAAE;YAClB,OAAO,EAAE,GAAG;SACb;QACD,KAAK,EAAE;YACL,IAAI,EAAE,CAAC;SACR;QACD,gBAAgB,EAAE;YAChB,GAAG,kBAAkB;YACrB,eAAe,EAAE,MAAM,CAAC,iBAAiB;SAC1C;QACD,kBAAkB,EAAE;YAClB,GAAG,kBAAkB;YACrB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,MAAM,CAAC,wBAAwB;SAC7C;QACD,WAAW,EAAE;YACX,KAAK,EAAE,MAAM,CAAC,oBAAoB;SACnC;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { type RouteProp, useRoute } from '@react-navigation/native'\nimport { Pressable, View, StyleSheet, type ViewStyle } from 'react-native'\nimport { Icon, Text } from '@/components'\nimport { useTheme } from '@/hooks'\nimport {\n ConversationFilterRecipientsScreenProps,\n SetTeamFilters,\n TeamProps,\n} from '@/screens/conversation_filter_recipients/types'\nimport { tokens } from '@/vendor/tapestry/tokens'\n\ninterface TeamRowProps {\n data: TeamProps\n style?: ViewStyle\n accessibilityLabelledBy: string\n setTeamFilters: SetTeamFilters\n}\n\nexport const CheckboxRow = ({\n data,\n style,\n accessibilityLabelledBy,\n setTeamFilters,\n}: TeamRowProps) => {\n const styles = useStyles()\n const route = useRoute<RouteProp<ConversationFilterRecipientsScreenProps['route']>>()\n\n const { teamId, teamName } = data\n const { team_ids: currentTeamIds } = route.params\n\n const checked = currentTeamIds?.includes(teamId) ?? false\n const newTeamIdAdded = [...(currentTeamIds ?? []), teamId]\n const newTeamIdRemoved = (currentTeamIds ?? []).filter(currentId => currentId !== teamId)\n\n const handlePress = () => {\n setTeamFilters({\n team_ids: checked ? newTeamIdRemoved : newTeamIdAdded,\n })\n }\n\n return (\n <Pressable\n style={({ pressed }) => [styles.checkboxRow, pressed && styles.checkboxRowPressed, style]}\n onPress={handlePress}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked }}\n accessibilityLabelledBy={accessibilityLabelledBy}\n accessibilityLabel={`${teamName} team`}\n >\n <CheckboxIcon checked={checked} />\n <Text style={styles.label} numberOfLines={2}>\n {teamName}\n </Text>\n </Pressable>\n )\n}\n\nfunction CheckboxIcon({ checked }: { checked: boolean }) {\n const styles = useStyles()\n const checkedStyle = checked ? styles.checkedContainer : styles.uncheckedContainer\n\n return (\n <View style={checkedStyle}>\n {checked && <Icon name=\"general.thickCheckmark\" style={styles.checkedIcon} />}\n </View>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n\n const baseCheckboxStyles: ViewStyle = {\n width: 20,\n height: 20,\n borderRadius: 40,\n alignItems: 'center',\n justifyContent: 'center',\n }\n\n return StyleSheet.create({\n checkboxRow: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 12,\n padding: 16,\n borderTopWidth: 1,\n borderTopColor: colors.borderColorDefaultDim,\n backgroundColor: colors.surfaceColor100,\n },\n checkboxRowPressed: {\n opacity: 0.5,\n },\n label: {\n flex: 1,\n },\n checkedContainer: {\n ...baseCheckboxStyles,\n backgroundColor: colors.statusSuccessIcon,\n },\n uncheckedContainer: {\n ...baseCheckboxStyles,\n borderWidth: 2,\n borderColor: colors.borderColorDefaultDarker,\n },\n checkedIcon: {\n color: tokens.colorNeutral100White,\n },\n })\n}\n"]}
1
+ {"version":3,"file":"checkbox_row.js","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/components/checkbox_row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAA;AAC1E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAUxD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,IAAI,EACJ,KAAK,EACL,uBAAuB,EACvB,cAAc,GACD,EAAE,EAAE;IACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,MAAM,KAAK,GAAG,QAAQ,EAA+D,CAAA;IAErF,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;IACjC,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC,MAAM,CAAA;IAEjD,MAAM,OAAO,GAAG,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK,CAAA;IACzD,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,CAAA;IAC1D,MAAM,gBAAgB,GA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AC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,EAAG,CAC/E;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC;AAED,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAA;IAE7B,MAAM,kBAAkB,GAAc;QACpC,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB,CAAA;IAED,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,WAAW,EAAE;YACX,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,QAAQ;YACpB,GAAG,EAAE,EAAE;YACP,OAAO,EAAE,EAAE;YACX,cAAc,EAAE,CAAC;YACjB,cAAc,EAAE,MAAM,CAAC,qBAAqB;YAC5C,eAAe,EAAE,MAAM,CAAC,eAAe;SACxC;QACD,kBAAkB,EAAE;YAClB,OAAO,EAAE,GAAG;SACb;QACD,KAAK,EAAE;YACL,IAAI,EAAE,CAAC;SACR;QACD,gBAAgB,EAAE;YAChB,GAAG,kBAAkB;YACrB,eAAe,EAAE,MAAM,CAAC,iBAAiB;SAC1C;QACD,kBAAkB,EAAE;YAClB,GAAG,kBAAkB;YACrB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,MAAM,CAAC,wBAAwB;SAC7C;QACD,WAAW,EAAE;YACX,KAAK,EAAE,MAAM,CAAC,oBAAoB;SACnC;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { type RouteProp, useRoute } from '@react-navigation/native'\nimport { Pressable, View, StyleSheet, type ViewStyle } from 'react-native'\nimport { Icon, Text } from '../../../components'\nimport { useTheme } from '../../../hooks'\nimport { tokens } from '../../../vendor/tapestry/tokens'\nimport { ConversationFilterRecipientsScreenProps, SetTeamFilters, TeamProps } from '../types'\n\ninterface TeamRowProps {\n data: TeamProps\n style?: ViewStyle\n accessibilityLabelledBy: string\n setTeamFilters: SetTeamFilters\n}\n\nexport const CheckboxRow = ({\n data,\n style,\n accessibilityLabelledBy,\n setTeamFilters,\n}: TeamRowProps) => {\n const styles = useStyles()\n const route = useRoute<RouteProp<ConversationFilterRecipientsScreenProps['route']>>()\n\n const { teamId, teamName } = data\n const { team_ids: currentTeamIds } = route.params\n\n const checked = currentTeamIds?.includes(teamId) ?? false\n const newTeamIdAdded = [...(currentTeamIds ?? []), teamId]\n const newTeamIdRemoved = (currentTeamIds ?? []).filter(currentId => currentId !== teamId)\n\n const handlePress = () => {\n setTeamFilters({\n team_ids: checked ? newTeamIdRemoved : newTeamIdAdded,\n })\n }\n\n return (\n <Pressable\n style={({ pressed }) => [styles.checkboxRow, pressed && styles.checkboxRowPressed, style]}\n onPress={handlePress}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked }}\n accessibilityLabelledBy={accessibilityLabelledBy}\n accessibilityLabel={`${teamName} team`}\n >\n <CheckboxIcon checked={checked} />\n <Text style={styles.label} numberOfLines={2}>\n {teamName}\n </Text>\n </Pressable>\n )\n}\n\nfunction CheckboxIcon({ checked }: { checked: boolean }) {\n const styles = useStyles()\n const checkedStyle = checked ? styles.checkedContainer : styles.uncheckedContainer\n\n return (\n <View style={checkedStyle}>\n {checked && <Icon name=\"general.thickCheckmark\" style={styles.checkedIcon} />}\n </View>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n\n const baseCheckboxStyles: ViewStyle = {\n width: 20,\n height: 20,\n borderRadius: 40,\n alignItems: 'center',\n justifyContent: 'center',\n }\n\n return StyleSheet.create({\n checkboxRow: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 12,\n padding: 16,\n borderTopWidth: 1,\n borderTopColor: colors.borderColorDefaultDim,\n backgroundColor: colors.surfaceColor100,\n },\n checkboxRowPressed: {\n opacity: 0.5,\n },\n label: {\n flex: 1,\n },\n checkedContainer: {\n ...baseCheckboxStyles,\n backgroundColor: colors.statusSuccessIcon,\n },\n uncheckedContainer: {\n ...baseCheckboxStyles,\n borderWidth: 2,\n borderColor: colors.borderColorDefaultDarker,\n },\n checkedIcon: {\n color: tokens.colorNeutral100White,\n },\n })\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { type ViewStyle } from 'react-native';
2
- import type { ServiceTypeProps, SetTeamFilters } from '@/screens/conversation_filter_recipients/types';
2
+ import type { ServiceTypeProps, SetTeamFilters } from '../types';
3
3
  interface HeaderRowProps {
4
4
  data: ServiceTypeProps;
5
5
  nativeID: string;
@@ -1 +1 @@
1
- {"version":3,"file":"header_row.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/components/header_row.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAG/D,OAAO,KAAK,EAEV,gBAAgB,EAChB,cAAc,EACf,MAAM,gDAAgD,CAAA;AAMvD,UAAU,cAAc;IACtB,IAAI,EAAE,gBAAgB,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,eAAO,MAAM,SAAS,8CAA+C,cAAc,gCAiDlF,CAAA"}
1
+ {"version":3,"file":"header_row.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/components/header_row.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAK/D,OAAO,KAAK,EAEV,gBAAgB,EAChB,cAAc,EACf,MAAM,UAAU,CAAA;AAIjB,UAAU,cAAc;IACtB,IAAI,EAAE,gBAAgB,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,eAAO,MAAM,SAAS,8CAA+C,cAAc,gCAiDlF,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import { useRoute } from '@react-navigation/native';
2
2
  import { View, StyleSheet } from 'react-native';
3
- import { Icon, Heading, TextButton } from '@/components';
4
- import { useTheme } from '@/hooks';
5
- import { pluralize } from '@/utils';
6
- import { tokens } from '@/vendor/tapestry/tokens';
3
+ import { Icon, Heading, TextButton } from '../../../components';
4
+ import { useTheme } from '../../../hooks';
5
+ import { pluralize } from '../../../utils';
6
+ import { tokens } from '../../../vendor/tapestry/tokens';
7
7
  const BULK_SELECT_LIMIT = 10;
8
8
  export const HeaderRow = ({ data, nativeID, style, setTeamFilters }) => {
9
9
  const styles = useStyles();
@@ -1 +1 @@
1
- {"version":3,"file":"header_row.js","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/components/header_row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAMlC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAEjD,MAAM,iBAAiB,GAAG,EAAE,CAAA;AAS5B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAkB,EAAE,EAAE;IACrF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,MAAM,KAAK,GAAG,QAAQ,EAA+D,CAAA;IAErF,MAAM,EAAE,eAAe,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAA;IACvD,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC,M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useRoute, type RouteProp } from '@react-navigation/native'\nimport { View, StyleSheet, type ViewStyle } from 'react-native'\nimport { Icon, Heading, TextButton } from '@/components'\nimport { useTheme } from '@/hooks'\nimport type {\n ConversationFilterRecipientsScreenProps,\n ServiceTypeProps,\n SetTeamFilters,\n} from '@/screens/conversation_filter_recipients/types'\nimport { pluralize } from '@/utils'\nimport { tokens } from '@/vendor/tapestry/tokens'\n\nconst BULK_SELECT_LIMIT = 10\n\ninterface HeaderRowProps {\n data: ServiceTypeProps\n nativeID: string\n style?: ViewStyle\n setTeamFilters: SetTeamFilters\n}\n\nexport const HeaderRow = ({ data, nativeID, style, setTeamFilters }: HeaderRowProps) => {\n const styles = useStyles()\n const route = useRoute<RouteProp<ConversationFilterRecipientsScreenProps['route']>>()\n\n const { serviceTypeName, teamIdsForServiceType } = data\n const { team_ids: currentTeamIds = [] } = route.params\n\n const newTeamIdsAdded = [...new Set([...currentTeamIds, ...teamIdsForServiceType])]\n const newTeamIdsRemoved = currentTeamIds.filter(id => !teamIdsForServiceType.includes(id))\n\n const allTeamsSelected = teamIdsForServiceType.every(id => currentTeamIds.includes(id))\n const showSelectAll = teamIdsForServiceType.length <= BULK_SELECT_LIMIT\n const selectLabel = allTeamsSelected ? 'Deselect' : 'Select'\n\n const headingAccessibilityHint = `${pluralize(teamIdsForServiceType.length, 'team')} available to select`\n const selectAllAccessibilityLabel = `${selectLabel} ${pluralize(teamIdsForServiceType.length, 'team')} for ${serviceTypeName}`\n\n const handleSelectAll = () => {\n setTeamFilters({\n team_ids: allTeamsSelected ? newTeamIdsRemoved : newTeamIdsAdded,\n })\n }\n\n return (\n <View style={[styles.headerRow, style]}>\n <View style={styles.headerContent}>\n <Icon name=\"services.folderClosed\" style={styles.headerIcon} />\n <Heading\n variant=\"h3\"\n style={styles.headerText}\n numberOfLines={2}\n nativeID={nativeID}\n accessibilityHint={headingAccessibilityHint}\n >\n {serviceTypeName}\n </Heading>\n </View>\n\n {showSelectAll && (\n <TextButton\n variant=\"tertiary\"\n onPress={handleSelectAll}\n accessibilityLabel={selectAllAccessibilityLabel}\n >\n {selectLabel} all\n </TextButton>\n )}\n </View>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n\n return StyleSheet.create({\n headerRow: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n padding: 16,\n gap: 12,\n backgroundColor: colors.surfaceColor100,\n },\n headerText: {\n fontWeight: 'normal',\n flex: 1,\n color: colors.textColorDefaultPrimary,\n fontSize: tokens.fontSizeSm,\n },\n headerContent: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 12,\n flex: 1,\n },\n headerIcon: {\n color: colors.interaction,\n fontSize: tokens.fontSizeMd,\n },\n })\n}\n"]}
1
+ {"version":3,"file":"header_row.js","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/components/header_row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAOxD,MAAM,iBAAiB,GAAG,EAAE,CAAA;AAS5B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAkB,EAAE,EAAE;IACrF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,MAAM,KAAK,GAAG,QAAQ,EAA+D,CAAA;IAErF,MAAM,EAAE,eAAe,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAA;IACvD,MAAM,EAAE,QAAQ,EAAE,cAAc,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,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { useRoute, type RouteProp } from '@react-navigation/native'\nimport { View, StyleSheet, type ViewStyle } from 'react-native'\nimport { Icon, Heading, TextButton } from '../../../components'\nimport { useTheme } from '../../../hooks'\nimport { pluralize } from '../../../utils'\nimport { tokens } from '../../../vendor/tapestry/tokens'\nimport type {\n ConversationFilterRecipientsScreenProps,\n ServiceTypeProps,\n SetTeamFilters,\n} from '../types'\n\nconst BULK_SELECT_LIMIT = 10\n\ninterface HeaderRowProps {\n data: ServiceTypeProps\n nativeID: string\n style?: ViewStyle\n setTeamFilters: SetTeamFilters\n}\n\nexport const HeaderRow = ({ data, nativeID, style, setTeamFilters }: HeaderRowProps) => {\n const styles = useStyles()\n const route = useRoute<RouteProp<ConversationFilterRecipientsScreenProps['route']>>()\n\n const { serviceTypeName, teamIdsForServiceType } = data\n const { team_ids: currentTeamIds = [] } = route.params\n\n const newTeamIdsAdded = [...new Set([...currentTeamIds, ...teamIdsForServiceType])]\n const newTeamIdsRemoved = currentTeamIds.filter(id => !teamIdsForServiceType.includes(id))\n\n const allTeamsSelected = teamIdsForServiceType.every(id => currentTeamIds.includes(id))\n const showSelectAll = teamIdsForServiceType.length <= BULK_SELECT_LIMIT\n const selectLabel = allTeamsSelected ? 'Deselect' : 'Select'\n\n const headingAccessibilityHint = `${pluralize(teamIdsForServiceType.length, 'team')} available to select`\n const selectAllAccessibilityLabel = `${selectLabel} ${pluralize(teamIdsForServiceType.length, 'team')} for ${serviceTypeName}`\n\n const handleSelectAll = () => {\n setTeamFilters({\n team_ids: allTeamsSelected ? newTeamIdsRemoved : newTeamIdsAdded,\n })\n }\n\n return (\n <View style={[styles.headerRow, style]}>\n <View style={styles.headerContent}>\n <Icon name=\"services.folderClosed\" style={styles.headerIcon} />\n <Heading\n variant=\"h3\"\n style={styles.headerText}\n numberOfLines={2}\n nativeID={nativeID}\n accessibilityHint={headingAccessibilityHint}\n >\n {serviceTypeName}\n </Heading>\n </View>\n\n {showSelectAll && (\n <TextButton\n variant=\"tertiary\"\n onPress={handleSelectAll}\n accessibilityLabel={selectAllAccessibilityLabel}\n >\n {selectLabel} all\n </TextButton>\n )}\n </View>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n\n return StyleSheet.create({\n headerRow: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n padding: 16,\n gap: 12,\n backgroundColor: colors.surfaceColor100,\n },\n headerText: {\n fontWeight: 'normal',\n flex: 1,\n color: colors.textColorDefaultPrimary,\n fontSize: tokens.fontSizeSm,\n },\n headerContent: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 12,\n flex: 1,\n },\n headerIcon: {\n color: colors.interaction,\n fontSize: tokens.fontSizeMd,\n },\n })\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"conversation_filter_recipients_screen.d.ts","sourceRoot":"","sources":["../../../src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAA;AAQ7D,OAAO,EAAE,uCAAuC,EAAiC,MAAM,SAAS,CAAA;AAWhG,eAAO,MAAM,0CAA0C,uEAMrD,CAAA;AAEF,eAAO,MAAM,kCAAkC,eAE5C,uCAAuC,sBAwHzC,CAAA"}
1
+ {"version":3,"file":"conversation_filter_recipients_screen.d.ts","sourceRoot":"","sources":["../../../src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAA;AAc7D,OAAO,EAAE,uCAAuC,EAAiC,MAAM,SAAS,CAAA;AAKhG,eAAO,MAAM,0CAA0C,uEAMrD,CAAA;AAEF,eAAO,MAAM,kCAAkC,eAE5C,uCAAuC,sBAwHzC,CAAA"}
@@ -3,17 +3,17 @@ import React, { useCallback, useMemo, useState } from 'react';
3
3
  import { Platform, ScrollView, StyleSheet, View } from 'react-native';
4
4
  import { FlatList, TextInput } from 'react-native-gesture-handler';
5
5
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
+ import { Heading, ToggleButton } from '../../components';
7
+ import { DefaultLoading } from '../../components/page/loading';
8
+ import BlankState from '../../components/primitive/blank_state_primitive';
9
+ import FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet';
10
+ import { useFontScale, useTheme } from '../../hooks';
11
+ import { tokens } from '../../vendor/tapestry/tokens';
6
12
  import { CheckboxRow } from './components/checkbox_row';
7
13
  import { HeaderRow } from './components/header_row';
8
14
  import { useFlattenedArrayOfServiceTypesWithTeams } from './hooks/use_flattened_array_of_service_types_with_teams';
9
15
  import { useServiceTypesWithTeams } from './hooks/use_service_types_with_teams';
10
16
  import { SectionTypes, TeamFilterTypes } from './types';
11
- import { Heading, ToggleButton } from '@/components';
12
- import { DefaultLoading } from '@/components/page/loading';
13
- import BlankState from '@/components/primitive/blank_state_primitive';
14
- import FormSheet, { getFormSheetScreenOptions } from '@/components/primitive/form_sheet';
15
- import { useFontScale, useTheme } from '@/hooks';
16
- import { tokens } from '@/vendor/tapestry/tokens';
17
17
  const SERVICE_TYPE_LABELLED_BY_PREFIX = 'header-';
18
18
  const SPACE_UNDER_ROW = 16;
19
19
  export const ConversationFilterReceipientsScreenOptions = getFormSheetScreenOptions({
@@ -1 +1 @@
1
- {"version":3,"file":"conversation_filter_recipients_screen.js","sourceRoot":"","sources":["../../../src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAE3F,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAqB,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACxF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAClE,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SACjD;QACD,qBAAqB,EAAE;YACrB,aAAa,EAAE,KAAK;YACpB,cAAc,EAAE,YAAY;YAC5B,GAAG,EAAE,CAAC;YACN,QAAQ,EAAE,CAAC;SACZ;QACD,WAAW,EAAE;YACX,eAAe,EAAE,EAAE;YACnB,iBAAiB,EAAE,EAAE;YACrB,KAAK,EAAE,MAAM,CAAC,uBAAuB;YACrC,iBAAiB,EAAE,QAAQ;YAC3B,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,EAAE;YACZ,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,MAAM,CAAC,sBAAsB;YAC1C,YAAY,EAAE,EAAE,GAAG,SAAS;YAC5B,eAAe,EAAE,MAAM,CAAC,2BAA2B;SACpD;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { RouteProp, StackActions, useNavigation, useRoute } from '@react-navigation/native'\nimport { NativeStackNavigationProp } from '@react-navigation/native-stack'\nimport React, { useCallback, useMemo, useState } from 'react'\nimport { LayoutChangeEvent, Platform, ScrollView, StyleSheet, View } from 'react-native'\nimport { FlatList, TextInput } from 'react-native-gesture-handler'\nimport { useSafeAreaInsets } from 'react-native-safe-area-context'\nimport { CheckboxRow } from './components/checkbox_row'\nimport { HeaderRow } from './components/header_row'\nimport { useFlattenedArrayOfServiceTypesWithTeams } from './hooks/use_flattened_array_of_service_types_with_teams'\nimport { useServiceTypesWithTeams } from './hooks/use_service_types_with_teams'\nimport { ConversationFilterRecipientsScreenProps, SectionTypes, TeamFilterTypes } from './types'\nimport { Heading, ToggleButton } from '@/components'\nimport { DefaultLoading } from '@/components/page/loading'\nimport BlankState from '@/components/primitive/blank_state_primitive'\nimport FormSheet, { getFormSheetScreenOptions } from '@/components/primitive/form_sheet'\nimport { useFontScale, useTheme } from '@/hooks'\nimport { tokens } from '@/vendor/tapestry/tokens'\n\nconst SERVICE_TYPE_LABELLED_BY_PREFIX = 'header-'\nconst SPACE_UNDER_ROW = 16\n\nexport const ConversationFilterReceipientsScreenOptions = getFormSheetScreenOptions({\n sheetAllowedDetents: Platform.select({\n android: [0.75, 0.94],\n default: [0.75, 1],\n }),\n headerTitle: 'Teams I lead',\n})\n\nexport const ConversationFilterRecipientsScreen = ({\n route,\n}: ConversationFilterRecipientsScreenProps) => {\n const styles = useStyles()\n\n // Set the height of the container to accommodate the team filters\n const [formSheetHeaderHeight, setFormSheetHeaderHeight] = useState(200)\n const { bottom } = useSafeAreaInsets()\n const listContainerStyle = useMemo(\n () =>\n Platform.select({\n ios: { paddingBottom: formSheetHeaderHeight + bottom + SPACE_UNDER_ROW },\n }),\n [formSheetHeaderHeight, bottom]\n )\n\n const navigation =\n useNavigation<NativeStackNavigationProp<ConversationFilterRecipientsScreenProps>>()\n const { team_ids: teamIds } = route.params\n const { params } = route\n const teamIdCount = Number(teamIds?.length)\n const headerTitle = useMemo(() => {\n return teamIdCount >= 1 ? `Selected teams (${teamIdCount})` : 'Select teams'\n }, [teamIdCount])\n\n const { serviceTypes, isFetched } = useServiceTypesWithTeams({\n filterType: params.team_filter_type,\n searchQuery: params.search_query,\n })\n const data = useFlattenedArrayOfServiceTypesWithTeams({\n data: serviceTypes,\n firstRowStyle: styles.firstRow,\n lastRowStyle: styles.lastRow,\n })\n\n const noTeamsSelected = params.team_ids?.length === 0 || !params.team_ids\n const applyButtonAccessibilityHint = noTeamsSelected\n ? 'Select at least one team to navigate to the final step in creating your conversation.'\n : 'Saves selected teams and navigates to the final step to create your conversation.'\n\n const setTeamFilters = useCallback(\n ({ team_ids }: { team_ids: number[] }) => {\n navigation.setParams({ team_ids })\n },\n [navigation]\n )\n\n const resetTeamFilters = useCallback(() => {\n navigation.goBack()\n }, [navigation])\n\n const applyTeamFilters = useCallback(() => {\n navigation.dispatch(StackActions.popTo('ConversationNew', params))\n }, [navigation, params])\n\n const handleFormSheetHeaderLayout = useCallback((event: LayoutChangeEvent) => {\n setFormSheetHeaderHeight(event.nativeEvent.layout.height)\n }, [])\n\n return (\n <FormSheet.Root style={styles.root}>\n <View onLayout={handleFormSheetHeaderLayout}>\n <FormSheet.Header style={styles.header}>\n <FormSheet.HeaderTitle>{headerTitle}</FormSheet.HeaderTitle>\n <FormSheet.HeaderActions>\n <FormSheet.HeaderTextButton\n onPress={resetTeamFilters}\n accessibilityHint=\"Cancels any selected teams and closes this modal.\"\n >\n Cancel\n </FormSheet.HeaderTextButton>\n <FormSheet.HeaderButton\n title=\"Apply\"\n accessibilityHint={applyButtonAccessibilityHint}\n onPress={applyTeamFilters}\n disabled={noTeamsSelected}\n />\n </FormSheet.HeaderActions>\n </FormSheet.Header>\n <TeamFilters />\n </View>\n <FlatList\n data={data}\n ListHeaderComponent={\n <Heading variant=\"h3\" style={styles.listHeader}>\n Service Types\n </Heading>\n }\n contentContainerStyle={[styles.listContentContainer, listContainerStyle]}\n keyExtractor={item =>\n item.type === SectionTypes.header\n ? `service-type-${item.data.serviceTypeId}`\n : `team-${item.data.teamId}-${item.data.serviceTypeId}`\n }\n ListEmptyComponent={isFetched ? <ListBlankState /> : <DefaultLoading />}\n renderItem={({ item }) => {\n switch (item.type) {\n case SectionTypes.header:\n return (\n <HeaderRow\n data={item.data}\n style={item.sectionStyle}\n nativeID={`${SERVICE_TYPE_LABELLED_BY_PREFIX}${item.data.serviceTypeId}`}\n setTeamFilters={setTeamFilters}\n />\n )\n case SectionTypes.team:\n return (\n <CheckboxRow\n data={item.data}\n style={item.sectionStyle}\n accessibilityLabelledBy={`${SERVICE_TYPE_LABELLED_BY_PREFIX}${item.data.serviceTypeId}`}\n setTeamFilters={setTeamFilters}\n />\n )\n default:\n return null\n }\n }}\n />\n </FormSheet.Root>\n )\n}\n\nconst ListBlankState = () => {\n return (\n <BlankState.Root>\n <BlankState.Heading>No teams found</BlankState.Heading>\n </BlankState.Root>\n )\n}\n\nconst TeamFilters = ({ onLayout }: { onLayout?: (event: LayoutChangeEvent) => void }) => {\n const styles = useStyles()\n const { colors } = useTheme()\n const navigation =\n useNavigation<NativeStackNavigationProp<ConversationFilterRecipientsScreenProps>>()\n const route = useRoute<RouteProp<ConversationFilterRecipientsScreenProps['route']>>()\n const { params } = route\n\n const active = params.team_filter_type || TeamFilterTypes.TeamsIlead\n\n const handleFilterChange = useCallback(\n (filter: TeamFilterTypes) => {\n navigation.setParams({\n team_filter_type: filter,\n team_ids: [],\n })\n },\n [navigation]\n )\n\n return (\n <View style={styles.teamFiltersContainer} onLayout={onLayout}>\n <TextInput\n defaultValue={params.search_query}\n placeholder=\"Search teams\"\n placeholderTextColor={colors.textColorDefaultPlaceholder}\n style={styles.searchInput}\n onChangeText={text => {\n navigation.setParams({\n search_query: text,\n })\n }}\n />\n <ScrollView\n horizontal\n showsHorizontalScrollIndicator={false}\n contentContainerStyle={styles.filterToggleContainer}\n accessibilityRole=\"toolbar\"\n >\n <ToggleButton\n active={active === TeamFilterTypes.TeamsIlead}\n title={TeamFilterTypes.TeamsIlead}\n accessibilityLabel=\"Show all teams I lead\"\n onPress={() => handleFilterChange(TeamFilterTypes.TeamsIlead)}\n />\n <ToggleButton\n active={active === TeamFilterTypes.MyTeams}\n title={TeamFilterTypes.MyTeams}\n accessibilityLabel=\"Show all my teams\"\n onPress={() => handleFilterChange(TeamFilterTypes.MyTeams)}\n />\n <ToggleButton\n active={active === TeamFilterTypes.All}\n title={TeamFilterTypes.All}\n accessibilityLabel=\"Show all teams\"\n onPress={() => handleFilterChange(TeamFilterTypes.All)}\n />\n </ScrollView>\n </View>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n const { bottom } = useSafeAreaInsets()\n const fontScale = useFontScale()\n\n return StyleSheet.create({\n root: {\n backgroundColor: colors.surfaceColor080,\n },\n header: {\n borderBottomWidth: 0,\n },\n listContentContainer: {\n padding: 16,\n paddingBottom: bottom + Platform.select({ android: 24, default: 16 }),\n },\n listHeader: {\n paddingBottom: 16,\n },\n firstRow: {\n borderTopStartRadius: tokens.borderRadiusLg,\n borderTopEndRadius: tokens.borderRadiusLg,\n },\n lastRow: {\n borderBottomStartRadius: tokens.borderRadiusLg,\n borderBottomEndRadius: tokens.borderRadiusLg,\n marginBottom: SPACE_UNDER_ROW,\n },\n teamFiltersContainer: {\n gap: 12,\n paddingHorizontal: 16,\n paddingBottom: 28,\n backgroundColor: colors.fillColorNeutral100Inverted,\n borderBottomWidth: 1,\n borderBottomColor: colors.borderColorDefaultBase,\n },\n filterToggleContainer: {\n flexDirection: 'row',\n justifyContent: 'flex-start',\n gap: 8,\n flexGrow: 1,\n },\n searchInput: {\n paddingVertical: 12,\n paddingHorizontal: 16,\n color: colors.textColorDefaultPrimary,\n textAlignVertical: 'center',\n justifyContent: 'center',\n fontSize: 16,\n borderWidth: 1,\n borderColor: colors.borderColorDefaultBase,\n borderRadius: 24 * fontScale,\n backgroundColor: colors.fillColorNeutral100Inverted,\n },\n })\n}\n"]}
1
+ {"version":3,"file":"conversation_filter_recipients_screen.js","sourceRoot":"","sources":["../../../src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAE3F,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAqB,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACxF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,UAAU,MAAM,kDAAkD,CAAA;AACzE,OAAO,SAAS,EAAE,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAA;AAC5F,OAAO,EAAE,YAAY,EAAE,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,QAAQ,EAAE,EAAE;YACZ,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,MAAM,CAAC,sBAAsB;YAC1C,YAAY,EAAE,EAAE,GAAG,SAAS;YAC5B,eAAe,EAAE,MAAM,CAAC,2BAA2B;SACpD;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { RouteProp, StackActions, useNavigation, useRoute } from '@react-navigation/native'\nimport { NativeStackNavigationProp } from '@react-navigation/native-stack'\nimport React, { useCallback, useMemo, useState } from 'react'\nimport { LayoutChangeEvent, Platform, ScrollView, StyleSheet, View } from 'react-native'\nimport { FlatList, TextInput } from 'react-native-gesture-handler'\nimport { useSafeAreaInsets } from 'react-native-safe-area-context'\nimport { Heading, ToggleButton } from '../../components'\nimport { DefaultLoading } from '../../components/page/loading'\nimport BlankState from '../../components/primitive/blank_state_primitive'\nimport FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet'\nimport { useFontScale, useTheme } from '../../hooks'\nimport { tokens } from '../../vendor/tapestry/tokens'\nimport { CheckboxRow } from './components/checkbox_row'\nimport { HeaderRow } from './components/header_row'\nimport { useFlattenedArrayOfServiceTypesWithTeams } from './hooks/use_flattened_array_of_service_types_with_teams'\nimport { useServiceTypesWithTeams } from './hooks/use_service_types_with_teams'\nimport { ConversationFilterRecipientsScreenProps, SectionTypes, TeamFilterTypes } from './types'\n\nconst SERVICE_TYPE_LABELLED_BY_PREFIX = 'header-'\nconst SPACE_UNDER_ROW = 16\n\nexport const ConversationFilterReceipientsScreenOptions = getFormSheetScreenOptions({\n sheetAllowedDetents: Platform.select({\n android: [0.75, 0.94],\n default: [0.75, 1],\n }),\n headerTitle: 'Teams I lead',\n})\n\nexport const ConversationFilterRecipientsScreen = ({\n route,\n}: ConversationFilterRecipientsScreenProps) => {\n const styles = useStyles()\n\n // Set the height of the container to accommodate the team filters\n const [formSheetHeaderHeight, setFormSheetHeaderHeight] = useState(200)\n const { bottom } = useSafeAreaInsets()\n const listContainerStyle = useMemo(\n () =>\n Platform.select({\n ios: { paddingBottom: formSheetHeaderHeight + bottom + SPACE_UNDER_ROW },\n }),\n [formSheetHeaderHeight, bottom]\n )\n\n const navigation =\n useNavigation<NativeStackNavigationProp<ConversationFilterRecipientsScreenProps>>()\n const { team_ids: teamIds } = route.params\n const { params } = route\n const teamIdCount = Number(teamIds?.length)\n const headerTitle = useMemo(() => {\n return teamIdCount >= 1 ? `Selected teams (${teamIdCount})` : 'Select teams'\n }, [teamIdCount])\n\n const { serviceTypes, isFetched } = useServiceTypesWithTeams({\n filterType: params.team_filter_type,\n searchQuery: params.search_query,\n })\n const data = useFlattenedArrayOfServiceTypesWithTeams({\n data: serviceTypes,\n firstRowStyle: styles.firstRow,\n lastRowStyle: styles.lastRow,\n })\n\n const noTeamsSelected = params.team_ids?.length === 0 || !params.team_ids\n const applyButtonAccessibilityHint = noTeamsSelected\n ? 'Select at least one team to navigate to the final step in creating your conversation.'\n : 'Saves selected teams and navigates to the final step to create your conversation.'\n\n const setTeamFilters = useCallback(\n ({ team_ids }: { team_ids: number[] }) => {\n navigation.setParams({ team_ids })\n },\n [navigation]\n )\n\n const resetTeamFilters = useCallback(() => {\n navigation.goBack()\n }, [navigation])\n\n const applyTeamFilters = useCallback(() => {\n navigation.dispatch(StackActions.popTo('ConversationNew', params))\n }, [navigation, params])\n\n const handleFormSheetHeaderLayout = useCallback((event: LayoutChangeEvent) => {\n setFormSheetHeaderHeight(event.nativeEvent.layout.height)\n }, [])\n\n return (\n <FormSheet.Root style={styles.root}>\n <View onLayout={handleFormSheetHeaderLayout}>\n <FormSheet.Header style={styles.header}>\n <FormSheet.HeaderTitle>{headerTitle}</FormSheet.HeaderTitle>\n <FormSheet.HeaderActions>\n <FormSheet.HeaderTextButton\n onPress={resetTeamFilters}\n accessibilityHint=\"Cancels any selected teams and closes this modal.\"\n >\n Cancel\n </FormSheet.HeaderTextButton>\n <FormSheet.HeaderButton\n title=\"Apply\"\n accessibilityHint={applyButtonAccessibilityHint}\n onPress={applyTeamFilters}\n disabled={noTeamsSelected}\n />\n </FormSheet.HeaderActions>\n </FormSheet.Header>\n <TeamFilters />\n </View>\n <FlatList\n data={data}\n ListHeaderComponent={\n <Heading variant=\"h3\" style={styles.listHeader}>\n Service Types\n </Heading>\n }\n contentContainerStyle={[styles.listContentContainer, listContainerStyle]}\n keyExtractor={item =>\n item.type === SectionTypes.header\n ? `service-type-${item.data.serviceTypeId}`\n : `team-${item.data.teamId}-${item.data.serviceTypeId}`\n }\n ListEmptyComponent={isFetched ? <ListBlankState /> : <DefaultLoading />}\n renderItem={({ item }) => {\n switch (item.type) {\n case SectionTypes.header:\n return (\n <HeaderRow\n data={item.data}\n style={item.sectionStyle}\n nativeID={`${SERVICE_TYPE_LABELLED_BY_PREFIX}${item.data.serviceTypeId}`}\n setTeamFilters={setTeamFilters}\n />\n )\n case SectionTypes.team:\n return (\n <CheckboxRow\n data={item.data}\n style={item.sectionStyle}\n accessibilityLabelledBy={`${SERVICE_TYPE_LABELLED_BY_PREFIX}${item.data.serviceTypeId}`}\n setTeamFilters={setTeamFilters}\n />\n )\n default:\n return null\n }\n }}\n />\n </FormSheet.Root>\n )\n}\n\nconst ListBlankState = () => {\n return (\n <BlankState.Root>\n <BlankState.Heading>No teams found</BlankState.Heading>\n </BlankState.Root>\n )\n}\n\nconst TeamFilters = ({ onLayout }: { onLayout?: (event: LayoutChangeEvent) => void }) => {\n const styles = useStyles()\n const { colors } = useTheme()\n const navigation =\n useNavigation<NativeStackNavigationProp<ConversationFilterRecipientsScreenProps>>()\n const route = useRoute<RouteProp<ConversationFilterRecipientsScreenProps['route']>>()\n const { params } = route\n\n const active = params.team_filter_type || TeamFilterTypes.TeamsIlead\n\n const handleFilterChange = useCallback(\n (filter: TeamFilterTypes) => {\n navigation.setParams({\n team_filter_type: filter,\n team_ids: [],\n })\n },\n [navigation]\n )\n\n return (\n <View style={styles.teamFiltersContainer} onLayout={onLayout}>\n <TextInput\n defaultValue={params.search_query}\n placeholder=\"Search teams\"\n placeholderTextColor={colors.textColorDefaultPlaceholder}\n style={styles.searchInput}\n onChangeText={text => {\n navigation.setParams({\n search_query: text,\n })\n }}\n />\n <ScrollView\n horizontal\n showsHorizontalScrollIndicator={false}\n contentContainerStyle={styles.filterToggleContainer}\n accessibilityRole=\"toolbar\"\n >\n <ToggleButton\n active={active === TeamFilterTypes.TeamsIlead}\n title={TeamFilterTypes.TeamsIlead}\n accessibilityLabel=\"Show all teams I lead\"\n onPress={() => handleFilterChange(TeamFilterTypes.TeamsIlead)}\n />\n <ToggleButton\n active={active === TeamFilterTypes.MyTeams}\n title={TeamFilterTypes.MyTeams}\n accessibilityLabel=\"Show all my teams\"\n onPress={() => handleFilterChange(TeamFilterTypes.MyTeams)}\n />\n <ToggleButton\n active={active === TeamFilterTypes.All}\n title={TeamFilterTypes.All}\n accessibilityLabel=\"Show all teams\"\n onPress={() => handleFilterChange(TeamFilterTypes.All)}\n />\n </ScrollView>\n </View>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n const { bottom } = useSafeAreaInsets()\n const fontScale = useFontScale()\n\n return StyleSheet.create({\n root: {\n backgroundColor: colors.surfaceColor080,\n },\n header: {\n borderBottomWidth: 0,\n },\n listContentContainer: {\n padding: 16,\n paddingBottom: bottom + Platform.select({ android: 24, default: 16 }),\n },\n listHeader: {\n paddingBottom: 16,\n },\n firstRow: {\n borderTopStartRadius: tokens.borderRadiusLg,\n borderTopEndRadius: tokens.borderRadiusLg,\n },\n lastRow: {\n borderBottomStartRadius: tokens.borderRadiusLg,\n borderBottomEndRadius: tokens.borderRadiusLg,\n marginBottom: SPACE_UNDER_ROW,\n },\n teamFiltersContainer: {\n gap: 12,\n paddingHorizontal: 16,\n paddingBottom: 28,\n backgroundColor: colors.fillColorNeutral100Inverted,\n borderBottomWidth: 1,\n borderBottomColor: colors.borderColorDefaultBase,\n },\n filterToggleContainer: {\n flexDirection: 'row',\n justifyContent: 'flex-start',\n gap: 8,\n flexGrow: 1,\n },\n searchInput: {\n paddingVertical: 12,\n paddingHorizontal: 16,\n color: colors.textColorDefaultPrimary,\n textAlignVertical: 'center',\n justifyContent: 'center',\n fontSize: 16,\n borderWidth: 1,\n borderColor: colors.borderColorDefaultBase,\n borderRadius: 24 * fontScale,\n backgroundColor: colors.fillColorNeutral100Inverted,\n },\n })\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { type ViewStyle } from 'react-native';
2
- import { type SectionListData, type ServiceTypeWithTeams } from '@/screens/conversation_filter_recipients/types';
2
+ import { type SectionListData, type ServiceTypeWithTeams } from '../types';
3
3
  interface Props {
4
4
  data: ServiceTypeWithTeams[];
5
5
  firstRowStyle: ViewStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"use_flattened_array_of_service_types_with_teams.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,gDAAgD,CAAA;AAEvD,UAAU,KAAK;IACb,IAAI,EAAE,oBAAoB,EAAE,CAAA;IAC5B,aAAa,EAAE,SAAS,CAAA;IACxB,YAAY,EAAE,SAAS,CAAA;CACxB;AAED,wBAAgB,wCAAwC,CAAC,EACvD,IAAI,EACJ,aAAa,EACb,YAAY,GACb,EAAE,KAAK,mBAmCP"}
1
+ {"version":3,"file":"use_flattened_array_of_service_types_with_teams.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAgB,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAExF,UAAU,KAAK;IACb,IAAI,EAAE,oBAAoB,EAAE,CAAA;IAC5B,aAAa,EAAE,SAAS,CAAA;IACxB,YAAY,EAAE,SAAS,CAAA;CACxB;AAED,wBAAgB,wCAAwC,CAAC,EACvD,IAAI,EACJ,aAAa,EACb,YAAY,GACb,EAAE,KAAK,mBAmCP"}
@@ -1,5 +1,5 @@
1
1
  import { useMemo } from 'react';
2
- import { SectionTypes, } from '@/screens/conversation_filter_recipients/types';
2
+ import { SectionTypes } from '../types';
3
3
  export function useFlattenedArrayOfServiceTypesWithTeams({ data, firstRowStyle, lastRowStyle, }) {
4
4
  const flattenedData = useMemo(() => data.flatMap(serviceType => {
5
5
  const teamIdsForServiceType = serviceType.teams.map(team => team.id);
@@ -1 +1 @@
1
- {"version":3,"file":"use_flattened_array_of_service_types_with_teams.js","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EACL,YAAY,GAGb,MAAM,gDAAgD,CAAA;AAQvD,MAAM,UAAU,wCAAwC,CAAC,EACvD,IAAI,EACJ,aAAa,EACb,YAAY,GACN;IACN,MAAM,aAAa,GAAoB,OAAO,CAC5C,GAAG,EAAE,CACH,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QACzB,MAAM,qBAAqB,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAEpE,OAAO;YACL;gBACE,IAAI,EAAE,YAAY,CAAC,MAAe;gBAClC,IAAI,EAAE;oBACJ,eAAe,EAAE,WAAW,CAAC,IAAI;oBACjC,aAAa,EAAE,WAAW,CAAC,EAAE;oBAC7B,qBAAqB;iBACtB;gBACD,YAAY,EAAE,aAAa;aAC5B;YACD,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;gBACzC,MAAM,uBAAuB,GAAG,OAAO,KAAK,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;gBAExE,OAAO;oBACL,IAAI,EAAE,YAAY,CAAC,IAAa;oBAChC,IAAI,EAAE;wBACJ,QAAQ,EAAE,IAAI,CAAC,IAAI;wBACnB,MAAM,EAAE,IAAI,CAAC,EAAE;wBACf,aAAa,EAAE,WAAW,CAAC,EAAE;qBAC9B;oBACD,YAAY,EAAE,uBAAuB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;iBACjE,CAAA;YACH,CAAC,CAAC;SACH,CAAA;IACH,CAAC,CAAC,EACJ,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,CAAC,CACpC,CAAA;IAED,OAAO,aAAa,CAAA;AACtB,CAAC","sourcesContent":["import { useMemo } from 'react'\nimport { type ViewStyle } from 'react-native'\nimport {\n SectionTypes,\n type SectionListData,\n type ServiceTypeWithTeams,\n} from '@/screens/conversation_filter_recipients/types'\n\ninterface Props {\n data: ServiceTypeWithTeams[]\n firstRowStyle: ViewStyle\n lastRowStyle: ViewStyle\n}\n\nexport function useFlattenedArrayOfServiceTypesWithTeams({\n data,\n firstRowStyle,\n lastRowStyle,\n}: Props) {\n const flattenedData: SectionListData = useMemo(\n () =>\n data.flatMap(serviceType => {\n const teamIdsForServiceType = serviceType.teams.map(team => team.id)\n\n return [\n {\n type: SectionTypes.header as const,\n data: {\n serviceTypeName: serviceType.name,\n serviceTypeId: serviceType.id,\n teamIdsForServiceType,\n },\n sectionStyle: firstRowStyle,\n },\n ...serviceType.teams.map((team, teamIdx) => {\n const isLastTeamInServiceType = teamIdx === serviceType.teams.length - 1\n\n return {\n type: SectionTypes.team as const,\n data: {\n teamName: team.name,\n teamId: team.id,\n serviceTypeId: serviceType.id,\n },\n sectionStyle: isLastTeamInServiceType ? lastRowStyle : undefined,\n }\n }),\n ]\n }),\n [data, firstRowStyle, lastRowStyle]\n )\n\n return flattenedData\n}\n"]}
1
+ {"version":3,"file":"use_flattened_array_of_service_types_with_teams.js","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,YAAY,EAAmD,MAAM,UAAU,CAAA;AAQxF,MAAM,UAAU,wCAAwC,CAAC,EACvD,IAAI,EACJ,aAAa,EACb,YAAY,GACN;IACN,MAAM,aAAa,GAAoB,OAAO,CAC5C,GAAG,EAAE,CACH,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QACzB,MAAM,qBAAqB,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAEpE,OAAO;YACL;gBACE,IAAI,EAAE,YAAY,CAAC,MAAe;gBAClC,IAAI,EAAE;oBACJ,eAAe,EAAE,WAAW,CAAC,IAAI;oBACjC,aAAa,EAAE,WAAW,CAAC,EAAE;oBAC7B,qBAAqB;iBACtB;gBACD,YAAY,EAAE,aAAa;aAC5B;YACD,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;gBACzC,MAAM,uBAAuB,GAAG,OAAO,KAAK,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;gBAExE,OAAO;oBACL,IAAI,EAAE,YAAY,CAAC,IAAa;oBAChC,IAAI,EAAE;wBACJ,QAAQ,EAAE,IAAI,CAAC,IAAI;wBACnB,MAAM,EAAE,IAAI,CAAC,EAAE;wBACf,aAAa,EAAE,WAAW,CAAC,EAAE;qBAC9B;oBACD,YAAY,EAAE,uBAAuB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;iBACjE,CAAA;YACH,CAAC,CAAC;SACH,CAAA;IACH,CAAC,CAAC,EACJ,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,CAAC,CACpC,CAAA;IAED,OAAO,aAAa,CAAA;AACtB,CAAC","sourcesContent":["import { useMemo } from 'react'\nimport { type ViewStyle } from 'react-native'\nimport { SectionTypes, type SectionListData, type ServiceTypeWithTeams } from '../types'\n\ninterface Props {\n data: ServiceTypeWithTeams[]\n firstRowStyle: ViewStyle\n lastRowStyle: ViewStyle\n}\n\nexport function useFlattenedArrayOfServiceTypesWithTeams({\n data,\n firstRowStyle,\n lastRowStyle,\n}: Props) {\n const flattenedData: SectionListData = useMemo(\n () =>\n data.flatMap(serviceType => {\n const teamIdsForServiceType = serviceType.teams.map(team => team.id)\n\n return [\n {\n type: SectionTypes.header as const,\n data: {\n serviceTypeName: serviceType.name,\n serviceTypeId: serviceType.id,\n teamIdsForServiceType,\n },\n sectionStyle: firstRowStyle,\n },\n ...serviceType.teams.map((team, teamIdx) => {\n const isLastTeamInServiceType = teamIdx === serviceType.teams.length - 1\n\n return {\n type: SectionTypes.team as const,\n data: {\n teamName: team.name,\n teamId: team.id,\n serviceTypeId: serviceType.id,\n },\n sectionStyle: isLastTeamInServiceType ? lastRowStyle : undefined,\n }\n }),\n ]\n }),\n [data, firstRowStyle, lastRowStyle]\n )\n\n return flattenedData\n}\n"]}
@@ -1,10 +1,10 @@
1
- import { ServiceTypeWithTeams, TeamFilterTypes } from '@/screens/conversation_filter_recipients/types';
2
- import { ServicesChatResource } from '@/types';
1
+ import { ServicesChatResource } from '../../../types';
2
+ import { ServiceTypeWithTeams, TeamFilterTypes } from '../types';
3
3
  export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?: {
4
4
  filterType?: TeamFilterTypes;
5
5
  searchQuery?: string;
6
6
  }): {
7
- error: import("@/types").FailedResponse;
7
+ error: import("../../../types").FailedResponse;
8
8
  isError: true;
9
9
  isPending: false;
10
10
  isLoading: false;
@@ -16,7 +16,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
16
16
  dataUpdatedAt: number;
17
17
  errorUpdatedAt: number;
18
18
  failureCount: number;
19
- failureReason: import("@/types").FailedResponse | null;
19
+ failureReason: import("../../../types").FailedResponse | null;
20
20
  errorUpdateCount: number;
21
21
  isFetched: boolean;
22
22
  isFetchedAfterMount: boolean;
@@ -25,9 +25,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
25
25
  isPaused: boolean;
26
26
  isRefetching: boolean;
27
27
  isStale: boolean;
28
- refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@/types").ApiResource<ServicesChatResource>, import("@/types").FailedResponse>>;
28
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
29
29
  fetchStatus: import("@tanstack/query-core").FetchStatus;
30
- promise: Promise<import("@/types").ApiResource<ServicesChatResource>>;
30
+ promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
31
31
  links?: Record<string, string> | undefined;
32
32
  meta?: Record<string, unknown> | undefined;
33
33
  serviceTypes: ServiceTypeWithTeams[];
@@ -44,7 +44,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
44
44
  dataUpdatedAt: number;
45
45
  errorUpdatedAt: number;
46
46
  failureCount: number;
47
- failureReason: import("@/types").FailedResponse | null;
47
+ failureReason: import("../../../types").FailedResponse | null;
48
48
  errorUpdateCount: number;
49
49
  isFetched: boolean;
50
50
  isFetchedAfterMount: boolean;
@@ -53,14 +53,14 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
53
53
  isPaused: boolean;
54
54
  isRefetching: boolean;
55
55
  isStale: boolean;
56
- refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@/types").ApiResource<ServicesChatResource>, import("@/types").FailedResponse>>;
56
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
57
57
  fetchStatus: import("@tanstack/query-core").FetchStatus;
58
- promise: Promise<import("@/types").ApiResource<ServicesChatResource>>;
58
+ promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
59
59
  links?: Record<string, string> | undefined;
60
60
  meta?: Record<string, unknown> | undefined;
61
61
  serviceTypes: ServiceTypeWithTeams[];
62
62
  } | {
63
- error: import("@/types").FailedResponse;
63
+ error: import("../../../types").FailedResponse;
64
64
  isError: true;
65
65
  isPending: false;
66
66
  isLoading: false;
@@ -72,7 +72,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
72
72
  dataUpdatedAt: number;
73
73
  errorUpdatedAt: number;
74
74
  failureCount: number;
75
- failureReason: import("@/types").FailedResponse | null;
75
+ failureReason: import("../../../types").FailedResponse | null;
76
76
  errorUpdateCount: number;
77
77
  isFetched: boolean;
78
78
  isFetchedAfterMount: boolean;
@@ -81,9 +81,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
81
81
  isPaused: boolean;
82
82
  isRefetching: boolean;
83
83
  isStale: boolean;
84
- refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@/types").ApiResource<ServicesChatResource>, import("@/types").FailedResponse>>;
84
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
85
85
  fetchStatus: import("@tanstack/query-core").FetchStatus;
86
- promise: Promise<import("@/types").ApiResource<ServicesChatResource>>;
86
+ promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
87
87
  links?: Record<string, string> | undefined;
88
88
  meta?: Record<string, unknown> | undefined;
89
89
  serviceTypes: ServiceTypeWithTeams[];
@@ -100,7 +100,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
100
100
  dataUpdatedAt: number;
101
101
  errorUpdatedAt: number;
102
102
  failureCount: number;
103
- failureReason: import("@/types").FailedResponse | null;
103
+ failureReason: import("../../../types").FailedResponse | null;
104
104
  errorUpdateCount: number;
105
105
  isFetched: boolean;
106
106
  isFetchedAfterMount: boolean;
@@ -109,9 +109,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
109
109
  isPaused: boolean;
110
110
  isRefetching: boolean;
111
111
  isStale: boolean;
112
- refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@/types").ApiResource<ServicesChatResource>, import("@/types").FailedResponse>>;
112
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
113
113
  fetchStatus: import("@tanstack/query-core").FetchStatus;
114
- promise: Promise<import("@/types").ApiResource<ServicesChatResource>>;
114
+ promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
115
115
  links?: Record<string, string> | undefined;
116
116
  meta?: Record<string, unknown> | undefined;
117
117
  serviceTypes: ServiceTypeWithTeams[];
@@ -127,7 +127,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
127
127
  dataUpdatedAt: number;
128
128
  errorUpdatedAt: number;
129
129
  failureCount: number;
130
- failureReason: import("@/types").FailedResponse | null;
130
+ failureReason: import("../../../types").FailedResponse | null;
131
131
  errorUpdateCount: number;
132
132
  isFetched: boolean;
133
133
  isFetchedAfterMount: boolean;
@@ -137,9 +137,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
137
137
  isPaused: boolean;
138
138
  isRefetching: boolean;
139
139
  isStale: boolean;
140
- refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@/types").ApiResource<ServicesChatResource>, import("@/types").FailedResponse>>;
140
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
141
141
  fetchStatus: import("@tanstack/query-core").FetchStatus;
142
- promise: Promise<import("@/types").ApiResource<ServicesChatResource>>;
142
+ promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
143
143
  links?: Record<string, string> | undefined;
144
144
  meta?: Record<string, unknown> | undefined;
145
145
  serviceTypes: ServiceTypeWithTeams[];
@@ -156,7 +156,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
156
156
  dataUpdatedAt: number;
157
157
  errorUpdatedAt: number;
158
158
  failureCount: number;
159
- failureReason: import("@/types").FailedResponse | null;
159
+ failureReason: import("../../../types").FailedResponse | null;
160
160
  errorUpdateCount: number;
161
161
  isFetched: boolean;
162
162
  isFetchedAfterMount: boolean;
@@ -165,9 +165,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
165
165
  isPaused: boolean;
166
166
  isRefetching: boolean;
167
167
  isStale: boolean;
168
- refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@/types").ApiResource<ServicesChatResource>, import("@/types").FailedResponse>>;
168
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
169
169
  fetchStatus: import("@tanstack/query-core").FetchStatus;
170
- promise: Promise<import("@/types").ApiResource<ServicesChatResource>>;
170
+ promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
171
171
  links?: Record<string, string> | undefined;
172
172
  meta?: Record<string, unknown> | undefined;
173
173
  serviceTypes: ServiceTypeWithTeams[];
@@ -1 +1 @@
1
- {"version":3,"file":"use_service_types_with_teams.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,eAAe,EAChB,MAAM,gDAAgD,CAAA;AACvD,OAAO,EAAE,oBAAoB,EAAoB,MAAM,SAAS,CAAA;AAEhE,wBAAgB,wBAAwB,CAAC,EACvC,UAAuC,EACvC,WAAW,GACZ,GAAE;IACD,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;CAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWL"}
1
+ {"version":3,"file":"use_service_types_with_teams.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAoB,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAEhE,wBAAgB,wBAAwB,CAAC,EACvC,UAAuC,EACvC,WAAW,GACZ,GAAE;IACD,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;CAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWL"}
@@ -1,7 +1,7 @@
1
1
  import { uniqBy } from 'lodash';
2
2
  import { useMemo } from 'react';
3
- import { useApiGet } from '@/hooks/use_api';
4
- import { TeamFilterTypes, } from '@/screens/conversation_filter_recipients/types';
3
+ import { useApiGet } from '../../../hooks/use_api';
4
+ import { TeamFilterTypes } from '../types';
5
5
  export function useServiceTypesWithTeams({ filterType = TeamFilterTypes.TeamsIlead, searchQuery, } = {}) {
6
6
  const { data, ...rest } = useTeams({ filterType });
7
7
  const decoratedResponse = useMemo(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"use_service_types_with_teams.js","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAEL,eAAe,GAChB,MAAM,gDAAgD,CAAA;AAGvD,MAAM,UAAU,wBAAwB,CAAC,EACvC,UAAU,GAAG,eAAe,CAAC,UAAU,EACvC,WAAW,MAIT,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IAElD,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,EAAE;QACrC,OAAO,yBAAyB,CAAC,IAA0B,EAAE,WAAW,CAAC,CAAA;IAC3E,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAA;IAEvB,OAAO;QACL,YAAY,EAAE,iBAAiB;QAC/B,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,EAAE,UAAU,EAAmC,EAAE,EAAE;IACnE,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE;QAChC,QAAQ,UAAU,EAAE,CAAC;YACnB,KAAK,eAAe,CAAC,GAAG;gBACtB,OAAO,OAAO,CAAA;YAChB,KAAK,eAAe,CAAC,OAAO;gBAC1B,OAAO,UAAU,CAAA;YACnB;gBACE,OAAO,cAAc,CAAA;QACzB,CAAC;IACH,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAA;IAEhB,MAAM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EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC7C,OAAO;YACL,aAAa,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC7D,EAAE,EAAE,aAAa;gBACjB,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC;aAC1B,CAAC,CAAC;YACH,IAAI,EAAE;gBACJ,EAAE,EAAE,KAAK,CAAC,MAAM;gBAChB,IAAI,EAAE,QAAQ;aACf;SACF,CAAA;IACH,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,GAA2B,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,EAAE;QAC/D,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YAClC,IAAI,gBAAgB,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,WAAW,CAAC,EAAE,CAAC,CAAA;YAErE,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACtB,gBAAgB,GAAG;oBACjB,EAAE,EAAE,WAAW,CAAC,EAAE;oBAClB,IAAI,EAAE,WAAW,CAAC,IAAI;oBACtB,KAAK,EAAE,EAAE;iBACV,CAAA;gBACD,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;YAC5B,CAAC;YAED,MAAM,YAAY,GAAG,gBAAgB,CAAC,KAAK,CAAA;YAC3C,gBAAgB,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,GAAG,YAAY,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;QAChE,CAAC,CAAC,CAAA;QACF,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CAAA;AACV,CAAC","sourcesContent":["import { uniqBy } from 'lodash'\nimport { useMemo } from 'react'\nimport { useApiGet } from '@/hooks/use_api'\nimport {\n ServiceTypeWithTeams,\n TeamFilterTypes,\n} from '@/screens/conversation_filter_recipients/types'\nimport { ServicesChatResource, TeamResponseItem } from '@/types'\n\nexport function useServiceTypesWithTeams({\n filterType = TeamFilterTypes.TeamsIlead,\n searchQuery,\n}: {\n filterType?: TeamFilterTypes\n searchQuery?: string\n} = {}) {\n const { data, ...rest } = useTeams({ filterType })\n\n const decoratedResponse = useMemo(() => {\n return decorateTeamResponseItems(data as TeamResponseItem[], searchQuery)\n }, [data, searchQuery])\n\n return {\n serviceTypes: decoratedResponse,\n ...rest,\n }\n}\n\nconst useTeams = ({ filterType }: { filterType: TeamFilterTypes }) => {\n const requestField = useMemo(() => {\n switch (filterType) {\n case TeamFilterTypes.All:\n return 'teams'\n case TeamFilterTypes.MyTeams:\n return 'my_teams'\n default:\n return 'teams_i_lead'\n }\n }, [filterType])\n\n const { data, ...rest } = useApiGet<ServicesChatResource>({\n url: '/chat',\n data: {\n fields: {\n Chat: [requestField],\n },\n },\n app: 'services',\n })\n\n const result: TeamResponseItem[] = useMemo(() => {\n switch (filterType) {\n case TeamFilterTypes.All:\n return data?.teams || []\n case TeamFilterTypes.MyTeams:\n return data?.myTeams || []\n default:\n return data?.teamsILead || []\n }\n }, [data, filterType])\n\n return { data: result || [], ...rest }\n}\n\nfunction decorateTeamResponseItems(teamResponseItems: TeamResponseItem[], searchQuery?: string) {\n return teamResponseItems\n .filter(item => {\n if (!searchQuery) return true\n\n const evalMatch = (str: string) => str.toLowerCase().includes(searchQuery.toLowerCase())\n const teamNameMatch = evalMatch(item.name)\n const serviceTypeNamesMatch = evalMatch(item.serviceTypeNames?.join(',') || '')\n\n return teamNameMatch || serviceTypeNamesMatch\n })\n .map(({ value, serviceTypeNames, teamName }) => {\n return {\n service_types: value.serviceTypeIds.map((serviceTypeId, i) => ({\n id: serviceTypeId,\n name: serviceTypeNames[i],\n })),\n team: {\n id: value.teamId,\n name: teamName,\n },\n }\n })\n .reduce((acc: ServiceTypeWithTeams[], { service_types, team }) => {\n service_types.forEach(serviceType => {\n let serviceTypeEntry = acc.find(entry => entry.id === serviceType.id)\n\n if (!serviceTypeEntry) {\n serviceTypeEntry = {\n id: serviceType.id,\n name: serviceType.name,\n teams: [],\n }\n acc.push(serviceTypeEntry)\n }\n\n const initialTeams = serviceTypeEntry.teams\n serviceTypeEntry.teams = uniqBy([...initialTeams, team], 'id')\n })\n return acc\n }, [])\n}\n"]}
1
+ {"version":3,"file":"use_service_types_with_teams.js","sourceRoot":"","sources":["../../../../src/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,OAAO,EAAwB,eAAe,EAAE,MAAM,UAAU,CAAA;AAEhE,MAAM,UAAU,wBAAwB,CAAC,EACvC,UAAU,GAAG,eAAe,CAAC,UAAU,EACvC,WAAW,MAIT,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IAElD,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,EAAE;QACrC,OAAO,yBAAyB,CAAC,IAA0B,EAAE,WAAW,CAAC,CAAA;IAC3E,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAA;IAEvB,OAAO;QACL,YAAY,EAAE,iBAAiB;QAC/B,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,EAAE,UAAU,EAAmC,EAAE,EAAE;IACnE,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE;QAChC,QAAQ,UAAU,EAAE,CAAC;YACnB,KAAK,eAAe,CAAC,GAAG;gBACtB,OAAO,OAAO,CAAA;YAChB,KAAK,eAAe,CAAC,OAAO;gBAC1B,OAAO,UAAU,CAAA;YACnB;gBACE,OAAO,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react'\nimport { useApiGet } from '../../../hooks/use_api'\nimport { ServicesChatResource, TeamResponseItem } from '../../../types'\nimport { ServiceTypeWithTeams, TeamFilterTypes } from '../types'\n\nexport function useServiceTypesWithTeams({\n filterType = TeamFilterTypes.TeamsIlead,\n searchQuery,\n}: {\n filterType?: TeamFilterTypes\n searchQuery?: string\n} = {}) {\n const { data, ...rest } = useTeams({ filterType })\n\n const decoratedResponse = useMemo(() => {\n return decorateTeamResponseItems(data as TeamResponseItem[], searchQuery)\n }, [data, searchQuery])\n\n return {\n serviceTypes: decoratedResponse,\n ...rest,\n }\n}\n\nconst useTeams = ({ filterType }: { filterType: TeamFilterTypes }) => {\n const requestField = useMemo(() => {\n switch (filterType) {\n case TeamFilterTypes.All:\n return 'teams'\n case TeamFilterTypes.MyTeams:\n return 'my_teams'\n default:\n return 'teams_i_lead'\n }\n }, [filterType])\n\n const { data, ...rest } = useApiGet<ServicesChatResource>({\n url: '/chat',\n data: {\n fields: {\n Chat: [requestField],\n },\n },\n app: 'services',\n })\n\n const result: TeamResponseItem[] = useMemo(() => {\n switch (filterType) {\n case TeamFilterTypes.All:\n return data?.teams || []\n case TeamFilterTypes.MyTeams:\n return data?.myTeams || []\n default:\n return data?.teamsILead || []\n }\n }, [data, filterType])\n\n return { data: result || [], ...rest }\n}\n\nfunction decorateTeamResponseItems(teamResponseItems: TeamResponseItem[], searchQuery?: string) {\n return teamResponseItems\n .filter(item => {\n if (!searchQuery) return true\n\n const evalMatch = (str: string) => str.toLowerCase().includes(searchQuery.toLowerCase())\n const teamNameMatch = evalMatch(item.name)\n const serviceTypeNamesMatch = evalMatch(item.serviceTypeNames?.join(',') || '')\n\n return teamNameMatch || serviceTypeNamesMatch\n })\n .map(({ value, serviceTypeNames, teamName }) => {\n return {\n service_types: value.serviceTypeIds.map((serviceTypeId, i) => ({\n id: serviceTypeId,\n name: serviceTypeNames[i],\n })),\n team: {\n id: value.teamId,\n name: teamName,\n },\n }\n })\n .reduce((acc: ServiceTypeWithTeams[], { service_types, team }) => {\n service_types.forEach(serviceType => {\n let serviceTypeEntry = acc.find(entry => entry.id === serviceType.id)\n\n if (!serviceTypeEntry) {\n serviceTypeEntry = {\n id: serviceType.id,\n name: serviceType.name,\n teams: [],\n }\n acc.push(serviceTypeEntry)\n }\n\n const initialTeams = serviceTypeEntry.teams\n serviceTypeEntry.teams = uniqBy([...initialTeams, team], 'id')\n })\n return acc\n }, [])\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { StaticScreenProps } from '@react-navigation/native';
2
2
  import { type ViewStyle } from 'react-native';
3
- import { AppName } from '@/types/resources/app_name';
3
+ import { AppName } from '../../types/resources/app_name';
4
4
  export interface ServiceTypeWithTeams {
5
5
  id: number;
6
6
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/screens/conversation_filter_recipients/types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE;QACL,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;KACb,EAAE,CAAA;CACJ;AAED,oBAAY,YAAY;IACtB,MAAM,IAAA;IACN,IAAI,IAAA;CACL;AAED,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,qBAAqB,EAAE,MAAM,EAAE,CAAA;CAChC;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,MAAM,eAA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;IACN,IAAI,IAAA;CACL;AAED,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,qBAAqB,EAAE,MAAM,EAAE,CAAA;CAChC;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,CACjC,QAAQ,CAAC,gBAAgB,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,CACzF,CAAA;AAED,UAAU,QAAQ,CAAC,CAAC,EAAE,KAAK,SAAS,YAAY;IAC9C,IAAI,EAAE,KAAK,CAAA;IACX,IAAI,EAAE,CAAC,CAAA;IACP,YAAY,CAAC,EAAE,SAAS,CAAA;CACzB;AAED,oBAAY,eAAe;IACzB,GAAG,cAAc;IACjB,OAAO,aAAa;IACpB,UAAU,iBAAiB;CAC5B;AAED,MAAM,MAAM,kCAAkC,GAAG;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,gBAAgB,CAAC,EAAE,eAAe,CAAA;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,uCAAuC,GACjD,iBAAiB,CAAC,kCAAkC,CAAC,CAAA;AAEvD,MAAM,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,KAAK,IAAI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/screens/conversation_filter_recipients/types.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mDAAM,CAAA;IACN,+CAAI,CAAA;AACN,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAwBD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,uCAAoB,CAAA;IACpB,8CAA2B,CAAA;AAC7B,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B","sourcesContent":["import { StaticScreenProps } from '@react-navigation/native'\nimport { type ViewStyle } from 'react-native'\nimport { AppName } from '@/types/resources/app_name'\n\nexport interface ServiceTypeWithTeams {\n id: number\n name: string\n teams: {\n id: number\n name: string\n }[]\n}\n\nexport enum SectionTypes {\n header,\n team,\n}\n\nexport interface ServiceTypeProps {\n serviceTypeName: string\n serviceTypeId: number\n teamIdsForServiceType: number[]\n}\n\nexport interface TeamProps {\n teamName: string\n teamId: number\n serviceTypeId: number\n}\n\nexport type SectionListData = Array<\n DataItem<ServiceTypeProps, SectionTypes.header> | DataItem<TeamProps, SectionTypes.team>\n>\n\ninterface DataItem<T, TName extends SectionTypes> {\n type: TName\n data: T\n sectionStyle?: ViewStyle\n}\n\nexport enum TeamFilterTypes {\n All = 'All teams',\n MyTeams = 'My teams',\n TeamsIlead = 'Teams I lead',\n}\n\nexport type ConversationFilterRecipientsParams = {\n source_app_name?: AppName\n team_ids?: number[]\n team_filter_type?: TeamFilterTypes\n search_query?: string\n}\n\nexport type ConversationFilterRecipientsScreenProps =\n StaticScreenProps<ConversationFilterRecipientsParams>\n\nexport type SetTeamFilters = ({ team_ids }: { team_ids: number[] }) => void\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/screens/conversation_filter_recipients/types.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mDAAM,CAAA;IACN,+CAAI,CAAA;AACN,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAwBD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,uCAAoB,CAAA;IACpB,8CAA2B,CAAA;AAC7B,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B","sourcesContent":["import { StaticScreenProps } from '@react-navigation/native'\nimport { type ViewStyle } from 'react-native'\nimport { AppName } from '../../types/resources/app_name'\n\nexport interface ServiceTypeWithTeams {\n id: number\n name: string\n teams: {\n id: number\n name: string\n }[]\n}\n\nexport enum SectionTypes {\n header,\n team,\n}\n\nexport interface ServiceTypeProps {\n serviceTypeName: string\n serviceTypeId: number\n teamIdsForServiceType: number[]\n}\n\nexport interface TeamProps {\n teamName: string\n teamId: number\n serviceTypeId: number\n}\n\nexport type SectionListData = Array<\n DataItem<ServiceTypeProps, SectionTypes.header> | DataItem<TeamProps, SectionTypes.team>\n>\n\ninterface DataItem<T, TName extends SectionTypes> {\n type: TName\n data: T\n sectionStyle?: ViewStyle\n}\n\nexport enum TeamFilterTypes {\n All = 'All teams',\n MyTeams = 'My teams',\n TeamsIlead = 'Teams I lead',\n}\n\nexport type ConversationFilterRecipientsParams = {\n source_app_name?: AppName\n team_ids?: number[]\n team_filter_type?: TeamFilterTypes\n search_query?: string\n}\n\nexport type ConversationFilterRecipientsScreenProps =\n StaticScreenProps<ConversationFilterRecipientsParams>\n\nexport type SetTeamFilters = ({ team_ids }: { team_ids: number[] }) => void\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"conversation_filters.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filters/components/conversation_filters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAsDlD,eAAO,MAAM,mBAAmB,yBAgH/B,CAAA"}
1
+ {"version":3,"file":"conversation_filters.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_filters/components/conversation_filters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAmDlD,eAAO,MAAM,mBAAmB,yBAgH/B,CAAA"}
@@ -1,12 +1,12 @@
1
1
  import React, { useContext, useMemo } from 'react';
2
2
  import { StyleSheet, View } from 'react-native';
3
3
  import { FlatList } from 'react-native-gesture-handler';
4
+ import { Heading } from '../../../components';
5
+ import { useAtFontScaleBreakpoint, useTheme } from '../../../hooks';
6
+ import { FilterContext, useFilterContext } from '../context/conversation_filter_context';
7
+ import { FilterTypes } from '../filter_types';
8
+ import { useGroupsToFilter, useTeamsToFilter } from '../hooks/filters';
4
9
  import { FilterRow, GroupRow, TeamRow, ViewMore, } from './rows';
5
- import { Heading } from '@/components';
6
- import { useAtFontScaleBreakpoint, useTheme } from '@/hooks';
7
- import { FilterContext, useFilterContext, } from '@/screens/conversation_filters/context/conversation_filter_context';
8
- import { FilterTypes } from '@/screens/conversation_filters/filter_types';
9
- import { useGroupsToFilter, useTeamsToFilter } from '@/screens/conversation_filters/hooks/filters';
10
10
  // =========================================
11
11
  // ====== Factory Constants & Types ========
12
12
  // =========================================