@cloudflare/realtimekit-ui 2.0.3-staging.7 → 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.
- package/dist/browser.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{notification-BM6CUHyL.js → notification-Bny5fHfy.js} +3 -3
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +10 -9
- package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-notifications.cjs.entry.js +1 -1
- 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-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/collection/lib/notification.js +3 -3
- package/dist/components/index.js +1 -1
- package/dist/components/p-B56IYWsZ.js +1 -0
- package/dist/components/{p-EkUCxpDZ.js → p-BoqfUgTL.js} +1 -1
- package/dist/components/{p-DbBGSlfQ.js → p-C-dwT3mh.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-DzDWIdoE.js → p-CtSq3DFC.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/{p-BsgKgxKu.js → p-XaCbiR3F.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-meeting.js +1 -1
- package/dist/components/rtk-message-list-view.js +1 -1
- package/dist/components/rtk-notifications.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/index.js +1 -1
- package/dist/esm/loader.js +22 -21
- package/dist/esm/{notification-DcR6dHfn.js → notification-DZgheLdK.js} +3 -3
- package/dist/esm/rtk-avatar_26.entry.js +10 -9
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-notifications.entry.js +1 -1
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-64bc4514.entry.js → p-20734a3a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7f45a1cd.entry.js → p-21f69c50.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-31c97dcd.entry.js → p-8cdd8307.entry.js} +1 -1
- package/dist/realtimekit-ui/p-B56IYWsZ.js +1 -0
- package/dist/realtimekit-ui/{p-cf7f7d9c.entry.js → p-aea61c98.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/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-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 +1 -1
- package/dist/components/p-BCuMxcZN.js +0 -1
- package/dist/realtimekit-ui/p-BCuMxcZN.js +0 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ var breakoutRoomsManager = require('./breakout-rooms-manager-Bgk5FEK1.js');
|
|
|
4
4
|
var merge = require('./merge-B7Yr5DGf.js');
|
|
5
5
|
var config = require('./config-wbyoqfPs.js');
|
|
6
6
|
var uiStore = require('./ui-store-C7CyFWPZ.js');
|
|
7
|
-
var notification = require('./notification-
|
|
7
|
+
var notification = require('./notification-Bny5fHfy.js');
|
|
8
8
|
var chat = require('./chat-Dmb93Uku.js');
|
|
9
9
|
require('./breakout-rooms-46jWgGiL.js');
|
|
10
10
|
require('./livestream-B1z1fq_f.js');
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var browser = require('./browser-qKzDfwbO.js');
|
|
4
4
|
|
|
5
5
|
const SOUNDS = {
|
|
6
|
-
joined: 'https://rtk-
|
|
7
|
-
left: 'https://rtk-
|
|
8
|
-
message: 'https://rtk-
|
|
6
|
+
joined: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3',
|
|
7
|
+
left: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3',
|
|
8
|
+
message: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_message.mp3',
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Handles notification sounds in a meeting
|
|
@@ -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([
|
|
@@ -2091,7 +2092,7 @@ const RtkPaginatedList = class {
|
|
|
2091
2092
|
}
|
|
2092
2093
|
}
|
|
2093
2094
|
/**
|
|
2094
|
-
* Updates
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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
|
}
|
|
@@ -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": [{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index$1 = require('./index-Bi2L8zQ7.js');
|
|
4
|
-
var notification = require('./notification-
|
|
4
|
+
var notification = require('./notification-Bny5fHfy.js');
|
|
5
5
|
var string = require('./string-C1A6N-tA.js');
|
|
6
6
|
var uiStore = require('./ui-store-C7CyFWPZ.js');
|
|
7
7
|
require('./breakout-rooms-manager-Bgk5FEK1.js');
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isFirefox } from "../utils/browser";
|
|
2
2
|
const SOUNDS = {
|
|
3
|
-
joined: 'https://rtk-
|
|
4
|
-
left: 'https://rtk-
|
|
5
|
-
message: 'https://rtk-
|
|
3
|
+
joined: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3',
|
|
4
|
+
left: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3',
|
|
5
|
+
message: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_message.mp3',
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Handles notification sounds in a meeting
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-BBHQOrFK.js";export{B as BreakoutRoomsManager}from"./p-DxDYE5-a.js";export{p as provideRtkDesignSystem}from"./p-CfIrQkMg.js";import{g as t}from"./p-B4dw_Fnl.js";export{e as extendConfig}from"./p-B4dw_Fnl.js";import{c as o}from"./p-DhwysA2e.js";export{b as createPeerStore,d as defaultConfig,e as defaultIconPack,h as defaultLanguage,f as defaultOverrides,g as getInitialStates,a as uiState,u as uiStore,i as useLanguage}from"./p-DhwysA2e.js";export{R as RtkNotificationsAudio}from"./p-
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-BBHQOrFK.js";export{B as BreakoutRoomsManager}from"./p-DxDYE5-a.js";export{p as provideRtkDesignSystem}from"./p-CfIrQkMg.js";import{g as t}from"./p-B4dw_Fnl.js";export{e as extendConfig}from"./p-B4dw_Fnl.js";import{c as o}from"./p-DhwysA2e.js";export{b as createPeerStore,d as defaultConfig,e as defaultIconPack,h as defaultLanguage,f as defaultOverrides,g as getInitialStates,a as uiState,u as uiStore,i as useLanguage}from"./p-DhwysA2e.js";export{R as RtkNotificationsAudio}from"./p-B56IYWsZ.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-Bj1kNPpe.js";const n=(t,s)=>{if("undefined"==typeof document)return!1;const e=new CustomEvent("rtkNotification",{detail:Object.assign(Object.assign({},t),{playSound:s}),composed:!0});return document.dispatchEvent(e)};function l(t){return s=>Array.isArray(s)?s[0]===t:s===t}function m(t){return s=>Array.isArray(s)?s[0]!==t:s!==t}function y(t){return t.replace(/([a-z])([A-Z])/g,(t=>`${t[0]}-${t[1]}`.toLowerCase()))}class v{constructor(t,s,e){this.elem=t,this.config=s,this.keyString=e}add(t,s={}){var e;let r=t=y(t);return Object.keys(s).length>0&&(r=[t,s]),Array.isArray(this.elem)?this.elem.push(r):"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=[...this.elem.children,r]:"remove"in this.elem&&Array.isArray(this.elem.remove)&&this.elem.remove.find(l(t))?this.elem.remove=this.elem.remove.filter(m(t)):("add"in this.elem||(this.elem.add=[]),null===(e=this.elem.add)||void 0===e||e.push(r)),this}remove(t){var s;if(t=y(t),Array.isArray(this.elem)){const s=this.elem.findIndex(l(t));s>-1&&this.elem.splice(s,1)}else"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=this.elem.children.filter(m(t)):"add"in this.elem&&Array.isArray(this.elem.add)&&this.elem.add.find((s=>s===t))?this.elem.add=this.elem.add.filter(m(t)):("remove"in this.elem||(this.elem.remove=[]),null===(s=this.elem.remove)||void 0===s||s.push(t));return this}set style(t){console.log(t)}setChildrenProps(t,s){console.log(this.keyString,t,s)}getChildrenProps(t){return console.log(this.keyString,t),{}}replace(t){console.log(this.config,t)}}class A{constructor(t){this.config=t||o()}find(t,s={}){t=y(t);const e=[],r=[];Object.keys(s||{}).forEach((t=>{"boolean"==typeof s[t]?e.push(t):r.push([t,s[t]])})),e.sort();const i=this.config.root;if(void 0===i)return;let o=t,a="";e.length>0&&(a="."+e.join("."),o=`${t}${a}`,Array.isArray(i[t])&&(i[t]={states:[],children:i[t]}),void 0===i[t].states&&(i[t].states=[]),e.forEach((s=>{var e,r;-1===(null===(e=i[t].states)||void 0===e?void 0:e.indexOf(s))&&(null===(r=i[t].states)||void 0===r||r.push(s))}))),r.length>0&&r.forEach((s=>{o=`${t}[${s[0]}=${s[1]}]${a}`,Array.isArray(i[t])&&(i[t]={state:s[0],children:i[t]})}));let n=i[o];return void 0===n&&(i[o]={},n=i[o]),new v(n,this.config,o)}build(){return this.config}}function j(s,e,r){if(!r){const s=t(e.self.config,e);r=s.config}return s.map((t=>{r=t.register(r,e,(t=>new A(t)))})),r}export{A as RtkUiBuilder,o as createDefaultConfig,t as generateConfig,j as registerAddons,n as sendNotification}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as t}from"./p-CAqYddlg.js";const i={joined:"https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3",left:"https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3",message:"https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_message.mp3"};class s{constructor(t){this.meeting=t,this.audio=document.createElement("audio"),this.audio.volume=.3}play(t,s=3e3){var o;this.playing||(this.playing=!0,this.audio.src=i[t],this.audio.volume=.3,null===(o=this.audio.play())||void 0===o||o.catch((()=>{})),setTimeout((()=>{this.playing=!1}),s))}async setDevice(i){var s,o,e;t(this.meeting)||await(null===(e=null===(o=null===(s=this.audio)||void 0===s?void 0:s.setSinkId)||void 0===o?void 0:o.call(s,i))||void 0===e?void 0:e.catch((()=>{})))}}export{s as R}
|
|
@@ -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-
|
|
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-
|
|
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}
|