isometrik-plugin-chat-sdk 2.0.7 → 2.0.9
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 +46 -15
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
- package/dist/cjs/login-page_3.cjs.entry.js +17 -2
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/member-add.cjs.entry.js +1 -1
- package/dist/cjs/reaction-container.cjs.entry.js +1 -1
- package/dist/cjs/toast-75ef0607.js +159 -0
- package/dist/cjs/toast-75ef0607.js.map +1 -0
- package/dist/cjs/toast-notification.cjs.entry.js +21 -15
- package/dist/cjs/toast-notification.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/ChatUIComponent/shared/toast-notification/toast-notification.js +32 -26
- package/dist/collection/components/ChatUIComponent/shared/toast-notification/toast-notification.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/collection/lib/friendly-toast-message.js +38 -0
- package/dist/collection/lib/friendly-toast-message.js.map +1 -0
- package/dist/collection/lib/toast.js +76 -21
- package/dist/collection/lib/toast.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/components/toast-notification.js +21 -15
- package/dist/components/toast-notification.js.map +1 -1
- package/dist/components/toast.js +112 -21
- package/dist/components/toast.js.map +1 -1
- package/dist/esm/attachment-preview_22.entry.js +47 -16
- package/dist/esm/attachment-preview_22.entry.js.map +1 -1
- package/dist/esm/login-page_3.entry.js +17 -2
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/member-add.entry.js +1 -1
- package/dist/esm/reaction-container.entry.js +1 -1
- package/dist/esm/toast-45ac7913.js +157 -0
- package/dist/esm/toast-45ac7913.js.map +1 -0
- package/dist/esm/toast-notification.entry.js +21 -15
- package/dist/esm/toast-notification.entry.js.map +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
- package/dist/isometrik-webchat/p-0c06a021.js +2 -0
- package/dist/isometrik-webchat/p-0c06a021.js.map +1 -0
- package/dist/isometrik-webchat/{p-76341adb.entry.js → p-6024bf2a.entry.js} +2 -2
- package/dist/isometrik-webchat/p-63ff4eea.entry.js +2 -0
- package/dist/isometrik-webchat/p-63ff4eea.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-9f036163.entry.js +2 -0
- package/dist/isometrik-webchat/p-9f036163.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-2195b0c0.entry.js → p-ba6de4e2.entry.js} +2 -2
- package/dist/isometrik-webchat/p-d6fd2dd7.entry.js +2 -0
- package/dist/isometrik-webchat/p-d6fd2dd7.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/dist/types/lib/friendly-toast-message.d.ts +5 -0
- package/dist/types/lib/toast.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/toast-f810e550.js +0 -68
- package/dist/cjs/toast-f810e550.js.map +0 -1
- package/dist/esm/toast-533dd183.js +0 -66
- package/dist/esm/toast-533dd183.js.map +0 -1
- package/dist/isometrik-webchat/p-4cb54460.js +0 -2
- package/dist/isometrik-webchat/p-4cb54460.js.map +0 -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-e1d632b0.entry.js +0 -2
- package/dist/isometrik-webchat/p-e1d632b0.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
- /package/dist/isometrik-webchat/{p-76341adb.entry.js.map → p-6024bf2a.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-2195b0c0.entry.js.map → p-ba6de4e2.entry.js.map} +0 -0
|
@@ -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;
|