@planningcenter/chat-react-native 3.45.1-qa-897.0 → 3.45.1-qa-staging.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/conversation/attachments/video_attachment.js +2 -2
- package/build/components/conversation/attachments/video_attachment.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/components/display/keyboard_scroll_view.d.ts +5 -0
- package/build/components/display/keyboard_scroll_view.d.ts.map +1 -0
- package/build/components/display/keyboard_scroll_view.js +37 -0
- package/build/components/display/keyboard_scroll_view.js.map +1 -0
- package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts +1 -0
- package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts.map +1 -1
- package/build/hooks/direct_messages/use_direct_message_affiliations.js +3 -2
- package/build/hooks/direct_messages/use_direct_message_affiliations.js.map +1 -1
- package/build/screens/avatar_picker/avatar_picker_screen.d.ts.map +1 -1
- package/build/screens/avatar_picker/avatar_picker_screen.js +10 -2
- package/build/screens/avatar_picker/avatar_picker_screen.js.map +1 -1
- package/build/screens/bug_report_screen.d.ts.map +1 -1
- package/build/screens/bug_report_screen.js +5 -5
- package/build/screens/bug_report_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/components/results_heading.d.ts +6 -0
- package/build/screens/conversation_select_recipients/components/results_heading.d.ts.map +1 -0
- package/build/screens/conversation_select_recipients/components/results_heading.js +27 -0
- package/build/screens/conversation_select_recipients/components/results_heading.js.map +1 -0
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js +6 -13
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js.map +1 -1
- package/build/screens/message_report_screen.js +3 -3
- package/build/screens/message_report_screen.js.map +1 -1
- package/build/types/resources/direct_message_affiliations.d.ts +1 -0
- package/build/types/resources/direct_message_affiliations.d.ts.map +1 -1
- package/build/types/resources/direct_message_affiliations.js.map +1 -1
- package/build/utils/native_adapters/video.d.ts +1 -4
- package/build/utils/native_adapters/video.d.ts.map +1 -1
- package/build/utils/native_adapters/video.js.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/components/conversation/attachments/video_attachment.test.tsx +111 -0
- package/src/__tests__/hooks/use_direct_message_affiliations.test.tsx +74 -0
- package/src/components/conversation/attachments/video_attachment.tsx +2 -2
- package/src/components/display/index.ts +1 -0
- package/src/components/display/keyboard_scroll_view.tsx +54 -0
- package/src/hooks/direct_messages/use_direct_message_affiliations.ts +4 -2
- package/src/screens/avatar_picker/avatar_picker_screen.tsx +11 -2
- package/src/screens/bug_report_screen.tsx +143 -149
- package/src/screens/conversation_select_recipients/components/__tests__/results_heading.test.tsx +32 -0
- package/src/screens/conversation_select_recipients/components/results_heading.tsx +50 -0
- package/src/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.tsx +7 -15
- package/src/screens/message_report_screen.tsx +38 -40
- package/src/types/react-native-scroll-view.d.ts +7 -0
- package/src/types/resources/direct_message_affiliations.ts +1 -0
- package/src/utils/native_adapters/video.ts +1 -4
|
@@ -4,9 +4,9 @@ import type {
|
|
|
4
4
|
NativeStackScreenProps,
|
|
5
5
|
} from '@react-navigation/native-stack'
|
|
6
6
|
import React, { useCallback, useLayoutEffect, useMemo, useState } from 'react'
|
|
7
|
-
import { View, StyleSheet, TextInput
|
|
7
|
+
import { View, StyleSheet, TextInput } from 'react-native'
|
|
8
8
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
9
|
-
import { Spinner, Text,
|
|
9
|
+
import { Spinner, Text, KeyboardScrollView } from '../components'
|
|
10
10
|
import {
|
|
11
11
|
composeOptions,
|
|
12
12
|
useHeaderRight,
|
|
@@ -164,50 +164,48 @@ function MessageReportScreenContent({
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
return (
|
|
167
|
-
<
|
|
168
|
-
<
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
</Text>
|
|
167
|
+
<KeyboardScrollView contentContainerStyle={styles.container}>
|
|
168
|
+
<Text style={styles.warningText} maxFontSizeMultiplier={1.5}>
|
|
169
|
+
Reporting this message will notify a church leader. The person you are reporting will not
|
|
170
|
+
receive a notification from Church Center. If someone is in immediate danger, call local
|
|
171
|
+
emergency services. Don't wait.
|
|
172
|
+
</Text>
|
|
174
173
|
|
|
175
|
-
|
|
174
|
+
<MessagePreview message={message} />
|
|
176
175
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
<View style={styles.reasonSection}>
|
|
177
|
+
<Text style={styles.fieldLabel}>
|
|
178
|
+
What best describes the problem? <Text style={styles.required}>*</Text>
|
|
179
|
+
</Text>
|
|
181
180
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
</View>
|
|
181
|
+
<View style={styles.reasonListContainer}>
|
|
182
|
+
<ReportReasonList selectedReason={selectedReason} onReasonChange={handleReasonChange} />
|
|
185
183
|
</View>
|
|
184
|
+
</View>
|
|
186
185
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
{selectedReason === 'other' && (
|
|
187
|
+
<View style={styles.detailSection}>
|
|
188
|
+
<Text style={styles.fieldLabel}>
|
|
189
|
+
Please provide more details <Text style={styles.required}>*</Text>
|
|
190
|
+
</Text>
|
|
191
|
+
<TextInput
|
|
192
|
+
style={styles.textInput}
|
|
193
|
+
multiline
|
|
194
|
+
placeholder="Describe the issue..."
|
|
195
|
+
value={reasonDetail}
|
|
196
|
+
onChangeText={setReasonDetail}
|
|
197
|
+
maxLength={MAX_DETAIL_LENGTH}
|
|
198
|
+
accessibilityLabel="Additional details"
|
|
199
|
+
accessibilityHint="Provide more information about why you're reporting this message"
|
|
200
|
+
/>
|
|
201
|
+
{reasonDetail.length >= MAX_DETAIL_LENGTH - 100 && (
|
|
202
|
+
<Text variant="footnote">
|
|
203
|
+
{reasonDetail.length}/{MAX_DETAIL_LENGTH}
|
|
191
204
|
</Text>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
value={reasonDetail}
|
|
197
|
-
onChangeText={setReasonDetail}
|
|
198
|
-
maxLength={MAX_DETAIL_LENGTH}
|
|
199
|
-
accessibilityLabel="Additional details"
|
|
200
|
-
accessibilityHint="Provide more information about why you're reporting this message"
|
|
201
|
-
/>
|
|
202
|
-
{reasonDetail.length >= MAX_DETAIL_LENGTH - 100 && (
|
|
203
|
-
<Text variant="footnote">
|
|
204
|
-
{reasonDetail.length}/{MAX_DETAIL_LENGTH}
|
|
205
|
-
</Text>
|
|
206
|
-
)}
|
|
207
|
-
</View>
|
|
208
|
-
)}
|
|
209
|
-
</ScrollView>
|
|
210
|
-
</KeyboardView>
|
|
205
|
+
)}
|
|
206
|
+
</View>
|
|
207
|
+
)}
|
|
208
|
+
</KeyboardScrollView>
|
|
211
209
|
)
|
|
212
210
|
}
|
|
213
211
|
|
|
@@ -4,10 +4,7 @@ export interface VideoPlayerProps {
|
|
|
4
4
|
source: { uri: string }
|
|
5
5
|
aspectRatio?: number
|
|
6
6
|
style?: StyleProp<ViewStyle>
|
|
7
|
-
|
|
8
|
-
onFullscreenPlayerDidPresent?: () => void
|
|
9
|
-
onFullscreenPlayerWillDismiss?: () => void
|
|
10
|
-
onFullscreenPlayerDidDismiss?: () => void
|
|
7
|
+
onFullscreenDismiss: () => void
|
|
11
8
|
}
|
|
12
9
|
|
|
13
10
|
export interface VideoPlayerHandle {
|