@planningcenter/chat-react-native 4.5.1-qa-1062.0 → 4.5.1-qa-staging.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/conversation/attachments/attachment_card.d.ts +9 -0
- package/build/components/conversation/attachments/attachment_card.d.ts.map +1 -0
- package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts +2 -0
- package/build/components/conversation/attachments/attachment_deleting_overlay.d.ts.map +1 -0
- package/build/components/conversation/attachments/audio_attachment.d.ts +7 -0
- package/build/components/conversation/attachments/audio_attachment.d.ts.map +1 -0
- package/build/components/conversation/attachments/constants.d.ts +3 -0
- package/build/components/conversation/attachments/constants.d.ts.map +1 -0
- package/build/components/conversation/attachments/expanded_link.d.ts +6 -0
- package/build/components/conversation/attachments/expanded_link.d.ts.map +1 -0
- package/build/components/conversation/attachments/generic_file_attachment.d.ts +7 -0
- package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +1 -0
- package/build/components/conversation/attachments/giphy_attachment.d.ts +6 -0
- package/build/components/conversation/attachments/giphy_attachment.d.ts.map +1 -0
- package/build/components/conversation/attachments/image_attachment.d.ts +14 -0
- package/build/components/conversation/attachments/image_attachment.d.ts.map +1 -0
- package/build/components/conversation/attachments/video_attachment.d.ts +7 -0
- package/build/components/conversation/attachments/video_attachment.d.ts.map +1 -0
- package/build/components/conversation/conversation_start_banner.d.ts +9 -0
- package/build/components/conversation/conversation_start_banner.d.ts.map +1 -0
- package/build/components/conversation/empty_conversation_blank_state.d.ts +2 -0
- package/build/components/conversation/empty_conversation_blank_state.d.ts.map +1 -0
- package/build/components/conversation/jump_to_bottom_button.d.ts +7 -0
- package/build/components/conversation/jump_to_bottom_button.d.ts.map +1 -0
- package/build/components/conversation/message.d.ts +17 -0
- package/build/components/conversation/message.d.ts.map +1 -0
- package/build/components/conversation/message_attachments.d.ts +9 -0
- package/build/components/conversation/message_attachments.d.ts.map +1 -0
- package/build/components/conversation/message_form/message_form_attachment_file.d.ts +10 -0
- package/build/components/conversation/message_form/message_form_attachment_file.d.ts.map +1 -0
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts +12 -0
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts.map +1 -0
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts +9 -0
- package/build/components/conversation/message_form/message_form_attachment_video.d.ts.map +1 -0
- package/build/components/conversation/message_form.d.ts +24 -0
- package/build/components/conversation/message_form.d.ts.map +1 -0
- package/build/components/conversation/message_list.d.ts +24 -0
- package/build/components/conversation/message_list.d.ts.map +1 -0
- package/build/components/conversation/message_list.js +155 -123
- package/build/components/conversation/message_list.js.map +1 -1
- package/build/components/conversation/message_markdown.d.ts +6 -0
- package/build/components/conversation/message_markdown.d.ts.map +1 -0
- package/build/components/conversation/message_reaction.d.ts +34 -0
- package/build/components/conversation/message_reaction.d.ts.map +1 -0
- package/build/components/conversation/message_read_receipts.d.ts +6 -0
- package/build/components/conversation/message_read_receipts.d.ts.map +1 -0
- package/build/components/conversation/messages_disabled_banners.d.ts +14 -0
- package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -0
- package/build/components/conversation/missing_message.d.ts +2 -0
- package/build/components/conversation/missing_message.d.ts.map +1 -0
- package/build/components/conversation/reply_connectors.d.ts +10 -0
- package/build/components/conversation/reply_connectors.d.ts.map +1 -0
- package/build/components/conversation/reply_shadow_message.d.ts +12 -0
- package/build/components/conversation/reply_shadow_message.d.ts.map +1 -0
- package/build/components/conversation/system_message.d.ts +9 -0
- package/build/components/conversation/system_message.d.ts.map +1 -0
- package/build/components/conversation/typing_indicator.d.ts +6 -0
- package/build/components/conversation/typing_indicator.d.ts.map +1 -0
- package/build/components/conversations/archived_results_footer.d.ts +6 -0
- package/build/components/conversations/archived_results_footer.d.ts.map +1 -0
- package/build/components/conversations/conversation_actions.d.ts +11 -0
- package/build/components/conversations/conversation_actions.d.ts.map +1 -0
- package/build/components/conversations/conversation_preview.d.ts +12 -0
- package/build/components/conversations/conversation_preview.d.ts.map +1 -0
- package/build/components/conversations/conversations.d.ts +7 -0
- package/build/components/conversations/conversations.d.ts.map +1 -0
- package/build/components/conversations/conversations.js +1 -0
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/conversations/conversations_blank_state.d.ts +7 -0
- package/build/components/conversations/conversations_blank_state.d.ts.map +1 -0
- package/build/components/conversations/filtered_results_footer.d.ts +2 -0
- package/build/components/conversations/filtered_results_footer.d.ts.map +1 -0
- package/build/components/conversations/mute_indicator.d.ts +4 -0
- package/build/components/conversations/mute_indicator.d.ts.map +1 -0
- package/build/components/conversations/swipeable_toggle_button.d.ts +20 -0
- package/build/components/conversations/swipeable_toggle_button.d.ts.map +1 -0
- package/build/components/conversations/unread_count_badge.d.ts +6 -0
- package/build/components/conversations/unread_count_badge.d.ts.map +1 -0
- package/build/components/display/action_button.d.ts +15 -0
- package/build/components/display/action_button.d.ts.map +1 -0
- package/build/components/display/adult_requirement_notice.d.ts +7 -0
- package/build/components/display/adult_requirement_notice.d.ts.map +1 -0
- package/build/components/display/avatar.d.ts +15 -0
- package/build/components/display/avatar.d.ts.map +1 -0
- package/build/components/display/avatar_group.d.ts +14 -0
- package/build/components/display/avatar_group.d.ts.map +1 -0
- package/build/components/display/badge.d.ts +55 -0
- package/build/components/display/badge.d.ts.map +1 -0
- package/build/components/display/banner.d.ts +38 -0
- package/build/components/display/banner.d.ts.map +1 -0
- package/build/components/display/banner_collapsible.d.ts +11 -0
- package/build/components/display/banner_collapsible.d.ts.map +1 -0
- package/build/components/display/button.d.ts +67 -0
- package/build/components/display/button.d.ts.map +1 -0
- package/build/components/display/child_notice.d.ts +10 -0
- package/build/components/display/child_notice.d.ts.map +1 -0
- package/build/components/display/conversation_avatar.d.ts +17 -0
- package/build/components/display/conversation_avatar.d.ts.map +1 -0
- package/build/components/display/conversation_avatar.js +77 -66
- package/build/components/display/conversation_avatar.js.map +1 -1
- package/build/components/display/emoji_avatar.d.ts +11 -0
- package/build/components/display/emoji_avatar.d.ts.map +1 -0
- package/build/components/display/file_attachment_preview.d.ts +11 -0
- package/build/components/display/file_attachment_preview.d.ts.map +1 -0
- package/build/components/display/filter_dropdown.d.ts +36 -0
- package/build/components/display/filter_dropdown.d.ts.map +1 -0
- package/build/components/display/heading.d.ts +10 -0
- package/build/components/display/heading.d.ts.map +1 -0
- package/build/components/display/icon.d.ts +64 -0
- package/build/components/display/icon.d.ts.map +1 -0
- package/build/components/display/icon_avatar.d.ts +11 -0
- package/build/components/display/icon_avatar.d.ts.map +1 -0
- package/build/components/display/icon_button.d.ts +56 -0
- package/build/components/display/icon_button.d.ts.map +1 -0
- package/build/components/display/icon_tile.d.ts +13 -0
- package/build/components/display/icon_tile.d.ts.map +1 -0
- package/build/components/display/image.d.ts +39 -0
- package/build/components/display/image.d.ts.map +1 -0
- package/build/components/display/image.js +47 -44
- package/build/components/display/image.js.map +1 -1
- package/build/components/display/image_attachment_preview.d.ts +13 -0
- package/build/components/display/image_attachment_preview.d.ts.map +1 -0
- package/build/components/display/index.d.ts +34 -0
- package/build/components/display/index.d.ts.map +1 -0
- package/build/components/display/keyboard_scroll_view.d.ts +5 -0
- package/build/components/display/keyboard_scroll_view.d.ts.map +1 -0
- package/build/components/display/keyboard_scroll_view.js +1 -0
- package/build/components/display/keyboard_scroll_view.js.map +1 -1
- package/build/components/display/keyboard_view.d.ts +5 -0
- package/build/components/display/keyboard_view.d.ts.map +1 -0
- package/build/components/display/person.d.ts +9 -0
- package/build/components/display/person.d.ts.map +1 -0
- package/build/components/display/platform_modal_header_buttons.d.ts +61 -0
- package/build/components/display/platform_modal_header_buttons.d.ts.map +1 -0
- package/build/components/display/popover_menu_view.d.ts +8 -0
- package/build/components/display/popover_menu_view.d.ts.map +1 -0
- package/build/components/display/pressable_row.d.ts +14 -0
- package/build/components/display/pressable_row.d.ts.map +1 -0
- package/build/components/display/spinner.d.ts +22 -0
- package/build/components/display/spinner.d.ts.map +1 -0
- package/build/components/display/switch.d.ts +3 -0
- package/build/components/display/switch.d.ts.map +1 -0
- package/build/components/display/tabs.d.ts +17 -0
- package/build/components/display/tabs.d.ts.map +1 -0
- package/build/components/display/text.d.ts +25 -0
- package/build/components/display/text.d.ts.map +1 -0
- package/build/components/display/text_button.d.ts +39 -0
- package/build/components/display/text_button.d.ts.map +1 -0
- package/build/components/display/text_inline_button.d.ts +11 -0
- package/build/components/display/text_inline_button.d.ts.map +1 -0
- package/build/components/display/text_input.d.ts +8 -0
- package/build/components/display/text_input.d.ts.map +1 -0
- package/build/components/display/toggle_button.d.ts +55 -0
- package/build/components/display/toggle_button.d.ts.map +1 -0
- package/build/components/display/utils/avatar_gradient_colors.d.ts +17 -0
- package/build/components/display/utils/avatar_gradient_colors.d.ts.map +1 -0
- package/build/components/display/utils/button_colors.d.ts +39 -0
- package/build/components/display/utils/button_colors.d.ts.map +1 -0
- package/build/components/display/utils/status_colors.d.ts +17 -0
- package/build/components/display/utils/status_colors.d.ts.map +1 -0
- package/build/components/display/version_footer.d.ts +2 -0
- package/build/components/display/version_footer.d.ts.map +1 -0
- package/build/components/display/video_attachment_preview.d.ts +11 -0
- package/build/components/display/video_attachment_preview.d.ts.map +1 -0
- package/build/components/group_conversation_list.d.ts +23 -0
- package/build/components/group_conversation_list.d.ts.map +1 -0
- package/build/components/index.d.ts +7 -0
- package/build/components/index.d.ts.map +1 -0
- package/build/components/page/component_error_boundary.d.ts +4 -0
- package/build/components/page/component_error_boundary.d.ts.map +1 -0
- package/build/components/page/error_boundary.d.ts +20 -0
- package/build/components/page/error_boundary.d.ts.map +1 -0
- package/build/components/page/loading.d.ts +2 -0
- package/build/components/page/loading.d.ts.map +1 -0
- package/build/components/page/page_error_boundary.d.ts +12 -0
- package/build/components/page/page_error_boundary.d.ts.map +1 -0
- package/build/components/page/page_error_boundary.js +56 -31
- package/build/components/page/page_error_boundary.js.map +1 -1
- package/build/components/primitive/avatar_primitive.d.ts +51 -0
- package/build/components/primitive/avatar_primitive.d.ts.map +1 -0
- package/build/components/primitive/banner_primitive.d.ts +48 -0
- package/build/components/primitive/banner_primitive.d.ts.map +1 -0
- package/build/components/primitive/blank_state_primitive.d.ts +41 -0
- package/build/components/primitive/blank_state_primitive.d.ts.map +1 -0
- package/build/components/primitive/form_sheet.d.ts +75 -0
- package/build/components/primitive/form_sheet.d.ts.map +1 -0
- package/build/components/safe_area_modal.d.ts +7 -0
- package/build/components/safe_area_modal.d.ts.map +1 -0
- package/build/contexts/api_provider.d.ts +7 -0
- package/build/contexts/api_provider.d.ts.map +1 -0
- package/build/contexts/api_provider.js +11 -5
- package/build/contexts/api_provider.js.map +1 -1
- package/build/contexts/chat_context.d.ts +37 -0
- package/build/contexts/chat_context.d.ts.map +1 -0
- package/build/contexts/conversation_context.d.ts +13 -0
- package/build/contexts/conversation_context.d.ts.map +1 -0
- package/build/contexts/conversations_context.d.ts +16 -0
- package/build/contexts/conversations_context.d.ts.map +1 -0
- package/build/contexts/session_context.d.ts +44 -0
- package/build/contexts/session_context.d.ts.map +1 -0
- package/build/hooks/attachments/fallback_chat_configuration.d.ts +5 -0
- package/build/hooks/attachments/fallback_chat_configuration.d.ts.map +1 -0
- package/build/hooks/direct_messages/find_direct_message_conversation.d.ts +14 -0
- package/build/hooks/direct_messages/find_direct_message_conversation.d.ts.map +1 -0
- package/build/hooks/direct_messages/resolve_message_available_members_link.d.ts +16 -0
- package/build/hooks/direct_messages/resolve_message_available_members_link.d.ts.map +1 -0
- package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts +6 -0
- package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts.map +1 -0
- package/build/hooks/direct_messages/use_direct_message_candidates.d.ts +4 -0
- package/build/hooks/direct_messages/use_direct_message_candidates.d.ts.map +1 -0
- package/build/hooks/direct_messages/use_direct_message_conversation_validate.d.ts +11 -0
- package/build/hooks/direct_messages/use_direct_message_conversation_validate.d.ts.map +1 -0
- package/build/hooks/direct_messages/use_find_or_create_direct_message_conversation.d.ts +13 -0
- package/build/hooks/direct_messages/use_find_or_create_direct_message_conversation.d.ts.map +1 -0
- package/build/hooks/direct_messages/use_message_available_members.d.ts +6 -0
- package/build/hooks/direct_messages/use_message_available_members.d.ts.map +1 -0
- package/build/hooks/direct_messages/use_message_available_members_action.d.ts +6 -0
- package/build/hooks/direct_messages/use_message_available_members_action.d.ts.map +1 -0
- package/build/hooks/groups/use_group_chat_conversation_payload.d.ts +168 -0
- package/build/hooks/groups/use_group_chat_conversation_payload.d.ts.map +1 -0
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +232 -0
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -0
- package/build/hooks/groups/use_groups_conversation_create.d.ts +10 -0
- package/build/hooks/groups/use_groups_conversation_create.d.ts.map +1 -0
- package/build/hooks/index.d.ts +34 -0
- package/build/hooks/index.d.ts.map +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/paginator_meta.d.ts +4 -0
- package/build/hooks/paginator_meta.d.ts.map +1 -0
- package/build/hooks/services/use_find_or_create_services_conversation.d.ts +138 -0
- package/build/hooks/services/use_find_or_create_services_conversation.d.ts.map +1 -0
- package/build/hooks/services/use_services_chat_conversation_payload.d.ts +164 -0
- package/build/hooks/services/use_services_chat_conversation_payload.d.ts.map +1 -0
- package/build/hooks/services/use_services_team.d.ts +4 -0
- package/build/hooks/services/use_services_team.d.ts.map +1 -0
- package/build/hooks/services/use_team_members_for_new_conversation.d.ts +176 -0
- package/build/hooks/services/use_team_members_for_new_conversation.d.ts.map +1 -0
- package/build/hooks/services/use_team_plans.d.ts +17 -0
- package/build/hooks/services/use_team_plans.d.ts.map +1 -0
- package/build/hooks/use_animated_message_background_color.d.ts +9 -0
- package/build/hooks/use_animated_message_background_color.d.ts.map +1 -0
- package/build/hooks/use_api.d.ts +391 -0
- package/build/hooks/use_api.d.ts.map +1 -0
- package/build/hooks/use_api_client.d.ts +7 -0
- package/build/hooks/use_api_client.d.ts.map +1 -0
- package/build/hooks/use_app_name.d.ts +3 -0
- package/build/hooks/use_app_name.d.ts.map +1 -0
- package/build/hooks/use_app_state.d.ts +2 -0
- package/build/hooks/use_app_state.d.ts.map +1 -0
- package/build/hooks/use_async_storage.d.ts +4 -0
- package/build/hooks/use_async_storage.d.ts.map +1 -0
- package/build/hooks/use_at_font_scale_breakpoint.d.ts +2 -0
- package/build/hooks/use_at_font_scale_breakpoint.d.ts.map +1 -0
- package/build/hooks/use_attachment_uploader.d.ts +22 -0
- package/build/hooks/use_attachment_uploader.d.ts.map +1 -0
- package/build/hooks/use_broadcast_typing_status.d.ts +9 -0
- package/build/hooks/use_broadcast_typing_status.d.ts.map +1 -0
- package/build/hooks/use_can_browse_archived_conversations.d.ts +2 -0
- package/build/hooks/use_can_browse_archived_conversations.d.ts.map +1 -0
- package/build/hooks/use_chat_configuration.d.ts +7 -0
- package/build/hooks/use_chat_configuration.d.ts.map +1 -0
- package/build/hooks/use_chat_permissions.d.ts +190 -0
- package/build/hooks/use_chat_permissions.d.ts.map +1 -0
- package/build/hooks/use_clear_conversation_filters.d.ts +2 -0
- package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -0
- package/build/hooks/use_conversation.d.ts +275 -0
- package/build/hooks/use_conversation.d.ts.map +1 -0
- package/build/hooks/use_conversation_avatar_update.d.ts +27 -0
- package/build/hooks/use_conversation_avatar_update.d.ts.map +1 -0
- package/build/hooks/use_conversation_avatar_update.js +146 -48
- package/build/hooks/use_conversation_avatar_update.js.map +1 -1
- package/build/hooks/use_conversation_jolt_events.d.ts +6 -0
- package/build/hooks/use_conversation_jolt_events.d.ts.map +1 -0
- package/build/hooks/use_conversation_membership.d.ts +5 -0
- package/build/hooks/use_conversation_membership.d.ts.map +1 -0
- package/build/hooks/use_conversation_message.d.ts +12 -0
- package/build/hooks/use_conversation_message.d.ts.map +1 -0
- package/build/hooks/use_conversation_messages.d.ts +23 -0
- package/build/hooks/use_conversation_messages.d.ts.map +1 -0
- package/build/hooks/use_conversation_messages_jolt_events.d.ts +6 -0
- package/build/hooks/use_conversation_messages_jolt_events.d.ts.map +1 -0
- package/build/hooks/use_conversation_validate.d.ts +12 -0
- package/build/hooks/use_conversation_validate.d.ts.map +1 -0
- package/build/hooks/use_conversations.d.ts +12 -0
- package/build/hooks/use_conversations.d.ts.map +1 -0
- package/build/hooks/use_conversations_actions.d.ts +221 -0
- package/build/hooks/use_conversations_actions.d.ts.map +1 -0
- package/build/hooks/use_conversations_cache.d.ts +20 -0
- package/build/hooks/use_conversations_cache.d.ts.map +1 -0
- package/build/hooks/use_conversations_jolt_events.d.ts +2 -0
- package/build/hooks/use_conversations_jolt_events.d.ts.map +1 -0
- package/build/hooks/use_create_android_ripple_color.d.ts +4 -0
- package/build/hooks/use_create_android_ripple_color.d.ts.map +1 -0
- package/build/hooks/use_current_person.d.ts +18 -0
- package/build/hooks/use_current_person.d.ts.map +1 -0
- package/build/hooks/use_debounced_search_term.d.ts +2 -0
- package/build/hooks/use_debounced_search_term.d.ts.map +1 -0
- package/build/hooks/use_deleting_ids.d.ts +4 -0
- package/build/hooks/use_deleting_ids.d.ts.map +1 -0
- package/build/hooks/use_direct_message_eligibility.d.ts +14 -0
- package/build/hooks/use_direct_message_eligibility.d.ts.map +1 -0
- package/build/hooks/use_direct_messages_eligible.d.ts +2 -0
- package/build/hooks/use_direct_messages_eligible.d.ts.map +1 -0
- package/build/hooks/use_enrich_people.d.ts +13 -0
- package/build/hooks/use_enrich_people.d.ts.map +1 -0
- package/build/hooks/use_features.d.ts +38 -0
- package/build/hooks/use_features.d.ts.map +1 -0
- package/build/hooks/use_filter_dropdown_enabled.d.ts +2 -0
- package/build/hooks/use_filter_dropdown_enabled.d.ts.map +1 -0
- package/build/hooks/use_font_scale.d.ts +5 -0
- package/build/hooks/use_font_scale.d.ts.map +1 -0
- package/build/hooks/use_giphy.d.ts +9 -0
- package/build/hooks/use_giphy.d.ts.map +1 -0
- package/build/hooks/use_groups.d.ts +214 -0
- package/build/hooks/use_groups.d.ts.map +1 -0
- package/build/hooks/use_groups_groups.d.ts +208 -0
- package/build/hooks/use_groups_groups.d.ts.map +1 -0
- package/build/hooks/use_has_direct_messages.d.ts +2 -0
- package/build/hooks/use_has_direct_messages.d.ts.map +1 -0
- package/build/hooks/use_interaction_tinted_background_color.d.ts +2 -0
- package/build/hooks/use_interaction_tinted_background_color.d.ts.map +1 -0
- package/build/hooks/use_jolt.d.ts +11 -0
- package/build/hooks/use_jolt.d.ts.map +1 -0
- package/build/hooks/use_live_relative_time.d.ts +3 -0
- package/build/hooks/use_live_relative_time.d.ts.map +1 -0
- package/build/hooks/use_manual_archiving_enabled.d.ts +2 -0
- package/build/hooks/use_manual_archiving_enabled.d.ts.map +1 -0
- package/build/hooks/use_mark_latest_message_read.d.ts +9 -0
- package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -0
- package/build/hooks/use_message_create_or_update.d.ts +110 -0
- package/build/hooks/use_message_create_or_update.d.ts.map +1 -0
- package/build/hooks/use_message_draft.d.ts +13 -0
- package/build/hooks/use_message_draft.d.ts.map +1 -0
- package/build/hooks/use_message_reaction_toggle.d.ts +21 -0
- package/build/hooks/use_message_reaction_toggle.d.ts.map +1 -0
- package/build/hooks/use_my_gender.d.ts +7 -0
- package/build/hooks/use_my_gender.d.ts.map +1 -0
- package/build/hooks/use_new_conversation_entry.d.ts +8 -0
- package/build/hooks/use_new_conversation_entry.d.ts.map +1 -0
- package/build/hooks/use_new_conversation_from_filter.d.ts +12 -0
- package/build/hooks/use_new_conversation_from_filter.d.ts.map +1 -0
- package/build/hooks/use_organization.d.ts +39 -0
- package/build/hooks/use_organization.d.ts.map +1 -0
- package/build/hooks/use_people_person.d.ts +18 -0
- package/build/hooks/use_people_person.d.ts.map +1 -0
- package/build/hooks/use_person_settings.d.ts +6 -0
- package/build/hooks/use_person_settings.d.ts.map +1 -0
- package/build/hooks/use_preview_avatar_diameter.d.ts +2 -0
- package/build/hooks/use_preview_avatar_diameter.d.ts.map +1 -0
- package/build/hooks/use_product_analytics.d.ts +24 -0
- package/build/hooks/use_product_analytics.d.ts.map +1 -0
- package/build/hooks/use_qualified_by_age.d.ts +2 -0
- package/build/hooks/use_qualified_by_age.d.ts.map +1 -0
- package/build/hooks/use_read_receipts.d.ts +40 -0
- package/build/hooks/use_read_receipts.d.ts.map +1 -0
- package/build/hooks/use_reduce_motion.d.ts +2 -0
- package/build/hooks/use_reduce_motion.d.ts.map +1 -0
- package/build/hooks/use_report_bug_action.d.ts +6 -0
- package/build/hooks/use_report_bug_action.d.ts.map +1 -0
- package/build/hooks/use_report_message.d.ts +6 -0
- package/build/hooks/use_report_message.d.ts.map +1 -0
- package/build/hooks/use_rest_away_from_dismiss_edge.d.ts +19 -0
- package/build/hooks/use_rest_away_from_dismiss_edge.d.ts.map +1 -0
- package/build/hooks/use_scalable_number_of_lines.d.ts +2 -0
- package/build/hooks/use_scalable_number_of_lines.d.ts.map +1 -0
- package/build/hooks/use_search_enabled.d.ts +2 -0
- package/build/hooks/use_search_enabled.d.ts.map +1 -0
- package/build/hooks/use_search_results.d.ts +19 -0
- package/build/hooks/use_search_results.d.ts.map +1 -0
- package/build/hooks/use_selected_chip_background_color.d.ts +2 -0
- package/build/hooks/use_selected_chip_background_color.d.ts.map +1 -0
- package/build/hooks/use_storage.d.ts +9 -0
- package/build/hooks/use_storage.d.ts.map +1 -0
- package/build/hooks/use_submit_age_check.d.ts +78 -0
- package/build/hooks/use_submit_age_check.d.ts.map +1 -0
- package/build/hooks/use_suspense_api.d.ts +86 -0
- package/build/hooks/use_suspense_api.d.ts.map +1 -0
- package/build/hooks/use_system_message_people.d.ts +14 -0
- package/build/hooks/use_system_message_people.d.ts.map +1 -0
- package/build/hooks/use_system_message_people.js +101 -0
- package/build/hooks/use_system_message_people.js.map +1 -0
- package/build/hooks/use_teams.d.ts +207 -0
- package/build/hooks/use_teams.d.ts.map +1 -0
- package/build/hooks/use_theme.d.ts +3 -0
- package/build/hooks/use_theme.d.ts.map +1 -0
- package/build/hooks/use_typing_indicators.d.ts +13 -0
- package/build/hooks/use_typing_indicators.d.ts.map +1 -0
- package/build/hooks/use_typing_status_cache.d.ts +14 -0
- package/build/hooks/use_typing_status_cache.d.ts.map +1 -0
- package/build/hooks/use_unarchive_conversation_action.d.ts +7 -0
- package/build/hooks/use_unarchive_conversation_action.d.ts.map +1 -0
- package/build/hooks/use_upload_client.d.ts +32 -0
- package/build/hooks/use_upload_client.d.ts.map +1 -0
- package/build/hooks/use_video_moderation_jolt_events.d.ts +4 -0
- package/build/hooks/use_video_moderation_jolt_events.d.ts.map +1 -0
- package/build/icons/font_awesome.d.ts +2 -0
- package/build/icons/font_awesome.d.ts.map +1 -0
- package/build/icons/font_awesome.js +6 -6
- package/build/icons/font_awesome.js.map +1 -1
- package/build/index.d.ts +20 -0
- package/build/index.d.ts.map +1 -0
- package/build/jest.d.ts +18 -0
- package/build/jest.d.ts.map +1 -0
- package/build/navigation/chat_access_gate.d.ts +3 -0
- package/build/navigation/chat_access_gate.d.ts.map +1 -0
- package/build/navigation/index.d.ts +392 -0
- package/build/navigation/index.d.ts.map +1 -0
- package/build/navigation/index.js +3 -1
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/page_error_fallbacks.d.ts +7 -0
- package/build/navigation/page_error_fallbacks.d.ts.map +1 -0
- package/build/navigation/page_error_fallbacks.js +7 -0
- package/build/navigation/page_error_fallbacks.js.map +1 -0
- package/build/navigation/screenLayout.d.ts +8 -0
- package/build/navigation/screenLayout.d.ts.map +1 -0
- package/build/navigation/screenLayout.js +10 -6
- package/build/navigation/screenLayout.js.map +1 -1
- package/build/polyfills/events/CustomEvent.d.ts +21 -0
- package/build/polyfills/events/CustomEvent.d.ts.map +1 -0
- package/build/polyfills/events/Event.d.ts +45 -0
- package/build/polyfills/events/Event.d.ts.map +1 -0
- package/build/polyfills/events/EventHandlerAttributes.d.ts +8 -0
- package/build/polyfills/events/EventHandlerAttributes.d.ts.map +1 -0
- package/build/polyfills/events/EventTarget.d.ts +30 -0
- package/build/polyfills/events/EventTarget.d.ts.map +1 -0
- package/build/polyfills/events/internals/EventInternals.d.ts +30 -0
- package/build/polyfills/events/internals/EventInternals.d.ts.map +1 -0
- package/build/polyfills/events/internals/EventTargetInternals.d.ts +9 -0
- package/build/polyfills/events/internals/EventTargetInternals.d.ts.map +1 -0
- package/build/polyfills/webidl/PlatformObjects.d.ts +31 -0
- package/build/polyfills/webidl/PlatformObjects.d.ts.map +1 -0
- package/build/screens/age_check/age_check_required_screen.d.ts +2 -0
- package/build/screens/age_check/age_check_required_screen.d.ts.map +1 -0
- package/build/screens/age_check/age_check_required_screen.js +1 -0
- package/build/screens/age_check/age_check_required_screen.js.map +1 -1
- package/build/screens/age_check/age_check_underage_screen.d.ts +5 -0
- package/build/screens/age_check/age_check_underage_screen.d.ts.map +1 -0
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts +10 -0
- package/build/screens/age_check/components/age_check_select_birthdate_modal.d.ts.map +1 -0
- package/build/screens/age_check/index.d.ts +3 -0
- package/build/screens/age_check/index.d.ts.map +1 -0
- package/build/screens/age_check/screen_props.d.ts +5 -0
- package/build/screens/age_check/screen_props.d.ts.map +1 -0
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts +12 -0
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -0
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.d.ts +10 -0
- package/build/screens/attachment_actions/hooks/useDeleteAttachment.d.ts.map +1 -0
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts +11 -0
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts.map +1 -0
- package/build/screens/avatar_picker/avatar_picker_screen.js +76 -66
- package/build/screens/avatar_picker/avatar_picker_screen.js.map +1 -1
- package/build/screens/avatar_picker/avatar_picker_state.d.ts +38 -0
- package/build/screens/avatar_picker/avatar_picker_state.d.ts.map +1 -0
- package/build/screens/avatar_picker/avatar_preview.d.ts +9 -0
- package/build/screens/avatar_picker/avatar_preview.d.ts.map +1 -0
- package/build/screens/avatar_picker/color_picker.d.ts +8 -0
- package/build/screens/avatar_picker/color_picker.d.ts.map +1 -0
- package/build/screens/avatar_picker/constants.d.ts +3 -0
- package/build/screens/avatar_picker/constants.d.ts.map +1 -0
- package/build/screens/avatar_picker/constants.js +5 -3
- package/build/screens/avatar_picker/constants.js.map +1 -1
- package/build/screens/avatar_picker/emoji_tab.d.ts +6 -0
- package/build/screens/avatar_picker/emoji_tab.d.ts.map +1 -0
- package/build/screens/avatar_picker/icon_grid.d.ts +7 -0
- package/build/screens/avatar_picker/icon_grid.d.ts.map +1 -0
- package/build/screens/avatar_picker/upload_tab.d.ts +8 -0
- package/build/screens/avatar_picker/upload_tab.d.ts.map +1 -0
- package/build/screens/bug_report_screen.d.ts +4 -0
- package/build/screens/bug_report_screen.d.ts.map +1 -0
- package/build/screens/conversation/message_read_receipts_screen.d.ts +8 -0
- package/build/screens/conversation/message_read_receipts_screen.d.ts.map +1 -0
- package/build/screens/conversation_details_screen.d.ts +6 -0
- package/build/screens/conversation_details_screen.d.ts.map +1 -0
- package/build/screens/conversation_details_screen.js +1 -0
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +11 -0
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts +11 -0
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts +4 -0
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts +10 -0
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts +176 -0
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/types.d.ts +48 -0
- package/build/screens/conversation_filter_recipients/types.d.ts.map +1 -0
- package/build/screens/conversation_filters/components/conversation_filters.d.ts +2 -0
- package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -0
- package/build/screens/conversation_filters/components/rows.d.ts +42 -0
- package/build/screens/conversation_filters/components/rows.d.ts.map +1 -0
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts +27 -0
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -0
- package/build/screens/conversation_filters/filter_types.d.ts +9 -0
- package/build/screens/conversation_filters/filter_types.d.ts.map +1 -0
- package/build/screens/conversation_filters/group_filters.d.ts +5 -0
- package/build/screens/conversation_filters/group_filters.d.ts.map +1 -0
- package/build/screens/conversation_filters/hooks/filters.d.ts +415 -0
- package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -0
- package/build/screens/conversation_filters/screen_props.d.ts +16 -0
- package/build/screens/conversation_filters/screen_props.d.ts.map +1 -0
- package/build/screens/conversation_filters/team_filters.d.ts +5 -0
- package/build/screens/conversation_filters/team_filters.d.ts.map +1 -0
- package/build/screens/conversation_filters_screen.d.ts +5 -0
- package/build/screens/conversation_filters_screen.d.ts.map +1 -0
- package/build/screens/conversation_new/components/avatar_selection_row.d.ts +11 -0
- package/build/screens/conversation_new/components/avatar_selection_row.d.ts.map +1 -0
- package/build/screens/conversation_new/components/filter_by_plan.d.ts +22 -0
- package/build/screens/conversation_new/components/filter_by_plan.d.ts.map +1 -0
- package/build/screens/conversation_new/components/form_list.d.ts +13 -0
- package/build/screens/conversation_new/components/form_list.d.ts.map +1 -0
- package/build/screens/conversation_new/components/form_list.js +1 -0
- package/build/screens/conversation_new/components/form_list.js.map +1 -1
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts +9 -0
- package/build/screens/conversation_new/components/gender_filter_toggle.d.ts.map +1 -0
- package/build/screens/conversation_new/components/groups_form.d.ts +10 -0
- package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -0
- package/build/screens/conversation_new/components/services_form.d.ts +11 -0
- package/build/screens/conversation_new/components/services_form.d.ts.map +1 -0
- package/build/screens/conversation_new/components/source_app_error_card.d.ts +2 -0
- package/build/screens/conversation_new/components/source_app_error_card.d.ts.map +1 -0
- package/build/screens/conversation_new/conversation_new_screen.d.ts +18 -0
- package/build/screens/conversation_new/conversation_new_screen.d.ts.map +1 -0
- package/build/screens/conversation_notification_level_select_screen.d.ts +7 -0
- package/build/screens/conversation_notification_level_select_screen.d.ts.map +1 -0
- package/build/screens/conversation_screen.d.ts +28 -0
- package/build/screens/conversation_screen.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts +8 -0
- package/build/screens/conversation_select_recipients/components/groups_recipient_row.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts +11 -0
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts +7 -0
- package/build/screens/conversation_select_recipients/components/restricted_group_row.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/results_heading.d.ts +6 -0
- package/build/screens/conversation_select_recipients/components/results_heading.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts +8 -0
- package/build/screens/conversation_select_recipients/components/team_recipient_row.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts +8 -0
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts +3 -0
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/conversation_new_entry_screen.js +1 -0
- 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.d.ts +3 -0
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js +332 -291
- 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.d.ts +3 -0
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js +1 -0
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts +3 -0
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js +1 -0
- package/build/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts +11 -0
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts.map +1 -0
- package/build/screens/conversation_select_type_screen.d.ts +12 -0
- package/build/screens/conversation_select_type_screen.d.ts.map +1 -0
- package/build/screens/conversations/components/chat_group_badge.d.ts +4 -0
- package/build/screens/conversations/components/chat_group_badge.d.ts.map +1 -0
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts +2 -0
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -0
- package/build/screens/conversations/components/list_header_action_button.d.ts +19 -0
- package/build/screens/conversations/components/list_header_action_button.d.ts.map +1 -0
- package/build/screens/conversations/components/list_header_component.d.ts +2 -0
- package/build/screens/conversations/components/list_header_component.d.ts.map +1 -0
- package/build/screens/conversations/components/search_list_header_component.d.ts +2 -0
- package/build/screens/conversations/components/search_list_header_component.d.ts.map +1 -0
- package/build/screens/conversations/conversations_screen.d.ts +13 -0
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -0
- package/build/screens/design_system_screen.d.ts +2 -0
- package/build/screens/design_system_screen.d.ts.map +1 -0
- package/build/screens/design_system_screen.js +6 -3
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/screens/get_help_screen.d.ts +10 -0
- package/build/screens/get_help_screen.d.ts.map +1 -0
- package/build/screens/get_help_screen.js +56 -62
- package/build/screens/get_help_screen.js.map +1 -1
- package/build/screens/group_notification_level_select_screen.d.ts +7 -0
- package/build/screens/group_notification_level_select_screen.d.ts.map +1 -0
- package/build/screens/group_notification_settings_screen.d.ts +7 -0
- package/build/screens/group_notification_settings_screen.d.ts.map +1 -0
- package/build/screens/group_notification_settings_screen.js +3 -2
- package/build/screens/group_notification_settings_screen.js.map +1 -1
- package/build/screens/index.d.ts +25 -0
- package/build/screens/index.d.ts.map +1 -0
- package/build/screens/message_actions_screen.d.ts +12 -0
- package/build/screens/message_actions_screen.d.ts.map +1 -0
- package/build/screens/message_report/components/message_preview.d.ts +9 -0
- package/build/screens/message_report/components/message_preview.d.ts.map +1 -0
- package/build/screens/message_report/components/report_reason_list.d.ts +8 -0
- package/build/screens/message_report/components/report_reason_list.d.ts.map +1 -0
- package/build/screens/message_report_screen.d.ts +9 -0
- package/build/screens/message_report_screen.d.ts.map +1 -0
- package/build/screens/not_found.d.ts +2 -0
- package/build/screens/not_found.d.ts.map +1 -0
- package/build/screens/notification_settings/hooks/groups.d.ts +96 -0
- package/build/screens/notification_settings/hooks/groups.d.ts.map +1 -0
- package/build/screens/notification_settings_screen.d.ts +4 -0
- package/build/screens/notification_settings_screen.d.ts.map +1 -0
- package/build/screens/notification_settings_screen.js +1 -0
- package/build/screens/notification_settings_screen.js.map +1 -1
- package/build/screens/preferred_app/hooks/use_chat_types.d.ts +39 -0
- package/build/screens/preferred_app/hooks/use_chat_types.d.ts.map +1 -0
- package/build/screens/preferred_app_selection_screen.d.ts +9 -0
- package/build/screens/preferred_app_selection_screen.d.ts.map +1 -0
- package/build/screens/preferred_app_selection_screen.js +45 -39
- package/build/screens/preferred_app_selection_screen.js.map +1 -1
- package/build/screens/reactions_screen.d.ts +9 -0
- package/build/screens/reactions_screen.d.ts.map +1 -0
- package/build/screens/search/components/conversation_result_row.d.ts +8 -0
- package/build/screens/search/components/conversation_result_row.d.ts.map +1 -0
- package/build/screens/search/components/conversation_results.d.ts +8 -0
- package/build/screens/search/components/conversation_results.d.ts.map +1 -0
- package/build/screens/search/components/message_result_row.d.ts +8 -0
- package/build/screens/search/components/message_result_row.d.ts.map +1 -0
- package/build/screens/search/components/result_row.d.ts +10 -0
- package/build/screens/search/components/result_row.d.ts.map +1 -0
- package/build/screens/search/components/results_section.d.ts +9 -0
- package/build/screens/search/components/results_section.d.ts.map +1 -0
- package/build/screens/search/components/search_blank_states.d.ts +7 -0
- package/build/screens/search/components/search_blank_states.d.ts.map +1 -0
- package/build/screens/search/components/search_field.d.ts +7 -0
- package/build/screens/search/components/search_field.d.ts.map +1 -0
- package/build/screens/search/components/search_results_list.d.ts +16 -0
- package/build/screens/search/components/search_results_list.d.ts.map +1 -0
- package/build/screens/search/components/search_results_list.js +136 -110
- package/build/screens/search/components/search_results_list.js.map +1 -1
- package/build/screens/search/components/snippet.d.ts +8 -0
- package/build/screens/search/components/snippet.d.ts.map +1 -0
- package/build/screens/search/search_screen.d.ts +5 -0
- package/build/screens/search/search_screen.d.ts.map +1 -0
- package/build/screens/search/search_screen.js +21 -28
- package/build/screens/search/search_screen.js.map +1 -1
- package/build/screens/send_giphy_screen.d.ts +9 -0
- package/build/screens/send_giphy_screen.d.ts.map +1 -0
- package/build/screens/settings_screen.d.ts +4 -0
- package/build/screens/settings_screen.d.ts.map +1 -0
- package/build/screens/settings_screen.js +7 -6
- package/build/screens/settings_screen.js.map +1 -1
- package/build/screens/system_message_people_screen.d.ts +8 -0
- package/build/screens/system_message_people_screen.d.ts.map +1 -0
- package/build/screens/system_message_people_screen.js +33 -96
- package/build/screens/system_message_people_screen.js.map +1 -1
- package/build/screens/team_conversation_screen.d.ts +8 -0
- package/build/screens/team_conversation_screen.d.ts.map +1 -0
- package/build/types/api_primitives.d.ts +45 -0
- package/build/types/api_primitives.d.ts.map +1 -0
- package/build/types/index.d.ts +4 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/jolt_events/attachment_events.d.ts +14 -0
- package/build/types/jolt_events/attachment_events.d.ts.map +1 -0
- package/build/types/jolt_events/conversation_events.d.ts +42 -0
- package/build/types/jolt_events/conversation_events.d.ts.map +1 -0
- package/build/types/jolt_events/index.d.ts +14 -0
- package/build/types/jolt_events/index.d.ts.map +1 -0
- package/build/types/jolt_events/message_events.d.ts +44 -0
- package/build/types/jolt_events/message_events.d.ts.map +1 -0
- package/build/types/jolt_events/reaction_events.d.ts +27 -0
- package/build/types/jolt_events/reaction_events.d.ts.map +1 -0
- package/build/types/jolt_events/typing_events.d.ts +16 -0
- package/build/types/jolt_events/typing_events.d.ts.map +1 -0
- package/build/types/product_analytics.d.ts +6 -0
- package/build/types/product_analytics.d.ts.map +1 -0
- package/build/types/resources/analytics_metadata.d.ts +5 -0
- package/build/types/resources/analytics_metadata.d.ts.map +1 -0
- package/build/types/resources/app_grant.d.ts +8 -0
- package/build/types/resources/app_grant.d.ts.map +1 -0
- package/build/types/resources/app_name.d.ts +2 -0
- package/build/types/resources/app_name.d.ts.map +1 -0
- package/build/types/resources/chat_configuration_resource.d.ts +9 -0
- package/build/types/resources/chat_configuration_resource.d.ts.map +1 -0
- package/build/types/resources/conversation.d.ts +48 -0
- package/build/types/resources/conversation.d.ts.map +1 -0
- package/build/types/resources/conversation_badge.d.ts +12 -0
- package/build/types/resources/conversation_badge.d.ts.map +1 -0
- package/build/types/resources/conversation_membership.d.ts +16 -0
- package/build/types/resources/conversation_membership.d.ts.map +1 -0
- package/build/types/resources/conversation_validate.d.ts +10 -0
- package/build/types/resources/conversation_validate.d.ts.map +1 -0
- package/build/types/resources/denormalized_attachment_resource.d.ts +65 -0
- package/build/types/resources/denormalized_attachment_resource.d.ts.map +1 -0
- package/build/types/resources/denormalized_attachment_resource_for_create.d.ts +53 -0
- package/build/types/resources/denormalized_attachment_resource_for_create.d.ts.map +1 -0
- package/build/types/resources/direct_message_affiliations.d.ts +9 -0
- package/build/types/resources/direct_message_affiliations.d.ts.map +1 -0
- package/build/types/resources/direct_message_candidate.d.ts +13 -0
- package/build/types/resources/direct_message_candidate.d.ts.map +1 -0
- package/build/types/resources/feature_resource.d.ts +7 -0
- package/build/types/resources/feature_resource.d.ts.map +1 -0
- package/build/types/resources/group_membership.d.ts +13 -0
- package/build/types/resources/group_membership.d.ts.map +1 -0
- package/build/types/resources/group_resource.d.ts +18 -0
- package/build/types/resources/group_resource.d.ts.map +1 -0
- package/build/types/resources/groups/groups_group_resource.d.ts +15 -0
- package/build/types/resources/groups/groups_group_resource.d.ts.map +1 -0
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts +15 -0
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts.map +1 -0
- package/build/types/resources/groups/index.d.ts +2 -0
- package/build/types/resources/groups/index.d.ts.map +1 -0
- package/build/types/resources/index.d.ts +18 -0
- package/build/types/resources/index.d.ts.map +1 -0
- package/build/types/resources/member.d.ts +16 -0
- package/build/types/resources/member.d.ts.map +1 -0
- package/build/types/resources/member_ability.d.ts +12 -0
- package/build/types/resources/member_ability.d.ts.map +1 -0
- package/build/types/resources/message.d.ts +44 -0
- package/build/types/resources/message.d.ts.map +1 -0
- package/build/types/resources/message_report.d.ts +19 -0
- package/build/types/resources/message_report.d.ts.map +1 -0
- package/build/types/resources/oauth_token.d.ts +9 -0
- package/build/types/resources/oauth_token.d.ts.map +1 -0
- package/build/types/resources/organization.d.ts +8 -0
- package/build/types/resources/organization.d.ts.map +1 -0
- package/build/types/resources/person.d.ts +24 -0
- package/build/types/resources/person.d.ts.map +1 -0
- package/build/types/resources/reaction.d.ts +10 -0
- package/build/types/resources/reaction.d.ts.map +1 -0
- package/build/types/resources/read_receipt.d.ts +7 -0
- package/build/types/resources/read_receipt.d.ts.map +1 -0
- package/build/types/resources/search_result.d.ts +29 -0
- package/build/types/resources/search_result.d.ts.map +1 -0
- package/build/types/resources/services/chat_resource.d.ts +53 -0
- package/build/types/resources/services/chat_resource.d.ts.map +1 -0
- package/build/types/resources/services/index.d.ts +3 -0
- package/build/types/resources/services/index.d.ts.map +1 -0
- package/build/types/resources/services/team_resource.d.ts +19 -0
- package/build/types/resources/services/team_resource.d.ts.map +1 -0
- package/build/types/utils/index.d.ts +5 -0
- package/build/types/utils/index.d.ts.map +1 -0
- package/build/utils/archived_conversation.d.ts +5 -0
- package/build/utils/archived_conversation.d.ts.map +1 -0
- package/build/utils/assert_keys_are_numbers.d.ts +2 -0
- package/build/utils/assert_keys_are_numbers.d.ts.map +1 -0
- package/build/utils/attachment_kind.d.ts +5 -0
- package/build/utils/attachment_kind.d.ts.map +1 -0
- package/build/utils/auth_events.d.ts +7 -0
- package/build/utils/auth_events.d.ts.map +1 -0
- package/build/utils/cache/index.d.ts +2 -0
- package/build/utils/cache/index.d.ts.map +1 -0
- package/build/utils/cache/messages_cache.d.ts +13 -0
- package/build/utils/cache/messages_cache.d.ts.map +1 -0
- package/build/utils/cache/messages_window.d.ts +11 -0
- package/build/utils/cache/messages_window.d.ts.map +1 -0
- package/build/utils/cache/optimistically_create_message.d.ts +12 -0
- package/build/utils/cache/optimistically_create_message.d.ts.map +1 -0
- package/build/utils/cache/optimistically_update_message.d.ts +8 -0
- package/build/utils/cache/optimistically_update_message.d.ts.map +1 -0
- package/build/utils/cache/page_mutations.d.ts +96 -0
- package/build/utils/cache/page_mutations.d.ts.map +1 -0
- package/build/utils/can_submit_message.d.ts +10 -0
- package/build/utils/can_submit_message.d.ts.map +1 -0
- package/build/utils/chat_type_label.d.ts +2 -0
- package/build/utils/chat_type_label.d.ts.map +1 -0
- package/build/utils/client/client.d.ts +30 -0
- package/build/utils/client/client.d.ts.map +1 -0
- package/build/utils/client/index.d.ts +3 -0
- package/build/utils/client/index.d.ts.map +1 -0
- package/build/utils/client/instrumented_fetch.d.ts +2 -0
- package/build/utils/client/instrumented_fetch.d.ts.map +1 -0
- package/build/utils/client/request_helpers.d.ts +28 -0
- package/build/utils/client/request_helpers.d.ts.map +1 -0
- package/build/utils/client/transform_request_data.d.ts +13 -0
- package/build/utils/client/transform_request_data.d.ts.map +1 -0
- package/build/utils/client/transform_response.d.ts +3 -0
- package/build/utils/client/transform_response.d.ts.map +1 -0
- package/build/utils/client/types.d.ts +62 -0
- package/build/utils/client/types.d.ts.map +1 -0
- package/build/utils/client/utils.d.ts +5 -0
- package/build/utils/client/utils.d.ts.map +1 -0
- package/build/utils/conversation_safety_constants.d.ts +2 -0
- package/build/utils/conversation_safety_constants.d.ts.map +1 -0
- package/build/utils/convert_attachments_for_create.d.ts +12 -0
- package/build/utils/convert_attachments_for_create.d.ts.map +1 -0
- package/build/utils/date.d.ts +11 -0
- package/build/utils/date.d.ts.map +1 -0
- package/build/utils/dayjs.d.ts +3 -0
- package/build/utils/dayjs.d.ts.map +1 -0
- package/build/utils/deepCamelCaseKeys.d.ts +4 -0
- package/build/utils/deepCamelCaseKeys.d.ts.map +1 -0
- package/build/utils/deep_snake_case_keys.d.ts +4 -0
- package/build/utils/deep_snake_case_keys.d.ts.map +1 -0
- package/build/utils/destructure_chat_group_graph_id.d.ts +10 -0
- package/build/utils/destructure_chat_group_graph_id.d.ts.map +1 -0
- package/build/utils/gender_display_label.d.ts +2 -0
- package/build/utils/gender_display_label.d.ts.map +1 -0
- package/build/utils/generate_placeholder_ulid.d.ts +10 -0
- package/build/utils/generate_placeholder_ulid.d.ts.map +1 -0
- package/build/utils/group_messages.d.ts +22 -0
- package/build/utils/group_messages.d.ts.map +1 -0
- package/build/utils/host_bridge.d.ts +20 -0
- package/build/utils/host_bridge.d.ts.map +1 -0
- package/build/utils/index.d.ts +21 -0
- package/build/utils/index.d.ts.map +1 -0
- package/build/utils/is_input_editable.d.ts +6 -0
- package/build/utils/is_input_editable.d.ts.map +1 -0
- package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts +7 -0
- package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts.map +1 -0
- package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts +12 -0
- package/build/utils/jolt/transform_reaction_event_data_to_reaction_count_resource.d.ts.map +1 -0
- package/build/utils/liquid_glass.d.ts +3 -0
- package/build/utils/liquid_glass.d.ts.map +1 -0
- package/build/utils/membership_sync_info_text.d.ts +2 -0
- package/build/utils/membership_sync_info_text.d.ts.map +1 -0
- package/build/utils/message_text.d.ts +3 -0
- package/build/utils/message_text.d.ts.map +1 -0
- package/build/utils/native_adapters/audio.d.ts +14 -0
- package/build/utils/native_adapters/audio.d.ts.map +1 -0
- package/build/utils/native_adapters/clipboard.d.ts +6 -0
- package/build/utils/native_adapters/clipboard.d.ts.map +1 -0
- package/build/utils/native_adapters/configuration.d.ts +36 -0
- package/build/utils/native_adapters/configuration.d.ts.map +1 -0
- package/build/utils/native_adapters/document_picker.d.ts +28 -0
- package/build/utils/native_adapters/document_picker.d.ts.map +1 -0
- package/build/utils/native_adapters/haptic.d.ts +23 -0
- package/build/utils/native_adapters/haptic.d.ts.map +1 -0
- package/build/utils/native_adapters/image_picker.d.ts +31 -0
- package/build/utils/native_adapters/image_picker.d.ts.map +1 -0
- package/build/utils/native_adapters/index.d.ts +12 -0
- package/build/utils/native_adapters/index.d.ts.map +1 -0
- package/build/utils/native_adapters/linking.d.ts +15 -0
- package/build/utils/native_adapters/linking.d.ts.map +1 -0
- package/build/utils/native_adapters/log.d.ts +26 -0
- package/build/utils/native_adapters/log.d.ts.map +1 -0
- package/build/utils/native_adapters/menu.d.ts +40 -0
- package/build/utils/native_adapters/menu.d.ts.map +1 -0
- package/build/utils/native_adapters/storage_adapter.d.ts +17 -0
- package/build/utils/native_adapters/storage_adapter.d.ts.map +1 -0
- package/build/utils/native_adapters/video.d.ts +22 -0
- package/build/utils/native_adapters/video.d.ts.map +1 -0
- package/build/utils/package_version.d.ts +2 -0
- package/build/utils/package_version.d.ts.map +1 -0
- package/build/utils/parse_simple_markdown.d.ts +7 -0
- package/build/utils/parse_simple_markdown.d.ts.map +1 -0
- package/build/utils/performance_tracking.d.ts +26 -0
- package/build/utils/performance_tracking.d.ts.map +1 -0
- package/build/utils/pluralize.d.ts +2 -0
- package/build/utils/pluralize.d.ts.map +1 -0
- package/build/utils/reaction_constants.d.ts +3 -0
- package/build/utils/reaction_constants.d.ts.map +1 -0
- package/build/utils/replace_equal_by_id.d.ts +6 -0
- package/build/utils/replace_equal_by_id.d.ts.map +1 -0
- package/build/utils/request/conversation.d.ts +12 -0
- package/build/utils/request/conversation.d.ts.map +1 -0
- package/build/utils/request/get_chat_configuration.d.ts +10 -0
- package/build/utils/request/get_chat_configuration.d.ts.map +1 -0
- package/build/utils/request/get_features.d.ts +17 -0
- package/build/utils/request/get_features.d.ts.map +1 -0
- package/build/utils/request/get_message.d.ts +20 -0
- package/build/utils/request/get_message.d.ts.map +1 -0
- package/build/utils/request/get_messages.d.ts +21 -0
- package/build/utils/request/get_messages.d.ts.map +1 -0
- package/build/utils/request/get_search_results.d.ts +13 -0
- package/build/utils/request/get_search_results.d.ts.map +1 -0
- package/build/utils/request/messages_data_options.d.ts +7 -0
- package/build/utils/request/messages_data_options.d.ts.map +1 -0
- package/build/utils/response_error.d.ts +11 -0
- package/build/utils/response_error.d.ts.map +1 -0
- package/build/utils/session.d.ts +38 -0
- package/build/utils/session.d.ts.map +1 -0
- package/build/utils/session_manager.d.ts +21 -0
- package/build/utils/session_manager.d.ts.map +1 -0
- package/build/utils/sha_256.d.ts +31 -0
- package/build/utils/sha_256.d.ts.map +1 -0
- package/build/utils/styles.d.ts +11 -0
- package/build/utils/styles.d.ts.map +1 -0
- package/build/utils/system_messages.d.ts +17 -0
- package/build/utils/system_messages.d.ts.map +1 -0
- package/build/utils/theme.d.ts +88 -0
- package/build/utils/theme.d.ts.map +1 -0
- package/build/utils/time.d.ts +9 -0
- package/build/utils/time.d.ts.map +1 -0
- package/build/utils/upload_uri.d.ts +24 -0
- package/build/utils/upload_uri.d.ts.map +1 -0
- package/build/utils/uri.d.ts +29 -0
- package/build/utils/uri.d.ts.map +1 -0
- package/build/vendor/font_awesome_pro_solid_icons.d.ts +53 -0
- package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -0
- package/build/vendor/font_awesome_pro_solid_icons.js +6 -6
- package/build/vendor/font_awesome_pro_solid_icons.js.map +1 -1
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts +89 -0
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts.map +1 -0
- package/build/vendor/tapestry/tokens.d.ts +121 -0
- package/build/vendor/tapestry/tokens.d.ts.map +1 -0
- package/package.json +8 -12
- package/src/__tests__/utils/theme.ts +2 -5
- package/src/__utils__/render_with_query_client.tsx +13 -0
- package/src/components/conversation/__tests__/message_list.test.tsx +4 -0
- package/src/components/conversation/message_list.tsx +6 -0
- package/src/components/conversations/__tests__/conversation_preview.test.tsx +2 -2
- package/src/components/conversations/conversations.tsx +1 -0
- package/src/components/display/__tests__/conversation_avatar.test.tsx +94 -0
- package/src/components/display/conversation_avatar.tsx +9 -2
- package/src/components/display/image.tsx +10 -19
- package/src/components/display/keyboard_scroll_view.tsx +1 -0
- package/src/components/page/__tests__/page_error_boundary.test.tsx +33 -0
- package/src/components/page/page_error_boundary.tsx +43 -12
- package/src/contexts/__tests__/configured_retry.test.ts +39 -0
- package/src/contexts/api_provider.tsx +12 -5
- package/src/hooks/__tests__/use_conversation_avatar_update.test.tsx +40 -0
- package/src/hooks/__tests__/use_system_message_people.test.tsx +79 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use_conversation_avatar_update.ts +67 -11
- package/src/hooks/use_system_message_people.ts +55 -0
- package/src/icons/font_awesome.ts +12 -12
- package/src/navigation/index.tsx +6 -2
- package/src/navigation/page_error_fallbacks.ts +14 -0
- package/src/navigation/screenLayout.tsx +3 -1
- package/src/screens/age_check/age_check_required_screen.tsx +5 -1
- package/src/screens/avatar_picker/__tests__/avatar_picker_screen.test.tsx +67 -0
- package/src/screens/avatar_picker/__tests__/constants.test.ts +16 -0
- package/src/screens/avatar_picker/avatar_picker_screen.tsx +7 -1
- package/src/screens/avatar_picker/constants.ts +11 -6
- package/src/screens/conversation_details_screen.tsx +1 -0
- package/src/screens/conversation_new/components/form_list.tsx +1 -0
- package/src/screens/conversation_select_recipients/__tests__/conversation_select_direct_message_recipients_screen.test.tsx +100 -0
- package/src/screens/conversation_select_recipients/conversation_new_entry_screen.tsx +4 -1
- package/src/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.tsx +78 -68
- package/src/screens/conversation_select_recipients/conversation_select_group_recipients_screen.tsx +1 -0
- package/src/screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen.tsx +1 -0
- package/src/screens/design_system_screen.tsx +10 -6
- 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 +1 -0
- package/src/screens/preferred_app_selection_screen.tsx +4 -4
- package/src/screens/search/__tests__/search_screen.test.tsx +11 -12
- package/src/screens/search/components/__tests__/conversation_results.test.tsx +14 -5
- package/src/screens/search/components/__tests__/message_result_row.test.tsx +5 -4
- package/src/screens/search/components/__tests__/search_results_list.test.tsx +10 -5
- package/src/screens/search/components/search_results_list.tsx +34 -13
- package/src/screens/search/search_screen.tsx +8 -18
- package/src/screens/settings_screen.tsx +25 -25
- package/src/screens/system_message_people_screen.tsx +6 -20
- package/src/vendor/font_awesome_pro_solid_icons.ts +6 -6
|
@@ -11,7 +11,7 @@ import { Spinner } from './spinner';
|
|
|
11
11
|
// =================================
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
export function Image(t0) {
|
|
14
|
-
const $ = _c(
|
|
14
|
+
const $ = _c(56);
|
|
15
15
|
let alt;
|
|
16
16
|
let loadingBackgroundStyles;
|
|
17
17
|
let props;
|
|
@@ -162,6 +162,7 @@ export function Image(t0) {
|
|
|
162
162
|
}
|
|
163
163
|
const handleOnError = t19;
|
|
164
164
|
const isLoading = isImageLoading || loading;
|
|
165
|
+
const ImageComponent = animatedImageStyle ? Animated.Image : ReactNativeImage;
|
|
165
166
|
const t20 = Boolean(alt);
|
|
166
167
|
let t21;
|
|
167
168
|
if ($[30] !== isLoading) {
|
|
@@ -174,73 +175,75 @@ export function Image(t0) {
|
|
|
174
175
|
t21 = $[31];
|
|
175
176
|
}
|
|
176
177
|
let t22;
|
|
177
|
-
if ($[32] !==
|
|
178
|
-
t22 =
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
178
|
+
if ($[32] !== animatedImageStyle || $[33] !== imageStyles || $[34] !== styles.image) {
|
|
179
|
+
t22 = [styles.image, imageStyles, animatedImageStyle];
|
|
180
|
+
$[32] = animatedImageStyle;
|
|
181
|
+
$[33] = imageStyles;
|
|
182
|
+
$[34] = styles.image;
|
|
183
|
+
$[35] = t22;
|
|
184
|
+
} else {
|
|
185
|
+
t22 = $[35];
|
|
186
|
+
}
|
|
187
|
+
const t23 = isLoading ? "" : alt;
|
|
188
|
+
let t24;
|
|
189
|
+
if ($[36] !== ImageComponent || $[37] !== handleOnLoad || $[38] !== props || $[39] !== source || $[40] !== t22 || $[41] !== t23) {
|
|
190
|
+
t24 = /*#__PURE__*/_jsx(ImageComponent, {
|
|
191
|
+
style: t22,
|
|
187
192
|
onLoad: handleOnLoad,
|
|
188
193
|
onError: handleOnError,
|
|
189
194
|
source: source,
|
|
190
|
-
alt:
|
|
195
|
+
alt: t23,
|
|
191
196
|
...props
|
|
192
197
|
});
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
$[36] = isLoading;
|
|
198
|
-
$[37] = props;
|
|
199
|
-
$[38] = source;
|
|
200
|
-
$[39] = styles.image;
|
|
198
|
+
$[36] = ImageComponent;
|
|
199
|
+
$[37] = handleOnLoad;
|
|
200
|
+
$[38] = props;
|
|
201
|
+
$[39] = source;
|
|
201
202
|
$[40] = t22;
|
|
203
|
+
$[41] = t23;
|
|
204
|
+
$[42] = t24;
|
|
202
205
|
} else {
|
|
203
|
-
|
|
206
|
+
t24 = $[42];
|
|
204
207
|
}
|
|
205
|
-
let
|
|
206
|
-
if ($[
|
|
207
|
-
|
|
208
|
+
let t25;
|
|
209
|
+
if ($[43] !== hideLoader || $[44] !== isLoading || $[45] !== loaderSize || $[46] !== loadingBackgroundStyles || $[47] !== styles.loadingBackground || $[48] !== styles.spinner) {
|
|
210
|
+
t25 = !hideLoader && isLoading && /*#__PURE__*/_jsx(View, {
|
|
208
211
|
style: [styles.loadingBackground, loadingBackgroundStyles],
|
|
209
212
|
children: /*#__PURE__*/_jsx(Spinner, {
|
|
210
213
|
size: loaderSize,
|
|
211
214
|
style: styles.spinner
|
|
212
215
|
})
|
|
213
216
|
});
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
217
|
+
$[43] = hideLoader;
|
|
218
|
+
$[44] = isLoading;
|
|
219
|
+
$[45] = loaderSize;
|
|
220
|
+
$[46] = loadingBackgroundStyles;
|
|
221
|
+
$[47] = styles.loadingBackground;
|
|
222
|
+
$[48] = styles.spinner;
|
|
223
|
+
$[49] = t25;
|
|
221
224
|
} else {
|
|
222
|
-
|
|
225
|
+
t25 = $[49];
|
|
223
226
|
}
|
|
224
|
-
let
|
|
225
|
-
if ($[
|
|
226
|
-
|
|
227
|
+
let t26;
|
|
228
|
+
if ($[50] !== t20 || $[51] !== t21 || $[52] !== t24 || $[53] !== t25 || $[54] !== wrapperStyle) {
|
|
229
|
+
t26 = /*#__PURE__*/_jsxs(View, {
|
|
227
230
|
style: wrapperStyle,
|
|
228
231
|
accessible: t20,
|
|
229
232
|
accessibilityRole: "image",
|
|
230
233
|
accessibilityState: t21,
|
|
231
234
|
collapsable: false,
|
|
232
|
-
children: [
|
|
235
|
+
children: [t24, t25]
|
|
233
236
|
});
|
|
234
|
-
$[
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
237
|
+
$[50] = t20;
|
|
238
|
+
$[51] = t21;
|
|
239
|
+
$[52] = t24;
|
|
240
|
+
$[53] = t25;
|
|
241
|
+
$[54] = wrapperStyle;
|
|
242
|
+
$[55] = t26;
|
|
240
243
|
} else {
|
|
241
|
-
|
|
244
|
+
t26 = $[55];
|
|
242
245
|
}
|
|
243
|
-
return
|
|
246
|
+
return t26;
|
|
244
247
|
}
|
|
245
248
|
|
|
246
249
|
// =================================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","names":["noop","React","useState","Image","ReactNativeImage","StyleSheet","View","Animated","useTheme","Spinner","jsx","_jsx","jsxs","_jsxs","t0","$","_c","alt","loadingBackgroundStyles","props","source","t1","t2","t3","t4","t5","t6","t7","t8","onLoad","defaultLoading","loading","hideLoader","loaderSize","style","wrapperStyle","animatedImageStyle","undefined","t9","t10","t11","isImageLoading","setIsImageLoading","t12","flatten","imageStyles","t13","width","t14","height","t15","borderRadius","t16","t17","styles","useStyles","t18","event","handleOnLoad","t19","Symbol","for","handleOnError","isLoading","t20","Boolean","t21","busy","t22","image","t23","loadingBackground","spinner","children","t24","accessible","accessibilityRole","accessibilityState","collapsable","colors","fillColorNeutral070","create","position","top","left","backgroundColor","justifyContent","alignItems"],"sources":["../../../src/components/display/image.tsx"],"sourcesContent":["import { noop } from 'lodash'\nimport React, { useState } from 'react'\nimport {\n AnimatableNumericValue,\n DimensionValue,\n ImageStyle,\n Image as ReactNativeImage,\n ImageProps as ReactNativeImageProps,\n StyleSheet,\n View,\n ViewStyle,\n} from 'react-native'\nimport Animated, { AnimatedStyle } from 'react-native-reanimated'\nimport { useTheme } from '../../hooks'\nimport { Spinner } from './spinner'\n\n// =================================\n// ====== Component ================\n// =================================\n\nexport interface ImageProps extends ReactNativeImageProps {\n /**\n * Describes the image to screen-readers and marks the image as `accessible`.\n * Passing an empty string will hide the image from screen-readers.\n */\n alt: string\n /**\n * Shows the image's loading spinner right away. Enabled by default.\n */\n defaultLoading?: boolean\n /**\n * Externally controls the loading state of the image.\n */\n loading?: boolean\n /**\n * Hide the loading spinner, regardless of the loading state.\n */\n hideLoader?: boolean\n /**\n * Size of the loading spinner.\n */\n loaderSize?: number\n /**\n * Style object for the preload background.\n */\n loadingBackgroundStyles?: ViewStyle\n /**\n * Style the outer View of the image.\n */\n wrapperStyle?: ViewStyle\n /**\n * Style the image if animated.\n */\n animatedImageStyle?: AnimatedStyle<ImageStyle>\n}\n\nexport function Image({\n source,\n onLoad = noop,\n defaultLoading = true,\n loading = false,\n hideLoader = false,\n loaderSize = 24,\n loadingBackgroundStyles,\n style = {},\n wrapperStyle = {},\n alt,\n animatedImageStyle = {},\n ...props\n}: ImageProps) {\n const [isImageLoading, setIsImageLoading] = useState(defaultLoading)\n\n const imageStyles = StyleSheet.flatten(style)\n const { width = '100%', height = '100%', borderRadius = 0 } = imageStyles || {}\n const styles = useStyles({ width, height, borderRadius })\n\n const handleOnLoad = (event: any) => {\n setIsImageLoading(false)\n onLoad?.(event)\n }\n\n const handleOnError = () => {\n setIsImageLoading(false)\n }\n\n const isLoading = isImageLoading || loading\n\n return (\n <View\n style={wrapperStyle}\n accessible={Boolean(alt)}\n accessibilityRole=\"image\"\n accessibilityState={{ busy: isLoading }}\n collapsable={false}\n >\n {animatedImageStyle ? (\n <Animated.Image\n style={[styles.image, imageStyles, animatedImageStyle]}\n onLoad={handleOnLoad}\n onError={handleOnError}\n source={source}\n alt={isLoading ? '' : alt}\n {...props}\n />\n ) : (\n <ReactNativeImage\n style={[styles.image, imageStyles]}\n onLoad={handleOnLoad}\n onError={handleOnError}\n source={source}\n alt={isLoading ? '' : alt}\n {...props}\n />\n )}\n {!hideLoader && isLoading && (\n <View style={[styles.loadingBackground, loadingBackgroundStyles]}>\n <Spinner size={loaderSize} style={styles.spinner} />\n </View>\n )}\n </View>\n )\n}\n\n// =================================\n// ====== Styles ===================\n// =================================\n\ninterface Styles {\n width: DimensionValue\n height: DimensionValue\n borderRadius: AnimatableNumericValue | string\n}\n\nconst useStyles = ({ width, height, borderRadius }: Styles) => {\n const { colors } = useTheme()\n\n return StyleSheet.create({\n loadingBackground: {\n position: 'absolute',\n top: 0,\n left: 0,\n backgroundColor: colors.fillColorNeutral070,\n borderRadius,\n width,\n height,\n },\n image: {\n backgroundColor: colors.fillColorNeutral070,\n width,\n height,\n },\n spinner: {\n width: '100%',\n height: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n },\n })\n}\n"],"mappings":";AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAIEC,KAAK,IAAIC,gBAAgB,EAEzBC,UAAU,EACVC,IAAI,QAEC,cAAc;AACrB,OAAOC,QAAQ,MAAyB,yBAAyB;AACjE,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,OAAO,QAAQ,WAAW;;AAEnC;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAsCA,OAAO,SAAAV,MAAAW,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,GAAA;EAAA,IAAAC,uBAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,MAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAb,CAAA,QAAAD,EAAA;IAAe;MAAAM,MAAA;MAAAS,MAAA,EAAAR,EAAA;MAAAS,cAAA,EAAAR,EAAA;MAAAS,OAAA,EA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A,EACQ;QAAAzB,KAAA,EACA,MAAM;QAAAE,MAAA,EACL,MAAM;QAAAqC,cAAA,EACE,QAAQ;QAAAC,UAAA,EACZ,QAAQ;QAAAL,QAAA,EACV;MACZ;IACF,CAAC,CAAC;IAAAnE,CAAA,MAAAoC,YAAA;IAAApC,CAAA,MAAAgE,MAAA,CAAAC,mBAAA;IAAAjE,CAAA,MAAAkC,MAAA;IAAAlC,CAAA,MAAAgC,KAAA;IAAAhC,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAAA,OAtBKM,EAsBL;AAAA,CACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"image.js","names":["noop","React","useState","Image","ReactNativeImage","StyleSheet","View","Animated","useTheme","Spinner","jsx","_jsx","jsxs","_jsxs","t0","$","_c","alt","loadingBackgroundStyles","props","source","t1","t2","t3","t4","t5","t6","t7","t8","onLoad","defaultLoading","loading","hideLoader","loaderSize","style","wrapperStyle","animatedImageStyle","undefined","t9","t10","t11","isImageLoading","setIsImageLoading","t12","flatten","imageStyles","t13","width","t14","height","t15","borderRadius","t16","t17","styles","useStyles","t18","event","handleOnLoad","t19","Symbol","for","handleOnError","isLoading","ImageComponent","t20","Boolean","t21","busy","t22","image","t23","t24","t25","loadingBackground","spinner","children","t26","accessible","accessibilityRole","accessibilityState","collapsable","colors","fillColorNeutral070","create","position","top","left","backgroundColor","justifyContent","alignItems"],"sources":["../../../src/components/display/image.tsx"],"sourcesContent":["import { noop } from 'lodash'\nimport React, { useState } from 'react'\nimport {\n AnimatableNumericValue,\n DimensionValue,\n ImageStyle,\n Image as ReactNativeImage,\n ImageProps as ReactNativeImageProps,\n StyleSheet,\n View,\n ViewStyle,\n} from 'react-native'\nimport Animated, { AnimatedStyle } from 'react-native-reanimated'\nimport { useTheme } from '../../hooks'\nimport { Spinner } from './spinner'\n\n// =================================\n// ====== Component ================\n// =================================\n\nexport interface ImageProps extends ReactNativeImageProps {\n /**\n * Describes the image to screen-readers and marks the image as `accessible`.\n * Passing an empty string will hide the image from screen-readers.\n */\n alt: string\n /**\n * Shows the image's loading spinner right away. Enabled by default.\n */\n defaultLoading?: boolean\n /**\n * Externally controls the loading state of the image.\n */\n loading?: boolean\n /**\n * Hide the loading spinner, regardless of the loading state.\n */\n hideLoader?: boolean\n /**\n * Size of the loading spinner.\n */\n loaderSize?: number\n /**\n * Style object for the preload background.\n */\n loadingBackgroundStyles?: ViewStyle\n /**\n * Style the outer View of the image.\n */\n wrapperStyle?: ViewStyle\n /**\n * Style the image if animated.\n */\n animatedImageStyle?: AnimatedStyle<ImageStyle>\n}\n\nexport function Image({\n source,\n onLoad = noop,\n defaultLoading = true,\n loading = false,\n hideLoader = false,\n loaderSize = 24,\n loadingBackgroundStyles,\n style = {},\n wrapperStyle = {},\n alt,\n animatedImageStyle = {},\n ...props\n}: ImageProps) {\n const [isImageLoading, setIsImageLoading] = useState(defaultLoading)\n\n const imageStyles = StyleSheet.flatten(style)\n const { width = '100%', height = '100%', borderRadius = 0 } = imageStyles || {}\n const styles = useStyles({ width, height, borderRadius })\n\n const handleOnLoad = (event: any) => {\n setIsImageLoading(false)\n onLoad?.(event)\n }\n\n const handleOnError = () => {\n setIsImageLoading(false)\n }\n\n const isLoading = isImageLoading || loading\n\n const ImageComponent = animatedImageStyle ? Animated.Image : ReactNativeImage\n\n return (\n <View\n style={wrapperStyle}\n accessible={Boolean(alt)}\n accessibilityRole=\"image\"\n accessibilityState={{ busy: isLoading }}\n collapsable={false}\n >\n <ImageComponent\n style={[styles.image, imageStyles, animatedImageStyle]}\n onLoad={handleOnLoad}\n onError={handleOnError}\n source={source}\n alt={isLoading ? '' : alt}\n {...props}\n />\n {!hideLoader && isLoading && (\n <View style={[styles.loadingBackground, loadingBackgroundStyles]}>\n <Spinner size={loaderSize} style={styles.spinner} />\n </View>\n )}\n </View>\n )\n}\n\n// =================================\n// ====== Styles ===================\n// =================================\n\ninterface Styles {\n width: DimensionValue\n height: DimensionValue\n borderRadius: AnimatableNumericValue | string\n}\n\nconst useStyles = ({ width, height, borderRadius }: Styles) => {\n const { colors } = useTheme()\n\n return StyleSheet.create({\n loadingBackground: {\n position: 'absolute',\n top: 0,\n left: 0,\n backgroundColor: colors.fillColorNeutral070,\n borderRadius,\n width,\n height,\n },\n image: {\n backgroundColor: colors.fillColorNeutral070,\n width,\n height,\n },\n spinner: {\n width: '100%',\n height: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n },\n })\n}\n"],"mappings":";AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAIEC,KAAK,IAAIC,gBAAgB,EAEzBC,UAAU,EACVC,IAAI,QAEC,cAAc;AACrB,OAAOC,QAAQ,MAAyB,yBAAyB;AACjE,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,OAAO,QAAQ,WAAW;;AAEnC;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAsCA,OAAO,SAAAV,MAAAW,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,GAAA;EAAA,IAAAC,uBAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,MAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAb,CAAA,QAAAD,EAAA;IAAe;MAAAM,MAAA;MAAAS,MAAA,EAAAR,EAAA;MAAAS,cAAA,EAAAR,EAAA;MAAAS,OAAA,EAAAR,EAAA;MAAAS,UAAA,EAAAR,EAAA;MAAAS,UAAA,EAAAR,EAAA;MAAAP,uBAAA;MAAAgB,KAAA,EAAAR,EAAA;MAAAS,YAAA,EAAAR,EAAA;MAAAV,GAAA;MAAAmB,kBAAA,EAAA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,MAAAoC,YAAA;IAAApC,CAAA,MAAAmE,MAAA,CAAAC,mBAAA;IAAApE,CAAA,MAAAkC,MAAA;IAAAlC,CAAA,MAAAgC,KAAA;IAAAhC,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAAA,OAtBKM,EAsBL;AAAA,CACH","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type ImageSizeUnion = 'sm' | 'md';
|
|
2
|
+
interface ImageAttachmentPreviewProps {
|
|
3
|
+
fileName: string;
|
|
4
|
+
uri: string;
|
|
5
|
+
size?: ImageSizeUnion;
|
|
6
|
+
onRemovePress: () => void;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
hideRemoveButton?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const ImageAttachmentPreview: ({ uri, fileName, size, onRemovePress, loading, hideRemoveButton, error, }: ImageAttachmentPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=image_attachment_preview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image_attachment_preview.d.ts","sourceRoot":"","sources":["../../../src/components/display/image_attachment_preview.tsx"],"names":[],"mappings":"AAOA,KAAK,cAAc,GAAG,IAAI,GAAG,IAAI,CAAA;AAEjC,UAAU,2BAA2B;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,sBAAsB,GAAI,2EAQpC,2BAA2B,4CA8B7B,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export * from './avatar_group';
|
|
2
|
+
export * from './avatar';
|
|
3
|
+
export * from './badge';
|
|
4
|
+
export * from './conversation_avatar';
|
|
5
|
+
export * from './emoji_avatar';
|
|
6
|
+
export * from './icon_avatar';
|
|
7
|
+
export * from './icon_tile';
|
|
8
|
+
export * from './banner_collapsible';
|
|
9
|
+
export * from './banner';
|
|
10
|
+
export * from './button';
|
|
11
|
+
export * from './adult_requirement_notice';
|
|
12
|
+
export * from './child_notice';
|
|
13
|
+
export * from './heading';
|
|
14
|
+
export * from './icon_button';
|
|
15
|
+
export * from './icon';
|
|
16
|
+
export * from './image';
|
|
17
|
+
export * from './file_attachment_preview';
|
|
18
|
+
export * from './image_attachment_preview';
|
|
19
|
+
export * from './video_attachment_preview';
|
|
20
|
+
export * from './person';
|
|
21
|
+
export * from './spinner';
|
|
22
|
+
export * from './switch';
|
|
23
|
+
export * from './text_button';
|
|
24
|
+
export * from './text_inline_button';
|
|
25
|
+
export * from './text';
|
|
26
|
+
export * from './toggle_button';
|
|
27
|
+
export * from './filter_dropdown';
|
|
28
|
+
export * from './popover_menu_view';
|
|
29
|
+
export * from './keyboard_scroll_view';
|
|
30
|
+
export * from './keyboard_view';
|
|
31
|
+
export * from './platform_modal_header_buttons';
|
|
32
|
+
export * from './pressable_row';
|
|
33
|
+
export * from './version_footer';
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/display/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ScrollViewProps } from 'react-native';
|
|
2
|
+
type KeyboardScrollViewProps = Pick<ScrollViewProps, 'children' | 'contentContainerStyle'>;
|
|
3
|
+
export declare function KeyboardScrollView({ children, contentContainerStyle }: KeyboardScrollViewProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=keyboard_scroll_view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard_scroll_view.d.ts","sourceRoot":"","sources":["../../../src/components/display/keyboard_scroll_view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,eAAe,EAAa,MAAM,cAAc,CAAA;AAK/E,KAAK,uBAAuB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,uBAAuB,CAAC,CAAA;AAE1F,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,qBAAqB,EAAE,EAAE,uBAAuB,2CA8C9F"}
|
|
@@ -53,6 +53,7 @@ export function KeyboardScrollView(t0) {
|
|
|
53
53
|
t2 = /*#__PURE__*/_jsx(KeyboardView, {
|
|
54
54
|
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
55
55
|
ref: scrollViewRef,
|
|
56
|
+
contentInsetAdjustmentBehavior: "automatic",
|
|
56
57
|
contentContainerStyle: contentContainerStyle,
|
|
57
58
|
onLayout: scrollFocusedInputIntoView,
|
|
58
59
|
onContentSizeChange: scrollFocusedInputIntoView,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard_scroll_view.js","names":["React","useCallback","useRef","Keyboard","ScrollView","TextInput","KeyboardView","jsx","_jsx","FOCUSED_INPUT_BOTTOM_MARGIN","KeyboardScrollView","t0","$","_c","children","contentContainerStyle","scrollViewRef","t1","Symbol","for","scrollView","current","input","State","currentlyFocusedInput","nativeScrollView","getNativeScrollRef","innerView","getInnerViewRef","measureInWindow","_scrollX","scrollTop","_scrollWidth","scrollHeight","keyboardTop","metrics","screenY","scrollBottom","visibleBottom","undefined","Math","min","visibleHeight","_inputX","inputTop","_inputWidth","inputHeight","inputBottom","measureLayout","_left","contentTop","_contentWidth","contentHeight","scrollTo","y","animated","scrollFocusedInputIntoView","t2"],"sources":["../../../src/components/display/keyboard_scroll_view.tsx"],"sourcesContent":["import React, { useCallback, useRef } from 'react'\nimport { Keyboard, ScrollView, ScrollViewProps, TextInput } from 'react-native'\nimport { KeyboardView } from './keyboard_view'\n\nconst FOCUSED_INPUT_BOTTOM_MARGIN = 32\n\ntype KeyboardScrollViewProps = Pick<ScrollViewProps, 'children' | 'contentContainerStyle'>\n\nexport function KeyboardScrollView({ children, contentContainerStyle }: KeyboardScrollViewProps) {\n const scrollViewRef = useRef<ScrollView>(null)\n\n const scrollFocusedInputIntoView = useCallback(() => {\n const scrollView = scrollViewRef.current\n const input = TextInput.State.currentlyFocusedInput()\n if (!scrollView || !input) return\n\n const nativeScrollView = scrollView.getNativeScrollRef()\n const innerView = scrollView.getInnerViewRef()\n if (!nativeScrollView || !innerView) return\n\n nativeScrollView.measureInWindow((_scrollX, scrollTop, _scrollWidth, scrollHeight) => {\n const keyboardTop = Keyboard.metrics()?.screenY\n const scrollBottom = scrollTop + scrollHeight\n const visibleBottom =\n keyboardTop === undefined ? scrollBottom : Math.min(scrollBottom, keyboardTop)\n const visibleHeight = visibleBottom - scrollTop\n\n input.measureInWindow((_inputX, inputTop, _inputWidth, inputHeight) => {\n const inputBottom = inputTop + inputHeight + FOCUSED_INPUT_BOTTOM_MARGIN\n if (inputBottom <= visibleBottom) return\n\n input.measureLayout(innerView, (_left, contentTop, _contentWidth, contentHeight) => {\n scrollView.scrollTo({\n y: contentTop + contentHeight + FOCUSED_INPUT_BOTTOM_MARGIN - visibleHeight,\n animated: true,\n })\n })\n })\n })\n }, [])\n\n return (\n <KeyboardView>\n <ScrollView\n ref={scrollViewRef}\n contentContainerStyle={contentContainerStyle}\n onLayout={scrollFocusedInputIntoView}\n onContentSizeChange={scrollFocusedInputIntoView}\n >\n {children}\n </ScrollView>\n </KeyboardView>\n )\n}\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,MAAM,QAAQ,OAAO;AAClD,SAASC,QAAQ,EAAEC,UAAU,EAAmBC,SAAS,QAAQ,cAAc;AAC/E,SAASC,YAAY,QAAQ,iBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE9C,MAAMC,2BAA2B,GAAG,EAAE;AAItC,OAAO,SAAAC,mBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAA4B;IAAAC,QAAA;IAAAC;EAAA,IAAAJ,EAA4D;EAC7F,MAAAK,aAAA,GAAsBd,MAAM,CAAa,IAAI,CAAC;EAAA,IAAAe,EAAA;EAAA,IAAAL,CAAA,QAAAM,MAAA,CAAAC,GAAA;IAECF,EAAA,GAAAA,CAAA;MAC7C,MAAAG,UAAA,GAAmBJ,aAAa,CAAAK,OAAQ;MACxC,MAAAC,KAAA,GAAcjB,SA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A,GAAAL,CAAA;EAAA;EA5BD,MAAA4C,0BAAA,GAAmCvC,EA4B7B;EAAA,IAAAwC,EAAA;EAAA,IAAA7C,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAG,qBAAA;IAGJ0C,EAAA,gBAAAjD,IAAA,CAACF,YAAY;MAAAQ,QAAA,eACXN,IAAA,CAACJ,UAAU;QACJY,GAAa,EAAbA,aAAa;
|
|
1
|
+
{"version":3,"file":"keyboard_scroll_view.js","names":["React","useCallback","useRef","Keyboard","ScrollView","TextInput","KeyboardView","jsx","_jsx","FOCUSED_INPUT_BOTTOM_MARGIN","KeyboardScrollView","t0","$","_c","children","contentContainerStyle","scrollViewRef","t1","Symbol","for","scrollView","current","input","State","currentlyFocusedInput","nativeScrollView","getNativeScrollRef","innerView","getInnerViewRef","measureInWindow","_scrollX","scrollTop","_scrollWidth","scrollHeight","keyboardTop","metrics","screenY","scrollBottom","visibleBottom","undefined","Math","min","visibleHeight","_inputX","inputTop","_inputWidth","inputHeight","inputBottom","measureLayout","_left","contentTop","_contentWidth","contentHeight","scrollTo","y","animated","scrollFocusedInputIntoView","t2","contentInsetAdjustmentBehavior"],"sources":["../../../src/components/display/keyboard_scroll_view.tsx"],"sourcesContent":["import React, { useCallback, useRef } from 'react'\nimport { Keyboard, ScrollView, ScrollViewProps, TextInput } from 'react-native'\nimport { KeyboardView } from './keyboard_view'\n\nconst FOCUSED_INPUT_BOTTOM_MARGIN = 32\n\ntype KeyboardScrollViewProps = Pick<ScrollViewProps, 'children' | 'contentContainerStyle'>\n\nexport function KeyboardScrollView({ children, contentContainerStyle }: KeyboardScrollViewProps) {\n const scrollViewRef = useRef<ScrollView>(null)\n\n const scrollFocusedInputIntoView = useCallback(() => {\n const scrollView = scrollViewRef.current\n const input = TextInput.State.currentlyFocusedInput()\n if (!scrollView || !input) return\n\n const nativeScrollView = scrollView.getNativeScrollRef()\n const innerView = scrollView.getInnerViewRef()\n if (!nativeScrollView || !innerView) return\n\n nativeScrollView.measureInWindow((_scrollX, scrollTop, _scrollWidth, scrollHeight) => {\n const keyboardTop = Keyboard.metrics()?.screenY\n const scrollBottom = scrollTop + scrollHeight\n const visibleBottom =\n keyboardTop === undefined ? scrollBottom : Math.min(scrollBottom, keyboardTop)\n const visibleHeight = visibleBottom - scrollTop\n\n input.measureInWindow((_inputX, inputTop, _inputWidth, inputHeight) => {\n const inputBottom = inputTop + inputHeight + FOCUSED_INPUT_BOTTOM_MARGIN\n if (inputBottom <= visibleBottom) return\n\n input.measureLayout(innerView, (_left, contentTop, _contentWidth, contentHeight) => {\n scrollView.scrollTo({\n y: contentTop + contentHeight + FOCUSED_INPUT_BOTTOM_MARGIN - visibleHeight,\n animated: true,\n })\n })\n })\n })\n }, [])\n\n return (\n <KeyboardView>\n <ScrollView\n ref={scrollViewRef}\n contentInsetAdjustmentBehavior=\"automatic\"\n contentContainerStyle={contentContainerStyle}\n onLayout={scrollFocusedInputIntoView}\n onContentSizeChange={scrollFocusedInputIntoView}\n >\n {children}\n </ScrollView>\n </KeyboardView>\n )\n}\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,MAAM,QAAQ,OAAO;AAClD,SAASC,QAAQ,EAAEC,UAAU,EAAmBC,SAAS,QAAQ,cAAc;AAC/E,SAASC,YAAY,QAAQ,iBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE9C,MAAMC,2BAA2B,GAAG,EAAE;AAItC,OAAO,SAAAC,mBAAAC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAA4B;IAAAC,QAAA;IAAAC;EAAA,IAAAJ,EAA4D;EAC7F,MAAAK,aAAA,GAAsBd,MAAM,CAAa,IAAI,CAAC;EAAA,IAAAe,EAAA;EAAA,IAAAL,CAAA,QAAAM,MAAA,CAAAC,GAAA;IAECF,EAAA,GAAAA,CAAA;MAC7C,MAAAG,UAAA,GAAmBJ,aAAa,CAAAK,OAAQ;MACxC,MAAAC,KAAA,GAAcjB,SAAS,CAAA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,CAAA;EAAA;EA5BD,MAAA4C,0BAAA,GAAmCvC,EA4B7B;EAAA,IAAAwC,EAAA;EAAA,IAAA7C,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAG,qBAAA;IAGJ0C,EAAA,gBAAAjD,IAAA,CAACF,YAAY;MAAAQ,QAAA,eACXN,IAAA,CAACJ,UAAU;QACJY,GAAa,EAAbA,aAAa;QACa0C,8BAAW,EAAX,WAAW;QACnB3C,qBAAqB,EAArBA,qBAAqB;QAClCyC,QAA0B,EAA1BA,0BAA0B;QACfA,mBAA0B,EAA1BA,0BAA0B;QAAA1C,QAAA,EAE9CA;MAAQ,CACC;IAAC,CACD,CAAC;IAAAF,CAAA,MAAAE,QAAA;IAAAF,CAAA,MAAAG,qBAAA;IAAAH,CAAA,MAAA6C,EAAA;EAAA;IAAAA,EAAA,GAAA7C,CAAA;EAAA;EAAA,OAVf6C,EAUe;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ViewProps } from 'react-native';
|
|
2
|
+
export declare const useKeyboardViewReady: () => boolean;
|
|
3
|
+
export declare function KeyboardView({ children }: Pick<ViewProps, 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const useKeyboardOpen: () => boolean;
|
|
5
|
+
//# sourceMappingURL=keyboard_view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard_view.d.ts","sourceRoot":"","sources":["../../../src/components/display/keyboard_view.tsx"],"names":[],"mappings":"AAGA,OAAO,EAOL,SAAS,EACV,MAAM,cAAc,CAAA;AAOrB,eAAO,MAAM,oBAAoB,eAA6C,CAAA;AAE9E,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,2CAkCrE;AAiBD,eAAO,MAAM,eAAe,eAgB3B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ViewStyle } from 'react-native';
|
|
2
|
+
import { MemberResource } from '../../types';
|
|
3
|
+
interface PersonProps {
|
|
4
|
+
person: MemberResource;
|
|
5
|
+
style?: ViewStyle;
|
|
6
|
+
}
|
|
7
|
+
export declare function Person({ person, style }: PersonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=person.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person.d.ts","sourceRoot":"","sources":["../../../src/components/display/person.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAU5C,UAAU,WAAW;IACnB,MAAM,EAAE,cAAc,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,WAAW,2CAgBpD"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { NativeStackNavigationOptions } from '@react-navigation/native-stack';
|
|
2
|
+
import { ColorValue } from 'react-native';
|
|
3
|
+
import { type IconString } from './icon';
|
|
4
|
+
interface HeaderTextButtonProps {
|
|
5
|
+
onPress: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const HeaderTextButton: ({ onPress, title, ...props }: HeaderTextButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
interface HeaderDismissButtonProps {
|
|
11
|
+
onPress: () => void;
|
|
12
|
+
title?: string;
|
|
13
|
+
tintColor?: ColorValue;
|
|
14
|
+
}
|
|
15
|
+
export declare const HeaderDismissButton: ({ onPress, title, tintColor, ...props }: HeaderDismissButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export type OptionsDecorator = (options: NativeStackNavigationOptions) => NativeStackNavigationOptions;
|
|
17
|
+
export declare const composeOptions: (base: NativeStackNavigationOptions, ...decorators: OptionsDecorator[]) => NativeStackNavigationOptions;
|
|
18
|
+
interface TextButtonDecoratorProps {
|
|
19
|
+
text: string;
|
|
20
|
+
onPress: () => void;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const withRightText: ({ text, onPress, disabled }: TextButtonDecoratorProps) => OptionsDecorator;
|
|
24
|
+
export declare const useHeaderSlotReserve: () => number;
|
|
25
|
+
export interface HeaderIconProps {
|
|
26
|
+
icon: IconString;
|
|
27
|
+
accessibilityLabel: string;
|
|
28
|
+
onPress: () => void;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
prominent?: boolean;
|
|
31
|
+
tintColor?: ColorValue;
|
|
32
|
+
}
|
|
33
|
+
export declare const withRightIcon: (props: HeaderIconProps) => OptionsDecorator;
|
|
34
|
+
export declare const withLeftIcon: (props: HeaderIconProps) => OptionsDecorator;
|
|
35
|
+
export declare const withRightClose: ({ onPress }: {
|
|
36
|
+
onPress: () => void;
|
|
37
|
+
}) => OptionsDecorator;
|
|
38
|
+
export declare const withLeftClose: ({ onPress }: {
|
|
39
|
+
onPress: () => void;
|
|
40
|
+
}) => OptionsDecorator;
|
|
41
|
+
export declare const withRightDone: ({ onPress }: {
|
|
42
|
+
onPress: () => void;
|
|
43
|
+
}) => OptionsDecorator;
|
|
44
|
+
export declare const withMinimalBack: ({ onPress }: {
|
|
45
|
+
onPress: () => void;
|
|
46
|
+
}) => OptionsDecorator;
|
|
47
|
+
type UseHeaderRightOptions = {
|
|
48
|
+
onPress: () => void;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
enabled?: boolean;
|
|
51
|
+
} & ((Omit<HeaderIconProps, 'tintColor'> & {
|
|
52
|
+
title?: never;
|
|
53
|
+
}) | {
|
|
54
|
+
title: string;
|
|
55
|
+
icon?: never;
|
|
56
|
+
accessibilityLabel?: never;
|
|
57
|
+
prominent?: never;
|
|
58
|
+
});
|
|
59
|
+
export declare const useHeaderRight: (options: UseHeaderRightOptions) => void;
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=platform_modal_header_buttons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform_modal_header_buttons.d.ts","sourceRoot":"","sources":["../../../src/components/display/platform_modal_header_buttons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,4BAA4B,EAC7B,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EAAE,UAAU,EAAwB,MAAM,cAAc,CAAA;AAI/D,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAA;AAG9C,UAAU,qBAAqB;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,gBAAgB,GAAI,8BAI9B,qBAAqB,4CAavB,CAAA;AAED,UAAU,wBAAwB;IAChC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,UAAU,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,GAAI,yCAKjC,wBAAwB,4CAoB1B,CAAA;AAQD,MAAM,MAAM,gBAAgB,GAAG,CAC7B,OAAO,EAAE,4BAA4B,KAClC,4BAA4B,CAAA;AAEjC,eAAO,MAAM,cAAc,GACzB,MAAM,4BAA4B,EAClC,GAAG,YAAY,gBAAgB,EAAE,KAChC,4BAAiG,CAAA;AAEpG,UAAU,wBAAwB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,GACvB,6BAA6B,wBAAwB,KAAG,gBAKvD,CAAA;AAOJ,eAAO,MAAM,oBAAoB,QAAO,MAIvC,CAAA;AAiCD,MAAM,WAAW,eAAe;IA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import { MenuViewProps } from '../../utils';
|
|
2
|
+
/**
|
|
3
|
+
* A JS-only `MenuView` for hosts that cannot supply a native menu. Wraps the
|
|
4
|
+
* trigger in a pressable and opens a popover of the actions under it, or above
|
|
5
|
+
* it when the trigger sits in the lower half of the window.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PopoverMenuView({ actions, onPressAction, onOpenMenu, onCloseMenu, style, testID, children, }: MenuViewProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=popover_menu_view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover_menu_view.d.ts","sourceRoot":"","sources":["../../../src/components/display/popover_menu_view.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,aAAa,EAA+B,MAAM,aAAa,CAAA;AAuDpF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,aAAa,EACb,UAAU,EACV,WAAW,EACX,KAAK,EACL,MAAM,EACN,QAAQ,GACT,EAAE,aAAa,2CAqFf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
import { IconProps } from './icon';
|
|
4
|
+
export interface PressableRowProps extends PropsWithChildren {
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
onPress: () => void;
|
|
7
|
+
style?: ViewStyle;
|
|
8
|
+
textStyle?: any;
|
|
9
|
+
text: string;
|
|
10
|
+
iconPath?: IconProps['name'];
|
|
11
|
+
iconColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const PressableRow: ({ children, isActive, onPress, style, text, textStyle, iconPath, iconColor, }: PressableRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=pressable_row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pressable_row.d.ts","sourceRoot":"","sources":["../../../src/components/display/pressable_row.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAA;AAE1D,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGxC,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAI,+EAS1B,iBAAiB,4CAsBnB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
interface SpinnerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Size of the spinner in px
|
|
5
|
+
* */
|
|
6
|
+
size?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Specifies the maximum size spinner can scale to if the device's font-size is increased.
|
|
9
|
+
*/
|
|
10
|
+
maxFontSizeMultiplier?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Specifies the minimum size spinner can scale to if the device's font-size is decreased.
|
|
13
|
+
*/
|
|
14
|
+
minFontSizeMultiplier?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Style to apply to the spinner
|
|
17
|
+
*/
|
|
18
|
+
style?: StyleProp<ViewStyle>;
|
|
19
|
+
}
|
|
20
|
+
export declare function Spinner({ size, maxFontSizeMultiplier, minFontSizeMultiplier, style, }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/display/spinner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAA;AAoBrE,UAAU,YAAY;IACpB;;SAEK;IACL,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B;AAED,wBAAgB,OAAO,CAAC,EACtB,IAAS,EACT,qBAA+C,EAC/C,qBAA+C,EAC/C,KAAK,GACN,EAAE,YAAY,2CAkCd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/display/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAO/C,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAwBhE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
interface TabsProps<ItemT> {
|
|
4
|
+
data: ArrayLike<ItemT> | null | undefined;
|
|
5
|
+
activeTab?: ItemT;
|
|
6
|
+
keyExtractor?: (_item: ItemT, _index?: number) => string;
|
|
7
|
+
onTabPress?: (_item: ItemT) => void;
|
|
8
|
+
renderItem: (_: {
|
|
9
|
+
item: ItemT;
|
|
10
|
+
index: number;
|
|
11
|
+
}) => React.ReactNode;
|
|
12
|
+
style?: ViewStyle;
|
|
13
|
+
contentContainerStyle?: ViewStyle;
|
|
14
|
+
}
|
|
15
|
+
export declare function Tabs<ItemT>({ activeTab, contentContainerStyle, data, keyExtractor, onTabPress, renderItem, style, }: TabsProps<ItemT>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/display/tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAsC,SAAS,EAAE,MAAM,cAAc,CAAA;AAO5E,UAAU,SAAS,CAAC,KAAK;IACvB,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA;IACzC,SAAS,CAAC,EAAE,KAAK,CAAA;IACjB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACxD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACnC,UAAU,EAAE,CAAC,CAAC,EAAE;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAA;IAClE,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,qBAAqB,CAAC,EAAE,SAAS,CAAA;CAClC;AAQD,wBAAgB,IAAI,CAAC,KAAK,EAAE,EAC1B,SAA+B,EAC/B,qBAAqB,EACrB,IAAI,EACJ,YAAkC,EAClC,UAAU,EACV,UAAU,EACV,KAAK,GACN,EAAE,SAAS,CAAC,KAAK,CAAC,2CA+ElB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TextStyle as ReactNativeTextStyle, TextProps as ReactNativeTextProps, StyleProp } from 'react-native';
|
|
2
|
+
type BorderKeys = 'borderWidth' | 'borderBottomWidth' | 'borderLeftWidth' | 'borderRightWidth' | 'borderTopWidth' | 'borderColor' | 'borderBottomColor' | 'borderLeftColor' | 'borderRightColor' | 'borderTopColor' | 'borderStyle';
|
|
3
|
+
export type TextStyle = Omit<ReactNativeTextStyle, BorderKeys> & {
|
|
4
|
+
[K in BorderKeys]?: never;
|
|
5
|
+
};
|
|
6
|
+
declare const VARIANTS: {
|
|
7
|
+
readonly plain: "plain";
|
|
8
|
+
readonly secondary: "secondary";
|
|
9
|
+
readonly tertiary: "tertiary";
|
|
10
|
+
readonly footnote: "footnote";
|
|
11
|
+
};
|
|
12
|
+
type VariantUnion = (typeof VARIANTS)[keyof typeof VARIANTS];
|
|
13
|
+
export interface TextProps extends Omit<ReactNativeTextProps, 'style'> {
|
|
14
|
+
/**
|
|
15
|
+
* Changes the styles and size of the text.
|
|
16
|
+
*/
|
|
17
|
+
variant?: VariantUnion;
|
|
18
|
+
/**
|
|
19
|
+
* Text styles (border and background properties are not allowed)
|
|
20
|
+
*/
|
|
21
|
+
style?: StyleProp<TextStyle>;
|
|
22
|
+
}
|
|
23
|
+
export declare function Text({ style, variant, children, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/display/text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,IAAI,oBAAoB,EACjC,SAAS,IAAI,oBAAoB,EACjC,SAAS,EACV,MAAM,cAAc,CAAA;AAWrB,KAAK,UAAU,GACX,aAAa,GACb,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,GACb,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,CAAA;AAEjB,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,GAAG;KAC9D,CAAC,IAAI,UAAU,CAAC,CAAC,EAAE,KAAK;CAC1B,CAAA;AAED,QAAA,MAAM,QAAQ;;;;;CAKJ,CAAA;AAEV,KAAK,YAAY,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAA;AAO5D,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC;IACpE;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B;AAED,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,OAAiB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAc/E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { PressableProps } from 'react-native';
|
|
2
|
+
import type { TextProps } from './text';
|
|
3
|
+
import type { ButtonAppearanceUnion } from './utils/button_colors';
|
|
4
|
+
export interface TextButtonProps extends PressableProps {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies whether fonts should be scaled down automatically to fit given style constraints.
|
|
7
|
+
*/
|
|
8
|
+
adjustsFontSizeToFit?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Specifies whether fonts should scale to respect the device's text size accessibility settings. The default is true.
|
|
11
|
+
*/
|
|
12
|
+
allowFontScaling?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Updates the button's colors
|
|
15
|
+
*/
|
|
16
|
+
appearance?: ButtonAppearanceUnion;
|
|
17
|
+
/**
|
|
18
|
+
* Renders text within a `Text`
|
|
19
|
+
*/
|
|
20
|
+
children?: TextProps['children'];
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the maximum size a font can reach when allowFontScaling is enabled.
|
|
23
|
+
*/
|
|
24
|
+
maxFontSizeMultiplier?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies smallest possible scale a font can reach when adjustsFontSizeToFit is enabled. (values 0.01-1.0).
|
|
27
|
+
*/
|
|
28
|
+
minimumFontScale?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Changes the styles and size of the text.
|
|
31
|
+
*/
|
|
32
|
+
variant?: TextProps['variant'];
|
|
33
|
+
/**
|
|
34
|
+
* Changes the styles and size of the text.
|
|
35
|
+
*/
|
|
36
|
+
textStyle?: TextProps['style'];
|
|
37
|
+
}
|
|
38
|
+
export declare function TextButton({ adjustsFontSizeToFit, allowFontScaling, appearance, disabled, children, maxFontSizeMultiplier, minimumFontScale, variant, style, textStyle, ...props }: TextButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=text_button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text_button.d.ts","sourceRoot":"","sources":["../../../src/components/display/text_button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAIlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAEvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAMlE,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAChC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;CAC/B;AAED,wBAAgB,UAAU,CAAC,EACzB,oBAA4B,EAC5B,gBAAuB,EACvB,UAA0B,EAC1B,QAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,gBAAgB,EAChB,OAAiB,EACjB,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,2CA4BjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TextProps } from './text';
|
|
2
|
+
import type { ButtonAppearanceUnion } from './utils/button_colors';
|
|
3
|
+
interface TextInlineButtonProps extends TextProps {
|
|
4
|
+
/**
|
|
5
|
+
* Updates the button's colors
|
|
6
|
+
*/
|
|
7
|
+
appearance?: ButtonAppearanceUnion;
|
|
8
|
+
}
|
|
9
|
+
export declare function TextInlineButton({ appearance, children, disabled, onPress, style, ...props }: TextInlineButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=text_inline_button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text_inline_button.d.ts","sourceRoot":"","sources":["../../../src/components/display/text_inline_button.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAEvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAMlE,UAAU,qBAAsB,SAAQ,SAAS;IAC/C;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAA;CACnC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,UAA0B,EAC1B,QAAQ,EACR,QAAgB,EAChB,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,qBAAqB,2CA4BvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { TextInputProps, TextInput } from 'react-native';
|
|
3
|
+
interface AutoFocusAwareTextInputProps extends TextInputProps {
|
|
4
|
+
inputRef?: RefObject<TextInput | null>;
|
|
5
|
+
}
|
|
6
|
+
export declare const AutoFocusAwareTextInput: (props: AutoFocusAwareTextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=text_input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text_input.d.ts","sourceRoot":"","sources":["../../../src/components/display/text_input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxD,UAAU,4BAA6B,SAAQ,cAAc;IAC3D,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC,CAAA;CACvC;AAED,eAAO,MAAM,uBAAuB,GAAI,OAAO,4BAA4B,4CAe1E,CAAA"}
|