@chat21/chat21-web-widget 5.1.33-rc11 → 5.1.33-rc9
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/CHANGELOG.md +0 -7
- package/package.json +1 -1
- package/playwright-report/index.html +90 -0
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +1 -3
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +7 -0
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +5 -7
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +3 -4
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +18 -9
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +0 -6
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.html +5 -8
- package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.scss +1 -5
- package/src/app/component/form/inputs/form-text/form-text.component.ts +3 -9
- package/src/app/component/message/bubble-message/bubble-message.component.scss +0 -5
- package/src/app/component/message/bubble-message/bubble-message.component.ts +0 -14
- package/src/app/component/message/json-sources/json-sources.component.scss +8 -12
- package/src/app/pipe/marked.pipe.ts +41 -51
- package/src/app/providers/global-settings.service.ts +0 -29
- package/src/app/providers/json-sources-parser.service.ts +32 -25
- package/src/app/providers/voice/voice-streaming.service.ts +19 -11
- package/src/app/providers/voice/voice-streaming.types.ts +1 -0
- package/src/app/providers/voice/voice.service.spec.ts +45 -12
- package/src/app/providers/voice/voice.service.ts +45 -215
- package/src/app/utils/globals.ts +0 -10
- package/src/assets/i18n/en.json +125 -106
- package/src/assets/i18n/es.json +0 -1
- package/src/assets/i18n/fr.json +0 -1
- package/src/assets/i18n/it.json +0 -1
- package/test-results/.last-run.json +4 -0
- package/src/assets/sounds/keyboard.mp3 +0 -0
package/src/app/utils/globals.ts
CHANGED
|
@@ -36,14 +36,6 @@ export class Globals {
|
|
|
36
36
|
isMobile: boolean;
|
|
37
37
|
isLogged: boolean;
|
|
38
38
|
soundEnabled: boolean;
|
|
39
|
-
/** Volume for the keyboard typing-indicator sound during voice sessions. Range 0.0–1.0. */
|
|
40
|
-
keyboardSoundVolume: number;
|
|
41
|
-
/**
|
|
42
|
-
* Filename (local) or absolute URL (remote) for the keyboard typing-indicator sound.
|
|
43
|
-
* Local: bare filename resolved against `baseLocation + '/assets/sounds/'` (e.g. `'keyboard.mp3'`).
|
|
44
|
-
* Remote: full URL starting with `http://` or `https://`.
|
|
45
|
-
*/
|
|
46
|
-
keyboardSoundFile: string;
|
|
47
39
|
BUILD_VERSION: String;
|
|
48
40
|
baseLocation: string;
|
|
49
41
|
availableAgents: Array<UserAgent> = [];
|
|
@@ -480,8 +472,6 @@ export class Globals {
|
|
|
480
472
|
this.BUILD_VERSION = 'v.' + environment.version;
|
|
481
473
|
|
|
482
474
|
this.soundEnabled = true;
|
|
483
|
-
this.keyboardSoundVolume = 0.3;
|
|
484
|
-
this.keyboardSoundFile = 'keyboard.mp3';
|
|
485
475
|
|
|
486
476
|
this.conversationsBadge = 0;
|
|
487
477
|
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -1,108 +1,127 @@
|
|
|
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
|
-
"Thursday",
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
2
|
+
"LABEL_PLACEHOLDER": "Type your message..",
|
|
3
|
+
"LABEL_START_NW_CONV": "New conversation",
|
|
4
|
+
"LABEL_WHATSAPP": "Message us",
|
|
5
|
+
"LABEL_SELECT_TOPIC": "Select a topic",
|
|
6
|
+
"LABEL_COMPLETE_FORM": "Complete the form to start a conversation with the next available agent.",
|
|
7
|
+
"LABEL_FIELD_NAME": "Name",
|
|
8
|
+
"LABEL_ERROR_FIELD_NAME": "Required field (minimum 5 characters).",
|
|
9
|
+
"LABEL_FIELD_EMAIL": "Email",
|
|
10
|
+
"LABEL_ERROR_FIELD_EMAIL": "Enter a valid email address.",
|
|
11
|
+
"LABEL_ERROR_FIELD_REQUIRED":"Required field",
|
|
12
|
+
"LABEL_WRITING": "is writing...",
|
|
13
|
+
"LABEL_SEND_NEW_MESSAGE": "Send a new message",
|
|
14
|
+
"AGENT_NOT_AVAILABLE": " Offline",
|
|
15
|
+
"AGENT_AVAILABLE": " Online",
|
|
16
|
+
"GUEST_LABEL": "Guest",
|
|
17
|
+
"ALL_AGENTS_OFFLINE_LABEL": "All operators are offline at the moment",
|
|
18
|
+
"LABEL_LOADING": "Loading...",
|
|
19
|
+
"LABEL_THINKING": "thinking",
|
|
20
|
+
"CALLOUT_TITLE_PLACEHOLDER": "🖐 Need Help?",
|
|
21
|
+
"CALLOUT_MSG_PLACEHOLDER": "Click here and start chatting with us!",
|
|
22
|
+
"CUSTOMER_SATISFACTION": "Customer satisfaction",
|
|
23
|
+
"YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE": "your opinion on our customer service",
|
|
24
|
+
"DOWNLOAD_TRANSCRIPT": "Download transcript",
|
|
25
|
+
"BACK": "Back",
|
|
26
|
+
"CONTINUE": "Continue",
|
|
27
|
+
"YOUR_RATING": "your rating",
|
|
28
|
+
"WRITE_YOUR_OPINION": "Write your opinion ... (optional)",
|
|
29
|
+
"SUBMIT": "Submit",
|
|
30
|
+
"THANK_YOU_FOR_YOUR_EVALUATION": "Thank you for your evaluation",
|
|
31
|
+
"YOUR_RATING_HAS_BEEN_RECEIVED": "your rating has been received",
|
|
32
|
+
"ALERT_LEAVE_CHAT": "Do you want to leave the chat?",
|
|
33
|
+
"YES": "Yes",
|
|
34
|
+
"NO": "No",
|
|
35
|
+
"BUTTON_CLOSE_TO_ICON": "Minimize chat",
|
|
36
|
+
"BUTTON_EDIT_PROFILE": "Update profile",
|
|
37
|
+
"RATE_CHAT": "Rate chat",
|
|
38
|
+
"WELCOME_TITLE": "Hi, welcome to Tiledesk 👋",
|
|
39
|
+
"WELCOME_MSG": "How can we help?",
|
|
40
|
+
"WELCOME": "Welcome",
|
|
41
|
+
"OPTIONS": "options",
|
|
42
|
+
"SOUND_OFF": "Sound off",
|
|
43
|
+
"SOUND_ON": "Sound on",
|
|
44
|
+
"LOGOUT": "Logout",
|
|
45
|
+
"CLOSE": "Close",
|
|
46
|
+
"RESTART":"Restart",
|
|
47
|
+
"PREV_CONVERSATIONS": "Your conversations",
|
|
48
|
+
"YOU": "You",
|
|
49
|
+
"SHOW_ALL_CONV": "show all",
|
|
50
|
+
"START_A_CONVERSATION": "Start a conversation",
|
|
51
|
+
"NO_CONVERSATION": "No conversation",
|
|
52
|
+
"SEE_PREVIOUS": "see previous",
|
|
53
|
+
"WAITING_TIME_FOUND": "The team typically replies in $reply_time",
|
|
54
|
+
"WAITING_TIME_NOT_FOUND": "The team will reply as soon as possible",
|
|
55
|
+
"CLOSED": "CLOSED",
|
|
56
|
+
"CLOSE_CHAT": "Close chat",
|
|
57
|
+
"MINIMIZE":"Minimize window",
|
|
58
|
+
"MAXIMIZE":"Expand window",
|
|
59
|
+
"CENTER":"Center",
|
|
60
|
+
"CONFIRM_CLOSE_CHAT":"Are you sure you want to close this chat?",
|
|
61
|
+
|
|
62
|
+
"INFO_SUPPORT_USER_ADDED_SUBJECT":"you",
|
|
63
|
+
"INFO_SUPPORT_USER_ADDED_YOU_VERB":"have been added to ",
|
|
64
|
+
"INFO_SUPPORT_USER_ADDED_COMPLEMENT":"joined",
|
|
65
|
+
"INFO_SUPPORT_USER_ADDED_VERB":"the chat",
|
|
66
|
+
"INFO_SUPPORT_CHAT_REOPENED":"Chat reopened",
|
|
67
|
+
"INFO_SUPPORT_CHAT_CLOSED":"Chat closed",
|
|
68
|
+
"INFO_SUPPORT_LEAD_UPDATED":"Lead updated",
|
|
69
|
+
"INFO_SUPPORT_MEMBER_LEFT_GROUP":"removed from group",
|
|
70
|
+
"INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"has left the conversation",
|
|
71
|
+
"INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "A new support request has been assigned to you",
|
|
72
|
+
|
|
73
|
+
"LABEL_PRECHAT_USER_FULLNAME": "Full name",
|
|
74
|
+
"LABEL_PRECHAT_USER_EMAIL": "Email",
|
|
75
|
+
"LABEL_PRECHAT_USER_EMAIL_ERROR": "Invalid email address",
|
|
76
|
+
"LABEL_PRECHAT_USER_PHONE": "Phone",
|
|
77
|
+
"LABEL_PRECHAT_USER_PHONE_ERROR": "Phone is required",
|
|
78
|
+
"LABEL_PRECHAT_FIRST_MESSAGE": "Your message for the support team",
|
|
79
|
+
"LABEL_PRECHAT_STATIC_TERMS_PRIVACY": "Before proceeding in the conversation please agree to our <a href='https://tiledesk.com/termsofservice/' target='_blank'>Terms</a> and <a href='https://tiledesk.com/privacy.html' target='_blank'>Privacy Policy</a>",
|
|
80
|
+
"LABEL_PRECHAT_ACCEPT_TERMS_PRIVACY": "I agree",
|
|
81
|
+
"PRECHAT_REQUIRED_ERROR": "This field is required",
|
|
82
|
+
|
|
83
|
+
"TICKET_TAKING":"The request has been received and the assistance staff is dealing with it.\nTo add more comments, reply to this email.",
|
|
84
|
+
|
|
85
|
+
"LABEL_TODAY": "today",
|
|
86
|
+
"LABEL_TOMORROW": "yesterday",
|
|
87
|
+
"LABEL_LAST_ACCESS": "last access",
|
|
88
|
+
"LABEL_TO": "at",
|
|
89
|
+
"ARRAY_DAYS": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
|
|
90
|
+
|
|
91
|
+
"SENT_AN_ATTACHMENT": "sent an attachment",
|
|
92
|
+
"SENT_AN_IMAGE":"sent an image",
|
|
93
|
+
|
|
94
|
+
"LABEL_PREVIEW": "Preview",
|
|
95
|
+
"SWITCH_TO": "Or switch to:",
|
|
96
|
+
"CONNECTION_NETWORK_ERROR": "Our apologies. There was some trouble connecting to network",
|
|
97
|
+
"EMOJI_NOT_ELLOWED":"Emoji not allowed",
|
|
98
|
+
"DOMAIN_NOT_ALLOWED":"URL contains a non-allowed domain",
|
|
99
|
+
"MAX_ATTACHMENT": "Max allowed size {{FILE_SIZE_LIMIT}}Mb",
|
|
100
|
+
"EMOJI": "Emoji",
|
|
101
|
+
"BUTTON_ATTACH_FILE": "Attach file",
|
|
102
|
+
"BUTTON_SEND_MESSAGE": "Send message",
|
|
103
|
+
"BUTTON_RECORD_AUDIO": "Hold to record an audio message",
|
|
104
|
+
"BUTTON_DELETE_AUDIO": "Delete recording",
|
|
105
|
+
"BUTTON_SEND_AUDIO": "Send audio message",
|
|
106
|
+
"BUTTON_PLAY_AUDIO": "Play audio",
|
|
107
|
+
"BUTTON_PAUSE_AUDIO": "Pause audio",
|
|
108
|
+
"BUTTON_LIKE_MESSAGE": "Like message",
|
|
109
|
+
"BUTTON_UNLIKE_MESSAGE": "Dislike message",
|
|
110
|
+
"BUTTON_OPEN_CHAT": "Open chat",
|
|
111
|
+
"BUTTON_CLOSE_PANEL": "Close panel",
|
|
112
|
+
"CONVERSATION_LOG_LABEL": "Conversation messages",
|
|
113
|
+
"BUTTON_OPEN_DETAIL": "Open conversation detail",
|
|
114
|
+
"BUTTON_ALL_CONVERSATIONS": "All conversations",
|
|
115
|
+
"BUTTON_SCROLL_TO_BOTTOM": "Scroll to last message",
|
|
116
|
+
"BUTTON_CLOSE_PREVIEW": "Close preview",
|
|
117
|
+
"CAROUSEL_PREVIOUS": "Previous slide",
|
|
118
|
+
"CAROUSEL_NEXT": "Next slide",
|
|
119
|
+
"CAROUSEL_LABEL": "Cards carousel",
|
|
120
|
+
"CAROUSEL_SLIDE_LABEL": "Slide {current} of {total}",
|
|
121
|
+
"SKIP_TO_COMPOSER": "Skip to message composer",
|
|
122
|
+
"MAX_ATTACHMENT_ERROR": "The file exceeds the maximum allowed size",
|
|
123
|
+
"STREAM_AUDIO": "Voice input",
|
|
124
|
+
"VOICE_CONNECTING": "Connecting...",
|
|
125
|
+
"VOICE_LISTENING": "Listening...",
|
|
126
|
+
"VOICE_PROCESSING": "Processing..."
|
|
108
127
|
}
|
package/src/assets/i18n/es.json
CHANGED
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
"MAX_ATTACHMENT": "Tamaño máximo permitido {{FILE_SIZE_LIMIT}}Mb",
|
|
102
102
|
"MAX_ATTACHMENT_ERROR": "El archivo supera el tamaño máximo permitido",
|
|
103
103
|
"EMOJI": "Emoji",
|
|
104
|
-
"STREAM_AUDIO": "Usar modo de voz",
|
|
105
104
|
"VOICE_CONNECTING": "Conectando...",
|
|
106
105
|
"VOICE_LISTENING": "Escuchando...",
|
|
107
106
|
"VOICE_PROCESSING": "Procesando..."
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
"MAX_ATTACHMENT": "Taille maximale autorisée {{FILE_SIZE_LIMIT}}Mo",
|
|
102
102
|
"MAX_ATTACHMENT_ERROR": "Le fichier dépasse la taille maximale autorisée",
|
|
103
103
|
"EMOJI": "Emoji",
|
|
104
|
-
"STREAM_AUDIO": "Utiliser le mode vocal",
|
|
105
104
|
"VOICE_CONNECTING": "Connexion...",
|
|
106
105
|
"VOICE_LISTENING": "Écoute...",
|
|
107
106
|
"VOICE_PROCESSING": "Traitement..."
|
package/src/assets/i18n/it.json
CHANGED
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
"MAX_ATTACHMENT": "Dimensione massima consentita {{FILE_SIZE_LIMIT}}Mb",
|
|
102
102
|
"MAX_ATTACHMENT_ERROR": "Il file supera la dimensione massima consentita",
|
|
103
103
|
"EMOJI": "Emoji",
|
|
104
|
-
"STREAM_AUDIO": "Usa la modalità vocale",
|
|
105
104
|
"VOICE_CONNECTING": "Connessione...",
|
|
106
105
|
"VOICE_LISTENING": "In ascolto...",
|
|
107
106
|
"VOICE_PROCESSING": "Elaborazione..."
|
|
Binary file
|