@cloudflare/realtimekit-ui 2.0.3-staging.8 → 2.0.3
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/browser.js +1 -1
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +19 -19
- package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +3 -1
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
- package/dist/collection/components/rtk-ai/rtk-ai.js +2 -4
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +4 -6
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +8 -7
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +9 -10
- package/dist/collection/components/rtk-grid/rtk-grid.js +3 -1
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -4
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +4 -4
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -4
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -4
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +4 -6
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
- package/dist/components/{p-EkUCxpDZ.js → p-BoqfUgTL.js} +1 -1
- package/dist/components/p-ByPpyWt6.js +1 -0
- package/dist/components/{p-BsgKgxKu.js → p-C0ESgBoj.js} +1 -1
- package/dist/components/{p-qDy7F0Tr.js → p-C9UuqXCX.js} +1 -1
- package/dist/components/{p-Bmk8auxt.js → p-CAsupO2z.js} +1 -1
- package/dist/components/{p-CXq0ujSg.js → p-CNaazJXM.js} +1 -1
- package/dist/components/{p-DbBGSlfQ.js → p-E1D1eNFh.js} +1 -1
- package/dist/components/{p-l-tiOHlG.js → p-Ryaxu6vl.js} +1 -1
- package/dist/components/{p-A83Jz8rO.js → p-VHRH6fkb.js} +1 -1
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-header.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-search-results.js +1 -1
- package/dist/components/rtk-chat-selector.js +1 -1
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-dialog-manager.js +1 -1
- package/dist/components/rtk-grid.js +1 -1
- package/dist/components/rtk-meeting.js +1 -1
- package/dist/components/rtk-message-list-view.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participants.js +1 -1
- package/dist/components/rtk-pinned-message-selector.js +1 -1
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +1 -1
- package/dist/docs/docs-components.json +11 -11
- package/dist/docs/docs-vscode.json +8 -8
- package/dist/esm/loader.js +31 -29
- package/dist/esm/rtk-avatar_26.entry.js +19 -19
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +3 -1
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
- package/dist/realtimekit-ui/{p-64bc4514.entry.js → p-20734a3a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-31c97dcd.entry.js → p-8cdd8307.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2da96ec3.entry.js → p-b27db286.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2308568a.entry.js → p-ce81ffaa.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f2de718a.entry.js → p-d30c178f.entry.js} +1 -1
- package/dist/realtimekit-ui/p-ff89f0f6.entry.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-ai/rtk-ai.d.ts +2 -4
- package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +2 -4
- package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +1 -0
- package/dist/types/components/rtk-chat-selector/rtk-chat-selector.d.ts +1 -1
- package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +2 -4
- package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +1 -1
- package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +1 -1
- package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +2 -4
- package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +2 -4
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -4
- package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +1 -1
- package/dist/types/components.d.ts +57 -79
- package/package.json +3 -2
- package/dist/components/p-DzDWIdoE.js +0 -1
- package/dist/realtimekit-ui/p-cf7f7d9c.entry.js +0 -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: '
|
|
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: '
|
|
540
|
-
index$1.h("rtk-file-picker-button", Object.assign({ key: '
|
|
541
|
-
index$1.h("rtk-file-picker-button", Object.assign({ key: '
|
|
542
|
-
], this.canSendTextMessage && !this.disableEmojiPicker && (index$1.h("rtk-emoji-picker-button", Object.assign({ key: '
|
|
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: '
|
|
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([
|
|
@@ -843,9 +844,10 @@ const RtkChatSelector = class {
|
|
|
843
844
|
this.dropdownToggle.emit({ open: this.isOpen });
|
|
844
845
|
};
|
|
845
846
|
this.selectUser = async (user) => {
|
|
847
|
+
var _a;
|
|
846
848
|
if (user === null || user === void 0 ? void 0 : user.userId) {
|
|
847
849
|
this.unreadMap.set(user.userId, false);
|
|
848
|
-
this.$paginatedListRef.rerenderList();
|
|
850
|
+
(_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.rerenderList();
|
|
849
851
|
}
|
|
850
852
|
this.selectedUser = user;
|
|
851
853
|
this.chatSelectorChange.emit({ selectedUser: user });
|
|
@@ -871,10 +873,12 @@ const RtkChatSelector = class {
|
|
|
871
873
|
}
|
|
872
874
|
};
|
|
873
875
|
this.participantJoinedListener = (data) => {
|
|
874
|
-
|
|
876
|
+
var _a;
|
|
877
|
+
(_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.onNewNode(data);
|
|
875
878
|
};
|
|
876
879
|
this.participantLeftListener = (data) => {
|
|
877
|
-
|
|
880
|
+
var _a;
|
|
881
|
+
(_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.onNodeDelete(data.id);
|
|
878
882
|
this.onParticipantUpdate();
|
|
879
883
|
};
|
|
880
884
|
// @ts-ignore - unused params
|
|
@@ -899,7 +903,7 @@ const RtkChatSelector = class {
|
|
|
899
903
|
});
|
|
900
904
|
};
|
|
901
905
|
this.chatUpdateListener = (data) => {
|
|
902
|
-
var _a;
|
|
906
|
+
var _a, _b;
|
|
903
907
|
if (data.action !== 'add')
|
|
904
908
|
return;
|
|
905
909
|
if (!((_a = data.message.targetUserIds) === null || _a === void 0 ? void 0 : _a.length))
|
|
@@ -909,7 +913,7 @@ const RtkChatSelector = class {
|
|
|
909
913
|
if (!otherUserId)
|
|
910
914
|
return;
|
|
911
915
|
this.unreadMap.set(otherUserId, true);
|
|
912
|
-
this.$paginatedListRef.rerenderList();
|
|
916
|
+
(_b = this.$paginatedListRef) === null || _b === void 0 ? void 0 : _b.rerenderList();
|
|
913
917
|
};
|
|
914
918
|
}
|
|
915
919
|
/** */
|
|
@@ -924,13 +928,9 @@ const RtkChatSelector = class {
|
|
|
924
928
|
this.overridesChanged(this.overrides);
|
|
925
929
|
}
|
|
926
930
|
disconnectedCallback() {
|
|
927
|
-
var _a, _b, _c;
|
|
928
931
|
if (!this.meeting)
|
|
929
932
|
return;
|
|
930
|
-
|
|
931
|
-
(_a = self === null || self === void 0 ? void 0 : self.permissions) === null || _a === void 0 ? void 0 : _a.off('*', this.chatPermissionUpdateListener);
|
|
932
|
-
(_b = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _b === void 0 ? void 0 : _b.off('participantJoined', this.participantJoinedListener);
|
|
933
|
-
(_c = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _c === void 0 ? void 0 : _c.off('participantLeft', this.participantLeftListener);
|
|
933
|
+
this.disconnectMeeting(this.meeting);
|
|
934
934
|
}
|
|
935
935
|
overridesChanged(overrides) {
|
|
936
936
|
var _a, _b;
|
|
@@ -2091,7 +2091,7 @@ const RtkPaginatedList = class {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
/**
|
|
2094
|
-
* Updates
|
|
2094
|
+
* Updates an existing node in the paginated list.
|
|
2095
2095
|
* @param {string} id - The id of the node to update
|
|
2096
2096
|
* @param {DataNode} node - The updated data node
|
|
2097
2097
|
* */
|
|
@@ -2304,9 +2304,9 @@ const RtkPaginatedList = class {
|
|
|
2304
2304
|
/**
|
|
2305
2305
|
* div.container is flex=column-reversewhich is why div#bottom-scroll comes before div#top-scroll
|
|
2306
2306
|
*/
|
|
2307
|
-
return (index$1.h(index$1.Host, { key: '
|
|
2307
|
+
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
2308
|
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: '
|
|
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: '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
2310
|
}
|
|
2311
2311
|
};
|
|
2312
2312
|
__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: '
|
|
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: '
|
|
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
|
}
|
|
@@ -263,7 +263,9 @@ const RtkGrid = class {
|
|
|
263
263
|
self.permissions.hiddenParticipant;
|
|
264
264
|
this.participants = this.filterParticipants([
|
|
265
265
|
...participants.active.toArray().filter((p) => p.id !== self.id),
|
|
266
|
-
...(
|
|
266
|
+
...(['ACTIVE_GRID', 'MANUAL'].includes(participants.viewMode) &&
|
|
267
|
+
!self.isPinned &&
|
|
268
|
+
!this.hideSelf
|
|
267
269
|
? [self]
|
|
268
270
|
: []),
|
|
269
271
|
]);
|
|
@@ -266,11 +266,11 @@ const RtkMessageListView = class {
|
|
|
266
266
|
this.updateTotalHeight();
|
|
267
267
|
}
|
|
268
268
|
render() {
|
|
269
|
-
return (index$1.h("div", { key: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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
|
-
*
|
|
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() {
|
package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js
CHANGED
|
@@ -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
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
178
|
-
h("rtk-file-picker-button", Object.assign({ key: '
|
|
179
|
-
h("rtk-file-picker-button", Object.assign({ key: '
|
|
180
|
-
], this.canSendTextMessage && !this.disableEmojiPicker && (h("rtk-emoji-picker-button", Object.assign({ key: '
|
|
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: '
|
|
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,
|
|
@@ -45,9 +45,10 @@ export class RtkChatSelector {
|
|
|
45
45
|
this.dropdownToggle.emit({ open: this.isOpen });
|
|
46
46
|
};
|
|
47
47
|
this.selectUser = async (user) => {
|
|
48
|
+
var _a;
|
|
48
49
|
if (user === null || user === void 0 ? void 0 : user.userId) {
|
|
49
50
|
this.unreadMap.set(user.userId, false);
|
|
50
|
-
this.$paginatedListRef.rerenderList();
|
|
51
|
+
(_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.rerenderList();
|
|
51
52
|
}
|
|
52
53
|
this.selectedUser = user;
|
|
53
54
|
this.chatSelectorChange.emit({ selectedUser: user });
|
|
@@ -73,10 +74,12 @@ export class RtkChatSelector {
|
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
76
|
this.participantJoinedListener = (data) => {
|
|
76
|
-
|
|
77
|
+
var _a;
|
|
78
|
+
(_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.onNewNode(data);
|
|
77
79
|
};
|
|
78
80
|
this.participantLeftListener = (data) => {
|
|
79
|
-
|
|
81
|
+
var _a;
|
|
82
|
+
(_a = this.$paginatedListRef) === null || _a === void 0 ? void 0 : _a.onNodeDelete(data.id);
|
|
80
83
|
this.onParticipantUpdate();
|
|
81
84
|
};
|
|
82
85
|
// @ts-ignore - unused params
|
|
@@ -101,7 +104,7 @@ export class RtkChatSelector {
|
|
|
101
104
|
});
|
|
102
105
|
};
|
|
103
106
|
this.chatUpdateListener = (data) => {
|
|
104
|
-
var _a;
|
|
107
|
+
var _a, _b;
|
|
105
108
|
if (data.action !== 'add')
|
|
106
109
|
return;
|
|
107
110
|
if (!((_a = data.message.targetUserIds) === null || _a === void 0 ? void 0 : _a.length))
|
|
@@ -111,7 +114,7 @@ export class RtkChatSelector {
|
|
|
111
114
|
if (!otherUserId)
|
|
112
115
|
return;
|
|
113
116
|
this.unreadMap.set(otherUserId, true);
|
|
114
|
-
this.$paginatedListRef.rerenderList();
|
|
117
|
+
(_b = this.$paginatedListRef) === null || _b === void 0 ? void 0 : _b.rerenderList();
|
|
115
118
|
};
|
|
116
119
|
}
|
|
117
120
|
/** */
|
|
@@ -126,13 +129,9 @@ export class RtkChatSelector {
|
|
|
126
129
|
this.overridesChanged(this.overrides);
|
|
127
130
|
}
|
|
128
131
|
disconnectedCallback() {
|
|
129
|
-
var _a, _b, _c;
|
|
130
132
|
if (!this.meeting)
|
|
131
133
|
return;
|
|
132
|
-
|
|
133
|
-
(_a = self === null || self === void 0 ? void 0 : self.permissions) === null || _a === void 0 ? void 0 : _a.off('*', this.chatPermissionUpdateListener);
|
|
134
|
-
(_b = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _b === void 0 ? void 0 : _b.off('participantJoined', this.participantJoinedListener);
|
|
135
|
-
(_c = participants === null || participants === void 0 ? void 0 : participants.joined) === null || _c === void 0 ? void 0 : _c.off('participantLeft', this.participantLeftListener);
|
|
134
|
+
this.disconnectMeeting(this.meeting);
|
|
136
135
|
}
|
|
137
136
|
overridesChanged(overrides) {
|
|
138
137
|
var _a, _b;
|
|
@@ -260,7 +260,9 @@ export class RtkGrid {
|
|
|
260
260
|
self.permissions.hiddenParticipant;
|
|
261
261
|
this.participants = this.filterParticipants([
|
|
262
262
|
...participants.active.toArray().filter((p) => p.id !== self.id),
|
|
263
|
-
...(
|
|
263
|
+
...(['ACTIVE_GRID', 'MANUAL'].includes(participants.viewMode) &&
|
|
264
|
+
!self.isPinned &&
|
|
265
|
+
!this.hideSelf
|
|
264
266
|
? [self]
|
|
265
267
|
: []),
|
|
266
268
|
]);
|
|
@@ -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
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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
|
|
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
|
|
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: '
|
|
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: '
|
|
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
|
|
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"
|
package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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
|
|
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: '
|
|
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: '
|
|
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
|
|
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: '
|
|
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: '
|
|
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,
|