@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,8 +1,8 @@
|
|
|
1
1
|
import { useRoute } from '@react-navigation/native';
|
|
2
2
|
import { Pressable, View, StyleSheet } from 'react-native';
|
|
3
|
-
import { Icon, Text } from '
|
|
4
|
-
import { useTheme } from '
|
|
5
|
-
import { tokens } from '
|
|
3
|
+
import { Icon, Text } from '../../../components';
|
|
4
|
+
import { useTheme } from '../../../hooks';
|
|
5
|
+
import { tokens } from '../../../vendor/tapestry/tokens';
|
|
6
6
|
export const CheckboxRow = ({ data, style, accessibilityLabelledBy, setTeamFilters, }) => {
|
|
7
7
|
const styles = useStyles();
|
|
8
8
|
const route = useRoute();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ViewStyle } from 'react-native';
|
|
2
|
-
import type { ServiceTypeProps, SetTeamFilters } from '
|
|
2
|
+
import type { ServiceTypeProps, SetTeamFilters } from '../../../screens/conversation_filter_recipients/types';
|
|
3
3
|
interface HeaderRowProps {
|
|
4
4
|
data: ServiceTypeProps;
|
|
5
5
|
nativeID: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useRoute } from '@react-navigation/native';
|
|
2
2
|
import { View, StyleSheet } from 'react-native';
|
|
3
|
-
import { Icon, Heading, TextButton } from '
|
|
4
|
-
import { useTheme } from '
|
|
5
|
-
import { pluralize } from '
|
|
6
|
-
import { tokens } from '
|
|
3
|
+
import { Icon, Heading, TextButton } from '../../../components';
|
|
4
|
+
import { useTheme } from '../../../hooks';
|
|
5
|
+
import { pluralize } from '../../../utils';
|
|
6
|
+
import { tokens } from '../../../vendor/tapestry/tokens';
|
|
7
7
|
const BULK_SELECT_LIMIT = 10;
|
|
8
8
|
export const HeaderRow = ({ data, nativeID, style, setTeamFilters }) => {
|
|
9
9
|
const styles = useStyles();
|
package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js
CHANGED
|
@@ -8,12 +8,12 @@ import { HeaderRow } from './components/header_row';
|
|
|
8
8
|
import { useFlattenedArrayOfServiceTypesWithTeams } from './hooks/use_flattened_array_of_service_types_with_teams';
|
|
9
9
|
import { useServiceTypesWithTeams } from './hooks/use_service_types_with_teams';
|
|
10
10
|
import { SectionTypes, TeamFilterTypes } from './types';
|
|
11
|
-
import { Heading, ToggleButton } from '
|
|
12
|
-
import { DefaultLoading } from '
|
|
13
|
-
import BlankState from '
|
|
14
|
-
import FormSheet, { getFormSheetScreenOptions } from '
|
|
15
|
-
import { useFontScale, useTheme } from '
|
|
16
|
-
import { tokens } from '
|
|
11
|
+
import { Heading, ToggleButton } from '../../components';
|
|
12
|
+
import { DefaultLoading } from '../../components/page/loading';
|
|
13
|
+
import BlankState from '../../components/primitive/blank_state_primitive';
|
|
14
|
+
import FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet';
|
|
15
|
+
import { useFontScale, useTheme } from '../../hooks';
|
|
16
|
+
import { tokens } from '../../vendor/tapestry/tokens';
|
|
17
17
|
const SERVICE_TYPE_LABELLED_BY_PREFIX = 'header-';
|
|
18
18
|
const SPACE_UNDER_ROW = 16;
|
|
19
19
|
export const ConversationFilterReceipientsScreenOptions = getFormSheetScreenOptions({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ViewStyle } from 'react-native';
|
|
2
|
-
import { type SectionListData, type ServiceTypeWithTeams } from '
|
|
2
|
+
import { type SectionListData, type ServiceTypeWithTeams } from '../../../screens/conversation_filter_recipients/types';
|
|
3
3
|
interface Props {
|
|
4
4
|
data: ServiceTypeWithTeams[];
|
|
5
5
|
firstRowStyle: ViewStyle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { SectionTypes, } from '
|
|
2
|
+
import { SectionTypes, } from '../../../screens/conversation_filter_recipients/types';
|
|
3
3
|
export function useFlattenedArrayOfServiceTypesWithTeams({ data, firstRowStyle, lastRowStyle, }) {
|
|
4
4
|
const flattenedData = useMemo(() => data.flatMap(serviceType => {
|
|
5
5
|
const teamIdsForServiceType = serviceType.teams.map(team => team.id);
|
package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ServiceTypeWithTeams, TeamFilterTypes } from '
|
|
2
|
-
import { ServicesChatResource } from '
|
|
1
|
+
import { ServiceTypeWithTeams, TeamFilterTypes } from '../../../screens/conversation_filter_recipients/types';
|
|
2
|
+
import { ServicesChatResource } from '../../../types';
|
|
3
3
|
export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?: {
|
|
4
4
|
filterType?: TeamFilterTypes;
|
|
5
5
|
searchQuery?: string;
|
|
6
6
|
}): {
|
|
7
|
-
error: import("
|
|
7
|
+
error: import("../../../types").FailedResponse;
|
|
8
8
|
isError: true;
|
|
9
9
|
isPending: false;
|
|
10
10
|
isLoading: false;
|
|
@@ -16,7 +16,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
16
16
|
dataUpdatedAt: number;
|
|
17
17
|
errorUpdatedAt: number;
|
|
18
18
|
failureCount: number;
|
|
19
|
-
failureReason: import("
|
|
19
|
+
failureReason: import("../../../types").FailedResponse | null;
|
|
20
20
|
errorUpdateCount: number;
|
|
21
21
|
isFetched: boolean;
|
|
22
22
|
isFetchedAfterMount: boolean;
|
|
@@ -25,9 +25,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
25
25
|
isPaused: boolean;
|
|
26
26
|
isRefetching: boolean;
|
|
27
27
|
isStale: boolean;
|
|
28
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("
|
|
28
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
|
|
29
29
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
30
|
-
promise: Promise<import("
|
|
30
|
+
promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
|
|
31
31
|
links?: Record<string, string> | undefined;
|
|
32
32
|
meta?: Record<string, unknown> | undefined;
|
|
33
33
|
serviceTypes: ServiceTypeWithTeams[];
|
|
@@ -44,7 +44,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
44
44
|
dataUpdatedAt: number;
|
|
45
45
|
errorUpdatedAt: number;
|
|
46
46
|
failureCount: number;
|
|
47
|
-
failureReason: import("
|
|
47
|
+
failureReason: import("../../../types").FailedResponse | null;
|
|
48
48
|
errorUpdateCount: number;
|
|
49
49
|
isFetched: boolean;
|
|
50
50
|
isFetchedAfterMount: boolean;
|
|
@@ -53,14 +53,14 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
53
53
|
isPaused: boolean;
|
|
54
54
|
isRefetching: boolean;
|
|
55
55
|
isStale: boolean;
|
|
56
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("
|
|
56
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
|
|
57
57
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
58
|
-
promise: Promise<import("
|
|
58
|
+
promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
|
|
59
59
|
links?: Record<string, string> | undefined;
|
|
60
60
|
meta?: Record<string, unknown> | undefined;
|
|
61
61
|
serviceTypes: ServiceTypeWithTeams[];
|
|
62
62
|
} | {
|
|
63
|
-
error: import("
|
|
63
|
+
error: import("../../../types").FailedResponse;
|
|
64
64
|
isError: true;
|
|
65
65
|
isPending: false;
|
|
66
66
|
isLoading: false;
|
|
@@ -72,7 +72,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
72
72
|
dataUpdatedAt: number;
|
|
73
73
|
errorUpdatedAt: number;
|
|
74
74
|
failureCount: number;
|
|
75
|
-
failureReason: import("
|
|
75
|
+
failureReason: import("../../../types").FailedResponse | null;
|
|
76
76
|
errorUpdateCount: number;
|
|
77
77
|
isFetched: boolean;
|
|
78
78
|
isFetchedAfterMount: boolean;
|
|
@@ -81,9 +81,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
81
81
|
isPaused: boolean;
|
|
82
82
|
isRefetching: boolean;
|
|
83
83
|
isStale: boolean;
|
|
84
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("
|
|
84
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
|
|
85
85
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
86
|
-
promise: Promise<import("
|
|
86
|
+
promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
|
|
87
87
|
links?: Record<string, string> | undefined;
|
|
88
88
|
meta?: Record<string, unknown> | undefined;
|
|
89
89
|
serviceTypes: ServiceTypeWithTeams[];
|
|
@@ -100,7 +100,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
100
100
|
dataUpdatedAt: number;
|
|
101
101
|
errorUpdatedAt: number;
|
|
102
102
|
failureCount: number;
|
|
103
|
-
failureReason: import("
|
|
103
|
+
failureReason: import("../../../types").FailedResponse | null;
|
|
104
104
|
errorUpdateCount: number;
|
|
105
105
|
isFetched: boolean;
|
|
106
106
|
isFetchedAfterMount: boolean;
|
|
@@ -109,9 +109,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
109
109
|
isPaused: boolean;
|
|
110
110
|
isRefetching: boolean;
|
|
111
111
|
isStale: boolean;
|
|
112
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("
|
|
112
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
|
|
113
113
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
114
|
-
promise: Promise<import("
|
|
114
|
+
promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
|
|
115
115
|
links?: Record<string, string> | undefined;
|
|
116
116
|
meta?: Record<string, unknown> | undefined;
|
|
117
117
|
serviceTypes: ServiceTypeWithTeams[];
|
|
@@ -127,7 +127,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
127
127
|
dataUpdatedAt: number;
|
|
128
128
|
errorUpdatedAt: number;
|
|
129
129
|
failureCount: number;
|
|
130
|
-
failureReason: import("
|
|
130
|
+
failureReason: import("../../../types").FailedResponse | null;
|
|
131
131
|
errorUpdateCount: number;
|
|
132
132
|
isFetched: boolean;
|
|
133
133
|
isFetchedAfterMount: boolean;
|
|
@@ -137,9 +137,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
137
137
|
isPaused: boolean;
|
|
138
138
|
isRefetching: boolean;
|
|
139
139
|
isStale: boolean;
|
|
140
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("
|
|
140
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
|
|
141
141
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
142
|
-
promise: Promise<import("
|
|
142
|
+
promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
|
|
143
143
|
links?: Record<string, string> | undefined;
|
|
144
144
|
meta?: Record<string, unknown> | undefined;
|
|
145
145
|
serviceTypes: ServiceTypeWithTeams[];
|
|
@@ -156,7 +156,7 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
156
156
|
dataUpdatedAt: number;
|
|
157
157
|
errorUpdatedAt: number;
|
|
158
158
|
failureCount: number;
|
|
159
|
-
failureReason: import("
|
|
159
|
+
failureReason: import("../../../types").FailedResponse | null;
|
|
160
160
|
errorUpdateCount: number;
|
|
161
161
|
isFetched: boolean;
|
|
162
162
|
isFetchedAfterMount: boolean;
|
|
@@ -165,9 +165,9 @@ export declare function useServiceTypesWithTeams({ filterType, searchQuery, }?:
|
|
|
165
165
|
isPaused: boolean;
|
|
166
166
|
isRefetching: boolean;
|
|
167
167
|
isStale: boolean;
|
|
168
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("
|
|
168
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("../../../types").ApiResource<ServicesChatResource>, import("../../../types").FailedResponse>>;
|
|
169
169
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
170
|
-
promise: Promise<import("
|
|
170
|
+
promise: Promise<import("../../../types").ApiResource<ServicesChatResource>>;
|
|
171
171
|
links?: Record<string, string> | undefined;
|
|
172
172
|
meta?: Record<string, unknown> | undefined;
|
|
173
173
|
serviceTypes: ServiceTypeWithTeams[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { uniqBy } from 'lodash';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import { useApiGet } from '
|
|
4
|
-
import { TeamFilterTypes, } from '
|
|
3
|
+
import { useApiGet } from '../../../hooks/use_api';
|
|
4
|
+
import { TeamFilterTypes, } from '../../../screens/conversation_filter_recipients/types';
|
|
5
5
|
export function useServiceTypesWithTeams({ filterType = TeamFilterTypes.TeamsIlead, searchQuery, } = {}) {
|
|
6
6
|
const { data, ...rest } = useTeams({ filterType });
|
|
7
7
|
const decoratedResponse = useMemo(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StaticScreenProps } from '@react-navigation/native';
|
|
2
2
|
import { type ViewStyle } from 'react-native';
|
|
3
|
-
import { AppName } from '
|
|
3
|
+
import { AppName } from '../../types/resources/app_name';
|
|
4
4
|
export interface ServiceTypeWithTeams {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
@@ -2,11 +2,11 @@ import React, { useContext, useMemo } from 'react';
|
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
import { FlatList } from 'react-native-gesture-handler';
|
|
4
4
|
import { FilterRow, GroupRow, TeamRow, ViewMore, } from './rows';
|
|
5
|
-
import { Heading } from '
|
|
6
|
-
import { useAtFontScaleBreakpoint, useTheme } from '
|
|
7
|
-
import { FilterContext, useFilterContext, } from '
|
|
8
|
-
import { FilterTypes } from '
|
|
9
|
-
import { useGroupsToFilter, useTeamsToFilter } from '
|
|
5
|
+
import { Heading } from '../../../components';
|
|
6
|
+
import { useAtFontScaleBreakpoint, useTheme } from '../../../hooks';
|
|
7
|
+
import { FilterContext, useFilterContext, } from '../../../screens/conversation_filters/context/conversation_filter_context';
|
|
8
|
+
import { FilterTypes } from '../../../screens/conversation_filters/filter_types';
|
|
9
|
+
import { useGroupsToFilter, useTeamsToFilter } from '../../../screens/conversation_filters/hooks/filters';
|
|
10
10
|
// =========================================
|
|
11
11
|
// ====== Factory Constants & Types ========
|
|
12
12
|
// =========================================
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { ViewStyle } from 'react-native';
|
|
3
|
-
import { FilterTypes } from '
|
|
4
|
-
import { FilteredGroup } from '
|
|
5
|
-
import { ConversationFilterStackParamList } from '
|
|
6
|
-
import { GroupResource } from '
|
|
3
|
+
import { FilterTypes } from '../../../screens/conversation_filters/filter_types';
|
|
4
|
+
import { FilteredGroup } from '../../../screens/conversation_filters/hooks/filters';
|
|
5
|
+
import { ConversationFilterStackParamList } from '../../../screens/conversation_filters/screen_props';
|
|
6
|
+
import { GroupResource } from '../../../types/resources/group_resource';
|
|
7
7
|
export type FilterProps = {
|
|
8
8
|
group_source_app_name?: string;
|
|
9
9
|
isActive: boolean;
|
|
@@ -2,11 +2,11 @@ import { PlatformPressable } from '@react-navigation/elements';
|
|
|
2
2
|
import { useNavigation } from '@react-navigation/native';
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { Heading, Icon, Image, Text, TextButton } from '
|
|
6
|
-
import { useAtFontScaleBreakpoint, useFontScale, useScalableNumberOfLines, useTheme } from '
|
|
7
|
-
import { useServicesTeamsMap } from '
|
|
8
|
-
import { FilterContext } from '
|
|
9
|
-
import { MAX_FONT_SIZE_MULTIPLIER, platformFontWeightBold } from '
|
|
5
|
+
import { Heading, Icon, Image, Text, TextButton } from '../../../components';
|
|
6
|
+
import { useAtFontScaleBreakpoint, useFontScale, useScalableNumberOfLines, useTheme } from '../../../hooks';
|
|
7
|
+
import { useServicesTeamsMap } from '../../../hooks/services/use_services_team';
|
|
8
|
+
import { FilterContext } from '../../../screens/conversation_filters/context/conversation_filter_context';
|
|
9
|
+
import { MAX_FONT_SIZE_MULTIPLIER, platformFontWeightBold } from '../../../utils/styles';
|
|
10
10
|
export const FilterRow = ({ group_source_app_name, isActive, filter }) => {
|
|
11
11
|
const { setAppFilter } = useContext(FilterContext);
|
|
12
12
|
return (<PressableRow onPress={() => setAppFilter({ group_source_app_name })} isActive={isActive}>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { ConversationFiltersParams } from '
|
|
3
|
+
import { ConversationFiltersParams } from '../../../screens/conversation_filters/screen_props';
|
|
4
4
|
export declare const FilterContext: React.Context<{
|
|
5
5
|
params: ConversationFiltersParams;
|
|
6
6
|
scrollOffset: number;
|
|
@@ -4,7 +4,7 @@ import { FlatList } from 'react-native-gesture-handler';
|
|
|
4
4
|
import { GroupRow } from './components/rows';
|
|
5
5
|
import { useFilterContext } from './context/conversation_filter_context';
|
|
6
6
|
import { useGroupsToFilter } from './hooks/filters';
|
|
7
|
-
import { Text } from '
|
|
7
|
+
import { Text } from '../../components/display';
|
|
8
8
|
export const GroupFilters = () => {
|
|
9
9
|
const styles = useStyles();
|
|
10
10
|
const { groups, fetchNextPage, isRefetching, refetch } = useGroupsToFilter();
|