@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,20 +1,20 @@
|
|
|
1
1
|
import { InfiniteData, useMutation } from '@tanstack/react-query'
|
|
2
|
-
import { getMessagesQueryKey, getMessagesRequestArgs } from '../utils/request/get_messages'
|
|
3
|
-
import { useApiClient } from './use_api_client'
|
|
4
|
-
import { ApiCollection, ApiResource, MessageResource } from '../types'
|
|
5
2
|
import { chatQueryClient } from '../contexts/api_provider'
|
|
3
|
+
import { ApiCollection, ApiResource, MessageResource } from '../types'
|
|
4
|
+
import { DenormalizedAttachmentResourceForCreate } from '../types/resources/denormalized_attachment_resource_for_create'
|
|
6
5
|
import {
|
|
7
6
|
deleteRecordInPagesData,
|
|
8
7
|
Haptic,
|
|
9
8
|
updateOrCreateRecordInPagesData,
|
|
10
9
|
updateRecordInPagesData,
|
|
11
10
|
} from '../utils'
|
|
12
|
-
import {
|
|
13
|
-
import { useCurrentPerson } from './use_current_person'
|
|
14
|
-
import { optimisticallyUpdateMessage } from '../utils/cache/optimistically_update_message'
|
|
11
|
+
import { isNewMessage, mergeMessageUpdate } from '../utils/cache/messages_cache'
|
|
15
12
|
import { optimisticallyCreateMessage } from '../utils/cache/optimistically_create_message'
|
|
13
|
+
import { optimisticallyUpdateMessage } from '../utils/cache/optimistically_update_message'
|
|
16
14
|
import { startMessageCreationTracking } from '../utils/performance_tracking'
|
|
17
|
-
import {
|
|
15
|
+
import { getMessagesQueryKey, getMessagesRequestArgs } from '../utils/request/get_messages'
|
|
16
|
+
import { useApiClient } from './use_api_client'
|
|
17
|
+
import { useCurrentPerson } from './use_current_person'
|
|
18
18
|
|
|
19
19
|
interface Props {
|
|
20
20
|
conversationId: number
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
|
2
|
-
import { useAsyncStorage } from './use_async_storage'
|
|
3
|
-
import type { FileAttachment } from '../types/resources/denormalized_attachment_resource_for_create'
|
|
4
2
|
import { useConversationContext } from '../contexts/conversation_context'
|
|
3
|
+
import type { FileAttachment } from '../types/resources/denormalized_attachment_resource_for_create'
|
|
4
|
+
import { useAsyncStorage } from './use_async_storage'
|
|
5
5
|
|
|
6
6
|
interface MessageDraft {
|
|
7
7
|
text: string
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { InfiniteData, useMutation, useQueryClient } from '@tanstack/react-query'
|
|
2
2
|
import { useCallback } from 'react'
|
|
3
3
|
import { Alert } from 'react-native'
|
|
4
|
-
import { useApiClient } from './use_api_client'
|
|
5
|
-
import { getMessagesQueryKey, getMessagesRequestArgs } from '../utils/request/get_messages'
|
|
6
4
|
import { ApiCollection, ApiResource, MessageResource } from '../types'
|
|
7
5
|
import { ReactionCountResource } from '../types/resources/reaction'
|
|
8
6
|
import { updateRecordInPagesData, REACTION_EMOJIS } from '../utils'
|
|
7
|
+
import { getMessagesQueryKey, getMessagesRequestArgs } from '../utils/request/get_messages'
|
|
8
|
+
import { useApiClient } from './use_api_client'
|
|
9
9
|
|
|
10
10
|
const REACT = 1
|
|
11
11
|
const UNREACT = -1
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ResourceObject } from '../types/api_primitives'
|
|
2
|
+
import { useApiGet } from './use_api'
|
|
3
|
+
import { availableFeatures, useFeatures } from './use_features'
|
|
4
|
+
|
|
5
|
+
interface GenderResource extends ResourceObject {
|
|
6
|
+
type: 'Gender'
|
|
7
|
+
value: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface PersonWithGender extends ResourceObject {
|
|
11
|
+
type: 'Person'
|
|
12
|
+
gender: GenderResource | undefined
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function useMyGender() {
|
|
16
|
+
const { featureEnabled } = useFeatures()
|
|
17
|
+
const isFeatureEnabled = featureEnabled(availableFeatures.gender_specific_conversations)
|
|
18
|
+
|
|
19
|
+
const { data, isFetching } = useApiGet<PersonWithGender>({
|
|
20
|
+
url: '/me',
|
|
21
|
+
enabled: isFeatureEnabled,
|
|
22
|
+
data: {
|
|
23
|
+
include: ['gender'],
|
|
24
|
+
fields: {
|
|
25
|
+
Person: ['gender'],
|
|
26
|
+
Gender: ['value'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
app: 'people',
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
const gender = data?.gender
|
|
33
|
+
const genderValue = gender?.value ?? null
|
|
34
|
+
const genderId = gender?.id ? String(gender.id) : null
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
isFeatureEnabled,
|
|
38
|
+
genderValue,
|
|
39
|
+
genderId,
|
|
40
|
+
isFetching,
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef } from 'react'
|
|
2
|
-
import { SHA256, enc } from '../utils/sha_256'
|
|
3
2
|
import { useChatContext } from '../contexts/chat_context'
|
|
4
3
|
import { ProductAnalyticsConfig } from '../types/product_analytics'
|
|
5
|
-
import { keysToSnakeCase } from '../utils/client/utils'
|
|
6
4
|
import { AnalyticsMetadataResource } from '../types/resources/analytics_metadata'
|
|
5
|
+
import { keysToSnakeCase } from '../utils/client/utils'
|
|
6
|
+
import { SHA256, enc } from '../utils/sha_256'
|
|
7
7
|
|
|
8
8
|
export interface EventMetadata {
|
|
9
9
|
[key: string]: string | number | boolean | null | undefined
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query'
|
|
2
|
-
import { useApiClient } from './use_api_client'
|
|
3
|
-
import { Haptic } from '../utils/native_adapters'
|
|
4
2
|
import { MessageReportReason, MessageReportPayload } from '../types/resources/message_report'
|
|
3
|
+
import { Haptic } from '../utils/native_adapters'
|
|
4
|
+
import { useApiClient } from './use_api_client'
|
|
5
5
|
|
|
6
6
|
export const useReportMessage = (conversationId: number, messageId: string) => {
|
|
7
7
|
const apiClient = useApiClient()
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Alert } from 'react-native'
|
|
2
1
|
import { useMutation, useQueryClient } from '@tanstack/react-query'
|
|
3
|
-
import {
|
|
4
|
-
import { currentPersonQueryKey } from './use_current_person'
|
|
2
|
+
import { Alert } from 'react-native'
|
|
5
3
|
import { ApiResource } from '../types/api_primitives'
|
|
6
4
|
import { Haptic } from '../utils/native_adapters'
|
|
5
|
+
import { useApiClient } from './use_api_client'
|
|
6
|
+
import { currentPersonQueryKey } from './use_current_person'
|
|
7
7
|
|
|
8
8
|
interface AgeCheckResource {
|
|
9
9
|
type: 'AgeCheck'
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
UseSuspenseQueryOptions,
|
|
7
7
|
} from '@tanstack/react-query'
|
|
8
8
|
import { ApiCollection, ApiResource, ResourceObject } from '../types'
|
|
9
|
-
import { GetRequest, RequestData } from '../utils/client'
|
|
10
|
-
import { App, useApiClient } from './use_api_client'
|
|
11
|
-
import { Log } from '../utils'
|
|
12
9
|
import { FailedResponse } from '../types/api_primitives'
|
|
10
|
+
import { Log } from '../utils'
|
|
11
|
+
import { GetRequest, RequestData } from '../utils/client'
|
|
13
12
|
import { ResponseError } from '../utils/response_error'
|
|
13
|
+
import { App, useApiClient } from './use_api_client'
|
|
14
14
|
|
|
15
15
|
interface SuspenseGetOptions extends GetRequest {
|
|
16
16
|
app?: App
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query'
|
|
2
2
|
import { useMemo } from 'react'
|
|
3
|
-
import { PersonTyping } from './use_typing_status_cache'
|
|
4
|
-
import { useCurrentPerson } from './use_current_person'
|
|
5
3
|
import { useConversationContext } from '../contexts/conversation_context'
|
|
4
|
+
import { useCurrentPerson } from './use_current_person'
|
|
5
|
+
import { PersonTyping } from './use_typing_status_cache'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Hook for getting people currently typing in a conversation
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { PropsWithChildren, useEffect, useRef } from 'react'
|
|
2
|
-
import { currentPersonRequestArgs } from '../hooks/use_current_person'
|
|
3
|
-
import { AgeCheckRequiredScreen } from '../screens/age_check/age_check_required_screen'
|
|
4
2
|
import { DefaultLoading } from '../components/page/loading'
|
|
5
|
-
import { useApiGet, useOrganization } from '../hooks'
|
|
6
|
-
import { AgeQualificationStatus, CurrentPersonResource } from '../types'
|
|
7
3
|
import { useChatContext } from '../contexts/chat_context'
|
|
4
|
+
import { useApiGet, useOrganization } from '../hooks'
|
|
5
|
+
import { currentPersonRequestArgs } from '../hooks/use_current_person'
|
|
6
|
+
import { AgeCheckRequiredScreen } from '../screens/age_check/age_check_required_screen'
|
|
8
7
|
import { AgeCheckUnderageScreen } from '../screens/age_check/age_check_underage_screen'
|
|
8
|
+
import { AgeQualificationStatus, CurrentPersonResource } from '../types'
|
|
9
9
|
|
|
10
10
|
export function ChatAccessGate({ children }: PropsWithChildren) {
|
|
11
11
|
const { data: person, isFetched } = useApiGet<CurrentPersonResource>(currentPersonRequestArgs)
|
package/src/navigation/index.tsx
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
HeaderDoneButton,
|
|
13
13
|
HeaderTextButton,
|
|
14
14
|
} from '../components/display/platform_modal_header_buttons'
|
|
15
|
+
import { useQualifiedByAge } from '../hooks'
|
|
15
16
|
import {
|
|
16
17
|
AttachmentActionsScreen,
|
|
17
18
|
AttachmentActionsScreenOptions,
|
|
@@ -32,14 +33,18 @@ import {
|
|
|
32
33
|
ConversationFiltersScreenOptions,
|
|
33
34
|
} from '../screens/conversation_filters_screen'
|
|
34
35
|
import { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen'
|
|
36
|
+
import {
|
|
37
|
+
ConversationNotificationLevelSelectScreen,
|
|
38
|
+
ConversationNotificationLevelSelectScreenOptions,
|
|
39
|
+
} from '../screens/conversation_notification_level_select_screen'
|
|
35
40
|
import {
|
|
36
41
|
ConversationRouteProps,
|
|
37
42
|
ConversationScreen,
|
|
38
43
|
ConversationScreenTitle,
|
|
39
44
|
} from '../screens/conversation_screen'
|
|
45
|
+
import { ConversationNewEntryScreen } from '../screens/conversation_select_recipients/conversation_new_entry_screen'
|
|
40
46
|
import { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen'
|
|
41
47
|
import { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen'
|
|
42
|
-
import { ConversationNewEntryScreen } from '../screens/conversation_select_recipients/conversation_new_entry_screen'
|
|
43
48
|
import { ConversationSelectRecipientsParams } from '../screens/conversation_select_recipients/types/screen_props'
|
|
44
49
|
import {
|
|
45
50
|
ConversationSelectTypeScreen,
|
|
@@ -47,6 +52,11 @@ import {
|
|
|
47
52
|
} from '../screens/conversation_select_type_screen'
|
|
48
53
|
import { ConversationsScreen } from '../screens/conversations/conversations_screen'
|
|
49
54
|
import { GetHelpScreen } from '../screens/get_help_screen'
|
|
55
|
+
import {
|
|
56
|
+
GroupNotificationLevelSelectScreen,
|
|
57
|
+
GroupNotificationLevelSelectScreenOptions,
|
|
58
|
+
} from '../screens/group_notification_level_select_screen'
|
|
59
|
+
import { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen'
|
|
50
60
|
import {
|
|
51
61
|
MessageActionsScreen,
|
|
52
62
|
MessageActionsScreenOptions,
|
|
@@ -55,20 +65,10 @@ import { MessageReportScreen, MessageReportScreenOptions } from '../screens/mess
|
|
|
55
65
|
import { NotFound } from '../screens/not_found'
|
|
56
66
|
import { NotificationSettingsScreen } from '../screens/notification_settings_screen'
|
|
57
67
|
import { PreferredAppSelectionScreen } from '../screens/preferred_app_selection_screen'
|
|
58
|
-
import { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen'
|
|
59
|
-
import {
|
|
60
|
-
GroupNotificationLevelSelectScreen,
|
|
61
|
-
GroupNotificationLevelSelectScreenOptions,
|
|
62
|
-
} from '../screens/group_notification_level_select_screen'
|
|
63
|
-
import {
|
|
64
|
-
ConversationNotificationLevelSelectScreen,
|
|
65
|
-
ConversationNotificationLevelSelectScreenOptions,
|
|
66
|
-
} from '../screens/conversation_notification_level_select_screen'
|
|
67
68
|
import { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen'
|
|
68
|
-
import { ScreenLayoutWithChatAccessGate } from './screenLayout'
|
|
69
69
|
import { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen'
|
|
70
70
|
import { TeamConversationScreen } from '../screens/team_conversation_screen'
|
|
71
|
-
import {
|
|
71
|
+
import { ScreenLayoutWithChatAccessGate } from './screenLayout'
|
|
72
72
|
|
|
73
73
|
const HEADER_BACK_BUTTON_LAYOUT_RESET_STYLES = {
|
|
74
74
|
marginLeft: Platform.select({ ios: -8, default: -3 }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import ErrorBoundary from '../components/page/error_boundary'
|
|
3
2
|
import { Suspense } from 'react'
|
|
3
|
+
import ErrorBoundary from '../components/page/error_boundary'
|
|
4
4
|
import { DefaultLoading } from '../components/page/loading'
|
|
5
5
|
import { ChatAccessGate } from './chat_access_gate'
|
|
6
6
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* See https://dom.spec.whatwg.org/#interface-event.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { setPlatformObject } from '../webidl/PlatformObjects'
|
|
13
14
|
import type RNEventTarget from './EventTarget'
|
|
14
15
|
import {
|
|
15
16
|
getComposedPath,
|
|
@@ -23,7 +24,6 @@ import {
|
|
|
23
24
|
setIsTrusted,
|
|
24
25
|
setEventPhase,
|
|
25
26
|
} from './internals/EventInternals'
|
|
26
|
-
import { setPlatformObject } from '../webidl/PlatformObjects'
|
|
27
27
|
|
|
28
28
|
export interface EventInit {
|
|
29
29
|
bubbles?: boolean
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* Implements the `EventTarget` interface from the DOM.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
import { setPlatformObject } from '../webidl/PlatformObjects'
|
|
12
13
|
import Event from './Event'
|
|
13
14
|
import {
|
|
14
15
|
getStopImmediatePropagationFlag,
|
|
@@ -26,7 +27,6 @@ import {
|
|
|
26
27
|
EVENT_TARGET_GET_THE_PARENT_KEY,
|
|
27
28
|
INTERNAL_DISPATCH_METHOD_KEY,
|
|
28
29
|
} from './internals/EventTargetInternals'
|
|
29
|
-
import { setPlatformObject } from '../webidl/PlatformObjects'
|
|
30
30
|
|
|
31
31
|
export type EventCallback = (event: Event) => void
|
|
32
32
|
export type EventHandler = { handleEvent(event: Event): void }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
1
|
import { date as formatDate } from '@planningcenter/datetime-fmt'
|
|
2
|
+
import React, { useState } from 'react'
|
|
3
3
|
import { StyleSheet, View, ScrollView } from 'react-native'
|
|
4
|
-
import {
|
|
5
|
-
import { Text } from '../../components/display/text'
|
|
6
|
-
import { Icon } from '../../components/display/icon'
|
|
4
|
+
import { Heading } from '../../components'
|
|
7
5
|
import { Avatar } from '../../components/display/avatar'
|
|
8
6
|
import { Banner } from '../../components/display/banner'
|
|
7
|
+
import { Button } from '../../components/display/button'
|
|
8
|
+
import { Icon } from '../../components/display/icon'
|
|
9
|
+
import { Text } from '../../components/display/text'
|
|
9
10
|
import { useCurrentPerson, useTheme, useSubmitAgeCheck, useOrganization } from '../../hooks'
|
|
10
|
-
import { Heading } from '../../components'
|
|
11
11
|
import { platformFontWeightBold } from '../../utils/styles'
|
|
12
12
|
import { AgeCheckSelectBirthdateModal } from './components/age_check_select_birthdate_modal'
|
|
13
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { useRoute, RouteProp } from '@react-navigation/native'
|
|
1
2
|
import React from 'react'
|
|
2
3
|
import { Linking, StyleSheet, View, ScrollView } from 'react-native'
|
|
3
4
|
import { Heading } from '../../components'
|
|
4
5
|
import { Icon, Text, TextInlineButton } from '../../components/display'
|
|
5
6
|
import { useTheme } from '../../hooks'
|
|
6
|
-
import { useRoute, RouteProp } from '@react-navigation/native'
|
|
7
7
|
import type { AgeCheckParams } from './screen_props'
|
|
8
8
|
|
|
9
9
|
export interface AgeCheckUnderageScreenProps {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import DateTimePicker, { DateTimePickerEvent } from '@react-native-community/datetimepicker'
|
|
1
2
|
import React from 'react'
|
|
2
3
|
import { Modal, Platform, StyleSheet, View } from 'react-native'
|
|
3
|
-
import DateTimePicker, { DateTimePickerEvent } from '@react-native-community/datetimepicker'
|
|
4
|
-
import FormSheet from '../../../components/primitive/form_sheet'
|
|
5
4
|
import { Text } from '../../../components/display/text'
|
|
5
|
+
import FormSheet from '../../../components/primitive/form_sheet'
|
|
6
6
|
import { useTheme } from '../../../hooks'
|
|
7
7
|
|
|
8
8
|
export type AgeCheckSelectBirthdateProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Alert } from 'react-native'
|
|
2
1
|
import { useMutation } from '@tanstack/react-query'
|
|
3
|
-
import { useApiClient } from '../../../hooks/use_api_client'
|
|
4
2
|
import { useCallback } from 'react'
|
|
3
|
+
import { Alert } from 'react-native'
|
|
4
|
+
import { useApiClient } from '../../../hooks/use_api_client'
|
|
5
5
|
import { useConversationMessages } from '../../../hooks/use_conversation_messages'
|
|
6
6
|
import { Haptic } from '../../../utils/native_adapters'
|
|
7
7
|
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { useNavigation } from '@react-navigation/native'
|
|
2
|
+
import type {
|
|
3
|
+
NativeStackNavigationOptions,
|
|
4
|
+
NativeStackScreenProps,
|
|
5
|
+
} from '@react-navigation/native-stack'
|
|
6
|
+
import { startsWith } from 'lodash'
|
|
1
7
|
import React, { useCallback, useLayoutEffect, useState } from 'react'
|
|
2
8
|
import {
|
|
3
9
|
View,
|
|
@@ -8,11 +14,7 @@ import {
|
|
|
8
14
|
TouchableOpacity,
|
|
9
15
|
Platform,
|
|
10
16
|
} from 'react-native'
|
|
11
|
-
import
|
|
12
|
-
NativeStackNavigationOptions,
|
|
13
|
-
NativeStackScreenProps,
|
|
14
|
-
} from '@react-navigation/native-stack'
|
|
15
|
-
import { useNavigation } from '@react-navigation/native'
|
|
17
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
16
18
|
import {
|
|
17
19
|
Button,
|
|
18
20
|
Spinner,
|
|
@@ -22,21 +24,19 @@ import {
|
|
|
22
24
|
Icon,
|
|
23
25
|
KeyboardView,
|
|
24
26
|
} from '../components'
|
|
25
|
-
import BlankState from '../components/primitive/blank_state_primitive'
|
|
26
|
-
import { useTheme } from '../hooks'
|
|
27
|
-
import { useUploadClient } from '../hooks/use_upload_client'
|
|
28
|
-
import { ImagePicker, ImagePickerResult, platformFontWeightBold } from '../utils'
|
|
29
|
-
import { useReportBugAction } from '../hooks/use_report_bug_action'
|
|
30
27
|
import {
|
|
31
28
|
HeaderDismissButton,
|
|
32
29
|
HeaderTextButton,
|
|
33
30
|
} from '../components/display/platform_modal_header_buttons'
|
|
34
|
-
import { DefaultLoading } from '../components/page/loading'
|
|
35
|
-
import { startsWith } from 'lodash'
|
|
36
31
|
import { VideoAttachmentPreview } from '../components/display/video_attachment_preview'
|
|
32
|
+
import { DefaultLoading } from '../components/page/loading'
|
|
33
|
+
import BlankState from '../components/primitive/blank_state_primitive'
|
|
37
34
|
import { SafeAreaModal } from '../components/safe_area_modal'
|
|
38
|
-
import {
|
|
35
|
+
import { useTheme } from '../hooks'
|
|
39
36
|
import { useAppName } from '../hooks/use_app_name'
|
|
37
|
+
import { useReportBugAction } from '../hooks/use_report_bug_action'
|
|
38
|
+
import { useUploadClient } from '../hooks/use_upload_client'
|
|
39
|
+
import { ImagePicker, ImagePickerResult, platformFontWeightBold } from '../utils'
|
|
40
40
|
|
|
41
41
|
const MAX_DESCRIPTION_LENGTH = 2000
|
|
42
42
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StaticScreenProps, useNavigation } from '@react-navigation/native'
|
|
2
2
|
import React, { memo, useCallback, useMemo, useState } from 'react'
|
|
3
3
|
import { LayoutChangeEvent, Platform, StyleSheet, View } from 'react-native'
|
|
4
|
+
import { FlatList } from 'react-native-gesture-handler'
|
|
4
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
5
6
|
import { Avatar, Text } from '../../components'
|
|
6
|
-
import { useReadReceipts } from '../../hooks/use_read_receipts'
|
|
7
|
-
import { FlatList } from 'react-native-gesture-handler'
|
|
8
|
-
import { ReadReceiptResource } from '../../types/resources/read_receipt'
|
|
9
7
|
import FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet'
|
|
10
8
|
import { useTheme } from '../../hooks'
|
|
9
|
+
import { useReadReceipts } from '../../hooks/use_read_receipts'
|
|
10
|
+
import { ReadReceiptResource } from '../../types/resources/read_receipt'
|
|
11
11
|
|
|
12
12
|
const LIST_BOTTOM_PADDING = 24
|
|
13
13
|
|
|
@@ -45,7 +45,6 @@ import {
|
|
|
45
45
|
useConversationMute,
|
|
46
46
|
useConversationUpdate,
|
|
47
47
|
} from '../hooks/use_conversation'
|
|
48
|
-
|
|
49
48
|
import { availableFeatures, useFeatures } from '../hooks/use_features'
|
|
50
49
|
import { MemberResource, isDefined } from '../types'
|
|
51
50
|
import { GroupResource } from '../types/resources/group_resource'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { type RouteProp, useRoute } from '@react-navigation/native'
|
|
1
2
|
import { Pressable, View, StyleSheet, type ViewStyle } from 'react-native'
|
|
2
|
-
import { useTheme } from '../../../hooks'
|
|
3
3
|
import { Icon, Text } from '../../../components'
|
|
4
|
+
import { useTheme } from '../../../hooks'
|
|
4
5
|
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
5
6
|
import { ConversationFilterRecipientsScreenProps, SetTeamFilters, TeamProps } from '../types'
|
|
6
|
-
import { type RouteProp, useRoute } from '@react-navigation/native'
|
|
7
7
|
|
|
8
8
|
interface TeamRowProps {
|
|
9
9
|
data: TeamProps
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { useRoute, type RouteProp } from '@react-navigation/native'
|
|
1
2
|
import { View, StyleSheet, type ViewStyle } from 'react-native'
|
|
2
|
-
import { useTheme } from '../../../hooks'
|
|
3
3
|
import { Icon, Heading, TextButton } from '../../../components'
|
|
4
|
+
import { useTheme } from '../../../hooks'
|
|
5
|
+
import { pluralize } from '../../../utils'
|
|
6
|
+
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
4
7
|
import type {
|
|
5
8
|
ConversationFilterRecipientsScreenProps,
|
|
6
9
|
ServiceTypeProps,
|
|
7
10
|
SetTeamFilters,
|
|
8
11
|
} from '../types'
|
|
9
|
-
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
10
|
-
import { pluralize } from '../../../utils'
|
|
11
|
-
import { useRoute, type RouteProp } from '@react-navigation/native'
|
|
12
12
|
|
|
13
13
|
const BULK_SELECT_LIMIT = 10
|
|
14
14
|
|
package/src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import { LayoutChangeEvent, Platform, ScrollView, StyleSheet, View } from 'react
|
|
|
5
5
|
import { FlatList, TextInput } from 'react-native-gesture-handler'
|
|
6
6
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
7
7
|
import { Heading, ToggleButton } from '../../components'
|
|
8
|
+
import { DefaultLoading } from '../../components/page/loading'
|
|
8
9
|
import BlankState from '../../components/primitive/blank_state_primitive'
|
|
9
10
|
import FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet'
|
|
10
11
|
import { useFontScale, useTheme } from '../../hooks'
|
|
@@ -14,7 +15,6 @@ import { HeaderRow } from './components/header_row'
|
|
|
14
15
|
import { useFlattenedArrayOfServiceTypesWithTeams } from './hooks/use_flattened_array_of_service_types_with_teams'
|
|
15
16
|
import { useServiceTypesWithTeams } from './hooks/use_service_types_with_teams'
|
|
16
17
|
import { ConversationFilterRecipientsScreenProps, SectionTypes, TeamFilterTypes } from './types'
|
|
17
|
-
import { DefaultLoading } from '../../components/page/loading'
|
|
18
18
|
|
|
19
19
|
const SERVICE_TYPE_LABELLED_BY_PREFIX = 'header-'
|
|
20
20
|
const SPACE_UNDER_ROW = 16
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { StaticScreenProps } from '@react-navigation/native'
|
|
1
2
|
import { type ViewStyle } from 'react-native'
|
|
2
3
|
import { AppName } from '../../types/resources/app_name'
|
|
3
|
-
import { StaticScreenProps } from '@react-navigation/native'
|
|
4
4
|
|
|
5
5
|
export interface ServiceTypeWithTeams {
|
|
6
6
|
id: number
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
} from '../../../hooks'
|
|
12
12
|
import { useServicesTeamsMap } from '../../../hooks/services/use_services_team'
|
|
13
13
|
import { GroupResource } from '../../../types/resources/group_resource'
|
|
14
|
+
import { MAX_FONT_SIZE_MULTIPLIER, platformFontWeightBold } from '../../../utils/styles'
|
|
14
15
|
import { FilterContext } from '../context/conversation_filter_context'
|
|
15
16
|
import { FilterTypes } from '../filter_types'
|
|
16
17
|
import { FilteredGroup } from '../hooks/filters'
|
|
17
18
|
import { ConversationFilterStackParamList } from '../screen_props'
|
|
18
|
-
import { MAX_FONT_SIZE_MULTIPLIER, platformFontWeightBold } from '../../../utils/styles'
|
|
19
19
|
|
|
20
20
|
export type FilterProps = { group_source_app_name?: string; isActive: boolean; filter: FilterTypes }
|
|
21
21
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { RouteProp, StackActions, useNavigation, useRoute } from '@react-navigation/native'
|
|
1
2
|
import React from 'react'
|
|
2
3
|
import { createContext, PropsWithChildren, useState } from 'react'
|
|
3
|
-
import { ConversationFiltersParams, ConversationFiltersScreenProps } from '../screen_props'
|
|
4
|
-
import { RouteProp, StackActions, useNavigation, useRoute } from '@react-navigation/native'
|
|
5
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
6
4
|
import { Platform } from 'react-native'
|
|
5
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
6
|
+
import { ConversationFiltersParams, ConversationFiltersScreenProps } from '../screen_props'
|
|
7
7
|
|
|
8
8
|
const DEFAULT_LIST_PADDING_BOTTOM = 64
|
|
9
9
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { StaticScreenProps } from '@react-navigation/native'
|
|
1
2
|
import React from 'react'
|
|
2
3
|
import { RefreshControl, StyleSheet } from 'react-native'
|
|
3
4
|
import { FlatList } from 'react-native-gesture-handler'
|
|
4
5
|
import { Text } from '../../components/display'
|
|
5
|
-
import { ConversationFiltersParams } from './screen_props'
|
|
6
|
-
import { StaticScreenProps } from '@react-navigation/native'
|
|
7
|
-
import { useGroupsToFilter } from './hooks/filters'
|
|
8
6
|
import { GroupRow } from './components/rows'
|
|
9
7
|
import { useFilterContext } from './context/conversation_filter_context'
|
|
8
|
+
import { useGroupsToFilter } from './hooks/filters'
|
|
9
|
+
import { ConversationFiltersParams } from './screen_props'
|
|
10
10
|
|
|
11
11
|
export type GroupFiltersScreenProps = StaticScreenProps<ConversationFiltersParams>
|
|
12
12
|
|
|
@@ -2,8 +2,8 @@ import { useMemo } from 'react'
|
|
|
2
2
|
import { useGroups } from '../../../hooks/use_groups'
|
|
3
3
|
import { useGroupsGroups } from '../../../hooks/use_groups_groups'
|
|
4
4
|
import { useTeams } from '../../../hooks/use_teams'
|
|
5
|
-
import { GroupResource } from '../../../types/resources/group_resource'
|
|
6
5
|
import { GroupsGroupResource } from '../../../types'
|
|
6
|
+
import { GroupResource } from '../../../types/resources/group_resource'
|
|
7
7
|
|
|
8
8
|
export const useTeamsToFilter = () => {
|
|
9
9
|
const { data: teams = [], ...rest } = useTeams()
|
|
@@ -4,18 +4,18 @@ import { createNativeStackNavigator } from '@react-navigation/native-stack'
|
|
|
4
4
|
import React, { useCallback } from 'react'
|
|
5
5
|
import { LayoutChangeEvent, Platform, StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
6
6
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
7
|
+
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet'
|
|
8
|
+
import { ConversationFilters } from './conversation_filters/components/conversation_filters'
|
|
7
9
|
import {
|
|
8
10
|
FilterProvider,
|
|
9
11
|
useFilterContext,
|
|
10
12
|
} from './conversation_filters/context/conversation_filter_context'
|
|
11
|
-
import { ConversationFilters } from './conversation_filters/components/conversation_filters'
|
|
12
13
|
import { GroupFilters } from './conversation_filters/group_filters'
|
|
13
14
|
import {
|
|
14
15
|
ConversationFiltersScreenProps,
|
|
15
16
|
ConversationFilterStackParamList,
|
|
16
17
|
} from './conversation_filters/screen_props'
|
|
17
18
|
import { TeamFilters } from './conversation_filters/team_filters'
|
|
18
|
-
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet'
|
|
19
19
|
|
|
20
20
|
export const ConversationFiltersScreenOptions = getFormSheetScreenOptions({
|
|
21
21
|
presentation: Platform.select({ android: 'modal', ios: 'formSheet' }),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { Header, PlatformPressable } from '@react-navigation/elements'
|
|
1
2
|
import React, { useState } from 'react'
|
|
2
3
|
import { StyleSheet, View, FlatList, Platform } from 'react-native'
|
|
3
|
-
import { Header, PlatformPressable } from '@react-navigation/elements'
|
|
4
4
|
import { Banner, Icon, Spinner, Text, Heading } from '../../../components'
|
|
5
5
|
import { HeaderDismissButton } from '../../../components/display/platform_modal_header_buttons'
|
|
6
|
-
import { useTeamPlans } from '../../../hooks/services/use_team_plans'
|
|
7
|
-
import { useTheme } from '../../../hooks'
|
|
8
|
-
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
9
6
|
import { DefaultLoading } from '../../../components/page/loading'
|
|
10
7
|
import { SafeAreaModal } from '../../../components/safe_area_modal'
|
|
8
|
+
import { useTheme } from '../../../hooks'
|
|
9
|
+
import { useTeamPlans } from '../../../hooks/services/use_team_plans'
|
|
10
|
+
import { tokens } from '../../../vendor/tapestry/tokens'
|
|
11
11
|
|
|
12
12
|
// ==========================================
|
|
13
13
|
// Interfaces
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { FlatList, type FlatListProps, StyleSheet, View } from 'react-native'
|
|
3
|
-
import { MemberResource } from '../../../types'
|
|
4
3
|
import { Person, Text } from '../../../components/display'
|
|
5
4
|
import { useTheme } from '../../../hooks'
|
|
5
|
+
import { MemberResource } from '../../../types'
|
|
6
6
|
|
|
7
7
|
interface FormListProps {
|
|
8
8
|
memberData: MemberResource[]
|