@webitel/ui-chats 26.8.3 → 26.8.4
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/package.json +9 -2
- package/src/locale/en/en.ts +3 -0
- package/src/locale/es/es.ts +3 -0
- package/src/locale/kz/kz.ts +3 -0
- package/src/locale/pl/pl.ts +3 -0
- package/src/locale/ro/ro.ts +3 -0
- package/src/locale/ru/ru.ts +3 -0
- package/src/locale/uk/uk.ts +3 -0
- package/src/locale/uz/uz.ts +3 -0
- package/src/locale/vi/vi.ts +3 -0
- package/src/shared/composables/__tests__/useChatScroll.spec.ts +164 -0
- package/src/shared/composables/__tests__/useObserveHeightUntilStable.spec.ts +48 -0
- package/src/{ui/messaging → shared}/composables/useChatScroll.ts +37 -9
- package/src/{ui/messaging → shared}/composables/useObserveHeightUntilStable.ts +2 -0
- package/src/ui/index.ts +2 -2
- package/src/ui/messaging/components/the-messages-container.vue +2 -2
- package/src/v2/index.ts +4 -0
- package/src/v2/locale/en.ts +29 -0
- package/src/v2/locale/es.ts +28 -0
- package/src/v2/locale/kz.ts +28 -0
- package/src/v2/locale/pl.ts +28 -0
- package/src/v2/locale/ro.ts +28 -0
- package/src/v2/locale/ru.ts +27 -0
- package/src/v2/locale/uk.ts +27 -0
- package/src/v2/locale/useChatsV2I18n.ts +14 -0
- package/src/v2/locale/uz.ts +28 -0
- package/src/v2/locale/vi.ts +28 -0
- package/src/v2/scripts/__tests__/attachments.spec.ts +168 -0
- package/src/v2/scripts/__tests__/fixtures.ts +56 -0
- package/src/v2/scripts/__tests__/formatDate.spec.ts +96 -0
- package/src/v2/scripts/__tests__/getMessageStatus.spec.ts +214 -0
- package/src/v2/scripts/__tests__/isContactCentreSide.spec.ts +21 -0
- package/src/v2/scripts/__tests__/resolveSystemNotice.spec.ts +157 -0
- package/src/v2/scripts/__tests__/toHistoryItems.spec.ts +100 -0
- package/src/v2/scripts/attachments.ts +144 -0
- package/src/v2/scripts/formatDate.ts +74 -0
- package/src/v2/scripts/getMessageStatus.ts +58 -0
- package/src/v2/scripts/isContactCentreSide.ts +14 -0
- package/src/v2/scripts/resolveSystemNotice.ts +119 -0
- package/src/v2/scripts/toHistoryItems.ts +63 -0
- package/src/v2/scripts/toTimestamp.ts +21 -0
- package/src/v2/types/index.ts +74 -0
- package/src/v2/ui/__tests__/mountWithChats.ts +38 -0
- package/src/v2/ui/chat-composer/__tests__/chat-composer.spec.ts +221 -0
- package/src/v2/ui/chat-composer/chat-composer.vue +212 -0
- package/src/v2/ui/chat-history/__tests__/chat-history.spec.ts +235 -0
- package/src/v2/ui/chat-history/chat-history.vue +262 -0
- package/src/v2/ui/chat-history/components/chat-date-divider.vue +36 -0
- package/src/v2/ui/chat-history/components/chat-message.vue +148 -0
- package/src/v2/ui/chat-history/components/chat-system-notice.vue +100 -0
- package/src/v2/ui/chat-history/components/message-attachments.vue +162 -0
- package/src/v2/ui/chat-history/components/message-status.vue +31 -0
- package/src/v2/ui/chat-history/components/message-text.vue +37 -0
- package/src/v2/ui/chat-history/components/scroll-to-bottom-btn.vue +55 -0
- package/src/v2/ui/chat-history/gallery.ts +8 -0
- package/src/v2/ui/chat-thread/__tests__/chat-thread.spec.ts +122 -0
- package/src/v2/ui/chat-thread/chat-thread.vue +111 -0
- package/types/.tsbuildinfo +1 -1
- package/types/locale/en/en.d.ts +25 -0
- package/types/locale/es/es.d.ts +25 -0
- package/types/locale/index.d.ts +225 -0
- package/types/locale/kz/kz.d.ts +25 -0
- package/types/locale/pl/pl.d.ts +25 -0
- package/types/locale/ro/ro.d.ts +25 -0
- package/types/locale/ru/ru.d.ts +25 -0
- package/types/locale/uk/uk.d.ts +25 -0
- package/types/locale/uz/uz.d.ts +25 -0
- package/types/locale/vi/vi.d.ts +25 -0
- package/types/{ui/messaging → shared}/composables/useChatScroll.d.ts +14 -4
- package/types/ui/index.d.ts +2 -2
- package/types/v2/index.d.ts +4 -0
- package/types/v2/locale/en.d.ts +27 -0
- package/types/v2/locale/es.d.ts +26 -0
- package/types/v2/locale/kz.d.ts +26 -0
- package/types/v2/locale/pl.d.ts +26 -0
- package/types/v2/locale/ro.d.ts +26 -0
- package/types/v2/locale/ru.d.ts +26 -0
- package/types/v2/locale/uk.d.ts +26 -0
- package/types/v2/locale/useChatsV2I18n.d.ts +5 -0
- package/types/v2/locale/uz.d.ts +26 -0
- package/types/v2/locale/vi.d.ts +26 -0
- package/types/v2/scripts/__tests__/fixtures.d.ts +7 -0
- package/types/v2/scripts/attachments.d.ts +30 -0
- package/types/v2/scripts/formatDate.d.ts +17 -0
- package/types/v2/scripts/getMessageStatus.d.ts +8 -0
- package/types/v2/scripts/isContactCentreSide.d.ts +8 -0
- package/types/v2/scripts/resolveSystemNotice.d.ts +23 -0
- package/types/v2/scripts/toHistoryItems.d.ts +19 -0
- package/types/v2/scripts/toTimestamp.d.ts +7 -0
- package/types/v2/types/index.d.ts +54 -0
- package/types/v2/ui/__tests__/mountWithChats.d.ts +8 -0
- package/types/v2/ui/chat-composer/chat-composer.vue.d.ts +31 -0
- package/types/v2/ui/chat-history/chat-history.vue.d.ts +11 -0
- package/types/v2/ui/chat-history/components/chat-date-divider.vue.d.ts +6 -0
- package/types/v2/ui/chat-history/components/chat-message.vue.d.ts +10 -0
- package/types/v2/ui/chat-history/components/chat-system-notice.vue.d.ts +9 -0
- package/types/v2/ui/chat-history/components/message-attachments.vue.d.ts +7 -0
- package/types/v2/ui/chat-history/components/message-status.vue.d.ts +7 -0
- package/types/v2/ui/chat-history/components/message-text.vue.d.ts +6 -0
- package/types/v2/ui/chat-history/components/scroll-to-bottom-btn.vue.d.ts +12 -0
- package/types/v2/ui/chat-history/gallery.d.ts +6 -0
- package/types/v2/ui/chat-thread/chat-thread.vue.d.ts +26 -0
- /package/src/{ui/messaging → shared}/composables/useScrollToBottomBtn.ts +0 -0
- /package/types/{ui/messaging → shared}/composables/useObserveHeightUntilStable.d.ts +0 -0
- /package/types/{ui/messaging → shared}/composables/useScrollToBottomBtn.d.ts +0 -0
package/types/locale/en/en.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
package/types/locale/es/es.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
package/types/locale/index.d.ts
CHANGED
|
@@ -17,6 +17,31 @@ export declare const messages: {
|
|
|
17
17
|
textAreaPlaceholder: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
v2: {
|
|
21
|
+
composer: {
|
|
22
|
+
placeholder: string;
|
|
23
|
+
attach: string;
|
|
24
|
+
emoji: string;
|
|
25
|
+
send: string;
|
|
26
|
+
};
|
|
27
|
+
history: {
|
|
28
|
+
today: string;
|
|
29
|
+
waitingForOperator: string;
|
|
30
|
+
deletedMessage: string;
|
|
31
|
+
unsupportedMessage: string;
|
|
32
|
+
download: string;
|
|
33
|
+
};
|
|
34
|
+
systemNotice: {
|
|
35
|
+
started: string;
|
|
36
|
+
joined: string;
|
|
37
|
+
accepted: string;
|
|
38
|
+
transferred: string;
|
|
39
|
+
left: string;
|
|
40
|
+
ended: string;
|
|
41
|
+
unknown: string;
|
|
42
|
+
system: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
20
45
|
};
|
|
21
46
|
};
|
|
22
47
|
uk: {
|
|
@@ -28,6 +53,31 @@ export declare const messages: {
|
|
|
28
53
|
textAreaPlaceholder: string;
|
|
29
54
|
};
|
|
30
55
|
};
|
|
56
|
+
v2: {
|
|
57
|
+
composer: {
|
|
58
|
+
placeholder: string;
|
|
59
|
+
attach: string;
|
|
60
|
+
emoji: string;
|
|
61
|
+
send: string;
|
|
62
|
+
};
|
|
63
|
+
history: {
|
|
64
|
+
today: string;
|
|
65
|
+
waitingForOperator: string;
|
|
66
|
+
deletedMessage: string;
|
|
67
|
+
unsupportedMessage: string;
|
|
68
|
+
download: string;
|
|
69
|
+
};
|
|
70
|
+
systemNotice: {
|
|
71
|
+
started: string;
|
|
72
|
+
joined: string;
|
|
73
|
+
accepted: string;
|
|
74
|
+
transferred: string;
|
|
75
|
+
left: string;
|
|
76
|
+
ended: string;
|
|
77
|
+
unknown: string;
|
|
78
|
+
system: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
31
81
|
};
|
|
32
82
|
};
|
|
33
83
|
ru: {
|
|
@@ -39,6 +89,31 @@ export declare const messages: {
|
|
|
39
89
|
textAreaPlaceholder: string;
|
|
40
90
|
};
|
|
41
91
|
};
|
|
92
|
+
v2: {
|
|
93
|
+
composer: {
|
|
94
|
+
placeholder: string;
|
|
95
|
+
attach: string;
|
|
96
|
+
emoji: string;
|
|
97
|
+
send: string;
|
|
98
|
+
};
|
|
99
|
+
history: {
|
|
100
|
+
today: string;
|
|
101
|
+
waitingForOperator: string;
|
|
102
|
+
deletedMessage: string;
|
|
103
|
+
unsupportedMessage: string;
|
|
104
|
+
download: string;
|
|
105
|
+
};
|
|
106
|
+
systemNotice: {
|
|
107
|
+
started: string;
|
|
108
|
+
joined: string;
|
|
109
|
+
accepted: string;
|
|
110
|
+
transferred: string;
|
|
111
|
+
left: string;
|
|
112
|
+
ended: string;
|
|
113
|
+
unknown: string;
|
|
114
|
+
system: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
42
117
|
};
|
|
43
118
|
};
|
|
44
119
|
es: {
|
|
@@ -50,6 +125,31 @@ export declare const messages: {
|
|
|
50
125
|
textAreaPlaceholder: string;
|
|
51
126
|
};
|
|
52
127
|
};
|
|
128
|
+
v2: {
|
|
129
|
+
composer: {
|
|
130
|
+
placeholder: string;
|
|
131
|
+
attach: string;
|
|
132
|
+
emoji: string;
|
|
133
|
+
send: string;
|
|
134
|
+
};
|
|
135
|
+
history: {
|
|
136
|
+
today: string;
|
|
137
|
+
waitingForOperator: string;
|
|
138
|
+
deletedMessage: string;
|
|
139
|
+
unsupportedMessage: string;
|
|
140
|
+
download: string;
|
|
141
|
+
};
|
|
142
|
+
systemNotice: {
|
|
143
|
+
started: string;
|
|
144
|
+
joined: string;
|
|
145
|
+
accepted: string;
|
|
146
|
+
transferred: string;
|
|
147
|
+
left: string;
|
|
148
|
+
ended: string;
|
|
149
|
+
unknown: string;
|
|
150
|
+
system: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
53
153
|
};
|
|
54
154
|
};
|
|
55
155
|
kz: {
|
|
@@ -61,6 +161,31 @@ export declare const messages: {
|
|
|
61
161
|
textAreaPlaceholder: string;
|
|
62
162
|
};
|
|
63
163
|
};
|
|
164
|
+
v2: {
|
|
165
|
+
composer: {
|
|
166
|
+
placeholder: string;
|
|
167
|
+
attach: string;
|
|
168
|
+
emoji: string;
|
|
169
|
+
send: string;
|
|
170
|
+
};
|
|
171
|
+
history: {
|
|
172
|
+
today: string;
|
|
173
|
+
waitingForOperator: string;
|
|
174
|
+
deletedMessage: string;
|
|
175
|
+
unsupportedMessage: string;
|
|
176
|
+
download: string;
|
|
177
|
+
};
|
|
178
|
+
systemNotice: {
|
|
179
|
+
started: string;
|
|
180
|
+
joined: string;
|
|
181
|
+
accepted: string;
|
|
182
|
+
transferred: string;
|
|
183
|
+
left: string;
|
|
184
|
+
ended: string;
|
|
185
|
+
unknown: string;
|
|
186
|
+
system: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
64
189
|
};
|
|
65
190
|
};
|
|
66
191
|
pl: {
|
|
@@ -72,6 +197,31 @@ export declare const messages: {
|
|
|
72
197
|
textAreaPlaceholder: string;
|
|
73
198
|
};
|
|
74
199
|
};
|
|
200
|
+
v2: {
|
|
201
|
+
composer: {
|
|
202
|
+
placeholder: string;
|
|
203
|
+
attach: string;
|
|
204
|
+
emoji: string;
|
|
205
|
+
send: string;
|
|
206
|
+
};
|
|
207
|
+
history: {
|
|
208
|
+
today: string;
|
|
209
|
+
waitingForOperator: string;
|
|
210
|
+
deletedMessage: string;
|
|
211
|
+
unsupportedMessage: string;
|
|
212
|
+
download: string;
|
|
213
|
+
};
|
|
214
|
+
systemNotice: {
|
|
215
|
+
started: string;
|
|
216
|
+
joined: string;
|
|
217
|
+
accepted: string;
|
|
218
|
+
transferred: string;
|
|
219
|
+
left: string;
|
|
220
|
+
ended: string;
|
|
221
|
+
unknown: string;
|
|
222
|
+
system: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
75
225
|
};
|
|
76
226
|
};
|
|
77
227
|
ro: {
|
|
@@ -83,6 +233,31 @@ export declare const messages: {
|
|
|
83
233
|
textAreaPlaceholder: string;
|
|
84
234
|
};
|
|
85
235
|
};
|
|
236
|
+
v2: {
|
|
237
|
+
composer: {
|
|
238
|
+
placeholder: string;
|
|
239
|
+
attach: string;
|
|
240
|
+
emoji: string;
|
|
241
|
+
send: string;
|
|
242
|
+
};
|
|
243
|
+
history: {
|
|
244
|
+
today: string;
|
|
245
|
+
waitingForOperator: string;
|
|
246
|
+
deletedMessage: string;
|
|
247
|
+
unsupportedMessage: string;
|
|
248
|
+
download: string;
|
|
249
|
+
};
|
|
250
|
+
systemNotice: {
|
|
251
|
+
started: string;
|
|
252
|
+
joined: string;
|
|
253
|
+
accepted: string;
|
|
254
|
+
transferred: string;
|
|
255
|
+
left: string;
|
|
256
|
+
ended: string;
|
|
257
|
+
unknown: string;
|
|
258
|
+
system: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
86
261
|
};
|
|
87
262
|
};
|
|
88
263
|
uz: {
|
|
@@ -94,6 +269,31 @@ export declare const messages: {
|
|
|
94
269
|
textAreaPlaceholder: string;
|
|
95
270
|
};
|
|
96
271
|
};
|
|
272
|
+
v2: {
|
|
273
|
+
composer: {
|
|
274
|
+
placeholder: string;
|
|
275
|
+
attach: string;
|
|
276
|
+
emoji: string;
|
|
277
|
+
send: string;
|
|
278
|
+
};
|
|
279
|
+
history: {
|
|
280
|
+
today: string;
|
|
281
|
+
waitingForOperator: string;
|
|
282
|
+
deletedMessage: string;
|
|
283
|
+
unsupportedMessage: string;
|
|
284
|
+
download: string;
|
|
285
|
+
};
|
|
286
|
+
systemNotice: {
|
|
287
|
+
started: string;
|
|
288
|
+
joined: string;
|
|
289
|
+
accepted: string;
|
|
290
|
+
transferred: string;
|
|
291
|
+
left: string;
|
|
292
|
+
ended: string;
|
|
293
|
+
unknown: string;
|
|
294
|
+
system: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
97
297
|
};
|
|
98
298
|
};
|
|
99
299
|
vi: {
|
|
@@ -105,6 +305,31 @@ export declare const messages: {
|
|
|
105
305
|
textAreaPlaceholder: string;
|
|
106
306
|
};
|
|
107
307
|
};
|
|
308
|
+
v2: {
|
|
309
|
+
composer: {
|
|
310
|
+
placeholder: string;
|
|
311
|
+
attach: string;
|
|
312
|
+
emoji: string;
|
|
313
|
+
send: string;
|
|
314
|
+
};
|
|
315
|
+
history: {
|
|
316
|
+
today: string;
|
|
317
|
+
waitingForOperator: string;
|
|
318
|
+
deletedMessage: string;
|
|
319
|
+
unsupportedMessage: string;
|
|
320
|
+
download: string;
|
|
321
|
+
};
|
|
322
|
+
systemNotice: {
|
|
323
|
+
started: string;
|
|
324
|
+
joined: string;
|
|
325
|
+
accepted: string;
|
|
326
|
+
transferred: string;
|
|
327
|
+
left: string;
|
|
328
|
+
ended: string;
|
|
329
|
+
unknown: string;
|
|
330
|
+
system: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
108
333
|
};
|
|
109
334
|
};
|
|
110
335
|
};
|
package/types/locale/kz/kz.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
package/types/locale/pl/pl.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
package/types/locale/ro/ro.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
package/types/locale/ru/ru.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
package/types/locale/uk/uk.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
package/types/locale/uz/uz.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
package/types/locale/vi/vi.d.ts
CHANGED
|
@@ -7,6 +7,31 @@ declare const _default: {
|
|
|
7
7
|
textAreaPlaceholder: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
v2: {
|
|
11
|
+
composer: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
attach: string;
|
|
14
|
+
emoji: string;
|
|
15
|
+
send: string;
|
|
16
|
+
};
|
|
17
|
+
history: {
|
|
18
|
+
today: string;
|
|
19
|
+
waitingForOperator: string;
|
|
20
|
+
deletedMessage: string;
|
|
21
|
+
unsupportedMessage: string;
|
|
22
|
+
download: string;
|
|
23
|
+
};
|
|
24
|
+
systemNotice: {
|
|
25
|
+
started: string;
|
|
26
|
+
joined: string;
|
|
27
|
+
accepted: string;
|
|
28
|
+
transferred: string;
|
|
29
|
+
left: string;
|
|
30
|
+
ended: string;
|
|
31
|
+
unknown: string;
|
|
32
|
+
system: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
10
35
|
};
|
|
11
36
|
};
|
|
12
37
|
export default _default;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
export interface UseChatScrollOptions {
|
|
2
|
+
export interface UseChatScrollOptions<TItem = unknown> {
|
|
4
3
|
chatContainer: Ref<HTMLElement | null>;
|
|
5
4
|
chatContent: Ref<HTMLElement | null>;
|
|
6
|
-
messages: Ref<
|
|
5
|
+
messages: Ref<readonly TItem[]> | ComputedRef<readonly TItem[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Whether a history item was sent by the viewer. The viewer's own new
|
|
8
|
+
* message always scrolls the history to the bottom.
|
|
9
|
+
* Defaults to v1's `item.member.self`.
|
|
10
|
+
*/
|
|
11
|
+
isSelf?: (item: TItem) => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Class carried by every history row. The topmost row anchors the scroll
|
|
14
|
+
* position while older items are prepended.
|
|
15
|
+
*/
|
|
16
|
+
itemClass?: string;
|
|
7
17
|
chatId: ComputedRef<string>;
|
|
8
18
|
isChatClosed: ComputedRef<boolean>;
|
|
9
19
|
isLoading?: Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -17,7 +27,7 @@ export interface UseChatScrollOptions {
|
|
|
17
27
|
*/
|
|
18
28
|
onSeen?: () => void;
|
|
19
29
|
}
|
|
20
|
-
export declare const useChatScroll: ({ chatContainer, chatContent, messages, chatId, isChatClosed, isLoading, onBeforeStart, onSeen, }: UseChatScrollOptions) => {
|
|
30
|
+
export declare const useChatScroll: <TItem = unknown>({ chatContainer, chatContent, messages, isSelf, itemClass, chatId, isChatClosed, isLoading, onBeforeStart, onSeen, }: UseChatScrollOptions<TItem>) => {
|
|
21
31
|
showScrollToBottomBtn: Ref<boolean, boolean>;
|
|
22
32
|
newUnseenMessagesCount: Ref<number, number>;
|
|
23
33
|
scrollToBottom: (behavior?: ScrollBehavior) => void;
|
package/types/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { useChatScroll } from '../shared/composables/useChatScroll';
|
|
2
|
+
export { useObserveHeightUntilStable } from '../shared/composables/useObserveHeightUntilStable';
|
|
1
3
|
export { ChatAction } from './chat-footer/modules/user-input/enums/ChatAction.enum';
|
|
2
|
-
export { useChatScroll } from './messaging/composables/useChatScroll';
|
|
3
|
-
export { useObserveHeightUntilStable } from './messaging/composables/useObserveHeightUntilStable';
|
|
4
4
|
export { useChatMessageFile } from './messaging/modules/message/composables/useChatMessageFile';
|
|
5
5
|
export { MessageAction } from './messaging/modules/message/enums/MessageAction.enum';
|
|
6
6
|
export type { ChatMessageFile, ChatMessageType, } from './messaging/types/ChatMessage.types';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
composer: {
|
|
3
|
+
placeholder: string;
|
|
4
|
+
attach: string;
|
|
5
|
+
emoji: string;
|
|
6
|
+
send: string;
|
|
7
|
+
};
|
|
8
|
+
history: {
|
|
9
|
+
today: string;
|
|
10
|
+
waitingForOperator: string;
|
|
11
|
+
deletedMessage: string;
|
|
12
|
+
unsupportedMessage: string;
|
|
13
|
+
download: string;
|
|
14
|
+
};
|
|
15
|
+
systemNotice: {
|
|
16
|
+
started: string;
|
|
17
|
+
joined: string;
|
|
18
|
+
accepted: string;
|
|
19
|
+
transferred: string;
|
|
20
|
+
left: string;
|
|
21
|
+
ended: string;
|
|
22
|
+
unknown: string;
|
|
23
|
+
system: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type ChatsV2Locale = typeof en;
|
|
27
|
+
export default en;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
composer: {
|
|
3
|
+
placeholder: string;
|
|
4
|
+
attach: string;
|
|
5
|
+
emoji: string;
|
|
6
|
+
send: string;
|
|
7
|
+
};
|
|
8
|
+
history: {
|
|
9
|
+
today: string;
|
|
10
|
+
waitingForOperator: string;
|
|
11
|
+
deletedMessage: string;
|
|
12
|
+
unsupportedMessage: string;
|
|
13
|
+
download: string;
|
|
14
|
+
};
|
|
15
|
+
systemNotice: {
|
|
16
|
+
started: string;
|
|
17
|
+
joined: string;
|
|
18
|
+
accepted: string;
|
|
19
|
+
transferred: string;
|
|
20
|
+
left: string;
|
|
21
|
+
ended: string;
|
|
22
|
+
unknown: string;
|
|
23
|
+
system: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|