isometrik-plugin-chat-sdk 2.0.12 → 2.0.14

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 (118) hide show
  1. package/dist/cjs/{app-globals-c433d8a6.js → app-globals-95486d77.js} +2 -2
  2. package/dist/cjs/{app-globals-c433d8a6.js.map → app-globals-95486d77.js.map} +1 -1
  3. package/dist/cjs/attachment-preview_22.cjs.entry.js +65 -57
  4. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
  5. package/dist/cjs/audio-bubble_4.cjs.entry.js +3 -2
  6. package/dist/cjs/audio-bubble_4.cjs.entry.js.map +1 -1
  7. package/dist/cjs/index.cjs.js +2 -2
  8. package/dist/cjs/isometrik-webchat.cjs.js +4 -4
  9. package/dist/cjs/loader.cjs.js +4 -4
  10. package/dist/cjs/login-page_3.cjs.entry.js +88 -35
  11. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/{runtime-controls-95f6cb3b.js → runtime-controls-959fe6ed.js} +4 -2
  13. package/dist/cjs/runtime-controls-959fe6ed.js.map +1 -0
  14. package/dist/cjs/{send-media-37e09e83.js → send-media-2dadbb03.js} +98 -19
  15. package/dist/cjs/send-media-2dadbb03.js.map +1 -0
  16. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +53 -12
  17. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  18. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +12 -32
  19. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
  20. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +11 -6
  21. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
  22. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +5 -5
  23. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
  24. package/dist/collection/components/ChatUIComponent/shared/GroupCast/GroupCast.js +2 -2
  25. package/dist/collection/components/ChatUIComponent/shared/GroupCast/GroupCast.js.map +1 -1
  26. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +21 -2
  27. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js.map +1 -1
  28. package/dist/collection/components/my-component/web-chat/WebChat.js +19 -0
  29. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
  30. package/dist/collection/components/my-component/web-chat/data-fetch.js +13 -3
  31. package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
  32. package/dist/collection/components/my-component/web-chat/shell-render.js +1 -1
  33. package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
  34. package/dist/collection/lib/chat/index.js +1 -1
  35. package/dist/collection/lib/chat/index.js.map +1 -1
  36. package/dist/collection/lib/chat/send-media.js +96 -18
  37. package/dist/collection/lib/chat/send-media.js.map +1 -1
  38. package/dist/collection/lib/mqtt/dispatch.js +56 -31
  39. package/dist/collection/lib/mqtt/dispatch.js.map +1 -1
  40. package/dist/collection/lib/mqtt/index.js +1 -1
  41. package/dist/collection/lib/mqtt/index.js.map +1 -1
  42. package/dist/collection/lib/mqtt/types.js +17 -0
  43. package/dist/collection/lib/mqtt/types.js.map +1 -1
  44. package/dist/collection/sdk/init.js +2 -0
  45. package/dist/collection/sdk/init.js.map +1 -1
  46. package/dist/components/ChatFooter.js +12 -32
  47. package/dist/components/ChatFooter.js.map +1 -1
  48. package/dist/components/ChatSidebar.js +36 -12
  49. package/dist/components/ChatSidebar.js.map +1 -1
  50. package/dist/components/GroupCast2.js +2 -2
  51. package/dist/components/GroupCast2.js.map +1 -1
  52. package/dist/components/WebChat.js +88 -34
  53. package/dist/components/WebChat.js.map +1 -1
  54. package/dist/components/WebChatBody.js +6 -6
  55. package/dist/components/WebChatBody.js.map +1 -1
  56. package/dist/components/WebChatHeader.js +11 -6
  57. package/dist/components/WebChatHeader.js.map +1 -1
  58. package/dist/components/index.js +2 -0
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/components/send-media.js +97 -19
  61. package/dist/components/send-media.js.map +1 -1
  62. package/dist/components/video-message2.js +4 -2
  63. package/dist/components/video-message2.js.map +1 -1
  64. package/dist/esm/{app-globals-dfce8a5b.js → app-globals-879c137f.js} +2 -2
  65. package/dist/esm/{app-globals-dfce8a5b.js.map → app-globals-879c137f.js.map} +1 -1
  66. package/dist/esm/attachment-preview_22.entry.js +65 -57
  67. package/dist/esm/attachment-preview_22.entry.js.map +1 -1
  68. package/dist/esm/audio-bubble_4.entry.js +3 -2
  69. package/dist/esm/audio-bubble_4.entry.js.map +1 -1
  70. package/dist/esm/index.js +3 -3
  71. package/dist/esm/isometrik-webchat.js +4 -4
  72. package/dist/esm/loader.js +4 -4
  73. package/dist/esm/login-page_3.entry.js +88 -35
  74. package/dist/esm/login-page_3.entry.js.map +1 -1
  75. package/dist/esm/{runtime-controls-ec6d5c75.js → runtime-controls-6b7c852a.js} +4 -2
  76. package/dist/esm/runtime-controls-6b7c852a.js.map +1 -0
  77. package/dist/esm/{send-media-a946c6dd.js → send-media-ac360d8e.js} +98 -20
  78. package/dist/esm/send-media-ac360d8e.js.map +1 -0
  79. package/dist/isometrik-webchat/index.esm.js +1 -1
  80. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  81. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  82. package/dist/isometrik-webchat/{p-46dcd38f.js → p-217b9dc2.js} +2 -2
  83. package/dist/isometrik-webchat/p-217b9dc2.js.map +1 -0
  84. package/dist/isometrik-webchat/p-2c87c3fd.entry.js +2 -0
  85. package/dist/isometrik-webchat/p-2c87c3fd.entry.js.map +1 -0
  86. package/dist/isometrik-webchat/p-30855ba7.js +2 -0
  87. package/dist/isometrik-webchat/p-30855ba7.js.map +1 -0
  88. package/dist/isometrik-webchat/{p-cc5b86e6.entry.js → p-3120b9d3.entry.js} +2 -2
  89. package/dist/isometrik-webchat/p-3120b9d3.entry.js.map +1 -0
  90. package/dist/isometrik-webchat/{p-63ff4eea.entry.js.map → p-5672fae7.entry.js} +2 -1
  91. package/dist/isometrik-webchat/p-5672fae7.entry.js.map +1 -0
  92. package/dist/isometrik-webchat/p-79d1a171.js +2 -0
  93. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +2 -0
  94. package/dist/types/components/ChatUIComponent/shared/video-message/video-message.d.ts +2 -0
  95. package/dist/types/components/my-component/web-chat/WebChat.d.ts +322 -0
  96. package/dist/types/components/my-component/web-chat/data-fetch.d.ts +14 -0
  97. package/dist/types/components.d.ts +24 -0
  98. package/dist/types/lib/chat/index.d.ts +1 -1
  99. package/dist/types/lib/chat/send-media.d.ts +21 -0
  100. package/dist/types/lib/mqtt/index.d.ts +1 -1
  101. package/dist/types/lib/mqtt/types.d.ts +11 -0
  102. package/dist/types/sdk/init.d.ts +7 -0
  103. package/package.json +1 -1
  104. package/dist/cjs/runtime-controls-95f6cb3b.js.map +0 -1
  105. package/dist/cjs/send-media-37e09e83.js.map +0 -1
  106. package/dist/components/urls.js +0 -5
  107. package/dist/components/urls.js.map +0 -1
  108. package/dist/esm/runtime-controls-ec6d5c75.js.map +0 -1
  109. package/dist/esm/send-media-a946c6dd.js.map +0 -1
  110. package/dist/isometrik-webchat/p-2d69086d.entry.js +0 -2
  111. package/dist/isometrik-webchat/p-2d69086d.entry.js.map +0 -1
  112. package/dist/isometrik-webchat/p-3f355f9e.js +0 -2
  113. package/dist/isometrik-webchat/p-3f355f9e.js.map +0 -1
  114. package/dist/isometrik-webchat/p-46dcd38f.js.map +0 -1
  115. package/dist/isometrik-webchat/p-63ff4eea.entry.js +0 -2
  116. package/dist/isometrik-webchat/p-86be30fe.js +0 -2
  117. package/dist/isometrik-webchat/p-cc5b86e6.entry.js.map +0 -1
  118. /package/dist/isometrik-webchat/{p-86be30fe.js.map → p-79d1a171.js.map} +0 -0
@@ -3394,6 +3394,7 @@ const VideoMessage = class {
3394
3394
  this.borderRadius = '10px';
3395
3395
  this.padding = '10px';
3396
3396
  this.videoSrc = undefined;
3397
+ this.poster = '';
3397
3398
  this.videoType = 'video/mp4';
3398
3399
  this.time = undefined;
3399
3400
  this.height = '150px';
@@ -3424,12 +3425,12 @@ const VideoMessage = class {
3424
3425
  }
3425
3426
  render() {
3426
3427
  const showCaption = this.message && !String(this.message).includes('AttachmentMessage:');
3427
- return (index.h("message-bubble", { key: '7b545b4022480c31b4e71a14d5e1bb61de4bd5c8', isSelf: !!this.isSelf, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: '8295b66f4967e0ef5f34687cd6b7e524aba43b7f', class: "video-wrap" }, index.h("video", { key: 'a768a37cc340fabe46885fd33aaf8012f3d05dd3', style: {
3428
+ return (index.h("message-bubble", { key: 'da362910daf539e1199b49e8c3ff7982d9df2237', isSelf: !!this.isSelf, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, index.h("div", { key: 'd97ba1095677d53316a3726aafe9431165a2c32d', class: "video-wrap" }, index.h("video", { key: '3ef7bf3df763e4f5b3c15cd97338c7cfce87530f', style: {
3428
3429
  height: this.height || '150px',
3429
3430
  width: this.width || '150px',
3430
3431
  objectFit: 'cover',
3431
3432
  borderRadius: this.borderRadius || '8px',
3432
- }, onClick: this.toggle }, index.h("source", { key: '8a241e2002f7a857837d5ef83d91393e950fa4bd', src: this.videoSrc, type: this.videoType || 'video/mp4' })), index.h("div", { key: '24fb30b390b6a315a1dbc9a3651cc670d3419cbf', class: "controls" }, !this.isPlaying ? (index.h("button", { type: "button", onClick: this.playVideo, "aria-label": "Play" }, "\u25B6")) : (index.h("button", { type: "button", onClick: this.pauseVideo, "aria-label": "Pause" }, "\u275A\u275A")), index.h("button", { key: '190a151c404aabfebd7157e23bd3691e65ab678b', type: "button", class: "video_fullscreen", onClick: this.fullscreen, "aria-label": "Fullscreen" }, "\u26F6"))), showCaption ? (index.h("div", { style: { fontSize: '14px', color: this.textColor, marginTop: '4px' } }, messageBodyRender.renderMessageBody(this.message, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), !!this.isSelf))) : null));
3433
+ }, poster: this.poster || undefined, preload: this.poster ? 'none' : 'metadata', onClick: this.toggle }, index.h("source", { key: '6893915436d9223c0245d2ddacbd0b8a486d0f15', src: this.videoSrc, type: this.videoType || 'video/mp4' })), index.h("div", { key: '3276ef69508d305500603c9b58c6eb5c2346f44d', class: "controls" }, !this.isPlaying ? (index.h("button", { type: "button", onClick: this.playVideo, "aria-label": "Play" }, "\u25B6")) : (index.h("button", { type: "button", onClick: this.pauseVideo, "aria-label": "Pause" }, "\u275A\u275A")), index.h("button", { key: '955b8fafd989952d44358a0fc831c99db4704cdc', type: "button", class: "video_fullscreen", onClick: this.fullscreen, "aria-label": "Fullscreen" }, "\u26F6"))), showCaption ? (index.h("div", { style: { fontSize: '14px', color: this.textColor, marginTop: '4px' } }, messageBodyRender.renderMessageBody(this.message, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), !!this.isSelf))) : null));
3433
3434
  }
3434
3435
  get el() { return index.getElement(this); }
3435
3436
  };