isometrik-plugin-chat-sdk 1.0.0

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 (507) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/BlockChatList-720a703e.js +423 -0
  3. package/dist/cjs/BlockChatList-720a703e.js.map +1 -0
  4. package/dist/cjs/DocumentMessageBubble-c79bfbe5.js +493 -0
  5. package/dist/cjs/DocumentMessageBubble-c79bfbe5.js.map +1 -0
  6. package/dist/cjs/Image-67c52acd.js +135 -0
  7. package/dist/cjs/Image-67c52acd.js.map +1 -0
  8. package/dist/cjs/ImageMessageBubble-1218fb66.js +675 -0
  9. package/dist/cjs/ImageMessageBubble-1218fb66.js.map +1 -0
  10. package/dist/cjs/IsometrikLogo-976b1c34.js +44 -0
  11. package/dist/cjs/IsometrikLogo-976b1c34.js.map +1 -0
  12. package/dist/cjs/MessageSearch-5fc9dc00.js +5892 -0
  13. package/dist/cjs/MessageSearch-5fc9dc00.js.map +1 -0
  14. package/dist/cjs/ReactionsContainer-a6ce9059.js +375 -0
  15. package/dist/cjs/ReactionsContainer-a6ce9059.js.map +1 -0
  16. package/dist/cjs/Text-fedf6eab.js +60 -0
  17. package/dist/cjs/Text-fedf6eab.js.map +1 -0
  18. package/dist/cjs/VideoMessageBubble-c4694a78.js +571 -0
  19. package/dist/cjs/VideoMessageBubble-c4694a78.js.map +1 -0
  20. package/dist/cjs/WebChat-403e7ab1.js +2884 -0
  21. package/dist/cjs/WebChat-403e7ab1.js.map +1 -0
  22. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  23. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  24. package/dist/cjs/audio-bubble_8.cjs.entry.js +21011 -0
  25. package/dist/cjs/audio-bubble_8.cjs.entry.js.map +1 -0
  26. package/dist/cjs/block-chat-list.cjs.entry.js +16 -0
  27. package/dist/cjs/block-chat-list.cjs.entry.js.map +1 -0
  28. package/dist/cjs/chat-app.cjs.entry.js +55 -0
  29. package/dist/cjs/chat-app.cjs.entry.js.map +1 -0
  30. package/dist/cjs/chat-assets-6ab1faa6.js +9 -0
  31. package/dist/cjs/chat-assets-6ab1faa6.js.map +1 -0
  32. package/dist/cjs/chat-creds-f4cbf400.js +38 -0
  33. package/dist/cjs/chat-creds-f4cbf400.js.map +1 -0
  34. package/dist/cjs/chat-document-message-bubble.cjs.entry.js +24 -0
  35. package/dist/cjs/chat-document-message-bubble.cjs.entry.js.map +1 -0
  36. package/dist/cjs/chat-image-message-bubble.cjs.entry.js +26 -0
  37. package/dist/cjs/chat-image-message-bubble.cjs.entry.js.map +1 -0
  38. package/dist/cjs/chat-video-message-bubble.cjs.entry.js +24 -0
  39. package/dist/cjs/chat-video-message-bubble.cjs.entry.js.map +1 -0
  40. package/dist/cjs/content-eca5336c.js +81 -0
  41. package/dist/cjs/content-eca5336c.js.map +1 -0
  42. package/dist/cjs/dialog-drawer-9d04911c.js +5313 -0
  43. package/dist/cjs/dialog-drawer-9d04911c.js.map +1 -0
  44. package/dist/cjs/forward-memebers.cjs.entry.js +128 -0
  45. package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -0
  46. package/dist/cjs/group-members-a60fb1cb.js +41 -0
  47. package/dist/cjs/group-members-a60fb1cb.js.map +1 -0
  48. package/dist/cjs/groupcast-49dae5ab.js +202 -0
  49. package/dist/cjs/groupcast-49dae5ab.js.map +1 -0
  50. package/dist/cjs/imagePlaceholder-030cc566.js +4365 -0
  51. package/dist/cjs/imagePlaceholder-030cc566.js.map +1 -0
  52. package/dist/cjs/index-9afe62b6.js +3129 -0
  53. package/dist/cjs/index-9afe62b6.js.map +1 -0
  54. package/dist/cjs/index.cjs.js +148 -0
  55. package/dist/cjs/index.cjs.js.map +1 -0
  56. package/dist/cjs/isometrik-webchat.cjs.js +54 -0
  57. package/dist/cjs/isometrik-webchat.cjs.js.map +1 -0
  58. package/dist/cjs/loader.cjs.js +17 -0
  59. package/dist/cjs/loader.cjs.js.map +1 -0
  60. package/dist/cjs/login-page.cjs.entry.js +85 -0
  61. package/dist/cjs/login-page.cjs.entry.js.map +1 -0
  62. package/dist/cjs/member-add.cjs.entry.js +122 -0
  63. package/dist/cjs/member-add.cjs.entry.js.map +1 -0
  64. package/dist/cjs/message-reaction-976f6261.js +24 -0
  65. package/dist/cjs/message-reaction-976f6261.js.map +1 -0
  66. package/dist/cjs/my-component.cjs.entry.js +29 -0
  67. package/dist/cjs/my-component.cjs.entry.js.map +1 -0
  68. package/dist/cjs/reaction-container.cjs.entry.js +52 -0
  69. package/dist/cjs/reaction-container.cjs.entry.js.map +1 -0
  70. package/dist/cjs/shadow-css-7c4dbc43.js +336 -0
  71. package/dist/cjs/shadow-css-7c4dbc43.js.map +1 -0
  72. package/dist/cjs/signup-page.cjs.entry.js +143 -0
  73. package/dist/cjs/signup-page.cjs.entry.js.map +1 -0
  74. package/dist/cjs/taguser-aca04ed9.js +512 -0
  75. package/dist/cjs/taguser-aca04ed9.js.map +1 -0
  76. package/dist/cjs/theme-provider_2.cjs.entry.js +113 -0
  77. package/dist/cjs/theme-provider_2.cjs.entry.js.map +1 -0
  78. package/dist/cjs/toast-helper-defae4a5.js +84 -0
  79. package/dist/cjs/toast-helper-defae4a5.js.map +1 -0
  80. package/dist/cjs/utils-bcad3386.js +9 -0
  81. package/dist/cjs/utils-bcad3386.js.map +1 -0
  82. package/dist/collection/api/conversations.js +12 -0
  83. package/dist/collection/api/group-members.js +36 -0
  84. package/dist/collection/api/groupcast.js +183 -0
  85. package/dist/collection/api/membership-control.js +13 -0
  86. package/dist/collection/api/message-reaction.js +16 -0
  87. package/dist/collection/api/social-accounts.js +282 -0
  88. package/dist/collection/app-root.js +51 -0
  89. package/dist/collection/app-root.js.map +1 -0
  90. package/dist/collection/assets/images/avatar.svg +1 -0
  91. package/dist/collection/assets/images/chatdefaultbg.svg +6140 -0
  92. package/dist/collection/assets/images/equalizer.svg +1 -0
  93. package/dist/collection/assets/images/imagePlaceholder.svg +2 -0
  94. package/dist/collection/assets/images/link.svg +1 -0
  95. package/dist/collection/assets/images/videoPlaceholder.svg +4 -0
  96. package/dist/collection/assets/images/videoThumbnail.svg +1 -0
  97. package/dist/collection/assets/svg/ExcelDocument.js +2 -0
  98. package/dist/collection/assets/svg/IsometrikLogo.js +38 -0
  99. package/dist/collection/assets/svg/Moon.svg +1 -0
  100. package/dist/collection/assets/svg/NoChatPlaceholder.js +16 -0
  101. package/dist/collection/assets/svg/NoContactsPlaceholder.js +9 -0
  102. package/dist/collection/assets/svg/NoMessagePlaceholder.svg +13 -0
  103. package/dist/collection/assets/svg/PdfDocument.js +2 -0
  104. package/dist/collection/assets/svg/ProfilePlaceholder.js +1 -0
  105. package/dist/collection/assets/svg/SelectChatPlaceholder.js +13 -0
  106. package/dist/collection/assets/svg/Sun.svg +1 -0
  107. package/dist/collection/assets/svg/broadcast-selected.svg +4 -0
  108. package/dist/collection/assets/svg/broadcst-default.svg +4 -0
  109. package/dist/collection/assets/svg/close.svg +1 -0
  110. package/dist/collection/assets/svg/group.svg +7 -0
  111. package/dist/collection/assets/svg/login.svg +3051 -0
  112. package/dist/collection/assets/svg/message-add.svg +5 -0
  113. package/dist/collection/assets/svg/message-bold.svg +3 -0
  114. package/dist/collection/assets/svg/message-outline.svg +5 -0
  115. package/dist/collection/collection-manifest.json +32 -0
  116. package/dist/collection/components/ChatUIComponent/AddMember.js +144 -0
  117. package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -0
  118. package/dist/collection/components/ChatUIComponent/AudioBubble.js +528 -0
  119. package/dist/collection/components/ChatUIComponent/AudioBubble.js.map +1 -0
  120. package/dist/collection/components/ChatUIComponent/BlockChatList.js +114 -0
  121. package/dist/collection/components/ChatUIComponent/BlockChatList.js.map +1 -0
  122. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +11 -0
  123. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js.map +1 -0
  124. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +11 -0
  125. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js.map +1 -0
  126. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +540 -0
  127. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -0
  128. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/profile-page.css +252 -0
  129. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +1175 -0
  130. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -0
  131. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +11 -0
  132. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js.map +1 -0
  133. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +790 -0
  134. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -0
  135. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +152 -0
  136. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js.map +1 -0
  137. package/dist/collection/components/ChatUIComponent/GroupCast.js +218 -0
  138. package/dist/collection/components/ChatUIComponent/GroupCast.js.map +1 -0
  139. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +590 -0
  140. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -0
  141. package/dist/collection/components/ChatUIComponent/ReactionContainer.js +103 -0
  142. package/dist/collection/components/ChatUIComponent/ReactionContainer.js.map +1 -0
  143. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +1352 -0
  144. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -0
  145. package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +277 -0
  146. package/dist/collection/components/Login.js +118 -0
  147. package/dist/collection/components/Login.js.map +1 -0
  148. package/dist/collection/components/Signup.js +177 -0
  149. package/dist/collection/components/Signup.js.map +1 -0
  150. package/dist/collection/components/chat-main.js +131 -0
  151. package/dist/collection/components/chat-main.js.map +1 -0
  152. package/dist/collection/components/my-component/my-component.css +3 -0
  153. package/dist/collection/components/my-component/my-component.js +83 -0
  154. package/dist/collection/components/my-component/my-component.js.map +1 -0
  155. package/dist/collection/components/my-component/web-chat/WebChat.js +2686 -0
  156. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -0
  157. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +675 -0
  158. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -0
  159. package/dist/collection/components/my-component/web-chat/web-chat.css +336 -0
  160. package/dist/collection/components/theme-provider.js +182 -0
  161. package/dist/collection/components/theme-provider.js.map +1 -0
  162. package/dist/collection/constants/chat-assets.js +12 -0
  163. package/dist/collection/constants/chat-creds.js +31 -0
  164. package/dist/collection/constants/content.js +75 -0
  165. package/dist/collection/constants/urls.js +1 -0
  166. package/dist/collection/index.js +135 -0
  167. package/dist/collection/index.js.map +1 -0
  168. package/dist/collection/lib/helpers.js +205 -0
  169. package/dist/collection/lib/taguser.js +123 -0
  170. package/dist/collection/store/conversation.js +25 -0
  171. package/dist/collection/store/conversation.js.map +1 -0
  172. package/dist/collection/store/group-members.js +24 -0
  173. package/dist/collection/store/group-members.js.map +1 -0
  174. package/dist/collection/store/unread-count.js +18 -0
  175. package/dist/collection/store/unread-count.js.map +1 -0
  176. package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.js +222 -0
  177. package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.stories.js +148 -0
  178. package/dist/collection/stories/Components/AttachmentBox/AttachmentBox.js +211 -0
  179. package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js +708 -0
  180. package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.stories.js +57 -0
  181. package/dist/collection/stories/Components/AttachmentBox/Attachmentbox.stories.js +74 -0
  182. package/dist/collection/stories/Components/AttachmentBox/CameraPreview.js +231 -0
  183. package/dist/collection/stories/Components/BlockUsers/BlockUsers.js +337 -0
  184. package/dist/collection/stories/Components/Body/Body.js +48 -0
  185. package/dist/collection/stories/Components/Body/Body.stories.js +33 -0
  186. package/dist/collection/stories/Components/Buttons/Buttons.js +65 -0
  187. package/dist/collection/stories/Components/Buttons/Buttons.stories.js +132 -0
  188. package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.js +951 -0
  189. package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.stories.js +75 -0
  190. package/dist/collection/stories/Components/ChatSidebar/ContextMenu.js +109 -0
  191. package/dist/collection/stories/Components/ChatTile/ChatTile.js +290 -0
  192. package/dist/collection/stories/Components/ChatTile/ChatTile.stories.js +180 -0
  193. package/dist/collection/stories/Components/Chip/Chip.js +111 -0
  194. package/dist/collection/stories/Components/Chip/Chip.stories.js +149 -0
  195. package/dist/collection/stories/Components/ContactInfo/ContactInfo.js +1491 -0
  196. package/dist/collection/stories/Components/ContactInfo/ContactInfo.stories.js +118 -0
  197. package/dist/collection/stories/Components/ContactInfo/MediaList.js +147 -0
  198. package/dist/collection/stories/Components/ContactInfo/ProfileInfo.js +1219 -0
  199. package/dist/collection/stories/Components/ContactTile/ContactTile.js +416 -0
  200. package/dist/collection/stories/Components/ContactTile/ContactTile.stories.js +60 -0
  201. package/dist/collection/stories/Components/Dialog-Drawer/confirm.js +113 -0
  202. package/dist/collection/stories/Components/Dialog-Drawer/deletemessage.js +97 -0
  203. package/dist/collection/stories/Components/Dialog-Drawer/dialog-drawer.js +264 -0
  204. package/dist/collection/stories/Components/EmojiReactions/EmojiReactions.js +179 -0
  205. package/dist/collection/stories/Components/Footer/Footer.js +4 -0
  206. package/dist/collection/stories/Components/Footer/Footer.stories.js +155 -0
  207. package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.js +433 -0
  208. package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.stories.js +110 -0
  209. package/dist/collection/stories/Components/ForwardMessage/ForwardUi.js +46 -0
  210. package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.js +546 -0
  211. package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.stories.js +56 -0
  212. package/dist/collection/stories/Components/GroupInfo/GroupInfo.js +394 -0
  213. package/dist/collection/stories/Components/GroupInfo/GroupInfo.stories.js +107 -0
  214. package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.js +129 -0
  215. package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.stories.js +78 -0
  216. package/dist/collection/stories/Components/Head/Head.js +672 -0
  217. package/dist/collection/stories/Components/Head/Head.stories.js +91 -0
  218. package/dist/collection/stories/Components/Icon/Icon.js +115 -0
  219. package/dist/collection/stories/Components/Image/Image.js +41 -0
  220. package/dist/collection/stories/Components/Image/Image.stories.js +49 -0
  221. package/dist/collection/stories/Components/Image/Img.stories.js +178 -0
  222. package/dist/collection/stories/Components/Inputbox/Input.js +206 -0
  223. package/dist/collection/stories/Components/Inputbox/Input.stories.js +87 -0
  224. package/dist/collection/stories/Components/InstagramAccounts/InstagramAccountsPanel.js +605 -0
  225. package/dist/collection/stories/Components/Loader/Spinner/Spinner.js +60 -0
  226. package/dist/collection/stories/Components/Loader/Spinner/Spinner.stories.js +38 -0
  227. package/dist/collection/stories/Components/MainPlaceHolder/MainChatPlaceHolder.js +78 -0
  228. package/dist/collection/stories/Components/MainPlaceHolder/MainPlaceHolder.stories.js +130 -0
  229. package/dist/collection/stories/Components/MediaGallery/MediaGallery.js +868 -0
  230. package/dist/collection/stories/Components/MediaGallery/MediaGallery.stories.js +81 -0
  231. package/dist/collection/stories/Components/MembersList/MembersList.js +348 -0
  232. package/dist/collection/stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js +533 -0
  233. package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js +484 -0
  234. package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.stories.js +54 -0
  235. package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.js +683 -0
  236. package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.stories.js +49 -0
  237. package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.js +450 -0
  238. package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.stories.js +56 -0
  239. package/dist/collection/stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble.js +721 -0
  240. package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.js +139 -0
  241. package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.stories.js +63 -0
  242. package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js +576 -0
  243. package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.stories.js +50 -0
  244. package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.js +66 -0
  245. package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.stories.js +48 -0
  246. package/dist/collection/stories/Components/MessageInfo/MessageInfo.js +465 -0
  247. package/dist/collection/stories/Components/MessageInfo/MessageInfo.stories.js +111 -0
  248. package/dist/collection/stories/Components/MessageSearch/MessageSearch.js +242 -0
  249. package/dist/collection/stories/Components/MessageSearchBar/SearchBar.js +523 -0
  250. package/dist/collection/stories/Components/MessageSearchBar/SearchBar.stories.js +98 -0
  251. package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.js +51 -0
  252. package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.stories.js +79 -0
  253. package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.js +560 -0
  254. package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.stories.js +56 -0
  255. package/dist/collection/stories/Components/Placeholder/NoContactsPlaceholder.js +57 -0
  256. package/dist/collection/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js +114 -0
  257. package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.js +166 -0
  258. package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.stories.js +125 -0
  259. package/dist/collection/stories/Components/ProfileTab/ProfileTab.js +939 -0
  260. package/dist/collection/stories/Components/ProfileTab/ProfileTab.stories.js +144 -0
  261. package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.js +166 -0
  262. package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.stories.js +115 -0
  263. package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js +98 -0
  264. package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.stories.js +55 -0
  265. package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.js +27 -0
  266. package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.stories.js +28 -0
  267. package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.js +26 -0
  268. package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.stories.js +33 -0
  269. package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.js +27 -0
  270. package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.stories.js +28 -0
  271. package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.js +38 -0
  272. package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.stories.js +33 -0
  273. package/dist/collection/stories/Components/ReplyBlock/MediaIcons.js +16 -0
  274. package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.js +196 -0
  275. package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.stories.js +57 -0
  276. package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.js +645 -0
  277. package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.stories.js +58 -0
  278. package/dist/collection/stories/Components/SearchableList/SearchableList.js +393 -0
  279. package/dist/collection/stories/Components/SearchableList/SearchableList.stories.js +65 -0
  280. package/dist/collection/stories/Components/SharePopup/SharePopup.js +152 -0
  281. package/dist/collection/stories/Components/SharePopup/SharePopup.stories.js +47 -0
  282. package/dist/collection/stories/Components/Splitscreen/Splitscreen.js +157 -0
  283. package/dist/collection/stories/Components/Splitscreen/Splitscreen.stories.js +100 -0
  284. package/dist/collection/stories/Components/TestFooter/MentionUserList.js +194 -0
  285. package/dist/collection/stories/Components/TestFooter/TestFooter.js +1339 -0
  286. package/dist/collection/stories/Components/TestFooter/TestFooter.stories.js +89 -0
  287. package/dist/collection/stories/Components/Text/Text.js +57 -0
  288. package/dist/collection/stories/Components/Text/Text.stories.js +83 -0
  289. package/dist/collection/stories/Components/TextStyle/TextStyle.js +38 -0
  290. package/dist/collection/stories/Components/TextStyle/TextStyle.stories.js +50 -0
  291. package/dist/collection/stories/Components/Time/Timestamp.js +50 -0
  292. package/dist/collection/stories/Components/Time/Timestamp.stories.js +34 -0
  293. package/dist/collection/stories/Components/Toaster/Toaster.js +94 -0
  294. package/dist/collection/stories/Components/Toaster/Toaster.stories.js +108 -0
  295. package/dist/collection/stories/Components/Toaster/toast-helper.js +79 -0
  296. package/dist/collection/stories/Components/Toaster/toast-helper.js.map +1 -0
  297. package/dist/collection/stories/Components/final/final.js +86 -0
  298. package/dist/collection/stories/Components/final/final.stories.js +30 -0
  299. package/dist/collection/stories/assets/SEARCH ICON.svg +1 -0
  300. package/dist/collection/types/ConversationDetailsTypes.js +2 -0
  301. package/dist/collection/types/ConversationDetailsTypes.js.map +1 -0
  302. package/dist/collection/utils/chatSdk.js +14 -0
  303. package/dist/collection/utils/getFomattedDate.js +34 -0
  304. package/dist/collection/utils/getFomattedDate.js.map +1 -0
  305. package/dist/collection/utils/unixTimeConverter.js +28 -0
  306. package/dist/collection/utils/utils.js +4 -0
  307. package/dist/collection/utils/utils.js.map +1 -0
  308. package/dist/esm/BlockChatList-9fc3a42b.js +421 -0
  309. package/dist/esm/BlockChatList-9fc3a42b.js.map +1 -0
  310. package/dist/esm/DocumentMessageBubble-b67726f2.js +491 -0
  311. package/dist/esm/DocumentMessageBubble-b67726f2.js.map +1 -0
  312. package/dist/esm/Image-bb9efda3.js +121 -0
  313. package/dist/esm/Image-bb9efda3.js.map +1 -0
  314. package/dist/esm/ImageMessageBubble-0e473f6e.js +673 -0
  315. package/dist/esm/ImageMessageBubble-0e473f6e.js.map +1 -0
  316. package/dist/esm/IsometrikLogo-14db76af.js +42 -0
  317. package/dist/esm/IsometrikLogo-14db76af.js.map +1 -0
  318. package/dist/esm/MessageSearch-4101a627.js +5875 -0
  319. package/dist/esm/MessageSearch-4101a627.js.map +1 -0
  320. package/dist/esm/ReactionsContainer-bdd74a3c.js +373 -0
  321. package/dist/esm/ReactionsContainer-bdd74a3c.js.map +1 -0
  322. package/dist/esm/Text-3b0b3898.js +58 -0
  323. package/dist/esm/Text-3b0b3898.js.map +1 -0
  324. package/dist/esm/VideoMessageBubble-88a7a53e.js +569 -0
  325. package/dist/esm/VideoMessageBubble-88a7a53e.js.map +1 -0
  326. package/dist/esm/WebChat-5448d615.js +2882 -0
  327. package/dist/esm/WebChat-5448d615.js.map +1 -0
  328. package/dist/esm/app-globals-0f993ce5.js +5 -0
  329. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  330. package/dist/esm/audio-bubble_8.entry.js +21001 -0
  331. package/dist/esm/audio-bubble_8.entry.js.map +1 -0
  332. package/dist/esm/block-chat-list.entry.js +8 -0
  333. package/dist/esm/block-chat-list.entry.js.map +1 -0
  334. package/dist/esm/chat-app.entry.js +51 -0
  335. package/dist/esm/chat-app.entry.js.map +1 -0
  336. package/dist/esm/chat-assets-bd8778d5.js +6 -0
  337. package/dist/esm/chat-assets-bd8778d5.js.map +1 -0
  338. package/dist/esm/chat-creds-ff086f05.js +35 -0
  339. package/dist/esm/chat-creds-ff086f05.js.map +1 -0
  340. package/dist/esm/chat-document-message-bubble.entry.js +20 -0
  341. package/dist/esm/chat-document-message-bubble.entry.js.map +1 -0
  342. package/dist/esm/chat-image-message-bubble.entry.js +22 -0
  343. package/dist/esm/chat-image-message-bubble.entry.js.map +1 -0
  344. package/dist/esm/chat-video-message-bubble.entry.js +20 -0
  345. package/dist/esm/chat-video-message-bubble.entry.js.map +1 -0
  346. package/dist/esm/content-5aea5e39.js +79 -0
  347. package/dist/esm/content-5aea5e39.js.map +1 -0
  348. package/dist/esm/dialog-drawer-9fa083b1.js +5304 -0
  349. package/dist/esm/dialog-drawer-9fa083b1.js.map +1 -0
  350. package/dist/esm/forward-memebers.entry.js +124 -0
  351. package/dist/esm/forward-memebers.entry.js.map +1 -0
  352. package/dist/esm/group-members-bb3c8db7.js +37 -0
  353. package/dist/esm/group-members-bb3c8db7.js.map +1 -0
  354. package/dist/esm/groupcast-d1c54a27.js +187 -0
  355. package/dist/esm/groupcast-d1c54a27.js.map +1 -0
  356. package/dist/esm/imagePlaceholder-e544f70b.js +4360 -0
  357. package/dist/esm/imagePlaceholder-e544f70b.js.map +1 -0
  358. package/dist/esm/index-fddf30b7.js +3093 -0
  359. package/dist/esm/index-fddf30b7.js.map +1 -0
  360. package/dist/esm/index.js +139 -0
  361. package/dist/esm/index.js.map +1 -0
  362. package/dist/esm/isometrik-webchat.js +49 -0
  363. package/dist/esm/isometrik-webchat.js.map +1 -0
  364. package/dist/esm/loader.js +13 -0
  365. package/dist/esm/loader.js.map +1 -0
  366. package/dist/esm/login-page.entry.js +81 -0
  367. package/dist/esm/login-page.entry.js.map +1 -0
  368. package/dist/esm/member-add.entry.js +118 -0
  369. package/dist/esm/member-add.entry.js.map +1 -0
  370. package/dist/esm/message-reaction-ad47ea1a.js +20 -0
  371. package/dist/esm/message-reaction-ad47ea1a.js.map +1 -0
  372. package/dist/esm/my-component.entry.js +25 -0
  373. package/dist/esm/my-component.entry.js.map +1 -0
  374. package/dist/esm/reaction-container.entry.js +48 -0
  375. package/dist/esm/reaction-container.entry.js.map +1 -0
  376. package/dist/esm/shadow-css-7ad5caf8.js +334 -0
  377. package/dist/esm/shadow-css-7ad5caf8.js.map +1 -0
  378. package/dist/esm/signup-page.entry.js +139 -0
  379. package/dist/esm/signup-page.entry.js.map +1 -0
  380. package/dist/esm/taguser-e9032d65.js +510 -0
  381. package/dist/esm/taguser-e9032d65.js.map +1 -0
  382. package/dist/esm/theme-provider_2.entry.js +108 -0
  383. package/dist/esm/theme-provider_2.entry.js.map +1 -0
  384. package/dist/esm/toast-helper-840fd8dc.js +82 -0
  385. package/dist/esm/toast-helper-840fd8dc.js.map +1 -0
  386. package/dist/esm/utils-11fcde98.js +7 -0
  387. package/dist/esm/utils-11fcde98.js.map +1 -0
  388. package/dist/index.cjs.js +1 -0
  389. package/dist/index.js +1 -0
  390. package/dist/isometrik-webchat/index.esm.js +2 -0
  391. package/dist/isometrik-webchat/index.esm.js.map +1 -0
  392. package/dist/isometrik-webchat/isometrik-webchat.css +2 -0
  393. package/dist/isometrik-webchat/isometrik-webchat.esm.js +2 -0
  394. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -0
  395. package/dist/isometrik-webchat/p-12774661.js +2 -0
  396. package/dist/isometrik-webchat/p-12774661.js.map +1 -0
  397. package/dist/isometrik-webchat/p-12e56271.js +549 -0
  398. package/dist/isometrik-webchat/p-12e56271.js.map +1 -0
  399. package/dist/isometrik-webchat/p-1415e589.js +2 -0
  400. package/dist/isometrik-webchat/p-1415e589.js.map +1 -0
  401. package/dist/isometrik-webchat/p-18f8d210.js +13 -0
  402. package/dist/isometrik-webchat/p-18f8d210.js.map +1 -0
  403. package/dist/isometrik-webchat/p-1b2461f4.js +357 -0
  404. package/dist/isometrik-webchat/p-1b2461f4.js.map +1 -0
  405. package/dist/isometrik-webchat/p-229095d4.js +2 -0
  406. package/dist/isometrik-webchat/p-229095d4.js.map +1 -0
  407. package/dist/isometrik-webchat/p-2953d06a.entry.js +2 -0
  408. package/dist/isometrik-webchat/p-2953d06a.entry.js.map +1 -0
  409. package/dist/isometrik-webchat/p-3004a123.js +2 -0
  410. package/dist/isometrik-webchat/p-3004a123.js.map +1 -0
  411. package/dist/isometrik-webchat/p-3044698a.js +2 -0
  412. package/dist/isometrik-webchat/p-3044698a.js.map +1 -0
  413. package/dist/isometrik-webchat/p-40517d7f.js +1098 -0
  414. package/dist/isometrik-webchat/p-40517d7f.js.map +1 -0
  415. package/dist/isometrik-webchat/p-42a62cf2.js +2 -0
  416. package/dist/isometrik-webchat/p-42a62cf2.js.map +1 -0
  417. package/dist/isometrik-webchat/p-48e1d174.js +45 -0
  418. package/dist/isometrik-webchat/p-48e1d174.js.map +1 -0
  419. package/dist/isometrik-webchat/p-48e243ec.entry.js +2 -0
  420. package/dist/isometrik-webchat/p-48e243ec.entry.js.map +1 -0
  421. package/dist/isometrik-webchat/p-4d2aca06.js +257 -0
  422. package/dist/isometrik-webchat/p-4d2aca06.js.map +1 -0
  423. package/dist/isometrik-webchat/p-610bfd8a.js +2 -0
  424. package/dist/isometrik-webchat/p-610bfd8a.js.map +1 -0
  425. package/dist/isometrik-webchat/p-674e4bb0.js +9 -0
  426. package/dist/isometrik-webchat/p-674e4bb0.js.map +1 -0
  427. package/dist/isometrik-webchat/p-8490e13d.js +192 -0
  428. package/dist/isometrik-webchat/p-8490e13d.js.map +1 -0
  429. package/dist/isometrik-webchat/p-858b0da8.entry.js +2 -0
  430. package/dist/isometrik-webchat/p-858b0da8.entry.js.map +1 -0
  431. package/dist/isometrik-webchat/p-89108249.entry.js +5010 -0
  432. package/dist/isometrik-webchat/p-89108249.entry.js.map +1 -0
  433. package/dist/isometrik-webchat/p-8dcdea59.js +2963 -0
  434. package/dist/isometrik-webchat/p-8dcdea59.js.map +1 -0
  435. package/dist/isometrik-webchat/p-92d0b21c.js +2 -0
  436. package/dist/isometrik-webchat/p-92d0b21c.js.map +1 -0
  437. package/dist/isometrik-webchat/p-ada9c8e8.entry.js +2 -0
  438. package/dist/isometrik-webchat/p-ada9c8e8.entry.js.map +1 -0
  439. package/dist/isometrik-webchat/p-adbb398d.entry.js +2 -0
  440. package/dist/isometrik-webchat/p-adbb398d.entry.js.map +1 -0
  441. package/dist/isometrik-webchat/p-b07dd267.js +2 -0
  442. package/dist/isometrik-webchat/p-b07dd267.js.map +1 -0
  443. package/dist/isometrik-webchat/p-bf0aeb22.entry.js +2 -0
  444. package/dist/isometrik-webchat/p-bf0aeb22.entry.js.map +1 -0
  445. package/dist/isometrik-webchat/p-bfd51dd4.entry.js +2 -0
  446. package/dist/isometrik-webchat/p-bfd51dd4.entry.js.map +1 -0
  447. package/dist/isometrik-webchat/p-c50aa410.entry.js +2 -0
  448. package/dist/isometrik-webchat/p-c50aa410.entry.js.map +1 -0
  449. package/dist/isometrik-webchat/p-cd34448c.entry.js +2 -0
  450. package/dist/isometrik-webchat/p-cd34448c.entry.js.map +1 -0
  451. package/dist/isometrik-webchat/p-d4b8ece6.entry.js +2 -0
  452. package/dist/isometrik-webchat/p-d4b8ece6.entry.js.map +1 -0
  453. package/dist/isometrik-webchat/p-de8a8642.js +197 -0
  454. package/dist/isometrik-webchat/p-de8a8642.js.map +1 -0
  455. package/dist/isometrik-webchat/p-e09b32eb.js +591 -0
  456. package/dist/isometrik-webchat/p-e09b32eb.js.map +1 -0
  457. package/dist/isometrik-webchat/p-e1255160.js +2 -0
  458. package/dist/isometrik-webchat/p-e1255160.js.map +1 -0
  459. package/dist/isometrik-webchat/p-e3731295.js +274 -0
  460. package/dist/isometrik-webchat/p-e3731295.js.map +1 -0
  461. package/dist/isometrik-webchat/p-e4efea64.entry.js +2 -0
  462. package/dist/isometrik-webchat/p-e4efea64.entry.js.map +1 -0
  463. package/dist/isometrik-webchat/p-ef6e482a.entry.js +2 -0
  464. package/dist/isometrik-webchat/p-ef6e482a.entry.js.map +1 -0
  465. package/dist/isometrik-webchat/p-f1f5d5bd.js +3 -0
  466. package/dist/isometrik-webchat/p-f1f5d5bd.js.map +1 -0
  467. package/dist/isometrik-webchat/p-ff9f3dfe.js +203 -0
  468. package/dist/isometrik-webchat/p-ff9f3dfe.js.map +1 -0
  469. package/dist/loader/cdn.js +1 -0
  470. package/dist/loader/index.cjs.js +1 -0
  471. package/dist/loader/index.d.ts +24 -0
  472. package/dist/loader/index.es2017.js +1 -0
  473. package/dist/loader/index.js +2 -0
  474. package/dist/loader/package.json +11 -0
  475. package/dist/types/app-root.d.ts +0 -0
  476. package/dist/types/components/ChatUIComponent/AddMember.d.ts +13 -0
  477. package/dist/types/components/ChatUIComponent/AudioBubble.d.ts +39 -0
  478. package/dist/types/components/ChatUIComponent/BlockChatList.d.ts +13 -0
  479. package/dist/types/components/ChatUIComponent/ChatDocumentMessageBubble.d.ts +5 -0
  480. package/dist/types/components/ChatUIComponent/ChatImageMessageBubble.d.ts +5 -0
  481. package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +42 -0
  482. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +85 -0
  483. package/dist/types/components/ChatUIComponent/ChatVideoMessageBubble.d.ts +5 -0
  484. package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +154 -0
  485. package/dist/types/components/ChatUIComponent/ForwardMessageList.d.ts +15 -0
  486. package/dist/types/components/ChatUIComponent/GroupCast.d.ts +26 -0
  487. package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +45 -0
  488. package/dist/types/components/ChatUIComponent/ReactionContainer.d.ts +12 -0
  489. package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +120 -0
  490. package/dist/types/components/Login.d.ts +13 -0
  491. package/dist/types/components/Signup.d.ts +17 -0
  492. package/dist/types/components/chat-main.d.ts +15 -0
  493. package/dist/types/components/my-component/my-component.d.ts +16 -0
  494. package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +42 -0
  495. package/dist/types/components/theme-provider.d.ts +44 -0
  496. package/dist/types/components.d.ts +838 -0
  497. package/dist/types/index.d.ts +37 -0
  498. package/dist/types/stencil-public-runtime.d.ts +1678 -0
  499. package/dist/types/store/conversation.d.ts +17 -0
  500. package/dist/types/store/group-members.d.ts +18 -0
  501. package/dist/types/store/unread-count.d.ts +10 -0
  502. package/dist/types/stories/Components/Toaster/toast-helper.d.ts +8 -0
  503. package/dist/types/types/ConversationDetailsTypes.d.ts +52 -0
  504. package/dist/types/utils/getFomattedDate.d.ts +1 -0
  505. package/dist/types/utils/utils.d.ts +1 -0
  506. package/package.json +89 -0
  507. package/readme.md +569 -0
@@ -0,0 +1,79 @@
1
+ import { MessageUnreadCount } from './MessageUnreadCount';
2
+
3
+ export default {
4
+ title: 'Atoms/MessageUnreadCount',
5
+ tags: ['autodocs'],
6
+ render: (args) => MessageUnreadCount(args),
7
+ argTypes: {
8
+ content: { control: 'text' },
9
+ color: { control: 'color' },
10
+ fontSize: { control: 'text' },
11
+ textAlign: { control: 'select', options: ['left', 'center', 'right', 'justify'] },
12
+ fontWeight: { control: 'select', options: ['normal', 'bold', 'bolder', 'lighter'] },
13
+ fontStyle: { control: 'select', options: ['normal', 'italic', 'oblique'] },
14
+ backgroundColor: { control: 'color' },
15
+ borderColor: { control: 'color' },
16
+ borderWidth: { control: 'text' },
17
+ borderStyle: { control: 'select', options: ['solid', 'dashed', 'dotted', 'double', 'groove'] },
18
+ borderRadius: { control: 'text' },
19
+ fontFamily: { control: 'text' },
20
+ width: {control: 'text'},
21
+ height: { control: 'text' },
22
+ padding: { control: 'text' },
23
+ },
24
+ args: {
25
+ content: 'Sample Text',
26
+ color: 'black',
27
+ fontSize: '16px',
28
+ textAlign: 'center',
29
+ fontWeight: 'normal',
30
+ fontStyle: 'normal',
31
+ backgroundColor: 'transparent',
32
+ padding: '0px',
33
+ borderRadius: '4px',
34
+ fontFamily: '',
35
+ width:'20px ',
36
+ height: '20px',
37
+
38
+ },
39
+ };
40
+
41
+ export const Hollow = {
42
+ args:{
43
+ content:"9+",
44
+ color:'#000000',
45
+ fontSize:"12px",
46
+ textAlign:"right",
47
+ fontWeight:'500',
48
+ fontStyle:'normal',
49
+ backgroundColor:'transparent',
50
+ padding:"5px",
51
+ borderRadius:'50%',
52
+ fontFamily:'',
53
+ width:'20px',
54
+ height:"20px",
55
+ borderColor:'#000000',
56
+ borderWidth:'1px',
57
+ borderColor:'black',
58
+ borderStyle:'solid',
59
+ },
60
+ };
61
+
62
+ export const Filled = {
63
+ args:{
64
+ content:"9+",
65
+ color:'white',
66
+ fontSize:'12px',
67
+ textAlign:"left",
68
+ fontWeight:"600",
69
+ fontStyle:"normal",
70
+ backgroundColor:'#e854d4',
71
+ padding:"5px",
72
+ borderRadius:'50%',
73
+ fontFamily:'Arial, sans-serif',
74
+ width:'20px',
75
+ height: '20px',
76
+ },
77
+ };
78
+
79
+
@@ -0,0 +1,560 @@
1
+ import { css, html, LitElement } from 'lit';
2
+ import { Text } from '../Text/Text';
3
+ import '../ContactTile/ContactTile.js';
4
+ import '../GroupChatContacts/GroupChatContacts.js';
5
+ import '../../../stories/Components/Loader/Spinner/Spinner.js';
6
+ import '../Placeholder/NoContactsPlaceholder.js';
7
+ import { WEB_CONTENT } from '../../../constants/content.js';
8
+ import { Image } from '../Image/Image.js';
9
+ import { Group } from '../../../constants/chat-assets.js';
10
+
11
+ class NewChatSidebar extends LitElement {
12
+ static styles = css`
13
+ .searchable-list-topbar svg {
14
+ cursor: pointer;
15
+ }
16
+
17
+ ::-webkit-scrollbar {
18
+ width: 5px;
19
+ }
20
+
21
+ ::-webkit-scrollbar-track {
22
+ background: transparent;
23
+ }
24
+
25
+ ::-webkit-scrollbar-thumb {
26
+ background-color: var(--bg-primary-light) !important;
27
+ border-radius: 10px;
28
+ }
29
+
30
+ input {
31
+ border: none;
32
+ outline: none;
33
+ padding: 5px;
34
+ width: 97%;
35
+ background-color: var(--bg-secondary-color);
36
+ color: var(--text-primary-color);
37
+ }
38
+
39
+ input::placeholder {
40
+ color: var(--text-primary-color);
41
+ }
42
+ .new-chat-container {
43
+ display: flex;
44
+ flex-direction: column;
45
+ gap: 5px;
46
+ height: 100%;
47
+ width: 100%;
48
+ }
49
+ .new-chat-topbar {
50
+ display: flex;
51
+ flex-direction: row;
52
+ align-items: center;
53
+ gap: 20px;
54
+ padding: 10px;
55
+ font-size: var(--title-font-size);
56
+ }
57
+ .new-chat-topbar svg {
58
+ cursor: pointer;
59
+ }
60
+ .new-chat-sidebar-searchbar {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: 5px;
64
+ padding: 5px 10px;
65
+ border-radius: 5px;
66
+ margin: 10px;
67
+ background-color: var(--bg-secondary-color);
68
+ color: var(--text-primary-color);
69
+ }
70
+ .new-chat-sidebar-searchbar input{
71
+ height:40px;
72
+ font-size:1rem;
73
+ }
74
+
75
+ .new-chat-sidebar-searchbar svg {
76
+ width: 20px;
77
+ height: 20px;
78
+ }
79
+
80
+ .new-chat-sidebar-body {
81
+ display: flex;
82
+ flex-direction: column;
83
+ width: 100%;
84
+ background-color: var(--bg-primary-color);
85
+ flex-grow: 1;
86
+ overflow-y: auto;
87
+ }
88
+ .new-chat-tile-list {
89
+ width: 100%;
90
+ max-height: 90%;
91
+ overflow-y: auto;
92
+ overflow-x: hidden;
93
+ flex-grow: 1;
94
+ }
95
+
96
+ .create-group-button,
97
+ .create-groupcast-button {
98
+ display: flex;
99
+ align-items: center;
100
+ gap: 5px;
101
+ padding: 15px;
102
+ border-radius: 5px;
103
+ background-color: var(--bg-primary-light);
104
+ cursor: pointer;
105
+ font-size: 18px;
106
+ color: var(--text-primary-color);
107
+ }
108
+
109
+
110
+ .create-groupcast-button {
111
+ margin-top: 10px;
112
+ }
113
+
114
+ .create-group-button svg,
115
+ .create-groupcast-button svg {
116
+ background-color: var(--bg-primary-color);
117
+ width: 35px;
118
+ height: 35px;
119
+ padding: 5px;
120
+ border-radius: 50%;
121
+ }
122
+
123
+ .loading-container {
124
+ width: 100%;
125
+ bottom: 0;
126
+ left: 0;
127
+ background-color: var(--bg-primary-color);
128
+ padding: 10px;
129
+ }
130
+
131
+
132
+ .group-chat-overlay {
133
+ position: fixed;
134
+ top: 0;
135
+ left: 0;
136
+ width: 25vw;
137
+ height: 100%;
138
+ background-color: rgba(0, 0, 0, 0.7);
139
+ display: flex;
140
+ z-index: 1000;
141
+ transition: transform 0.3s ease;
142
+ transform: translateX(-100%);
143
+ }
144
+
145
+ .group-chat-overlay.show {
146
+ transform: translateX(0);
147
+ }
148
+
149
+ .group-chat-overlay.hide {
150
+ transform: translateX(-100%);
151
+ }
152
+
153
+ group-chat-contacts {
154
+ width: 95%;
155
+ height: 100%;
156
+ }
157
+
158
+ .loader {
159
+ display: flex;
160
+ justify-content: center;
161
+ align-items: center;
162
+ height: 100%;
163
+ color: var(--text-primary-color);
164
+ }
165
+
166
+ .loader:after {
167
+ content: '';
168
+ width: 20px;
169
+ height: 20px;
170
+ border: 2px solid #f3f3f3;
171
+ border-top: 2px solid var(--bg-primary-light);
172
+ border-radius: 50%;
173
+ animation: spin 1s linear infinite;
174
+ }
175
+
176
+ @keyframes spin {
177
+ 0% {
178
+ transform: rotate(0deg);
179
+ }
180
+ 100% {
181
+ transform: rotate(360deg);
182
+ }
183
+ }
184
+
185
+ @media (width < 768px) {
186
+ .new-chat-container {
187
+ width: 100%;
188
+ }
189
+ `;
190
+ static properties = {
191
+ bgColor: { type: String },
192
+ borderWidth: { type: String },
193
+ borderColor: { type: String },
194
+ borderStyle: { type: String },
195
+ borderRadius: { type: String },
196
+ padding: { type: String },
197
+ height: { type: String },
198
+ width: { type: String },
199
+ label: { type: String },
200
+ fontSize: { type: String },
201
+ fontFamily: { type: String },
202
+ textColor: { type: String },
203
+ contacts: { type: Array },
204
+ closeNewChatSidebar: { type: Function },
205
+ nonBlockedContacts: { type: Array },
206
+ searchQuery: { type: String },
207
+ isNoContactsFound: { type: Boolean },
208
+ showGroupChatContacts: { type: Boolean },
209
+ isLoading: { type: Boolean },
210
+ showGroupCastContacts: { type: Boolean },
211
+ isLoadingMember: { type: Boolean },
212
+ hasMoreMembers: { type: Boolean },
213
+ isPaginationMember: { type: Boolean },
214
+ renderComponentName: { type: String },
215
+ };
216
+
217
+ constructor() {
218
+ super();
219
+ this.fontSize = '18px';
220
+ this.bgColor = '#ffffff';
221
+ this.borderWidth = '1px';
222
+ this.borderColor = '#000000';
223
+ this.borderStyle = 'solid';
224
+ this.borderRadius = '5px';
225
+ this.padding = '10px 0px';
226
+ this.height = 'auto';
227
+ this.label = 'New Chat';
228
+ this.fontFamily = 'Arial, sans-serif';
229
+ this.textColor = '#000000';
230
+ this.searchQuery = '';
231
+ this.debounceTimeout = null;
232
+ this.DEBOUNCE_DELAY = 700; // 700ms debounce delay
233
+ this.showGroupChatContacts = false;
234
+ this.isLoading = false;
235
+ this.nonBlockedContacts = [];
236
+ this.isLoadingMore = false;
237
+ this.hasSearchQuery = false;
238
+ this.showGroupCastContacts = false;
239
+
240
+ this.addEventListener('close-all-overlays', () => {
241
+ this.closeAllOverlays();
242
+ });
243
+ }
244
+
245
+ // updated(changedProperties) {
246
+ // if (changedProperties.has('nonBlockedContacts')) {
247
+ // this.isLoading = false;
248
+ // this.isLoadingMore = false;
249
+ // }
250
+ // }
251
+
252
+ // willUpdate(changedProperties) {
253
+
254
+ // if (changedProperties.has('conversationData')) {
255
+ // this.isLoading = false;
256
+ // this.isLoadingMore = false;
257
+ // }
258
+ // }
259
+
260
+ willUpdate(changedProperties) {
261
+ if (changedProperties.has('conversationData')) {
262
+ this.isLoading = false;
263
+ }
264
+ }
265
+
266
+ clearSearchInput() {
267
+ const searchInput = this.shadowRoot.querySelector('.new-chat-sidebar-searchbar input');
268
+ if (searchInput) {
269
+ searchInput.value = '';
270
+ this.hasSearchQuery = false;
271
+ this.isLoading = true;
272
+
273
+ // Dispatch an input event to trigger the search reset
274
+ this.dispatchEvent(
275
+ new CustomEvent('new-chat-input-changed', {
276
+ detail: {
277
+ inputValue: '',
278
+ isDebounced: false,
279
+ },
280
+ bubbles: true,
281
+ composed: true,
282
+ }),
283
+ );
284
+ }
285
+ }
286
+
287
+ render() {
288
+ const svgSize = `calc(${this.fontSize} + 4px)`;
289
+
290
+ return this.showGroupCastContacts
291
+ ? html`
292
+ <group-chat-contacts
293
+ .closeGroupChatContacts=${() => this.closeGroupCastOverlay()}
294
+ height="96%"
295
+ width="100%"
296
+ label="Create New Groupcast"
297
+ bgColor="var(--bg-primary-color)"
298
+ textColor="var(--text-primary-color)"
299
+ .nonBlockedContacts=${this.nonBlockedContacts}
300
+ .isNoContactsFound=${this.isNoContactsFound}
301
+ .isPaginationMember=${this.isPaginationMember}
302
+ .isLoadingMember=${this.isLoadingMember}
303
+ .hasMoreMembers=${this.hasMoreMembers}
304
+ .isGroupCast=${true}
305
+ ></group-chat-contacts>
306
+ `
307
+ : this.showGroupChatContacts
308
+ ? html`
309
+ <group-chat-contacts
310
+ .closeGroupChatContacts=${() => this.closeGroupChatOverlay()}
311
+ height="96%"
312
+ width="100%"
313
+ label="Create New Group"
314
+ bgColor="var(--bg-primary-color)"
315
+ textColor="var(--text-primary-color)"
316
+ .nonBlockedContacts=${this.nonBlockedContacts}
317
+ .isNoContactsFound=${this.isNoContactsFound}
318
+ .isPaginationMember=${this.isPaginationMember}
319
+ .isLoadingMember=${this.isLoadingMember}
320
+ .hasMoreMembers=${this.hasMoreMembers}
321
+ ></group-chat-contacts>
322
+ `
323
+ : html`
324
+ <div class="new-chat-container" style="background-color: ${this.bgColor}; padding: ${this.padding}; height: ${this.height}; width: ${this.width};">
325
+ <div class="new-chat-topbar">
326
+ <svg @click=${this.closeNewChatSidebar} xmlns="http://www.w3.org/2000/svg" height="${svgSize}" viewBox="0 -960 960 960" width="${svgSize}" fill="${this.textColor}">
327
+ <path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z" />
328
+ </svg>
329
+ ${Text({
330
+ content: this.label,
331
+ fontSize: this.fontSize,
332
+ fontFamily: this.fontFamily,
333
+ color: this.textColor,
334
+ fontWeight: 500,
335
+ })}
336
+ </div>
337
+ <div class="new-chat-sidebar-body">
338
+ <div class="new-chat-sidebar-searchbar">
339
+ <input id="search-input" placeholder="${WEB_CONTENT.PLACEHOLDER_CONTENT.SEARCH_FOR_NAME_OR_NUMBER}" @input="${this.handleInputChange}" />
340
+ ${this.hasSearchQuery
341
+ ? html`
342
+ <svg
343
+ style="cursor: pointer;"
344
+ @click=${this.clearSearchInput}
345
+ width="${svgSize}"
346
+ height="${svgSize}"
347
+ viewBox="0 0 24 24"
348
+ fill="none"
349
+ xmlns="http://www.w3.org/2000/svg"
350
+ >
351
+ <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
352
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
353
+ <g id="SVGRepo_iconCarrier">
354
+ <path
355
+ d="M6.22566 4.81096C5.83514 4.42044 5.20197 4.42044 4.81145 4.81096C4.42092 5.20148 4.42092 5.83465 4.81145 6.22517L10.5862 11.9999L4.81151 17.7746C4.42098 18.1651 4.42098 18.7983 4.81151 19.1888C5.20203 19.5793 5.8352 19.5793 6.22572 19.1888L12.0004 13.4141L17.7751 19.1888C18.1656 19.5793 18.7988 19.5793 19.1893 19.1888C19.5798 18.7983 19.5798 18.1651 19.1893 17.7746L13.4146 11.9999L19.1893 6.22517C19.5799 5.83465 19.5799 5.20148 19.1893 4.81096C18.7988 4.42044 18.1657 4.42044 17.7751 4.81096L12.0004 10.5857L6.22566 4.81096Z"
356
+ fill="${this.textColor}"
357
+ />
358
+ </g>
359
+ </svg>
360
+ `
361
+ : html`
362
+ <svg width="${svgSize}" height="${svgSize}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
363
+ <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
364
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
365
+ <g id="SVGRepo_iconCarrier">
366
+ <path
367
+ fill-rule="evenodd"
368
+ clip-rule="evenodd"
369
+ d="M17.0392 15.6244C18.2714 14.084 19.0082 12.1301 19.0082 10.0041C19.0082 5.03127 14.9769 1 10.0041 1C5.03127 1 1 5.03127 1 10.0041C1 14.9769 5.03127 19.0082 10.0041 19.0082C12.1301 19.0082 14.084 18.2714 15.6244 17.0392L21.2921 22.707C21.6828 23.0977 22.3163 23.0977 22.707 22.707C23.0977 22.3163 23.0977 21.6828 22.707 21.2921L17.0392 15.6244ZM10.0041 17.0173C6.1308 17.0173 2.99087 13.8774 2.99087 10.0041C2.99087 6.1308 6.1308 2.99087 10.0041 2.99087C13.8774 2.99087 17.0173 6.1308 17.0173 10.0041C17.0173 13.8774 13.8774 17.0173 10.0041 17.0173Z"
370
+ fill="${this.textColor}"
371
+ ></path>
372
+ </g>
373
+ </svg>
374
+ `}
375
+ </div>
376
+ <div class="create-group-button" @click="${this.handleCreateGroupClick}">
377
+ <svg xmlns="http://www.w3.org/2000/svg" height="32px" viewBox="0 -960 960 960" width="32px" fill="var(--text-primary-color)">
378
+ <path
379
+ d="M40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm720 0v-120q0-44-24.5-84.5T666-434q51 6 96 20.5t84 35.5q36 20 55 44.5t19 53.5v120H760ZM360-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47Zm400-160q0 66-47 113t-113 47q-11 0-28-2.5t-28-5.5q27-32 41.5-71t14.5-81q0-42-14.5-81T544-792q14-5 28-6.5t28-1.5q66 0 113 47t47 113ZM120-240h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0 320Zm0-400Z"
380
+ />
381
+ </svg>
382
+ Create New Group
383
+ </div>
384
+ <div class="create-groupcast-button" @click="${this.handleCreateGroupCastClick}">
385
+ <svg xmlns="http://www.w3.org/2000/svg" height="32px" viewBox="0 -960 960 960" width="32px" fill="var(--text-primary-color)">
386
+ <path
387
+ d="M720-440v-80h160v80H720Zm48 280-128-96 48-64 128 96-48 64Zm-80-480-48-64 128-96 48 64-128 96ZM200-200v-160h-40q-33 0-56.5-23.5T80-440v-80q0-33 23.5-56.5T160-600h160l200-120v480L320-360h-40v160h-80Zm240-182v-196l-98 58H160v80h182l98 58Zm120 36v-268q27 24 43.5 58.5T620-480q0 41-16.5 75.5T560-346ZM300-480Z"
388
+ />
389
+ </svg>
390
+ Create New Groupcast
391
+ </div>
392
+ <div class="new-chat-tile-list" @scroll="${this.handleScroll}">
393
+ ${this.isLoadingMemeber
394
+ ? html`<spinner-loader
395
+ height="15px"
396
+ width="15px"
397
+ spinTime="1s"
398
+ spinnerPrimaryColor="var(--bg-primary-color)"
399
+ spinnerSecondaryColor="var(--text-primary-color)"
400
+ spinnerBorderWidth="2px"
401
+ ></spinner-loader>`
402
+ : !this.nonBlockedContacts?.length
403
+ ? html`<no-contacts-placeholder></no-contacts-placeholder>`
404
+ : html`
405
+ ${this.nonBlockedContacts.map(
406
+ contact => html`
407
+ <contact-tile
408
+ @click="${() => this.handleContactSelection(contact.userId, contact.userName)}"
409
+ bgColor="var(--bg-primary-color)"
410
+ textColor="var(--text-primary-color)"
411
+ borderWidth="0px 0px 0.5px 0px"
412
+ borderColor="var(--bg-quaternary-color)"
413
+ borderStyle="solid"
414
+ padding="18px 10px"
415
+ height="auto"
416
+ width="100%"
417
+ imageSrc="${contact.userProfileImageUrl}"
418
+ contactName="${contact.userName}"
419
+ userId="${contact.userId}"
420
+ .isCheckBox=${false}
421
+ ></contact-tile>
422
+ `,
423
+ )}
424
+ `}
425
+ ${this.isPaginationMember
426
+ ? html`<div class="loading-container">
427
+ <spinner-loader
428
+ height="15px"
429
+ width="15px"
430
+ spinTime="1s"
431
+ spinnerPrimaryColor="var(--bg-primary-color)"
432
+ spinnerSecondaryColor="var(--text-primary-color)"
433
+ spinnerBorderWidth="2px"
434
+ ></spinner-loader>
435
+ </div>`
436
+ : ''}
437
+ </div>
438
+ </div>
439
+ </div>
440
+ `;
441
+ }
442
+
443
+ handleScroll(event) {
444
+ const element = event.target;
445
+ const threshold = 1;
446
+ if (element.scrollHeight - Math.round(element.scrollTop) <= element.clientHeight + threshold && this.hasMoreMembers && !this.isPaginationMember) {
447
+ this.dispatchEvent(
448
+ new CustomEvent('new-chat-tile-list-scrolled-to-bottom', {
449
+ bubbles: true,
450
+ composed: true,
451
+ }),
452
+ );
453
+ }
454
+ }
455
+
456
+ handleInputChange(event) {
457
+ const inputValue = event.target.value;
458
+
459
+ clearTimeout(this.debounceTimeout);
460
+
461
+ this.debounceTimeout = setTimeout(() => {
462
+ // If input is empty, fetch all contacts
463
+ if (inputValue.trim() === '') {
464
+ this.dispatchEvent(
465
+ new CustomEvent('new-chat-input-changed', {
466
+ detail: { inputValue: '' },
467
+ bubbles: true,
468
+ composed: true,
469
+ }),
470
+ );
471
+ }
472
+ // If input has 3 or more characters, search with the query
473
+ else if (inputValue.length >= 3) {
474
+ this.dispatchEvent(
475
+ new CustomEvent('new-chat-input-changed', {
476
+ detail: { inputValue },
477
+ bubbles: true,
478
+ composed: true,
479
+ }),
480
+ );
481
+ }
482
+ }, 300);
483
+ }
484
+
485
+ handleContactSelection(userId, userName) {
486
+ this.dispatchEvent(
487
+ new CustomEvent('new-chat-contact-selected', {
488
+ detail: { userId, userName },
489
+ bubbles: true,
490
+ composed: true,
491
+ }),
492
+ );
493
+ this.closeNewChatSidebar();
494
+ }
495
+
496
+ handleCreateGroupClick() {
497
+ // Clear the search input
498
+ const searchInput = this.shadowRoot.querySelector('.new-chat-sidebar-searchbar input');
499
+ if (searchInput) {
500
+ searchInput.value = '';
501
+ }
502
+ this.showGroupChatContacts = true;
503
+ this.requestUpdate();
504
+
505
+ this.dispatchEvent(
506
+ new CustomEvent('create-group-clicked', {
507
+ detail: { isGroup: true },
508
+ bubbles: true,
509
+ composed: true,
510
+ }),
511
+ );
512
+ }
513
+
514
+ closeGroupChatOverlay() {
515
+ this.dispatchEvent(
516
+ new CustomEvent('close-group-member-list', {
517
+ detail: {
518
+ isGroup: false,
519
+ },
520
+ bubbles: true,
521
+ composed: true,
522
+ }),
523
+ );
524
+ this.showGroupChatContacts = false;
525
+ this.requestUpdate();
526
+ }
527
+
528
+ closeAllOverlays() {
529
+ this.closeGroupChatOverlay();
530
+ if (this.closeNewChatSidebar) {
531
+ this.closeNewChatSidebar();
532
+ }
533
+ }
534
+
535
+ handleCreateGroupCastClick() {
536
+ // Clear the search input
537
+ const searchInput = this.shadowRoot.querySelector('.new-chat-sidebar-searchbar input');
538
+ if (searchInput) {
539
+ searchInput.value = '';
540
+ }
541
+
542
+ this.showGroupCastContacts = true;
543
+ this.requestUpdate();
544
+
545
+ this.dispatchEvent(
546
+ new CustomEvent('create-groupcast-clicked', {
547
+ detail: { isGroup: true },
548
+ bubbles: true,
549
+ composed: true,
550
+ }),
551
+ );
552
+ }
553
+
554
+ closeGroupCastOverlay() {
555
+ this.showGroupCastContacts = false;
556
+ this.requestUpdate();
557
+ }
558
+ }
559
+
560
+ customElements.define('new-chat-sidebar', NewChatSidebar);
@@ -0,0 +1,56 @@
1
+ import "./NewChatSidebar"
2
+ import { html } from "lit"
3
+ export default {
4
+
5
+ title: 'Components/NewChatSidebar',
6
+ component:'new-chat-sidebar',
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ bgColor: {control :'color'},
10
+ borderWidth: {control: 'text'},
11
+ borderColor: {control: 'color'},
12
+ borderStyle: {control: 'select', options: ['dashed', 'solid', 'dotted', 'double']},
13
+ borderRadius: {control: 'text'},
14
+ padding: {control: 'text'},
15
+ height: {control: 'text'},
16
+ width: {control: 'text'},
17
+ label: {control: 'text'},
18
+ fontSize: {control: 'text'},
19
+ fontFamily: {control: 'text'},
20
+ textColor: {control: 'color'}
21
+ }
22
+ }
23
+
24
+ render: (args) => html`
25
+ <new-chat-sidebar
26
+ .bgColor=${args.bgColor || 'transparent'}
27
+ .borderWidth=${args.borderWidth}
28
+ .borderColor=${args.borderColor}
29
+ .borderStyle=${args.borderStyle}
30
+ .borderRadius=${args.borderRadius}
31
+ .padding=${args.padding}
32
+ .height=${args.height || 'auto'}
33
+ .width=${args.width || '100%'}
34
+ .label=${args.label}
35
+ .fontSize=${args.fontSize}
36
+ .fontFamily=${args.fontFamily}
37
+ .textColor=${args.textColor}
38
+ />
39
+ `
40
+
41
+ export const Default = {
42
+ args: {
43
+ bgColor: 'transparent',
44
+ borderWidth: '2px',
45
+ borderColor: '#D4D8EB',
46
+ borderStyle: 'solid',
47
+ borderRadius: '6px',
48
+ padding: '10px 10px 10px 10px',
49
+ height: 'auto',
50
+ width: '400px',
51
+ label: 'New Chat',
52
+ fontSize: '16px',
53
+ fontFamily: 'Arial',
54
+ textColor: "black"
55
+ }
56
+ }