@customerhero/js 1.1.0 → 2.1.0
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/dist/index.cjs +76 -16
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +76 -16
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -71,7 +71,11 @@ var en = {
|
|
|
71
71
|
status_sent: "Sent",
|
|
72
72
|
status_failed: "Failed to send",
|
|
73
73
|
screenshot_capture: "Capture screenshot",
|
|
74
|
-
attachment_remove: "Remove attachment"
|
|
74
|
+
attachment_remove: "Remove attachment",
|
|
75
|
+
attach_menu_open: "Add attachment",
|
|
76
|
+
attach_photo: "Choose file",
|
|
77
|
+
drop_files_here: "Drop files here",
|
|
78
|
+
attachment_unsupported_type: "Unsupported file type"
|
|
75
79
|
};
|
|
76
80
|
|
|
77
81
|
// src/i18n/locales/es.ts
|
|
@@ -96,7 +100,11 @@ var es = {
|
|
|
96
100
|
status_sent: "Enviado",
|
|
97
101
|
status_failed: "Error al enviar",
|
|
98
102
|
screenshot_capture: "Capturar pantalla",
|
|
99
|
-
attachment_remove: "Quitar adjunto"
|
|
103
|
+
attachment_remove: "Quitar adjunto",
|
|
104
|
+
attach_menu_open: "A\xF1adir adjunto",
|
|
105
|
+
attach_photo: "Elegir archivo",
|
|
106
|
+
drop_files_here: "Suelta los archivos aqu\xED",
|
|
107
|
+
attachment_unsupported_type: "Tipo de archivo no admitido"
|
|
100
108
|
};
|
|
101
109
|
|
|
102
110
|
// src/i18n/locales/pt-BR.ts
|
|
@@ -121,7 +129,11 @@ var ptBR = {
|
|
|
121
129
|
status_sent: "Enviado",
|
|
122
130
|
status_failed: "Falha no envio",
|
|
123
131
|
screenshot_capture: "Capturar tela",
|
|
124
|
-
attachment_remove: "Remover anexo"
|
|
132
|
+
attachment_remove: "Remover anexo",
|
|
133
|
+
attach_menu_open: "Adicionar anexo",
|
|
134
|
+
attach_photo: "Escolher arquivo",
|
|
135
|
+
drop_files_here: "Solte os arquivos aqui",
|
|
136
|
+
attachment_unsupported_type: "Tipo de arquivo n\xE3o suportado"
|
|
125
137
|
};
|
|
126
138
|
|
|
127
139
|
// src/i18n/locales/pt-PT.ts
|
|
@@ -146,7 +158,11 @@ var ptPT = {
|
|
|
146
158
|
status_sent: "Enviada",
|
|
147
159
|
status_failed: "Falha no envio",
|
|
148
160
|
screenshot_capture: "Capturar ecr\xE3",
|
|
149
|
-
attachment_remove: "Remover anexo"
|
|
161
|
+
attachment_remove: "Remover anexo",
|
|
162
|
+
attach_menu_open: "Adicionar anexo",
|
|
163
|
+
attach_photo: "Escolher ficheiro",
|
|
164
|
+
drop_files_here: "Largue os ficheiros aqui",
|
|
165
|
+
attachment_unsupported_type: "Tipo de ficheiro n\xE3o suportado"
|
|
150
166
|
};
|
|
151
167
|
|
|
152
168
|
// src/i18n/locales/fr.ts
|
|
@@ -171,7 +187,11 @@ var fr = {
|
|
|
171
187
|
status_sent: "Envoy\xE9",
|
|
172
188
|
status_failed: "\xC9chec de l'envoi",
|
|
173
189
|
screenshot_capture: "Capture d'\xE9cran",
|
|
174
|
-
attachment_remove: "Supprimer la pi\xE8ce jointe"
|
|
190
|
+
attachment_remove: "Supprimer la pi\xE8ce jointe",
|
|
191
|
+
attach_menu_open: "Ajouter une pi\xE8ce jointe",
|
|
192
|
+
attach_photo: "Choisir un fichier",
|
|
193
|
+
drop_files_here: "D\xE9posez les fichiers ici",
|
|
194
|
+
attachment_unsupported_type: "Type de fichier non pris en charge"
|
|
175
195
|
};
|
|
176
196
|
|
|
177
197
|
// src/i18n/locales/de.ts
|
|
@@ -196,7 +216,11 @@ var de = {
|
|
|
196
216
|
status_sent: "Gesendet",
|
|
197
217
|
status_failed: "Senden fehlgeschlagen",
|
|
198
218
|
screenshot_capture: "Bildschirmfoto erstellen",
|
|
199
|
-
attachment_remove: "Anhang entfernen"
|
|
219
|
+
attachment_remove: "Anhang entfernen",
|
|
220
|
+
attach_menu_open: "Anhang hinzuf\xFCgen",
|
|
221
|
+
attach_photo: "Datei ausw\xE4hlen",
|
|
222
|
+
drop_files_here: "Dateien hier ablegen",
|
|
223
|
+
attachment_unsupported_type: "Dateityp nicht unterst\xFCtzt"
|
|
200
224
|
};
|
|
201
225
|
|
|
202
226
|
// src/i18n/locales/it.ts
|
|
@@ -221,7 +245,11 @@ var it = {
|
|
|
221
245
|
status_sent: "Inviato",
|
|
222
246
|
status_failed: "Invio non riuscito",
|
|
223
247
|
screenshot_capture: "Cattura schermata",
|
|
224
|
-
attachment_remove: "Rimuovi allegato"
|
|
248
|
+
attachment_remove: "Rimuovi allegato",
|
|
249
|
+
attach_menu_open: "Aggiungi allegato",
|
|
250
|
+
attach_photo: "Scegli file",
|
|
251
|
+
drop_files_here: "Trascina qui i file",
|
|
252
|
+
attachment_unsupported_type: "Tipo di file non supportato"
|
|
225
253
|
};
|
|
226
254
|
|
|
227
255
|
// src/i18n/locales/nl.ts
|
|
@@ -246,7 +274,11 @@ var nl = {
|
|
|
246
274
|
status_sent: "Verzonden",
|
|
247
275
|
status_failed: "Verzenden mislukt",
|
|
248
276
|
screenshot_capture: "Schermafbeelding maken",
|
|
249
|
-
attachment_remove: "Bijlage verwijderen"
|
|
277
|
+
attachment_remove: "Bijlage verwijderen",
|
|
278
|
+
attach_menu_open: "Bijlage toevoegen",
|
|
279
|
+
attach_photo: "Bestand kiezen",
|
|
280
|
+
drop_files_here: "Sleep bestanden hier",
|
|
281
|
+
attachment_unsupported_type: "Bestandstype niet ondersteund"
|
|
250
282
|
};
|
|
251
283
|
|
|
252
284
|
// src/i18n/locales/pl.ts
|
|
@@ -271,7 +303,11 @@ var pl = {
|
|
|
271
303
|
status_sent: "Wys\u0142ano",
|
|
272
304
|
status_failed: "Nie uda\u0142o si\u0119 wys\u0142a\u0107",
|
|
273
305
|
screenshot_capture: "Zr\xF3b zrzut ekranu",
|
|
274
|
-
attachment_remove: "Usu\u0144 za\u0142\u0105cznik"
|
|
306
|
+
attachment_remove: "Usu\u0144 za\u0142\u0105cznik",
|
|
307
|
+
attach_menu_open: "Dodaj za\u0142\u0105cznik",
|
|
308
|
+
attach_photo: "Wybierz plik",
|
|
309
|
+
drop_files_here: "Upu\u015B\u0107 pliki tutaj",
|
|
310
|
+
attachment_unsupported_type: "Nieobs\u0142ugiwany typ pliku"
|
|
275
311
|
};
|
|
276
312
|
|
|
277
313
|
// src/i18n/locales/tr.ts
|
|
@@ -296,7 +332,11 @@ var tr = {
|
|
|
296
332
|
status_sent: "G\xF6nderildi",
|
|
297
333
|
status_failed: "G\xF6nderilemedi",
|
|
298
334
|
screenshot_capture: "Ekran g\xF6r\xFCnt\xFCs\xFC al",
|
|
299
|
-
attachment_remove: "Eki kald\u0131r"
|
|
335
|
+
attachment_remove: "Eki kald\u0131r",
|
|
336
|
+
attach_menu_open: "Ek ekle",
|
|
337
|
+
attach_photo: "Dosya se\xE7",
|
|
338
|
+
drop_files_here: "Dosyalar\u0131 buraya b\u0131rak",
|
|
339
|
+
attachment_unsupported_type: "Desteklenmeyen dosya t\xFCr\xFC"
|
|
300
340
|
};
|
|
301
341
|
|
|
302
342
|
// src/i18n/locales/ar.ts
|
|
@@ -321,7 +361,11 @@ var ar = {
|
|
|
321
361
|
status_sent: "\u062A\u0645 \u0627\u0644\u0625\u0631\u0633\u0627\u0644",
|
|
322
362
|
status_failed: "\u0641\u0634\u0644 \u0627\u0644\u0625\u0631\u0633\u0627\u0644",
|
|
323
363
|
screenshot_capture: "\u0627\u0644\u062A\u0642\u0627\u0637 \u0644\u0642\u0637\u0629 \u0634\u0627\u0634\u0629",
|
|
324
|
-
attachment_remove: "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0631\u0641\u0642"
|
|
364
|
+
attachment_remove: "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0631\u0641\u0642",
|
|
365
|
+
attach_menu_open: "\u0625\u0636\u0627\u0641\u0629 \u0645\u0631\u0641\u0642",
|
|
366
|
+
attach_photo: "\u0627\u062E\u062A\u0631 \u0645\u0644\u0641\u064B\u0627",
|
|
367
|
+
drop_files_here: "\u0623\u0641\u0644\u062A \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0647\u0646\u0627",
|
|
368
|
+
attachment_unsupported_type: "\u0646\u0648\u0639 \u0627\u0644\u0645\u0644\u0641 \u063A\u064A\u0631 \u0645\u062F\u0639\u0648\u0645"
|
|
325
369
|
};
|
|
326
370
|
|
|
327
371
|
// src/i18n/locales/ja.ts
|
|
@@ -346,7 +390,11 @@ var ja = {
|
|
|
346
390
|
status_sent: "\u9001\u4FE1\u6E08\u307F",
|
|
347
391
|
status_failed: "\u9001\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
|
|
348
392
|
screenshot_capture: "\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u64AE\u308B",
|
|
349
|
-
attachment_remove: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3092\u524A\u9664"
|
|
393
|
+
attachment_remove: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3092\u524A\u9664",
|
|
394
|
+
attach_menu_open: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3092\u8FFD\u52A0",
|
|
395
|
+
attach_photo: "\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E",
|
|
396
|
+
drop_files_here: "\u30D5\u30A1\u30A4\u30EB\u3092\u3053\u3053\u306B\u30C9\u30ED\u30C3\u30D7",
|
|
397
|
+
attachment_unsupported_type: "\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u5F62\u5F0F"
|
|
350
398
|
};
|
|
351
399
|
|
|
352
400
|
// src/i18n/locales/ko.ts
|
|
@@ -371,7 +419,11 @@ var ko = {
|
|
|
371
419
|
status_sent: "\uBCF4\uB0C8\uC74C",
|
|
372
420
|
status_failed: "\uBCF4\uB0B4\uAE30 \uC2E4\uD328",
|
|
373
421
|
screenshot_capture: "\uC2A4\uD06C\uB9B0\uC0F7 \uCC0D\uAE30",
|
|
374
|
-
attachment_remove: "\uCCA8\uBD80 \uD30C\uC77C \uC81C\uAC70"
|
|
422
|
+
attachment_remove: "\uCCA8\uBD80 \uD30C\uC77C \uC81C\uAC70",
|
|
423
|
+
attach_menu_open: "\uCCA8\uBD80 \uD30C\uC77C \uCD94\uAC00",
|
|
424
|
+
attach_photo: "\uD30C\uC77C \uC120\uD0DD",
|
|
425
|
+
drop_files_here: "\uD30C\uC77C\uC744 \uC5EC\uAE30\uC5D0 \uB193\uAE30",
|
|
426
|
+
attachment_unsupported_type: "\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uD30C\uC77C \uD615\uC2DD"
|
|
375
427
|
};
|
|
376
428
|
|
|
377
429
|
// src/i18n/locales/zh-CN.ts
|
|
@@ -396,7 +448,11 @@ var zhCN = {
|
|
|
396
448
|
status_sent: "\u5DF2\u53D1\u9001",
|
|
397
449
|
status_failed: "\u53D1\u9001\u5931\u8D25",
|
|
398
450
|
screenshot_capture: "\u622A\u5C4F",
|
|
399
|
-
attachment_remove: "\u79FB\u9664\u9644\u4EF6"
|
|
451
|
+
attachment_remove: "\u79FB\u9664\u9644\u4EF6",
|
|
452
|
+
attach_menu_open: "\u6DFB\u52A0\u9644\u4EF6",
|
|
453
|
+
attach_photo: "\u9009\u62E9\u6587\u4EF6",
|
|
454
|
+
drop_files_here: "\u5C06\u6587\u4EF6\u62D6\u653E\u5230\u6B64\u5904",
|
|
455
|
+
attachment_unsupported_type: "\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B"
|
|
400
456
|
};
|
|
401
457
|
|
|
402
458
|
// src/i18n/locales/zh-TW.ts
|
|
@@ -421,7 +477,11 @@ var zhTW = {
|
|
|
421
477
|
status_sent: "\u5DF2\u50B3\u9001",
|
|
422
478
|
status_failed: "\u50B3\u9001\u5931\u6557",
|
|
423
479
|
screenshot_capture: "\u64F7\u53D6\u756B\u9762",
|
|
424
|
-
attachment_remove: "\u79FB\u9664\u9644\u4EF6"
|
|
480
|
+
attachment_remove: "\u79FB\u9664\u9644\u4EF6",
|
|
481
|
+
attach_menu_open: "\u65B0\u589E\u9644\u4EF6",
|
|
482
|
+
attach_photo: "\u9078\u64C7\u6A94\u6848",
|
|
483
|
+
drop_files_here: "\u5C07\u6A94\u6848\u62D6\u653E\u5230\u6B64\u8655",
|
|
484
|
+
attachment_unsupported_type: "\u4E0D\u652F\u63F4\u7684\u6A94\u6848\u985E\u578B"
|
|
425
485
|
};
|
|
426
486
|
|
|
427
487
|
// src/i18n/index.ts
|
|
@@ -1185,6 +1245,7 @@ var CustomerHeroChat = class {
|
|
|
1185
1245
|
if (!response.body) {
|
|
1186
1246
|
throw new Error("Empty response body");
|
|
1187
1247
|
}
|
|
1248
|
+
this.patchMessageAt(userMsgIndex, { status: "sent" });
|
|
1188
1249
|
let fullContent = "";
|
|
1189
1250
|
let messageId;
|
|
1190
1251
|
for await (const evt of readSSEStream(response.body)) {
|
|
@@ -1202,7 +1263,6 @@ var CustomerHeroChat = class {
|
|
|
1202
1263
|
preChatSubmission: null
|
|
1203
1264
|
});
|
|
1204
1265
|
}
|
|
1205
|
-
this.patchMessageAt(userMsgIndex, { status: "sent" });
|
|
1206
1266
|
if (meta?.messageId) {
|
|
1207
1267
|
messageId = meta.messageId;
|
|
1208
1268
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type TranslationKey = "online" | "typing" | "unable_to_load" | "powered_by" | "new_conversation" | "open_chat" | "close_chat" | "send_message" | "helpful" | "not_helpful" | "menu" | "action_approve" | "action_cancel" | "action_what_will_happen" | "action_already_resolved" | "action_failed" | "status_sending" | "status_sent" | "status_failed" | "screenshot_capture" | "attachment_remove";
|
|
1
|
+
type TranslationKey = "online" | "typing" | "unable_to_load" | "powered_by" | "new_conversation" | "open_chat" | "close_chat" | "send_message" | "helpful" | "not_helpful" | "menu" | "action_approve" | "action_cancel" | "action_what_will_happen" | "action_already_resolved" | "action_failed" | "status_sending" | "status_sent" | "status_failed" | "screenshot_capture" | "attachment_remove" | "attach_menu_open" | "attach_photo" | "drop_files_here" | "attachment_unsupported_type";
|
|
2
2
|
type Translations = Record<TranslationKey, string>;
|
|
3
3
|
|
|
4
4
|
declare const SUPPORTED_LOCALES: readonly ["en", "es", "pt-BR", "pt-PT", "fr", "de", "it", "nl", "pl", "tr", "ar", "ja", "ko", "zh-CN", "zh-TW"];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type TranslationKey = "online" | "typing" | "unable_to_load" | "powered_by" | "new_conversation" | "open_chat" | "close_chat" | "send_message" | "helpful" | "not_helpful" | "menu" | "action_approve" | "action_cancel" | "action_what_will_happen" | "action_already_resolved" | "action_failed" | "status_sending" | "status_sent" | "status_failed" | "screenshot_capture" | "attachment_remove";
|
|
1
|
+
type TranslationKey = "online" | "typing" | "unable_to_load" | "powered_by" | "new_conversation" | "open_chat" | "close_chat" | "send_message" | "helpful" | "not_helpful" | "menu" | "action_approve" | "action_cancel" | "action_what_will_happen" | "action_already_resolved" | "action_failed" | "status_sending" | "status_sent" | "status_failed" | "screenshot_capture" | "attachment_remove" | "attach_menu_open" | "attach_photo" | "drop_files_here" | "attachment_unsupported_type";
|
|
2
2
|
type Translations = Record<TranslationKey, string>;
|
|
3
3
|
|
|
4
4
|
declare const SUPPORTED_LOCALES: readonly ["en", "es", "pt-BR", "pt-PT", "fr", "de", "it", "nl", "pl", "tr", "ar", "ja", "ko", "zh-CN", "zh-TW"];
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,11 @@ var en = {
|
|
|
32
32
|
status_sent: "Sent",
|
|
33
33
|
status_failed: "Failed to send",
|
|
34
34
|
screenshot_capture: "Capture screenshot",
|
|
35
|
-
attachment_remove: "Remove attachment"
|
|
35
|
+
attachment_remove: "Remove attachment",
|
|
36
|
+
attach_menu_open: "Add attachment",
|
|
37
|
+
attach_photo: "Choose file",
|
|
38
|
+
drop_files_here: "Drop files here",
|
|
39
|
+
attachment_unsupported_type: "Unsupported file type"
|
|
36
40
|
};
|
|
37
41
|
|
|
38
42
|
// src/i18n/locales/es.ts
|
|
@@ -57,7 +61,11 @@ var es = {
|
|
|
57
61
|
status_sent: "Enviado",
|
|
58
62
|
status_failed: "Error al enviar",
|
|
59
63
|
screenshot_capture: "Capturar pantalla",
|
|
60
|
-
attachment_remove: "Quitar adjunto"
|
|
64
|
+
attachment_remove: "Quitar adjunto",
|
|
65
|
+
attach_menu_open: "A\xF1adir adjunto",
|
|
66
|
+
attach_photo: "Elegir archivo",
|
|
67
|
+
drop_files_here: "Suelta los archivos aqu\xED",
|
|
68
|
+
attachment_unsupported_type: "Tipo de archivo no admitido"
|
|
61
69
|
};
|
|
62
70
|
|
|
63
71
|
// src/i18n/locales/pt-BR.ts
|
|
@@ -82,7 +90,11 @@ var ptBR = {
|
|
|
82
90
|
status_sent: "Enviado",
|
|
83
91
|
status_failed: "Falha no envio",
|
|
84
92
|
screenshot_capture: "Capturar tela",
|
|
85
|
-
attachment_remove: "Remover anexo"
|
|
93
|
+
attachment_remove: "Remover anexo",
|
|
94
|
+
attach_menu_open: "Adicionar anexo",
|
|
95
|
+
attach_photo: "Escolher arquivo",
|
|
96
|
+
drop_files_here: "Solte os arquivos aqui",
|
|
97
|
+
attachment_unsupported_type: "Tipo de arquivo n\xE3o suportado"
|
|
86
98
|
};
|
|
87
99
|
|
|
88
100
|
// src/i18n/locales/pt-PT.ts
|
|
@@ -107,7 +119,11 @@ var ptPT = {
|
|
|
107
119
|
status_sent: "Enviada",
|
|
108
120
|
status_failed: "Falha no envio",
|
|
109
121
|
screenshot_capture: "Capturar ecr\xE3",
|
|
110
|
-
attachment_remove: "Remover anexo"
|
|
122
|
+
attachment_remove: "Remover anexo",
|
|
123
|
+
attach_menu_open: "Adicionar anexo",
|
|
124
|
+
attach_photo: "Escolher ficheiro",
|
|
125
|
+
drop_files_here: "Largue os ficheiros aqui",
|
|
126
|
+
attachment_unsupported_type: "Tipo de ficheiro n\xE3o suportado"
|
|
111
127
|
};
|
|
112
128
|
|
|
113
129
|
// src/i18n/locales/fr.ts
|
|
@@ -132,7 +148,11 @@ var fr = {
|
|
|
132
148
|
status_sent: "Envoy\xE9",
|
|
133
149
|
status_failed: "\xC9chec de l'envoi",
|
|
134
150
|
screenshot_capture: "Capture d'\xE9cran",
|
|
135
|
-
attachment_remove: "Supprimer la pi\xE8ce jointe"
|
|
151
|
+
attachment_remove: "Supprimer la pi\xE8ce jointe",
|
|
152
|
+
attach_menu_open: "Ajouter une pi\xE8ce jointe",
|
|
153
|
+
attach_photo: "Choisir un fichier",
|
|
154
|
+
drop_files_here: "D\xE9posez les fichiers ici",
|
|
155
|
+
attachment_unsupported_type: "Type de fichier non pris en charge"
|
|
136
156
|
};
|
|
137
157
|
|
|
138
158
|
// src/i18n/locales/de.ts
|
|
@@ -157,7 +177,11 @@ var de = {
|
|
|
157
177
|
status_sent: "Gesendet",
|
|
158
178
|
status_failed: "Senden fehlgeschlagen",
|
|
159
179
|
screenshot_capture: "Bildschirmfoto erstellen",
|
|
160
|
-
attachment_remove: "Anhang entfernen"
|
|
180
|
+
attachment_remove: "Anhang entfernen",
|
|
181
|
+
attach_menu_open: "Anhang hinzuf\xFCgen",
|
|
182
|
+
attach_photo: "Datei ausw\xE4hlen",
|
|
183
|
+
drop_files_here: "Dateien hier ablegen",
|
|
184
|
+
attachment_unsupported_type: "Dateityp nicht unterst\xFCtzt"
|
|
161
185
|
};
|
|
162
186
|
|
|
163
187
|
// src/i18n/locales/it.ts
|
|
@@ -182,7 +206,11 @@ var it = {
|
|
|
182
206
|
status_sent: "Inviato",
|
|
183
207
|
status_failed: "Invio non riuscito",
|
|
184
208
|
screenshot_capture: "Cattura schermata",
|
|
185
|
-
attachment_remove: "Rimuovi allegato"
|
|
209
|
+
attachment_remove: "Rimuovi allegato",
|
|
210
|
+
attach_menu_open: "Aggiungi allegato",
|
|
211
|
+
attach_photo: "Scegli file",
|
|
212
|
+
drop_files_here: "Trascina qui i file",
|
|
213
|
+
attachment_unsupported_type: "Tipo di file non supportato"
|
|
186
214
|
};
|
|
187
215
|
|
|
188
216
|
// src/i18n/locales/nl.ts
|
|
@@ -207,7 +235,11 @@ var nl = {
|
|
|
207
235
|
status_sent: "Verzonden",
|
|
208
236
|
status_failed: "Verzenden mislukt",
|
|
209
237
|
screenshot_capture: "Schermafbeelding maken",
|
|
210
|
-
attachment_remove: "Bijlage verwijderen"
|
|
238
|
+
attachment_remove: "Bijlage verwijderen",
|
|
239
|
+
attach_menu_open: "Bijlage toevoegen",
|
|
240
|
+
attach_photo: "Bestand kiezen",
|
|
241
|
+
drop_files_here: "Sleep bestanden hier",
|
|
242
|
+
attachment_unsupported_type: "Bestandstype niet ondersteund"
|
|
211
243
|
};
|
|
212
244
|
|
|
213
245
|
// src/i18n/locales/pl.ts
|
|
@@ -232,7 +264,11 @@ var pl = {
|
|
|
232
264
|
status_sent: "Wys\u0142ano",
|
|
233
265
|
status_failed: "Nie uda\u0142o si\u0119 wys\u0142a\u0107",
|
|
234
266
|
screenshot_capture: "Zr\xF3b zrzut ekranu",
|
|
235
|
-
attachment_remove: "Usu\u0144 za\u0142\u0105cznik"
|
|
267
|
+
attachment_remove: "Usu\u0144 za\u0142\u0105cznik",
|
|
268
|
+
attach_menu_open: "Dodaj za\u0142\u0105cznik",
|
|
269
|
+
attach_photo: "Wybierz plik",
|
|
270
|
+
drop_files_here: "Upu\u015B\u0107 pliki tutaj",
|
|
271
|
+
attachment_unsupported_type: "Nieobs\u0142ugiwany typ pliku"
|
|
236
272
|
};
|
|
237
273
|
|
|
238
274
|
// src/i18n/locales/tr.ts
|
|
@@ -257,7 +293,11 @@ var tr = {
|
|
|
257
293
|
status_sent: "G\xF6nderildi",
|
|
258
294
|
status_failed: "G\xF6nderilemedi",
|
|
259
295
|
screenshot_capture: "Ekran g\xF6r\xFCnt\xFCs\xFC al",
|
|
260
|
-
attachment_remove: "Eki kald\u0131r"
|
|
296
|
+
attachment_remove: "Eki kald\u0131r",
|
|
297
|
+
attach_menu_open: "Ek ekle",
|
|
298
|
+
attach_photo: "Dosya se\xE7",
|
|
299
|
+
drop_files_here: "Dosyalar\u0131 buraya b\u0131rak",
|
|
300
|
+
attachment_unsupported_type: "Desteklenmeyen dosya t\xFCr\xFC"
|
|
261
301
|
};
|
|
262
302
|
|
|
263
303
|
// src/i18n/locales/ar.ts
|
|
@@ -282,7 +322,11 @@ var ar = {
|
|
|
282
322
|
status_sent: "\u062A\u0645 \u0627\u0644\u0625\u0631\u0633\u0627\u0644",
|
|
283
323
|
status_failed: "\u0641\u0634\u0644 \u0627\u0644\u0625\u0631\u0633\u0627\u0644",
|
|
284
324
|
screenshot_capture: "\u0627\u0644\u062A\u0642\u0627\u0637 \u0644\u0642\u0637\u0629 \u0634\u0627\u0634\u0629",
|
|
285
|
-
attachment_remove: "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0631\u0641\u0642"
|
|
325
|
+
attachment_remove: "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0631\u0641\u0642",
|
|
326
|
+
attach_menu_open: "\u0625\u0636\u0627\u0641\u0629 \u0645\u0631\u0641\u0642",
|
|
327
|
+
attach_photo: "\u0627\u062E\u062A\u0631 \u0645\u0644\u0641\u064B\u0627",
|
|
328
|
+
drop_files_here: "\u0623\u0641\u0644\u062A \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0647\u0646\u0627",
|
|
329
|
+
attachment_unsupported_type: "\u0646\u0648\u0639 \u0627\u0644\u0645\u0644\u0641 \u063A\u064A\u0631 \u0645\u062F\u0639\u0648\u0645"
|
|
286
330
|
};
|
|
287
331
|
|
|
288
332
|
// src/i18n/locales/ja.ts
|
|
@@ -307,7 +351,11 @@ var ja = {
|
|
|
307
351
|
status_sent: "\u9001\u4FE1\u6E08\u307F",
|
|
308
352
|
status_failed: "\u9001\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
|
|
309
353
|
screenshot_capture: "\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u64AE\u308B",
|
|
310
|
-
attachment_remove: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3092\u524A\u9664"
|
|
354
|
+
attachment_remove: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3092\u524A\u9664",
|
|
355
|
+
attach_menu_open: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3092\u8FFD\u52A0",
|
|
356
|
+
attach_photo: "\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E",
|
|
357
|
+
drop_files_here: "\u30D5\u30A1\u30A4\u30EB\u3092\u3053\u3053\u306B\u30C9\u30ED\u30C3\u30D7",
|
|
358
|
+
attachment_unsupported_type: "\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u5F62\u5F0F"
|
|
311
359
|
};
|
|
312
360
|
|
|
313
361
|
// src/i18n/locales/ko.ts
|
|
@@ -332,7 +380,11 @@ var ko = {
|
|
|
332
380
|
status_sent: "\uBCF4\uB0C8\uC74C",
|
|
333
381
|
status_failed: "\uBCF4\uB0B4\uAE30 \uC2E4\uD328",
|
|
334
382
|
screenshot_capture: "\uC2A4\uD06C\uB9B0\uC0F7 \uCC0D\uAE30",
|
|
335
|
-
attachment_remove: "\uCCA8\uBD80 \uD30C\uC77C \uC81C\uAC70"
|
|
383
|
+
attachment_remove: "\uCCA8\uBD80 \uD30C\uC77C \uC81C\uAC70",
|
|
384
|
+
attach_menu_open: "\uCCA8\uBD80 \uD30C\uC77C \uCD94\uAC00",
|
|
385
|
+
attach_photo: "\uD30C\uC77C \uC120\uD0DD",
|
|
386
|
+
drop_files_here: "\uD30C\uC77C\uC744 \uC5EC\uAE30\uC5D0 \uB193\uAE30",
|
|
387
|
+
attachment_unsupported_type: "\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uD30C\uC77C \uD615\uC2DD"
|
|
336
388
|
};
|
|
337
389
|
|
|
338
390
|
// src/i18n/locales/zh-CN.ts
|
|
@@ -357,7 +409,11 @@ var zhCN = {
|
|
|
357
409
|
status_sent: "\u5DF2\u53D1\u9001",
|
|
358
410
|
status_failed: "\u53D1\u9001\u5931\u8D25",
|
|
359
411
|
screenshot_capture: "\u622A\u5C4F",
|
|
360
|
-
attachment_remove: "\u79FB\u9664\u9644\u4EF6"
|
|
412
|
+
attachment_remove: "\u79FB\u9664\u9644\u4EF6",
|
|
413
|
+
attach_menu_open: "\u6DFB\u52A0\u9644\u4EF6",
|
|
414
|
+
attach_photo: "\u9009\u62E9\u6587\u4EF6",
|
|
415
|
+
drop_files_here: "\u5C06\u6587\u4EF6\u62D6\u653E\u5230\u6B64\u5904",
|
|
416
|
+
attachment_unsupported_type: "\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B"
|
|
361
417
|
};
|
|
362
418
|
|
|
363
419
|
// src/i18n/locales/zh-TW.ts
|
|
@@ -382,7 +438,11 @@ var zhTW = {
|
|
|
382
438
|
status_sent: "\u5DF2\u50B3\u9001",
|
|
383
439
|
status_failed: "\u50B3\u9001\u5931\u6557",
|
|
384
440
|
screenshot_capture: "\u64F7\u53D6\u756B\u9762",
|
|
385
|
-
attachment_remove: "\u79FB\u9664\u9644\u4EF6"
|
|
441
|
+
attachment_remove: "\u79FB\u9664\u9644\u4EF6",
|
|
442
|
+
attach_menu_open: "\u65B0\u589E\u9644\u4EF6",
|
|
443
|
+
attach_photo: "\u9078\u64C7\u6A94\u6848",
|
|
444
|
+
drop_files_here: "\u5C07\u6A94\u6848\u62D6\u653E\u5230\u6B64\u8655",
|
|
445
|
+
attachment_unsupported_type: "\u4E0D\u652F\u63F4\u7684\u6A94\u6848\u985E\u578B"
|
|
386
446
|
};
|
|
387
447
|
|
|
388
448
|
// src/i18n/index.ts
|
|
@@ -1146,6 +1206,7 @@ var CustomerHeroChat = class {
|
|
|
1146
1206
|
if (!response.body) {
|
|
1147
1207
|
throw new Error("Empty response body");
|
|
1148
1208
|
}
|
|
1209
|
+
this.patchMessageAt(userMsgIndex, { status: "sent" });
|
|
1149
1210
|
let fullContent = "";
|
|
1150
1211
|
let messageId;
|
|
1151
1212
|
for await (const evt of readSSEStream(response.body)) {
|
|
@@ -1163,7 +1224,6 @@ var CustomerHeroChat = class {
|
|
|
1163
1224
|
preChatSubmission: null
|
|
1164
1225
|
});
|
|
1165
1226
|
}
|
|
1166
|
-
this.patchMessageAt(userMsgIndex, { status: "sent" });
|
|
1167
1227
|
if (meta?.messageId) {
|
|
1168
1228
|
messageId = meta.messageId;
|
|
1169
1229
|
}
|