@planningcenter/chat-react-native 3.30.0-rc.3 → 3.30.0-rc.4
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 +3 -3
- package/build/components/conversation/attachments/attachment_deleting_overlay.js +2 -2
- package/build/components/conversation/attachments/audio_attachment.d.ts +1 -1
- package/build/components/conversation/attachments/audio_attachment.js +3 -3
- package/build/components/conversation/attachments/expanded_link.d.ts +1 -1
- package/build/components/conversation/attachments/expanded_link.js +3 -3
- package/build/components/conversation/attachments/generic_file_attachment.d.ts +1 -1
- package/build/components/conversation/attachments/generic_file_attachment.js +4 -4
- package/build/components/conversation/attachments/giphy_attachment.d.ts +1 -1
- package/build/components/conversation/attachments/giphy_attachment.js +4 -4
- package/build/components/conversation/attachments/image_attachment.d.ts +1 -1
- package/build/components/conversation/attachments/image_attachment.js +5 -5
- package/build/components/conversation/attachments/video_attachment.d.ts +1 -1
- package/build/components/conversation/attachments/video_attachment.js +4 -4
- package/build/components/conversation/empty_conversation_blank_state.js +1 -1
- package/build/components/conversation/jump_to_bottom_button.js +3 -3
- package/build/components/conversation/message.d.ts +1 -1
- package/build/components/conversation/message.js +12 -12
- package/build/components/conversation/message_attachments.d.ts +1 -1
- package/build/components/conversation/message_attachments.js +1 -1
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts +1 -1
- package/build/components/conversation/message_form/message_form_attachment_image.js +1 -1
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts +1 -1
- package/build/components/conversation/message_form/message_form_attachment_video.js +1 -1
- package/build/components/conversation/message_form.d.ts +1 -1
- package/build/components/conversation/message_form.js +12 -12
- package/build/components/conversation/message_markdown.js +3 -3
- package/build/components/conversation/message_reaction.d.ts +2 -2
- package/build/components/conversation/message_reaction.js +6 -6
- package/build/components/conversation/message_read_receipts.d.ts +1 -1
- package/build/components/conversation/message_read_receipts.js +2 -2
- package/build/components/conversation/messages_disabled_banners.js +2 -2
- package/build/components/conversation/reply_connectors.d.ts +1 -1
- package/build/components/conversation/reply_connectors.js +2 -2
- package/build/components/conversation/reply_shadow_message.d.ts +1 -1
- package/build/components/conversation/reply_shadow_message.js +6 -6
- package/build/components/conversation/typing_indicator.js +3 -3
- package/build/components/conversations/conversation_actions.d.ts +1 -1
- package/build/components/conversations/conversation_actions.js +5 -5
- package/build/components/conversations/conversation_preview.d.ts +1 -1
- package/build/components/conversations/conversation_preview.js +3 -3
- package/build/components/conversations/conversations.js +5 -5
- package/build/components/conversations/mute_indicator.js +3 -3
- package/build/components/conversations/swipeable_toggle_button.d.ts +1 -1
- package/build/components/conversations/swipeable_toggle_button.js +5 -5
- package/build/components/conversations/unread_count_badge.js +3 -3
- package/build/components/display/action_button.js +2 -2
- package/build/components/display/avatar.d.ts +1 -1
- package/build/components/display/avatar.js +1 -1
- package/build/components/display/avatar_group.d.ts +1 -1
- package/build/components/display/avatar_group.js +1 -1
- package/build/components/display/badge.js +3 -3
- package/build/components/display/banner.d.ts +1 -1
- package/build/components/display/banner.js +1 -1
- package/build/components/display/banner_collapsible.js +1 -1
- package/build/components/display/button.js +3 -3
- package/build/components/display/child_notice.d.ts +1 -1
- package/build/components/display/child_notice.js +2 -2
- package/build/components/display/heading.js +3 -3
- package/build/components/display/icon.js +1 -1
- package/build/components/display/icon_button.js +2 -2
- package/build/components/display/image.js +1 -1
- package/build/components/display/image_attachment_preview.js +2 -2
- package/build/components/display/keyboard_view.js +1 -1
- package/build/components/display/person.d.ts +1 -1
- package/build/components/display/person.js +1 -1
- package/build/components/display/platform_modal_header_buttons.js +1 -1
- package/build/components/display/pressable_row.js +1 -1
- package/build/components/display/spinner.js +1 -1
- package/build/components/display/switch.js +1 -1
- package/build/components/display/tabs.js +1 -1
- package/build/components/display/text.js +2 -2
- package/build/components/display/text_button.js +2 -2
- package/build/components/display/text_inline_button.js +2 -2
- package/build/components/display/toggle_button.js +4 -4
- package/build/components/display/utils/button_colors.js +1 -1
- package/build/components/display/utils/status_colors.js +1 -1
- package/build/components/display/video_attachment_preview.js +3 -3
- package/build/components/group_conversation_list.d.ts +1 -1
- package/build/components/group_conversation_list.js +2 -2
- package/build/components/page/error_boundary.d.ts +1 -1
- package/build/components/page/error_boundary.js +2 -2
- package/build/components/page/loading.js +1 -1
- package/build/components/primitive/avatar_primitive.d.ts +2 -2
- package/build/components/primitive/avatar_primitive.js +5 -5
- package/build/components/primitive/banner_primitive.d.ts +2 -2
- package/build/components/primitive/banner_primitive.js +8 -8
- package/build/components/primitive/blank_state_primitive.d.ts +1 -1
- package/build/components/primitive/blank_state_primitive.js +2 -2
- package/build/components/primitive/form_sheet.d.ts +2 -2
- package/build/components/primitive/form_sheet.js +3 -3
- package/build/components/safe_area_modal.js +1 -1
- package/build/contexts/api_provider.js +4 -4
- package/build/contexts/chat_context.d.ts +6 -6
- package/build/contexts/chat_context.js +2 -2
- package/build/contexts/conversations_context.d.ts +2 -2
- package/build/contexts/conversations_context.js +1 -1
- package/build/contexts/session_context.d.ts +3 -3
- package/build/contexts/session_context.js +6 -6
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +6 -6
- package/build/hooks/groups/use_group_members_for_new_conversation.js +2 -2
- package/build/hooks/groups/use_groups_conversation_create.d.ts +1 -1
- package/build/hooks/groups/use_groups_conversation_create.js +2 -2
- package/build/hooks/services/use_find_or_create_services_conversation.d.ts +2 -2
- package/build/hooks/services/use_find_or_create_services_conversation.js +2 -2
- package/build/hooks/services/use_services_team.d.ts +1 -1
- package/build/hooks/services/use_services_team.js +1 -1
- package/build/hooks/services/use_team_members_for_new_conversation.d.ts +21 -21
- package/build/hooks/services/use_team_members_for_new_conversation.js +1 -1
- package/build/hooks/services/use_team_plans.d.ts +1 -1
- package/build/hooks/services/use_team_plans.js +1 -1
- package/build/hooks/use_api.d.ts +2 -2
- package/build/hooks/use_api_client.d.ts +1 -1
- package/build/hooks/use_api_client.js +3 -3
- package/build/hooks/use_async_storage.js +1 -1
- package/build/hooks/use_attachment_uploader.d.ts +1 -1
- package/build/hooks/use_broadcast_typing_status.js +1 -1
- package/build/hooks/use_chat_permissions.d.ts +21 -21
- package/build/hooks/use_conversation.d.ts +4 -4
- package/build/hooks/use_conversation.js +3 -3
- package/build/hooks/use_conversation_jolt_events.js +1 -1
- package/build/hooks/use_conversation_membership.d.ts +1 -1
- package/build/hooks/use_conversation_membership.js +2 -2
- package/build/hooks/use_conversation_message.d.ts +1 -1
- package/build/hooks/use_conversation_message.js +1 -1
- package/build/hooks/use_conversation_messages.d.ts +3 -3
- package/build/hooks/use_conversation_messages.js +1 -1
- package/build/hooks/use_conversation_messages_jolt_events.js +6 -6
- package/build/hooks/use_conversations.d.ts +2 -2
- package/build/hooks/use_conversations.js +1 -1
- package/build/hooks/use_conversations_actions.d.ts +19 -19
- package/build/hooks/use_conversations_actions.js +1 -1
- package/build/hooks/use_conversations_cache.d.ts +2 -2
- package/build/hooks/use_conversations_cache.js +2 -2
- package/build/hooks/use_conversations_jolt_events.js +2 -2
- package/build/hooks/use_current_person.d.ts +1 -1
- package/build/hooks/use_features.d.ts +1 -1
- package/build/hooks/use_features.js +1 -1
- package/build/hooks/use_giphy.d.ts +1 -1
- package/build/hooks/use_giphy.js +1 -1
- package/build/hooks/use_groups.d.ts +2 -2
- package/build/hooks/use_groups_groups.d.ts +33 -33
- package/build/hooks/use_jolt.js +2 -2
- package/build/hooks/use_live_relative_time.d.ts +1 -1
- package/build/hooks/use_live_relative_time.js +2 -2
- package/build/hooks/use_mark_latest_message_read.d.ts +1 -1
- package/build/hooks/use_message_create_or_update.d.ts +2 -2
- package/build/hooks/use_message_create_or_update.js +7 -7
- package/build/hooks/use_message_draft.d.ts +1 -1
- package/build/hooks/use_message_draft.js +1 -1
- package/build/hooks/use_message_reaction_toggle.d.ts +2 -2
- package/build/hooks/use_message_reaction_toggle.js +2 -2
- package/build/hooks/use_organization.d.ts +4 -4
- package/build/hooks/use_people_person.d.ts +1 -1
- package/build/hooks/use_product_analytics.d.ts +1 -1
- package/build/hooks/use_product_analytics.js +3 -3
- package/build/hooks/use_qualified_by_age.js +1 -1
- package/build/hooks/use_read_receipts.d.ts +1 -1
- package/build/hooks/use_report_message.d.ts +1 -1
- package/build/hooks/use_report_message.js +1 -1
- package/build/hooks/use_storage.d.ts +1 -1
- package/build/hooks/use_submit_age_check.d.ts +1 -1
- package/build/hooks/use_submit_age_check.js +1 -1
- package/build/hooks/use_suspense_api.d.ts +3 -3
- package/build/hooks/use_suspense_api.js +2 -2
- package/build/hooks/use_teams.d.ts +1 -1
- package/build/hooks/use_theme.d.ts +1 -1
- package/build/hooks/use_theme.js +1 -1
- package/build/hooks/use_typing_indicators.js +1 -1
- package/build/hooks/use_typing_status_cache.d.ts +1 -1
- package/build/hooks/use_upload_client.d.ts +1 -1
- package/build/hooks/use_upload_client.js +3 -3
- package/build/icons/font_awesome.js +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/navigation/chat_access_gate.js +7 -7
- package/build/navigation/index.d.ts +25 -25
- package/build/navigation/index.js +28 -28
- package/build/navigation/screenLayout.js +2 -2
- package/build/polyfills/events/Event.js +1 -1
- package/build/polyfills/events/EventTarget.js +1 -1
- package/build/polyfills/events/internals/EventInternals.d.ts +2 -2
- package/build/polyfills/events/internals/EventTargetInternals.d.ts +2 -2
- package/build/screens/age_check/age_check_required_screen.js +8 -8
- package/build/screens/age_check/age_check_underage_screen.js +3 -3
- package/build/screens/age_check/components/age_check_select_birthdate_modal.js +3 -3
- package/build/screens/attachment_actions/attachment_actions_screen.js +1 -1
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.js +3 -3
- package/build/screens/bug_report_screen.js +11 -11
- package/build/screens/conversation/message_read_receipts_screen.js +4 -4
- package/build/screens/conversation_details_screen.js +8 -8
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js +3 -3
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts +1 -1
- package/build/screens/conversation_filter_recipients/components/header_row.js +4 -4
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js +6 -6
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts +1 -1
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.js +1 -1
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts +22 -22
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.js +2 -2
- package/build/screens/conversation_filter_recipients/types.d.ts +1 -1
- package/build/screens/conversation_filters/components/conversation_filters.js +5 -5
- package/build/screens/conversation_filters/components/rows.d.ts +4 -4
- package/build/screens/conversation_filters/components/rows.js +5 -5
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts +1 -1
- package/build/screens/conversation_filters/group_filters.js +1 -1
- package/build/screens/conversation_filters/hooks/filters.d.ts +54 -54
- package/build/screens/conversation_filters/hooks/filters.js +3 -3
- package/build/screens/conversation_filters/screen_props.d.ts +1 -1
- package/build/screens/conversation_filters/team_filters.js +1 -1
- package/build/screens/conversation_filters_screen.js +1 -1
- package/build/screens/conversation_new/components/filter_by_plan.js +7 -7
- package/build/screens/conversation_new/components/form_list.d.ts +1 -1
- package/build/screens/conversation_new/components/form_list.js +2 -2
- package/build/screens/conversation_new/components/gender_filter_toggle.js +3 -3
- package/build/screens/conversation_new/components/groups_form.d.ts +1 -1
- package/build/screens/conversation_new/components/groups_form.js +10 -10
- package/build/screens/conversation_new/components/services_form.d.ts +1 -1
- package/build/screens/conversation_new/components/services_form.js +8 -8
- package/build/screens/conversation_new/components/source_app_error_card.js +1 -1
- package/build/screens/conversation_new/conversation_new_screen.d.ts +3 -3
- package/build/screens/conversation_notification_level_select_screen.js +5 -5
- package/build/screens/conversation_screen.d.ts +3 -3
- package/build/screens/conversation_screen.js +21 -21
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts +1 -1
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.js +1 -1
- package/build/screens/conversation_select_recipients/components/recipient_link_row.js +3 -3
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts +1 -1
- package/build/screens/conversation_select_recipients/components/restricted_group_row.js +3 -3
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts +1 -1
- package/build/screens/conversation_select_recipients/components/team_recipient_row.js +1 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.js +1 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +4 -4
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js +2 -2
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js +4 -4
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts +2 -2
- package/build/screens/conversation_select_type_screen.d.ts +2 -2
- package/build/screens/conversation_select_type_screen.js +2 -2
- package/build/screens/conversations/components/chat_group_badge.js +2 -2
- package/build/screens/conversations/components/list_header_action_button.d.ts +1 -1
- package/build/screens/conversations/components/list_header_action_button.js +4 -4
- package/build/screens/conversations/components/list_header_component.js +9 -9
- package/build/screens/conversations/conversations_screen.d.ts +2 -2
- package/build/screens/conversations/conversations_screen.js +3 -3
- package/build/screens/design_system_screen.js +6 -6
- package/build/screens/get_help_screen.js +4 -4
- package/build/screens/group_notification_level_select_screen.js +3 -3
- package/build/screens/group_notification_settings_screen.js +3 -3
- package/build/screens/message_actions_screen.js +10 -10
- package/build/screens/message_report/components/message_preview.d.ts +1 -1
- package/build/screens/message_report/components/message_preview.js +2 -2
- package/build/screens/message_report/components/report_reason_list.d.ts +1 -1
- package/build/screens/message_report/components/report_reason_list.js +4 -4
- package/build/screens/message_report_screen.js +7 -7
- package/build/screens/notification_settings/hooks/groups.d.ts +5 -5
- package/build/screens/notification_settings/hooks/groups.js +4 -4
- package/build/screens/notification_settings_screen.js +4 -4
- package/build/screens/preferred_app/hooks/use_chat_types.d.ts +4 -4
- package/build/screens/preferred_app/hooks/use_chat_types.js +1 -1
- package/build/screens/preferred_app_selection_screen.js +7 -7
- package/build/screens/preferred_app_selection_screen.js.map +1 -1
- package/build/screens/reactions_screen.js +7 -7
- package/build/screens/send_giphy_screen.js +8 -8
- package/build/screens/team_conversation_screen.js +3 -3
- package/build/types/jolt_events/message_events.d.ts +1 -1
- package/build/types/jolt_events/reaction_events.d.ts +1 -1
- package/build/types/resources/app_grant.d.ts +1 -1
- package/build/types/resources/conversation_membership.d.ts +1 -1
- package/build/types/resources/group_membership.d.ts +1 -1
- package/build/types/resources/groups/groups_group_resource.d.ts +1 -1
- package/build/types/resources/organization.d.ts +1 -1
- package/build/types/resources/person.d.ts +1 -1
- package/build/types/resources/services/chat_resource.d.ts +1 -1
- package/build/types/resources/services/team_resource.d.ts +1 -1
- package/build/utils/cache/messages_cache.d.ts +3 -3
- package/build/utils/cache/messages_cache.js +3 -3
- package/build/utils/cache/optimistically_create_message.d.ts +2 -2
- package/build/utils/cache/optimistically_create_message.js +4 -4
- package/build/utils/cache/optimistically_update_message.d.ts +1 -1
- package/build/utils/cache/optimistically_update_message.js +2 -2
- package/build/utils/cache/page_mutations.d.ts +5 -5
- package/build/utils/client/client.d.ts +1 -1
- package/build/utils/convert_attachments_for_create.d.ts +2 -2
- package/build/utils/destructure_chat_group_graph_id.d.ts +2 -2
- package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts +2 -2
- package/build/utils/jolt/transform_message_event_data_to_message_resource.js +1 -1
- package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts +3 -3
- package/build/utils/performance_tracking.d.ts +1 -1
- package/build/utils/reaction_constants.d.ts +1 -1
- package/build/utils/request/conversation.d.ts +2 -2
- package/build/utils/request/get_features.d.ts +1 -1
- package/build/utils/request/get_features.js +1 -1
- package/build/utils/request/get_message.d.ts +1 -1
- package/build/utils/request/get_message.js +1 -1
- package/build/utils/request/get_messages.d.ts +1 -1
- package/build/utils/request/get_messages.js +1 -1
- package/build/utils/response_error.d.ts +1 -1
- package/build/utils/session.d.ts +1 -1
- package/build/utils/session_manager.d.ts +1 -1
- package/build/utils/styles.js +1 -1
- package/build/utils/theme.d.ts +1 -1
- package/build/utils/theme.js +2 -2
- package/package.json +4 -3
- package/src/screens/preferred_app_selection_screen.tsx +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
2
|
-
import { useChatContext } from '
|
|
3
|
-
import { keysToSnakeCase } from '
|
|
4
|
-
import { SHA256, enc } from '
|
|
2
|
+
import { useChatContext } from '../contexts/chat_context';
|
|
3
|
+
import { keysToSnakeCase } from '../utils/client/utils';
|
|
4
|
+
import { SHA256, enc } from '../utils/sha_256';
|
|
5
5
|
function contentSha256(payload) {
|
|
6
6
|
return SHA256(payload).toString(enc.Hex);
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useApiGet } from './use_api';
|
|
2
2
|
import { currentPersonRequestArgs } from './use_current_person';
|
|
3
|
-
import { AgeQualificationStatus } from '
|
|
3
|
+
import { AgeQualificationStatus } from '../types';
|
|
4
4
|
export const useQualifiedByAge = () => {
|
|
5
5
|
const { data: person, isFetched } = useApiGet(currentPersonRequestArgs);
|
|
6
6
|
if (!isFetched) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MessageReportReason } from '
|
|
1
|
+
import { MessageReportReason } from '../types/resources/message_report';
|
|
2
2
|
export declare const useReportMessage: (conversationId: number, messageId: string) => import("@tanstack/react-query").UseMutationResult<import("..").ApiCollection | import("..").ApiResource, Error, {
|
|
3
3
|
reason: MessageReportReason;
|
|
4
4
|
reasonDetail?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
2
|
import { useApiClient } from './use_api_client';
|
|
3
|
-
import { Haptic } from '
|
|
3
|
+
import { Haptic } from '../utils/native_adapters';
|
|
4
4
|
export const useReportMessage = (conversationId, messageId) => {
|
|
5
5
|
const apiClient = useApiClient();
|
|
6
6
|
return useMutation({
|
|
@@ -2,7 +2,7 @@ import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
|
2
2
|
import { Alert } from 'react-native';
|
|
3
3
|
import { useApiClient } from './use_api_client';
|
|
4
4
|
import { currentPersonQueryKey } from './use_current_person';
|
|
5
|
-
import { Haptic } from '
|
|
5
|
+
import { Haptic } from '../utils/native_adapters';
|
|
6
6
|
export function useSubmitAgeCheck() {
|
|
7
7
|
const apiClient = useApiClient();
|
|
8
8
|
const queryClient = useQueryClient();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AnyUseSuspenseInfiniteQueryOptions, InfiniteData, UseSuspenseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import { App } from './use_api_client';
|
|
3
|
-
import { ApiCollection, ApiResource, ResourceObject } from '
|
|
4
|
-
import { FailedResponse } from '
|
|
5
|
-
import { GetRequest } from '
|
|
3
|
+
import { ApiCollection, ApiResource, ResourceObject } from '../types';
|
|
4
|
+
import { FailedResponse } from '../types/api_primitives';
|
|
5
|
+
import { GetRequest } from '../utils/client';
|
|
6
6
|
interface SuspenseGetOptions extends GetRequest {
|
|
7
7
|
app?: App;
|
|
8
8
|
reply_root_id?: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSuspenseInfiniteQuery, useSuspenseQuery, } from '@tanstack/react-query';
|
|
2
2
|
import { useApiClient } from './use_api_client';
|
|
3
|
-
import { Log } from '
|
|
4
|
-
import { ResponseError } from '
|
|
3
|
+
import { Log } from '../utils';
|
|
4
|
+
import { ResponseError } from '../utils/response_error';
|
|
5
5
|
export const useSuspenseGet = (args, options) => {
|
|
6
6
|
const apiClient = useApiClient();
|
|
7
7
|
const { data, ...query } = useSuspenseQuery({
|
package/build/hooks/use_theme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { useCurrentPerson } from './use_current_person';
|
|
4
|
-
import { useConversationContext } from '
|
|
4
|
+
import { useConversationContext } from '../contexts/conversation_context';
|
|
5
5
|
/**
|
|
6
6
|
* Hook for getting people currently typing in a conversation
|
|
7
7
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypingBroadcastDataAttributes } from '
|
|
1
|
+
import { TypingBroadcastDataAttributes } from '../types/jolt_events/typing_events';
|
|
2
2
|
export declare const TYPING_TIMEOUT_INTERVAL = 6000;
|
|
3
3
|
export interface PersonTyping extends TypingBroadcastDataAttributes {
|
|
4
4
|
expires: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useMemo } from 'react';
|
|
2
|
-
import { ChatContext } from '
|
|
3
|
-
import { Client } from '
|
|
4
|
-
import { UploadUri } from '
|
|
2
|
+
import { ChatContext } from '../contexts/chat_context';
|
|
3
|
+
import { Client } from '../utils';
|
|
4
|
+
import { UploadUri } from '../utils/upload_uri';
|
|
5
5
|
export const useUploadClient = () => {
|
|
6
6
|
const { session, onUnauthorizedResponse } = useContext(ChatContext);
|
|
7
7
|
const uri = useMemo(() => new UploadUri({ session }), [session]);
|
|
@@ -5,7 +5,7 @@ faBookBible, faChurch, faCross, faDove, faHandsHeart, faPersonRays, faPrayingHan
|
|
|
5
5
|
// Services
|
|
6
6
|
faGuitar, faGuitarElectric, faViolin, faCalendarHeart, faHandHeart, faHandWave, faBaby, faChildren, faMugHot, faVideoCamera, faMusic, faPianoKeyboard, faDrum, faUserGraduate, faCommentsQuestion, faPresentation, faMicrophoneStand, faIdBadge, faBookUser, faHandHoldingHeart, faGuitars, faAmpGuitar, faSchoolFlag, faShieldCheck, faProjector,
|
|
7
7
|
// Groups
|
|
8
|
-
faPeople, faPeopleGroup, faPersonDress, faPerson, faSeedling, faCommentsAlt, faGlobe, faBookOpenReader, faRunning, faLeaf, } from '
|
|
8
|
+
faPeople, faPeopleGroup, faPersonDress, faPerson, faSeedling, faCommentsAlt, faGlobe, faBookOpenReader, faRunning, faLeaf, } from '../vendor/font_awesome_pro_solid_icons';
|
|
9
9
|
library.add(
|
|
10
10
|
// Church
|
|
11
11
|
faBookBible, faChurch, faCross, faDove, faHandsHeart, faPersonRays, faPrayingHands, faPodium, faDroplet, faPersonDrowning, faLighthouse,
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import { DefaultLoading } from '
|
|
3
|
-
import { useChatContext } from '
|
|
4
|
-
import { useApiGet, useOrganization } from '
|
|
5
|
-
import { currentPersonRequestArgs } from '
|
|
6
|
-
import { AgeCheckRequiredScreen } from '
|
|
7
|
-
import { AgeCheckUnderageScreen } from '
|
|
8
|
-
import { AgeQualificationStatus } from '
|
|
2
|
+
import { DefaultLoading } from '../components/page/loading';
|
|
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';
|
|
7
|
+
import { AgeCheckUnderageScreen } from '../screens/age_check/age_check_underage_screen';
|
|
8
|
+
import { AgeQualificationStatus } from '../types';
|
|
9
9
|
export function ChatAccessGate({ children }) {
|
|
10
10
|
const { data: person, isFetched } = useApiGet(currentPersonRequestArgs);
|
|
11
11
|
const { data: organization } = useOrganization();
|
|
@@ -3,23 +3,23 @@ import { NativeStackHeaderRightProps } from '@react-navigation/native-stack';
|
|
|
3
3
|
import { CardStyleInterpolators } from '@react-navigation/stack';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { ScreenLayoutWithChatAccessGate } from './screenLayout';
|
|
6
|
-
import { AttachmentActionsScreen } from '
|
|
7
|
-
import { BugReportScreen } from '
|
|
8
|
-
import { MessageReadReceiptsScreen } from '
|
|
9
|
-
import { ConversationDetailsScreen } from '
|
|
10
|
-
import { ConversationNotificationLevelSelectScreen } from '
|
|
11
|
-
import { ConversationScreen } from '
|
|
12
|
-
import { ConversationSelectTypeScreen } from '
|
|
13
|
-
import { ConversationsScreen } from '
|
|
14
|
-
import { GroupNotificationLevelSelectScreen } from '
|
|
15
|
-
import { GroupNotificationSettingsScreen } from '
|
|
16
|
-
import { MessageActionsScreen } from '
|
|
17
|
-
import { MessageReportScreen } from '
|
|
18
|
-
import { NotFound } from '
|
|
19
|
-
import { NotificationSettingsScreen } from '
|
|
20
|
-
import { PreferredAppSelectionScreen } from '
|
|
21
|
-
import { ReactionsScreen } from '
|
|
22
|
-
import { SendGiphyScreen } from '
|
|
6
|
+
import { AttachmentActionsScreen } from '../screens/attachment_actions/attachment_actions_screen';
|
|
7
|
+
import { BugReportScreen } from '../screens/bug_report_screen';
|
|
8
|
+
import { MessageReadReceiptsScreen } from '../screens/conversation/message_read_receipts_screen';
|
|
9
|
+
import { ConversationDetailsScreen } from '../screens/conversation_details_screen';
|
|
10
|
+
import { ConversationNotificationLevelSelectScreen } from '../screens/conversation_notification_level_select_screen';
|
|
11
|
+
import { ConversationScreen } from '../screens/conversation_screen';
|
|
12
|
+
import { ConversationSelectTypeScreen } from '../screens/conversation_select_type_screen';
|
|
13
|
+
import { ConversationsScreen } from '../screens/conversations/conversations_screen';
|
|
14
|
+
import { GroupNotificationLevelSelectScreen } from '../screens/group_notification_level_select_screen';
|
|
15
|
+
import { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen';
|
|
16
|
+
import { MessageActionsScreen } from '../screens/message_actions_screen';
|
|
17
|
+
import { MessageReportScreen } from '../screens/message_report_screen';
|
|
18
|
+
import { NotFound } from '../screens/not_found';
|
|
19
|
+
import { NotificationSettingsScreen } from '../screens/notification_settings_screen';
|
|
20
|
+
import { PreferredAppSelectionScreen } from '../screens/preferred_app_selection_screen';
|
|
21
|
+
import { ReactionsScreen } from '../screens/reactions_screen';
|
|
22
|
+
import { SendGiphyScreen } from '../screens/send_giphy_screen';
|
|
23
23
|
export declare const NewConversationStack: import("@react-navigation/native").TypedNavigator<{
|
|
24
24
|
ParamList: import("@react-navigation/native").ParamListBase;
|
|
25
25
|
NavigatorID: undefined;
|
|
@@ -38,7 +38,7 @@ export declare const NewConversationStack: import("@react-navigation/native").Ty
|
|
|
38
38
|
readonly screenLayout: typeof ScreenLayoutWithChatAccessGate;
|
|
39
39
|
readonly screens: {
|
|
40
40
|
readonly ConversationNewEntry: {
|
|
41
|
-
readonly screen: ({ route }: import("
|
|
41
|
+
readonly screen: ({ route }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
|
|
42
42
|
readonly options: ({ navigation }: {
|
|
43
43
|
route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
|
|
44
44
|
navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
|
|
@@ -50,7 +50,7 @@ export declare const NewConversationStack: import("@react-navigation/native").Ty
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
readonly ConversationSelectGroupRecipients: {
|
|
53
|
-
readonly screen: ({ route, }: import("
|
|
53
|
+
readonly screen: ({ route, }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
|
|
54
54
|
readonly options: ({ navigation, route }: {
|
|
55
55
|
route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
|
|
56
56
|
navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
|
|
@@ -61,7 +61,7 @@ export declare const NewConversationStack: import("@react-navigation/native").Ty
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
readonly ConversationSelectTeamsILeadRecipients: {
|
|
64
|
-
readonly screen: ({ route, }: import("
|
|
64
|
+
readonly screen: ({ route, }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
|
|
65
65
|
readonly options: ({ navigation, route }: {
|
|
66
66
|
route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
|
|
67
67
|
navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
|
|
@@ -130,7 +130,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
|
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
132
|
readonly ConversationFilters: {
|
|
133
|
-
readonly screen: (_props: import("
|
|
133
|
+
readonly screen: (_props: import("../screens/conversation_filters/screen_props").ConversationFiltersScreenProps) => React.JSX.Element;
|
|
134
134
|
readonly options: import("@react-navigation/native-stack").NativeStackNavigationOptions;
|
|
135
135
|
};
|
|
136
136
|
readonly Conversation: {
|
|
@@ -157,7 +157,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
|
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
159
|
readonly TeamConversation: {
|
|
160
|
-
readonly screen: ({ route }: import("
|
|
160
|
+
readonly screen: ({ route }: import("../screens/team_conversation_screen").TeamConversationScreenProps) => React.JSX.Element;
|
|
161
161
|
readonly if: () => boolean;
|
|
162
162
|
readonly options: {
|
|
163
163
|
readonly title: "Finding conversation...";
|
|
@@ -233,7 +233,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
|
|
|
233
233
|
readonly screenLayout: typeof ScreenLayoutWithChatAccessGate;
|
|
234
234
|
readonly screens: {
|
|
235
235
|
readonly ConversationNewEntry: {
|
|
236
|
-
readonly screen: ({ route }: import("
|
|
236
|
+
readonly screen: ({ route }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
|
|
237
237
|
readonly options: ({ navigation }: {
|
|
238
238
|
route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
|
|
239
239
|
navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
|
|
@@ -245,7 +245,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
|
|
|
245
245
|
};
|
|
246
246
|
};
|
|
247
247
|
readonly ConversationSelectGroupRecipients: {
|
|
248
|
-
readonly screen: ({ route, }: import("
|
|
248
|
+
readonly screen: ({ route, }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
|
|
249
249
|
readonly options: ({ navigation, route }: {
|
|
250
250
|
route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
|
|
251
251
|
navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
|
|
@@ -256,7 +256,7 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
|
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
258
|
readonly ConversationSelectTeamsILeadRecipients: {
|
|
259
|
-
readonly screen: ({ route, }: import("
|
|
259
|
+
readonly screen: ({ route, }: import("../screens/conversation_select_recipients/types/screen_props").ConversationSelectRecipientsScreenProps) => React.JSX.Element;
|
|
260
260
|
readonly options: ({ navigation, route }: {
|
|
261
261
|
route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
|
|
262
262
|
navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
|
|
@@ -4,34 +4,34 @@ import { CardStyleInterpolators } from '@react-navigation/stack';
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Platform } from 'react-native';
|
|
6
6
|
import { ScreenLayoutWithChatAccessGate } from './screenLayout';
|
|
7
|
-
import { Icon } from '
|
|
8
|
-
import { HeaderDoneButton, HeaderTextButton, } from '
|
|
9
|
-
import { useQualifiedByAge } from '
|
|
10
|
-
import { AttachmentActionsScreen, AttachmentActionsScreenOptions, } from '
|
|
11
|
-
import { BugReportScreen, BugReportScreenOptions } from '
|
|
12
|
-
import { MessageReadReceiptsScreen, MessageReadReceiptsScreenOptions, } from '
|
|
13
|
-
import { ConversationDetailsScreen } from '
|
|
14
|
-
import { ConversationFilterReceipientsScreenOptions, ConversationFilterRecipientsScreen, } from '
|
|
15
|
-
import { ConversationFiltersScreen, ConversationFiltersScreenOptions, } from '
|
|
16
|
-
import { ConversationNewScreen } from '
|
|
17
|
-
import { ConversationNotificationLevelSelectScreen, ConversationNotificationLevelSelectScreenOptions, } from '
|
|
18
|
-
import { ConversationScreen, ConversationScreenTitle, } from '
|
|
19
|
-
import { ConversationNewEntryScreen } from '
|
|
20
|
-
import { ConversationSelectGroupRecipientsScreen } from '
|
|
21
|
-
import { ConversationSelectTeamsILeadRecipientsScreen } from '
|
|
22
|
-
import { ConversationSelectTypeScreen, ConversationSelectTypeScreenOptions, } from '
|
|
23
|
-
import { ConversationsScreen } from '
|
|
24
|
-
import { GetHelpScreen } from '
|
|
25
|
-
import { GroupNotificationLevelSelectScreen, GroupNotificationLevelSelectScreenOptions, } from '
|
|
26
|
-
import { GroupNotificationSettingsScreen } from '
|
|
27
|
-
import { MessageActionsScreen, MessageActionsScreenOptions } from '
|
|
28
|
-
import { MessageReportScreen, MessageReportScreenOptions } from '
|
|
29
|
-
import { NotFound } from '
|
|
30
|
-
import { NotificationSettingsScreen } from '
|
|
31
|
-
import { PreferredAppSelectionScreen } from '
|
|
32
|
-
import { ReactionsScreen, ReactionsScreenOptions } from '
|
|
33
|
-
import { SendGiphyScreen, SendGiphyScreenOptions } from '
|
|
34
|
-
import { TeamConversationScreen } from '
|
|
7
|
+
import { Icon } from '../components';
|
|
8
|
+
import { HeaderDoneButton, HeaderTextButton, } from '../components/display/platform_modal_header_buttons';
|
|
9
|
+
import { useQualifiedByAge } from '../hooks';
|
|
10
|
+
import { AttachmentActionsScreen, AttachmentActionsScreenOptions, } from '../screens/attachment_actions/attachment_actions_screen';
|
|
11
|
+
import { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen';
|
|
12
|
+
import { MessageReadReceiptsScreen, MessageReadReceiptsScreenOptions, } from '../screens/conversation/message_read_receipts_screen';
|
|
13
|
+
import { ConversationDetailsScreen } from '../screens/conversation_details_screen';
|
|
14
|
+
import { ConversationFilterReceipientsScreenOptions, ConversationFilterRecipientsScreen, } from '../screens/conversation_filter_recipients/conversation_filter_recipients_screen';
|
|
15
|
+
import { ConversationFiltersScreen, ConversationFiltersScreenOptions, } from '../screens/conversation_filters_screen';
|
|
16
|
+
import { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen';
|
|
17
|
+
import { ConversationNotificationLevelSelectScreen, ConversationNotificationLevelSelectScreenOptions, } from '../screens/conversation_notification_level_select_screen';
|
|
18
|
+
import { ConversationScreen, ConversationScreenTitle, } from '../screens/conversation_screen';
|
|
19
|
+
import { ConversationNewEntryScreen } from '../screens/conversation_select_recipients/conversation_new_entry_screen';
|
|
20
|
+
import { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen';
|
|
21
|
+
import { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen';
|
|
22
|
+
import { ConversationSelectTypeScreen, ConversationSelectTypeScreenOptions, } from '../screens/conversation_select_type_screen';
|
|
23
|
+
import { ConversationsScreen } from '../screens/conversations/conversations_screen';
|
|
24
|
+
import { GetHelpScreen } from '../screens/get_help_screen';
|
|
25
|
+
import { GroupNotificationLevelSelectScreen, GroupNotificationLevelSelectScreenOptions, } from '../screens/group_notification_level_select_screen';
|
|
26
|
+
import { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen';
|
|
27
|
+
import { MessageActionsScreen, MessageActionsScreenOptions } from '../screens/message_actions_screen';
|
|
28
|
+
import { MessageReportScreen, MessageReportScreenOptions } from '../screens/message_report_screen';
|
|
29
|
+
import { NotFound } from '../screens/not_found';
|
|
30
|
+
import { NotificationSettingsScreen } from '../screens/notification_settings_screen';
|
|
31
|
+
import { PreferredAppSelectionScreen } from '../screens/preferred_app_selection_screen';
|
|
32
|
+
import { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen';
|
|
33
|
+
import { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen';
|
|
34
|
+
import { TeamConversationScreen } from '../screens/team_conversation_screen';
|
|
35
35
|
const HEADER_BACK_BUTTON_LAYOUT_RESET_STYLES = {
|
|
36
36
|
marginLeft: Platform.select({ ios: -8, default: -3 }),
|
|
37
37
|
marginRight: Platform.select({ ios: 0, default: 30 }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Suspense } from 'react';
|
|
3
3
|
import { ChatAccessGate } from './chat_access_gate';
|
|
4
|
-
import ErrorBoundary from '
|
|
5
|
-
import { DefaultLoading } from '
|
|
4
|
+
import ErrorBoundary from '../components/page/error_boundary';
|
|
5
|
+
import { DefaultLoading } from '../components/page/loading';
|
|
6
6
|
export function ScreenLayout({ children }) {
|
|
7
7
|
return (<ErrorBoundary>
|
|
8
8
|
<Suspense fallback={<DefaultLoading />}>{children}</Suspense>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { getComposedPath, getCurrentTarget, getEventPhase, getInPassiveListenerFlag, getIsTrusted, getTarget, setStopImmediatePropagationFlag, setStopPropagationFlag, setIsTrusted, setEventPhase, } from './internals/EventInternals';
|
|
8
|
-
import { setPlatformObject } from '
|
|
8
|
+
import { setPlatformObject } from '../../polyfills/webidl/PlatformObjects';
|
|
9
9
|
export default class Event {
|
|
10
10
|
static NONE;
|
|
11
11
|
static CAPTURING_PHASE;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import Event from './Event';
|
|
11
11
|
import { getStopImmediatePropagationFlag, getStopPropagationFlag, setComposedPath, setCurrentTarget, setEventPhase, setInPassiveListenerFlag, setIsTrusted, setStopImmediatePropagationFlag, setStopPropagationFlag, setTarget, } from './internals/EventInternals';
|
|
12
12
|
import { EVENT_TARGET_GET_THE_PARENT_KEY, INTERNAL_DISPATCH_METHOD_KEY, } from './internals/EventTargetInternals';
|
|
13
|
-
import { setPlatformObject } from '
|
|
13
|
+
import { setPlatformObject } from '../../polyfills/webidl/PlatformObjects';
|
|
14
14
|
export default class EventTarget {
|
|
15
15
|
addEventListener(type, callback, optionsOrUseCapture = {}) {
|
|
16
16
|
if (arguments.length < 2) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal implementation details for the `Event` module.
|
|
3
3
|
*/
|
|
4
|
-
import type Event from '
|
|
5
|
-
import type EventTarget from '
|
|
4
|
+
import type Event from '../../../polyfills/events/Event';
|
|
5
|
+
import type EventTarget from '../../../polyfills/events/EventTarget';
|
|
6
6
|
export declare const COMPOSED_PATH_KEY: unique symbol;
|
|
7
7
|
export declare const CURRENT_TARGET_KEY: unique symbol;
|
|
8
8
|
export declare const EVENT_PHASE_KEY: unique symbol;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal implementation details for the `EventTarget` module.
|
|
3
3
|
*/
|
|
4
|
-
import type Event from '
|
|
5
|
-
import type EventTarget from '
|
|
4
|
+
import type Event from '../../../polyfills/events/Event';
|
|
5
|
+
import type EventTarget from '../../../polyfills/events/EventTarget';
|
|
6
6
|
export declare const EVENT_TARGET_GET_THE_PARENT_KEY: unique symbol;
|
|
7
7
|
export declare const INTERNAL_DISPATCH_METHOD_KEY: unique symbol;
|
|
8
8
|
export declare function dispatchTrustedEvent(eventTarget: EventTarget, event: Event): void;
|
|
@@ -2,14 +2,14 @@ import { date as formatDate } from '@planningcenter/datetime-fmt';
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { StyleSheet, View, ScrollView } from 'react-native';
|
|
4
4
|
import { AgeCheckSelectBirthdateModal } from './components/age_check_select_birthdate_modal';
|
|
5
|
-
import { Heading } from '
|
|
6
|
-
import { Avatar } from '
|
|
7
|
-
import { Banner } from '
|
|
8
|
-
import { Button } from '
|
|
9
|
-
import { Icon } from '
|
|
10
|
-
import { Text } from '
|
|
11
|
-
import { useCurrentPerson, useTheme, useSubmitAgeCheck, useOrganization } from '
|
|
12
|
-
import { platformFontWeightBold } from '
|
|
5
|
+
import { Heading } from '../../components';
|
|
6
|
+
import { Avatar } from '../../components/display/avatar';
|
|
7
|
+
import { Banner } from '../../components/display/banner';
|
|
8
|
+
import { Button } from '../../components/display/button';
|
|
9
|
+
import { Icon } from '../../components/display/icon';
|
|
10
|
+
import { Text } from '../../components/display/text';
|
|
11
|
+
import { useCurrentPerson, useTheme, useSubmitAgeCheck, useOrganization } from '../../hooks';
|
|
12
|
+
import { platformFontWeightBold } from '../../utils/styles';
|
|
13
13
|
function calculateAge(birthdate) {
|
|
14
14
|
const today = new Date();
|
|
15
15
|
const age = today.getUTCFullYear() - birthdate.getUTCFullYear();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useRoute } from '@react-navigation/native';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Linking, StyleSheet, View, ScrollView } from 'react-native';
|
|
4
|
-
import { Heading } from '
|
|
5
|
-
import { Icon, Text, TextInlineButton } from '
|
|
6
|
-
import { useTheme } from '
|
|
4
|
+
import { Heading } from '../../components';
|
|
5
|
+
import { Icon, Text, TextInlineButton } from '../../components/display';
|
|
6
|
+
import { useTheme } from '../../hooks';
|
|
7
7
|
export function AgeCheckUnderageScreen({ contactEmail } = {}) {
|
|
8
8
|
const styles = useStyles();
|
|
9
9
|
const route = useRoute();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Modal, Platform, StyleSheet, View } from 'react-native';
|
|
4
|
-
import { Text } from '
|
|
5
|
-
import FormSheet from '
|
|
6
|
-
import { useTheme } from '
|
|
4
|
+
import { Text } from '../../../components/display/text';
|
|
5
|
+
import FormSheet from '../../../components/primitive/form_sheet';
|
|
6
|
+
import { useTheme } from '../../../hooks';
|
|
7
7
|
export function AgeCheckSelectBirthdateModal(props) {
|
|
8
8
|
if (Platform.OS === 'ios')
|
|
9
9
|
return <IOSBirthdateModal {...props}/>;
|
|
@@ -2,7 +2,7 @@ import { useNavigation } from '@react-navigation/native';
|
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { Alert, Linking, StyleSheet } from 'react-native';
|
|
4
4
|
import { useDeleteAttachment } from './hooks/useDeleteAttachment';
|
|
5
|
-
import FormSheet, { getFormSheetScreenOptions } from '
|
|
5
|
+
import FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet';
|
|
6
6
|
export const AttachmentActionsScreenOptions = getFormSheetScreenOptions({
|
|
7
7
|
headerTitle: 'Attachment actions',
|
|
8
8
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { Alert } from 'react-native';
|
|
4
|
-
import { useApiClient } from '
|
|
5
|
-
import { useConversationMessages } from '
|
|
6
|
-
import { Haptic } from '
|
|
4
|
+
import { useApiClient } from '../../../hooks/use_api_client';
|
|
5
|
+
import { useConversationMessages } from '../../../hooks/use_conversation_messages';
|
|
6
|
+
import { Haptic } from '../../../utils/native_adapters';
|
|
7
7
|
export function useDeleteAttachment({ conversation_id, attachmentId, attachmentName, }) {
|
|
8
8
|
const apiClient = useApiClient();
|
|
9
9
|
const { refetch } = useConversationMessages({ conversation_id }, { refetchOnMount: false });
|
|
@@ -3,17 +3,17 @@ import { startsWith } from 'lodash';
|
|
|
3
3
|
import React, { useCallback, useLayoutEffect, useState } from 'react';
|
|
4
4
|
import { View, StyleSheet, TextInput, Linking, ScrollView, TouchableOpacity, Platform, } from 'react-native';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
-
import { Button, Spinner, Text, TextInlineButton, ImageAttachmentPreview, Icon, KeyboardView, } from '
|
|
7
|
-
import { HeaderDismissButton, HeaderTextButton, } from '
|
|
8
|
-
import { VideoAttachmentPreview } from '
|
|
9
|
-
import { DefaultLoading } from '
|
|
10
|
-
import BlankState from '
|
|
11
|
-
import { SafeAreaModal } from '
|
|
12
|
-
import { useTheme } from '
|
|
13
|
-
import { useAppName } from '
|
|
14
|
-
import { useReportBugAction } from '
|
|
15
|
-
import { useUploadClient } from '
|
|
16
|
-
import { ImagePicker, platformFontWeightBold } from '
|
|
6
|
+
import { Button, Spinner, Text, TextInlineButton, ImageAttachmentPreview, Icon, KeyboardView, } from '../components';
|
|
7
|
+
import { HeaderDismissButton, HeaderTextButton, } from '../components/display/platform_modal_header_buttons';
|
|
8
|
+
import { VideoAttachmentPreview } from '../components/display/video_attachment_preview';
|
|
9
|
+
import { DefaultLoading } from '../components/page/loading';
|
|
10
|
+
import BlankState from '../components/primitive/blank_state_primitive';
|
|
11
|
+
import { SafeAreaModal } from '../components/safe_area_modal';
|
|
12
|
+
import { useTheme } from '../hooks';
|
|
13
|
+
import { useAppName } from '../hooks/use_app_name';
|
|
14
|
+
import { useReportBugAction } from '../hooks/use_report_bug_action';
|
|
15
|
+
import { useUploadClient } from '../hooks/use_upload_client';
|
|
16
|
+
import { ImagePicker, platformFontWeightBold } from '../utils';
|
|
17
17
|
const MAX_DESCRIPTION_LENGTH = 2000;
|
|
18
18
|
var BUG_TYPE_OPTIONS;
|
|
19
19
|
(function (BUG_TYPE_OPTIONS) {
|
|
@@ -3,10 +3,10 @@ import React, { memo, useCallback, useMemo, useState } from 'react';
|
|
|
3
3
|
import { Platform, StyleSheet, View } from 'react-native';
|
|
4
4
|
import { FlatList } from 'react-native-gesture-handler';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
-
import { Avatar, Text } from '
|
|
7
|
-
import FormSheet, { getFormSheetScreenOptions } from '
|
|
8
|
-
import { useTheme } from '
|
|
9
|
-
import { useReadReceipts } from '
|
|
6
|
+
import { Avatar, Text } from '../../components';
|
|
7
|
+
import FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet';
|
|
8
|
+
import { useTheme } from '../../hooks';
|
|
9
|
+
import { useReadReceipts } from '../../hooks/use_read_receipts';
|
|
10
10
|
const LIST_BOTTOM_PADDING = 24;
|
|
11
11
|
export const MessageReadReceiptsScreenOptions = getFormSheetScreenOptions({
|
|
12
12
|
sheetAllowedDetents: Platform.select({
|
|
@@ -2,14 +2,14 @@ import { HeaderTitle as ElementsHeaderTitle, PlatformPressable, } from '@react-n
|
|
|
2
2
|
import { StackActions, useNavigation } from '@react-navigation/native';
|
|
3
3
|
import React, { useCallback, useEffect, useRef, useState, } from 'react';
|
|
4
4
|
import { Alert, FlatList, Platform, Pressable, StyleSheet, TextInput, View, } from 'react-native';
|
|
5
|
-
import { Badge, ChildNotice, Heading, Icon, Person, Switch, Text, TextButton, } from '
|
|
6
|
-
import { HeaderTextButton } from '
|
|
7
|
-
import { useSuspensePaginator, useTheme } from '
|
|
8
|
-
import { useConversation, useConversationDelete, useConversationDisableReplies, useConversationMute, useConversationUpdate, } from '
|
|
9
|
-
import { availableFeatures, useFeatures } from '
|
|
10
|
-
import { isDefined } from '
|
|
11
|
-
import { genderDisplayLabel } from '
|
|
12
|
-
import { tokens } from '
|
|
5
|
+
import { Badge, ChildNotice, Heading, Icon, Person, Switch, Text, TextButton, } from '../components';
|
|
6
|
+
import { HeaderTextButton } from '../components/display/platform_modal_header_buttons';
|
|
7
|
+
import { useSuspensePaginator, useTheme } from '../hooks';
|
|
8
|
+
import { useConversation, useConversationDelete, useConversationDisableReplies, useConversationMute, useConversationUpdate, } from '../hooks/use_conversation';
|
|
9
|
+
import { availableFeatures, useFeatures } from '../hooks/use_features';
|
|
10
|
+
import { isDefined } from '../types';
|
|
11
|
+
import { genderDisplayLabel } from '../utils/gender_display_label';
|
|
12
|
+
import { tokens } from '../vendor/tapestry/tokens';
|
|
13
13
|
// =========================================
|
|
14
14
|
// ====== Factory Constants & Types ========
|
|
15
15
|
// =========================================
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ViewStyle } from 'react-native';
|
|
2
|
-
import { SetTeamFilters, TeamProps } from '
|
|
2
|
+
import { SetTeamFilters, TeamProps } from '../../../screens/conversation_filter_recipients/types';
|
|
3
3
|
interface TeamRowProps {
|
|
4
4
|
data: TeamProps;
|
|
5
5
|
style?: ViewStyle;
|