@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.
Files changed (51) hide show
  1. package/build/components/conversation/attachments/video_attachment.js +2 -2
  2. package/build/components/conversation/attachments/video_attachment.js.map +1 -1
  3. package/build/components/display/index.d.ts +1 -0
  4. package/build/components/display/index.d.ts.map +1 -1
  5. package/build/components/display/index.js +1 -0
  6. package/build/components/display/index.js.map +1 -1
  7. package/build/components/display/keyboard_scroll_view.d.ts +5 -0
  8. package/build/components/display/keyboard_scroll_view.d.ts.map +1 -0
  9. package/build/components/display/keyboard_scroll_view.js +37 -0
  10. package/build/components/display/keyboard_scroll_view.js.map +1 -0
  11. package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts +1 -0
  12. package/build/hooks/direct_messages/use_direct_message_affiliations.d.ts.map +1 -1
  13. package/build/hooks/direct_messages/use_direct_message_affiliations.js +3 -2
  14. package/build/hooks/direct_messages/use_direct_message_affiliations.js.map +1 -1
  15. package/build/screens/avatar_picker/avatar_picker_screen.d.ts.map +1 -1
  16. package/build/screens/avatar_picker/avatar_picker_screen.js +10 -2
  17. package/build/screens/avatar_picker/avatar_picker_screen.js.map +1 -1
  18. package/build/screens/bug_report_screen.d.ts.map +1 -1
  19. package/build/screens/bug_report_screen.js +5 -5
  20. package/build/screens/bug_report_screen.js.map +1 -1
  21. package/build/screens/conversation_select_recipients/components/results_heading.d.ts +6 -0
  22. package/build/screens/conversation_select_recipients/components/results_heading.d.ts.map +1 -0
  23. package/build/screens/conversation_select_recipients/components/results_heading.js +27 -0
  24. package/build/screens/conversation_select_recipients/components/results_heading.js.map +1 -0
  25. package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +1 -1
  26. package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js +6 -13
  27. package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js.map +1 -1
  28. package/build/screens/message_report_screen.js +3 -3
  29. package/build/screens/message_report_screen.js.map +1 -1
  30. package/build/types/resources/direct_message_affiliations.d.ts +1 -0
  31. package/build/types/resources/direct_message_affiliations.d.ts.map +1 -1
  32. package/build/types/resources/direct_message_affiliations.js.map +1 -1
  33. package/build/utils/native_adapters/video.d.ts +1 -4
  34. package/build/utils/native_adapters/video.d.ts.map +1 -1
  35. package/build/utils/native_adapters/video.js.map +1 -1
  36. package/package.json +4 -4
  37. package/src/__tests__/components/conversation/attachments/video_attachment.test.tsx +111 -0
  38. package/src/__tests__/hooks/use_direct_message_affiliations.test.tsx +74 -0
  39. package/src/components/conversation/attachments/video_attachment.tsx +2 -2
  40. package/src/components/display/index.ts +1 -0
  41. package/src/components/display/keyboard_scroll_view.tsx +54 -0
  42. package/src/hooks/direct_messages/use_direct_message_affiliations.ts +4 -2
  43. package/src/screens/avatar_picker/avatar_picker_screen.tsx +11 -2
  44. package/src/screens/bug_report_screen.tsx +143 -149
  45. package/src/screens/conversation_select_recipients/components/__tests__/results_heading.test.tsx +32 -0
  46. package/src/screens/conversation_select_recipients/components/results_heading.tsx +50 -0
  47. package/src/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.tsx +7 -15
  48. package/src/screens/message_report_screen.tsx +38 -40
  49. package/src/types/react-native-scroll-view.d.ts +7 -0
  50. package/src/types/resources/direct_message_affiliations.ts +1 -0
  51. 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, ScrollView } from 'react-native'
7
+ import { View, StyleSheet, TextInput } from 'react-native'
8
8
  import { useSafeAreaInsets } from 'react-native-safe-area-context'
9
- import { Spinner, Text, KeyboardView } from '../components'
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
- <KeyboardView>
168
- <ScrollView contentContainerStyle={styles.container}>
169
- <Text style={styles.warningText} maxFontSizeMultiplier={1.5}>
170
- Reporting this message will notify a church leader. The person you are reporting will not
171
- receive a notification from Church Center. If someone is in immediate danger, call local
172
- emergency services. Don&apos;t wait.
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&apos;t wait.
172
+ </Text>
174
173
 
175
- <MessagePreview message={message} />
174
+ <MessagePreview message={message} />
176
175
 
177
- <View style={styles.reasonSection}>
178
- <Text style={styles.fieldLabel}>
179
- What best describes the problem? <Text style={styles.required}>*</Text>
180
- </Text>
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
- <View style={styles.reasonListContainer}>
183
- <ReportReasonList selectedReason={selectedReason} onReasonChange={handleReasonChange} />
184
- </View>
181
+ <View style={styles.reasonListContainer}>
182
+ <ReportReasonList selectedReason={selectedReason} onReasonChange={handleReasonChange} />
185
183
  </View>
184
+ </View>
186
185
 
187
- {selectedReason === 'other' && (
188
- <View style={styles.detailSection}>
189
- <Text style={styles.fieldLabel}>
190
- Please provide more details <Text style={styles.required}>*</Text>
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
- <TextInput
193
- style={styles.textInput}
194
- multiline
195
- placeholder="Describe the issue..."
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
 
@@ -0,0 +1,7 @@
1
+ import type { HostInstance } from 'react-native'
2
+
3
+ declare module 'react-native' {
4
+ interface ScrollView {
5
+ getInnerViewRef(): HostInstance | null
6
+ }
7
+ }
@@ -5,4 +5,5 @@ export interface DirectMessageAffiliationsResource extends ResourceObject {
5
5
  id: string
6
6
  groups: Record<string, string>
7
7
  teams: Record<string, string>
8
+ resultsDescription: string | null
8
9
  }
@@ -4,10 +4,7 @@ export interface VideoPlayerProps {
4
4
  source: { uri: string }
5
5
  aspectRatio?: number
6
6
  style?: StyleProp<ViewStyle>
7
- onFullscreenPlayerWillPresent?: () => void
8
- onFullscreenPlayerDidPresent?: () => void
9
- onFullscreenPlayerWillDismiss?: () => void
10
- onFullscreenPlayerDidDismiss?: () => void
7
+ onFullscreenDismiss: () => void
11
8
  }
12
9
 
13
10
  export interface VideoPlayerHandle {