@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preferred_app_selection_screen.js","sourceRoot":"","sources":["../../src/screens/preferred_app_selection_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAiC,MAAM,OAAO,CAAA;AACrD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAA;AACtE,OAAO,EAAgB,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACjF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAQ3D,MAAM,UAAU,2BAA2B,CAAC,EAAE,KAAK,EAAoC;IACrF,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,MAAM,CAAA;IACnC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAAA;IACrE,MAAM,OAAO,GAAG,UAAU,EAAE,CAAA;IAE5B,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;IAEhC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,WAAW,CAAC;QAC7C,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE;QACnC,UAAU,EAAE,CAAC,GAAiB,EA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AC,GAAG,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAEvC;YAAA,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EACvD;YAAA,CAAC,IAAI,CACH;cAAA,CAAC,MAAM,CACP;cAAA,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CACjF;YAAA,EAAE,IAAI,CACR;UAAA,EAAE,YAAY,CAAC,CAChB,CAAC,CACJ;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC;AAED,MAAM,gBAAgB,GAAG,CAAC,GAAoB,EAAE,EAAE,CAAC,CAAC,CAAe,EAAE,CAAe,EAAE,EAAE;IACtF,IAAI,CAAC,KAAK,MAAM;QAAE,OAAO,CAAC,CAAA;IAC1B,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACxC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAExC,OAAO,CAAC,CAAA;AACV,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,MAAoB,EAAE,EAAE;IAC3C,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,eAAe;YAClB,OAAO,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"preferred_app_selection_screen.js","sourceRoot":"","sources":["../../src/screens/preferred_app_selection_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;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AE;YACP,iBAAiB,EAAE,CAAC;YACpB,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,sBAAsB;YACtD,eAAe,EAAE,EAAE;YACnB,YAAY,EAAE,EAAE;SACjB;QACD,QAAQ,EAAE;YACR,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,QAAQ;YACpB,GAAG,EAAE,EAAE;YACP,UAAU,EAAE,CAAC;SACd;QACD,YAAY,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,iBAAiB;YACrC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC1B;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { PlatformPressable } from '@react-navigation/elements'\nimport { StaticScreenProps } from '@react-navigation/native'\nimport { useMutation } from '@tanstack/react-query'\nimport React, { type PropsWithChildren } from 'react'\nimport { Image, StyleSheet, View, type ViewStyle } from 'react-native'\nimport { PreferredApp, useChatTypes } from './preferred_app/hooks/use_chat_types'\nimport { Heading, Icon, Text } from '@/components'\nimport { useApiClient, useTheme } from '@/hooks'\nimport { useAppName } from '@/hooks/use_app_name'\nimport { throwResponseError } from '@/utils/response_error'\n\nexport type PreferredAppSelectionScreenProps = StaticScreenProps<{\n chatTypeId: number | string\n conversationType?: 'group' | 'team'\n currentSelection?: PreferredApp\n}>\n\nexport function PreferredAppSelectionScreen({ route }: PreferredAppSelectionScreenProps) {\n const { chatTypeId } = route.params\n const { data: chatTypes, refetch: refetchChatTypes } = useChatTypes()\n const appName = useAppName()\n\n const apiClient = useApiClient()\n\n const { mutate: updateChatType } = useMutation({\n throwOnError: true,\n onSuccess: () => refetchChatTypes(),\n mutationFn: (app: PreferredApp) => {\n return apiClient.chat\n .post({\n url: `/me/chat_types/${chatTypeId}/set_preferred_app`,\n data: { data: { type: 'ChatType', attributes: { app } } },\n })\n .catch(throwResponseError)\n },\n })\n const chatType = chatTypes.find(t => t.id === chatTypeId)\n const { preferredAppOptions } = chatType || {}\n\n const handleSelection = (app: PreferredApp) => {\n updateChatType(app)\n }\n\n const sectionTitle = `${chatType?.title} Conversations`\n\n return (\n <View style={styles.container}>\n <View style={styles.section}>\n <Heading variant=\"h3\" style={styles.sectionHeading}>\n {sectionTitle}\n </Heading>\n {preferredAppOptions?.sort(sortPreferredApp('asc')).map((option, key) => (\n <PressableRow\n key={`${key}-${option}`}\n isActive={chatType?.preferredApp === option}\n onPress={() => handleSelection(option)}\n >\n <Image source={getAppImage(option)} style={styles.logo} />\n <Text>\n {option}\n {appName.includes(option.replace(/\\s/, '').toLowerCase()) ? ' ( current )' : ''}\n </Text>\n </PressableRow>\n ))}\n </View>\n </View>\n )\n}\n\nconst sortPreferredApp = (dir?: 'asc' | 'desc') => (a: PreferredApp, b: PreferredApp) => {\n if (a === 'None') return 1\n if (a > b) return dir === 'asc' ? 1 : -1\n if (b > a) return dir === 'asc' ? -1 : 1\n\n return 0\n}\n\nconst getAppImage = (option: PreferredApp) => {\n switch (option) {\n case 'Church Center':\n return require('@assets/churchCenter.png')\n case 'Services':\n return require('@assets/servicesApp.png')\n case 'Chat':\n return require('@assets/chatLogo.png')\n default:\n return undefined\n }\n}\n\nconst PressableRow = ({\n children,\n isActive,\n onPress,\n style,\n}: PropsWithChildren<{ isActive: boolean; onPress: () => void; style?: ViewStyle }>) => {\n const styles = useRowStyles({ isActive })\n return (\n <PlatformPressable\n style={styles.pressable}\n onPress={onPress}\n accessibilityRole=\"radio\"\n accessibilityState={{ selected: isActive }}\n >\n <View style={styles.row}>\n <View style={[styles.rowInner, style]}>{children}</View>\n <Icon\n name=\"general.check\"\n style={styles.rowIconRight}\n accessibilityElementsHidden\n maxFontSizeMultiplier={2.5}\n />\n </View>\n </PlatformPressable>\n )\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n section: {\n paddingTop: 16,\n },\n sectionHeading: {\n paddingHorizontal: 16,\n paddingBottom: 4,\n },\n logo: {\n width: 32,\n height: 32,\n borderRadius: 8,\n },\n})\n\nconst useRowStyles = ({ isActive = false }: { isActive?: boolean } = {}) => {\n const theme = useTheme()\n\n return StyleSheet.create({\n pressable: {\n paddingLeft: 16,\n backgroundColor: theme.colors.surfaceColor100,\n },\n row: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 12,\n borderBottomWidth: 1,\n borderBottomColor: theme.colors.borderColorDefaultBase,\n paddingVertical: 12,\n paddingRight: 16,\n },\n rowInner: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 12,\n flexShrink: 1,\n },\n rowIconRight: {\n fontSize: 16,\n color: theme.colors.statusSuccessIcon,\n opacity: isActive ? 1 : 0,\n },\n })\n}\n"]}
|
|
@@ -2,13 +2,13 @@ import React, { memo } from 'react';
|
|
|
2
2
|
import { Platform, StyleSheet, View } from 'react-native';
|
|
3
3
|
import { FlatList } from 'react-native-gesture-handler';
|
|
4
4
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
5
|
-
import { Avatar, Text } from '
|
|
6
|
-
import { Tabs } from '
|
|
7
|
-
import FormSheet, { getFormSheetScreenOptions } from '
|
|
8
|
-
import { useSuspenseGet, useTheme } from '
|
|
9
|
-
import { useConversationMessages } from '
|
|
10
|
-
import { useFontScale } from '
|
|
11
|
-
import { platformFontWeightMedium, REACTION_EMOJIS } from '
|
|
5
|
+
import { Avatar, Text } from '../components';
|
|
6
|
+
import { Tabs } from '../components/display/tabs';
|
|
7
|
+
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet';
|
|
8
|
+
import { useSuspenseGet, useTheme } from '../hooks';
|
|
9
|
+
import { useConversationMessages } from '../hooks/use_conversation_messages';
|
|
10
|
+
import { useFontScale } from '../hooks/use_font_scale';
|
|
11
|
+
import { platformFontWeightMedium, REACTION_EMOJIS } from '../utils';
|
|
12
12
|
export const ReactionsScreenOptions = getFormSheetScreenOptions({
|
|
13
13
|
sheetAllowedDetents: Platform.select({
|
|
14
14
|
android: [0.5, 0.94], // Going straight to full 0.94 preserves height of screen on Android
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { StackActions, useNavigation } from '@react-navigation/native';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Image as NativeImage, Platform, StyleSheet, useWindowDimensions, View } from 'react-native';
|
|
4
|
-
import { Button, IconButton, TextButton } from '
|
|
5
|
-
import { DefaultLoading } from '
|
|
6
|
-
import BlankState from '
|
|
7
|
-
import FormSheet, { getFormSheetScreenOptions } from '
|
|
8
|
-
import { useCreateAndroidRippleColor, useTheme } from '
|
|
9
|
-
import { useGiphy } from '
|
|
10
|
-
import { useMessageCreateOrUpdate } from '
|
|
11
|
-
import { tokens } from '
|
|
4
|
+
import { Button, IconButton, TextButton } from '../components';
|
|
5
|
+
import { DefaultLoading } from '../components/page/loading';
|
|
6
|
+
import BlankState from '../components/primitive/blank_state_primitive';
|
|
7
|
+
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet';
|
|
8
|
+
import { useCreateAndroidRippleColor, useTheme } from '../hooks';
|
|
9
|
+
import { useGiphy } from '../hooks/use_giphy';
|
|
10
|
+
import { useMessageCreateOrUpdate } from '../hooks/use_message_create_or_update';
|
|
11
|
+
import { tokens } from '../vendor/tapestry/tokens';
|
|
12
12
|
export const SendGiphyScreenOptions = getFormSheetScreenOptions({
|
|
13
13
|
headerTitle: 'Send Giphy',
|
|
14
14
|
sheetAllowedDetents: Platform.select({ android: [0.7, 0.94], default: [0.7, 1] }),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StackActions, useNavigation } from '@react-navigation/native';
|
|
2
2
|
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
|
-
import { DefaultLoading } from '
|
|
5
|
-
import { useApiClient } from '
|
|
6
|
-
import { buildTeamAndPlanParams, findOrCreateServicesConversation, } from '
|
|
4
|
+
import { DefaultLoading } from '../components/page/loading';
|
|
5
|
+
import { useApiClient } from '../hooks';
|
|
6
|
+
import { buildTeamAndPlanParams, findOrCreateServicesConversation, } from '../hooks/services/use_find_or_create_services_conversation';
|
|
7
7
|
export const TeamConversationScreen = ({ route }) => {
|
|
8
8
|
const apiClient = useApiClient();
|
|
9
9
|
const queryClient = useQueryClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CustomMessage } from '@planningcenter/jolt-client/dist/types/JoltConnection';
|
|
2
|
-
import { DenormalizedAttachmentResource } from '
|
|
2
|
+
import { DenormalizedAttachmentResource } from '../../types/resources/denormalized_attachment_resource';
|
|
3
3
|
interface BaseMessageEventData extends Record<string, unknown> {
|
|
4
4
|
data: {
|
|
5
5
|
author_avatar: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CustomMessage } from '@planningcenter/jolt-client/dist/types/JoltConnection';
|
|
2
|
-
import { ReactionCountResource } from '
|
|
2
|
+
import { ReactionCountResource } from '../../types/resources/reaction';
|
|
3
3
|
interface BaseReactionEventData extends Record<string, unknown> {
|
|
4
4
|
data: {
|
|
5
5
|
author_id: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResourceObject } from '
|
|
1
|
+
import { ResourceObject } from '../../types/api_primitives';
|
|
2
2
|
export type NotificationLevelValue = 'everything' | 'nothing';
|
|
3
3
|
export type NotificationLevelDescription = string;
|
|
4
4
|
export interface ConversationMembershipResource extends ResourceObject {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { MessageResource } from '
|
|
3
|
-
import { JoltReactionEvent } from '
|
|
2
|
+
import { MessageResource } from '../../types';
|
|
3
|
+
import { JoltReactionEvent } from '../../types/jolt_events';
|
|
4
4
|
export declare function updateCacheWithMessage(queryClient: QueryClient, queryKey: unknown[], message: MessageResource, event: 'message.created' | 'message.updated'): void;
|
|
5
5
|
export declare function updateCacheWithIndividualMessage(queryClient: QueryClient, queryKey: unknown[], message: MessageResource): void;
|
|
6
6
|
export declare function updateCacheWithReaction(queryClient: QueryClient, queryKey: unknown[], event: JoltReactionEvent, currentPersonId: number): void;
|
|
7
7
|
export declare function isTemporaryMessageId(messageId?: string | null): boolean;
|
|
8
8
|
export declare function isNewMessage(message?: MessageResource): boolean;
|
|
9
|
-
export declare function getThreadedMessagesQueryKey(conversationId: number, replyRootId: string): import("
|
|
9
|
+
export declare function getThreadedMessagesQueryKey(conversationId: number, replyRootId: string): import("../../hooks/use_suspense_api").RequestQueryKey;
|
|
10
10
|
export declare function mergeMessageUpdate(record: MessageResource, current?: MessageResource): MessageResource;
|
|
11
11
|
//# sourceMappingURL=messages_cache.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { updateOrCreateRecordInPagesData, updateRecordInPagesData } from './page_mutations';
|
|
2
2
|
import { deleteRecordInPagesData } from './page_mutations';
|
|
3
|
-
import { getRequestQueryKey } from '
|
|
4
|
-
import { transformReactionEventDataToReactionCountResource } from '
|
|
5
|
-
import { getMessagesRequestArgs } from '
|
|
3
|
+
import { getRequestQueryKey } from '../../hooks/use_suspense_api';
|
|
4
|
+
import { transformReactionEventDataToReactionCountResource } from '../../utils/jolt/transform_reaction_event_data_to_reaction_count_resource';
|
|
5
|
+
import { getMessagesRequestArgs } from '../../utils/request/get_messages';
|
|
6
6
|
export function updateCacheWithMessage(queryClient, queryKey, message, event) {
|
|
7
7
|
queryClient.setQueryData(queryKey, prev => {
|
|
8
8
|
if (event === 'message.created') {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CurrentPersonResource, MessageResource } from '
|
|
2
|
-
import { DenormalizedAttachmentResourceForCreate } from '
|
|
1
|
+
import { CurrentPersonResource, MessageResource } from '../../types';
|
|
2
|
+
import { DenormalizedAttachmentResourceForCreate } from '../../types/resources/denormalized_attachment_resource_for_create';
|
|
3
3
|
export declare function optimisticallyCreateMessage({ conversationId, text, attachments, currentPerson, message, replyRootId, }: {
|
|
4
4
|
conversationId: number;
|
|
5
5
|
text: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { updateOrCreateRecordInPagesData } from './page_mutations';
|
|
2
|
-
import { chatQueryClient } from '
|
|
3
|
-
import { convertAttachmentsForCreate } from '
|
|
4
|
-
import { generatePlaceholderUlid } from '
|
|
5
|
-
import { getMessagesQueryKey } from '
|
|
2
|
+
import { chatQueryClient } from '../../contexts/api_provider';
|
|
3
|
+
import { convertAttachmentsForCreate } from '../../utils/convert_attachments_for_create';
|
|
4
|
+
import { generatePlaceholderUlid } from '../../utils/generate_placeholder_ulid';
|
|
5
|
+
import { getMessagesQueryKey } from '../../utils/request/get_messages';
|
|
6
6
|
export function optimisticallyCreateMessage({ conversationId, text, attachments, currentPerson, message, replyRootId, }) {
|
|
7
7
|
const id = message?.id || generateTempMessageId();
|
|
8
8
|
// Convert attachments to denormalized format for optimistic UI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { updateOrCreateRecordInPagesData } from './page_mutations';
|
|
2
|
-
import { chatQueryClient } from '
|
|
3
|
-
import { getMessagesQueryKey } from '
|
|
2
|
+
import { chatQueryClient } from '../../contexts/api_provider';
|
|
3
|
+
import { getMessagesQueryKey } from '../../utils/request/get_messages';
|
|
4
4
|
export function optimisticallyUpdateMessage({ conversationId, message, text, replyRootId, }) {
|
|
5
5
|
const queryKey = getMessagesQueryKey({
|
|
6
6
|
conversation_id: conversationId,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Messages are ordered by ULID on the client so we may
|
|
4
4
|
* have diverging logic from other kinds of api data
|
|
5
5
|
*/
|
|
6
|
-
import { ApiCollection, ResourceObject } from '
|
|
6
|
+
import { ApiCollection, ResourceObject } from '../../types';
|
|
7
7
|
/**
|
|
8
8
|
* updateRecordInPagesData
|
|
9
9
|
* Updates record if found in the cache, otherwise noops.
|
|
@@ -19,7 +19,7 @@ export declare function updateRecordInPagesData<T extends ResourceObject>({ data
|
|
|
19
19
|
pages: {
|
|
20
20
|
data: T[];
|
|
21
21
|
links: Record<string, string>;
|
|
22
|
-
meta: import("
|
|
22
|
+
meta: import("../../types").CollectionMeta;
|
|
23
23
|
}[];
|
|
24
24
|
pageParams: any;
|
|
25
25
|
} | undefined;
|
|
@@ -38,7 +38,7 @@ export declare function updateOrCreateRecordInPagesData<T extends ResourceObject
|
|
|
38
38
|
pages: {
|
|
39
39
|
data: T[];
|
|
40
40
|
links: Record<string, string>;
|
|
41
|
-
meta: import("
|
|
41
|
+
meta: import("../../types").CollectionMeta;
|
|
42
42
|
}[];
|
|
43
43
|
pageParams: any;
|
|
44
44
|
} | undefined;
|
|
@@ -56,7 +56,7 @@ export declare function updateAllRecordsInPagesData<T extends ResourceObject>({
|
|
|
56
56
|
pages: {
|
|
57
57
|
data: T[];
|
|
58
58
|
links: Record<string, string>;
|
|
59
|
-
meta: import("
|
|
59
|
+
meta: import("../../types").CollectionMeta;
|
|
60
60
|
}[];
|
|
61
61
|
pageParams: any;
|
|
62
62
|
} | undefined;
|
|
@@ -89,7 +89,7 @@ export declare function deleteRecordInPagesData<T extends ResourceObject>({ data
|
|
|
89
89
|
pages: {
|
|
90
90
|
data: T[];
|
|
91
91
|
links: Record<string, string>;
|
|
92
|
-
meta: import("
|
|
92
|
+
meta: import("../../types").CollectionMeta;
|
|
93
93
|
}[];
|
|
94
94
|
pageParams: any;
|
|
95
95
|
} | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeleteRequest, GetRequest, PatchRequest, PostRequest } from './types';
|
|
2
|
-
import { ApiCollection, ApiResource, FailedResponse } from '
|
|
2
|
+
import { ApiCollection, ApiResource, FailedResponse } from '../../types';
|
|
3
3
|
export type OnUnauthorizedResponse = (_response: FailedResponse) => void;
|
|
4
4
|
type ClientArgs = {
|
|
5
5
|
version: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DenormalizedAttachmentResource } from '
|
|
2
|
-
import { DenormalizedAttachmentResourceForCreate } from '
|
|
1
|
+
import { DenormalizedAttachmentResource } from '../types/resources/denormalized_attachment_resource';
|
|
2
|
+
import { DenormalizedAttachmentResourceForCreate } from '../types/resources/denormalized_attachment_resource_for_create';
|
|
3
3
|
/**
|
|
4
4
|
* Converts an array of DenormalizedAttachmentResourceForCreate to DenormalizedAttachmentResource.
|
|
5
5
|
* This is used to create optimistic UI attachments that match the server format.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppName } from '
|
|
2
|
-
import { SourceType, GraphId } from '
|
|
1
|
+
import { AppName } from '../types/resources/app_name';
|
|
2
|
+
import { SourceType, GraphId } from '../types/resources/group_resource';
|
|
3
3
|
interface DestructuredChatGroupGraphIdType {
|
|
4
4
|
sourceAppName?: AppName;
|
|
5
5
|
sourceType?: SourceType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MessageResource } from '
|
|
2
|
-
import { MessageCreatedEvent } from '
|
|
1
|
+
import { MessageResource } from '../../types';
|
|
2
|
+
import { MessageCreatedEvent } from '../../types/jolt_events/message_events';
|
|
3
3
|
export declare function transformMessageEventDataToMessageResource({ data, currentPersonId, }: {
|
|
4
4
|
data: MessageCreatedEvent['data']['data'];
|
|
5
5
|
currentPersonId: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JoltReactionEvent } from '
|
|
2
|
-
import { ReactionCreatedEvent } from '
|
|
3
|
-
import { ReactionCountResource } from '
|
|
1
|
+
import { JoltReactionEvent } from '../../types/jolt_events';
|
|
2
|
+
import { ReactionCreatedEvent } from '../../types/jolt_events/reaction_events';
|
|
3
|
+
import { ReactionCountResource } from '../../types/resources/reaction';
|
|
4
4
|
interface Props {
|
|
5
5
|
data: ReactionCreatedEvent['data']['data'];
|
|
6
6
|
oldData?: ReactionCountResource;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This module provides functionality to track performance metrics and send them
|
|
5
5
|
* to Datadog via the backend API for aggregation.
|
|
6
6
|
*/
|
|
7
|
-
import { ApiClient } from '
|
|
7
|
+
import { ApiClient } from '../hooks';
|
|
8
8
|
/**
|
|
9
9
|
* Start tracking message creation performance
|
|
10
10
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReactionCountResource } from '
|
|
1
|
+
import { ReactionCountResource } from '../types/resources/reaction';
|
|
2
2
|
export declare const REACTION_EMOJIS: Record<ReactionCountResource['value'], string>;
|
|
3
3
|
//# sourceMappingURL=reaction_constants.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphId } from '
|
|
2
|
-
import { GetRequest } from '
|
|
1
|
+
import { GraphId } from '../../types/resources/group_resource';
|
|
2
|
+
import { GetRequest } from '../../utils/client/types';
|
|
3
3
|
export interface ConversationRequestArgs {
|
|
4
4
|
gids: string;
|
|
5
5
|
chat_group_graph_id?: GraphId;
|
|
@@ -7,5 +7,5 @@ export declare const getFeaturesRequestArgs: () => {
|
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
export declare const getFeaturesQueryKey: () => import("
|
|
10
|
+
export declare const getFeaturesQueryKey: () => import("../../hooks/use_suspense_api").RequestQueryKey;
|
|
11
11
|
//# sourceMappingURL=get_features.d.ts.map
|
|
@@ -16,5 +16,5 @@ export declare const getMessageRequestArgs: ({ conversation_id, messageId, }: {
|
|
|
16
16
|
export declare const getMessageQueryKey: ({ conversation_id, messageId, }: {
|
|
17
17
|
conversation_id: number;
|
|
18
18
|
messageId: string;
|
|
19
|
-
}) => import("
|
|
19
|
+
}) => import("../../hooks/use_suspense_api").RequestQueryKey;
|
|
20
20
|
//# sourceMappingURL=get_message.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getMessageFields, getMessagesInclude } from './messages_data_options';
|
|
2
|
-
import { getRequestQueryKey } from '
|
|
2
|
+
import { getRequestQueryKey } from '../../hooks/use_suspense_api';
|
|
3
3
|
export const getMessageRequestArgs = ({ conversation_id, messageId, }) => {
|
|
4
4
|
const url = `/me/conversations/${conversation_id}/messages/${messageId}`;
|
|
5
5
|
return {
|
|
@@ -17,5 +17,5 @@ export declare const getMessagesRequestArgs: ({ conversation_id, reply_root_id,
|
|
|
17
17
|
export declare const getMessagesQueryKey: ({ conversation_id, reply_root_id, }: {
|
|
18
18
|
conversation_id: number;
|
|
19
19
|
reply_root_id?: string | null;
|
|
20
|
-
}) => import("
|
|
20
|
+
}) => import("../../hooks/use_suspense_api").RequestQueryKey;
|
|
21
21
|
//# sourceMappingURL=get_messages.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getMessageFields, getMessagesInclude } from './messages_data_options';
|
|
2
|
-
import { getRequestQueryKey } from '
|
|
2
|
+
import { getRequestQueryKey } from '../../hooks/use_suspense_api';
|
|
3
3
|
export const getMessagesRequestArgs = ({ conversation_id, reply_root_id, }) => {
|
|
4
4
|
const normalizedReplyRootId = reply_root_id ?? null;
|
|
5
5
|
const url = normalizedReplyRootId
|
package/build/utils/session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OAuthToken, OrganizationResource, PersonResource } from '
|
|
1
|
+
import { OAuthToken, OrganizationResource, PersonResource } from '../types';
|
|
2
2
|
export type ENV = 'production' | 'staging' | 'development';
|
|
3
3
|
export type OauthType = 'OAuth' | 'ChurchCenterOauth';
|
|
4
4
|
export type PartialToken = Pick<OAuthToken, 'access_token'> & Partial<OAuthToken>;
|
package/build/utils/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
|
-
import { tokens } from '
|
|
2
|
+
import { tokens } from '../vendor/tapestry/tokens';
|
|
3
3
|
export const MAX_FONT_SIZE_MULTIPLIER = 1.5;
|
|
4
4
|
export const MAX_FONT_SIZE_MULTIPLIER_LANDMARK = 1.2; // Use in headers, footers, toolbars, etc.
|
|
5
5
|
export const CONVERSATION_MESSAGE_LIST_PADDING_HORIZONTAL = 16; // TODO: move to `screens/conversation/utils/styles` when `/screens/conversation` is created
|
package/build/utils/theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorSchemeName, ColorValue, OpaqueColorValue } from 'react-native';
|
|
2
|
-
import { aliasTokensColorMap } from '
|
|
2
|
+
import { aliasTokensColorMap } from '../vendor/tapestry/alias_tokens_color_map';
|
|
3
3
|
export interface ChatTheme extends DefaultTheme {
|
|
4
4
|
colors: DefaultTheme['colors'] & (typeof aliasTokensColorMap.light | typeof aliasTokensColorMap.dark);
|
|
5
5
|
}
|
package/build/utils/theme.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PlatformColor } from 'react-native';
|
|
2
|
-
import { aliasTokensColorMap } from '
|
|
3
|
-
import { tokens } from '
|
|
2
|
+
import { aliasTokensColorMap } from '../vendor/tapestry/alias_tokens_color_map';
|
|
3
|
+
import { tokens } from '../vendor/tapestry/tokens';
|
|
4
4
|
export const defaultTheme = (colorScheme) => {
|
|
5
5
|
const scheme = colorScheme || 'light';
|
|
6
6
|
const defaultColors = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/chat-react-native",
|
|
3
|
-
"version": "3.30.0-rc.
|
|
3
|
+
"version": "3.30.0-rc.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"./build/icons/font_awesome.js"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "expo-module build",
|
|
17
|
+
"build": "expo-module build && tsc-alias -p tsconfig.alias.json",
|
|
18
18
|
"clean": "expo-module clean",
|
|
19
19
|
"lint": "expo-module lint",
|
|
20
20
|
"test": "expo-module test",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"msw": "^2.7.3",
|
|
63
63
|
"prettier": "^3.4.2",
|
|
64
64
|
"react-native-url-polyfill": "^2.0.0",
|
|
65
|
+
"tsc-alias": "^1.8.16",
|
|
65
66
|
"typescript": "<5.6.0"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "5c673844a34df31ded524084e10d1a001d31b07b"
|
|
68
69
|
}
|
|
@@ -78,11 +78,11 @@ const sortPreferredApp = (dir?: 'asc' | 'desc') => (a: PreferredApp, b: Preferre
|
|
|
78
78
|
const getAppImage = (option: PreferredApp) => {
|
|
79
79
|
switch (option) {
|
|
80
80
|
case 'Church Center':
|
|
81
|
-
return require('assets/churchCenter.png')
|
|
81
|
+
return require('@assets/churchCenter.png')
|
|
82
82
|
case 'Services':
|
|
83
|
-
return require('assets/servicesApp.png')
|
|
83
|
+
return require('@assets/servicesApp.png')
|
|
84
84
|
case 'Chat':
|
|
85
|
-
return require('assets/chatLogo.png')
|
|
85
|
+
return require('@assets/chatLogo.png')
|
|
86
86
|
default:
|
|
87
87
|
return undefined
|
|
88
88
|
}
|