@planningcenter/chat-react-native 4.7.1-qa-staging.8 → 4.7.1-qa-1119.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/conversations/bulk_conversation_actions_bar.d.ts +2 -0
- package/build/components/conversations/bulk_conversation_actions_bar.d.ts.map +1 -0
- package/build/components/conversations/bulk_conversation_actions_bar.js +215 -0
- package/build/components/conversations/bulk_conversation_actions_bar.js.map +1 -0
- package/build/components/conversations/conversation_actions.d.ts +2 -1
- package/build/components/conversations/conversation_actions.d.ts.map +1 -1
- package/build/components/conversations/conversation_actions.js +173 -130
- package/build/components/conversations/conversation_actions.js.map +1 -1
- package/build/components/conversations/conversation_preview.d.ts.map +1 -1
- package/build/components/conversations/conversation_preview.js +168 -110
- package/build/components/conversations/conversation_preview.js.map +1 -1
- package/build/components/conversations/conversations.d.ts.map +1 -1
- package/build/components/conversations/conversations.js +50 -48
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/display/checkbox.d.ts +8 -0
- package/build/components/display/checkbox.d.ts.map +1 -0
- package/build/components/display/checkbox.js +87 -0
- package/build/components/display/checkbox.js.map +1 -0
- package/build/components/display/icon.d.ts +3 -1
- package/build/components/display/icon.d.ts.map +1 -1
- package/build/components/display/icon.js +2 -0
- package/build/components/display/icon.js.map +1 -1
- package/build/components/display/index.d.ts +1 -0
- package/build/components/display/index.d.ts.map +1 -1
- package/build/components/display/index.js +1 -0
- package/build/components/display/index.js.map +1 -1
- package/build/contexts/api_provider.d.ts.map +1 -1
- package/build/contexts/api_provider.js +2 -0
- package/build/contexts/api_provider.js.map +1 -1
- package/build/contexts/conversations_context.d.ts +5 -0
- package/build/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js +121 -32
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/contexts/session_context.d.ts +0 -1
- package/build/contexts/session_context.d.ts.map +1 -1
- package/build/contexts/session_context.js +3 -0
- package/build/contexts/session_context.js.map +1 -1
- package/build/hooks/use_bulk_conversation_actions.d.ts +8 -0
- package/build/hooks/use_bulk_conversation_actions.d.ts.map +1 -0
- package/build/hooks/use_bulk_conversation_actions.js +309 -0
- package/build/hooks/use_bulk_conversation_actions.js.map +1 -0
- package/build/hooks/use_conversation_jolt_events.d.ts.map +1 -1
- package/build/hooks/use_conversation_jolt_events.js +3 -2
- package/build/hooks/use_conversation_jolt_events.js.map +1 -1
- package/build/hooks/use_conversations_actions.d.ts +9 -9
- package/build/hooks/use_conversations_actions.d.ts.map +1 -1
- package/build/hooks/use_conversations_actions.js +12 -7
- package/build/hooks/use_conversations_actions.js.map +1 -1
- package/build/hooks/use_conversations_cache.d.ts +15 -5
- package/build/hooks/use_conversations_cache.d.ts.map +1 -1
- package/build/hooks/use_conversations_cache.js +170 -122
- package/build/hooks/use_conversations_cache.js.map +1 -1
- package/build/hooks/use_conversations_jolt_events.d.ts.map +1 -1
- package/build/hooks/use_conversations_jolt_events.js +47 -20
- package/build/hooks/use_conversations_jolt_events.js.map +1 -1
- package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -1
- package/build/hooks/use_mark_latest_message_read.js +5 -4
- package/build/hooks/use_mark_latest_message_read.js.map +1 -1
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +5 -7
- package/build/navigation/index.js.map +1 -1
- package/build/screens/conversation_actions_screen.d.ts +2 -0
- package/build/screens/conversation_actions_screen.d.ts.map +1 -1
- package/build/screens/conversation_actions_screen.js +380 -46
- package/build/screens/conversation_actions_screen.js.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js +9 -64
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts +5 -0
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +156 -31
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/types/jolt_events/index.d.ts +2 -0
- package/build/types/jolt_events/index.d.ts.map +1 -1
- package/build/types/jolt_events/index.js.map +1 -1
- package/build/types/jolt_events/person_events.d.ts +9 -0
- package/build/types/jolt_events/person_events.d.ts.map +1 -0
- package/build/types/jolt_events/person_events.js +2 -0
- package/build/types/jolt_events/person_events.js.map +1 -0
- package/build/utils/jolt/parse_stream_user_event_type.d.ts +3 -0
- package/build/utils/jolt/parse_stream_user_event_type.d.ts.map +1 -0
- package/build/utils/jolt/parse_stream_user_event_type.js +9 -0
- package/build/utils/jolt/parse_stream_user_event_type.js.map +1 -0
- package/build/utils/native_adapters/configuration.d.ts +3 -0
- package/build/utils/native_adapters/configuration.d.ts.map +1 -1
- package/build/utils/native_adapters/configuration.js +3 -0
- package/build/utils/native_adapters/configuration.js.map +1 -1
- 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/native_adapters/updates.d.ts +11 -0
- package/build/utils/native_adapters/updates.d.ts.map +1 -0
- package/build/utils/native_adapters/updates.js +8 -0
- package/build/utils/native_adapters/updates.js.map +1 -0
- package/build/utils/throttled_refresh.d.ts +7 -0
- package/build/utils/throttled_refresh.d.ts.map +1 -0
- package/build/utils/throttled_refresh.js +42 -0
- package/build/utils/throttled_refresh.js.map +1 -0
- package/package.json +3 -3
- package/src/__tests__/contexts/session_context.tsx +19 -39
- package/src/__tests__/hooks/useTheme.tsx +0 -7
- package/src/__tests__/hooks/use_async_storage.test.tsx +1 -87
- package/src/__tests__/hooks/use_attachment_uploader.test.tsx +0 -11
- package/src/__tests__/hooks/use_font_scale.test.ts +0 -25
- package/src/__tests__/utils/cache/page_mutations.ts +3 -68
- package/src/__tests__/utils/client.ts +6 -15
- package/src/__tests__/utils/native_adapters/configuration.ts +15 -50
- package/src/__tests__/utils/parse_simple_markdown.ts +0 -6
- package/src/__tests__/utils/session.ts +0 -11
- package/src/__tests__/utils/theme.ts +0 -17
- package/src/components/conversations/__tests__/bulk_conversation_actions_bar.test.tsx +95 -0
- package/src/components/conversations/__tests__/conversation_actions.test.tsx +35 -3
- package/src/components/conversations/__tests__/conversation_preview.test.tsx +69 -3
- package/src/components/conversations/__tests__/conversations.test.tsx +4 -1
- package/src/components/conversations/bulk_conversation_actions_bar.tsx +140 -0
- package/src/components/conversations/conversation_actions.tsx +17 -9
- package/src/components/conversations/conversation_preview.tsx +20 -2
- package/src/components/conversations/conversations.tsx +2 -1
- package/src/components/display/__tests__/filter_dropdown.test.tsx +1 -19
- package/src/components/display/__tests__/icon_tile.test.tsx +24 -7
- package/src/components/display/checkbox.tsx +47 -0
- package/src/components/display/icon.tsx +3 -0
- package/src/components/display/index.ts +1 -0
- package/src/components/page/__tests__/component_error_boundary.test.tsx +0 -12
- package/src/contexts/__tests__/conversations_context.test.tsx +86 -0
- package/src/contexts/api_provider.tsx +2 -0
- package/src/contexts/conversations_context.tsx +69 -2
- package/src/contexts/session_context.tsx +3 -1
- package/src/hooks/__tests__/jolt_refresh_throttling.test.tsx +194 -0
- package/src/hooks/__tests__/use_bulk_conversation_actions.test.tsx +119 -0
- package/src/hooks/__tests__/use_conversations_jolt_events.test.tsx +1 -0
- package/src/hooks/__tests__/use_conversations_mark_read.test.tsx +38 -12
- package/src/hooks/__tests__/use_hide_conversation.test.tsx +15 -3
- package/src/hooks/__tests__/use_mark_latest_message_read.test.tsx +23 -2
- package/src/hooks/use_bulk_conversation_actions.ts +173 -0
- package/src/hooks/use_conversation_jolt_events.ts +2 -1
- package/src/hooks/use_conversations_actions.ts +7 -4
- package/src/hooks/use_conversations_cache.ts +33 -26
- package/src/hooks/use_conversations_jolt_events.ts +24 -10
- package/src/hooks/use_mark_latest_message_read.ts +6 -5
- package/src/navigation/index.tsx +8 -8
- package/src/screens/__tests__/conversation_actions_screen.test.tsx +48 -6
- package/src/screens/__tests__/conversation_details_screen.test.tsx +0 -19
- package/src/screens/avatar_picker/__tests__/avatar_picker_state.test.ts +0 -14
- package/src/screens/conversation_actions_screen.tsx +145 -12
- package/src/screens/conversation_filter_recipients/components/checkbox_row.tsx +3 -35
- package/src/screens/conversations/__tests__/conversations_screen.test.tsx +35 -9
- package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +0 -8
- package/src/screens/conversations/components/__tests__/search_list_header_component.test.tsx +0 -10
- package/src/screens/conversations/conversations_screen.tsx +67 -3
- package/src/screens/search/components/__tests__/search_results_list.test.tsx +1 -0
- package/src/types/jolt_events/index.ts +2 -0
- package/src/types/jolt_events/person_events.ts +16 -0
- package/src/utils/__tests__/attachment_kind.test.ts +0 -4
- package/src/utils/__tests__/convert_attachments_for_create.test.ts +0 -28
- package/src/utils/__tests__/is_input_editable.test.ts +1 -2
- package/src/utils/__tests__/message_text.test.ts +0 -5
- package/src/utils/__tests__/session_manager.test.ts +0 -83
- package/src/utils/__tests__/sha_256.test.ts +0 -34
- package/src/utils/__tests__/throttled_refresh.test.ts +101 -0
- package/src/utils/__tests__/uri.test.ts +51 -0
- package/src/utils/jolt/__tests__/parse_stream_user_event_type.test.ts +27 -0
- package/src/utils/jolt/parse_stream_user_event_type.ts +16 -0
- package/src/utils/native_adapters/configuration.ts +5 -0
- package/src/utils/native_adapters/index.ts +1 -0
- package/src/utils/native_adapters/updates.ts +16 -0
- package/src/utils/throttled_refresh.ts +62 -0
- package/src/__tests__/event-polyfill.test.ts +0 -313
- package/src/__tests__/index.tsx +0 -5
- package/src/__tests__/jest.ts +0 -11
- package/src/__tests__/utils/uri.ts +0 -65
- package/src/components/display/__tests__/version_footer.test.tsx +0 -48
- package/src/screens/search/components/__tests__/search_blank_states.test.tsx +0 -20
- package/src/utils/__tests__/membership_sync_info_text.test.ts +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/navigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,E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;;;kCAvFW,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAA5B,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsT3D,CAAA;AAEF,KAAK,kBAAkB,GAAG,eAAe,CAAC,OAAO,SAAS,CAAC,CAAA;AAE3D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,eAAe,CAAC;QACxB,UAAU,aAAc,SAAQ,kBAAkB;SAAG;KACtD;CACF"}
|
|
@@ -19,7 +19,7 @@ import { ConversationSelectDirectMessageRecipientsScreen } from '../screens/conv
|
|
|
19
19
|
import { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen';
|
|
20
20
|
import { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen';
|
|
21
21
|
import { ConversationSelectTypeScreen, ConversationSelectTypeScreenOptions } from '../screens/conversation_select_type_screen';
|
|
22
|
-
import { ConversationsScreen } from '../screens/conversations/conversations_screen';
|
|
22
|
+
import { ConversationsScreen, conversationsScreenOptions } from '../screens/conversations/conversations_screen';
|
|
23
23
|
import { GetHelpScreen } from '../screens/get_help_screen';
|
|
24
24
|
import { GroupNotificationLevelSelectScreen, GroupNotificationLevelSelectScreenOptions } from '../screens/group_notification_level_select_screen';
|
|
25
25
|
import { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen';
|
|
@@ -135,12 +135,10 @@ export const ChatStack = createNativeStackNavigator({
|
|
|
135
135
|
options: ({
|
|
136
136
|
route,
|
|
137
137
|
navigation
|
|
138
|
-
}) =>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
onPress: navigation.goBack
|
|
143
|
-
}))
|
|
138
|
+
}) => conversationsScreenOptions({
|
|
139
|
+
title: route.params?.title,
|
|
140
|
+
onClose: navigation.goBack
|
|
141
|
+
})
|
|
144
142
|
},
|
|
145
143
|
ConversationFilters: {
|
|
146
144
|
screen: ConversationFiltersScreen,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["createNativeStackNavigator","CardStyleInterpolators","React","composeOptions","withMinimalBack","withRightClose","withRightDone","useDirectMessagesEligible","useQualifiedByAge","AttachmentActionsScreen","AttachmentActionsScreenOptions","AvatarPickerScreen","AvatarPickerScreenOptions","AvatarPickerCreateScreenOptions","BugReportScreen","BugReportScreenOptions","MessageReadReceiptsScreen","MessageReadReceiptsScreenOptions","ConversationActionsScreen","ConversationActionsScreenOptions","ConversationDetailsScreen","ConversationFilterReceipientsScreenOptions","ConversationFilterRecipientsScreen","ConversationFiltersScreen","ConversationFiltersScreenOptions","ConversationNewScreen","ConversationNotificationLevelSelectScreen","ConversationNotificationLevelSelectScreenOptions","ConversationScreen","ConversationScreenTitle","ConversationNewEntryScreen","ConversationSelectDirectMessageRecipientsScreen","ConversationSelectGroupRecipientsScreen","ConversationSelectTeamsILeadRecipientsScreen","ConversationSelectTypeScreen","ConversationSelectTypeScreenOptions","ConversationsScreen","GetHelpScreen","GroupNotificationLevelSelectScreen","GroupNotificationLevelSelectScreenOptions","GroupNotificationSettingsScreen","MessageActionsScreen","MessageActionsScreenOptions","MessageReportScreen","MessageReportScreenOptions","NotFound","NotificationSettingsScreen","PreferredAppSelectionScreen","ReactionsScreen","ReactionsScreenOptions","SearchScreen","SearchScreenOptions","SendGiphyScreen","SendGiphyScreenOptions","SettingsScreen","SystemMessagePeopleScreen","SystemMessagePeopleScreenOptions","TeamConversationScreen","isLiquidGlassEnabled","ScreenLayoutWithChatAccessGate","jsx","_jsx","globalScreenOptions","headerBackButtonDisplayMode","headerShadowVisible","headerTransparent","headerBlurEffect","NewConversationStack","initialRouteName","screenOptions","screenLayout","screens","ConversationNewEntry","screen","options","navigation","title","headerBackVisible","onPress","goBack","ConversationSelectGroupRecipients","route","popTo","params","ConversationSelectTeamsILeadRecipients","ConversationSelectDirectMessageRecipients","if","ConversationFilterRecipients","ConversationNew","headerLeft","chat_group_graph_id","group_source_app_name","AvatarPicker","ChatStack","Conversations","headerTitle","ConversationFilters","Search","Conversation","props","conversation_id","badge","deleted","muted","children","getParent","ConversationReply","TeamConversation","animation","cardStyleInterpolator","forNoAnimation","ConversationDetails","presentation","ChatSettings","NotificationSettings","getState","index","PreferredAppSelection","GroupNotificationSettings","GroupNotificationLevelSelect","ConversationNotificationLevelSelect","New","layout","headerShown","GroupConversationNew","SendGiphy","MessageActions","ConversationActions","MessageReport","AttachmentActions","ConversationSelectType","Reactions","SystemMessagePeople","MessageReadReceipts","BugReport","GetHelp","linking","path"],"sources":["../../src/navigation/index.tsx"],"sourcesContent":["import { StaticParamList } from '@react-navigation/native'\nimport {\n createNativeStackNavigator,\n NativeStackHeaderRightProps,\n NativeStackNavigationOptions,\n} from '@react-navigation/native-stack'\nimport { CardStyleInterpolators } from '@react-navigation/stack'\nimport React from 'react'\nimport {\n composeOptions,\n withMinimalBack,\n withRightClose,\n withRightDone,\n} from '../components/display/platform_modal_header_buttons'\nimport { useDirectMessagesEligible, useQualifiedByAge } from '../hooks'\nimport {\n AttachmentActionsScreen,\n AttachmentActionsScreenOptions,\n} from '../screens/attachment_actions/attachment_actions_screen'\nimport {\n AvatarPickerScreen,\n AvatarPickerScreenOptions,\n AvatarPickerCreateScreenOptions,\n} from '../screens/avatar_picker/avatar_picker_screen'\nimport { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen'\nimport {\n MessageReadReceiptsScreen,\n MessageReadReceiptsScreenOptions,\n} from '../screens/conversation/message_read_receipts_screen'\nimport {\n ConversationActionsScreen,\n ConversationActionsScreenOptions,\n} from '../screens/conversation_actions_screen'\nimport { ConversationDetailsScreen } from '../screens/conversation_details_screen'\nimport {\n ConversationFilterReceipientsScreenOptions,\n ConversationFilterRecipientsScreen,\n} from '../screens/conversation_filter_recipients/conversation_filter_recipients_screen'\nimport { ConversationFiltersParams } from '../screens/conversation_filters/screen_props'\nimport {\n ConversationFiltersScreen,\n ConversationFiltersScreenOptions,\n} from '../screens/conversation_filters_screen'\nimport { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen'\nimport {\n ConversationNotificationLevelSelectScreen,\n ConversationNotificationLevelSelectScreenOptions,\n} from '../screens/conversation_notification_level_select_screen'\nimport {\n ConversationRouteProps,\n ConversationScreen,\n ConversationScreenTitle,\n} from '../screens/conversation_screen'\nimport { ConversationNewEntryScreen } from '../screens/conversation_select_recipients/conversation_new_entry_screen'\nimport { ConversationSelectDirectMessageRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen'\nimport { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen'\nimport { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen'\nimport { ConversationSelectRecipientsParams } from '../screens/conversation_select_recipients/types/screen_props'\nimport {\n ConversationSelectTypeScreen,\n ConversationSelectTypeScreenOptions,\n} from '../screens/conversation_select_type_screen'\nimport { ConversationsScreen } from '../screens/conversations/conversations_screen'\nimport { GetHelpScreen } from '../screens/get_help_screen'\nimport {\n GroupNotificationLevelSelectScreen,\n GroupNotificationLevelSelectScreenOptions,\n} from '../screens/group_notification_level_select_screen'\nimport { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen'\nimport {\n MessageActionsScreen,\n MessageActionsScreenOptions,\n} from '../screens/message_actions_screen'\nimport { MessageReportScreen, MessageReportScreenOptions } from '../screens/message_report_screen'\nimport { NotFound } from '../screens/not_found'\nimport { NotificationSettingsScreen } from '../screens/notification_settings_screen'\nimport { PreferredAppSelectionScreen } from '../screens/preferred_app_selection_screen'\nimport { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen'\nimport { SearchScreen, SearchScreenOptions } from '../screens/search/search_screen'\nimport { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen'\nimport { SettingsScreen } from '../screens/settings_screen'\nimport {\n SystemMessagePeopleScreen,\n SystemMessagePeopleScreenOptions,\n} from '../screens/system_message_people_screen'\nimport { TeamConversationScreen } from '../screens/team_conversation_screen'\nimport { isLiquidGlassEnabled } from '../utils/liquid_glass'\nimport { ScreenLayoutWithChatAccessGate } from './screenLayout'\n\nconst globalScreenOptions: () => NativeStackNavigationOptions = () => ({\n headerBackButtonDisplayMode: 'minimal',\n ...(isLiquidGlassEnabled()\n ? { headerShadowVisible: false, headerTransparent: true, headerBlurEffect: 'regular' }\n : {}),\n})\n\nexport const NewConversationStack = createNativeStackNavigator({\n initialRouteName: 'ConversationNewEntry',\n screenOptions: globalScreenOptions,\n screenLayout: ScreenLayoutWithChatAccessGate,\n screens: {\n ConversationNewEntry: {\n screen: ConversationNewEntryScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationSelectGroupRecipients: {\n screen: ConversationSelectGroupRecipientsScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n },\n withRightClose({\n onPress: () => navigation.popTo('Conversations', route.params),\n })\n ),\n },\n ConversationSelectTeamsILeadRecipients: {\n screen: ConversationSelectTeamsILeadRecipientsScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n },\n withRightClose({\n onPress: () => navigation.popTo('Conversations', route.params),\n })\n ),\n },\n ConversationSelectDirectMessageRecipients: {\n screen: ConversationSelectDirectMessageRecipientsScreen,\n if: useDirectMessagesEligible,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationFilterRecipients: {\n screen: ConversationFilterRecipientsScreen,\n options: ConversationFilterReceipientsScreenOptions,\n },\n ConversationNew: {\n screen: ConversationNewScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerLeft: () => null,\n },\n withRightClose({\n onPress: () => {\n const { chat_group_graph_id, group_source_app_name } =\n route.params as ConversationSelectRecipientsParams\n navigation.popTo('Conversations', { chat_group_graph_id, group_source_app_name })\n },\n })\n ),\n },\n AvatarPicker: {\n screen: AvatarPickerScreen,\n options: AvatarPickerCreateScreenOptions,\n },\n },\n})\n\nexport const ChatStack = createNativeStackNavigator({\n screenOptions: globalScreenOptions,\n screenLayout: ScreenLayoutWithChatAccessGate,\n screens: {\n Conversations: {\n screen: ConversationsScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n headerTitle: (route.params as { title?: string })?.title ?? 'Chat',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationFilters: {\n screen: ConversationFiltersScreen,\n options: ConversationFiltersScreenOptions,\n },\n Search: {\n screen: SearchScreen,\n options: SearchScreenOptions,\n },\n Conversation: {\n screen: ConversationScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n headerTitle: (props: NativeStackHeaderRightProps) => {\n const { conversation_id, title, badge, deleted, muted } =\n route.params as ConversationRouteProps\n\n return (\n <ConversationScreenTitle\n conversation_id={conversation_id}\n badge={badge}\n deleted={deleted}\n muted={muted}\n {...props}\n >\n {title ?? 'Conversation'}\n </ConversationScreenTitle>\n )\n },\n },\n withMinimalBack({\n onPress: () => {\n const params = route.params as ConversationRouteProps\n if ((params as ConversationFiltersParams)?.chat_group_graph_id) {\n // Ensure that conversations with a graph id pass them back to the conversation list\n const { chat_group_graph_id } = params\n navigation.popTo('Conversations', { chat_group_graph_id })\n } else {\n navigation.goBack()\n }\n },\n }),\n withRightClose({ onPress: () => navigation.getParent()?.goBack() })\n ),\n },\n ConversationReply: {\n screen: ConversationScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n title: (route.params as ConversationRouteProps)?.title ?? 'Reply',\n },\n withMinimalBack({ onPress: navigation.goBack })\n ),\n },\n TeamConversation: {\n screen: TeamConversationScreen,\n if: useQualifiedByAge,\n options: {\n title: 'Finding conversation...',\n animation: 'none',\n cardStyleInterpolator: CardStyleInterpolators.forNoAnimation,\n },\n },\n ConversationDetails: {\n screen: ConversationDetailsScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n presentation: 'modal',\n title: 'Conversation details',\n },\n withRightDone({ onPress: navigation.goBack })\n ),\n },\n AvatarPicker: {\n screen: AvatarPickerScreen,\n options: AvatarPickerScreenOptions,\n },\n ChatSettings: {\n screen: SettingsScreen,\n options: ({ navigation }) =>\n composeOptions({ title: 'Chat settings' }, withMinimalBack({ onPress: navigation.goBack })),\n },\n NotificationSettings: {\n screen: NotificationSettingsScreen,\n options: ({ navigation }) =>\n navigation.getState().index === 0\n ? composeOptions(\n { title: 'Chat notifications' },\n withRightClose({ onPress: navigation.goBack })\n )\n : composeOptions(\n { title: 'Chat notifications' },\n withMinimalBack({ onPress: navigation.goBack })\n ),\n },\n PreferredAppSelection: {\n screen: PreferredAppSelectionScreen,\n options: ({ navigation }) =>\n composeOptions({ title: 'Preferred app' }, withMinimalBack({ onPress: navigation.goBack })),\n },\n GroupNotificationSettings: {\n screen: GroupNotificationSettingsScreen,\n options: ({ route, navigation }) => {\n const title = (route.params as { title?: string })?.title || 'Group Settings'\n\n // The dismiss button only shows when this is the entry screen (e.g.\n // deep links); deeper in the stack the back button covers dismissal.\n return navigation.getState().index === 0\n ? composeOptions(\n {\n title,\n },\n withRightClose({ onPress: navigation.goBack })\n )\n : composeOptions({ title }, withMinimalBack({ onPress: navigation.goBack }))\n },\n },\n GroupNotificationLevelSelect: {\n screen: GroupNotificationLevelSelectScreen,\n options: GroupNotificationLevelSelectScreenOptions,\n },\n ConversationNotificationLevelSelect: {\n screen: ConversationNotificationLevelSelectScreen,\n options: ConversationNotificationLevelSelectScreenOptions,\n },\n New: {\n screen: NewConversationStack,\n if: useQualifiedByAge,\n layout: ({ children }) => children,\n options: {\n headerShown: false,\n presentation: 'modal',\n },\n },\n GroupConversationNew: {\n screen: ConversationNewScreen,\n if: useQualifiedByAge,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerLeft: () => null,\n },\n withRightClose({ onPress: () => navigation.getParent()?.goBack() })\n ),\n },\n SendGiphy: {\n screen: SendGiphyScreen,\n options: SendGiphyScreenOptions,\n },\n MessageActions: {\n screen: MessageActionsScreen,\n // Something about sheetAllowedDetents declared inline breaks TS\n options: MessageActionsScreenOptions,\n },\n ConversationActions: {\n screen: ConversationActionsScreen,\n options: ConversationActionsScreenOptions,\n },\n MessageReport: {\n screen: MessageReportScreen,\n options: MessageReportScreenOptions,\n },\n AttachmentActions: {\n screen: AttachmentActionsScreen,\n options: AttachmentActionsScreenOptions,\n },\n ConversationSelectType: {\n screen: ConversationSelectTypeScreen,\n options: ConversationSelectTypeScreenOptions,\n },\n Reactions: {\n screen: ReactionsScreen,\n options: ReactionsScreenOptions,\n },\n SystemMessagePeople: {\n screen: SystemMessagePeopleScreen,\n options: SystemMessagePeopleScreenOptions,\n },\n MessageReadReceipts: {\n screen: MessageReadReceiptsScreen,\n options: MessageReadReceiptsScreenOptions,\n },\n BugReport: {\n screen: BugReportScreen,\n options: BugReportScreenOptions,\n },\n GetHelp: {\n screen: GetHelpScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n headerTitle: 'Get help',\n headerBackVisible: false,\n presentation: 'modal',\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n NotFound: {\n screen: NotFound,\n options: {\n title: '404',\n },\n linking: {\n path: '*',\n },\n },\n },\n})\n\ntype ChatStackParamList = StaticParamList<typeof ChatStack>\n\ndeclare global {\n namespace ReactNavigation {\n interface RootParamList extends ChatStackParamList {}\n }\n}\n"],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AAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["createNativeStackNavigator","CardStyleInterpolators","React","composeOptions","withMinimalBack","withRightClose","withRightDone","useDirectMessagesEligible","useQualifiedByAge","AttachmentActionsScreen","AttachmentActionsScreenOptions","AvatarPickerScreen","AvatarPickerScreenOptions","AvatarPickerCreateScreenOptions","BugReportScreen","BugReportScreenOptions","MessageReadReceiptsScreen","MessageReadReceiptsScreenOptions","ConversationActionsScreen","ConversationActionsScreenOptions","ConversationDetailsScreen","ConversationFilterReceipientsScreenOptions","ConversationFilterRecipientsScreen","ConversationFiltersScreen","ConversationFiltersScreenOptions","ConversationNewScreen","ConversationNotificationLevelSelectScreen","ConversationNotificationLevelSelectScreenOptions","ConversationScreen","ConversationScreenTitle","ConversationNewEntryScreen","ConversationSelectDirectMessageRecipientsScreen","ConversationSelectGroupRecipientsScreen","ConversationSelectTeamsILeadRecipientsScreen","ConversationSelectTypeScreen","ConversationSelectTypeScreenOptions","ConversationsScreen","conversationsScreenOptions","GetHelpScreen","GroupNotificationLevelSelectScreen","GroupNotificationLevelSelectScreenOptions","GroupNotificationSettingsScreen","MessageActionsScreen","MessageActionsScreenOptions","MessageReportScreen","MessageReportScreenOptions","NotFound","NotificationSettingsScreen","PreferredAppSelectionScreen","ReactionsScreen","ReactionsScreenOptions","SearchScreen","SearchScreenOptions","SendGiphyScreen","SendGiphyScreenOptions","SettingsScreen","SystemMessagePeopleScreen","SystemMessagePeopleScreenOptions","TeamConversationScreen","isLiquidGlassEnabled","ScreenLayoutWithChatAccessGate","jsx","_jsx","globalScreenOptions","headerBackButtonDisplayMode","headerShadowVisible","headerTransparent","headerBlurEffect","NewConversationStack","initialRouteName","screenOptions","screenLayout","screens","ConversationNewEntry","screen","options","navigation","title","headerBackVisible","onPress","goBack","ConversationSelectGroupRecipients","route","popTo","params","ConversationSelectTeamsILeadRecipients","ConversationSelectDirectMessageRecipients","if","ConversationFilterRecipients","ConversationNew","headerLeft","chat_group_graph_id","group_source_app_name","AvatarPicker","ChatStack","Conversations","onClose","ConversationFilters","Search","Conversation","headerTitle","props","conversation_id","badge","deleted","muted","children","getParent","ConversationReply","TeamConversation","animation","cardStyleInterpolator","forNoAnimation","ConversationDetails","presentation","ChatSettings","NotificationSettings","getState","index","PreferredAppSelection","GroupNotificationSettings","GroupNotificationLevelSelect","ConversationNotificationLevelSelect","New","layout","headerShown","GroupConversationNew","SendGiphy","MessageActions","ConversationActions","MessageReport","AttachmentActions","ConversationSelectType","Reactions","SystemMessagePeople","MessageReadReceipts","BugReport","GetHelp","linking","path"],"sources":["../../src/navigation/index.tsx"],"sourcesContent":["import { StaticParamList } from '@react-navigation/native'\nimport {\n createNativeStackNavigator,\n NativeStackHeaderRightProps,\n NativeStackNavigationOptions,\n} from '@react-navigation/native-stack'\nimport { CardStyleInterpolators } from '@react-navigation/stack'\nimport React from 'react'\nimport {\n composeOptions,\n withMinimalBack,\n withRightClose,\n withRightDone,\n} from '../components/display/platform_modal_header_buttons'\nimport { useDirectMessagesEligible, useQualifiedByAge } from '../hooks'\nimport {\n AttachmentActionsScreen,\n AttachmentActionsScreenOptions,\n} from '../screens/attachment_actions/attachment_actions_screen'\nimport {\n AvatarPickerScreen,\n AvatarPickerScreenOptions,\n AvatarPickerCreateScreenOptions,\n} from '../screens/avatar_picker/avatar_picker_screen'\nimport { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen'\nimport {\n MessageReadReceiptsScreen,\n MessageReadReceiptsScreenOptions,\n} from '../screens/conversation/message_read_receipts_screen'\nimport {\n ConversationActionsScreen,\n ConversationActionsScreenOptions,\n} from '../screens/conversation_actions_screen'\nimport { ConversationDetailsScreen } from '../screens/conversation_details_screen'\nimport {\n ConversationFilterReceipientsScreenOptions,\n ConversationFilterRecipientsScreen,\n} from '../screens/conversation_filter_recipients/conversation_filter_recipients_screen'\nimport { ConversationFiltersParams } from '../screens/conversation_filters/screen_props'\nimport {\n ConversationFiltersScreen,\n ConversationFiltersScreenOptions,\n} from '../screens/conversation_filters_screen'\nimport { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen'\nimport {\n ConversationNotificationLevelSelectScreen,\n ConversationNotificationLevelSelectScreenOptions,\n} from '../screens/conversation_notification_level_select_screen'\nimport {\n ConversationRouteProps,\n ConversationScreen,\n ConversationScreenTitle,\n} from '../screens/conversation_screen'\nimport { ConversationNewEntryScreen } from '../screens/conversation_select_recipients/conversation_new_entry_screen'\nimport { ConversationSelectDirectMessageRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen'\nimport { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen'\nimport { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen'\nimport { ConversationSelectRecipientsParams } from '../screens/conversation_select_recipients/types/screen_props'\nimport {\n ConversationSelectTypeScreen,\n ConversationSelectTypeScreenOptions,\n} from '../screens/conversation_select_type_screen'\nimport {\n ConversationsScreen,\n conversationsScreenOptions,\n} from '../screens/conversations/conversations_screen'\nimport { GetHelpScreen } from '../screens/get_help_screen'\nimport {\n GroupNotificationLevelSelectScreen,\n GroupNotificationLevelSelectScreenOptions,\n} from '../screens/group_notification_level_select_screen'\nimport { GroupNotificationSettingsScreen } from '../screens/group_notification_settings_screen'\nimport {\n MessageActionsScreen,\n MessageActionsScreenOptions,\n} from '../screens/message_actions_screen'\nimport { MessageReportScreen, MessageReportScreenOptions } from '../screens/message_report_screen'\nimport { NotFound } from '../screens/not_found'\nimport { NotificationSettingsScreen } from '../screens/notification_settings_screen'\nimport { PreferredAppSelectionScreen } from '../screens/preferred_app_selection_screen'\nimport { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen'\nimport { SearchScreen, SearchScreenOptions } from '../screens/search/search_screen'\nimport { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen'\nimport { SettingsScreen } from '../screens/settings_screen'\nimport {\n SystemMessagePeopleScreen,\n SystemMessagePeopleScreenOptions,\n} from '../screens/system_message_people_screen'\nimport { TeamConversationScreen } from '../screens/team_conversation_screen'\nimport { isLiquidGlassEnabled } from '../utils/liquid_glass'\nimport { ScreenLayoutWithChatAccessGate } from './screenLayout'\n\nconst globalScreenOptions: () => NativeStackNavigationOptions = () => ({\n headerBackButtonDisplayMode: 'minimal',\n ...(isLiquidGlassEnabled()\n ? { headerShadowVisible: false, headerTransparent: true, headerBlurEffect: 'regular' }\n : {}),\n})\n\nexport const NewConversationStack = createNativeStackNavigator({\n initialRouteName: 'ConversationNewEntry',\n screenOptions: globalScreenOptions,\n screenLayout: ScreenLayoutWithChatAccessGate,\n screens: {\n ConversationNewEntry: {\n screen: ConversationNewEntryScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationSelectGroupRecipients: {\n screen: ConversationSelectGroupRecipientsScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n },\n withRightClose({\n onPress: () => navigation.popTo('Conversations', route.params),\n })\n ),\n },\n ConversationSelectTeamsILeadRecipients: {\n screen: ConversationSelectTeamsILeadRecipientsScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n },\n withRightClose({\n onPress: () => navigation.popTo('Conversations', route.params),\n })\n ),\n },\n ConversationSelectDirectMessageRecipients: {\n screen: ConversationSelectDirectMessageRecipientsScreen,\n if: useDirectMessagesEligible,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerBackVisible: false,\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n ConversationFilterRecipients: {\n screen: ConversationFilterRecipientsScreen,\n options: ConversationFilterReceipientsScreenOptions,\n },\n ConversationNew: {\n screen: ConversationNewScreen,\n options: ({ navigation, route }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerLeft: () => null,\n },\n withRightClose({\n onPress: () => {\n const { chat_group_graph_id, group_source_app_name } =\n route.params as ConversationSelectRecipientsParams\n navigation.popTo('Conversations', { chat_group_graph_id, group_source_app_name })\n },\n })\n ),\n },\n AvatarPicker: {\n screen: AvatarPickerScreen,\n options: AvatarPickerCreateScreenOptions,\n },\n },\n})\n\nexport const ChatStack = createNativeStackNavigator({\n screenOptions: globalScreenOptions,\n screenLayout: ScreenLayoutWithChatAccessGate,\n screens: {\n Conversations: {\n screen: ConversationsScreen,\n options: ({ route, navigation }) =>\n conversationsScreenOptions({\n title: (route.params as { title?: string })?.title,\n onClose: navigation.goBack,\n }),\n },\n ConversationFilters: {\n screen: ConversationFiltersScreen,\n options: ConversationFiltersScreenOptions,\n },\n Search: {\n screen: SearchScreen,\n options: SearchScreenOptions,\n },\n Conversation: {\n screen: ConversationScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n headerTitle: (props: NativeStackHeaderRightProps) => {\n const { conversation_id, title, badge, deleted, muted } =\n route.params as ConversationRouteProps\n\n return (\n <ConversationScreenTitle\n conversation_id={conversation_id}\n badge={badge}\n deleted={deleted}\n muted={muted}\n {...props}\n >\n {title ?? 'Conversation'}\n </ConversationScreenTitle>\n )\n },\n },\n withMinimalBack({\n onPress: () => {\n const params = route.params as ConversationRouteProps\n if ((params as ConversationFiltersParams)?.chat_group_graph_id) {\n // Ensure that conversations with a graph id pass them back to the conversation list\n const { chat_group_graph_id } = params\n navigation.popTo('Conversations', { chat_group_graph_id })\n } else {\n navigation.goBack()\n }\n },\n }),\n withRightClose({ onPress: () => navigation.getParent()?.goBack() })\n ),\n },\n ConversationReply: {\n screen: ConversationScreen,\n options: ({ route, navigation }) =>\n composeOptions(\n {\n title: (route.params as ConversationRouteProps)?.title ?? 'Reply',\n },\n withMinimalBack({ onPress: navigation.goBack })\n ),\n },\n TeamConversation: {\n screen: TeamConversationScreen,\n if: useQualifiedByAge,\n options: {\n title: 'Finding conversation...',\n animation: 'none',\n cardStyleInterpolator: CardStyleInterpolators.forNoAnimation,\n },\n },\n ConversationDetails: {\n screen: ConversationDetailsScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n presentation: 'modal',\n title: 'Conversation details',\n },\n withRightDone({ onPress: navigation.goBack })\n ),\n },\n AvatarPicker: {\n screen: AvatarPickerScreen,\n options: AvatarPickerScreenOptions,\n },\n ChatSettings: {\n screen: SettingsScreen,\n options: ({ navigation }) =>\n composeOptions({ title: 'Chat settings' }, withMinimalBack({ onPress: navigation.goBack })),\n },\n NotificationSettings: {\n screen: NotificationSettingsScreen,\n options: ({ navigation }) =>\n navigation.getState().index === 0\n ? composeOptions(\n { title: 'Chat notifications' },\n withRightClose({ onPress: navigation.goBack })\n )\n : composeOptions(\n { title: 'Chat notifications' },\n withMinimalBack({ onPress: navigation.goBack })\n ),\n },\n PreferredAppSelection: {\n screen: PreferredAppSelectionScreen,\n options: ({ navigation }) =>\n composeOptions({ title: 'Preferred app' }, withMinimalBack({ onPress: navigation.goBack })),\n },\n GroupNotificationSettings: {\n screen: GroupNotificationSettingsScreen,\n options: ({ route, navigation }) => {\n const title = (route.params as { title?: string })?.title || 'Group Settings'\n\n // The dismiss button only shows when this is the entry screen (e.g.\n // deep links); deeper in the stack the back button covers dismissal.\n return navigation.getState().index === 0\n ? composeOptions(\n {\n title,\n },\n withRightClose({ onPress: navigation.goBack })\n )\n : composeOptions({ title }, withMinimalBack({ onPress: navigation.goBack }))\n },\n },\n GroupNotificationLevelSelect: {\n screen: GroupNotificationLevelSelectScreen,\n options: GroupNotificationLevelSelectScreenOptions,\n },\n ConversationNotificationLevelSelect: {\n screen: ConversationNotificationLevelSelectScreen,\n options: ConversationNotificationLevelSelectScreenOptions,\n },\n New: {\n screen: NewConversationStack,\n if: useQualifiedByAge,\n layout: ({ children }) => children,\n options: {\n headerShown: false,\n presentation: 'modal',\n },\n },\n GroupConversationNew: {\n screen: ConversationNewScreen,\n if: useQualifiedByAge,\n options: ({ navigation }) =>\n composeOptions(\n {\n title: 'New conversation',\n headerLeft: () => null,\n },\n withRightClose({ onPress: () => navigation.getParent()?.goBack() })\n ),\n },\n SendGiphy: {\n screen: SendGiphyScreen,\n options: SendGiphyScreenOptions,\n },\n MessageActions: {\n screen: MessageActionsScreen,\n // Something about sheetAllowedDetents declared inline breaks TS\n options: MessageActionsScreenOptions,\n },\n ConversationActions: {\n screen: ConversationActionsScreen,\n options: ConversationActionsScreenOptions,\n },\n MessageReport: {\n screen: MessageReportScreen,\n options: MessageReportScreenOptions,\n },\n AttachmentActions: {\n screen: AttachmentActionsScreen,\n options: AttachmentActionsScreenOptions,\n },\n ConversationSelectType: {\n screen: ConversationSelectTypeScreen,\n options: ConversationSelectTypeScreenOptions,\n },\n Reactions: {\n screen: ReactionsScreen,\n options: ReactionsScreenOptions,\n },\n SystemMessagePeople: {\n screen: SystemMessagePeopleScreen,\n options: SystemMessagePeopleScreenOptions,\n },\n MessageReadReceipts: {\n screen: MessageReadReceiptsScreen,\n options: MessageReadReceiptsScreenOptions,\n },\n BugReport: {\n screen: BugReportScreen,\n options: BugReportScreenOptions,\n },\n GetHelp: {\n screen: GetHelpScreen,\n options: ({ navigation }) =>\n composeOptions(\n {\n headerTitle: 'Get help',\n headerBackVisible: false,\n presentation: 'modal',\n },\n withRightClose({ onPress: navigation.goBack })\n ),\n },\n NotFound: {\n screen: NotFound,\n options: {\n title: '404',\n },\n linking: {\n path: '*',\n },\n },\n },\n})\n\ntype ChatStackParamList = StaticParamList<typeof ChatStack>\n\ndeclare global {\n namespace ReactNavigation {\n interface RootParamList extends ChatStackParamList {}\n }\n}\n"],"mappings":"AACA,SACEA,0BAA0B,QAGrB,gCAAgC;AACvC,SAASC,sBAAsB,QAAQ,yBAAyB;AAChE,OAAOC,KAAK,MAAM,OAAO;AACzB,SACEC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,aAAa,QACR,qDAAqD;AAC5D,SAASC,yBAAyB,EAAEC,iBAAiB,QAAQ,UAAU;AACvE,SACEC,uBAAuB,EACvBC,8BAA8B,QACz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EAAEjE,uBAAuB;MAC/BkE,OAAO,EAAEjE;IACX,CAAC;IACD0H,sBAAsB,EAAE;MACtB1D,MAAM,EAAExC,4BAA4B;MACpCyC,OAAO,EAAExC;IACX,CAAC;IACDkG,SAAS,EAAE;MACT3D,MAAM,EAAEzB,eAAe;MACvB0B,OAAO,EAAEzB;IACX,CAAC;IACDoF,mBAAmB,EAAE;MACnB5D,MAAM,EAAElB,yBAAyB;MACjCmB,OAAO,EAAElB;IACX,CAAC;IACD8E,mBAAmB,EAAE;MACnB7D,MAAM,EAAE1D,yBAAyB;MACjC2D,OAAO,EAAE1D;IACX,CAAC;IACDuH,SAAS,EAAE;MACT9D,MAAM,EAAE5D,eAAe;MACvB6D,OAAO,EAAE5D;IACX,CAAC;IACD0H,OAAO,EAAE;MACP/D,MAAM,EAAEpC,aAAa;MACrBqC,OAAO,EAAEA,CAAC;QAAEC;MAAW,CAAC,KACtBzE,cAAc,CACZ;QACEiG,WAAW,EAAE,UAAU;QACvBtB,iBAAiB,EAAE,KAAK;QACxBoC,YAAY,EAAE;MAChB,CAAC,EACD7G,cAAc,CAAC;QAAE0E,OAAO,EAAEH,UAAU,CAACI;MAAO,CAAC,CAC/C;IACJ,CAAC;IACDlC,QAAQ,EAAE;MACR4B,MAAM,EAAE5B,QAAQ;MAChB6B,OAAO,EAAE;QACPE,KAAK,EAAE;MACT,CAAC;MACD6D,OAAO,EAAE;QACPC,IAAI,EAAE;MACR;IACF;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,6 +2,8 @@ import { StaticScreenProps } from '@react-navigation/native';
|
|
|
2
2
|
export declare const ConversationActionsScreenOptions: () => import("@react-navigation/native-stack").NativeStackNavigationOptions;
|
|
3
3
|
export type ConversationActionsScreenProps = StaticScreenProps<{
|
|
4
4
|
conversation_id: number;
|
|
5
|
+
read?: boolean;
|
|
6
|
+
muted?: boolean;
|
|
5
7
|
}>;
|
|
6
8
|
export declare function ConversationActionsScreen({ route }: ConversationActionsScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
//# sourceMappingURL=conversation_actions_screen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation_actions_screen.d.ts","sourceRoot":"","sources":["../../src/screens/conversation_actions_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation_actions_screen.d.ts","sourceRoot":"","sources":["../../src/screens/conversation_actions_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAiB,MAAM,0BAA0B,CAAA;AAYzF,eAAO,MAAM,gCAAgC,6EAG3C,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,eAAe,EAAE,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC,CAAA;AAEF,wBAAgB,yBAAyB,CAAC,EAAE,KAAK,EAAE,EAAE,8BAA8B,2CA4IlF"}
|
|
@@ -1,89 +1,423 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useNavigation } from '@react-navigation/native';
|
|
2
|
+
import { StackActions, useNavigation } from '@react-navigation/native';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { StyleSheet } from 'react-native';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { ConversationAvatar, Heading, Text } from '../components/display';
|
|
5
6
|
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet';
|
|
6
|
-
import {
|
|
7
|
+
import { useTheme } from '../hooks';
|
|
8
|
+
import { useConversation, useConversationMute } from '../hooks/use_conversation';
|
|
9
|
+
import { useConversationsMarkRead } from '../hooks/use_conversations_actions';
|
|
7
10
|
import { useHideConversation } from '../hooks/use_hide_conversation';
|
|
8
11
|
import { useHideConversationsEnabled } from '../hooks/use_hide_conversations_enabled';
|
|
9
|
-
import {
|
|
12
|
+
import { isArchivedConversation, MAX_FONT_SIZE_MULTIPLIER_LANDMARK } from '../utils';
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
14
|
export const ConversationActionsScreenOptions = getFormSheetScreenOptions({
|
|
11
|
-
headerTitle: 'Conversation actions'
|
|
15
|
+
headerTitle: 'Conversation actions',
|
|
16
|
+
sheetAllowedDetents: 'fitToContents'
|
|
12
17
|
});
|
|
13
18
|
export function ConversationActionsScreen(t0) {
|
|
14
|
-
const $ = _c(
|
|
19
|
+
const $ = _c(86);
|
|
15
20
|
const {
|
|
16
21
|
route
|
|
17
22
|
} = t0;
|
|
18
23
|
const navigation = useNavigation();
|
|
19
24
|
const styles = useStyles();
|
|
20
25
|
const {
|
|
21
|
-
|
|
22
|
-
} =
|
|
26
|
+
conversation_id
|
|
27
|
+
} = route.params;
|
|
23
28
|
let t1;
|
|
24
|
-
if ($[0] !==
|
|
29
|
+
if ($[0] !== conversation_id) {
|
|
25
30
|
t1 = {
|
|
26
|
-
|
|
31
|
+
conversation_id
|
|
27
32
|
};
|
|
28
|
-
$[0] =
|
|
33
|
+
$[0] = conversation_id;
|
|
29
34
|
$[1] = t1;
|
|
30
35
|
} else {
|
|
31
36
|
t1 = $[1];
|
|
32
37
|
}
|
|
38
|
+
const {
|
|
39
|
+
data: conversation
|
|
40
|
+
} = useConversation(t1);
|
|
41
|
+
let t2;
|
|
42
|
+
if ($[2] !== conversation) {
|
|
43
|
+
t2 = {
|
|
44
|
+
conversation
|
|
45
|
+
};
|
|
46
|
+
$[2] = conversation;
|
|
47
|
+
$[3] = t2;
|
|
48
|
+
} else {
|
|
49
|
+
t2 = $[3];
|
|
50
|
+
}
|
|
33
51
|
const {
|
|
34
52
|
hidden,
|
|
35
53
|
setHidden,
|
|
36
|
-
isPending
|
|
37
|
-
} = useHideConversation(
|
|
54
|
+
isPending: isHiddenPending
|
|
55
|
+
} = useHideConversation(t2);
|
|
56
|
+
let t3;
|
|
57
|
+
if ($[4] !== conversation) {
|
|
58
|
+
t3 = {
|
|
59
|
+
conversation
|
|
60
|
+
};
|
|
61
|
+
$[4] = conversation;
|
|
62
|
+
$[5] = t3;
|
|
63
|
+
} else {
|
|
64
|
+
t3 = $[5];
|
|
65
|
+
}
|
|
66
|
+
const markReadState = useConversationsMarkRead(t3);
|
|
67
|
+
let t4;
|
|
68
|
+
if ($[6] !== conversation_id) {
|
|
69
|
+
t4 = {
|
|
70
|
+
conversation_id
|
|
71
|
+
};
|
|
72
|
+
$[6] = conversation_id;
|
|
73
|
+
$[7] = t4;
|
|
74
|
+
} else {
|
|
75
|
+
t4 = $[7];
|
|
76
|
+
}
|
|
77
|
+
const muteState = useConversationMute(t4);
|
|
38
78
|
const hideConversationsEnabled = useHideConversationsEnabled();
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
79
|
+
const read = route.params.read ?? markReadState.read;
|
|
80
|
+
const muted = route.params.muted ?? muteState.muted;
|
|
81
|
+
let t5;
|
|
82
|
+
if ($[8] !== conversation) {
|
|
83
|
+
t5 = isArchivedConversation(conversation);
|
|
84
|
+
$[8] = conversation;
|
|
85
|
+
$[9] = t5;
|
|
86
|
+
} else {
|
|
87
|
+
t5 = $[9];
|
|
88
|
+
}
|
|
89
|
+
const archived = t5;
|
|
90
|
+
const emptyConversation = conversation.lastMessageCreatedAt === null;
|
|
91
|
+
const subtitle = conversation.badges?.[0]?.text;
|
|
92
|
+
let t6;
|
|
93
|
+
if ($[10] !== navigation) {
|
|
94
|
+
t6 = navigate => {
|
|
95
|
+
navigation.goBack();
|
|
96
|
+
requestAnimationFrame(navigate);
|
|
97
|
+
};
|
|
98
|
+
$[10] = navigation;
|
|
99
|
+
$[11] = t6;
|
|
100
|
+
} else {
|
|
101
|
+
t6 = $[11];
|
|
102
|
+
}
|
|
103
|
+
const navigateAfterDismiss = t6;
|
|
104
|
+
let t7;
|
|
105
|
+
if ($[12] !== conversation.badges?.[0] || $[13] !== conversation.deleted || $[14] !== conversation.title || $[15] !== conversation_id || $[16] !== muted || $[17] !== navigateAfterDismiss || $[18] !== navigation) {
|
|
106
|
+
t7 = () => navigateAfterDismiss(() => navigation.navigate("Conversation", {
|
|
107
|
+
conversation_id,
|
|
108
|
+
title: conversation.title ?? undefined,
|
|
109
|
+
badge: conversation.badges?.[0],
|
|
110
|
+
deleted: conversation.deleted,
|
|
111
|
+
muted
|
|
112
|
+
}));
|
|
113
|
+
$[12] = conversation.badges?.[0];
|
|
114
|
+
$[13] = conversation.deleted;
|
|
115
|
+
$[14] = conversation.title;
|
|
116
|
+
$[15] = conversation_id;
|
|
117
|
+
$[16] = muted;
|
|
118
|
+
$[17] = navigateAfterDismiss;
|
|
119
|
+
$[18] = navigation;
|
|
120
|
+
$[19] = t7;
|
|
121
|
+
} else {
|
|
122
|
+
t7 = $[19];
|
|
123
|
+
}
|
|
124
|
+
const handleOpenPress = t7;
|
|
125
|
+
let t8;
|
|
126
|
+
if ($[20] !== conversation_id || $[21] !== navigateAfterDismiss || $[22] !== navigation) {
|
|
127
|
+
t8 = () => navigateAfterDismiss(() => navigation.navigate("ConversationDetails", {
|
|
128
|
+
conversation_id
|
|
129
|
+
}));
|
|
130
|
+
$[20] = conversation_id;
|
|
131
|
+
$[21] = navigateAfterDismiss;
|
|
132
|
+
$[22] = navigation;
|
|
133
|
+
$[23] = t8;
|
|
134
|
+
} else {
|
|
135
|
+
t8 = $[23];
|
|
136
|
+
}
|
|
137
|
+
const handleDetailsPress = t8;
|
|
138
|
+
let t9;
|
|
139
|
+
if ($[24] !== markReadState || $[25] !== navigation || $[26] !== read) {
|
|
140
|
+
t9 = () => {
|
|
141
|
+
markReadState.markRead(!read);
|
|
142
|
+
navigation.goBack();
|
|
143
|
+
};
|
|
144
|
+
$[24] = markReadState;
|
|
145
|
+
$[25] = navigation;
|
|
146
|
+
$[26] = read;
|
|
147
|
+
$[27] = t9;
|
|
148
|
+
} else {
|
|
149
|
+
t9 = $[27];
|
|
150
|
+
}
|
|
151
|
+
const handleMarkReadPress = t9;
|
|
152
|
+
let t10;
|
|
153
|
+
if ($[28] !== muteState || $[29] !== muted || $[30] !== navigation) {
|
|
154
|
+
t10 = () => {
|
|
155
|
+
muteState.setMuted(!muted);
|
|
156
|
+
navigation.goBack();
|
|
157
|
+
};
|
|
158
|
+
$[28] = muteState;
|
|
159
|
+
$[29] = muted;
|
|
160
|
+
$[30] = navigation;
|
|
161
|
+
$[31] = t10;
|
|
162
|
+
} else {
|
|
163
|
+
t10 = $[31];
|
|
164
|
+
}
|
|
165
|
+
const handleMutePress = t10;
|
|
166
|
+
let t11;
|
|
167
|
+
if ($[32] !== hidden || $[33] !== navigation || $[34] !== setHidden) {
|
|
168
|
+
t11 = () => {
|
|
42
169
|
setHidden(!hidden);
|
|
43
170
|
navigation.goBack();
|
|
44
171
|
};
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
48
|
-
$[
|
|
172
|
+
$[32] = hidden;
|
|
173
|
+
$[33] = navigation;
|
|
174
|
+
$[34] = setHidden;
|
|
175
|
+
$[35] = t11;
|
|
49
176
|
} else {
|
|
50
|
-
|
|
177
|
+
t11 = $[35];
|
|
51
178
|
}
|
|
52
|
-
const handleHidePress =
|
|
53
|
-
let
|
|
54
|
-
if ($[
|
|
55
|
-
|
|
179
|
+
const handleHidePress = t11;
|
|
180
|
+
let t12;
|
|
181
|
+
if ($[36] !== conversation_id || $[37] !== navigation) {
|
|
182
|
+
t12 = () => {
|
|
183
|
+
navigation.dispatch(StackActions.popTo("Conversations", {
|
|
184
|
+
select_conversation_id: conversation_id
|
|
185
|
+
}, {
|
|
186
|
+
merge: true
|
|
187
|
+
}));
|
|
188
|
+
};
|
|
189
|
+
$[36] = conversation_id;
|
|
190
|
+
$[37] = navigation;
|
|
191
|
+
$[38] = t12;
|
|
192
|
+
} else {
|
|
193
|
+
t12 = $[38];
|
|
194
|
+
}
|
|
195
|
+
const handleSelectPress = t12;
|
|
196
|
+
if (!hideConversationsEnabled) {
|
|
197
|
+
let t13;
|
|
198
|
+
if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
|
|
199
|
+
t13 = /*#__PURE__*/_jsx(FormSheet.Root, {
|
|
200
|
+
fitToContents: true,
|
|
201
|
+
children: null
|
|
202
|
+
});
|
|
203
|
+
$[39] = t13;
|
|
204
|
+
} else {
|
|
205
|
+
t13 = $[39];
|
|
206
|
+
}
|
|
207
|
+
return t13;
|
|
208
|
+
}
|
|
209
|
+
let t13;
|
|
210
|
+
if ($[40] !== conversation) {
|
|
211
|
+
t13 = /*#__PURE__*/_jsx(ConversationAvatar, {
|
|
212
|
+
conversation: conversation,
|
|
213
|
+
size: "md",
|
|
214
|
+
showFallback: true
|
|
215
|
+
});
|
|
216
|
+
$[40] = conversation;
|
|
217
|
+
$[41] = t13;
|
|
218
|
+
} else {
|
|
219
|
+
t13 = $[41];
|
|
220
|
+
}
|
|
221
|
+
let t14;
|
|
222
|
+
if ($[42] !== conversation.title) {
|
|
223
|
+
t14 = /*#__PURE__*/_jsx(Heading, {
|
|
224
|
+
variant: "h3",
|
|
225
|
+
numberOfLines: 1,
|
|
226
|
+
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK,
|
|
227
|
+
children: conversation.title
|
|
228
|
+
});
|
|
229
|
+
$[42] = conversation.title;
|
|
230
|
+
$[43] = t14;
|
|
231
|
+
} else {
|
|
232
|
+
t14 = $[43];
|
|
233
|
+
}
|
|
234
|
+
let t15;
|
|
235
|
+
if ($[44] !== subtitle) {
|
|
236
|
+
t15 = !!subtitle && /*#__PURE__*/_jsx(Text, {
|
|
237
|
+
variant: "tertiary",
|
|
238
|
+
numberOfLines: 1,
|
|
239
|
+
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK,
|
|
240
|
+
children: subtitle
|
|
241
|
+
});
|
|
242
|
+
$[44] = subtitle;
|
|
243
|
+
$[45] = t15;
|
|
244
|
+
} else {
|
|
245
|
+
t15 = $[45];
|
|
246
|
+
}
|
|
247
|
+
let t16;
|
|
248
|
+
if ($[46] !== styles.headerText || $[47] !== t14 || $[48] !== t15) {
|
|
249
|
+
t16 = /*#__PURE__*/_jsxs(View, {
|
|
250
|
+
style: styles.headerText,
|
|
251
|
+
children: [t14, t15]
|
|
252
|
+
});
|
|
253
|
+
$[46] = styles.headerText;
|
|
254
|
+
$[47] = t14;
|
|
255
|
+
$[48] = t15;
|
|
256
|
+
$[49] = t16;
|
|
257
|
+
} else {
|
|
258
|
+
t16 = $[49];
|
|
259
|
+
}
|
|
260
|
+
let t17;
|
|
261
|
+
if ($[50] !== styles.header || $[51] !== t13 || $[52] !== t16) {
|
|
262
|
+
t17 = /*#__PURE__*/_jsx(FormSheet.Header, {
|
|
263
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
264
|
+
style: styles.header,
|
|
265
|
+
children: [t13, t16]
|
|
266
|
+
})
|
|
267
|
+
});
|
|
268
|
+
$[50] = styles.header;
|
|
269
|
+
$[51] = t13;
|
|
270
|
+
$[52] = t16;
|
|
271
|
+
$[53] = t17;
|
|
272
|
+
} else {
|
|
273
|
+
t17 = $[53];
|
|
274
|
+
}
|
|
275
|
+
let t18;
|
|
276
|
+
if ($[54] !== handleOpenPress) {
|
|
277
|
+
t18 = /*#__PURE__*/_jsx(FormSheet.Action, {
|
|
278
|
+
onPress: handleOpenPress,
|
|
279
|
+
title: "Open conversation",
|
|
280
|
+
iconName: "general.textMessage"
|
|
281
|
+
});
|
|
282
|
+
$[54] = handleOpenPress;
|
|
283
|
+
$[55] = t18;
|
|
284
|
+
} else {
|
|
285
|
+
t18 = $[55];
|
|
286
|
+
}
|
|
287
|
+
let t19;
|
|
288
|
+
if ($[56] !== handleDetailsPress) {
|
|
289
|
+
t19 = /*#__PURE__*/_jsx(FormSheet.Action, {
|
|
290
|
+
onPress: handleDetailsPress,
|
|
291
|
+
title: "Conversation details",
|
|
292
|
+
iconName: "general.cog"
|
|
293
|
+
});
|
|
294
|
+
$[56] = handleDetailsPress;
|
|
295
|
+
$[57] = t19;
|
|
296
|
+
} else {
|
|
297
|
+
t19 = $[57];
|
|
298
|
+
}
|
|
299
|
+
let t20;
|
|
300
|
+
if ($[58] !== emptyConversation || $[59] !== handleMarkReadPress || $[60] !== markReadState.isPending || $[61] !== read) {
|
|
301
|
+
t20 = !emptyConversation && /*#__PURE__*/_jsx(FormSheet.Action, {
|
|
302
|
+
onPress: handleMarkReadPress,
|
|
303
|
+
title: read ? "Mark as unread" : "Mark as read",
|
|
304
|
+
iconName: read ? "checkIns.checkPending" : "checkIns.check",
|
|
305
|
+
disabled: markReadState.isPending
|
|
306
|
+
});
|
|
307
|
+
$[58] = emptyConversation;
|
|
308
|
+
$[59] = handleMarkReadPress;
|
|
309
|
+
$[60] = markReadState.isPending;
|
|
310
|
+
$[61] = read;
|
|
311
|
+
$[62] = t20;
|
|
312
|
+
} else {
|
|
313
|
+
t20 = $[62];
|
|
314
|
+
}
|
|
315
|
+
let t21;
|
|
316
|
+
if ($[63] !== archived || $[64] !== handleMutePress || $[65] !== muteState.isPending || $[66] !== muted) {
|
|
317
|
+
t21 = !archived && /*#__PURE__*/_jsx(FormSheet.Action, {
|
|
318
|
+
onPress: handleMutePress,
|
|
319
|
+
title: muted ? "Enable" : "Silence",
|
|
320
|
+
iconName: muted ? "general.bell" : "general.bellMuted",
|
|
321
|
+
disabled: muteState.isPending,
|
|
322
|
+
accessibilityHint: muted ? "Turns notifications for this conversation back on." : "Turns off notifications for this conversation."
|
|
323
|
+
});
|
|
324
|
+
$[63] = archived;
|
|
325
|
+
$[64] = handleMutePress;
|
|
326
|
+
$[65] = muteState.isPending;
|
|
327
|
+
$[66] = muted;
|
|
328
|
+
$[67] = t21;
|
|
329
|
+
} else {
|
|
330
|
+
t21 = $[67];
|
|
331
|
+
}
|
|
332
|
+
let t22;
|
|
333
|
+
if ($[68] !== archived || $[69] !== handleHidePress || $[70] !== hidden || $[71] !== isHiddenPending) {
|
|
334
|
+
t22 = !archived && /*#__PURE__*/_jsx(FormSheet.Action, {
|
|
56
335
|
onPress: handleHidePress,
|
|
57
336
|
title: hidden ? "Unhide conversation" : "Hide conversation",
|
|
58
337
|
iconName: hidden ? "general.showEye" : "general.hideEye",
|
|
59
|
-
disabled:
|
|
338
|
+
disabled: isHiddenPending,
|
|
60
339
|
accessibilityHint: hidden ? "Shows this conversation in your conversation list again." : "Hides this conversation from your conversation list."
|
|
61
340
|
});
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
341
|
+
$[68] = archived;
|
|
342
|
+
$[69] = handleHidePress;
|
|
343
|
+
$[70] = hidden;
|
|
344
|
+
$[71] = isHiddenPending;
|
|
345
|
+
$[72] = t22;
|
|
67
346
|
} else {
|
|
68
|
-
|
|
347
|
+
t22 = $[72];
|
|
69
348
|
}
|
|
70
|
-
let
|
|
71
|
-
if ($[
|
|
72
|
-
|
|
73
|
-
style: styles.
|
|
74
|
-
children: t3
|
|
349
|
+
let t23;
|
|
350
|
+
if ($[73] !== styles.divider) {
|
|
351
|
+
t23 = /*#__PURE__*/_jsx(View, {
|
|
352
|
+
style: styles.divider
|
|
75
353
|
});
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
78
|
-
$[13] = t4;
|
|
354
|
+
$[73] = styles.divider;
|
|
355
|
+
$[74] = t23;
|
|
79
356
|
} else {
|
|
80
|
-
|
|
357
|
+
t23 = $[74];
|
|
81
358
|
}
|
|
82
|
-
|
|
359
|
+
let t24;
|
|
360
|
+
if ($[75] !== handleSelectPress) {
|
|
361
|
+
t24 = /*#__PURE__*/_jsx(FormSheet.Action, {
|
|
362
|
+
onPress: handleSelectPress,
|
|
363
|
+
title: "Select conversations",
|
|
364
|
+
iconName: "general.check",
|
|
365
|
+
accessibilityHint: "Selects this conversation and lets you choose more to hide, silence, or mark read."
|
|
366
|
+
});
|
|
367
|
+
$[75] = handleSelectPress;
|
|
368
|
+
$[76] = t24;
|
|
369
|
+
} else {
|
|
370
|
+
t24 = $[76];
|
|
371
|
+
}
|
|
372
|
+
let t25;
|
|
373
|
+
if ($[77] !== t17 || $[78] !== t18 || $[79] !== t19 || $[80] !== t20 || $[81] !== t21 || $[82] !== t22 || $[83] !== t23 || $[84] !== t24) {
|
|
374
|
+
t25 = /*#__PURE__*/_jsxs(FormSheet.Root, {
|
|
375
|
+
fitToContents: true,
|
|
376
|
+
children: [t17, t18, t19, t20, t21, t22, t23, t24]
|
|
377
|
+
});
|
|
378
|
+
$[77] = t17;
|
|
379
|
+
$[78] = t18;
|
|
380
|
+
$[79] = t19;
|
|
381
|
+
$[80] = t20;
|
|
382
|
+
$[81] = t21;
|
|
383
|
+
$[82] = t22;
|
|
384
|
+
$[83] = t23;
|
|
385
|
+
$[84] = t24;
|
|
386
|
+
$[85] = t25;
|
|
387
|
+
} else {
|
|
388
|
+
t25 = $[85];
|
|
389
|
+
}
|
|
390
|
+
return t25;
|
|
83
391
|
}
|
|
84
|
-
const useStyles = () =>
|
|
85
|
-
|
|
86
|
-
|
|
392
|
+
const useStyles = () => {
|
|
393
|
+
const $ = _c(2);
|
|
394
|
+
const {
|
|
395
|
+
colors
|
|
396
|
+
} = useTheme();
|
|
397
|
+
let t0;
|
|
398
|
+
if ($[0] !== colors.borderColorDefaultBase) {
|
|
399
|
+
t0 = StyleSheet.create({
|
|
400
|
+
header: {
|
|
401
|
+
flex: 1,
|
|
402
|
+
flexDirection: "row",
|
|
403
|
+
alignItems: "center",
|
|
404
|
+
gap: 12
|
|
405
|
+
},
|
|
406
|
+
headerText: {
|
|
407
|
+
flex: 1
|
|
408
|
+
},
|
|
409
|
+
divider: {
|
|
410
|
+
height: 1,
|
|
411
|
+
marginHorizontal: 16,
|
|
412
|
+
marginVertical: 4,
|
|
413
|
+
backgroundColor: colors.borderColorDefaultBase
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
$[0] = colors.borderColorDefaultBase;
|
|
417
|
+
$[1] = t0;
|
|
418
|
+
} else {
|
|
419
|
+
t0 = $[1];
|
|
87
420
|
}
|
|
88
|
-
|
|
421
|
+
return t0;
|
|
422
|
+
};
|
|
89
423
|
//# sourceMappingURL=conversation_actions_screen.js.map
|