@chat21/chat21-web-widget 5.1.32-rc9 → 5.1.33-rc8

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 (246) hide show
  1. package/.angular-mcp-cache/package.json +1 -0
  2. package/.cursor/angular18-accessibility-auditor-skill.md +442 -0
  3. package/.cursor/mcp.json +15 -0
  4. package/.github/workflows/playwright.yml +27 -0
  5. package/.playwright-mcp/console-2026-05-08T15-31-09-000Z.log +17 -0
  6. package/.playwright-mcp/console-2026-05-08T15-32-19-412Z.log +89 -0
  7. package/.playwright-mcp/console-2026-05-08T16-18-48-424Z.log +133 -0
  8. package/.playwright-mcp/console-2026-05-11T12-54-06-869Z.log +13 -0
  9. package/.playwright-mcp/console-2026-05-11T12-54-56-229Z.log +147 -0
  10. package/.playwright-mcp/console-2026-05-11T12-55-47-174Z.log +183 -0
  11. package/.playwright-mcp/console-2026-05-11T15-34-03-590Z.log +210 -0
  12. package/.playwright-mcp/console-2026-05-12T15-07-31-880Z.log +118 -0
  13. package/.playwright-mcp/page-2026-05-08T15-32-19-900Z.yml +851 -0
  14. package/.playwright-mcp/page-2026-05-08T15-32-47-264Z.yml +857 -0
  15. package/.playwright-mcp/page-2026-05-08T15-33-17-089Z.yml +1110 -0
  16. package/.playwright-mcp/page-2026-05-08T15-33-23-486Z.yml +1069 -0
  17. package/.playwright-mcp/page-2026-05-08T15-33-45-390Z.yml +1076 -0
  18. package/.playwright-mcp/page-2026-05-08T15-33-52-666Z.yml +1072 -0
  19. package/.playwright-mcp/page-2026-05-08T15-34-01-338Z.yml +1085 -0
  20. package/.playwright-mcp/page-2026-05-08T15-34-07-227Z.yml +1072 -0
  21. package/.playwright-mcp/page-2026-05-08T15-34-13-875Z.yml +1072 -0
  22. package/.playwright-mcp/page-2026-05-08T15-34-21-885Z.yml +1109 -0
  23. package/.playwright-mcp/page-2026-05-08T15-34-32-755Z.yml +1109 -0
  24. package/.playwright-mcp/page-2026-05-08T15-35-09-607Z.yml +1119 -0
  25. package/.playwright-mcp/page-2026-05-08T15-35-14-242Z.yml +1109 -0
  26. package/.playwright-mcp/page-2026-05-08T16-18-48-671Z.yml +44 -0
  27. package/.playwright-mcp/page-2026-05-08T16-18-52-753Z.png +0 -0
  28. package/.playwright-mcp/page-2026-05-08T16-19-13-919Z.yml +68 -0
  29. package/.playwright-mcp/page-2026-05-08T16-19-17-977Z.png +0 -0
  30. package/.playwright-mcp/page-2026-05-08T16-19-25-733Z.yml +120 -0
  31. package/.playwright-mcp/page-2026-05-08T16-19-29-252Z.png +0 -0
  32. package/.playwright-mcp/page-2026-05-08T16-19-39-269Z.yml +80 -0
  33. package/.playwright-mcp/page-2026-05-08T16-19-43-915Z.png +0 -0
  34. package/.playwright-mcp/page-2026-05-08T16-20-04-407Z.yml +81 -0
  35. package/.playwright-mcp/page-2026-05-08T16-20-08-984Z.png +0 -0
  36. package/.playwright-mcp/page-2026-05-08T16-20-32-397Z.png +0 -0
  37. package/.playwright-mcp/page-2026-05-08T16-20-58-658Z.png +0 -0
  38. package/.playwright-mcp/page-2026-05-08T16-21-12-320Z.yml +86 -0
  39. package/.playwright-mcp/page-2026-05-08T16-21-39-154Z.yml +91 -0
  40. package/.playwright-mcp/page-2026-05-08T16-21-45-420Z.png +0 -0
  41. package/.playwright-mcp/page-2026-05-08T16-22-21-062Z.yml +0 -0
  42. package/.playwright-mcp/page-2026-05-08T16-22-58-232Z.yml +91 -0
  43. package/.playwright-mcp/page-2026-05-08T16-23-36-520Z.yml +0 -0
  44. package/.playwright-mcp/page-2026-05-08T16-23-46-805Z.yml +100 -0
  45. package/.playwright-mcp/page-2026-05-08T16-23-55-169Z.png +0 -0
  46. package/.playwright-mcp/page-2026-05-08T16-24-26-574Z.yml +91 -0
  47. package/.playwright-mcp/page-2026-05-08T16-25-34-414Z.png +0 -0
  48. package/.playwright-mcp/page-2026-05-08T16-25-59-831Z.png +0 -0
  49. package/.playwright-mcp/page-2026-05-08T16-26-21-809Z.yml +91 -0
  50. package/.playwright-mcp/page-2026-05-08T16-26-47-443Z.yml +105 -0
  51. package/.playwright-mcp/page-2026-05-08T16-26-56-136Z.png +0 -0
  52. package/.playwright-mcp/page-2026-05-08T16-27-59-610Z.yml +48 -0
  53. package/.playwright-mcp/page-2026-05-11T12-54-07-180Z.yml +44 -0
  54. package/.playwright-mcp/page-2026-05-11T12-54-56-946Z.yml +4 -0
  55. package/.playwright-mcp/page-2026-05-11T12-55-47-503Z.yml +24 -0
  56. package/.playwright-mcp/page-2026-05-11T12-56-00-766Z.yml +28 -0
  57. package/.playwright-mcp/page-2026-05-11T12-56-06-438Z.yml +90 -0
  58. package/.playwright-mcp/page-2026-05-11T12-57-56-838Z.yml +106 -0
  59. package/.playwright-mcp/page-2026-05-11T12-58-00-124Z.yml +106 -0
  60. package/.playwright-mcp/page-2026-05-11T12-59-08-836Z.yml +61 -0
  61. package/.playwright-mcp/page-2026-05-11T12-59-12-088Z.yml +61 -0
  62. package/.playwright-mcp/page-2026-05-11T12-59-26-215Z.yml +69 -0
  63. package/.playwright-mcp/page-2026-05-11T12-59-29-519Z.yml +69 -0
  64. package/.playwright-mcp/page-2026-05-11T12-59-37-309Z.yml +0 -0
  65. package/.playwright-mcp/page-2026-05-11T12-59-39-968Z.yml +79 -0
  66. package/.playwright-mcp/page-2026-05-11T12-59-45-983Z.yml +78 -0
  67. package/.playwright-mcp/page-2026-05-11T12-59-49-951Z.yml +78 -0
  68. package/.playwright-mcp/page-2026-05-11T15-34-04-515Z.yml +0 -0
  69. package/.playwright-mcp/page-2026-05-12T15-07-32-171Z.yml +44 -0
  70. package/.playwright-mcp/page-2026-05-12T15-08-09-820Z.yml +119 -0
  71. package/CHANGELOG.md +54 -4
  72. package/angular.json +20 -3
  73. package/deploy_amazon_beta.sh +7 -17
  74. package/deploy_amazon_prod.sh +41 -0
  75. package/docs/TILEDESK_WIDGET_ACCESSIBILITY_STATEMENT_COMPLETE.md +379 -0
  76. package/env.sample +3 -2
  77. package/mocks/voice-websocket-mock/server.cjs +245 -0
  78. package/package.json +7 -3
  79. package/playwright-report/index.html +90 -0
  80. package/playwright.config.ts +41 -0
  81. package/src/app/app.component.html +2 -2
  82. package/src/app/app.component.scss +25 -14
  83. package/src/app/app.component.spec.ts +21 -6
  84. package/src/app/app.module.ts +4 -0
  85. package/src/app/component/conversation-detail/conversation/conversation.component.html +19 -11
  86. package/src/app/component/conversation-detail/conversation/conversation.component.scss +28 -0
  87. package/src/app/component/conversation-detail/conversation/conversation.component.spec.ts +644 -75
  88. package/src/app/component/conversation-detail/conversation/conversation.component.ts +61 -17
  89. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +25 -13
  90. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.spec.ts +123 -5
  91. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.ts +1 -0
  92. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +17 -7
  93. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +15 -3
  94. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +249 -149
  95. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +0 -1
  96. package/src/app/component/conversation-detail/conversation-emojii/conversation-emojii.component.spec.ts +53 -3
  97. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component copy.html +172 -0
  98. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +112 -62
  99. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +133 -7
  100. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.spec.ts +452 -78
  101. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +192 -84
  102. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +113 -53
  103. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +12 -4
  104. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.spec.ts +274 -29
  105. package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.html +23 -9
  106. package/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.spec.ts +80 -8
  107. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.html +29 -23
  108. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.spec.ts +185 -16
  109. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts +34 -14
  110. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.html +43 -18
  111. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.scss +56 -2
  112. package/src/app/component/conversation-detail/stream-audio-spectrum/stream-audio-spectrum.component.ts +135 -5
  113. package/src/app/component/error-alert/error-alert.component.spec.ts +65 -5
  114. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.html +16 -7
  115. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.scss +21 -0
  116. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.spec.ts +89 -7
  117. package/src/app/component/form/form-builder/form-builder.component.html +1 -1
  118. package/src/app/component/form/form-builder/form-builder.component.spec.ts +163 -21
  119. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.html +8 -4
  120. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.scss +10 -5
  121. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.spec.ts +90 -16
  122. package/src/app/component/form/inputs/form-checkbox/form-checkbox.component.ts +26 -0
  123. package/src/app/component/form/inputs/form-label/form-label.component.spec.ts +45 -11
  124. package/src/app/component/form/inputs/form-radio-button/form-radio-button.component.spec.ts +24 -6
  125. package/src/app/component/form/inputs/form-select/form-select.component.spec.ts +14 -5
  126. package/src/app/component/form/inputs/form-text/form-text.component.html +14 -12
  127. package/src/app/component/form/inputs/form-text/form-text.component.scss +11 -1
  128. package/src/app/component/form/inputs/form-text/form-text.component.spec.ts +113 -17
  129. package/src/app/component/form/inputs/form-text/form-text.component.ts +26 -0
  130. package/src/app/component/form/inputs/form-textarea/form-textarea.component.html +13 -11
  131. package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +6 -5
  132. package/src/app/component/form/inputs/form-textarea/form-textarea.component.spec.ts +149 -13
  133. package/src/app/component/form/inputs/form-textarea/form-textarea.component.ts +26 -0
  134. package/src/app/component/form/prechat-form/prechat-form.component.html +14 -11
  135. package/src/app/component/form/prechat-form/prechat-form.component.spec.ts +102 -10
  136. package/src/app/component/form/prechat-form/prechat-form.component.ts +8 -1
  137. package/src/app/component/form/prechat-form-test-mock.ts +35 -0
  138. package/src/app/component/home/home.component.html +38 -31
  139. package/src/app/component/home/home.component.scss +4 -2
  140. package/src/app/component/home/home.component.spec.ts +226 -11
  141. package/src/app/component/home-conversations/home-conversations.component.html +30 -26
  142. package/src/app/component/home-conversations/home-conversations.component.scss +3 -0
  143. package/src/app/component/home-conversations/home-conversations.component.spec.ts +212 -36
  144. package/src/app/component/last-message/last-message.component.html +15 -9
  145. package/src/app/component/last-message/last-message.component.scss +16 -2
  146. package/src/app/component/last-message/last-message.component.spec.ts +204 -23
  147. package/src/app/component/launcher-button/launcher-button.component.html +8 -13
  148. package/src/app/component/launcher-button/launcher-button.component.spec.ts +104 -8
  149. package/src/app/component/list-all-conversations/list-all-conversations.component.html +12 -17
  150. package/src/app/component/list-all-conversations/list-all-conversations.component.scss +2 -0
  151. package/src/app/component/list-conversations/list-conversations.component.html +22 -22
  152. package/src/app/component/menu-options/menu-options.component.html +30 -20
  153. package/src/app/component/menu-options/menu-options.component.spec.ts +125 -9
  154. package/src/app/component/message/audio/audio.component.html +13 -15
  155. package/src/app/component/message/audio/audio.component.spec.ts +140 -5
  156. package/src/app/component/message/audio/audio.component.ts +1 -0
  157. package/src/app/component/message/audio-sync/audio-sync.component.scss +1 -0
  158. package/src/app/component/message/audio-sync/audio-sync.component.spec.ts +81 -1
  159. package/src/app/component/message/audio-sync/audio-sync.component.ts +133 -86
  160. package/src/app/component/message/avatar/avatar.component.html +2 -2
  161. package/src/app/component/message/avatar/avatar.component.spec.ts +99 -7
  162. package/src/app/component/message/bubble-message/bubble-message.component.html +39 -52
  163. package/src/app/component/message/bubble-message/bubble-message.component.scss +54 -1
  164. package/src/app/component/message/bubble-message/bubble-message.component.spec.ts +154 -57
  165. package/src/app/component/message/bubble-message/bubble-message.component.ts +138 -110
  166. package/src/app/component/message/buttons/action-button/action-button.component.html +3 -4
  167. package/src/app/component/message/buttons/action-button/action-button.component.spec.ts +49 -5
  168. package/src/app/component/message/buttons/link-button/link-button.component.scss +5 -8
  169. package/src/app/component/message/buttons/link-button/link-button.component.spec.ts +50 -5
  170. package/src/app/component/message/buttons/text-button/text-button.component.spec.ts +44 -5
  171. package/src/app/component/message/carousel/carousel.component.html +29 -16
  172. package/src/app/component/message/carousel/carousel.component.scss +20 -8
  173. package/src/app/component/message/carousel/carousel.component.spec.ts +80 -3
  174. package/src/app/component/message/carousel/carousel.component.ts +16 -0
  175. package/src/app/component/message/frame/frame.component.html +9 -4
  176. package/src/app/component/message/frame/frame.component.spec.ts +34 -15
  177. package/src/app/component/message/frame/frame.component.ts +7 -2
  178. package/src/app/component/message/html/html.component.html +1 -1
  179. package/src/app/component/message/html/html.component.scss +1 -1
  180. package/src/app/component/message/html/html.component.spec.ts +24 -7
  181. package/src/app/component/message/image/image.component.html +12 -10
  182. package/src/app/component/message/image/image.component.scss +16 -0
  183. package/src/app/component/message/image/image.component.spec.ts +101 -15
  184. package/src/app/component/message/image/image.component.ts +90 -51
  185. package/src/app/component/message/info-message/info-message.component.spec.ts +26 -14
  186. package/src/app/component/message/json-sources/json-sources.component.html +38 -0
  187. package/src/app/component/message/json-sources/json-sources.component.scss +197 -0
  188. package/src/app/component/message/json-sources/json-sources.component.ts +89 -0
  189. package/src/app/component/message/like-unlike/like-unlike.component.html +7 -9
  190. package/src/app/component/message/like-unlike/like-unlike.component.spec.ts +31 -3
  191. package/src/app/component/message/return-receipt/return-receipt.component.spec.ts +38 -17
  192. package/src/app/component/message/text/text.component.html +3 -3
  193. package/src/app/component/message/text/text.component.scss +80 -86
  194. package/src/app/component/message/text/text.component.spec.ts +106 -13
  195. package/src/app/component/message-attachment/message-attachment.component.spec.ts +134 -13
  196. package/src/app/component/selection-department/selection-department.component.html +21 -23
  197. package/src/app/component/selection-department/selection-department.component.spec.ts +159 -14
  198. package/src/app/component/selection-department/selection-department.component.ts +8 -1
  199. package/src/app/component/send-button/send-button.component.html +5 -13
  200. package/src/app/component/send-button/send-button.component.spec.ts +2 -2
  201. package/src/app/component/star-rating-widget/star-rating-widget.component.html +51 -81
  202. package/src/app/directives/tooltip.directive.spec.ts +8 -4
  203. package/src/app/modals/confirm-close/confirm-close.component.html +20 -8
  204. package/src/app/modals/confirm-close/confirm-close.component.scss +3 -0
  205. package/src/app/modals/confirm-close/confirm-close.component.spec.ts +13 -4
  206. package/src/app/modals/confirm-close/confirm-close.component.ts +8 -1
  207. package/src/app/pipe/html-entites-encode.pipe.spec.ts +35 -2
  208. package/src/app/pipe/marked.pipe.spec.ts +38 -2
  209. package/src/app/providers/app-config.service.ts +4 -2
  210. package/src/app/providers/brand.service.spec.ts +23 -2
  211. package/src/app/providers/brand.service.ts +1 -1
  212. package/src/app/providers/global-settings.service.spec.ts +1009 -14
  213. package/src/app/providers/global-settings.service.ts +30 -2
  214. package/src/app/providers/json-sources-parser.service.ts +182 -0
  215. package/src/app/providers/translator.service.ts +24 -6
  216. package/src/app/providers/tts-audio-playback-coordinator.service.spec.ts +117 -0
  217. package/src/app/providers/tts-audio-playback-coordinator.service.ts +39 -16
  218. package/src/app/providers/url-preview.service.ts +82 -0
  219. package/src/app/providers/voice/audio.types.ts +6 -0
  220. package/src/app/providers/voice/voice-streaming.service.spec.ts +23 -0
  221. package/src/app/providers/voice/voice-streaming.service.ts +710 -0
  222. package/src/app/providers/voice/voice-streaming.types.ts +113 -0
  223. package/src/app/providers/voice/voice.service.spec.ts +203 -3
  224. package/src/app/providers/voice/voice.service.ts +517 -13
  225. package/src/app/sass/_variables.scss +1 -1
  226. package/src/app/sass/animations.scss +19 -1
  227. package/src/app/utils/globals.ts +4 -0
  228. package/src/app/utils/json-sources-utils.ts +27 -0
  229. package/src/app/utils/url-utils.ts +98 -0
  230. package/src/app/utils/utils-resources.ts +1 -1
  231. package/src/assets/i18n/en.json +26 -1
  232. package/src/assets/i18n/es.json +106 -101
  233. package/src/assets/i18n/fr.json +106 -101
  234. package/src/assets/i18n/it.json +106 -99
  235. package/src/assets/twp/index-dev.html +18 -0
  236. package/src/assets/twp/tiledesk_widget_files/widget-css-override-example.css +14 -0
  237. package/src/chat21-core/providers/chat-manager.spec.ts +72 -0
  238. package/src/chat21-core/providers/scripts/script.service.spec.ts +12 -2
  239. package/src/chat21-core/utils/constants.ts +4 -0
  240. package/src/chat21-core/utils/utils-message.ts +23 -1
  241. package/src/widget-config-template.json +3 -1
  242. package/src/widget-config.json +28 -27
  243. package/test-results/.last-run.json +4 -0
  244. package/tests/widget-form-rich.spec.ts +67 -0
  245. package/tests/widget-index-dev-settings.spec.ts +52 -0
  246. package/tests/widget-twp-iframe.spec.ts +39 -0
@@ -10,14 +10,17 @@
10
10
  <span>View more</span>
11
11
  </div> -->
12
12
 
13
- <div aria-label="Dismiss" role="button" tabindex="0" class="buttonClose" (click)="closeMessagePreview()">
13
+ <button type="button"
14
+ aria-label="Dismiss"
15
+ class="buttonClose c21-button-clean"
16
+ (click)="closeMessagePreview()">
14
17
  <span>
15
- <svg aria-labelledby="altIconTitle" height="20px" role="img" viewBox="0 0 24 24" width="20px" xmlns="http://www.w3.org/2000/svg" style="fill: rgb(255, 255, 255);">
18
+ <svg aria-hidden="true" focusable="false" height="20px" viewBox="0 0 24 24" width="20px" xmlns="http://www.w3.org/2000/svg" style="fill: rgb(255, 255, 255);">
16
19
  <path d="M0 0h24v24H0V0z" fill="none"></path>
17
20
  <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path>
18
21
  </svg>
19
22
  </span>
20
- </div>
23
+ </button>
21
24
 
22
25
  </div>
23
26
 
@@ -26,8 +29,11 @@
26
29
 
27
30
  <div class="container">
28
31
 
29
- <div class="previewNewMessagge" (click)="openConversationByID(conversation)"
30
- [class.left-indicator]="isFirst && (!isImage(message) || isFrame(message))"
32
+ <button type="button"
33
+ class="previewNewMessagge c21-button-clean"
34
+ [attr.aria-label]="g.START_A_CONVERSATION"
35
+ (click)="openConversationByID(conversation)"
36
+ [class.left-indicator]="isFirst && (!isImage(message) || isFrame(message))"
31
37
  [class.no-background]="(isImage(message) || isFrame(message)) && message?.text?.trim() === ''">
32
38
 
33
39
  <chat-bubble-message class="messages no-background"
@@ -49,9 +55,9 @@
49
55
  </chat-avatar-image>
50
56
  </div>
51
57
  </div>
52
-
53
- </div>
54
-
58
+
59
+ </button>
60
+
55
61
  <div *ngIf="message?.attributes && message?.attributes?.attachment && last" class="conversations-buttons">
56
62
  <chat-message-attachment
57
63
  style="height: 100%; display: block;"
@@ -64,6 +70,6 @@
64
70
  </div>
65
71
 
66
72
  </div>
67
-
73
+
68
74
  </div>
69
75
  </div>
@@ -7,8 +7,9 @@
7
7
  min-height: 38px;
8
8
  }
9
9
  }
10
- :host .previewNewMessagge ::ng-deep > chat-bubble-message > #bubble-message > div > div > chat-text {
11
- p {
10
+ :host .previewNewMessagge ::ng-deep > chat-bubble-message > .bubble-message > div > div > chat-text {
11
+ p,
12
+ .message_innerhtml {
12
13
  overflow: hidden;
13
14
  text-overflow: ellipsis;
14
15
  display: -webkit-box;
@@ -111,6 +112,19 @@
111
112
  padding: 0px 5px;
112
113
  }
113
114
 
115
+ button.previewNewMessagge {
116
+ display: block;
117
+ align-self: stretch;
118
+ max-width: 100%;
119
+ text-align: left;
120
+ font: inherit;
121
+ -webkit-appearance: none;
122
+ appearance: none;
123
+ border: none;
124
+ cursor: pointer;
125
+ color: inherit;
126
+ }
127
+
114
128
  .previewNewMessagge.no-background{
115
129
  background-color: transparent;
116
130
  box-shadow: unset;
@@ -1,41 +1,222 @@
1
- import { MarkedPipe } from './../../pipe/marked.pipe';
2
- import { NO_ERRORS_SCHEMA } from '@angular/core';
3
- import { async, ComponentFixture, TestBed } from '@angular/core/testing';
4
- import { ImageRepoService } from '../../../chat21-core/providers/abstract/image-repo.service';
1
+ import { Injectable, NO_ERRORS_SCHEMA, SimpleChange } from '@angular/core';
2
+ import { ComponentFixture, fakeAsync, flush, TestBed, tick, waitForAsync } from '@angular/core/testing';
3
+ import { By } from '@angular/platform-browser';
4
+ import { NGXLogger } from 'ngx-logger';
5
+ import { ConversationModel } from 'src/chat21-core/models/conversation';
6
+ import { ImageRepoService } from 'src/chat21-core/providers/abstract/image-repo.service';
7
+ import { CustomLogger } from 'src/chat21-core/providers/logger/customLogger';
8
+ import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance';
9
+ import { EventsService } from '../../providers/events.service';
10
+ import { HtmlEntitiesEncodePipe } from '../../pipe/html-entities-encode.pipe';
11
+ import { MarkedPipe } from '../../pipe/marked.pipe';
5
12
  import { Globals } from '../../utils/globals';
6
-
13
+ import { MIN_WIDTH_IMAGES } from '../../utils/constants';
7
14
  import { LastMessageComponent } from './last-message.component';
8
- import { HtmlEntitiesEncodePipe } from '../../pipe/html-entities-encode.pipe';
15
+
16
+ @Injectable()
17
+ class ImageRepoStub extends ImageRepoService {
18
+ getImagePhotoUrl(): string {
19
+ return '';
20
+ }
21
+ checkImageExists(_uid: string, callback: (exist: boolean) => void): void {
22
+ callback(false);
23
+ }
24
+ }
9
25
 
10
26
  describe('LastMessageComponent', () => {
11
- let component: LastMessageComponent;
12
27
  let fixture: ComponentFixture<LastMessageComponent>;
28
+ let component: LastMessageComponent;
29
+ let globals: Globals;
30
+ let events: EventsService;
31
+ const ngxlogger = jasmine.createSpyObj('NGXLogger', ['log', 'trace', 'debug', 'warn', 'error', 'info']);
32
+
33
+ function makeConversation(overrides: Partial<ConversationModel> = {}): ConversationModel {
34
+ return {
35
+ uid: 'conv-1',
36
+ attributes: {},
37
+ channel_type: 'direct',
38
+ conversation_with_fullname: 'Agent',
39
+ conversation_with: 'agent-1',
40
+ recipient: 'user-1',
41
+ recipient_fullname: 'User',
42
+ image: '',
43
+ is_new: true,
44
+ last_message_text: 'Messaggio mock in anteprima',
45
+ text: '',
46
+ sender: 'agent-1',
47
+ senderAuthInfo: null,
48
+ sender_fullname: 'Agent Name',
49
+ status: '200',
50
+ timestamp: '1',
51
+ selected: false,
52
+ color: '',
53
+ avatar: '',
54
+ archived: false,
55
+ type: 'text',
56
+ sound: true,
57
+ ...overrides,
58
+ } as ConversationModel;
59
+ }
13
60
 
14
- beforeEach(async(() => {
61
+ beforeEach(waitForAsync(() => {
62
+ LoggerInstance.setInstance(new CustomLogger(ngxlogger));
15
63
  TestBed.configureTestingModule({
16
- declarations: [
17
- LastMessageComponent,
18
- MarkedPipe,
19
- HtmlEntitiesEncodePipe
20
- ],
21
- imports: [
22
- ],
23
- providers: [
24
- Globals,
25
- ImageRepoService,
26
- ],
27
- schemas: [NO_ERRORS_SCHEMA]
28
- })
29
- .compileComponents();
64
+ declarations: [LastMessageComponent, MarkedPipe, HtmlEntitiesEncodePipe],
65
+ providers: [Globals, EventsService, { provide: ImageRepoService, useClass: ImageRepoStub }],
66
+ schemas: [NO_ERRORS_SCHEMA],
67
+ }).compileComponents();
30
68
  }));
31
69
 
32
70
  beforeEach(() => {
33
71
  fixture = TestBed.createComponent(LastMessageComponent);
34
72
  component = fixture.componentInstance;
35
- fixture.detectChanges();
73
+ globals = TestBed.inject(Globals);
74
+ events = TestBed.inject(EventsService);
75
+ globals.initDefafultParameters();
76
+ globals.senderId = 'user-1';
77
+ globals.isOpen = false;
78
+ globals.isOpenNewMessage = true;
79
+ spyOn(globals, 'setWidgetPreviewContainerSize').and.stub();
80
+ component.baseLocation = 'https://widget.test/';
81
+ component.stylesMap = new Map([['bubbleReceivedTextColor', '#111']]);
36
82
  });
37
83
 
38
84
  it('should create', () => {
39
85
  expect(component).toBeTruthy();
40
86
  });
87
+
88
+ it('con widget chiuso (isOpen=false) e anteprima attiva: mostra il bubble con il testo del messaggio mockato', fakeAsync(() => {
89
+ const conv = makeConversation();
90
+ component.conversation = conv;
91
+ component.ngOnChanges({
92
+ conversation: new SimpleChange(undefined, conv, true),
93
+ });
94
+ fixture.detectChanges();
95
+
96
+ const preview = fixture.debugElement.query(By.css('#messagePreview'));
97
+ expect(preview).toBeTruthy();
98
+ expect(component.messages.length).toBe(1);
99
+ expect(component.messages[0].text).toContain('Messaggio mock in anteprima');
100
+ expect(globals.isOpen).toBe(false);
101
+ flush();
102
+ }));
103
+
104
+ it('closeMessagePreview azzera conversazione, isOpenNewMessage e emette onCloseMessagePreview', () => {
105
+ const conv = makeConversation();
106
+ component.conversation = conv;
107
+ component.ngOnChanges({ conversation: new SimpleChange(undefined, conv, true) });
108
+ fixture.detectChanges();
109
+
110
+ spyOn(component.onCloseMessagePreview, 'emit');
111
+ component.closeMessagePreview();
112
+ expect(component.conversation).toBeNull();
113
+ expect(globals.isOpenNewMessage).toBe(false);
114
+ expect(component.onCloseMessagePreview.emit).toHaveBeenCalled();
115
+ });
116
+
117
+ it('openConversationByID emette onSelectedConversation e azzera isOpenNewMessage', () => {
118
+ const conv = makeConversation();
119
+ spyOn(component.onSelectedConversation, 'emit');
120
+ component.openConversationByID(conv);
121
+ expect(component.onSelectedConversation.emit).toHaveBeenCalledWith(conv as any);
122
+ expect(globals.isOpenNewMessage).toBe(false);
123
+ expect(component.conversation).toBeNull();
124
+ });
125
+
126
+ it('onAttachmentButtonClicked apre la conversazione e pubblica lastMessage:attachmentButtonClicked', fakeAsync(() => {
127
+ spyOn(events, 'publish');
128
+ const conv = makeConversation({
129
+ attributes: { attachment: { a: 1 } },
130
+ last_message_text: 'file',
131
+ });
132
+ component.conversation = conv;
133
+ component.ngOnChanges({ conversation: new SimpleChange(undefined, conv, true) });
134
+ fixture.detectChanges();
135
+
136
+ const payload = { kind: 'test' };
137
+ component.onAttachmentButtonClicked(payload);
138
+ tick(600);
139
+ expect(events.publish).toHaveBeenCalledWith('lastMessage:attachmentButtonClicked', payload);
140
+ }));
141
+
142
+ it('conversation con attributes.commands usa addCommandMessage', fakeAsync(() => {
143
+ const conv = makeConversation({
144
+ attributes: {
145
+ commands: [
146
+ {
147
+ type: 'message',
148
+ message: { text: ' cmd-a ', type: 'text', metadata: {} },
149
+ },
150
+ { type: 'wait', time: 5 },
151
+ {
152
+ type: 'message',
153
+ message: { text: ' cmd-b ', type: 'text', metadata: {} },
154
+ },
155
+ ],
156
+ },
157
+ last_message_text: 'ignored',
158
+ });
159
+ component.conversation = conv;
160
+ component.ngOnChanges({ conversation: new SimpleChange(undefined, conv, true) });
161
+ tick(0);
162
+ expect(component.messages.length).toBe(1);
163
+ tick(5);
164
+ expect(component.messages.length).toBe(2);
165
+ expect(component.messages[0].text).toContain('cmd-a');
166
+ expect(component.messages[1].text).toContain('cmd-b');
167
+ }));
168
+
169
+ it('getMetadataSize scala larghezza oltre il massimo', () => {
170
+ const meta = { width: 400, height: 100 };
171
+ const out = component.getMetadataSize(meta);
172
+ expect(out.width).toBe(230);
173
+ expect(out.height).toBeLessThan(100);
174
+ });
175
+
176
+ it('getMetadataSize alza immagini molto strette al minimo', () => {
177
+ const meta = { width: 40, height: 80 };
178
+ const out = component.getMetadataSize(meta);
179
+ expect(out.width).toBe(MIN_WIDTH_IMAGES);
180
+ });
181
+
182
+ it('getMetadataSize scala altezza oltre il massimo verticale', () => {
183
+ const meta = { width: 100, height: 400 };
184
+ const out = component.getMetadataSize(meta);
185
+ expect(out.height).toBe(150);
186
+ });
187
+
188
+ it('isSameSender delega a utils-message', () => {
189
+ component.messages = [{ sender: 'a' } as any, { sender: 'a' } as any];
190
+ expect(component.isSameSender('a', 1)).toBe(true);
191
+ });
192
+
193
+ it('onElementRenderedFN con messaggi renderizzati agenda setWidgetPreviewContainerSize', fakeAsync(() => {
194
+ const conv = makeConversation();
195
+ component.conversation = conv;
196
+ component.ngOnChanges({ conversation: new SimpleChange(undefined, conv, true) });
197
+ fixture.detectChanges();
198
+ component.onElementRenderedFN({});
199
+ tick(100);
200
+ flush();
201
+ expect(globals.setWidgetPreviewContainerSize).toHaveBeenCalled();
202
+ }));
203
+
204
+ it('ngOnDestroy pulisce stato', () => {
205
+ const conv = makeConversation();
206
+ component.conversation = conv;
207
+ component.messages = [{} as any];
208
+ globals.isOpenNewMessage = true;
209
+ component.ngOnDestroy();
210
+ expect(component.conversation).toBeNull();
211
+ expect(globals.isOpenNewMessage).toBe(false);
212
+ expect(component.messages.length).toBe(0);
213
+ });
214
+
215
+ it('unsubscribe svuota subscriptions', () => {
216
+ const sub = jasmine.createSpyObj('Subscription', ['unsubscribe']);
217
+ component.subscriptions = [sub];
218
+ component.unsubscribe();
219
+ expect(sub.unsubscribe).toHaveBeenCalled();
220
+ expect(component.subscriptions.length).toBe(0);
221
+ });
41
222
  });
@@ -1,20 +1,15 @@
1
- <!-- tabindex="000"-->
2
-
3
- <button aflauncherbutton #aflauncherbutton id="c21-launcher-button" class="c21-button-clean scale-in-center"
4
- *ngIf="g.isOpen == false"
1
+ <button aflauncherbutton #aflauncherbutton type="button" id="c21-launcher-button" class="c21-button-clean scale-in-center"
2
+ *ngIf="g.isOpen == false"
5
3
  [ngClass]="{'c21-align-left' : g.align === 'left', 'c21-align-right' : g.align !== 'left'}"
6
4
  [ngStyle]="{ 'background-color': g.baloonImage? null: g.themeColor, 'bottom': g.marginY+'px!important', 'left':(g.align==='left')?g.marginX+'px!important':'', 'right':(g.align==='right')?g.marginX+'px!important':'', 'width': g.launcherWidth, 'height': g.launcherHeight, 'border-radius': g.baloonShape}"
7
5
  (click)="openCloseWidget()"
8
- tabindex="1000"
9
- aria-label=" apri chat"
10
- >
11
-
12
- <!-- <div *ngIf="g.conversationsBadge>0" class="c21-divBudge">{{g.conversationsBadge}}</div> -->
6
+ [attr.aria-label]="g.BUTTON_OPEN_CHAT || 'Open chat'"
7
+ [attr.aria-expanded]="g.isOpen ? 'true' : 'false'">
13
8
 
14
9
  <!-- OPEN ICON -->
15
10
  <div *ngIf="!g.isOpen" class="launcher-button rotate-center" [@enterBubbleAnimation]>
16
- <img *ngIf="g.baloonImage !== '' " [src]="g.baloonImage" [ngStyle]="{'width': '100%', 'height': '100%', 'margin': 'auto', 'border-radius': g.baloonShape}">
17
- <svg role="img" [ngStyle]="{'fill': g.themeForegroundColor, 'display': (g.baloonImage==='')?'':'none' }" xmlns="http://www.w3.org/2000/svg" width="100%"
11
+ <img *ngIf="g.baloonImage !== '' " [src]="g.baloonImage" alt="" [ngStyle]="{'width': '100%', 'height': '100%', 'margin': 'auto', 'border-radius': g.baloonShape}">
12
+ <svg aria-hidden="true" focusable="false" [ngStyle]="{'fill': g.themeForegroundColor, 'display': (g.baloonImage==='')?'':'none' }" xmlns="http://www.w3.org/2000/svg" width="100%"
18
13
  height="100%" viewBox="0 0 90 90">
19
14
  <path fill="none" d="M0 0h24v24H0V0z" />
20
15
  <path d="M33.57,31A4.58,4.58,0,0,0,29,35.57V58.3a1.94,1.94,0,0,0,3.32,1.38l3-3a.29.29,0,0,1,.21-.09H56.43A4.58,4.58,0,0,0,61,52V35.57A4.58,4.58,0,0,0,56.43,31Z" />
@@ -28,11 +23,11 @@
28
23
 
29
24
  <!-- CLOSE ICON -->
30
25
  <div *ngIf="g.isOpen" class="launcher-button rotate-center" [@enterCloseAnimation]>
31
- <svg role="img" [ngStyle]="{'fill': g.themeForegroundColor }" xmlns="http://www.w3.org/2000/svg" width="100%"
26
+ <svg aria-hidden="true" focusable="false" [ngStyle]="{'fill': g.themeForegroundColor }" xmlns="http://www.w3.org/2000/svg" width="100%"
32
27
  height="100%" viewBox="0 0 90 90">
33
28
  <path fill="none" d="M0 0h24v24H0V0z" />
34
29
  <path class="cls-1" d="M54.92,37.08l-2-2L45,43l-7.92-7.92-2,2L43,45l-7.92,7.92,2,2L45,47l7.92,7.92,2-2L47,45Z" />
35
30
  </svg>
36
31
  </div>
37
32
 
38
- </button>
33
+ </button>
@@ -1,28 +1,124 @@
1
- import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
1
+ import { Injectable, NO_ERRORS_SCHEMA } from '@angular/core';
2
+ import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
3
+ import { By } from '@angular/platform-browser';
4
+ import { NoopAnimationsModule } from '@angular/platform-browser/animations';
2
5
  import { AppStorageService } from '../../../chat21-core/providers/abstract/app-storage.service';
6
+ import { convertColorToRGBA } from 'src/chat21-core/utils/utils';
3
7
  import { Globals } from '../../utils/globals';
4
-
5
8
  import { LauncherButtonComponent } from './launcher-button.component';
6
9
 
10
+ @Injectable()
11
+ class AppStorageStub extends AppStorageService {
12
+ initialize(): void {}
13
+ getItem(): any {
14
+ return null;
15
+ }
16
+ setItem(): void {}
17
+ getItemWithoutProjectID(): any {
18
+ return null;
19
+ }
20
+ setItemWithoutProjectID(): void {}
21
+ removeItem(): void {}
22
+ clear(): void {}
23
+ }
24
+
7
25
  describe('LauncherButtonComponent', () => {
8
- let component: LauncherButtonComponent;
9
26
  let fixture: ComponentFixture<LauncherButtonComponent>;
27
+ let component: LauncherButtonComponent;
28
+ let globals: Globals;
10
29
 
11
30
  beforeEach(waitForAsync(() => {
12
31
  TestBed.configureTestingModule({
13
- declarations: [ LauncherButtonComponent ],
14
- providers: [ Globals, AppStorageService]
15
- })
16
- .compileComponents();
32
+ declarations: [LauncherButtonComponent],
33
+ imports: [NoopAnimationsModule],
34
+ providers: [Globals, { provide: AppStorageService, useClass: AppStorageStub }],
35
+ schemas: [NO_ERRORS_SCHEMA],
36
+ }).compileComponents();
17
37
  }));
18
38
 
19
39
  beforeEach(() => {
20
40
  fixture = TestBed.createComponent(LauncherButtonComponent);
21
41
  component = fixture.componentInstance;
22
- fixture.detectChanges();
42
+ globals = TestBed.inject(Globals);
43
+ globals.initDefafultParameters();
44
+ globals.isOpen = false;
45
+ globals.align = 'right';
46
+ globals.marginX = '20px';
47
+ globals.marginY = '24px';
48
+ globals.themeColor = '#2a6ac1';
49
+ globals.themeForegroundColor = '#ffffff';
50
+ globals.launcherWidth = '60px';
51
+ globals.launcherHeight = '60px';
52
+ globals.baloonShape = '50%';
53
+ globals.baloonImage = '';
23
54
  });
24
55
 
25
56
  it('should create', () => {
26
57
  expect(component).toBeTruthy();
27
58
  });
59
+
60
+ it('mostra il pulsante quando il widget è chiuso (isOpen=false)', () => {
61
+ fixture.detectChanges();
62
+ const btn = fixture.debugElement.query(By.css('#c21-launcher-button'));
63
+ expect(btn).toBeTruthy();
64
+ });
65
+
66
+ it('non mostra il launcher quando il widget è aperto', () => {
67
+ globals.isOpen = true;
68
+ fixture.detectChanges();
69
+ expect(fixture.debugElement.query(By.css('#c21-launcher-button'))).toBeNull();
70
+ });
71
+
72
+ it('applica border-radius da baloonShape e dimensioni da launcherWidth/Height', () => {
73
+ globals.baloonShape = '12px 4px 18px 8px';
74
+ globals.launcherWidth = '72px';
75
+ globals.launcherHeight = '80px';
76
+ fixture.detectChanges();
77
+ const btn = fixture.debugElement.query(By.css('#c21-launcher-button')).nativeElement as HTMLElement;
78
+ expect(btn.style.borderRadius).toBe('12px 4px 18px 8px');
79
+ expect(btn.style.width).toBe('72px');
80
+ expect(btn.style.height).toBe('80px');
81
+ });
82
+
83
+ it('con baloonImage: sfondo pulsante null e immagine con stesso border-radius', () => {
84
+ globals.baloonImage = 'https://cdn.example/launcher.svg';
85
+ globals.baloonShape = '8px';
86
+ fixture.detectChanges();
87
+ const btn = fixture.debugElement.query(By.css('#c21-launcher-button')).nativeElement as HTMLElement;
88
+ expect(btn.style.backgroundColor === '' || btn.style.backgroundColor === 'rgba(0, 0, 0, 0)').toBe(true);
89
+ const img = fixture.debugElement.query(By.css('img')).nativeElement as HTMLImageElement;
90
+ expect(img.src).toContain('launcher.svg');
91
+ expect(img.style.borderRadius).toBe('8px');
92
+ });
93
+
94
+ it('senza baloonImage: usa themeColor come background e classe allineamento sinistro', () => {
95
+ globals.baloonImage = '';
96
+ globals.align = 'left';
97
+ globals.themeColor = '#ff0000';
98
+ fixture.detectChanges();
99
+ const btn = fixture.debugElement.query(By.css('#c21-launcher-button')).nativeElement as HTMLElement;
100
+ expect(btn.style.backgroundColor).not.toBe('');
101
+ expect(btn.classList.contains('c21-align-left')).toBe(true);
102
+ });
103
+
104
+ it('ngAfterViewInit imposta box-shadow quando widget chiuso', fakeAsync(() => {
105
+ globals.isOpen = false;
106
+ fixture.detectChanges();
107
+ tick(0);
108
+ const btn = fixture.debugElement.query(By.css('#c21-launcher-button'))?.nativeElement as HTMLElement;
109
+ expect(btn).toBeTruthy();
110
+ const shadow = btn.style.boxShadow.replace(/\s/g, '');
111
+ expect(shadow).toContain('0px4px20px');
112
+ expect(shadow).toContain(convertColorToRGBA(globals.themeColor, 50).replace(/\s/g, ''));
113
+ }));
114
+
115
+ it('openCloseWidget emette lo stato corrente di isOpen', () => {
116
+ globals.isOpen = false;
117
+ spyOn(component.onButtonClicked, 'emit');
118
+ component.openCloseWidget();
119
+ expect(component.onButtonClicked.emit).toHaveBeenCalledWith(false);
120
+ globals.isOpen = true;
121
+ component.openCloseWidget();
122
+ expect(component.onButtonClicked.emit).toHaveBeenCalledWith(true);
123
+ });
28
124
  });
@@ -1,5 +1,6 @@
1
- <div id='c21-app-list-all-conversations'>
2
- <!-- tabindex="1300"-->
1
+ <div id='c21-app-list-all-conversations'
2
+ role="region"
3
+ [attr.aria-label]="g?.project?.widgetTitle || 'Conversations history'">
3
4
 
4
5
  <!-- HEADER -->
5
6
  <div class="c21-header" [ngStyle]="{'color': g.themeForegroundColor, 'background-image': g.colorGradient180 }">
@@ -7,12 +8,11 @@
7
8
  <!-- CONTENT HEADER -->
8
9
  <div class="c21-header-content">
9
10
  <!-- ICON CLOSE CHAT -->
10
- <div class="c21-header-button c21-right c21-close">
11
- <svg role="img" aria-labelledby="altIconTitle" [ngStyle]="{'fill': g.themeForegroundColor }" xmlns="http://www.w3.org/2000/svg"
11
+ <div class="c21-header-button c21-right c21-close" [attr.aria-label]="g.BUTTON_CLOSE_TO_ICON" role="img">
12
+ <svg aria-hidden="true" focusable="false" [ngStyle]="{'fill': g.themeForegroundColor }" xmlns="http://www.w3.org/2000/svg"
12
13
  width="24px" height="24px" viewBox="0 0 24 24">
13
14
  <path fill="none" d="M0 0h24v24H0V0z" />
14
15
  <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" />
15
- <title id="altIconTitle">{{g.BUTTON_CLOSE_TO_ICON}}</title>
16
16
  </svg>
17
17
  </div>
18
18
 
@@ -54,26 +54,21 @@
54
54
  </div> -->
55
55
 
56
56
  <!-- ICON BACK -->
57
- <button tabindex="1310" aria-label="indietro" class="c21-header-button c21-left c21-button-clean" (click)="returnClosePage()">
58
- <svg role="img" aria-labelledby="altIconTitle" [ngStyle]="{'fill': g.themeForegroundColor }" xmlns="http://www.w3.org/2000/svg"
57
+ <button type="button"
58
+ [attr.aria-label]="g.PREV_CONVERSATIONS"
59
+ class="c21-header-button c21-left c21-button-clean"
60
+ (click)="returnClosePage()">
61
+ <svg aria-hidden="true" focusable="false" [ngStyle]="{'fill': g.themeForegroundColor }" xmlns="http://www.w3.org/2000/svg"
59
62
  width="24px" height="24px" viewBox="0 0 24 24">
60
- <!-- <path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33C4.62 15.49 4 13.82 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"/> -->
61
63
  <path fill="none" d="M0 0h24v24H0V0z" />
62
64
  <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z" />
63
- <title id="altIconTitle">{{g.PREV_CONVERSATIONS}}</title>
64
65
  </svg>
65
66
  </button>
66
67
 
67
68
  <!-- TITLE HEADER -->
68
69
  <div class="c21-title" [ngStyle]="{'color': g.themeForegroundColor}">
69
- <!-- <div *ngIf="g.project.logoChat !== 'nologo'" class='avatar-project' item-start>
70
- <div *ngIf="g.project.logoChat == 'tiledesklogo'" #avatarPlaceholder class="avatar-placeholder" [style.background-color]="g.project.color" [innerHTML]="g.project.avatar"></div>
71
- <div *ngIf="g.project.logoChat !== 'tiledesklogo'" #avatarImage class="avatar-image" [style.background-image]="'url(' + g.project.logoChat + ')'"></div>
72
- </div> -->
73
- <div class="titleText">{{g.project.widgetTitle}}</div>
74
- <!-- <span id="agent-available-status">{{areAgentsAvailableText}}</span> -->
70
+ <h2 class="titleText">{{g.project.widgetTitle}}</h2>
75
71
  </div>
76
- <!-- <p class="c21-header-writing">{{writingMessage}}</p> -->
77
72
 
78
73
  </div>
79
74
 
@@ -82,7 +77,7 @@
82
77
  </div>
83
78
 
84
79
  <!-- CONTENT -->
85
- <div class="c21-body" tabindex="1311" onFocus="document.querySelector('[start-focus]').focus()">
80
+ <div class="c21-body">
86
81
 
87
82
  <chat-list-conversations
88
83
  [listConversations]="allConversations"
@@ -42,6 +42,8 @@
42
42
  font-size: 1em;
43
43
  line-height: 40px;
44
44
  text-align: left;
45
+ margin: 0;
46
+ font-weight: inherit;
45
47
  }
46
48
  .avatar-project {
47
49
  position: relative;