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,113 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-9afe62b6.js');
6
+ const WebChat = require('./WebChat-403e7ab1.js');
7
+ require('./Image-67c52acd.js');
8
+ require('./chat-creds-f4cbf400.js');
9
+ require('./dialog-drawer-9d04911c.js');
10
+ require('./content-eca5336c.js');
11
+ require('./Text-fedf6eab.js');
12
+ require('./group-members-a60fb1cb.js');
13
+ require('./toast-helper-defae4a5.js');
14
+ require('./MessageSearch-5fc9dc00.js');
15
+ require('./BlockChatList-720a703e.js');
16
+ require('./imagePlaceholder-030cc566.js');
17
+ require('./taguser-aca04ed9.js');
18
+ require('./ReactionsContainer-a6ce9059.js');
19
+ require('./groupcast-49dae5ab.js');
20
+
21
+ const ThemeProvider = class {
22
+ constructor(hostRef) {
23
+ index.registerInstance(this, hostRef);
24
+ this.themePath = undefined;
25
+ this.mode = 'light';
26
+ this.styleElement = null;
27
+ }
28
+ /**
29
+ * Watch for changes to the theme path and update the stylesheet
30
+ */
31
+ handleThemePathChange(newPath) {
32
+ if (newPath) {
33
+ this.loadThemeFromPath(newPath);
34
+ }
35
+ }
36
+ /**
37
+ * Watch for changes to theme mode
38
+ */
39
+ handleModeChange(newMode) {
40
+ this.updateThemeClass(newMode);
41
+ }
42
+ /**
43
+ * Component lifecycle method that runs once after the component is first connected to the DOM
44
+ */
45
+ componentDidLoad() {
46
+ // Load theme from path if provided
47
+ if (this.themePath) {
48
+ this.loadThemeFromPath(this.themePath);
49
+ }
50
+ // Set initial theme class
51
+ this.updateThemeClass(this.mode);
52
+ }
53
+ /**
54
+ * Update the theme class on the document body
55
+ */
56
+ updateThemeClass(mode) {
57
+ // Remove existing theme classes
58
+ document.documentElement.classList.remove('theme-light', 'theme-dark');
59
+ // Add the appropriate class
60
+ document.documentElement.classList.add(`theme-${mode}`);
61
+ // Dispatch a theme change event
62
+ const themeChangeEvent = new CustomEvent('themechange', {
63
+ detail: { mode },
64
+ bubbles: true,
65
+ composed: true
66
+ });
67
+ this.hostElement.dispatchEvent(themeChangeEvent);
68
+ }
69
+ /**
70
+ * Load a theme from a CSS file path
71
+ */
72
+ loadThemeFromPath(path) {
73
+ // Remove any existing stylesheet if it exists
74
+ if (this.styleElement) {
75
+ document.head.removeChild(this.styleElement);
76
+ }
77
+ // Create a new link element for the CSS file
78
+ this.styleElement = document.createElement('link');
79
+ this.styleElement.rel = 'stylesheet';
80
+ this.styleElement.href = path;
81
+ // Add an ID to make it easier to find and remove later if needed
82
+ this.styleElement.id = 'isometrik-theme-stylesheet';
83
+ // Append the stylesheet to the document head
84
+ document.head.appendChild(this.styleElement);
85
+ }
86
+ /**
87
+ * Public method to toggle between light and dark themes
88
+ */
89
+ async toggleTheme() {
90
+ this.mode = this.mode === 'light' ? 'dark' : 'light';
91
+ return this.mode;
92
+ }
93
+ /**
94
+ * Public method to set theme explicitly
95
+ */
96
+ async setTheme(mode) {
97
+ this.mode = mode;
98
+ return this.mode;
99
+ }
100
+ render() {
101
+ return (index.h("div", { key: '437b7df4e9fb82384b7c7eedf6438fd3585f3827', class: `theme-provider-container theme-${this.mode}` }, index.h("slot", { key: '43c375abcf9c6bcbed267a5a436ab1bc329933d6' })));
102
+ }
103
+ get hostElement() { return index.getElement(this); }
104
+ static get watchers() { return {
105
+ "themePath": ["handleThemePathChange"],
106
+ "mode": ["handleModeChange"]
107
+ }; }
108
+ };
109
+
110
+ exports.web_chat = WebChat.WebChat;
111
+ exports.theme_provider = ThemeProvider;
112
+
113
+ //# sourceMappingURL=theme-provider_2.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"theme-provider.web-chat.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;MAMa,aAAa;;;;oBAWyC,OAAO;4BAKxB,IAAI;;;;;IAMpD,qBAAqB,CAAC,OAAe;QACnC,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;SACjC;KACF;;;;IAMD,gBAAgB,CAAC,OAAyB;QACxC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;KAChC;;;;IAKD,gBAAgB;;QAEd,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACxC;;QAGD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClC;;;;IAKO,gBAAgB,CAAC,IAAsB;;QAE7C,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;;QAGvE,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;;QAGxD,MAAM,gBAAgB,GAAG,IAAI,WAAW,CAAC,aAAa,EAAE;YACtD,MAAM,EAAE,EAAE,IAAI,EAAE;YAChB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;KAClD;;;;IAKO,iBAAiB,CAAC,IAAY;;QAEpC,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC9C;;QAGD,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,YAAY,CAAC,GAAG,GAAG,YAAY,CAAC;QACrC,IAAI,CAAC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;;QAG9B,IAAI,CAAC,YAAY,CAAC,EAAE,GAAG,4BAA4B,CAAC;;QAGpD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC9C;;;;IAMD,MAAM,WAAW;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;QACrD,OAAO,IAAI,CAAC,IAAI,CAAC;KAClB;;;;IAMD,MAAM,QAAQ,CAAC,IAAsB;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC;KAClB;IAED,MAAM;QACJ,QACEA,kEAAK,KAAK,EAAE,kCAAkC,IAAI,CAAC,IAAI,EAAE,IACvDA,oEAAa,CACT,EACN;KACH;;;;;;;;;;;","names":["h"],"sources":["src/components/theme-provider.tsx"],"sourcesContent":["import { Component, Prop, h, State, Watch, Element, Method } from '@stencil/core';\n\n@Component({\n tag: 'theme-provider',\n shadow: true,\n})\nexport class ThemeProvider {\n @Element() hostElement: HTMLElement;\n \n /**\n * Path to the CSS theme file\n */\n @Prop() themePath: string;\n \n /**\n * Current theme mode\n */\n @Prop({ mutable: true, reflect: true }) mode: 'light' | 'dark' = 'light';\n \n /**\n * Internal stylesheet element reference\n */\n @State() styleElement: HTMLLinkElement | null = null;\n \n /**\n * Watch for changes to the theme path and update the stylesheet\n */\n @Watch('themePath')\n handleThemePathChange(newPath: string) {\n if (newPath) {\n this.loadThemeFromPath(newPath);\n }\n }\n \n /**\n * Watch for changes to theme mode\n */\n @Watch('mode')\n handleModeChange(newMode: 'light' | 'dark') {\n this.updateThemeClass(newMode);\n }\n \n /**\n * Component lifecycle method that runs once after the component is first connected to the DOM\n */\n componentDidLoad() {\n // Load theme from path if provided\n if (this.themePath) {\n this.loadThemeFromPath(this.themePath);\n }\n \n // Set initial theme class\n this.updateThemeClass(this.mode);\n }\n \n /**\n * Update the theme class on the document body\n */\n private updateThemeClass(mode: 'light' | 'dark') {\n // Remove existing theme classes\n document.documentElement.classList.remove('theme-light', 'theme-dark');\n \n // Add the appropriate class\n document.documentElement.classList.add(`theme-${mode}`);\n \n // Dispatch a theme change event\n const themeChangeEvent = new CustomEvent('themechange', {\n detail: { mode },\n bubbles: true,\n composed: true\n });\n this.hostElement.dispatchEvent(themeChangeEvent);\n }\n \n /**\n * Load a theme from a CSS file path\n */\n private loadThemeFromPath(path: string) {\n // Remove any existing stylesheet if it exists\n if (this.styleElement) {\n document.head.removeChild(this.styleElement);\n }\n \n // Create a new link element for the CSS file\n this.styleElement = document.createElement('link');\n this.styleElement.rel = 'stylesheet';\n this.styleElement.href = path;\n \n // Add an ID to make it easier to find and remove later if needed\n this.styleElement.id = 'isometrik-theme-stylesheet';\n \n // Append the stylesheet to the document head\n document.head.appendChild(this.styleElement);\n }\n \n /**\n * Public method to toggle between light and dark themes\n */\n @Method()\n async toggleTheme() {\n this.mode = this.mode === 'light' ? 'dark' : 'light';\n return this.mode;\n }\n \n /**\n * Public method to set theme explicitly\n */\n @Method()\n async setTheme(mode: 'light' | 'dark') {\n this.mode = mode;\n return this.mode;\n }\n \n render() {\n return (\n <div class={`theme-provider-container theme-${this.mode}`}>\n <slot></slot>\n </div>\n );\n }\n}"],"version":3}
@@ -0,0 +1,84 @@
1
+ 'use strict';
2
+
3
+ // toast-helper.ts
4
+ class ToastHelper {
5
+ constructor() {
6
+ // Create container for toasts
7
+ this.container = document.createElement('div');
8
+ this.container.style.position = 'fixed';
9
+ this.container.style.zIndex = '9999';
10
+ document.body.appendChild(this.container);
11
+ }
12
+ static getInstance() {
13
+ if (!ToastHelper.instance) {
14
+ ToastHelper.instance = new ToastHelper();
15
+ }
16
+ return ToastHelper.instance;
17
+ }
18
+ getTypeStyles(type = 'info') {
19
+ const styles = {
20
+ success: {
21
+ bgColor: 'var(--text-success-color)',
22
+ progressBarColor: 'var(--bg-primary-color)'
23
+ },
24
+ error: {
25
+ bgColor: 'var(--text-danger-color)',
26
+ progressBarColor: '#da190b'
27
+ },
28
+ warning: {
29
+ bgColor: 'var(--text-warning-color)',
30
+ progressBarColor: '#e68900'
31
+ },
32
+ info: {
33
+ bgColor: 'var(--text-info-color)',
34
+ progressBarColor: '#0b7dda'
35
+ }
36
+ };
37
+ return styles[type] || styles.info;
38
+ }
39
+ setPosition(position = 'top-right') {
40
+ const positions = {
41
+ 'top-right': { top: '20px', right: '20px', bottom: 'auto', left: 'auto' },
42
+ 'top-left': { top: '20px', right: 'auto', bottom: 'auto', left: '20px' },
43
+ 'bottom-right': { top: 'auto', right: '20px', bottom: '20px', left: 'auto' },
44
+ 'bottom-left': { top: 'auto', right: 'auto', bottom: '20px', left: '20px' },
45
+ 'top-center': { top: '20px', right: 'auto', bottom: 'auto', left: '50%', transform: 'translateX(-50%)' },
46
+ 'bottom-center': { top: 'auto', right: 'auto', bottom: '20px', left: '50%', transform: 'translateX(-50%)' }
47
+ };
48
+ Object.assign(this.container.style, positions[position]);
49
+ }
50
+ show(options) {
51
+ const { message, duration = 3000, type = 'info', position = 'top-right' } = options;
52
+ // Set container position
53
+ this.setPosition(position);
54
+ // Create toast element
55
+ const toast = document.createElement('toast-notification');
56
+ const styles = this.getTypeStyles(type);
57
+ // Set toast properties
58
+ toast.setAttribute('bgColor', styles.bgColor);
59
+ toast.setAttribute('color', 'var(--bg-primary-color)');
60
+ toast.setAttribute('progressBarColor', 'var(--bg-primary-color)');
61
+ toast.setAttribute('toastMessage', message);
62
+ toast.setAttribute('padding', '12px');
63
+ toast.setAttribute('borderRadius', '5px');
64
+ toast.setAttribute('width', '300px');
65
+ toast.style.marginBottom = '10px';
66
+ toast.style.display = 'block';
67
+ // Add toast to container
68
+ this.container.appendChild(toast);
69
+ // Remove toast after duration
70
+ setTimeout(() => {
71
+ if (toast && toast.parentNode) {
72
+ toast.parentNode.removeChild(toast);
73
+ }
74
+ }, duration);
75
+ }
76
+ }
77
+ // Export the helper function
78
+ const showToast = (options) => {
79
+ ToastHelper.getInstance().show(options);
80
+ };
81
+
82
+ exports.showToast = showToast;
83
+
84
+ //# sourceMappingURL=toast-helper-defae4a5.js.map
@@ -0,0 +1 @@
1
+ {"file":"toast-helper-defae4a5.js","mappings":"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","names":[],"sources":["src/stories/Components/Toaster/toast-helper.ts"],"sourcesContent":["// toast-helper.ts\n\ninterface ToastOptions {\n message: string;\n duration?: number;\n type?: 'success' | 'error' | 'warning' | 'info';\n position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';\n}\n\nclass ToastHelper {\n private static instance: ToastHelper;\n private container: HTMLDivElement;\n\n private constructor() {\n // Create container for toasts\n this.container = document.createElement('div');\n this.container.style.position = 'fixed';\n this.container.style.zIndex = '9999';\n document.body.appendChild(this.container);\n }\n\n public static getInstance(): ToastHelper {\n if (!ToastHelper.instance) {\n ToastHelper.instance = new ToastHelper();\n }\n return ToastHelper.instance;\n }\n\n private getTypeStyles(type: string = 'info'): { bgColor: string; progressBarColor: string } {\n const styles = {\n success: {\n bgColor: 'var(--text-success-color)',\n progressBarColor: 'var(--bg-primary-color)'\n },\n error: {\n bgColor: 'var(--text-danger-color)',\n progressBarColor: '#da190b'\n },\n warning: {\n bgColor: 'var(--text-warning-color)',\n progressBarColor: '#e68900'\n },\n info: {\n bgColor: 'var(--text-info-color)',\n progressBarColor: '#0b7dda'\n }\n };\n return styles[type] || styles.info;\n }\n\n private setPosition(position: string = 'top-right'): void {\n const positions = {\n 'top-right': { top: '20px', right: '20px', bottom: 'auto', left: 'auto' },\n 'top-left': { top: '20px', right: 'auto', bottom: 'auto', left: '20px' },\n 'bottom-right': { top: 'auto', right: '20px', bottom: '20px', left: 'auto' },\n 'bottom-left': { top: 'auto', right: 'auto', bottom: '20px', left: '20px' },\n 'top-center': { top: '20px', right: 'auto', bottom: 'auto', left: '50%', transform: 'translateX(-50%)' },\n 'bottom-center': { top: 'auto', right: 'auto', bottom: '20px', left: '50%', transform: 'translateX(-50%)' }\n };\n\n Object.assign(this.container.style, positions[position]);\n }\n\n public show(options: ToastOptions): void {\n const {\n message,\n duration = 3000,\n type = 'info',\n position = 'top-right'\n } = options;\n\n // Set container position\n this.setPosition(position);\n\n // Create toast element\n const toast = document.createElement('toast-notification');\n const styles = this.getTypeStyles(type);\n\n // Set toast properties\n toast.setAttribute('bgColor', styles.bgColor);\n toast.setAttribute('color', 'var(--bg-primary-color)');\n toast.setAttribute('progressBarColor', 'var(--bg-primary-color)');\n toast.setAttribute('toastMessage', message);\n toast.setAttribute('padding', '12px');\n toast.setAttribute('borderRadius', '5px');\n toast.setAttribute('width', '300px');\n toast.style.marginBottom = '10px';\n toast.style.display = 'block';\n\n // Add toast to container\n this.container.appendChild(toast);\n\n // Remove toast after duration\n setTimeout(() => {\n if (toast && toast.parentNode) {\n toast.parentNode.removeChild(toast);\n }\n }, duration);\n }\n}\n\n// Export the helper function\nexport const showToast = (options: ToastOptions): void => {\n ToastHelper.getInstance().show(options);\n};"],"version":3}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ function format(first, middle, last) {
4
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
5
+ }
6
+
7
+ exports.format = format;
8
+
9
+ //# sourceMappingURL=utils-bcad3386.js.map
@@ -0,0 +1 @@
1
+ {"file":"utils-bcad3386.js","mappings":";;SAAgB,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa;IACnE,OAAO,CAAC,KAAK,IAAI,EAAE,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AACjF;;;;","names":[],"sources":["src/utils/utils.ts"],"sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n"],"version":3}
@@ -0,0 +1,12 @@
1
+ import ChatSDK from 'test-iso-chat-sdk';
2
+
3
+ export const getTotalUnreadConversationsCount = async () => {
4
+ const response = await ChatSDK.getInstance().Conversation.getConversationUnreadCount();
5
+ return response?.count;
6
+ }
7
+
8
+
9
+ export const getUnreadConversations = async () => {
10
+ const response = await ChatSDK.getInstance().Conversation.getUnreadConversations();
11
+ return response.conversations;
12
+ }
@@ -0,0 +1,36 @@
1
+ import ChatSDK from 'test-iso-chat-sdk';
2
+
3
+ export const getConversationEligibleMembers = async ({conversationId, searchTag = null, limit=20, skip=0}) => {
4
+ const params = {
5
+ conversationId: conversationId,
6
+ limit: limit,
7
+ skip: skip
8
+ };
9
+
10
+ if (searchTag) {
11
+ params.searchTag = searchTag;
12
+ }
13
+
14
+ const response = await ChatSDK.getInstance().Conversation.getConversationEligibleMembers(params);
15
+ return response;
16
+ }
17
+
18
+
19
+ export const addConversationMember = async (conversationId, memberIds = []) => {
20
+ const response = await ChatSDK.getInstance().Conversation.putMembers({
21
+ conversationId: conversationId,
22
+ members: memberIds
23
+ });
24
+ return response;
25
+ }
26
+
27
+ export const removeConversationMember = async (conversationId, memberId) => {
28
+ const response = await ChatSDK.getInstance().Conversation.deleteConversationMembers({
29
+ conversationId: conversationId,
30
+ members: memberId
31
+ });
32
+ return response;
33
+ }
34
+
35
+
36
+
@@ -0,0 +1,183 @@
1
+ import ChatSDK from 'test-iso-chat-sdk';
2
+
3
+ export const getGroupcast = async ({ ids, customType, searchTag, sortByCustomType, limit, skip, sort, executionPending } = {}) => {
4
+ const params = {};
5
+
6
+ if (ids) params.ids = ids;
7
+ if (customType) params.customType = customType;
8
+ if (searchTag) params.searchTag = searchTag;
9
+ if (sortByCustomType) params.sortByCustomType = sortByCustomType;
10
+ if (limit) params.limit = limit;
11
+ if (skip) params.skip = skip;
12
+ if (sort) params.sort = sort;
13
+ if (executionPending) params.executionPending = executionPending;
14
+
15
+ const res = await ChatSDK.getInstance().groupcast.getGroupCasts(params);
16
+ return res;
17
+ };
18
+
19
+ export const postGroupCast = async ({ groupcastTitle, groupcastImageUrl, members, searchableTags, metaData, customType }) => {
20
+ const res = await ChatSDK.getInstance().groupcast.postGroupCast({
21
+ groupcastTitle,
22
+ groupcastImageUrl,
23
+ members,
24
+ searchableTags,
25
+ metaData,
26
+ customType,
27
+ });
28
+
29
+ return res;
30
+ };
31
+
32
+ export const getGroupcastMessage = async groupcastId => {
33
+ const res = await ChatSDK.getInstance().groupcast.getGroupCastMessages({
34
+ groupcastId: groupcastId,
35
+ });
36
+ return res;
37
+ };
38
+
39
+ export const postGroupCastMessage = async params => {
40
+ /*
41
+ Expected params:
42
+ {
43
+ showInConversation: true/false,
44
+ sendPushForNewConversationCreated: true/false,
45
+ searchableTags: [ 'tag1', 'tag2' ],
46
+ readCount: number,
47
+ parentMessageId: 'optional-string',
48
+ notifyOnCompletion: true/false,
49
+ notificationTitle: 'optional-string',
50
+ notificationBody: 'optional-string',
51
+ metaData: { key: value },
52
+ messageType: number,
53
+ mentionedUsers: [
54
+ {
55
+ userId: 'string',
56
+ startIndex: number,
57
+ endIndex: number
58
+ }
59
+ ],
60
+ hideNewConversationsForSender: true/false,
61
+ groupcastId: 'string',
62
+ events: {
63
+ onDelivered: true/false,
64
+ onSeen: true/false
65
+ },
66
+ encrypted: true/false,
67
+ deviceId: 'string',
68
+ deliveryCount: number,
69
+ customType: 'optional-string',
70
+ body: 'string',
71
+ attachments: [
72
+ {
73
+ fileUrl: 'string',
74
+ fileName: 'string',
75
+ fileType: 'string'
76
+ }
77
+ ]
78
+ }
79
+ */
80
+
81
+ const res = await ChatSDK.getInstance().groupcast.postGroupCastMessage(params);
82
+ return res;
83
+ };
84
+
85
+ export const deleteGroupCast = async groupcastId => {
86
+ const res = await ChatSDK.getInstance().groupcast.deleteGroupCastConversation({
87
+ groupcastId: groupcastId,
88
+ });
89
+ return res;
90
+ };
91
+
92
+ export const getGroupcastEligibleMembers = async ({ groupcastId, searchTag = null, limit = 20, skip = 0 }) => {
93
+ const params = {
94
+ groupcastId: groupcastId,
95
+ limit: limit,
96
+ skip: skip,
97
+ };
98
+
99
+ if (searchTag) {
100
+ params.searchTag = searchTag;
101
+ }
102
+
103
+ const res = await ChatSDK.getInstance().groupcast.getEligibleMembersForGroupCast(params);
104
+ return res;
105
+ };
106
+
107
+ export const getGroupcastMembers = async ({groupcastId}) => {
108
+ const res = await ChatSDK.getInstance().groupcast.getGroupCastMembers({
109
+ groupcastId: groupcastId,
110
+ });
111
+ return res;
112
+ };
113
+
114
+ export const addGroupcastMember = async (groupcastId, memberIds) => {
115
+ const members = memberIds.map(memberId => ({
116
+ newConversationTypingEvents: true,
117
+ newConversationReadEvents: true,
118
+ newConversationPushNotificationsEvents: true,
119
+ memberId: memberId,
120
+ newConversationMetadata: null,
121
+ newConversationCustomType: null
122
+ }));
123
+ const res = await ChatSDK.getInstance().groupcast.addMembersToGroupCast({
124
+ groupcastId: groupcastId,
125
+ members: members,
126
+ });
127
+ return res;
128
+ };
129
+
130
+ export const removeGroupcastMember = async (groupcastId, members) => {
131
+ const res = await ChatSDK.getInstance().groupcast.removeMemebersFromGroupCast({
132
+ groupcastId: groupcastId,
133
+ members: members,
134
+ });
135
+ return res;
136
+ };
137
+
138
+ export const deleteGroupcastMessageSelf = async ({ groupcastId, messageId, memberId }) => {
139
+ const res = await ChatSDK.getInstance().groupcast.deleteMessageSelf({
140
+ groupcastId: groupcastId,
141
+ messageId: messageId,
142
+ notifyOnCompletion: true,
143
+ deleteForAll: false,
144
+ sendPushForMessageDeleted: true,
145
+ memberIds: memberId,
146
+ });
147
+ return res;
148
+ };
149
+
150
+ export const deleteGroupcastMessageEveryone = async ({ groupcastId, messageId }) => {
151
+ const res = await ChatSDK.getInstance().groupcast.deleteMessageEveryone({
152
+ groupcastId: groupcastId,
153
+ messageId: messageId,
154
+ notifyOnCompletion: true,
155
+ deleteForAll: true,
156
+ sendPushForMessageDeleted: true,
157
+ });
158
+ return res;
159
+ };
160
+
161
+ export const getGroupcastMessageReadStatus = async ({ groupcastId, messageId }) => {
162
+ const res = await ChatSDK.getInstance().groupcast.getGroupCastStatusRead({
163
+ groupcastId: groupcastId,
164
+ groupcastMessageId: messageId,
165
+ });
166
+ return res;
167
+ };
168
+
169
+ export const getGroupcastMessageDeliveryStatus = async ({ groupcastId, messageId }) => {
170
+ const res = await ChatSDK.getInstance().groupcast.getGroupCastStatusDelivery({
171
+ groupcastId: groupcastId,
172
+ groupcastMessageId: messageId,
173
+ });
174
+ return res;
175
+ };
176
+
177
+ export const getPresignedUrlForGroupcastMedia = async ({userIdentifier, mediaExtension}) => {
178
+ const res = await ChatSDK.getInstance().user.getPresignedurlUpdate({
179
+ userIdentifier: userIdentifier,
180
+ mediaExtension: mediaExtension,
181
+ });
182
+ return res;
183
+ }
@@ -0,0 +1,13 @@
1
+ import ChatSDK from 'test-iso-chat-sdk';
2
+
3
+ export const makeAdmin = async (conversationId, userId) => {
4
+ const response = await ChatSDK.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
5
+ return response;
6
+ }
7
+
8
+ export const removeAdmin = async (conversationId, userId) => {
9
+ const response = await ChatSDK.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
10
+ return response;
11
+ }
12
+
13
+
@@ -0,0 +1,16 @@
1
+ import ChatSDK from 'test-iso-chat-sdk'
2
+
3
+ export const postReaction = async (reactionType, messageId, conversationId) => {
4
+ const response = await ChatSDK.initializeInstance().message.postReaction({conversationId: conversationId, messageId: messageId, reactionType: reactionType});
5
+ return response
6
+ };
7
+
8
+ export const deleteReaction = async (conversationId, messageId, reactionType) => {
9
+ const response = await ChatSDK.initializeInstance().message.deleteReactionType({conversationId: conversationId, messageId: messageId}, reactionType);
10
+ return response
11
+ }
12
+
13
+ export const getReactions = async (conversationId, messageId, reactionType) => {
14
+ const response = await ChatSDK.initializeInstance().message.getMessageReactionType({conversationId: conversationId, messageId: messageId}, reactionType);
15
+ return response
16
+ }