stream-chat-react-native-core 9.0.0-beta.35 → 9.0.0-beta.37
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/lib/commonjs/components/ChannelList/ChannelListView.js +8 -4
- package/lib/commonjs/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/ChannelList/ChannelListView.js +8 -4
- package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/package.json +1 -1
- package/src/components/ChannelList/ChannelListView.tsx +8 -2
- package/src/version.json +1 -1
- package/lib/commonjs/components/BottomSheetCompatibility/BottomSheetModal.js +0 -8
- package/lib/commonjs/components/BottomSheetCompatibility/BottomSheetModal.js.map +0 -1
- package/lib/commonjs/components/ChannelList/utils.js +0 -51
- package/lib/commonjs/components/ChannelList/utils.js.map +0 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +0 -215
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +0 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js +0 -8
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js.map +0 -1
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessageFlashList.js +0 -15
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessageFlashList.js.map +0 -1
- package/lib/commonjs/components/docs/data.js +0 -476
- package/lib/commonjs/components/docs/data.js.map +0 -1
- package/lib/module/components/BottomSheetCompatibility/BottomSheetModal.js +0 -8
- package/lib/module/components/BottomSheetCompatibility/BottomSheetModal.js.map +0 -1
- package/lib/module/components/ChannelList/utils.js +0 -51
- package/lib/module/components/ChannelList/utils.js.map +0 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +0 -215
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +0 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js +0 -8
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js.map +0 -1
- package/lib/module/components/MessageList/utils/getLastReceivedMessageFlashList.js +0 -15
- package/lib/module/components/MessageList/utils/getLastReceivedMessageFlashList.js.map +0 -1
- package/lib/module/components/docs/data.js +0 -476
- package/lib/module/components/docs/data.js.map +0 -1
- package/lib/typescript/components/BottomSheetCompatibility/BottomSheetModal.d.ts +0 -8
- package/lib/typescript/components/BottomSheetCompatibility/BottomSheetModal.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/utils.d.ts +0 -22
- package/lib/typescript/components/ChannelList/utils.d.ts.map +0 -1
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts +0 -10
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts.map +0 -1
- package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts +0 -8
- package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts.map +0 -1
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessageFlashList.d.ts +0 -3
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessageFlashList.d.ts.map +0 -1
- package/src/components/BottomSheetCompatibility/BottomSheetModal.tsx +0 -16
- package/src/components/ChannelList/utils.ts +0 -76
- package/src/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx +0 -248
- package/src/components/MessageInput/components/NativeAttachmentPicker.tsx +0 -12
- package/src/components/MessageList/utils/getLastReceivedMessageFlashList.ts +0 -20
- package/src/components/docs/data.js +0 -524
|
@@ -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,GAAGJ,MAAM,CAACI,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE;EAC5DC,KAAK,EAAE,8EAA8E;EACrFC,IAAI,EAAE;AACR,CAAC,CAAC;AAEK,IAAMC,cAAc,GAAAN,OAAA,CAAAM,cAAA,GAAG;EAC5BH,OAAO,EAAPA,OAAO;EACPJ,MAAM,EAANA;AACF,CAAC;AAEM,IAAMQ,kBAAkB,GAAAP,OAAA,CAAAO,kBAAA,GAAG;EAChCC,CAAC,E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AAC;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,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":[]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
exports.moveChannelUp = exports.getChannel = exports.MAX_QUERY_CHANNELS_LIMIT = exports.DEFAULT_QUERY_CHANNELS_LIMIT = void 0;
|
|
6
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
7
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
8
|
-
var _utils = require("./hooks/utils");
|
|
9
|
-
var moveChannelUp = exports.moveChannelUp = function moveChannelUp(_ref) {
|
|
10
|
-
var channels = _ref.channels,
|
|
11
|
-
channelToMove = _ref.channelToMove,
|
|
12
|
-
channelToMoveIndexWithinChannels = _ref.channelToMoveIndexWithinChannels,
|
|
13
|
-
sort = _ref.sort;
|
|
14
|
-
var targetChannelIndex = channelToMoveIndexWithinChannels != null ? channelToMoveIndexWithinChannels : channels.findIndex(function (channel) {
|
|
15
|
-
return channel.cid === channelToMove.cid;
|
|
16
|
-
});
|
|
17
|
-
var targetChannelExistsWithinList = targetChannelIndex >= 0;
|
|
18
|
-
var targetChannelAlreadyAtTheTop = targetChannelIndex === 0;
|
|
19
|
-
var considerPinnedChannels = (0, _utils.shouldConsiderPinnedChannels)(sort);
|
|
20
|
-
if (targetChannelAlreadyAtTheTop) {
|
|
21
|
-
return channels;
|
|
22
|
-
}
|
|
23
|
-
var newChannels = (0, _toConsumableArray2.default)(channels);
|
|
24
|
-
if (targetChannelExistsWithinList) {
|
|
25
|
-
newChannels.splice(targetChannelIndex, 1);
|
|
26
|
-
}
|
|
27
|
-
var lastPinnedChannelIndex = null;
|
|
28
|
-
if (considerPinnedChannels) {
|
|
29
|
-
lastPinnedChannelIndex = (0, _utils.findLastPinnedChannelIndex)({
|
|
30
|
-
channels: newChannels
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
newChannels.splice(typeof lastPinnedChannelIndex === 'number' ? lastPinnedChannelIndex + 1 : 0, 0, channelToMove);
|
|
34
|
-
return newChannels;
|
|
35
|
-
};
|
|
36
|
-
var getChannel = exports.getChannel = function () {
|
|
37
|
-
var _ref3 = (0, _asyncToGenerator2.default)(function* (_ref2) {
|
|
38
|
-
var client = _ref2.client,
|
|
39
|
-
id = _ref2.id,
|
|
40
|
-
type = _ref2.type;
|
|
41
|
-
var channel = client.channel(type, id);
|
|
42
|
-
yield channel.watch();
|
|
43
|
-
return channel;
|
|
44
|
-
});
|
|
45
|
-
return function getChannel(_x) {
|
|
46
|
-
return _ref3.apply(this, arguments);
|
|
47
|
-
};
|
|
48
|
-
}();
|
|
49
|
-
var DEFAULT_QUERY_CHANNELS_LIMIT = exports.DEFAULT_QUERY_CHANNELS_LIMIT = 10;
|
|
50
|
-
var MAX_QUERY_CHANNELS_LIMIT = exports.MAX_QUERY_CHANNELS_LIMIT = 30;
|
|
51
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","moveChannelUp","exports","_ref","channels","channelToMove","channelToMoveIndexWithinChannels","sort","targetChannelIndex","findIndex","channel","cid","targetChannelExistsWithinList","targetChannelAlreadyAtTheTop","considerPinnedChannels","shouldConsiderPinnedChannels","newChannels","_toConsumableArray2","default","splice","lastPinnedChannelIndex","findLastPinnedChannelIndex","getChannel","_ref3","_asyncToGenerator2","_ref2","client","id","type","watch","_x","apply","arguments","DEFAULT_QUERY_CHANNELS_LIMIT","MAX_QUERY_CHANNELS_LIMIT"],"sourceRoot":"../../../../src","sources":["components/ChannelList/utils.ts"],"mappings":";;;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAaO,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CAAAE,IAAA,EAKJ;EAAA,IAJpBC,QAAQ,GAA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