isometrik-plugin-chat-sdk 1.0.8 → 1.0.9

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 (253) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/attachment-preview_22.cjs.entry.js +10 -9
  3. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
  4. package/dist/cjs/audio-bubble_4.cjs.entry.js +1 -1
  5. package/dist/cjs/chat-assets-e32e80c0.js +73 -0
  6. package/dist/cjs/chat-assets-e32e80c0.js.map +1 -0
  7. package/dist/cjs/chat-tile_3.cjs.entry.js +1 -1
  8. package/dist/cjs/forward-memebers.cjs.entry.js +1 -1
  9. package/dist/cjs/isometrik-webchat.cjs.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/login-page_3.cjs.entry.js +23 -13
  12. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/member-add.cjs.entry.js +1 -1
  14. package/dist/cjs/new-chat-sidebar.cjs.entry.js +1 -1
  15. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +6 -7
  16. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  17. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +12 -12
  18. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
  19. package/dist/collection/components/my-component/web-chat/WebChat.js +39 -6
  20. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
  21. package/dist/collection/components/my-component/web-chat/shell-render.js +4 -2
  22. package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
  23. package/dist/collection/components/theme-provider.js +9 -9
  24. package/dist/collection/components/theme-provider.js.map +1 -1
  25. package/dist/collection/constants/chat-assets.js +39 -123
  26. package/dist/components/ChatSidebar.js +2 -2
  27. package/dist/components/ChatSidebar.js.map +1 -1
  28. package/dist/components/WebChat.js +15 -4
  29. package/dist/components/WebChat.js.map +1 -1
  30. package/dist/components/WebChatBody.js +9 -8
  31. package/dist/components/WebChatBody.js.map +1 -1
  32. package/dist/components/chat-assets.js +34 -82
  33. package/dist/components/chat-assets.js.map +1 -1
  34. package/dist/components/theme-provider2.js +9 -9
  35. package/dist/components/theme-provider2.js.map +1 -1
  36. package/dist/esm/attachment-preview_22.entry.js +10 -9
  37. package/dist/esm/attachment-preview_22.entry.js.map +1 -1
  38. package/dist/esm/audio-bubble_4.entry.js +1 -1
  39. package/dist/esm/chat-assets-4dfb1106.js +38 -0
  40. package/dist/esm/chat-assets-4dfb1106.js.map +1 -0
  41. package/dist/esm/chat-tile_3.entry.js +1 -1
  42. package/dist/esm/forward-memebers.entry.js +1 -1
  43. package/dist/esm/isometrik-webchat.js +1 -1
  44. package/dist/esm/loader.js +1 -1
  45. package/dist/esm/login-page_3.entry.js +23 -13
  46. package/dist/esm/login-page_3.entry.js.map +1 -1
  47. package/dist/esm/member-add.entry.js +1 -1
  48. package/dist/esm/new-chat-sidebar.entry.js +1 -1
  49. package/dist/isometrik-webchat/isometrik-webchat.css +1 -1
  50. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  51. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  52. package/dist/isometrik-webchat/{p-188b2631.entry.js → p-0085b397.entry.js} +2 -2
  53. package/dist/isometrik-webchat/{p-ab5e1e85.entry.js → p-1ad1127f.entry.js} +2 -2
  54. package/dist/isometrik-webchat/p-6d9f8cec.entry.js +2 -0
  55. package/dist/isometrik-webchat/p-6d9f8cec.entry.js.map +1 -0
  56. package/dist/isometrik-webchat/{p-b44f0bd1.entry.js → p-6ec350aa.entry.js} +2 -2
  57. package/dist/isometrik-webchat/p-6ffeb379.entry.js +2 -0
  58. package/dist/isometrik-webchat/p-6ffeb379.entry.js.map +1 -0
  59. package/dist/isometrik-webchat/{p-e589ff24.entry.js → p-71cc96a3.entry.js} +2 -2
  60. package/dist/isometrik-webchat/{p-ff8f6bd2.entry.js → p-b8cef5e4.entry.js} +2 -2
  61. package/dist/isometrik-webchat/p-d424871c.js +2 -0
  62. package/dist/isometrik-webchat/p-d424871c.js.map +1 -0
  63. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +2 -1
  64. package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +2 -2
  65. package/dist/types/components/theme-provider.d.ts +3 -2
  66. package/dist/types/components.d.ts +26 -8
  67. package/package.json +53 -10
  68. package/readme.md +428 -0
  69. package/dist/cjs/chat-assets-ff067e4d.js +0 -121
  70. package/dist/cjs/chat-assets-ff067e4d.js.map +0 -1
  71. package/dist/collection/assets/ExcelDocument.js +0 -2
  72. package/dist/collection/assets/IsometrikLogo.js +0 -38
  73. package/dist/collection/assets/Moon.svg +0 -1
  74. package/dist/collection/assets/New-Chat.svg +0 -5
  75. package/dist/collection/assets/NoChatPlaceholder.js +0 -16
  76. package/dist/collection/assets/NoContactsPlaceholder.js +0 -9
  77. package/dist/collection/assets/NoMessagePlaceholder.svg +0 -13
  78. package/dist/collection/assets/PdfDocument.js +0 -2
  79. package/dist/collection/assets/ProfilePlaceholder.js +0 -1
  80. package/dist/collection/assets/SelectChatPlaceholder.js +0 -13
  81. package/dist/collection/assets/Sun.svg +0 -1
  82. package/dist/collection/assets/add-user.svg +0 -6
  83. package/dist/collection/assets/attachment.svg +0 -4
  84. package/dist/collection/assets/avatar.svg +0 -1
  85. package/dist/collection/assets/block-user.svg +0 -4
  86. package/dist/collection/assets/camera-add.svg +0 -4
  87. package/dist/collection/assets/camera.svg +0 -17
  88. package/dist/collection/assets/cancel.svg +0 -12
  89. package/dist/collection/assets/chatBG.png +0 -0
  90. package/dist/collection/assets/chatdefaultbg.svg +0 -6140
  91. package/dist/collection/assets/clear-chat.svg +0 -4
  92. package/dist/collection/assets/close.svg +0 -4
  93. package/dist/collection/assets/dark-theme.svg +0 -12
  94. package/dist/collection/assets/delete.svg +0 -8
  95. package/dist/collection/assets/doc.png +0 -0
  96. package/dist/collection/assets/documents.svg +0 -15
  97. package/dist/collection/assets/doublecheck.svg +0 -1
  98. package/dist/collection/assets/download.svg +0 -4
  99. package/dist/collection/assets/drop-down.svg +0 -5
  100. package/dist/collection/assets/edit.svg +0 -4
  101. package/dist/collection/assets/equalizer.svg +0 -1
  102. package/dist/collection/assets/excel.svg +0 -2
  103. package/dist/collection/assets/forward.svg +0 -4
  104. package/dist/collection/assets/group-cast.svg +0 -1
  105. package/dist/collection/assets/group.svg +0 -13
  106. package/dist/collection/assets/imagePlaceholder.png +0 -0
  107. package/dist/collection/assets/imagePlaceholder.svg +0 -2
  108. package/dist/collection/assets/info.svg +0 -4
  109. package/dist/collection/assets/left-arrow.svg +0 -4
  110. package/dist/collection/assets/link.svg +0 -1
  111. package/dist/collection/assets/login.svg +0 -3051
  112. package/dist/collection/assets/logout.svg +0 -5
  113. package/dist/collection/assets/message-outline.svg +0 -5
  114. package/dist/collection/assets/message.svg +0 -1
  115. package/dist/collection/assets/microphone.svg +0 -2
  116. package/dist/collection/assets/new_group.svg +0 -9
  117. package/dist/collection/assets/odt-file.png +0 -0
  118. package/dist/collection/assets/onboarding.webp +0 -0
  119. package/dist/collection/assets/paper.svg +0 -5
  120. package/dist/collection/assets/pause.svg +0 -4
  121. package/dist/collection/assets/pdf.svg +0 -11
  122. package/dist/collection/assets/photos.svg +0 -4
  123. package/dist/collection/assets/play.svg +0 -19
  124. package/dist/collection/assets/profilePlaceholderImage.png +0 -0
  125. package/dist/collection/assets/reply.svg +0 -4
  126. package/dist/collection/assets/rtf.png +0 -0
  127. package/dist/collection/assets/search.svg +0 -4
  128. package/dist/collection/assets/send.svg +0 -4
  129. package/dist/collection/assets/singlecheck.svg +0 -1
  130. package/dist/collection/assets/smile.svg +0 -2
  131. package/dist/collection/assets/three-dots.svg +0 -5
  132. package/dist/collection/assets/txt.png +0 -0
  133. package/dist/collection/assets/videoPlaceholder.svg +0 -4
  134. package/dist/collection/assets/videoThumbnail.svg +0 -1
  135. package/dist/collection/components/ChatUIComponent/AudioBubble.js +0 -315
  136. package/dist/collection/components/ChatUIComponent/BlockChatList.js +0 -177
  137. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +0 -152
  138. package/dist/collection/components/ChatUIComponent/GroupCast.js +0 -461
  139. package/dist/collection/components/ChatUIComponent/shared/attachment-preview.js +0 -230
  140. package/dist/collection/components/ChatUIComponent/shared/chat-loading-placeholder.js +0 -70
  141. package/dist/collection/components/ChatUIComponent/shared/confirm-dialog.js +0 -51
  142. package/dist/collection/components/ChatUIComponent/shared/contact-info.js +0 -255
  143. package/dist/collection/components/ChatUIComponent/shared/context-menu.js +0 -112
  144. package/dist/collection/components/ChatUIComponent/shared/delete-message.js +0 -49
  145. package/dist/collection/components/ChatUIComponent/shared/document-message.js +0 -161
  146. package/dist/collection/components/ChatUIComponent/shared/forward-message.js +0 -139
  147. package/dist/collection/components/ChatUIComponent/shared/group-chat-contacts.js +0 -201
  148. package/dist/collection/components/ChatUIComponent/shared/group-info.js +0 -170
  149. package/dist/collection/components/ChatUIComponent/shared/image-message.js +0 -156
  150. package/dist/collection/components/ChatUIComponent/shared/incoming-text-message-bubble.js +0 -98
  151. package/dist/collection/components/ChatUIComponent/shared/link-preview.js +0 -125
  152. package/dist/collection/components/ChatUIComponent/shared/media-gallery.js +0 -152
  153. package/dist/collection/components/ChatUIComponent/shared/message-body-render.js +0 -19
  154. package/dist/collection/components/ChatUIComponent/shared/message-bubble.js +0 -189
  155. package/dist/collection/components/ChatUIComponent/shared/message-date-pill.js +0 -86
  156. package/dist/collection/components/ChatUIComponent/shared/message-info.js +0 -188
  157. package/dist/collection/components/ChatUIComponent/shared/message-search.js +0 -125
  158. package/dist/collection/components/ChatUIComponent/shared/new-chat-sidebar.js +0 -181
  159. package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble.js +0 -98
  160. package/dist/collection/components/ChatUIComponent/shared/profile-avatar.js +0 -136
  161. package/dist/collection/components/ChatUIComponent/shared/profile-info.js +0 -220
  162. package/dist/collection/components/ChatUIComponent/shared/reply-block.js +0 -162
  163. package/dist/collection/components/ChatUIComponent/shared/reply-message-container.js +0 -193
  164. package/dist/collection/components/ChatUIComponent/shared/share-popup.js +0 -69
  165. package/dist/collection/components/ChatUIComponent/shared/spinner-loader.js +0 -74
  166. package/dist/collection/components/ChatUIComponent/shared/toast-notification.js +0 -106
  167. package/dist/collection/components/ChatUIComponent/shared/video-message.js +0 -165
  168. package/dist/collection/components/my-component/my-component.e2e.js +0 -25
  169. package/dist/collection/components/my-component/my-component.spec.js +0 -34
  170. package/dist/collection/components/my-component/web-chat/web-chat-split.spec.js +0 -40
  171. package/dist/collection/lib/chat/chat.spec.js +0 -28
  172. package/dist/collection/lib/custom-ui/custom-ui.spec.js +0 -49
  173. package/dist/collection/lib/message-body-segments.spec.js +0 -21
  174. package/dist/collection/lib/message-dedup.spec.js +0 -17
  175. package/dist/collection/lib/mqtt/mqtt.spec.js +0 -39
  176. package/dist/collection/utils/utils.spec.js +0 -15
  177. package/dist/esm/chat-assets-95633770.js +0 -86
  178. package/dist/esm/chat-assets-95633770.js.map +0 -1
  179. package/dist/isometrik-webchat/assets/ExcelDocument.js +0 -2
  180. package/dist/isometrik-webchat/assets/IsometrikLogo.js +0 -38
  181. package/dist/isometrik-webchat/assets/Moon.svg +0 -1
  182. package/dist/isometrik-webchat/assets/New-Chat.svg +0 -5
  183. package/dist/isometrik-webchat/assets/NoChatPlaceholder.js +0 -16
  184. package/dist/isometrik-webchat/assets/NoContactsPlaceholder.js +0 -9
  185. package/dist/isometrik-webchat/assets/NoMessagePlaceholder.svg +0 -13
  186. package/dist/isometrik-webchat/assets/PdfDocument.js +0 -2
  187. package/dist/isometrik-webchat/assets/ProfilePlaceholder.js +0 -1
  188. package/dist/isometrik-webchat/assets/SelectChatPlaceholder.js +0 -13
  189. package/dist/isometrik-webchat/assets/Sun.svg +0 -1
  190. package/dist/isometrik-webchat/assets/add-user.svg +0 -6
  191. package/dist/isometrik-webchat/assets/attachment.svg +0 -4
  192. package/dist/isometrik-webchat/assets/avatar.svg +0 -1
  193. package/dist/isometrik-webchat/assets/block-user.svg +0 -4
  194. package/dist/isometrik-webchat/assets/camera-add.svg +0 -4
  195. package/dist/isometrik-webchat/assets/camera.svg +0 -17
  196. package/dist/isometrik-webchat/assets/cancel.svg +0 -12
  197. package/dist/isometrik-webchat/assets/chatBG.png +0 -0
  198. package/dist/isometrik-webchat/assets/chatdefaultbg.svg +0 -6140
  199. package/dist/isometrik-webchat/assets/clear-chat.svg +0 -4
  200. package/dist/isometrik-webchat/assets/close.svg +0 -4
  201. package/dist/isometrik-webchat/assets/dark-theme.svg +0 -12
  202. package/dist/isometrik-webchat/assets/delete.svg +0 -8
  203. package/dist/isometrik-webchat/assets/doc.png +0 -0
  204. package/dist/isometrik-webchat/assets/documents.svg +0 -15
  205. package/dist/isometrik-webchat/assets/doublecheck.svg +0 -1
  206. package/dist/isometrik-webchat/assets/download.svg +0 -4
  207. package/dist/isometrik-webchat/assets/drop-down.svg +0 -5
  208. package/dist/isometrik-webchat/assets/edit.svg +0 -4
  209. package/dist/isometrik-webchat/assets/equalizer.svg +0 -1
  210. package/dist/isometrik-webchat/assets/excel.svg +0 -2
  211. package/dist/isometrik-webchat/assets/forward.svg +0 -4
  212. package/dist/isometrik-webchat/assets/group-cast.svg +0 -1
  213. package/dist/isometrik-webchat/assets/group.svg +0 -13
  214. package/dist/isometrik-webchat/assets/imagePlaceholder.png +0 -0
  215. package/dist/isometrik-webchat/assets/imagePlaceholder.svg +0 -2
  216. package/dist/isometrik-webchat/assets/info.svg +0 -4
  217. package/dist/isometrik-webchat/assets/left-arrow.svg +0 -4
  218. package/dist/isometrik-webchat/assets/link.svg +0 -1
  219. package/dist/isometrik-webchat/assets/login.svg +0 -3051
  220. package/dist/isometrik-webchat/assets/logout.svg +0 -5
  221. package/dist/isometrik-webchat/assets/message-outline.svg +0 -5
  222. package/dist/isometrik-webchat/assets/message.svg +0 -1
  223. package/dist/isometrik-webchat/assets/microphone.svg +0 -2
  224. package/dist/isometrik-webchat/assets/new_group.svg +0 -9
  225. package/dist/isometrik-webchat/assets/odt-file.png +0 -0
  226. package/dist/isometrik-webchat/assets/onboarding.webp +0 -0
  227. package/dist/isometrik-webchat/assets/paper.svg +0 -5
  228. package/dist/isometrik-webchat/assets/pause.svg +0 -4
  229. package/dist/isometrik-webchat/assets/pdf.svg +0 -11
  230. package/dist/isometrik-webchat/assets/photos.svg +0 -4
  231. package/dist/isometrik-webchat/assets/play.svg +0 -19
  232. package/dist/isometrik-webchat/assets/profilePlaceholderImage.png +0 -0
  233. package/dist/isometrik-webchat/assets/reply.svg +0 -4
  234. package/dist/isometrik-webchat/assets/rtf.png +0 -0
  235. package/dist/isometrik-webchat/assets/search.svg +0 -4
  236. package/dist/isometrik-webchat/assets/send.svg +0 -4
  237. package/dist/isometrik-webchat/assets/singlecheck.svg +0 -1
  238. package/dist/isometrik-webchat/assets/smile.svg +0 -2
  239. package/dist/isometrik-webchat/assets/three-dots.svg +0 -5
  240. package/dist/isometrik-webchat/assets/txt.png +0 -0
  241. package/dist/isometrik-webchat/assets/videoPlaceholder.svg +0 -4
  242. package/dist/isometrik-webchat/assets/videoThumbnail.svg +0 -1
  243. package/dist/isometrik-webchat/p-4bad6da9.entry.js +0 -2
  244. package/dist/isometrik-webchat/p-4bad6da9.entry.js.map +0 -1
  245. package/dist/isometrik-webchat/p-8c73a5d5.entry.js +0 -2
  246. package/dist/isometrik-webchat/p-8c73a5d5.entry.js.map +0 -1
  247. package/dist/isometrik-webchat/p-d6f0838c.js +0 -2
  248. package/dist/isometrik-webchat/p-d6f0838c.js.map +0 -1
  249. /package/dist/isometrik-webchat/{p-188b2631.entry.js.map → p-0085b397.entry.js.map} +0 -0
  250. /package/dist/isometrik-webchat/{p-ab5e1e85.entry.js.map → p-1ad1127f.entry.js.map} +0 -0
  251. /package/dist/isometrik-webchat/{p-b44f0bd1.entry.js.map → p-6ec350aa.entry.js.map} +0 -0
  252. /package/dist/isometrik-webchat/{p-e589ff24.entry.js.map → p-71cc96a3.entry.js.map} +0 -0
  253. /package/dist/isometrik-webchat/{p-ff8f6bd2.entry.js.map → p-b8cef5e4.entry.js.map} +0 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f624fc47.js');
6
- const chatAssets = require('./chat-assets-ff067e4d.js');
6
+ const chatAssets = require('./chat-assets-e32e80c0.js');
7
7
  const cancel = require('./cancel-1ffd86d3.js');
8
8
  const index_m = require('./index.m-ff115b26.js');
9
9
  const drawer = require('./drawer-28cc94a4.js');
@@ -341,7 +341,7 @@ const ChatSidebar = class {
341
341
  this.isConversationLoading = undefined;
342
342
  this.hasMoreConversations = undefined;
343
343
  this.unreadConversationsCount = undefined;
344
- this.customParts = {};
344
+ this.customParts = undefined;
345
345
  this.conversationDetails = undefined;
346
346
  this.sortedConversationList = [];
347
347
  this.numberOfConversations = 0;
@@ -7208,7 +7208,7 @@ const WebChatBody = class {
7208
7208
  this.conversationDetails = {};
7209
7209
  this.newMessageNotification = null;
7210
7210
  this.loadingMediaGallery = undefined;
7211
- this.customParts = {};
7211
+ this.customParts = undefined;
7212
7212
  this.previousTotalScrollHeight = 0;
7213
7213
  this.deviceId = '';
7214
7214
  this.scrollTimeout = null;
@@ -7569,7 +7569,7 @@ const WebChatBody = class {
7569
7569
  var _a, _b, _c, _d, _e, _f, _g, _h;
7570
7570
  const currentConversation = (_a = this.conversationList) === null || _a === void 0 ? void 0 : _a.find(conversation => (conversation === null || conversation === void 0 ? void 0 : conversation.conversationId) === this.selectedConversationId);
7571
7571
  const shouldShowPlaceholder = ((_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.length) === 1 && ((_d = (_c = this.allMessages) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.action) !== 'clearConversation' && ((_e = this.allMessages) === null || _e === void 0 ? void 0 : _e.some(message => (message === null || message === void 0 ? void 0 : message.action) === 'clearConversation'));
7572
- return (index.h("div", { key: 'c721c9339c30b738e9e33f57e9dd1b914a909897', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (index.h("div", { key: '6f10ee228fde9310c175f9fa66ef6f0888cc927e', onClick: this.scrollToBottom, style: {
7572
+ return (index.h("div", { key: '9f147a27411d99e67478ed1169154738a7684075', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (index.h("div", { key: '84a43fa0addeb46e253ab844844722360ba8e683', onClick: this.scrollToBottom, style: {
7573
7573
  position: 'sticky',
7574
7574
  top: '90%',
7575
7575
  left: '95%',
@@ -7583,7 +7583,7 @@ const WebChatBody = class {
7583
7583
  cursor: 'pointer',
7584
7584
  boxShadow: '0 2px 5px rgba(0,0,0,0.2)',
7585
7585
  zIndex: '100',
7586
- } }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (index.h("div", { key: '0c77fa0f0f8d7bc166ac1c1eeb56245d64ffe606', style: {
7586
+ } }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (index.h("div", { key: 'd7cd08ce123942a40e9e86c89cb77aef57e9bcd7', style: {
7587
7587
  position: 'absolute',
7588
7588
  bottom: '22px',
7589
7589
  right: '-2px',
@@ -7597,7 +7597,7 @@ const WebChatBody = class {
7597
7597
  justifyContent: 'center',
7598
7598
  fontSize: '12px',
7599
7599
  padding: '0 4px',
7600
- } })), index.h("svg", { key: 'ac275aca10a08458aaaa63cabc23084d032698d6', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '91b7208cfc45380d7303f8088966e63fdbdd0107', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (index.h("div", { key: '6a9a7f891c3ee01a5a031aef5d46818cf5f96891', style: {
7600
+ } })), index.h("svg", { key: '8f4bef505984399f6f378e7aff14ef51c7d0de90', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '0f501f068f298a4a340d72ec772d0bdc534729a8', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (index.h("div", { key: 'c83d267957e4f0bab55a6da876ef00606f0c57b3', style: {
7601
7601
  display: 'flex',
7602
7602
  flexDirection: 'column',
7603
7603
  alignItems: 'center',
@@ -7607,7 +7607,7 @@ const WebChatBody = class {
7607
7607
  textAlign: 'center',
7608
7608
  color: 'var(--text-secondary-color)',
7609
7609
  marginTop: '20px',
7610
- } }, index.h("img", { key: '410c1d6b6a7cb7338871641c4c4905e0342d3933', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), index.h("div", { key: 'cc2d64e3d33a2ad116b0b10188cfd5c7a34d6cce', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, index.h("span", { key: 'b0a34a97764d84b70ead9def5f6eaf1d90635b69', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), index.h("span", { key: 'c1e104cd1808c269578cb5980617e28c288eb343', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (index.h("spinner-loader", { key: '70c468fe8cabe79d007e47f91d1ac3417d23877c', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
7610
+ } }, index.h("img", { key: '9bb44052d7b4dd104f1af44c80a8a23ef3761d6a', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), index.h("div", { key: '64542179541d638dd8bb3ae71fd9de2bde666224', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, index.h("span", { key: '3c843966b9a49b25edfc7d981fbf7037ca8ef32a', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), index.h("span", { key: '3c2ff4f8a47055a0297a2e62846c0d785d98187d', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (index.h("spinner-loader", { key: '5a8ac1823d00c7f4199a8eabc7c7db7ce4dc34f5', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
7611
7611
  ((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
7612
7612
  (() => {
7613
7613
  const total = this.allMessages.length;
@@ -7627,10 +7627,11 @@ const WebChatBody = class {
7627
7627
  const showDatePill = currentMessageDate !== previousMessageDate;
7628
7628
  let isSelf = ((message === null || message === void 0 ? void 0 : message.senderId) || ((_e = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _e === void 0 ? void 0 : _e.userId)) === ((_f = this.userMetaData) === null || _f === void 0 ? void 0 : _f.userId);
7629
7629
  // Rounit model: host CE + SDK props/callbacks (functionality stays in SDK)
7630
- if ((_g = this.customParts) === null || _g === void 0 ? void 0 : _g.messageBubble) {
7630
+ const bubbleTag = (_g = this.customParts) === null || _g === void 0 ? void 0 : _g.messageBubble;
7631
+ if (bubbleTag) {
7631
7632
  const status = contracts.deriveMessageStatus(message);
7632
7633
  const msgId = message.messageId;
7633
- return (index.h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '15px', position: 'relative' }, "data-message-id": msgId, key: msgId }, showDatePill && (index.h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, this.renderDatePill(currentMessageDate))), index.h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', alignItems: isSelf ? 'flex-end' : 'flex-start', position: 'relative' } }, index.h(this.customParts.messageBubble, {
7634
+ return (index.h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '15px', position: 'relative' }, "data-message-id": msgId, key: msgId }, showDatePill && (index.h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, this.renderDatePill(currentMessageDate))), index.h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', alignItems: isSelf ? 'flex-end' : 'flex-start', position: 'relative' } }, index.h(bubbleTag, {
7634
7635
  message,
7635
7636
  isSelf,
7636
7637
  status,