@planningcenter/chat-react-native 3.2.0-rc.9 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/conversation/message_form/message_form_attachment_image.d.ts +13 -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_image.js +78 -0
- package/build/components/conversation/message_form/message_form_attachment_image.js.map +1 -0
- package/build/components/conversation/message_form.d.ts.map +1 -1
- package/build/components/conversation/message_form.js +128 -16
- package/build/components/conversation/message_form.js.map +1 -1
- package/build/components/conversations/conversation_actions.d.ts +2 -2
- package/build/components/conversations/conversation_actions.d.ts.map +1 -1
- package/build/components/conversations/conversation_actions.js.map +1 -1
- package/build/components/conversations/conversation_preview.d.ts +3 -1
- package/build/components/conversations/conversation_preview.d.ts.map +1 -1
- package/build/components/conversations/conversation_preview.js +2 -2
- package/build/components/conversations/conversation_preview.js.map +1 -1
- package/build/components/display/action_button.d.ts +2 -1
- package/build/components/display/action_button.d.ts.map +1 -1
- package/build/components/display/action_button.js +3 -4
- package/build/components/display/action_button.js.map +1 -1
- package/build/components/display/banner.d.ts +6 -1
- package/build/components/display/banner.d.ts.map +1 -1
- package/build/components/display/banner.js +2 -2
- package/build/components/display/banner.js.map +1 -1
- package/build/components/display/banner_collapsible.d.ts +1 -1
- package/build/components/display/banner_collapsible.d.ts.map +1 -1
- package/build/components/display/banner_collapsible.js +2 -2
- package/build/components/display/banner_collapsible.js.map +1 -1
- package/build/components/display/child_notice.d.ts +3 -1
- package/build/components/display/child_notice.d.ts.map +1 -1
- package/build/components/display/child_notice.js +2 -2
- package/build/components/display/child_notice.js.map +1 -1
- package/build/components/group_conversation_list.d.ts +19 -0
- package/build/components/group_conversation_list.d.ts.map +1 -0
- package/build/components/group_conversation_list.js +48 -0
- package/build/components/group_conversation_list.js.map +1 -0
- package/build/components/index.d.ts +1 -0
- package/build/components/index.d.ts.map +1 -1
- package/build/components/index.js +1 -0
- package/build/components/index.js.map +1 -1
- package/build/components/primitive/banner_primitive.d.ts +3 -0
- package/build/components/primitive/banner_primitive.d.ts.map +1 -1
- package/build/components/primitive/banner_primitive.js +4 -4
- package/build/components/primitive/banner_primitive.js.map +1 -1
- package/build/contexts/api_provider.d.ts +1 -1
- package/build/contexts/api_provider.d.ts.map +1 -1
- package/build/contexts/api_provider.js +3 -3
- package/build/contexts/api_provider.js.map +1 -1
- package/build/contexts/chat_context.d.ts +4 -4
- package/build/contexts/chat_context.d.ts.map +1 -1
- package/build/contexts/chat_context.js +3 -3
- package/build/contexts/chat_context.js.map +1 -1
- package/build/contexts/conversations_context.js +1 -1
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/hooks/attachments/supported_extensions.d.ts +2 -0
- package/build/hooks/attachments/supported_extensions.d.ts.map +1 -0
- package/build/hooks/attachments/supported_extensions.js +48 -0
- package/build/hooks/attachments/supported_extensions.js.map +1 -0
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +235 -0
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -0
- package/build/hooks/groups/use_group_members_for_new_conversation.js +55 -0
- package/build/hooks/groups/use_group_members_for_new_conversation.js.map +1 -0
- package/build/hooks/groups/use_groups_conversation_create.d.ts +9 -0
- package/build/hooks/groups/use_groups_conversation_create.d.ts.map +1 -0
- package/build/hooks/groups/use_groups_conversation_create.js +36 -0
- package/build/hooks/groups/use_groups_conversation_create.js.map +1 -0
- package/build/hooks/index.d.ts +4 -0
- package/build/hooks/index.d.ts.map +1 -1
- package/build/hooks/index.js +4 -0
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/use_api.d.ts +43 -43
- package/build/hooks/use_api.d.ts.map +1 -1
- package/build/hooks/use_api.js +5 -0
- package/build/hooks/use_api.js.map +1 -1
- package/build/hooks/use_api_client.d.ts.map +1 -1
- package/build/hooks/use_api_client.js +5 -3
- package/build/hooks/use_api_client.js.map +1 -1
- package/build/hooks/use_attachment_uploader.d.ts +26 -0
- package/build/hooks/use_attachment_uploader.d.ts.map +1 -0
- package/build/hooks/use_attachment_uploader.js +111 -0
- package/build/hooks/use_attachment_uploader.js.map +1 -0
- package/build/hooks/use_chat_permissions.d.ts +14 -14
- package/build/hooks/use_conversation.d.ts.map +1 -1
- package/build/hooks/use_conversation.js +1 -0
- package/build/hooks/use_conversation.js.map +1 -1
- package/build/hooks/use_conversations_actions.d.ts.map +1 -1
- package/build/hooks/use_conversations_actions.js +10 -0
- package/build/hooks/use_conversations_actions.js.map +1 -1
- package/build/hooks/use_conversations_jolt_events.d.ts.map +1 -1
- package/build/hooks/use_conversations_jolt_events.js +4 -1
- package/build/hooks/use_conversations_jolt_events.js.map +1 -1
- package/build/hooks/use_current_person.d.ts +15 -0
- package/build/hooks/use_current_person.d.ts.map +1 -1
- package/build/hooks/use_current_person.js +26 -9
- package/build/hooks/use_current_person.js.map +1 -1
- package/build/hooks/use_groups.d.ts +26 -26
- package/build/hooks/use_groups_groups.d.ts +26 -26
- package/build/hooks/use_jolt.d.ts.map +1 -1
- package/build/hooks/use_jolt.js +15 -22
- package/build/hooks/use_jolt.js.map +1 -1
- package/build/hooks/use_message_create.js +2 -2
- package/build/hooks/use_message_create.js.map +1 -1
- package/build/hooks/use_suspense_api.d.ts.map +1 -1
- package/build/hooks/use_suspense_api.js +5 -0
- package/build/hooks/use_suspense_api.js.map +1 -1
- package/build/hooks/use_teams.d.ts +26 -26
- package/build/hooks/use_upload_client.d.ts +28 -0
- package/build/hooks/use_upload_client.d.ts.map +1 -0
- package/build/hooks/use_upload_client.js +32 -0
- package/build/hooks/use_upload_client.js.map +1 -0
- package/build/index.d.ts +3 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -2
- package/build/index.js.map +1 -1
- package/build/navigation/index.d.ts +52 -34
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +16 -2
- package/build/navigation/index.js.map +1 -1
- package/build/screens/conversation_details_screen.js +2 -2
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts +10 -0
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js +74 -0
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js.map +1 -0
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts +10 -0
- package/build/screens/conversation_filter_recipients/components/header_row.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/components/header_row.js +69 -0
- package/build/screens/conversation_filter_recipients/components/header_row.js.map +1 -0
- package/build/screens/conversation_filter_recipients/components/navigation_header.d.ts +5 -0
- package/build/screens/conversation_filter_recipients/components/navigation_header.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/components/navigation_header.js +46 -0
- package/build/screens/conversation_filter_recipients/components/navigation_header.js.map +1 -0
- package/build/screens/conversation_filter_recipients/context/conversation_filter_recipients_context.d.ts +17 -0
- package/build/screens/conversation_filter_recipients/context/conversation_filter_recipients_context.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/context/conversation_filter_recipients_context.js +37 -0
- package/build/screens/conversation_filter_recipients/context/conversation_filter_recipients_context.js.map +1 -0
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts +1 -3
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js +67 -32
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js.map +1 -1
- 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_flattened_array_of_service_types_with_teams.js +32 -0
- package/build/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.js.map +1 -0
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts +8 -0
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.js +65 -0
- package/build/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.js.map +1 -0
- package/build/screens/conversation_filter_recipients/types.d.ts +38 -0
- package/build/screens/conversation_filter_recipients/types.d.ts.map +1 -0
- package/build/screens/conversation_filter_recipients/types.js +6 -0
- package/build/screens/conversation_filter_recipients/types.js.map +1 -0
- package/build/screens/conversation_filters/components/conversation_filters.js +5 -2
- package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
- package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/rows.js +6 -1
- package/build/screens/conversation_filters/components/rows.js.map +1 -1
- package/build/screens/conversation_filters/group_filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/group_filters.js +12 -4
- package/build/screens/conversation_filters/group_filters.js.map +1 -1
- package/build/screens/conversation_filters/hooks/filters.d.ts +40 -40
- package/build/screens/conversation_filters/hooks/filters.js +1 -1
- package/build/screens/conversation_filters/hooks/filters.js.map +1 -1
- package/build/screens/conversation_filters/team_filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/team_filters.js +12 -4
- package/build/screens/conversation_filters/team_filters.js.map +1 -1
- package/build/screens/conversation_filters_screen.js +1 -0
- package/build/screens/conversation_filters_screen.js.map +1 -1
- package/build/screens/conversation_new/components/groups_form.d.ts +4 -2
- package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -1
- package/build/screens/conversation_new/components/groups_form.js +40 -55
- package/build/screens/conversation_new/components/groups_form.js.map +1 -1
- package/build/screens/conversation_new/components/team_form.d.ts +1 -1
- package/build/screens/conversation_new/components/team_form.js.map +1 -1
- package/build/screens/conversation_new/conversation_new_screen.d.ts +5 -2
- package/build/screens/conversation_new/conversation_new_screen.d.ts.map +1 -1
- package/build/screens/conversation_new/conversation_new_screen.js +2 -2
- package/build/screens/conversation_new/conversation_new_screen.js.map +1 -1
- package/build/screens/conversation_screen.d.ts +7 -0
- package/build/screens/conversation_screen.d.ts.map +1 -1
- package/build/screens/conversation_screen.js +103 -4
- package/build/screens/conversation_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/components/groups_without_chat_disclaimer_row.d.ts +2 -0
- package/build/screens/conversation_select_recipients/components/groups_without_chat_disclaimer_row.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/groups_without_chat_disclaimer_row.js +17 -0
- package/build/screens/conversation_select_recipients/components/groups_without_chat_disclaimer_row.js.map +1 -0
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts +12 -0
- package/build/screens/conversation_select_recipients/components/recipient_link_row.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/recipient_link_row.js +61 -0
- package/build/screens/conversation_select_recipients/components/recipient_link_row.js.map +1 -0
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts +7 -0
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/view_more_link_row.js +21 -0
- package/build/screens/conversation_select_recipients/components/view_more_link_row.js.map +1 -0
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.d.ts +4 -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 +48 -0
- package/build/screens/conversation_select_recipients/conversation_select_group_recipients_screen.js.map +1 -0
- package/build/screens/conversation_select_recipients/conversation_select_recipients_screen.d.ts +2 -6
- package/build/screens/conversation_select_recipients/conversation_select_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_recipients_screen.js +37 -49
- package/build/screens/conversation_select_recipients/conversation_select_recipients_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts +9 -0
- package/build/screens/conversation_select_recipients/types/screen_props.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/types/screen_props.js +2 -0
- package/build/screens/conversation_select_recipients/types/screen_props.js.map +1 -0
- package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/list_header_component.js +18 -4
- package/build/screens/conversations/components/list_header_component.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts +2 -1
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +32 -1
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/screens/send_giphy_screen.js +29 -1
- package/build/screens/send_giphy_screen.js.map +1 -1
- package/build/types/resources/groups/groups_group_resource.d.ts +1 -1
- package/build/types/resources/groups/groups_group_resource.js.map +1 -1
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts +14 -0
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts.map +1 -0
- package/build/types/resources/groups/groups_member_resource_with_person.js +2 -0
- package/build/types/resources/groups/groups_member_resource_with_person.js.map +1 -0
- package/build/types/resources/member.d.ts +0 -10
- package/build/types/resources/member.d.ts.map +1 -1
- package/build/types/resources/member.js.map +1 -1
- package/build/types/resources/message.d.ts +2 -0
- package/build/types/resources/message.d.ts.map +1 -1
- package/build/types/resources/message.js.map +1 -1
- package/build/types/resources/oauth_token.d.ts +4 -4
- package/build/types/resources/oauth_token.d.ts.map +1 -1
- package/build/types/resources/oauth_token.js.map +1 -1
- package/build/utils/client/client.d.ts +4 -8
- package/build/utils/client/client.d.ts.map +1 -1
- package/build/utils/client/client.js +10 -9
- package/build/utils/client/client.js.map +1 -1
- package/build/utils/date.d.ts +5 -0
- package/build/utils/date.d.ts.map +1 -1
- package/build/utils/date.js +8 -1
- package/build/utils/date.js.map +1 -1
- 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/destructure_chat_group_graph_id.js +8 -0
- package/build/utils/destructure_chat_group_graph_id.js.map +1 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/index.js +1 -0
- package/build/utils/index.js.map +1 -1
- package/build/utils/native_adapters/configuration.d.ts +4 -1
- package/build/utils/native_adapters/configuration.d.ts.map +1 -1
- package/build/utils/native_adapters/configuration.js +13 -1
- package/build/utils/native_adapters/configuration.js.map +1 -1
- package/build/utils/native_adapters/image_picker.d.ts +25 -0
- package/build/utils/native_adapters/image_picker.d.ts.map +1 -0
- package/build/utils/native_adapters/image_picker.js +9 -0
- package/build/utils/native_adapters/image_picker.js.map +1 -0
- package/build/utils/native_adapters/index.d.ts +1 -0
- package/build/utils/native_adapters/index.d.ts.map +1 -1
- package/build/utils/native_adapters/index.js +1 -0
- package/build/utils/native_adapters/index.js.map +1 -1
- package/build/utils/session.d.ts +6 -2
- package/build/utils/session.d.ts.map +1 -1
- package/build/utils/session.js +6 -1
- package/build/utils/session.js.map +1 -1
- package/build/utils/upload_uri.d.ts +23 -0
- package/build/utils/upload_uri.d.ts.map +1 -0
- package/build/utils/upload_uri.js +60 -0
- package/build/utils/upload_uri.js.map +1 -0
- package/build/utils/uri.d.ts +10 -2
- package/build/utils/uri.d.ts.map +1 -1
- package/build/utils/uri.js +24 -6
- package/build/utils/uri.js.map +1 -1
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts +2 -0
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts.map +1 -1
- package/build/vendor/tapestry/alias_tokens_color_map.js +2 -0
- package/build/vendor/tapestry/alias_tokens_color_map.js.map +1 -1
- package/package.json +4 -3
- package/src/__tests__/hooks/useTheme.tsx +1 -1
- package/src/__tests__/{client.ts → utils/client.ts} +7 -115
- package/src/__tests__/{session.ts → utils/session.ts} +4 -4
- package/src/__tests__/utils/uri.ts +107 -0
- package/src/components/conversation/message_form/message_form_attachment_image.tsx +121 -0
- package/src/components/conversation/message_form.tsx +197 -31
- package/src/components/conversations/conversation_actions.tsx +2 -2
- package/src/components/conversations/conversation_preview.tsx +8 -2
- package/src/components/display/action_button.tsx +4 -3
- package/src/components/display/banner.tsx +7 -1
- package/src/components/display/banner_collapsible.tsx +6 -1
- package/src/components/display/child_notice.tsx +9 -3
- package/src/components/group_conversation_list.tsx +82 -0
- package/src/components/index.tsx +1 -0
- package/src/components/primitive/banner_primitive.tsx +12 -5
- package/src/contexts/api_provider.tsx +3 -3
- package/src/contexts/chat_context.tsx +7 -7
- package/src/contexts/conversations_context.tsx +1 -1
- package/src/hooks/attachments/supported_extensions.ts +47 -0
- package/src/hooks/groups/use_group_members_for_new_conversation.ts +74 -0
- package/src/hooks/groups/use_groups_conversation_create.ts +50 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/use_api.ts +13 -7
- package/src/hooks/use_api_client.ts +7 -3
- package/src/hooks/use_attachment_uploader.ts +179 -0
- package/src/hooks/use_conversation.ts +1 -0
- package/src/hooks/use_conversations_actions.ts +11 -0
- package/src/hooks/use_conversations_jolt_events.ts +5 -1
- package/src/hooks/use_current_person.ts +37 -9
- package/src/hooks/use_jolt.ts +18 -23
- package/src/hooks/use_message_create.ts +2 -2
- package/src/hooks/use_suspense_api.ts +6 -0
- package/src/hooks/use_upload_client.ts +67 -0
- package/src/index.tsx +3 -1
- package/src/navigation/index.tsx +23 -2
- package/src/screens/conversation_details_screen.tsx +2 -2
- package/src/screens/conversation_filter_recipients/components/checkbox_row.tsx +101 -0
- package/src/screens/conversation_filter_recipients/components/header_row.tsx +99 -0
- package/src/screens/conversation_filter_recipients/components/navigation_header.tsx +68 -0
- package/src/screens/conversation_filter_recipients/context/conversation_filter_recipients_context.tsx +53 -0
- package/src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx +90 -49
- package/src/screens/conversation_filter_recipients/hooks/use_flattened_array_of_service_types_with_teams.tsx +50 -0
- package/src/screens/conversation_filter_recipients/hooks/use_service_types_with_teams.ts +90 -0
- package/src/screens/conversation_filter_recipients/types.tsx +47 -0
- package/src/screens/conversation_filters/components/conversation_filters.tsx +5 -2
- package/src/screens/conversation_filters/components/rows.tsx +6 -1
- package/src/screens/conversation_filters/group_filters.tsx +23 -14
- package/src/screens/conversation_filters/hooks/filters.ts +1 -1
- package/src/screens/conversation_filters/team_filters.tsx +23 -14
- package/src/screens/conversation_filters_screen.tsx +1 -0
- package/src/screens/conversation_new/components/groups_form.tsx +66 -72
- package/src/screens/conversation_new/components/team_form.tsx +1 -1
- package/src/screens/conversation_new/conversation_new_screen.tsx +11 -4
- package/src/screens/conversation_screen.tsx +123 -4
- package/src/screens/conversation_select_recipients/components/groups_without_chat_disclaimer_row.tsx +21 -0
- package/src/screens/conversation_select_recipients/components/recipient_link_row.tsx +91 -0
- package/src/screens/conversation_select_recipients/components/view_more_link_row.tsx +30 -0
- package/src/screens/conversation_select_recipients/conversation_select_group_recipients_screen.tsx +79 -0
- package/src/screens/conversation_select_recipients/conversation_select_recipients_screen.tsx +57 -65
- package/src/screens/conversation_select_recipients/types/screen_props.tsx +11 -0
- package/src/screens/conversations/components/list_header_component.tsx +20 -4
- package/src/screens/conversations/conversations_screen.tsx +37 -2
- package/src/screens/send_giphy_screen.tsx +30 -1
- package/src/types/resources/groups/groups_group_resource.ts +1 -1
- package/src/types/resources/groups/groups_member_resource_with_person.ts +13 -0
- package/src/types/resources/member.ts +0 -11
- package/src/types/resources/message.ts +2 -0
- package/src/types/resources/oauth_token.ts +4 -4
- package/src/utils/client/client.ts +13 -13
- package/src/utils/date.ts +11 -1
- package/src/utils/destructure_chat_group_graph_id.ts +25 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/native_adapters/configuration.ts +15 -1
- package/src/utils/native_adapters/image_picker.ts +31 -0
- package/src/utils/native_adapters/index.ts +1 -0
- package/src/utils/session.ts +10 -4
- package/src/utils/upload_uri.ts +69 -0
- package/src/utils/uri.ts +30 -6
- package/src/vendor/tapestry/alias_tokens_color_map.ts +3 -0
- package/build/screens/conversation_new/components/member_error_card.d.ts +0 -5
- package/build/screens/conversation_new/components/member_error_card.d.ts.map +0 -1
- package/build/screens/conversation_new/components/member_error_card.js +0 -17
- package/build/screens/conversation_new/components/member_error_card.js.map +0 -1
- package/build/screens/conversation_new/utils/fake_member_data.d.ts +0 -3
- package/build/screens/conversation_new/utils/fake_member_data.d.ts.map +0 -1
- package/build/screens/conversation_new/utils/fake_member_data.js +0 -129
- package/build/screens/conversation_new/utils/fake_member_data.js.map +0 -1
- package/src/screens/conversation_new/components/member_error_card.tsx +0 -20
- package/src/screens/conversation_new/utils/fake_member_data.ts +0 -130
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
export const FAKE_MEMBER_DATA = [
|
|
2
|
-
{
|
|
3
|
-
type: 'Member',
|
|
4
|
-
id: 1,
|
|
5
|
-
name: 'John Doe',
|
|
6
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JD.png',
|
|
7
|
-
badges: [{ title: 'Leader' }, { title: 'Conversation owner' }],
|
|
8
|
-
child: false,
|
|
9
|
-
role: 'unknown',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
type: 'Member',
|
|
13
|
-
id: 2,
|
|
14
|
-
name: 'Jane Smith',
|
|
15
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JS.png',
|
|
16
|
-
badges: [{ title: 'Leader' }],
|
|
17
|
-
child: false,
|
|
18
|
-
role: 'unknown',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
type: 'Member',
|
|
22
|
-
id: 3,
|
|
23
|
-
name: 'Bob Wilson',
|
|
24
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/BW.png',
|
|
25
|
-
badges: [],
|
|
26
|
-
child: false,
|
|
27
|
-
role: 'unknown',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
type: 'Member',
|
|
31
|
-
id: 4,
|
|
32
|
-
name: 'Sarah Johnson',
|
|
33
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/SJ.png',
|
|
34
|
-
badges: [{ title: 'Leader' }],
|
|
35
|
-
child: false,
|
|
36
|
-
role: 'unknown',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
type: 'Member',
|
|
40
|
-
id: 5,
|
|
41
|
-
name: 'Mike Brown',
|
|
42
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/MB.png',
|
|
43
|
-
badges: [],
|
|
44
|
-
child: false,
|
|
45
|
-
role: 'unknown',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: 'Member',
|
|
49
|
-
id: 6,
|
|
50
|
-
name: 'Emily Davis',
|
|
51
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/ED.png',
|
|
52
|
-
badges: [{ title: 'Leader' }],
|
|
53
|
-
child: false,
|
|
54
|
-
role: 'unknown',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: 'Member',
|
|
58
|
-
id: 7,
|
|
59
|
-
name: 'James Miller',
|
|
60
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JM.png',
|
|
61
|
-
badges: [],
|
|
62
|
-
child: false,
|
|
63
|
-
role: 'unknown',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
type: 'Member',
|
|
67
|
-
id: 8,
|
|
68
|
-
name: 'Lisa Anderson',
|
|
69
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/LA.png',
|
|
70
|
-
badges: [],
|
|
71
|
-
child: false,
|
|
72
|
-
role: 'unknown',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
type: 'Member',
|
|
76
|
-
id: 9,
|
|
77
|
-
name: 'David Taylor',
|
|
78
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/DT.png',
|
|
79
|
-
badges: [{ title: 'Leader' }],
|
|
80
|
-
child: false,
|
|
81
|
-
role: 'unknown',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: 'Member',
|
|
85
|
-
id: 10,
|
|
86
|
-
name: 'Rachel White',
|
|
87
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/RW.png',
|
|
88
|
-
badges: [],
|
|
89
|
-
child: false,
|
|
90
|
-
role: 'unknown',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: 'Member',
|
|
94
|
-
id: 11,
|
|
95
|
-
name: 'Kevin Martin',
|
|
96
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/KM.png',
|
|
97
|
-
badges: [{ title: 'Leader' }],
|
|
98
|
-
child: false,
|
|
99
|
-
role: 'unknown',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
type: 'Member',
|
|
103
|
-
id: 12,
|
|
104
|
-
name: 'Michelle Lee',
|
|
105
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/ML.png',
|
|
106
|
-
badges: [],
|
|
107
|
-
child: false,
|
|
108
|
-
role: 'unknown',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
type: 'Member',
|
|
112
|
-
id: 13,
|
|
113
|
-
name: 'Daniel Clark',
|
|
114
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/DC.png',
|
|
115
|
-
badges: [],
|
|
116
|
-
child: false,
|
|
117
|
-
role: 'unknown',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
type: 'Member',
|
|
121
|
-
id: 14,
|
|
122
|
-
name: 'Amanda Moore',
|
|
123
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/AM.png',
|
|
124
|
-
badges: [{ title: 'Leader' }],
|
|
125
|
-
child: false,
|
|
126
|
-
role: 'unknown',
|
|
127
|
-
},
|
|
128
|
-
];
|
|
129
|
-
//# sourceMappingURL=fake_member_data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fake_member_data.js","sourceRoot":"","sources":["../../../../src/screens/conversation_new/utils/fake_member_data.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAqB;IAChD;QACE,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,CAAC;Q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AE,kEAAkE;QAC1E,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,kEAAkE;QAC1E,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;QAC7B,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,SAAS;KAChB;CACF,CAAA","sourcesContent":["import { MemberResource } from '../../../types'\n\nexport const FAKE_MEMBER_DATA: MemberResource[] = [\n {\n type: 'Member',\n id: 1,\n name: 'John Doe',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JD.png',\n badges: [{ title: 'Leader' }, { title: 'Conversation owner' }],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 2,\n name: 'Jane Smith',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JS.png',\n badges: [{ title: 'Leader' }],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 3,\n name: 'Bob Wilson',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/BW.png',\n badges: [],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 4,\n name: 'Sarah Johnson',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/SJ.png',\n badges: [{ title: 'Leader' }],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 5,\n name: 'Mike Brown',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/MB.png',\n badges: [],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 6,\n name: 'Emily Davis',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/ED.png',\n badges: [{ title: 'Leader' }],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 7,\n name: 'James Miller',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JM.png',\n badges: [],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 8,\n name: 'Lisa Anderson',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/LA.png',\n badges: [],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 9,\n name: 'David Taylor',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/DT.png',\n badges: [{ title: 'Leader' }],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 10,\n name: 'Rachel White',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/RW.png',\n badges: [],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 11,\n name: 'Kevin Martin',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/KM.png',\n badges: [{ title: 'Leader' }],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 12,\n name: 'Michelle Lee',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/ML.png',\n badges: [],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 13,\n name: 'Daniel Clark',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/DC.png',\n badges: [],\n child: false,\n role: 'unknown',\n },\n {\n type: 'Member',\n id: 14,\n name: 'Amanda Moore',\n avatar: 'https://avatars.planningcenteronline.com/uploads/initials/AM.png',\n badges: [{ title: 'Leader' }],\n child: false,\n role: 'unknown',\n },\n]\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { View, StyleSheet } from 'react-native'
|
|
3
|
-
import { Banner } from '../../../components'
|
|
4
|
-
|
|
5
|
-
export const MemberErrorCard = ({ description }: { description: string }) => {
|
|
6
|
-
const styles = useStyles()
|
|
7
|
-
return (
|
|
8
|
-
<View style={styles.memberErrorBanner}>
|
|
9
|
-
<Banner appearance="error" description={description} />
|
|
10
|
-
</View>
|
|
11
|
-
)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const useStyles = () => {
|
|
15
|
-
return StyleSheet.create({
|
|
16
|
-
memberErrorBanner: {
|
|
17
|
-
paddingTop: 16,
|
|
18
|
-
},
|
|
19
|
-
})
|
|
20
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { MemberResource } from '../../../types'
|
|
2
|
-
|
|
3
|
-
export const FAKE_MEMBER_DATA: MemberResource[] = [
|
|
4
|
-
{
|
|
5
|
-
type: 'Member',
|
|
6
|
-
id: 1,
|
|
7
|
-
name: 'John Doe',
|
|
8
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JD.png',
|
|
9
|
-
badges: [{ title: 'Leader' }, { title: 'Conversation owner' }],
|
|
10
|
-
child: false,
|
|
11
|
-
role: 'unknown',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
type: 'Member',
|
|
15
|
-
id: 2,
|
|
16
|
-
name: 'Jane Smith',
|
|
17
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JS.png',
|
|
18
|
-
badges: [{ title: 'Leader' }],
|
|
19
|
-
child: false,
|
|
20
|
-
role: 'unknown',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
type: 'Member',
|
|
24
|
-
id: 3,
|
|
25
|
-
name: 'Bob Wilson',
|
|
26
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/BW.png',
|
|
27
|
-
badges: [],
|
|
28
|
-
child: false,
|
|
29
|
-
role: 'unknown',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
type: 'Member',
|
|
33
|
-
id: 4,
|
|
34
|
-
name: 'Sarah Johnson',
|
|
35
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/SJ.png',
|
|
36
|
-
badges: [{ title: 'Leader' }],
|
|
37
|
-
child: false,
|
|
38
|
-
role: 'unknown',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
type: 'Member',
|
|
42
|
-
id: 5,
|
|
43
|
-
name: 'Mike Brown',
|
|
44
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/MB.png',
|
|
45
|
-
badges: [],
|
|
46
|
-
child: false,
|
|
47
|
-
role: 'unknown',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: 'Member',
|
|
51
|
-
id: 6,
|
|
52
|
-
name: 'Emily Davis',
|
|
53
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/ED.png',
|
|
54
|
-
badges: [{ title: 'Leader' }],
|
|
55
|
-
child: false,
|
|
56
|
-
role: 'unknown',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: 'Member',
|
|
60
|
-
id: 7,
|
|
61
|
-
name: 'James Miller',
|
|
62
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/JM.png',
|
|
63
|
-
badges: [],
|
|
64
|
-
child: false,
|
|
65
|
-
role: 'unknown',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: 'Member',
|
|
69
|
-
id: 8,
|
|
70
|
-
name: 'Lisa Anderson',
|
|
71
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/LA.png',
|
|
72
|
-
badges: [],
|
|
73
|
-
child: false,
|
|
74
|
-
role: 'unknown',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
type: 'Member',
|
|
78
|
-
id: 9,
|
|
79
|
-
name: 'David Taylor',
|
|
80
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/DT.png',
|
|
81
|
-
badges: [{ title: 'Leader' }],
|
|
82
|
-
child: false,
|
|
83
|
-
role: 'unknown',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
type: 'Member',
|
|
87
|
-
id: 10,
|
|
88
|
-
name: 'Rachel White',
|
|
89
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/RW.png',
|
|
90
|
-
badges: [],
|
|
91
|
-
child: false,
|
|
92
|
-
role: 'unknown',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
type: 'Member',
|
|
96
|
-
id: 11,
|
|
97
|
-
name: 'Kevin Martin',
|
|
98
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/KM.png',
|
|
99
|
-
badges: [{ title: 'Leader' }],
|
|
100
|
-
child: false,
|
|
101
|
-
role: 'unknown',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: 'Member',
|
|
105
|
-
id: 12,
|
|
106
|
-
name: 'Michelle Lee',
|
|
107
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/ML.png',
|
|
108
|
-
badges: [],
|
|
109
|
-
child: false,
|
|
110
|
-
role: 'unknown',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
type: 'Member',
|
|
114
|
-
id: 13,
|
|
115
|
-
name: 'Daniel Clark',
|
|
116
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/DC.png',
|
|
117
|
-
badges: [],
|
|
118
|
-
child: false,
|
|
119
|
-
role: 'unknown',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
type: 'Member',
|
|
123
|
-
id: 14,
|
|
124
|
-
name: 'Amanda Moore',
|
|
125
|
-
avatar: 'https://avatars.planningcenteronline.com/uploads/initials/AM.png',
|
|
126
|
-
badges: [{ title: 'Leader' }],
|
|
127
|
-
child: false,
|
|
128
|
-
role: 'unknown',
|
|
129
|
-
},
|
|
130
|
-
]
|