stream-chat-react-native-core 4.2.0-beta.2 → 4.2.0-beta.3

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 (48) hide show
  1. package/lib/commonjs/components/Attachment/FileIcon.js +20 -20
  2. package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
  3. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +4 -7
  4. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  5. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js +183 -173
  6. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
  7. package/lib/commonjs/components/MessageInput/MessageInput.js +3 -3
  8. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  9. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +3 -3
  10. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  11. package/lib/commonjs/components/MessageList/utils/getReadStates.js +8 -8
  12. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
  13. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +32 -32
  14. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  15. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +9 -9
  16. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  17. package/lib/commonjs/version.json +1 -1
  18. package/lib/module/components/Attachment/FileIcon.js +20 -20
  19. package/lib/module/components/Attachment/FileIcon.js.map +1 -1
  20. package/lib/module/components/Message/MessageSimple/utils/renderText.js +4 -7
  21. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  22. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js +183 -173
  23. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
  24. package/lib/module/components/MessageInput/MessageInput.js +3 -3
  25. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  26. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +3 -3
  27. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  28. package/lib/module/components/MessageList/utils/getReadStates.js +8 -8
  29. package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
  30. package/lib/module/contexts/messageInputContext/MessageInputContext.js +32 -32
  31. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  32. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +9 -9
  33. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  34. package/lib/module/version.json +1 -1
  35. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +2 -3
  36. package/package.json +12 -10
  37. package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +14 -4
  38. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageReplies.test.js.snap +1 -0
  39. package/src/components/Message/MessageSimple/utils/renderText.test.tsx +30 -23
  40. package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap +2 -0
  41. package/src/components/MessageInput/__tests__/__snapshots__/FileUploadPreview.test.js.snap +24 -68
  42. package/src/components/MessageInput/__tests__/__snapshots__/ImageUploadPreview.test.js.snap +20 -36
  43. package/src/components/MessageInput/__tests__/__snapshots__/MessageInput.test.js.snap +7 -10
  44. package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +4 -0
  45. package/src/components/MessageInput/__tests__/__snapshots__/UploadProgressIndicator.test.js.snap +1 -3
  46. package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.js.snap +1 -0
  47. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +10 -7
  48. package/src/version.json +1 -1
@@ -89,6 +89,7 @@ Array [
89
89
  >
90
90
  <View
91
91
  accessible={true}
92
+ collapsable={false}
92
93
  hitSlop={
93
94
  Object {
94
95
  "bottom": 15,
@@ -173,6 +174,7 @@ Array [
173
174
  >
174
175
  <View
175
176
  accessible={true}
177
+ collapsable={false}
176
178
  hitSlop={
177
179
  Object {
178
180
  "bottom": 15,
@@ -265,7 +267,6 @@ Array [
265
267
  }
266
268
  >
267
269
  <TextInput
268
- allowFontScaling={true}
269
270
  maxLength={5000}
270
271
  multiline={true}
271
272
  onBlur={[Function]}
@@ -274,7 +275,6 @@ Array [
274
275
  onSelectionChange={[Function]}
275
276
  placeholder="Send a message"
276
277
  placeholderTextColor="#7A7A7A"
277
- rejectResponderTermination={true}
278
278
  style={
279
279
  Array [
280
280
  Object {
@@ -293,7 +293,6 @@ Array [
293
293
  ]
294
294
  }
295
295
  testID="auto-complete-text-input"
296
- underlineColorAndroid="transparent"
297
296
  value=""
298
297
  />
299
298
  </View>
@@ -323,6 +322,7 @@ Array [
323
322
  >
324
323
  <View
325
324
  accessible={true}
325
+ collapsable={false}
326
326
  style={
327
327
  Object {
328
328
  "opacity": 1,
@@ -404,6 +404,7 @@ Array [
404
404
  >
405
405
  <View
406
406
  accessible={true}
407
+ collapsable={false}
407
408
  focusable={true}
408
409
  hitSlop={
409
410
  Object {
@@ -493,6 +494,7 @@ Array [
493
494
  </View>
494
495
  <View
495
496
  accessible={true}
497
+ collapsable={false}
496
498
  focusable={true}
497
499
  hitSlop={
498
500
  Object {
@@ -570,6 +572,7 @@ Array [
570
572
  </View>
571
573
  <View
572
574
  accessible={true}
575
+ collapsable={false}
573
576
  focusable={true}
574
577
  hitSlop={
575
578
  Object {
@@ -723,17 +726,13 @@ Array [
723
726
  ]
724
727
  }
725
728
  data={Array []}
726
- disableVirtualization={false}
727
729
  getItem={[Function]}
728
730
  getItemCount={[Function]}
729
- horizontal={false}
730
- initialNumToRender={10}
731
731
  keyExtractor={[Function]}
732
- maxToRenderPerBatch={10}
733
732
  onContentSizeChange={[Function]}
734
733
  onEndReached={[Function]}
735
- onEndReachedThreshold={2}
736
734
  onLayout={[Function]}
735
+ onMomentumScrollBegin={[Function]}
737
736
  onMomentumScrollEnd={[Function]}
738
737
  onScroll={[Function]}
739
738
  onScrollBeginDrag={[Function]}
@@ -742,9 +741,7 @@ Array [
742
741
  renderItem={[Function]}
743
742
  scrollEventThrottle={50}
744
743
  stickyHeaderIndices={Array []}
745
- updateCellsBatchingPeriod={50}
746
744
  viewabilityConfigCallbackPairs={Array []}
747
- windowSize={21}
748
745
  >
749
746
  <View />
750
747
  </RCTScrollView>
@@ -15,6 +15,7 @@ exports[`SendButton should render a non-editing disabled SendButton 1`] = `
15
15
  >
16
16
  <View
17
17
  accessible={true}
18
+ collapsable={false}
18
19
  style={
19
20
  Object {
20
21
  "opacity": 1,
@@ -82,6 +83,7 @@ exports[`SendButton should render a non-editing enabled SendButton 1`] = `
82
83
  >
83
84
  <View
84
85
  accessible={true}
86
+ collapsable={false}
85
87
  style={
86
88
  Object {
87
89
  "opacity": 1,
@@ -149,6 +151,7 @@ exports[`SendButton should render an editing disabled SendButton 1`] = `
149
151
  >
150
152
  <View
151
153
  accessible={true}
154
+ collapsable={false}
152
155
  style={
153
156
  Object {
154
157
  "opacity": 1,
@@ -216,6 +219,7 @@ exports[`SendButton should render an editing enabled SendButton 1`] = `
216
219
  >
217
220
  <View
218
221
  accessible={true}
222
+ collapsable={false}
219
223
  style={
220
224
  Object {
221
225
  "opacity": 1,
@@ -61,10 +61,7 @@ exports[`UploadProgressIndicator should render an active IN_PROGRESS UploadProgr
61
61
  }
62
62
  >
63
63
  <ActivityIndicator
64
- animating={true}
65
64
  color="#F2F2F2"
66
- hidesWhenStopped={true}
67
- size="small"
68
65
  testID="upload-progress-indicator"
69
66
  />
70
67
  </View>
@@ -121,6 +118,7 @@ exports[`UploadProgressIndicator should render an active RETRY UploadProgressInd
121
118
  >
122
119
  <View
123
120
  accessible={true}
121
+ collapsable={false}
124
122
  focusable={true}
125
123
  onClick={[Function]}
126
124
  onResponderGrant={[Function]}
@@ -3,6 +3,7 @@
3
3
  exports[`ScrollToBottomButton should render the message notification and match snapshot 1`] = `
4
4
  <View
5
5
  accessible={true}
6
+ collapsable={false}
6
7
  focusable={true}
7
8
  onClick={[Function]}
8
9
  onResponderGrant={[Function]}
@@ -134,12 +134,9 @@ exports[`Thread should match thread snapshot 1`] = `
134
134
  },
135
135
  ]
136
136
  }
137
- disableVirtualization={false}
138
137
  extraData={false}
139
138
  getItem={[Function]}
140
139
  getItemCount={[Function]}
141
- horizontal={false}
142
- initialNumToRender={10}
143
140
  invertStickyHeaders={true}
144
141
  inverted={true}
145
142
  keyExtractor={[Function]}
@@ -150,10 +147,9 @@ exports[`Thread should match thread snapshot 1`] = `
150
147
  "minIndexForVisible": 1,
151
148
  }
152
149
  }
153
- maxToRenderPerBatch={10}
154
150
  onContentSizeChange={[Function]}
155
- onEndReachedThreshold={2}
156
151
  onLayout={[Function]}
152
+ onMomentumScrollBegin={[Function]}
157
153
  onMomentumScrollEnd={[Function]}
158
154
  onScroll={[Function]}
159
155
  onScrollBeginDrag={[Function]}
@@ -184,7 +180,6 @@ exports[`Thread should match thread snapshot 1`] = `
184
180
  ]
185
181
  }
186
182
  testID="message-flat-list"
187
- updateCellsBatchingPeriod={50}
188
183
  viewabilityConfig={
189
184
  Object {
190
185
  "viewAreaCoveragePercentThreshold": 1,
@@ -200,7 +195,6 @@ exports[`Thread should match thread snapshot 1`] = `
200
195
  },
201
196
  ]
202
197
  }
203
- windowSize={21}
204
198
  >
205
199
  <View>
206
200
  <View
@@ -339,6 +333,7 @@ exports[`Thread should match thread snapshot 1`] = `
339
333
  </View>
340
334
  <View
341
335
  accessible={true}
336
+ collapsable={false}
342
337
  focusable={true}
343
338
  onClick={[Function]}
344
339
  onResponderGrant={[Function]}
@@ -586,6 +581,7 @@ exports[`Thread should match thread snapshot 1`] = `
586
581
  </View>
587
582
  <View
588
583
  accessible={true}
584
+ collapsable={false}
589
585
  focusable={true}
590
586
  onClick={[Function]}
591
587
  onResponderGrant={[Function]}
@@ -833,6 +829,7 @@ exports[`Thread should match thread snapshot 1`] = `
833
829
  </View>
834
830
  <View
835
831
  accessible={true}
832
+ collapsable={false}
836
833
  focusable={true}
837
834
  onClick={[Function]}
838
835
  onResponderGrant={[Function]}
@@ -1122,7 +1119,13 @@ exports[`Thread should match thread snapshot 1`] = `
1122
1119
  </View>
1123
1120
  </View>
1124
1121
  <View
1122
+ accessibilityState={
1123
+ Object {
1124
+ "disabled": true,
1125
+ }
1126
+ }
1125
1127
  accessible={true}
1128
+ collapsable={false}
1126
1129
  focusable={true}
1127
1130
  onClick={[Function]}
1128
1131
  onResponderGrant={[Function]}
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "4.2.0-beta.2"
2
+ "version": "4.2.0-beta.3"
3
3
  }