@cloudflare/realtimekit-ui 2.0.3-staging.8 → 2.0.3-staging.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.
Files changed (67) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/rtk-avatar_26.cjs.entry.js +10 -9
  3. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
  4. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  5. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  6. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  7. package/dist/collection/components/rtk-ai/rtk-ai.js +2 -4
  8. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +4 -6
  9. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +8 -7
  10. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -4
  11. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
  12. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +4 -4
  13. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -4
  14. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -4
  15. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +4 -6
  16. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
  17. package/dist/components/{p-EkUCxpDZ.js → p-BoqfUgTL.js} +1 -1
  18. package/dist/components/{p-DbBGSlfQ.js → p-C-dwT3mh.js} +1 -1
  19. package/dist/components/{p-qDy7F0Tr.js → p-C9UuqXCX.js} +1 -1
  20. package/dist/components/{p-Bmk8auxt.js → p-CAsupO2z.js} +1 -1
  21. package/dist/components/{p-CXq0ujSg.js → p-CNaazJXM.js} +1 -1
  22. package/dist/components/{p-DzDWIdoE.js → p-CtSq3DFC.js} +1 -1
  23. package/dist/components/{p-l-tiOHlG.js → p-Ryaxu6vl.js} +1 -1
  24. package/dist/components/{p-A83Jz8rO.js → p-VHRH6fkb.js} +1 -1
  25. package/dist/components/{p-BsgKgxKu.js → p-XaCbiR3F.js} +1 -1
  26. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  27. package/dist/components/rtk-chat-composer-view.js +1 -1
  28. package/dist/components/rtk-chat-header.js +1 -1
  29. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  30. package/dist/components/rtk-chat-search-results.js +1 -1
  31. package/dist/components/rtk-chat-selector.js +1 -1
  32. package/dist/components/rtk-chat.js +1 -1
  33. package/dist/components/rtk-dialog-manager.js +1 -1
  34. package/dist/components/rtk-meeting.js +1 -1
  35. package/dist/components/rtk-message-list-view.js +1 -1
  36. package/dist/components/rtk-paginated-list.js +1 -1
  37. package/dist/components/rtk-participants.js +1 -1
  38. package/dist/components/rtk-pinned-message-selector.js +1 -1
  39. package/dist/components/rtk-sidebar-ui.js +1 -1
  40. package/dist/components/rtk-sidebar.js +1 -1
  41. package/dist/components/rtk-spotlight-grid.js +1 -1
  42. package/dist/docs/docs-components.json +11 -11
  43. package/dist/docs/docs-vscode.json +8 -8
  44. package/dist/esm/loader.js +19 -18
  45. package/dist/esm/rtk-avatar_26.entry.js +10 -9
  46. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
  47. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  48. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  49. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  50. package/dist/realtimekit-ui/{p-64bc4514.entry.js → p-20734a3a.entry.js} +1 -1
  51. package/dist/realtimekit-ui/{p-31c97dcd.entry.js → p-8cdd8307.entry.js} +1 -1
  52. package/dist/realtimekit-ui/{p-cf7f7d9c.entry.js → p-aea61c98.entry.js} +1 -1
  53. package/dist/realtimekit-ui/{p-2da96ec3.entry.js → p-b27db286.entry.js} +1 -1
  54. package/dist/realtimekit-ui/{p-2308568a.entry.js → p-ce81ffaa.entry.js} +1 -1
  55. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  56. package/dist/types/components/rtk-ai/rtk-ai.d.ts +2 -4
  57. package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +2 -4
  58. package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +1 -0
  59. package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +2 -4
  60. package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +1 -1
  61. package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +1 -1
  62. package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +2 -4
  63. package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +2 -4
  64. package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -4
  65. package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +1 -1
  66. package/dist/types/components.d.ts +57 -79
  67. package/package.json +1 -1
@@ -386,6 +386,7 @@ const RtkChatComposerView = class {
386
386
  this.onQuotedMessageDismiss = index$1.createEvent(this, "quotedMessageDismiss", 7);
387
387
  /** Whether user can send text messages */
388
388
  this.canSendTextMessage = true;
389
+ /** Whether a message is being sent */
389
390
  this.isSending = false;
390
391
  /** Whether user can send file messages */
391
392
  this.canSendFiles = true;
@@ -531,17 +532,17 @@ const RtkChatComposerView = class {
531
532
  render() {
532
533
  var _a;
533
534
  const uiProps = { iconPack: this.iconPack, t: this.t };
534
- return (index$1.h(index$1.Host, { key: '2df23422579c855ced1cb6d24bb95786a1326baf' }, this.canSendTextMessage && this.isEmojiPickerOpen && (index$1.h("rtk-emoji-picker", Object.assign({ key: 'a7ed280a636d0207f58f0ad13f79c1eaed52ab9c', part: "emoji-picker", onPickerClose: () => {
535
+ return (index$1.h(index$1.Host, { key: '9b1caad153f14eae50191e4b9c33b73d6f1051fa' }, this.canSendTextMessage && this.isEmojiPickerOpen && (index$1.h("rtk-emoji-picker", Object.assign({ key: 'c27927a302c1420bc115707491e0aa0a6b9e8286', part: "emoji-picker", onPickerClose: () => {
535
536
  this.isEmojiPickerOpen = false;
536
537
  }, onRtkEmojiClicked: (e) => {
537
538
  this.textMessage += e.detail;
538
539
  this.$textComposer.setText(this.textMessage, true);
539
- } }, uiProps))), index$1.h("slot", { key: '759df2a2029fbba963cfc26cd871771881dd6c5e', name: "chat-addon" }), this.quotedMessage && this.quotedMessage.length !== 0 && (index$1.h("div", { key: '413be05a7374fc76f790ad3f6f5bef5a56a6ef97', class: "quoted-message-container", part: "quoted-message-container" }, index$1.h("div", { key: '7fb6b571103c675dca202b74bd07fd55062dab70', class: "quoted-message scrollbar" }, index$1.h("rtk-text-message-view", { key: '3997aa719a746234c5641e976dd0c27e68b69dae', text: this.quotedMessage, isMarkdown: true })), index$1.h("div", { key: 'f76ec54e3d67d6957d5d152b144b22d8cc122660' }, index$1.h("rtk-icon", { key: '897b52fc41814d2cb8beeb461c36c9843cb2869e', "aria-label": this.t('dismiss'), class: "dismiss", icon: this.iconPack.dismiss, onClick: this.onQuotedMessageDismissHandler })))), index$1.h("div", { key: '35447eb1fffffd372c231bc76ce741e483e7f26a', class: "composer-container" }, index$1.h("div", { key: '0f8f198df49fcc27f6c85b8d6909eb2a7c00e142', class: "composers" }, this.fileToUpload && (index$1.h("rtk-draft-attachment-view", Object.assign({ key: '9d325d05fecb12ecb41f02e54561d2e1b59b2c2f' }, uiProps, { attachment: this.fileToUpload, onDeleteAttachment: () => (this.fileToUpload = null) }))), !this.fileToUpload && (index$1.h("rtk-text-composer-view", { key: 'fbc870bb9d9c2418e528e64273edb67846e23e17', value: this.textMessage, placeholder: this.inputTextPlaceholder, onTextChange: this.onTextChangeHandler, keyDownHandler: this.onKeyDownHandler, maxLength: (_a = this.maxLength) !== null && _a !== void 0 ? _a : chat.MAX_TEXT_LENGTH, rateLimitBreached: this.rateLimitsBreached, t: this.t, iconPack: this.iconPack, ref: (el) => (this.$textComposer = el) }))), index$1.h("div", { key: '20191403531eb87bca86d13387c7937153a4c99e', class: "chat-buttons", part: "chat-buttons" }, index$1.h("div", { key: '4914a61fea3f502dc14778a237e9ce35a97e3afc', class: "left", part: "chat-buttons-left" }, !this.fileToUpload && !this.isEditing && (index$1.h("div", { key: '76c843588f2f7d90f5e60a1e44955309026eda27' }, this.canSendFiles && [
540
- index$1.h("rtk-file-picker-button", Object.assign({ key: 'cbb6f17b22f10b48ada27a4b4da3c1d5b2c7e320' }, uiProps, { onFileChange: (event) => this.onFileUploadHandler('file', event.detail) })),
541
- index$1.h("rtk-file-picker-button", Object.assign({ key: '0868162a2da021dd4175e977adf47d72ca54044a', filter: "image/*", label: this.t('chat.send_img'), icon: "image", onFileChange: (event) => this.onFileUploadHandler('image', event.detail) }, uiProps)),
542
- ], this.canSendTextMessage && !this.disableEmojiPicker && (index$1.h("rtk-emoji-picker-button", Object.assign({ key: 'a73378b5495dc3bfcde7dba335f674292ee6a96c', isActive: this.isEmojiPickerOpen, onClick: () => {
540
+ } }, uiProps))), index$1.h("slot", { key: '7be131be821b0722a744d14f3a03eafdb1d57c2e', name: "chat-addon" }), this.quotedMessage && this.quotedMessage.length !== 0 && (index$1.h("div", { key: '914177fb791b9517af8c093ff60425a462dfc484', class: "quoted-message-container", part: "quoted-message-container" }, index$1.h("div", { key: '63c67074d3b921db41b65d607f688cb316de0777', class: "quoted-message scrollbar" }, index$1.h("rtk-text-message-view", { key: '6e5cf92e146b60f5f140bce2689a90bdd91d0b50', text: this.quotedMessage, isMarkdown: true })), index$1.h("div", { key: '6d0dec2c5bbee4f1adfad36cbed56199a215df06' }, index$1.h("rtk-icon", { key: '049f2c4924cd1fd108d78bbbbc3e2da772bdfaba', "aria-label": this.t('dismiss'), class: "dismiss", icon: this.iconPack.dismiss, onClick: this.onQuotedMessageDismissHandler })))), index$1.h("div", { key: 'eecbc4402df5b06017730392199921b64a3d3c84', class: "composer-container" }, index$1.h("div", { key: '4e97070e4e5fe8631cba468e5c5469fd40c40620', class: "composers" }, this.fileToUpload && (index$1.h("rtk-draft-attachment-view", Object.assign({ key: '4a0a9b8d98ab71b32bfefc28aea26008c5962a7f' }, uiProps, { attachment: this.fileToUpload, onDeleteAttachment: () => (this.fileToUpload = null) }))), !this.fileToUpload && (index$1.h("rtk-text-composer-view", { key: '1df62b1794e7f61cccfafb5696092097e4b917b0', value: this.textMessage, placeholder: this.inputTextPlaceholder, onTextChange: this.onTextChangeHandler, keyDownHandler: this.onKeyDownHandler, maxLength: (_a = this.maxLength) !== null && _a !== void 0 ? _a : chat.MAX_TEXT_LENGTH, rateLimitBreached: this.rateLimitsBreached, t: this.t, iconPack: this.iconPack, ref: (el) => (this.$textComposer = el) }))), index$1.h("div", { key: '411c5840e1c1ec314ed8189939857d0dd38cdd89', class: "chat-buttons", part: "chat-buttons" }, index$1.h("div", { key: '60b339e7336bd5f89f63d91a07b1318345764860', class: "left", part: "chat-buttons-left" }, !this.fileToUpload && !this.isEditing && (index$1.h("div", { key: '886fb5fbbdb3d4090d3719c403275f81579b2607' }, this.canSendFiles && [
541
+ index$1.h("rtk-file-picker-button", Object.assign({ key: '1eb87fc454180637e2c2ac0931bc01e810f8a934' }, uiProps, { onFileChange: (event) => this.onFileUploadHandler('file', event.detail) })),
542
+ index$1.h("rtk-file-picker-button", Object.assign({ key: '6b63180ed0e791fa6c7aa819cdafeb3967f1e8ca', filter: "image/*", label: this.t('chat.send_img'), icon: "image", onFileChange: (event) => this.onFileUploadHandler('image', event.detail) }, uiProps)),
543
+ ], this.canSendTextMessage && !this.disableEmojiPicker && (index$1.h("rtk-emoji-picker-button", Object.assign({ key: 'dc8e536275ced829c16152dd9f60dc72b260bd50', isActive: this.isEmojiPickerOpen, onClick: () => {
543
544
  this.isEmojiPickerOpen = !this.isEmojiPickerOpen;
544
- } }, uiProps))), index$1.h("slot", { key: '31208ad279dec430da4527d22730de8e418bc722', name: "chat-buttons" })))), index$1.h("div", { key: '04fcdd3f690548cbf1e257ffb2982785e557726b', class: "right", part: "chat-buttons-right" }, !this.isEditing && (index$1.h("rtk-tooltip", { key: '367bf710673a0a2276f46d52289409abb77fe27b', variant: "primary", label: this.t('chat.send_msg'), delay: 2000 }, index$1.h("rtk-button", { key: 'c677e3026636c375ed7eee411c596f6d2a802794', kind: "icon", disabled: this.disableSendButton || this.isSending, onClick: () => this.handleSendMessage(), title: this.t('chat.send_msg') }, this.isSending ? (index$1.h("rtk-spinner", { size: "sm" })) : (index$1.h("rtk-icon", { icon: this.iconPack.send }))))), this.isEditing && (index$1.h("div", { key: '1e09e8868e4ae048b36bc8198b8aa1de92209a00', class: "edit-buttons" }, index$1.h("rtk-tooltip", { key: '29ff7a39bd168169fa7d104357b529a2c9efe0fd', variant: "secondary", label: this.t('cancel'), delay: 2000 }, index$1.h("rtk-button", { key: '27cf5353d0e8c2620fd8d4213994a9dcc83f83f3', kind: "icon", variant: "secondary", onClick: () => this.handleEditCancel(), title: this.t('cancel') }, index$1.h("rtk-icon", { key: 'aeb4c9df3993c6cebf952f64f6676eb8a3866bb0', icon: this.iconPack.dismiss }))), index$1.h("rtk-tooltip", { key: '835195d0f51a1db81e66a1b2d9076a71f2aaee4e', variant: "primary", label: this.t('chat.update_msg'), delay: 2000 }, index$1.h("rtk-button", { key: 'd524f01ba5d7ca52224d39e23e7f963972ad80c9', kind: "icon", onClick: () => this.handleEditMessage(), title: this.t('chat.send_msg') }, this.isSending ? (index$1.h("rtk-spinner", { size: "sm" })) : (index$1.h("rtk-icon", { icon: this.iconPack.checkmark })))))))))));
545
+ } }, uiProps))), index$1.h("slot", { key: '4837bd3dc865864800e3adbb500fcc8785bc355e', name: "chat-buttons" })))), index$1.h("div", { key: '0bb4a6b7f0cb2e98e830223da3c1c543cbf174ca', class: "right", part: "chat-buttons-right" }, !this.isEditing && (index$1.h("rtk-tooltip", { key: '5db285aec89f1f32d84291276d00e2d38beb6b58', variant: "primary", label: this.t('chat.send_msg'), delay: 2000 }, index$1.h("rtk-button", { key: '34b46c654679429f7f67957f03700ec0b6a5a348', kind: "icon", disabled: this.disableSendButton || this.isSending, onClick: () => this.handleSendMessage(), title: this.t('chat.send_msg') }, this.isSending ? (index$1.h("rtk-spinner", { size: "sm" })) : (index$1.h("rtk-icon", { icon: this.iconPack.send }))))), this.isEditing && (index$1.h("div", { key: '8b42d23271e3f5bc04240e643c90036319e162e4', class: "edit-buttons" }, index$1.h("rtk-tooltip", { key: 'd01eb04abe77564898790f713d61763bb2b56bb6', variant: "secondary", label: this.t('cancel'), delay: 2000 }, index$1.h("rtk-button", { key: '634e183ecfc1b4e4b4911a61208db319123f80b2', kind: "icon", variant: "secondary", onClick: () => this.handleEditCancel(), title: this.t('cancel') }, index$1.h("rtk-icon", { key: '47feedb66b8060139ec466a48deb385ff6863f79', icon: this.iconPack.dismiss }))), index$1.h("rtk-tooltip", { key: '84eedebb9de4bcd4efe33bbb1187ca7896efd3e8', variant: "primary", label: this.t('chat.update_msg'), delay: 2000 }, index$1.h("rtk-button", { key: '498d5192c26baa77d3b690b1e9390c76be50764d', kind: "icon", onClick: () => this.handleEditMessage(), title: this.t('chat.send_msg') }, this.isSending ? (index$1.h("rtk-spinner", { size: "sm" })) : (index$1.h("rtk-icon", { icon: this.iconPack.checkmark })))))))))));
545
546
  }
546
547
  };
547
548
  __decorate$g([
@@ -2091,7 +2092,7 @@ const RtkPaginatedList = class {
2091
2092
  }
2092
2093
  }
2093
2094
  /**
2094
- * Updates a new node anywhere in the list
2095
+ * Updates an existing node in the paginated list.
2095
2096
  * @param {string} id - The id of the node to update
2096
2097
  * @param {DataNode} node - The updated data node
2097
2098
  * */
@@ -2304,9 +2305,9 @@ const RtkPaginatedList = class {
2304
2305
  /**
2305
2306
  * div.container is flex=column-reversewhich is why div#bottom-scroll comes before div#top-scroll
2306
2307
  */
2307
- return (index$1.h(index$1.Host, { key: 'bff4fc91b737334c5764e690fbf2adafa1444408' }, index$1.h("div", { key: 'f4efa98ef0bd178602ee03718d35fcb833487909', class: "scrollbar container", part: "container", ref: (el) => (this.$containerRef = el) }, index$1.h("div", { key: '37403f6462812a6662efa9577ae9ed43d27f63d6', class: { 'show-new-messages-ctr': true, active: this.showNewMessagesCTR } }, index$1.h("rtk-button", { key: 'ee7e04e6281370dddb1b1e10b753e96dc602d42a', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => {
2308
+ return (index$1.h(index$1.Host, { key: '836a2ef0f7929b35b7e3ce5a62291f58fc35a2bc' }, index$1.h("div", { key: '6bad7209030f715fc93942e1a29b174d1564ea5e', class: "scrollbar container", part: "container", ref: (el) => (this.$containerRef = el) }, index$1.h("div", { key: '069d4f398daca2bb2cea90c8b2c8d76848f52bd8', class: { 'show-new-messages-ctr': true, active: this.showNewMessagesCTR } }, index$1.h("rtk-button", { key: 'a2d7c5600a691c3440260150cefec78bdd145c92', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => {
2308
2309
  this.scrollToBottom();
2309
- } }, this.shouldScrollToBottom ? (index$1.h("rtk-spinner", { size: "sm" })) : (index$1.h("rtk-icon", { icon: this.iconPack.chevron_down })))), index$1.h("div", { key: '91bcdadd2518313fa06306a172575f5acc786596', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoadingBottom && this.pages.length > 0 && index$1.h("rtk-spinner", { key: '932af19af69c3ecd5af22dd3051a5eea5cb25e7a', size: "sm" }), this.isLoading && this.pages.length < 1 && index$1.h("rtk-spinner", { key: '9fa60fb784a09800a32a3accdc81d940476330d2', size: "lg" }), !this.isLoading && this.pages.flat().length === 0 ? (index$1.h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (index$1.h("div", { class: "page-wrapper" }, this.pages.map((page, pageIndex) => (index$1.h("div", { class: "page", "data-page-index": pageIndex }, this.createNodes([...page].reverse())))))), this.isLoadingTop && this.pages.length > 0 && index$1.h("rtk-spinner", { key: '73103f58338bdb89be69f9f6dc742e3cdd2c95d8', size: "sm" }), index$1.h("div", { key: '9c4c43ffb6442d58040448fe1b2d7332505fc81e', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
2310
+ } }, this.shouldScrollToBottom ? (index$1.h("rtk-spinner", { size: "sm" })) : (index$1.h("rtk-icon", { icon: this.iconPack.chevron_down })))), index$1.h("div", { key: '0b40605499a35ff03ac7c048aaaac32432a453ad', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoadingBottom && this.pages.length > 0 && index$1.h("rtk-spinner", { key: 'fdcc9685d9cbcc4f4642c6ea1b716d3e57744883', size: "sm" }), this.isLoading && this.pages.length < 1 && index$1.h("rtk-spinner", { key: '9999a8e7008059a2742cbbc43f303e21825d44e5', size: "lg" }), !this.isLoading && this.pages.flat().length === 0 ? (index$1.h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (index$1.h("div", { class: "page-wrapper" }, this.pages.map((page, pageIndex) => (index$1.h("div", { class: "page", "data-page-index": pageIndex }, this.createNodes([...page].reverse())))))), this.isLoadingTop && this.pages.length > 0 && index$1.h("rtk-spinner", { key: '923d826998193b190dc89a8bafe16fb38495f3ba', size: "sm" }), index$1.h("div", { key: '92b528919596a4fbe32c3a7f023de8d6494d57c7', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
2310
2311
  }
2311
2312
  };
2312
2313
  __decorate$3([
@@ -354,9 +354,9 @@ const RtkBroadcastMessageModal = class {
354
354
  }, 2000);
355
355
  }
356
356
  render() {
357
- return (index$1.h(index$1.Host, { key: '0ddf3933cc56bd2d95a2d112965c22070a52c1ca' }, index$1.h("div", { key: '4a1428283dee02f1d09b0650b0facceebd612772', class: "content-col" }, index$1.h("h2", { key: '610e4ada5ae3543b629526324e4608e9950a20b0' }, "Broadcast message to"), index$1.h("select", { key: '46b4a3573a196f00ad1d9d20d92f3e03b250162c', onChange: (e) => {
357
+ return (index$1.h(index$1.Host, { key: 'd7559b6aadff8f45387ac2f0b67ba20a18d9fed4' }, index$1.h("div", { key: '8b14c6d8b673244408b681f50bed87c3ab9af8bf', class: "content-col" }, index$1.h("h2", { key: '560e1e2cd73f07776fe670f4412dace898683f7e' }, "Broadcast message to"), index$1.h("select", { key: 'f0a8ddbcea08243f0c496cdc14916eea928ad520', onChange: (e) => {
358
358
  this.messagePayload = Object.assign(Object.assign({}, this.messagePayload), { to: e.target.value });
359
- } }, index$1.h("option", { key: 'aaa981db25435bb257d02086463703d3d2a14ec2' }, "Everyone"), index$1.h("option", { key: '4bae49f7600fe5b5156f030e2f2433b334856e00' }, "List of rooms")), index$1.h("textarea", { key: '0d6da453ebb0b9711c79ba3c2c2c71a662955a9d', placeholder: "Type message here...", onInput: (e) => {
359
+ } }, index$1.h("option", { key: 'daa2217e90ccd31d3a7fff136069bebe28b34da3' }, "Everyone"), index$1.h("option", { key: '72133e1507e26a555875bba037d2b0cb824a16f9' }, "List of rooms")), index$1.h("textarea", { key: 'eb523131f3bbe458cf802db5860029b2ce69c74f', placeholder: "Type message here...", onInput: (e) => {
360
360
  this.messagePayload = Object.assign(Object.assign({}, this.messagePayload), { message: e.target.value });
361
361
  } }), this.successMessage ? (index$1.h("p", null, "Message sent to ", this.messagePayload.to, index$1.h("rtk-icon", { icon: this.iconPack.checkmark }))) : (index$1.h("div", { class: "content-row" }, index$1.h("rtk-button", { onClick: () => this.close(), variant: "secondary" }, "Cancel"), "\u2002", index$1.h("rtk-button", { variant: "primary", onClick: () => this.sendMessage() }, "Send"))))));
362
362
  }
@@ -266,11 +266,11 @@ const RtkMessageListView = class {
266
266
  this.updateTotalHeight();
267
267
  }
268
268
  render() {
269
- return (index$1.h("div", { key: '6564a301cf646ed53993d924111206cf4a382833', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, index$1.h("div", { key: '81469bde1e421f0a881c3ad33b30a601fc54901c', class: "scroller" }, index$1.h("div", { key: '5e0c8dd617aa7ed5517cde108539dc23265a29e2', style: {
269
+ return (index$1.h("div", { key: '8da5ac7ee83f43da54ce1af023e178d206436b80', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, index$1.h("div", { key: '3aeec25e25aeb2864b7ce0d68a08d58bb2b63cef', class: "scroller" }, index$1.h("div", { key: 'b65b2fb4471307f38c08480d268adfaafdb696fb', style: {
270
270
  height: `${this.totalHeight}px`,
271
- } }), index$1.h("div", { key: 'f994d2627b4787f803b9c7ac00f574dbd034f924', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), index$1.h("div", { key: '4de62649e894f024ecb7d5767f6eefc702544964', class: "content", style: {
271
+ } }), index$1.h("div", { key: '08aa1dcf4740ce438b152527e8d60aff28704e8a', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), index$1.h("div", { key: '48ba3788f83f2329174fb3ddd107eaf4da91699a', class: "content", style: {
272
272
  transform: `translateY(${this.getRangeSize(0, this.range.start)}px)`,
273
- } }, this.isFetching && (index$1.h("div", { key: 'dfa9a9abbc190896f80aa90191ab654fee7b7d8f', class: "loader" }, index$1.h("rtk-spinner", { key: '416b800f9d481689860340aff00fe30f30255603', size: "md" }))), this.getVisibleItems().map((msg, index) => (index$1.h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
273
+ } }, this.isFetching && (index$1.h("div", { key: '1a53b6b02899df6ce80c781b44fcd71802105fdf', class: "loader" }, index$1.h("rtk-spinner", { key: '222bdf5ad19f45914f48c91afb65075e3fef277f', size: "md" }))), this.getVisibleItems().map((msg, index) => (index$1.h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
274
274
  }
275
275
  static get watchers() { return {
276
276
  "messages": [{
@@ -73,11 +73,11 @@ const RtkSidebarUi = class {
73
73
  render() {
74
74
  const isFullScreen = this.view === 'full-screen';
75
75
  const activeTab = this.tabs.find((tab) => tab.id === this.currentTab);
76
- return (index$1.h(index$1.Host, { key: '239f279ceccceeaa57181d4a71f3e04ede4132ce', ref: (el) => (this.hostEl = el), class: this.view }, !this.hideCloseAction && (index$1.h("rtk-button", { key: '921847fd946de305dce6f1fc7fe8a9ff175e38ee', ref: (el) => (this.closeButton = el), variant: "ghost", kind: "icon", class: "close", onClick: this.onClose, "aria-label": this.t('close') }, index$1.h("rtk-icon", { key: '1de9f1edf8ecce2d0390b7b8a1253de02affd9d1', icon: this.iconPack.dismiss }))), activeTab && !this.hideHeader && (index$1.h("header", { key: '4cd288feeb658e62d3ad1efd47aea237119918e1', class: "main-header" }, index$1.h("h3", { key: 'd6c4129537b4e090f3c429c66057be9a1072a864' }, activeTab.name), index$1.h("slot", { key: 'dfb1ea30cfa476b515a3a4b628c036083f1fe0a5', name: "pinned-state" }))), isFullScreen && (index$1.h("header", { key: '7dafb426628960ba26718530417854a533de3664', class: "mobile-tabs" }, this.tabs.map((tab) => (index$1.h("button", { onClick: () => {
76
+ return (index$1.h(index$1.Host, { key: '850aa92eeb61bf2729b12e30be8a43a9ff3a1acf', ref: (el) => (this.hostEl = el), class: this.view }, !this.hideCloseAction && (index$1.h("rtk-button", { key: 'f52d00bc36c398403eb7ac8ab5625f3cecd5da4f', ref: (el) => (this.closeButton = el), variant: "ghost", kind: "icon", class: "close", onClick: this.onClose, "aria-label": this.t('close') }, index$1.h("rtk-icon", { key: '4d970f5a9f02839dc297ccb2b7c85806025f7ef1', icon: this.iconPack.dismiss }))), activeTab && !this.hideHeader && (index$1.h("header", { key: '8c1ae2f6e4a87e2fc66381e70c7053b1b4a4d2b2', class: "main-header" }, index$1.h("h3", { key: '6f9faffac3acd82cd4645189459212026b10bf1d' }, activeTab.name), index$1.h("slot", { key: '20b3cff89b8805600eafbce17aabc4880e473a56', name: "pinned-state" }))), isFullScreen && (index$1.h("header", { key: '86bf499aadbe7b57868a135a35100cc1e430520e', class: "mobile-tabs" }, this.tabs.map((tab) => (index$1.h("button", { onClick: () => {
77
77
  this.tabChange.emit(tab.id);
78
78
  }, class: {
79
79
  active: this.currentTab === tab.id,
80
- } }, tab.name))))), index$1.h("slot", { key: '2696ccd9fcad418ad7738164cd5a9e6305320899', name: this.currentTab })));
80
+ } }, tab.name))))), index$1.h("slot", { key: 'd19ec28aa918a2bfd9556c64ef758b2faf6a195d', name: this.currentTab })));
81
81
  }
82
82
  static get watchers() { return {
83
83
  "currentTab": [{
@@ -68,13 +68,13 @@ const RtkSpotlightGrid = class {
68
68
  t: this.t,
69
69
  };
70
70
  const nonPinnedParticipants = this.participants.filter((p) => this.pinnedParticipants.some((pt) => pt.id != p.id));
71
- return (index$1.h(index$1.Host, { key: '1cb846cc92b660a8244d16a74f48dfadcef903b6' }, index$1.h("main", { key: '8564f8b0bf6e7bd668132e2833fe73c73855d090', part: "main" }, index$1.h(index$2.Render, { key: '61b96f305727dc74de15f4c3c645069d6300afd9', element: "rtk-simple-grid", defaults: defaults, props: {
71
+ return (index$1.h(index$1.Host, { key: '61c335032f64054d173a44639ab41ead131d0cdf' }, index$1.h("main", { key: '6dd23dc9d8b600d1747213396968b9601e04f83e', part: "main" }, index$1.h(index$2.Render, { key: 'efa5e5be367c3423e7fdd280fd9ec66ce5d50134', element: "rtk-simple-grid", defaults: defaults, props: {
72
72
  part: 'main-grid',
73
73
  participants: this.pinnedParticipants,
74
74
  aspectRatio: this.aspectRatio,
75
75
  gap: this.gap,
76
76
  size: this.getAdaptiveSize(this.pinnedParticipants.length),
77
- } })), nonPinnedParticipants.length > 0 && (index$1.h("aside", { key: '2e297a8d83c1f7241d8688b643c055331d69299b', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, index$1.h(index$2.Render, { key: '2c1969c610018dfb0a23308316f072e3b8d87a6e', element: "rtk-simple-grid", defaults: defaults, props: {
77
+ } })), nonPinnedParticipants.length > 0 && (index$1.h("aside", { key: '183ea410b2afb776dec7fc9fd2dbcd33d1ae285a', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, index$1.h(index$2.Render, { key: 'cb763ff9d4c6358f63e974d1984de3c67ffee3b5', element: "rtk-simple-grid", defaults: defaults, props: {
78
78
  part: 'aside-grid',
79
79
  participants: nonPinnedParticipants,
80
80
  aspectRatio: this.aspectRatio,
@@ -14,10 +14,8 @@ import { useLanguage } from "../../lib/lang";
14
14
  import { createDefaultConfig } from "../../lib/default-ui-config";
15
15
  import { SyncWithStore } from "../../utils/sync-with-store";
16
16
  /**
17
- * An AI assistant component for meeting interactions.
18
- *
19
- * Provides AI-powered features like transcription, summarization, and
20
- * intelligent meeting assistance. Rendered inside rtk-sidebar as the 'ai' section.
17
+ * The AI panel shows meeting transcriptions. For example, participants can
18
+ * read the conversation in the sidebar during a meeting.
21
19
  */
22
20
  export class RtkAi {
23
21
  constructor() {
@@ -13,10 +13,8 @@ import { defaultIconPack } from "../../lib/icons";
13
13
  import { SyncWithStore } from "../../utils/sync-with-store";
14
14
  import { useLanguage } from "../../lib/lang";
15
15
  /**
16
- * A modal for sending broadcast messages to all meeting participants.
17
- *
18
- * Allows hosts and moderators to send important announcements that
19
- * appear prominently to all users in the meeting.
16
+ * A modal for writing a broadcast message, such as an announcement to everyone
17
+ * in a meeting. It currently shows a confirmation without sending the message.
20
18
  */
21
19
  export class RtkBroadcastMessageModal {
22
20
  constructor() {
@@ -43,9 +41,9 @@ export class RtkBroadcastMessageModal {
43
41
  }, 2000);
44
42
  }
45
43
  render() {
46
- return (h(Host, { key: '0ddf3933cc56bd2d95a2d112965c22070a52c1ca' }, h("div", { key: '4a1428283dee02f1d09b0650b0facceebd612772', class: "content-col" }, h("h2", { key: '610e4ada5ae3543b629526324e4608e9950a20b0' }, "Broadcast message to"), h("select", { key: '46b4a3573a196f00ad1d9d20d92f3e03b250162c', onChange: (e) => {
44
+ return (h(Host, { key: 'd7559b6aadff8f45387ac2f0b67ba20a18d9fed4' }, h("div", { key: '8b14c6d8b673244408b681f50bed87c3ab9af8bf', class: "content-col" }, h("h2", { key: '560e1e2cd73f07776fe670f4412dace898683f7e' }, "Broadcast message to"), h("select", { key: 'f0a8ddbcea08243f0c496cdc14916eea928ad520', onChange: (e) => {
47
45
  this.messagePayload = Object.assign(Object.assign({}, this.messagePayload), { to: e.target.value });
48
- } }, h("option", { key: 'aaa981db25435bb257d02086463703d3d2a14ec2' }, "Everyone"), h("option", { key: '4bae49f7600fe5b5156f030e2f2433b334856e00' }, "List of rooms")), h("textarea", { key: '0d6da453ebb0b9711c79ba3c2c2c71a662955a9d', placeholder: "Type message here...", onInput: (e) => {
46
+ } }, h("option", { key: 'daa2217e90ccd31d3a7fff136069bebe28b34da3' }, "Everyone"), h("option", { key: '72133e1507e26a555875bba037d2b0cb824a16f9' }, "List of rooms")), h("textarea", { key: 'eb523131f3bbe458cf802db5860029b2ce69c74f', placeholder: "Type message here...", onInput: (e) => {
49
47
  this.messagePayload = Object.assign(Object.assign({}, this.messagePayload), { message: e.target.value });
50
48
  } }), this.successMessage ? (h("p", null, "Message sent to ", this.messagePayload.to, h("rtk-icon", { icon: this.iconPack.checkmark }))) : (h("div", { class: "content-row" }, h("rtk-button", { onClick: () => this.close(), variant: "secondary" }, "Cancel"), "\u2002", h("rtk-button", { variant: "primary", onClick: () => this.sendMessage() }, "Send"))))));
51
49
  }
@@ -24,6 +24,7 @@ export class RtkChatComposerView {
24
24
  constructor() {
25
25
  /** Whether user can send text messages */
26
26
  this.canSendTextMessage = true;
27
+ /** Whether a message is being sent */
27
28
  this.isSending = false;
28
29
  /** Whether user can send file messages */
29
30
  this.canSendFiles = true;
@@ -169,17 +170,17 @@ export class RtkChatComposerView {
169
170
  render() {
170
171
  var _a;
171
172
  const uiProps = { iconPack: this.iconPack, t: this.t };
172
- return (h(Host, { key: '2df23422579c855ced1cb6d24bb95786a1326baf' }, this.canSendTextMessage && this.isEmojiPickerOpen && (h("rtk-emoji-picker", Object.assign({ key: 'a7ed280a636d0207f58f0ad13f79c1eaed52ab9c', part: "emoji-picker", onPickerClose: () => {
173
+ return (h(Host, { key: '9b1caad153f14eae50191e4b9c33b73d6f1051fa' }, this.canSendTextMessage && this.isEmojiPickerOpen && (h("rtk-emoji-picker", Object.assign({ key: 'c27927a302c1420bc115707491e0aa0a6b9e8286', part: "emoji-picker", onPickerClose: () => {
173
174
  this.isEmojiPickerOpen = false;
174
175
  }, onRtkEmojiClicked: (e) => {
175
176
  this.textMessage += e.detail;
176
177
  this.$textComposer.setText(this.textMessage, true);
177
- } }, uiProps))), h("slot", { key: '759df2a2029fbba963cfc26cd871771881dd6c5e', name: "chat-addon" }), this.quotedMessage && this.quotedMessage.length !== 0 && (h("div", { key: '413be05a7374fc76f790ad3f6f5bef5a56a6ef97', class: "quoted-message-container", part: "quoted-message-container" }, h("div", { key: '7fb6b571103c675dca202b74bd07fd55062dab70', class: "quoted-message scrollbar" }, h("rtk-text-message-view", { key: '3997aa719a746234c5641e976dd0c27e68b69dae', text: this.quotedMessage, isMarkdown: true })), h("div", { key: 'f76ec54e3d67d6957d5d152b144b22d8cc122660' }, h("rtk-icon", { key: '897b52fc41814d2cb8beeb461c36c9843cb2869e', "aria-label": this.t('dismiss'), class: "dismiss", icon: this.iconPack.dismiss, onClick: this.onQuotedMessageDismissHandler })))), h("div", { key: '35447eb1fffffd372c231bc76ce741e483e7f26a', class: "composer-container" }, h("div", { key: '0f8f198df49fcc27f6c85b8d6909eb2a7c00e142', class: "composers" }, this.fileToUpload && (h("rtk-draft-attachment-view", Object.assign({ key: '9d325d05fecb12ecb41f02e54561d2e1b59b2c2f' }, uiProps, { attachment: this.fileToUpload, onDeleteAttachment: () => (this.fileToUpload = null) }))), !this.fileToUpload && (h("rtk-text-composer-view", { key: 'fbc870bb9d9c2418e528e64273edb67846e23e17', value: this.textMessage, placeholder: this.inputTextPlaceholder, onTextChange: this.onTextChangeHandler, keyDownHandler: this.onKeyDownHandler, maxLength: (_a = this.maxLength) !== null && _a !== void 0 ? _a : MAX_TEXT_LENGTH, rateLimitBreached: this.rateLimitsBreached, t: this.t, iconPack: this.iconPack, ref: (el) => (this.$textComposer = el) }))), h("div", { key: '20191403531eb87bca86d13387c7937153a4c99e', class: "chat-buttons", part: "chat-buttons" }, h("div", { key: '4914a61fea3f502dc14778a237e9ce35a97e3afc', class: "left", part: "chat-buttons-left" }, !this.fileToUpload && !this.isEditing && (h("div", { key: '76c843588f2f7d90f5e60a1e44955309026eda27' }, this.canSendFiles && [
178
- h("rtk-file-picker-button", Object.assign({ key: 'cbb6f17b22f10b48ada27a4b4da3c1d5b2c7e320' }, uiProps, { onFileChange: (event) => this.onFileUploadHandler('file', event.detail) })),
179
- h("rtk-file-picker-button", Object.assign({ key: '0868162a2da021dd4175e977adf47d72ca54044a', filter: "image/*", label: this.t('chat.send_img'), icon: "image", onFileChange: (event) => this.onFileUploadHandler('image', event.detail) }, uiProps)),
180
- ], this.canSendTextMessage && !this.disableEmojiPicker && (h("rtk-emoji-picker-button", Object.assign({ key: 'a73378b5495dc3bfcde7dba335f674292ee6a96c', isActive: this.isEmojiPickerOpen, onClick: () => {
178
+ } }, uiProps))), h("slot", { key: '7be131be821b0722a744d14f3a03eafdb1d57c2e', name: "chat-addon" }), this.quotedMessage && this.quotedMessage.length !== 0 && (h("div", { key: '914177fb791b9517af8c093ff60425a462dfc484', class: "quoted-message-container", part: "quoted-message-container" }, h("div", { key: '63c67074d3b921db41b65d607f688cb316de0777', class: "quoted-message scrollbar" }, h("rtk-text-message-view", { key: '6e5cf92e146b60f5f140bce2689a90bdd91d0b50', text: this.quotedMessage, isMarkdown: true })), h("div", { key: '6d0dec2c5bbee4f1adfad36cbed56199a215df06' }, h("rtk-icon", { key: '049f2c4924cd1fd108d78bbbbc3e2da772bdfaba', "aria-label": this.t('dismiss'), class: "dismiss", icon: this.iconPack.dismiss, onClick: this.onQuotedMessageDismissHandler })))), h("div", { key: 'eecbc4402df5b06017730392199921b64a3d3c84', class: "composer-container" }, h("div", { key: '4e97070e4e5fe8631cba468e5c5469fd40c40620', class: "composers" }, this.fileToUpload && (h("rtk-draft-attachment-view", Object.assign({ key: '4a0a9b8d98ab71b32bfefc28aea26008c5962a7f' }, uiProps, { attachment: this.fileToUpload, onDeleteAttachment: () => (this.fileToUpload = null) }))), !this.fileToUpload && (h("rtk-text-composer-view", { key: '1df62b1794e7f61cccfafb5696092097e4b917b0', value: this.textMessage, placeholder: this.inputTextPlaceholder, onTextChange: this.onTextChangeHandler, keyDownHandler: this.onKeyDownHandler, maxLength: (_a = this.maxLength) !== null && _a !== void 0 ? _a : MAX_TEXT_LENGTH, rateLimitBreached: this.rateLimitsBreached, t: this.t, iconPack: this.iconPack, ref: (el) => (this.$textComposer = el) }))), h("div", { key: '411c5840e1c1ec314ed8189939857d0dd38cdd89', class: "chat-buttons", part: "chat-buttons" }, h("div", { key: '60b339e7336bd5f89f63d91a07b1318345764860', class: "left", part: "chat-buttons-left" }, !this.fileToUpload && !this.isEditing && (h("div", { key: '886fb5fbbdb3d4090d3719c403275f81579b2607' }, this.canSendFiles && [
179
+ h("rtk-file-picker-button", Object.assign({ key: '1eb87fc454180637e2c2ac0931bc01e810f8a934' }, uiProps, { onFileChange: (event) => this.onFileUploadHandler('file', event.detail) })),
180
+ h("rtk-file-picker-button", Object.assign({ key: '6b63180ed0e791fa6c7aa819cdafeb3967f1e8ca', filter: "image/*", label: this.t('chat.send_img'), icon: "image", onFileChange: (event) => this.onFileUploadHandler('image', event.detail) }, uiProps)),
181
+ ], this.canSendTextMessage && !this.disableEmojiPicker && (h("rtk-emoji-picker-button", Object.assign({ key: 'dc8e536275ced829c16152dd9f60dc72b260bd50', isActive: this.isEmojiPickerOpen, onClick: () => {
181
182
  this.isEmojiPickerOpen = !this.isEmojiPickerOpen;
182
- } }, uiProps))), h("slot", { key: '31208ad279dec430da4527d22730de8e418bc722', name: "chat-buttons" })))), h("div", { key: '04fcdd3f690548cbf1e257ffb2982785e557726b', class: "right", part: "chat-buttons-right" }, !this.isEditing && (h("rtk-tooltip", { key: '367bf710673a0a2276f46d52289409abb77fe27b', variant: "primary", label: this.t('chat.send_msg'), delay: 2000 }, h("rtk-button", { key: 'c677e3026636c375ed7eee411c596f6d2a802794', kind: "icon", disabled: this.disableSendButton || this.isSending, onClick: () => this.handleSendMessage(), title: this.t('chat.send_msg') }, this.isSending ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.send }))))), this.isEditing && (h("div", { key: '1e09e8868e4ae048b36bc8198b8aa1de92209a00', class: "edit-buttons" }, h("rtk-tooltip", { key: '29ff7a39bd168169fa7d104357b529a2c9efe0fd', variant: "secondary", label: this.t('cancel'), delay: 2000 }, h("rtk-button", { key: '27cf5353d0e8c2620fd8d4213994a9dcc83f83f3', kind: "icon", variant: "secondary", onClick: () => this.handleEditCancel(), title: this.t('cancel') }, h("rtk-icon", { key: 'aeb4c9df3993c6cebf952f64f6676eb8a3866bb0', icon: this.iconPack.dismiss }))), h("rtk-tooltip", { key: '835195d0f51a1db81e66a1b2d9076a71f2aaee4e', variant: "primary", label: this.t('chat.update_msg'), delay: 2000 }, h("rtk-button", { key: 'd524f01ba5d7ca52224d39e23e7f963972ad80c9', kind: "icon", onClick: () => this.handleEditMessage(), title: this.t('chat.send_msg') }, this.isSending ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.checkmark })))))))))));
183
+ } }, uiProps))), h("slot", { key: '4837bd3dc865864800e3adbb500fcc8785bc355e', name: "chat-buttons" })))), h("div", { key: '0bb4a6b7f0cb2e98e830223da3c1c543cbf174ca', class: "right", part: "chat-buttons-right" }, !this.isEditing && (h("rtk-tooltip", { key: '5db285aec89f1f32d84291276d00e2d38beb6b58', variant: "primary", label: this.t('chat.send_msg'), delay: 2000 }, h("rtk-button", { key: '34b46c654679429f7f67957f03700ec0b6a5a348', kind: "icon", disabled: this.disableSendButton || this.isSending, onClick: () => this.handleSendMessage(), title: this.t('chat.send_msg') }, this.isSending ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.send }))))), this.isEditing && (h("div", { key: '8b42d23271e3f5bc04240e643c90036319e162e4', class: "edit-buttons" }, h("rtk-tooltip", { key: 'd01eb04abe77564898790f713d61763bb2b56bb6', variant: "secondary", label: this.t('cancel'), delay: 2000 }, h("rtk-button", { key: '634e183ecfc1b4e4b4911a61208db319123f80b2', kind: "icon", variant: "secondary", onClick: () => this.handleEditCancel(), title: this.t('cancel') }, h("rtk-icon", { key: '47feedb66b8060139ec466a48deb385ff6863f79', icon: this.iconPack.dismiss }))), h("rtk-tooltip", { key: '84eedebb9de4bcd4efe33bbb1187ca7896efd3e8', variant: "primary", label: this.t('chat.update_msg'), delay: 2000 }, h("rtk-button", { key: '498d5192c26baa77d3b690b1e9390c76be50764d', kind: "icon", onClick: () => this.handleEditMessage(), title: this.t('chat.send_msg') }, this.isSending ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.checkmark })))))))))));
183
184
  }
184
185
  static get is() { return "rtk-chat-composer-view"; }
185
186
  static get encapsulation() { return "shadow"; }
@@ -227,7 +228,7 @@ export class RtkChatComposerView {
227
228
  "optional": false,
228
229
  "docs": {
229
230
  "tags": [],
230
- "text": ""
231
+ "text": "Whether a message is being sent"
231
232
  },
232
233
  "getter": false,
233
234
  "setter": false,
@@ -14,10 +14,8 @@ import { useLanguage } from "../../lib/lang";
14
14
  import { isLiveStreamHost } from "../../utils/livestream";
15
15
  import { SyncWithStore } from "../../utils/sync-with-store";
16
16
  /**
17
- * A toggle button for starting/stopping livestream broadcasting.
18
- *
19
- * Only visible to users with livestream permissions. Allows hosts to
20
- * broadcast the meeting to external streaming platforms.
17
+ * A button for starting or stopping a meeting livestream. It appears only for
18
+ * participants who have permission to host the livestream.
21
19
  */
22
20
  export class RtkLivestreamToggle {
23
21
  constructor() {
@@ -260,11 +260,11 @@ export class RtkMessageListView {
260
260
  this.updateTotalHeight();
261
261
  }
262
262
  render() {
263
- return (h("div", { key: '6564a301cf646ed53993d924111206cf4a382833', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, h("div", { key: '81469bde1e421f0a881c3ad33b30a601fc54901c', class: "scroller" }, h("div", { key: '5e0c8dd617aa7ed5517cde108539dc23265a29e2', style: {
263
+ return (h("div", { key: '8da5ac7ee83f43da54ce1af023e178d206436b80', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, h("div", { key: '3aeec25e25aeb2864b7ce0d68a08d58bb2b63cef', class: "scroller" }, h("div", { key: 'b65b2fb4471307f38c08480d268adfaafdb696fb', style: {
264
264
  height: `${this.totalHeight}px`,
265
- } }), h("div", { key: 'f994d2627b4787f803b9c7ac00f574dbd034f924', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), h("div", { key: '4de62649e894f024ecb7d5767f6eefc702544964', class: "content", style: {
265
+ } }), h("div", { key: '08aa1dcf4740ce438b152527e8d60aff28704e8a', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), h("div", { key: '48ba3788f83f2329174fb3ddd107eaf4da91699a', class: "content", style: {
266
266
  transform: `translateY(${this.getRangeSize(0, this.range.start)}px)`,
267
- } }, this.isFetching && (h("div", { key: 'dfa9a9abbc190896f80aa90191ab654fee7b7d8f', class: "loader" }, h("rtk-spinner", { key: '416b800f9d481689860340aff00fe30f30255603', size: "md" }))), this.getVisibleItems().map((msg, index) => (h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
267
+ } }, this.isFetching && (h("div", { key: '1a53b6b02899df6ce80c781b44fcd71802105fdf', class: "loader" }, h("rtk-spinner", { key: '222bdf5ad19f45914f48c91afb65075e3fef277f', size: "md" }))), this.getVisibleItems().map((msg, index) => (h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
268
268
  }
269
269
  static get is() { return "rtk-message-list-view"; }
270
270
  static get originalStyleUrls() {
@@ -348,7 +348,7 @@ export class RtkMessageListView {
348
348
  "optional": false,
349
349
  "docs": {
350
350
  "tags": [],
351
- "text": "Function to load more messages.\nMessages returned from this will be preprended"
351
+ "text": "Function to load more messages.\nMessages returned from this will be prepended"
352
352
  },
353
353
  "getter": false,
354
354
  "setter": false
@@ -151,7 +151,7 @@ export class RtkPaginatedList {
151
151
  }
152
152
  }
153
153
  /**
154
- * Updates a new node anywhere in the list
154
+ * Updates an existing node in the paginated list.
155
155
  * @param {string} id - The id of the node to update
156
156
  * @param {DataNode} node - The updated data node
157
157
  * */
@@ -364,9 +364,9 @@ export class RtkPaginatedList {
364
364
  /**
365
365
  * div.container is flex=column-reversewhich is why div#bottom-scroll comes before div#top-scroll
366
366
  */
367
- return (h(Host, { key: 'bff4fc91b737334c5764e690fbf2adafa1444408' }, h("div", { key: 'f4efa98ef0bd178602ee03718d35fcb833487909', class: "scrollbar container", part: "container", ref: (el) => (this.$containerRef = el) }, h("div", { key: '37403f6462812a6662efa9577ae9ed43d27f63d6', class: { 'show-new-messages-ctr': true, active: this.showNewMessagesCTR } }, h("rtk-button", { key: 'ee7e04e6281370dddb1b1e10b753e96dc602d42a', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => {
367
+ return (h(Host, { key: '836a2ef0f7929b35b7e3ce5a62291f58fc35a2bc' }, h("div", { key: '6bad7209030f715fc93942e1a29b174d1564ea5e', class: "scrollbar container", part: "container", ref: (el) => (this.$containerRef = el) }, h("div", { key: '069d4f398daca2bb2cea90c8b2c8d76848f52bd8', class: { 'show-new-messages-ctr': true, active: this.showNewMessagesCTR } }, h("rtk-button", { key: 'a2d7c5600a691c3440260150cefec78bdd145c92', class: "show-new-messages", kind: "icon", variant: "secondary", part: "show-new-messages", onClick: () => {
368
368
  this.scrollToBottom();
369
- } }, this.shouldScrollToBottom ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.chevron_down })))), h("div", { key: '91bcdadd2518313fa06306a172575f5acc786596', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoadingBottom && this.pages.length > 0 && h("rtk-spinner", { key: '932af19af69c3ecd5af22dd3051a5eea5cb25e7a', size: "sm" }), this.isLoading && this.pages.length < 1 && h("rtk-spinner", { key: '9fa60fb784a09800a32a3accdc81d940476330d2', size: "lg" }), !this.isLoading && this.pages.flat().length === 0 ? (h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (h("div", { class: "page-wrapper" }, this.pages.map((page, pageIndex) => (h("div", { class: "page", "data-page-index": pageIndex }, this.createNodes([...page].reverse())))))), this.isLoadingTop && this.pages.length > 0 && h("rtk-spinner", { key: '73103f58338bdb89be69f9f6dc742e3cdd2c95d8', size: "sm" }), h("div", { key: '9c4c43ffb6442d58040448fe1b2d7332505fc81e', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
369
+ } }, this.shouldScrollToBottom ? (h("rtk-spinner", { size: "sm" })) : (h("rtk-icon", { icon: this.iconPack.chevron_down })))), h("div", { key: '0b40605499a35ff03ac7c048aaaac32432a453ad', class: "smallest-dom-element", id: "bottom-scroll", ref: (el) => (this.$bottomRef = el) }), this.isLoadingBottom && this.pages.length > 0 && h("rtk-spinner", { key: 'fdcc9685d9cbcc4f4642c6ea1b716d3e57744883', size: "sm" }), this.isLoading && this.pages.length < 1 && h("rtk-spinner", { key: '9999a8e7008059a2742cbbc43f303e21825d44e5', size: "lg" }), !this.isLoading && this.pages.flat().length === 0 ? (h("div", { class: "empty-list" }, (_a = this.emptyListLabel) !== null && _a !== void 0 ? _a : this.t('list.empty'))) : (h("div", { class: "page-wrapper" }, this.pages.map((page, pageIndex) => (h("div", { class: "page", "data-page-index": pageIndex }, this.createNodes([...page].reverse())))))), this.isLoadingTop && this.pages.length > 0 && h("rtk-spinner", { key: '923d826998193b190dc89a8bafe16fb38495f3ba', size: "sm" }), h("div", { key: '92b528919596a4fbe32c3a7f023de8d6494d57c7', class: "smallest-dom-element", id: "top-scroll", ref: (el) => (this.$topRef = el) }))));
370
370
  }
371
371
  static get is() { return "rtk-paginated-list"; }
372
372
  static get encapsulation() { return "shadow"; }
@@ -664,7 +664,7 @@ export class RtkPaginatedList {
664
664
  "return": "Promise<void>"
665
665
  },
666
666
  "docs": {
667
- "text": "Updates a new node anywhere in the list",
667
+ "text": "Updates an existing node in the paginated list.",
668
668
  "tags": [{
669
669
  "name": "param",
670
670
  "text": "id - The id of the node to update"
@@ -13,10 +13,8 @@ import { defaultIconPack, createDefaultConfig, } from "../../exports";
13
13
  import { useLanguage } from "../../lib/lang";
14
14
  import { SyncWithStore } from "../../utils/sync-with-store";
15
15
  /**
16
- * A component that displays participants waiting in the stage queue.
17
- *
18
- * Shows users who are waiting to be promoted to the stage in meetings
19
- * with stage functionality enabled.
16
+ * Displays participants who have requested access to the stage. The list includes
17
+ * controls for accepting or denying their requests.
20
18
  */
21
19
  export class RtkParticipantsStaged {
22
20
  constructor() {
@@ -13,10 +13,8 @@ import { createDefaultConfig, defaultIconPack, } from "../../exports";
13
13
  import { useLanguage } from "../../lib/lang";
14
14
  import { SyncWithStore } from "../../utils/sync-with-store";
15
15
  /**
16
- * A toggle button for enabling/disabling Picture-in-Picture mode.
17
- *
18
- * Allows users to switch the video display to a floating window that stays
19
- * on top of other applications.
16
+ * A button to turn Picture-in-Picture mode on or off when available. For example,
17
+ * a participant can keep the meeting video visible while using another app.
20
18
  */
21
19
  export class RtkPipToggle {
22
20
  constructor() {
@@ -12,10 +12,8 @@ import { Host, h } from "@stencil/core";
12
12
  import { SyncWithStore } from "../../utils/sync-with-store";
13
13
  import { defaultIconPack, useLanguage } from "../../exports";
14
14
  /**
15
- * A sidebar UI component with tabbed navigation.
16
- *
17
- * Provides a container for sidebar content with tab switching functionality.
18
- * Can be displayed as a sidebar or in full-screen mode.
15
+ * A tabbed container for meeting panels, such as chat and participants. It shows
16
+ * the selected panel in a sidebar or full-screen view.
19
17
  */
20
18
  export class RtkSidebarUi {
21
19
  constructor() {
@@ -68,11 +66,11 @@ export class RtkSidebarUi {
68
66
  render() {
69
67
  const isFullScreen = this.view === 'full-screen';
70
68
  const activeTab = this.tabs.find((tab) => tab.id === this.currentTab);
71
- return (h(Host, { key: '239f279ceccceeaa57181d4a71f3e04ede4132ce', ref: (el) => (this.hostEl = el), class: this.view }, !this.hideCloseAction && (h("rtk-button", { key: '921847fd946de305dce6f1fc7fe8a9ff175e38ee', ref: (el) => (this.closeButton = el), variant: "ghost", kind: "icon", class: "close", onClick: this.onClose, "aria-label": this.t('close') }, h("rtk-icon", { key: '1de9f1edf8ecce2d0390b7b8a1253de02affd9d1', icon: this.iconPack.dismiss }))), activeTab && !this.hideHeader && (h("header", { key: '4cd288feeb658e62d3ad1efd47aea237119918e1', class: "main-header" }, h("h3", { key: 'd6c4129537b4e090f3c429c66057be9a1072a864' }, activeTab.name), h("slot", { key: 'dfb1ea30cfa476b515a3a4b628c036083f1fe0a5', name: "pinned-state" }))), isFullScreen && (h("header", { key: '7dafb426628960ba26718530417854a533de3664', class: "mobile-tabs" }, this.tabs.map((tab) => (h("button", { onClick: () => {
69
+ return (h(Host, { key: '850aa92eeb61bf2729b12e30be8a43a9ff3a1acf', ref: (el) => (this.hostEl = el), class: this.view }, !this.hideCloseAction && (h("rtk-button", { key: 'f52d00bc36c398403eb7ac8ab5625f3cecd5da4f', ref: (el) => (this.closeButton = el), variant: "ghost", kind: "icon", class: "close", onClick: this.onClose, "aria-label": this.t('close') }, h("rtk-icon", { key: '4d970f5a9f02839dc297ccb2b7c85806025f7ef1', icon: this.iconPack.dismiss }))), activeTab && !this.hideHeader && (h("header", { key: '8c1ae2f6e4a87e2fc66381e70c7053b1b4a4d2b2', class: "main-header" }, h("h3", { key: '6f9faffac3acd82cd4645189459212026b10bf1d' }, activeTab.name), h("slot", { key: '20b3cff89b8805600eafbce17aabc4880e473a56', name: "pinned-state" }))), isFullScreen && (h("header", { key: '86bf499aadbe7b57868a135a35100cc1e430520e', class: "mobile-tabs" }, this.tabs.map((tab) => (h("button", { onClick: () => {
72
70
  this.tabChange.emit(tab.id);
73
71
  }, class: {
74
72
  active: this.currentTab === tab.id,
75
- } }, tab.name))))), h("slot", { key: '2696ccd9fcad418ad7738164cd5a9e6305320899', name: this.currentTab })));
73
+ } }, tab.name))))), h("slot", { key: 'd19ec28aa918a2bfd9556c64ef758b2faf6a195d', name: this.currentTab })));
76
74
  }
77
75
  static get is() { return "rtk-sidebar-ui"; }
78
76
  static get encapsulation() { return "shadow"; }
@@ -18,7 +18,7 @@ import { SyncWithStore } from "../../utils/sync-with-store";
18
18
  /**
19
19
  * A grid component that renders two lists of participants: `pinnedParticipants` and `participants`.
20
20
  *
21
- * You can customize the layout to a `column` view, by default is is `row`.
21
+ * You can customize the layout to a `column` view, by default is `row`.
22
22
  *
23
23
  * - Participants from `pinnedParticipants[]` are rendered inside a larger grid.
24
24
  * - Participants from `participants[]` array are rendered in a smaller grid.
@@ -72,13 +72,13 @@ export class RtkSpotlightGrid {
72
72
  t: this.t,
73
73
  };
74
74
  const nonPinnedParticipants = this.participants.filter((p) => this.pinnedParticipants.some((pt) => pt.id != p.id));
75
- return (h(Host, { key: '1cb846cc92b660a8244d16a74f48dfadcef903b6' }, h("main", { key: '8564f8b0bf6e7bd668132e2833fe73c73855d090', part: "main" }, h(Render, { key: '61b96f305727dc74de15f4c3c645069d6300afd9', element: "rtk-simple-grid", defaults: defaults, props: {
75
+ return (h(Host, { key: '61c335032f64054d173a44639ab41ead131d0cdf' }, h("main", { key: '6dd23dc9d8b600d1747213396968b9601e04f83e', part: "main" }, h(Render, { key: 'efa5e5be367c3423e7fdd280fd9ec66ce5d50134', element: "rtk-simple-grid", defaults: defaults, props: {
76
76
  part: 'main-grid',
77
77
  participants: this.pinnedParticipants,
78
78
  aspectRatio: this.aspectRatio,
79
79
  gap: this.gap,
80
80
  size: this.getAdaptiveSize(this.pinnedParticipants.length),
81
- } })), nonPinnedParticipants.length > 0 && (h("aside", { key: '2e297a8d83c1f7241d8688b643c055331d69299b', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, h(Render, { key: '2c1969c610018dfb0a23308316f072e3b8d87a6e', element: "rtk-simple-grid", defaults: defaults, props: {
81
+ } })), nonPinnedParticipants.length > 0 && (h("aside", { key: '183ea410b2afb776dec7fc9fd2dbcd33d1ae285a', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, h(Render, { key: 'cb763ff9d4c6358f63e974d1984de3c67ffee3b5', element: "rtk-simple-grid", defaults: defaults, props: {
82
82
  part: 'aside-grid',
83
83
  participants: nonPinnedParticipants,
84
84
  aspectRatio: this.aspectRatio,
@@ -1 +1 @@
1
- import{p as t,H as r,c as e,h as s,d as a,t as i}from"./p-BBHQOrFK.js";import{S as o}from"./p-bRRQr4xn.js";import{e as n,i as c}from"./p-DhwysA2e.js";import{e as l}from"./p-jvwnrxra.js";import{d}from"./p-BHHJ7_MS.js";import{d as p}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as g}from"./p-qDy7F0Tr.js";import{d as b}from"./p-B0SC1Zj-.js";var m=function(t,r,e,s){var a,i=arguments.length,o=i<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,e,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(i<3?a(o):i>3?a(r,e,o):a(r,e))||o);return i>3&&o&&Object.defineProperty(r,e,o),o};const v=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dropdownToggle=e(this,"rtkDropdownToggle",7),this.pinnedMessageSelect=e(this,"rtkPinnedMessageSelect",7),this.isOpen=!1,this.iconPack=n,this.t=c(),this.pageSize=25,this.pagesAllowed=3,this.showPinnedMessages=!0,this.toggle=t=>{t.preventDefault(),t.stopPropagation(),this.isOpen=!this.isOpen,this.dropdownToggle.emit({open:this.isOpen})},this.getPinnedChatMessages=async(t,r,e)=>{const s=this.meeting;if(!s)return[];try{return await s.chat.fetchPinnedMessages({timestamp:t,limit:r,direction:e?"before":"after"})}catch(t){return[]}},this.createPinnedChatNodes=t=>t.map((t=>{const r="text"===t.type?(t.message||"").replace(/\s+/g," ").trim():"file"===t.type?"File Attachment":"image"===t.type?"Image Attachment":"";return s("div",{class:"pinned-message",id:t.id,onClick:()=>{this.pinnedMessageSelect.emit(t),this.close()}},s("div",{class:"pinned-message-container"},s("rtk-avatar",{size:"sm",participant:{name:t.displayName,picture:""}}),s("div",{class:"pinned-message-content"},s("div",{class:"pinned-message-preview",title:r},r),s("div",{class:"pinned-message-meta"},s("span",{class:"pinned-message-time"},l(t.time,new Date(Date.now())))))))})),this.pinChatListener=t=>{var r,e;(null===(r=t.message.targetUserIds)||void 0===r?void 0:r.length)>0||null===(e=this.$paginatedListRef)||void 0===e||e.reset()},this.unpinChatListener=async t=>{var r,e;(null===(r=t.message.targetUserIds)||void 0===r?void 0:r.length)>0||null===(e=this.$paginatedListRef)||void 0===e||e.onNodeDelete(t.message.id)},this.chatUpdateListener=async t=>{"delete"===t.action&&this.unpinChatListener(t)}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var r,e,s;null===(r=t.chat)||void 0===r||r.removeListener("pinMessage",this.pinChatListener),null===(e=t.chat)||void 0===e||e.removeListener("unpinMessage",this.unpinChatListener),null===(s=t.chat)||void 0===s||s.removeListener("chatUpdate",this.chatUpdateListener)}meetingChanged(t,r){var e,s,a,i;r&&this.disconnectMeeting(r),t&&(null===(e=this.$paginatedListRef)||void 0===e||e.reset(),null===(s=t.chat)||void 0===s||s.addListener("pinMessage",this.pinChatListener),null===(a=t.chat)||void 0===a||a.addListener("unpinMessage",this.unpinChatListener),null===(i=t.chat)||void 0===i||i.addListener("chatUpdate",this.chatUpdateListener))}async close(){this.isOpen&&(this.isOpen=!1,this.dropdownToggle.emit({open:!1}))}async onChatSelectorChange(t){var r;const e=null===(r=t.detail)||void 0===r?void 0:r.selectedUser;this.showPinnedMessages=!e}render(){return this.showPinnedMessages?s(a,null,s("div",{class:"chat-header",onClick:this.toggle},s("div",{class:"chat-header-label"},s("rtk-icon",{icon:this.iconPack.pin,size:"sm"}),this.t("chat.pinned_msgs")),s("div",{class:"chevron"},s("rtk-icon",{icon:this.isOpen?this.iconPack.chevron_up:this.iconPack.chevron_down,size:"sm"}))),s("div",{class:{dropdown:!0,open:this.isOpen,scrollbar:!0}},s("rtk-paginated-list",{class:"pinned-message-selector-paginated-list",ref:t=>this.$paginatedListRef=t,pageSize:this.pageSize,pagesAllowed:3,fetchData:this.getPinnedChatMessages,createNodes:this.createPinnedChatNodes,emptyListLabel:this.t("chat.empty_search")},s("slot",null)))):null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;width:100%;flex-direction:column;font-size:14px;position:relative;box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{position:relative;margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));border-radius:var(--rtk-border-radius-sm, 4px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}.dropdown{position:absolute;top:100%;z-index:10;padding:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));opacity:0;pointer-events:none;border-bottom-right-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);left:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);max-width:calc(100vw - var(--rtk-space-4, 16px));box-sizing:border-box}.dropdown.open{opacity:1;pointer-events:auto;border-width:1px;border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity))}.dropdown rtk-paginated-list{box-sizing:border-box;display:flex;height:30vh;flex-direction:column}"}},[257,"rtk-pinned-message-selector",{meeting:[16],iconPack:[16],t:[16],isOpen:[32],pageSize:[32],pagesAllowed:[32],showPinnedMessages:[32],close:[64]},[[8,"rtkChatSelectorChange","onChatSelectorChange"]],{meeting:[{meetingChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-pinned-message-selector","rtk-avatar","rtk-button","rtk-icon","rtk-paginated-list","rtk-spinner"].forEach((t=>{switch(t){case"rtk-pinned-message-selector":customElements.get(i(t))||customElements.define(i(t),v);break;case"rtk-avatar":customElements.get(i(t))||d();break;case"rtk-button":customElements.get(i(t))||p();break;case"rtk-icon":customElements.get(i(t))||h();break;case"rtk-paginated-list":customElements.get(i(t))||g();break;case"rtk-spinner":customElements.get(i(t))||b()}}))}m([o()],v.prototype,"meeting",void 0),m([o()],v.prototype,"iconPack",void 0),m([o()],v.prototype,"t",void 0),k();export{v as R,k as d}
1
+ import{p as t,H as r,c as e,h as s,d as a,t as i}from"./p-BBHQOrFK.js";import{S as o}from"./p-bRRQr4xn.js";import{e as n,i as c}from"./p-DhwysA2e.js";import{e as l}from"./p-jvwnrxra.js";import{d}from"./p-BHHJ7_MS.js";import{d as p}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as g}from"./p-C9UuqXCX.js";import{d as b}from"./p-B0SC1Zj-.js";var m=function(t,r,e,s){var a,i=arguments.length,o=i<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,e,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(i<3?a(o):i>3?a(r,e,o):a(r,e))||o);return i>3&&o&&Object.defineProperty(r,e,o),o};const v=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dropdownToggle=e(this,"rtkDropdownToggle",7),this.pinnedMessageSelect=e(this,"rtkPinnedMessageSelect",7),this.isOpen=!1,this.iconPack=n,this.t=c(),this.pageSize=25,this.pagesAllowed=3,this.showPinnedMessages=!0,this.toggle=t=>{t.preventDefault(),t.stopPropagation(),this.isOpen=!this.isOpen,this.dropdownToggle.emit({open:this.isOpen})},this.getPinnedChatMessages=async(t,r,e)=>{const s=this.meeting;if(!s)return[];try{return await s.chat.fetchPinnedMessages({timestamp:t,limit:r,direction:e?"before":"after"})}catch(t){return[]}},this.createPinnedChatNodes=t=>t.map((t=>{const r="text"===t.type?(t.message||"").replace(/\s+/g," ").trim():"file"===t.type?"File Attachment":"image"===t.type?"Image Attachment":"";return s("div",{class:"pinned-message",id:t.id,onClick:()=>{this.pinnedMessageSelect.emit(t),this.close()}},s("div",{class:"pinned-message-container"},s("rtk-avatar",{size:"sm",participant:{name:t.displayName,picture:""}}),s("div",{class:"pinned-message-content"},s("div",{class:"pinned-message-preview",title:r},r),s("div",{class:"pinned-message-meta"},s("span",{class:"pinned-message-time"},l(t.time,new Date(Date.now())))))))})),this.pinChatListener=t=>{var r,e;(null===(r=t.message.targetUserIds)||void 0===r?void 0:r.length)>0||null===(e=this.$paginatedListRef)||void 0===e||e.reset()},this.unpinChatListener=async t=>{var r,e;(null===(r=t.message.targetUserIds)||void 0===r?void 0:r.length)>0||null===(e=this.$paginatedListRef)||void 0===e||e.onNodeDelete(t.message.id)},this.chatUpdateListener=async t=>{"delete"===t.action&&this.unpinChatListener(t)}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var r,e,s;null===(r=t.chat)||void 0===r||r.removeListener("pinMessage",this.pinChatListener),null===(e=t.chat)||void 0===e||e.removeListener("unpinMessage",this.unpinChatListener),null===(s=t.chat)||void 0===s||s.removeListener("chatUpdate",this.chatUpdateListener)}meetingChanged(t,r){var e,s,a,i;r&&this.disconnectMeeting(r),t&&(null===(e=this.$paginatedListRef)||void 0===e||e.reset(),null===(s=t.chat)||void 0===s||s.addListener("pinMessage",this.pinChatListener),null===(a=t.chat)||void 0===a||a.addListener("unpinMessage",this.unpinChatListener),null===(i=t.chat)||void 0===i||i.addListener("chatUpdate",this.chatUpdateListener))}async close(){this.isOpen&&(this.isOpen=!1,this.dropdownToggle.emit({open:!1}))}async onChatSelectorChange(t){var r;const e=null===(r=t.detail)||void 0===r?void 0:r.selectedUser;this.showPinnedMessages=!e}render(){return this.showPinnedMessages?s(a,null,s("div",{class:"chat-header",onClick:this.toggle},s("div",{class:"chat-header-label"},s("rtk-icon",{icon:this.iconPack.pin,size:"sm"}),this.t("chat.pinned_msgs")),s("div",{class:"chevron"},s("rtk-icon",{icon:this.isOpen?this.iconPack.chevron_up:this.iconPack.chevron_down,size:"sm"}))),s("div",{class:{dropdown:!0,open:this.isOpen,scrollbar:!0}},s("rtk-paginated-list",{class:"pinned-message-selector-paginated-list",ref:t=>this.$paginatedListRef=t,pageSize:this.pageSize,pagesAllowed:3,fetchData:this.getPinnedChatMessages,createNodes:this.createPinnedChatNodes,emptyListLabel:this.t("chat.empty_search")},s("slot",null)))):null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;width:100%;flex-direction:column;font-size:14px;position:relative;box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{position:relative;margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));border-radius:var(--rtk-border-radius-sm, 4px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}.dropdown{position:absolute;top:100%;z-index:10;padding:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));opacity:0;pointer-events:none;border-bottom-right-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);left:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);max-width:calc(100vw - var(--rtk-space-4, 16px));box-sizing:border-box}.dropdown.open{opacity:1;pointer-events:auto;border-width:1px;border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity))}.dropdown rtk-paginated-list{box-sizing:border-box;display:flex;height:30vh;flex-direction:column}"}},[257,"rtk-pinned-message-selector",{meeting:[16],iconPack:[16],t:[16],isOpen:[32],pageSize:[32],pagesAllowed:[32],showPinnedMessages:[32],close:[64]},[[8,"rtkChatSelectorChange","onChatSelectorChange"]],{meeting:[{meetingChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-pinned-message-selector","rtk-avatar","rtk-button","rtk-icon","rtk-paginated-list","rtk-spinner"].forEach((t=>{switch(t){case"rtk-pinned-message-selector":customElements.get(i(t))||customElements.define(i(t),v);break;case"rtk-avatar":customElements.get(i(t))||d();break;case"rtk-button":customElements.get(i(t))||p();break;case"rtk-icon":customElements.get(i(t))||h();break;case"rtk-paginated-list":customElements.get(i(t))||g();break;case"rtk-spinner":customElements.get(i(t))||b()}}))}m([o()],v.prototype,"meeting",void 0),m([o()],v.prototype,"iconPack",void 0),m([o()],v.prototype,"t",void 0),k();export{v as R,k as d}
@@ -1 +1 @@
1
- import{t as r,p as t,H as a,h as e,d as o}from"./p-BBHQOrFK.js";import{d as s}from"./p-BHHJ7_MS.js";import{d as c}from"./p-D6vw6bT2.js";import{d as i}from"./p-DzDWIdoE.js";import{d as n}from"./p-BYIBbfJ8.js";import{d as l}from"./p-qDy7F0Tr.js";import{d}from"./p-EkUCxpDZ.js";import{d as p}from"./p-B0SC1Zj-.js";const k=t(class extends a{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.onPinnedToggle=async r=>{var t,a,e;(null===(t=r.detail)||void 0===t?void 0:t.open)&&await(null===(e=null===(a=this.$chatSelector)||void 0===a?void 0:a.close)||void 0===e?void 0:e.call(a))},this.onChatToggle=async r=>{var t,a,e;(null===(t=r.detail)||void 0===t?void 0:t.open)&&await(null===(e=null===(a=this.$pinnedSelector)||void 0===a?void 0:a.close)||void 0===e?void 0:e.call(a))}}render(){return e(o,{key:"3cec93546dc5c7eec01df7b1b1a3847a6f004f0d"},e("rtk-pinned-message-selector",{key:"f099b29e1fb773bfb2931bec2358dd15819778ce",ref:r=>this.$pinnedSelector=r,onRtkDropdownToggle:this.onPinnedToggle}),e("rtk-chat-selector",{key:"0d33e69cf161381dc7598de279147ec9035ef8d7",ref:r=>this.$chatSelector=r,onRtkDropdownToggle:this.onChatToggle}))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;width:100%;flex-direction:column;gap:var(--rtk-space-2, 8px);font-size:14px;z-index:10;margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{position:relative;margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));border-radius:var(--rtk-border-radius-sm, 4px);overflow:hidden;border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));cursor:pointer}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}"}},[1,"rtk-chat-header"]);function b(){"undefined"!=typeof customElements&&["rtk-chat-header","rtk-avatar","rtk-button","rtk-chat-selector","rtk-icon","rtk-paginated-list","rtk-pinned-message-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-chat-header":customElements.get(r(t))||customElements.define(r(t),k);break;case"rtk-avatar":customElements.get(r(t))||s();break;case"rtk-button":customElements.get(r(t))||c();break;case"rtk-chat-selector":customElements.get(r(t))||i();break;case"rtk-icon":customElements.get(r(t))||n();break;case"rtk-paginated-list":customElements.get(r(t))||l();break;case"rtk-pinned-message-selector":customElements.get(r(t))||d();break;case"rtk-spinner":customElements.get(r(t))||p()}}))}b();export{k as R,b as d}
1
+ import{t as r,p as t,H as a,h as e,d as o}from"./p-BBHQOrFK.js";import{d as s}from"./p-BHHJ7_MS.js";import{d as c}from"./p-D6vw6bT2.js";import{d as i}from"./p-CtSq3DFC.js";import{d as n}from"./p-BYIBbfJ8.js";import{d as l}from"./p-C9UuqXCX.js";import{d}from"./p-BoqfUgTL.js";import{d as p}from"./p-B0SC1Zj-.js";const k=t(class extends a{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.onPinnedToggle=async r=>{var t,a,e;(null===(t=r.detail)||void 0===t?void 0:t.open)&&await(null===(e=null===(a=this.$chatSelector)||void 0===a?void 0:a.close)||void 0===e?void 0:e.call(a))},this.onChatToggle=async r=>{var t,a,e;(null===(t=r.detail)||void 0===t?void 0:t.open)&&await(null===(e=null===(a=this.$pinnedSelector)||void 0===a?void 0:a.close)||void 0===e?void 0:e.call(a))}}render(){return e(o,{key:"3cec93546dc5c7eec01df7b1b1a3847a6f004f0d"},e("rtk-pinned-message-selector",{key:"f099b29e1fb773bfb2931bec2358dd15819778ce",ref:r=>this.$pinnedSelector=r,onRtkDropdownToggle:this.onPinnedToggle}),e("rtk-chat-selector",{key:"0d33e69cf161381dc7598de279147ec9035ef8d7",ref:r=>this.$chatSelector=r,onRtkDropdownToggle:this.onChatToggle}))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;width:100%;flex-direction:column;gap:var(--rtk-space-2, 8px);font-size:14px;z-index:10;margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{position:relative;margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));border-radius:var(--rtk-border-radius-sm, 4px);overflow:hidden;border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));cursor:pointer}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}"}},[1,"rtk-chat-header"]);function b(){"undefined"!=typeof customElements&&["rtk-chat-header","rtk-avatar","rtk-button","rtk-chat-selector","rtk-icon","rtk-paginated-list","rtk-pinned-message-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-chat-header":customElements.get(r(t))||customElements.define(r(t),k);break;case"rtk-avatar":customElements.get(r(t))||s();break;case"rtk-button":customElements.get(r(t))||c();break;case"rtk-chat-selector":customElements.get(r(t))||i();break;case"rtk-icon":customElements.get(r(t))||n();break;case"rtk-paginated-list":customElements.get(r(t))||l();break;case"rtk-pinned-message-selector":customElements.get(r(t))||d();break;case"rtk-spinner":customElements.get(r(t))||p()}}))}b();export{k as R,b as d}