@developer_tribe/react-native-comnyx 0.10.15 → 0.11.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/android/src/main/java/com/comnyx/ComnyxModule.kt +19 -8
- package/ios/Comnyx.m +3 -1
- package/ios/Comnyx.swift +6 -0
- package/lib/commonjs/NativeComnyx.js.map +1 -1
- package/lib/commonjs/components/ChatList.js +81 -3
- package/lib/commonjs/components/ChatList.js.map +1 -1
- package/lib/commonjs/components/LinkifyText.js +83 -0
- package/lib/commonjs/components/LinkifyText.js.map +1 -0
- package/lib/commonjs/components/MessageItem.js +34 -1
- package/lib/commonjs/components/MessageItem.js.map +1 -1
- package/lib/commonjs/constants/translations.js +58 -29
- package/lib/commonjs/constants/translations.js.map +1 -1
- package/lib/commonjs/store/store.js +6 -0
- package/lib/commonjs/store/store.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/NativeComnyx.js.map +1 -1
- package/lib/module/components/ChatList.js +82 -4
- package/lib/module/components/ChatList.js.map +1 -1
- package/lib/module/components/LinkifyText.js +79 -0
- package/lib/module/components/LinkifyText.js.map +1 -0
- package/lib/module/components/MessageItem.js +35 -2
- package/lib/module/components/MessageItem.js.map +1 -1
- package/lib/module/constants/translations.js +58 -29
- package/lib/module/constants/translations.js.map +1 -1
- package/lib/module/store/store.js +6 -0
- package/lib/module/store/store.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/src/NativeComnyx.d.ts +1 -0
- package/lib/typescript/src/NativeComnyx.d.ts.map +1 -1
- package/lib/typescript/src/components/ChatList.d.ts.map +1 -1
- package/lib/typescript/src/components/LinkifyText.d.ts +16 -0
- package/lib/typescript/src/components/LinkifyText.d.ts.map +1 -0
- package/lib/typescript/src/components/MessageItem.d.ts.map +1 -1
- package/lib/typescript/src/constants/translations.d.ts.map +1 -1
- package/lib/typescript/src/register/init.d.ts +1 -1
- package/lib/typescript/src/store/store.d.ts +3 -0
- package/lib/typescript/src/store/store.d.ts.map +1 -1
- package/lib/typescript/src/types/LocalizationKeys.d.ts +1 -0
- package/lib/typescript/src/types/LocalizationKeys.d.ts.map +1 -1
- package/lib/typescript/src/version.d.ts +1 -1
- package/lib/typescript/src/version.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/NativeComnyx.ts +1 -0
- package/src/components/ChatList.tsx +89 -0
- package/src/components/LinkifyText.tsx +101 -0
- package/src/components/MessageItem.tsx +35 -2
- package/src/constants/translations.ts +30 -0
- package/src/register/init.ts +1 -1
- package/src/store/store.ts +7 -0
- package/src/types/LocalizationKeys.ts +1 -0
- package/src/version.ts +1 -1
|
@@ -53,6 +53,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
53
53
|
'Get notified when you receive new messages from our support team.',
|
|
54
54
|
'notifications.optIn.cancel': 'Not Now',
|
|
55
55
|
'notifications.optIn.openSettings': 'Open Settings',
|
|
56
|
+
'notifications.optIn.copyToClipboard': 'Copy to Clipboard',
|
|
56
57
|
},
|
|
57
58
|
tr: {
|
|
58
59
|
'customer.form.title': 'Merhaba👋',
|
|
@@ -105,6 +106,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
105
106
|
'Destek ekibimizden yeni mesajlar aldığınızda bildirim alın.',
|
|
106
107
|
'notifications.optIn.cancel': 'Şimdi Değil',
|
|
107
108
|
'notifications.optIn.openSettings': 'Ayarları Aç',
|
|
109
|
+
'notifications.optIn.copyToClipboard': 'Panoya Kopyala',
|
|
108
110
|
},
|
|
109
111
|
es: {
|
|
110
112
|
'customer.form.title': 'Hola👋',
|
|
@@ -159,6 +161,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
159
161
|
'Recibe notificaciones cuando recibas nuevos mensajes de nuestro equipo de soporte.',
|
|
160
162
|
'notifications.optIn.cancel': 'Ahora No',
|
|
161
163
|
'notifications.optIn.openSettings': 'Abrir Configuración',
|
|
164
|
+
'notifications.optIn.copyToClipboard': 'Copiar al Portapapeles',
|
|
162
165
|
},
|
|
163
166
|
fr: {
|
|
164
167
|
'customer.form.title': 'Bonjour👋',
|
|
@@ -214,6 +217,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
214
217
|
'Recevez des notifications lorsque vous recevez de nouveaux messages de notre équipe de support.',
|
|
215
218
|
'notifications.optIn.cancel': 'Pas Maintenant',
|
|
216
219
|
'notifications.optIn.openSettings': 'Ouvrir les Paramètres',
|
|
220
|
+
'notifications.optIn.copyToClipboard': 'Copier dans le Presse-papiers',
|
|
217
221
|
},
|
|
218
222
|
de: {
|
|
219
223
|
'customer.form.title': 'Hallo👋',
|
|
@@ -270,6 +274,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
270
274
|
'Erhalten Sie Benachrichtigungen, wenn Sie neue Nachrichten von unserem Support-Team erhalten.',
|
|
271
275
|
'notifications.optIn.cancel': 'Nicht Jetzt',
|
|
272
276
|
'notifications.optIn.openSettings': 'Einstellungen Öffnen',
|
|
277
|
+
'notifications.optIn.copyToClipboard': 'In die Zwischenablage kopieren',
|
|
273
278
|
},
|
|
274
279
|
it: {
|
|
275
280
|
'customer.form.title': 'Ciao👋',
|
|
@@ -323,6 +328,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
323
328
|
'Ricevi notifiche quando ricevi nuovi messaggi dal nostro team di supporto.',
|
|
324
329
|
'notifications.optIn.cancel': 'Non Ora',
|
|
325
330
|
'notifications.optIn.openSettings': 'Apri Impostazioni',
|
|
331
|
+
'notifications.optIn.copyToClipboard': 'Copia negli Appunti',
|
|
326
332
|
},
|
|
327
333
|
pt: {
|
|
328
334
|
'customer.form.title': 'Olá👋',
|
|
@@ -378,6 +384,8 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
378
384
|
'Receba notificações quando receber novas mensagens da nossa equipe de suporte.',
|
|
379
385
|
'notifications.optIn.cancel': 'Agora Não',
|
|
380
386
|
'notifications.optIn.openSettings': 'Abrir Configurações',
|
|
387
|
+
'notifications.optIn.copyToClipboard':
|
|
388
|
+
'Copiar para a Área de Transferência',
|
|
381
389
|
},
|
|
382
390
|
ru: {
|
|
383
391
|
'customer.form.title': 'Привет👋',
|
|
@@ -433,6 +441,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
433
441
|
'Получайте уведомления о новых сообщениях от нашей службы поддержки.',
|
|
434
442
|
'notifications.optIn.cancel': 'Не Сейчас',
|
|
435
443
|
'notifications.optIn.openSettings': 'Открыть Настройки',
|
|
444
|
+
'notifications.optIn.copyToClipboard': 'Скопировать в буфер обмена',
|
|
436
445
|
},
|
|
437
446
|
ja: {
|
|
438
447
|
'customer.form.title': 'こんにちは👋',
|
|
@@ -485,6 +494,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
485
494
|
'サポートチームから新しいメッセージを受信したときに通知を受け取ります。',
|
|
486
495
|
'notifications.optIn.cancel': '今はしない',
|
|
487
496
|
'notifications.optIn.openSettings': '設定を開く',
|
|
497
|
+
'notifications.optIn.copyToClipboard': 'クリップボードにコピー',
|
|
488
498
|
},
|
|
489
499
|
zh: {
|
|
490
500
|
'customer.form.title': '你好👋',
|
|
@@ -532,6 +542,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
532
542
|
'当您收到我们支持团队的新消息时获得通知。',
|
|
533
543
|
'notifications.optIn.cancel': '暂不',
|
|
534
544
|
'notifications.optIn.openSettings': '打开设置',
|
|
545
|
+
'notifications.optIn.copyToClipboard': '复制到剪贴板',
|
|
535
546
|
},
|
|
536
547
|
ar: {
|
|
537
548
|
'customer.form.title': 'مرحباً👋',
|
|
@@ -582,6 +593,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
582
593
|
'احصل على إشعارات عند تلقي رسائل جديدة من فريق الدعم.',
|
|
583
594
|
'notifications.optIn.cancel': 'ليس الآن',
|
|
584
595
|
'notifications.optIn.openSettings': 'فتح الإعدادات',
|
|
596
|
+
'notifications.optIn.copyToClipboard': 'نسخ إلى الحافظة',
|
|
585
597
|
},
|
|
586
598
|
id: {
|
|
587
599
|
'customer.form.title': 'Halo👋',
|
|
@@ -633,6 +645,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
633
645
|
'Dapatkan notifikasi saat Anda menerima pesan baru dari tim dukungan kami.',
|
|
634
646
|
'notifications.optIn.cancel': 'Tidak Sekarang',
|
|
635
647
|
'notifications.optIn.openSettings': 'Buka Pengaturan',
|
|
648
|
+
'notifications.optIn.copyToClipboard': 'Salin ke Clipboard',
|
|
636
649
|
},
|
|
637
650
|
vi: {
|
|
638
651
|
'customer.form.title': 'Xin chào👋',
|
|
@@ -683,6 +696,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
683
696
|
'Nhận thông báo khi bạn nhận được tin nhắn mới từ đội hỗ trợ của chúng tôi.',
|
|
684
697
|
'notifications.optIn.cancel': 'Không Phải Bây Giờ',
|
|
685
698
|
'notifications.optIn.openSettings': 'Mở Cài Đặt',
|
|
699
|
+
'notifications.optIn.copyToClipboard': 'Sao chép vào Clipboard',
|
|
686
700
|
},
|
|
687
701
|
sv: {
|
|
688
702
|
'customer.form.title': 'Hej👋',
|
|
@@ -735,6 +749,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
735
749
|
'Få notifieringar när du får nya meddelanden från vårt supportteam.',
|
|
736
750
|
'notifications.optIn.cancel': 'Inte Nu',
|
|
737
751
|
'notifications.optIn.openSettings': 'Öppna Inställningar',
|
|
752
|
+
'notifications.optIn.copyToClipboard': 'Kopiera till Urklipp',
|
|
738
753
|
},
|
|
739
754
|
ko: {
|
|
740
755
|
'customer.form.title': '안녕하세요👋',
|
|
@@ -783,6 +798,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
783
798
|
'지원 팀으로부터 새 메시지를 수신할 때 알림을 받습니다.',
|
|
784
799
|
'notifications.optIn.cancel': '나중에',
|
|
785
800
|
'notifications.optIn.openSettings': '설정 열기',
|
|
801
|
+
'notifications.optIn.copyToClipboard': '클립보드에 복사',
|
|
786
802
|
},
|
|
787
803
|
hi: {
|
|
788
804
|
'customer.form.title': 'नमस्ते👋',
|
|
@@ -836,6 +852,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
836
852
|
'हमारी सपोर्ट टीम से नए संदेश प्राप्त करने पर सूचनाएं प्राप्त करें।',
|
|
837
853
|
'notifications.optIn.cancel': 'अभी नहीं',
|
|
838
854
|
'notifications.optIn.openSettings': 'सेटिंग्स खोलें',
|
|
855
|
+
'notifications.optIn.copyToClipboard': 'क्लिपबोर्ड में कॉपी करें',
|
|
839
856
|
},
|
|
840
857
|
nl: {
|
|
841
858
|
'customer.form.title': 'Hallo👋',
|
|
@@ -888,6 +905,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
888
905
|
'Ontvang meldingen wanneer u nieuwe berichten van ons supportteam ontvangt.',
|
|
889
906
|
'notifications.optIn.cancel': 'Niet Nu',
|
|
890
907
|
'notifications.optIn.openSettings': 'Instellingen Openen',
|
|
908
|
+
'notifications.optIn.copyToClipboard': 'Kopieer naar Klembord',
|
|
891
909
|
},
|
|
892
910
|
he: {
|
|
893
911
|
'customer.form.title': 'שלום👋',
|
|
@@ -936,6 +954,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
936
954
|
'קבל התראות כאשר אתה מקבל הודעות חדשות מצוות התמיכה שלנו.',
|
|
937
955
|
'notifications.optIn.cancel': 'לא עכשיו',
|
|
938
956
|
'notifications.optIn.openSettings': 'פתח הגדרות',
|
|
957
|
+
'notifications.optIn.copyToClipboard': 'העתק ללוח',
|
|
939
958
|
},
|
|
940
959
|
uk: {
|
|
941
960
|
'customer.form.title': 'Привіт👋',
|
|
@@ -989,6 +1008,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
989
1008
|
'Отримуйте сповіщення, коли ви отримуєте нові повідомлення від нашої команди підтримки.',
|
|
990
1009
|
'notifications.optIn.cancel': 'Не Зараз',
|
|
991
1010
|
'notifications.optIn.openSettings': 'Відкрити Налаштування',
|
|
1011
|
+
'notifications.optIn.copyToClipboard': 'Скопіювати в буфер обміну',
|
|
992
1012
|
},
|
|
993
1013
|
hu: {
|
|
994
1014
|
'customer.form.title': 'Helló👋',
|
|
@@ -1043,6 +1063,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1043
1063
|
'Kapj értesítéseket, amikor új üzeneteket kapsz a támogató csapatunktól.',
|
|
1044
1064
|
'notifications.optIn.cancel': 'Most Nem',
|
|
1045
1065
|
'notifications.optIn.openSettings': 'Beállítások Megnyitása',
|
|
1066
|
+
'notifications.optIn.copyToClipboard': 'Vágólapra másolás',
|
|
1046
1067
|
},
|
|
1047
1068
|
ro: {
|
|
1048
1069
|
'customer.form.title': 'Salut👋',
|
|
@@ -1098,6 +1119,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1098
1119
|
'Primește notificări când primești mesaje noi de la echipa noastră de suport.',
|
|
1099
1120
|
'notifications.optIn.cancel': 'Nu Acum',
|
|
1100
1121
|
'notifications.optIn.openSettings': 'Deschide Setările',
|
|
1122
|
+
'notifications.optIn.copyToClipboard': 'Copiază în Clipboard',
|
|
1101
1123
|
},
|
|
1102
1124
|
ms: {
|
|
1103
1125
|
'customer.form.title': 'Hai👋',
|
|
@@ -1149,6 +1171,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1149
1171
|
'Terima pemberitahuan apabila anda menerima mesej baharu daripada pasukan sokongan kami.',
|
|
1150
1172
|
'notifications.optIn.cancel': 'Bukan Sekarang',
|
|
1151
1173
|
'notifications.optIn.openSettings': 'Buka Tetapan',
|
|
1174
|
+
'notifications.optIn.copyToClipboard': 'Salin ke Clipboard',
|
|
1152
1175
|
},
|
|
1153
1176
|
az: {
|
|
1154
1177
|
'customer.form.title': 'Salam👋',
|
|
@@ -1201,6 +1224,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1201
1224
|
'Dəstək komandamızdan yeni mesajlar aldığınızda bildiriş alın.',
|
|
1202
1225
|
'notifications.optIn.cancel': 'İndi Yox',
|
|
1203
1226
|
'notifications.optIn.openSettings': 'Ayarları Aç',
|
|
1227
|
+
'notifications.optIn.copyToClipboard': 'Klipdorda kopyala',
|
|
1204
1228
|
},
|
|
1205
1229
|
hr: {
|
|
1206
1230
|
'customer.form.title': 'Bok👋',
|
|
@@ -1251,6 +1275,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1251
1275
|
'Primajte obavijesti kada primite nove poruke od našeg tima za podršku.',
|
|
1252
1276
|
'notifications.optIn.cancel': 'Ne Sada',
|
|
1253
1277
|
'notifications.optIn.openSettings': 'Otvori Postavke',
|
|
1278
|
+
'notifications.optIn.copyToClipboard': 'Kopiraj u međuspremnik',
|
|
1254
1279
|
},
|
|
1255
1280
|
kk: {
|
|
1256
1281
|
'customer.form.title': 'Сәлем👋',
|
|
@@ -1303,6 +1328,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1303
1328
|
'Қолдау тобымыздан жаңа хабарламалар алғанда хабарландыру алыңыз.',
|
|
1304
1329
|
'notifications.optIn.cancel': 'Қазір Емес',
|
|
1305
1330
|
'notifications.optIn.openSettings': 'Параметрлерді Ашу',
|
|
1331
|
+
'notifications.optIn.copyToClipboard': 'Буферге көшіру',
|
|
1306
1332
|
},
|
|
1307
1333
|
af: {
|
|
1308
1334
|
'customer.form.title': 'Hallo👋',
|
|
@@ -1356,6 +1382,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1356
1382
|
'Kry kennisgewings wanneer jy nuwe boodskappe van ons ondersteuningspan ontvang.',
|
|
1357
1383
|
'notifications.optIn.cancel': 'Nie Nou Nie',
|
|
1358
1384
|
'notifications.optIn.openSettings': 'Maak Instellings Oop',
|
|
1385
|
+
'notifications.optIn.copyToClipboard': 'Kopieer naar Klembord',
|
|
1359
1386
|
},
|
|
1360
1387
|
yo: {
|
|
1361
1388
|
'customer.form.title': 'Báwo👋',
|
|
@@ -1405,6 +1432,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1405
1432
|
'Gba àwọn ìmọ̀ nígbà tí o bá gba àwọn ìrántí tuntun láti ọ̀dọ̀ ẹgbẹ́ atilẹ́yin wa.',
|
|
1406
1433
|
'notifications.optIn.cancel': 'Kì í ṣe Báyìí',
|
|
1407
1434
|
'notifications.optIn.openSettings': 'Ṣí Àwọn Ètò',
|
|
1435
|
+
'notifications.optIn.copyToClipboard': 'Kopier til Udklipsholderen',
|
|
1408
1436
|
},
|
|
1409
1437
|
da: {
|
|
1410
1438
|
'customer.form.title': 'Hej👋',
|
|
@@ -1456,6 +1484,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1456
1484
|
'Få notifikationer når du modtager nye beskeder fra vores supportteam.',
|
|
1457
1485
|
'notifications.optIn.cancel': 'Ikke Nu',
|
|
1458
1486
|
'notifications.optIn.openSettings': 'Åbn Indstillinger',
|
|
1487
|
+
'notifications.optIn.copyToClipboard': 'Kopier til Udklipsholderen',
|
|
1459
1488
|
},
|
|
1460
1489
|
pl: {
|
|
1461
1490
|
'customer.form.title': 'Cześć👋',
|
|
@@ -1507,5 +1536,6 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
|
|
|
1507
1536
|
'Otrzymuj powiadomienia gdy otrzymasz nowe wiadomości od naszego zespołu wsparcia.',
|
|
1508
1537
|
'notifications.optIn.cancel': 'Nie Teraz',
|
|
1509
1538
|
'notifications.optIn.openSettings': 'Otwórz Ustawienia',
|
|
1539
|
+
'notifications.optIn.copyToClipboard': 'Kopiuj do schowka',
|
|
1510
1540
|
},
|
|
1511
1541
|
} as const;
|
package/src/register/init.ts
CHANGED
package/src/store/store.ts
CHANGED
|
@@ -6,6 +6,7 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
|
6
6
|
import type { AppConversationMessage } from '../types/Conversation';
|
|
7
7
|
import type { LanguageCode } from '../types/Language';
|
|
8
8
|
import type { Customer } from '../types/Customer';
|
|
9
|
+
import type { LocalizationKeys } from '../types/LocalizationKeys';
|
|
9
10
|
|
|
10
11
|
interface AppStoreState {
|
|
11
12
|
baseHeight: number;
|
|
@@ -38,6 +39,8 @@ interface AppStoreState {
|
|
|
38
39
|
setPermissionGiven: (permissionGiven: boolean) => void;
|
|
39
40
|
notificationInitialized: boolean;
|
|
40
41
|
setNotificationInitialized: (notificationInitialized: boolean) => void;
|
|
42
|
+
toastMessage: keyof LocalizationKeys | null;
|
|
43
|
+
setToastMessage: (message: keyof LocalizationKeys | null) => void;
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
export const storeCreator: StateCreator<AppStoreState> = (set, get) => ({
|
|
@@ -91,6 +94,10 @@ export const storeCreator: StateCreator<AppStoreState> = (set, get) => ({
|
|
|
91
94
|
setNotificationInitialized: (notificationInitialized: boolean) => {
|
|
92
95
|
set({ notificationInitialized });
|
|
93
96
|
},
|
|
97
|
+
toastMessage: null,
|
|
98
|
+
setToastMessage: (message: keyof LocalizationKeys | null) => {
|
|
99
|
+
set({ toastMessage: message });
|
|
100
|
+
},
|
|
94
101
|
});
|
|
95
102
|
|
|
96
103
|
export const useAppStore = createWithEqualityFn<AppStoreState>()(
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
|
-
export const VERSION = '0.
|
|
2
|
+
export const VERSION = '0.11.0';
|