@planningcenter/chat-react-native 4.5.1-qa-staging.11 → 4.5.1-qa-1062.0
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/message_list.js +123 -155
- package/build/components/conversation/message_list.js.map +1 -1
- package/build/components/conversations/conversations.js +0 -1
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/display/conversation_avatar.js +66 -77
- package/build/components/display/conversation_avatar.js.map +1 -1
- package/build/components/display/image.js +44 -47
- package/build/components/display/image.js.map +1 -1
- package/build/components/display/keyboard_scroll_view.js +0 -1
- package/build/components/display/keyboard_scroll_view.js.map +1 -1
- package/build/components/page/page_error_boundary.js +31 -56
- package/build/components/page/page_error_boundary.js.map +1 -1
- package/build/contexts/api_provider.js +5 -11
- package/build/contexts/api_provider.js.map +1 -1
- package/build/hooks/index.js +0 -1
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/use_conversation_avatar_update.js +48 -146
- package/build/hooks/use_conversation_avatar_update.js.map +1 -1
- package/build/navigation/index.js +1 -3
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/screenLayout.js +6 -10
- package/build/navigation/screenLayout.js.map +1 -1
- package/build/screens/age_check/age_check_required_screen.js +0 -1
- package/build/screens/age_check/age_check_required_screen.js.map +1 -1
- package/build/screens/avatar_picker/avatar_picker_screen.js +66 -76
- package/build/screens/avatar_picker/avatar_picker_screen.js.map +1 -1
- package/build/screens/conversation_details_screen.js +0 -1
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_new/components/form_list.js +0 -1
- package/build/screens/conversation_new/components/form_list.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +0 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js +291 -332
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js.map +1 -1
- package/build/screens/get_help_screen.js +62 -56
- package/build/screens/get_help_screen.js.map +1 -1
- package/build/screens/group_notification_settings_screen.js +2 -3
- package/build/screens/group_notification_settings_screen.js.map +1 -1
- package/build/screens/notification_settings_screen.js +0 -1
- package/build/screens/notification_settings_screen.js.map +1 -1
- package/build/screens/preferred_app_selection_screen.js +39 -45
- package/build/screens/preferred_app_selection_screen.js.map +1 -1
- package/build/screens/search/components/search_results_list.js +110 -136
- package/build/screens/search/components/search_results_list.js.map +1 -1
- package/build/screens/search/search_screen.js +28 -21
- package/build/screens/search/search_screen.js.map +1 -1
- package/build/screens/settings_screen.js +6 -7
- package/build/screens/settings_screen.js.map +1 -1
- package/build/screens/system_message_people_screen.js +96 -33
- package/build/screens/system_message_people_screen.js.map +1 -1
- package/package.json +12 -8
- package/src/__tests__/utils/theme.ts +5 -2
- package/src/components/conversation/__tests__/message_list.test.tsx +0 -4
- package/src/components/conversation/message_list.tsx +0 -6
- package/src/components/conversations/__tests__/conversation_preview.test.tsx +2 -2
- package/src/components/conversations/conversations.tsx +0 -1
- package/src/components/display/conversation_avatar.tsx +2 -9
- package/src/components/display/image.tsx +19 -10
- package/src/components/display/keyboard_scroll_view.tsx +0 -1
- package/src/components/page/__tests__/page_error_boundary.test.tsx +0 -33
- package/src/components/page/page_error_boundary.tsx +12 -43
- package/src/contexts/api_provider.tsx +5 -12
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use_conversation_avatar_update.ts +11 -67
- package/src/navigation/index.tsx +2 -6
- package/src/navigation/screenLayout.tsx +1 -3
- package/src/screens/age_check/age_check_required_screen.tsx +1 -5
- package/src/screens/avatar_picker/avatar_picker_screen.tsx +1 -7
- package/src/screens/conversation_details_screen.tsx +0 -1
- package/src/screens/conversation_new/components/form_list.tsx +0 -1
- package/src/screens/conversation_select_recipients/conversation_new_entry_screen.tsx +1 -4
- package/src/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.tsx +68 -78
- package/src/screens/conversation_select_recipients/conversation_select_group_recipients_screen.tsx +0 -1
- package/src/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.tsx +0 -1
- package/src/screens/get_help_screen.tsx +4 -4
- package/src/screens/group_notification_settings_screen.tsx +3 -3
- package/src/screens/notification_settings_screen.tsx +0 -1
- package/src/screens/preferred_app_selection_screen.tsx +4 -4
- package/src/screens/search/__tests__/search_screen.test.tsx +12 -11
- package/src/screens/search/components/__tests__/conversation_results.test.tsx +5 -14
- package/src/screens/search/components/__tests__/message_result_row.test.tsx +4 -5
- package/src/screens/search/components/__tests__/search_results_list.test.tsx +5 -10
- package/src/screens/search/components/search_results_list.tsx +13 -34
- package/src/screens/search/search_screen.tsx +18 -8
- package/src/screens/settings_screen.tsx +25 -25
- package/src/screens/system_message_people_screen.tsx +20 -6
- package/build/components/conversation/attachments/attachment_card.d.ts +0 -9
- package/build/components/conversation/attachments/attachment_card.d.ts.map +0 -1
- package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts +0 -2
- package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts.map +0 -1
- package/build/components/conversation/attachments/audio_attachment.d.ts +0 -7
- package/build/components/conversation/attachments/audio_attachment.d.ts.map +0 -1
- package/build/components/conversation/attachments/constants.d.ts +0 -3
- package/build/components/conversation/attachments/constants.d.ts.map +0 -1
- package/build/components/conversation/attachments/expanded_link.d.ts +0 -6
- package/build/components/conversation/attachments/expanded_link.d.ts.map +0 -1
- package/build/components/conversation/attachments/generic_file_attachment.d.ts +0 -7
- package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +0 -1
- package/build/components/conversation/attachments/giphy_attachment.d.ts +0 -6
- package/build/components/conversation/attachments/giphy_attachment.d.ts.map +0 -1
- package/build/components/conversation/attachments/image_attachment.d.ts +0 -14
- package/build/components/conversation/attachments/image_attachment.d.ts.map +0 -1
- package/build/components/conversation/attachments/video_attachment.d.ts +0 -7
- package/build/components/conversation/attachments/video_attachment.d.ts.map +0 -1
- package/build/components/conversation/conversation_start_banner.d.ts +0 -9
- package/build/components/conversation/conversation_start_banner.d.ts.map +0 -1
- package/build/components/conversation/empty_conversation_blank_state.d.ts +0 -2
- package/build/components/conversation/empty_conversation_blank_state.d.ts.map +0 -1
- package/build/components/conversation/jump_to_bottom_button.d.ts +0 -7
- package/build/components/conversation/jump_to_bottom_button.d.ts.map +0 -1
- package/build/components/conversation/message.d.ts +0 -17
- package/build/components/conversation/message.d.ts.map +0 -1
- package/build/components/conversation/message_attachments.d.ts +0 -9
- package/build/components/conversation/message_attachments.d.ts.map +0 -1
- package/build/components/conversation/message_form/message_form_attachment_file.d.ts +0 -10
- package/build/components/conversation/message_form/message_form_attachment_file.d.ts.map +0 -1
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts +0 -12
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts.map +0 -1
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts +0 -9
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts.map +0 -1
- package/build/components/conversation/message_form.d.ts +0 -24
- package/build/components/conversation/message_form.d.ts.map +0 -1
- package/build/components/conversation/message_list.d.ts +0 -24
- package/build/components/conversation/message_list.d.ts.map +0 -1
- package/build/components/conversation/message_markdown.d.ts +0 -6
- package/build/components/conversation/message_markdown.d.ts.map +0 -1
- package/build/components/conversation/message_reaction.d.ts +0 -34
- package/build/components/conversation/message_reaction.d.ts.map +0 -1
- package/build/components/conversation/message_read_receipts.d.ts +0 -6
- package/build/components/conversation/message_read_receipts.d.ts.map +0 -1
- package/build/components/conversation/messages_disabled_banners.d.ts +0 -14
- package/build/components/conversation/messages_disabled_banners.d.ts.map +0 -1
- package/build/components/conversation/missing_message.d.ts +0 -2
- package/build/components/conversation/missing_message.d.ts.map +0 -1
- package/build/components/conversation/reply_connectors.d.ts +0 -10
- package/build/components/conversation/reply_connectors.d.ts.map +0 -1
- package/build/components/conversation/reply_shadow_message.d.ts +0 -12
- package/build/components/conversation/reply_shadow_message.d.ts.map +0 -1
- package/build/components/conversation/system_message.d.ts +0 -9
- package/build/components/conversation/system_message.d.ts.map +0 -1
- package/build/components/conversation/typing_indicator.d.ts +0 -6
- package/build/components/conversation/typing_indicator.d.ts.map +0 -1
- package/build/components/conversations/archived_results_footer.d.ts +0 -6
- package/build/components/conversations/archived_results_footer.d.ts.map +0 -1
- package/build/components/conversations/conversation_actions.d.ts +0 -11
- package/build/components/conversations/conversation_actions.d.ts.map +0 -1
- package/build/components/conversations/conversation_preview.d.ts +0 -12
- package/build/components/conversations/conversation_preview.d.ts.map +0 -1
- package/build/components/conversations/conversations.d.ts +0 -7
- package/build/components/conversations/conversations.d.ts.map +0 -1
- package/build/components/conversations/conversations_blank_state.d.ts +0 -7
- package/build/components/conversations/conversations_blank_state.d.ts.map +0 -1
- package/build/components/conversations/filtered_results_footer.d.ts +0 -2
- package/build/components/conversations/filtered_results_footer.d.ts.map +0 -1
- package/build/components/conversations/mute_indicator.d.ts +0 -4
- package/build/components/conversations/mute_indicator.d.ts.map +0 -1
- package/build/components/conversations/swipeable_toggle_button.d.ts +0 -20
- package/build/components/conversations/swipeable_toggle_button.d.ts.map +0 -1
- package/build/components/conversations/unread_count_badge.d.ts +0 -6
- package/build/components/conversations/unread_count_badge.d.ts.map +0 -1
- package/build/components/display/action_button.d.ts +0 -15
- package/build/components/display/action_button.d.ts.map +0 -1
- package/build/components/display/adult_requirement_notice.d.ts +0 -7
- package/build/components/display/adult_requirement_notice.d.ts.map +0 -1
- package/build/components/display/avatar.d.ts +0 -15
- package/build/components/display/avatar.d.ts.map +0 -1
- package/build/components/display/avatar_group.d.ts +0 -14
- package/build/components/display/avatar_group.d.ts.map +0 -1
- package/build/components/display/badge.d.ts +0 -55
- package/build/components/display/badge.d.ts.map +0 -1
- package/build/components/display/banner.d.ts +0 -38
- package/build/components/display/banner.d.ts.map +0 -1
- package/build/components/display/banner_collapsible.d.ts +0 -11
- package/build/components/display/banner_collapsible.d.ts.map +0 -1
- package/build/components/display/button.d.ts +0 -67
- package/build/components/display/button.d.ts.map +0 -1
- package/build/components/display/child_notice.d.ts +0 -10
- package/build/components/display/child_notice.d.ts.map +0 -1
- package/build/components/display/conversation_avatar.d.ts +0 -17
- package/build/components/display/conversation_avatar.d.ts.map +0 -1
- package/build/components/display/emoji_avatar.d.ts +0 -11
- package/build/components/display/emoji_avatar.d.ts.map +0 -1
- package/build/components/display/file_attachment_preview.d.ts +0 -11
- package/build/components/display/file_attachment_preview.d.ts.map +0 -1
- package/build/components/display/filter_dropdown.d.ts +0 -36
- package/build/components/display/filter_dropdown.d.ts.map +0 -1
- package/build/components/display/heading.d.ts +0 -10
- package/build/components/display/heading.d.ts.map +0 -1
- package/build/components/display/icon.d.ts +0 -64
- package/build/components/display/icon.d.ts.map +0 -1
- package/build/components/display/icon_avatar.d.ts +0 -11
- package/build/components/display/icon_avatar.d.ts.map +0 -1
- package/build/components/display/icon_button.d.ts +0 -56
- package/build/components/display/icon_button.d.ts.map +0 -1
- package/build/components/display/icon_tile.d.ts +0 -13
- package/build/components/display/icon_tile.d.ts.map +0 -1
- package/build/components/display/image.d.ts +0 -39
- package/build/components/display/image.d.ts.map +0 -1
- package/build/components/display/image_attachment_preview.d.ts +0 -13
- package/build/components/display/image_attachment_preview.d.ts.map +0 -1
- package/build/components/display/index.d.ts +0 -34
- package/build/components/display/index.d.ts.map +0 -1
- package/build/components/display/keyboard_scroll_view.d.ts +0 -5
- package/build/components/display/keyboard_scroll_view.d.ts.map +0 -1
- package/build/components/display/keyboard_view.d.ts +0 -5
- package/build/components/display/keyboard_view.d.ts.map +0 -1
- package/build/components/display/person.d.ts +0 -9
- package/build/components/display/person.d.ts.map +0 -1
- package/build/components/display/platform_modal_header_buttons.d.ts +0 -61
- package/build/components/display/platform_modal_header_buttons.d.ts.map +0 -1
- package/build/components/display/popover_menu_view.d.ts +0 -8
- package/build/components/display/popover_menu_view.d.ts.map +0 -1
- package/build/components/display/pressable_row.d.ts +0 -14
- package/build/components/display/pressable_row.d.ts.map +0 -1
- package/build/components/display/spinner.d.ts +0 -22
- package/build/components/display/spinner.d.ts.map +0 -1
- package/build/components/display/switch.d.ts +0 -3
- package/build/components/display/switch.d.ts.map +0 -1
- package/build/components/display/tabs.d.ts +0 -17
- package/build/components/display/tabs.d.ts.map +0 -1
- package/build/components/display/text.d.ts +0 -25
- package/build/components/display/text.d.ts.map +0 -1
- package/build/components/display/text_button.d.ts +0 -39
- package/build/components/display/text_button.d.ts.map +0 -1
- package/build/components/display/text_inline_button.d.ts +0 -11
- package/build/components/display/text_inline_button.d.ts.map +0 -1
- package/build/components/display/text_input.d.ts +0 -8
- package/build/components/display/text_input.d.ts.map +0 -1
- package/build/components/display/toggle_button.d.ts +0 -55
- package/build/components/display/toggle_button.d.ts.map +0 -1
- package/build/components/display/utils/avatar_gradient_colors.d.ts +0 -17
- package/build/components/display/utils/avatar_gradient_colors.d.ts.map +0 -1
- package/build/components/display/utils/button_colors.d.ts +0 -39
- package/build/components/display/utils/button_colors.d.ts.map +0 -1
- package/build/components/display/utils/status_colors.d.ts +0 -17
- package/build/components/display/utils/status_colors.d.ts.map +0 -1
- package/build/components/display/version_footer.d.ts +0 -2
- package/build/components/display/version_footer.d.ts.map +0 -1
- package/build/components/display/video_attachment_preview.d.ts +0 -11
- package/build/components/display/video_attachment_preview.d.ts.map +0 -1
- package/build/components/group_conversation_list.d.ts +0 -23
- package/build/components/group_conversation_list.d.ts.map +0 -1
- package/build/components/index.d.ts +0 -7
- package/build/components/index.d.ts.map +0 -1
- package/build/components/page/component_error_boundary.d.ts +0 -4
- package/build/components/page/component_error_boundary.d.ts.map +0 -1
- package/build/components/page/error_boundary.d.ts +0 -20
- package/build/components/page/error_boundary.d.ts.map +0 -1
- package/build/components/page/loading.d.ts +0 -2
- package/build/components/page/loading.d.ts.map +0 -1
- package/build/components/page/page_error_boundary.d.ts +0 -12
- package/build/components/page/page_error_boundary.d.ts.map +0 -1
- package/build/components/primitive/avatar_primitive.d.ts +0 -51
- package/build/components/primitive/avatar_primitive.d.ts.map +0 -1
- package/build/components/primitive/banner_primitive.d.ts +0 -48
- package/build/components/primitive/banner_primitive.d.ts.map +0 -1
- package/build/components/primitive/blank_state_primitive.d.ts +0 -41
- package/build/components/primitive/blank_state_primitive.d.ts.map +0 -1
- package/build/components/primitive/form_sheet.d.ts +0 -75
- package/build/components/primitive/form_sheet.d.ts.map +0 -1
- package/build/components/safe_area_modal.d.ts +0 -7
- package/build/components/safe_area_modal.d.ts.map +0 -1
- package/build/contexts/api_provider.d.ts +0 -7
- package/build/contexts/api_provider.d.ts.map +0 -1
- package/build/contexts/chat_context.d.ts +0 -37
- package/build/contexts/chat_context.d.ts.map +0 -1
- package/build/contexts/conversation_context.d.ts +0 -13
- package/build/contexts/conversation_context.d.ts.map +0 -1
- package/build/contexts/conversations_context.d.ts +0 -16
- package/build/contexts/conversations_context.d.ts.map +0 -1
- package/build/contexts/session_context.d.ts +0 -44
- package/build/contexts/session_context.d.ts.map +0 -1
- package/build/hooks/attachments/fallback_chat_configuration.d.ts +0 -5
- package/build/hooks/attachments/fallback_chat_configuration.d.ts.map +0 -1
- package/build/hooks/direct_messages/find_direct_message_conversation.d.ts +0 -14
- package/build/hooks/direct_messages/find_direct_message_conversation.d.ts.map +0 -1
- package/build/hooks/direct_messages/resolve_message_available_members_link.d.ts +0 -16
- package/build/hooks/direct_messages/resolve_message_available_members_link.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts +0 -6
- package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_direct_message_candidates.d.ts +0 -4
- package/build/hooks/direct_messages/use_direct_message_candidates.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_direct_message_conversation_validate.d.ts +0 -11
- package/build/hooks/direct_messages/use_direct_message_conversation_validate.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_find_or_create_direct_message_conversation.d.ts +0 -13
- package/build/hooks/direct_messages/use_find_or_create_direct_message_conversation.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_message_available_members.d.ts +0 -6
- package/build/hooks/direct_messages/use_message_available_members.d.ts.map +0 -1
- package/build/hooks/direct_messages/use_message_available_members_action.d.ts +0 -6
- package/build/hooks/direct_messages/use_message_available_members_action.d.ts.map +0 -1
- package/build/hooks/groups/use_group_chat_conversation_payload.d.ts +0 -168
- package/build/hooks/groups/use_group_chat_conversation_payload.d.ts.map +0 -1
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +0 -232
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +0 -1
- package/build/hooks/groups/use_groups_conversation_create.d.ts +0 -10
- package/build/hooks/groups/use_groups_conversation_create.d.ts.map +0 -1
- package/build/hooks/index.d.ts +0 -34
- package/build/hooks/index.d.ts.map +0 -1
- package/build/hooks/paginator_meta.d.ts +0 -4
- package/build/hooks/paginator_meta.d.ts.map +0 -1
- package/build/hooks/services/use_find_or_create_services_conversation.d.ts +0 -138
- package/build/hooks/services/use_find_or_create_services_conversation.d.ts.map +0 -1
- package/build/hooks/services/use_services_chat_conversation_payload.d.ts +0 -164
- package/build/hooks/services/use_services_chat_conversation_payload.d.ts.map +0 -1
- package/build/hooks/services/use_services_team.d.ts +0 -4
- package/build/hooks/services/use_services_team.d.ts.map +0 -1
- package/build/hooks/services/use_team_members_for_new_conversation.d.ts +0 -176
- package/build/hooks/services/use_team_members_for_new_conversation.d.ts.map +0 -1
- package/build/hooks/services/use_team_plans.d.ts +0 -17
- package/build/hooks/services/use_team_plans.d.ts.map +0 -1
- package/build/hooks/use_animated_message_background_color.d.ts +0 -9
- package/build/hooks/use_animated_message_background_color.d.ts.map +0 -1
- package/build/hooks/use_api.d.ts +0 -391
- package/build/hooks/use_api.d.ts.map +0 -1
- package/build/hooks/use_api_client.d.ts +0 -7
- package/build/hooks/use_api_client.d.ts.map +0 -1
- package/build/hooks/use_app_name.d.ts +0 -3
- package/build/hooks/use_app_name.d.ts.map +0 -1
- package/build/hooks/use_app_state.d.ts +0 -2
- package/build/hooks/use_app_state.d.ts.map +0 -1
- package/build/hooks/use_async_storage.d.ts +0 -4
- package/build/hooks/use_async_storage.d.ts.map +0 -1
- package/build/hooks/use_at_font_scale_breakpoint.d.ts +0 -2
- package/build/hooks/use_at_font_scale_breakpoint.d.ts.map +0 -1
- package/build/hooks/use_attachment_uploader.d.ts +0 -22
- package/build/hooks/use_attachment_uploader.d.ts.map +0 -1
- package/build/hooks/use_broadcast_typing_status.d.ts +0 -9
- package/build/hooks/use_broadcast_typing_status.d.ts.map +0 -1
- package/build/hooks/use_can_browse_archived_conversations.d.ts +0 -2
- package/build/hooks/use_can_browse_archived_conversations.d.ts.map +0 -1
- package/build/hooks/use_chat_configuration.d.ts +0 -7
- package/build/hooks/use_chat_configuration.d.ts.map +0 -1
- package/build/hooks/use_chat_permissions.d.ts +0 -190
- package/build/hooks/use_chat_permissions.d.ts.map +0 -1
- package/build/hooks/use_clear_conversation_filters.d.ts +0 -2
- package/build/hooks/use_clear_conversation_filters.d.ts.map +0 -1
- package/build/hooks/use_conversation.d.ts +0 -275
- package/build/hooks/use_conversation.d.ts.map +0 -1
- package/build/hooks/use_conversation_avatar_update.d.ts +0 -27
- package/build/hooks/use_conversation_avatar_update.d.ts.map +0 -1
- package/build/hooks/use_conversation_jolt_events.d.ts +0 -6
- package/build/hooks/use_conversation_jolt_events.d.ts.map +0 -1
- package/build/hooks/use_conversation_membership.d.ts +0 -5
- package/build/hooks/use_conversation_membership.d.ts.map +0 -1
- package/build/hooks/use_conversation_message.d.ts +0 -12
- package/build/hooks/use_conversation_message.d.ts.map +0 -1
- package/build/hooks/use_conversation_messages.d.ts +0 -23
- package/build/hooks/use_conversation_messages.d.ts.map +0 -1
- package/build/hooks/use_conversation_messages_jolt_events.d.ts +0 -6
- package/build/hooks/use_conversation_messages_jolt_events.d.ts.map +0 -1
- package/build/hooks/use_conversation_validate.d.ts +0 -12
- package/build/hooks/use_conversation_validate.d.ts.map +0 -1
- package/build/hooks/use_conversations.d.ts +0 -12
- package/build/hooks/use_conversations.d.ts.map +0 -1
- package/build/hooks/use_conversations_actions.d.ts +0 -221
- package/build/hooks/use_conversations_actions.d.ts.map +0 -1
- package/build/hooks/use_conversations_cache.d.ts +0 -20
- package/build/hooks/use_conversations_cache.d.ts.map +0 -1
- package/build/hooks/use_conversations_jolt_events.d.ts +0 -2
- package/build/hooks/use_conversations_jolt_events.d.ts.map +0 -1
- package/build/hooks/use_create_android_ripple_color.d.ts +0 -4
- package/build/hooks/use_create_android_ripple_color.d.ts.map +0 -1
- package/build/hooks/use_current_person.d.ts +0 -18
- package/build/hooks/use_current_person.d.ts.map +0 -1
- package/build/hooks/use_debounced_search_term.d.ts +0 -2
- package/build/hooks/use_debounced_search_term.d.ts.map +0 -1
- package/build/hooks/use_deleting_ids.d.ts +0 -4
- package/build/hooks/use_deleting_ids.d.ts.map +0 -1
- package/build/hooks/use_direct_message_eligibility.d.ts +0 -14
- package/build/hooks/use_direct_message_eligibility.d.ts.map +0 -1
- package/build/hooks/use_direct_messages_eligible.d.ts +0 -2
- package/build/hooks/use_direct_messages_eligible.d.ts.map +0 -1
- package/build/hooks/use_enrich_people.d.ts +0 -13
- package/build/hooks/use_enrich_people.d.ts.map +0 -1
- package/build/hooks/use_features.d.ts +0 -38
- package/build/hooks/use_features.d.ts.map +0 -1
- package/build/hooks/use_filter_dropdown_enabled.d.ts +0 -2
- package/build/hooks/use_filter_dropdown_enabled.d.ts.map +0 -1
- package/build/hooks/use_font_scale.d.ts +0 -5
- package/build/hooks/use_font_scale.d.ts.map +0 -1
- package/build/hooks/use_giphy.d.ts +0 -9
- package/build/hooks/use_giphy.d.ts.map +0 -1
- package/build/hooks/use_groups.d.ts +0 -214
- package/build/hooks/use_groups.d.ts.map +0 -1
- package/build/hooks/use_groups_groups.d.ts +0 -208
- package/build/hooks/use_groups_groups.d.ts.map +0 -1
- package/build/hooks/use_has_direct_messages.d.ts +0 -2
- package/build/hooks/use_has_direct_messages.d.ts.map +0 -1
- package/build/hooks/use_interaction_tinted_background_color.d.ts +0 -2
- package/build/hooks/use_interaction_tinted_background_color.d.ts.map +0 -1
- package/build/hooks/use_jolt.d.ts +0 -11
- package/build/hooks/use_jolt.d.ts.map +0 -1
- package/build/hooks/use_live_relative_time.d.ts +0 -3
- package/build/hooks/use_live_relative_time.d.ts.map +0 -1
- package/build/hooks/use_manual_archiving_enabled.d.ts +0 -2
- package/build/hooks/use_manual_archiving_enabled.d.ts.map +0 -1
- package/build/hooks/use_mark_latest_message_read.d.ts +0 -9
- package/build/hooks/use_mark_latest_message_read.d.ts.map +0 -1
- package/build/hooks/use_message_create_or_update.d.ts +0 -110
- package/build/hooks/use_message_create_or_update.d.ts.map +0 -1
- package/build/hooks/use_message_draft.d.ts +0 -13
- package/build/hooks/use_message_draft.d.ts.map +0 -1
- package/build/hooks/use_message_reaction_toggle.d.ts +0 -21
- package/build/hooks/use_message_reaction_toggle.d.ts.map +0 -1
- package/build/hooks/use_my_gender.d.ts +0 -7
- package/build/hooks/use_my_gender.d.ts.map +0 -1
- package/build/hooks/use_new_conversation_entry.d.ts +0 -8
- package/build/hooks/use_new_conversation_entry.d.ts.map +0 -1
- package/build/hooks/use_new_conversation_from_filter.d.ts +0 -12
- package/build/hooks/use_new_conversation_from_filter.d.ts.map +0 -1
- package/build/hooks/use_organization.d.ts +0 -39
- package/build/hooks/use_organization.d.ts.map +0 -1
- package/build/hooks/use_people_person.d.ts +0 -18
- package/build/hooks/use_people_person.d.ts.map +0 -1
- package/build/hooks/use_person_settings.d.ts +0 -6
- package/build/hooks/use_person_settings.d.ts.map +0 -1
- package/build/hooks/use_preview_avatar_diameter.d.ts +0 -2
- package/build/hooks/use_preview_avatar_diameter.d.ts.map +0 -1
- package/build/hooks/use_product_analytics.d.ts +0 -24
- package/build/hooks/use_product_analytics.d.ts.map +0 -1
- package/build/hooks/use_qualified_by_age.d.ts +0 -2
- package/build/hooks/use_qualified_by_age.d.ts.map +0 -1
- package/build/hooks/use_read_receipts.d.ts +0 -40
- package/build/hooks/use_read_receipts.d.ts.map +0 -1
- package/build/hooks/use_reduce_motion.d.ts +0 -2
- package/build/hooks/use_reduce_motion.d.ts.map +0 -1
- package/build/hooks/use_report_bug_action.d.ts +0 -6
- package/build/hooks/use_report_bug_action.d.ts.map +0 -1
- package/build/hooks/use_report_message.d.ts +0 -6
- package/build/hooks/use_report_message.d.ts.map +0 -1
- package/build/hooks/use_rest_away_from_dismiss_edge.d.ts +0 -19
- package/build/hooks/use_rest_away_from_dismiss_edge.d.ts.map +0 -1
- package/build/hooks/use_scalable_number_of_lines.d.ts +0 -2
- package/build/hooks/use_scalable_number_of_lines.d.ts.map +0 -1
- package/build/hooks/use_search_enabled.d.ts +0 -2
- package/build/hooks/use_search_enabled.d.ts.map +0 -1
- package/build/hooks/use_search_results.d.ts +0 -19
- package/build/hooks/use_search_results.d.ts.map +0 -1
- package/build/hooks/use_selected_chip_background_color.d.ts +0 -2
- package/build/hooks/use_selected_chip_background_color.d.ts.map +0 -1
- package/build/hooks/use_storage.d.ts +0 -9
- package/build/hooks/use_storage.d.ts.map +0 -1
- package/build/hooks/use_submit_age_check.d.ts +0 -78
- package/build/hooks/use_submit_age_check.d.ts.map +0 -1
- package/build/hooks/use_suspense_api.d.ts +0 -86
- package/build/hooks/use_suspense_api.d.ts.map +0 -1
- package/build/hooks/use_system_message_people.d.ts +0 -14
- package/build/hooks/use_system_message_people.d.ts.map +0 -1
- package/build/hooks/use_system_message_people.js +0 -101
- package/build/hooks/use_system_message_people.js.map +0 -1
- package/build/hooks/use_teams.d.ts +0 -207
- package/build/hooks/use_teams.d.ts.map +0 -1
- package/build/hooks/use_theme.d.ts +0 -3
- package/build/hooks/use_theme.d.ts.map +0 -1
- package/build/hooks/use_typing_indicators.d.ts +0 -13
- package/build/hooks/use_typing_indicators.d.ts.map +0 -1
- package/build/hooks/use_typing_status_cache.d.ts +0 -14
- package/build/hooks/use_typing_status_cache.d.ts.map +0 -1
- package/build/hooks/use_unarchive_conversation_action.d.ts +0 -7
- package/build/hooks/use_unarchive_conversation_action.d.ts.map +0 -1
- package/build/hooks/use_upload_client.d.ts +0 -32
- package/build/hooks/use_upload_client.d.ts.map +0 -1
- package/build/hooks/use_video_moderation_jolt_events.d.ts +0 -4
- package/build/hooks/use_video_moderation_jolt_events.d.ts.map +0 -1
- package/build/icons/font_awesome.d.ts +0 -2
- package/build/icons/font_awesome.d.ts.map +0 -1
- package/build/index.d.ts +0 -20
- package/build/index.d.ts.map +0 -1
- package/build/jest.d.ts +0 -18
- package/build/jest.d.ts.map +0 -1
- package/build/navigation/chat_access_gate.d.ts +0 -3
- package/build/navigation/chat_access_gate.d.ts.map +0 -1
- package/build/navigation/index.d.ts +0 -392
- package/build/navigation/index.d.ts.map +0 -1
- package/build/navigation/page_error_fallbacks.d.ts +0 -7
- package/build/navigation/page_error_fallbacks.d.ts.map +0 -1
- package/build/navigation/page_error_fallbacks.js +0 -7
- package/build/navigation/page_error_fallbacks.js.map +0 -1
- package/build/navigation/screenLayout.d.ts +0 -8
- package/build/navigation/screenLayout.d.ts.map +0 -1
- package/build/polyfills/events/CustomEvent.d.ts +0 -21
- package/build/polyfills/events/CustomEvent.d.ts.map +0 -1
- package/build/polyfills/events/Event.d.ts +0 -45
- package/build/polyfills/events/Event.d.ts.map +0 -1
- package/build/polyfills/events/EventHandlerAttributes.d.ts +0 -8
- package/build/polyfills/events/EventHandlerAttributes.d.ts.map +0 -1
- package/build/polyfills/events/EventTarget.d.ts +0 -30
- package/build/polyfills/events/EventTarget.d.ts.map +0 -1
- package/build/polyfills/events/internals/EventInternals.d.ts +0 -30
- package/build/polyfills/events/internals/EventInternals.d.ts.map +0 -1
- package/build/polyfills/events/internals/EventTargetInternals.d.ts +0 -9
- package/build/polyfills/events/internals/EventTargetInternals.d.ts.map +0 -1
- package/build/polyfills/webidl/PlatformObjects.d.ts +0 -31
- package/build/polyfills/webidl/PlatformObjects.d.ts.map +0 -1
- package/build/screens/age_check/age_check_required_screen.d.ts +0 -2
- package/build/screens/age_check/age_check_required_screen.d.ts.map +0 -1
- package/build/screens/age_check/age_check_underage_screen.d.ts +0 -5
- package/build/screens/age_check/age_check_underage_screen.d.ts.map +0 -1
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts +0 -10
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts.map +0 -1
- package/build/screens/age_check/index.d.ts +0 -3
- package/build/screens/age_check/index.d.ts.map +0 -1
- package/build/screens/age_check/screen_props.d.ts +0 -5
- package/build/screens/age_check/screen_props.d.ts.map +0 -1
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts +0 -12
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +0 -1
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.d.ts +0 -10
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.d.ts.map +0 -1
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts +0 -11
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts.map +0 -1
- package/build/screens/avatar_picker/avatar_picker_state.d.ts +0 -38
- package/build/screens/avatar_picker/avatar_picker_state.d.ts.map +0 -1
- package/build/screens/avatar_picker/avatar_preview.d.ts +0 -9
- package/build/screens/avatar_picker/avatar_preview.d.ts.map +0 -1
- package/build/screens/avatar_picker/color_picker.d.ts +0 -8
- package/build/screens/avatar_picker/color_picker.d.ts.map +0 -1
- package/build/screens/avatar_picker/constants.d.ts +0 -3
- package/build/screens/avatar_picker/constants.d.ts.map +0 -1
- package/build/screens/avatar_picker/emoji_tab.d.ts +0 -6
- package/build/screens/avatar_picker/emoji_tab.d.ts.map +0 -1
- package/build/screens/avatar_picker/icon_grid.d.ts +0 -7
- package/build/screens/avatar_picker/icon_grid.d.ts.map +0 -1
- package/build/screens/avatar_picker/upload_tab.d.ts +0 -8
- package/build/screens/avatar_picker/upload_tab.d.ts.map +0 -1
- package/build/screens/bug_report_screen.d.ts +0 -4
- package/build/screens/bug_report_screen.d.ts.map +0 -1
- package/build/screens/conversation/message_read_receipts_screen.d.ts +0 -8
- package/build/screens/conversation/message_read_receipts_screen.d.ts.map +0 -1
- package/build/screens/conversation_details_screen.d.ts +0 -6
- package/build/screens/conversation_details_screen.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +0 -11
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts +0 -11
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts +0 -4
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts +0 -10
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts +0 -176
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts.map +0 -1
- package/build/screens/conversation_filter_recipients/types.d.ts +0 -48
- package/build/screens/conversation_filter_recipients/types.d.ts.map +0 -1
- package/build/screens/conversation_filters/components/conversation_filters.d.ts +0 -2
- package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +0 -1
- package/build/screens/conversation_filters/components/rows.d.ts +0 -42
- package/build/screens/conversation_filters/components/rows.d.ts.map +0 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts +0 -27
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +0 -1
- package/build/screens/conversation_filters/filter_types.d.ts +0 -9
- package/build/screens/conversation_filters/filter_types.d.ts.map +0 -1
- package/build/screens/conversation_filters/group_filters.d.ts +0 -5
- package/build/screens/conversation_filters/group_filters.d.ts.map +0 -1
- package/build/screens/conversation_filters/hooks/filters.d.ts +0 -415
- package/build/screens/conversation_filters/hooks/filters.d.ts.map +0 -1
- package/build/screens/conversation_filters/screen_props.d.ts +0 -16
- package/build/screens/conversation_filters/screen_props.d.ts.map +0 -1
- package/build/screens/conversation_filters/team_filters.d.ts +0 -5
- package/build/screens/conversation_filters/team_filters.d.ts.map +0 -1
- package/build/screens/conversation_filters_screen.d.ts +0 -5
- package/build/screens/conversation_filters_screen.d.ts.map +0 -1
- package/build/screens/conversation_new/components/avatar_selection_row.d.ts +0 -11
- package/build/screens/conversation_new/components/avatar_selection_row.d.ts.map +0 -1
- package/build/screens/conversation_new/components/filter_by_plan.d.ts +0 -22
- package/build/screens/conversation_new/components/filter_by_plan.d.ts.map +0 -1
- package/build/screens/conversation_new/components/form_list.d.ts +0 -13
- package/build/screens/conversation_new/components/form_list.d.ts.map +0 -1
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts +0 -9
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts.map +0 -1
- package/build/screens/conversation_new/components/groups_form.d.ts +0 -10
- package/build/screens/conversation_new/components/groups_form.d.ts.map +0 -1
- package/build/screens/conversation_new/components/services_form.d.ts +0 -11
- package/build/screens/conversation_new/components/services_form.d.ts.map +0 -1
- package/build/screens/conversation_new/components/source_app_error_card.d.ts +0 -2
- package/build/screens/conversation_new/components/source_app_error_card.d.ts.map +0 -1
- package/build/screens/conversation_new/conversation_new_screen.d.ts +0 -18
- package/build/screens/conversation_new/conversation_new_screen.d.ts.map +0 -1
- package/build/screens/conversation_notification_level_select_screen.d.ts +0 -7
- package/build/screens/conversation_notification_level_select_screen.d.ts.map +0 -1
- package/build/screens/conversation_screen.d.ts +0 -28
- package/build/screens/conversation_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts +0 -8
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts +0 -11
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts +0 -7
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/results_heading.d.ts +0 -6
- package/build/screens/conversation_select_recipients/components/results_heading.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts +0 -8
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts +0 -8
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts +0 -3
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts +0 -3
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts +0 -3
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts +0 -3
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts.map +0 -1
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts +0 -11
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts.map +0 -1
- package/build/screens/conversation_select_type_screen.d.ts +0 -12
- package/build/screens/conversation_select_type_screen.d.ts.map +0 -1
- package/build/screens/conversations/components/chat_group_badge.d.ts +0 -4
- package/build/screens/conversations/components/chat_group_badge.d.ts.map +0 -1
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts +0 -2
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +0 -1
- package/build/screens/conversations/components/list_header_action_button.d.ts +0 -19
- package/build/screens/conversations/components/list_header_action_button.d.ts.map +0 -1
- package/build/screens/conversations/components/list_header_component.d.ts +0 -2
- package/build/screens/conversations/components/list_header_component.d.ts.map +0 -1
- package/build/screens/conversations/components/search_list_header_component.d.ts +0 -2
- package/build/screens/conversations/components/search_list_header_component.d.ts.map +0 -1
- package/build/screens/conversations/conversations_screen.d.ts +0 -13
- package/build/screens/conversations/conversations_screen.d.ts.map +0 -1
- package/build/screens/design_system_screen.d.ts +0 -2
- package/build/screens/design_system_screen.d.ts.map +0 -1
- package/build/screens/get_help_screen.d.ts +0 -10
- package/build/screens/get_help_screen.d.ts.map +0 -1
- package/build/screens/group_notification_level_select_screen.d.ts +0 -7
- package/build/screens/group_notification_level_select_screen.d.ts.map +0 -1
- package/build/screens/group_notification_settings_screen.d.ts +0 -7
- package/build/screens/group_notification_settings_screen.d.ts.map +0 -1
- package/build/screens/index.d.ts +0 -25
- package/build/screens/index.d.ts.map +0 -1
- package/build/screens/message_actions_screen.d.ts +0 -12
- package/build/screens/message_actions_screen.d.ts.map +0 -1
- package/build/screens/message_report/components/message_preview.d.ts +0 -9
- package/build/screens/message_report/components/message_preview.d.ts.map +0 -1
- package/build/screens/message_report/components/report_reason_list.d.ts +0 -8
- package/build/screens/message_report/components/report_reason_list.d.ts.map +0 -1
- package/build/screens/message_report_screen.d.ts +0 -9
- package/build/screens/message_report_screen.d.ts.map +0 -1
- package/build/screens/not_found.d.ts +0 -2
- package/build/screens/not_found.d.ts.map +0 -1
- package/build/screens/notification_settings/hooks/groups.d.ts +0 -96
- package/build/screens/notification_settings/hooks/groups.d.ts.map +0 -1
- package/build/screens/notification_settings_screen.d.ts +0 -4
- package/build/screens/notification_settings_screen.d.ts.map +0 -1
- package/build/screens/preferred_app/hooks/use_chat_types.d.ts +0 -39
- package/build/screens/preferred_app/hooks/use_chat_types.d.ts.map +0 -1
- package/build/screens/preferred_app_selection_screen.d.ts +0 -9
- package/build/screens/preferred_app_selection_screen.d.ts.map +0 -1
- package/build/screens/reactions_screen.d.ts +0 -9
- package/build/screens/reactions_screen.d.ts.map +0 -1
- package/build/screens/search/components/conversation_result_row.d.ts +0 -8
- package/build/screens/search/components/conversation_result_row.d.ts.map +0 -1
- package/build/screens/search/components/conversation_results.d.ts +0 -8
- package/build/screens/search/components/conversation_results.d.ts.map +0 -1
- package/build/screens/search/components/message_result_row.d.ts +0 -8
- package/build/screens/search/components/message_result_row.d.ts.map +0 -1
- package/build/screens/search/components/result_row.d.ts +0 -10
- package/build/screens/search/components/result_row.d.ts.map +0 -1
- package/build/screens/search/components/results_section.d.ts +0 -9
- package/build/screens/search/components/results_section.d.ts.map +0 -1
- package/build/screens/search/components/search_blank_states.d.ts +0 -7
- package/build/screens/search/components/search_blank_states.d.ts.map +0 -1
- package/build/screens/search/components/search_field.d.ts +0 -7
- package/build/screens/search/components/search_field.d.ts.map +0 -1
- package/build/screens/search/components/search_results_list.d.ts +0 -16
- package/build/screens/search/components/search_results_list.d.ts.map +0 -1
- package/build/screens/search/components/snippet.d.ts +0 -8
- package/build/screens/search/components/snippet.d.ts.map +0 -1
- package/build/screens/search/search_screen.d.ts +0 -5
- package/build/screens/search/search_screen.d.ts.map +0 -1
- package/build/screens/send_giphy_screen.d.ts +0 -9
- package/build/screens/send_giphy_screen.d.ts.map +0 -1
- package/build/screens/settings_screen.d.ts +0 -4
- package/build/screens/settings_screen.d.ts.map +0 -1
- package/build/screens/system_message_people_screen.d.ts +0 -8
- package/build/screens/system_message_people_screen.d.ts.map +0 -1
- package/build/screens/team_conversation_screen.d.ts +0 -8
- package/build/screens/team_conversation_screen.d.ts.map +0 -1
- package/build/types/api_primitives.d.ts +0 -45
- package/build/types/api_primitives.d.ts.map +0 -1
- package/build/types/index.d.ts +0 -4
- package/build/types/index.d.ts.map +0 -1
- package/build/types/jolt_events/attachment_events.d.ts +0 -14
- package/build/types/jolt_events/attachment_events.d.ts.map +0 -1
- package/build/types/jolt_events/conversation_events.d.ts +0 -42
- package/build/types/jolt_events/conversation_events.d.ts.map +0 -1
- package/build/types/jolt_events/index.d.ts +0 -14
- package/build/types/jolt_events/index.d.ts.map +0 -1
- package/build/types/jolt_events/message_events.d.ts +0 -44
- package/build/types/jolt_events/message_events.d.ts.map +0 -1
- package/build/types/jolt_events/reaction_events.d.ts +0 -27
- package/build/types/jolt_events/reaction_events.d.ts.map +0 -1
- package/build/types/jolt_events/typing_events.d.ts +0 -16
- package/build/types/jolt_events/typing_events.d.ts.map +0 -1
- package/build/types/product_analytics.d.ts +0 -6
- package/build/types/product_analytics.d.ts.map +0 -1
- package/build/types/resources/analytics_metadata.d.ts +0 -5
- package/build/types/resources/analytics_metadata.d.ts.map +0 -1
- package/build/types/resources/app_grant.d.ts +0 -8
- package/build/types/resources/app_grant.d.ts.map +0 -1
- package/build/types/resources/app_name.d.ts +0 -2
- package/build/types/resources/app_name.d.ts.map +0 -1
- package/build/types/resources/chat_configuration_resource.d.ts +0 -9
- package/build/types/resources/chat_configuration_resource.d.ts.map +0 -1
- package/build/types/resources/conversation.d.ts +0 -48
- package/build/types/resources/conversation.d.ts.map +0 -1
- package/build/types/resources/conversation_badge.d.ts +0 -12
- package/build/types/resources/conversation_badge.d.ts.map +0 -1
- package/build/types/resources/conversation_membership.d.ts +0 -16
- package/build/types/resources/conversation_membership.d.ts.map +0 -1
- package/build/types/resources/conversation_validate.d.ts +0 -10
- package/build/types/resources/conversation_validate.d.ts.map +0 -1
- package/build/types/resources/denormalized_attachment_resource.d.ts +0 -65
- package/build/types/resources/denormalized_attachment_resource.d.ts.map +0 -1
- package/build/types/resources/denormalized_attachment_resource_for_create.d.ts +0 -53
- package/build/types/resources/denormalized_attachment_resource_for_create.d.ts.map +0 -1
- package/build/types/resources/direct_message_affiliations.d.ts +0 -9
- package/build/types/resources/direct_message_affiliations.d.ts.map +0 -1
- package/build/types/resources/direct_message_candidate.d.ts +0 -13
- package/build/types/resources/direct_message_candidate.d.ts.map +0 -1
- package/build/types/resources/feature_resource.d.ts +0 -7
- package/build/types/resources/feature_resource.d.ts.map +0 -1
- package/build/types/resources/group_membership.d.ts +0 -13
- package/build/types/resources/group_membership.d.ts.map +0 -1
- package/build/types/resources/group_resource.d.ts +0 -18
- package/build/types/resources/group_resource.d.ts.map +0 -1
- package/build/types/resources/groups/groups_group_resource.d.ts +0 -15
- package/build/types/resources/groups/groups_group_resource.d.ts.map +0 -1
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts +0 -15
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts.map +0 -1
- package/build/types/resources/groups/index.d.ts +0 -2
- package/build/types/resources/groups/index.d.ts.map +0 -1
- package/build/types/resources/index.d.ts +0 -18
- package/build/types/resources/index.d.ts.map +0 -1
- package/build/types/resources/member.d.ts +0 -16
- package/build/types/resources/member.d.ts.map +0 -1
- package/build/types/resources/member_ability.d.ts +0 -12
- package/build/types/resources/member_ability.d.ts.map +0 -1
- package/build/types/resources/message.d.ts +0 -44
- package/build/types/resources/message.d.ts.map +0 -1
- package/build/types/resources/message_report.d.ts +0 -19
- package/build/types/resources/message_report.d.ts.map +0 -1
- package/build/types/resources/oauth_token.d.ts +0 -9
- package/build/types/resources/oauth_token.d.ts.map +0 -1
- package/build/types/resources/organization.d.ts +0 -8
- package/build/types/resources/organization.d.ts.map +0 -1
- package/build/types/resources/person.d.ts +0 -24
- package/build/types/resources/person.d.ts.map +0 -1
- package/build/types/resources/reaction.d.ts +0 -10
- package/build/types/resources/reaction.d.ts.map +0 -1
- package/build/types/resources/read_receipt.d.ts +0 -7
- package/build/types/resources/read_receipt.d.ts.map +0 -1
- package/build/types/resources/search_result.d.ts +0 -29
- package/build/types/resources/search_result.d.ts.map +0 -1
- package/build/types/resources/services/chat_resource.d.ts +0 -53
- package/build/types/resources/services/chat_resource.d.ts.map +0 -1
- package/build/types/resources/services/index.d.ts +0 -3
- package/build/types/resources/services/index.d.ts.map +0 -1
- package/build/types/resources/services/team_resource.d.ts +0 -19
- package/build/types/resources/services/team_resource.d.ts.map +0 -1
- package/build/types/utils/index.d.ts +0 -5
- package/build/types/utils/index.d.ts.map +0 -1
- package/build/utils/archived_conversation.d.ts +0 -5
- package/build/utils/archived_conversation.d.ts.map +0 -1
- package/build/utils/assert_keys_are_numbers.d.ts +0 -2
- package/build/utils/assert_keys_are_numbers.d.ts.map +0 -1
- package/build/utils/attachment_kind.d.ts +0 -5
- package/build/utils/attachment_kind.d.ts.map +0 -1
- package/build/utils/auth_events.d.ts +0 -7
- package/build/utils/auth_events.d.ts.map +0 -1
- package/build/utils/cache/index.d.ts +0 -2
- package/build/utils/cache/index.d.ts.map +0 -1
- package/build/utils/cache/messages_cache.d.ts +0 -13
- package/build/utils/cache/messages_cache.d.ts.map +0 -1
- package/build/utils/cache/messages_window.d.ts +0 -11
- package/build/utils/cache/messages_window.d.ts.map +0 -1
- package/build/utils/cache/optimistically_create_message.d.ts +0 -12
- package/build/utils/cache/optimistically_create_message.d.ts.map +0 -1
- package/build/utils/cache/optimistically_update_message.d.ts +0 -8
- package/build/utils/cache/optimistically_update_message.d.ts.map +0 -1
- package/build/utils/cache/page_mutations.d.ts +0 -96
- package/build/utils/cache/page_mutations.d.ts.map +0 -1
- package/build/utils/can_submit_message.d.ts +0 -10
- package/build/utils/can_submit_message.d.ts.map +0 -1
- package/build/utils/chat_type_label.d.ts +0 -2
- package/build/utils/chat_type_label.d.ts.map +0 -1
- package/build/utils/client/client.d.ts +0 -30
- package/build/utils/client/client.d.ts.map +0 -1
- package/build/utils/client/index.d.ts +0 -3
- package/build/utils/client/index.d.ts.map +0 -1
- package/build/utils/client/instrumented_fetch.d.ts +0 -2
- package/build/utils/client/instrumented_fetch.d.ts.map +0 -1
- package/build/utils/client/request_helpers.d.ts +0 -28
- package/build/utils/client/request_helpers.d.ts.map +0 -1
- package/build/utils/client/transform_request_data.d.ts +0 -13
- package/build/utils/client/transform_request_data.d.ts.map +0 -1
- package/build/utils/client/transform_response.d.ts +0 -3
- package/build/utils/client/transform_response.d.ts.map +0 -1
- package/build/utils/client/types.d.ts +0 -62
- package/build/utils/client/types.d.ts.map +0 -1
- package/build/utils/client/utils.d.ts +0 -5
- package/build/utils/client/utils.d.ts.map +0 -1
- package/build/utils/conversation_safety_constants.d.ts +0 -2
- package/build/utils/conversation_safety_constants.d.ts.map +0 -1
- package/build/utils/convert_attachments_for_create.d.ts +0 -12
- package/build/utils/convert_attachments_for_create.d.ts.map +0 -1
- package/build/utils/date.d.ts +0 -11
- package/build/utils/date.d.ts.map +0 -1
- package/build/utils/dayjs.d.ts +0 -3
- package/build/utils/dayjs.d.ts.map +0 -1
- package/build/utils/deepCamelCaseKeys.d.ts +0 -4
- package/build/utils/deepCamelCaseKeys.d.ts.map +0 -1
- package/build/utils/deep_snake_case_keys.d.ts +0 -4
- package/build/utils/deep_snake_case_keys.d.ts.map +0 -1
- package/build/utils/destructure_chat_group_graph_id.d.ts +0 -10
- package/build/utils/destructure_chat_group_graph_id.d.ts.map +0 -1
- package/build/utils/gender_display_label.d.ts +0 -2
- package/build/utils/gender_display_label.d.ts.map +0 -1
- package/build/utils/generate_placeholder_ulid.d.ts +0 -10
- package/build/utils/generate_placeholder_ulid.d.ts.map +0 -1
- package/build/utils/group_messages.d.ts +0 -22
- package/build/utils/group_messages.d.ts.map +0 -1
- package/build/utils/host_bridge.d.ts +0 -20
- package/build/utils/host_bridge.d.ts.map +0 -1
- package/build/utils/index.d.ts +0 -21
- package/build/utils/index.d.ts.map +0 -1
- package/build/utils/is_input_editable.d.ts +0 -6
- package/build/utils/is_input_editable.d.ts.map +0 -1
- package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts +0 -7
- package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts.map +0 -1
- package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts +0 -12
- package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts.map +0 -1
- package/build/utils/liquid_glass.d.ts +0 -3
- package/build/utils/liquid_glass.d.ts.map +0 -1
- package/build/utils/membership_sync_info_text.d.ts +0 -2
- package/build/utils/membership_sync_info_text.d.ts.map +0 -1
- package/build/utils/message_text.d.ts +0 -3
- package/build/utils/message_text.d.ts.map +0 -1
- package/build/utils/native_adapters/audio.d.ts +0 -14
- package/build/utils/native_adapters/audio.d.ts.map +0 -1
- package/build/utils/native_adapters/clipboard.d.ts +0 -6
- package/build/utils/native_adapters/clipboard.d.ts.map +0 -1
- package/build/utils/native_adapters/configuration.d.ts +0 -36
- package/build/utils/native_adapters/configuration.d.ts.map +0 -1
- package/build/utils/native_adapters/document_picker.d.ts +0 -28
- package/build/utils/native_adapters/document_picker.d.ts.map +0 -1
- package/build/utils/native_adapters/haptic.d.ts +0 -23
- package/build/utils/native_adapters/haptic.d.ts.map +0 -1
- package/build/utils/native_adapters/image_picker.d.ts +0 -31
- package/build/utils/native_adapters/image_picker.d.ts.map +0 -1
- package/build/utils/native_adapters/index.d.ts +0 -12
- package/build/utils/native_adapters/index.d.ts.map +0 -1
- package/build/utils/native_adapters/linking.d.ts +0 -15
- package/build/utils/native_adapters/linking.d.ts.map +0 -1
- package/build/utils/native_adapters/log.d.ts +0 -26
- package/build/utils/native_adapters/log.d.ts.map +0 -1
- package/build/utils/native_adapters/menu.d.ts +0 -40
- package/build/utils/native_adapters/menu.d.ts.map +0 -1
- package/build/utils/native_adapters/storage_adapter.d.ts +0 -17
- package/build/utils/native_adapters/storage_adapter.d.ts.map +0 -1
- package/build/utils/native_adapters/video.d.ts +0 -22
- package/build/utils/native_adapters/video.d.ts.map +0 -1
- package/build/utils/package_version.d.ts +0 -2
- package/build/utils/package_version.d.ts.map +0 -1
- package/build/utils/parse_simple_markdown.d.ts +0 -7
- package/build/utils/parse_simple_markdown.d.ts.map +0 -1
- package/build/utils/performance_tracking.d.ts +0 -26
- package/build/utils/performance_tracking.d.ts.map +0 -1
- package/build/utils/pluralize.d.ts +0 -2
- package/build/utils/pluralize.d.ts.map +0 -1
- package/build/utils/reaction_constants.d.ts +0 -3
- package/build/utils/reaction_constants.d.ts.map +0 -1
- package/build/utils/replace_equal_by_id.d.ts +0 -6
- package/build/utils/replace_equal_by_id.d.ts.map +0 -1
- package/build/utils/request/conversation.d.ts +0 -12
- package/build/utils/request/conversation.d.ts.map +0 -1
- package/build/utils/request/get_chat_configuration.d.ts +0 -10
- package/build/utils/request/get_chat_configuration.d.ts.map +0 -1
- package/build/utils/request/get_features.d.ts +0 -17
- package/build/utils/request/get_features.d.ts.map +0 -1
- package/build/utils/request/get_message.d.ts +0 -20
- package/build/utils/request/get_message.d.ts.map +0 -1
- package/build/utils/request/get_messages.d.ts +0 -21
- package/build/utils/request/get_messages.d.ts.map +0 -1
- package/build/utils/request/get_search_results.d.ts +0 -13
- package/build/utils/request/get_search_results.d.ts.map +0 -1
- package/build/utils/request/messages_data_options.d.ts +0 -7
- package/build/utils/request/messages_data_options.d.ts.map +0 -1
- package/build/utils/response_error.d.ts +0 -11
- package/build/utils/response_error.d.ts.map +0 -1
- package/build/utils/session.d.ts +0 -38
- package/build/utils/session.d.ts.map +0 -1
- package/build/utils/session_manager.d.ts +0 -21
- package/build/utils/session_manager.d.ts.map +0 -1
- package/build/utils/sha_256.d.ts +0 -31
- package/build/utils/sha_256.d.ts.map +0 -1
- package/build/utils/styles.d.ts +0 -11
- package/build/utils/styles.d.ts.map +0 -1
- package/build/utils/system_messages.d.ts +0 -17
- package/build/utils/system_messages.d.ts.map +0 -1
- package/build/utils/theme.d.ts +0 -88
- package/build/utils/theme.d.ts.map +0 -1
- package/build/utils/time.d.ts +0 -9
- package/build/utils/time.d.ts.map +0 -1
- package/build/utils/upload_uri.d.ts +0 -24
- package/build/utils/upload_uri.d.ts.map +0 -1
- package/build/utils/uri.d.ts +0 -29
- package/build/utils/uri.d.ts.map +0 -1
- package/build/vendor/font_awesome_pro_solid_icons.d.ts +0 -53
- package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +0 -1
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts +0 -89
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts.map +0 -1
- package/build/vendor/tapestry/tokens.d.ts +0 -121
- package/build/vendor/tapestry/tokens.d.ts.map +0 -1
- package/src/__utils__/render_with_query_client.tsx +0 -13
- package/src/components/display/__tests__/conversation_avatar.test.tsx +0 -94
- package/src/contexts/__tests__/configured_retry.test.ts +0 -39
- package/src/hooks/__tests__/use_conversation_avatar_update.test.tsx +0 -40
- package/src/hooks/__tests__/use_system_message_people.test.tsx +0 -79
- package/src/hooks/use_system_message_people.ts +0 -55
- package/src/navigation/page_error_fallbacks.ts +0 -14
- package/src/screens/avatar_picker/__tests__/avatar_picker_screen.test.tsx +0 -67
- package/src/screens/conversation_select_recipients/__tests__/conversation_select_direct_message_recipients_screen.test.tsx +0 -100
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
export declare const faBookBible: IconDefinition;
|
|
3
|
-
export declare const faChurch: IconDefinition;
|
|
4
|
-
export declare const faCross: IconDefinition;
|
|
5
|
-
export declare const faDove: IconDefinition;
|
|
6
|
-
export declare const faHandsHeart: IconDefinition;
|
|
7
|
-
export declare const faPersonRays: IconDefinition;
|
|
8
|
-
export declare const faPrayingHands: IconDefinition;
|
|
9
|
-
export declare const faPodium: IconDefinition;
|
|
10
|
-
export declare const faDroplet: IconDefinition;
|
|
11
|
-
export declare const faPersonDrowning: IconDefinition;
|
|
12
|
-
export declare const faLighthouse: IconDefinition;
|
|
13
|
-
export declare const faGuitar: IconDefinition;
|
|
14
|
-
export declare const faGuitarElectric: IconDefinition;
|
|
15
|
-
export declare const faViolin: IconDefinition;
|
|
16
|
-
export declare const faCalendarHeart: IconDefinition;
|
|
17
|
-
export declare const faHandHeart: IconDefinition;
|
|
18
|
-
export declare const faHandWave: IconDefinition;
|
|
19
|
-
export declare const faBaby: IconDefinition;
|
|
20
|
-
export declare const faChildren: IconDefinition;
|
|
21
|
-
export declare const faMugHot: IconDefinition;
|
|
22
|
-
export declare const faVideoCamera: IconDefinition;
|
|
23
|
-
export declare const faMusic: IconDefinition;
|
|
24
|
-
export declare const faPianoKeyboard: IconDefinition;
|
|
25
|
-
export declare const faDrum: IconDefinition;
|
|
26
|
-
export declare const faUserGraduate: IconDefinition;
|
|
27
|
-
export declare const faCommentsQuestion: IconDefinition;
|
|
28
|
-
export declare const faPresentation: IconDefinition;
|
|
29
|
-
export declare const faMicrophoneStand: IconDefinition;
|
|
30
|
-
export declare const faIdBadge: IconDefinition;
|
|
31
|
-
export declare const faBookUser: IconDefinition;
|
|
32
|
-
export declare const faHandHoldingHeart: IconDefinition;
|
|
33
|
-
export declare const faGuitars: IconDefinition;
|
|
34
|
-
export declare const faAmpGuitar: IconDefinition;
|
|
35
|
-
export declare const faSchoolFlag: IconDefinition;
|
|
36
|
-
export declare const faShieldCheck: IconDefinition;
|
|
37
|
-
export declare const faProjector: IconDefinition;
|
|
38
|
-
export declare const faPeople: IconDefinition;
|
|
39
|
-
export declare const faPeopleGroup: IconDefinition;
|
|
40
|
-
export declare const faPersonDress: IconDefinition;
|
|
41
|
-
export declare const faPerson: IconDefinition;
|
|
42
|
-
export declare const faSeedling: IconDefinition;
|
|
43
|
-
export declare const faCommentsAlt: IconDefinition;
|
|
44
|
-
export declare const faGlobe: IconDefinition;
|
|
45
|
-
export declare const faBookOpenReader: IconDefinition;
|
|
46
|
-
export declare const faRunning: IconDefinition;
|
|
47
|
-
export declare const faLeaf: IconDefinition;
|
|
48
|
-
export declare const faPlateUtensils: IconDefinition;
|
|
49
|
-
export declare const faBullhorn: IconDefinition;
|
|
50
|
-
export declare const faCar: IconDefinition;
|
|
51
|
-
export declare const faTag: IconDefinition;
|
|
52
|
-
export declare const faBoxArchive: IconDefinition;
|
|
53
|
-
//# sourceMappingURL=font_awesome_pro_solid_icons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"font_awesome_pro_solid_icons.d.ts","sourceRoot":"","sources":["../../src/vendor/font_awesome_pro_solid_icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AASvE,eAAO,MAAM,WAAW,EAAE,cAUzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cAUtB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,cAUrB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,cAUpB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAU1B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAU1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,cAU5B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cAUtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,cAUvB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,cAU9B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAU1B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cAUtB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,cAU9B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cAUtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,cAU7B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,cAUzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,cAUxB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,cAUpB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,cAUxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cAUtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAU3B,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,cAUrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,cAU7B,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,cAUpB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,cAU5B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,cAUhC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,cAU5B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,cAU/B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,cAUvB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,cAUxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,cAUhC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,cAUvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,cAUzB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAU1B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAU3B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,cAUzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cAUtB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAU3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAU3B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,cAUtB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,cAUxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAU3B,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,cAUrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,cAU9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,cAUvB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,cAUpB,CAAA;AAID,eAAO,MAAM,eAAe,EAAE,cAU7B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,cAUxB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,cAUnB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,cAUnB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,cAU1B,CAAA"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export declare const aliasTokensColorMap: {
|
|
2
|
-
readonly light: {
|
|
3
|
-
readonly name: string;
|
|
4
|
-
readonly borderColorDefaultBase: string;
|
|
5
|
-
readonly borderColorDefaultDark: string;
|
|
6
|
-
readonly borderColorDefaultDarker: string;
|
|
7
|
-
readonly borderColorDefaultDarkest: string;
|
|
8
|
-
readonly borderColorDefaultDisabled: string;
|
|
9
|
-
readonly borderColorDefaultDim: string;
|
|
10
|
-
readonly borderColorDefaultWhite: string;
|
|
11
|
-
readonly iconColorDefaultPrimary: string;
|
|
12
|
-
readonly iconColorDefaultSecondary: string;
|
|
13
|
-
readonly iconColorDefaultDim: string;
|
|
14
|
-
readonly iconColorDefaultDisabled: string;
|
|
15
|
-
readonly iconColorDefaultInverted: string;
|
|
16
|
-
readonly textColorDefaultHeadline: string;
|
|
17
|
-
readonly textColorDefaultPrimary: string;
|
|
18
|
-
readonly textColorDefaultSecondary: string;
|
|
19
|
-
readonly textColorDefaultDisabled: string;
|
|
20
|
-
readonly textColorDefaultPlaceholder: string;
|
|
21
|
-
readonly textColorDefaultInverted: string;
|
|
22
|
-
readonly fillColorInteractionOnlineDefault: string;
|
|
23
|
-
readonly fillColorInteractionDefault: string;
|
|
24
|
-
readonly fillColorStatusErrorMedium: string;
|
|
25
|
-
readonly fillColorButtonNeutralSolidDisabled: string;
|
|
26
|
-
readonly androidRippleNeutral: string;
|
|
27
|
-
readonly surfaceColorCard: string;
|
|
28
|
-
readonly surfaceColorCanvas: string;
|
|
29
|
-
readonly surfaceColor100: string;
|
|
30
|
-
readonly surfaceColor090: string;
|
|
31
|
-
readonly surfaceColor080: string;
|
|
32
|
-
readonly needsDesignPass: string;
|
|
33
|
-
readonly fillColorNeutral000: string;
|
|
34
|
-
readonly fillColorNeutral010: string;
|
|
35
|
-
readonly fillColorNeutral020: string;
|
|
36
|
-
readonly fillColorNeutral030: string;
|
|
37
|
-
readonly fillColorNeutral040: string;
|
|
38
|
-
readonly fillColorNeutral050Base: string;
|
|
39
|
-
readonly fillColorNeutral060: string;
|
|
40
|
-
readonly fillColorNeutral070: string;
|
|
41
|
-
readonly fillColorNeutral080: string;
|
|
42
|
-
readonly fillColorNeutral090: string;
|
|
43
|
-
readonly fillColorNeutral100Inverted: string;
|
|
44
|
-
};
|
|
45
|
-
readonly dark: {
|
|
46
|
-
readonly name: string;
|
|
47
|
-
readonly borderColorDefaultBase: string;
|
|
48
|
-
readonly borderColorDefaultDark: string;
|
|
49
|
-
readonly borderColorDefaultDarker: string;
|
|
50
|
-
readonly borderColorDefaultDarkest: string;
|
|
51
|
-
readonly borderColorDefaultDisabled: string;
|
|
52
|
-
readonly borderColorDefaultDim: string;
|
|
53
|
-
readonly borderColorDefaultWhite: string;
|
|
54
|
-
readonly iconColorDefaultPrimary: string;
|
|
55
|
-
readonly iconColorDefaultSecondary: string;
|
|
56
|
-
readonly iconColorDefaultDim: string;
|
|
57
|
-
readonly iconColorDefaultDisabled: string;
|
|
58
|
-
readonly iconColorDefaultInverted: string;
|
|
59
|
-
readonly textColorDefaultHeadline: string;
|
|
60
|
-
readonly textColorDefaultPrimary: string;
|
|
61
|
-
readonly textColorDefaultSecondary: string;
|
|
62
|
-
readonly textColorDefaultDisabled: string;
|
|
63
|
-
readonly textColorDefaultPlaceholder: string;
|
|
64
|
-
readonly textColorDefaultInverted: string;
|
|
65
|
-
readonly fillColorInteractionOnlineDefault: string;
|
|
66
|
-
readonly fillColorInteractionDefault: string;
|
|
67
|
-
readonly fillColorStatusErrorMedium: string;
|
|
68
|
-
readonly fillColorButtonNeutralSolidDisabled: string;
|
|
69
|
-
readonly androidRippleNeutral: string;
|
|
70
|
-
readonly surfaceColorCard: string;
|
|
71
|
-
readonly surfaceColorCanvas: string;
|
|
72
|
-
readonly surfaceColor100: string;
|
|
73
|
-
readonly surfaceColor090: string;
|
|
74
|
-
readonly surfaceColor080: string;
|
|
75
|
-
readonly needsDesignPass: string;
|
|
76
|
-
readonly fillColorNeutral000: string;
|
|
77
|
-
readonly fillColorNeutral010: string;
|
|
78
|
-
readonly fillColorNeutral020: string;
|
|
79
|
-
readonly fillColorNeutral030: string;
|
|
80
|
-
readonly fillColorNeutral040: string;
|
|
81
|
-
readonly fillColorNeutral050Base: string;
|
|
82
|
-
readonly fillColorNeutral060: string;
|
|
83
|
-
readonly fillColorNeutral070: string;
|
|
84
|
-
readonly fillColorNeutral080: string;
|
|
85
|
-
readonly fillColorNeutral090: string;
|
|
86
|
-
readonly fillColorNeutral100Inverted: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
//# sourceMappingURL=alias_tokens_color_map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alias_tokens_color_map.d.ts","sourceRoot":"","sources":["../../../src/vendor/tapestry/alias_tokens_color_map.ts"],"names":[],"mappings":"AAsJA,eAAO,MAAM,mBAAmB;;uBAlGxB,MAAM;yCACY,MAAM;yCACN,MAAM;2CACJ,MAAM;4CACL,MAAM;6CACL,MAAM;wCACX,MAAM;0CACJ,MAAM;0CACN,MAAM;4CACJ,MAAM;sCACZ,MAAM;2CACD,MAAM;2CACN,MAAM;2CACN,MAAM;0CACP,MAAM;4CACJ,MAAM;2CACP,MAAM;8CACH,MAAM;2CACT,MAAM;oDACG,MAAM;8CACZ,MAAM;6CACP,MAAM;sDACG,MAAM;uCACrB,MAAM;mCACV,MAAM;qCACJ,MAAM;kCACT,MAAM;kCACN,MAAM;kCACN,MAAM;kCACN,MAAM;sCAzEF,MAAM;sCACN,MAAM;sCACN,MAAM;sCACN,MAAM;sCACN,MAAM;0CACF,MAAM;sCACV,MAAM;sCACN,MAAM;sCACN,MAAM;sCACN,MAAM;8CACE,MAAM;;;uBAkC7B,MAAM;yCACY,MAAM;yCACN,MAAM;2CACJ,MAAM;4CACL,MAAM;6CACL,MAAM;wCACX,MAAM;0CACJ,MAAM;0CACN,MAAM;4CACJ,MAAM;sCACZ,MAAM;2CACD,MAAM;2CACN,MAAM;2CACN,MAAM;0CACP,MAAM;4CACJ,MAAM;2CACP,MAAM;8CACH,MAAM;2CACT,MAAM;oDACG,MAAM;8CACZ,MAAM;6CACP,MAAM;sDACG,MAAM;uCACrB,MAAM;mCACV,MAAM;qCACJ,MAAM;kCACT,MAAM;kCACN,MAAM;kCACN,MAAM;kCACN,MAAM;sCAzEF,MAAM;sCACN,MAAM;sCACN,MAAM;sCACN,MAAM;sCACN,MAAM;0CACF,MAAM;sCACV,MAAM;sCACN,MAAM;sCACN,MAAM;sCACN,MAAM;8CACE,MAAM;;CAuI3B,CAAA"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export declare const tokens: {
|
|
2
|
-
colorInteractionOnlineDefault: "hsl(123, 38%, 57%)";
|
|
3
|
-
fillColorInteractionDefaultDark: "hsl(204, 100%, 40%)";
|
|
4
|
-
fillColorStatusErrorMedium: "hsl(0, 72%, 45%)";
|
|
5
|
-
borderRadiusDefault: 4;
|
|
6
|
-
spacingFourth: 2;
|
|
7
|
-
spacingHalf: 4;
|
|
8
|
-
spacing1: 8;
|
|
9
|
-
spacing2: 16;
|
|
10
|
-
spacing3: 24;
|
|
11
|
-
spacing4: 32;
|
|
12
|
-
spacing5: 40;
|
|
13
|
-
spacing6: 48;
|
|
14
|
-
spacing7: 56;
|
|
15
|
-
borderRadiusSm: 2;
|
|
16
|
-
borderRadiusMd: 4;
|
|
17
|
-
borderRadiusLg: 8;
|
|
18
|
-
borderRadiusXl: 16;
|
|
19
|
-
borderRadiusRound: 56;
|
|
20
|
-
borderSizeDefault: 1;
|
|
21
|
-
borderSizeThick: 2;
|
|
22
|
-
fontWeightNormal: "400";
|
|
23
|
-
fontWeightMedium: "500";
|
|
24
|
-
fontWeightSemiBold: "600";
|
|
25
|
-
fontWeightBold: "700";
|
|
26
|
-
fontSize4xl: 32;
|
|
27
|
-
fontSize3xl: 28;
|
|
28
|
-
fontSize2xl: 24;
|
|
29
|
-
fontSizeXl: 20;
|
|
30
|
-
fontSizeLg: 18;
|
|
31
|
-
fontSizeMd: 16;
|
|
32
|
-
fontSizeSm: 14;
|
|
33
|
-
fontSizeXs: 12;
|
|
34
|
-
fontSize2xs: 10;
|
|
35
|
-
colorNeutral7: "hsl(0, 0%, 7%)";
|
|
36
|
-
colorNeutral12: "hsl(0, 0%, 12%)";
|
|
37
|
-
colorNeutral15: "hsl(0, 0%, 15%)";
|
|
38
|
-
colorNeutral17: "hsl(0, 0%, 17%)";
|
|
39
|
-
colorNeutral19: "hsl(0, 0%, 19%)";
|
|
40
|
-
colorNeutral24: "hsl(0, 0%, 24%)";
|
|
41
|
-
colorNeutral32: "hsl(0, 0%, 32%)";
|
|
42
|
-
colorNeutral45: "hsl(0, 0%, 45%)";
|
|
43
|
-
colorNeutral50: "hsl(0, 0%, 50%)";
|
|
44
|
-
colorNeutral58: "hsl(0, 0%, 58%)";
|
|
45
|
-
colorNeutral68: "hsl(0, 0%, 68%)";
|
|
46
|
-
colorNeutral81: "hsl(0, 0%, 81%)";
|
|
47
|
-
colorNeutral88: "hsl(0, 0%, 88%)";
|
|
48
|
-
colorNeutral93: "hsl(0, 0%, 93%)";
|
|
49
|
-
colorNeutral95: "hsl(0, 0%, 95%)";
|
|
50
|
-
colorNeutral97: "hsl(0, 0%, 97%)";
|
|
51
|
-
colorNeutral98: "hsl(0, 0%, 98%)";
|
|
52
|
-
borderColorStatusInfo: "hsl(204, 100%, 40%)";
|
|
53
|
-
borderColorStatusInfoDark: "hsl(204, 78%, 38%)";
|
|
54
|
-
borderColorStatusSuccess: "hsl(96, 57%, 33%)";
|
|
55
|
-
borderColorStatusSuccessDark: "hsl(96, 57%, 41%)";
|
|
56
|
-
borderColorStatusWarning: "hsl(42, 84%, 49%)";
|
|
57
|
-
borderColorStatusWarningDark: "hsl(42, 84%, 49%)";
|
|
58
|
-
borderColorStatusError: "hsl(8, 60%, 47%)";
|
|
59
|
-
borderColorStatusErrorDark: "hsl(8, 60%, 55%)";
|
|
60
|
-
colorNeutral100White: "hsl(0, 0%, 100%)";
|
|
61
|
-
fillColorInteractionDefault: "hsl(204, 100%, 40%)";
|
|
62
|
-
fillColorInteractionSwipeDefault: "hsl(204, 100%, 40%)";
|
|
63
|
-
fillColorInteractionSwipeSecondary: "hsl(0, 0%, 24%)";
|
|
64
|
-
fillColorStatusNeutralGhost: "hsl(0, 0%, 93%)";
|
|
65
|
-
fillColorStatusNeutralGhostDark: "hsl(0, 0%, 18%)";
|
|
66
|
-
textColorStatusNeutral: "hsl(0, 0%, 24%)";
|
|
67
|
-
textColorStatusNeutralDark: "hsl(0, 0%, 80%)";
|
|
68
|
-
iconColorStatusNeutralPrimary: "hsl(0, 0%, 45%)";
|
|
69
|
-
iconColorStatusNeutralPrimaryDark: "hsl(0, 0%, 54%)";
|
|
70
|
-
fillColorStatusErrorSolid: "hsl(8, 60%, 47%)";
|
|
71
|
-
fillColorStatusErrorSolidDark: "hsl(8, 60%, 55%)";
|
|
72
|
-
fillColorStatusErrorGhost: "hsl(9, 59%, 93%)";
|
|
73
|
-
fillColorStatusErrorGhostDark: "hsl(8, 20%, 16%)";
|
|
74
|
-
textColorStatusError: "hsl(8, 60%, 45%)";
|
|
75
|
-
textColorStatusErrorDark: "hsl(8, 61%, 61%)";
|
|
76
|
-
iconColorStatusErrorPrimary: "hsl(8, 60%, 47%)";
|
|
77
|
-
iconColorStatusErrorPrimaryDark: "hsl(8, 60%, 55%)";
|
|
78
|
-
fillColorStatusWarningSolid: "hsl(42, 84%, 49%)";
|
|
79
|
-
fillColorStatusWarningSolidDark: "hsl(42, 84%, 49%)";
|
|
80
|
-
fillColorStatusWarningGhost: "hsl(42, 87%, 94%)";
|
|
81
|
-
fillColorStatusWarningGhostDark: "hsl(41, 18%, 17%)";
|
|
82
|
-
textColorStatusWarning: "hsl(42, 100%, 29%)";
|
|
83
|
-
textColorStatusWarningDark: "hsl(42, 84%, 55%)";
|
|
84
|
-
iconColorStatusWarningPrimary: "hsl(42, 84%, 49%)";
|
|
85
|
-
iconColorStatusWarningPrimaryDark: "hsl(42, 84%, 49%)";
|
|
86
|
-
fillColorStatusSuccessSolid: "hsl(96, 57%, 33%)";
|
|
87
|
-
fillColorStatusSuccessSolidDark: "hsl(96, 57%, 41%)";
|
|
88
|
-
fillColorStatusSuccessGhost: "hsl(97, 57%, 90%)";
|
|
89
|
-
fillColorStatusSuccessGhostDark: "hsl(125, 17%, 15%)";
|
|
90
|
-
textColorStatusSuccess: "hsl(97, 57%, 28%)";
|
|
91
|
-
textColorStatusSuccessDark: "hsl(97, 57%, 41%)";
|
|
92
|
-
iconColorStatusSuccessPrimary: "hsl(96, 57%, 33%)";
|
|
93
|
-
iconColorStatusSuccessPrimaryDark: "hsl(96, 57%, 41%)";
|
|
94
|
-
fillColorStatusInfoSolid: "hsl(204, 100%, 40%)";
|
|
95
|
-
fillColorStatusInfoSolidDark: "hsl(204, 78%, 38%)";
|
|
96
|
-
fillColorStatusInfoGhost: "hsl(203, 94%, 94%)";
|
|
97
|
-
fillColorStatusInfoGhostDark: "hsl(204, 32%, 15%)";
|
|
98
|
-
textColorStatusInfo: "hsl(204, 100%, 35%)";
|
|
99
|
-
textColorStatusInfoDark: "hsl(204, 68%, 55%)";
|
|
100
|
-
iconColorStatusInfoPrimary: "hsl(204, 100%, 40%)";
|
|
101
|
-
iconColorStatusInfoPrimaryDark: "hsl(204, 78%, 38%)";
|
|
102
|
-
fillColorTransparencyLight010: "hsla(0, 0%, 100%, 0.1)";
|
|
103
|
-
fillColorTransparencyLight020: "hsla(0, 0%, 100%, 0.2)";
|
|
104
|
-
fillColorTransparencyLight030: "hsla(0, 0%, 100%, 0.3)";
|
|
105
|
-
fillColorTransparencyLight040: "hsla(0, 0%, 100%, 0.4)";
|
|
106
|
-
fillColorTransparencyLight050: "hsla(0, 0%, 100%, 0.5)";
|
|
107
|
-
fillColorTransparencyLight060: "hsla(0, 0%, 100%, 0.6)";
|
|
108
|
-
fillColorTransparencyLight070: "hsla(0, 0%, 100%, 0.7)";
|
|
109
|
-
fillColorTransparencyLight080: "hsla(0, 0%, 100%, 0.8)";
|
|
110
|
-
fillColorTransparencyLight090: "hsla(0, 0%, 100%, 0.9)";
|
|
111
|
-
fillColorTransparencyDark010: "hsla(0, 0%, 0%, 0.1)";
|
|
112
|
-
fillColorTransparencyDark020: "hsla(0, 0%, 0%, 0.2)";
|
|
113
|
-
fillColorTransparencyDark030: "hsla(0, 0%, 0%, 0.3)";
|
|
114
|
-
fillColorTransparencyDark040: "hsla(0, 0%, 0%, 0.4)";
|
|
115
|
-
fillColorTransparencyDark050: "hsla(0, 0%, 0%, 0.5)";
|
|
116
|
-
fillColorTransparencyDark060: "hsla(0, 0%, 0%, 0.6)";
|
|
117
|
-
fillColorTransparencyDark070: "hsla(0, 0%, 0%, 0.7)";
|
|
118
|
-
fillColorTransparencyDark080: "hsla(0, 0%, 0%, 0.8)";
|
|
119
|
-
fillColorTransparencyDark090: "hsla(0, 0%, 0%, 0.9)";
|
|
120
|
-
};
|
|
121
|
-
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/vendor/tapestry/tokens.ts"],"names":[],"mappings":"AAuIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { QueryClientProvider } from '@tanstack/react-query'
|
|
2
|
-
import { render, type RenderOptions } from '@testing-library/react-native'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import { buildTestQueryClient } from './query_client'
|
|
5
|
-
|
|
6
|
-
export const renderWithQueryClient = (ui: React.ReactElement, options: RenderOptions = {}) => {
|
|
7
|
-
const queryClient = buildTestQueryClient()
|
|
8
|
-
const wrapper = ({ children }: { children: React.ReactNode }) => (
|
|
9
|
-
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
return render(ui, { wrapper, ...options })
|
|
13
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
2
|
-
import { render, waitFor } from '@testing-library/react-native'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import { Image } from 'react-native'
|
|
5
|
-
import { buildTestQueryClient } from '../../../__utils__/query_client'
|
|
6
|
-
import type { AvatarUpdatePayload } from '../../../hooks/use_conversation_avatar_update'
|
|
7
|
-
import { ConversationAvatar } from '../conversation_avatar'
|
|
8
|
-
|
|
9
|
-
const conversation = {
|
|
10
|
-
id: 7,
|
|
11
|
-
customAvatarType: 'emoji' as const,
|
|
12
|
-
customAvatarKey: '🎉',
|
|
13
|
-
customAvatarColor: 'cosmic',
|
|
14
|
-
customAvatarImageUrl: null,
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const imagePayload: AvatarUpdatePayload = {
|
|
18
|
-
kind: 'image',
|
|
19
|
-
color: 'cosmic',
|
|
20
|
-
imageAsset: { uri: 'file:///photo.jpg', width: 100, height: 100 },
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
let queryClient: QueryClient
|
|
24
|
-
let inFlight: { settle: () => void; done: Promise<unknown> }[]
|
|
25
|
-
|
|
26
|
-
beforeEach(() => {
|
|
27
|
-
queryClient = buildTestQueryClient({ defaultOptions: { mutations: { gcTime: Infinity } } })
|
|
28
|
-
inFlight = []
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
afterEach(async () => {
|
|
32
|
-
inFlight.forEach(({ settle }) => settle())
|
|
33
|
-
await Promise.all(inFlight.map(({ done }) => done))
|
|
34
|
-
queryClient.clear()
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
function startAvatarUpdate(conversationId: number) {
|
|
38
|
-
let settle = () => {}
|
|
39
|
-
const upload = new Promise<void>(resolve => (settle = resolve))
|
|
40
|
-
const mutation = queryClient.getMutationCache().build(queryClient, {
|
|
41
|
-
mutationKey: ['updateConversationAvatar', conversationId],
|
|
42
|
-
mutationFn: () => upload,
|
|
43
|
-
networkMode: 'always',
|
|
44
|
-
})
|
|
45
|
-
const done = mutation.execute(imagePayload)
|
|
46
|
-
inFlight.push({ settle, done })
|
|
47
|
-
return settle
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function renderAvatar() {
|
|
51
|
-
return render(
|
|
52
|
-
<QueryClientProvider client={queryClient}>
|
|
53
|
-
<ConversationAvatar conversation={conversation} />
|
|
54
|
-
</QueryClientProvider>
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
describe('ConversationAvatar', () => {
|
|
59
|
-
it('renders the pending avatar update over the cached conversation data', () => {
|
|
60
|
-
startAvatarUpdate(conversation.id)
|
|
61
|
-
|
|
62
|
-
const view = renderAvatar()
|
|
63
|
-
|
|
64
|
-
expect(view.UNSAFE_getByType(Image).props.source).toEqual({ uri: 'file:///photo.jpg' })
|
|
65
|
-
expect(view.queryByText('🎉')).toBeNull()
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
it('ignores pending avatar updates for other conversations', () => {
|
|
69
|
-
startAvatarUpdate(conversation.id + 1)
|
|
70
|
-
|
|
71
|
-
const view = renderAvatar()
|
|
72
|
-
|
|
73
|
-
expect(view.getByText('🎉')).toBeTruthy()
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
it('returns to the cached conversation data once the update settles', async () => {
|
|
77
|
-
const settle = startAvatarUpdate(conversation.id)
|
|
78
|
-
const view = renderAvatar()
|
|
79
|
-
|
|
80
|
-
settle()
|
|
81
|
-
|
|
82
|
-
await waitFor(() => expect(view.getByText('🎉')).toBeTruthy())
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
it('ignores an older pending update once a newer one has settled', async () => {
|
|
86
|
-
startAvatarUpdate(conversation.id)
|
|
87
|
-
const settleNewer = startAvatarUpdate(conversation.id)
|
|
88
|
-
const view = renderAvatar()
|
|
89
|
-
|
|
90
|
-
settleNewer()
|
|
91
|
-
|
|
92
|
-
await waitFor(() => expect(view.getByText('🎉')).toBeTruthy())
|
|
93
|
-
})
|
|
94
|
-
})
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ResponseError } from '../../utils/response_error'
|
|
2
|
-
import { configuredRetry } from '../api_provider'
|
|
3
|
-
|
|
4
|
-
jest.mock('../../hooks/use_api_client')
|
|
5
|
-
|
|
6
|
-
const responseWithStatus = (status: number) =>
|
|
7
|
-
({
|
|
8
|
-
status,
|
|
9
|
-
statusText: 'Error',
|
|
10
|
-
ok: false,
|
|
11
|
-
url: 'https://api.pco.test/chat/v2/me',
|
|
12
|
-
headers: {},
|
|
13
|
-
clone: () => ({}),
|
|
14
|
-
json: () => Promise.resolve({}),
|
|
15
|
-
text: () => Promise.resolve(''),
|
|
16
|
-
arrayBuffer: () => Promise.resolve(new ArrayBuffer(0)),
|
|
17
|
-
errors: [],
|
|
18
|
-
}) as unknown as Response
|
|
19
|
-
|
|
20
|
-
describe('configuredRetry', () => {
|
|
21
|
-
it('does not retry client errors', () => {
|
|
22
|
-
;[400, 404, 414, 422, 429].forEach(status => {
|
|
23
|
-
expect(configuredRetry(0, new ResponseError(responseWithStatus(status) as any))).toBe(false)
|
|
24
|
-
expect(configuredRetry(0, responseWithStatus(status))).toBe(false)
|
|
25
|
-
})
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
it('retries server errors up to three times', () => {
|
|
29
|
-
const error = new ResponseError(responseWithStatus(503) as any)
|
|
30
|
-
|
|
31
|
-
expect(configuredRetry(0, error)).toBe(true)
|
|
32
|
-
expect(configuredRetry(2, error)).toBe(true)
|
|
33
|
-
expect(configuredRetry(3, error)).toBe(false)
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
it('retries network failures', () => {
|
|
37
|
-
expect(configuredRetry(0, new TypeError('Network request failed'))).toBe(true)
|
|
38
|
-
})
|
|
39
|
-
})
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { QueryClientProvider } from '@tanstack/react-query'
|
|
2
|
-
import { act, renderHook } from '@testing-library/react-native'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import { buildTestQueryClient } from '../../__utils__/query_client'
|
|
5
|
-
import { useConversationAvatarUpdate } from '../use_conversation_avatar_update'
|
|
6
|
-
|
|
7
|
-
const mockPatch = jest.fn().mockResolvedValue({ data: { id: 7 } })
|
|
8
|
-
let finishUpload = () => {}
|
|
9
|
-
jest.mock('../use_api_client', () => ({ useApiClient: () => ({ chat: { patch: mockPatch } }) }))
|
|
10
|
-
jest.mock('../use_upload_client', () => ({
|
|
11
|
-
useUploadClient: () => ({
|
|
12
|
-
uploadFile: () => new Promise(resolve => (finishUpload = () => resolve({ id: 'upload-1' }))),
|
|
13
|
-
}),
|
|
14
|
-
}))
|
|
15
|
-
|
|
16
|
-
describe('useConversationAvatarUpdate', () => {
|
|
17
|
-
it('saves only the newest pick when an icon is chosen during a photo upload', async () => {
|
|
18
|
-
const queryClient = buildTestQueryClient({
|
|
19
|
-
defaultOptions: { mutations: { gcTime: Infinity } },
|
|
20
|
-
})
|
|
21
|
-
const wrapper = ({ children }: { children: React.ReactNode }) => (
|
|
22
|
-
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
|
23
|
-
)
|
|
24
|
-
const { result } = renderHook(() => useConversationAvatarUpdate({ conversationId: 7 }), {
|
|
25
|
-
wrapper,
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
const photoSave = result.current.mutateAsync({
|
|
29
|
-
kind: 'image',
|
|
30
|
-
color: 'cosmic',
|
|
31
|
-
imageAsset: { uri: 'file:///photo.jpg', width: 100, height: 100 },
|
|
32
|
-
})
|
|
33
|
-
await act(() => result.current.mutateAsync({ kind: 'icon', key: 'star', color: 'cosmic' }))
|
|
34
|
-
finishUpload()
|
|
35
|
-
await act(() => photoSave)
|
|
36
|
-
|
|
37
|
-
expect(mockPatch).toHaveBeenCalledTimes(1)
|
|
38
|
-
expect(mockPatch.mock.calls[0][0].data.data.attributes.custom_avatar_type).toBe('icon')
|
|
39
|
-
})
|
|
40
|
-
})
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { notifyManager, QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
2
|
-
import { act, renderHook, waitFor } from '@testing-library/react-native'
|
|
3
|
-
import React, { Suspense } from 'react'
|
|
4
|
-
import { MEMBERS_PER_REQUEST, useSystemMessagePeople } from '../use_system_message_people'
|
|
5
|
-
|
|
6
|
-
const mockGet = jest.fn()
|
|
7
|
-
jest.mock('../use_api_client', () => ({
|
|
8
|
-
useApiClient: () => ({ chat: { get: mockGet } }),
|
|
9
|
-
}))
|
|
10
|
-
|
|
11
|
-
notifyManager.setNotifyFunction(fn => act(fn))
|
|
12
|
-
|
|
13
|
-
const conversationId = 7
|
|
14
|
-
|
|
15
|
-
const member = (id: number) => ({ type: 'Member', id, name: `Person ${id}`, avatar: '' })
|
|
16
|
-
|
|
17
|
-
const membersPage = (ids: number[]) => ({
|
|
18
|
-
data: ids.map(member),
|
|
19
|
-
links: {},
|
|
20
|
-
meta: { count: ids.length, totalCount: ids.length },
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
const requestedIds = () => mockGet.mock.calls.map(([request]) => request.data.where.id as number[])
|
|
24
|
-
|
|
25
|
-
const render = (personIds: number[]) => {
|
|
26
|
-
const queryClient = new QueryClient({
|
|
27
|
-
defaultOptions: { queries: { retry: false, gcTime: 0 } },
|
|
28
|
-
})
|
|
29
|
-
const wrapper = ({ children }: { children: React.ReactNode }) => (
|
|
30
|
-
<QueryClientProvider client={queryClient}>
|
|
31
|
-
<Suspense fallback={null}>{children}</Suspense>
|
|
32
|
-
</QueryClientProvider>
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
return renderHook(() => useSystemMessagePeople({ conversationId, personIds }), { wrapper })
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
beforeEach(() => {
|
|
39
|
-
mockGet.mockReset()
|
|
40
|
-
mockGet.mockImplementation(({ data }) =>
|
|
41
|
-
Promise.resolve(membersPage([...(data.where.id as number[])].reverse()))
|
|
42
|
-
)
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
describe('useSystemMessagePeople', () => {
|
|
46
|
-
it('requests members in batches no larger than a page', async () => {
|
|
47
|
-
const personIds = Array.from({ length: 250 }, (_, i) => i + 1)
|
|
48
|
-
|
|
49
|
-
render(personIds)
|
|
50
|
-
|
|
51
|
-
await waitFor(() => expect(mockGet).toHaveBeenCalledTimes(3))
|
|
52
|
-
|
|
53
|
-
expect(requestedIds().map(ids => ids.length)).toEqual([100, 100, 50])
|
|
54
|
-
expect(requestedIds().flat()).toEqual(personIds)
|
|
55
|
-
mockGet.mock.calls.forEach(([request]) => {
|
|
56
|
-
expect(request.url).toEqual(`/me/conversations/${conversationId}/members`)
|
|
57
|
-
expect(request.data.perPage).toEqual(MEMBERS_PER_REQUEST)
|
|
58
|
-
})
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
it('returns everyone in the order of the system message', async () => {
|
|
62
|
-
const personIds = Array.from({ length: 150 }, (_, i) => 1000 - i)
|
|
63
|
-
|
|
64
|
-
const { result } = render(personIds)
|
|
65
|
-
|
|
66
|
-
await waitFor(() => expect(result.current?.data).toHaveLength(150))
|
|
67
|
-
|
|
68
|
-
expect(result.current.data.map(({ id }) => id)).toEqual(personIds)
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
it('makes a single request for a small list', async () => {
|
|
72
|
-
const { result } = render([3, 1, 2])
|
|
73
|
-
|
|
74
|
-
await waitFor(() => expect(result.current?.data).toHaveLength(3))
|
|
75
|
-
|
|
76
|
-
expect(mockGet).toHaveBeenCalledTimes(1)
|
|
77
|
-
expect(result.current.data.map(({ id }) => id)).toEqual([3, 1, 2])
|
|
78
|
-
})
|
|
79
|
-
})
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { useSuspenseQueries } from '@tanstack/react-query'
|
|
2
|
-
import { chunk, sortBy } from 'lodash'
|
|
3
|
-
import { ApiCollection, MemberResource } from '../types'
|
|
4
|
-
import { GetRequest } from '../utils/client'
|
|
5
|
-
import { throwResponseError } from '../utils/response_error'
|
|
6
|
-
import { useApiClient } from './use_api_client'
|
|
7
|
-
import { getRequestQueryKey } from './use_suspense_api'
|
|
8
|
-
|
|
9
|
-
export const MEMBERS_PER_REQUEST = 100
|
|
10
|
-
|
|
11
|
-
type SystemMessagePeopleArgs = {
|
|
12
|
-
conversationId: number
|
|
13
|
-
personIds: number[]
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type SystemMessagePerson = Pick<MemberResource, 'type' | 'id' | 'name' | 'avatar'>
|
|
17
|
-
|
|
18
|
-
export const systemMessagePeopleRequest = (
|
|
19
|
-
conversationId: number,
|
|
20
|
-
personIds: number[]
|
|
21
|
-
): GetRequest => ({
|
|
22
|
-
url: `/me/conversations/${conversationId}/members`,
|
|
23
|
-
data: {
|
|
24
|
-
fields: {
|
|
25
|
-
Member: ['id', 'name', 'avatar'],
|
|
26
|
-
},
|
|
27
|
-
where: {
|
|
28
|
-
id: personIds,
|
|
29
|
-
},
|
|
30
|
-
perPage: MEMBERS_PER_REQUEST,
|
|
31
|
-
},
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
export const useSystemMessagePeople = ({ conversationId, personIds }: SystemMessagePeopleArgs) => {
|
|
35
|
-
const apiClient = useApiClient()
|
|
36
|
-
const requests = chunk(personIds, MEMBERS_PER_REQUEST).map(ids =>
|
|
37
|
-
systemMessagePeopleRequest(conversationId, ids)
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
const queries = useSuspenseQueries({
|
|
41
|
-
queries: requests.map(request => ({
|
|
42
|
-
queryKey: getRequestQueryKey(request),
|
|
43
|
-
queryFn: (): Promise<ApiCollection<SystemMessagePerson>> =>
|
|
44
|
-
apiClient.chat.get<ApiCollection<SystemMessagePerson>>(request).catch(throwResponseError),
|
|
45
|
-
})),
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
const orderById = Object.fromEntries(personIds.map((id, index) => [id, index]))
|
|
49
|
-
const people = sortBy(
|
|
50
|
-
queries.flatMap(query => query.data.data),
|
|
51
|
-
person => orderById[person.id] ?? personIds.length
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
return { data: people }
|
|
55
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { StaticParamList } from '@react-navigation/native'
|
|
2
|
-
import type { PageErrorFallback } from '../components/page/page_error_boundary'
|
|
3
|
-
import type { NewConversationStack } from './index'
|
|
4
|
-
|
|
5
|
-
type RouteName =
|
|
6
|
-
| keyof ReactNavigation.RootParamList
|
|
7
|
-
| keyof StaticParamList<typeof NewConversationStack>
|
|
8
|
-
|
|
9
|
-
export const PAGE_ERROR_FALLBACKS: Partial<Record<RouteName, PageErrorFallback>> = {
|
|
10
|
-
ConversationSelectDirectMessageRecipients: {
|
|
11
|
-
heading: "Couldn't load people right now",
|
|
12
|
-
body: 'Try again.',
|
|
13
|
-
},
|
|
14
|
-
}
|