@planningcenter/chat-react-native 4.5.1-qa-staging.11 → 4.5.1-qa-1062.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/message_list.js +123 -155
- package/build/components/conversation/message_list.js.map +1 -1
- package/build/components/conversations/conversations.js +0 -1
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/display/conversation_avatar.js +66 -77
- package/build/components/display/conversation_avatar.js.map +1 -1
- package/build/components/display/image.js +44 -47
- package/build/components/display/image.js.map +1 -1
- package/build/components/display/keyboard_scroll_view.js +0 -1
- package/build/components/display/keyboard_scroll_view.js.map +1 -1
- package/build/components/page/page_error_boundary.js +31 -56
- package/build/components/page/page_error_boundary.js.map +1 -1
- package/build/contexts/api_provider.js +5 -11
- package/build/contexts/api_provider.js.map +1 -1
- package/build/hooks/index.js +0 -1
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/use_conversation_avatar_update.js +48 -146
- package/build/hooks/use_conversation_avatar_update.js.map +1 -1
- package/build/navigation/index.js +1 -3
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/screenLayout.js +6 -10
- package/build/navigation/screenLayout.js.map +1 -1
- package/build/screens/age_check/age_check_required_screen.js +0 -1
- package/build/screens/age_check/age_check_required_screen.js.map +1 -1
- package/build/screens/avatar_picker/avatar_picker_screen.js +66 -76
- package/build/screens/avatar_picker/avatar_picker_screen.js.map +1 -1
- package/build/screens/conversation_details_screen.js +0 -1
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_new/components/form_list.js +0 -1
- package/build/screens/conversation_new/components/form_list.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +0 -1
- 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.js +291 -332
- 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.js +0 -1
- 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.js +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js.map +1 -1
- package/build/screens/get_help_screen.js +62 -56
- package/build/screens/get_help_screen.js.map +1 -1
- package/build/screens/group_notification_settings_screen.js +2 -3
- package/build/screens/group_notification_settings_screen.js.map +1 -1
- package/build/screens/notification_settings_screen.js +0 -1
- package/build/screens/notification_settings_screen.js.map +1 -1
- package/build/screens/preferred_app_selection_screen.js +39 -45
- package/build/screens/preferred_app_selection_screen.js.map +1 -1
- package/build/screens/search/components/search_results_list.js +110 -136
- package/build/screens/search/components/search_results_list.js.map +1 -1
- package/build/screens/search/search_screen.js +28 -21
- package/build/screens/search/search_screen.js.map +1 -1
- package/build/screens/settings_screen.js +6 -7
- package/build/screens/settings_screen.js.map +1 -1
- package/build/screens/system_message_people_screen.js +96 -33
- package/build/screens/system_message_people_screen.js.map +1 -1
- package/package.json +12 -8
- package/src/__tests__/utils/theme.ts +5 -2
- package/src/components/conversation/__tests__/message_list.test.tsx +0 -4
- package/src/components/conversation/message_list.tsx +0 -6
- package/src/components/conversations/__tests__/conversation_preview.test.tsx +2 -2
- package/src/components/conversations/conversations.tsx +0 -1
- package/src/components/display/conversation_avatar.tsx +2 -9
- package/src/components/display/image.tsx +19 -10
- package/src/components/display/keyboard_scroll_view.tsx +0 -1
- package/src/components/page/__tests__/page_error_boundary.test.tsx +0 -33
- package/src/components/page/page_error_boundary.tsx +12 -43
- package/src/contexts/api_provider.tsx +5 -12
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use_conversation_avatar_update.ts +11 -67
- package/src/navigation/index.tsx +2 -6
- package/src/navigation/screenLayout.tsx +1 -3
- package/src/screens/age_check/age_check_required_screen.tsx +1 -5
- package/src/screens/avatar_picker/avatar_picker_screen.tsx +1 -7
- package/src/screens/conversation_details_screen.tsx +0 -1
- package/src/screens/conversation_new/components/form_list.tsx +0 -1
- package/src/screens/conversation_select_recipients/conversation_new_entry_screen.tsx +1 -4
- package/src/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.tsx +68 -78
- package/src/screens/conversation_select_recipients/conversation_select_group_recipients_screen.tsx +0 -1
- package/src/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.tsx +0 -1
- package/src/screens/get_help_screen.tsx +4 -4
- package/src/screens/group_notification_settings_screen.tsx +3 -3
- package/src/screens/notification_settings_screen.tsx +0 -1
- package/src/screens/preferred_app_selection_screen.tsx +4 -4
- package/src/screens/search/__tests__/search_screen.test.tsx +12 -11
- package/src/screens/search/components/__tests__/conversation_results.test.tsx +5 -14
- package/src/screens/search/components/__tests__/message_result_row.test.tsx +4 -5
- package/src/screens/search/components/__tests__/search_results_list.test.tsx +5 -10
- package/src/screens/search/components/search_results_list.tsx +13 -34
- package/src/screens/search/search_screen.tsx +18 -8
- package/src/screens/settings_screen.tsx +25 -25
- package/src/screens/system_message_people_screen.tsx +20 -6
- package/build/components/conversation/attachments/attachment_card.d.ts +0 -9
- package/build/components/conversation/attachments/attachment_card.d.ts.map +0 -1
- package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts +0 -2
- package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts.map +0 -1
- package/build/components/conversation/attachments/audio_attachment.d.ts +0 -7
- package/build/components/conversation/attachments/audio_attachment.d.ts.map +0 -1
- package/build/components/conversation/attachments/constants.d.ts +0 -3
- package/build/components/conversation/attachments/constants.d.ts.map +0 -1
- package/build/components/conversation/attachments/expanded_link.d.ts +0 -6
- package/build/components/conversation/attachments/expanded_link.d.ts.map +0 -1
- package/build/components/conversation/attachments/generic_file_attachment.d.ts +0 -7
- package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +0 -1
- package/build/components/conversation/attachments/giphy_attachment.d.ts +0 -6
- package/build/components/conversation/attachments/giphy_attachment.d.ts.map +0 -1
- package/build/components/conversation/attachments/image_attachment.d.ts +0 -14
- package/build/components/conversation/attachments/image_attachment.d.ts.map +0 -1
- package/build/components/conversation/attachments/video_attachment.d.ts +0 -7
- package/build/components/conversation/attachments/video_attachment.d.ts.map +0 -1
- package/build/components/conversation/conversation_start_banner.d.ts +0 -9
- package/build/components/conversation/conversation_start_banner.d.ts.map +0 -1
- package/build/components/conversation/empty_conversation_blank_state.d.ts +0 -2
- package/build/components/conversation/empty_conversation_blank_state.d.ts.map +0 -1
- package/build/components/conversation/jump_to_bottom_button.d.ts +0 -7
- package/build/components/conversation/jump_to_bottom_button.d.ts.map +0 -1
- package/build/components/conversation/message.d.ts +0 -17
- package/build/components/conversation/message.d.ts.map +0 -1
- package/build/components/conversation/message_attachments.d.ts +0 -9
- package/build/components/conversation/message_attachments.d.ts.map +0 -1
- package/build/components/conversation/message_form/message_form_attachment_file.d.ts +0 -10
- package/build/components/conversation/message_form/message_form_attachment_file.d.ts.map +0 -1
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts +0 -12
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts.map +0 -1
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts +0 -9
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts.map +0 -1
- package/build/components/conversation/message_form.d.ts +0 -24
- package/build/components/conversation/message_form.d.ts.map +0 -1
- package/build/components/conversation/message_list.d.ts +0 -24
- package/build/components/conversation/message_list.d.ts.map +0 -1
- package/build/components/conversation/message_markdown.d.ts +0 -6
- package/build/components/conversation/message_markdown.d.ts.map +0 -1
- package/build/components/conversation/message_reaction.d.ts +0 -34
- package/build/components/conversation/message_reaction.d.ts.map +0 -1
- package/build/components/conversation/message_read_receipts.d.ts +0 -6
- package/build/components/conversation/message_read_receipts.d.ts.map +0 -1
- package/build/components/conversation/messages_disabled_banners.d.ts +0 -14
- package/build/components/conversation/messages_disabled_banners.d.ts.map +0 -1
- package/build/components/conversation/missing_message.d.ts +0 -2
- package/build/components/conversation/missing_message.d.ts.map +0 -1
- package/build/components/conversation/reply_connectors.d.ts +0 -10
- package/build/components/conversation/reply_connectors.d.ts.map +0 -1
- package/build/components/conversation/reply_shadow_message.d.ts +0 -12
- package/build/components/conversation/reply_shadow_message.d.ts.map +0 -1
- package/build/components/conversation/system_message.d.ts +0 -9
- package/build/components/conversation/system_message.d.ts.map +0 -1
- package/build/components/conversation/typing_indicator.d.ts +0 -6
- package/build/components/conversation/typing_indicator.d.ts.map +0 -1
- package/build/components/conversations/archived_results_footer.d.ts +0 -6
- package/build/components/conversations/archived_results_footer.d.ts.map +0 -1
- package/build/components/conversations/conversation_actions.d.ts +0 -11
- package/build/components/conversations/conversation_actions.d.ts.map +0 -1
- package/build/components/conversations/conversation_preview.d.ts +0 -12
- package/build/components/conversations/conversation_preview.d.ts.map +0 -1
- package/build/components/conversations/conversations.d.ts +0 -7
- package/build/components/conversations/conversations.d.ts.map +0 -1
- package/build/components/conversations/conversations_blank_state.d.ts +0 -7
- package/build/components/conversations/conversations_blank_state.d.ts.map +0 -1
- package/build/components/conversations/filtered_results_footer.d.ts +0 -2
- package/build/components/conversations/filtered_results_footer.d.ts.map +0 -1
- package/build/components/conversations/mute_indicator.d.ts +0 -4
- package/build/components/conversations/mute_indicator.d.ts.map +0 -1
- package/build/components/conversations/swipeable_toggle_button.d.ts +0 -20
- package/build/components/conversations/swipeable_toggle_button.d.ts.map +0 -1
- package/build/components/conversations/unread_count_badge.d.ts +0 -6
- package/build/components/conversations/unread_count_badge.d.ts.map +0 -1
- package/build/components/display/action_button.d.ts +0 -15
- package/build/components/display/action_button.d.ts.map +0 -1
- package/build/components/display/adult_requirement_notice.d.ts +0 -7
- package/build/components/display/adult_requirement_notice.d.ts.map +0 -1
- package/build/components/display/avatar.d.ts +0 -15
- package/build/components/display/avatar.d.ts.map +0 -1
- package/build/components/display/avatar_group.d.ts +0 -14
- package/build/components/display/avatar_group.d.ts.map +0 -1
- package/build/components/display/badge.d.ts +0 -55
- package/build/components/display/badge.d.ts.map +0 -1
- package/build/components/display/banner.d.ts +0 -38
- package/build/components/display/banner.d.ts.map +0 -1
- package/build/components/display/banner_collapsible.d.ts +0 -11
- package/build/components/display/banner_collapsible.d.ts.map +0 -1
- package/build/components/display/button.d.ts +0 -67
- package/build/components/display/button.d.ts.map +0 -1
- package/build/components/display/child_notice.d.ts +0 -10
- package/build/components/display/child_notice.d.ts.map +0 -1
- package/build/components/display/conversation_avatar.d.ts +0 -17
- package/build/components/display/conversation_avatar.d.ts.map +0 -1
- package/build/components/display/emoji_avatar.d.ts +0 -11
- package/build/components/display/emoji_avatar.d.ts.map +0 -1
- package/build/components/display/file_attachment_preview.d.ts +0 -11
- package/build/components/display/file_attachment_preview.d.ts.map +0 -1
- package/build/components/display/filter_dropdown.d.ts +0 -36
- package/build/components/display/filter_dropdown.d.ts.map +0 -1
- package/build/components/display/heading.d.ts +0 -10
- package/build/components/display/heading.d.ts.map +0 -1
- package/build/components/display/icon.d.ts +0 -64
- package/build/components/display/icon.d.ts.map +0 -1
- package/build/components/display/icon_avatar.d.ts +0 -11
- package/build/components/display/icon_avatar.d.ts.map +0 -1
- package/build/components/display/icon_button.d.ts +0 -56
- package/build/components/display/icon_button.d.ts.map +0 -1
- package/build/components/display/icon_tile.d.ts +0 -13
- package/build/components/display/icon_tile.d.ts.map +0 -1
- package/build/components/display/image.d.ts +0 -39
- package/build/components/display/image.d.ts.map +0 -1
- package/build/components/display/image_attachment_preview.d.ts +0 -13
- package/build/components/display/image_attachment_preview.d.ts.map +0 -1
- package/build/components/display/index.d.ts +0 -34
- package/build/components/display/index.d.ts.map +0 -1
- package/build/components/display/keyboard_scroll_view.d.ts +0 -5
- package/build/components/display/keyboard_scroll_view.d.ts.map +0 -1
- package/build/components/display/keyboard_view.d.ts +0 -5
- package/build/components/display/keyboard_view.d.ts.map +0 -1
- package/build/components/display/person.d.ts +0 -9
- package/build/components/display/person.d.ts.map +0 -1
- package/build/components/display/platform_modal_header_buttons.d.ts +0 -61
- package/build/components/display/platform_modal_header_buttons.d.ts.map +0 -1
- package/build/components/display/popover_menu_view.d.ts +0 -8
- package/build/components/display/popover_menu_view.d.ts.map +0 -1
- package/build/components/display/pressable_row.d.ts +0 -14
- package/build/components/display/pressable_row.d.ts.map +0 -1
- package/build/components/display/spinner.d.ts +0 -22
- package/build/components/display/spinner.d.ts.map +0 -1
- package/build/components/display/switch.d.ts +0 -3
- package/build/components/display/switch.d.ts.map +0 -1
- package/build/components/display/tabs.d.ts +0 -17
- package/build/components/display/tabs.d.ts.map +0 -1
- package/build/components/display/text.d.ts +0 -25
- package/build/components/display/text.d.ts.map +0 -1
- package/build/components/display/text_button.d.ts +0 -39
- package/build/components/display/text_button.d.ts.map +0 -1
- package/build/components/display/text_inline_button.d.ts +0 -11
- package/build/components/display/text_inline_button.d.ts.map +0 -1
- package/build/components/display/text_input.d.ts +0 -8
- package/build/components/display/text_input.d.ts.map +0 -1
- package/build/components/display/toggle_button.d.ts +0 -55
- package/build/components/display/toggle_button.d.ts.map +0 -1
- package/build/components/display/utils/avatar_gradient_colors.d.ts +0 -17
- package/build/components/display/utils/avatar_gradient_colors.d.ts.map +0 -1
- package/build/components/display/utils/button_colors.d.ts +0 -39
- package/build/components/display/utils/button_colors.d.ts.map +0 -1
- package/build/components/display/utils/status_colors.d.ts +0 -17
- package/build/components/display/utils/status_colors.d.ts.map +0 -1
- package/build/components/display/version_footer.d.ts +0 -2
- package/build/components/display/version_footer.d.ts.map +0 -1
- package/build/components/display/video_attachment_preview.d.ts +0 -11
- package/build/components/display/video_attachment_preview.d.ts.map +0 -1
- package/build/components/group_conversation_list.d.ts +0 -23
- package/build/components/group_conversation_list.d.ts.map +0 -1
- package/build/components/index.d.ts +0 -7
- package/build/components/index.d.ts.map +0 -1
- package/build/components/page/component_error_boundary.d.ts +0 -4
- package/build/components/page/component_error_boundary.d.ts.map +0 -1
- package/build/components/page/error_boundary.d.ts +0 -20
- package/build/components/page/error_boundary.d.ts.map +0 -1
- package/build/components/page/loading.d.ts +0 -2
- package/build/components/page/loading.d.ts.map +0 -1
- package/build/components/page/page_error_boundary.d.ts +0 -12
- package/build/components/page/page_error_boundary.d.ts.map +0 -1
- package/build/components/primitive/avatar_primitive.d.ts +0 -51
- package/build/components/primitive/avatar_primitive.d.ts.map +0 -1
- package/build/components/primitive/banner_primitive.d.ts +0 -48
- package/build/components/primitive/banner_primitive.d.ts.map +0 -1
- package/build/components/primitive/blank_state_primitive.d.ts +0 -41
- package/build/components/primitive/blank_state_primitive.d.ts.map +0 -1
- package/build/components/primitive/form_sheet.d.ts +0 -75
- package/build/components/primitive/form_sheet.d.ts.map +0 -1
- package/build/components/safe_area_modal.d.ts +0 -7
- package/build/components/safe_area_modal.d.ts.map +0 -1
- package/build/contexts/api_provider.d.ts +0 -7
- package/build/contexts/api_provider.d.ts.map +0 -1
- package/build/contexts/chat_context.d.ts +0 -37
- package/build/contexts/chat_context.d.ts.map +0 -1
- package/build/contexts/conversation_context.d.ts +0 -13
- package/build/contexts/conversation_context.d.ts.map +0 -1
- package/build/contexts/conversations_context.d.ts +0 -16
- package/build/contexts/conversations_context.d.ts.map +0 -1
- package/build/contexts/session_context.d.ts +0 -44
- package/build/contexts/session_context.d.ts.map +0 -1
- package/build/hooks/attachments/fallback_chat_configuration.d.ts +0 -5
- package/build/hooks/attachments/fallback_chat_configuration.d.ts.map +0 -1
- package/build/hooks/direct_messages/find_direct_message_conversation.d.ts +0 -14
- package/build/hooks/direct_messages/find_direct_message_conversation.d.ts.map +0 -1
- package/build/hooks/direct_messages/resolve_message_available_members_link.d.ts +0 -16
- package/build/hooks/direct_messages/resolve_message_available_members_link.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts +0 -6
- package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_direct_message_candidates.d.ts +0 -4
- package/build/hooks/direct_messages/use_direct_message_candidates.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_direct_message_conversation_validate.d.ts +0 -11
- package/build/hooks/direct_messages/use_direct_message_conversation_validate.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_find_or_create_direct_message_conversation.d.ts +0 -13
- package/build/hooks/direct_messages/use_find_or_create_direct_message_conversation.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_message_available_members.d.ts +0 -6
- package/build/hooks/direct_messages/use_message_available_members.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_message_available_members_action.d.ts +0 -6
- package/build/hooks/direct_messages/use_message_available_members_action.d.ts.map +0 -1
- package/build/hooks/groups/use_group_chat_conversation_payload.d.ts +0 -168
- package/build/hooks/groups/use_group_chat_conversation_payload.d.ts.map +0 -1
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +0 -232
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +0 -1
- package/build/hooks/groups/use_groups_conversation_create.d.ts +0 -10
- package/build/hooks/groups/use_groups_conversation_create.d.ts.map +0 -1
- package/build/hooks/index.d.ts +0 -34
- package/build/hooks/index.d.ts.map +0 -1
- package/build/hooks/paginator_meta.d.ts +0 -4
- package/build/hooks/paginator_meta.d.ts.map +0 -1
- package/build/hooks/services/use_find_or_create_services_conversation.d.ts +0 -138
- package/build/hooks/services/use_find_or_create_services_conversation.d.ts.map +0 -1
- package/build/hooks/services/use_services_chat_conversation_payload.d.ts +0 -164
- package/build/hooks/services/use_services_chat_conversation_payload.d.ts.map +0 -1
- package/build/hooks/services/use_services_team.d.ts +0 -4
- package/build/hooks/services/use_services_team.d.ts.map +0 -1
- package/build/hooks/services/use_team_members_for_new_conversation.d.ts +0 -176
- package/build/hooks/services/use_team_members_for_new_conversation.d.ts.map +0 -1
- package/build/hooks/services/use_team_plans.d.ts +0 -17
- package/build/hooks/services/use_team_plans.d.ts.map +0 -1
- package/build/hooks/use_animated_message_background_color.d.ts +0 -9
- package/build/hooks/use_animated_message_background_color.d.ts.map +0 -1
- package/build/hooks/use_api.d.ts +0 -391
- package/build/hooks/use_api.d.ts.map +0 -1
- package/build/hooks/use_api_client.d.ts +0 -7
- package/build/hooks/use_api_client.d.ts.map +0 -1
- package/build/hooks/use_app_name.d.ts +0 -3
- package/build/hooks/use_app_name.d.ts.map +0 -1
- package/build/hooks/use_app_state.d.ts +0 -2
- package/build/hooks/use_app_state.d.ts.map +0 -1
- package/build/hooks/use_async_storage.d.ts +0 -4
- package/build/hooks/use_async_storage.d.ts.map +0 -1
- package/build/hooks/use_at_font_scale_breakpoint.d.ts +0 -2
- package/build/hooks/use_at_font_scale_breakpoint.d.ts.map +0 -1
- package/build/hooks/use_attachment_uploader.d.ts +0 -22
- package/build/hooks/use_attachment_uploader.d.ts.map +0 -1
- package/build/hooks/use_broadcast_typing_status.d.ts +0 -9
- package/build/hooks/use_broadcast_typing_status.d.ts.map +0 -1
- package/build/hooks/use_can_browse_archived_conversations.d.ts +0 -2
- package/build/hooks/use_can_browse_archived_conversations.d.ts.map +0 -1
- package/build/hooks/use_chat_configuration.d.ts +0 -7
- package/build/hooks/use_chat_configuration.d.ts.map +0 -1
- package/build/hooks/use_chat_permissions.d.ts +0 -190
- package/build/hooks/use_chat_permissions.d.ts.map +0 -1
- package/build/hooks/use_clear_conversation_filters.d.ts +0 -2
- package/build/hooks/use_clear_conversation_filters.d.ts.map +0 -1
- package/build/hooks/use_conversation.d.ts +0 -275
- package/build/hooks/use_conversation.d.ts.map +0 -1
- package/build/hooks/use_conversation_avatar_update.d.ts +0 -27
- package/build/hooks/use_conversation_avatar_update.d.ts.map +0 -1
- package/build/hooks/use_conversation_jolt_events.d.ts +0 -6
- package/build/hooks/use_conversation_jolt_events.d.ts.map +0 -1
- package/build/hooks/use_conversation_membership.d.ts +0 -5
- package/build/hooks/use_conversation_membership.d.ts.map +0 -1
- package/build/hooks/use_conversation_message.d.ts +0 -12
- package/build/hooks/use_conversation_message.d.ts.map +0 -1
- package/build/hooks/use_conversation_messages.d.ts +0 -23
- package/build/hooks/use_conversation_messages.d.ts.map +0 -1
- package/build/hooks/use_conversation_messages_jolt_events.d.ts +0 -6
- package/build/hooks/use_conversation_messages_jolt_events.d.ts.map +0 -1
- package/build/hooks/use_conversation_validate.d.ts +0 -12
- package/build/hooks/use_conversation_validate.d.ts.map +0 -1
- package/build/hooks/use_conversations.d.ts +0 -12
- package/build/hooks/use_conversations.d.ts.map +0 -1
- package/build/hooks/use_conversations_actions.d.ts +0 -221
- package/build/hooks/use_conversations_actions.d.ts.map +0 -1
- package/build/hooks/use_conversations_cache.d.ts +0 -20
- package/build/hooks/use_conversations_cache.d.ts.map +0 -1
- package/build/hooks/use_conversations_jolt_events.d.ts +0 -2
- package/build/hooks/use_conversations_jolt_events.d.ts.map +0 -1
- package/build/hooks/use_create_android_ripple_color.d.ts +0 -4
- package/build/hooks/use_create_android_ripple_color.d.ts.map +0 -1
- package/build/hooks/use_current_person.d.ts +0 -18
- package/build/hooks/use_current_person.d.ts.map +0 -1
- package/build/hooks/use_debounced_search_term.d.ts +0 -2
- package/build/hooks/use_debounced_search_term.d.ts.map +0 -1
- package/build/hooks/use_deleting_ids.d.ts +0 -4
- package/build/hooks/use_deleting_ids.d.ts.map +0 -1
- package/build/hooks/use_direct_message_eligibility.d.ts +0 -14
- package/build/hooks/use_direct_message_eligibility.d.ts.map +0 -1
- package/build/hooks/use_direct_messages_eligible.d.ts +0 -2
- package/build/hooks/use_direct_messages_eligible.d.ts.map +0 -1
- package/build/hooks/use_enrich_people.d.ts +0 -13
- package/build/hooks/use_enrich_people.d.ts.map +0 -1
- package/build/hooks/use_features.d.ts +0 -38
- package/build/hooks/use_features.d.ts.map +0 -1
- package/build/hooks/use_filter_dropdown_enabled.d.ts +0 -2
- package/build/hooks/use_filter_dropdown_enabled.d.ts.map +0 -1
- package/build/hooks/use_font_scale.d.ts +0 -5
- package/build/hooks/use_font_scale.d.ts.map +0 -1
- package/build/hooks/use_giphy.d.ts +0 -9
- package/build/hooks/use_giphy.d.ts.map +0 -1
- package/build/hooks/use_groups.d.ts +0 -214
- package/build/hooks/use_groups.d.ts.map +0 -1
- package/build/hooks/use_groups_groups.d.ts +0 -208
- package/build/hooks/use_groups_groups.d.ts.map +0 -1
- package/build/hooks/use_has_direct_messages.d.ts +0 -2
- package/build/hooks/use_has_direct_messages.d.ts.map +0 -1
- package/build/hooks/use_interaction_tinted_background_color.d.ts +0 -2
- package/build/hooks/use_interaction_tinted_background_color.d.ts.map +0 -1
- package/build/hooks/use_jolt.d.ts +0 -11
- package/build/hooks/use_jolt.d.ts.map +0 -1
- package/build/hooks/use_live_relative_time.d.ts +0 -3
- package/build/hooks/use_live_relative_time.d.ts.map +0 -1
- package/build/hooks/use_manual_archiving_enabled.d.ts +0 -2
- package/build/hooks/use_manual_archiving_enabled.d.ts.map +0 -1
- package/build/hooks/use_mark_latest_message_read.d.ts +0 -9
- package/build/hooks/use_mark_latest_message_read.d.ts.map +0 -1
- package/build/hooks/use_message_create_or_update.d.ts +0 -110
- package/build/hooks/use_message_create_or_update.d.ts.map +0 -1
- package/build/hooks/use_message_draft.d.ts +0 -13
- package/build/hooks/use_message_draft.d.ts.map +0 -1
- package/build/hooks/use_message_reaction_toggle.d.ts +0 -21
- package/build/hooks/use_message_reaction_toggle.d.ts.map +0 -1
- package/build/hooks/use_my_gender.d.ts +0 -7
- package/build/hooks/use_my_gender.d.ts.map +0 -1
- package/build/hooks/use_new_conversation_entry.d.ts +0 -8
- package/build/hooks/use_new_conversation_entry.d.ts.map +0 -1
- package/build/hooks/use_new_conversation_from_filter.d.ts +0 -12
- package/build/hooks/use_new_conversation_from_filter.d.ts.map +0 -1
- package/build/hooks/use_organization.d.ts +0 -39
- package/build/hooks/use_organization.d.ts.map +0 -1
- package/build/hooks/use_people_person.d.ts +0 -18
- package/build/hooks/use_people_person.d.ts.map +0 -1
- package/build/hooks/use_person_settings.d.ts +0 -6
- package/build/hooks/use_person_settings.d.ts.map +0 -1
- package/build/hooks/use_preview_avatar_diameter.d.ts +0 -2
- package/build/hooks/use_preview_avatar_diameter.d.ts.map +0 -1
- package/build/hooks/use_product_analytics.d.ts +0 -24
- package/build/hooks/use_product_analytics.d.ts.map +0 -1
- package/build/hooks/use_qualified_by_age.d.ts +0 -2
- package/build/hooks/use_qualified_by_age.d.ts.map +0 -1
- package/build/hooks/use_read_receipts.d.ts +0 -40
- package/build/hooks/use_read_receipts.d.ts.map +0 -1
- package/build/hooks/use_reduce_motion.d.ts +0 -2
- package/build/hooks/use_reduce_motion.d.ts.map +0 -1
- package/build/hooks/use_report_bug_action.d.ts +0 -6
- package/build/hooks/use_report_bug_action.d.ts.map +0 -1
- package/build/hooks/use_report_message.d.ts +0 -6
- package/build/hooks/use_report_message.d.ts.map +0 -1
- package/build/hooks/use_rest_away_from_dismiss_edge.d.ts +0 -19
- package/build/hooks/use_rest_away_from_dismiss_edge.d.ts.map +0 -1
- package/build/hooks/use_scalable_number_of_lines.d.ts +0 -2
- package/build/hooks/use_scalable_number_of_lines.d.ts.map +0 -1
- package/build/hooks/use_search_enabled.d.ts +0 -2
- package/build/hooks/use_search_enabled.d.ts.map +0 -1
- package/build/hooks/use_search_results.d.ts +0 -19
- package/build/hooks/use_search_results.d.ts.map +0 -1
- package/build/hooks/use_selected_chip_background_color.d.ts +0 -2
- package/build/hooks/use_selected_chip_background_color.d.ts.map +0 -1
- package/build/hooks/use_storage.d.ts +0 -9
- package/build/hooks/use_storage.d.ts.map +0 -1
- package/build/hooks/use_submit_age_check.d.ts +0 -78
- package/build/hooks/use_submit_age_check.d.ts.map +0 -1
- package/build/hooks/use_suspense_api.d.ts +0 -86
- package/build/hooks/use_suspense_api.d.ts.map +0 -1
- package/build/hooks/use_system_message_people.d.ts +0 -14
- package/build/hooks/use_system_message_people.d.ts.map +0 -1
- package/build/hooks/use_system_message_people.js +0 -101
- package/build/hooks/use_system_message_people.js.map +0 -1
- package/build/hooks/use_teams.d.ts +0 -207
- package/build/hooks/use_teams.d.ts.map +0 -1
- package/build/hooks/use_theme.d.ts +0 -3
- package/build/hooks/use_theme.d.ts.map +0 -1
- package/build/hooks/use_typing_indicators.d.ts +0 -13
- package/build/hooks/use_typing_indicators.d.ts.map +0 -1
- package/build/hooks/use_typing_status_cache.d.ts +0 -14
- package/build/hooks/use_typing_status_cache.d.ts.map +0 -1
- package/build/hooks/use_unarchive_conversation_action.d.ts +0 -7
- package/build/hooks/use_unarchive_conversation_action.d.ts.map +0 -1
- package/build/hooks/use_upload_client.d.ts +0 -32
- package/build/hooks/use_upload_client.d.ts.map +0 -1
- package/build/hooks/use_video_moderation_jolt_events.d.ts +0 -4
- package/build/hooks/use_video_moderation_jolt_events.d.ts.map +0 -1
- package/build/icons/font_awesome.d.ts +0 -2
- package/build/icons/font_awesome.d.ts.map +0 -1
- package/build/index.d.ts +0 -20
- package/build/index.d.ts.map +0 -1
- package/build/jest.d.ts +0 -18
- package/build/jest.d.ts.map +0 -1
- package/build/navigation/chat_access_gate.d.ts +0 -3
- package/build/navigation/chat_access_gate.d.ts.map +0 -1
- package/build/navigation/index.d.ts +0 -392
- package/build/navigation/index.d.ts.map +0 -1
- package/build/navigation/page_error_fallbacks.d.ts +0 -7
- package/build/navigation/page_error_fallbacks.d.ts.map +0 -1
- package/build/navigation/page_error_fallbacks.js +0 -7
- package/build/navigation/page_error_fallbacks.js.map +0 -1
- package/build/navigation/screenLayout.d.ts +0 -8
- package/build/navigation/screenLayout.d.ts.map +0 -1
- package/build/polyfills/events/CustomEvent.d.ts +0 -21
- package/build/polyfills/events/CustomEvent.d.ts.map +0 -1
- package/build/polyfills/events/Event.d.ts +0 -45
- package/build/polyfills/events/Event.d.ts.map +0 -1
- package/build/polyfills/events/EventHandlerAttributes.d.ts +0 -8
- package/build/polyfills/events/EventHandlerAttributes.d.ts.map +0 -1
- package/build/polyfills/events/EventTarget.d.ts +0 -30
- package/build/polyfills/events/EventTarget.d.ts.map +0 -1
- package/build/polyfills/events/internals/EventInternals.d.ts +0 -30
- package/build/polyfills/events/internals/EventInternals.d.ts.map +0 -1
- package/build/polyfills/events/internals/EventTargetInternals.d.ts +0 -9
- package/build/polyfills/events/internals/EventTargetInternals.d.ts.map +0 -1
- package/build/polyfills/webidl/PlatformObjects.d.ts +0 -31
- package/build/polyfills/webidl/PlatformObjects.d.ts.map +0 -1
- package/build/screens/age_check/age_check_required_screen.d.ts +0 -2
- package/build/screens/age_check/age_check_required_screen.d.ts.map +0 -1
- package/build/screens/age_check/age_check_underage_screen.d.ts +0 -5
- package/build/screens/age_check/age_check_underage_screen.d.ts.map +0 -1
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts +0 -10
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts.map +0 -1
- package/build/screens/age_check/index.d.ts +0 -3
- package/build/screens/age_check/index.d.ts.map +0 -1
- package/build/screens/age_check/screen_props.d.ts +0 -5
- package/build/screens/age_check/screen_props.d.ts.map +0 -1
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts +0 -12
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +0 -1
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.d.ts +0 -10
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.d.ts.map +0 -1
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts +0 -11
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts.map +0 -1
- package/build/screens/avatar_picker/avatar_picker_state.d.ts +0 -38
- package/build/screens/avatar_picker/avatar_picker_state.d.ts.map +0 -1
- package/build/screens/avatar_picker/avatar_preview.d.ts +0 -9
- package/build/screens/avatar_picker/avatar_preview.d.ts.map +0 -1
- package/build/screens/avatar_picker/color_picker.d.ts +0 -8
- package/build/screens/avatar_picker/color_picker.d.ts.map +0 -1
- package/build/screens/avatar_picker/constants.d.ts +0 -3
- package/build/screens/avatar_picker/constants.d.ts.map +0 -1
- package/build/screens/avatar_picker/emoji_tab.d.ts +0 -6
- package/build/screens/avatar_picker/emoji_tab.d.ts.map +0 -1
- package/build/screens/avatar_picker/icon_grid.d.ts +0 -7
- package/build/screens/avatar_picker/icon_grid.d.ts.map +0 -1
- package/build/screens/avatar_picker/upload_tab.d.ts +0 -8
- package/build/screens/avatar_picker/upload_tab.d.ts.map +0 -1
- package/build/screens/bug_report_screen.d.ts +0 -4
- package/build/screens/bug_report_screen.d.ts.map +0 -1
- package/build/screens/conversation/message_read_receipts_screen.d.ts +0 -8
- package/build/screens/conversation/message_read_receipts_screen.d.ts.map +0 -1
- package/build/screens/conversation_details_screen.d.ts +0 -6
- package/build/screens/conversation_details_screen.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +0 -11
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts +0 -11
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts +0 -4
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts +0 -10
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts +0 -176
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/types.d.ts +0 -48
- package/build/screens/conversation_filter_recipients/types.d.ts.map +0 -1
- package/build/screens/conversation_filters/components/conversation_filters.d.ts +0 -2
- package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +0 -1
- package/build/screens/conversation_filters/components/rows.d.ts +0 -42
- package/build/screens/conversation_filters/components/rows.d.ts.map +0 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts +0 -27
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +0 -1
- package/build/screens/conversation_filters/filter_types.d.ts +0 -9
- package/build/screens/conversation_filters/filter_types.d.ts.map +0 -1
- package/build/screens/conversation_filters/group_filters.d.ts +0 -5
- package/build/screens/conversation_filters/group_filters.d.ts.map +0 -1
- package/build/screens/conversation_filters/hooks/filters.d.ts +0 -415
- package/build/screens/conversation_filters/hooks/filters.d.ts.map +0 -1
- package/build/screens/conversation_filters/screen_props.d.ts +0 -16
- package/build/screens/conversation_filters/screen_props.d.ts.map +0 -1
- package/build/screens/conversation_filters/team_filters.d.ts +0 -5
- package/build/screens/conversation_filters/team_filters.d.ts.map +0 -1
- package/build/screens/conversation_filters_screen.d.ts +0 -5
- package/build/screens/conversation_filters_screen.d.ts.map +0 -1
- package/build/screens/conversation_new/components/avatar_selection_row.d.ts +0 -11
- package/build/screens/conversation_new/components/avatar_selection_row.d.ts.map +0 -1
- package/build/screens/conversation_new/components/filter_by_plan.d.ts +0 -22
- package/build/screens/conversation_new/components/filter_by_plan.d.ts.map +0 -1
- package/build/screens/conversation_new/components/form_list.d.ts +0 -13
- package/build/screens/conversation_new/components/form_list.d.ts.map +0 -1
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts +0 -9
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts.map +0 -1
- package/build/screens/conversation_new/components/groups_form.d.ts +0 -10
- package/build/screens/conversation_new/components/groups_form.d.ts.map +0 -1
- package/build/screens/conversation_new/components/services_form.d.ts +0 -11
- package/build/screens/conversation_new/components/services_form.d.ts.map +0 -1
- package/build/screens/conversation_new/components/source_app_error_card.d.ts +0 -2
- package/build/screens/conversation_new/components/source_app_error_card.d.ts.map +0 -1
- package/build/screens/conversation_new/conversation_new_screen.d.ts +0 -18
- package/build/screens/conversation_new/conversation_new_screen.d.ts.map +0 -1
- package/build/screens/conversation_notification_level_select_screen.d.ts +0 -7
- package/build/screens/conversation_notification_level_select_screen.d.ts.map +0 -1
- package/build/screens/conversation_screen.d.ts +0 -28
- package/build/screens/conversation_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts +0 -8
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts +0 -11
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts +0 -7
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/results_heading.d.ts +0 -6
- package/build/screens/conversation_select_recipients/components/results_heading.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts +0 -8
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts +0 -8
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts +0 -3
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts +0 -3
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts +0 -3
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts +0 -3
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts +0 -11
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts.map +0 -1
- package/build/screens/conversation_select_type_screen.d.ts +0 -12
- package/build/screens/conversation_select_type_screen.d.ts.map +0 -1
- package/build/screens/conversations/components/chat_group_badge.d.ts +0 -4
- package/build/screens/conversations/components/chat_group_badge.d.ts.map +0 -1
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts +0 -2
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +0 -1
- package/build/screens/conversations/components/list_header_action_button.d.ts +0 -19
- package/build/screens/conversations/components/list_header_action_button.d.ts.map +0 -1
- package/build/screens/conversations/components/list_header_component.d.ts +0 -2
- package/build/screens/conversations/components/list_header_component.d.ts.map +0 -1
- package/build/screens/conversations/components/search_list_header_component.d.ts +0 -2
- package/build/screens/conversations/components/search_list_header_component.d.ts.map +0 -1
- package/build/screens/conversations/conversations_screen.d.ts +0 -13
- package/build/screens/conversations/conversations_screen.d.ts.map +0 -1
- package/build/screens/design_system_screen.d.ts +0 -2
- package/build/screens/design_system_screen.d.ts.map +0 -1
- package/build/screens/get_help_screen.d.ts +0 -10
- package/build/screens/get_help_screen.d.ts.map +0 -1
- package/build/screens/group_notification_level_select_screen.d.ts +0 -7
- package/build/screens/group_notification_level_select_screen.d.ts.map +0 -1
- package/build/screens/group_notification_settings_screen.d.ts +0 -7
- package/build/screens/group_notification_settings_screen.d.ts.map +0 -1
- package/build/screens/index.d.ts +0 -25
- package/build/screens/index.d.ts.map +0 -1
- package/build/screens/message_actions_screen.d.ts +0 -12
- package/build/screens/message_actions_screen.d.ts.map +0 -1
- package/build/screens/message_report/components/message_preview.d.ts +0 -9
- package/build/screens/message_report/components/message_preview.d.ts.map +0 -1
- package/build/screens/message_report/components/report_reason_list.d.ts +0 -8
- package/build/screens/message_report/components/report_reason_list.d.ts.map +0 -1
- package/build/screens/message_report_screen.d.ts +0 -9
- package/build/screens/message_report_screen.d.ts.map +0 -1
- package/build/screens/not_found.d.ts +0 -2
- package/build/screens/not_found.d.ts.map +0 -1
- package/build/screens/notification_settings/hooks/groups.d.ts +0 -96
- package/build/screens/notification_settings/hooks/groups.d.ts.map +0 -1
- package/build/screens/notification_settings_screen.d.ts +0 -4
- package/build/screens/notification_settings_screen.d.ts.map +0 -1
- package/build/screens/preferred_app/hooks/use_chat_types.d.ts +0 -39
- package/build/screens/preferred_app/hooks/use_chat_types.d.ts.map +0 -1
- package/build/screens/preferred_app_selection_screen.d.ts +0 -9
- package/build/screens/preferred_app_selection_screen.d.ts.map +0 -1
- package/build/screens/reactions_screen.d.ts +0 -9
- package/build/screens/reactions_screen.d.ts.map +0 -1
- package/build/screens/search/components/conversation_result_row.d.ts +0 -8
- package/build/screens/search/components/conversation_result_row.d.ts.map +0 -1
- package/build/screens/search/components/conversation_results.d.ts +0 -8
- package/build/screens/search/components/conversation_results.d.ts.map +0 -1
- package/build/screens/search/components/message_result_row.d.ts +0 -8
- package/build/screens/search/components/message_result_row.d.ts.map +0 -1
- package/build/screens/search/components/result_row.d.ts +0 -10
- package/build/screens/search/components/result_row.d.ts.map +0 -1
- package/build/screens/search/components/results_section.d.ts +0 -9
- package/build/screens/search/components/results_section.d.ts.map +0 -1
- package/build/screens/search/components/search_blank_states.d.ts +0 -7
- package/build/screens/search/components/search_blank_states.d.ts.map +0 -1
- package/build/screens/search/components/search_field.d.ts +0 -7
- package/build/screens/search/components/search_field.d.ts.map +0 -1
- package/build/screens/search/components/search_results_list.d.ts +0 -16
- package/build/screens/search/components/search_results_list.d.ts.map +0 -1
- package/build/screens/search/components/snippet.d.ts +0 -8
- package/build/screens/search/components/snippet.d.ts.map +0 -1
- package/build/screens/search/search_screen.d.ts +0 -5
- package/build/screens/search/search_screen.d.ts.map +0 -1
- package/build/screens/send_giphy_screen.d.ts +0 -9
- package/build/screens/send_giphy_screen.d.ts.map +0 -1
- package/build/screens/settings_screen.d.ts +0 -4
- package/build/screens/settings_screen.d.ts.map +0 -1
- package/build/screens/system_message_people_screen.d.ts +0 -8
- package/build/screens/system_message_people_screen.d.ts.map +0 -1
- package/build/screens/team_conversation_screen.d.ts +0 -8
- package/build/screens/team_conversation_screen.d.ts.map +0 -1
- package/build/types/api_primitives.d.ts +0 -45
- package/build/types/api_primitives.d.ts.map +0 -1
- package/build/types/index.d.ts +0 -4
- package/build/types/index.d.ts.map +0 -1
- package/build/types/jolt_events/attachment_events.d.ts +0 -14
- package/build/types/jolt_events/attachment_events.d.ts.map +0 -1
- package/build/types/jolt_events/conversation_events.d.ts +0 -42
- package/build/types/jolt_events/conversation_events.d.ts.map +0 -1
- package/build/types/jolt_events/index.d.ts +0 -14
- package/build/types/jolt_events/index.d.ts.map +0 -1
- package/build/types/jolt_events/message_events.d.ts +0 -44
- package/build/types/jolt_events/message_events.d.ts.map +0 -1
- package/build/types/jolt_events/reaction_events.d.ts +0 -27
- package/build/types/jolt_events/reaction_events.d.ts.map +0 -1
- package/build/types/jolt_events/typing_events.d.ts +0 -16
- package/build/types/jolt_events/typing_events.d.ts.map +0 -1
- package/build/types/product_analytics.d.ts +0 -6
- package/build/types/product_analytics.d.ts.map +0 -1
- package/build/types/resources/analytics_metadata.d.ts +0 -5
- package/build/types/resources/analytics_metadata.d.ts.map +0 -1
- package/build/types/resources/app_grant.d.ts +0 -8
- package/build/types/resources/app_grant.d.ts.map +0 -1
- package/build/types/resources/app_name.d.ts +0 -2
- package/build/types/resources/app_name.d.ts.map +0 -1
- package/build/types/resources/chat_configuration_resource.d.ts +0 -9
- package/build/types/resources/chat_configuration_resource.d.ts.map +0 -1
- package/build/types/resources/conversation.d.ts +0 -48
- package/build/types/resources/conversation.d.ts.map +0 -1
- package/build/types/resources/conversation_badge.d.ts +0 -12
- package/build/types/resources/conversation_badge.d.ts.map +0 -1
- package/build/types/resources/conversation_membership.d.ts +0 -16
- package/build/types/resources/conversation_membership.d.ts.map +0 -1
- package/build/types/resources/conversation_validate.d.ts +0 -10
- package/build/types/resources/conversation_validate.d.ts.map +0 -1
- package/build/types/resources/denormalized_attachment_resource.d.ts +0 -65
- package/build/types/resources/denormalized_attachment_resource.d.ts.map +0 -1
- package/build/types/resources/denormalized_attachment_resource_for_create.d.ts +0 -53
- package/build/types/resources/denormalized_attachment_resource_for_create.d.ts.map +0 -1
- package/build/types/resources/direct_message_affiliations.d.ts +0 -9
- package/build/types/resources/direct_message_affiliations.d.ts.map +0 -1
- package/build/types/resources/direct_message_candidate.d.ts +0 -13
- package/build/types/resources/direct_message_candidate.d.ts.map +0 -1
- package/build/types/resources/feature_resource.d.ts +0 -7
- package/build/types/resources/feature_resource.d.ts.map +0 -1
- package/build/types/resources/group_membership.d.ts +0 -13
- package/build/types/resources/group_membership.d.ts.map +0 -1
- package/build/types/resources/group_resource.d.ts +0 -18
- package/build/types/resources/group_resource.d.ts.map +0 -1
- package/build/types/resources/groups/groups_group_resource.d.ts +0 -15
- package/build/types/resources/groups/groups_group_resource.d.ts.map +0 -1
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts +0 -15
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts.map +0 -1
- package/build/types/resources/groups/index.d.ts +0 -2
- package/build/types/resources/groups/index.d.ts.map +0 -1
- package/build/types/resources/index.d.ts +0 -18
- package/build/types/resources/index.d.ts.map +0 -1
- package/build/types/resources/member.d.ts +0 -16
- package/build/types/resources/member.d.ts.map +0 -1
- package/build/types/resources/member_ability.d.ts +0 -12
- package/build/types/resources/member_ability.d.ts.map +0 -1
- package/build/types/resources/message.d.ts +0 -44
- package/build/types/resources/message.d.ts.map +0 -1
- package/build/types/resources/message_report.d.ts +0 -19
- package/build/types/resources/message_report.d.ts.map +0 -1
- package/build/types/resources/oauth_token.d.ts +0 -9
- package/build/types/resources/oauth_token.d.ts.map +0 -1
- package/build/types/resources/organization.d.ts +0 -8
- package/build/types/resources/organization.d.ts.map +0 -1
- package/build/types/resources/person.d.ts +0 -24
- package/build/types/resources/person.d.ts.map +0 -1
- package/build/types/resources/reaction.d.ts +0 -10
- package/build/types/resources/reaction.d.ts.map +0 -1
- package/build/types/resources/read_receipt.d.ts +0 -7
- package/build/types/resources/read_receipt.d.ts.map +0 -1
- package/build/types/resources/search_result.d.ts +0 -29
- package/build/types/resources/search_result.d.ts.map +0 -1
- package/build/types/resources/services/chat_resource.d.ts +0 -53
- package/build/types/resources/services/chat_resource.d.ts.map +0 -1
- package/build/types/resources/services/index.d.ts +0 -3
- package/build/types/resources/services/index.d.ts.map +0 -1
- package/build/types/resources/services/team_resource.d.ts +0 -19
- package/build/types/resources/services/team_resource.d.ts.map +0 -1
- package/build/types/utils/index.d.ts +0 -5
- package/build/types/utils/index.d.ts.map +0 -1
- package/build/utils/archived_conversation.d.ts +0 -5
- package/build/utils/archived_conversation.d.ts.map +0 -1
- package/build/utils/assert_keys_are_numbers.d.ts +0 -2
- package/build/utils/assert_keys_are_numbers.d.ts.map +0 -1
- package/build/utils/attachment_kind.d.ts +0 -5
- package/build/utils/attachment_kind.d.ts.map +0 -1
- package/build/utils/auth_events.d.ts +0 -7
- package/build/utils/auth_events.d.ts.map +0 -1
- package/build/utils/cache/index.d.ts +0 -2
- package/build/utils/cache/index.d.ts.map +0 -1
- package/build/utils/cache/messages_cache.d.ts +0 -13
- package/build/utils/cache/messages_cache.d.ts.map +0 -1
- package/build/utils/cache/messages_window.d.ts +0 -11
- package/build/utils/cache/messages_window.d.ts.map +0 -1
- package/build/utils/cache/optimistically_create_message.d.ts +0 -12
- package/build/utils/cache/optimistically_create_message.d.ts.map +0 -1
- package/build/utils/cache/optimistically_update_message.d.ts +0 -8
- package/build/utils/cache/optimistically_update_message.d.ts.map +0 -1
- package/build/utils/cache/page_mutations.d.ts +0 -96
- package/build/utils/cache/page_mutations.d.ts.map +0 -1
- package/build/utils/can_submit_message.d.ts +0 -10
- package/build/utils/can_submit_message.d.ts.map +0 -1
- package/build/utils/chat_type_label.d.ts +0 -2
- package/build/utils/chat_type_label.d.ts.map +0 -1
- package/build/utils/client/client.d.ts +0 -30
- package/build/utils/client/client.d.ts.map +0 -1
- package/build/utils/client/index.d.ts +0 -3
- package/build/utils/client/index.d.ts.map +0 -1
- package/build/utils/client/instrumented_fetch.d.ts +0 -2
- package/build/utils/client/instrumented_fetch.d.ts.map +0 -1
- package/build/utils/client/request_helpers.d.ts +0 -28
- package/build/utils/client/request_helpers.d.ts.map +0 -1
- package/build/utils/client/transform_request_data.d.ts +0 -13
- package/build/utils/client/transform_request_data.d.ts.map +0 -1
- package/build/utils/client/transform_response.d.ts +0 -3
- package/build/utils/client/transform_response.d.ts.map +0 -1
- package/build/utils/client/types.d.ts +0 -62
- package/build/utils/client/types.d.ts.map +0 -1
- package/build/utils/client/utils.d.ts +0 -5
- package/build/utils/client/utils.d.ts.map +0 -1
- package/build/utils/conversation_safety_constants.d.ts +0 -2
- package/build/utils/conversation_safety_constants.d.ts.map +0 -1
- package/build/utils/convert_attachments_for_create.d.ts +0 -12
- package/build/utils/convert_attachments_for_create.d.ts.map +0 -1
- package/build/utils/date.d.ts +0 -11
- package/build/utils/date.d.ts.map +0 -1
- package/build/utils/dayjs.d.ts +0 -3
- package/build/utils/dayjs.d.ts.map +0 -1
- package/build/utils/deepCamelCaseKeys.d.ts +0 -4
- package/build/utils/deepCamelCaseKeys.d.ts.map +0 -1
- package/build/utils/deep_snake_case_keys.d.ts +0 -4
- package/build/utils/deep_snake_case_keys.d.ts.map +0 -1
- package/build/utils/destructure_chat_group_graph_id.d.ts +0 -10
- package/build/utils/destructure_chat_group_graph_id.d.ts.map +0 -1
- package/build/utils/gender_display_label.d.ts +0 -2
- package/build/utils/gender_display_label.d.ts.map +0 -1
- package/build/utils/generate_placeholder_ulid.d.ts +0 -10
- package/build/utils/generate_placeholder_ulid.d.ts.map +0 -1
- package/build/utils/group_messages.d.ts +0 -22
- package/build/utils/group_messages.d.ts.map +0 -1
- package/build/utils/host_bridge.d.ts +0 -20
- package/build/utils/host_bridge.d.ts.map +0 -1
- package/build/utils/index.d.ts +0 -21
- package/build/utils/index.d.ts.map +0 -1
- package/build/utils/is_input_editable.d.ts +0 -6
- package/build/utils/is_input_editable.d.ts.map +0 -1
- package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts +0 -7
- package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts.map +0 -1
- package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts +0 -12
- package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts.map +0 -1
- package/build/utils/liquid_glass.d.ts +0 -3
- package/build/utils/liquid_glass.d.ts.map +0 -1
- package/build/utils/membership_sync_info_text.d.ts +0 -2
- package/build/utils/membership_sync_info_text.d.ts.map +0 -1
- package/build/utils/message_text.d.ts +0 -3
- package/build/utils/message_text.d.ts.map +0 -1
- package/build/utils/native_adapters/audio.d.ts +0 -14
- package/build/utils/native_adapters/audio.d.ts.map +0 -1
- package/build/utils/native_adapters/clipboard.d.ts +0 -6
- package/build/utils/native_adapters/clipboard.d.ts.map +0 -1
- package/build/utils/native_adapters/configuration.d.ts +0 -36
- package/build/utils/native_adapters/configuration.d.ts.map +0 -1
- package/build/utils/native_adapters/document_picker.d.ts +0 -28
- package/build/utils/native_adapters/document_picker.d.ts.map +0 -1
- package/build/utils/native_adapters/haptic.d.ts +0 -23
- package/build/utils/native_adapters/haptic.d.ts.map +0 -1
- package/build/utils/native_adapters/image_picker.d.ts +0 -31
- package/build/utils/native_adapters/image_picker.d.ts.map +0 -1
- package/build/utils/native_adapters/index.d.ts +0 -12
- package/build/utils/native_adapters/index.d.ts.map +0 -1
- package/build/utils/native_adapters/linking.d.ts +0 -15
- package/build/utils/native_adapters/linking.d.ts.map +0 -1
- package/build/utils/native_adapters/log.d.ts +0 -26
- package/build/utils/native_adapters/log.d.ts.map +0 -1
- package/build/utils/native_adapters/menu.d.ts +0 -40
- package/build/utils/native_adapters/menu.d.ts.map +0 -1
- package/build/utils/native_adapters/storage_adapter.d.ts +0 -17
- package/build/utils/native_adapters/storage_adapter.d.ts.map +0 -1
- package/build/utils/native_adapters/video.d.ts +0 -22
- package/build/utils/native_adapters/video.d.ts.map +0 -1
- package/build/utils/package_version.d.ts +0 -2
- package/build/utils/package_version.d.ts.map +0 -1
- package/build/utils/parse_simple_markdown.d.ts +0 -7
- package/build/utils/parse_simple_markdown.d.ts.map +0 -1
- package/build/utils/performance_tracking.d.ts +0 -26
- package/build/utils/performance_tracking.d.ts.map +0 -1
- package/build/utils/pluralize.d.ts +0 -2
- package/build/utils/pluralize.d.ts.map +0 -1
- package/build/utils/reaction_constants.d.ts +0 -3
- package/build/utils/reaction_constants.d.ts.map +0 -1
- package/build/utils/replace_equal_by_id.d.ts +0 -6
- package/build/utils/replace_equal_by_id.d.ts.map +0 -1
- package/build/utils/request/conversation.d.ts +0 -12
- package/build/utils/request/conversation.d.ts.map +0 -1
- package/build/utils/request/get_chat_configuration.d.ts +0 -10
- package/build/utils/request/get_chat_configuration.d.ts.map +0 -1
- package/build/utils/request/get_features.d.ts +0 -17
- package/build/utils/request/get_features.d.ts.map +0 -1
- package/build/utils/request/get_message.d.ts +0 -20
- package/build/utils/request/get_message.d.ts.map +0 -1
- package/build/utils/request/get_messages.d.ts +0 -21
- package/build/utils/request/get_messages.d.ts.map +0 -1
- package/build/utils/request/get_search_results.d.ts +0 -13
- package/build/utils/request/get_search_results.d.ts.map +0 -1
- package/build/utils/request/messages_data_options.d.ts +0 -7
- package/build/utils/request/messages_data_options.d.ts.map +0 -1
- package/build/utils/response_error.d.ts +0 -11
- package/build/utils/response_error.d.ts.map +0 -1
- package/build/utils/session.d.ts +0 -38
- package/build/utils/session.d.ts.map +0 -1
- package/build/utils/session_manager.d.ts +0 -21
- package/build/utils/session_manager.d.ts.map +0 -1
- package/build/utils/sha_256.d.ts +0 -31
- package/build/utils/sha_256.d.ts.map +0 -1
- package/build/utils/styles.d.ts +0 -11
- package/build/utils/styles.d.ts.map +0 -1
- package/build/utils/system_messages.d.ts +0 -17
- package/build/utils/system_messages.d.ts.map +0 -1
- package/build/utils/theme.d.ts +0 -88
- package/build/utils/theme.d.ts.map +0 -1
- package/build/utils/time.d.ts +0 -9
- package/build/utils/time.d.ts.map +0 -1
- package/build/utils/upload_uri.d.ts +0 -24
- package/build/utils/upload_uri.d.ts.map +0 -1
- package/build/utils/uri.d.ts +0 -29
- package/build/utils/uri.d.ts.map +0 -1
- package/build/vendor/font_awesome_pro_solid_icons.d.ts +0 -53
- package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +0 -1
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts +0 -89
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts.map +0 -1
- package/build/vendor/tapestry/tokens.d.ts +0 -121
- package/build/vendor/tapestry/tokens.d.ts.map +0 -1
- package/src/__utils__/render_with_query_client.tsx +0 -13
- package/src/components/display/__tests__/conversation_avatar.test.tsx +0 -94
- package/src/contexts/__tests__/configured_retry.test.ts +0 -39
- package/src/hooks/__tests__/use_conversation_avatar_update.test.tsx +0 -40
- package/src/hooks/__tests__/use_system_message_people.test.tsx +0 -79
- package/src/hooks/use_system_message_people.ts +0 -55
- package/src/navigation/page_error_fallbacks.ts +0 -14
- package/src/screens/avatar_picker/__tests__/avatar_picker_screen.test.tsx +0 -67
- package/src/screens/conversation_select_recipients/__tests__/conversation_select_direct_message_recipients_screen.test.tsx +0 -100
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings_screen.js","names":["PlatformPressable","useNavigation","React","useCallback","Platform","ScrollView","StyleSheet","View","useSafeAreaInsets","Heading","Icon","Text","VersionFooter","Switch","useDirectMessagesEligible","useTheme","useAppName","usePersonSettings","jsx","_jsx","jsxs","_jsxs","SettingsScreen","t0","$","_c","styles","useStyles","directMessagesDisabled","setDirectMessagesDisabled","isMutating","directMessagesEligible","appName","navigation","t1","navigate","handleNotificationSettings","t2","type","handleGetHelp","t3","Symbol","for","variant","children","t4","sectionHeader","style","t5","settingRow","settingRowText","value","onValueChange","enabled","t6","NavRow","label","t7","t8","sectionOuter","contentInsetAdjustmentBehavior","t9","t10","footer","t11","container","onPress","useNavRowStyles","chevron","OS","name","size","inner","accessibilityRole","colors","insets","borderColorDefaultBase","bottom","create","flex","paddingBottom","Math","max","paddingLeft","paddingRight","paddingTop","borderBottomWidth","borderBottomColor","flexDirection","alignItems","justifyContent","paddingVertical","gap","iconColorDefaultDisabled","color"],"sources":["../../src/screens/settings_screen.tsx"],"sourcesContent":["import { PlatformPressable } from '@react-navigation/elements'\nimport { StaticScreenProps, useNavigation } from '@react-navigation/native'\nimport React, { useCallback } from 'react'\nimport { Platform, ScrollView, StyleSheet, View } from 'react-native'\nimport { useSafeAreaInsets } from 'react-native-safe-area-context'\nimport { Heading, Icon, Text, VersionFooter } from '../components'\nimport { Switch } from '../components/display/switch'\nimport { useDirectMessagesEligible, useTheme } from '../hooks'\nimport { useAppName } from '../hooks/use_app_name'\nimport { usePersonSettings } from '../hooks/use_person_settings'\n\nexport type SettingsScreenProps = StaticScreenProps<{}>\n\nexport function SettingsScreen({}: SettingsScreenProps) {\n const styles = useStyles()\n const { directMessagesDisabled, setDirectMessagesDisabled, isMutating } = usePersonSettings()\n const directMessagesEligible = useDirectMessagesEligible()\n const appName = useAppName()\n const navigation = useNavigation()\n\n const handleNotificationSettings = useCallback(() => {\n navigation.navigate('NotificationSettings', {})\n }, [navigation])\n\n const handleGetHelp = useCallback(() => {\n navigation.navigate('GetHelp', { type: 'chat' })\n }, [navigation])\n\n return (\n <View style={styles.container}>\n <ScrollView contentInsetAdjustmentBehavior=\"automatic\">\n <View style={styles.sectionOuter}>\n <View style={styles.sectionHeader}>\n <Heading variant=\"h2\">Messages</Heading>\n </View>\n {directMessagesEligible && (\n <View style={styles.settingRow}>\n <View style={styles.settingRowText}>\n <Text>Allow direct messages</Text>\n <Text variant=\"tertiary\">\n When off, you can't be added to new direct messages, and any you're already in\n will be turned off.\n </Text>\n </View>\n <Switch\n value={!directMessagesDisabled}\n onValueChange={enabled => setDirectMessagesDisabled(!enabled)}\n disabled={isMutating}\n />\n </View>\n )}\n <NavRow label=\"Notification settings\" onPress={handleNotificationSettings} />\n {appName !== 'services' && <NavRow label=\"Get help\" onPress={handleGetHelp} />}\n </View>\n </ScrollView>\n <View style={styles.footer}>\n <VersionFooter />\n </View>\n </View>\n )\n}\n\ninterface NavRowProps {\n label: string\n onPress: () => void\n}\n\nfunction NavRow({ label, onPress }: NavRowProps) {\n const styles = useNavRowStyles()\n return (\n <PlatformPressable\n style={styles.container}\n onPress={onPress}\n accessibilityRole=\"button\"\n accessibilityLabel={label}\n >\n <View style={styles.inner}>\n <Text>{label}</Text>\n {Platform.OS === 'ios' && (\n <Icon name=\"general.rightChevron\" size={16} style={styles.chevron} />\n )}\n </View>\n </PlatformPressable>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n const insets = useSafeAreaInsets()\n return StyleSheet.create({\n container: {\n flex: 1,\n },\n footer: {\n paddingBottom: Math.max(insets.bottom, 8),\n },\n sectionOuter: {\n paddingLeft: 16,\n },\n sectionHeader: {\n paddingRight: 16,\n paddingTop: 24,\n paddingBottom: 12,\n borderBottomWidth: 1,\n borderBottomColor: colors.borderColorDefaultBase,\n },\n settingRow: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n paddingRight: 16,\n paddingVertical: 12,\n borderBottomWidth: 1,\n borderBottomColor: colors.borderColorDefaultBase,\n },\n settingRowText: {\n flex: 1,\n gap: 8,\n },\n })\n}\n\nconst useNavRowStyles = () => {\n const { colors } = useTheme()\n return StyleSheet.create({\n container: {\n paddingLeft: 0,\n },\n inner: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n paddingRight: 16,\n paddingVertical: 14,\n borderBottomWidth: 1,\n borderBottomColor: colors.borderColorDefaultBase,\n },\n chevron: {\n color: colors.iconColorDefaultDisabled,\n },\n })\n}\n"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,4BAA4B;AAC9D,SAA4BC,aAAa,QAAQ,0BAA0B;AAC3E,OAAOC,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACrE,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,OAAO,EAAEC,IAAI,EAAEC,IAAI,EAAEC,aAAa,QAAQ,eAAe;AAClE,SAASC,MAAM,QAAQ,8BAA8B;AACrD,SAASC,yBAAyB,EAAEC,QAAQ,QAA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AhBKD,EAgBL;AAAA,CACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"settings_screen.js","names":["PlatformPressable","useNavigation","React","useCallback","Platform","StyleSheet","View","useSafeAreaInsets","Heading","Icon","Text","VersionFooter","Switch","useDirectMessagesEligible","useTheme","useAppName","usePersonSettings","jsx","_jsx","jsxs","_jsxs","SettingsScreen","t0","$","_c","styles","useStyles","directMessagesDisabled","setDirectMessagesDisabled","isMutating","directMessagesEligible","appName","navigation","t1","navigate","handleNotificationSettings","t2","type","handleGetHelp","t3","Symbol","for","variant","children","t4","sectionHeader","style","t5","settingRow","settingRowText","value","onValueChange","enabled","t6","NavRow","label","t7","t8","sectionOuter","t9","t10","footer","t11","container","onPress","useNavRowStyles","chevron","OS","name","size","inner","accessibilityRole","colors","insets","borderColorDefaultBase","bottom","create","flex","justifyContent","paddingBottom","Math","max","paddingLeft","paddingRight","paddingTop","borderBottomWidth","borderBottomColor","flexDirection","alignItems","paddingVertical","gap","iconColorDefaultDisabled","color"],"sources":["../../src/screens/settings_screen.tsx"],"sourcesContent":["import { PlatformPressable } from '@react-navigation/elements'\nimport { StaticScreenProps, useNavigation } from '@react-navigation/native'\nimport React, { useCallback } from 'react'\nimport { Platform, StyleSheet, View } from 'react-native'\nimport { useSafeAreaInsets } from 'react-native-safe-area-context'\nimport { Heading, Icon, Text, VersionFooter } from '../components'\nimport { Switch } from '../components/display/switch'\nimport { useDirectMessagesEligible, useTheme } from '../hooks'\nimport { useAppName } from '../hooks/use_app_name'\nimport { usePersonSettings } from '../hooks/use_person_settings'\n\nexport type SettingsScreenProps = StaticScreenProps<{}>\n\nexport function SettingsScreen({}: SettingsScreenProps) {\n const styles = useStyles()\n const { directMessagesDisabled, setDirectMessagesDisabled, isMutating } = usePersonSettings()\n const directMessagesEligible = useDirectMessagesEligible()\n const appName = useAppName()\n const navigation = useNavigation()\n\n const handleNotificationSettings = useCallback(() => {\n navigation.navigate('NotificationSettings', {})\n }, [navigation])\n\n const handleGetHelp = useCallback(() => {\n navigation.navigate('GetHelp', { type: 'chat' })\n }, [navigation])\n\n return (\n <View style={styles.container}>\n <View style={styles.sectionOuter}>\n <View style={styles.sectionHeader}>\n <Heading variant=\"h2\">Messages</Heading>\n </View>\n {directMessagesEligible && (\n <View style={styles.settingRow}>\n <View style={styles.settingRowText}>\n <Text>Allow direct messages</Text>\n <Text variant=\"tertiary\">\n When off, you can't be added to new direct messages, and any you're already in will\n be turned off.\n </Text>\n </View>\n <Switch\n value={!directMessagesDisabled}\n onValueChange={enabled => setDirectMessagesDisabled(!enabled)}\n disabled={isMutating}\n />\n </View>\n )}\n <NavRow label=\"Notification settings\" onPress={handleNotificationSettings} />\n {appName !== 'services' && <NavRow label=\"Get help\" onPress={handleGetHelp} />}\n </View>\n <View style={styles.footer}>\n <VersionFooter />\n </View>\n </View>\n )\n}\n\ninterface NavRowProps {\n label: string\n onPress: () => void\n}\n\nfunction NavRow({ label, onPress }: NavRowProps) {\n const styles = useNavRowStyles()\n return (\n <PlatformPressable\n style={styles.container}\n onPress={onPress}\n accessibilityRole=\"button\"\n accessibilityLabel={label}\n >\n <View style={styles.inner}>\n <Text>{label}</Text>\n {Platform.OS === 'ios' && (\n <Icon name=\"general.rightChevron\" size={16} style={styles.chevron} />\n )}\n </View>\n </PlatformPressable>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n const insets = useSafeAreaInsets()\n return StyleSheet.create({\n container: {\n flex: 1,\n },\n footer: {\n flex: 1,\n justifyContent: 'flex-end',\n paddingBottom: Math.max(insets.bottom, 8),\n },\n sectionOuter: {\n paddingLeft: 16,\n },\n sectionHeader: {\n paddingRight: 16,\n paddingTop: 24,\n paddingBottom: 12,\n borderBottomWidth: 1,\n borderBottomColor: colors.borderColorDefaultBase,\n },\n settingRow: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n paddingRight: 16,\n paddingVertical: 12,\n borderBottomWidth: 1,\n borderBottomColor: colors.borderColorDefaultBase,\n },\n settingRowText: {\n flex: 1,\n gap: 8,\n },\n })\n}\n\nconst useNavRowStyles = () => {\n const { colors } = useTheme()\n return StyleSheet.create({\n container: {\n paddingLeft: 0,\n },\n inner: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n paddingRight: 16,\n paddingVertical: 14,\n borderBottomWidth: 1,\n borderBottomColor: colors.borderColorDefaultBase,\n },\n chevron: {\n color: colors.iconColorDefaultDisabled,\n },\n })\n}\n"],"mappings":";AAAA,SAASA,iBAAiB,QAAQ,4BAA4B;AAC9D,SAA4BC,aAAa,QAAQ,0BAA0B;AAC3E,OAAOC,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,OAAO,EAAEC,IAAI,EAAEC,IAAI,EAAEC,aAAa,QAAQ,eAAe;AAClE,SAASC,MAAM,QAAQ,8BAA8B;AACrD,SAASC,yBAAyB,EAAEC,QAAQ,QAAQ,UAAU;AAC9D,SAASC,UAAU,QAAQ,uBAAuB;AAClD,SAASC,iBAAiB,QAAQ,8BAA8B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAIhE,OAAO,SAAAC,eAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EACL,MAAAC,MAAA,GAAeC,SAAS,CAAC,CAAC;EAC1B;IAAAC,sBAAA;IAAAC,yBAAA;IAAAC;EAAA,IAA0Eb,iBAAiB,CAAC,CAAC;EAC7F,MAAAc,sBAAA,GAA+BjB,yBAAyB,CAAC,CAAC;EAC1D,MAAAkB,OAAA,GAAgBhB,UAAU,CAAC,CAAC;EAC5B,MAAAiB,UAAA,GAAmB/B,aAAa,CAAC,CAAC;EAAA,IAAAgC,EAAA;EAAA,IAAAV,CAAA,QAAAS,UAAA;IAEaC,EAAA,GAAAA,CAAA;MAC7CD,UAAU,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A,QAAAiD,MAAA,CAAAE,sBAAA,IAAAnD,CAAA,QAAAiD,MAAA,CAAAmB,wBAAA;IACtBrE,EAAA,GAAAjB,UAAU,CAAAuE,MAAO,CAAC;MAAAb,SAAA,EACZ;QAAAmB,WAAA,EACI;MACf,CAAC;MAAAZ,KAAA,EACM;QAAAiB,aAAA,EACU,KAAK;QAAAC,UAAA,EACR,QAAQ;QAAAV,cAAA,EACJ,eAAe;QAAAK,YAAA,EACjB,EAAE;QAAAM,eAAA,EACC,EAAE;QAAAJ,iBAAA,EACA,CAAC;QAAAC,iBAAA,EACDd,MAAM,CAAAE;MAC3B,CAAC;MAAAR,OAAA,EACQ;QAAA0B,KAAA,EACApB,MAAM,CAAAmB;MACf;IACF,CAAC,CAAC;IAAApE,CAAA,MAAAiD,MAAA,CAAAE,sBAAA;IAAAnD,CAAA,MAAAiD,MAAA,CAAAmB,wBAAA;IAAApE,CAAA,MAAAD,EAAA;EAAA;IAAAA,EAAA,GAAAC,CAAA;EAAA;EAAA,OAhBKD,EAgBL;AAAA,CACH","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ import { FlatList } from 'react-native-gesture-handler';
|
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
6
|
import { Avatar, Text } from '../components';
|
|
7
7
|
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet';
|
|
8
|
-
import {
|
|
8
|
+
import { useSuspenseGet } from '../hooks';
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
export const SystemMessagePeopleScreenOptions = getFormSheetScreenOptions({
|
|
11
11
|
sheetAllowedDetents: Platform.select({
|
|
@@ -15,7 +15,7 @@ export const SystemMessagePeopleScreenOptions = getFormSheetScreenOptions({
|
|
|
15
15
|
headerTitle: 'People'
|
|
16
16
|
});
|
|
17
17
|
export function SystemMessagePeopleScreen(t0) {
|
|
18
|
-
const $ = _c(
|
|
18
|
+
const $ = _c(22);
|
|
19
19
|
const {
|
|
20
20
|
route
|
|
21
21
|
} = t0;
|
|
@@ -24,50 +24,110 @@ export function SystemMessagePeopleScreen(t0) {
|
|
|
24
24
|
person_ids
|
|
25
25
|
} = route.params;
|
|
26
26
|
const styles = useStyles();
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
const t1 = `/me/conversations/${conversation_id}/members`;
|
|
28
|
+
let t2;
|
|
29
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
30
|
+
t2 = {
|
|
31
|
+
Member: ["id", "name", "avatar"]
|
|
32
|
+
};
|
|
33
|
+
$[0] = t2;
|
|
34
|
+
} else {
|
|
35
|
+
t2 = $[0];
|
|
36
|
+
}
|
|
37
|
+
let t3;
|
|
38
|
+
if ($[1] !== person_ids) {
|
|
39
|
+
t3 = {
|
|
40
|
+
id: person_ids
|
|
32
41
|
};
|
|
33
|
-
$[0] = conversation_id;
|
|
34
42
|
$[1] = person_ids;
|
|
35
|
-
$[2] =
|
|
43
|
+
$[2] = t3;
|
|
36
44
|
} else {
|
|
37
|
-
|
|
45
|
+
t3 = $[2];
|
|
46
|
+
}
|
|
47
|
+
let t4;
|
|
48
|
+
if ($[3] !== person_ids.length || $[4] !== t3) {
|
|
49
|
+
t4 = {
|
|
50
|
+
fields: t2,
|
|
51
|
+
where: t3,
|
|
52
|
+
limit: person_ids.length
|
|
53
|
+
};
|
|
54
|
+
$[3] = person_ids.length;
|
|
55
|
+
$[4] = t3;
|
|
56
|
+
$[5] = t4;
|
|
57
|
+
} else {
|
|
58
|
+
t4 = $[5];
|
|
59
|
+
}
|
|
60
|
+
let t5;
|
|
61
|
+
if ($[6] !== t1 || $[7] !== t4) {
|
|
62
|
+
t5 = {
|
|
63
|
+
url: t1,
|
|
64
|
+
data: t4
|
|
65
|
+
};
|
|
66
|
+
$[6] = t1;
|
|
67
|
+
$[7] = t4;
|
|
68
|
+
$[8] = t5;
|
|
69
|
+
} else {
|
|
70
|
+
t5 = $[8];
|
|
38
71
|
}
|
|
39
72
|
const {
|
|
40
|
-
data:
|
|
41
|
-
} =
|
|
42
|
-
let
|
|
43
|
-
if ($[
|
|
44
|
-
|
|
45
|
-
|
|
73
|
+
data: members
|
|
74
|
+
} = useSuspenseGet(t5);
|
|
75
|
+
let t6;
|
|
76
|
+
if ($[9] !== person_ids) {
|
|
77
|
+
t6 = Object.fromEntries(person_ids.map(_temp));
|
|
78
|
+
$[9] = person_ids;
|
|
79
|
+
$[10] = t6;
|
|
80
|
+
} else {
|
|
81
|
+
t6 = $[10];
|
|
82
|
+
}
|
|
83
|
+
const orderById = t6;
|
|
84
|
+
let t7;
|
|
85
|
+
if ($[11] !== members || $[12] !== orderById) {
|
|
86
|
+
let t8;
|
|
87
|
+
if ($[14] !== orderById) {
|
|
88
|
+
t8 = (a, b) => (orderById[a.id] ?? 0) - (orderById[b.id] ?? 0);
|
|
89
|
+
$[14] = orderById;
|
|
90
|
+
$[15] = t8;
|
|
91
|
+
} else {
|
|
92
|
+
t8 = $[15];
|
|
93
|
+
}
|
|
94
|
+
t7 = [...members].sort(t8);
|
|
95
|
+
$[11] = members;
|
|
96
|
+
$[12] = orderById;
|
|
97
|
+
$[13] = t7;
|
|
98
|
+
} else {
|
|
99
|
+
t7 = $[13];
|
|
100
|
+
}
|
|
101
|
+
const sortedMembers = t7;
|
|
102
|
+
let t8;
|
|
103
|
+
if ($[16] !== sortedMembers || $[17] !== styles.contentContainer) {
|
|
104
|
+
t8 = /*#__PURE__*/_jsx(FlatList, {
|
|
105
|
+
data: sortedMembers,
|
|
46
106
|
contentContainerStyle: styles.contentContainer,
|
|
47
|
-
keyExtractor:
|
|
48
|
-
renderItem:
|
|
107
|
+
keyExtractor: _temp2,
|
|
108
|
+
renderItem: _temp3
|
|
49
109
|
});
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
110
|
+
$[16] = sortedMembers;
|
|
111
|
+
$[17] = styles.contentContainer;
|
|
112
|
+
$[18] = t8;
|
|
53
113
|
} else {
|
|
54
|
-
|
|
114
|
+
t8 = $[18];
|
|
55
115
|
}
|
|
56
|
-
let
|
|
57
|
-
if ($[
|
|
58
|
-
|
|
116
|
+
let t9;
|
|
117
|
+
if ($[19] !== styles.formSheetContent || $[20] !== t8) {
|
|
118
|
+
t9 = /*#__PURE__*/_jsx(FormSheet.Root, {
|
|
59
119
|
contentStyle: styles.formSheetContent,
|
|
60
|
-
children:
|
|
120
|
+
children: t8
|
|
61
121
|
});
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
122
|
+
$[19] = styles.formSheetContent;
|
|
123
|
+
$[20] = t8;
|
|
124
|
+
$[21] = t9;
|
|
65
125
|
} else {
|
|
66
|
-
|
|
126
|
+
t9 = $[21];
|
|
67
127
|
}
|
|
68
|
-
return
|
|
128
|
+
return t9;
|
|
69
129
|
}
|
|
70
|
-
function
|
|
130
|
+
function _temp3(t0) {
|
|
71
131
|
const {
|
|
72
132
|
item: item_0
|
|
73
133
|
} = t0;
|
|
@@ -75,9 +135,12 @@ function _temp2(t0) {
|
|
|
75
135
|
person: item_0
|
|
76
136
|
});
|
|
77
137
|
}
|
|
78
|
-
function
|
|
138
|
+
function _temp2(item) {
|
|
79
139
|
return item.id.toString();
|
|
80
140
|
}
|
|
141
|
+
function _temp(id, i) {
|
|
142
|
+
return [id, i];
|
|
143
|
+
}
|
|
81
144
|
const Person = memo(t0 => {
|
|
82
145
|
const $ = _c(9);
|
|
83
146
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system_message_people_screen.js","names":["React","memo","Platform","StyleSheet","View","FlatList","useSafeAreaInsets","Avatar","Text","FormSheet","getFormSheetScreenOptions","
|
|
1
|
+
{"version":3,"file":"system_message_people_screen.js","names":["React","memo","Platform","StyleSheet","View","FlatList","useSafeAreaInsets","Avatar","Text","FormSheet","getFormSheetScreenOptions","useSuspenseGet","jsx","_jsx","jsxs","_jsxs","SystemMessagePeopleScreenOptions","sheetAllowedDetents","select","android","default","headerTitle","SystemMessagePeopleScreen","t0","$","_c","route","conversation_id","person_ids","params","styles","useStyles","t1","t2","Symbol","for","Member","t3","id","t4","length","fields","where","limit","t5","url","data","members","t6","Object","fromEntries","map","_temp","orderById","t7","t8","a","b","sort","sortedMembers","contentContainer","contentContainerStyle","keyExtractor","_temp2","renderItem","_temp3","t9","formSheetContent","Root","contentStyle","children","item","item_0","Person","toString","i","person","avatar","sourceUri","size","name","personName","variant","numberOfLines","style","personRow","bottom","create","paddingTop","paddingBottom","flexDirection","alignItems","gap","paddingVertical","paddingHorizontal","flex"],"sources":["../../src/screens/system_message_people_screen.tsx"],"sourcesContent":["import { StaticScreenProps } from '@react-navigation/native'\nimport React, { memo } from 'react'\nimport { Platform, StyleSheet, View } from 'react-native'\nimport { FlatList } from 'react-native-gesture-handler'\nimport { useSafeAreaInsets } from 'react-native-safe-area-context'\nimport { Avatar, Text } from '../components'\nimport FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet'\nimport { useSuspenseGet } from '../hooks'\nimport { MemberResource } from '../types'\n\nexport const SystemMessagePeopleScreenOptions = getFormSheetScreenOptions({\n sheetAllowedDetents: Platform.select({\n android: [0.5, 0.94],\n default: [0.5, 1],\n }),\n headerTitle: 'People',\n})\n\nexport type SystemMessagePeopleScreenProps = StaticScreenProps<{\n conversation_id: number\n person_ids: number[]\n}>\n\nexport function SystemMessagePeopleScreen({ route }: SystemMessagePeopleScreenProps) {\n const { conversation_id, person_ids } = route.params\n const styles = useStyles()\n\n const { data: members } = useSuspenseGet<MemberResource[]>({\n url: `/me/conversations/${conversation_id}/members`,\n data: {\n fields: {\n Member: ['id', 'name', 'avatar'],\n },\n where: {\n id: person_ids,\n },\n limit: person_ids.length,\n },\n })\n\n const orderById = Object.fromEntries(person_ids.map((id, i) => [id, i]))\n const sortedMembers = [...members].sort((a, b) => (orderById[a.id] ?? 0) - (orderById[b.id] ?? 0))\n\n return (\n <FormSheet.Root contentStyle={styles.formSheetContent}>\n <FlatList\n data={sortedMembers}\n contentContainerStyle={styles.contentContainer}\n keyExtractor={item => item.id.toString()}\n renderItem={({ item }) => <Person person={item} />}\n />\n </FormSheet.Root>\n )\n}\n\ntype PersonProps = Pick<MemberResource, 'id' | 'name' | 'avatar'>\n\nconst Person = memo(({ person }: { person: PersonProps }) => {\n const styles = useStyles()\n\n return (\n <View style={styles.personRow}>\n <Avatar sourceUri={person.avatar} size=\"sm\" />\n <Text variant=\"tertiary\" numberOfLines={2} style={styles.personName}>\n {person.name}\n </Text>\n </View>\n )\n})\n\nconst useStyles = () => {\n const { bottom } = useSafeAreaInsets()\n\n return StyleSheet.create({\n formSheetContent: {\n paddingTop: 16,\n },\n contentContainer: {\n paddingTop: 8,\n paddingBottom: bottom + 24,\n },\n personRow: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n paddingVertical: 8,\n paddingHorizontal: 16,\n flex: 1,\n },\n personName: {\n flex: 1,\n },\n })\n}\n"],"mappings":";AACA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,QAAQ,QAAQ,8BAA8B;AACvD,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,MAAM,EAAEC,IAAI,QAAQ,eAAe;AAC5C,OAAOC,SAAS,IAAIC,yBAAyB,QAAQ,oCAAoC;AACzF,SAASC,cAAc,QAAQ,UAAU;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGzC,OAAO,MAAMC,gCAAgC,GAAGN,yBAAyB,CAAC;EACxEO,mBAAmB,EAAEf,QAAQ,CAACgB,MAAM,CAAC;IACnCC,OAAO,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC;IACpBC,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC;EAClB,CAAC,CAAC;EACFC,WAAW,EAAE;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iBAAiB,CAAC,CAAC;EAAA,IAAAiB,EAAA;EAAA,IAAAC,CAAA,QAAA8D,MAAA;IAE/B/D,EAAA,GAAApB,UAAU,CAAAoF,MAAO,CAAC;MAAApB,gBAAA,EACL;QAAAqB,UAAA,EACJ;MACd,CAAC;MAAA5B,gBAAA,EACiB;QAAA4B,UAAA,EACJ,CAAC;QAAAC,aAAA,EACEH,MAAM,GAAG;MAC1B,CAAC;MAAAD,SAAA,EACU;QAAAK,aAAA,EACM,KAAK;QAAAC,UAAA,EACR,QAAQ;QAAAC,GAAA,EACf,CAAC;QAAAC,eAAA,EACW,CAAC;QAAAC,iBAAA,EACC,EAAE;QAAAC,IAAA,EACf;MACR,CAAC;MAAAd,UAAA,EACW;QAAAc,IAAA,EACJ;MACR;IACF,CAAC,CAAC;IAAAvE,CAAA,MAAA8D,MAAA;IAAA9D,CAAA,MAAAD,EAAA;EAAA;IAAAA,EAAA,GAAAC,CAAA;EAAA;EAAA,OAnBKD,EAmBL;AAAA,CACH","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/chat-react-native",
|
|
3
|
-
"version": "4.5.1-qa-
|
|
3
|
+
"version": "4.5.1-qa-1062.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
35
35
|
"@fortawesome/react-native-fontawesome": "^0.3.2",
|
|
36
|
-
"@planningcenter/emoji-keyboard": "4.5.1-qa-
|
|
36
|
+
"@planningcenter/emoji-keyboard": "4.5.1-qa-1062.0",
|
|
37
37
|
"lodash-inflection": "^1.5.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -62,27 +62,31 @@
|
|
|
62
62
|
"@babel/core": "^7.20.0",
|
|
63
63
|
"@babel/plugin-transform-react-jsx": "^7.28.6",
|
|
64
64
|
"@babel/preset-typescript": "^7.23.3",
|
|
65
|
-
"@react-native/eslint-config": "~0.
|
|
65
|
+
"@react-native/eslint-config": "~0.88.0",
|
|
66
66
|
"@testing-library/react-native": "^13.2.0",
|
|
67
67
|
"@types/color": "^3.0.0",
|
|
68
68
|
"@types/jest": "^29.5.14",
|
|
69
|
+
"@types/react-test-renderer": "^19",
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^8.63.0",
|
|
69
71
|
"@typescript-eslint/parser": "^8.63.0",
|
|
70
72
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
71
73
|
"color": "^3.1.2",
|
|
72
74
|
"eslint": "8.57.1",
|
|
73
75
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
74
|
-
"expo-module-scripts": "^56.0.
|
|
76
|
+
"expo-module-scripts": "^56.0.8",
|
|
75
77
|
"fast-text-encoding": "^1.0.6",
|
|
76
78
|
"jest": "^29.7.0",
|
|
79
|
+
"jest-expo": "~58.0.11",
|
|
77
80
|
"jest-fetch-mock": "^3.0.3",
|
|
78
81
|
"msw": "^2.7.3",
|
|
79
82
|
"prettier": "^3.4.2",
|
|
80
|
-
"react": "19.
|
|
81
|
-
"react-native": "patch:react-native@npm%3A0.
|
|
82
|
-
"react-native-svg": "15.
|
|
83
|
+
"react": "19.3.0",
|
|
84
|
+
"react-native": "patch:react-native@npm%3A0.88.0#~/.yarn/patches/react-native-npm-0.88.0-60c6201dd2.patch",
|
|
85
|
+
"react-native-svg": "15.16.0",
|
|
83
86
|
"react-native-url-polyfill": "^2.0.0",
|
|
87
|
+
"react-test-renderer": "19.3.0",
|
|
84
88
|
"sf-symbols-typescript": "^2.2.0",
|
|
85
89
|
"typescript": "~6.0.3"
|
|
86
90
|
},
|
|
87
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "3cc4086780998107b78c6228a91693df98cb8aaf"
|
|
88
92
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ColorSchemeName } from 'react-native'
|
|
1
2
|
import { defaultTheme } from '../../utils/theme'
|
|
2
3
|
import { aliasTokensColorMap } from '../../vendor/tapestry/alias_tokens_color_map'
|
|
3
4
|
|
|
@@ -15,10 +16,12 @@ describe('defaultTheme', () => {
|
|
|
15
16
|
})
|
|
16
17
|
|
|
17
18
|
test('falls back to the light palette for React Native 0.83\'s "unspecified" variant', () => {
|
|
18
|
-
// RN 0.83 added "unspecified" to ColorSchemeName.
|
|
19
|
+
// RN 0.83 added "unspecified" to ColorSchemeName and 0.88 took it back out of
|
|
20
|
+
// the type, but hosts on 0.83-0.87 still send it. Anything that is not
|
|
19
21
|
// literally "dark" should fall through to the light palette so we never
|
|
20
22
|
// render an unstyled or misthemed UI.
|
|
21
|
-
|
|
23
|
+
const unspecified = 'unspecified' as ColorSchemeName
|
|
24
|
+
expect(defaultTheme(unspecified).colors).toMatchObject(aliasTokensColorMap.light)
|
|
22
25
|
})
|
|
23
26
|
|
|
24
27
|
describe('chip tokens', () => {
|
|
@@ -27,10 +27,6 @@ import { addRecordInPagesData, deleteRecordInPagesData } from '../../../utils/ca
|
|
|
27
27
|
import { getMessagesQueryKey } from '../../../utils/request/get_messages'
|
|
28
28
|
import { MessageList } from '../message_list'
|
|
29
29
|
|
|
30
|
-
jest.mock('@react-navigation/elements', () => ({
|
|
31
|
-
...jest.requireActual('@react-navigation/elements'),
|
|
32
|
-
useHeaderHeight: () => 0,
|
|
33
|
-
}))
|
|
34
30
|
jest.mock('../../../hooks/use_api_client')
|
|
35
31
|
const mockFlash = jest.fn()
|
|
36
32
|
jest.mock('../../../hooks/use_animated_message_background_color', () => ({
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { date as formatDate } from '@planningcenter/datetime-fmt'
|
|
2
|
-
import { useHeaderHeight } from '@react-navigation/elements'
|
|
3
2
|
import { noop } from 'lodash'
|
|
4
3
|
import React, { RefObject, useCallback, useEffect, useRef, useState } from 'react'
|
|
5
4
|
import { FlatList, FlatListProps, StyleSheet, View } from 'react-native'
|
|
@@ -8,7 +7,6 @@ import { ConversationResource } from '../../types/resources/conversation'
|
|
|
8
7
|
import { MessageResource } from '../../types/resources/message'
|
|
9
8
|
import { getRelativeDateStatus } from '../../utils/date'
|
|
10
9
|
import { groupMessages, type DateSeparator, type EnrichedMessage } from '../../utils/group_messages'
|
|
11
|
-
import { isLiquidGlassEnabled } from '../../utils/liquid_glass'
|
|
12
10
|
import { CONVERSATION_MESSAGE_LIST_PADDING_HORIZONTAL } from '../../utils/styles'
|
|
13
11
|
import { isSystemMessage } from '../../utils/system_messages'
|
|
14
12
|
import { Text } from '../display'
|
|
@@ -71,8 +69,6 @@ export function MessageList({
|
|
|
71
69
|
onMomentumScrollEnd,
|
|
72
70
|
}: MessageListProps) {
|
|
73
71
|
const styles = useStyles()
|
|
74
|
-
const headerHeight = useHeaderHeight()
|
|
75
|
-
const glassHeaderInset = isLiquidGlassEnabled() ? headerHeight : 0
|
|
76
72
|
const inReplyScreen = !!replyRootId
|
|
77
73
|
const canDeleteNonAuthoredMessages =
|
|
78
74
|
conversation.memberAbility?.canDeleteNonAuthoredMessages ?? false
|
|
@@ -159,8 +155,6 @@ export function MessageList({
|
|
|
159
155
|
inverted
|
|
160
156
|
ref={listRef}
|
|
161
157
|
contentContainerStyle={styles.listContainer}
|
|
162
|
-
contentInset={{ bottom: glassHeaderInset }}
|
|
163
|
-
scrollIndicatorInsets={{ bottom: glassHeaderInset }}
|
|
164
158
|
data={messagesWithSeparators}
|
|
165
159
|
keyExtractor={item => item.id}
|
|
166
160
|
onScroll={onScroll}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { render } from '@testing-library/react-native'
|
|
1
2
|
import React from 'react'
|
|
2
|
-
import { renderWithQueryClient } from '../../../__utils__/render_with_query_client'
|
|
3
3
|
import type { ConversationPreviewData, ConversationResource } from '../../../types'
|
|
4
4
|
import { formatDatePreview } from '../../../utils/date'
|
|
5
5
|
import { ConversationPreview } from '../conversation_preview'
|
|
@@ -49,7 +49,7 @@ const renderPreview = (
|
|
|
49
49
|
preview: ConversationPreviewData,
|
|
50
50
|
overrides: Partial<ConversationResource> = {}
|
|
51
51
|
) =>
|
|
52
|
-
|
|
52
|
+
render(
|
|
53
53
|
<ConversationPreview conversation={conversation(preview, overrides)} onPress={jest.fn()} />
|
|
54
54
|
)
|
|
55
55
|
|
|
@@ -79,7 +79,6 @@ export const Conversations = ({ ListHeaderComponent }: ConversationsProps) => {
|
|
|
79
79
|
data={data}
|
|
80
80
|
keyExtractor={item => item.id.toString()}
|
|
81
81
|
contentContainerStyle={styles.contentContainer}
|
|
82
|
-
contentInsetAdjustmentBehavior="automatic"
|
|
83
82
|
onRefresh={refetch}
|
|
84
83
|
refreshing={!isFetched && isRefetching}
|
|
85
84
|
ListHeaderComponent={ListHeaderComponent}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import type { ViewStyle } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
applyAvatarUpdate,
|
|
5
|
-
usePendingConversationAvatarUpdate,
|
|
6
|
-
} from '../../hooks/use_conversation_avatar_update'
|
|
7
3
|
import type { ConversationAvatarData } from '../../types'
|
|
8
4
|
import AvatarPrimitive, { type AvatarRootProps } from '../primitive/avatar_primitive'
|
|
9
5
|
import { AvatarGroup } from './avatar_group'
|
|
@@ -42,7 +38,7 @@ function resolveAvatar(conversation: ConversationAvatarData): ResolvedAvatar {
|
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
interface ConversationAvatarProps {
|
|
45
|
-
conversation: ConversationAvatarData
|
|
41
|
+
conversation: ConversationAvatarData
|
|
46
42
|
size?: AvatarRootProps['size']
|
|
47
43
|
showFallback?: boolean
|
|
48
44
|
fallbackIconName?: IconString
|
|
@@ -58,10 +54,7 @@ export function ConversationAvatar({
|
|
|
58
54
|
style,
|
|
59
55
|
maxFontSizeMultiplier,
|
|
60
56
|
}: ConversationAvatarProps) {
|
|
61
|
-
const
|
|
62
|
-
const avatar = resolveAvatar(
|
|
63
|
-
pendingUpdate ? applyAvatarUpdate(conversation, pendingUpdate) : conversation
|
|
64
|
-
)
|
|
57
|
+
const avatar = resolveAvatar(conversation)
|
|
65
58
|
const sizeProps = { size, maxFontSizeMultiplier, style }
|
|
66
59
|
|
|
67
60
|
switch (avatar.kind) {
|
|
@@ -85,8 +85,6 @@ export function Image({
|
|
|
85
85
|
|
|
86
86
|
const isLoading = isImageLoading || loading
|
|
87
87
|
|
|
88
|
-
const ImageComponent = animatedImageStyle ? Animated.Image : ReactNativeImage
|
|
89
|
-
|
|
90
88
|
return (
|
|
91
89
|
<View
|
|
92
90
|
style={wrapperStyle}
|
|
@@ -95,14 +93,25 @@ export function Image({
|
|
|
95
93
|
accessibilityState={{ busy: isLoading }}
|
|
96
94
|
collapsable={false}
|
|
97
95
|
>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
{animatedImageStyle ? (
|
|
97
|
+
<Animated.Image
|
|
98
|
+
style={[styles.image, imageStyles, animatedImageStyle]}
|
|
99
|
+
onLoad={handleOnLoad}
|
|
100
|
+
onError={handleOnError}
|
|
101
|
+
source={source}
|
|
102
|
+
alt={isLoading ? '' : alt}
|
|
103
|
+
{...props}
|
|
104
|
+
/>
|
|
105
|
+
) : (
|
|
106
|
+
<ReactNativeImage
|
|
107
|
+
style={[styles.image, imageStyles]}
|
|
108
|
+
onLoad={handleOnLoad}
|
|
109
|
+
onError={handleOnError}
|
|
110
|
+
source={source}
|
|
111
|
+
alt={isLoading ? '' : alt}
|
|
112
|
+
{...props}
|
|
113
|
+
/>
|
|
114
|
+
)}
|
|
106
115
|
{!hideLoader && isLoading && (
|
|
107
116
|
<View style={[styles.loadingBackground, loadingBackgroundStyles]}>
|
|
108
117
|
<Spinner size={loaderSize} style={styles.spinner} />
|
|
@@ -43,7 +43,6 @@ export function KeyboardScrollView({ children, contentContainerStyle }: Keyboard
|
|
|
43
43
|
<KeyboardView>
|
|
44
44
|
<ScrollView
|
|
45
45
|
ref={scrollViewRef}
|
|
46
|
-
contentInsetAdjustmentBehavior="automatic"
|
|
47
46
|
contentContainerStyle={contentContainerStyle}
|
|
48
47
|
onLayout={scrollFocusedInputIntoView}
|
|
49
48
|
onContentSizeChange={scrollFocusedInputIntoView}
|
|
@@ -4,7 +4,6 @@ import { render } from '@testing-library/react-native'
|
|
|
4
4
|
import React from 'react'
|
|
5
5
|
import { buildTestQueryClient } from '../../../__utils__/query_client'
|
|
6
6
|
import { Log } from '../../../utils/native_adapters/configuration'
|
|
7
|
-
import { ResponseError } from '../../../utils/response_error'
|
|
8
7
|
import { PageErrorBoundary } from '../page_error_boundary'
|
|
9
8
|
|
|
10
9
|
jest.mock('../../primitive/blank_state_primitive', () => {
|
|
@@ -75,36 +74,4 @@ describe('PageErrorBoundary', () => {
|
|
|
75
74
|
expect(getByText('Oops!')).toBeTruthy()
|
|
76
75
|
expect(getByText('Something unexpected happened.')).toBeTruthy()
|
|
77
76
|
})
|
|
78
|
-
|
|
79
|
-
describe('with a generic fallback override', () => {
|
|
80
|
-
const genericFallback = { heading: 'Nothing here', body: 'Come back later.' }
|
|
81
|
-
const responseError = (status: number) =>
|
|
82
|
-
new ResponseError({ status, statusText: 'x', errors: [] } as never)
|
|
83
|
-
|
|
84
|
-
it.each([
|
|
85
|
-
['a plain error', new Error('boom')],
|
|
86
|
-
['an unhandled status', responseError(500)],
|
|
87
|
-
])('replaces the Oops copy for %s', (_label, thrown) => {
|
|
88
|
-
const { getByText, queryByText } = renderWithProviders(
|
|
89
|
-
<PageErrorBoundary genericFallback={genericFallback}>
|
|
90
|
-
<Boom thrown={thrown} />
|
|
91
|
-
</PageErrorBoundary>
|
|
92
|
-
)
|
|
93
|
-
|
|
94
|
-
expect(getByText('Nothing here')).toBeTruthy()
|
|
95
|
-
expect(getByText('Come back later.')).toBeTruthy()
|
|
96
|
-
expect(queryByText('Oops!')).toBeNull()
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
it('leaves a known status alone', () => {
|
|
100
|
-
const { getByText, queryByText } = renderWithProviders(
|
|
101
|
-
<PageErrorBoundary genericFallback={genericFallback}>
|
|
102
|
-
<Boom thrown={responseError(403)} />
|
|
103
|
-
</PageErrorBoundary>
|
|
104
|
-
)
|
|
105
|
-
|
|
106
|
-
expect(getByText('Permission required')).toBeTruthy()
|
|
107
|
-
expect(queryByText('Nothing here')).toBeNull()
|
|
108
|
-
})
|
|
109
|
-
})
|
|
110
77
|
})
|