isometrik-plugin-chat-sdk 2.0.11 → 2.0.13
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/{app-globals-c433d8a6.js → app-globals-95486d77.js} +2 -2
- package/dist/cjs/{app-globals-c433d8a6.js.map → app-globals-95486d77.js.map} +1 -1
- package/dist/cjs/attachment-preview_22.cjs.entry.js +65 -57
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
- package/dist/cjs/audio-bubble_4.cjs.entry.js +3 -2
- package/dist/cjs/audio-bubble_4.cjs.entry.js.map +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/isometrik-webchat.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/login-page_3.cjs.entry.js +88 -35
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{runtime-controls-95f6cb3b.js → runtime-controls-959fe6ed.js} +4 -2
- package/dist/cjs/runtime-controls-959fe6ed.js.map +1 -0
- package/dist/cjs/{send-media-37e09e83.js → send-media-2dadbb03.js} +98 -19
- package/dist/cjs/send-media-2dadbb03.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +53 -12
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +12 -32
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +11 -6
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +5 -5
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/GroupCast/GroupCast.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/GroupCast/GroupCast.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +21 -2
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/WebChat.js +19 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/data-fetch.js +13 -3
- package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/shell-render.js +1 -1
- package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
- package/dist/collection/lib/chat/index.js +1 -1
- package/dist/collection/lib/chat/index.js.map +1 -1
- package/dist/collection/lib/chat/send-media.js +96 -18
- package/dist/collection/lib/chat/send-media.js.map +1 -1
- package/dist/collection/lib/mqtt/dispatch.js +56 -31
- package/dist/collection/lib/mqtt/dispatch.js.map +1 -1
- package/dist/collection/lib/mqtt/index.js +1 -1
- package/dist/collection/lib/mqtt/index.js.map +1 -1
- package/dist/collection/lib/mqtt/types.js +17 -0
- package/dist/collection/lib/mqtt/types.js.map +1 -1
- package/dist/collection/sdk/init.js +2 -0
- package/dist/collection/sdk/init.js.map +1 -1
- package/dist/components/ChatFooter.js +12 -32
- package/dist/components/ChatFooter.js.map +1 -1
- package/dist/components/ChatSidebar.js +36 -12
- package/dist/components/ChatSidebar.js.map +1 -1
- package/dist/components/GroupCast2.js +2 -2
- package/dist/components/GroupCast2.js.map +1 -1
- package/dist/components/WebChat.js +88 -34
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +6 -6
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/WebChatHeader.js +11 -6
- package/dist/components/WebChatHeader.js.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/send-media.js +97 -19
- package/dist/components/send-media.js.map +1 -1
- package/dist/components/video-message2.js +4 -2
- package/dist/components/video-message2.js.map +1 -1
- package/dist/esm/{app-globals-dfce8a5b.js → app-globals-879c137f.js} +2 -2
- package/dist/esm/{app-globals-dfce8a5b.js.map → app-globals-879c137f.js.map} +1 -1
- package/dist/esm/attachment-preview_22.entry.js +65 -57
- package/dist/esm/attachment-preview_22.entry.js.map +1 -1
- package/dist/esm/audio-bubble_4.entry.js +3 -2
- package/dist/esm/audio-bubble_4.entry.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/isometrik-webchat.js +4 -4
- package/dist/esm/loader.js +4 -4
- package/dist/esm/login-page_3.entry.js +88 -35
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/{runtime-controls-ec6d5c75.js → runtime-controls-6b7c852a.js} +4 -2
- package/dist/esm/runtime-controls-6b7c852a.js.map +1 -0
- package/dist/esm/{send-media-a946c6dd.js → send-media-ac360d8e.js} +98 -20
- package/dist/esm/send-media-ac360d8e.js.map +1 -0
- package/dist/isometrik-webchat/index.esm.js +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
- package/dist/isometrik-webchat/{p-46dcd38f.js → p-217b9dc2.js} +2 -2
- package/dist/isometrik-webchat/p-217b9dc2.js.map +1 -0
- package/dist/isometrik-webchat/p-2c87c3fd.entry.js +2 -0
- package/dist/isometrik-webchat/p-2c87c3fd.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-30855ba7.js +2 -0
- package/dist/isometrik-webchat/p-30855ba7.js.map +1 -0
- package/dist/isometrik-webchat/{p-cc5b86e6.entry.js → p-3120b9d3.entry.js} +2 -2
- package/dist/isometrik-webchat/p-3120b9d3.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-63ff4eea.entry.js.map → p-5672fae7.entry.js} +2 -1
- package/dist/isometrik-webchat/p-5672fae7.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-79d1a171.js +2 -0
- package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +2 -0
- package/dist/types/components/ChatUIComponent/shared/video-message/video-message.d.ts +2 -0
- package/dist/types/components/my-component/web-chat/WebChat.d.ts +322 -0
- package/dist/types/components/my-component/web-chat/data-fetch.d.ts +14 -0
- package/dist/types/components.d.ts +24 -0
- package/dist/types/lib/chat/index.d.ts +1 -1
- package/dist/types/lib/chat/send-media.d.ts +21 -0
- package/dist/types/lib/mqtt/index.d.ts +1 -1
- package/dist/types/lib/mqtt/types.d.ts +11 -0
- package/dist/types/sdk/init.d.ts +7 -0
- package/package.json +1 -1
- package/dist/cjs/runtime-controls-95f6cb3b.js.map +0 -1
- package/dist/cjs/send-media-37e09e83.js.map +0 -1
- package/dist/components/urls.js +0 -5
- package/dist/components/urls.js.map +0 -1
- package/dist/esm/runtime-controls-ec6d5c75.js.map +0 -1
- package/dist/esm/send-media-a946c6dd.js.map +0 -1
- package/dist/isometrik-webchat/p-2d69086d.entry.js +0 -2
- package/dist/isometrik-webchat/p-2d69086d.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-3f355f9e.js +0 -2
- package/dist/isometrik-webchat/p-3f355f9e.js.map +0 -1
- package/dist/isometrik-webchat/p-46dcd38f.js.map +0 -1
- package/dist/isometrik-webchat/p-63ff4eea.entry.js +0 -2
- package/dist/isometrik-webchat/p-86be30fe.js +0 -2
- package/dist/isometrik-webchat/p-cc5b86e6.entry.js.map +0 -1
- /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 {
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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;
|