@chat21/chat21-web-widget 5.1.34-rc1 → 5.1.34

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 (193) hide show
  1. package/.github/workflows/docker-community-push-latest.yml +13 -23
  2. package/.github/workflows/docker-image-tag-community-tag-push.yml +12 -22
  3. package/CHANGELOG.md +8 -129
  4. package/Dockerfile +5 -4
  5. package/angular.json +3 -21
  6. package/docs/changelog/this-branch.md +0 -36
  7. package/env.sample +2 -3
  8. package/nginx.conf +2 -22
  9. package/package.json +3 -10
  10. package/src/app/app.component.html +2 -2
  11. package/src/app/app.component.scss +14 -25
  12. package/src/app/app.component.spec.ts +6 -21
  13. package/src/app/app.component.ts +9 -10
  14. package/src/app/app.module.ts +0 -13
  15. package/src/app/component/conversation-detail/conversation/conversation.component.html +11 -25
  16. package/src/app/component/conversation-detail/conversation/conversation.component.scss +2 -40
  17. package/src/app/component/conversation-detail/conversation/conversation.component.spec.ts +75 -644
  18. package/src/app/component/conversation-detail/conversation/conversation.component.ts +14 -100
  19. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +13 -25
  20. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.spec.ts +5 -123
  21. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.ts +0 -1
  22. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +10 -23
  23. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +1 -19
  24. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +149 -242
  25. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +5 -8
  26. package/src/app/component/conversation-detail/conversation-emojii/conversation-emojii.component.spec.ts +3 -53
  27. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +96 -200
  28. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +6 -211
  29. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.spec.ts +78 -452
  30. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +76 -291
  31. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +53 -113
  32. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +4 -12
  33. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.spec.ts +29 -274
  34. package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.html +9 -23
  35. package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.spec.ts +8 -80
  36. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.html +23 -29
  37. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.spec.ts +16 -185
  38. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts +14 -34
  39. package/src/app/component/error-alert/error-alert.component.spec.ts +5 -65
  40. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.html +7 -16
  41. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.scss +0 -21
  42. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.spec.ts +7 -89
  43. package/src/app/component/form/form-builder/form-builder.component.html +1 -1
  44. package/src/app/component/form/form-builder/form-builder.component.spec.ts +21 -163
  45. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.html +4 -8
  46. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.scss +5 -10
  47. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.spec.ts +16 -90
  48. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.ts +0 -26
  49. package/src/app/component/form/inputs/form-label/form-label.component.spec.ts +11 -45
  50. package/src/app/component/form/inputs/form-radio-button/form-radio-button.component.spec.ts +6 -24
  51. package/src/app/component/form/inputs/form-select/form-select.component.spec.ts +5 -14
  52. package/src/app/component/form/inputs/form-text/form-text.component.html +12 -14
  53. package/src/app/component/form/inputs/form-text/form-text.component.scss +1 -11
  54. package/src/app/component/form/inputs/form-text/form-text.component.spec.ts +17 -113
  55. package/src/app/component/form/inputs/form-text/form-text.component.ts +3 -35
  56. package/src/app/component/form/inputs/form-textarea/form-textarea.component.html +11 -13
  57. package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +5 -6
  58. package/src/app/component/form/inputs/form-textarea/form-textarea.component.spec.ts +13 -149
  59. package/src/app/component/form/inputs/form-textarea/form-textarea.component.ts +0 -26
  60. package/src/app/component/form/prechat-form/prechat-form.component.html +11 -14
  61. package/src/app/component/form/prechat-form/prechat-form.component.spec.ts +10 -102
  62. package/src/app/component/form/prechat-form/prechat-form.component.ts +1 -8
  63. package/src/app/component/home/home.component.html +31 -38
  64. package/src/app/component/home/home.component.scss +2 -4
  65. package/src/app/component/home/home.component.spec.ts +11 -226
  66. package/src/app/component/home-conversations/home-conversations.component.html +26 -30
  67. package/src/app/component/home-conversations/home-conversations.component.scss +0 -3
  68. package/src/app/component/home-conversations/home-conversations.component.spec.ts +36 -212
  69. package/src/app/component/last-message/last-message.component.html +9 -15
  70. package/src/app/component/last-message/last-message.component.scss +2 -16
  71. package/src/app/component/last-message/last-message.component.spec.ts +23 -204
  72. package/src/app/component/last-message/last-message.component.ts +1 -4
  73. package/src/app/component/launcher-button/launcher-button.component.html +13 -8
  74. package/src/app/component/launcher-button/launcher-button.component.spec.ts +8 -104
  75. package/src/app/component/list-all-conversations/list-all-conversations.component.html +17 -12
  76. package/src/app/component/list-all-conversations/list-all-conversations.component.scss +0 -2
  77. package/src/app/component/list-conversations/list-conversations.component.html +22 -22
  78. package/src/app/component/menu-options/menu-options.component.html +20 -30
  79. package/src/app/component/menu-options/menu-options.component.spec.ts +9 -125
  80. package/src/app/component/message/audio/audio.component.html +15 -13
  81. package/src/app/component/message/audio/audio.component.spec.ts +5 -140
  82. package/src/app/component/message/audio/audio.component.ts +5 -1
  83. package/src/app/component/message/avatar/avatar.component.html +2 -2
  84. package/src/app/component/message/avatar/avatar.component.spec.ts +7 -99
  85. package/src/app/component/message/bubble-message/bubble-message.component.html +51 -38
  86. package/src/app/component/message/bubble-message/bubble-message.component.scss +1 -54
  87. package/src/app/component/message/bubble-message/bubble-message.component.spec.ts +57 -154
  88. package/src/app/component/message/bubble-message/bubble-message.component.ts +11 -89
  89. package/src/app/component/message/buttons/action-button/action-button.component.html +4 -3
  90. package/src/app/component/message/buttons/action-button/action-button.component.spec.ts +5 -49
  91. package/src/app/component/message/buttons/link-button/link-button.component.scss +8 -5
  92. package/src/app/component/message/buttons/link-button/link-button.component.spec.ts +5 -50
  93. package/src/app/component/message/buttons/text-button/text-button.component.spec.ts +5 -44
  94. package/src/app/component/message/carousel/carousel.component.html +16 -29
  95. package/src/app/component/message/carousel/carousel.component.scss +8 -20
  96. package/src/app/component/message/carousel/carousel.component.spec.ts +3 -80
  97. package/src/app/component/message/carousel/carousel.component.ts +0 -16
  98. package/src/app/component/message/frame/frame.component.html +4 -9
  99. package/src/app/component/message/frame/frame.component.spec.ts +15 -34
  100. package/src/app/component/message/frame/frame.component.ts +2 -7
  101. package/src/app/component/message/html/html.component.html +1 -1
  102. package/src/app/component/message/html/html.component.scss +1 -1
  103. package/src/app/component/message/html/html.component.spec.ts +7 -24
  104. package/src/app/component/message/image/image.component.html +10 -12
  105. package/src/app/component/message/image/image.component.scss +0 -16
  106. package/src/app/component/message/image/image.component.spec.ts +15 -101
  107. package/src/app/component/message/image/image.component.ts +51 -90
  108. package/src/app/component/message/info-message/info-message.component.spec.ts +14 -26
  109. package/src/app/component/message/like-unlike/like-unlike.component.html +9 -7
  110. package/src/app/component/message/like-unlike/like-unlike.component.spec.ts +3 -31
  111. package/src/app/component/message/return-receipt/return-receipt.component.spec.ts +17 -38
  112. package/src/app/component/message/text/text.component.html +3 -3
  113. package/src/app/component/message/text/text.component.scss +86 -80
  114. package/src/app/component/message/text/text.component.spec.ts +13 -106
  115. package/src/app/component/message-attachment/message-attachment.component.spec.ts +13 -134
  116. package/src/app/component/selection-department/selection-department.component.html +23 -21
  117. package/src/app/component/selection-department/selection-department.component.spec.ts +14 -159
  118. package/src/app/component/selection-department/selection-department.component.ts +1 -8
  119. package/src/app/component/send-button/send-button.component.html +13 -5
  120. package/src/app/component/send-button/send-button.component.spec.ts +2 -2
  121. package/src/app/component/star-rating-widget/star-rating-widget.component.html +81 -51
  122. package/src/app/directives/tooltip.directive.spec.ts +4 -8
  123. package/src/app/modals/confirm-close/confirm-close.component.html +8 -20
  124. package/src/app/modals/confirm-close/confirm-close.component.scss +0 -3
  125. package/src/app/modals/confirm-close/confirm-close.component.spec.ts +4 -13
  126. package/src/app/modals/confirm-close/confirm-close.component.ts +1 -8
  127. package/src/app/pipe/html-entites-encode.pipe.spec.ts +2 -35
  128. package/src/app/pipe/marked.pipe.spec.ts +2 -38
  129. package/src/app/pipe/marked.pipe.ts +41 -51
  130. package/src/app/providers/app-config.service.ts +2 -4
  131. package/src/app/providers/brand.service.spec.ts +2 -23
  132. package/src/app/providers/brand.service.ts +1 -1
  133. package/src/app/providers/global-settings.service.spec.ts +14 -1009
  134. package/src/app/providers/global-settings.service.ts +2 -82
  135. package/src/app/providers/translator.service.ts +6 -26
  136. package/src/app/sass/_variables.scss +0 -3
  137. package/src/app/sass/animations.scss +1 -19
  138. package/src/app/utils/globals.ts +1 -21
  139. package/src/app/utils/utils-resources.ts +1 -1
  140. package/src/assets/i18n/en.json +99 -106
  141. package/src/assets/i18n/es.json +100 -107
  142. package/src/assets/i18n/fr.json +100 -107
  143. package/src/assets/i18n/it.json +98 -107
  144. package/src/assets/twp/index-dev.html +0 -18
  145. package/src/chat21-core/models/message.ts +1 -2
  146. package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +2 -3
  147. package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +0 -12
  148. package/src/chat21-core/providers/scripts/script.service.spec.ts +2 -12
  149. package/src/chat21-core/providers/tiledesk/tiledesk-requests.service.ts +1 -1
  150. package/src/chat21-core/utils/utils-message.ts +0 -7
  151. package/src/chat21-core/utils/utils.ts +2 -5
  152. package/src/widget-config-template.json +1 -4
  153. package/src/widget-config.json +1 -4
  154. package/tsconfig.json +0 -5
  155. package/.angular-mcp-cache/package.json +0 -1
  156. package/.cursor/angular18-accessibility-auditor-skill.md +0 -442
  157. package/.cursor/mcp.json +0 -15
  158. package/.github/workflows/build.yml +0 -22
  159. package/.github/workflows/playwright.yml +0 -27
  160. package/mocks/voice-websocket-mock/server.cjs +0 -245
  161. package/playwright.config.ts +0 -41
  162. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.html +0 -46
  163. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.scss +0 -83
  164. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.ts +0 -192
  165. package/src/app/component/form/prechat-form-test-mock.ts +0 -35
  166. package/src/app/component/message/audio-sync/audio-sync.component.html +0 -18
  167. package/src/app/component/message/audio-sync/audio-sync.component.scss +0 -65
  168. package/src/app/component/message/audio-sync/audio-sync.component.spec.ts +0 -103
  169. package/src/app/component/message/audio-sync/audio-sync.component.ts +0 -643
  170. package/src/app/providers/tts-audio-playback-coordinator.service.spec.ts +0 -117
  171. package/src/app/providers/tts-audio-playback-coordinator.service.ts +0 -109
  172. package/src/app/providers/voice/STT&TTS/openai-voice.config.ts +0 -12
  173. package/src/app/providers/voice/STT&TTS/openai-voice.provider.ts +0 -171
  174. package/src/app/providers/voice/STT&TTS/speech-provider.abstract.ts +0 -39
  175. package/src/app/providers/voice/audio.types.ts +0 -40
  176. package/src/app/providers/voice/vad.service.spec.ts +0 -28
  177. package/src/app/providers/voice/vad.service.ts +0 -70
  178. package/src/app/providers/voice/voice-streaming.service.spec.ts +0 -23
  179. package/src/app/providers/voice/voice-streaming.service.ts +0 -702
  180. package/src/app/providers/voice/voice-streaming.types.ts +0 -112
  181. package/src/app/providers/voice/voice.service.spec.ts +0 -227
  182. package/src/app/providers/voice/voice.service.ts +0 -973
  183. package/src/app/shims/onnxruntime-web-wasm.ts +0 -4
  184. package/src/assets/onnx/ort-wasm-simd-threaded.mjs +0 -59
  185. package/src/assets/onnx/ort-wasm-simd-threaded.wasm +0 -0
  186. package/src/assets/sounds/keyboard.mp3 +0 -0
  187. package/src/assets/twp/tiledesk_widget_files/widget-css-override-example.css +0 -14
  188. package/src/assets/vad/silero_vad_legacy.onnx +0 -0
  189. package/src/assets/vad/vad.worklet.bundle.min.js +0 -1
  190. package/src/chat21-core/providers/chat-manager.spec.ts +0 -72
  191. package/tests/widget-form-rich.spec.ts +0 -67
  192. package/tests/widget-index-dev-settings.spec.ts +0 -52
  193. package/tests/widget-twp-iframe.spec.ts +0 -39
@@ -1,108 +1,99 @@
1
1
  {
2
- "LABEL_PLACEHOLDER": "Scrivi la tua domanda...",
3
- "LABEL_START_NW_CONV": "Nuova conversazione",
4
- "LABEL_WHATSAPP": "Contattaci",
5
- "LABEL_SELECT_TOPIC": "Seleziona un argomento",
6
- "LABEL_COMPLETE_FORM": "Completa il form per iniziare una conversazione con il prossimo agente disponibile.",
7
- "LABEL_FIELD_NAME": "Nome",
8
- "LABEL_ERROR_FIELD_NAME": "Nome richiesto (minimo 2 caratteri).",
9
- "LABEL_FIELD_EMAIL": "Email",
10
- "LABEL_ERROR_FIELD_EMAIL": "Inserisci un indirizzo email valido.",
11
- "LABEL_ERROR_FIELD_REQUIRED": "Campo richiesto",
12
- "LABEL_WRITING": "sta scrivendo...",
13
- "LABEL_SEND_NEW_MESSAGE": "Invia un nuovo messaggio",
14
- "AGENT_NOT_AVAILABLE": " Offline",
15
- "AGENT_AVAILABLE": " Online",
16
- "GUEST_LABEL": "Ospite",
17
- "ALL_AGENTS_OFFLINE_LABEL": "Tutti gli operatori sono offline al momento",
18
- "LABEL_LOADING": "Caricamento...",
19
- "LABEL_THINKING": "sto pensando",
20
- "CALLOUT_TITLE_PLACEHOLDER": "🖐 Bisogno di aiuto?",
21
- "CALLOUT_MSG_PLACEHOLDER": "Clicca qui e inizia a chattare con noi!",
22
- "CUSTOMER_SATISFACTION": "Valutazione servizio",
23
- "YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE": "il tuo giudizio sul nostro servizio clienti",
24
- "DOWNLOAD_TRANSCRIPT": "Scarica transcript",
25
- "BACK": "Indietro",
26
- "CONTINUE": "Continua",
27
- "YOUR_RATING": "il tuo voto",
28
- "WRITE_YOUR_OPINION": "Scrivi la tua opinione...(opzionale)",
29
- "SUBMIT": "Invia",
30
- "THANK_YOU_FOR_YOUR_EVALUATION": "Grazie per la tua valutazione",
31
- "YOUR_RATING_HAS_BEEN_RECEIVED": "il tuo voto è stato ricevuto",
32
- "ALERT_LEAVE_CHAT": "Vuoi abbandonare la conversazione?",
33
- "YES": "Si",
34
- "NO": "No",
35
- "BUTTON_CLOSE_TO_ICON": "Riduci a icona la chat",
36
- "BUTTON_EDIT_PROFILE": "Modifica profilo",
37
- "RATE_CHAT": "Valuta chat",
38
- "WELCOME_TITLE": "Ciao, benvenuto su Tiledesk 👋",
39
- "WELCOME_MSG": "Come possiamo aiutarti?",
40
- "WELCOME": "Benvenuto",
41
- "OPTIONS": "opzioni",
42
- "SOUND_OFF": "Suono spento",
43
- "SOUND_ON": "Suono acceso",
44
- "LOGOUT": "Disconnetti",
45
- "CLOSE": "Chiudi",
46
- "RESTART": "Ricomincia",
47
- "PREV_CONVERSATIONS": "Le tue conversazioni",
48
- "YOU": "Tu",
49
- "SHOW_ALL_CONV": "vedi tutte",
50
- "START_A_CONVERSATION": "Inizia una conversazione",
51
- "NO_CONVERSATION": "Nessuna conversazione attiva",
52
- "SEE_PREVIOUS": "vedi precedenti",
53
- "WAITING_TIME_FOUND": "Il team tipicamente risponde in $reply_time",
54
- "WAITING_TIME_NOT_FOUND": "Vi risponderemo appena possibile",
55
- "CLOSED": "Chiusa",
56
- "CLOSE_CHAT": "Chiudi chat",
57
- "MINIMIZE": "Comprimi finestra",
58
- "MAXIMIZE": "Espandi finestra",
59
- "CENTER": "Centra",
60
- "CONFIRM_CLOSE_CHAT": "Sei sicuro di voler chiudere questa chat?",
61
- "INFO_SUPPORT_USER_ADDED_SUBJECT": "tu",
62
- "INFO_SUPPORT_USER_ADDED_YOU_VERB": "sei stato aggiunto ",
63
- "INFO_SUPPORT_USER_ADDED_COMPLEMENT": "si è unito",
64
- "INFO_SUPPORT_USER_ADDED_VERB": "alla chat",
65
- "INFO_SUPPORT_CHAT_REOPENED": "Chat riaperta",
66
- "INFO_SUPPORT_CHAT_CLOSED": "Chat chiusa",
67
- "INFO_SUPPORT_LEAD_UPDATED": "Contatto aggiornato",
68
- "INFO_SUPPORT_MEMBER_LEFT_GROUP": "ha lasciato il gruppo",
69
- "INFO_SUPPORT_MEMBER_ABANDONED_GROUP": "ha abbandonato la conversazione",
70
- "INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "Una nuova richiesta di supporto è stata assegnata a te",
71
- "LABEL_PRECHAT_USER_FULLNAME": "Nome completo",
72
- "LABEL_PRECHAT_USER_EMAIL": "E-mail",
73
- "LABEL_PRECHAT_USER_EMAIL_ERROR": "Indirizzo email non valido",
74
- "LABEL_PRECHAT_USER_PHONE": "Telefono",
75
- "LABEL_PRECHAT_USER_PHONE_ERROR": "Telefono richiesto",
76
- "LABEL_PRECHAT_FIRST_MESSAGE": "Il tuo messaggio per il team di supporto",
77
- "LABEL_PRECHAT_STATIC_TERMS_PRIVACY": "Prima di procedere nella conversazione, accetta i nostri <a href='https://tiledesk.com/termsofservice/' target='_blank'>Termini</a> e <a href='https://tiledesk.com/privacy.html' target='_blank'>Norme sulla privacy</a>",
78
- "LABEL_PRECHAT_ACCEPT_TERMS_PRIVACY": "Sono d'accordo",
79
- "PRECHAT_REQUIRED_ERROR": "Questo campo è obbligatorio",
80
- "TICKET_TAKING": "La richiesta è stata ricevuta e il personale di assistenza se ne sta occupando.\nPer aggiungere ulteriori commenti, rispondi a questa email.",
81
- "LABEL_TODAY": "oggi",
82
- "LABEL_TOMORROW": "ieri",
83
- "LABEL_LAST_ACCESS": "ultimo accesso",
84
- "LABEL_TO": "a",
85
- "ARRAY_DAYS": [
86
- "Lunedì",
87
- "Martedì",
88
- "Mercoledì",
89
- "Giovedì",
90
- "Venerdì",
91
- "Sabato",
92
- "Domenica"
93
- ],
94
- "SENT_AN_ATTACHMENT": "ha inviato un allegato",
95
- "SENT_AN_IMAGE": "ha inviato un'immagine",
96
- "LABEL_PREVIEW": "Anteprima",
97
- "SWITCH_TO": "Oppure passa a:",
98
- "CONNECTION_NETWORK_ERROR": "Ci scusiamo. Si sono verificati problemi di connessione di rete",
99
- "EMOJI_NOT_ELLOWED": "Emoji non consentiti",
100
- "DOMAIN_NOT_ALLOWED": "L'URL contiene un dominio non consentito",
101
- "MAX_ATTACHMENT": "Dimensione massima consentita {{FILE_SIZE_LIMIT}}Mb",
102
- "MAX_ATTACHMENT_ERROR": "Il file supera la dimensione massima consentita",
103
- "EMOJI": "Emoji",
104
- "STREAM_AUDIO": "Usa la modalità vocale",
105
- "VOICE_CONNECTING": "Connessione...",
106
- "VOICE_LISTENING": "In ascolto...",
107
- "VOICE_PROCESSING": "Elaborazione..."
108
- }
2
+ "LABEL_PLACEHOLDER": "Scrivi la tua domanda...",
3
+ "LABEL_START_NW_CONV": "Nuova conversazione",
4
+ "LABEL_WHATSAPP": "Contattaci",
5
+ "LABEL_SELECT_TOPIC": "Seleziona un argomento",
6
+ "LABEL_COMPLETE_FORM": "Completa il form per iniziare una conversazione con il prossimo agente disponibile.",
7
+ "LABEL_FIELD_NAME": "Nome",
8
+ "LABEL_ERROR_FIELD_NAME": "Nome richiesto (minimo 2 caratteri).",
9
+ "LABEL_FIELD_EMAIL": "Email",
10
+ "LABEL_ERROR_FIELD_EMAIL": "Inserisci un indirizzo email valido.",
11
+ "LABEL_ERROR_FIELD_REQUIRED": "Campo richiesto",
12
+ "LABEL_WRITING": "sta scrivendo...",
13
+ "LABEL_SEND_NEW_MESSAGE": "Invia un nuovo messaggio",
14
+ "AGENT_NOT_AVAILABLE": " Offline",
15
+ "AGENT_AVAILABLE": " Online",
16
+ "GUEST_LABEL": "Ospite",
17
+ "ALL_AGENTS_OFFLINE_LABEL": "Tutti gli operatori sono offline al momento",
18
+ "LABEL_LOADING": "Caricamento...",
19
+ "LABEL_THINKING": "sto pensando",
20
+ "CALLOUT_TITLE_PLACEHOLDER": "🖐 Bisogno di aiuto?",
21
+ "CALLOUT_MSG_PLACEHOLDER": "Clicca qui e inizia a chattare con noi!",
22
+ "CUSTOMER_SATISFACTION": "Valutazione servizio",
23
+ "YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE": "il tuo giudizio sul nostro servizio clienti",
24
+ "DOWNLOAD_TRANSCRIPT": "Scarica transcript",
25
+ "BACK": "Indietro",
26
+ "CONTINUE":"Continua",
27
+ "YOUR_RATING": "il tuo voto",
28
+ "WRITE_YOUR_OPINION": "Scrivi la tua opinione...(opzionale)",
29
+ "SUBMIT": "Invia",
30
+ "THANK_YOU_FOR_YOUR_EVALUATION": "Grazie per la tua valutazione",
31
+ "YOUR_RATING_HAS_BEEN_RECEIVED": "il tuo voto è stato ricevuto",
32
+ "ALERT_LEAVE_CHAT": "Vuoi abbandonare la conversazione?",
33
+ "YES": "Si",
34
+ "NO": "No",
35
+ "BUTTON_CLOSE_TO_ICON": "Riduci a icona la chat",
36
+ "BUTTON_EDIT_PROFILE": "Modifica profilo",
37
+ "RATE_CHAT": "Valuta chat",
38
+ "WELCOME_TITLE": "Ciao, benvenuto su Tiledesk 👋",
39
+ "WELCOME_MSG": "Come possiamo aiutarti?",
40
+ "WELCOME": "Benvenuto",
41
+ "OPTIONS": "opzioni",
42
+ "SOUND_OFF": "Suono spento",
43
+ "SOUND_ON": "Suono acceso",
44
+ "LOGOUT": "Disconnetti",
45
+ "CLOSE": "Chiudi",
46
+ "RESTART":"Ricomincia",
47
+ "PREV_CONVERSATIONS": "Le tue conversazioni",
48
+ "YOU": "Tu",
49
+ "SHOW_ALL_CONV": "vedi tutte",
50
+ "START_A_CONVERSATION": "Inizia una conversazione",
51
+ "NO_CONVERSATION": "Nessuna conversazione attiva",
52
+ "SEE_PREVIOUS": "vedi precedenti",
53
+ "WAITING_TIME_FOUND": "Il team tipicamente risponde in $reply_time",
54
+ "WAITING_TIME_NOT_FOUND": "Vi risponderemo appena possibile",
55
+ "CLOSED": "Chiusa",
56
+ "CLOSE_CHAT": "Chiudi chat",
57
+ "MINIMIZE":"Comprimi finestra",
58
+ "MAXIMIZE":"Espandi finestra",
59
+ "CENTER":"Centra",
60
+ "CONFIRM_CLOSE_CHAT":"Sei sicuro di voler chiudere questa chat?",
61
+
62
+ "INFO_SUPPORT_USER_ADDED_SUBJECT":"tu",
63
+ "INFO_SUPPORT_USER_ADDED_YOU_VERB":"sei stato aggiunto ",
64
+ "INFO_SUPPORT_USER_ADDED_COMPLEMENT":"si è unito",
65
+ "INFO_SUPPORT_USER_ADDED_VERB":"alla chat",
66
+ "INFO_SUPPORT_CHAT_REOPENED":"Chat riaperta",
67
+ "INFO_SUPPORT_CHAT_CLOSED":"Chat chiusa",
68
+ "INFO_SUPPORT_LEAD_UPDATED":"Contatto aggiornato",
69
+ "INFO_SUPPORT_MEMBER_LEFT_GROUP":"ha lasciato il gruppo",
70
+ "INFO_SUPPORT_MEMBER_ABANDONED_GROUP": "ha abbandonato la conversazione",
71
+ "INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "Una nuova richiesta di supporto è stata assegnata a te",
72
+
73
+ "LABEL_PRECHAT_USER_FULLNAME": "Nome completo",
74
+ "LABEL_PRECHAT_USER_EMAIL": "E-mail",
75
+ "LABEL_PRECHAT_USER_EMAIL_ERROR": "Indirizzo email non valido",
76
+ "LABEL_PRECHAT_USER_PHONE": "Telefono",
77
+ "LABEL_PRECHAT_USER_PHONE_ERROR": "Telefono richiesto",
78
+ "LABEL_PRECHAT_FIRST_MESSAGE": "Il tuo messaggio per il team di supporto",
79
+ "LABEL_PRECHAT_STATIC_TERMS_PRIVACY": "Prima di procedere nella conversazione, accetta i nostri <a href='https://tiledesk.com/termsofservice/' target='_blank'>Termini</a> e <a href='https:/ /tiledesk.com/privacy.html' target='_blank'>Norme sulla privacy</a>",
80
+ "LABEL_PRECHAT_ACCEPT_TERMS_PRIVACY": "Sono d'accordo",
81
+ "PRECHAT_REQUIRED_ERROR": "Questo campo è obbligatorio",
82
+
83
+ "TICKET_TAKING":"La richiesta è stata ricevuta e il personale di assistenza se ne sta occupando.\nPer aggiungere ulteriori commenti, rispondi a questa email.",
84
+
85
+ "LABEL_TODAY": "oggi",
86
+ "LABEL_TOMORROW": "ieri",
87
+ "LABEL_LAST_ACCESS": "ultimo accesso",
88
+ "LABEL_TO": "a",
89
+ "ARRAY_DAYS": ["Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato", "Domenica"],
90
+ "SENT_AN_ATTACHMENT": "ha inviato un allegato",
91
+ "SENT_AN_IMAGE":"ha inviato un'immagine",
92
+ "LABEL_PREVIEW": "Anteprima",
93
+ "SWITCH_TO":"Oppure passa a:",
94
+ "CONNECTION_NETWORK_ERROR": "Ci scusiamo. Si sono verificati problemi di connessione di rete",
95
+ "EMOJI_NOT_ELLOWED":"Emoji non consentiti",
96
+ "DOMAIN_NOT_ALLOWED":"L'URL contiene un dominio non consentito",
97
+ "MAX_ATTACHMENT": "Dimensione massima consentita {{FILE_SIZE_LIMIT}}Mb",
98
+ "EMOJI": "Emoji"
99
+ }
@@ -801,13 +801,6 @@
801
801
  window.Tiledesk('openConversationById', request_id)
802
802
  }
803
803
 
804
- function onClickCssSource(){
805
- let cssSource = document.getElementById('cssSource').value
806
- window.tiledeskSettings['cssSource'] = cssSource
807
- console.log('onClickCssSource: cssSource-->',window.tiledeskSettings);
808
- window.Tiledesk('restart')
809
- }
810
-
811
804
  // function onClickParameter(elementName){
812
805
  // console.log('onClickParameter: ',elementName)
813
806
  // const radios = document.getElementsByName(elementName)
@@ -1814,17 +1807,6 @@
1814
1807
  <button class="btn btn-light" onclick="onClickOpenConversationById()">Open conversation <i class="fa-regular fa-comment" aria-hidden="true"></i></button>
1815
1808
  </div>
1816
1809
  </div>
1817
- <div class="row section">
1818
- <div><h3 style="line-height: 0.3;">MANAGE <em><strong> global CSS</strong></em></h3></div>
1819
-
1820
- <div>Insert an <em><strong>URL</strong></em> of a CSS file to override the global CSS </div>
1821
- <div class="row" style="margin: 0">
1822
- <textarea class="form-control" id="cssSource" placeholder="https://example.com/custom-style.css" rows="1" cols="60"></textarea>
1823
- </div>
1824
- <div class="row" style="text-align: right; margin:5px 0px">
1825
- <button class="btn btn-light" onclick="onClickCssSource()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
1826
- </div>
1827
- </div>
1828
1810
  <!-- WIDGET POSITION SECTION : start-->
1829
1811
  <div class="row section">
1830
1812
  <div><h3 style="line-height: 0.3;">Widget <em><strong>POSITION</strong></em></h3></div>
@@ -14,7 +14,6 @@ export class MessageModel {
14
14
  public attributes: any,
15
15
  public channel_type: string,
16
16
  public isSender: boolean,
17
- public emoticon?: boolean,
18
- public isJustRecived?: boolean
17
+ public emoticon?: boolean
19
18
  ) { }
20
19
  }
@@ -253,7 +253,9 @@ export class FirebaseConversationHandler extends ConversationHandlerService {
253
253
  }
254
254
  }
255
255
 
256
+
256
257
 
258
+
257
259
  this.addRepalceMessageInArray(msg.uid, msg);
258
260
  this.messageAdded.next(msg);
259
261
  } else {
@@ -492,9 +494,6 @@ export class FirebaseConversationHandler extends ConversationHandlerService {
492
494
  commands[i+1]? commands[i+1].time = 0 : null
493
495
  }
494
496
  }
495
-
496
- command.message.isJustRecived = isJustRecived( that.startTime.getTime(), msg.timestamp );
497
-
498
497
  that.generateMessageObject(msg, command.message, function () {
499
498
  i += 1
500
499
  if (i < commands.length) {
@@ -273,16 +273,6 @@ export class MQTTConversationHandler extends ConversationHandlerService {
273
273
  if(isInfoMessage){
274
274
  this.messageInfo.next(msg)
275
275
  }
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
276
 
287
277
  if(isInfoMessage && hideInfoMessage(msg, this.showInfoMessage)){
288
278
  //if showBubbleInfoMessage array keys not includes msg.attributes.messagelabel['key'] exclude CURRENT INFO MESSAGE
@@ -502,8 +492,6 @@ export class MQTTConversationHandler extends ConversationHandlerService {
502
492
  }
503
493
  }
504
494
 
505
- command.message.isJustRecived = isJustRecived( that.startTime.getTime(), msg.timestamp );
506
-
507
495
  that.generateMessageObject(msg, command.message, i, function () {
508
496
  i += 1
509
497
  if (i < commands.length) {
@@ -1,22 +1,12 @@
1
- import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
2
- import { provideHttpClientTesting } from '@angular/common/http/testing';
3
1
  import { TestBed } from '@angular/core/testing';
4
2
 
5
3
  import { ScriptService } from './script.service';
6
4
 
7
5
  describe('ScriptService', () => {
8
- beforeEach(() => {
9
- TestBed.configureTestingModule({
10
- providers: [
11
- ScriptService,
12
- provideHttpClient(withInterceptorsFromDi()),
13
- provideHttpClientTesting(),
14
- ],
15
- });
16
- });
6
+ beforeEach(() => TestBed.configureTestingModule({}));
17
7
 
18
8
  it('should be created', () => {
19
- const service = TestBed.inject(ScriptService);
9
+ const service: ScriptService = TestBed.get(ScriptService);
20
10
  expect(service).toBeTruthy();
21
11
  });
22
12
  });
@@ -71,7 +71,7 @@ export class TiledeskRequestsService {
71
71
 
72
72
  public getMyRequests(): Promise<{ requests: Array<any>}> {
73
73
  this.tiledeskToken = this.appStorage.getItem('tiledeskToken')
74
- const url = this.URL_TILEDESK_REQUEST + 'me?preflight=true'
74
+ const url = this.URL_TILEDESK_REQUEST + '/me?preflight=true'
75
75
  this.logger.log('[TILEDESK-SERVICE] - GET REQUEST url ', url);
76
76
  const httpOptions = {
77
77
  headers: new HttpHeaders({
@@ -57,13 +57,6 @@ export function isJsonSources(message: any) {
57
57
  return false;
58
58
  }
59
59
 
60
- export function isAudioTTS(message: any) {
61
- if (message && message.type && message.type === 'tts' && message.metadata && message.metadata.src && message.metadata.type.includes('audio') ) {
62
- return true;
63
- }
64
- return false;
65
- }
66
-
67
60
  /** */
68
61
  export function isInfo(message: any) {
69
62
  if (message && message.attributes && (message.attributes.subtype === 'info' || message.attributes.subtype === 'info/support')) {
@@ -773,11 +773,6 @@ export function isAllowedUrlInText(text: string, allowedUrls: string[]) {
773
773
  return nonWhitelistedDomains.length === 0;
774
774
  }
775
775
 
776
- // function extractUrls(text: string): string[] {
777
- // const urlRegex = /https?:\/\/[^\s]+/g;
778
- // return text.match(urlRegex) || [];
779
- // }
780
-
781
776
  function extractUrls(text: string): string[] {
782
777
  // Rileva URL con o senza protocollo (http/https)
783
778
  const urlRegex = /\b((https?:\/\/)?(www\.)?[a-z0-9.-]+\.[a-z]{2,})(\/[^\s]*)?/gi;
@@ -792,3 +787,5 @@ function extractUrls(text: string): string[] {
792
787
  }
793
788
 
794
789
 
790
+
791
+
@@ -24,8 +24,5 @@
24
24
  "dashboardUrl": "${DASHBOARD_URL}",
25
25
  "authPersistence": "${AUTH_PERSISTENCE}",
26
26
  "enbedJs": "${ENBED_JS}",
27
- "brandSrc": "${BRAND_SRC}",
28
- "closeChatInConversation": "${CLOSE_CHAT_IN_CONVERSATION}",
29
- "voiceProxyWsUrl": "${VOICE_PROXY_WS_URL}",
30
- "voiceProxyApiBaseUrl": "${VOICE_PROXY_API_BASE_URL}"
27
+ "brandSrc": "${BRAND_SRC}"
31
28
  }
@@ -24,9 +24,6 @@
24
24
  "dashboardUrl": "http://localhost:4500/",
25
25
  "authPersistence": "LOCAL",
26
26
  "enbedJs": true,
27
- "brandSrc": "${BRAND_SRC}",
28
- "voiceProxyWsUrl": "wss://localhost:3000/speech/ws/voice",
29
- "voiceProxyApiBaseUrl": "https://localhost:3000/speech/api",
30
- "closeChatInConversation": false
27
+ "brandSrc": "${BRAND_SRC}"
31
28
 
32
29
  }
package/tsconfig.json CHANGED
@@ -23,11 +23,6 @@
23
23
  "dom"
24
24
  ],
25
25
  "resolveJsonModule": true,
26
- "paths": {
27
- "onnxruntime-web/wasm": [
28
- "src/app/shims/onnxruntime-web-wasm.ts"
29
- ]
30
- }
31
26
  },
32
27
  "skipLibCheck": true,
33
28
  "angularCompilerOptions": {
@@ -1 +0,0 @@
1
- {"private":true,"name":"angular-mcp-cache"}