@planningcenter/chat-react-native 3.29.0 → 3.30.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/conversation/attachments/attachment_card.js +2 -2
- package/build/components/conversation/attachments/attachment_card.js.map +1 -1
- package/build/components/conversation/attachments/attachment_deleting_overlay.js +1 -1
- package/build/components/conversation/attachments/attachment_deleting_overlay.js.map +1 -1
- package/build/components/conversation/attachments/audio_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/audio_attachment.js +3 -3
- package/build/components/conversation/attachments/audio_attachment.js.map +1 -1
- package/build/components/conversation/attachments/expanded_link.d.ts.map +1 -1
- package/build/components/conversation/attachments/expanded_link.js +2 -2
- package/build/components/conversation/attachments/expanded_link.js.map +1 -1
- package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/generic_file_attachment.js +4 -4
- package/build/components/conversation/attachments/generic_file_attachment.js.map +1 -1
- package/build/components/conversation/attachments/giphy_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/giphy_attachment.js +3 -3
- package/build/components/conversation/attachments/giphy_attachment.js.map +1 -1
- package/build/components/conversation/attachments/image_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/image_attachment.js +6 -6
- package/build/components/conversation/attachments/image_attachment.js.map +1 -1
- package/build/components/conversation/attachments/video_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/video_attachment.js +4 -4
- package/build/components/conversation/attachments/video_attachment.js.map +1 -1
- package/build/components/conversation/jump_to_bottom_button.js +1 -1
- package/build/components/conversation/jump_to_bottom_button.js.map +1 -1
- package/build/components/conversation/message.d.ts.map +1 -1
- package/build/components/conversation/message.js +11 -11
- package/build/components/conversation/message.js.map +1 -1
- package/build/components/conversation/message_attachments.d.ts.map +1 -1
- package/build/components/conversation/message_attachments.js +4 -4
- package/build/components/conversation/message_attachments.js.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_image.js.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts.map +1 -1
- package/build/components/conversation/message_form/message_form_attachment_video.js.map +1 -1
- package/build/components/conversation/message_form.d.ts.map +1 -1
- package/build/components/conversation/message_form.js +9 -9
- package/build/components/conversation/message_form.js.map +1 -1
- package/build/components/conversation/message_markdown.js +2 -2
- package/build/components/conversation/message_markdown.js.map +1 -1
- package/build/components/conversation/message_reaction.d.ts +1 -1
- package/build/components/conversation/message_reaction.d.ts.map +1 -1
- package/build/components/conversation/message_reaction.js +2 -2
- package/build/components/conversation/message_reaction.js.map +1 -1
- package/build/components/conversation/message_read_receipts.d.ts.map +1 -1
- package/build/components/conversation/message_read_receipts.js +1 -1
- package/build/components/conversation/message_read_receipts.js.map +1 -1
- package/build/components/conversation/messages_disabled_banners.js +1 -1
- package/build/components/conversation/messages_disabled_banners.js.map +1 -1
- package/build/components/conversation/reply_shadow_message.d.ts.map +1 -1
- package/build/components/conversation/reply_shadow_message.js +7 -7
- package/build/components/conversation/reply_shadow_message.js.map +1 -1
- package/build/components/conversation/typing_indicator.js +1 -1
- package/build/components/conversation/typing_indicator.js.map +1 -1
- package/build/components/conversations/conversation_preview.d.ts.map +1 -1
- package/build/components/conversations/conversation_preview.js +3 -3
- package/build/components/conversations/conversation_preview.js.map +1 -1
- package/build/components/conversations/conversations.js +1 -1
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/conversations/mute_indicator.js +1 -1
- package/build/components/conversations/mute_indicator.js.map +1 -1
- package/build/components/conversations/swipeable_toggle_button.d.ts.map +1 -1
- package/build/components/conversations/swipeable_toggle_button.js +2 -2
- package/build/components/conversations/swipeable_toggle_button.js.map +1 -1
- package/build/components/conversations/unread_count_badge.js +1 -1
- package/build/components/conversations/unread_count_badge.js.map +1 -1
- package/build/components/display/action_button.js +3 -3
- package/build/components/display/action_button.js.map +1 -1
- package/build/components/display/banner.d.ts +1 -1
- package/build/components/display/banner.d.ts.map +1 -1
- package/build/components/display/banner.js.map +1 -1
- package/build/components/display/banner_collapsible.d.ts.map +1 -1
- package/build/components/display/banner_collapsible.js +1 -1
- package/build/components/display/banner_collapsible.js.map +1 -1
- package/build/components/display/button.d.ts.map +1 -1
- package/build/components/display/button.js +2 -2
- package/build/components/display/button.js.map +1 -1
- package/build/components/display/child_notice.d.ts +1 -1
- package/build/components/display/child_notice.d.ts.map +1 -1
- package/build/components/display/child_notice.js +3 -3
- package/build/components/display/child_notice.js.map +1 -1
- package/build/components/display/heading.d.ts.map +1 -1
- package/build/components/display/heading.js +2 -2
- package/build/components/display/heading.js.map +1 -1
- package/build/components/display/icon.d.ts +4 -4
- package/build/components/display/icon.d.ts.map +1 -1
- package/build/components/display/icon.js +5 -5
- package/build/components/display/icon.js.map +1 -1
- package/build/components/display/icon_button.d.ts.map +1 -1
- package/build/components/display/icon_button.js +1 -1
- package/build/components/display/icon_button.js.map +1 -1
- package/build/components/display/image_attachment_preview.js +3 -3
- package/build/components/display/image_attachment_preview.js.map +1 -1
- package/build/components/display/person.d.ts.map +1 -1
- package/build/components/display/person.js +1 -1
- package/build/components/display/person.js.map +1 -1
- package/build/components/display/platform_modal_header_buttons.d.ts +1 -1
- package/build/components/display/platform_modal_header_buttons.d.ts.map +1 -1
- package/build/components/display/platform_modal_header_buttons.js +3 -3
- package/build/components/display/platform_modal_header_buttons.js.map +1 -1
- package/build/components/display/text.d.ts.map +1 -1
- package/build/components/display/text.js +1 -1
- package/build/components/display/text.js.map +1 -1
- package/build/components/display/text_inline_button.d.ts.map +1 -1
- package/build/components/display/text_inline_button.js +2 -2
- package/build/components/display/text_inline_button.js.map +1 -1
- package/build/components/display/toggle_button.d.ts.map +1 -1
- package/build/components/display/toggle_button.js +3 -3
- package/build/components/display/toggle_button.js.map +1 -1
- package/build/components/display/video_attachment_preview.js +4 -4
- package/build/components/display/video_attachment_preview.js.map +1 -1
- package/build/components/group_conversation_list.d.ts.map +1 -1
- package/build/components/group_conversation_list.js +2 -2
- package/build/components/group_conversation_list.js.map +1 -1
- package/build/components/primitive/avatar_primitive.d.ts.map +1 -1
- package/build/components/primitive/avatar_primitive.js +1 -1
- package/build/components/primitive/avatar_primitive.js.map +1 -1
- package/build/components/primitive/banner_primitive.d.ts +1 -1
- package/build/components/primitive/banner_primitive.d.ts.map +1 -1
- package/build/components/primitive/banner_primitive.js +3 -3
- package/build/components/primitive/banner_primitive.js.map +1 -1
- package/build/components/primitive/form_sheet.d.ts.map +1 -1
- package/build/components/primitive/form_sheet.js +1 -1
- package/build/components/primitive/form_sheet.js.map +1 -1
- package/build/components/safe_area_modal.js +1 -1
- package/build/components/safe_area_modal.js.map +1 -1
- package/build/contexts/api_provider.js +3 -3
- package/build/contexts/api_provider.js.map +1 -1
- package/build/contexts/chat_context.d.ts +3 -3
- package/build/contexts/chat_context.d.ts.map +1 -1
- package/build/contexts/chat_context.js +1 -1
- package/build/contexts/chat_context.js.map +1 -1
- package/build/contexts/conversations_context.d.ts +1 -1
- package/build/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/contexts/session_context.d.ts.map +1 -1
- package/build/contexts/session_context.js +1 -1
- package/build/contexts/session_context.js.map +1 -1
- package/build/hooks/groups/use_groups_conversation_create.d.ts +2 -1
- package/build/hooks/groups/use_groups_conversation_create.d.ts.map +1 -1
- package/build/hooks/groups/use_groups_conversation_create.js +3 -2
- package/build/hooks/groups/use_groups_conversation_create.js.map +1 -1
- package/build/hooks/services/use_find_or_create_services_conversation.d.ts.map +1 -1
- package/build/hooks/services/use_find_or_create_services_conversation.js +2 -2
- package/build/hooks/services/use_find_or_create_services_conversation.js.map +1 -1
- package/build/hooks/services/use_team_members_for_new_conversation.js +1 -1
- package/build/hooks/services/use_team_members_for_new_conversation.js.map +1 -1
- package/build/hooks/services/use_team_plans.js +2 -2
- package/build/hooks/services/use_team_plans.js.map +1 -1
- package/build/hooks/use_api_client.d.ts.map +1 -1
- package/build/hooks/use_api_client.js +1 -1
- package/build/hooks/use_api_client.js.map +1 -1
- package/build/hooks/use_attachment_uploader.d.ts.map +1 -1
- package/build/hooks/use_attachment_uploader.js +1 -1
- package/build/hooks/use_attachment_uploader.js.map +1 -1
- package/build/hooks/use_broadcast_typing_status.js +1 -1
- package/build/hooks/use_broadcast_typing_status.js.map +1 -1
- package/build/hooks/use_conversation.js +2 -2
- package/build/hooks/use_conversation.js.map +1 -1
- package/build/hooks/use_conversation_membership.js +2 -2
- package/build/hooks/use_conversation_membership.js.map +1 -1
- package/build/hooks/use_conversation_message.js +1 -1
- package/build/hooks/use_conversation_message.js.map +1 -1
- package/build/hooks/use_conversation_messages.d.ts.map +1 -1
- package/build/hooks/use_conversation_messages.js +1 -1
- package/build/hooks/use_conversation_messages.js.map +1 -1
- package/build/hooks/use_conversation_messages_jolt_events.js +8 -8
- package/build/hooks/use_conversation_messages_jolt_events.js.map +1 -1
- package/build/hooks/use_create_android_ripple_color.js +1 -1
- package/build/hooks/use_create_android_ripple_color.js.map +1 -1
- package/build/hooks/use_current_person.js.map +1 -1
- package/build/hooks/use_features.d.ts +1 -0
- package/build/hooks/use_features.d.ts.map +1 -1
- package/build/hooks/use_features.js +1 -0
- package/build/hooks/use_features.js.map +1 -1
- package/build/hooks/use_font_scale.js +1 -1
- package/build/hooks/use_font_scale.js.map +1 -1
- package/build/hooks/use_giphy.d.ts.map +1 -1
- package/build/hooks/use_giphy.js.map +1 -1
- package/build/hooks/use_interaction_ghost_color.js +1 -1
- package/build/hooks/use_interaction_ghost_color.js.map +1 -1
- package/build/hooks/use_live_relative_time.d.ts.map +1 -1
- package/build/hooks/use_live_relative_time.js +1 -1
- package/build/hooks/use_live_relative_time.js.map +1 -1
- package/build/hooks/use_message_create_or_update.d.ts.map +1 -1
- package/build/hooks/use_message_create_or_update.js +5 -5
- package/build/hooks/use_message_create_or_update.js.map +1 -1
- package/build/hooks/use_message_draft.js +1 -1
- package/build/hooks/use_message_draft.js.map +1 -1
- package/build/hooks/use_message_reaction_toggle.d.ts.map +1 -1
- package/build/hooks/use_message_reaction_toggle.js +2 -2
- package/build/hooks/use_message_reaction_toggle.js.map +1 -1
- package/build/hooks/use_my_gender.d.ts +7 -0
- package/build/hooks/use_my_gender.d.ts.map +1 -0
- package/build/hooks/use_my_gender.js +28 -0
- package/build/hooks/use_my_gender.js.map +1 -0
- package/build/hooks/use_organization.d.ts.map +1 -1
- package/build/hooks/use_organization.js.map +1 -1
- package/build/hooks/use_product_analytics.d.ts.map +1 -1
- package/build/hooks/use_product_analytics.js +1 -1
- package/build/hooks/use_product_analytics.js.map +1 -1
- package/build/hooks/use_report_message.d.ts.map +1 -1
- package/build/hooks/use_report_message.js +1 -1
- package/build/hooks/use_report_message.js.map +1 -1
- package/build/hooks/use_submit_age_check.d.ts.map +1 -1
- package/build/hooks/use_submit_age_check.js +2 -2
- package/build/hooks/use_submit_age_check.js.map +1 -1
- package/build/hooks/use_suspense_api.d.ts +1 -1
- package/build/hooks/use_suspense_api.d.ts.map +1 -1
- package/build/hooks/use_suspense_api.js +1 -1
- package/build/hooks/use_suspense_api.js.map +1 -1
- package/build/hooks/use_typing_indicators.d.ts.map +1 -1
- package/build/hooks/use_typing_indicators.js +1 -1
- package/build/hooks/use_typing_indicators.js.map +1 -1
- package/build/navigation/chat_access_gate.js +4 -4
- package/build/navigation/chat_access_gate.js.map +1 -1
- package/build/navigation/index.d.ts +4 -4
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +6 -6
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/screenLayout.js +1 -1
- package/build/navigation/screenLayout.js.map +1 -1
- package/build/polyfills/events/Event.d.ts +0 -4
- package/build/polyfills/events/Event.d.ts.map +1 -1
- package/build/polyfills/events/Event.js +5 -1
- package/build/polyfills/events/Event.js.map +1 -1
- package/build/polyfills/events/EventTarget.d.ts +0 -3
- package/build/polyfills/events/EventTarget.d.ts.map +1 -1
- package/build/polyfills/events/EventTarget.js +1 -1
- package/build/polyfills/events/EventTarget.js.map +1 -1
- package/build/screens/age_check/age_check_required_screen.d.ts.map +1 -1
- package/build/screens/age_check/age_check_required_screen.js +5 -5
- package/build/screens/age_check/age_check_required_screen.js.map +1 -1
- package/build/screens/age_check/age_check_underage_screen.d.ts.map +1 -1
- package/build/screens/age_check/age_check_underage_screen.js +1 -1
- package/build/screens/age_check/age_check_underage_screen.js.map +1 -1
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts.map +1 -1
- package/build/screens/age_check/components/age_check_select_birthdate_modal.js +2 -2
- package/build/screens/age_check/components/age_check_select_birthdate_modal.js.map +1 -1
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.js +2 -2
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.js.map +1 -1
- package/build/screens/bug_report_screen.d.ts +1 -1
- package/build/screens/bug_report_screen.d.ts.map +1 -1
- package/build/screens/bug_report_screen.js +9 -9
- package/build/screens/bug_report_screen.js.map +1 -1
- package/build/screens/conversation/message_read_receipts_screen.js +2 -2
- package/build/screens/conversation/message_read_receipts_screen.js.map +1 -1
- package/build/screens/conversation_details_screen.d.ts.map +1 -1
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js +2 -2
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js.map +1 -1
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/components/header_row.js +3 -3
- package/build/screens/conversation_filter_recipients/components/header_row.js.map +1 -1
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js +1 -1
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js.map +1 -1
- package/build/screens/conversation_filter_recipients/types.d.ts +1 -1
- package/build/screens/conversation_filter_recipients/types.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/types.js.map +1 -1
- package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/rows.js +1 -1
- package/build/screens/conversation_filters/components/rows.js.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.js +2 -2
- package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
- package/build/screens/conversation_filters/group_filters.d.ts +1 -1
- package/build/screens/conversation_filters/group_filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/group_filters.js +1 -1
- package/build/screens/conversation_filters/group_filters.js.map +1 -1
- package/build/screens/conversation_filters/hooks/filters.d.ts +1 -1
- package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/hooks/filters.js.map +1 -1
- package/build/screens/conversation_filters_screen.d.ts.map +1 -1
- package/build/screens/conversation_filters_screen.js +2 -2
- package/build/screens/conversation_filters_screen.js.map +1 -1
- package/build/screens/conversation_new/components/filter_by_plan.d.ts.map +1 -1
- package/build/screens/conversation_new/components/filter_by_plan.js +4 -4
- package/build/screens/conversation_new/components/filter_by_plan.js.map +1 -1
- package/build/screens/conversation_new/components/form_list.d.ts.map +1 -1
- package/build/screens/conversation_new/components/form_list.js.map +1 -1
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts +10 -0
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts.map +1 -0
- package/build/screens/conversation_new/components/gender_filter_toggle.js +50 -0
- package/build/screens/conversation_new/components/gender_filter_toggle.js.map +1 -0
- package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -1
- package/build/screens/conversation_new/components/groups_form.js +28 -4
- package/build/screens/conversation_new/components/groups_form.js.map +1 -1
- package/build/screens/conversation_new/components/services_form.d.ts.map +1 -1
- package/build/screens/conversation_new/components/services_form.js +6 -6
- package/build/screens/conversation_new/components/services_form.js.map +1 -1
- package/build/screens/conversation_new/conversation_new_screen.d.ts.map +1 -1
- package/build/screens/conversation_new/conversation_new_screen.js.map +1 -1
- package/build/screens/conversation_notification_level_select_screen.js +1 -1
- package/build/screens/conversation_notification_level_select_screen.js.map +1 -1
- package/build/screens/conversation_screen.d.ts +1 -1
- package/build/screens/conversation_screen.d.ts.map +1 -1
- package/build/screens/conversation_screen.js +9 -9
- package/build/screens/conversation_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +1 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js +1 -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.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js +2 -2
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_type_screen.d.ts +1 -1
- package/build/screens/conversation_select_type_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_type_screen.js +1 -1
- package/build/screens/conversation_select_type_screen.js.map +1 -1
- package/build/screens/conversations/components/list_header_component.js +4 -4
- package/build/screens/conversations/components/list_header_component.js.map +1 -1
- package/build/screens/design_system_screen.js +3 -3
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/screens/group_notification_settings_screen.js.map +1 -1
- package/build/screens/message_actions_screen.js +2 -2
- package/build/screens/message_actions_screen.js.map +1 -1
- package/build/screens/message_report/components/report_reason_list.d.ts.map +1 -1
- package/build/screens/message_report/components/report_reason_list.js +2 -2
- package/build/screens/message_report/components/report_reason_list.js.map +1 -1
- package/build/screens/message_report_screen.d.ts +2 -2
- package/build/screens/message_report_screen.d.ts.map +1 -1
- package/build/screens/message_report_screen.js +5 -5
- package/build/screens/message_report_screen.js.map +1 -1
- package/build/screens/not_found.d.ts.map +1 -1
- package/build/screens/not_found.js +1 -1
- package/build/screens/not_found.js.map +1 -1
- package/build/screens/notification_settings/hooks/groups.js +1 -1
- package/build/screens/notification_settings/hooks/groups.js.map +1 -1
- package/build/screens/notification_settings_screen.js +1 -1
- package/build/screens/notification_settings_screen.js.map +1 -1
- package/build/screens/preferred_app_selection_screen.d.ts.map +1 -1
- package/build/screens/preferred_app_selection_screen.js +1 -1
- package/build/screens/preferred_app_selection_screen.js.map +1 -1
- package/build/screens/send_giphy_screen.js +1 -1
- package/build/screens/send_giphy_screen.js.map +1 -1
- package/build/screens/team_conversation_screen.js +1 -1
- package/build/screens/team_conversation_screen.js.map +1 -1
- package/build/utils/cache/messages_cache.d.ts.map +1 -1
- package/build/utils/cache/messages_cache.js +3 -3
- package/build/utils/cache/messages_cache.js.map +1 -1
- package/build/utils/cache/optimistically_create_message.d.ts.map +1 -1
- package/build/utils/cache/optimistically_create_message.js +2 -2
- package/build/utils/cache/optimistically_create_message.js.map +1 -1
- package/build/utils/cache/optimistically_update_message.d.ts.map +1 -1
- package/build/utils/cache/optimistically_update_message.js +1 -1
- package/build/utils/cache/optimistically_update_message.js.map +1 -1
- package/build/utils/client/client.d.ts.map +1 -1
- package/build/utils/client/client.js.map +1 -1
- package/build/utils/client/transform_request_data.d.ts.map +1 -1
- package/build/utils/client/transform_request_data.js.map +1 -1
- package/build/utils/gender_display_label.d.ts +2 -0
- package/build/utils/gender_display_label.d.ts.map +1 -0
- package/build/utils/gender_display_label.js +11 -0
- package/build/utils/gender_display_label.js.map +1 -0
- package/build/utils/native_adapters/configuration.d.ts +3 -3
- package/build/utils/native_adapters/configuration.d.ts.map +1 -1
- package/build/utils/native_adapters/configuration.js +5 -5
- package/build/utils/native_adapters/configuration.js.map +1 -1
- package/build/utils/performance_tracking.js +1 -1
- package/build/utils/performance_tracking.js.map +1 -1
- package/build/utils/theme.d.ts.map +1 -1
- package/build/utils/theme.js +1 -1
- package/build/utils/theme.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/contexts/session_context.tsx +4 -4
- package/src/__tests__/event-polyfill.test.ts +2 -3
- package/src/__tests__/hooks/useTheme.tsx +3 -3
- package/src/__tests__/hooks/use_async_storage.test.tsx +2 -2
- package/src/__tests__/hooks/use_conversation_messages.ts +1 -1
- package/src/__tests__/utils/client.ts +2 -2
- package/src/__tests__/utils/native_adapters/configuration.ts +2 -2
- package/src/__utils__/handlers.ts +1 -1
- package/src/components/conversation/attachments/attachment_card.tsx +2 -2
- package/src/components/conversation/attachments/attachment_deleting_overlay.tsx +1 -1
- package/src/components/conversation/attachments/audio_attachment.tsx +3 -3
- package/src/components/conversation/attachments/expanded_link.tsx +2 -2
- package/src/components/conversation/attachments/generic_file_attachment.tsx +5 -5
- package/src/components/conversation/attachments/giphy_attachment.tsx +3 -3
- package/src/components/conversation/attachments/image_attachment.tsx +7 -7
- package/src/components/conversation/attachments/video_attachment.tsx +4 -4
- package/src/components/conversation/jump_to_bottom_button.tsx +1 -1
- package/src/components/conversation/message.tsx +13 -13
- package/src/components/conversation/message_attachments.tsx +4 -4
- package/src/components/conversation/message_form/message_form_attachment_image.tsx +1 -1
- package/src/components/conversation/message_form/message_form_attachment_video.tsx +1 -1
- package/src/components/conversation/message_form.tsx +15 -17
- package/src/components/conversation/message_markdown.tsx +2 -2
- package/src/components/conversation/message_reaction.tsx +3 -3
- package/src/components/conversation/message_read_receipts.tsx +2 -2
- package/src/components/conversation/messages_disabled_banners.tsx +1 -1
- package/src/components/conversation/reply_shadow_message.tsx +7 -7
- package/src/components/conversation/typing_indicator.tsx +1 -1
- package/src/components/conversations/conversation_preview.tsx +4 -4
- package/src/components/conversations/conversations.tsx +1 -1
- package/src/components/conversations/mute_indicator.tsx +1 -1
- package/src/components/conversations/swipeable_toggle_button.tsx +2 -2
- package/src/components/conversations/unread_count_badge.tsx +1 -1
- package/src/components/display/action_button.tsx +4 -4
- package/src/components/display/banner.tsx +1 -1
- package/src/components/display/banner_collapsible.tsx +1 -1
- package/src/components/display/button.tsx +2 -2
- package/src/components/display/child_notice.tsx +3 -3
- package/src/components/display/heading.tsx +2 -2
- package/src/components/display/icon.tsx +7 -8
- package/src/components/display/icon_button.tsx +2 -2
- package/src/components/display/image_attachment_preview.tsx +3 -3
- package/src/components/display/person.tsx +2 -2
- package/src/components/display/platform_modal_header_buttons.tsx +4 -4
- package/src/components/display/text.tsx +1 -1
- package/src/components/display/text_inline_button.tsx +2 -2
- package/src/components/display/toggle_button.tsx +3 -3
- package/src/components/display/video_attachment_preview.tsx +4 -4
- package/src/components/group_conversation_list.tsx +4 -4
- package/src/components/primitive/avatar_primitive.tsx +1 -1
- package/src/components/primitive/banner_primitive.tsx +6 -6
- package/src/components/primitive/form_sheet.tsx +1 -1
- package/src/components/safe_area_modal.tsx +1 -1
- package/src/contexts/api_provider.tsx +3 -3
- package/src/contexts/chat_context.tsx +4 -4
- package/src/contexts/conversations_context.tsx +3 -3
- package/src/contexts/session_context.tsx +2 -2
- package/src/hooks/groups/use_groups_conversation_create.ts +4 -2
- package/src/hooks/services/use_find_or_create_services_conversation.ts +2 -2
- package/src/hooks/services/use_team_members_for_new_conversation.ts +2 -2
- package/src/hooks/services/use_team_plans.ts +3 -3
- package/src/hooks/use_api_client.ts +1 -1
- package/src/hooks/use_attachment_uploader.ts +3 -3
- package/src/hooks/use_broadcast_typing_status.ts +1 -1
- package/src/hooks/use_conversation.ts +2 -2
- package/src/hooks/use_conversation_membership.ts +2 -2
- package/src/hooks/use_conversation_message.ts +1 -1
- package/src/hooks/use_conversation_messages.ts +1 -1
- package/src/hooks/use_conversation_messages_jolt_events.ts +12 -12
- package/src/hooks/use_create_android_ripple_color.ts +1 -1
- package/src/hooks/use_current_person.ts +1 -1
- package/src/hooks/use_features.ts +3 -2
- package/src/hooks/use_font_scale.ts +1 -1
- package/src/hooks/use_giphy.ts +1 -1
- package/src/hooks/use_interaction_ghost_color.ts +1 -1
- package/src/hooks/use_live_relative_time.ts +1 -1
- package/src/hooks/use_message_create_or_update.ts +7 -7
- package/src/hooks/use_message_draft.ts +2 -2
- package/src/hooks/use_message_reaction_toggle.ts +2 -2
- package/src/hooks/use_my_gender.ts +42 -0
- package/src/hooks/use_organization.ts +1 -1
- package/src/hooks/use_product_analytics.ts +2 -2
- package/src/hooks/use_report_message.ts +2 -2
- package/src/hooks/use_submit_age_check.ts +3 -3
- package/src/hooks/use_suspense_api.ts +3 -3
- package/src/hooks/use_typing_indicators.ts +2 -2
- package/src/navigation/chat_access_gate.tsx +4 -4
- package/src/navigation/index.tsx +12 -12
- package/src/navigation/screenLayout.tsx +1 -1
- package/src/polyfills/events/Event.ts +1 -1
- package/src/polyfills/events/EventTarget.ts +1 -1
- package/src/screens/age_check/age_check_required_screen.tsx +5 -5
- package/src/screens/age_check/age_check_underage_screen.tsx +1 -1
- package/src/screens/age_check/components/age_check_select_birthdate_modal.tsx +2 -2
- package/src/screens/attachment_actions/hooks/useDeleteAttachment.tsx +2 -2
- package/src/screens/bug_report_screen.tsx +13 -13
- package/src/screens/conversation/message_read_receipts_screen.tsx +3 -3
- package/src/screens/conversation_details_screen.tsx +0 -1
- package/src/screens/conversation_filter_recipients/components/checkbox_row.tsx +2 -2
- package/src/screens/conversation_filter_recipients/components/header_row.tsx +4 -4
- package/src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx +1 -1
- package/src/screens/conversation_filter_recipients/types.tsx +1 -1
- package/src/screens/conversation_filters/components/rows.tsx +1 -1
- package/src/screens/conversation_filters/context/conversation_filter_context.tsx +3 -3
- package/src/screens/conversation_filters/group_filters.tsx +3 -3
- package/src/screens/conversation_filters/hooks/filters.ts +1 -1
- package/src/screens/conversation_filters_screen.tsx +2 -2
- package/src/screens/conversation_new/components/filter_by_plan.tsx +4 -4
- package/src/screens/conversation_new/components/form_list.tsx +1 -1
- package/src/screens/conversation_new/components/gender_filter_toggle.tsx +92 -0
- package/src/screens/conversation_new/components/groups_form.tsx +63 -4
- package/src/screens/conversation_new/components/services_form.tsx +7 -7
- package/src/screens/conversation_new/conversation_new_screen.tsx +3 -3
- package/src/screens/conversation_notification_level_select_screen.tsx +1 -1
- package/src/screens/conversation_screen.tsx +13 -13
- package/src/screens/conversation_select_recipients/conversation_new_entry_screen.tsx +3 -3
- package/src/screens/conversation_select_recipients/conversation_select_group_recipients_screen.tsx +3 -3
- package/src/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.tsx +3 -3
- package/src/screens/conversation_select_type_screen.tsx +2 -2
- package/src/screens/conversations/components/list_header_component.tsx +4 -4
- package/src/screens/design_system_screen.tsx +3 -3
- package/src/screens/group_notification_settings_screen.tsx +1 -1
- package/src/screens/message_actions_screen.tsx +3 -3
- package/src/screens/message_report/components/report_reason_list.tsx +2 -2
- package/src/screens/message_report_screen.tsx +8 -8
- package/src/screens/not_found.tsx +1 -1
- package/src/screens/notification_settings/hooks/groups.ts +1 -1
- package/src/screens/notification_settings_screen.tsx +1 -1
- package/src/screens/preferred_app_selection_screen.tsx +1 -1
- package/src/screens/send_giphy_screen.tsx +1 -1
- package/src/screens/team_conversation_screen.tsx +1 -1
- package/src/utils/__tests__/convert_attachments_for_create.test.ts +2 -2
- package/src/utils/cache/messages_cache.ts +3 -3
- package/src/utils/cache/optimistically_create_message.ts +4 -4
- package/src/utils/cache/optimistically_update_message.ts +1 -1
- package/src/utils/client/client.ts +0 -1
- package/src/utils/client/transform_request_data.ts +1 -1
- package/src/utils/gender_display_label.ts +10 -0
- package/src/utils/native_adapters/configuration.ts +5 -5
- package/src/utils/performance_tracking.ts +1 -1
- package/src/utils/theme.ts +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AsyncStorage from '@react-native-async-storage/async-storage'
|
|
2
2
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
3
|
+
import { renderHook, act } from '@testing-library/react-hooks'
|
|
3
4
|
import React, { useContext, Suspense } from 'react'
|
|
4
5
|
import {
|
|
5
6
|
SessionContext,
|
|
6
7
|
SessionContextProvider,
|
|
7
8
|
SessionContextConfig,
|
|
8
9
|
} from '../../contexts/session_context'
|
|
9
|
-
import { StorageAdapter } from '../../utils/native_adapters/storage_adapter'
|
|
10
10
|
import { OAuthToken, FailedResponse } from '../../types'
|
|
11
|
-
import
|
|
12
|
-
import { SessionManager } from '../../utils/session_manager'
|
|
11
|
+
import { StorageAdapter } from '../../utils/native_adapters/storage_adapter'
|
|
13
12
|
import { Session } from '../../utils/session'
|
|
13
|
+
import { SessionManager } from '../../utils/session_manager'
|
|
14
14
|
|
|
15
15
|
jest.mock('@react-native-async-storage/async-storage')
|
|
16
16
|
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
* Tests for Event/CustomEvent/EventTarget polyfills
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import Event from '../polyfills/events/Event'
|
|
6
|
-
import EventTarget from '../polyfills/events/EventTarget'
|
|
7
5
|
import { CustomEvent } from '../polyfills/events/CustomEvent'
|
|
8
|
-
|
|
9
6
|
// Set up global polyfill for tests
|
|
7
|
+
import Event from '../polyfills/events/Event'
|
|
8
|
+
import EventTarget from '../polyfills/events/EventTarget'
|
|
10
9
|
;(global as any).Event = Event
|
|
11
10
|
;(global as any).CustomEvent = CustomEvent
|
|
12
11
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderHook } from '@testing-library/react-native'
|
|
2
1
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
3
|
-
import {
|
|
4
|
-
import { ChatProvider, CreateChatThemeProps } from '../../contexts/chat_context'
|
|
2
|
+
import { renderHook } from '@testing-library/react-native'
|
|
5
3
|
import React from 'react'
|
|
4
|
+
import { ChatProvider, CreateChatThemeProps } from '../../contexts/chat_context'
|
|
5
|
+
import { useTheme } from '../../hooks'
|
|
6
6
|
|
|
7
7
|
let themeProps: CreateChatThemeProps = {
|
|
8
8
|
theme: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AsyncStorage from '@react-native-async-storage/async-storage'
|
|
2
2
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
3
|
+
import { renderHook, act } from '@testing-library/react-hooks'
|
|
3
4
|
import React, { Suspense } from 'react'
|
|
4
|
-
import AsyncStorage from '@react-native-async-storage/async-storage'
|
|
5
5
|
import { useAsyncStorage } from '../../hooks/use_async_storage'
|
|
6
6
|
|
|
7
7
|
jest.mock('@react-native-async-storage/async-storage')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { renderHook } from '@testing-library/react-hooks'
|
|
2
|
-
import * as useSuspenseApi from '../../hooks/use_suspense_api'
|
|
3
2
|
import { useConversationMessages } from '../../hooks/use_conversation_messages'
|
|
3
|
+
import * as useSuspenseApi from '../../hooks/use_suspense_api'
|
|
4
4
|
|
|
5
5
|
const mockMessages = [
|
|
6
6
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import MockServer from '../../__utils__/server'
|
|
2
|
-
import Client from '../../utils/client/client'
|
|
3
1
|
import DefaultFixtures from '../../__utils__/fixtures/defaults'
|
|
4
2
|
import { BASE_URL } from '../../__utils__/handlers'
|
|
3
|
+
import MockServer from '../../__utils__/server'
|
|
5
4
|
import { FailedResponse } from '../../types'
|
|
5
|
+
import Client from '../../utils/client/client'
|
|
6
6
|
|
|
7
7
|
const APP_BASE_URL = BASE_URL
|
|
8
8
|
let client: Client
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { Linking as RNLinking } from 'react-native'
|
|
3
|
-
import { ChatAdapters, Linking, Haptic } from '../../../utils/native_adapters/configuration'
|
|
4
3
|
import {
|
|
5
4
|
AudioAdapter,
|
|
6
5
|
Clipboard,
|
|
@@ -9,8 +8,9 @@ import {
|
|
|
9
8
|
LinkingAdapter,
|
|
10
9
|
VideoAdapter,
|
|
11
10
|
} from '../../../utils/native_adapters'
|
|
12
|
-
import {
|
|
11
|
+
import { ChatAdapters, Linking, Haptic } from '../../../utils/native_adapters/configuration'
|
|
13
12
|
import { HapticAdapter } from '../../../utils/native_adapters/haptic'
|
|
13
|
+
import { VideoPlayerHandle, VideoPlayerProps } from '../../../utils/native_adapters/video'
|
|
14
14
|
|
|
15
15
|
describe('ChatAdapters', () => {
|
|
16
16
|
const getStringAsync = jest.fn(async () => '')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ComponentProps, ReactNode } from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import { Text } from '../../display'
|
|
4
|
-
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
5
3
|
import { useTheme } from '../../../hooks'
|
|
4
|
+
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
5
|
+
import { Text } from '../../display'
|
|
6
6
|
|
|
7
7
|
type AttachmentCardProps = ComponentProps<typeof View>
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { View, StyleSheet } from 'react-native'
|
|
3
|
-
import { Spinner } from '../../display'
|
|
4
3
|
import { useTheme } from '../../../hooks'
|
|
4
|
+
import { Spinner } from '../../display'
|
|
5
5
|
|
|
6
6
|
export function AttachmentDeletingOverlay() {
|
|
7
7
|
const styles = useStyles()
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { PlatformPressable } from '@react-navigation/elements'
|
|
1
2
|
import React from 'react'
|
|
2
3
|
import { View, StyleSheet } from 'react-native'
|
|
4
|
+
import { useTheme } from '../../../hooks'
|
|
3
5
|
import { DenormalizedMessageAttachmentResource } from '../../../types/resources/denormalized_attachment_resource'
|
|
6
|
+
import { Audio } from '../../../utils/native_adapters'
|
|
4
7
|
import { IconButton, Text } from '../../display'
|
|
5
8
|
import { AttachmentCard, AttachmentCardTitle } from './attachment_card'
|
|
6
|
-
import { useTheme } from '../../../hooks'
|
|
7
|
-
import { Audio } from '../../../utils/native_adapters'
|
|
8
|
-
import { PlatformPressable } from '@react-navigation/elements'
|
|
9
9
|
import { AttachmentDeletingOverlay } from './attachment_deleting_overlay'
|
|
10
10
|
|
|
11
11
|
export function AudioAttachment({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { PlatformPressable } from '@react-navigation/elements'
|
|
1
2
|
import React from 'react'
|
|
2
3
|
import { Image, StyleSheet, Text, View } from 'react-native'
|
|
3
4
|
import { useTheme } from '../../../hooks'
|
|
4
|
-
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
5
5
|
import { DenormalizedExpandedLinkAttachmentResource } from '../../../types/resources/denormalized_attachment_resource'
|
|
6
|
-
import { PlatformPressable } from '@react-navigation/elements'
|
|
7
6
|
import { Linking } from '../../../utils'
|
|
7
|
+
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
8
8
|
|
|
9
9
|
export function ExpandedLink({
|
|
10
10
|
attachment,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { PlatformPressable } from '@react-navigation/elements'
|
|
1
2
|
import React from 'react'
|
|
2
3
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import { DenormalizedMessageAttachmentResource } from '../../../types/resources/denormalized_attachment_resource'
|
|
4
|
-
import { AttachmentCard, AttachmentCardTitle } from './attachment_card'
|
|
5
|
-
import { Icon } from '../../display'
|
|
6
4
|
import { useTheme } from '../../../hooks'
|
|
7
|
-
import {
|
|
8
|
-
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
5
|
+
import { DenormalizedMessageAttachmentResource } from '../../../types/resources/denormalized_attachment_resource'
|
|
9
6
|
import { Linking } from '../../../utils'
|
|
7
|
+
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
8
|
+
import { Icon } from '../../display'
|
|
9
|
+
import { AttachmentCard, AttachmentCardTitle } from './attachment_card'
|
|
10
10
|
import { AttachmentDeletingOverlay } from './attachment_deleting_overlay'
|
|
11
11
|
|
|
12
12
|
export function GenericFileAttachment({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { PlatformPressable } from '@react-navigation/elements'
|
|
1
2
|
import React from 'react'
|
|
2
3
|
import { Text, StyleSheet, Linking } from 'react-native'
|
|
3
|
-
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
4
4
|
import { useTheme } from '../../../hooks'
|
|
5
5
|
import { DenormalizedGiphyAttachmentResource } from '../../../types/resources/denormalized_attachment_resource'
|
|
6
|
-
import { PlatformPressable } from '@react-navigation/elements'
|
|
7
|
-
import { Image } from '../../display'
|
|
8
6
|
import { assertKeysAreNumbers } from '../../../utils'
|
|
7
|
+
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
8
|
+
import { Image } from '../../display'
|
|
9
9
|
|
|
10
10
|
export function GiphyAttachment({
|
|
11
11
|
attachment,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PlatformPressable } from '@react-navigation/elements'
|
|
2
|
+
import colorFunction from 'color'
|
|
1
3
|
import React, { useMemo, useState, Dispatch, SetStateAction, useCallback, useRef } from 'react'
|
|
2
4
|
import {
|
|
3
5
|
StatusBar,
|
|
@@ -10,7 +12,6 @@ import {
|
|
|
10
12
|
NativeScrollEvent,
|
|
11
13
|
ViewToken,
|
|
12
14
|
} from 'react-native'
|
|
13
|
-
import { useSafeAreaInsets, SafeAreaProvider } from 'react-native-safe-area-context'
|
|
14
15
|
import {
|
|
15
16
|
FlatList,
|
|
16
17
|
Gesture,
|
|
@@ -26,14 +27,13 @@ import Animated, {
|
|
|
26
27
|
withDecay,
|
|
27
28
|
SharedValue,
|
|
28
29
|
} from 'react-native-reanimated'
|
|
29
|
-
import {
|
|
30
|
-
import { IconButton, Image, Heading, Text } from '../../display'
|
|
31
|
-
import colorFunction from 'color'
|
|
32
|
-
import { formatDatePreview } from '../../../utils/date'
|
|
33
|
-
import { DenormalizedMessageAttachmentResource } from '../../../types/resources/denormalized_attachment_resource'
|
|
34
|
-
import { PlatformPressable } from '@react-navigation/elements'
|
|
30
|
+
import { useSafeAreaInsets, SafeAreaProvider } from 'react-native-safe-area-context'
|
|
35
31
|
import { useTheme } from '../../../hooks'
|
|
32
|
+
import { DenormalizedMessageAttachmentResource } from '../../../types/resources/denormalized_attachment_resource'
|
|
36
33
|
import { Haptic, platformFontWeightMedium } from '../../../utils'
|
|
34
|
+
import { formatDatePreview } from '../../../utils/date'
|
|
35
|
+
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
36
|
+
import { IconButton, Image, Heading, Text } from '../../display'
|
|
37
37
|
import { AttachmentDeletingOverlay } from './attachment_deleting_overlay'
|
|
38
38
|
|
|
39
39
|
const { width: WINDOW_WIDTH, height: WINDOW_HEIGHT } = Dimensions.get('window')
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { PlatformPressable } from '@react-navigation/elements'
|
|
1
2
|
import React, { useRef, useState } from 'react'
|
|
2
3
|
import { View, StyleSheet } from 'react-native'
|
|
4
|
+
import { useTheme } from '../../../hooks'
|
|
3
5
|
import { DenormalizedMessageAttachmentResource } from '../../../types/resources/denormalized_attachment_resource'
|
|
4
|
-
import { MESSAGE_ATTACHMENT_WIDTH_SINGLE } from './constants'
|
|
5
|
-
import { Icon } from '../../display'
|
|
6
6
|
import { Video, VideoPlayerHandle } from '../../../utils/native_adapters'
|
|
7
|
-
import { PlatformPressable } from '@react-navigation/elements'
|
|
8
|
-
import { useTheme } from '../../../hooks'
|
|
9
7
|
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
8
|
+
import { Icon } from '../../display'
|
|
10
9
|
import { AttachmentDeletingOverlay } from './attachment_deleting_overlay'
|
|
10
|
+
import { MESSAGE_ATTACHMENT_WIDTH_SINGLE } from './constants'
|
|
11
11
|
|
|
12
12
|
export function VideoAttachment({
|
|
13
13
|
attachment,
|
|
@@ -8,8 +8,8 @@ import Animated, {
|
|
|
8
8
|
ReduceMotion,
|
|
9
9
|
withSpring,
|
|
10
10
|
} from 'react-native-reanimated'
|
|
11
|
-
import { platformFontWeightMedium } from '../../utils'
|
|
12
11
|
import { useTheme } from '../../hooks'
|
|
12
|
+
import { platformFontWeightMedium } from '../../utils'
|
|
13
13
|
import { Icon, Text } from '../display'
|
|
14
14
|
|
|
15
15
|
interface JumpToBottomButtonProps {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useNavigation } from '@react-navigation/native'
|
|
2
|
+
import { some } from 'lodash'
|
|
2
3
|
import React, { useEffect } from 'react'
|
|
3
4
|
import {
|
|
4
5
|
AccessibilityActionEvent,
|
|
@@ -7,6 +8,7 @@ import {
|
|
|
7
8
|
useWindowDimensions,
|
|
8
9
|
View,
|
|
9
10
|
} from 'react-native'
|
|
11
|
+
import Animated from 'react-native-reanimated'
|
|
10
12
|
import { MessageReaction } from '../../components/conversation/message_reaction'
|
|
11
13
|
import { Avatar, Icon, Spinner, Text, TextButton, TextInlineButton } from '../../components/display'
|
|
12
14
|
import {
|
|
@@ -14,28 +16,26 @@ import {
|
|
|
14
16
|
useInteractionGhostBackgroundColor,
|
|
15
17
|
useTheme,
|
|
16
18
|
} from '../../hooks'
|
|
19
|
+
import { useDeletingIds } from '../../hooks'
|
|
20
|
+
import { useConversationMessage } from '../../hooks/use_conversation_message'
|
|
21
|
+
import { useLiveRelativeTime } from '../../hooks/use_live_relative_time'
|
|
22
|
+
import { useMessageCreateOrUpdate } from '../../hooks/use_message_create_or_update'
|
|
17
23
|
import { MessageResource } from '../../types'
|
|
18
|
-
import { ReactionCountResource } from '../../types/resources/reaction'
|
|
19
|
-
import { MessageAttachments } from './message_attachments'
|
|
20
|
-
import ErrorBoundary from '../page/error_boundary'
|
|
21
|
-
import { MessageMarkdown } from './message_markdown'
|
|
22
24
|
import { DenormalizedMessageAttachmentResource } from '../../types/resources/denormalized_attachment_resource'
|
|
25
|
+
import { ReactionCountResource } from '../../types/resources/reaction'
|
|
26
|
+
import { pluralize } from '../../utils'
|
|
27
|
+
import { isNewMessage } from '../../utils/cache/messages_cache'
|
|
28
|
+
import { Haptic } from '../../utils/native_adapters'
|
|
23
29
|
import {
|
|
24
30
|
CONVERSATION_MESSAGE_LIST_PADDING_HORIZONTAL,
|
|
25
31
|
MESSAGE_AUTHOR_AVATAR_COLUMN_WIDTH,
|
|
26
32
|
platformFontWeightMedium,
|
|
27
33
|
} from '../../utils/styles'
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
34
|
+
import ErrorBoundary from '../page/error_boundary'
|
|
35
|
+
import { MessageAttachments } from './message_attachments'
|
|
36
|
+
import { MessageMarkdown } from './message_markdown'
|
|
30
37
|
import { MessageReadReceipts } from './message_read_receipts'
|
|
31
|
-
import { useMessageCreateOrUpdate } from '../../hooks/use_message_create_or_update'
|
|
32
|
-
import { Haptic } from '../../utils/native_adapters'
|
|
33
38
|
import { TheirReplyConnector, MyReplyConnector, AVATAR_CONNECTOR_SPACING } from './reply_connectors'
|
|
34
|
-
import { pluralize } from '../../utils'
|
|
35
|
-
import { useConversationMessage } from '../../hooks/use_conversation_message'
|
|
36
|
-
import { some } from 'lodash'
|
|
37
|
-
import { isNewMessage } from '../../utils/cache/messages_cache'
|
|
38
|
-
import { useDeletingIds } from '../../hooks'
|
|
39
39
|
|
|
40
40
|
/** Message
|
|
41
41
|
* Component for display of a message within a conversation list
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { View, StyleSheet } from 'react-native'
|
|
3
|
+
import { useDeletingIds } from '../../hooks'
|
|
3
4
|
import {
|
|
4
5
|
DenormalizedAttachmentResource,
|
|
5
6
|
DenormalizedMessageAttachmentResource,
|
|
6
7
|
} from '../../types/resources/denormalized_attachment_resource'
|
|
7
8
|
import { AudioAttachment } from './attachments/audio_attachment'
|
|
8
|
-
import { VideoAttachment } from './attachments/video_attachment'
|
|
9
|
-
import { GiphyAttachment } from './attachments/giphy_attachment'
|
|
10
|
-
import { GenericFileAttachment } from './attachments/generic_file_attachment'
|
|
11
9
|
import { ExpandedLink } from './attachments/expanded_link'
|
|
10
|
+
import { GenericFileAttachment } from './attachments/generic_file_attachment'
|
|
11
|
+
import { GiphyAttachment } from './attachments/giphy_attachment'
|
|
12
12
|
import { ImageAttachment, type MetaProps } from './attachments/image_attachment'
|
|
13
|
-
import {
|
|
13
|
+
import { VideoAttachment } from './attachments/video_attachment'
|
|
14
14
|
|
|
15
15
|
export function MessageAttachments(props: {
|
|
16
16
|
attachments: DenormalizedAttachmentResource[]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { ImageAttachmentPreview } from '../../display'
|
|
3
2
|
import { FileAttachment } from '../../../types/resources/denormalized_attachment_resource_for_create'
|
|
3
|
+
import { ImageAttachmentPreview } from '../../display'
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
6
6
|
uri: string
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { VideoAttachmentPreview } from '../../display'
|
|
3
2
|
import { FileAttachment } from '../../../types/resources/denormalized_attachment_resource_for_create'
|
|
3
|
+
import { VideoAttachmentPreview } from '../../display'
|
|
4
4
|
|
|
5
5
|
interface Props {
|
|
6
6
|
status: FileAttachment['status']
|
|
@@ -11,7 +11,9 @@ import {
|
|
|
11
11
|
ViewProps,
|
|
12
12
|
Keyboard,
|
|
13
13
|
} from 'react-native'
|
|
14
|
+
import LinearGradient from 'react-native-linear-gradient'
|
|
14
15
|
import { Heading, Icon, IconButton, IconString, Text, TextButton } from '../../components'
|
|
16
|
+
import { ChatContext } from '../../contexts/chat_context'
|
|
15
17
|
import {
|
|
16
18
|
useCreateAndroidRippleColor,
|
|
17
19
|
useTheme,
|
|
@@ -19,31 +21,27 @@ import {
|
|
|
19
21
|
useScalableNumberOfLines,
|
|
20
22
|
useFontScale,
|
|
21
23
|
} from '../../hooks'
|
|
22
|
-
import { ConversationResource, MessageResource } from '../../types'
|
|
23
|
-
|
|
24
|
-
import { ConversationScreenProps } from '../../screens/conversation_screen'
|
|
25
|
-
|
|
26
|
-
import { ChatContext } from '../../contexts/chat_context'
|
|
27
|
-
import { Haptic, ImagePicker, ImagePickerResult } from '../../utils/native_adapters'
|
|
28
|
-
import {
|
|
29
|
-
MAX_FONT_SIZE_MULTIPLIER_LANDMARK,
|
|
30
|
-
platformFontWeightMedium,
|
|
31
|
-
platformPressedOpacityStyle,
|
|
32
|
-
} from '../../utils'
|
|
33
24
|
import { useAttachmentUploader } from '../../hooks/use_attachment_uploader'
|
|
25
|
+
import { useBroadcastTypingStatus } from '../../hooks/use_broadcast_typing_status'
|
|
26
|
+
import { useMessageCreateOrUpdate } from '../../hooks/use_message_create_or_update'
|
|
34
27
|
import { useMessageDraft } from '../../hooks/use_message_draft'
|
|
28
|
+
import { ConversationScreenProps } from '../../screens/conversation_screen'
|
|
29
|
+
import { ConversationResource, MessageResource } from '../../types'
|
|
35
30
|
import {
|
|
36
31
|
DenormalizedAttachmentResourceForCreate,
|
|
37
32
|
DenormalizedMessageAttachmentResourceForCreate,
|
|
38
33
|
} from '../../types/resources/denormalized_attachment_resource_for_create'
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
import {
|
|
35
|
+
MAX_FONT_SIZE_MULTIPLIER_LANDMARK,
|
|
36
|
+
platformFontWeightMedium,
|
|
37
|
+
platformPressedOpacityStyle,
|
|
38
|
+
} from '../../utils'
|
|
39
|
+
import { Haptic, ImagePicker, ImagePickerResult } from '../../utils/native_adapters'
|
|
42
40
|
import { tokens } from '../../vendor/tapestry/tokens'
|
|
43
|
-
import LinearGradient from 'react-native-linear-gradient'
|
|
44
|
-
import { MessageFormAttachmentVideo } from './message_form/message_form_attachment_video'
|
|
45
|
-
import BannerPrimitive from '../primitive/banner_primitive'
|
|
46
41
|
import { Button } from '../display/button'
|
|
42
|
+
import BannerPrimitive from '../primitive/banner_primitive'
|
|
43
|
+
import { MessageFormAttachmentImage } from './message_form/message_form_attachment_image'
|
|
44
|
+
import { MessageFormAttachmentVideo } from './message_form/message_form_attachment_video'
|
|
47
45
|
|
|
48
46
|
export const MessageForm = {
|
|
49
47
|
Root: MessageFormRoot,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet } from 'react-native'
|
|
3
|
-
import { Text, TextInlineButton } from '../display'
|
|
4
|
-
import { parseSimpleMarkdown } from '../../utils/parse_simple_markdown'
|
|
5
3
|
import { Linking } from '../../utils/native_adapters'
|
|
4
|
+
import { parseSimpleMarkdown } from '../../utils/parse_simple_markdown'
|
|
5
|
+
import { Text, TextInlineButton } from '../display'
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
8
|
text: string
|
|
@@ -4,12 +4,12 @@ import React, { useMemo } from 'react'
|
|
|
4
4
|
import { StyleSheet } from 'react-native'
|
|
5
5
|
import { Text } from '../../components/display'
|
|
6
6
|
import { useInteractionGhostBackgroundColor, useTheme } from '../../hooks'
|
|
7
|
+
import { useCreateAndroidRippleColor } from '../../hooks/use_create_android_ripple_color'
|
|
7
8
|
import { useMessageReactionToggle } from '../../hooks/use_message_reaction_toggle'
|
|
8
|
-
import { ReactionCountResource } from '../../types/resources/reaction'
|
|
9
9
|
import { MessageResource } from '../../types'
|
|
10
|
-
import {
|
|
11
|
-
import { Haptic } from '../../utils/native_adapters'
|
|
10
|
+
import { ReactionCountResource } from '../../types/resources/reaction'
|
|
12
11
|
import { REACTION_EMOJIS } from '../../utils'
|
|
12
|
+
import { Haptic } from '../../utils/native_adapters'
|
|
13
13
|
|
|
14
14
|
export function MessageReaction({
|
|
15
15
|
reaction,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { MessageResource } from '../../types'
|
|
3
2
|
import { StyleSheet, View } from 'react-native'
|
|
4
|
-
import { Icon, Text } from '../display'
|
|
5
3
|
import { useTheme } from '../../hooks'
|
|
4
|
+
import { MessageResource } from '../../types'
|
|
5
|
+
import { Icon, Text } from '../display'
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
8
|
message: MessageResource
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StyleSheet, View, type ViewStyle } from 'react-native'
|
|
2
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
2
3
|
import { useTheme } from '../../hooks'
|
|
3
4
|
import { Text } from '../display'
|
|
4
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
5
5
|
|
|
6
6
|
export const LeaderMessagesDisabledBanner = () => {
|
|
7
7
|
return (
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { useNavigation } from '@react-navigation/native'
|
|
2
|
+
import { some } from 'lodash'
|
|
1
3
|
import React from 'react'
|
|
2
4
|
import { Pressable, StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
3
|
-
import
|
|
5
|
+
import Animated from 'react-native-reanimated'
|
|
4
6
|
import {
|
|
5
7
|
useAnimatedMessageBackgroundColor,
|
|
6
8
|
useFontScale,
|
|
7
9
|
useScalableNumberOfLines,
|
|
8
10
|
useTheme,
|
|
9
11
|
} from '../../hooks'
|
|
12
|
+
import { useConversationMessage } from '../../hooks/use_conversation_message'
|
|
13
|
+
import { useLiveRelativeTime } from '../../hooks/use_live_relative_time'
|
|
10
14
|
import { MessageResource } from '../../types'
|
|
11
15
|
import {
|
|
12
16
|
DenormalizedAttachmentResource,
|
|
@@ -14,19 +18,15 @@ import {
|
|
|
14
18
|
DenormalizedExpandedLinkAttachmentResource,
|
|
15
19
|
DenormalizedMessageAttachmentResource,
|
|
16
20
|
} from '../../types/resources/denormalized_attachment_resource'
|
|
21
|
+
import { assertKeysAreNumbers, pluralize } from '../../utils'
|
|
17
22
|
import {
|
|
18
23
|
CONVERSATION_MESSAGE_LIST_PADDING_HORIZONTAL,
|
|
19
24
|
MAX_FONT_SIZE_MULTIPLIER,
|
|
20
25
|
MESSAGE_AUTHOR_AVATAR_COLUMN_WIDTH,
|
|
21
26
|
platformFontWeightMedium,
|
|
22
27
|
} from '../../utils/styles'
|
|
23
|
-
import
|
|
28
|
+
import { Avatar, Icon, IconProps, Image, Text } from '../display'
|
|
24
29
|
import { TheirReplyConnector, MyReplyConnector } from './reply_connectors'
|
|
25
|
-
import { assertKeysAreNumbers, pluralize } from '../../utils'
|
|
26
|
-
import { useNavigation } from '@react-navigation/native'
|
|
27
|
-
import { useConversationMessage } from '../../hooks/use_conversation_message'
|
|
28
|
-
import { useLiveRelativeTime } from '../../hooks/use_live_relative_time'
|
|
29
|
-
import { some } from 'lodash'
|
|
30
30
|
|
|
31
31
|
interface ReplyShadowMessageProps extends MessageResource {
|
|
32
32
|
messageId: string
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useEffect } from 'react'
|
|
2
2
|
import { StyleSheet, View, Animated } from 'react-native'
|
|
3
|
-
import { Text } from '../display'
|
|
4
3
|
import { useTheme } from '../../hooks'
|
|
5
4
|
import { useTypingIndicators, getTypingIndicatorText } from '../../hooks/use_typing_indicators'
|
|
5
|
+
import { Text } from '../display'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Animated dots to indicate typing
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View, ViewStyle } from 'react-native'
|
|
3
|
-
import { ConversationResource } from '../../types'
|
|
4
|
-
import { AvatarGroup, Heading, Text, Badge, type BadgeProps } from '../display'
|
|
5
|
-
import { formatDatePreview } from '../../utils/date'
|
|
6
3
|
import {
|
|
7
4
|
useTheme,
|
|
8
5
|
useAtFontScaleBreakpoint,
|
|
9
6
|
useFontScale,
|
|
10
7
|
useScalableNumberOfLines,
|
|
11
8
|
} from '../../hooks'
|
|
12
|
-
import {
|
|
9
|
+
import { ConversationResource } from '../../types'
|
|
10
|
+
import { formatDatePreview } from '../../utils/date'
|
|
11
|
+
import { AvatarGroup, Heading, Text, Badge, type BadgeProps } from '../display'
|
|
13
12
|
import { ConversationActions } from './conversation_actions'
|
|
14
13
|
import { MuteIndicator } from './mute_indicator'
|
|
14
|
+
import { UnreadCountBadge } from './unread_count_badge'
|
|
15
15
|
|
|
16
16
|
const EMPTY_CONVERSATION_PREVIEW_TEXT = 'Send your first message'
|
|
17
17
|
|
|
@@ -3,11 +3,11 @@ import React, { useMemo } from 'react'
|
|
|
3
3
|
import { FlatList, StyleSheet, View } from 'react-native'
|
|
4
4
|
import { useConversationsContext } from '../../contexts/conversations_context'
|
|
5
5
|
import { useTheme } from '../../hooks'
|
|
6
|
+
import { useConversationsJoltEvents } from '../../hooks/use_conversations_jolt_events'
|
|
6
7
|
import { ConversationResource } from '../../types'
|
|
7
8
|
import { throwResponseError } from '../../utils/response_error'
|
|
8
9
|
import BlankState from '../primitive/blank_state_primitive'
|
|
9
10
|
import { ConversationPreview, ConversationPreviewSkeleton } from './conversation_preview'
|
|
10
|
-
import { useConversationsJoltEvents } from '../../hooks/use_conversations_jolt_events'
|
|
11
11
|
|
|
12
12
|
interface ConversationsProps {
|
|
13
13
|
ListHeaderComponent?:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet } from 'react-native'
|
|
3
|
-
import { Icon } from '../display'
|
|
4
3
|
import { useTheme } from '../../hooks'
|
|
5
4
|
import { MAX_FONT_SIZE_MULTIPLIER } from '../../utils'
|
|
5
|
+
import { Icon } from '../display'
|
|
6
6
|
|
|
7
7
|
export const MuteIndicator = ({ muted }: { muted: boolean }) => {
|
|
8
8
|
const styles = useStyles()
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet } from 'react-native'
|
|
3
3
|
import { Pressable, type PressableProps } from 'react-native-gesture-handler'
|
|
4
|
-
import { Icon, IconString, Spinner, Text } from '../display'
|
|
5
4
|
import { useCreateAndroidRippleColor, useTheme } from '../../hooks'
|
|
5
|
+
import { Haptic } from '../../utils/native_adapters/configuration'
|
|
6
6
|
import {
|
|
7
7
|
MAX_FONT_SIZE_MULTIPLIER,
|
|
8
8
|
platformFontWeightMedium,
|
|
9
9
|
platformPressedOpacityStyle,
|
|
10
10
|
} from '../../utils/styles'
|
|
11
11
|
import { tokens } from '../../vendor/tapestry/tokens'
|
|
12
|
-
import {
|
|
12
|
+
import { Icon, IconString, Spinner, Text } from '../display'
|
|
13
13
|
|
|
14
14
|
interface SwipeableToggleButtonProps extends PressableProps {
|
|
15
15
|
backgroundColor: string
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import { Text } from '../display'
|
|
4
3
|
import { useFontScale, useTheme } from '../../hooks'
|
|
5
4
|
import { MAX_FONT_SIZE_MULTIPLIER, platformFontWeightBold } from '../../utils'
|
|
5
|
+
import { Text } from '../display'
|
|
6
6
|
|
|
7
7
|
export const UnreadCountBadge = ({ count, showDot }: { count: number; showDot: boolean }) => {
|
|
8
8
|
const styles = useStyles()
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import { Animated, LayoutAnimation, StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
3
|
-
import { Button } from './button'
|
|
4
2
|
import { useEffect } from 'react'
|
|
3
|
+
import { Animated, LayoutAnimation, StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
5
4
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
6
5
|
import { useTheme } from '../../hooks'
|
|
7
|
-
import { Text } from './text'
|
|
8
|
-
import { IconString } from './icon'
|
|
9
6
|
import { MAX_FONT_SIZE_MULTIPLIER_LANDMARK } from '../../utils'
|
|
7
|
+
import { Button } from './button'
|
|
8
|
+
import { IconString } from './icon'
|
|
9
|
+
import { Text } from './text'
|
|
10
10
|
|
|
11
11
|
export const ActionButton = ({
|
|
12
12
|
visible = true,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { isValidElement, ReactElement } from 'react'
|
|
2
|
+
import { ViewStyle } from 'react-native'
|
|
2
3
|
import BannerPrimitive, {
|
|
3
4
|
type BannerStatusIconProps,
|
|
4
5
|
type BannerRootProps,
|
|
5
6
|
} from '../primitive/banner_primitive'
|
|
6
|
-
import { ViewStyle } from 'react-native'
|
|
7
7
|
|
|
8
8
|
type descriptionUnion = string | ReactElement | undefined
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react'
|
|
2
|
-
import { BannerProps, ConditionalDescription } from './banner'
|
|
3
2
|
import BannerPrimitive from '../primitive/banner_primitive'
|
|
3
|
+
import { BannerProps, ConditionalDescription } from './banner'
|
|
4
4
|
|
|
5
5
|
// =================================
|
|
6
6
|
// ====== Component ================
|