isometrik-plugin-chat-sdk 2.0.4 → 2.0.5
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-61a8bfde.js → app-globals-dba84d07.js} +4 -4
- package/dist/cjs/{app-globals-61a8bfde.js.map → app-globals-dba84d07.js.map} +1 -1
- package/dist/cjs/attachment-preview_22.cjs.entry.js +65 -53
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
- package/dist/cjs/{send-media-14908d4b.js → groupcast-5e3d49c4.js} +1 -127
- package/dist/cjs/groupcast-5e3d49c4.js.map +1 -0
- package/dist/cjs/index.cjs.js +9 -9
- 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 +43 -42
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{runtime-controls-201c71ba.js → runtime-controls-b5a3836e.js} +21 -21
- package/dist/cjs/{runtime-controls-201c71ba.js.map → runtime-controls-b5a3836e.js.map} +1 -1
- package/dist/cjs/send-media-2c02bba7.js +319 -0
- package/dist/cjs/send-media-2c02bba7.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +25 -17
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +15 -16
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +9 -6
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/message-info/message-info.js +6 -2
- package/dist/collection/components/ChatUIComponent/shared/message-info/message-info.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/offline-host.js +7 -6
- package/dist/collection/components/my-component/web-chat/offline-host.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/public-send.js +3 -3
- package/dist/collection/components/my-component/web-chat/public-send.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 +30 -5
- package/dist/collection/lib/chat/send-media.js.map +1 -1
- package/dist/components/ChatFooter.js +15 -16
- package/dist/components/ChatFooter.js.map +1 -1
- package/dist/components/ChatSidebar.js +25 -17
- package/dist/components/ChatSidebar.js.map +1 -1
- package/dist/components/WebChat.js +10 -8
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +9 -6
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/client.js +1 -121
- package/dist/components/client.js.map +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/message-info2.js +6 -2
- package/dist/components/message-info2.js.map +1 -1
- package/dist/components/send-media.js +150 -0
- package/dist/components/send-media.js.map +1 -0
- package/dist/esm/{app-globals-2beecb81.js → app-globals-8fea092d.js} +3 -3
- package/dist/esm/{app-globals-2beecb81.js.map → app-globals-8fea092d.js.map} +1 -1
- package/dist/esm/attachment-preview_22.entry.js +54 -42
- package/dist/esm/attachment-preview_22.entry.js.map +1 -1
- package/dist/esm/{send-media-917dcc2f.js → groupcast-58a59d64.js} +2 -122
- package/dist/esm/groupcast-58a59d64.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/isometrik-webchat.js +4 -4
- package/dist/esm/loader.js +4 -4
- package/dist/esm/login-page_3.entry.js +10 -9
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/{runtime-controls-cf599fe2.js → runtime-controls-c5ba5009.js} +3 -3
- package/dist/esm/{runtime-controls-cf599fe2.js.map → runtime-controls-c5ba5009.js.map} +1 -1
- package/dist/esm/send-media-588837c7.js +296 -0
- package/dist/esm/send-media-588837c7.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/p-1953573d.js +2 -0
- package/dist/isometrik-webchat/p-1953573d.js.map +1 -0
- package/dist/isometrik-webchat/p-1a6e6524.js +2 -0
- package/dist/isometrik-webchat/p-1a6e6524.js.map +1 -0
- package/dist/isometrik-webchat/p-70f66001.js +2 -0
- package/dist/isometrik-webchat/{p-0731d488.js.map → p-70f66001.js.map} +1 -1
- package/dist/isometrik-webchat/p-8816acc1.js +2 -0
- package/dist/isometrik-webchat/p-92eec03b.entry.js +2 -0
- package/dist/isometrik-webchat/p-92eec03b.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-b16c3db0.entry.js +2 -0
- package/dist/isometrik-webchat/p-b16c3db0.entry.js.map +1 -0
- package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +2 -22
- package/dist/types/lib/chat/index.d.ts +1 -1
- package/dist/types/lib/chat/send-media.d.ts +8 -0
- package/package.json +2 -1
- package/dist/cjs/media-limits-eba42629.js +0 -165
- package/dist/cjs/media-limits-eba42629.js.map +0 -1
- package/dist/cjs/send-media-14908d4b.js.map +0 -1
- package/dist/esm/media-limits-3fa07c09.js +0 -152
- package/dist/esm/media-limits-3fa07c09.js.map +0 -1
- package/dist/esm/send-media-917dcc2f.js.map +0 -1
- package/dist/isometrik-webchat/p-0731d488.js +0 -2
- package/dist/isometrik-webchat/p-7d4cc4e3.entry.js +0 -2
- package/dist/isometrik-webchat/p-7d4cc4e3.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-7f415f28.js +0 -2
- package/dist/isometrik-webchat/p-bdcdf1c5.js +0 -2
- package/dist/isometrik-webchat/p-bdcdf1c5.js.map +0 -1
- package/dist/isometrik-webchat/p-dc2bf17e.entry.js +0 -2
- package/dist/isometrik-webchat/p-dc2bf17e.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-eb54f75d.js +0 -2
- package/dist/isometrik-webchat/p-eb54f75d.js.map +0 -1
- /package/dist/isometrik-webchat/{p-7f415f28.js.map → p-8816acc1.js.map} +0 -0
|
@@ -16,6 +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
20
|
import { d as defineCustomElement$c } from './AudioBubble.js';
|
|
20
21
|
import { d as drawerDialogService } from './drawer.js';
|
|
21
22
|
import { f as getGroupcastMessageReadStatus, h as getGroupcastMessageDeliveryStatus, i as deleteGroupcastMessageSelf, j as deleteGroupcastMessageEveryone } from './groupcast.js';
|
|
@@ -385,6 +386,8 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
|
|
|
385
386
|
};
|
|
386
387
|
this.renderAttachmentMessage = (message, isSelf) => {
|
|
387
388
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
389
|
+
// Caption from metaData.caption (Flutter/Swift); never show AttachmentMessage:* body placeholders
|
|
390
|
+
const caption = attachmentCaption(message);
|
|
388
391
|
// Common props for all message types
|
|
389
392
|
const commonOutgoingProps = {
|
|
390
393
|
time: message === null || message === void 0 ? void 0 : message.sentAt,
|
|
@@ -394,7 +397,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
|
|
|
394
397
|
deliveryStatus: (message === null || message === void 0 ? void 0 : message.deliveryStatus) || '',
|
|
395
398
|
textColor: 'var(--text-outgoing-message)',
|
|
396
399
|
timeColor: 'var(--text-outgoing-time)',
|
|
397
|
-
message:
|
|
400
|
+
message: caption,
|
|
398
401
|
mentionedUsers: message === null || message === void 0 ? void 0 : message.mentionedUsers,
|
|
399
402
|
bgColor: 'var(--bg-outgoing-message)',
|
|
400
403
|
borderRadius: '6px 6px 0 6px',
|
|
@@ -405,7 +408,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
|
|
|
405
408
|
isSelf: isSelf,
|
|
406
409
|
textColor: 'var(--text-incoming-message)',
|
|
407
410
|
timeColor: 'var(--text-incoming-time)',
|
|
408
|
-
message:
|
|
411
|
+
message: caption,
|
|
409
412
|
mentionedUsers: message === null || message === void 0 ? void 0 : message.mentionedUsers,
|
|
410
413
|
bgColor: 'var(--bg-incoming-message)',
|
|
411
414
|
borderRadius: '6px 6px 6px 0',
|
|
@@ -829,7 +832,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
|
|
|
829
832
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
830
833
|
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);
|
|
831
834
|
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'));
|
|
832
|
-
return (h("div", { key: '
|
|
835
|
+
return (h("div", { key: 'fcb897b1540131642caba826fe6551d06a7ac9c9', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (h("div", { key: '1232ce848507a42e5dbd73708f57b10966511f6c', onClick: this.scrollToBottom, style: {
|
|
833
836
|
position: 'sticky',
|
|
834
837
|
top: '90%',
|
|
835
838
|
left: '95%',
|
|
@@ -843,7 +846,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
|
|
|
843
846
|
cursor: 'pointer',
|
|
844
847
|
boxShadow: '0 2px 5px rgba(0,0,0,0.2)',
|
|
845
848
|
zIndex: '100',
|
|
846
|
-
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '
|
|
849
|
+
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: 'f37caffdf257d82abefde7490978fc107d8befb5', style: {
|
|
847
850
|
position: 'absolute',
|
|
848
851
|
bottom: '22px',
|
|
849
852
|
right: '-2px',
|
|
@@ -857,7 +860,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
|
|
|
857
860
|
justifyContent: 'center',
|
|
858
861
|
fontSize: '12px',
|
|
859
862
|
padding: '0 4px',
|
|
860
|
-
} })), h("svg", { key: '
|
|
863
|
+
} })), h("svg", { key: '07567e171c2f415dab0e3c87b1e42cb9ae994c9d', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '919b12ffce28266d6f7a1de58876488f2b4cec59', 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: 'dd06f9a496736731adf73db4eb68ed9bffdaf7a4', style: {
|
|
861
864
|
display: 'flex',
|
|
862
865
|
flexDirection: 'column',
|
|
863
866
|
alignItems: 'center',
|
|
@@ -867,7 +870,7 @@ const WebChatBody = /*@__PURE__*/ proxyCustomElement(class WebChatBody extends H
|
|
|
867
870
|
textAlign: 'center',
|
|
868
871
|
color: 'var(--text-secondary-color)',
|
|
869
872
|
marginTop: '20px',
|
|
870
|
-
} }, h("img", { key: '
|
|
873
|
+
} }, h("img", { key: '7a3a75d2fd64671ce5384180794169356d524d07', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), h("div", { key: '3cc5745e16a98a047c4633e4fc5c5b0bfcfc1b5c', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, h("span", { key: 'febc50bf7352f62d97443f8518611a662712b9c3', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), h("span", { key: '80e42faea0eb8ea092b8499ba3d9833033de45e5', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (h("spinner-loader", { key: '31c0a6c01075d2cc291a8f26cb59cacdf4c05f7d', 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 &&
|
|
871
874
|
((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
|
|
872
875
|
(() => {
|
|
873
876
|
const total = this.allMessages.length;
|