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.
- package/dist/cjs/attachment-preview_22.cjs.entry.js +45 -14
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
- package/dist/cjs/login-page_3.cjs.entry.js +16 -1
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +21 -3
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +14 -11
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +10 -1
- package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/mqtt-host.js +16 -1
- package/dist/collection/components/my-component/web-chat/mqtt-host.js.map +1 -1
- package/dist/components/WebChat.js +16 -1
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +14 -11
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/WebChatHeader.js +21 -3
- package/dist/components/WebChatHeader.js.map +1 -1
- package/dist/components/contact-info2.js +11 -1
- package/dist/components/contact-info2.js.map +1 -1
- package/dist/esm/attachment-preview_22.entry.js +46 -15
- package/dist/esm/attachment-preview_22.entry.js.map +1 -1
- package/dist/esm/login-page_3.entry.js +16 -1
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
- package/dist/isometrik-webchat/p-35d9ecdc.entry.js +2 -0
- package/dist/isometrik-webchat/p-35d9ecdc.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-a119be75.entry.js +2 -0
- package/dist/isometrik-webchat/p-a119be75.entry.js.map +1 -0
- package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +1 -0
- package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +1 -0
- package/package.json +1 -1
- package/dist/isometrik-webchat/p-84424caa.entry.js +0 -2
- package/dist/isometrik-webchat/p-84424caa.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-ff023d39.entry.js +0 -2
- 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 =
|
|
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: '
|
|
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
|
-
|
|
856
|
-
|
|
857
|
-
|
|
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: '
|
|
860
|
-
height: '
|
|
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
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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;
|