@planningcenter/chat-react-native 4.5.1-qa-1061.0 → 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/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/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/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/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/conversations.tsx +0 -1
- 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/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/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 +7 -5
- package/src/screens/search/components/__tests__/search_results_list.test.tsx +2 -6
- 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/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 -15
- 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 -6
- 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 -33
- 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 -26
- 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_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/navigation/page_error_fallbacks.ts +0 -14
- package/src/screens/conversation_select_recipients/__tests__/conversation_select_direct_message_recipients_screen.test.tsx +0 -100
|
@@ -11,7 +11,7 @@ import { Spinner } from './spinner';
|
|
|
11
11
|
// =================================
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
export function Image(t0) {
|
|
14
|
-
const $ = _c(
|
|
14
|
+
const $ = _c(54);
|
|
15
15
|
let alt;
|
|
16
16
|
let loadingBackgroundStyles;
|
|
17
17
|
let props;
|
|
@@ -162,7 +162,6 @@ export function Image(t0) {
|
|
|
162
162
|
}
|
|
163
163
|
const handleOnError = t19;
|
|
164
164
|
const isLoading = isImageLoading || loading;
|
|
165
|
-
const ImageComponent = animatedImageStyle ? Animated.Image : ReactNativeImage;
|
|
166
165
|
const t20 = Boolean(alt);
|
|
167
166
|
let t21;
|
|
168
167
|
if ($[30] !== isLoading) {
|
|
@@ -175,75 +174,73 @@ export function Image(t0) {
|
|
|
175
174
|
t21 = $[31];
|
|
176
175
|
}
|
|
177
176
|
let t22;
|
|
178
|
-
if ($[32] !==
|
|
179
|
-
t22 =
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
let t24;
|
|
189
|
-
if ($[36] !== ImageComponent || $[37] !== handleOnLoad || $[38] !== props || $[39] !== source || $[40] !== t22 || $[41] !== t23) {
|
|
190
|
-
t24 = /*#__PURE__*/_jsx(ImageComponent, {
|
|
191
|
-
style: t22,
|
|
177
|
+
if ($[32] !== alt || $[33] !== animatedImageStyle || $[34] !== handleOnLoad || $[35] !== imageStyles || $[36] !== isLoading || $[37] !== props || $[38] !== source || $[39] !== styles.image) {
|
|
178
|
+
t22 = animatedImageStyle ? /*#__PURE__*/_jsx(Animated.Image, {
|
|
179
|
+
style: [styles.image, imageStyles, animatedImageStyle],
|
|
180
|
+
onLoad: handleOnLoad,
|
|
181
|
+
onError: handleOnError,
|
|
182
|
+
source: source,
|
|
183
|
+
alt: isLoading ? "" : alt,
|
|
184
|
+
...props
|
|
185
|
+
}) : /*#__PURE__*/_jsx(ReactNativeImage, {
|
|
186
|
+
style: [styles.image, imageStyles],
|
|
192
187
|
onLoad: handleOnLoad,
|
|
193
188
|
onError: handleOnError,
|
|
194
189
|
source: source,
|
|
195
|
-
alt:
|
|
190
|
+
alt: isLoading ? "" : alt,
|
|
196
191
|
...props
|
|
197
192
|
});
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
193
|
+
$[32] = alt;
|
|
194
|
+
$[33] = animatedImageStyle;
|
|
195
|
+
$[34] = handleOnLoad;
|
|
196
|
+
$[35] = imageStyles;
|
|
197
|
+
$[36] = isLoading;
|
|
198
|
+
$[37] = props;
|
|
199
|
+
$[38] = source;
|
|
200
|
+
$[39] = styles.image;
|
|
202
201
|
$[40] = t22;
|
|
203
|
-
$[41] = t23;
|
|
204
|
-
$[42] = t24;
|
|
205
202
|
} else {
|
|
206
|
-
|
|
203
|
+
t22 = $[40];
|
|
207
204
|
}
|
|
208
|
-
let
|
|
209
|
-
if ($[
|
|
210
|
-
|
|
205
|
+
let t23;
|
|
206
|
+
if ($[41] !== hideLoader || $[42] !== isLoading || $[43] !== loaderSize || $[44] !== loadingBackgroundStyles || $[45] !== styles.loadingBackground || $[46] !== styles.spinner) {
|
|
207
|
+
t23 = !hideLoader && isLoading && /*#__PURE__*/_jsx(View, {
|
|
211
208
|
style: [styles.loadingBackground, loadingBackgroundStyles],
|
|
212
209
|
children: /*#__PURE__*/_jsx(Spinner, {
|
|
213
210
|
size: loaderSize,
|
|
214
211
|
style: styles.spinner
|
|
215
212
|
})
|
|
216
213
|
});
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
214
|
+
$[41] = hideLoader;
|
|
215
|
+
$[42] = isLoading;
|
|
216
|
+
$[43] = loaderSize;
|
|
217
|
+
$[44] = loadingBackgroundStyles;
|
|
218
|
+
$[45] = styles.loadingBackground;
|
|
219
|
+
$[46] = styles.spinner;
|
|
220
|
+
$[47] = t23;
|
|
224
221
|
} else {
|
|
225
|
-
|
|
222
|
+
t23 = $[47];
|
|
226
223
|
}
|
|
227
|
-
let
|
|
228
|
-
if ($[
|
|
229
|
-
|
|
224
|
+
let t24;
|
|
225
|
+
if ($[48] !== t20 || $[49] !== t21 || $[50] !== t22 || $[51] !== t23 || $[52] !== wrapperStyle) {
|
|
226
|
+
t24 = /*#__PURE__*/_jsxs(View, {
|
|
230
227
|
style: wrapperStyle,
|
|
231
228
|
accessible: t20,
|
|
232
229
|
accessibilityRole: "image",
|
|
233
230
|
accessibilityState: t21,
|
|
234
231
|
collapsable: false,
|
|
235
|
-
children: [
|
|
232
|
+
children: [t22, t23]
|
|
236
233
|
});
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
234
|
+
$[48] = t20;
|
|
235
|
+
$[49] = t21;
|
|
236
|
+
$[50] = t22;
|
|
237
|
+
$[51] = t23;
|
|
238
|
+
$[52] = wrapperStyle;
|
|
239
|
+
$[53] = t24;
|
|
243
240
|
} else {
|
|
244
|
-
|
|
241
|
+
t24 = $[53];
|
|
245
242
|
}
|
|
246
|
-
return
|
|
243
|
+
return t24;
|
|
247
244
|
}
|
|
248
245
|
|
|
249
246
|
// =================================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","names":["noop","React","useState","Image","ReactNativeImage","StyleSheet","View","Animated","useTheme","Spinner","jsx","_jsx","jsxs","_jsxs","t0","$","_c","alt","loadingBackgroundStyles","props","source","t1","t2","t3","t4","t5","t6","t7","t8","onLoad","defaultLoading","loading","hideLoader","loaderSize","style","wrapperStyle","animatedImageStyle","undefined","t9","t10","t11","isImageLoading","setIsImageLoading","t12","flatten","imageStyles","t13","width","t14","height","t15","borderRadius","t16","t17","styles","useStyles","t18","event","handleOnLoad","t19","Symbol","for","handleOnError","isLoading","ImageComponent","t20","Boolean","t21","busy","t22","image","t23","t24","t25","loadingBackground","spinner","children","t26","accessible","accessibilityRole","accessibilityState","collapsable","colors","fillColorNeutral070","create","position","top","left","backgroundColor","justifyContent","alignItems"],"sources":["../../../src/components/display/image.tsx"],"sourcesContent":["import { noop } from 'lodash'\nimport React, { useState } from 'react'\nimport {\n AnimatableNumericValue,\n DimensionValue,\n ImageStyle,\n Image as ReactNativeImage,\n ImageProps as ReactNativeImageProps,\n StyleSheet,\n View,\n ViewStyle,\n} from 'react-native'\nimport Animated, { AnimatedStyle } from 'react-native-reanimated'\nimport { useTheme } from '../../hooks'\nimport { Spinner } from './spinner'\n\n// =================================\n// ====== Component ================\n// =================================\n\nexport interface ImageProps extends ReactNativeImageProps {\n /**\n * Describes the image to screen-readers and marks the image as `accessible`.\n * Passing an empty string will hide the image from screen-readers.\n */\n alt: string\n /**\n * Shows the image's loading spinner right away. Enabled by default.\n */\n defaultLoading?: boolean\n /**\n * Externally controls the loading state of the image.\n */\n loading?: boolean\n /**\n * Hide the loading spinner, regardless of the loading state.\n */\n hideLoader?: boolean\n /**\n * Size of the loading spinner.\n */\n loaderSize?: number\n /**\n * Style object for the preload background.\n */\n loadingBackgroundStyles?: ViewStyle\n /**\n * Style the outer View of the image.\n */\n wrapperStyle?: ViewStyle\n /**\n * Style the image if animated.\n */\n animatedImageStyle?: AnimatedStyle<ImageStyle>\n}\n\nexport function Image({\n source,\n onLoad = noop,\n defaultLoading = true,\n loading = false,\n hideLoader = false,\n loaderSize = 24,\n loadingBackgroundStyles,\n style = {},\n wrapperStyle = {},\n alt,\n animatedImageStyle = {},\n ...props\n}: ImageProps) {\n const [isImageLoading, setIsImageLoading] = useState(defaultLoading)\n\n const imageStyles = StyleSheet.flatten(style)\n const { width = '100%', height = '100%', borderRadius = 0 } = imageStyles || {}\n const styles = useStyles({ width, height, borderRadius })\n\n const handleOnLoad = (event: any) => {\n setIsImageLoading(false)\n onLoad?.(event)\n }\n\n const handleOnError = () => {\n setIsImageLoading(false)\n }\n\n const isLoading = isImageLoading || loading\n\n const ImageComponent = animatedImageStyle ? Animated.Image : ReactNativeImage\n\n return (\n <View\n style={wrapperStyle}\n accessible={Boolean(alt)}\n accessibilityRole=\"image\"\n accessibilityState={{ busy: isLoading }}\n collapsable={false}\n >\n <ImageComponent\n style={[styles.image, imageStyles, animatedImageStyle]}\n onLoad={handleOnLoad}\n onError={handleOnError}\n source={source}\n alt={isLoading ? '' : alt}\n {...props}\n />\n {!hideLoader && isLoading && (\n <View style={[styles.loadingBackground, loadingBackgroundStyles]}>\n <Spinner size={loaderSize} style={styles.spinner} />\n </View>\n )}\n </View>\n )\n}\n\n// =================================\n// ====== Styles ===================\n// =================================\n\ninterface Styles {\n width: DimensionValue\n height: DimensionValue\n borderRadius: AnimatableNumericValue | string\n}\n\nconst useStyles = ({ width, height, borderRadius }: Styles) => {\n const { colors } = useTheme()\n\n return StyleSheet.create({\n loadingBackground: {\n position: 'absolute',\n top: 0,\n left: 0,\n backgroundColor: colors.fillColorNeutral070,\n borderRadius,\n width,\n height,\n },\n image: {\n backgroundColor: colors.fillColorNeutral070,\n width,\n height,\n },\n spinner: {\n width: '100%',\n height: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n },\n })\n}\n"],"mappings":";AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAIEC,KAAK,IAAIC,gBAAgB,EAEzBC,UAAU,EACVC,IAAI,QAEC,cAAc;AACrB,OAAOC,QAAQ,MAAyB,yBAAyB;AACjE,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,OAAO,QAAQ,WAAW;;AAEnC;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAsCA,OAAO,SAAAV,MAAAW,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,GAAA;EAAA,IAAAC,uBAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,MAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAb,CAAA,QAAAD,EAAA;IAAe;MAAAM,MAAA;MAAAS,MAAA,EAAAR,EAAA;MAAAS,cAAA,EAAAR,EAAA;MAAAS,OAAA,EAAAR,EAAA;MAAAS,UAAA,EAAAR,EAAA;MAAAS,UAAA,EAAAR,EAAA;MAAAP,uBAAA;MAAAgB,KAAA,EAAAR,EAAA;MAAAS,YAAA,EAAAR,EAAA;MAAAV,GAAA;MAAAmB,kBAAA,EAAAR,EAAA;MAAA,GAAAT;IAAA,I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MAAAmE,MAAA,CAAAC,mBAAA;IAAApE,CAAA,MAAAkC,MAAA;IAAAlC,CAAA,MAAAgC,KAAA;IAAAhC,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAAA,OAtBKM,EAsBL;AAAA,CACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"image.js","names":["noop","React","useState","Image","ReactNativeImage","StyleSheet","View","Animated","useTheme","Spinner","jsx","_jsx","jsxs","_jsxs","t0","$","_c","alt","loadingBackgroundStyles","props","source","t1","t2","t3","t4","t5","t6","t7","t8","onLoad","defaultLoading","loading","hideLoader","loaderSize","style","wrapperStyle","animatedImageStyle","undefined","t9","t10","t11","isImageLoading","setIsImageLoading","t12","flatten","imageStyles","t13","width","t14","height","t15","borderRadius","t16","t17","styles","useStyles","t18","event","handleOnLoad","t19","Symbol","for","handleOnError","isLoading","t20","Boolean","t21","busy","t22","image","t23","loadingBackground","spinner","children","t24","accessible","accessibilityRole","accessibilityState","collapsable","colors","fillColorNeutral070","create","position","top","left","backgroundColor","justifyContent","alignItems"],"sources":["../../../src/components/display/image.tsx"],"sourcesContent":["import { noop } from 'lodash'\nimport React, { useState } from 'react'\nimport {\n AnimatableNumericValue,\n DimensionValue,\n ImageStyle,\n Image as ReactNativeImage,\n ImageProps as ReactNativeImageProps,\n StyleSheet,\n View,\n ViewStyle,\n} from 'react-native'\nimport Animated, { AnimatedStyle } from 'react-native-reanimated'\nimport { useTheme } from '../../hooks'\nimport { Spinner } from './spinner'\n\n// =================================\n// ====== Component ================\n// =================================\n\nexport interface ImageProps extends ReactNativeImageProps {\n /**\n * Describes the image to screen-readers and marks the image as `accessible`.\n * Passing an empty string will hide the image from screen-readers.\n */\n alt: string\n /**\n * Shows the image's loading spinner right away. Enabled by default.\n */\n defaultLoading?: boolean\n /**\n * Externally controls the loading state of the image.\n */\n loading?: boolean\n /**\n * Hide the loading spinner, regardless of the loading state.\n */\n hideLoader?: boolean\n /**\n * Size of the loading spinner.\n */\n loaderSize?: number\n /**\n * Style object for the preload background.\n */\n loadingBackgroundStyles?: ViewStyle\n /**\n * Style the outer View of the image.\n */\n wrapperStyle?: ViewStyle\n /**\n * Style the image if animated.\n */\n animatedImageStyle?: AnimatedStyle<ImageStyle>\n}\n\nexport function Image({\n source,\n onLoad = noop,\n defaultLoading = true,\n loading = false,\n hideLoader = false,\n loaderSize = 24,\n loadingBackgroundStyles,\n style = {},\n wrapperStyle = {},\n alt,\n animatedImageStyle = {},\n ...props\n}: ImageProps) {\n const [isImageLoading, setIsImageLoading] = useState(defaultLoading)\n\n const imageStyles = StyleSheet.flatten(style)\n const { width = '100%', height = '100%', borderRadius = 0 } = imageStyles || {}\n const styles = useStyles({ width, height, borderRadius })\n\n const handleOnLoad = (event: any) => {\n setIsImageLoading(false)\n onLoad?.(event)\n }\n\n const handleOnError = () => {\n setIsImageLoading(false)\n }\n\n const isLoading = isImageLoading || loading\n\n return (\n <View\n style={wrapperStyle}\n accessible={Boolean(alt)}\n accessibilityRole=\"image\"\n accessibilityState={{ busy: isLoading }}\n collapsable={false}\n >\n {animatedImageStyle ? (\n <Animated.Image\n style={[styles.image, imageStyles, animatedImageStyle]}\n onLoad={handleOnLoad}\n onError={handleOnError}\n source={source}\n alt={isLoading ? '' : alt}\n {...props}\n />\n ) : (\n <ReactNativeImage\n style={[styles.image, imageStyles]}\n onLoad={handleOnLoad}\n onError={handleOnError}\n source={source}\n alt={isLoading ? '' : alt}\n {...props}\n />\n )}\n {!hideLoader && isLoading && (\n <View style={[styles.loadingBackground, loadingBackgroundStyles]}>\n <Spinner size={loaderSize} style={styles.spinner} />\n </View>\n )}\n </View>\n )\n}\n\n// =================================\n// ====== Styles ===================\n// =================================\n\ninterface Styles {\n width: DimensionValue\n height: DimensionValue\n borderRadius: AnimatableNumericValue | string\n}\n\nconst useStyles = ({ width, height, borderRadius }: Styles) => {\n const { colors } = useTheme()\n\n return StyleSheet.create({\n loadingBackground: {\n position: 'absolute',\n top: 0,\n left: 0,\n backgroundColor: colors.fillColorNeutral070,\n borderRadius,\n width,\n height,\n },\n image: {\n backgroundColor: colors.fillColorNeutral070,\n width,\n height,\n },\n spinner: {\n width: '100%',\n height: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n },\n })\n}\n"],"mappings":";AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAIEC,KAAK,IAAIC,gBAAgB,EAEzBC,UAAU,EACVC,IAAI,QAEC,cAAc;AACrB,OAAOC,QAAQ,MAAyB,yBAAyB;AACjE,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,OAAO,QAAQ,WAAW;;AAEnC;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAsCA,OAAO,SAAAV,MAAAW,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,GAAA;EAAA,IAAAC,uBAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,MAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAb,CAAA,QAAAD,EAAA;IAAe;MAAAM,MAAA;MAAAS,MAAA,EAAAR,EAAA;MAAAS,cAAA,EAAAR,EAAA;MAAAS,OAAA,EAAAR,EAAA;MAAAS,UAAA,EAAAR,EAAA;MAAAS,UAAA,EAAAR,EAAA;MAAAP,uBAAA;MAAAgB,KAAA,EAAAR,EAAA;MAAAS,YAAA,EAAAR,EAAA;MAAAV,GAAA;MAAAmB,kBAAA,EAAAR,EAAA;MAAA,GAAAT;IAAA,IAAAL,EAaT;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,GAAA;IAAAF,CAAA,MAAAG,uBAAA;I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CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAAA,OAtBKM,EAsBL;AAAA,CACH","ignoreList":[]}
|
|
@@ -53,7 +53,6 @@ export function KeyboardScrollView(t0) {
|
|
|
53
53
|
t2 = /*#__PURE__*/_jsx(KeyboardView, {
|
|
54
54
|
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
55
55
|
ref: scrollViewRef,
|
|
56
|
-
contentInsetAdjustmentBehavior: "automatic",
|
|
57
56
|
contentContainerStyle: contentContainerStyle,
|
|
58
57
|
onLayout: scrollFocusedInputIntoView,
|
|
59
58
|
onContentSizeChange: scrollFocusedInputIntoView,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard_scroll_view.js","names":["React","useCallback","useRef","Keyboard","ScrollView","TextInput","KeyboardView","jsx","_jsx","FOCUSED_INPUT_BOTTOM_MARGIN","KeyboardScrollView","t0","$","_c","children","contentContainerStyle","scrollViewRef","t1","Symbol","for","scrollView","current","input","State","currentlyFocusedInput","nativeScrollView","getNativeScrollRef","innerView","getInnerViewRef","measureInWindow","_scrollX","scrollTop","_scrollWidth","scrollHeight","keyboardTop","metrics","screenY","scrollBottom","visibleBottom","undefined","Math","min","visibleHeight","_inputX","inputTop","_inputWidth","inputHeight","inputBottom","measureLayout","_left","contentTop","_contentWidth","contentHeight","scrollTo","y","animated","scrollFocusedInputIntoView","t2"
|
|
1
|
+
{"version":3,"file":"keyboard_scroll_view.js","names":["React","useCallback","useRef","Keyboard","ScrollView","TextInput","KeyboardView","jsx","_jsx","FOCUSED_INPUT_BOTTOM_MARGIN","KeyboardScrollView","t0","$","_c","children","contentContainerStyle","scrollViewRef","t1","Symbol","for","scrollView","current","input","State","currentlyFocusedInput","nativeScrollView","getNativeScrollRef","innerView","getInnerViewRef","measureInWindow","_scrollX","scrollTop","_scrollWidth","scrollHeight","keyboardTop","metrics","screenY","scrollBottom","visibleBottom","undefined","Math","min","visibleHeight","_inputX","inputTop","_inputWidth","inputHeight","inputBottom","measureLayout","_left","contentTop","_contentWidth","contentHeight","scrollTo","y","animated","scrollFocusedInputIntoView","t2"],"sources":["../../../src/components/display/keyboard_scroll_view.tsx"],"sourcesContent":["import React, { useCallback, useRef } from 'react'\nimport { Keyboard, ScrollView, ScrollViewProps, TextInput } from 'react-native'\nimport { KeyboardView } from './keyboard_view'\n\nconst FOCUSED_INPUT_BOTTOM_MARGIN = 32\n\ntype KeyboardScrollViewProps = Pick<ScrollViewProps, 'children' | 'contentContainerStyle'>\n\nexport function KeyboardScrollView({ children, contentContainerStyle }: KeyboardScrollViewProps) {\n const scrollViewRef = useRef<ScrollView>(null)\n\n const scrollFocusedInputIntoView = useCallback(() => {\n const scrollView = scrollViewRef.current\n const input = TextInput.State.currentlyFocusedInput()\n if (!scrollView || !input) return\n\n const nativeScrollView = scrollView.getNativeScrollRef()\n const innerView = scrollView.getInnerViewRef()\n if (!nativeScrollView || !innerView) return\n\n nativeScrollView.measureInWindow((_scrollX, scrollTop, _scrollWidth, scrollHeight) => {\n const keyboardTop = Keyboard.metrics()?.screenY\n const scrollBottom = scrollTop + scrollHeight\n const visibleBottom =\n keyboardTop === undefined ? scrollBottom : Math.min(scrollBottom, keyboardTop)\n const visibleHeight = visibleBottom - scrollTop\n\n input.measureInWindow((_inputX, inputTop, _inputWidth, inputHeight) => {\n const inputBottom = inputTop + inputHeight + FOCUSED_INPUT_BOTTOM_MARGIN\n if (inputBottom <= visibleBottom) return\n\n input.measureLayout(innerView, (_left, contentTop, _contentWidth, contentHeight) => {\n scrollView.scrollTo({\n y: contentTop + contentHeight + FOCUSED_INPUT_BOTTOM_MARGIN - visibleHeight,\n animated: true,\n })\n })\n })\n })\n }, [])\n\n return (\n <KeyboardView>\n <ScrollView\n ref={scrollViewRef}\n contentContainerStyle={contentContainerStyle}\n onLayout={scrollFocusedInputIntoView}\n onContentSizeChange={scrollFocusedInputIntoView}\n >\n {children}\n </ScrollView>\n </KeyboardView>\n )\n}\n"],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Aa,GAAGP,SAAS;QAE/CT,KAAK,CAAAO,eAAgB,CAAC,CAAAc,OAAA,EAAAC,QAAA,EAAAC,WAAA,EAAAC,WAAA;UACpB,MAAAC,WAAA,GAAoBH,QAAQ,GAAGE,WAAW,GAAGrC,2BAA2B;UACxE,IAAIsC,WAAW,IAAIT,aAAa;YAAA;UAAA;UAEhChB,KAAK,CAAA0B,aAAc,CAACrB,SAAS,EAAE,CAAAsB,KAAA,EAAAC,UAAA,EAAAC,aAAA,EAAAC,aAAA;YAC7BhC,UAAU,CAAAiC,QAAS,CAAC;cAAAC,CAAA,EACfJ,UAAU,GAAGE,aAAa,GAAG3C,2BAA2B,GAAGiC,aAAa;cAAAa,QAAA,EACjE;YACZ,CAAC,CAAC;UAAA,CACH,CAAC;QAAA,CACH,CAAC;MAAA,CACH,CAAC;IAAA,CACH;IAAA3C,CAAA,MAAAK,EAAA;EAAA;IAAAA,EAAA,GAAAL,CAAA;EAAA;EA5BD,MAAA4C,0BAAA,GAAmCvC,EA4B7B;EAAA,IAAAwC,EAAA;EAAA,IAAA7C,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAG,qBAAA;IAGJ0C,EAAA,gBAAAjD,IAAA,CAACF,YAAY;MAAAQ,QAAA,eACXN,IAAA,CAACJ,UAAU;QACJY,GAAa,EAAbA,aAAa;QACKD,qBAAqB,EAArBA,qBAAqB;QAClCyC,QAA0B,EAA1BA,0BAA0B;QACfA,mBAA0B,EAA1BA,0BAA0B;QAAA1C,QAAA,EAE9CA;MAAQ,CACC;IAAC,CACD,CAAC;IAAAF,CAAA,MAAAE,QAAA;IAAAF,CAAA,MAAAG,qBAAA;IAAAH,CAAA,MAAA6C,EAAA;EAAA;IAAAA,EAAA,GAAA7C,CAAA;EAAA;EAAA,OATf6C,EASe;AAAA","ignoreList":[]}
|
|
@@ -7,67 +7,47 @@ import { ResponseError } from '../../utils/response_error';
|
|
|
7
7
|
import BlankState from '../primitive/blank_state_primitive';
|
|
8
8
|
import { ErrorBoundary } from './error_boundary';
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
10
|
+
const renderPageFallback = (error, reset) => /*#__PURE__*/_jsx(ErrorView, {
|
|
11
|
+
error: error,
|
|
12
|
+
reset: reset
|
|
13
|
+
});
|
|
14
14
|
export function PageErrorBoundary(t0) {
|
|
15
|
-
const $ = _c(
|
|
15
|
+
const $ = _c(6);
|
|
16
16
|
let children;
|
|
17
17
|
let props;
|
|
18
|
-
let t1;
|
|
19
18
|
if ($[0] !== t0) {
|
|
20
19
|
({
|
|
21
20
|
children,
|
|
22
|
-
genericFallback: t1,
|
|
23
21
|
...props
|
|
24
22
|
} = t0);
|
|
25
23
|
$[0] = t0;
|
|
26
24
|
$[1] = children;
|
|
27
25
|
$[2] = props;
|
|
28
|
-
$[3] = t1;
|
|
29
26
|
} else {
|
|
30
27
|
children = $[1];
|
|
31
28
|
props = $[2];
|
|
32
|
-
t1 = $[3];
|
|
33
|
-
}
|
|
34
|
-
const genericFallback = t1 === undefined ? GENERIC_FALLBACK : t1;
|
|
35
|
-
let t2;
|
|
36
|
-
if ($[4] !== genericFallback) {
|
|
37
|
-
t2 = (error, reset) => /*#__PURE__*/_jsx(ErrorView, {
|
|
38
|
-
error: error,
|
|
39
|
-
reset: reset,
|
|
40
|
-
generic: genericFallback
|
|
41
|
-
});
|
|
42
|
-
$[4] = genericFallback;
|
|
43
|
-
$[5] = t2;
|
|
44
|
-
} else {
|
|
45
|
-
t2 = $[5];
|
|
46
29
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
t3 = /*#__PURE__*/_jsx(ErrorBoundary, {
|
|
30
|
+
let t1;
|
|
31
|
+
if ($[3] !== children || $[4] !== props) {
|
|
32
|
+
t1 = /*#__PURE__*/_jsx(ErrorBoundary, {
|
|
51
33
|
scope: "screen",
|
|
52
34
|
fallback: renderPageFallback,
|
|
53
35
|
...props,
|
|
54
36
|
children: children
|
|
55
37
|
});
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[9] = t3;
|
|
38
|
+
$[3] = children;
|
|
39
|
+
$[4] = props;
|
|
40
|
+
$[5] = t1;
|
|
60
41
|
} else {
|
|
61
|
-
|
|
42
|
+
t1 = $[5];
|
|
62
43
|
}
|
|
63
|
-
return
|
|
44
|
+
return t1;
|
|
64
45
|
}
|
|
65
46
|
function ErrorView(t0) {
|
|
66
|
-
const $ = _c(
|
|
47
|
+
const $ = _c(11);
|
|
67
48
|
const {
|
|
68
49
|
error,
|
|
69
|
-
reset
|
|
70
|
-
generic
|
|
50
|
+
reset
|
|
71
51
|
} = t0;
|
|
72
52
|
const {
|
|
73
53
|
reset: resetQueries
|
|
@@ -100,45 +80,41 @@ function ErrorView(t0) {
|
|
|
100
80
|
useEffect(t2, t3);
|
|
101
81
|
if (error instanceof ResponseError) {
|
|
102
82
|
let t4;
|
|
103
|
-
if ($[6] !== error.response || $[7] !==
|
|
83
|
+
if ($[6] !== error.response || $[7] !== handleReset) {
|
|
104
84
|
t4 = /*#__PURE__*/_jsx(ResponseErrorView, {
|
|
105
85
|
response: error.response,
|
|
106
|
-
onReset: handleReset
|
|
107
|
-
generic: generic
|
|
86
|
+
onReset: handleReset
|
|
108
87
|
});
|
|
109
88
|
$[6] = error.response;
|
|
110
|
-
$[7] =
|
|
111
|
-
$[8] =
|
|
112
|
-
$[9] = t4;
|
|
89
|
+
$[7] = handleReset;
|
|
90
|
+
$[8] = t4;
|
|
113
91
|
} else {
|
|
114
|
-
t4 = $[
|
|
92
|
+
t4 = $[8];
|
|
115
93
|
}
|
|
116
94
|
return t4;
|
|
117
95
|
}
|
|
118
96
|
if (isNetworkError(error)) {
|
|
119
97
|
let t4;
|
|
120
|
-
if ($[
|
|
98
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
121
99
|
t4 = /*#__PURE__*/_jsx(ErrorContent, {
|
|
122
100
|
heading: "Problem connecting!",
|
|
123
101
|
body: "Check your internet connection and try again."
|
|
124
102
|
});
|
|
125
|
-
$[
|
|
103
|
+
$[9] = t4;
|
|
126
104
|
} else {
|
|
127
|
-
t4 = $[
|
|
105
|
+
t4 = $[9];
|
|
128
106
|
}
|
|
129
107
|
return t4;
|
|
130
108
|
}
|
|
131
109
|
let t4;
|
|
132
|
-
if ($[
|
|
110
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
133
111
|
t4 = /*#__PURE__*/_jsx(ErrorContent, {
|
|
134
|
-
heading:
|
|
135
|
-
body:
|
|
112
|
+
heading: "Oops!",
|
|
113
|
+
body: "Something unexpected happened."
|
|
136
114
|
});
|
|
137
|
-
$[
|
|
138
|
-
$[12] = generic.heading;
|
|
139
|
-
$[13] = t4;
|
|
115
|
+
$[10] = t4;
|
|
140
116
|
} else {
|
|
141
|
-
t4 = $[
|
|
117
|
+
t4 = $[10];
|
|
142
118
|
}
|
|
143
119
|
return t4;
|
|
144
120
|
}
|
|
@@ -150,8 +126,7 @@ function ResponseErrorView(t0) {
|
|
|
150
126
|
const $ = _c(10);
|
|
151
127
|
const {
|
|
152
128
|
response,
|
|
153
|
-
onReset
|
|
154
|
-
generic
|
|
129
|
+
onReset
|
|
155
130
|
} = t0;
|
|
156
131
|
const {
|
|
157
132
|
status
|
|
@@ -170,7 +145,7 @@ function ResponseErrorView(t0) {
|
|
|
170
145
|
}
|
|
171
146
|
default:
|
|
172
147
|
{
|
|
173
|
-
t1 =
|
|
148
|
+
t1 = "Oops!";
|
|
174
149
|
}
|
|
175
150
|
}
|
|
176
151
|
const heading = t1;
|
|
@@ -188,7 +163,7 @@ function ResponseErrorView(t0) {
|
|
|
188
163
|
}
|
|
189
164
|
default:
|
|
190
165
|
{
|
|
191
|
-
t2 =
|
|
166
|
+
t2 = "Something unexpected happened.";
|
|
192
167
|
}
|
|
193
168
|
}
|
|
194
169
|
const body = t2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page_error_boundary.js","names":["useNavigation","useQueryErrorResetBoundary","React","useCallback","useEffect","useMemo","useRef","useState","onAuthRefresh","ResponseError","BlankState","ErrorBoundary","jsx","_jsx","jsxs","_jsxs","GENERIC_FALLBACK","heading","body","PageErrorBoundary","t0","$","_c","children","props","t1","genericFallback","undefined","t2","error","reset","ErrorView","renderPageFallback","t3","scope","generic","resetQueries","handleReset","t4","response","ResponseErrorView","isNetworkError","Symbol","for","ErrorContent","networkFailedMessages","RegExp","join","test","message","onReset","status","bb0","bb1","t5","RateLimitedView","RATE_LIMIT_WINDOW_S","retryAfterS","parseInt","headers","get","String","readyAt","Date","now","current","setNow","id","setInterval","prev","clearInterval","navigation","secondsLeft","Math","max","ceil","Root","Imagery","name","Content","Heading","Text","Button","title","disabled","onPress","size","accessibilityRole","TextButton","goBack","t6","navigate","t7"],"sources":["../../../src/components/page/page_error_boundary.tsx"],"sourcesContent":["import { useNavigation } from '@react-navigation/native'\nimport { useQueryErrorResetBoundary } from '@tanstack/react-query'\nimport React, { PropsWithChildren, useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport { onAuthRefresh } from '../../utils/auth_events'\nimport { ResponseError } from '../../utils/response_error'\nimport BlankState from '../primitive/blank_state_primitive'\nimport { ErrorBoundary, ErrorBoundaryFallback, ErrorBoundaryProps } from './error_boundary'\n\nexport type PageErrorFallback = { heading: string; body: string }\n\nconst GENERIC_FALLBACK: PageErrorFallback = {\n heading: 'Oops!',\n body: 'Something unexpected happened.',\n}\n\ntype PageErrorBoundaryProps = PropsWithChildren<\n ErrorBoundaryProps & { genericFallback?: PageErrorFallback }\n>\n\nexport function PageErrorBoundary({\n children,\n genericFallback = GENERIC_FALLBACK,\n ...props\n}: PageErrorBoundaryProps) {\n const renderPageFallback: ErrorBoundaryFallback = (error, reset) => (\n <ErrorView error={error} reset={reset} generic={genericFallback} />\n )\n\n return (\n <ErrorBoundary scope=\"screen\" fallback={renderPageFallback} {...props}>\n {children}\n </ErrorBoundary>\n )\n}\n\nfunction ErrorView({\n error,\n reset,\n generic,\n}: {\n error: Error\n reset: () => void\n generic: PageErrorFallback\n}) {\n const { reset: resetQueries } = useQueryErrorResetBoundary()\n\n const handleReset = useCallback(() => {\n resetQueries()\n reset()\n }, [resetQueries, reset])\n\n useEffect(() => handleReset, [handleReset])\n\n if (error instanceof ResponseError) {\n return <ResponseErrorView response={error.response} onReset={handleReset} generic={generic} />\n }\n\n if (isNetworkError(error)) {\n return (\n <ErrorContent\n heading={'Problem connecting!'}\n body={'Check your internet connection and try again.'}\n />\n )\n }\n\n return <ErrorContent heading={generic.heading} body={generic.body} />\n}\n\nfunction isNetworkError(error: Error) {\n const networkFailedMessages = [\n 'Network request failed',\n 'Network request timed out',\n 'Failed to fetch',\n ]\n\n return new RegExp(networkFailedMessages.join('|'), 'i').test(error.message)\n}\n\nfunction ResponseErrorView({\n response,\n onReset,\n generic,\n}: {\n response: Response\n onReset: () => void\n generic: PageErrorFallback\n}) {\n const { status } = response\n\n const heading = useMemo(() => {\n switch (status) {\n case 403:\n return 'Permission required'\n case 404:\n return 'Content not found'\n default:\n return generic.heading\n }\n }, [status, generic.heading])\n\n const body = useMemo(() => {\n switch (status) {\n case 403:\n return 'Contact your administrator for access.'\n case 404:\n return 'If you believe something should be here, please reach out to your administrator.'\n default:\n return generic.body\n }\n }, [status, generic.body])\n\n useEffect(() => {\n if (status !== 401) return\n\n return onAuthRefresh(onReset)\n }, [status, onReset])\n\n if (status === 429) {\n return <RateLimitedView response={response} onReset={onReset} />\n }\n\n return <ErrorContent heading={heading} body={body} />\n}\n\nconst RATE_LIMIT_WINDOW_S = 20\n\nfunction RateLimitedView({ response, onReset }: { response: Response; onReset: () => void }) {\n const retryAfterS = parseInt(\n response.headers?.get('Retry-After') ?? String(RATE_LIMIT_WINDOW_S),\n 10\n )\n const readyAt = useRef(Date.now() + retryAfterS * 1000).current\n const [now, setNow] = useState(Date.now)\n\n useEffect(() => {\n const id = setInterval(() => {\n setNow(prev => (prev >= readyAt ? prev : Date.now()))\n }, 1000)\n return () => clearInterval(id)\n }, [readyAt])\n\n const navigation = useNavigation()\n const secondsLeft = Math.max(0, Math.ceil((readyAt - now) / 1000))\n\n return (\n <BlankState.Root>\n <BlankState.Imagery name=\"people.noTextMessage\" />\n <BlankState.Content>\n <BlankState.Heading>Too many requests</BlankState.Heading>\n <BlankState.Text>\n Chat is being accessed too frequently. Please wait a moment.\n </BlankState.Text>\n </BlankState.Content>\n <BlankState.Button\n title={secondsLeft > 0 ? `Retry in ${secondsLeft}s` : 'Try again'}\n disabled={secondsLeft > 0}\n onPress={onReset}\n size=\"md\"\n accessibilityRole=\"button\"\n />\n <BlankState.TextButton onPress={navigation.goBack}>Go back</BlankState.TextButton>\n </BlankState.Root>\n )\n}\n\nfunction ErrorContent({ heading, body }: { heading: string; body: string }) {\n const navigation = useNavigation()\n\n return (\n <BlankState.Root>\n <BlankState.Imagery name=\"people.noTextMessage\" />\n <BlankState.Content>\n <BlankState.Heading>{heading}</BlankState.Heading>\n <BlankState.Text>{body}</BlankState.Text>\n </BlankState.Content>\n <BlankState.Button\n title=\"Go back\"\n onPress={navigation.goBack}\n size=\"md\"\n accessibilityRole=\"link\"\n />\n <BlankState.TextButton onPress={() => navigation.navigate('BugReport')}>\n Report a bug\n </BlankState.TextButton>\n </BlankState.Root>\n )\n}\n"],"mappings":";AAAA,SAASA,aAAa,QAAQ,0BAA0B;AACxD,SAASC,0BAA0B,QAAQ,uBAAuB;AAClE,OAAOC,KAAK,IAAuBC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACnG,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,OAAOC,UAAU,MAAM,oCAAoC;AAC3D,SAASC,aAAa,QAAmD,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC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ation","useQueryErrorResetBoundary","React","useCallback","useEffect","useMemo","useRef","useState","onAuthRefresh","ResponseError","BlankState","ErrorBoundary","jsx","_jsx","jsxs","_jsxs","renderPageFallback","error","reset","ErrorView","PageErrorBoundary","t0","$","_c","children","props","t1","scope","resetQueries","handleReset","t2","t3","t4","response","ResponseErrorView","isNetworkError","Symbol","for","ErrorContent","heading","body","networkFailedMessages","RegExp","join","test","message","onReset","status","bb0","bb1","t5","RateLimitedView","RATE_LIMIT_WINDOW_S","retryAfterS","parseInt","headers","get","String","readyAt","Date","now","current","setNow","id","setInterval","prev","clearInterval","navigation","secondsLeft","Math","max","ceil","Root","Imagery","name","Content","Heading","Text","Button","title","disabled","onPress","size","accessibilityRole","TextButton","goBack","t6","navigate","t7"],"sources":["../../../src/components/page/page_error_boundary.tsx"],"sourcesContent":["import { useNavigation } from '@react-navigation/native'\nimport { useQueryErrorResetBoundary } from '@tanstack/react-query'\nimport React, { PropsWithChildren, useCallback, useEffect, useMemo, useRef, useState } from 'react'\nimport { onAuthRefresh } from '../../utils/auth_events'\nimport { ResponseError } from '../../utils/response_error'\nimport BlankState from '../primitive/blank_state_primitive'\nimport { ErrorBoundary, ErrorBoundaryFallback, ErrorBoundaryProps } from './error_boundary'\n\nconst renderPageFallback: ErrorBoundaryFallback = (error, reset) => (\n <ErrorView error={error} reset={reset} />\n)\n\nexport function PageErrorBoundary({ children, ...props }: PropsWithChildren<ErrorBoundaryProps>) {\n return (\n <ErrorBoundary scope=\"screen\" fallback={renderPageFallback} {...props}>\n {children}\n </ErrorBoundary>\n )\n}\n\nfunction ErrorView({ error, reset }: { error: Error; reset: () => void }) {\n const { reset: resetQueries } = useQueryErrorResetBoundary()\n\n const handleReset = useCallback(() => {\n resetQueries()\n reset()\n }, [resetQueries, reset])\n\n useEffect(() => handleReset, [handleReset])\n\n if (error instanceof ResponseError) {\n return <ResponseErrorView response={error.response} onReset={handleReset} />\n }\n\n if (isNetworkError(error)) {\n return (\n <ErrorContent\n heading={'Problem connecting!'}\n body={'Check your internet connection and try again.'}\n />\n )\n }\n\n return <ErrorContent heading={'Oops!'} body={'Something unexpected happened.'} />\n}\n\nfunction isNetworkError(error: Error) {\n const networkFailedMessages = [\n 'Network request failed',\n 'Network request timed out',\n 'Failed to fetch',\n ]\n\n return new RegExp(networkFailedMessages.join('|'), 'i').test(error.message)\n}\n\nfunction ResponseErrorView({ response, onReset }: { response: Response; onReset: () => void }) {\n const { status } = response\n\n const heading = useMemo(() => {\n switch (status) {\n case 403:\n return 'Permission required'\n case 404:\n return 'Content not found'\n default:\n return 'Oops!'\n }\n }, [status])\n\n const body = useMemo(() => {\n switch (status) {\n case 403:\n return 'Contact your administrator for access.'\n case 404:\n return 'If you believe something should be here, please reach out to your administrator.'\n default:\n return 'Something unexpected happened.'\n }\n }, [status])\n\n useEffect(() => {\n if (status !== 401) return\n\n return onAuthRefresh(onReset)\n }, [status, onReset])\n\n if (status === 429) {\n return <RateLimitedView response={response} onReset={onReset} />\n }\n\n return <ErrorContent heading={heading} body={body} />\n}\n\nconst RATE_LIMIT_WINDOW_S = 20\n\nfunction RateLimitedView({ response, onReset }: { response: Response; onReset: () => void }) {\n const retryAfterS = parseInt(\n response.headers?.get('Retry-After') ?? String(RATE_LIMIT_WINDOW_S),\n 10\n )\n const readyAt = useRef(Date.now() + retryAfterS * 1000).current\n const [now, setNow] = useState(Date.now)\n\n useEffect(() => {\n const id = setInterval(() => {\n setNow(prev => (prev >= readyAt ? prev : Date.now()))\n }, 1000)\n return () => clearInterval(id)\n }, [readyAt])\n\n const navigation = useNavigation()\n const secondsLeft = Math.max(0, Math.ceil((readyAt - now) / 1000))\n\n return (\n <BlankState.Root>\n <BlankState.Imagery name=\"people.noTextMessage\" />\n <BlankState.Content>\n <BlankState.Heading>Too many requests</BlankState.Heading>\n <BlankState.Text>\n Chat is being accessed too frequently. Please wait a moment.\n </BlankState.Text>\n </BlankState.Content>\n <BlankState.Button\n title={secondsLeft > 0 ? `Retry in ${secondsLeft}s` : 'Try again'}\n disabled={secondsLeft > 0}\n onPress={onReset}\n size=\"md\"\n accessibilityRole=\"button\"\n />\n <BlankState.TextButton onPress={navigation.goBack}>Go back</BlankState.TextButton>\n </BlankState.Root>\n )\n}\n\nfunction ErrorContent({ heading, body }: { heading: string; body: string }) {\n const navigation = useNavigation()\n\n return (\n <BlankState.Root>\n <BlankState.Imagery name=\"people.noTextMessage\" />\n <BlankState.Content>\n <BlankState.Heading>{heading}</BlankState.Heading>\n <BlankState.Text>{body}</BlankState.Text>\n </BlankState.Content>\n <BlankState.Button\n title=\"Go back\"\n onPress={navigation.goBack}\n size=\"md\"\n accessibilityRole=\"link\"\n />\n <BlankState.TextButton onPress={() => navigation.navigate('BugReport')}>\n Report a bug\n </BlankState.TextButton>\n </BlankState.Root>\n )\n}\n"],"mappings":";AAAA,SAASA,aAAa,QAAQ,0BAA0B;AACxD,SAASC,0BAA0B,QAAQ,uBAAuB;AAClE,OAAOC,KAAK,IAAuBC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACnG,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,OAAOC,UAAU,MAAM,oCAAoC;AAC3D,SAASC,aAAa,QAAmD,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE3F,MAAMC,kBAAyC,GAAGA,CAACC,KAAK,EAAEC,KAAK,kBAC7DL,IAAA,CAACM,SAAS;EAACF,KAAK,EAAEA,KAAM;EAACC,KAAK,EAAEA;AAAM,CAAE,CACzC;AAED,OAAO,SAAAE,kBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,KAAA;EAAA,IAAAH,CAAA,QAAAD,EAAA;IAA2B;MAAAG,QAAA;MAAA,GAAAC;IAAA,IAAAJ,EAA6D;IAAAC,CAAA,MAAAD,EAA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react/jsx-runtime";
|
|
|
39
39
|
const globalScreenOptions = () => ({
|
|
40
40
|
headerBackButtonDisplayMode: 'minimal',
|
|
41
41
|
...(isLiquidGlassEnabled() ? {
|
|
42
|
-
headerShadowVisible: false
|
|
43
|
-
headerTransparent: true,
|
|
44
|
-
headerBlurEffect: 'regular'
|
|
42
|
+
headerShadowVisible: false
|
|
45
43
|
} : {})
|
|
46
44
|
});
|
|
47
45
|
export const NewConversationStack = createNativeStackNavigator({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["createNativeStackNavigator","CardStyleInterpolators","React","composeOptions","withMinimalBack","withRightClose","withRightDone","useDirectMessagesEligible","useQualifiedByAge","AttachmentActionsScreen","AttachmentActionsScreenOptions","AvatarPickerScreen","AvatarPickerScreenOptions","AvatarPickerCreateScreenOptions","BugReportScreen","BugReportScreenOptions","MessageReadReceiptsScreen","MessageReadReceiptsScreenOptions","ConversationDetailsScreen","ConversationFilterReceipientsScreenOptions","ConversationFilterRecipientsScreen","ConversationFiltersScreen","ConversationFiltersScreenOptions","ConversationNewScreen","ConversationNotificationLevelSelectScreen","ConversationNotificationLevelSelectScreenOptions","ConversationScreen","ConversationScreenTitle","ConversationNewEntryScreen","ConversationSelectDirectMessageRecipientsScreen","ConversationSelectGroupRecipientsScreen","ConversationSelectTeamsILeadRecipientsScreen","ConversationSelectTypeScreen","ConversationSelectTypeScreenOptions","ConversationsScreen","GetHelpScreen","GroupNotificationLevelSelectScreen","GroupNotificationLevelSelectScreenOptions","GroupNotificationSettingsScreen","MessageActionsScreen","MessageActionsScreenOptions","MessageReportScreen","MessageReportScreenOptions","NotFound","NotificationSettingsScreen","PreferredAppSelectionScreen","ReactionsScreen","ReactionsScreenOptions","SearchScreen","SearchScreenOptions","SendGiphyScreen","SendGiphyScreenOptions","SettingsScreen","SystemMessagePeopleScreen","SystemMessagePeopleScreenOptions","TeamConversationScreen","isLiquidGlassEnabled","ScreenLayoutWithChatAccessGate","jsx","_jsx","globalScreenOptions","headerBackButtonDisplayMode","headerShadowVisible","headerTransparent","headerBlurEffect","NewConversationStack","initialRouteName","screenOptions","screenLayout","screens","ConversationNewEntry","screen","options","navigation","title","headerBackVisible","onPress","goBack","ConversationSelectGroupRecipients","route","popTo","params","ConversationSelectTeamsILeadRecipients","ConversationSelectDirectMessageRecipients","if","ConversationFilterRecipients","ConversationNew","headerLeft","chat_group_graph_id","group_source_app_name","AvatarPicker","ChatStack","Conversations","headerTitle","ConversationFilters","Search","Conversation","props","conversation_id","badge","deleted","muted","children","getParent","ConversationReply","TeamConversation","animation","cardStyleInterpolator","forNoAnimation","ConversationDetails","presentation","ChatSettings","NotificationSettings","getState","index","PreferredAppSelection","GroupNotificationSettings","GroupNotificationLevelSelect","ConversationNotificationLevelSelect","New","layout","headerShown","GroupConversationNew","SendGiphy","MessageActions","MessageReport","AttachmentActions","ConversationSelectType","Reactions","SystemMessagePeople","MessageReadReceipts","BugReport","GetHelp","linking","path"],"sources":["../../src/navigation/index.tsx"],"sourcesContent":["import { StaticParamList } from '@react-navigation/native'\nimport {\n createNativeStackNavigator,\n NativeStackHeaderRightProps,\n NativeStackNavigationOptions,\n} from '@react-navigation/native-stack'\nimport { CardStyleInterpolators } from '@react-navigation/stack'\nimport React from 'react'\nimport {\n composeOptions,\n withMinimalBack,\n withRightClose,\n withRightDone,\n} from '../components/display/platform_modal_header_buttons'\nimport { useDirectMessagesEligible, useQualifiedByAge } from '../hooks'\nimport {\n AttachmentActionsScreen,\n AttachmentActionsScreenOptions,\n} from '../screens/attachment_actions/attachment_actions_screen'\nimport {\n AvatarPickerScreen,\n AvatarPickerScreenOptions,\n AvatarPickerCreateScreenOptions,\n} from '../screens/avatar_picker/avatar_picker_screen'\nimport { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen'\nimport {\n MessageReadReceiptsScreen,\n MessageReadReceiptsScreenOptions,\n} from '../screens/conversation/message_read_receipts_screen'\nimport { ConversationDetailsScreen } from '../screens/conversation_details_screen'\nimport {\n ConversationFilterReceipientsScreenOptions,\n ConversationFilterRecipientsScreen,\n} from '../screens/conversation_filter_recipients/conversation_filter_recipients_screen'\nimport { ConversationFiltersParams } from '../screens/conversation_filters/screen_props'\nimport {\n ConversationFiltersScreen,\n ConversationFiltersScreenOptions,\n} from '../screens/conversation_filters_screen'\nimport { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen'\nimport {\n ConversationNotificationLevelSelectScreen,\n ConversationNotificationLevelSelectScreenOptions,\n} from '../screens/conversation_notification_level_select_screen'\nimport {\n ConversationRouteProps,\n ConversationScreen,\n ConversationScreenTitle,\n} from '../screens/conversation_screen'\nimport { ConversationNewEntryScreen } from '../screens/conversation_select_recipients/conversation_new_entry_screen'\nimport { ConversationSelectDirectMessageRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen'\nimport { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen'\nimport { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen'\nimport { ConversationSelectRecipientsParams } from '../screens/conversation_select_recipients/types/screen_props'\nimport {\n ConversationSelectTypeScreen,\n ConversationSelectTypeScreenOptions,\n} from '../screens/conversation_select_type_screen'\nimport { ConversationsScreen } from '../screens/conversations/conversations_screen'\nimport { GetHelpScreen } from '../screens/get_help_screen'\nimport {\n GroupNotificationLevelSelectScreen,\n GroupNotificationLevelSelectScreenOptions,\n} from '../screens/group_notification_level_select_screen'\nimport { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen'\nimport {\n MessageActionsScreen,\n MessageActionsScreenOptions,\n} from '../screens/message_actions_screen'\nimport { MessageReportScreen, MessageReportScreenOptions } from '../screens/message_report_screen'\nimport { NotFound } from '../screens/not_found'\nimport { NotificationSettingsScreen } from '../screens/notification_settings_screen'\nimport { PreferredAppSelectionScreen } from '../screens/preferred_app_selection_screen'\nimport { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen'\nimport { SearchScreen, SearchScreenOptions } from '../screens/search/search_screen'\nimport { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen'\nimport { SettingsScreen } from '../screens/settings_screen'\nimport {\n SystemMessagePeopleScreen,\n SystemMessagePeopleScreenOptions,\n} from '../screens/system_message_people_screen'\nimport { TeamConversationScreen } from '../screens/team_conversation_screen'\nimport { isLiquidGlassEnabled } from '../utils/liquid_glass'\nimport { ScreenLayoutWithChatAccessGate } from './screenLayout'\n\nconst globalScreenOptions: () => NativeStackNavigationOptions = () => ({\n headerBackButtonDisplayMode: 'minimal',\n ...(isLiquidGlassEnabled()\n ? { headerShadowVisible: false, headerTransparent: true, headerBlurEffect: 'regular' }\n : {}),\n})\n\nexport const NewConversationStack = createNativeStackNavigator({\n initialRouteName: 'ConversationNewEntry',\n screenOptions: globalScreenOptions,\n screenLayout: ScreenLayoutWithChatAccessGate,\n screens: {\n ConversationNewEntry: {\n screen: ConversationNewEntryScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationSelectGroupRecipients: {\n screen: ConversationSelectGroupRecipientsScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n },\n withRightClose({\n onPress: () => navigation.popTo('Conversations', route.params),\n })\n ),\n },\n ConversationSelectTeamsILeadRecipients: {\n screen: ConversationSelectTeamsILeadRecipientsScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n },\n withRightClose({\n onPress: () => navigation.popTo('Conversations', route.params),\n })\n ),\n },\n ConversationSelectDirectMessageRecipients: {\n screen: ConversationSelectDirectMessageRecipientsScreen,\n if: useDirectMessagesEligible,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationFilterRecipients: {\n screen: ConversationFilterRecipientsScreen,\n options: ConversationFilterReceipientsScreenOptions,\n },\n ConversationNew: {\n screen: ConversationNewScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerLeft: () => null,\n },\n withRightClose({\n onPress: () => {\n const { chat_group_graph_id, group_source_app_name } =\n route.params as ConversationSelectRecipientsParams\n navigation.popTo('Conversations', { chat_group_graph_id, group_source_app_name })\n },\n })\n ),\n },\n AvatarPicker: {\n screen: AvatarPickerScreen,\n options: AvatarPickerCreateScreenOptions,\n },\n },\n})\n\nexport const ChatStack = createNativeStackNavigator({\n screenOptions: globalScreenOptions,\n screenLayout: ScreenLayoutWithChatAccessGate,\n screens: {\n Conversations: {\n screen: ConversationsScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n headerTitle: (route.params as { title?: string })?.title ?? 'Chat',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationFilters: {\n screen: ConversationFiltersScreen,\n options: ConversationFiltersScreenOptions,\n },\n Search: {\n screen: SearchScreen,\n options: SearchScreenOptions,\n },\n Conversation: {\n screen: ConversationScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n headerTitle: (props: NativeStackHeaderRightProps) => {\n const { conversation_id, title, badge, deleted, muted } =\n route.params as ConversationRouteProps\n\n return (\n <ConversationScreenTitle\n conversation_id={conversation_id}\n badge={badge}\n deleted={deleted}\n muted={muted}\n {...props}\n >\n {title ?? 'Conversation'}\n </ConversationScreenTitle>\n )\n },\n },\n withMinimalBack({\n onPress: () => {\n const params = route.params as ConversationRouteProps\n if ((params as ConversationFiltersParams)?.chat_group_graph_id) {\n // Ensure that conversations with a graph id pass them back to the conversation list\n const { chat_group_graph_id } = params\n navigation.popTo('Conversations', { chat_group_graph_id })\n } else {\n navigation.goBack()\n }\n },\n }),\n withRightClose({ onPress: () => navigation.getParent()?.goBack() })\n ),\n },\n ConversationReply: {\n screen: ConversationScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n title: (route.params as ConversationRouteProps)?.title ?? 'Reply',\n },\n withMinimalBack({ onPress: navigation.goBack })\n ),\n },\n TeamConversation: {\n screen: TeamConversationScreen,\n if: useQualifiedByAge,\n options: {\n title: 'Finding conversation...',\n animation: 'none',\n cardStyleInterpolator: CardStyleInterpolators.forNoAnimation,\n },\n },\n ConversationDetails: {\n screen: ConversationDetailsScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n presentation: 'modal',\n title: 'Conversation details',\n },\n withRightDone({ onPress: navigation.goBack })\n ),\n },\n AvatarPicker: {\n screen: AvatarPickerScreen,\n options: AvatarPickerScreenOptions,\n },\n ChatSettings: {\n screen: SettingsScreen,\n options: ({ navigation }) =>\n composeOptions({ title: 'Chat settings' }, withMinimalBack({ onPress: navigation.goBack })),\n },\n NotificationSettings: {\n screen: NotificationSettingsScreen,\n options: ({ navigation }) =>\n navigation.getState().index === 0\n ? composeOptions(\n { title: 'Chat notifications' },\n withRightClose({ onPress: navigation.goBack })\n )\n : composeOptions(\n { title: 'Chat notifications' },\n withMinimalBack({ onPress: navigation.goBack })\n ),\n },\n PreferredAppSelection: {\n screen: PreferredAppSelectionScreen,\n options: ({ navigation }) =>\n composeOptions({ title: 'Preferred app' }, withMinimalBack({ onPress: navigation.goBack })),\n },\n GroupNotificationSettings: {\n screen: GroupNotificationSettingsScreen,\n options: ({ route, navigation }) => {\n const title = (route.params as { title?: string })?.title || 'Group Settings'\n\n // The dismiss button only shows when this is the entry screen (e.g.\n // deep links); deeper in the stack the back button covers dismissal.\n return navigation.getState().index === 0\n ? composeOptions(\n {\n title,\n },\n withRightClose({ onPress: navigation.goBack })\n )\n : composeOptions({ title }, withMinimalBack({ onPress: navigation.goBack }))\n },\n },\n GroupNotificationLevelSelect: {\n screen: GroupNotificationLevelSelectScreen,\n options: GroupNotificationLevelSelectScreenOptions,\n },\n ConversationNotificationLevelSelect: {\n screen: ConversationNotificationLevelSelectScreen,\n options: ConversationNotificationLevelSelectScreenOptions,\n },\n New: {\n screen: NewConversationStack,\n if: useQualifiedByAge,\n layout: ({ children }) => children,\n options: {\n headerShown: false,\n presentation: 'modal',\n },\n },\n GroupConversationNew: {\n screen: ConversationNewScreen,\n if: useQualifiedByAge,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerLeft: () => null,\n },\n withRightClose({ onPress: () => navigation.getParent()?.goBack() })\n ),\n },\n SendGiphy: {\n screen: SendGiphyScreen,\n options: SendGiphyScreenOptions,\n },\n MessageActions: {\n screen: MessageActionsScreen,\n // Something about sheetAllowedDetents declared inline breaks TS\n options: MessageActionsScreenOptions,\n },\n MessageReport: {\n screen: MessageReportScreen,\n options: MessageReportScreenOptions,\n },\n AttachmentActions: {\n screen: AttachmentActionsScreen,\n options: AttachmentActionsScreenOptions,\n },\n ConversationSelectType: {\n screen: ConversationSelectTypeScreen,\n options: ConversationSelectTypeScreenOptions,\n },\n Reactions: {\n screen: ReactionsScreen,\n options: ReactionsScreenOptions,\n },\n SystemMessagePeople: {\n screen: SystemMessagePeopleScreen,\n options: SystemMessagePeopleScreenOptions,\n },\n MessageReadReceipts: {\n screen: MessageReadReceiptsScreen,\n options: MessageReadReceiptsScreenOptions,\n },\n BugReport: {\n screen: BugReportScreen,\n options: BugReportScreenOptions,\n },\n GetHelp: {\n screen: GetHelpScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n headerTitle: 'Get help',\n headerBackVisible: false,\n presentation: 'modal',\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n NotFound: {\n screen: NotFound,\n options: {\n title: '404',\n },\n linking: {\n path: '*',\n },\n },\n },\n})\n\ntype ChatStackParamList = StaticParamList<typeof ChatStack>\n\ndeclare global {\n namespace ReactNavigation {\n interface RootParamList extends ChatStackParamList {}\n }\n}\n"],"mappings":"AACA,SACEA,0BAA0B,QAGrB,gCAAgC;AACvC,SAASC,sBAAsB,QAAQ,yBAAyB;AAChE,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,cAAc,E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B;IACX,CAAC;IACDoF,iBAAiB,EAAE;MACjBvD,MAAM,EAAE9D,uBAAuB;MAC/B+D,OAAO,EAAE9D;IACX,CAAC;IACDqH,sBAAsB,EAAE;MACtBxD,MAAM,EAAEvC,4BAA4B;MACpCwC,OAAO,EAAEvC;IACX,CAAC;IACD+F,SAAS,EAAE;MACTzD,MAAM,EAAEzB,eAAe;MACvB0B,OAAO,EAAEzB;IACX,CAAC;IACDkF,mBAAmB,EAAE;MACnB1D,MAAM,EAAElB,yBAAyB;MACjCmB,OAAO,EAAElB;IACX,CAAC;IACD4E,mBAAmB,EAAE;MACnB3D,MAAM,EAAEvD,yBAAyB;MACjCwD,OAAO,EAAEvD;IACX,CAAC;IACDkH,SAAS,EAAE;MACT5D,MAAM,EAAEzD,eAAe;MACvB0D,OAAO,EAAEzD;IACX,CAAC;IACDqH,OAAO,EAAE;MACP7D,MAAM,EAAEpC,aAAa;MACrBqC,OAAO,EAAEA,CAAC;QAAEC;MAAW,CAAC,KACtBtE,cAAc,CACZ;QACE0F,WAAW,EAAE,UAAU;QACvBlB,iBAAiB,EAAE,KAAK;QACxBmC,YAAY,EAAE;MAChB,CAAC,EACDzG,cAAc,CAAC;QAAEuE,OAAO,EAAEH,UAAU,CAACI;MAAO,CAAC,CAC/C;IACJ,CAAC;IACDlC,QAAQ,EAAE;MACR4B,MAAM,EAAE5B,QAAQ;MAChB6B,OAAO,EAAE;QACPE,KAAK,EAAE;MACT,CAAC;MACD2D,OAAO,EAAE;QACPC,IAAI,EAAE;MACR;IACF;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["createNativeStackNavigator","CardStyleInterpolators","React","composeOptions","withMinimalBack","withRightClose","withRightDone","useDirectMessagesEligible","useQualifiedByAge","AttachmentActionsScreen","AttachmentActionsScreenOptions","AvatarPickerScreen","AvatarPickerScreenOptions","AvatarPickerCreateScreenOptions","BugReportScreen","BugReportScreenOptions","MessageReadReceiptsScreen","MessageReadReceiptsScreenOptions","ConversationDetailsScreen","ConversationFilterReceipientsScreenOptions","ConversationFilterRecipientsScreen","ConversationFiltersScreen","ConversationFiltersScreenOptions","ConversationNewScreen","ConversationNotificationLevelSelectScreen","ConversationNotificationLevelSelectScreenOptions","ConversationScreen","ConversationScreenTitle","ConversationNewEntryScreen","ConversationSelectDirectMessageRecipientsScreen","ConversationSelectGroupRecipientsScreen","ConversationSelectTeamsILeadRecipientsScreen","ConversationSelectTypeScreen","ConversationSelectTypeScreenOptions","ConversationsScreen","GetHelpScreen","GroupNotificationLevelSelectScreen","GroupNotificationLevelSelectScreenOptions","GroupNotificationSettingsScreen","MessageActionsScreen","MessageActionsScreenOptions","MessageReportScreen","MessageReportScreenOptions","NotFound","NotificationSettingsScreen","PreferredAppSelectionScreen","ReactionsScreen","ReactionsScreenOptions","SearchScreen","SearchScreenOptions","SendGiphyScreen","SendGiphyScreenOptions","SettingsScreen","SystemMessagePeopleScreen","SystemMessagePeopleScreenOptions","TeamConversationScreen","isLiquidGlassEnabled","ScreenLayoutWithChatAccessGate","jsx","_jsx","globalScreenOptions","headerBackButtonDisplayMode","headerShadowVisible","NewConversationStack","initialRouteName","screenOptions","screenLayout","screens","ConversationNewEntry","screen","options","navigation","title","headerBackVisible","onPress","goBack","ConversationSelectGroupRecipients","route","popTo","params","ConversationSelectTeamsILeadRecipients","ConversationSelectDirectMessageRecipients","if","ConversationFilterRecipients","ConversationNew","headerLeft","chat_group_graph_id","group_source_app_name","AvatarPicker","ChatStack","Conversations","headerTitle","ConversationFilters","Search","Conversation","props","conversation_id","badge","deleted","muted","children","getParent","ConversationReply","TeamConversation","animation","cardStyleInterpolator","forNoAnimation","ConversationDetails","presentation","ChatSettings","NotificationSettings","getState","index","PreferredAppSelection","GroupNotificationSettings","GroupNotificationLevelSelect","ConversationNotificationLevelSelect","New","layout","headerShown","GroupConversationNew","SendGiphy","MessageActions","MessageReport","AttachmentActions","ConversationSelectType","Reactions","SystemMessagePeople","MessageReadReceipts","BugReport","GetHelp","linking","path"],"sources":["../../src/navigation/index.tsx"],"sourcesContent":["import { StaticParamList } from '@react-navigation/native'\nimport {\n createNativeStackNavigator,\n NativeStackHeaderRightProps,\n NativeStackNavigationOptions,\n} from '@react-navigation/native-stack'\nimport { CardStyleInterpolators } from '@react-navigation/stack'\nimport React from 'react'\nimport {\n composeOptions,\n withMinimalBack,\n withRightClose,\n withRightDone,\n} from '../components/display/platform_modal_header_buttons'\nimport { useDirectMessagesEligible, useQualifiedByAge } from '../hooks'\nimport {\n AttachmentActionsScreen,\n AttachmentActionsScreenOptions,\n} from '../screens/attachment_actions/attachment_actions_screen'\nimport {\n AvatarPickerScreen,\n AvatarPickerScreenOptions,\n AvatarPickerCreateScreenOptions,\n} from '../screens/avatar_picker/avatar_picker_screen'\nimport { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen'\nimport {\n MessageReadReceiptsScreen,\n MessageReadReceiptsScreenOptions,\n} from '../screens/conversation/message_read_receipts_screen'\nimport { ConversationDetailsScreen } from '../screens/conversation_details_screen'\nimport {\n ConversationFilterReceipientsScreenOptions,\n ConversationFilterRecipientsScreen,\n} from '../screens/conversation_filter_recipients/conversation_filter_recipients_screen'\nimport { ConversationFiltersParams } from '../screens/conversation_filters/screen_props'\nimport {\n ConversationFiltersScreen,\n ConversationFiltersScreenOptions,\n} from '../screens/conversation_filters_screen'\nimport { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen'\nimport {\n ConversationNotificationLevelSelectScreen,\n ConversationNotificationLevelSelectScreenOptions,\n} from '../screens/conversation_notification_level_select_screen'\nimport {\n ConversationRouteProps,\n ConversationScreen,\n ConversationScreenTitle,\n} from '../screens/conversation_screen'\nimport { ConversationNewEntryScreen } from '../screens/conversation_select_recipients/conversation_new_entry_screen'\nimport { ConversationSelectDirectMessageRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen'\nimport { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen'\nimport { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen'\nimport { ConversationSelectRecipientsParams } from '../screens/conversation_select_recipients/types/screen_props'\nimport {\n ConversationSelectTypeScreen,\n ConversationSelectTypeScreenOptions,\n} from '../screens/conversation_select_type_screen'\nimport { ConversationsScreen } from '../screens/conversations/conversations_screen'\nimport { GetHelpScreen } from '../screens/get_help_screen'\nimport {\n GroupNotificationLevelSelectScreen,\n GroupNotificationLevelSelectScreenOptions,\n} from '../screens/group_notification_level_select_screen'\nimport { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen'\nimport {\n MessageActionsScreen,\n MessageActionsScreenOptions,\n} from '../screens/message_actions_screen'\nimport { MessageReportScreen, MessageReportScreenOptions } from '../screens/message_report_screen'\nimport { NotFound } from '../screens/not_found'\nimport { NotificationSettingsScreen } from '../screens/notification_settings_screen'\nimport { PreferredAppSelectionScreen } from '../screens/preferred_app_selection_screen'\nimport { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen'\nimport { SearchScreen, SearchScreenOptions } from '../screens/search/search_screen'\nimport { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen'\nimport { SettingsScreen } from '../screens/settings_screen'\nimport {\n SystemMessagePeopleScreen,\n SystemMessagePeopleScreenOptions,\n} from '../screens/system_message_people_screen'\nimport { TeamConversationScreen } from '../screens/team_conversation_screen'\nimport { isLiquidGlassEnabled } from '../utils/liquid_glass'\nimport { ScreenLayoutWithChatAccessGate } from './screenLayout'\n\nconst globalScreenOptions: () => NativeStackNavigationOptions = () => ({\n headerBackButtonDisplayMode: 'minimal',\n ...(isLiquidGlassEnabled() ? { headerShadowVisible: false } : {}),\n})\n\nexport const NewConversationStack = createNativeStackNavigator({\n initialRouteName: 'ConversationNewEntry',\n screenOptions: globalScreenOptions,\n screenLayout: ScreenLayoutWithChatAccessGate,\n screens: {\n ConversationNewEntry: {\n screen: ConversationNewEntryScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationSelectGroupRecipients: {\n screen: ConversationSelectGroupRecipientsScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n },\n withRightClose({\n onPress: () => navigation.popTo('Conversations', route.params),\n })\n ),\n },\n ConversationSelectTeamsILeadRecipients: {\n screen: ConversationSelectTeamsILeadRecipientsScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n },\n withRightClose({\n onPress: () => navigation.popTo('Conversations', route.params),\n })\n ),\n },\n ConversationSelectDirectMessageRecipients: {\n screen: ConversationSelectDirectMessageRecipientsScreen,\n if: useDirectMessagesEligible,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationFilterRecipients: {\n screen: ConversationFilterRecipientsScreen,\n options: ConversationFilterReceipientsScreenOptions,\n },\n ConversationNew: {\n screen: ConversationNewScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerLeft: () => null,\n },\n withRightClose({\n onPress: () => {\n const { chat_group_graph_id, group_source_app_name } =\n route.params as ConversationSelectRecipientsParams\n navigation.popTo('Conversations', { chat_group_graph_id, group_source_app_name })\n },\n })\n ),\n },\n AvatarPicker: {\n screen: AvatarPickerScreen,\n options: AvatarPickerCreateScreenOptions,\n },\n },\n})\n\nexport const ChatStack = createNativeStackNavigator({\n screenOptions: globalScreenOptions,\n screenLayout: ScreenLayoutWithChatAccessGate,\n screens: {\n Conversations: {\n screen: ConversationsScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n headerTitle: (route.params as { title?: string })?.title ?? 'Chat',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationFilters: {\n screen: ConversationFiltersScreen,\n options: ConversationFiltersScreenOptions,\n },\n Search: {\n screen: SearchScreen,\n options: SearchScreenOptions,\n },\n Conversation: {\n screen: ConversationScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n headerTitle: (props: NativeStackHeaderRightProps) => {\n const { conversation_id, title, badge, deleted, muted } =\n route.params as ConversationRouteProps\n\n return (\n <ConversationScreenTitle\n conversation_id={conversation_id}\n badge={badge}\n deleted={deleted}\n muted={muted}\n {...props}\n >\n {title ?? 'Conversation'}\n </ConversationScreenTitle>\n )\n },\n },\n withMinimalBack({\n onPress: () => {\n const params = route.params as ConversationRouteProps\n if ((params as ConversationFiltersParams)?.chat_group_graph_id) {\n // Ensure that conversations with a graph id pass them back to the conversation list\n const { chat_group_graph_id } = params\n navigation.popTo('Conversations', { chat_group_graph_id })\n } else {\n navigation.goBack()\n }\n },\n }),\n withRightClose({ onPress: () => navigation.getParent()?.goBack() })\n ),\n },\n ConversationReply: {\n screen: ConversationScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n { title: (route.params as ConversationRouteProps)?.title ?? 'Reply' },\n withMinimalBack({ onPress: navigation.goBack })\n ),\n },\n TeamConversation: {\n screen: TeamConversationScreen,\n if: useQualifiedByAge,\n options: {\n title: 'Finding conversation...',\n animation: 'none',\n cardStyleInterpolator: CardStyleInterpolators.forNoAnimation,\n },\n },\n ConversationDetails: {\n screen: ConversationDetailsScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n presentation: 'modal',\n title: 'Conversation details',\n },\n withRightDone({ onPress: navigation.goBack })\n ),\n },\n AvatarPicker: {\n screen: AvatarPickerScreen,\n options: AvatarPickerScreenOptions,\n },\n ChatSettings: {\n screen: SettingsScreen,\n options: ({ navigation }) =>\n composeOptions({ title: 'Chat settings' }, withMinimalBack({ onPress: navigation.goBack })),\n },\n NotificationSettings: {\n screen: NotificationSettingsScreen,\n options: ({ navigation }) =>\n navigation.getState().index === 0\n ? composeOptions(\n { title: 'Chat notifications' },\n withRightClose({ onPress: navigation.goBack })\n )\n : composeOptions(\n { title: 'Chat notifications' },\n withMinimalBack({ onPress: navigation.goBack })\n ),\n },\n PreferredAppSelection: {\n screen: PreferredAppSelectionScreen,\n options: ({ navigation }) =>\n composeOptions({ title: 'Preferred app' }, withMinimalBack({ onPress: navigation.goBack })),\n },\n GroupNotificationSettings: {\n screen: GroupNotificationSettingsScreen,\n options: ({ route, navigation }) => {\n const title = (route.params as { title?: string })?.title || 'Group Settings'\n\n // The dismiss button only shows when this is the entry screen (e.g.\n // deep links); deeper in the stack the back button covers dismissal.\n return navigation.getState().index === 0\n ? composeOptions(\n {\n title,\n },\n withRightClose({ onPress: navigation.goBack })\n )\n : composeOptions({ title }, withMinimalBack({ onPress: navigation.goBack }))\n },\n },\n GroupNotificationLevelSelect: {\n screen: GroupNotificationLevelSelectScreen,\n options: GroupNotificationLevelSelectScreenOptions,\n },\n ConversationNotificationLevelSelect: {\n screen: ConversationNotificationLevelSelectScreen,\n options: ConversationNotificationLevelSelectScreenOptions,\n },\n New: {\n screen: NewConversationStack,\n if: useQualifiedByAge,\n layout: ({ children }) => children,\n options: {\n headerShown: false,\n presentation: 'modal',\n },\n },\n GroupConversationNew: {\n screen: ConversationNewScreen,\n if: useQualifiedByAge,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerLeft: () => null,\n },\n withRightClose({ onPress: () => navigation.getParent()?.goBack() })\n ),\n },\n SendGiphy: {\n screen: SendGiphyScreen,\n options: SendGiphyScreenOptions,\n },\n MessageActions: {\n screen: MessageActionsScreen,\n // Something about sheetAllowedDetents declared inline breaks TS\n options: MessageActionsScreenOptions,\n },\n MessageReport: {\n screen: MessageReportScreen,\n options: MessageReportScreenOptions,\n },\n AttachmentActions: {\n screen: AttachmentActionsScreen,\n options: AttachmentActionsScreenOptions,\n },\n ConversationSelectType: {\n screen: ConversationSelectTypeScreen,\n options: ConversationSelectTypeScreenOptions,\n },\n Reactions: {\n screen: ReactionsScreen,\n options: ReactionsScreenOptions,\n },\n SystemMessagePeople: {\n screen: SystemMessagePeopleScreen,\n options: SystemMessagePeopleScreenOptions,\n },\n MessageReadReceipts: {\n screen: MessageReadReceiptsScreen,\n options: MessageReadReceiptsScreenOptions,\n },\n BugReport: {\n screen: BugReportScreen,\n options: BugReportScreenOptions,\n },\n GetHelp: {\n screen: GetHelpScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n headerTitle: 'Get help',\n headerBackVisible: false,\n presentation: 'modal',\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n NotFound: {\n screen: NotFound,\n options: {\n title: '404',\n },\n linking: {\n path: '*',\n },\n },\n },\n})\n\ntype ChatStackParamList = StaticParamList<typeof ChatStack>\n\ndeclare global {\n namespace ReactNavigation {\n interface RootParamList extends ChatStackParamList {}\n }\n}\n"],"mappings":"AACA,SACEA,0BAA0B,QAGrB,gCAAgC;AACvC,SAASC,sBAAsB,QAAQ,yBAAyB;AAChE,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,aAAa,QACR,qDAAqD;AAC5D,SAASC,yBAAyB,EAAEC,iBAAiB,QAAQ,UAAU;AACvE,SACEC,uBAAuB,EACvBC,8BAA8B,QACzB,yDAAyD;AAChE,SACEC,kBAAkB,EAClBC,yBAAyB,EACzBC,+BAA+B,QAC1B,+CAA+C;AACtD,SAASC,eAAe,EAAEC,sBAAsB,QAAQ,8BAA8B;AACtF,SACEC,yBAAyB,EACzBC,gCAAgC,QAC3B,sDAAsD;AAC7D,SAASC,yBAAyB,QAAQ,wCAAwC;AAClF,SACEC,0CAA0C,EAC1CC,kCAAkC,QAC7B,iFAAiF;AAExF,SACEC,yBAAyB,EACzBC,gCAAgC,QAC3B,wCAAwC;AAC/C,SAASC,qBAAqB,QAAQ,qDAAqD;AAC3F,SACEC,yCAAyC,EACzCC,gDAAgD,QAC3C,0DAA0D;AACjE,SAEEC,kBAAkB,EAClBC,uBAAuB,QAClB,gCAAgC;AACvC,SAASC,0BAA0B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