@planningcenter/chat-react-native 3.42.3-qa-staging.2 → 3.42.3-qa-staging.4

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 (67) hide show
  1. package/build/components/conversation/messages_disabled_banners.d.ts +2 -3
  2. package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -1
  3. package/build/components/conversation/messages_disabled_banners.js +2 -7
  4. package/build/components/conversation/messages_disabled_banners.js.map +1 -1
  5. package/build/components/display/adult_requirement_notice.js +1 -1
  6. package/build/components/display/adult_requirement_notice.js.map +1 -1
  7. package/build/components/display/platform_modal_header_buttons.d.ts +47 -7
  8. package/build/components/display/platform_modal_header_buttons.d.ts.map +1 -1
  9. package/build/components/display/platform_modal_header_buttons.js +119 -9
  10. package/build/components/display/platform_modal_header_buttons.js.map +1 -1
  11. package/build/hooks/use_conversation.d.ts.map +1 -1
  12. package/build/hooks/use_conversation.js +1 -0
  13. package/build/hooks/use_conversation.js.map +1 -1
  14. package/build/hooks/use_conversation_jolt_events.d.ts.map +1 -1
  15. package/build/hooks/use_conversation_jolt_events.js +10 -2
  16. package/build/hooks/use_conversation_jolt_events.js.map +1 -1
  17. package/build/navigation/index.d.ts +67 -170
  18. package/build/navigation/index.d.ts.map +1 -1
  19. package/build/navigation/index.js +59 -70
  20. package/build/navigation/index.js.map +1 -1
  21. package/build/screens/bug_report_screen.d.ts.map +1 -1
  22. package/build/screens/bug_report_screen.js +10 -13
  23. package/build/screens/bug_report_screen.js.map +1 -1
  24. package/build/screens/conversation_details_screen.d.ts.map +1 -1
  25. package/build/screens/conversation_details_screen.js +11 -12
  26. package/build/screens/conversation_details_screen.js.map +1 -1
  27. package/build/screens/conversation_filters_screen.js +2 -2
  28. package/build/screens/conversation_filters_screen.js.map +1 -1
  29. package/build/screens/conversation_screen.d.ts.map +1 -1
  30. package/build/screens/conversation_screen.js +10 -3
  31. package/build/screens/conversation_screen.js.map +1 -1
  32. package/build/screens/message_report_screen.d.ts.map +1 -1
  33. package/build/screens/message_report_screen.js +14 -18
  34. package/build/screens/message_report_screen.js.map +1 -1
  35. package/build/screens/notification_settings_screen.d.ts.map +1 -1
  36. package/build/screens/notification_settings_screen.js +0 -14
  37. package/build/screens/notification_settings_screen.js.map +1 -1
  38. package/build/types/jolt_events/conversation_events.d.ts +2 -2
  39. package/build/types/jolt_events/conversation_events.d.ts.map +1 -1
  40. package/build/types/jolt_events/conversation_events.js.map +1 -1
  41. package/build/types/resources/conversation.d.ts +2 -2
  42. package/build/types/resources/conversation.d.ts.map +1 -1
  43. package/build/types/resources/conversation.js.map +1 -1
  44. package/build/utils/conversation_safety_constants.d.ts +1 -1
  45. package/build/utils/conversation_safety_constants.d.ts.map +1 -1
  46. package/build/utils/conversation_safety_constants.js +1 -1
  47. package/build/utils/conversation_safety_constants.js.map +1 -1
  48. package/build/utils/request/conversation.d.ts.map +1 -1
  49. package/build/utils/request/conversation.js +1 -0
  50. package/build/utils/request/conversation.js.map +1 -1
  51. package/package.json +3 -3
  52. package/src/components/conversation/messages_disabled_banners.tsx +3 -11
  53. package/src/components/display/adult_requirement_notice.tsx +1 -1
  54. package/src/components/display/platform_modal_header_buttons.tsx +254 -13
  55. package/src/hooks/use_conversation.ts +1 -0
  56. package/src/hooks/use_conversation_jolt_events.ts +16 -3
  57. package/src/navigation/index.tsx +147 -164
  58. package/src/screens/bug_report_screen.tsx +16 -15
  59. package/src/screens/conversation_details_screen.tsx +11 -17
  60. package/src/screens/conversation_filters_screen.tsx +2 -2
  61. package/src/screens/conversation_screen.tsx +11 -3
  62. package/src/screens/message_report_screen.tsx +20 -21
  63. package/src/screens/notification_settings_screen.tsx +1 -21
  64. package/src/types/jolt_events/conversation_events.ts +2 -2
  65. package/src/types/resources/conversation.ts +2 -3
  66. package/src/utils/conversation_safety_constants.ts +1 -1
  67. package/src/utils/request/conversation.ts +1 -0
@@ -1,10 +1,9 @@
1
1
  import { PlatformPressable } from '@react-navigation/elements'
2
2
  import { StaticScreenProps, useNavigation } from '@react-navigation/native'
3
- import React, { useCallback, useEffect, type ReactNode } from 'react'
3
+ import { type ReactNode } from 'react'
4
4
  import { FlatList, Platform, StyleSheet, View, type ViewProps, type ViewStyle } from 'react-native'
5
5
  import { useSafeAreaInsets } from 'react-native-safe-area-context'
6
6
  import { Badge, Heading, Icon, Text } from '../components'
7
- import { HeaderTextButton } from '../components/display/platform_modal_header_buttons'
8
7
  import { useTheme } from '../hooks'
9
8
  import { isDefined } from '../types'
10
9
  import { chatTypeLabel } from '../utils'
@@ -51,25 +50,6 @@ export function NotificationSettingsScreen({}: NotificationSettingsScreenProps)
51
50
  const { data: chatTypes } = useChatTypes()
52
51
  const { data: groups } = useGroups()
53
52
 
54
- // Header configuration
55
- const HeaderRight = useCallback(() => {
56
- return (
57
- <HeaderTextButton
58
- onPress={() => {
59
- // Save settings logic would go here
60
- navigation.goBack()
61
- }}
62
- title="Done"
63
- />
64
- )
65
- }, [navigation])
66
-
67
- useEffect(() => {
68
- navigation.setOptions({
69
- headerRight: HeaderRight,
70
- })
71
- }, [HeaderRight, navigation])
72
-
73
53
  // Build section data
74
54
  const listData = [
75
55
  {
@@ -1,5 +1,4 @@
1
1
  import type { CustomMessage } from '@planningcenter/jolt-client/dist/types/JoltConnection'
2
- import type { ConversationDisabledReason } from '../resources/conversation'
3
2
 
4
3
  type DateString = string
5
4
  interface BaseConversationEventData extends Record<string, unknown> {
@@ -16,7 +15,8 @@ interface BaseConversationEventData extends Record<string, unknown> {
16
15
  latest_read_message_sort_key?: string
17
16
  organization_id: number
18
17
  disabled: boolean
19
- disabled_reason?: ConversationDisabledReason
18
+ disabled_reason: string | null
19
+ disabled_message: string | null
20
20
  replies_disabled: boolean
21
21
  subtitle?: string
22
22
  title: string
@@ -5,8 +5,6 @@ import { GroupResource } from './group_resource'
5
5
  import { MemberAbilityResource } from './member_ability'
6
6
  import { ReactionCountResource } from './reaction'
7
7
 
8
- export type ConversationDisabledReason = 'safety_check' | 'direct_messages_disabled'
9
-
10
8
  export interface ConversationPreviewData {
11
9
  kind: 'reaction' | 'message'
12
10
  authorName: string
@@ -26,7 +24,8 @@ export interface ConversationResource {
26
24
  deleted?: boolean
27
25
  directMessage?: boolean
28
26
  disabled?: boolean
29
- disabledReason?: ConversationDisabledReason
27
+ disabledReason?: string | null
28
+ disabledMessage?: string | null
30
29
  genderOption?: string | null
31
30
  groups?: GroupResource[]
32
31
  previewAvatarUrls?: string[]
@@ -1,2 +1,2 @@
1
1
  export const ADULT_REQUIREMENT_BODY =
2
- 'Conversations with teens require at least 2 adults. This chat is paused until another adult is added.'
2
+ 'Conversations with minors require at least two adults. This chat is paused until more adults are added.'
@@ -41,6 +41,7 @@ export const getConversationsRequestArgs = ({
41
41
  'conversation_preview',
42
42
  'disabled',
43
43
  'disabled_reason',
44
+ 'disabled_message',
44
45
  'groups',
45
46
  'last_message_author_id',
46
47
  'last_message_author_name',