@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
|
@@ -2,10 +2,10 @@ import React from 'react'
|
|
|
2
2
|
import { Pressable, StyleSheet, Text, View } from 'react-native'
|
|
3
3
|
import type { PressableProps, ViewStyle } from 'react-native'
|
|
4
4
|
import LinearGradient from 'react-native-linear-gradient'
|
|
5
|
-
import { Icon, IconString } from './icon'
|
|
6
5
|
import { useTheme, useFontScale, useCreateAndroidRippleColor } from '../../hooks'
|
|
7
|
-
import { tokens } from '../../vendor/tapestry/tokens'
|
|
8
6
|
import { platformFontWeightBold, platformPressedOpacityStyle } from '../../utils'
|
|
7
|
+
import { tokens } from '../../vendor/tapestry/tokens'
|
|
8
|
+
import { Icon, IconString } from './icon'
|
|
9
9
|
import { Spinner } from './spinner'
|
|
10
10
|
import { getColorKey, useButtonColorOptionMap, useGradientColorMap } from './utils/button_colors'
|
|
11
11
|
import type { ButtonAppearanceUnion } from './utils/button_colors'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { View, StyleSheet, type ViewStyle } from 'react-native'
|
|
2
3
|
import { MemberResource } from '../../types'
|
|
3
|
-
import {
|
|
4
|
+
import { platformFontWeightMedium, pluralize } from '../../utils'
|
|
4
5
|
import BannerPrimitive from '../primitive/banner_primitive'
|
|
5
|
-
import { View, StyleSheet, type ViewStyle } from 'react-native'
|
|
6
6
|
import { Avatar } from './avatar'
|
|
7
|
-
import {
|
|
7
|
+
import { BannerCollapsible } from './banner_collapsible'
|
|
8
8
|
import { Text } from './text'
|
|
9
9
|
|
|
10
10
|
// =================================
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useTheme } from '../../hooks'
|
|
2
1
|
import React from 'react'
|
|
3
2
|
import {
|
|
4
3
|
Platform,
|
|
@@ -6,8 +5,9 @@ import {
|
|
|
6
5
|
Text as ReactNativeText,
|
|
7
6
|
TextProps as ReactNativeTextProps,
|
|
8
7
|
} from 'react-native'
|
|
9
|
-
import {
|
|
8
|
+
import { useTheme } from '../../hooks'
|
|
10
9
|
import { platformFontWeightBold } from '../../utils/styles'
|
|
10
|
+
import { tokens } from '../../vendor/tapestry/tokens'
|
|
11
11
|
|
|
12
12
|
// =================================
|
|
13
13
|
// ====== Component ================
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import type { ColorValue, StyleProp, ViewStyle } from 'react-native'
|
|
4
|
-
import { SvgXml } from 'react-native-svg'
|
|
5
|
-
import type { XmlProps } from 'react-native-svg'
|
|
6
|
-
import { useFontScale, useTheme } from '../../hooks'
|
|
7
|
-
|
|
8
1
|
import * as accounts from '@planningcenter/icons/paths/accounts'
|
|
9
2
|
import * as api from '@planningcenter/icons/paths/api'
|
|
10
3
|
import * as brand from '@planningcenter/icons/paths/brand'
|
|
@@ -15,9 +8,15 @@ import * as general from '@planningcenter/icons/paths/general'
|
|
|
15
8
|
import * as groups from '@planningcenter/icons/paths/groups'
|
|
16
9
|
import * as logomark from '@planningcenter/icons/paths/logomark'
|
|
17
10
|
import * as people from '@planningcenter/icons/paths/people'
|
|
18
|
-
import * as services from '@planningcenter/icons/paths/services'
|
|
19
11
|
import * as publishing from '@planningcenter/icons/paths/publishing'
|
|
20
12
|
import * as registrations from '@planningcenter/icons/paths/registrations'
|
|
13
|
+
import * as services from '@planningcenter/icons/paths/services'
|
|
14
|
+
import React from 'react'
|
|
15
|
+
import type { ColorValue, StyleProp, ViewStyle } from 'react-native'
|
|
16
|
+
import { StyleSheet, View } from 'react-native'
|
|
17
|
+
import type { XmlProps } from 'react-native-svg'
|
|
18
|
+
import { SvgXml } from 'react-native-svg'
|
|
19
|
+
import { useFontScale, useTheme } from '../../hooks'
|
|
21
20
|
|
|
22
21
|
// =================================
|
|
23
22
|
// ====== Constants ================
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Pressable, StyleSheet, type StyleProp } from 'react-native'
|
|
3
3
|
import type { PressableProps, ViewStyle } from 'react-native'
|
|
4
|
-
import { Icon } from './icon'
|
|
5
|
-
import type { IconProps, IconString } from './icon'
|
|
6
4
|
import { useTheme, useFontScale, useCreateAndroidRippleColor } from '../../hooks'
|
|
7
5
|
import { platformPressedOpacityStyle } from '../../utils'
|
|
6
|
+
import { Icon } from './icon'
|
|
7
|
+
import type { IconProps, IconString } from './icon'
|
|
8
8
|
import { Spinner } from './spinner'
|
|
9
9
|
import { getColorKey, useIconButtonColorOptionMap } from './utils/button_colors'
|
|
10
10
|
import type { IconButtonAppearanceUnion } from './utils/button_colors'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { View, StyleSheet } from 'react-native'
|
|
2
|
-
import { Image } from './image'
|
|
3
|
-
import { IconButton } from './icon_button'
|
|
4
|
-
import { Icon } from './icon'
|
|
5
2
|
import { useTheme } from '../../hooks'
|
|
6
3
|
import { tokens } from '../../vendor/tapestry/tokens'
|
|
4
|
+
import { Icon } from './icon'
|
|
5
|
+
import { IconButton } from './icon_button'
|
|
6
|
+
import { Image } from './image'
|
|
7
7
|
|
|
8
8
|
const SIZES = {
|
|
9
9
|
sm: 'sm',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View, type ViewStyle } from 'react-native'
|
|
3
|
-
import { platformFontWeightMedium } from '../../utils/styles'
|
|
4
3
|
import { MemberResource } from '../../types'
|
|
4
|
+
import { platformFontWeightMedium } from '../../utils/styles'
|
|
5
5
|
import { Avatar } from './avatar'
|
|
6
|
-
import { Text } from './text'
|
|
7
6
|
import { Badge } from './badge'
|
|
7
|
+
import { Text } from './text'
|
|
8
8
|
|
|
9
9
|
// =================================
|
|
10
10
|
// ====== Components ===============
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ColorValue, Platform, StyleSheet } from 'react-native'
|
|
2
|
-
import { TextButton } from './text_button'
|
|
3
1
|
import { HeaderButton } from '@react-navigation/elements'
|
|
4
|
-
import { Icon } from './icon'
|
|
5
|
-
import { useTheme } from '../../hooks'
|
|
6
2
|
import type { NativeStackHeaderRightProps } from '@react-navigation/native-stack'
|
|
3
|
+
import { ColorValue, Platform, StyleSheet } from 'react-native'
|
|
4
|
+
import { useTheme } from '../../hooks'
|
|
5
|
+
import { Icon } from './icon'
|
|
6
|
+
import { TextButton } from './text_button'
|
|
7
7
|
|
|
8
8
|
interface HeaderTextButtonProps {
|
|
9
9
|
onPress: () => void
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useTheme } from '../../hooks'
|
|
2
1
|
import React from 'react'
|
|
3
2
|
import { StyleSheet, Text as ReactNativeText, Platform } from 'react-native'
|
|
4
3
|
import type {
|
|
@@ -6,6 +5,7 @@ import type {
|
|
|
6
5
|
TextProps as ReactNativeTextProps,
|
|
7
6
|
StyleProp,
|
|
8
7
|
} from 'react-native'
|
|
8
|
+
import { useTheme } from '../../hooks'
|
|
9
9
|
import { tokens } from '../../vendor/tapestry/tokens'
|
|
10
10
|
|
|
11
11
|
// =================================
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import colorFunction from 'color'
|
|
1
2
|
import React, { useState } from 'react'
|
|
2
3
|
import { Platform, StyleSheet } from 'react-native'
|
|
3
4
|
import { useTheme } from '../../hooks'
|
|
5
|
+
import { platformFontWeightMedium } from '../../utils'
|
|
4
6
|
import { Text } from './text'
|
|
5
7
|
import type { TextProps } from './text'
|
|
6
|
-
import { platformFontWeightMedium } from '../../utils'
|
|
7
|
-
import colorFunction from 'color'
|
|
8
8
|
import { getColorKey, useButtonColorOptionMap } from './utils/button_colors'
|
|
9
9
|
import type { ButtonAppearanceUnion } from './utils/button_colors'
|
|
10
10
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Pressable, StyleSheet } from 'react-native'
|
|
3
3
|
import type { PressableProps, GestureResponderEvent } from 'react-native'
|
|
4
|
-
import { Text } from './text'
|
|
5
4
|
import {
|
|
6
5
|
useTheme,
|
|
7
6
|
useFontScale,
|
|
@@ -13,9 +12,10 @@ import {
|
|
|
13
12
|
platformFontWeightBold,
|
|
14
13
|
platformPressedOpacityStyle,
|
|
15
14
|
} from '../../utils'
|
|
16
|
-
import { Icon, IconString } from './icon'
|
|
17
|
-
import { tokens } from '../../vendor/tapestry/tokens'
|
|
18
15
|
import { Haptic } from '../../utils/native_adapters/configuration'
|
|
16
|
+
import { tokens } from '../../vendor/tapestry/tokens'
|
|
17
|
+
import { Icon, IconString } from './icon'
|
|
18
|
+
import { Text } from './text'
|
|
19
19
|
|
|
20
20
|
// =================================
|
|
21
21
|
// ====== Constants ================
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { View, StyleSheet } from 'react-native'
|
|
2
|
-
import { IconButton } from './icon_button'
|
|
3
2
|
import { useTheme } from '../../hooks'
|
|
4
|
-
import { Icon } from './icon'
|
|
5
|
-
import { Text } from './text'
|
|
6
3
|
import { platformFontWeightMedium } from '../../utils'
|
|
7
|
-
import { Spinner } from './spinner'
|
|
8
4
|
import { tokens } from '../../vendor/tapestry/tokens'
|
|
5
|
+
import { Icon } from './icon'
|
|
6
|
+
import { IconButton } from './icon_button'
|
|
7
|
+
import { Spinner } from './spinner'
|
|
8
|
+
import { Text } from './text'
|
|
9
9
|
|
|
10
10
|
interface VideoAttachmentPreviewProps {
|
|
11
11
|
name: string
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useEffect } from 'react'
|
|
2
2
|
import { StyleSheet, View, ViewStyle } from 'react-native'
|
|
3
|
-
import { ConversationPreview } from './conversations/conversation_preview'
|
|
4
|
-
import { ConversationRequestArgs } from '../utils/request/conversation'
|
|
5
|
-
import { useTheme } from '../hooks'
|
|
6
|
-
import { Icon, Text } from './display'
|
|
7
3
|
import {
|
|
8
4
|
ConversationsContextProvider,
|
|
9
5
|
useConversationsContext,
|
|
10
6
|
} from '../contexts/conversations_context'
|
|
7
|
+
import { useTheme } from '../hooks'
|
|
8
|
+
import { ConversationRequestArgs } from '../utils/request/conversation'
|
|
9
|
+
import { ConversationPreview } from './conversations/conversation_preview'
|
|
10
|
+
import { Icon, Text } from './display'
|
|
11
11
|
|
|
12
12
|
interface GroupConversationsProps extends Partial<ConversationRequestArgs> {
|
|
13
13
|
limit?: number
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { createContext, useContext, useEffect, useState } from 'react'
|
|
2
2
|
import { StyleSheet, View, ViewProps } from 'react-native'
|
|
3
3
|
import { useFontScale, useTheme } from '../../hooks'
|
|
4
|
+
import { MAX_FONT_SIZE_MULTIPLIER } from '../../utils'
|
|
4
5
|
import { Icon, IconString } from '../display/icon'
|
|
5
6
|
import { Image, ImageProps } from '../display/image'
|
|
6
7
|
import { Spinner } from '../display/spinner'
|
|
7
|
-
import { MAX_FONT_SIZE_MULTIPLIER } from '../../utils'
|
|
8
8
|
|
|
9
9
|
// =================================
|
|
10
10
|
// ====== Exports ==================
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React, { createContext, FC, ReactNode, useContext } from 'react'
|
|
2
2
|
import { Pressable, StyleSheet, View, ViewStyle } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
useStatusColorAppearanceMap,
|
|
5
|
-
type StatusAppearanceUnion,
|
|
6
|
-
} from '../display/utils/status_colors'
|
|
3
|
+
import { useCreateAndroidRippleColor, useFontScale } from '../../hooks'
|
|
7
4
|
import {
|
|
8
5
|
MAX_FONT_SIZE_MULTIPLIER,
|
|
9
6
|
platformFontWeightMedium,
|
|
10
7
|
platformPressedOpacityStyle,
|
|
11
8
|
} from '../../utils'
|
|
12
9
|
import { tokens } from '../../vendor/tapestry/tokens'
|
|
13
|
-
import { useCreateAndroidRippleColor, useFontScale } from '../../hooks'
|
|
14
|
-
import { Icon, IconString } from '../display/icon'
|
|
15
10
|
import { Heading } from '../display/heading'
|
|
11
|
+
import { Icon, IconString } from '../display/icon'
|
|
16
12
|
import { Text } from '../display/text'
|
|
17
13
|
import { TextInlineButton } from '../display/text_inline_button'
|
|
14
|
+
import {
|
|
15
|
+
useStatusColorAppearanceMap,
|
|
16
|
+
type StatusAppearanceUnion,
|
|
17
|
+
} from '../display/utils/status_colors'
|
|
18
18
|
|
|
19
19
|
// ========================================
|
|
20
20
|
// ====== Exports =========================
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
} from 'react-native'
|
|
13
13
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
14
14
|
import { useTheme } from '../../hooks'
|
|
15
|
+
import { MAX_FONT_SIZE_MULTIPLIER_LANDMARK } from '../../utils'
|
|
15
16
|
import type { ButtonProps, TextButtonProps } from '../display'
|
|
16
17
|
import { Button, Heading, Icon, IconString, Text, TextButton } from '../display'
|
|
17
|
-
import { MAX_FONT_SIZE_MULTIPLIER_LANDMARK } from '../../utils'
|
|
18
18
|
|
|
19
19
|
// =================================
|
|
20
20
|
// ====== Exports ==================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModalProps, Platform, Modal, View, StyleProp, ViewStyle, StyleSheet } from 'react-native'
|
|
2
|
-
import { useChatContext } from '../contexts/chat_context'
|
|
3
2
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
3
|
+
import { useChatContext } from '../contexts/chat_context'
|
|
4
4
|
|
|
5
5
|
interface CustomModalProps extends ModalProps {
|
|
6
6
|
containerStyle?: StyleProp<ViewStyle>
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from '@tanstack/react-query'
|
|
8
8
|
import React, { useContext, useEffect, useRef } from 'react'
|
|
9
9
|
import { ViewProps } from 'react-native'
|
|
10
|
-
import { ChatContext, ChatContextValue } from './chat_context'
|
|
11
|
-
import { getRequestQueryKey, RequestQueryKey } from '../hooks/use_suspense_api'
|
|
12
|
-
import { appGrantsRequestArgs } from '../hooks/use_chat_permissions'
|
|
13
10
|
import { ApiClient, useApiClient } from '../hooks/use_api_client'
|
|
14
11
|
import { useAppState } from '../hooks/use_app_state'
|
|
12
|
+
import { appGrantsRequestArgs } from '../hooks/use_chat_permissions'
|
|
13
|
+
import { getRequestQueryKey, RequestQueryKey } from '../hooks/use_suspense_api'
|
|
14
|
+
import { ChatContext, ChatContextValue } from './chat_context'
|
|
15
15
|
|
|
16
16
|
let apiClient: ApiClient | undefined
|
|
17
17
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query'
|
|
1
2
|
import { merge } from 'lodash'
|
|
2
3
|
import React, { createContext, useMemo } from 'react'
|
|
3
4
|
import { ColorSchemeName, useColorScheme } from 'react-native'
|
|
4
|
-
import {
|
|
5
|
+
import { AgeCheckContactInfo } from '../screens/age_check/screen_props'
|
|
5
6
|
import { ApiResource, DeepPartial } from '../types'
|
|
6
|
-
import { Client, ENV, OauthType, PartialToken, Session, Uri } from '../utils'
|
|
7
7
|
import { FailedResponse } from '../types'
|
|
8
|
-
import { ChatTheme, defaultTheme, DefaultTheme } from '../utils/theme'
|
|
9
|
-
import { AgeCheckContactInfo } from '../screens/age_check/screen_props'
|
|
10
8
|
import { ProductAnalyticsConfig } from '../types/product_analytics'
|
|
9
|
+
import { Client, ENV, OauthType, PartialToken, Session, Uri } from '../utils'
|
|
10
|
+
import { ChatTheme, defaultTheme, DefaultTheme } from '../utils/theme'
|
|
11
11
|
|
|
12
12
|
export interface ChatProviderProps {
|
|
13
13
|
env?: ENV
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { createContext, PropsWithChildren, useContext, useMemo, useState } from 'react'
|
|
2
|
-
import { ConversationFiltersParams } from '../screens/conversation_filters/screen_props'
|
|
3
|
-
import { useConversations, UseConversationsValue } from '../hooks/use_conversations'
|
|
4
1
|
import {
|
|
5
2
|
FetchNextPageOptions,
|
|
6
3
|
InfiniteQueryObserverResult,
|
|
7
4
|
InfiniteData,
|
|
8
5
|
} from '@tanstack/react-query'
|
|
6
|
+
import React, { createContext, PropsWithChildren, useContext, useMemo, useState } from 'react'
|
|
7
|
+
import { useConversations, UseConversationsValue } from '../hooks/use_conversations'
|
|
8
|
+
import { ConversationFiltersParams } from '../screens/conversation_filters/screen_props'
|
|
9
9
|
import { ApiCollection, ConversationResource } from '../types'
|
|
10
10
|
|
|
11
11
|
interface ConversationsContextValue extends UseConversationsValue {
|
|
@@ -10,14 +10,14 @@ import React, {
|
|
|
10
10
|
import { Alert } from 'react-native'
|
|
11
11
|
import { currentPersonQueryKey } from '../hooks/use_current_person'
|
|
12
12
|
import { organizationRequestArgs } from '../hooks/use_organization'
|
|
13
|
+
import { useStorage } from '../hooks/use_storage'
|
|
13
14
|
import { getRequestQueryKey } from '../hooks/use_suspense_api'
|
|
14
15
|
import { CurrentPersonResource, FailedResponse, OAuthToken, OrganizationResource } from '../types'
|
|
15
16
|
import { ApiResource } from '../types/api_primitives'
|
|
16
17
|
import { ENV, PartialToken, Session, UNAUTHENTICATED_SESSION_ID } from '../utils'
|
|
17
|
-
import { SessionManager } from '../utils/session_manager'
|
|
18
18
|
import { StorageAdapter } from '../utils/native_adapters/storage_adapter'
|
|
19
|
+
import { SessionManager } from '../utils/session_manager'
|
|
19
20
|
import { chatQueryClient } from './api_provider'
|
|
20
|
-
import { useStorage } from '../hooks/use_storage'
|
|
21
21
|
|
|
22
22
|
type Sessions = Record<string, string> // Key is session ID
|
|
23
23
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query'
|
|
2
2
|
import { ApiResource, ConversationResource, ResourceObject } from '../../types'
|
|
3
|
-
import { useApiClient } from '../use_api_client'
|
|
4
3
|
import { throwResponseError } from '../../utils/response_error'
|
|
4
|
+
import { useApiClient } from '../use_api_client'
|
|
5
5
|
|
|
6
6
|
interface Props {
|
|
7
7
|
groupId: number
|
|
8
8
|
title?: string
|
|
9
|
+
genderId?: string | null
|
|
9
10
|
onSuccess: (conversationId: number) => void
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export function useGroupsConversationCreate({ groupId, title, onSuccess }: Props) {
|
|
13
|
+
export function useGroupsConversationCreate({ groupId, title, genderId, onSuccess }: Props) {
|
|
13
14
|
const apiClient = useApiClient()
|
|
14
15
|
return useMutation({
|
|
15
16
|
throwOnError: true,
|
|
@@ -38,6 +39,7 @@ export function useGroupsConversationCreate({ groupId, title, onSuccess }: Props
|
|
|
38
39
|
type: 'Conversation',
|
|
39
40
|
attributes: {
|
|
40
41
|
payload,
|
|
42
|
+
...(genderId ? { gender_id: genderId } : {}),
|
|
41
43
|
},
|
|
42
44
|
},
|
|
43
45
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation, useQuery } from '@tanstack/react-query'
|
|
2
|
-
import { useMemo } from 'react'
|
|
3
2
|
import { omitBy, isNil } from 'lodash'
|
|
3
|
+
import { useMemo } from 'react'
|
|
4
4
|
import {
|
|
5
5
|
ApiCollection,
|
|
6
6
|
ApiResource,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
ServicesChatGroupIdentifiersResource,
|
|
9
9
|
ServicesChatPayloadResource,
|
|
10
10
|
} from '../../types'
|
|
11
|
-
import { ApiClient, useApiClient } from '../use_api_client'
|
|
12
11
|
import { throwResponseError } from '../../utils/response_error'
|
|
12
|
+
import { ApiClient, useApiClient } from '../use_api_client'
|
|
13
13
|
|
|
14
14
|
interface Props {
|
|
15
15
|
teamIds?: number[]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isNil, omitBy } from 'lodash'
|
|
2
|
-
import { useApiGet } from '../use_api'
|
|
3
|
-
import { MemberResource, TeamPeopleResource, TeamPersonResponseItem } from '../../types'
|
|
4
2
|
import { useMemo } from 'react'
|
|
3
|
+
import { MemberResource, TeamPeopleResource, TeamPersonResponseItem } from '../../types'
|
|
4
|
+
import { useApiGet } from '../use_api'
|
|
5
5
|
|
|
6
6
|
interface Props {
|
|
7
7
|
teamIds: number[]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApiResource, PlansResource } from '../../types'
|
|
2
|
-
import { ApiClient, useApiClient } from '../use_api_client'
|
|
3
|
-
import { useMemo } from 'react'
|
|
4
1
|
import { useQueries } from '@tanstack/react-query'
|
|
5
2
|
import { groupBy, keyBy, uniqBy } from 'lodash'
|
|
3
|
+
import { useMemo } from 'react'
|
|
4
|
+
import { ApiResource, PlansResource } from '../../types'
|
|
5
|
+
import { ApiClient, useApiClient } from '../use_api_client'
|
|
6
6
|
|
|
7
7
|
export type PlanListItem =
|
|
8
8
|
| { type: 'header'; title: string }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useMemo } from 'react'
|
|
2
2
|
import { ChatContext } from '../contexts/chat_context'
|
|
3
|
-
import { Client } from '../utils/client'
|
|
4
3
|
import { Uri } from '../utils'
|
|
4
|
+
import { Client } from '../utils/client'
|
|
5
5
|
|
|
6
6
|
export type App = 'chat' | 'groups' | 'services' | 'people'
|
|
7
7
|
const apps: App[] = ['chat', 'groups', 'services', 'people']
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
2
|
-
import { SUPPORTED_EXTENSIONS } from './attachments/supported_extensions'
|
|
3
|
-
import { useUploadClient } from './use_upload_client'
|
|
4
|
-
import { useApiClient } from './use_api_client'
|
|
5
2
|
import { ApiResource } from '../types'
|
|
6
3
|
import {
|
|
7
4
|
FileAttachment,
|
|
8
5
|
FileUploadState,
|
|
9
6
|
NativeAttachmentFile,
|
|
10
7
|
} from '../types/resources/denormalized_attachment_resource_for_create'
|
|
8
|
+
import { SUPPORTED_EXTENSIONS } from './attachments/supported_extensions'
|
|
9
|
+
import { useApiClient } from './use_api_client'
|
|
10
|
+
import { useUploadClient } from './use_upload_client'
|
|
11
11
|
|
|
12
12
|
export interface FileError {
|
|
13
13
|
file_type?: string[]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useRef } from 'react'
|
|
2
|
-
import { useApiClient } from './use_api_client'
|
|
3
2
|
import { useConversationContext } from '../contexts/conversation_context'
|
|
3
|
+
import { useApiClient } from './use_api_client'
|
|
4
4
|
|
|
5
5
|
const THROTTLE_INTERVAL = 3000 // 3 seconds
|
|
6
6
|
|
|
@@ -2,10 +2,10 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'
|
|
|
2
2
|
import { useState } from 'react'
|
|
3
3
|
import { ApiResource, ConversationResource } from '../types'
|
|
4
4
|
import { transformGetToPost } from '../utils/client/request_helpers'
|
|
5
|
+
import { Haptic } from '../utils/native_adapters'
|
|
6
|
+
import { getConversationsRequestArgs } from '../utils/request/conversation'
|
|
5
7
|
import { useApiClient } from './use_api_client'
|
|
6
8
|
import { getRequestQueryKey, useSuspenseGet } from './use_suspense_api'
|
|
7
|
-
import { getConversationsRequestArgs } from '../utils/request/conversation'
|
|
8
|
-
import { Haptic } from '../utils/native_adapters'
|
|
9
9
|
|
|
10
10
|
export const getConversationRequestArgs = ({ conversation_id }: { conversation_id: number }) => ({
|
|
11
11
|
url: `/me/conversations/${conversation_id}`,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Updater, useMutation, useQueryClient } from '@tanstack/react-query'
|
|
2
2
|
import { ApiResource, ConversationMembershipResource, ConversationResource } from '../types'
|
|
3
|
+
import { deepSnakeCaseKeys } from '../utils/deep_snake_case_keys'
|
|
4
|
+
import { throwResponseError } from '../utils/response_error'
|
|
3
5
|
import { useApiClient } from './use_api_client'
|
|
4
6
|
import { getConversationRequestArgs } from './use_conversation'
|
|
5
7
|
import { getRequestQueryKey } from './use_suspense_api'
|
|
6
|
-
import { deepSnakeCaseKeys } from '../utils/deep_snake_case_keys'
|
|
7
|
-
import { throwResponseError } from '../utils/response_error'
|
|
8
8
|
|
|
9
9
|
export const useConversationMembershipUpdate = ({
|
|
10
10
|
conversation_id,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageResource } from '../types'
|
|
2
|
-
import { useApiGet } from './use_api'
|
|
3
2
|
import { getMessageRequestArgs, getMessageQueryKey } from '../utils/request/get_message'
|
|
3
|
+
import { useApiGet } from './use_api'
|
|
4
4
|
|
|
5
5
|
export const useConversationMessage = ({
|
|
6
6
|
conversation_id,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo } from 'react'
|
|
2
2
|
import { MessageResource } from '../types'
|
|
3
|
-
import { SuspensePaginatorOptions, useSuspensePaginator } from './use_suspense_api'
|
|
4
3
|
import { getMessagesQueryKey, getMessagesRequestArgs } from '../utils/request/get_messages'
|
|
4
|
+
import { SuspensePaginatorOptions, useSuspensePaginator } from './use_suspense_api'
|
|
5
5
|
|
|
6
6
|
export const useConversationMessages = (
|
|
7
7
|
{ conversation_id, reply_root_id }: { conversation_id: number; reply_root_id?: string | null },
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
+
import { InfiniteData, useQueryClient } from '@tanstack/react-query'
|
|
1
2
|
import { ApiCollection, MessageResource } from '../types'
|
|
2
|
-
import {
|
|
3
|
-
import { deleteRecordInPagesData } from '../utils'
|
|
3
|
+
import { JoltReactionEvent, JoltTypingEvent } from '../types/jolt_events'
|
|
4
4
|
import {
|
|
5
5
|
MessageCreatedEvent,
|
|
6
6
|
MessageUpdatedEvent,
|
|
7
7
|
MessageDeletedEvent,
|
|
8
8
|
} from '../types/jolt_events/message_events'
|
|
9
|
-
import {
|
|
10
|
-
import { useCurrentPerson } from './use_current_person'
|
|
11
|
-
import { transformMessageEventDataToMessageResource } from '../utils/jolt/transform_message_event_data_to_message_resource'
|
|
12
|
-
import { getRequestQueryKey } from './use_suspense_api'
|
|
13
|
-
import { JoltReactionEvent, JoltTypingEvent } from '../types/jolt_events'
|
|
14
|
-
import { getMessagesRequestArgs } from '../utils/request/get_messages'
|
|
15
|
-
import { getMessageQueryKey } from '../utils/request/get_message'
|
|
16
|
-
import { TYPING_TIMEOUT_INTERVAL, useTypingStatusCache } from './use_typing_status_cache'
|
|
17
|
-
import { completeMessageCreationTracking } from '../utils/performance_tracking'
|
|
18
|
-
import { useApiClient } from './use_api_client'
|
|
9
|
+
import { deleteRecordInPagesData } from '../utils'
|
|
19
10
|
import {
|
|
20
11
|
updateCacheWithMessage,
|
|
21
12
|
updateCacheWithIndividualMessage,
|
|
22
13
|
updateCacheWithReaction,
|
|
23
14
|
getThreadedMessagesQueryKey,
|
|
24
15
|
} from '../utils/cache/messages_cache'
|
|
16
|
+
import { transformMessageEventDataToMessageResource } from '../utils/jolt/transform_message_event_data_to_message_resource'
|
|
17
|
+
import { completeMessageCreationTracking } from '../utils/performance_tracking'
|
|
18
|
+
import { getMessageQueryKey } from '../utils/request/get_message'
|
|
19
|
+
import { getMessagesRequestArgs } from '../utils/request/get_messages'
|
|
20
|
+
import { useApiClient } from './use_api_client'
|
|
21
|
+
import { useCurrentPerson } from './use_current_person'
|
|
22
|
+
import { useJoltChannel, useJoltEvent } from './use_jolt'
|
|
23
|
+
import { getRequestQueryKey } from './use_suspense_api'
|
|
24
|
+
import { TYPING_TIMEOUT_INTERVAL, useTypingStatusCache } from './use_typing_status_cache'
|
|
25
25
|
|
|
26
26
|
interface Props {
|
|
27
27
|
conversationId: number
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useQueryClient } from '@tanstack/react-query'
|
|
2
2
|
import { CurrentPersonResource } from '../types'
|
|
3
|
-
import { getRequestQueryKey, useSuspenseGet } from './use_suspense_api'
|
|
4
3
|
import { ApiResource } from '../types/api_primitives'
|
|
4
|
+
import { getRequestQueryKey, useSuspenseGet } from './use_suspense_api'
|
|
5
5
|
|
|
6
6
|
export const currentPersonRequestArgs = {
|
|
7
7
|
url: '/me',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useSuspenseQuery } from '@tanstack/react-query'
|
|
2
2
|
import { useCallback } from 'react'
|
|
3
|
+
import { ApiCollection } from '../types'
|
|
4
|
+
import type { FeatureResource } from '../types/resources/feature_resource'
|
|
3
5
|
import { getFeaturesRequestArgs, getFeaturesQueryKey } from '../utils/request/get_features'
|
|
4
6
|
import { useApiClient } from './use_api_client'
|
|
5
|
-
import type { FeatureResource } from '../types/resources/feature_resource'
|
|
6
|
-
import { ApiCollection } from '../types'
|
|
7
7
|
|
|
8
8
|
export function useFeatures() {
|
|
9
9
|
const apiClient = useApiClient()
|
|
@@ -36,6 +36,7 @@ export function useFeatures() {
|
|
|
36
36
|
export const availableFeatures = {
|
|
37
37
|
message_reporting: 'ROLLOUT_MOBILE_message_reporting',
|
|
38
38
|
granular_notifications_ui: 'ROLLOUT_granular_notification_preferences_ui',
|
|
39
|
+
gender_specific_conversations: 'ROLLOUT_gender_specific_conversations',
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
const stableEmptyFeatures: ApiCollection<FeatureResource> = {
|
package/src/hooks/use_giphy.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useContext, useEffect, useState } from 'react'
|
|
2
|
-
import { DenormalizedGiphyAttachmentResourceForCreate } from '../types/resources/denormalized_attachment_resource_for_create'
|
|
3
2
|
import { ChatContext } from '../contexts/chat_context'
|
|
3
|
+
import { DenormalizedGiphyAttachmentResourceForCreate } from '../types/resources/denormalized_attachment_resource_for_create'
|
|
4
4
|
|
|
5
5
|
interface GiphyGif {
|
|
6
6
|
id: string
|