@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.
- package/.github/workflows/docker-community-push-latest.yml +13 -23
- package/.github/workflows/docker-image-tag-community-tag-push.yml +12 -22
- package/CHANGELOG.md +8 -129
- package/Dockerfile +5 -4
- package/angular.json +3 -21
- package/docs/changelog/this-branch.md +0 -36
- package/env.sample +2 -3
- package/nginx.conf +2 -22
- package/package.json +3 -10
- package/src/app/app.component.html +2 -2
- package/src/app/app.component.scss +14 -25
- package/src/app/app.component.spec.ts +6 -21
- package/src/app/app.component.ts +9 -10
- package/src/app/app.module.ts +0 -13
- package/src/app/component/conversation-detail/conversation/conversation.component.html +11 -25
- package/src/app/component/conversation-detail/conversation/conversation.component.scss +2 -40
- package/src/app/component/conversation-detail/conversation/conversation.component.spec.ts +75 -644
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +14 -100
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +13 -25
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.spec.ts +5 -123
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.ts +0 -1
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +10 -23
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +1 -19
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +149 -242
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +5 -8
- package/src/app/component/conversation-detail/conversation-emojii/conversation-emojii.component.spec.ts +3 -53
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +96 -200
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +6 -211
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.spec.ts +78 -452
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +76 -291
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +53 -113
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +4 -12
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.spec.ts +29 -274
- package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.html +9 -23
- package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.spec.ts +8 -80
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.html +23 -29
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.spec.ts +16 -185
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts +14 -34
- package/src/app/component/error-alert/error-alert.component.spec.ts +5 -65
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.html +7 -16
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.scss +0 -21
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.spec.ts +7 -89
- package/src/app/component/form/form-builder/form-builder.component.html +1 -1
- package/src/app/component/form/form-builder/form-builder.component.spec.ts +21 -163
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.html +4 -8
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.scss +5 -10
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.spec.ts +16 -90
- package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.ts +0 -26
- package/src/app/component/form/inputs/form-label/form-label.component.spec.ts +11 -45
- package/src/app/component/form/inputs/form-radio-button/form-radio-button.component.spec.ts +6 -24
- package/src/app/component/form/inputs/form-select/form-select.component.spec.ts +5 -14
- package/src/app/component/form/inputs/form-text/form-text.component.html +12 -14
- package/src/app/component/form/inputs/form-text/form-text.component.scss +1 -11
- package/src/app/component/form/inputs/form-text/form-text.component.spec.ts +17 -113
- package/src/app/component/form/inputs/form-text/form-text.component.ts +3 -35
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.html +11 -13
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +5 -6
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.spec.ts +13 -149
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.ts +0 -26
- package/src/app/component/form/prechat-form/prechat-form.component.html +11 -14
- package/src/app/component/form/prechat-form/prechat-form.component.spec.ts +10 -102
- package/src/app/component/form/prechat-form/prechat-form.component.ts +1 -8
- package/src/app/component/home/home.component.html +31 -38
- package/src/app/component/home/home.component.scss +2 -4
- package/src/app/component/home/home.component.spec.ts +11 -226
- package/src/app/component/home-conversations/home-conversations.component.html +26 -30
- package/src/app/component/home-conversations/home-conversations.component.scss +0 -3
- package/src/app/component/home-conversations/home-conversations.component.spec.ts +36 -212
- package/src/app/component/last-message/last-message.component.html +9 -15
- package/src/app/component/last-message/last-message.component.scss +2 -16
- package/src/app/component/last-message/last-message.component.spec.ts +23 -204
- package/src/app/component/last-message/last-message.component.ts +1 -4
- package/src/app/component/launcher-button/launcher-button.component.html +13 -8
- package/src/app/component/launcher-button/launcher-button.component.spec.ts +8 -104
- package/src/app/component/list-all-conversations/list-all-conversations.component.html +17 -12
- package/src/app/component/list-all-conversations/list-all-conversations.component.scss +0 -2
- package/src/app/component/list-conversations/list-conversations.component.html +22 -22
- package/src/app/component/menu-options/menu-options.component.html +20 -30
- package/src/app/component/menu-options/menu-options.component.spec.ts +9 -125
- package/src/app/component/message/audio/audio.component.html +15 -13
- package/src/app/component/message/audio/audio.component.spec.ts +5 -140
- package/src/app/component/message/audio/audio.component.ts +5 -1
- package/src/app/component/message/avatar/avatar.component.html +2 -2
- package/src/app/component/message/avatar/avatar.component.spec.ts +7 -99
- package/src/app/component/message/bubble-message/bubble-message.component.html +51 -38
- package/src/app/component/message/bubble-message/bubble-message.component.scss +1 -54
- package/src/app/component/message/bubble-message/bubble-message.component.spec.ts +57 -154
- package/src/app/component/message/bubble-message/bubble-message.component.ts +11 -89
- package/src/app/component/message/buttons/action-button/action-button.component.html +4 -3
- package/src/app/component/message/buttons/action-button/action-button.component.spec.ts +5 -49
- package/src/app/component/message/buttons/link-button/link-button.component.scss +8 -5
- package/src/app/component/message/buttons/link-button/link-button.component.spec.ts +5 -50
- package/src/app/component/message/buttons/text-button/text-button.component.spec.ts +5 -44
- package/src/app/component/message/carousel/carousel.component.html +16 -29
- package/src/app/component/message/carousel/carousel.component.scss +8 -20
- package/src/app/component/message/carousel/carousel.component.spec.ts +3 -80
- package/src/app/component/message/carousel/carousel.component.ts +0 -16
- package/src/app/component/message/frame/frame.component.html +4 -9
- package/src/app/component/message/frame/frame.component.spec.ts +15 -34
- package/src/app/component/message/frame/frame.component.ts +2 -7
- package/src/app/component/message/html/html.component.html +1 -1
- package/src/app/component/message/html/html.component.scss +1 -1
- package/src/app/component/message/html/html.component.spec.ts +7 -24
- package/src/app/component/message/image/image.component.html +10 -12
- package/src/app/component/message/image/image.component.scss +0 -16
- package/src/app/component/message/image/image.component.spec.ts +15 -101
- package/src/app/component/message/image/image.component.ts +51 -90
- package/src/app/component/message/info-message/info-message.component.spec.ts +14 -26
- package/src/app/component/message/like-unlike/like-unlike.component.html +9 -7
- package/src/app/component/message/like-unlike/like-unlike.component.spec.ts +3 -31
- package/src/app/component/message/return-receipt/return-receipt.component.spec.ts +17 -38
- package/src/app/component/message/text/text.component.html +3 -3
- package/src/app/component/message/text/text.component.scss +86 -80
- package/src/app/component/message/text/text.component.spec.ts +13 -106
- package/src/app/component/message-attachment/message-attachment.component.spec.ts +13 -134
- package/src/app/component/selection-department/selection-department.component.html +23 -21
- package/src/app/component/selection-department/selection-department.component.spec.ts +14 -159
- package/src/app/component/selection-department/selection-department.component.ts +1 -8
- package/src/app/component/send-button/send-button.component.html +13 -5
- package/src/app/component/send-button/send-button.component.spec.ts +2 -2
- package/src/app/component/star-rating-widget/star-rating-widget.component.html +81 -51
- package/src/app/directives/tooltip.directive.spec.ts +4 -8
- package/src/app/modals/confirm-close/confirm-close.component.html +8 -20
- package/src/app/modals/confirm-close/confirm-close.component.scss +0 -3
- package/src/app/modals/confirm-close/confirm-close.component.spec.ts +4 -13
- package/src/app/modals/confirm-close/confirm-close.component.ts +1 -8
- package/src/app/pipe/html-entites-encode.pipe.spec.ts +2 -35
- package/src/app/pipe/marked.pipe.spec.ts +2 -38
- package/src/app/pipe/marked.pipe.ts +41 -51
- package/src/app/providers/app-config.service.ts +2 -4
- package/src/app/providers/brand.service.spec.ts +2 -23
- package/src/app/providers/brand.service.ts +1 -1
- package/src/app/providers/global-settings.service.spec.ts +14 -1009
- package/src/app/providers/global-settings.service.ts +2 -82
- package/src/app/providers/translator.service.ts +6 -26
- package/src/app/sass/_variables.scss +0 -3
- package/src/app/sass/animations.scss +1 -19
- package/src/app/utils/globals.ts +1 -21
- package/src/app/utils/utils-resources.ts +1 -1
- package/src/assets/i18n/en.json +99 -106
- package/src/assets/i18n/es.json +100 -107
- package/src/assets/i18n/fr.json +100 -107
- package/src/assets/i18n/it.json +98 -107
- package/src/assets/twp/index-dev.html +0 -18
- package/src/chat21-core/models/message.ts +1 -2
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +2 -3
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +0 -12
- package/src/chat21-core/providers/scripts/script.service.spec.ts +2 -12
- package/src/chat21-core/providers/tiledesk/tiledesk-requests.service.ts +1 -1
- package/src/chat21-core/utils/utils-message.ts +0 -7
- package/src/chat21-core/utils/utils.ts +2 -5
- package/src/widget-config-template.json +1 -4
- package/src/widget-config.json +1 -4
- package/tsconfig.json +0 -5
- package/.angular-mcp-cache/package.json +0 -1
- package/.cursor/angular18-accessibility-auditor-skill.md +0 -442
- package/.cursor/mcp.json +0 -15
- package/.github/workflows/build.yml +0 -22
- package/.github/workflows/playwright.yml +0 -27
- package/mocks/voice-websocket-mock/server.cjs +0 -245
- package/playwright.config.ts +0 -41
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.html +0 -46
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.scss +0 -83
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.ts +0 -192
- package/src/app/component/form/prechat-form-test-mock.ts +0 -35
- package/src/app/component/message/audio-sync/audio-sync.component.html +0 -18
- package/src/app/component/message/audio-sync/audio-sync.component.scss +0 -65
- package/src/app/component/message/audio-sync/audio-sync.component.spec.ts +0 -103
- package/src/app/component/message/audio-sync/audio-sync.component.ts +0 -643
- package/src/app/providers/tts-audio-playback-coordinator.service.spec.ts +0 -117
- package/src/app/providers/tts-audio-playback-coordinator.service.ts +0 -109
- package/src/app/providers/voice/STT&TTS/openai-voice.config.ts +0 -12
- package/src/app/providers/voice/STT&TTS/openai-voice.provider.ts +0 -171
- package/src/app/providers/voice/STT&TTS/speech-provider.abstract.ts +0 -39
- package/src/app/providers/voice/audio.types.ts +0 -40
- package/src/app/providers/voice/vad.service.spec.ts +0 -28
- package/src/app/providers/voice/vad.service.ts +0 -70
- package/src/app/providers/voice/voice-streaming.service.spec.ts +0 -23
- package/src/app/providers/voice/voice-streaming.service.ts +0 -702
- package/src/app/providers/voice/voice-streaming.types.ts +0 -112
- package/src/app/providers/voice/voice.service.spec.ts +0 -227
- package/src/app/providers/voice/voice.service.ts +0 -973
- package/src/app/shims/onnxruntime-web-wasm.ts +0 -4
- package/src/assets/onnx/ort-wasm-simd-threaded.mjs +0 -59
- package/src/assets/onnx/ort-wasm-simd-threaded.wasm +0 -0
- package/src/assets/sounds/keyboard.mp3 +0 -0
- package/src/assets/twp/tiledesk_widget_files/widget-css-override-example.css +0 -14
- package/src/assets/vad/silero_vad_legacy.onnx +0 -0
- package/src/assets/vad/vad.worklet.bundle.min.js +0 -1
- package/src/chat21-core/providers/chat-manager.spec.ts +0 -72
- package/tests/widget-form-rich.spec.ts +0 -67
- package/tests/widget-index-dev-settings.spec.ts +0 -52
- package/tests/widget-twp-iframe.spec.ts +0 -39
package/src/assets/i18n/it.json
CHANGED
|
@@ -1,108 +1,99 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"Giovedì",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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>
|
|
@@ -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.
|
|
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
|
}
|
package/src/widget-config.json
CHANGED
|
@@ -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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"private":true,"name":"angular-mcp-cache"}
|