isometrik-plugin-chat-sdk 2.0.12 → 2.0.14

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 (118) hide show
  1. package/dist/cjs/{app-globals-c433d8a6.js → app-globals-95486d77.js} +2 -2
  2. package/dist/cjs/{app-globals-c433d8a6.js.map → app-globals-95486d77.js.map} +1 -1
  3. package/dist/cjs/attachment-preview_22.cjs.entry.js +65 -57
  4. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
  5. package/dist/cjs/audio-bubble_4.cjs.entry.js +3 -2
  6. package/dist/cjs/audio-bubble_4.cjs.entry.js.map +1 -1
  7. package/dist/cjs/index.cjs.js +2 -2
  8. package/dist/cjs/isometrik-webchat.cjs.js +4 -4
  9. package/dist/cjs/loader.cjs.js +4 -4
  10. package/dist/cjs/login-page_3.cjs.entry.js +88 -35
  11. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/{runtime-controls-95f6cb3b.js → runtime-controls-959fe6ed.js} +4 -2
  13. package/dist/cjs/runtime-controls-959fe6ed.js.map +1 -0
  14. package/dist/cjs/{send-media-37e09e83.js → send-media-2dadbb03.js} +98 -19
  15. package/dist/cjs/send-media-2dadbb03.js.map +1 -0
  16. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +53 -12
  17. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  18. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +12 -32
  19. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
  20. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +11 -6
  21. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
  22. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +5 -5
  23. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
  24. package/dist/collection/components/ChatUIComponent/shared/GroupCast/GroupCast.js +2 -2
  25. package/dist/collection/components/ChatUIComponent/shared/GroupCast/GroupCast.js.map +1 -1
  26. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +21 -2
  27. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js.map +1 -1
  28. package/dist/collection/components/my-component/web-chat/WebChat.js +19 -0
  29. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
  30. package/dist/collection/components/my-component/web-chat/data-fetch.js +13 -3
  31. package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
  32. package/dist/collection/components/my-component/web-chat/shell-render.js +1 -1
  33. package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
  34. package/dist/collection/lib/chat/index.js +1 -1
  35. package/dist/collection/lib/chat/index.js.map +1 -1
  36. package/dist/collection/lib/chat/send-media.js +96 -18
  37. package/dist/collection/lib/chat/send-media.js.map +1 -1
  38. package/dist/collection/lib/mqtt/dispatch.js +56 -31
  39. package/dist/collection/lib/mqtt/dispatch.js.map +1 -1
  40. package/dist/collection/lib/mqtt/index.js +1 -1
  41. package/dist/collection/lib/mqtt/index.js.map +1 -1
  42. package/dist/collection/lib/mqtt/types.js +17 -0
  43. package/dist/collection/lib/mqtt/types.js.map +1 -1
  44. package/dist/collection/sdk/init.js +2 -0
  45. package/dist/collection/sdk/init.js.map +1 -1
  46. package/dist/components/ChatFooter.js +12 -32
  47. package/dist/components/ChatFooter.js.map +1 -1
  48. package/dist/components/ChatSidebar.js +36 -12
  49. package/dist/components/ChatSidebar.js.map +1 -1
  50. package/dist/components/GroupCast2.js +2 -2
  51. package/dist/components/GroupCast2.js.map +1 -1
  52. package/dist/components/WebChat.js +88 -34
  53. package/dist/components/WebChat.js.map +1 -1
  54. package/dist/components/WebChatBody.js +6 -6
  55. package/dist/components/WebChatBody.js.map +1 -1
  56. package/dist/components/WebChatHeader.js +11 -6
  57. package/dist/components/WebChatHeader.js.map +1 -1
  58. package/dist/components/index.js +2 -0
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/components/send-media.js +97 -19
  61. package/dist/components/send-media.js.map +1 -1
  62. package/dist/components/video-message2.js +4 -2
  63. package/dist/components/video-message2.js.map +1 -1
  64. package/dist/esm/{app-globals-dfce8a5b.js → app-globals-879c137f.js} +2 -2
  65. package/dist/esm/{app-globals-dfce8a5b.js.map → app-globals-879c137f.js.map} +1 -1
  66. package/dist/esm/attachment-preview_22.entry.js +65 -57
  67. package/dist/esm/attachment-preview_22.entry.js.map +1 -1
  68. package/dist/esm/audio-bubble_4.entry.js +3 -2
  69. package/dist/esm/audio-bubble_4.entry.js.map +1 -1
  70. package/dist/esm/index.js +3 -3
  71. package/dist/esm/isometrik-webchat.js +4 -4
  72. package/dist/esm/loader.js +4 -4
  73. package/dist/esm/login-page_3.entry.js +88 -35
  74. package/dist/esm/login-page_3.entry.js.map +1 -1
  75. package/dist/esm/{runtime-controls-ec6d5c75.js → runtime-controls-6b7c852a.js} +4 -2
  76. package/dist/esm/runtime-controls-6b7c852a.js.map +1 -0
  77. package/dist/esm/{send-media-a946c6dd.js → send-media-ac360d8e.js} +98 -20
  78. package/dist/esm/send-media-ac360d8e.js.map +1 -0
  79. package/dist/isometrik-webchat/index.esm.js +1 -1
  80. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  81. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  82. package/dist/isometrik-webchat/{p-46dcd38f.js → p-217b9dc2.js} +2 -2
  83. package/dist/isometrik-webchat/p-217b9dc2.js.map +1 -0
  84. package/dist/isometrik-webchat/p-2c87c3fd.entry.js +2 -0
  85. package/dist/isometrik-webchat/p-2c87c3fd.entry.js.map +1 -0
  86. package/dist/isometrik-webchat/p-30855ba7.js +2 -0
  87. package/dist/isometrik-webchat/p-30855ba7.js.map +1 -0
  88. package/dist/isometrik-webchat/{p-cc5b86e6.entry.js → p-3120b9d3.entry.js} +2 -2
  89. package/dist/isometrik-webchat/p-3120b9d3.entry.js.map +1 -0
  90. package/dist/isometrik-webchat/{p-63ff4eea.entry.js.map → p-5672fae7.entry.js} +2 -1
  91. package/dist/isometrik-webchat/p-5672fae7.entry.js.map +1 -0
  92. package/dist/isometrik-webchat/p-79d1a171.js +2 -0
  93. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +2 -0
  94. package/dist/types/components/ChatUIComponent/shared/video-message/video-message.d.ts +2 -0
  95. package/dist/types/components/my-component/web-chat/WebChat.d.ts +322 -0
  96. package/dist/types/components/my-component/web-chat/data-fetch.d.ts +14 -0
  97. package/dist/types/components.d.ts +24 -0
  98. package/dist/types/lib/chat/index.d.ts +1 -1
  99. package/dist/types/lib/chat/send-media.d.ts +21 -0
  100. package/dist/types/lib/mqtt/index.d.ts +1 -1
  101. package/dist/types/lib/mqtt/types.d.ts +11 -0
  102. package/dist/types/sdk/init.d.ts +7 -0
  103. package/package.json +1 -1
  104. package/dist/cjs/runtime-controls-95f6cb3b.js.map +0 -1
  105. package/dist/cjs/send-media-37e09e83.js.map +0 -1
  106. package/dist/components/urls.js +0 -5
  107. package/dist/components/urls.js.map +0 -1
  108. package/dist/esm/runtime-controls-ec6d5c75.js.map +0 -1
  109. package/dist/esm/send-media-a946c6dd.js.map +0 -1
  110. package/dist/isometrik-webchat/p-2d69086d.entry.js +0 -2
  111. package/dist/isometrik-webchat/p-2d69086d.entry.js.map +0 -1
  112. package/dist/isometrik-webchat/p-3f355f9e.js +0 -2
  113. package/dist/isometrik-webchat/p-3f355f9e.js.map +0 -1
  114. package/dist/isometrik-webchat/p-46dcd38f.js.map +0 -1
  115. package/dist/isometrik-webchat/p-63ff4eea.entry.js +0 -2
  116. package/dist/isometrik-webchat/p-86be30fe.js +0 -2
  117. package/dist/isometrik-webchat/p-cc5b86e6.entry.js.map +0 -1
  118. /package/dist/isometrik-webchat/{p-86be30fe.js.map → p-79d1a171.js.map} +0 -0
@@ -16,7 +16,7 @@ import { T as Three_Dots, q as Info, R as Reply, F as Forward, D as Delete } fro
16
16
  import { d as defineCustomElement$4 } from './profile-avatar2.js';
17
17
  import { p as postReaction, d as deleteReaction } from './message-reaction.js';
18
18
  import { d as deriveMessageStatus } from './contracts.js';
19
- import { e as attachmentCaption } from './send-media.js';
19
+ import { f as attachmentCaption } from './send-media.js';
20
20
  import { d as defineCustomElement$c } from './AudioBubble.js';
21
21
  import { d as drawerDialogService } from './drawer.js';
22
22
  import { f as getGroupcastMessageReadStatus, h as getGroupcastMessageDeliveryStatus, i as deleteGroupcastMessageSelf, j as deleteGroupcastMessageEveryone } from './groupcast.js';
@@ -450,7 +450,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
450
450
  return (h("document-message", Object.assign({}, props, { docType: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, fileName: attachment === null || attachment === void 0 ? void 0 : attachment.name, href: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, width: "220px", padding: "10px", docName: attachment === null || attachment === void 0 ? void 0 : attachment.name })));
451
451
  }
452
452
  if (((_c = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _c === void 0 ? void 0 : _c.startsWith('video/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Video') {
453
- return (h("video-message", Object.assign({}, props, { height: '220px', width: '250px', padding: "10px 10px 30px 10px", type: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, videoSrc: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl })));
453
+ return (h("video-message", Object.assign({}, props, { height: '220px', width: '250px', padding: "10px 10px 30px 10px", type: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, videoSrc: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, poster: (attachment === null || attachment === void 0 ? void 0 : attachment.thumbnailUrl) || '' })));
454
454
  }
455
455
  if (((_d = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _d === void 0 ? void 0 : _d.startsWith('image/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Image') {
456
456
  return (h("image-message", Object.assign({}, props, { height: '220px', width: '250px', padding: "10px 10px 10px 10px", imageSrc: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, borderWidth: '5px', borderColor: isSelf ? 'var(--bg-grey-color)' : '#F2F2F2', borderStyle: 'solid', allAttachments: this.allAttachments, onImageClick: this.onMediaClick, loadingMediaGallery: this.loadingMediaGallery })));
@@ -850,7 +850,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
850
850
  var _a, _b, _c, _d, _e, _f, _g, _h;
851
851
  const currentConversation = (_a = this.conversationList) === null || _a === void 0 ? void 0 : _a.find(conversation => (conversation === null || conversation === void 0 ? void 0 : conversation.conversationId) === this.selectedConversationId);
852
852
  const shouldShowPlaceholder = ((_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.length) === 1 && ((_d = (_c = this.allMessages) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.action) !== 'clearConversation' && ((_e = this.allMessages) === null || _e === void 0 ? void 0 : _e.some(message => (message === null || message === void 0 ? void 0 : message.action) === 'clearConversation'));
853
- return (h("div", { key: '04d498fc21493a71497a28f855d184eb14e32763', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, (this.showScrollButton || this.newMessageNotification) && (h("div", { key: '42c9a73991cfb913403d104dce510ba6ca9eb5bb', class: "jump-latest", onClick: this.scrollToBottom, role: "button", "aria-label": "Jump to latest messages", style: {
853
+ return (h("div", { key: 'fdb79d6e91df3996d26a8e34ca2294c5a9748911', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, (this.showScrollButton || this.newMessageNotification) && (h("div", { key: '001e8486fcc83b0a7169cc00769c3ad684f045c3', class: "jump-latest", onClick: this.scrollToBottom, role: "button", "aria-label": "Jump to latest messages", style: {
854
854
  position: 'sticky',
855
855
  bottom: '1rem',
856
856
  marginLeft: 'auto',
@@ -867,7 +867,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
867
867
  cursor: 'pointer',
868
868
  boxShadow: '0 2px 8px rgba(0,0,0,0.14)',
869
869
  zIndex: '100',
870
- } }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '2004cdee625a06da51879110339379878072d93f', style: {
870
+ } }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '3774b25b962a80d916fa2959c371d566ee242164', style: {
871
871
  position: 'absolute',
872
872
  bottom: '22px',
873
873
  right: '-2px',
@@ -881,7 +881,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
881
881
  justifyContent: 'center',
882
882
  fontSize: '12px',
883
883
  padding: '0 4px',
884
- } })), h("svg", { key: '12e09d0c2ac7327e64ae671ebb1ce406ca0a5538', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'e67f759077573794ea5923aeaff2a18143ec1887', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (h("div", { key: 'ad56d354279bc44df4e53a583976cb02f208bdc8', style: {
884
+ } })), h("svg", { key: '6453eb80f1157871dc8e0491a1ea3062dd7b615e', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '7e79caf3621cce0c12c5979bf8e26c6c38cd633f', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (h("div", { key: 'df3d217231d691f2a1d1ec80c0daef9a2938e543', style: {
885
885
  display: 'flex',
886
886
  flexDirection: 'column',
887
887
  alignItems: 'center',
@@ -891,7 +891,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
891
891
  textAlign: 'center',
892
892
  color: 'var(--text-secondary-color)',
893
893
  marginTop: '20px',
894
- } }, h("img", { key: 'bd08d76f2db678ee4af1aae5d39bf0ae3c083b6f', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), h("div", { key: '1fbb6c63dbc25065bf7248c4e03503b6693901d4', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, h("span", { key: 'ffdfd34864bfa277e433ced72e0de8670301b86b', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), h("span", { key: '5c3827cbd2ab1dacb9f75f248d7bbf4c83b33e89', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (h("spinner-loader", { key: '88169d80e7d17419beb4094b3ce89f91927d8784', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
894
+ } }, h("img", { key: '632263e5acde91cf1c7d07f7a24c65e28272356c', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), h("div", { key: 'e4c81c8c4abc260616693deecc9f9410269c07e1', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, h("span", { key: '0b00d9f2b07732b00bad8dfcf01877bd6591b5c0', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), h("span", { key: '65e2ea1e6ba9c56d37cb504f97667756bd6ee593', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (h("spinner-loader", { key: '1810734057073e94d00f2d7eb38c0326afed8482', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
895
895
  ((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
896
896
  (() => {
897
897
  const total = this.allMessages.length;