stream-chat-react-native-core 9.0.0-beta.36 → 9.0.0-beta.38

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 (60) hide show
  1. package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -1
  2. package/lib/commonjs/contexts/componentsContext/defaultComponents.js +3 -16
  3. package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
  4. package/lib/commonjs/version.json +1 -1
  5. package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -1
  6. package/lib/module/contexts/componentsContext/defaultComponents.js +3 -16
  7. package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
  8. package/lib/module/version.json +1 -1
  9. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +2 -292
  10. package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -1
  11. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +46 -18
  12. package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
  13. package/package.json +1 -1
  14. package/src/contexts/componentsContext/ComponentsContext.tsx +2 -1
  15. package/src/contexts/componentsContext/defaultComponents.ts +47 -35
  16. package/src/version.json +1 -1
  17. package/lib/commonjs/components/BottomSheetCompatibility/BottomSheetModal.js +0 -8
  18. package/lib/commonjs/components/BottomSheetCompatibility/BottomSheetModal.js.map +0 -1
  19. package/lib/commonjs/components/ChannelList/utils.js +0 -51
  20. package/lib/commonjs/components/ChannelList/utils.js.map +0 -1
  21. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +0 -215
  22. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +0 -1
  23. package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js +0 -8
  24. package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js.map +0 -1
  25. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessageFlashList.js +0 -15
  26. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessageFlashList.js.map +0 -1
  27. package/lib/commonjs/components/docs/data.js +0 -476
  28. package/lib/commonjs/components/docs/data.js.map +0 -1
  29. package/lib/commonjs/contexts/componentsContext/PLAN.md +0 -148
  30. package/lib/module/components/BottomSheetCompatibility/BottomSheetModal.js +0 -8
  31. package/lib/module/components/BottomSheetCompatibility/BottomSheetModal.js.map +0 -1
  32. package/lib/module/components/ChannelList/utils.js +0 -51
  33. package/lib/module/components/ChannelList/utils.js.map +0 -1
  34. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +0 -215
  35. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +0 -1
  36. package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js +0 -8
  37. package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js.map +0 -1
  38. package/lib/module/components/MessageList/utils/getLastReceivedMessageFlashList.js +0 -15
  39. package/lib/module/components/MessageList/utils/getLastReceivedMessageFlashList.js.map +0 -1
  40. package/lib/module/components/docs/data.js +0 -476
  41. package/lib/module/components/docs/data.js.map +0 -1
  42. package/lib/module/contexts/componentsContext/PLAN.md +0 -148
  43. package/lib/typescript/components/BottomSheetCompatibility/BottomSheetModal.d.ts +0 -8
  44. package/lib/typescript/components/BottomSheetCompatibility/BottomSheetModal.d.ts.map +0 -1
  45. package/lib/typescript/components/ChannelList/utils.d.ts +0 -22
  46. package/lib/typescript/components/ChannelList/utils.d.ts.map +0 -1
  47. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts +0 -10
  48. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts.map +0 -1
  49. package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts +0 -8
  50. package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts.map +0 -1
  51. package/lib/typescript/components/MessageList/utils/getLastReceivedMessageFlashList.d.ts +0 -3
  52. package/lib/typescript/components/MessageList/utils/getLastReceivedMessageFlashList.d.ts.map +0 -1
  53. package/src/components/BottomSheetCompatibility/BottomSheetModal.tsx +0 -16
  54. package/src/components/ChannelList/utils.ts +0 -76
  55. package/src/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx +0 -248
  56. package/src/components/MessageInput/components/NativeAttachmentPicker.tsx +0 -12
  57. package/src/components/MessageList/utils/getLastReceivedMessageFlashList.ts +0 -20
  58. package/src/components/docs/data.js +0 -524
  59. package/src/contexts/componentsContext/PLAN.md +0 -148
  60. package/src/contexts/componentsContext/__tests__/defaultComponents.test.ts +0 -45
@@ -1,476 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", {
2
- value: true
3
- });
4
- exports.users = exports.translationContext = exports.threadMessages = exports.thread = exports.suggestionsContext = exports.messages = exports.messageWithUrlPreview = exports.messageWithImages = exports.message = exports.client = exports.channels = exports.channelContext = exports.channel = exports.MessageMock = void 0;
5
- var Dayjs = require('dayjs');
6
- var StreamChat = require('stream-chat').StreamChat;
7
- var client = exports.client = new StreamChat('qk4nn7rpcn75');
8
- client.connectUser({
9
- id: 'John'
10
- }, 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiSm9obiIsImlhdCI6MTU0ODI5ODUxN30.hyonbQnOLuFsr15mdmc_JF4sBOm2SURK4eBvTOx3ZIg');
11
- var channel = exports.channel = client.channel('messaging', 'general', {
12
- image: 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_01_green.jpg',
13
- name: 'Talk about the documentation'
14
- });
15
- var channelContext = exports.channelContext = {
16
- channel: channel,
17
- client: client
18
- };
19
- var translationContext = exports.translationContext = {
20
- t: function t(text) {
21
- return text;
22
- },
23
- tDateTimeParser: function tDateTimeParser(date) {
24
- return Dayjs(date);
25
- }
26
- };
27
- var suggestionsContext = exports.suggestionsContext = {
28
- closeSuggestions: function closeSuggestions() {},
29
- openSuggestions: function openSuggestions() {},
30
- setInputBoxContainerRef: function setInputBoxContainerRef() {},
31
- updateSuggestions: function updateSuggestions() {}
32
- };
33
- var filters = {
34
- example: 1,
35
- type: 'team'
36
- };
37
- var sort = {
38
- last_updated: -1
39
- };
40
- var channels = exports.channels = client.queryChannels(filters, sort, {
41
- subscribe: true
42
- });
43
- var message = exports.message = {
44
- __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
45
- attachments: [],
46
- command: '',
47
- created_at: '2019-01-25T00:18:59.675Z',
48
- html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
49
- id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
50
- own_reactions: [{
51
- created_at: '2019-01-25T16:24:00.173967Z',
52
- id: 142,
53
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
54
- type: 'love',
55
- user: {
56
- created_at: '2019-01-22T16:35:18.417456Z',
57
- id: 'thierry',
58
- last_active: '2019-01-25T09:23:47.108127-07:00',
59
- online: true,
60
- role: 'user',
61
- updated_at: '2019-01-25T16:23:47.052538Z'
62
- }
63
- }, {
64
- created_at: '2019-01-25T16:23:58.939438Z',
65
- id: 141,
66
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
67
- type: 'like',
68
- user: {
69
- created_at: '2019-01-22T16:35:18.417456Z',
70
- id: 'thierry',
71
- last_active: '2019-01-25T09:23:47.108127-07:00',
72
- online: true,
73
- role: 'user',
74
- updated_at: '2019-01-25T16:23:47.052538Z'
75
- }
76
- }],
77
- reaction_counts: {
78
- like: 1,
79
- love: 1
80
- },
81
- reactions: [{
82
- created_at: '2019-01-25T16:24:00.173967Z',
83
- id: 142,
84
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
85
- type: 'love',
86
- user: {
87
- created_at: '2019-01-22T16:35:18.417456Z',
88
- id: 'thierry',
89
- last_active: '2019-01-25T09:23:47.108127-07:00',
90
- online: true,
91
- role: 'user',
92
- updated_at: '2019-01-25T16:23:47.052538Z'
93
- }
94
- }, {
95
- created_at: '2019-01-25T16:23:58.939438Z',
96
- id: 141,
97
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
98
- type: 'like',
99
- user: {
100
- created_at: '2019-01-22T16:35:18.417456Z',
101
- id: 'thierry',
102
- last_active: '2019-01-25T09:23:47.108127-07:00',
103
- online: true,
104
- role: 'user',
105
- updated_at: '2019-01-25T16:23:47.052538Z'
106
- }
107
- }],
108
- reply_count: 0,
109
- status: 'received',
110
- text: 'Hey this is getstream message',
111
- type: 'regular',
112
- updated_at: '2019-01-25T16:24:00.181Z',
113
- user: {
114
- created_at: '2019-01-22T16:35:18.417456Z',
115
- id: 'thierry',
116
- image: 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
117
- last_active: '2019-01-25T09:23:47.108127-07:00',
118
- online: true,
119
- role: 'user',
120
- updated_at: '2019-01-25T16:23:47.052538Z'
121
- }
122
- };
123
- var messageWithImages = exports.messageWithImages = {
124
- __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
125
- attachments: [{
126
- image_url: 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',
127
- thumb_url: 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',
128
- type: 'image'
129
- }, {
130
- image_url: 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',
131
- thumb_url: 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',
132
- type: 'image'
133
- }, {
134
- image_url: 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',
135
- thumb_url: 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',
136
- type: 'image'
137
- }, {
138
- image_url: 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',
139
- thumb_url: 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',
140
- type: 'image'
141
- }],
142
- command: '',
143
- created_at: '2019-01-25T00:18:59.675Z',
144
- html: '',
145
- id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
146
- own_reactions: [{
147
- created_at: '2019-01-25T16:24:00.173967Z',
148
- id: 142,
149
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
150
- type: 'love',
151
- user: {
152
- created_at: '2019-01-22T16:35:18.417456Z',
153
- id: 'thierry',
154
- last_active: '2019-01-25T09:23:47.108127-07:00',
155
- online: true,
156
- role: 'user',
157
- updated_at: '2019-01-25T16:23:47.052538Z'
158
- }
159
- }, {
160
- created_at: '2019-01-25T16:23:58.939438Z',
161
- id: 141,
162
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
163
- type: 'like',
164
- user: {
165
- created_at: '2019-01-22T16:35:18.417456Z',
166
- id: 'thierry',
167
- last_active: '2019-01-25T09:23:47.108127-07:00',
168
- online: true,
169
- role: 'user',
170
- updated_at: '2019-01-25T16:23:47.052538Z'
171
- }
172
- }],
173
- reaction_counts: {
174
- like: 1,
175
- love: 1
176
- },
177
- reactions: [{
178
- created_at: '2019-01-25T16:24:00.173967Z',
179
- id: 142,
180
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
181
- type: 'love',
182
- user: {
183
- created_at: '2019-01-22T16:35:18.417456Z',
184
- id: 'thierry',
185
- last_active: '2019-01-25T09:23:47.108127-07:00',
186
- online: true,
187
- role: 'user',
188
- updated_at: '2019-01-25T16:23:47.052538Z'
189
- }
190
- }, {
191
- created_at: '2019-01-25T16:23:58.939438Z',
192
- id: 141,
193
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
194
- type: 'like',
195
- user: {
196
- created_at: '2019-01-22T16:35:18.417456Z',
197
- id: 'thierry',
198
- last_active: '2019-01-25T09:23:47.108127-07:00',
199
- online: true,
200
- role: 'user',
201
- updated_at: '2019-01-25T16:23:47.052538Z'
202
- }
203
- }],
204
- reply_count: 0,
205
- status: 'received',
206
- text: 'This message contains images',
207
- type: 'regular',
208
- updated_at: '2019-01-25T16:24:00.181Z',
209
- user: {
210
- created_at: '2019-01-22T16:35:18.417456Z',
211
- id: 'thierry',
212
- image: 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
213
- last_active: '2019-01-25T09:23:47.108127-07:00',
214
- online: true,
215
- role: 'user',
216
- updated_at: '2019-01-25T16:23:47.052538Z'
217
- }
218
- };
219
- var messageWithUrlPreview = exports.messageWithUrlPreview = {
220
- __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
221
- attachments: [{
222
- image_url: 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',
223
- og_scrape_url: 'https://unsplash.com/photos/lxuB4abGzXc',
224
- text: 'Download this photo in Addu City, Maldives by Ibrahim Shabil (@shabilphotos)',
225
- thumb_url: 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',
226
- title: 'Cosmic Home photo by Ibrahim Shabil (@shabilphotos) on Unsplash',
227
- title_link: 'https://unsplash.com/photos/lxuB4abGzXc',
228
- type: 'image'
229
- }],
230
- command: '',
231
- created_at: '2019-01-25T00:18:59.675Z',
232
- html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
233
- id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
234
- own_reactions: [{
235
- created_at: '2019-01-25T16:24:00.173967Z',
236
- id: 142,
237
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
238
- type: 'love',
239
- user: {
240
- created_at: '2019-01-22T16:35:18.417456Z',
241
- id: 'thierry',
242
- last_active: '2019-01-25T09:23:47.108127-07:00',
243
- online: true,
244
- role: 'user',
245
- updated_at: '2019-01-25T16:23:47.052538Z'
246
- }
247
- }, {
248
- created_at: '2019-01-25T16:23:58.939438Z',
249
- id: 141,
250
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
251
- type: 'like',
252
- user: {
253
- created_at: '2019-01-22T16:35:18.417456Z',
254
- id: 'thierry',
255
- last_active: '2019-01-25T09:23:47.108127-07:00',
256
- online: true,
257
- role: 'user',
258
- updated_at: '2019-01-25T16:23:47.052538Z'
259
- }
260
- }],
261
- reaction_counts: {
262
- like: 1,
263
- love: 1
264
- },
265
- reactions: [{
266
- created_at: '2019-01-25T16:24:00.173967Z',
267
- id: 142,
268
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
269
- type: 'love',
270
- user: {
271
- created_at: '2019-01-22T16:35:18.417456Z',
272
- id: 'thierry',
273
- last_active: '2019-01-25T09:23:47.108127-07:00',
274
- online: true,
275
- role: 'user',
276
- updated_at: '2019-01-25T16:23:47.052538Z'
277
- }
278
- }, {
279
- created_at: '2019-01-25T16:23:58.939438Z',
280
- id: 141,
281
- message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',
282
- type: 'like',
283
- user: {
284
- created_at: '2019-01-22T16:35:18.417456Z',
285
- id: 'thierry',
286
- last_active: '2019-01-25T09:23:47.108127-07:00',
287
- online: true,
288
- role: 'user',
289
- updated_at: '2019-01-25T16:23:47.052538Z'
290
- }
291
- }],
292
- reply_count: 0,
293
- status: 'received',
294
- text: 'https://unsplash.com/photos/lxuB4abGzXc',
295
- type: 'regular',
296
- updated_at: '2019-01-25T16:24:00.181Z',
297
- user: {
298
- created_at: '2019-01-22T16:35:18.417456Z',
299
- id: 'thierry',
300
- image: 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
301
- last_active: '2019-01-25T09:23:47.108127-07:00',
302
- online: true,
303
- role: 'user',
304
- updated_at: '2019-01-25T16:23:47.052538Z'
305
- }
306
- };
307
- var thread = exports.thread = {
308
- __html: '<p>this place looks amazing: <a href="https://unsplash.com/photos/f3hDGOHptrM" rel="nofollow">https://unsplash.com/photos/f3hDGOHptrM</a></p>\n',
309
- attachments: [{
310
- image_url: 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',
311
- og_scrape_url: 'https://unsplash.com/photos/f3hDGOHptrM',
312
- text: 'Download this photo by Sandra Seitamaa (@seitamaaphotography)',
313
- thumb_url: 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',
314
- title: 'Plant, tree, nature and river HD photo by Sandra Seitamaa (@seitamaaphotography) on Unsplash',
315
- title_link: 'https://unsplash.com/photos/f3hDGOHptrM',
316
- type: 'image'
317
- }],
318
- command: '',
319
- created_at: '2019-01-25T21:25:45.306Z',
320
- html: '<p>this place looks amazing: <a href="https://unsplash.com/photos/f3hDGOHptrM" rel="nofollow">https://unsplash.com/photos/f3hDGOHptrM</a></p>\n',
321
- id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',
322
- own_reactions: [],
323
- reaction_counts: null,
324
- reactions: [],
325
- reply_count: 2,
326
- status: 'received',
327
- text: 'this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM',
328
- type: 'regular',
329
- updated_at: '2019-01-25T21:25:45.306Z',
330
- user: {
331
- created_at: '2019-01-22T16:35:18.417456Z',
332
- id: 'thierry',
333
- online: true,
334
- role: 'user',
335
- updated_at: '2019-01-25T21:27:39.606466Z'
336
- }
337
- };
338
- var threadMessages = exports.threadMessages = [{
339
- __html: '<p>whow, where is that?</p>\n',
340
- attachments: [],
341
- command: '',
342
- created_at: new Date('2019-01-25T21:26:06.346Z'),
343
- html: '<p>whow, where is that?</p>\n',
344
- id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',
345
- own_reactions: [],
346
- parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',
347
- reaction_counts: null,
348
- reactions: [],
349
- reply_count: 0,
350
- status: 'received',
351
- text: 'whow, where is that?',
352
- type: 'reply',
353
- updated_at: '2019-01-25T21:26:06.346Z',
354
- user: {
355
- created_at: '2019-01-22T16:35:18.417456Z',
356
- id: 'thierry',
357
- invisible: false,
358
- last_active: '0001-01-01T00:00:00Z',
359
- mutes: [],
360
- online: false,
361
- role: 'user',
362
- updated_at: '2019-01-25T21:27:39.606466Z'
363
- }
364
- }, {
365
- __html: '<p>it’s soo green, amazing</p>\n',
366
- attachments: [],
367
- command: '',
368
- created_at: new Date('2019-01-25T21:26:11.863Z'),
369
- html: '<p>it’s soo green, amazing</p>\n',
370
- id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',
371
- own_reactions: [],
372
- parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',
373
- reaction_counts: null,
374
- reactions: [],
375
- reply_count: 0,
376
- status: 'received',
377
- text: "it's soo green, amazing",
378
- type: 'reply',
379
- updated_at: '2019-01-25T21:26:11.863Z',
380
- user: {
381
- created_at: '2019-01-22T16:35:18.417456Z',
382
- id: 'thierry',
383
- invisible: false,
384
- last_active: '0001-01-01T00:00:00Z',
385
- mutes: [],
386
- online: false,
387
- role: 'user',
388
- updated_at: '2019-01-25T21:27:39.606466Z'
389
- }
390
- }];
391
- var messages = exports.messages = [{
392
- __html: '<p>whow, where is that?</p>\n',
393
- attachments: [],
394
- command: '',
395
- created_at: new Date('2019-01-25T21:26:06.346Z'),
396
- html: '<p>whow, where is that?</p>\n',
397
- id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',
398
- own_reactions: [],
399
- parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',
400
- reaction_counts: null,
401
- reactions: [],
402
- reply_count: 0,
403
- status: 'received',
404
- text: 'whow, where is that?',
405
- type: 'reply',
406
- updated_at: '2019-01-25T21:26:06.346Z',
407
- user: {
408
- created_at: '2019-01-22T16:35:18.417456Z',
409
- id: 'thierry',
410
- invisible: false,
411
- last_active: '0001-01-01T00:00:00Z',
412
- mutes: [],
413
- online: false,
414
- role: 'user',
415
- updated_at: '2019-01-25T21:27:39.606466Z'
416
- }
417
- }, {
418
- __html: '<p>it’s soo green, amazing</p>\n',
419
- attachments: [],
420
- command: '',
421
- created_at: new Date('2019-01-25T21:26:11.863Z'),
422
- html: '<p>it’s soo green, amazing</p>\n',
423
- id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',
424
- own_reactions: [],
425
- parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',
426
- reaction_counts: null,
427
- reactions: [],
428
- reply_count: 0,
429
- status: 'received',
430
- text: "it's soo green, amazing",
431
- type: 'reply',
432
- updated_at: '2019-01-25T21:26:11.863Z',
433
- user: {
434
- created_at: '2019-01-22T16:35:18.417456Z',
435
- id: 'thierry',
436
- invisible: false,
437
- last_active: '0001-01-01T00:00:00Z',
438
- mutes: [],
439
- online: false,
440
- role: 'user',
441
- updated_at: '2019-01-25T21:27:39.606466Z'
442
- }
443
- }];
444
- var users = exports.users = [{
445
- created_at: '2019-01-28T16:03:25.619982Z',
446
- id: 'thierry',
447
- last_active: '2019-01-28T15:07:32.314676-07:00',
448
- online: true,
449
- role: 'user',
450
- updated_at: '2019-01-28T22:07:32.297119Z'
451
- }];
452
- var MessageMock = exports.MessageMock = {
453
- canDeleteMessage: function canDeleteMessage() {
454
- return true;
455
- },
456
- canEditMessage: function canEditMessage() {
457
- return true;
458
- },
459
- handleDelete: console.log,
460
- handleEdit: console.log,
461
- handleFlag: console.log,
462
- handleMute: console.log
463
- };
464
- function dynamicallyLoadScript(url) {
465
- return new Promise(function (resolve, reject) {
466
- var script = document.createElement('script');
467
- script.src = url;
468
- script.onload = resolve;
469
- script.onerror = function () {
470
- return reject(new Error(`Error when loading ${url}!`));
471
- };
472
- document.body.appendChild(script);
473
- });
474
- }
475
- dynamicallyLoadScript('https://snack.expo.io/embed.js');
476
- //# sourceMappingURL=data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Dayjs","require","StreamChat","client","exports","connectUser","id","channel","image","name","channelContext","translationContext","t","text","tDateTimeParser","date","suggestionsContext","closeSuggestions","openSuggestions","setInputBoxContainerRef","updateSuggestions","filters","example","type","sort","last_updated","channels","queryChannels","subscribe","message","__html","attachments","command","created_at","html","own_reactions","message_id","user","last_active","online","role","updated_at","reaction_counts","like","love","reactions","reply_count","status","messageWithImages","image_url","thumb_url","messageWithUrlPreview","og_scrape_url","title","title_link","thread","threadMessages","Date","parent_id","invisible","mutes","messages","users","MessageMock","canDeleteMessage","canEditMessage","handleDelete","console","log","handleEdit","handleFlag","handleMute","dynamicallyLoadScript","url","Promise","resolve","reject","script","document","createElement","src","onload","onerror","Error","body","appendChild"],"sourceRoot":"../../../../src","sources":["components/docs/data.js"],"mappings":";;;;AACA,IAAMA,KAAK,GAAGC,OAAO,CAAC,OAAO,CAAC;AAC9B,IAAMC,UAAU,GAAGD,OAAO,CAAC,aAAa,CAAC,CAACC,UAAU;AAC7C,IAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAID,UAAU,CAAC,cAAc,CAAC;AAEpDC,MAAM,CAACE,WAAW,CAChB;EACEC,EAAE,EAAE;AACN,CAAC,EACD,kIACF,CAAC;AAEM,IAAMC,OAAO,GAAAH,OAAA,CAAAG,OAAA,GA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AG;EACzBC,gBAAgB,EAAE,SAAlBA,gBAAgBA,CAAA;IAAA,OAAQ,IAAI;EAAA;EAC5BC,cAAc,EAAE,SAAhBA,cAAcA,CAAA;IAAA,OAAQ,IAAI;EAAA;EAC1BC,YAAY,EAAEC,OAAO,CAACC,GAAG;EACzBC,UAAU,EAAEF,OAAO,CAACC,GAAG;EACvBE,UAAU,EAAEH,OAAO,CAACC,GAAG;EACvBG,UAAU,EAAEJ,OAAO,CAACC;AACtB,CAAC;AAGD,SAASI,qBAAqBA,CAACC,GAAG,EAAE;EAClC,OAAO,IAAIC,OAAO,CAAC,UAAUC,OAAO,EAAEC,MAAM,EAAE;IAC5C,IAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,QAAQ,CAAC;IAC/CF,MAAM,CAACG,GAAG,GAAGP,GAAG;IAChBI,MAAM,CAACI,MAAM,GAAGN,OAAO;IACvBE,MAAM,CAACK,OAAO,GAAG;MAAA,OAAMN,MAAM,CAAC,IAAIO,KAAK,CAAC,sBAAsBV,GAAG,GAAG,CAAC,CAAC;IAAA;IACtEK,QAAQ,CAACM,IAAI,CAACC,WAAW,CAACR,MAAM,CAAC;EACnC,CAAC,CAAC;AACJ;AACAL,qBAAqB,CAAC,gCAAgC,CAAC","ignoreList":[]}
@@ -1,148 +0,0 @@
1
- # WithComponents — Component Override System
2
-
3
- ## Design Principle
4
-
5
- **All components are read from `useComponentsContext()`. All other contexts only provide data + APIs — never components.**
6
-
7
- ## Current State (Completed)
8
-
9
- ### What was done
10
-
11
- 1. **Created `ComponentsContext`** — `WithComponents` provider, `useComponentsContext()` hook, `ComponentOverrides` type
12
- 2. **Created `defaultComponents.ts`** — centralized map of all ~130 default components
13
- 3. **Stripped component keys** from all existing context types: `MessagesContextValue`, `InputMessageInputContextValue`, `ChannelContextValue`, `ChannelsContextValue`, `AttachmentPickerContextValue`, `ThreadsContextValue`, `ImageGalleryContextValue`
14
- 4. **Simplified `useCreate*Context` hooks** — no longer receive or forward component params
15
- 5. **Simplified `Channel.tsx`** — removed ~90 component imports, prop defaults, forwarding lines
16
- 6. **Simplified `ChannelList.tsx`** — removed ~19 component props
17
- 7. **Updated ~80 consumer files** — switched from old context hooks to `useComponentsContext()`
18
- 8. **Removed component override props** from ALL individual components
19
- 9. **Updated all 3 example apps** (SampleApp, ExpoMessaging, TypeScriptMessaging)
20
- 10. **Updated ~45 documentation pages** across docs-content repo
21
- 11. **Merged with develop** and resolved conflicts
22
-
23
- ### Architecture
24
-
25
- ```
26
- User: <WithComponents overrides={{ Message: Custom }}>
27
-
28
- ComponentsContext (merges parent + overrides, inner wins)
29
-
30
- useComponentsContext() → { ...DEFAULT_COMPONENTS, ...overrides }
31
-
32
- Consumer: const { Message } = useComponentsContext()
33
- ```
34
-
35
- ### Key Files
36
-
37
- | File | Purpose |
38
- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
39
- | `ComponentsContext.tsx` | ~60 lines. `ComponentOverrides` type (derived from `typeof DEFAULT_COMPONENTS`), `WithComponents` provider, `useComponentsContext()` hook |
40
- | `defaultComponents.ts` | ~300 lines. Single source of truth for all default component mappings. Adding a new component here auto-extends `ComponentOverrides` |
41
-
42
- ### Type System
43
-
44
- `ComponentOverrides` is derived automatically:
45
-
46
- ```ts
47
- export type ComponentOverrides = Partial<(typeof import('./defaultComponents'))['DEFAULT_COMPONENTS']>;
48
- ```
49
-
50
- No manual type maintenance — add a component to `DEFAULT_COMPONENTS` and the type updates.
51
-
52
- ### Circular Dependency Handling
53
-
54
- `defaultComponents.ts` → imports components → components import `useComponentsContext` from `ComponentsContext.tsx`.
55
-
56
- Broken by lazy-loading defaults in the hook:
57
-
58
- ```ts
59
- let cachedDefaults: ComponentOverrides | undefined;
60
- const getDefaults = () => {
61
- if (!cachedDefaults) {
62
- cachedDefaults = require('./defaultComponents').DEFAULT_COMPONENTS;
63
- }
64
- return cachedDefaults;
65
- };
66
- ```
67
-
68
- ### Naming Conventions
69
-
70
- Some component keys differ from their default component names to avoid collisions:
71
-
72
- | Override Key | Default Component | Why renamed |
73
- | --------------------------------------- | --------------------------------------- | ---------------------------------------------------------- |
74
- | `FileAttachmentIcon` | `FileIcon` | Clarity |
75
- | `ChannelListLoadingIndicator` | `ChannelListLoadingIndicator` | Split from shared `LoadingIndicator` — renders skeleton UI |
76
- | `MessageListLoadingIndicator` | `LoadingIndicator` | Split from shared `LoadingIndicator` — renders text |
77
- | `ChatLoadingIndicator` | `undefined` | Optional, no default |
78
- | `ThreadMessageComposer` | `MessageComposer` | Avoid collision with `MessageComposer` component name |
79
- | `ThreadListComponent` | `DefaultThreadListComponent` | Avoid collision with exported `ThreadList` |
80
- | `StartAudioRecordingButton` | `AudioRecordingButton` | Historical naming |
81
- | `ChannelPreview` | `ChannelPreviewView` | ChannelList preview item |
82
- | `ChannelPreviewAvatar` | `ChannelAvatar` | ChannelList preview avatar |
83
- | `ChannelListFooterLoadingIndicator` | `ChannelListFooterLoadingIndicator` | ChannelList footer |
84
- | `ChannelListHeaderErrorIndicator` | `ChannelListHeaderErrorIndicator` | ChannelList header |
85
- | `ChannelListHeaderNetworkDownIndicator` | `ChannelListHeaderNetworkDownIndicator` | ChannelList header |
86
-
87
- ### Optional Components (no default)
88
-
89
- These exist in `DEFAULT_COMPONENTS` as `undefined` with `React.ComponentType<any> | undefined` type assertions:
90
-
91
- `AttachmentPickerIOSSelectMorePhotos`, `ChatLoadingIndicator`, `CreatePollContent`, `ImageComponent`, `Input`, `ListHeaderComponent`, `MessageActions`, `MessageContentBottomView`, `MessageContentLeadingView`, `MessageContentTopView`, `MessageContentTrailingView`, `MessageLocation`, `MessageSpacer`, `MessageText`, `PollContent`
92
-
93
- ### Shared Component Keys (audited)
94
-
95
- Some keys were used in multiple contexts before the refactor. Audit results:
96
-
97
- | Key | Used By | Same Default? | Resolution |
98
- | ----------------------- | --------------------- | ----------------------------------------------------------- | --------------------------------------------------------------------------- |
99
- | `EmptyStateIndicator` | Channel + ChannelList | Yes (differentiates via `listType` prop) | Single key ✅ |
100
- | `LoadingErrorIndicator` | Channel + ChannelList | Yes (differentiates via `listType` prop) | Single key ✅ |
101
- | `LoadingIndicator` | Channel + ChannelList | **No** — Channel used text-based, ChannelList used skeleton | Split into `MessageListLoadingIndicator` + `ChannelListLoadingIndicator` ✅ |
102
-
103
- ### API Alignment with stream-chat-react
104
-
105
- | Aspect | React Native | React Web |
106
- | --------- | ----------------------------------- | -------------------------------------- |
107
- | Provider | `WithComponents` | `WithComponents` |
108
- | Prop name | `overrides` | `overrides` |
109
- | Hook | `useComponentsContext()` | `useComponentContext()` |
110
- | Type | `ComponentOverrides` (auto-derived) | `ComponentContextValue` (hand-written) |
111
- | Defaults | Lazy-loaded via `require()` | Set at `Channel` level |
112
- | Merge | `useMemo` | Plain spread (no memo) |
113
-
114
- ## Known Issues / Future Work
115
-
116
- ### Pre-existing Test Failures (not caused by this work)
117
-
118
- These test suites fail on `develop` too:
119
-
120
- - `offline-support/index.test.ts` — timeout
121
- - `ChannelList.test.js` — filter race condition (`channel.countUnread` mock missing)
122
- - `isAttachmentEqualHandler.test.js`, `MessageContent.test.js`, `MessageTextContainer.test.tsx`, `MessageUserReactions.test.tsx`, `ChannelPreview.test.tsx` — various pre-existing issues
123
-
124
- ### Linter Interaction
125
-
126
- `@typescript-eslint/no-unused-vars` (warn, max-warnings 0) aggressively strips unused type keys. When adding new keys to `ComponentOverrides`, the type and its consumer must land in the same edit — otherwise the linter removes the key between saves.
127
-
128
- Since `ComponentOverrides` is now auto-derived from `DEFAULT_COMPONENTS`, this is no longer an issue for the type itself. But be aware when adding optional components (`undefined as React.ComponentType<any> | undefined`).
129
-
130
- ### `contexts/index.ts` Barrel Export
131
-
132
- The `export * from './componentsContext/ComponentsContext'` line in `contexts/index.ts` was stripped by the linter multiple times during development. If `WithComponents` becomes unexportable from the package, check this barrel file first.
133
-
134
- ### Documentation
135
-
136
- Docs PR: https://github.com/GetStream/docs-content/pull/1169
137
-
138
- Updated ~45 pages across:
139
-
140
- - Core teaching pages (custom_components, message-customization, etc.)
141
- - Component reference pages (channel-list, message-list, message-composer, etc.)
142
- - Context docs (stripped component keys from 7 context pages)
143
- - Migration guide (upgrading-from-v8.md — comprehensive WithComponents section)
144
- - Advanced guides (audio, AI, image-picker, etc.)
145
-
146
- ### SDK PR
147
-
148
- https://github.com/GetStream/stream-chat-react-native/pull/3542
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", {
2
- value: true
3
- });
4
- exports.BottomSheetModalProvider = exports.BottomSheetModal = void 0;
5
- var _bottomSheet = require("@gorhom/bottom-sheet");
6
- var BottomSheetModalProvider = exports.BottomSheetModalProvider = _bottomSheet.BottomSheetModalProvider;
7
- var BottomSheetModal = exports.BottomSheetModal = _bottomSheet.BottomSheetModal;
8
- //# sourceMappingURL=BottomSheetModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_bottomSheet","require","BottomSheetModalProvider","exports","BottomSheetModalProviderOriginal","BottomSheetModal","BottomSheetModalOriginal"],"sourceRoot":"../../../../src","sources":["components/BottomSheetCompatibility/BottomSheetModal.tsx"],"mappings":";;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAUO,IAAMC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GACnCE,qCAAsF;AACjF,IAAMC,gBAAgB,GAAAF,OAAA,CAAAE,gBAAA,GAC3BC,6BAAsE","ignoreList":[]}