@planningcenter/chat-react-native 3.9.3-rc.0 → 3.9.3-rc.2
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/display/switch.d.ts.map +1 -1
- package/build/components/display/switch.js +1 -4
- package/build/components/display/switch.js.map +1 -1
- package/build/components/primitive/form_sheet.d.ts +2 -2
- package/build/components/primitive/form_sheet.d.ts.map +1 -1
- package/build/components/primitive/form_sheet.js +12 -7
- package/build/components/primitive/form_sheet.js.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.js +10 -2
- package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
- 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 +14 -9
- package/build/screens/conversation_filter_recipients/conversation_filter_recipients_screen.js.map +1 -1
- package/build/screens/conversations/components/chat_group_badge.d.ts +3 -1
- package/build/screens/conversations/components/chat_group_badge.d.ts.map +1 -1
- package/build/screens/conversations/components/chat_group_badge.js +4 -3
- package/build/screens/conversations/components/chat_group_badge.js.map +1 -1
- package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/list_header_component.js +4 -8
- package/build/screens/conversations/components/list_header_component.js.map +1 -1
- package/build/screens/message_actions_screen.d.ts.map +1 -1
- package/build/screens/message_actions_screen.js +6 -3
- package/build/screens/message_actions_screen.js.map +1 -1
- package/build/screens/reactions_screen.js +3 -3
- package/build/screens/reactions_screen.js.map +1 -1
- package/build/screens/send_giphy_screen.js +3 -3
- package/build/screens/send_giphy_screen.js.map +1 -1
- package/build/utils/theme.d.ts +0 -3
- package/build/utils/theme.d.ts.map +1 -1
- package/build/utils/theme.js +0 -6
- package/build/utils/theme.js.map +1 -1
- package/package.json +2 -2
- package/src/components/display/switch.tsx +1 -5
- package/src/components/primitive/form_sheet.tsx +18 -11
- package/src/screens/attachment_actions/attachment_actions_screen.tsx +11 -2
- package/src/screens/conversation_filter_recipients/conversation_filter_recipients_screen.tsx +15 -9
- package/src/screens/conversations/components/chat_group_badge.tsx +4 -3
- package/src/screens/conversations/components/list_header_component.tsx +5 -8
- package/src/screens/message_actions_screen.tsx +6 -3
- package/src/screens/reactions_screen.tsx +3 -3
- package/src/screens/send_giphy_screen.tsx +3 -3
- package/src/utils/theme.ts +0 -15
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { PlatformPressable } from '@react-navigation/elements'
|
|
2
2
|
import { StackActions, StaticScreenProps, useNavigation } from '@react-navigation/native'
|
|
3
3
|
import { useMutation } from '@tanstack/react-query'
|
|
4
|
+
import { isNil, omitBy } from 'lodash'
|
|
4
5
|
import React, { useCallback } from 'react'
|
|
5
6
|
import { Alert, Platform, StyleSheet, View } from 'react-native'
|
|
6
7
|
import { Text } from '../components'
|
|
7
8
|
import { REACTION_EMOJIS, useReactionStyles } from '../components/conversation/message_reaction'
|
|
9
|
+
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet'
|
|
8
10
|
import { useCreateAndroidRippleColor, useFontScale, useTheme } from '../hooks'
|
|
9
11
|
import { useApiClient } from '../hooks/use_api_client'
|
|
10
12
|
import { useConversationMessages } from '../hooks/use_conversation_messages'
|
|
11
13
|
import { useMessageReactionToggle } from '../hooks/use_message_reaction_toggle'
|
|
12
14
|
import { ReactionCountResource } from '../types/resources/reaction'
|
|
13
15
|
import { Clipboard } from '../utils/native_adapters'
|
|
14
|
-
import { isNil, omitBy } from 'lodash'
|
|
15
|
-
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet'
|
|
16
16
|
|
|
17
17
|
export const MessageActionsScreenOptions = getFormSheetScreenOptions({
|
|
18
18
|
sheetAllowedDetents: [0.5],
|
|
@@ -122,7 +122,7 @@ export function MessageActionsScreen({ route }: MessageActionsScreenProps) {
|
|
|
122
122
|
}, [navigation, conversation_id, message_id])
|
|
123
123
|
|
|
124
124
|
return (
|
|
125
|
-
<FormSheet.Root>
|
|
125
|
+
<FormSheet.Root style={styles.formSheetContent}>
|
|
126
126
|
<View style={styles.reactionList}>
|
|
127
127
|
{availableReactions.map((reaction, index) => (
|
|
128
128
|
<Reaction
|
|
@@ -213,6 +213,9 @@ const useStyles = () => {
|
|
|
213
213
|
})
|
|
214
214
|
|
|
215
215
|
return StyleSheet.create({
|
|
216
|
+
formSheetContent: {
|
|
217
|
+
paddingTop: 16,
|
|
218
|
+
},
|
|
216
219
|
reactionList: {
|
|
217
220
|
flexDirection: 'row',
|
|
218
221
|
justifyContent: 'center',
|
|
@@ -6,13 +6,13 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
|
6
6
|
import { Avatar, Text } from '../components'
|
|
7
7
|
import { REACTION_EMOJIS } from '../components/conversation/message_reaction'
|
|
8
8
|
import { Tabs } from '../components/display/tabs'
|
|
9
|
+
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet'
|
|
9
10
|
import { useSuspenseGet, useTheme } from '../hooks'
|
|
10
11
|
import { useConversationMessages } from '../hooks/use_conversation_messages'
|
|
12
|
+
import { useFontScale } from '../hooks/use_font_scale'
|
|
11
13
|
import { MemberResource } from '../types'
|
|
12
14
|
import { ReactionCountResource } from '../types/resources/reaction'
|
|
13
|
-
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet'
|
|
14
15
|
import { platformFontWeightMedium } from '../utils'
|
|
15
|
-
import { useFontScale } from '../hooks/use_font_scale'
|
|
16
16
|
|
|
17
17
|
export const ReactionsScreenOptions = getFormSheetScreenOptions({
|
|
18
18
|
sheetAllowedDetents: Platform.select({
|
|
@@ -127,7 +127,7 @@ const useStyles = () => {
|
|
|
127
127
|
|
|
128
128
|
return StyleSheet.create({
|
|
129
129
|
formSheetContent: {
|
|
130
|
-
paddingTop:
|
|
130
|
+
paddingTop: 16,
|
|
131
131
|
},
|
|
132
132
|
contentContainer: {
|
|
133
133
|
paddingTop: 8,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StackActions, StaticScreenProps, useNavigation } from '@react-navigation/native'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { Image as NativeImage, Platform, StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
4
|
-
import { useGiphy } from '../hooks/use_giphy'
|
|
5
4
|
import { Button, IconButton, IconString, TextButton } from '../components'
|
|
6
5
|
import { DefaultLoading } from '../components/page/loading'
|
|
7
|
-
import { useMessageCreateOrUpdate } from '../hooks/use_message_create_or_update'
|
|
8
6
|
import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/form_sheet'
|
|
9
7
|
import { useCreateAndroidRippleColor, useTheme } from '../hooks'
|
|
8
|
+
import { useGiphy } from '../hooks/use_giphy'
|
|
9
|
+
import { useMessageCreateOrUpdate } from '../hooks/use_message_create_or_update'
|
|
10
10
|
import { tokens } from '../vendor/tapestry/tokens'
|
|
11
11
|
|
|
12
12
|
export const SendGiphyScreenOptions = getFormSheetScreenOptions({
|
|
@@ -154,7 +154,7 @@ const useStyles = () => {
|
|
|
154
154
|
|
|
155
155
|
return StyleSheet.create({
|
|
156
156
|
container: {
|
|
157
|
-
paddingTop:
|
|
157
|
+
paddingTop: 32,
|
|
158
158
|
paddingHorizontal: 16,
|
|
159
159
|
gap: 8,
|
|
160
160
|
},
|
package/src/utils/theme.ts
CHANGED
|
@@ -56,15 +56,6 @@ interface ChatColors {
|
|
|
56
56
|
interaction: string
|
|
57
57
|
androidModalHeaderButtonTextColor: ColorValue | string | undefined
|
|
58
58
|
iOSModalHeaderButtonTextColor: OpaqueColorValue | string | undefined
|
|
59
|
-
// `switchTrackTrue` is deprecated.
|
|
60
|
-
// TODO: Remove `switchTrackTrue` once CCA stops using it.
|
|
61
|
-
switchTrackTrue: string | undefined
|
|
62
|
-
// `switchTrackFalse` is deprecated.
|
|
63
|
-
// TODO: Remove `switchTrackFalse` once CCA stops using it.
|
|
64
|
-
switchTrackFalse: string | undefined
|
|
65
|
-
// `switchThumbColor` is deprecated. Use `androidSwitchThumbColor` instead.
|
|
66
|
-
// TODO: Remove `switchThumbColor` once CCA is updated to use `androidSwitchThumbColor`.
|
|
67
|
-
switchThumbColor: string | undefined
|
|
68
59
|
androidSwitchThumbColor: string | undefined
|
|
69
60
|
testColor: string
|
|
70
61
|
statusInfoIcon: string
|
|
@@ -92,9 +83,6 @@ const colorsChatLight: ChatColors = {
|
|
|
92
83
|
buttonStart: undefined,
|
|
93
84
|
buttonEnd: undefined,
|
|
94
85
|
interaction: tokens.fillColorInteractionDefault,
|
|
95
|
-
switchTrackTrue: undefined,
|
|
96
|
-
switchTrackFalse: undefined,
|
|
97
|
-
switchThumbColor: undefined,
|
|
98
86
|
androidSwitchThumbColor: undefined,
|
|
99
87
|
testColor: 'hotpink',
|
|
100
88
|
statusInfoIcon: tokens.iconColorStatusInfoPrimary,
|
|
@@ -122,9 +110,6 @@ const colorsChatDark: ChatColors = {
|
|
|
122
110
|
buttonStart: undefined,
|
|
123
111
|
buttonEnd: undefined,
|
|
124
112
|
interaction: tokens.fillColorInteractionDefaultDark,
|
|
125
|
-
switchTrackTrue: undefined,
|
|
126
|
-
switchTrackFalse: undefined,
|
|
127
|
-
switchThumbColor: undefined,
|
|
128
113
|
androidSwitchThumbColor: undefined,
|
|
129
114
|
testColor: 'pink',
|
|
130
115
|
statusInfoIcon: tokens.iconColorStatusInfoPrimaryDark,
|