@planningcenter/chat-react-native 4.6.0-rc.0 → 4.6.0-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/assets/powered_by_giphy.png +0 -0
- package/assets/powered_by_giphy_dark.png +0 -0
- package/build/screens/conversation_new/components/groups_form.js +25 -18
- package/build/screens/conversation_new/components/groups_form.js.map +1 -1
- package/build/screens/conversation_new/components/services_form.js +51 -40
- package/build/screens/conversation_new/components/services_form.js.map +1 -1
- package/build/screens/send_giphy_screen.d.ts.map +1 -1
- package/build/screens/send_giphy_screen.js +93 -136
- package/build/screens/send_giphy_screen.js.map +1 -1
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/index.js +1 -0
- package/build/utils/index.js.map +1 -1
- package/build/utils/membership_sync_info_text.d.ts +2 -0
- package/build/utils/membership_sync_info_text.d.ts.map +1 -0
- package/build/utils/membership_sync_info_text.js +4 -0
- package/build/utils/membership_sync_info_text.js.map +1 -0
- package/package.json +2 -2
- package/src/screens/conversation_new/components/groups_form.tsx +2 -2
- package/src/screens/conversation_new/components/services_form.tsx +2 -2
- package/src/screens/send_giphy_screen.tsx +13 -44
- package/src/utils/__tests__/membership_sync_info_text.test.ts +15 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/membership_sync_info_text.ts +3 -0
|
@@ -8,7 +8,6 @@ import FormSheet, { getFormSheetScreenOptions } from '../components/primitive/fo
|
|
|
8
8
|
import { useCreateAndroidRippleColor, useTheme } from '../hooks'
|
|
9
9
|
import { useGiphy } from '../hooks/use_giphy'
|
|
10
10
|
import { useMessageCreateOrUpdate } from '../hooks/use_message_create_or_update'
|
|
11
|
-
import { tokens } from '../vendor/tapestry/tokens'
|
|
12
11
|
|
|
13
12
|
export const SendGiphyScreenOptions = getFormSheetScreenOptions({
|
|
14
13
|
headerTitle: 'Send Giphy',
|
|
@@ -24,6 +23,7 @@ export type SendGiphyScreenProps = StaticScreenProps<{
|
|
|
24
23
|
export function SendGiphyScreen({ route }: SendGiphyScreenProps) {
|
|
25
24
|
const { conversation_id, reply_root_id, search_term } = route.params
|
|
26
25
|
const styles = useStyles()
|
|
26
|
+
const { colors } = useTheme()
|
|
27
27
|
const navigation = useNavigation()
|
|
28
28
|
|
|
29
29
|
const { isPending, mutate } = useMessageCreateOrUpdate({
|
|
@@ -78,15 +78,18 @@ export function SendGiphyScreen({ route }: SendGiphyScreenProps) {
|
|
|
78
78
|
goBack({ clearInput: true })
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
const poweredByGiphyImage =
|
|
82
|
+
colors.name === 'dark'
|
|
83
|
+
? require('../../assets/powered_by_giphy_dark.png')
|
|
84
|
+
: require('../../assets/powered_by_giphy.png')
|
|
85
|
+
|
|
81
86
|
return (
|
|
82
87
|
<FormSheet.Root contentStyle={styles.container}>
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
/>
|
|
89
|
-
</View>
|
|
88
|
+
<NativeImage
|
|
89
|
+
alt="Powered by Giphy"
|
|
90
|
+
style={styles.poweredByGiphyImage}
|
|
91
|
+
source={poweredByGiphyImage}
|
|
92
|
+
/>
|
|
90
93
|
<View style={styles.controlToolbar} accessibilityRole="toolbar">
|
|
91
94
|
<View style={styles.paginateButtonGroup}>
|
|
92
95
|
<PaginateButton
|
|
@@ -181,15 +184,10 @@ const useStyles = () => {
|
|
|
181
184
|
flex: 0,
|
|
182
185
|
flexGrow: 1,
|
|
183
186
|
},
|
|
184
|
-
poweredByGiphyContainer: {
|
|
185
|
-
alignSelf: 'flex-start',
|
|
186
|
-
padding: 4,
|
|
187
|
-
borderRadius: 4,
|
|
188
|
-
backgroundColor: colors.name === 'dark' ? tokens.colorNeutral68 : 'transparent',
|
|
189
|
-
},
|
|
190
187
|
poweredByGiphyImage: {
|
|
191
|
-
|
|
188
|
+
alignSelf: 'flex-start',
|
|
192
189
|
height: 20,
|
|
190
|
+
aspectRatio: 641 / 71,
|
|
193
191
|
},
|
|
194
192
|
controlToolbar: {
|
|
195
193
|
flexDirection: 'row',
|
|
@@ -223,32 +221,3 @@ const useStyles = () => {
|
|
|
223
221
|
},
|
|
224
222
|
})
|
|
225
223
|
}
|
|
226
|
-
|
|
227
|
-
const poweredByGiphyImage = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAWCAYAAACFbNPBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA
|
|
228
|
-
GXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABa9JREFUeNrsWy1z40gQla8EDAwE
|
|
229
|
-
DAQCDAIMAgwCDA0XBgYGBu5PyM84aLgw8KDBAoMDBgsEAgQEBAQEBARclZ2uepPrne2WRrbls7Pq
|
|
230
|
-
KpWc0UxPz0y//pIyen9/Dwa6LhqNRjNzmwmPcnOl5kzrYZdOQ+GwBVcDirG5LXGNG7rWpu/O3Dcu
|
|
231
|
-
UEz7ytxW7gDT76WtjzYXAdJcW8MjFWR+EoBMAF4ra3wRmmkdG/Psq/kdac8Vfg/mtpAMiRnzt88C
|
|
232
|
-
/xpU7yrAEZvbMxR33NLdAukZ4/okmmturicz1yNA3Be9Ku0rM2+keNlFR14DQK4UHE+K9Wwi6v94
|
|
233
|
-
RlHnfc4HD5Uojx8826zHyQeAfJ6w6tHDa2jhz7czizwzMi969iK1Mu/cCRMjJbTa9JKDSG7M0N5M
|
|
234
|
-
WDn9iOeUHWpl+hTs2UQZF6HvnrVNIGMFfpq8ltdEUhQeiyvr+FgLm1Pl0WVvWtb8sT6+bkZL5aBJ
|
|
235
|
-
li1ZVLKGmN+GFDM8X3exlB6UCh4qUmTe9eRFKL96VTzVF/MshZ6sjg2tDknSF4pyECoTduALl69p
|
|
236
|
-
r3CYpDB3aP7OnhOgqP3NXBkbeocFU9/bhjBj1yJjwpRFs3Al+IjzGB6Z4fHWdW+wJlpHaP7eWqBB
|
|
237
|
-
qR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SbXSjslpmuWe6XO/vwfAClRXUs8Ddj6yDDubOFo2HETqhaQJCwBj9m4TPAG
|
|
250
|
-
BZ6VTiyeYbxrZdpCkj341Q5oQyZP5qGwlfB3hTXUDXvjjtkrVarSYy1W9lLwgJS7PZjnr4KC9fkt
|
|
251
|
-
VKq05Z7AuEryBkhDaCVVlFKPfqRAO6E9C359WWjb3zymb+XXtg7PeQ7am659ET5J3xQtUCxJmEGI
|
|
252
|
-
mUfuI95fB38gDZ+7XzARmPBmPFYqZctLrnx9Bho+Vrx8WjcktT7g2AxbOADkM3uRGiDpGucTqE79
|
|
253
|
-
weIQYg10sSD5xt5ezwL9K1/K/xIl1yk98kOfPl1A6tPWVAjwqQIeOq6VRsP/pF8vOZ/L5MP/ovew
|
|
254
|
-
xwNABhpIp58CDAChjQWETVMlnAAAAABJRU5ErkJggg==`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { membershipSyncInfoText } from '../membership_sync_info_text'
|
|
2
|
+
|
|
3
|
+
describe('membershipSyncInfoText', () => {
|
|
4
|
+
it('explains membership sync and history visibility for a group', () => {
|
|
5
|
+
expect(membershipSyncInfoText('the group')).toBe(
|
|
6
|
+
'This conversation will stay in sync with the group. Members will automatically be added or removed, and new members will see the history.'
|
|
7
|
+
)
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
it('explains membership sync and history visibility for teams', () => {
|
|
11
|
+
expect(membershipSyncInfoText('the teams')).toBe(
|
|
12
|
+
'This conversation will stay in sync with the teams. Members will automatically be added or removed, and new members will see the history.'
|
|
13
|
+
)
|
|
14
|
+
})
|
|
15
|
+
})
|
package/src/utils/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './convert_attachments_for_create'
|
|
|
8
8
|
export * from './destructure_chat_group_graph_id'
|
|
9
9
|
export * from './host_bridge'
|
|
10
10
|
export * from './liquid_glass'
|
|
11
|
+
export * from './membership_sync_info_text'
|
|
11
12
|
export * from './native_adapters'
|
|
12
13
|
export * from './pluralize'
|
|
13
14
|
export * from './conversation_safety_constants'
|