@planningcenter/chat-react-native 3.42.2-qa-staging.2 → 3.42.2-qa-821.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/conversation/attachments/attachment_card.d.ts +3 -3
- package/build/components/conversation/attachments/attachment_card.d.ts.map +1 -1
- package/build/components/conversation/attachments/attachment_card.js +3 -7
- package/build/components/conversation/attachments/attachment_card.js.map +1 -1
- package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts +1 -2
- package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts.map +1 -1
- package/build/components/conversation/attachments/attachment_deleting_overlay.js +12 -7
- package/build/components/conversation/attachments/attachment_deleting_overlay.js.map +1 -1
- package/build/components/conversation/attachments/audio_attachment.d.ts +1 -2
- package/build/components/conversation/attachments/audio_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/audio_attachment.js +6 -23
- package/build/components/conversation/attachments/audio_attachment.js.map +1 -1
- package/build/components/conversation/attachments/expanded_link.d.ts +1 -2
- package/build/components/conversation/attachments/expanded_link.d.ts.map +1 -1
- package/build/components/conversation/attachments/expanded_link.js +2 -8
- package/build/components/conversation/attachments/expanded_link.js.map +1 -1
- package/build/components/conversation/attachments/generic_file_attachment.d.ts +1 -2
- package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/generic_file_attachment.js +2 -12
- package/build/components/conversation/attachments/generic_file_attachment.js.map +1 -1
- package/build/components/conversation/attachments/giphy_attachment.d.ts +1 -2
- package/build/components/conversation/attachments/giphy_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/giphy_attachment.js +2 -7
- package/build/components/conversation/attachments/giphy_attachment.js.map +1 -1
- package/build/components/conversation/attachments/image_attachment.d.ts +1 -2
- package/build/components/conversation/attachments/image_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/image_attachment.js +16 -53
- package/build/components/conversation/attachments/image_attachment.js.map +1 -1
- package/build/components/conversation/attachments/video_attachment.d.ts +1 -2
- package/build/components/conversation/attachments/video_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/video_attachment.js +3 -13
- package/build/components/conversation/attachments/video_attachment.js.map +1 -1
- package/build/components/conversation/conversation_start_banner.d.ts +1 -2
- package/build/components/conversation/conversation_start_banner.d.ts.map +1 -1
- package/build/components/conversation/conversation_start_banner.js +2 -14
- package/build/components/conversation/conversation_start_banner.js.map +1 -1
- package/build/components/conversation/empty_conversation_blank_state.d.ts +1 -1
- package/build/components/conversation/empty_conversation_blank_state.d.ts.map +1 -1
- package/build/components/conversation/empty_conversation_blank_state.js +2 -9
- package/build/components/conversation/empty_conversation_blank_state.js.map +1 -1
- package/build/components/conversation/jump_to_bottom_button.d.ts +1 -1
- package/build/components/conversation/jump_to_bottom_button.d.ts.map +1 -1
- package/build/components/conversation/jump_to_bottom_button.js +2 -10
- package/build/components/conversation/jump_to_bottom_button.js.map +1 -1
- package/build/components/conversation/message.d.ts +1 -2
- package/build/components/conversation/message.d.ts.map +1 -1
- package/build/components/conversation/message.js +2 -53
- package/build/components/conversation/message.js.map +1 -1
- package/build/components/conversation/message_attachments.d.ts +1 -2
- package/build/components/conversation/message_attachments.d.ts.map +1 -1
- package/build/components/conversation/message_attachments.js +17 -21
- package/build/components/conversation/message_attachments.js.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_file.d.ts +1 -2
- package/build/components/conversation/message_form/message_form_attachment_file.d.ts.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_file.js +2 -2
- package/build/components/conversation/message_form/message_form_attachment_file.js.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts +1 -2
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_image.js +2 -2
- package/build/components/conversation/message_form/message_form_attachment_image.js.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts +1 -2
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_video.js +2 -2
- package/build/components/conversation/message_form/message_form_attachment_video.js.map +1 -1
- package/build/components/conversation/message_form.d.ts +5 -6
- package/build/components/conversation/message_form.d.ts.map +1 -1
- package/build/components/conversation/message_form.js +20 -82
- package/build/components/conversation/message_form.js.map +1 -1
- package/build/components/conversation/message_markdown.d.ts +1 -2
- package/build/components/conversation/message_markdown.d.ts.map +1 -1
- package/build/components/conversation/message_markdown.js +8 -16
- package/build/components/conversation/message_markdown.js.map +1 -1
- package/build/components/conversation/message_reaction.d.ts +1 -2
- package/build/components/conversation/message_reaction.d.ts.map +1 -1
- package/build/components/conversation/message_reaction.js +3 -5
- package/build/components/conversation/message_reaction.js.map +1 -1
- package/build/components/conversation/message_read_receipts.d.ts +1 -2
- package/build/components/conversation/message_read_receipts.d.ts.map +1 -1
- package/build/components/conversation/message_read_receipts.js +3 -13
- package/build/components/conversation/message_read_receipts.js.map +1 -1
- package/build/components/conversation/messages_disabled_banners.d.ts +3 -3
- package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -1
- package/build/components/conversation/messages_disabled_banners.js +5 -8
- package/build/components/conversation/messages_disabled_banners.js.map +1 -1
- package/build/components/conversation/reply_connectors.d.ts +2 -2
- package/build/components/conversation/reply_connectors.d.ts.map +1 -1
- package/build/components/conversation/reply_connectors.js +18 -50
- package/build/components/conversation/reply_connectors.js.map +1 -1
- package/build/components/conversation/reply_shadow_message.d.ts +1 -2
- package/build/components/conversation/reply_shadow_message.d.ts.map +1 -1
- package/build/components/conversation/reply_shadow_message.js +16 -46
- package/build/components/conversation/reply_shadow_message.js.map +1 -1
- package/build/components/conversation/system_message.d.ts +1 -2
- package/build/components/conversation/system_message.d.ts.map +1 -1
- package/build/components/conversation/system_message.js +3 -12
- package/build/components/conversation/system_message.js.map +1 -1
- package/build/components/conversation/typing_indicator.d.ts +1 -2
- package/build/components/conversation/typing_indicator.d.ts.map +1 -1
- package/build/components/conversation/typing_indicator.js +3 -13
- package/build/components/conversation/typing_indicator.js.map +1 -1
- package/build/components/conversations/conversation_actions.d.ts +2 -2
- package/build/components/conversations/conversation_actions.d.ts.map +1 -1
- package/build/components/conversations/conversation_actions.js +4 -10
- package/build/components/conversations/conversation_actions.js.map +1 -1
- package/build/components/conversations/conversation_preview.d.ts +2 -3
- package/build/components/conversations/conversation_preview.d.ts.map +1 -1
- package/build/components/conversations/conversation_preview.js +12 -76
- package/build/components/conversations/conversation_preview.js.map +1 -1
- package/build/components/conversations/conversations.d.ts +1 -1
- package/build/components/conversations/conversations.d.ts.map +1 -1
- package/build/components/conversations/conversations.js +16 -17
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/conversations/conversations_blank_state.d.ts +1 -2
- package/build/components/conversations/conversations_blank_state.d.ts.map +1 -1
- package/build/components/conversations/conversations_blank_state.js +2 -12
- package/build/components/conversations/conversations_blank_state.js.map +1 -1
- package/build/components/conversations/mute_indicator.d.ts +1 -2
- package/build/components/conversations/mute_indicator.d.ts.map +1 -1
- package/build/components/conversations/mute_indicator.js +2 -2
- package/build/components/conversations/mute_indicator.js.map +1 -1
- package/build/components/conversations/swipeable_toggle_button.d.ts +1 -2
- package/build/components/conversations/swipeable_toggle_button.d.ts.map +1 -1
- package/build/components/conversations/swipeable_toggle_button.js +3 -10
- package/build/components/conversations/swipeable_toggle_button.js.map +1 -1
- package/build/components/conversations/unread_count_badge.d.ts +2 -4
- package/build/components/conversations/unread_count_badge.d.ts.map +1 -1
- package/build/components/conversations/unread_count_badge.js +7 -12
- package/build/components/conversations/unread_count_badge.js.map +1 -1
- package/build/components/display/action_button.d.ts +1 -1
- package/build/components/display/action_button.d.ts.map +1 -1
- package/build/components/display/action_button.js +3 -13
- package/build/components/display/action_button.js.map +1 -1
- package/build/components/display/adult_requirement_notice.d.ts +1 -2
- package/build/components/display/adult_requirement_notice.d.ts.map +1 -1
- package/build/components/display/adult_requirement_notice.js +2 -4
- package/build/components/display/adult_requirement_notice.js.map +1 -1
- package/build/components/display/avatar.d.ts +1 -2
- package/build/components/display/avatar.d.ts.map +1 -1
- package/build/components/display/avatar.js +2 -7
- package/build/components/display/avatar.js.map +1 -1
- package/build/components/display/avatar_group.d.ts +1 -2
- package/build/components/display/avatar_group.d.ts.map +1 -1
- package/build/components/display/avatar_group.js +2 -9
- package/build/components/display/avatar_group.js.map +1 -1
- package/build/components/display/badge.d.ts +1 -2
- package/build/components/display/badge.d.ts.map +1 -1
- package/build/components/display/badge.js +6 -37
- package/build/components/display/badge.js.map +1 -1
- package/build/components/display/banner.d.ts +3 -3
- package/build/components/display/banner.d.ts.map +1 -1
- package/build/components/display/banner.js +4 -11
- package/build/components/display/banner.js.map +1 -1
- package/build/components/display/banner_collapsible.d.ts +2 -2
- package/build/components/display/banner_collapsible.d.ts.map +1 -1
- package/build/components/display/banner_collapsible.js +2 -10
- package/build/components/display/banner_collapsible.js.map +1 -1
- package/build/components/display/button.d.ts +1 -2
- package/build/components/display/button.d.ts.map +1 -1
- package/build/components/display/button.js +3 -14
- package/build/components/display/button.js.map +1 -1
- package/build/components/display/child_notice.d.ts +1 -2
- package/build/components/display/child_notice.d.ts.map +1 -1
- package/build/components/display/child_notice.js +3 -15
- package/build/components/display/child_notice.js.map +1 -1
- package/build/components/display/conversation_avatar.d.ts +1 -2
- package/build/components/display/conversation_avatar.d.ts.map +1 -1
- package/build/components/display/conversation_avatar.js +5 -9
- package/build/components/display/conversation_avatar.js.map +1 -1
- package/build/components/display/emoji_avatar.d.ts +1 -2
- package/build/components/display/emoji_avatar.d.ts.map +1 -1
- package/build/components/display/emoji_avatar.js +2 -12
- package/build/components/display/emoji_avatar.js.map +1 -1
- package/build/components/display/file_attachment_preview.d.ts +1 -1
- package/build/components/display/file_attachment_preview.d.ts.map +1 -1
- package/build/components/display/file_attachment_preview.js +3 -17
- package/build/components/display/file_attachment_preview.js.map +1 -1
- package/build/components/display/heading.d.ts +1 -2
- package/build/components/display/heading.d.ts.map +1 -1
- package/build/components/display/heading.js +2 -4
- package/build/components/display/heading.js.map +1 -1
- package/build/components/display/icon.d.ts +1 -2
- package/build/components/display/icon.d.ts.map +1 -1
- package/build/components/display/icon.js +4 -4
- package/build/components/display/icon.js.map +1 -1
- package/build/components/display/icon_avatar.d.ts +1 -2
- package/build/components/display/icon_avatar.d.ts.map +1 -1
- package/build/components/display/icon_avatar.js +2 -12
- package/build/components/display/icon_avatar.js.map +1 -1
- package/build/components/display/icon_button.d.ts +1 -2
- package/build/components/display/icon_button.d.ts.map +1 -1
- package/build/components/display/icon_button.js +3 -5
- package/build/components/display/icon_button.js.map +1 -1
- package/build/components/display/image.d.ts +1 -2
- package/build/components/display/image.d.ts.map +1 -1
- package/build/components/display/image.js +3 -7
- package/build/components/display/image.js.map +1 -1
- package/build/components/display/image_attachment_preview.d.ts +1 -1
- package/build/components/display/image_attachment_preview.d.ts.map +1 -1
- package/build/components/display/image_attachment_preview.js +2 -7
- package/build/components/display/image_attachment_preview.js.map +1 -1
- package/build/components/display/keyboard_view.d.ts +1 -2
- package/build/components/display/keyboard_view.d.ts.map +1 -1
- package/build/components/display/keyboard_view.js +4 -9
- package/build/components/display/keyboard_view.js.map +1 -1
- package/build/components/display/person.d.ts +1 -2
- package/build/components/display/person.d.ts.map +1 -1
- package/build/components/display/person.js +2 -12
- package/build/components/display/person.js.map +1 -1
- package/build/components/display/platform_modal_header_buttons.d.ts +3 -3
- package/build/components/display/platform_modal_header_buttons.d.ts.map +1 -1
- package/build/components/display/platform_modal_header_buttons.js +5 -10
- package/build/components/display/platform_modal_header_buttons.js.map +1 -1
- package/build/components/display/pressable_row.d.ts +1 -1
- package/build/components/display/pressable_row.d.ts.map +1 -1
- package/build/components/display/pressable_row.js +2 -7
- package/build/components/display/pressable_row.js.map +1 -1
- package/build/components/display/spinner.d.ts +1 -2
- package/build/components/display/spinner.d.ts.map +1 -1
- package/build/components/display/spinner.js +3 -9
- package/build/components/display/spinner.js.map +1 -1
- package/build/components/display/switch.d.ts +1 -2
- package/build/components/display/switch.d.ts.map +1 -1
- package/build/components/display/switch.js +2 -2
- package/build/components/display/switch.js.map +1 -1
- package/build/components/display/tabs.d.ts +1 -1
- package/build/components/display/tabs.d.ts.map +1 -1
- package/build/components/display/tabs.js +21 -31
- package/build/components/display/tabs.js.map +1 -1
- package/build/components/display/text.d.ts +1 -2
- package/build/components/display/text.d.ts.map +1 -1
- package/build/components/display/text.js +2 -4
- package/build/components/display/text.js.map +1 -1
- package/build/components/display/text_button.d.ts +1 -2
- package/build/components/display/text_button.d.ts.map +1 -1
- package/build/components/display/text_button.js +3 -8
- package/build/components/display/text_button.js.map +1 -1
- package/build/components/display/text_inline_button.d.ts +1 -2
- package/build/components/display/text_inline_button.d.ts.map +1 -1
- package/build/components/display/text_inline_button.js +4 -5
- package/build/components/display/text_inline_button.js.map +1 -1
- package/build/components/display/text_input.d.ts +1 -1
- package/build/components/display/text_input.d.ts.map +1 -1
- package/build/components/display/text_input.js +2 -1
- package/build/components/display/text_input.js.map +1 -1
- package/build/components/display/toggle_button.d.ts +1 -2
- package/build/components/display/toggle_button.d.ts.map +1 -1
- package/build/components/display/toggle_button.js +3 -9
- package/build/components/display/toggle_button.js.map +1 -1
- package/build/components/display/video_attachment_preview.d.ts +1 -1
- package/build/components/display/video_attachment_preview.d.ts.map +1 -1
- package/build/components/display/video_attachment_preview.js +3 -20
- package/build/components/display/video_attachment_preview.js.map +1 -1
- package/build/components/group_conversation_list.d.ts +1 -1
- package/build/components/group_conversation_list.d.ts.map +1 -1
- package/build/components/group_conversation_list.js +4 -14
- package/build/components/group_conversation_list.js.map +1 -1
- package/build/components/page/component_error_boundary.d.ts +2 -2
- package/build/components/page/component_error_boundary.d.ts.map +1 -1
- package/build/components/page/component_error_boundary.js +2 -4
- package/build/components/page/component_error_boundary.js.map +1 -1
- package/build/components/page/loading.d.ts +1 -2
- package/build/components/page/loading.d.ts.map +1 -1
- package/build/components/page/loading.js +2 -4
- package/build/components/page/loading.js.map +1 -1
- package/build/components/page/page_error_boundary.d.ts +2 -2
- package/build/components/page/page_error_boundary.d.ts.map +1 -1
- package/build/components/page/page_error_boundary.js +11 -32
- package/build/components/page/page_error_boundary.js.map +1 -1
- package/build/components/primitive/avatar_primitive.js +14 -41
- package/build/components/primitive/avatar_primitive.js.map +1 -1
- package/build/components/primitive/banner_primitive.js +10 -18
- package/build/components/primitive/banner_primitive.js.map +1 -1
- package/build/components/primitive/blank_state_primitive.js +8 -12
- package/build/components/primitive/blank_state_primitive.js.map +1 -1
- package/build/components/primitive/form_sheet.d.ts +1 -1
- package/build/components/primitive/form_sheet.d.ts.map +1 -1
- package/build/components/primitive/form_sheet.js +9 -22
- package/build/components/primitive/form_sheet.js.map +1 -1
- package/build/components/safe_area_modal.d.ts +1 -1
- package/build/components/safe_area_modal.d.ts.map +1 -1
- package/build/components/safe_area_modal.js +2 -3
- package/build/components/safe_area_modal.js.map +1 -1
- package/build/contexts/api_provider.d.ts +1 -2
- package/build/contexts/api_provider.d.ts.map +1 -1
- package/build/contexts/api_provider.js +3 -5
- package/build/contexts/api_provider.js.map +1 -1
- package/build/contexts/chat_context.d.ts +1 -1
- package/build/contexts/chat_context.d.ts.map +1 -1
- package/build/contexts/chat_context.js +2 -1
- package/build/contexts/chat_context.js.map +1 -1
- package/build/contexts/conversation_context.d.ts +2 -2
- package/build/contexts/conversation_context.d.ts.map +1 -1
- package/build/contexts/conversation_context.js +3 -2
- package/build/contexts/conversation_context.js.map +1 -1
- package/build/contexts/conversations_context.d.ts +2 -2
- package/build/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js +3 -2
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/contexts/session_context.d.ts +1 -1
- package/build/contexts/session_context.d.ts.map +1 -1
- package/build/contexts/session_context.js +3 -2
- package/build/contexts/session_context.js.map +1 -1
- package/build/hooks/use_animated_message_background_color.d.ts +2 -2
- package/build/hooks/use_conversation.d.ts +1 -1
- package/build/hooks/use_conversation.d.ts.map +1 -1
- package/build/hooks/use_conversation.js +0 -2
- package/build/hooks/use_conversation.js.map +1 -1
- package/build/hooks/use_conversation_jolt_events.d.ts.map +1 -1
- package/build/hooks/use_conversation_jolt_events.js +19 -4
- package/build/hooks/use_conversation_jolt_events.js.map +1 -1
- package/build/hooks/use_conversation_membership.d.ts +1 -1
- package/build/hooks/use_conversation_membership.d.ts.map +1 -1
- package/build/hooks/use_conversation_messages.d.ts +1 -0
- package/build/hooks/use_conversation_messages.d.ts.map +1 -1
- package/build/hooks/use_conversation_messages.js +2 -2
- package/build/hooks/use_conversation_messages.js.map +1 -1
- package/build/hooks/use_conversations_actions.d.ts +36 -36
- package/build/hooks/use_conversations_actions.d.ts.map +1 -1
- package/build/hooks/use_conversations_actions.js +1 -3
- package/build/hooks/use_conversations_actions.js.map +1 -1
- package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -1
- package/build/hooks/use_mark_latest_message_read.js +4 -3
- package/build/hooks/use_mark_latest_message_read.js.map +1 -1
- package/build/hooks/use_person_settings.d.ts +1 -1
- package/build/hooks/use_suspense_api.d.ts.map +1 -1
- package/build/hooks/use_suspense_api.js +7 -1
- package/build/hooks/use_suspense_api.js.map +1 -1
- package/build/index.d.ts +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js.map +1 -1
- package/build/navigation/chat_access_gate.d.ts +2 -2
- package/build/navigation/chat_access_gate.d.ts.map +1 -1
- package/build/navigation/chat_access_gate.js +6 -5
- package/build/navigation/chat_access_gate.js.map +1 -1
- package/build/navigation/index.d.ts +35 -36
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +19 -21
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/screenLayout.d.ts +2 -2
- package/build/navigation/screenLayout.d.ts.map +1 -1
- package/build/navigation/screenLayout.js +3 -9
- package/build/navigation/screenLayout.js.map +1 -1
- package/build/polyfills/events/EventTarget.d.ts +1 -1
- package/build/polyfills/events/EventTarget.d.ts.map +1 -1
- package/build/polyfills/events/EventTarget.js.map +1 -1
- package/build/screens/age_check/age_check_required_screen.d.ts +1 -2
- package/build/screens/age_check/age_check_required_screen.d.ts.map +1 -1
- package/build/screens/age_check/age_check_required_screen.js +3 -46
- package/build/screens/age_check/age_check_required_screen.js.map +1 -1
- package/build/screens/age_check/age_check_underage_screen.d.ts +1 -2
- package/build/screens/age_check/age_check_underage_screen.d.ts.map +1 -1
- package/build/screens/age_check/age_check_underage_screen.js +2 -25
- package/build/screens/age_check/age_check_underage_screen.js.map +1 -1
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts +1 -2
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts.map +1 -1
- package/build/screens/age_check/components/age_check_select_birthdate_modal.js +6 -25
- package/build/screens/age_check/components/age_check_select_birthdate_modal.js.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts +1 -2
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.js +3 -5
- package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts +1 -2
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts.map +1 -1
- package/build/screens/avatar_picker/avatar_picker_screen.js +9 -36
- package/build/screens/avatar_picker/avatar_picker_screen.js.map +1 -1
- package/build/screens/avatar_picker/avatar_preview.d.ts +1 -1
- package/build/screens/avatar_picker/avatar_preview.d.ts.map +1 -1
- package/build/screens/avatar_picker/avatar_preview.js +5 -9
- package/build/screens/avatar_picker/avatar_preview.js.map +1 -1
- package/build/screens/avatar_picker/color_picker.d.ts +1 -2
- package/build/screens/avatar_picker/color_picker.d.ts.map +1 -1
- package/build/screens/avatar_picker/color_picker.js +4 -5
- package/build/screens/avatar_picker/color_picker.js.map +1 -1
- package/build/screens/avatar_picker/emoji_tab.d.ts +1 -2
- package/build/screens/avatar_picker/emoji_tab.d.ts.map +1 -1
- package/build/screens/avatar_picker/emoji_tab.js +12 -13
- package/build/screens/avatar_picker/emoji_tab.js.map +1 -1
- package/build/screens/avatar_picker/icon_grid.d.ts +1 -2
- package/build/screens/avatar_picker/icon_grid.d.ts.map +1 -1
- package/build/screens/avatar_picker/icon_grid.js +4 -5
- package/build/screens/avatar_picker/icon_grid.js.map +1 -1
- package/build/screens/avatar_picker/upload_tab.d.ts +1 -2
- package/build/screens/avatar_picker/upload_tab.d.ts.map +1 -1
- package/build/screens/avatar_picker/upload_tab.js +3 -4
- package/build/screens/avatar_picker/upload_tab.js.map +1 -1
- package/build/screens/bug_report_screen.d.ts +1 -2
- package/build/screens/bug_report_screen.d.ts.map +1 -1
- package/build/screens/bug_report_screen.js +11 -117
- package/build/screens/bug_report_screen.js.map +1 -1
- package/build/screens/conversation/message_read_receipts_screen.d.ts +1 -2
- package/build/screens/conversation/message_read_receipts_screen.d.ts.map +1 -1
- package/build/screens/conversation/message_read_receipts_screen.js +4 -20
- package/build/screens/conversation/message_read_receipts_screen.js.map +1 -1
- package/build/screens/conversation_details_screen.d.ts +1 -2
- package/build/screens/conversation_details_screen.d.ts.map +1 -1
- package/build/screens/conversation_details_screen.js +43 -106
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js +3 -9
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js.map +1 -1
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts +1 -1
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/components/header_row.js +2 -12
- package/build/screens/conversation_filter_recipients/components/header_row.js.map +1 -1
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts +1 -2
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js +20 -44
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js.map +1 -1
- package/build/screens/conversation_filters/components/conversation_filters.d.ts +1 -2
- package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/conversation_filters.js +10 -11
- package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
- package/build/screens/conversation_filters/components/rows.d.ts +6 -6
- package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/rows.js +7 -34
- package/build/screens/conversation_filters/components/rows.js.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.js +2 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
- package/build/screens/conversation_filters/group_filters.d.ts +1 -2
- package/build/screens/conversation_filters/group_filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/group_filters.js +2 -2
- package/build/screens/conversation_filters/group_filters.js.map +1 -1
- package/build/screens/conversation_filters/team_filters.d.ts +1 -2
- package/build/screens/conversation_filters/team_filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/team_filters.js +2 -2
- package/build/screens/conversation_filters/team_filters.js.map +1 -1
- package/build/screens/conversation_filters_screen.d.ts +1 -2
- package/build/screens/conversation_filters_screen.d.ts.map +1 -1
- package/build/screens/conversation_filters_screen.js +4 -16
- package/build/screens/conversation_filters_screen.js.map +1 -1
- package/build/screens/conversation_new/components/avatar_selection_row.d.ts +2 -3
- package/build/screens/conversation_new/components/avatar_selection_row.d.ts.map +1 -1
- package/build/screens/conversation_new/components/avatar_selection_row.js +6 -16
- package/build/screens/conversation_new/components/avatar_selection_row.js.map +1 -1
- package/build/screens/conversation_new/components/filter_by_plan.d.ts +3 -4
- package/build/screens/conversation_new/components/filter_by_plan.d.ts.map +1 -1
- package/build/screens/conversation_new/components/filter_by_plan.js +22 -46
- package/build/screens/conversation_new/components/filter_by_plan.js.map +1 -1
- package/build/screens/conversation_new/components/form_list.d.ts +2 -3
- package/build/screens/conversation_new/components/form_list.d.ts.map +1 -1
- package/build/screens/conversation_new/components/form_list.js +4 -6
- package/build/screens/conversation_new/components/form_list.js.map +1 -1
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts +1 -2
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts.map +1 -1
- package/build/screens/conversation_new/components/gender_filter_toggle.js +4 -20
- package/build/screens/conversation_new/components/gender_filter_toggle.js.map +1 -1
- package/build/screens/conversation_new/components/groups_form.d.ts +1 -2
- package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -1
- package/build/screens/conversation_new/components/groups_form.js +4 -30
- package/build/screens/conversation_new/components/groups_form.js.map +1 -1
- package/build/screens/conversation_new/components/services_form.d.ts +1 -2
- package/build/screens/conversation_new/components/services_form.d.ts.map +1 -1
- package/build/screens/conversation_new/components/services_form.js +27 -61
- package/build/screens/conversation_new/components/services_form.js.map +1 -1
- package/build/screens/conversation_new/components/source_app_error_card.d.ts +1 -1
- package/build/screens/conversation_new/components/source_app_error_card.d.ts.map +1 -1
- package/build/screens/conversation_new/components/source_app_error_card.js +2 -3
- package/build/screens/conversation_new/components/source_app_error_card.js.map +1 -1
- package/build/screens/conversation_new/conversation_new_screen.d.ts +1 -2
- package/build/screens/conversation_new/conversation_new_screen.d.ts.map +1 -1
- package/build/screens/conversation_new/conversation_new_screen.js +4 -4
- package/build/screens/conversation_new/conversation_new_screen.js.map +1 -1
- package/build/screens/conversation_notification_level_select_screen.d.ts +1 -2
- package/build/screens/conversation_notification_level_select_screen.d.ts.map +1 -1
- package/build/screens/conversation_notification_level_select_screen.js +4 -6
- package/build/screens/conversation_notification_level_select_screen.js.map +1 -1
- package/build/screens/conversation_screen.d.ts +2 -3
- package/build/screens/conversation_screen.d.ts.map +1 -1
- package/build/screens/conversation_screen.js +25 -66
- package/build/screens/conversation_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts +1 -1
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.js +2 -1
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.js.map +1 -1
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts +1 -2
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/components/recipient_link_row.js +2 -15
- package/build/screens/conversation_select_recipients/components/recipient_link_row.js.map +1 -1
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts +1 -2
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/components/restricted_group_row.js +2 -14
- package/build/screens/conversation_select_recipients/components/restricted_group_row.js.map +1 -1
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts +1 -1
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/components/team_recipient_row.js +2 -1
- package/build/screens/conversation_select_recipients/components/team_recipient_row.js.map +1 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts +1 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.js +2 -5
- package/build/screens/conversation_select_recipients/components/view_more_link_row.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts +1 -2
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +4 -11
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js +11 -83
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts +1 -2
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js +7 -14
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts +1 -2
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js +15 -18
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_type_screen.d.ts +1 -2
- package/build/screens/conversation_select_type_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_type_screen.js +3 -10
- package/build/screens/conversation_select_type_screen.js.map +1 -1
- package/build/screens/conversations/components/chat_group_badge.d.ts +1 -2
- package/build/screens/conversations/components/chat_group_badge.d.ts.map +1 -1
- package/build/screens/conversations/components/chat_group_badge.js +3 -4
- package/build/screens/conversations/components/chat_group_badge.js.map +1 -1
- package/build/screens/conversations/components/list_header_action_button.d.ts +1 -2
- package/build/screens/conversations/components/list_header_action_button.d.ts.map +1 -1
- package/build/screens/conversations/components/list_header_action_button.js +3 -5
- package/build/screens/conversations/components/list_header_action_button.js.map +1 -1
- package/build/screens/conversations/components/list_header_component.d.ts +1 -2
- package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/list_header_component.js +19 -42
- package/build/screens/conversations/components/list_header_component.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts +1 -2
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +2 -6
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/screens/design_system_screen.d.ts +1 -2
- package/build/screens/design_system_screen.d.ts.map +1 -1
- package/build/screens/design_system_screen.js +35 -558
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/screens/get_help_screen.d.ts +1 -1
- package/build/screens/get_help_screen.d.ts.map +1 -1
- package/build/screens/get_help_screen.js +4 -25
- package/build/screens/get_help_screen.js.map +1 -1
- package/build/screens/group_notification_level_select_screen.d.ts +1 -2
- package/build/screens/group_notification_level_select_screen.d.ts.map +1 -1
- package/build/screens/group_notification_level_select_screen.js +2 -4
- package/build/screens/group_notification_level_select_screen.js.map +1 -1
- package/build/screens/group_notification_settings_screen.d.ts +1 -2
- package/build/screens/group_notification_settings_screen.d.ts.map +1 -1
- package/build/screens/group_notification_settings_screen.js +3 -25
- package/build/screens/group_notification_settings_screen.js.map +1 -1
- package/build/screens/message_actions_screen.d.ts +1 -2
- package/build/screens/message_actions_screen.d.ts.map +1 -1
- package/build/screens/message_actions_screen.js +12 -28
- package/build/screens/message_actions_screen.js.map +1 -1
- package/build/screens/message_report/components/message_preview.d.ts +1 -2
- package/build/screens/message_report/components/message_preview.d.ts.map +1 -1
- package/build/screens/message_report/components/message_preview.js +2 -22
- package/build/screens/message_report/components/message_preview.js.map +1 -1
- package/build/screens/message_report/components/report_reason_list.d.ts +1 -2
- package/build/screens/message_report/components/report_reason_list.d.ts.map +1 -1
- package/build/screens/message_report/components/report_reason_list.js +4 -13
- package/build/screens/message_report/components/report_reason_list.js.map +1 -1
- package/build/screens/message_report_screen.d.ts +1 -2
- package/build/screens/message_report_screen.d.ts.map +1 -1
- package/build/screens/message_report_screen.js +9 -61
- package/build/screens/message_report_screen.js.map +1 -1
- package/build/screens/not_found.d.ts +1 -2
- package/build/screens/not_found.d.ts.map +1 -1
- package/build/screens/not_found.js +2 -5
- package/build/screens/not_found.js.map +1 -1
- package/build/screens/notification_settings/hooks/groups.d.ts +1 -1
- package/build/screens/notification_settings/hooks/groups.d.ts.map +1 -1
- package/build/screens/notification_settings_screen.d.ts +1 -2
- package/build/screens/notification_settings_screen.d.ts.map +1 -1
- package/build/screens/notification_settings_screen.js +28 -66
- package/build/screens/notification_settings_screen.js.map +1 -1
- package/build/screens/preferred_app_selection_screen.d.ts +1 -2
- package/build/screens/preferred_app_selection_screen.d.ts.map +1 -1
- package/build/screens/preferred_app_selection_screen.js +3 -21
- package/build/screens/preferred_app_selection_screen.js.map +1 -1
- package/build/screens/reactions_screen.d.ts +1 -2
- package/build/screens/reactions_screen.d.ts.map +1 -1
- package/build/screens/reactions_screen.js +7 -19
- package/build/screens/reactions_screen.js.map +1 -1
- package/build/screens/send_giphy_screen.d.ts +1 -2
- package/build/screens/send_giphy_screen.d.ts.map +1 -1
- package/build/screens/send_giphy_screen.js +5 -31
- package/build/screens/send_giphy_screen.js.map +1 -1
- package/build/screens/settings_screen.d.ts +1 -2
- package/build/screens/settings_screen.d.ts.map +1 -1
- package/build/screens/settings_screen.js +4 -26
- package/build/screens/settings_screen.js.map +1 -1
- package/build/screens/system_message_people_screen.d.ts +1 -2
- package/build/screens/system_message_people_screen.d.ts.map +1 -1
- package/build/screens/system_message_people_screen.js +4 -10
- package/build/screens/system_message_people_screen.js.map +1 -1
- package/build/screens/team_conversation_screen.d.ts +1 -1
- package/build/screens/team_conversation_screen.d.ts.map +1 -1
- package/build/screens/team_conversation_screen.js +4 -12
- package/build/screens/team_conversation_screen.js.map +1 -1
- package/build/types/resources/conversation.d.ts +1 -10
- package/build/types/resources/conversation.d.ts.map +1 -1
- package/build/types/resources/conversation.js.map +1 -1
- package/build/utils/client/client.d.ts.map +1 -1
- package/build/utils/client/client.js +1 -2
- package/build/utils/client/client.js.map +1 -1
- package/build/utils/request/conversation.d.ts.map +1 -1
- package/build/utils/request/conversation.js +0 -2
- package/build/utils/request/conversation.js.map +1 -1
- package/build/utils/response_error.d.ts +0 -1
- package/build/utils/response_error.d.ts.map +1 -1
- package/build/utils/response_error.js +1 -10
- package/build/utils/response_error.js.map +1 -1
- package/build/utils/sha_256.js.map +1 -1
- package/build/utils/system_messages.d.ts +1 -1
- package/build/utils/system_messages.d.ts.map +1 -1
- package/build/utils/system_messages.js.map +1 -1
- package/build/utils/theme.d.ts +2 -2
- package/build/utils/theme.d.ts.map +1 -1
- package/build/utils/theme.js.map +1 -1
- package/package.json +12 -12
- package/src/__tests__/hooks/use_attachment_uploader.test.tsx +1 -0
- package/src/__tests__/hooks/use_font_scale.test.ts +7 -3
- package/src/__tests__/utils/native_adapters/configuration.ts +1 -1
- package/src/__tests__/utils/system_messages.ts +1 -1
- package/src/__tests__/utils/uri.ts +8 -50
- package/src/__utils__/handlers.ts +5 -6
- package/src/components/conversation/attachments/attachment_deleting_overlay.tsx +10 -3
- package/src/components/conversations/conversation_preview.tsx +23 -58
- package/src/components/conversations/unread_count_badge.tsx +4 -13
- package/src/components/page/__tests__/component_error_boundary.test.tsx +1 -1
- package/src/components/page/__tests__/error_boundary.test.tsx +6 -2
- package/src/components/page/__tests__/page_error_boundary.test.tsx +1 -1
- package/src/hooks/use_conversation.ts +0 -2
- package/src/hooks/use_conversation_jolt_events.ts +19 -3
- package/src/hooks/use_conversation_messages.ts +6 -5
- package/src/hooks/use_conversations_actions.ts +1 -3
- package/src/hooks/use_mark_latest_message_read.ts +4 -3
- package/src/hooks/use_suspense_api.ts +9 -1
- package/src/index.tsx +2 -1
- package/src/polyfills/events/EventTarget.ts +1 -1
- package/src/screens/conversation_screen.tsx +4 -2
- package/src/screens/conversations/components/list_header_component.tsx +6 -6
- package/src/types/resources/conversation.ts +1 -11
- package/src/utils/client/client.ts +1 -2
- package/src/utils/request/conversation.ts +0 -2
- package/src/utils/response_error.ts +1 -12
- package/src/utils/sha_256.ts +24 -24
- package/src/utils/system_messages.ts +1 -1
- package/src/utils/theme.ts +3 -2
- package/src/utils/__tests__/response_error.test.ts +0 -40
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Uri } from '../../utils'
|
|
1
|
+
import { Session, Uri } from '../../utils'
|
|
2
2
|
|
|
3
3
|
describe('URI', () => {
|
|
4
4
|
it('should be defined', () => {
|
|
@@ -7,13 +7,7 @@ describe('URI', () => {
|
|
|
7
7
|
|
|
8
8
|
it('should create a new instance', () => {
|
|
9
9
|
const uri = new Uri({
|
|
10
|
-
session: {
|
|
11
|
-
env: 'production',
|
|
12
|
-
token: undefined,
|
|
13
|
-
type: 'OAuth',
|
|
14
|
-
isAuthenticated: false,
|
|
15
|
-
isChurchCenterToken: false,
|
|
16
|
-
},
|
|
10
|
+
session: new Session({ env: 'production', type: 'OAuth' }),
|
|
17
11
|
})
|
|
18
12
|
expect(uri).toBeDefined()
|
|
19
13
|
})
|
|
@@ -22,39 +16,21 @@ describe('URI', () => {
|
|
|
22
16
|
describe('planning center', () => {
|
|
23
17
|
it('should return the correct base URL for production', () => {
|
|
24
18
|
const uri = new Uri({
|
|
25
|
-
session: {
|
|
26
|
-
env: 'production',
|
|
27
|
-
token: undefined,
|
|
28
|
-
type: 'OAuth',
|
|
29
|
-
isAuthenticated: false,
|
|
30
|
-
isChurchCenterToken: false,
|
|
31
|
-
},
|
|
19
|
+
session: new Session({ env: 'production', type: 'OAuth' }),
|
|
32
20
|
})
|
|
33
21
|
expect(uri.baseUrl).toBe('https://api.planningcenteronline.com')
|
|
34
22
|
})
|
|
35
23
|
|
|
36
24
|
it('should return the correct base URL for staging', () => {
|
|
37
25
|
const uri = new Uri({
|
|
38
|
-
session: {
|
|
39
|
-
env: 'staging',
|
|
40
|
-
token: undefined,
|
|
41
|
-
type: 'OAuth',
|
|
42
|
-
isAuthenticated: false,
|
|
43
|
-
isChurchCenterToken: false,
|
|
44
|
-
},
|
|
26
|
+
session: new Session({ env: 'staging', type: 'OAuth' }),
|
|
45
27
|
})
|
|
46
28
|
expect(uri.baseUrl).toBe('https://api-staging.planningcenteronline.com')
|
|
47
29
|
})
|
|
48
30
|
|
|
49
31
|
it('should return the correct base URL for development', () => {
|
|
50
32
|
const uri = new Uri({
|
|
51
|
-
session: {
|
|
52
|
-
env: 'development',
|
|
53
|
-
token: undefined,
|
|
54
|
-
type: 'OAuth',
|
|
55
|
-
isAuthenticated: false,
|
|
56
|
-
isChurchCenterToken: false,
|
|
57
|
-
},
|
|
33
|
+
session: new Session({ env: 'development', type: 'OAuth' }),
|
|
58
34
|
})
|
|
59
35
|
expect(uri.baseUrl).toBe('https://api.pco.test')
|
|
60
36
|
})
|
|
@@ -63,13 +39,7 @@ describe('URI', () => {
|
|
|
63
39
|
describe('church center', () => {
|
|
64
40
|
it('should return the correct base URL for production', () => {
|
|
65
41
|
const uri = new Uri({
|
|
66
|
-
session: {
|
|
67
|
-
env: 'production',
|
|
68
|
-
token: undefined,
|
|
69
|
-
type: 'ChurchCenterOauth',
|
|
70
|
-
isAuthenticated: false,
|
|
71
|
-
isChurchCenterToken: true,
|
|
72
|
-
},
|
|
42
|
+
session: new Session({ env: 'production', type: 'ChurchCenterOauth' }),
|
|
73
43
|
graph: 'churchcenter',
|
|
74
44
|
})
|
|
75
45
|
expect(uri.baseUrl).toBe('https://api.churchcenter.com')
|
|
@@ -77,13 +47,7 @@ describe('URI', () => {
|
|
|
77
47
|
|
|
78
48
|
it('should return the correct base URL for staging', () => {
|
|
79
49
|
const uri = new Uri({
|
|
80
|
-
session: {
|
|
81
|
-
env: 'staging',
|
|
82
|
-
token: undefined,
|
|
83
|
-
type: 'ChurchCenterOauth',
|
|
84
|
-
isAuthenticated: false,
|
|
85
|
-
isChurchCenterToken: true,
|
|
86
|
-
},
|
|
50
|
+
session: new Session({ env: 'staging', type: 'ChurchCenterOauth' }),
|
|
87
51
|
graph: 'churchcenter',
|
|
88
52
|
})
|
|
89
53
|
expect(uri.baseUrl).toBe('https://api.staging.churchcenter.com')
|
|
@@ -91,13 +55,7 @@ describe('URI', () => {
|
|
|
91
55
|
|
|
92
56
|
it('should return the correct base URL for development', () => {
|
|
93
57
|
const uri = new Uri({
|
|
94
|
-
session: {
|
|
95
|
-
env: 'development',
|
|
96
|
-
token: undefined,
|
|
97
|
-
type: 'ChurchCenterOauth',
|
|
98
|
-
isAuthenticated: false,
|
|
99
|
-
isChurchCenterToken: true,
|
|
100
|
-
},
|
|
58
|
+
session: new Session({ env: 'development', type: 'ChurchCenterOauth' }),
|
|
101
59
|
graph: 'churchcenter',
|
|
102
60
|
})
|
|
103
61
|
expect(uri.baseUrl).toBe('https://api.churchcenter.test')
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { http, HttpResponse } from 'msw'
|
|
2
|
-
import { JSONAPIResponse } from '../types'
|
|
1
|
+
import { http, HttpResponse, type JsonBodyType } from 'msw'
|
|
3
2
|
import DefaultFixtures from './fixtures/defaults'
|
|
4
3
|
|
|
5
4
|
export const BASE_URL = 'https://api.pco.test/chat/v2'
|
|
@@ -13,25 +12,25 @@ export const handlers = [
|
|
|
13
12
|
del(BASE_URL + '/records/:id'),
|
|
14
13
|
]
|
|
15
14
|
|
|
16
|
-
function get(url: string, mockedResponse:
|
|
15
|
+
function get(url: string, mockedResponse: JsonBodyType, mockedStatus: number = 200) {
|
|
17
16
|
return http.get(url, () => {
|
|
18
17
|
return HttpResponse.json(mockedResponse, { status: mockedStatus })
|
|
19
18
|
})
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
function post(url: string, mockedResponse:
|
|
21
|
+
function post(url: string, mockedResponse: JsonBodyType, mockedStatus: number = 200) {
|
|
23
22
|
return http.post(url, () => {
|
|
24
23
|
return HttpResponse.json(mockedResponse, { status: mockedStatus })
|
|
25
24
|
})
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
function del(url: string, mockedResponse?:
|
|
27
|
+
function del(url: string, mockedResponse?: JsonBodyType, mockedStatus: number = 200) {
|
|
29
28
|
return http.delete(url, () => {
|
|
30
29
|
return HttpResponse.json(mockedResponse, { status: mockedStatus })
|
|
31
30
|
})
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
function patch(url: string, mockedResponse:
|
|
33
|
+
function patch(url: string, mockedResponse: JsonBodyType, mockedStatus: number = 200) {
|
|
35
34
|
return http.patch(url, () => {
|
|
36
35
|
return HttpResponse.json(mockedResponse, { status: mockedStatus })
|
|
37
36
|
})
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import { View, StyleSheet } from 'react-native'
|
|
3
2
|
import { useTheme } from '../../../hooks'
|
|
4
3
|
import { Spinner } from '../../display'
|
|
@@ -19,14 +18,22 @@ const useStyles = () => {
|
|
|
19
18
|
|
|
20
19
|
return StyleSheet.create({
|
|
21
20
|
container: {
|
|
22
|
-
|
|
21
|
+
position: 'absolute',
|
|
22
|
+
top: 0,
|
|
23
|
+
left: 0,
|
|
24
|
+
right: 0,
|
|
25
|
+
bottom: 0,
|
|
23
26
|
justifyContent: 'center',
|
|
24
27
|
alignItems: 'center',
|
|
25
28
|
borderRadius: 8,
|
|
26
29
|
overflow: 'hidden',
|
|
27
30
|
},
|
|
28
31
|
overlay: {
|
|
29
|
-
|
|
32
|
+
position: 'absolute',
|
|
33
|
+
top: 0,
|
|
34
|
+
left: 0,
|
|
35
|
+
right: 0,
|
|
36
|
+
bottom: 0,
|
|
30
37
|
backgroundColor: colors.fillColorNeutral070,
|
|
31
38
|
opacity: 0.5,
|
|
32
39
|
},
|
|
@@ -6,10 +6,8 @@ import {
|
|
|
6
6
|
useFontScale,
|
|
7
7
|
useScalableNumberOfLines,
|
|
8
8
|
} from '../../hooks'
|
|
9
|
-
import {
|
|
10
|
-
import { REACTION_EMOJIS, platformFontWeightBold } from '../../utils'
|
|
9
|
+
import { ConversationResource } from '../../types'
|
|
11
10
|
import { formatDatePreview } from '../../utils/date'
|
|
12
|
-
import { tokens } from '../../vendor/tapestry/tokens'
|
|
13
11
|
import { AvatarGroup, ConversationAvatar, Heading, Text, Badge, type BadgeProps } from '../display'
|
|
14
12
|
import { ConversationActions } from './conversation_actions'
|
|
15
13
|
import { MuteIndicator } from './mute_indicator'
|
|
@@ -32,26 +30,25 @@ export const ConversationPreview = ({
|
|
|
32
30
|
}: ConversationPreviewProps) => {
|
|
33
31
|
const styles = useStyles()
|
|
34
32
|
const {
|
|
35
|
-
|
|
33
|
+
lastMessageAuthorName,
|
|
36
34
|
lastMessageCreatedAt,
|
|
35
|
+
lastMessageTextPreview,
|
|
37
36
|
title,
|
|
38
37
|
unreadCount,
|
|
39
38
|
badges,
|
|
40
39
|
muted,
|
|
41
40
|
disabled,
|
|
42
|
-
unreadReaction,
|
|
43
41
|
} = conversation
|
|
44
42
|
|
|
45
43
|
const emptyConversation = !lastMessageCreatedAt
|
|
46
44
|
const fallbackIconName = emptyConversation ? 'people.noTextMessage' : 'general.person'
|
|
47
45
|
const hasMetaContent = lastMessageCreatedAt || unreadCount > 0 || muted
|
|
48
|
-
const isUnread = unreadCount > 0 || unreadReaction
|
|
49
46
|
|
|
50
47
|
const numberOfLinesScaledTitle = useScalableNumberOfLines(1)
|
|
51
48
|
const numberOfLinesScaledPreviewText = useScalableNumberOfLines(2)
|
|
52
49
|
|
|
53
|
-
const conversationPreviewText =
|
|
54
|
-
?
|
|
50
|
+
const conversationPreviewText = lastMessageTextPreview
|
|
51
|
+
? `${lastMessageAuthorName}: ${lastMessageTextPreview}`
|
|
55
52
|
: EMPTY_CONVERSATION_PREVIEW_TEXT
|
|
56
53
|
|
|
57
54
|
const conversationAccessibilityLabel = getConversationAccessibilityLabel({
|
|
@@ -72,20 +69,13 @@ export const ConversationPreview = ({
|
|
|
72
69
|
fallbackIconName={fallbackIconName}
|
|
73
70
|
/>
|
|
74
71
|
<View style={styles.conversationBody}>
|
|
75
|
-
<Heading
|
|
76
|
-
numberOfLines={numberOfLinesScaledTitle}
|
|
77
|
-
variant="h3"
|
|
78
|
-
style={[styles.title, isUnread && styles.unreadTitle]}
|
|
79
|
-
>
|
|
72
|
+
<Heading numberOfLines={numberOfLinesScaledTitle} variant="h3" style={styles.title}>
|
|
80
73
|
{title}
|
|
81
74
|
</Heading>
|
|
82
75
|
<Text
|
|
83
76
|
variant="tertiary"
|
|
84
77
|
numberOfLines={numberOfLinesScaledPreviewText}
|
|
85
|
-
style={
|
|
86
|
-
emptyConversation && styles.emptyConversationPreviewText,
|
|
87
|
-
isUnread && styles.unreadText,
|
|
88
|
-
]}
|
|
78
|
+
style={emptyConversation && styles.emptyConversationPreviewText}
|
|
89
79
|
>
|
|
90
80
|
{conversationPreviewText}
|
|
91
81
|
</Text>
|
|
@@ -93,9 +83,9 @@ export const ConversationPreview = ({
|
|
|
93
83
|
</View>
|
|
94
84
|
{hasMetaContent && (
|
|
95
85
|
<View style={styles.metaContainer}>
|
|
96
|
-
<Text variant="tertiary">{formatDatePreview(
|
|
86
|
+
<Text variant="tertiary">{formatDatePreview(lastMessageCreatedAt)}</Text>
|
|
97
87
|
<View style={styles.statusContainer}>
|
|
98
|
-
<UnreadCountBadge count={unreadCount}
|
|
88
|
+
<UnreadCountBadge count={unreadCount} showDot={muted} />
|
|
99
89
|
<MuteIndicator muted={muted} />
|
|
100
90
|
</View>
|
|
101
91
|
</View>
|
|
@@ -162,30 +152,6 @@ export const ConversationPreviewSkeleton = () => {
|
|
|
162
152
|
)
|
|
163
153
|
}
|
|
164
154
|
|
|
165
|
-
function reactionEmoji(value: ConversationPreviewData['value']): string | null {
|
|
166
|
-
if (!value) return null
|
|
167
|
-
return REACTION_EMOJIS[value] ?? null
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function formatConversationPreviewText(preview: ConversationPreviewData) {
|
|
171
|
-
if (preview.kind === 'reaction') {
|
|
172
|
-
const emoji = reactionEmoji(preview.value)
|
|
173
|
-
return `${preview.authorName}${emoji ? ` ${emoji}` : ' reacted'} to: "${preview.text}"`
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return `${preview.authorName}: ${preview.text}`
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
function formatConversationPreviewAccessibilityLabel(preview: ConversationPreviewData) {
|
|
180
|
-
const date = formatDatePreview(preview.createdAt)
|
|
181
|
-
|
|
182
|
-
if (preview.kind === 'reaction') {
|
|
183
|
-
return `${preview.authorName} reacted to your message sent ${date} and says ${preview.text}`
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return `Last message sent ${date} from ${preview.authorName} and says ${preview.text}`
|
|
187
|
-
}
|
|
188
|
-
|
|
189
155
|
interface GetConversationAccessibilityLabelProps {
|
|
190
156
|
conversation: ConversationResource
|
|
191
157
|
showBadges: boolean
|
|
@@ -194,24 +160,29 @@ const getConversationAccessibilityLabel = ({
|
|
|
194
160
|
conversation,
|
|
195
161
|
showBadges,
|
|
196
162
|
}: GetConversationAccessibilityLabelProps) => {
|
|
197
|
-
const {
|
|
198
|
-
|
|
163
|
+
const {
|
|
164
|
+
badges,
|
|
165
|
+
title,
|
|
166
|
+
lastMessageAuthorName,
|
|
167
|
+
lastMessageTextPreview,
|
|
168
|
+
muted,
|
|
169
|
+
disabled,
|
|
170
|
+
unreadCount,
|
|
171
|
+
lastMessageCreatedAt,
|
|
172
|
+
} = conversation
|
|
199
173
|
|
|
200
174
|
const hasBadges = badges && showBadges
|
|
201
175
|
const hasUnreadMessages = unreadCount > 0
|
|
176
|
+
const hasLastMessage = lastMessageCreatedAt
|
|
202
177
|
|
|
203
178
|
const label = {
|
|
204
179
|
title,
|
|
205
180
|
badge: hasBadges ? `for ${badges[0]?.pcoResourceType} ${badges[0]?.text || ''}` : '',
|
|
206
181
|
disabled: disabled ? 'Disabled' : '',
|
|
207
182
|
muted: muted ? 'Muted' : '',
|
|
208
|
-
readStatus: hasUnreadMessages
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
? 'unread reaction'
|
|
212
|
-
: '',
|
|
213
|
-
lastMessage: conversationPreview
|
|
214
|
-
? formatConversationPreviewAccessibilityLabel(conversationPreview)
|
|
183
|
+
readStatus: hasUnreadMessages ? `${unreadCount} unread messages` : '',
|
|
184
|
+
lastMessage: hasLastMessage
|
|
185
|
+
? `Last message sent ${formatDatePreview(lastMessageCreatedAt)} from ${lastMessageAuthorName} and says ${lastMessageTextPreview}`
|
|
215
186
|
: EMPTY_CONVERSATION_PREVIEW_TEXT,
|
|
216
187
|
}
|
|
217
188
|
|
|
@@ -251,12 +222,6 @@ const useStyles = () => {
|
|
|
251
222
|
fontSize: 16,
|
|
252
223
|
color: colors.textColorDefaultPrimary,
|
|
253
224
|
},
|
|
254
|
-
unreadTitle: {
|
|
255
|
-
fontWeight: tokens.fontWeightBold,
|
|
256
|
-
},
|
|
257
|
-
unreadText: {
|
|
258
|
-
fontWeight: platformFontWeightBold,
|
|
259
|
-
},
|
|
260
225
|
titleLoading: {
|
|
261
226
|
width: 120,
|
|
262
227
|
height: 20,
|
|
@@ -4,21 +4,12 @@ import { useFontScale, useTheme } from '../../hooks'
|
|
|
4
4
|
import { MAX_FONT_SIZE_MULTIPLIER, platformFontWeightBold } from '../../utils'
|
|
5
5
|
import { Text } from '../display'
|
|
6
6
|
|
|
7
|
-
export const UnreadCountBadge = ({
|
|
8
|
-
count,
|
|
9
|
-
unreadReaction,
|
|
10
|
-
showDot,
|
|
11
|
-
}: {
|
|
12
|
-
count: number
|
|
13
|
-
unreadReaction: boolean
|
|
14
|
-
showDot: boolean
|
|
15
|
-
}) => {
|
|
7
|
+
export const UnreadCountBadge = ({ count, showDot }: { count: number; showDot: boolean }) => {
|
|
16
8
|
const styles = useStyles()
|
|
17
9
|
const displayCount = count > 99 ? '99+' : count
|
|
18
|
-
const isUnread = count > 0 || unreadReaction
|
|
19
10
|
|
|
20
|
-
if (
|
|
21
|
-
if (showDot
|
|
11
|
+
if (count === 0) return null
|
|
12
|
+
if (showDot) return <View style={styles.dot} />
|
|
22
13
|
|
|
23
14
|
return (
|
|
24
15
|
<View style={styles.badge}>
|
|
@@ -33,7 +24,7 @@ const useStyles = () => {
|
|
|
33
24
|
const { colors } = useTheme()
|
|
34
25
|
const dotScaleLimit = MAX_FONT_SIZE_MULTIPLIER * 1.5
|
|
35
26
|
const fontScale = useFontScale({ maxFontSizeMultiplier: dotScaleLimit })
|
|
36
|
-
const size =
|
|
27
|
+
const size = 8 * fontScale
|
|
37
28
|
|
|
38
29
|
return StyleSheet.create({
|
|
39
30
|
badge: {
|
|
@@ -4,7 +4,7 @@ import { Text } from 'react-native'
|
|
|
4
4
|
import { Log } from '../../../utils/native_adapters/configuration'
|
|
5
5
|
import { ComponentErrorBoundary } from '../component_error_boundary'
|
|
6
6
|
|
|
7
|
-
function Boom({ thrown }: { thrown: unknown }) {
|
|
7
|
+
function Boom({ thrown }: { thrown: unknown }): React.ReactElement {
|
|
8
8
|
throw thrown
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@ import { Log } from '../../../utils/native_adapters/configuration'
|
|
|
6
6
|
import { ResponseError } from '../../../utils/response_error'
|
|
7
7
|
import { ErrorBoundary } from '../error_boundary'
|
|
8
8
|
|
|
9
|
-
function Boom({ thrown }: { thrown: unknown }) {
|
|
9
|
+
function Boom({ thrown }: { thrown: unknown }): React.ReactElement {
|
|
10
10
|
throw thrown
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -46,7 +46,11 @@ describe('ErrorBoundary', () => {
|
|
|
46
46
|
})
|
|
47
47
|
|
|
48
48
|
it('does not report ResponseError — those are owned by the HTTP layer', () => {
|
|
49
|
-
const failure = {
|
|
49
|
+
const failure = {
|
|
50
|
+
status: 500,
|
|
51
|
+
statusText: 'Server Error',
|
|
52
|
+
errors: [],
|
|
53
|
+
} as unknown as FailedResponse
|
|
50
54
|
|
|
51
55
|
render(
|
|
52
56
|
<ErrorBoundary fallback={null}>
|
|
@@ -16,7 +16,6 @@ export const getConversationRequestArgs = ({ conversation_id }: { conversation_i
|
|
|
16
16
|
'created_at',
|
|
17
17
|
'badges',
|
|
18
18
|
'conversation_membership',
|
|
19
|
-
'conversation_preview',
|
|
20
19
|
'gender_option',
|
|
21
20
|
'groups',
|
|
22
21
|
'last_message_author_id',
|
|
@@ -37,7 +36,6 @@ export const getConversationRequestArgs = ({ conversation_id }: { conversation_i
|
|
|
37
36
|
'replies_disabled',
|
|
38
37
|
'title',
|
|
39
38
|
'unread_count',
|
|
40
|
-
'unread_reaction',
|
|
41
39
|
'updated_at',
|
|
42
40
|
],
|
|
43
41
|
AnalyticsMetadata: ['metadata'],
|
|
@@ -63,7 +63,7 @@ export function useConversationJoltEvents({ conversationId }: Props) {
|
|
|
63
63
|
data: {
|
|
64
64
|
...prev.data,
|
|
65
65
|
latestReadMessageSortKey: latest_read_message_sort_key,
|
|
66
|
-
|
|
66
|
+
unreadReactionCount: 0,
|
|
67
67
|
},
|
|
68
68
|
}
|
|
69
69
|
})
|
|
@@ -87,9 +87,25 @@ export function useConversationJoltEvents({ conversationId }: Props) {
|
|
|
87
87
|
|
|
88
88
|
const handleReactionJoltEvent = useCallback(
|
|
89
89
|
(event: JoltReactionEvent) => {
|
|
90
|
-
|
|
90
|
+
queryClient.setQueryData<ApiResource<ConversationResource>>(queryKey, prev => {
|
|
91
|
+
if (!prev?.data) return prev
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
if (event.data.data.author_id === currentPersonId) {
|
|
94
|
+
return prev
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
...prev,
|
|
99
|
+
data: {
|
|
100
|
+
...prev.data,
|
|
101
|
+
// Not a real count, just a derived value from Jolt events so we can
|
|
102
|
+
// determine if we should mark the conversation as read
|
|
103
|
+
unreadReactionCount: prev.data.unreadReactionCount
|
|
104
|
+
? prev.data.unreadReactionCount + 1
|
|
105
|
+
: 1,
|
|
106
|
+
},
|
|
107
|
+
}
|
|
108
|
+
})
|
|
93
109
|
},
|
|
94
110
|
[queryClient, queryKey, currentPersonId]
|
|
95
111
|
)
|
|
@@ -7,10 +7,11 @@ export const useConversationMessages = (
|
|
|
7
7
|
{ conversation_id, reply_root_id }: { conversation_id: number; reply_root_id?: string | null },
|
|
8
8
|
opts?: SuspensePaginatorOptions
|
|
9
9
|
) => {
|
|
10
|
-
const { data, refetch, isRefetching, fetchNextPage } =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const { data, refetch, isRefetching, fetchNextPage, hasNextPage } =
|
|
11
|
+
useSuspensePaginator<MessageResource>(
|
|
12
|
+
getMessagesRequestArgs({ conversation_id, reply_root_id }),
|
|
13
|
+
opts
|
|
14
|
+
)
|
|
14
15
|
const queryKey = getMessagesQueryKey({ conversation_id, reply_root_id })
|
|
15
16
|
const messages = useMemo(
|
|
16
17
|
() =>
|
|
@@ -24,5 +25,5 @@ export const useConversationMessages = (
|
|
|
24
25
|
[data]
|
|
25
26
|
)
|
|
26
27
|
|
|
27
|
-
return { messages, refetch, isRefetching, fetchNextPage, queryKey }
|
|
28
|
+
return { messages, refetch, isRefetching, fetchNextPage, hasNextPage, queryKey }
|
|
28
29
|
}
|
|
@@ -20,7 +20,7 @@ export const useConversationsMarkRead = ({
|
|
|
20
20
|
currentPersonCache.update({}, person => {
|
|
21
21
|
const currentUnread = person.unreadCount
|
|
22
22
|
const updatedUnread = read ? Math.max(currentUnread - 1, 0) : currentUnread + 1
|
|
23
|
-
return { ...person, unreadCount: updatedUnread }
|
|
23
|
+
return { ...person, unreadCount: updatedUnread, unreadReactionCount: 0 }
|
|
24
24
|
})
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -29,7 +29,6 @@ export const useConversationsMarkRead = ({
|
|
|
29
29
|
update({
|
|
30
30
|
...conversation,
|
|
31
31
|
unreadCount: read ? 0 : 1,
|
|
32
|
-
...(read ? { unreadReaction: false } : {}),
|
|
33
32
|
})
|
|
34
33
|
handlePersonUnreadCount(read)
|
|
35
34
|
},
|
|
@@ -107,7 +106,6 @@ export const useMarkAllRead = () => {
|
|
|
107
106
|
onMutate: () => {
|
|
108
107
|
updateAll({
|
|
109
108
|
unreadCount: 0,
|
|
110
|
-
unreadReaction: false,
|
|
111
109
|
})
|
|
112
110
|
},
|
|
113
111
|
mutationKey: ['markAllRead', args],
|
|
@@ -17,9 +17,9 @@ export function useMarkLatestMessageRead({ conversation }: Props) {
|
|
|
17
17
|
[markRead]
|
|
18
18
|
)
|
|
19
19
|
const unreadCount = conversation.unreadCount
|
|
20
|
-
const
|
|
20
|
+
const unreadReactionCount = conversation.unreadReactionCount || 0
|
|
21
21
|
|
|
22
|
-
const shouldMarkRead = Boolean(unreadCount >= 1 ||
|
|
22
|
+
const shouldMarkRead = Boolean(unreadCount >= 1 || unreadReactionCount > 0 || !firedOnce.current)
|
|
23
23
|
const appState = useAppState()
|
|
24
24
|
const isActive = appState === 'active'
|
|
25
25
|
|
|
@@ -29,5 +29,6 @@ export function useMarkLatestMessageRead({ conversation }: Props) {
|
|
|
29
29
|
firedOnce.current = true
|
|
30
30
|
|
|
31
31
|
debouncedMarkRead(true)
|
|
32
|
-
|
|
32
|
+
// keeping unreadReactionCount in the dependency array to watch for changes
|
|
33
|
+
}, [debouncedMarkRead, isActive, shouldMarkRead, unreadReactionCount])
|
|
33
34
|
}
|
|
@@ -9,7 +9,7 @@ import { ApiCollection, ApiResource, ResourceObject } from '../types'
|
|
|
9
9
|
import { FailedResponse } from '../types/api_primitives'
|
|
10
10
|
import { Log } from '../utils'
|
|
11
11
|
import { GetRequest, RequestData } from '../utils/client'
|
|
12
|
-
import {
|
|
12
|
+
import { ResponseError } from '../utils/response_error'
|
|
13
13
|
import { getNextPageParamFromMeta } from './paginator_meta'
|
|
14
14
|
import { App, useApiClient } from './use_api_client'
|
|
15
15
|
|
|
@@ -90,6 +90,14 @@ export const useSuspensePaginator = <T extends ResourceObject>(
|
|
|
90
90
|
return { ...query, data, totalCount }
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
const throwResponseError = (error: unknown) => {
|
|
94
|
+
if (error instanceof Response) {
|
|
95
|
+
throw new ResponseError(error as FailedResponse)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return Promise.reject(error)
|
|
99
|
+
}
|
|
100
|
+
|
|
93
101
|
export type RequestQueryKey = [
|
|
94
102
|
SuspenseGetOptions['url'],
|
|
95
103
|
SuspenseGetOptions['data'],
|
package/src/index.tsx
CHANGED
|
@@ -12,7 +12,8 @@ export { default as Event } from './polyfills/events/Event'
|
|
|
12
12
|
export * from './screens'
|
|
13
13
|
export { AgeCheckUnderageScreen } from './screens/age_check/age_check_underage_screen' // TODO: add to barrel
|
|
14
14
|
export * from './types'
|
|
15
|
-
export {
|
|
15
|
+
export { platformFontWeightBold, Session, Uri } from './utils'
|
|
16
|
+
export type { ENV, TemporaryDefaultColorsType } from './utils'
|
|
16
17
|
export * from './utils/client'
|
|
17
18
|
export * from './utils/host_bridge'
|
|
18
19
|
export * from './utils/native_adapters'
|
|
@@ -142,7 +142,7 @@ export default class EventTarget {
|
|
|
142
142
|
|
|
143
143
|
removeEventListener(
|
|
144
144
|
type: string,
|
|
145
|
-
callback: EventListener,
|
|
145
|
+
callback: EventListener | null,
|
|
146
146
|
optionsOrUseCapture: EventListenerOptions | boolean = {}
|
|
147
147
|
): void {
|
|
148
148
|
if (arguments.length < 2) {
|
|
@@ -89,7 +89,7 @@ function ConversationScreenContent({ route }: ConversationScreenProps) {
|
|
|
89
89
|
const { conversation_id, editing_message_id, reply_root_id, reply_root_author_name } =
|
|
90
90
|
route.params
|
|
91
91
|
const { data: conversation } = useConversation(route.params)
|
|
92
|
-
const { messages, fetchNextPage } = useConversationMessages({
|
|
92
|
+
const { messages, fetchNextPage, hasNextPage } = useConversationMessages({
|
|
93
93
|
conversation_id,
|
|
94
94
|
reply_root_id,
|
|
95
95
|
})
|
|
@@ -181,7 +181,9 @@ function ConversationScreenContent({ route }: ConversationScreenProps) {
|
|
|
181
181
|
onScroll={trackScroll}
|
|
182
182
|
scrollEventThrottle={10}
|
|
183
183
|
ListFooterComponent={
|
|
184
|
-
|
|
184
|
+
hasNextPage ? null : (
|
|
185
|
+
<ConversationStartBanner conversation={conversation} hasMessages={true} />
|
|
186
|
+
)
|
|
185
187
|
}
|
|
186
188
|
renderItem={({ item }) => {
|
|
187
189
|
if (item.type === 'DateSeparator') {
|
|
@@ -158,6 +158,12 @@ export const ListHeaderComponent = () => {
|
|
|
158
158
|
</TextButton>
|
|
159
159
|
</View>
|
|
160
160
|
<View style={styles.actionsContainer}>
|
|
161
|
+
<ListHeaderActionButton
|
|
162
|
+
name="general.cog"
|
|
163
|
+
onPress={handleChatSettings}
|
|
164
|
+
accessibilityLabel="Chat settings"
|
|
165
|
+
maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER_LANDMARK}
|
|
166
|
+
/>
|
|
161
167
|
{canCreateConversations && (
|
|
162
168
|
<ListHeaderActionButton
|
|
163
169
|
name="churchCenter.signups"
|
|
@@ -167,12 +173,6 @@ export const ListHeaderComponent = () => {
|
|
|
167
173
|
maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER_LANDMARK}
|
|
168
174
|
/>
|
|
169
175
|
)}
|
|
170
|
-
<ListHeaderActionButton
|
|
171
|
-
name="general.cog"
|
|
172
|
-
onPress={handleChatSettings}
|
|
173
|
-
accessibilityLabel="Chat settings"
|
|
174
|
-
maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER_LANDMARK}
|
|
175
|
-
/>
|
|
176
176
|
{shouldShowHeaderFiltersButton && <ToggleButton {...moreFiltersButtonProps} />}
|
|
177
177
|
</View>
|
|
178
178
|
</View>
|
|
@@ -3,25 +3,15 @@ import { ConversationBadgeResource } from './conversation_badge'
|
|
|
3
3
|
import { ConversationMembershipResource } from './conversation_membership'
|
|
4
4
|
import { GroupResource } from './group_resource'
|
|
5
5
|
import { MemberAbilityResource } from './member_ability'
|
|
6
|
-
import { ReactionCountResource } from './reaction'
|
|
7
6
|
|
|
8
7
|
export type ConversationDisabledReason = 'safety_check' | 'direct_messages_disabled'
|
|
9
8
|
|
|
10
|
-
export interface ConversationPreviewData {
|
|
11
|
-
kind: 'reaction' | 'message'
|
|
12
|
-
authorName: string
|
|
13
|
-
value: ReactionCountResource['value'] | null
|
|
14
|
-
text: string
|
|
15
|
-
createdAt: string
|
|
16
|
-
}
|
|
17
|
-
|
|
18
9
|
export interface ConversationResource {
|
|
19
10
|
type: 'Conversation'
|
|
20
11
|
id: number
|
|
21
12
|
badges?: ConversationBadgeResource[]
|
|
22
13
|
analyticsMetadata?: AnalyticsMetadataResource
|
|
23
14
|
conversationMembership?: Partial<ConversationMembershipResource>
|
|
24
|
-
conversationPreview: ConversationPreviewData | null
|
|
25
15
|
createdAt: string
|
|
26
16
|
deleted?: boolean
|
|
27
17
|
directMessage?: boolean
|
|
@@ -44,6 +34,6 @@ export interface ConversationResource {
|
|
|
44
34
|
repliesDisabled: boolean
|
|
45
35
|
title: string
|
|
46
36
|
unreadCount: number
|
|
47
|
-
|
|
37
|
+
unreadReactionCount?: number // Derived from Jolt events
|
|
48
38
|
updatedAt: string
|
|
49
39
|
}
|