@developer_tribe/react-native-comnyx 0.3.5 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/lib/commonjs/assets/arrow-right.png +0 -0
  2. package/lib/commonjs/assets/down.png +0 -0
  3. package/lib/commonjs/assets/info-circle.png +0 -0
  4. package/lib/commonjs/components/ChatList.js +99 -37
  5. package/lib/commonjs/components/ChatList.js.map +1 -1
  6. package/lib/commonjs/components/CustomAlert.js +15 -5
  7. package/lib/commonjs/components/CustomAlert.js.map +1 -1
  8. package/lib/commonjs/components/CustomerForm.js +13 -10
  9. package/lib/commonjs/components/CustomerForm.js.map +1 -1
  10. package/lib/commonjs/components/InitFailed.js +2 -0
  11. package/lib/commonjs/components/InitFailed.js.map +1 -1
  12. package/lib/commonjs/components/MessageInput.js +14 -14
  13. package/lib/commonjs/components/MessageInput.js.map +1 -1
  14. package/lib/commonjs/components/MessageItem.js +6 -14
  15. package/lib/commonjs/components/MessageItem.js.map +1 -1
  16. package/lib/commonjs/constants/activeOpacity.js +8 -0
  17. package/lib/commonjs/constants/activeOpacity.js.map +1 -0
  18. package/lib/commonjs/constants/translations.js +202 -42
  19. package/lib/commonjs/constants/translations.js.map +1 -1
  20. package/lib/commonjs/data/fake/messages.js +2 -0
  21. package/lib/commonjs/data/fake/messages.js.map +1 -1
  22. package/lib/commonjs/hooks/useThemeColors.js +1 -7
  23. package/lib/commonjs/hooks/useThemeColors.js.map +1 -1
  24. package/lib/commonjs/types/Theme.js +4 -2
  25. package/lib/commonjs/types/Theme.js.map +1 -1
  26. package/lib/module/assets/arrow-right.png +0 -0
  27. package/lib/module/assets/down.png +0 -0
  28. package/lib/module/assets/info-circle.png +0 -0
  29. package/lib/module/components/ChatList.js +100 -38
  30. package/lib/module/components/ChatList.js.map +1 -1
  31. package/lib/module/components/CustomAlert.js +15 -5
  32. package/lib/module/components/CustomAlert.js.map +1 -1
  33. package/lib/module/components/CustomerForm.js +13 -10
  34. package/lib/module/components/CustomerForm.js.map +1 -1
  35. package/lib/module/components/InitFailed.js +2 -0
  36. package/lib/module/components/InitFailed.js.map +1 -1
  37. package/lib/module/components/MessageInput.js +14 -14
  38. package/lib/module/components/MessageInput.js.map +1 -1
  39. package/lib/module/components/MessageItem.js +6 -14
  40. package/lib/module/components/MessageItem.js.map +1 -1
  41. package/lib/module/constants/activeOpacity.js +4 -0
  42. package/lib/module/constants/activeOpacity.js.map +1 -0
  43. package/lib/module/constants/translations.js +202 -42
  44. package/lib/module/constants/translations.js.map +1 -1
  45. package/lib/module/data/fake/messages.js +2 -0
  46. package/lib/module/data/fake/messages.js.map +1 -1
  47. package/lib/module/hooks/useThemeColors.js +2 -8
  48. package/lib/module/hooks/useThemeColors.js.map +1 -1
  49. package/lib/module/types/Theme.js +4 -2
  50. package/lib/module/types/Theme.js.map +1 -1
  51. package/lib/typescript/commonjs/src/components/ChatList.d.ts.map +1 -1
  52. package/lib/typescript/commonjs/src/components/CustomAlert.d.ts.map +1 -1
  53. package/lib/typescript/commonjs/src/components/CustomerForm.d.ts.map +1 -1
  54. package/lib/typescript/commonjs/src/components/InitFailed.d.ts.map +1 -1
  55. package/lib/typescript/commonjs/src/components/MessageInput.d.ts.map +1 -1
  56. package/lib/typescript/commonjs/src/constants/activeOpacity.d.ts +2 -0
  57. package/lib/typescript/commonjs/src/constants/activeOpacity.d.ts.map +1 -0
  58. package/lib/typescript/commonjs/src/constants/translations.d.ts.map +1 -1
  59. package/lib/typescript/commonjs/src/data/fake/messages.d.ts.map +1 -1
  60. package/lib/typescript/commonjs/src/hooks/useThemeColors.d.ts.map +1 -1
  61. package/lib/typescript/commonjs/src/types/Conversation.d.ts +6 -1
  62. package/lib/typescript/commonjs/src/types/Conversation.d.ts.map +1 -1
  63. package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts +16 -0
  64. package/lib/typescript/commonjs/src/types/LocalizationKeys.d.ts.map +1 -1
  65. package/lib/typescript/commonjs/src/types/MessageResponse.d.ts +2 -0
  66. package/lib/typescript/commonjs/src/types/MessageResponse.d.ts.map +1 -1
  67. package/lib/typescript/commonjs/src/types/Theme.d.ts +1 -0
  68. package/lib/typescript/commonjs/src/types/Theme.d.ts.map +1 -1
  69. package/lib/typescript/module/src/components/ChatList.d.ts.map +1 -1
  70. package/lib/typescript/module/src/components/CustomAlert.d.ts.map +1 -1
  71. package/lib/typescript/module/src/components/CustomerForm.d.ts.map +1 -1
  72. package/lib/typescript/module/src/components/InitFailed.d.ts.map +1 -1
  73. package/lib/typescript/module/src/components/MessageInput.d.ts.map +1 -1
  74. package/lib/typescript/module/src/constants/activeOpacity.d.ts +2 -0
  75. package/lib/typescript/module/src/constants/activeOpacity.d.ts.map +1 -0
  76. package/lib/typescript/module/src/constants/translations.d.ts.map +1 -1
  77. package/lib/typescript/module/src/data/fake/messages.d.ts.map +1 -1
  78. package/lib/typescript/module/src/hooks/useThemeColors.d.ts.map +1 -1
  79. package/lib/typescript/module/src/types/Conversation.d.ts +6 -1
  80. package/lib/typescript/module/src/types/Conversation.d.ts.map +1 -1
  81. package/lib/typescript/module/src/types/LocalizationKeys.d.ts +16 -0
  82. package/lib/typescript/module/src/types/LocalizationKeys.d.ts.map +1 -1
  83. package/lib/typescript/module/src/types/MessageResponse.d.ts +2 -0
  84. package/lib/typescript/module/src/types/MessageResponse.d.ts.map +1 -1
  85. package/lib/typescript/module/src/types/Theme.d.ts +1 -0
  86. package/lib/typescript/module/src/types/Theme.d.ts.map +1 -1
  87. package/package.json +1 -1
  88. package/src/assets/arrow-right.png +0 -0
  89. package/src/assets/down.png +0 -0
  90. package/src/assets/info-circle.png +0 -0
  91. package/src/components/ChatList.tsx +116 -42
  92. package/src/components/CustomAlert.tsx +24 -6
  93. package/src/components/CustomerForm.tsx +13 -9
  94. package/src/components/InitFailed.tsx +2 -0
  95. package/src/components/MessageInput.tsx +15 -16
  96. package/src/components/MessageItem.tsx +4 -12
  97. package/src/constants/activeOpacity.ts +1 -0
  98. package/src/constants/translations.ts +281 -68
  99. package/src/data/fake/messages.ts +2 -0
  100. package/src/hooks/useThemeColors.ts +2 -7
  101. package/src/types/Conversation.ts +3 -1
  102. package/src/types/LocalizationKeys.ts +16 -0
  103. package/src/types/MessageResponse.ts +2 -0
  104. package/src/types/Theme.ts +3 -0
@@ -3,11 +3,12 @@ import type { LanguageCode } from '../types/Language';
3
3
 
4
4
  export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
5
5
  en: {
6
- 'customer.form.title': 'Customer Information',
7
- 'customer.form.email': 'Email',
8
- 'customer.form.phone': 'Phone',
6
+ 'customer.form.title': 'Hello👋',
7
+ 'customer.form.name': 'Your name',
8
+ 'customer.form.email': 'Your e-mail address',
9
+ 'customer.form.phone': 'Your phone number',
9
10
  'customer.form.country': 'Country',
10
- 'customer.form.submit': 'Submit',
11
+ 'customer.form.submit': 'Contact Now',
11
12
  'customer.form.error': 'Please fill in all required fields',
12
13
  'customer.form.instructions':
13
14
  'Complete the form below to receive personalized service',
@@ -18,22 +19,43 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
18
19
  'customer.form.placeholder.country': 'Enter your country',
19
20
  'customer.form.placeholder.email': 'Enter your email',
20
21
  'customer.form.placeholder.phone': 'Enter your phone number',
21
- 'chat.messageInput.placeholder': 'Type your message...',
22
+ 'chat.messageInput.placeholder': 'Ask me a question...',
22
23
  'app.initialization.required': 'Please initialize first',
23
24
  'chat.load.error': 'Failed to load messages. Tap to retry',
24
25
  'chat.init.error': 'Failed to initialize chat. Tap to retry',
25
26
  'chat.empty': 'No messages yet',
26
- 'customer.form.validation.email.pattern': 'Please enter a valid email address',
27
- 'customer.form.validation.phone.invalid': 'Please enter a valid phone number',
28
- 'customer.form.validation.country.maxLength': 'Country code must be 2 characters',
29
- 'customer.form.validation.name.maxLength': 'Name must be less than 30 characters',
27
+ 'customer.form.validation.email.pattern':
28
+ 'Please enter a valid email address',
29
+ 'customer.form.validation.phone.invalid':
30
+ 'Please enter a valid phone number',
31
+ 'customer.form.validation.country.maxLength':
32
+ 'Country code must be 2 characters',
33
+ 'customer.form.validation.name.maxLength':
34
+ 'Name must be less than 30 characters',
35
+ 'chat.empty.title': 'You have no message.',
36
+ 'chat.empty.description': "The team's message will be displayed here.",
37
+ 'chat.live': 'Live Chat',
38
+ 'chat.support-team': 'Support Team',
39
+ 'customer.form.resend': 'Resend',
40
+ 'chat.list-failed-message.title': 'Failed to send',
41
+ 'chat.list-failed-message.description':
42
+ "The message couldn't be sent. Please try again.",
43
+ 'chat.list-cancel': 'Cancel',
44
+ 'customer.form.failed.name': 'Wrong name',
45
+ 'customer.form.failed.name.desc': 'Please fix your name.',
46
+ 'customer.form.failed.email': 'Wrong email',
47
+ 'customer.form.failed.email.desc': 'Please fix your email.',
48
+ 'customer.form.failed.phone': 'Wrong phone number',
49
+ 'customer.form.failed.phone.desc': 'Please fix your phone number.',
50
+ 'customer.form.cancel': 'Close',
30
51
  },
31
52
  tr: {
32
- 'customer.form.title': 'Müşteri Bilgileri',
53
+ 'customer.form.title': 'Merhaba👋',
54
+ 'customer.form.name': 'Ad',
33
55
  'customer.form.email': 'E-posta',
34
56
  'customer.form.phone': 'Telefon',
35
57
  'customer.form.country': 'Ülke',
36
- 'customer.form.submit': 'Gönder',
58
+ 'customer.form.submit': 'Şimdi İletişime Geç',
37
59
  'customer.form.error': 'Lütfen tüm zorunlu alanları doldurun',
38
60
  'customer.form.instructions':
39
61
  'Kişiselleştirilmiş hizmet almak için aşağıdaki formu doldurun',
@@ -44,22 +66,43 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
44
66
  'customer.form.placeholder.country': 'Ülkenizi girin',
45
67
  'customer.form.placeholder.email': 'E-posta adresinizi girin',
46
68
  'customer.form.placeholder.phone': 'Telefon numaranızı girin',
47
- 'chat.messageInput.placeholder': 'Mesajınızı yazın...',
69
+ 'chat.messageInput.placeholder': 'Bana bir soru sorun...',
48
70
  'app.initialization.required': 'Lütfen önce başlatın',
49
71
  'chat.load.error': 'Mesajlar yüklenemedi. Tekrar denemek için dokunun',
50
72
  'chat.init.error': 'Sohbet başlatılamadı. Tekrar denemek için dokunun',
51
73
  'chat.empty': 'Henüz mesaj yok',
52
- 'customer.form.validation.email.pattern': 'Lütfen geçerli bir e-posta adresi girin',
53
- 'customer.form.validation.phone.invalid': 'Lütfen geçerli bir telefon numarası girin',
54
- 'customer.form.validation.country.maxLength': 'Ülke kodu 2 karakter olmalıdır',
55
- 'customer.form.validation.name.maxLength': 'İsim 30 karakterden az olmalıdır',
74
+ 'customer.form.validation.email.pattern':
75
+ 'Lütfen geçerli bir e-posta adresi girin',
76
+ 'customer.form.validation.phone.invalid':
77
+ 'Lütfen geçerli bir telefon numarası girin',
78
+ 'customer.form.validation.country.maxLength':
79
+ 'Ülke kodu 2 karakter olmalıdır',
80
+ 'customer.form.validation.name.maxLength':
81
+ 'İsim 30 karakterden az olmalıdır',
82
+ 'chat.empty.title': 'Mesajınız yok.',
83
+ 'chat.empty.description': 'Ekibin mesajları burada görüntülenecek.',
84
+ 'chat.live': 'Canlı Sohbet',
85
+ 'chat.support-team': 'Destek Ekibi',
86
+ 'customer.form.resend': 'Yeniden Gönder',
87
+ 'chat.list-failed-message.title': 'Gönderilemedi',
88
+ 'chat.list-failed-message.description':
89
+ 'Mesaj gönderilemedi. Lütfen tekrar deneyin.',
90
+ 'chat.list-cancel': 'İptal',
91
+ 'customer.form.failed.name': 'Yanlış isim',
92
+ 'customer.form.failed.name.desc': 'Lütfen isminizi düzeltin.',
93
+ 'customer.form.failed.email': 'Yanlış e-posta',
94
+ 'customer.form.failed.email.desc': 'Lütfen e-posta adresinizi düzeltin.',
95
+ 'customer.form.failed.phone': 'Yanlış telefon numarası',
96
+ 'customer.form.failed.phone.desc': 'Lütfen telefon numaranızı düzeltin.',
97
+ 'customer.form.cancel': 'Kapat',
56
98
  },
57
99
  es: {
58
- 'customer.form.title': 'Información del Cliente',
100
+ 'customer.form.title': 'Hola👋',
101
+ 'customer.form.name': 'Nombre',
59
102
  'customer.form.email': 'Correo Electrónico',
60
103
  'customer.form.phone': 'Teléfono',
61
104
  'customer.form.country': 'País',
62
- 'customer.form.submit': 'Enviar',
105
+ 'customer.form.submit': 'Contactar Ahora',
63
106
  'customer.form.error': 'Por favor complete todos los campos requeridos',
64
107
  'customer.form.instructions':
65
108
  'Complete el formulario a continuación para recibir un servicio personalizado',
@@ -70,22 +113,45 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
70
113
  'customer.form.placeholder.country': 'Ingrese su país',
71
114
  'customer.form.placeholder.email': 'Ingrese su correo electrónico',
72
115
  'customer.form.placeholder.phone': 'Ingrese su número de teléfono',
73
- 'chat.messageInput.placeholder': 'Escribe tu mensaje...',
116
+ 'chat.messageInput.placeholder': 'Hazme una pregunta...',
74
117
  'app.initialization.required': 'Por favor inicialice primero',
75
118
  'chat.load.error': 'Error al cargar mensajes. Toque para reintentar',
76
119
  'chat.init.error': 'Error al inicializar el chat. Toque para reintentar',
77
120
  'chat.empty': 'Aún no hay mensajes',
78
- 'customer.form.validation.email.pattern': 'Por favor ingrese un correo electrónico válido',
79
- 'customer.form.validation.phone.invalid': 'Por favor ingrese un número de teléfono válido',
80
- 'customer.form.validation.country.maxLength': 'El código de país debe tener 2 caracteres',
81
- 'customer.form.validation.name.maxLength': 'El nombre debe tener menos de 30 caracteres',
121
+ 'customer.form.validation.email.pattern':
122
+ 'Por favor ingrese un correo electrónico válido',
123
+ 'customer.form.validation.phone.invalid':
124
+ 'Por favor ingrese un número de teléfono válido',
125
+ 'customer.form.validation.country.maxLength':
126
+ 'El código de país debe tener 2 caracteres',
127
+ 'customer.form.validation.name.maxLength':
128
+ 'El nombre debe tener menos de 30 caracteres',
129
+ 'chat.empty.title': 'No tienes mensajes.',
130
+ 'chat.empty.description': 'Los mensajes del equipo se mostrarán aquí.',
131
+ 'chat.live': 'Chat en Vivo',
132
+ 'chat.support-team': 'Equipo de Soporte',
133
+ 'customer.form.resend': 'Reenviar',
134
+ 'chat.list-failed-message.title': 'Error al enviar',
135
+ 'chat.list-failed-message.description':
136
+ 'El mensaje no pudo ser enviado. Por favor intente de nuevo.',
137
+ 'chat.list-cancel': 'Cancelar',
138
+ 'customer.form.failed.name': 'Nombre incorrecto',
139
+ 'customer.form.failed.name.desc': 'Por favor corrija su nombre.',
140
+ 'customer.form.failed.email': 'Correo electrónico incorrecto',
141
+ 'customer.form.failed.email.desc':
142
+ 'Por favor corrija su correo electrónico.',
143
+ 'customer.form.failed.phone': 'Número de teléfono incorrecto',
144
+ 'customer.form.failed.phone.desc':
145
+ 'Por favor corrija su número de teléfono.',
146
+ 'customer.form.cancel': 'Cerrar',
82
147
  },
83
148
  fr: {
84
- 'customer.form.title': 'Informations Client',
149
+ 'customer.form.title': 'Bonjour👋',
150
+ 'customer.form.name': 'Nom',
85
151
  'customer.form.email': 'Email',
86
152
  'customer.form.phone': 'Téléphone',
87
153
  'customer.form.country': 'Pays',
88
- 'customer.form.submit': 'Envoyer',
154
+ 'customer.form.submit': 'Contacter Maintenant',
89
155
  'customer.form.error': 'Veuillez remplir tous les champs obligatoires',
90
156
  'customer.form.instructions':
91
157
  'Complétez le formulaire ci-dessous pour recevoir un service personnalisé',
@@ -96,24 +162,46 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
96
162
  'customer.form.placeholder.country': 'Entrez votre pays',
97
163
  'customer.form.placeholder.email': 'Entrez votre email',
98
164
  'customer.form.placeholder.phone': 'Entrez votre numéro de téléphone',
99
- 'chat.messageInput.placeholder': 'Tapez votre message...',
165
+ 'chat.messageInput.placeholder': 'Posez-moi une question...',
100
166
  'app.initialization.required': "Veuillez initialiser d'abord",
101
167
  'chat.load.error':
102
168
  'Échec du chargement des messages. Appuyez pour réessayer',
103
169
  'chat.init.error':
104
170
  "Échec de l'initialisation du chat. Appuyez pour réessayer",
105
171
  'chat.empty': 'Aucun message pour le moment',
106
- 'customer.form.validation.email.pattern': 'Veuillez entrer une adresse email valide',
107
- 'customer.form.validation.phone.invalid': 'Veuillez entrer un numéro de téléphone valide',
108
- 'customer.form.validation.country.maxLength': 'Le code pays doit contenir 2 caractères',
109
- 'customer.form.validation.name.maxLength': 'Le nom doit contenir moins de 30 caractères',
172
+ 'customer.form.validation.email.pattern':
173
+ 'Veuillez entrer une adresse email valide',
174
+ 'customer.form.validation.phone.invalid':
175
+ 'Veuillez entrer un numéro de téléphone valide',
176
+ 'customer.form.validation.country.maxLength':
177
+ 'Le code pays doit contenir 2 caractères',
178
+ 'customer.form.validation.name.maxLength':
179
+ 'Le nom doit contenir moins de 30 caractères',
180
+ 'chat.empty.title': "Vous n'avez pas de message.",
181
+ 'chat.empty.description': "Les messages de l'équipe seront affichés ici.",
182
+ 'chat.live': 'Chat en Direct',
183
+ 'chat.support-team': 'Équipe de Support',
184
+ 'customer.form.resend': 'Renvoyer',
185
+ 'chat.list-failed-message.title': "Échec de l'envoi",
186
+ 'chat.list-failed-message.description':
187
+ "Le message n'a pas pu être envoyé. Veuillez réessayer.",
188
+ 'chat.list-cancel': 'Annuler',
189
+ 'customer.form.failed.name': 'Nom incorrect',
190
+ 'customer.form.failed.name.desc': 'Veuillez corriger votre nom.',
191
+ 'customer.form.failed.email': 'Email incorrect',
192
+ 'customer.form.failed.email.desc': 'Veuillez corriger votre email.',
193
+ 'customer.form.failed.phone': 'Numéro de téléphone incorrect',
194
+ 'customer.form.failed.phone.desc':
195
+ 'Veuillez corriger votre numéro de téléphone.',
196
+ 'customer.form.cancel': 'Fermer',
110
197
  },
111
198
  de: {
112
- 'customer.form.title': 'Kundeninformationen',
199
+ 'customer.form.title': 'Hallo👋',
200
+ 'customer.form.name': 'Name',
113
201
  'customer.form.email': 'E-Mail',
114
202
  'customer.form.phone': 'Telefon',
115
203
  'customer.form.country': 'Land',
116
- 'customer.form.submit': 'Absenden',
204
+ 'customer.form.submit': 'Jetzt Kontaktieren',
117
205
  'customer.form.error': 'Bitte füllen Sie alle erforderlichen Felder aus',
118
206
  'customer.form.instructions':
119
207
  'Füllen Sie das folgende Formular aus, um einen personalisierten Service zu erhalten',
@@ -124,24 +212,47 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
124
212
  'customer.form.placeholder.country': 'Geben Sie Ihr Land ein',
125
213
  'customer.form.placeholder.email': 'Geben Sie Ihre E-Mail-Adresse ein',
126
214
  'customer.form.placeholder.phone': 'Geben Sie Ihre Telefonnummer ein',
127
- 'chat.messageInput.placeholder': 'Geben Sie Ihre Nachricht ein...',
215
+ 'chat.messageInput.placeholder': 'Stellen Sie mir eine Frage...',
128
216
  'app.initialization.required': 'Bitte initialisieren Sie zuerst',
129
217
  'chat.load.error':
130
218
  'Nachrichten konnten nicht geladen werden. Tippen Sie zum Wiederholen',
131
219
  'chat.init.error':
132
220
  'Chat konnte nicht initialisiert werden. Tippen Sie zum Wiederholen',
133
221
  'chat.empty': 'Noch keine Nachrichten',
134
- 'customer.form.validation.email.pattern': 'Bitte geben Sie eine gültige E-Mail-Adresse ein',
135
- 'customer.form.validation.phone.invalid': 'Bitte geben Sie eine gültige Telefonnummer ein',
136
- 'customer.form.validation.country.maxLength': 'Der Ländercode muss 2 Zeichen lang sein',
137
- 'customer.form.validation.name.maxLength': 'Der Name muss weniger als 30 Zeichen haben',
222
+ 'customer.form.validation.email.pattern':
223
+ 'Bitte geben Sie eine gültige E-Mail-Adresse ein',
224
+ 'customer.form.validation.phone.invalid':
225
+ 'Bitte geben Sie eine gültige Telefonnummer ein',
226
+ 'customer.form.validation.country.maxLength':
227
+ 'Der Ländercode muss 2 Zeichen lang sein',
228
+ 'customer.form.validation.name.maxLength':
229
+ 'Der Name muss weniger als 30 Zeichen haben',
230
+ 'chat.empty.title': 'Sie haben keine Nachrichten.',
231
+ 'chat.empty.description':
232
+ 'Die Nachrichten des Teams werden hier angezeigt.',
233
+ 'chat.live': 'Live-Chat',
234
+ 'chat.support-team': 'Support-Team',
235
+ 'customer.form.resend': 'Erneut senden',
236
+ 'chat.list-failed-message.title': 'Senden fehlgeschlagen',
237
+ 'chat.list-failed-message.description':
238
+ 'Die Nachricht konnte nicht gesendet werden. Bitte versuchen Sie es erneut.',
239
+ 'chat.list-cancel': 'Abbrechen',
240
+ 'customer.form.failed.name': 'Falscher Name',
241
+ 'customer.form.failed.name.desc': 'Bitte korrigieren Sie Ihren Namen.',
242
+ 'customer.form.failed.email': 'Falsche E-Mail',
243
+ 'customer.form.failed.email.desc': 'Bitte korrigieren Sie Ihre E-Mail.',
244
+ 'customer.form.failed.phone': 'Falsche Telefonnummer',
245
+ 'customer.form.failed.phone.desc':
246
+ 'Bitte korrigieren Sie Ihre Telefonnummer.',
247
+ 'customer.form.cancel': 'Schließen',
138
248
  },
139
249
  it: {
140
- 'customer.form.title': 'Informazioni Cliente',
250
+ 'customer.form.title': 'Ciao👋',
251
+ 'customer.form.name': 'Nome',
141
252
  'customer.form.email': 'Email',
142
253
  'customer.form.phone': 'Telefono',
143
254
  'customer.form.country': 'Paese',
144
- 'customer.form.submit': 'Invia',
255
+ 'customer.form.submit': 'Contatta Ora',
145
256
  'customer.form.error': 'Si prega di compilare tutti i campi obbligatori',
146
257
  'customer.form.instructions':
147
258
  'Completa il modulo sottostante per ricevere un servizio personalizzato',
@@ -152,22 +263,44 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
152
263
  'customer.form.placeholder.country': 'Inserisci il tuo paese',
153
264
  'customer.form.placeholder.email': 'Inserisci la tua email',
154
265
  'customer.form.placeholder.phone': 'Inserisci il tuo numero di telefono',
155
- 'chat.messageInput.placeholder': 'Scrivi il tuo messaggio...',
266
+ 'chat.messageInput.placeholder': 'Fammi una domanda...',
156
267
  'app.initialization.required': 'Si prega di inizializzare prima',
157
268
  'chat.load.error': 'Impossibile caricare i messaggi. Tocca per riprovare',
158
269
  'chat.init.error': 'Impossibile inizializzare la chat. Tocca per riprovare',
159
270
  'chat.empty': 'Ancora nessun messaggio',
160
- 'customer.form.validation.email.pattern': 'Inserisci un indirizzo email valido',
161
- 'customer.form.validation.phone.invalid': 'Inserisci un numero di telefono valido',
162
- 'customer.form.validation.country.maxLength': 'Il codice paese deve essere di 2 caratteri',
163
- 'customer.form.validation.name.maxLength': 'Il nome deve essere inferiore a 30 caratteri',
271
+ 'customer.form.validation.email.pattern':
272
+ 'Inserisci un indirizzo email valido',
273
+ 'customer.form.validation.phone.invalid':
274
+ 'Inserisci un numero di telefono valido',
275
+ 'customer.form.validation.country.maxLength':
276
+ 'Il codice paese deve essere di 2 caratteri',
277
+ 'customer.form.validation.name.maxLength':
278
+ 'Il nome deve essere inferiore a 30 caratteri',
279
+ 'chat.empty.title': 'Non hai messaggi.',
280
+ 'chat.empty.description': 'I messaggi del team saranno visualizzati qui.',
281
+ 'chat.live': 'Chat dal Vivo',
282
+ 'chat.support-team': 'Team di Supporto',
283
+ 'customer.form.resend': 'Rinvia',
284
+ 'chat.list-failed-message.title': 'Invio fallito',
285
+ 'chat.list-failed-message.description':
286
+ 'Il messaggio non è stato inviato. Per favore riprova.',
287
+ 'chat.list-cancel': 'Annulla',
288
+ 'customer.form.failed.name': 'Nome errato',
289
+ 'customer.form.failed.name.desc': 'Per favore correggi il tuo nome.',
290
+ 'customer.form.failed.email': 'Email errata',
291
+ 'customer.form.failed.email.desc': 'Per favore correggi la tua email.',
292
+ 'customer.form.failed.phone': 'Numero di telefono errato',
293
+ 'customer.form.failed.phone.desc':
294
+ 'Per favore correggi il tuo numero di telefono.',
295
+ 'customer.form.cancel': 'Chiudi',
164
296
  },
165
297
  pt: {
166
- 'customer.form.title': 'Informações do Cliente',
298
+ 'customer.form.title': 'Olá👋',
299
+ 'customer.form.name': 'Nome',
167
300
  'customer.form.email': 'Email',
168
301
  'customer.form.phone': 'Telefone',
169
302
  'customer.form.country': 'País',
170
- 'customer.form.submit': 'Enviar',
303
+ 'customer.form.submit': 'Contactar Agora',
171
304
  'customer.form.error': 'Por favor, preencha todos os campos obrigatórios',
172
305
  'customer.form.instructions':
173
306
  'Complete o formulário abaixo para receber um serviço personalizado',
@@ -178,24 +311,46 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
178
311
  'customer.form.placeholder.country': 'Digite seu país',
179
312
  'customer.form.placeholder.email': 'Digite seu email',
180
313
  'customer.form.placeholder.phone': 'Digite seu número de telefone',
181
- 'chat.messageInput.placeholder': 'Digite sua mensagem...',
314
+ 'chat.messageInput.placeholder': 'Faça-me uma pergunta...',
182
315
  'app.initialization.required': 'Por favor, inicialize primeiro',
183
316
  'chat.load.error':
184
317
  'Falha ao carregar mensagens. Toque para tentar novamente',
185
318
  'chat.init.error':
186
319
  'Falha ao inicializar o chat. Toque para tentar novamente',
187
320
  'chat.empty': 'Ainda não há mensagens',
188
- 'customer.form.validation.email.pattern': 'Por favor, insira um endereço de email válido',
189
- 'customer.form.validation.phone.invalid': 'Por favor, insira um número de telefone válido',
190
- 'customer.form.validation.country.maxLength': 'O código do país deve ter 2 caracteres',
191
- 'customer.form.validation.name.maxLength': 'O nome deve ter menos de 30 caracteres',
321
+ 'customer.form.validation.email.pattern':
322
+ 'Por favor, insira um endereço de email válido',
323
+ 'customer.form.validation.phone.invalid':
324
+ 'Por favor, insira um número de telefone válido',
325
+ 'customer.form.validation.country.maxLength':
326
+ 'O código do país deve ter 2 caracteres',
327
+ 'customer.form.validation.name.maxLength':
328
+ 'O nome deve ter menos de 30 caracteres',
329
+ 'chat.empty.title': 'Você não tem mensagens.',
330
+ 'chat.empty.description': 'As mensagens da equipe serão exibidas aqui.',
331
+ 'chat.live': 'Chat ao Vivo',
332
+ 'chat.support-team': 'Equipe de Suporte',
333
+ 'customer.form.resend': 'Reenviar',
334
+ 'chat.list-failed-message.title': 'Falha ao enviar',
335
+ 'chat.list-failed-message.description':
336
+ 'A mensagem não pôde ser enviada. Por favor, tente novamente.',
337
+ 'chat.list-cancel': 'Cancelar',
338
+ 'customer.form.failed.name': 'Nome incorreto',
339
+ 'customer.form.failed.name.desc': 'Por favor, corrija seu nome.',
340
+ 'customer.form.failed.email': 'Email incorreto',
341
+ 'customer.form.failed.email.desc': 'Por favor, corrija seu email.',
342
+ 'customer.form.failed.phone': 'Número de telefone incorreto',
343
+ 'customer.form.failed.phone.desc':
344
+ 'Por favor, corrija seu número de telefone.',
345
+ 'customer.form.cancel': 'Fechar',
192
346
  },
193
347
  ru: {
194
- 'customer.form.title': 'Информация о клиенте',
348
+ 'customer.form.title': 'Привет👋',
349
+ 'customer.form.name': 'Имя',
195
350
  'customer.form.email': 'Электронная почта',
196
351
  'customer.form.phone': 'Телефон',
197
352
  'customer.form.country': 'Страна',
198
- 'customer.form.submit': 'Отправить',
353
+ 'customer.form.submit': 'Связаться Сейчас',
199
354
  'customer.form.error': 'Пожалуйста, заполните все обязательные поля',
200
355
  'customer.form.instructions':
201
356
  'Заполните форму ниже, чтобы получить персонализированное обслуживание',
@@ -206,24 +361,46 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
206
361
  'customer.form.placeholder.country': 'Введите вашу страну',
207
362
  'customer.form.placeholder.email': 'Введите ваш email',
208
363
  'customer.form.placeholder.phone': 'Введите ваш номер телефона',
209
- 'chat.messageInput.placeholder': 'Введите ваше сообщение...',
364
+ 'chat.messageInput.placeholder': 'Задайте мне вопрос...',
210
365
  'app.initialization.required': 'Пожалуйста, сначала инициализируйте',
211
366
  'chat.load.error':
212
367
  'Не удалось загрузить сообщения. Нажмите, чтобы повторить попытку',
213
368
  'chat.init.error':
214
369
  'Не удалось инициализировать чат. Нажмите, чтобы повторить попытку',
215
370
  'chat.empty': 'Пока нет сообщений',
216
- 'customer.form.validation.email.pattern': 'Пожалуйста, введите действительный адрес электронной почты',
217
- 'customer.form.validation.phone.invalid': 'Пожалуйста, введите действительный номер телефона',
218
- 'customer.form.validation.country.maxLength': 'Код страны должен содержать 2 символа',
219
- 'customer.form.validation.name.maxLength': 'Имя должно содержать менее 30 символов',
371
+ 'customer.form.validation.email.pattern':
372
+ 'Пожалуйста, введите действительный адрес электронной почты',
373
+ 'customer.form.validation.phone.invalid':
374
+ 'Пожалуйста, введите действительный номер телефона',
375
+ 'customer.form.validation.country.maxLength':
376
+ 'Код страны должен содержать 2 символа',
377
+ 'customer.form.validation.name.maxLength':
378
+ 'Имя должно содержать менее 30 символов',
379
+ 'chat.empty.title': 'У вас нет сообщений.',
380
+ 'chat.empty.description': 'Сообщения команды будут отображаться здесь.',
381
+ 'chat.live': 'Живой Чат',
382
+ 'chat.support-team': 'Служба Поддержки',
383
+ 'customer.form.resend': 'Отправить повторно',
384
+ 'chat.list-failed-message.title': 'Не удалось отправить',
385
+ 'chat.list-failed-message.description':
386
+ 'Сообщение не удалось отправить. Пожалуйста, попробуйте еще раз.',
387
+ 'chat.list-cancel': 'Отмена',
388
+ 'customer.form.failed.name': 'Неверное имя',
389
+ 'customer.form.failed.name.desc': 'Пожалуйста, исправьте ваше имя.',
390
+ 'customer.form.failed.email': 'Неверный email',
391
+ 'customer.form.failed.email.desc': 'Пожалуйста, исправьте ваш email.',
392
+ 'customer.form.failed.phone': 'Неверный номер телефона',
393
+ 'customer.form.failed.phone.desc':
394
+ 'Пожалуйста, исправьте ваш номер телефона.',
395
+ 'customer.form.cancel': 'Закрыть',
220
396
  },
221
397
  ja: {
222
- 'customer.form.title': '顧客情報',
398
+ 'customer.form.title': 'こんにちは👋',
399
+ 'customer.form.name': '名前',
223
400
  'customer.form.email': 'メールアドレス',
224
401
  'customer.form.phone': '電話番号',
225
402
  'customer.form.country': '国',
226
- 'customer.form.submit': '送信',
403
+ 'customer.form.submit': '今すぐ連絡する',
227
404
  'customer.form.error': '必須項目をすべて入力してください',
228
405
  'customer.form.instructions':
229
406
  'パーソナライズされたサービスを受けるには、以下のフォームに記入してください',
@@ -234,22 +411,43 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
234
411
  'customer.form.placeholder.country': '国を入力してください',
235
412
  'customer.form.placeholder.email': 'メールアドレスを入力してください',
236
413
  'customer.form.placeholder.phone': '電話番号を入力してください',
237
- 'chat.messageInput.placeholder': 'メッセージを入力...',
414
+ 'chat.messageInput.placeholder': '質問を入力してください...',
238
415
  'app.initialization.required': 'まず初期化してください',
239
416
  'chat.load.error': 'メッセージの読み込みに失敗しました。タップして再試行',
240
417
  'chat.init.error': 'チャットの初期化に失敗しました。タップして再試行',
241
418
  'chat.empty': 'まだメッセージはありません',
242
- 'customer.form.validation.email.pattern': '有効なメールアドレスを入力してください',
243
- 'customer.form.validation.phone.invalid': '有効な電話番号を入力してください',
244
- 'customer.form.validation.country.maxLength': '国コードは2文字である必要があります',
245
- 'customer.form.validation.name.maxLength': '名前は30文字未満である必要があります',
419
+ 'customer.form.validation.email.pattern':
420
+ '有効なメールアドレスを入力してください',
421
+ 'customer.form.validation.phone.invalid':
422
+ '有効な電話番号を入力してください',
423
+ 'customer.form.validation.country.maxLength':
424
+ '国コードは2文字である必要があります',
425
+ 'customer.form.validation.name.maxLength':
426
+ '名前は30文字未満である必要があります',
427
+ 'chat.empty.title': 'メッセージがありません。',
428
+ 'chat.empty.description': 'チームからのメッセージがここに表示されます。',
429
+ 'chat.live': 'ライブチャット',
430
+ 'chat.support-team': 'サポートチーム',
431
+ 'customer.form.resend': '再送信',
432
+ 'chat.list-failed-message.title': '送信に失敗しました',
433
+ 'chat.list-failed-message.description':
434
+ 'メッセージを送信できませんでした。もう一度お試しください。',
435
+ 'chat.list-cancel': 'キャンセル',
436
+ 'customer.form.failed.name': '名前が間違っています',
437
+ 'customer.form.failed.name.desc': 'お名前を修正してください。',
438
+ 'customer.form.failed.email': 'メールアドレスが間違っています',
439
+ 'customer.form.failed.email.desc': 'メールアドレスを修正してください。',
440
+ 'customer.form.failed.phone': '電話番号が間違っています',
441
+ 'customer.form.failed.phone.desc': '電話番号を修正してください。',
442
+ 'customer.form.cancel': '閉じる',
246
443
  },
247
444
  zh: {
248
- 'customer.form.title': '客户信息',
445
+ 'customer.form.title': '你好👋',
446
+ 'customer.form.name': '姓名',
249
447
  'customer.form.email': '电子邮件',
250
448
  'customer.form.phone': '电话',
251
449
  'customer.form.country': '国家',
252
- 'customer.form.submit': '提交',
450
+ 'customer.form.submit': '立即联系',
253
451
  'customer.form.error': '请填写所有必填字段',
254
452
  'customer.form.instructions': '填写以下表格以获取个性化服务',
255
453
  'customer.form.error.country': '国家为必填项',
@@ -259,7 +457,7 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
259
457
  'customer.form.placeholder.country': '请输入您的国家',
260
458
  'customer.form.placeholder.email': '请输入您的电子邮件',
261
459
  'customer.form.placeholder.phone': '请输入您的电话号码',
262
- 'chat.messageInput.placeholder': '输入您的消息...',
460
+ 'chat.messageInput.placeholder': '向我提问...',
263
461
  'app.initialization.required': '请先初始化',
264
462
  'chat.load.error': '加载消息失败。点击重试',
265
463
  'chat.init.error': '初始化聊天失败。点击重试',
@@ -268,5 +466,20 @@ export const LocalizationList: Record<LanguageCode, LocalizationKeys> = {
268
466
  'customer.form.validation.phone.invalid': '请输入有效的电话号码',
269
467
  'customer.form.validation.country.maxLength': '国家代码必须是2个字符',
270
468
  'customer.form.validation.name.maxLength': '名称必须少于30个字符',
469
+ 'chat.empty.title': '您没有消息。',
470
+ 'chat.empty.description': '团队的消息将显示在这里。',
471
+ 'chat.live': '在线聊天',
472
+ 'chat.support-team': '支持团队',
473
+ 'customer.form.resend': '重新发送',
474
+ 'chat.list-failed-message.title': '发送失败',
475
+ 'chat.list-failed-message.description': '消息无法发送。请重试。',
476
+ 'chat.list-cancel': '取消',
477
+ 'customer.form.failed.name': '名字错误',
478
+ 'customer.form.failed.name.desc': '请修正您的名字。',
479
+ 'customer.form.failed.email': '电子邮件错误',
480
+ 'customer.form.failed.email.desc': '请修正您的电子邮件。',
481
+ 'customer.form.failed.phone': '电话号码错误',
482
+ 'customer.form.failed.phone.desc': '请修正您的电话号码。',
483
+ 'customer.form.cancel': '关闭',
271
484
  },
272
485
  } as const;
@@ -10,6 +10,8 @@ export function getFakeMessageResponse(content: string): MessageResponse {
10
10
  created_at: new Date().toISOString(),
11
11
  id: Math.floor(Math.random() * 1000),
12
12
  user: null,
13
+ customer: null,
14
+ bot: null ,
13
15
  conversation: {
14
16
  id: 1,
15
17
  project_id: 1,
@@ -1,10 +1,5 @@
1
- import { useAppStore } from '../store';
2
- import { lightTheme, darkTheme, type ThemeColors } from '../types/Theme';
1
+ import { lightTheme, type ThemeColors } from '../types/Theme';
3
2
 
4
3
  export function useThemeColors(): ThemeColors {
5
- const { theme } = useAppStore((s) => ({
6
- theme: s.theme,
7
- }));
8
-
9
- return theme === 'light' ? lightTheme : darkTheme;
4
+ return lightTheme;
10
5
  }
@@ -2,7 +2,9 @@ export interface ConversationMessage {
2
2
  id: number;
3
3
  content: string;
4
4
  created_at: string;
5
- user: any | null;
5
+ user?: any | null;
6
+ bot?: any | null;
7
+ customer?: { name: string; profile_photo_url: null } | null;
6
8
  }
7
9
 
8
10
  export interface AppConversationMessage
@@ -22,4 +22,20 @@ export type LocalizationKeys = {
22
22
  'chat.load.error': string;
23
23
  'chat.init.error': string;
24
24
  'chat.empty': string;
25
+ 'chat.empty.title': string;
26
+ 'chat.empty.description': string;
27
+ 'chat.live': string;
28
+ 'chat.support-team': string;
29
+ 'customer.form.resend': string;
30
+ 'chat.list-failed-message.title': string;
31
+ 'chat.list-failed-message.description': string;
32
+ 'chat.list-cancel': string;
33
+ 'customer.form.failed.name': string;
34
+ 'customer.form.failed.name.desc': string;
35
+ 'customer.form.failed.email': string;
36
+ 'customer.form.failed.email.desc': string;
37
+ 'customer.form.failed.phone': string;
38
+ 'customer.form.failed.phone.desc': string;
39
+ 'customer.form.name': string;
40
+ 'customer.form.cancel': string;
25
41
  };
@@ -7,6 +7,8 @@ export interface MessageResponse {
7
7
  created_at: string;
8
8
  id: number;
9
9
  user: null | any;
10
+ customer: null | any;
11
+ bot: null | any;
10
12
  conversation: {
11
13
  id: number;
12
14
  project_id: number;
@@ -17,6 +17,7 @@ export interface ThemeColors {
17
17
  ghost: string;
18
18
  navy: string;
19
19
  lavender: string;
20
+ silver: string;
20
21
  }
21
22
 
22
23
  export const lightTheme: ThemeColors = {
@@ -38,6 +39,7 @@ export const lightTheme: ThemeColors = {
38
39
  ghost: '#EFEFEF',
39
40
  navy: '#191A21',
40
41
  lavender: '#E0E0E0',
42
+ silver: '#C7C7C7',
41
43
  };
42
44
 
43
45
  export const darkTheme: ThemeColors = {
@@ -59,6 +61,7 @@ export const darkTheme: ThemeColors = {
59
61
  ghost: '#202129',
60
62
  navy: '#F5F5F5',
61
63
  lavender: '#262730',
64
+ silver: '#44454D',
62
65
  };
63
66
 
64
67
  export interface Theme {