isometrik-plugin-chat-sdk 2.0.7 → 2.0.8

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 (36) hide show
  1. package/dist/cjs/attachment-preview_22.cjs.entry.js +45 -14
  2. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
  3. package/dist/cjs/login-page_3.cjs.entry.js +16 -1
  4. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  5. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +21 -3
  6. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
  7. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +14 -11
  8. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
  9. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +10 -1
  10. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
  11. package/dist/collection/components/my-component/web-chat/mqtt-host.js +16 -1
  12. package/dist/collection/components/my-component/web-chat/mqtt-host.js.map +1 -1
  13. package/dist/components/WebChat.js +16 -1
  14. package/dist/components/WebChat.js.map +1 -1
  15. package/dist/components/WebChatBody.js +14 -11
  16. package/dist/components/WebChatBody.js.map +1 -1
  17. package/dist/components/WebChatHeader.js +21 -3
  18. package/dist/components/WebChatHeader.js.map +1 -1
  19. package/dist/components/contact-info2.js +11 -1
  20. package/dist/components/contact-info2.js.map +1 -1
  21. package/dist/esm/attachment-preview_22.entry.js +46 -15
  22. package/dist/esm/attachment-preview_22.entry.js.map +1 -1
  23. package/dist/esm/login-page_3.entry.js +16 -1
  24. package/dist/esm/login-page_3.entry.js.map +1 -1
  25. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  26. package/dist/isometrik-webchat/p-35d9ecdc.entry.js +2 -0
  27. package/dist/isometrik-webchat/p-35d9ecdc.entry.js.map +1 -0
  28. package/dist/isometrik-webchat/p-a119be75.entry.js +2 -0
  29. package/dist/isometrik-webchat/p-a119be75.entry.js.map +1 -0
  30. package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +1 -0
  31. package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +1 -0
  32. package/package.json +1 -1
  33. package/dist/isometrik-webchat/p-84424caa.entry.js +0 -2
  34. package/dist/isometrik-webchat/p-84424caa.entry.js.map +0 -1
  35. package/dist/isometrik-webchat/p-ff023d39.entry.js +0 -2
  36. package/dist/isometrik-webchat/p-ff023d39.entry.js.map +0 -1
@@ -508,7 +508,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
508
508
  this.messageDate = '';
509
509
  this.messageDeliveryTime = 0;
510
510
  this.messageReadTime = 0;
511
- this.showScrollButton = true;
511
+ this.showScrollButton = false;
512
512
  this.isScrolling = false;
513
513
  this.unreadMessageCount = 0;
514
514
  this.isChatBodyUnscrollable = false;
@@ -850,21 +850,24 @@ 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: '017c85307bdbe5be7616541e79f9822d37238192', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (h("div", { key: 'faa75f085f8866011206e9df18c19e70608b73ee', onClick: this.scrollToBottom, style: {
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: {
854
854
  position: 'sticky',
855
- top: '90%',
856
- left: '95%',
857
- backgroundColor: 'var(--bg-secondary-color)',
855
+ bottom: '1rem',
856
+ marginLeft: 'auto',
857
+ marginRight: '1rem',
858
+ marginTop: '-2.5rem',
859
+ backgroundColor: 'var(--bg-primary, #fff)',
860
+ border: '1px solid var(--border, #e4e4e7)',
858
861
  borderRadius: '50%',
859
- width: '30px',
860
- height: '30px',
862
+ width: '2.5rem',
863
+ height: '2.5rem',
861
864
  display: 'flex',
862
865
  alignItems: 'center',
863
866
  justifyContent: 'center',
864
867
  cursor: 'pointer',
865
- boxShadow: '0 2px 5px rgba(0,0,0,0.2)',
868
+ boxShadow: '0 2px 8px rgba(0,0,0,0.14)',
866
869
  zIndex: '100',
867
- } }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '8d8ce11d2b6a6605123263fdad1c9cbd3cc69c57', style: {
870
+ } }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '2004cdee625a06da51879110339379878072d93f', style: {
868
871
  position: 'absolute',
869
872
  bottom: '22px',
870
873
  right: '-2px',
@@ -878,7 +881,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
878
881
  justifyContent: 'center',
879
882
  fontSize: '12px',
880
883
  padding: '0 4px',
881
- } })), h("svg", { key: '8e151339669a3cb217c5a2dc8d91ed505b5bc19e', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '03721744e4913ee969fd54b8fbe56f56df430a2b', 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: '6ad033ccc314f2e9405c2a70c344535797401d75', style: {
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: {
882
885
  display: 'flex',
883
886
  flexDirection: 'column',
884
887
  alignItems: 'center',
@@ -888,7 +891,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
888
891
  textAlign: 'center',
889
892
  color: 'var(--text-secondary-color)',
890
893
  marginTop: '20px',
891
- } }, h("img", { key: 'ed586743164aa9421c3fa670d41490ea6348c6ba', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), h("div", { key: 'ae7b72d55f359fa4499dd0389780fd3eea42c5d1', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, h("span", { key: 'c8646251c1736ffcfc1f57d66d3e39aa1d0c2661', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), h("span", { key: '6f26a1c1449f381d7d18fd09caebbf14d2db6958', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (h("spinner-loader", { key: '17eb012be71eac04a736212baea3ebf611825ddf', 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: '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 &&
892
895
  ((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
893
896
  (() => {
894
897
  const total = this.allMessages.length;