@cloudflare/realtimekit-ui 2.0.4-staging.3 → 2.0.4-staging.4
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/{breakout-rooms-manager-Bgk5FEK1.js → breakout-rooms-manager-CI4CY88g.js} +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/rtk-ai_3.cjs.entry.js +1 -1
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +1 -1
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +1 -1
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +1 -1
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +1 -1
- package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +1 -1
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +1 -1
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-message.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +1 -1
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-controlbar.cjs.entry.js +1 -1
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +1 -1
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +1 -1
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +1 -1
- package/dist/cjs/rtk-header.cjs.entry.js +1 -1
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +1 -1
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +1 -1
- package/dist/cjs/rtk-logo.cjs.entry.js +1 -1
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +1 -1
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +1 -1
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +1 -1
- package/dist/cjs/rtk-notifications.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participant_2.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participants.cjs.entry.js +1 -1
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +1 -1
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-transcripts.cjs.entry.js +1 -1
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +1 -1
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +1 -1
- package/dist/collection/utils/breakout-rooms-manager.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-ByPpyWt6.js → p-5quurE-Z.js} +1 -1
- package/dist/components/{p-Bux-kSlP.js → p-B3XpiAaE.js} +1 -1
- package/dist/components/{p-pcKO_EeI.js → p-B4Ap4n7a.js} +1 -1
- package/dist/components/{p-vqPkhXWC.js → p-B5XTxQov.js} +1 -1
- package/dist/components/{p-93ZUKlQ1.js → p-BD2FfUwc.js} +1 -1
- package/dist/components/{p-CAsupO2z.js → p-BL_lNnwE.js} +1 -1
- package/dist/components/{p-DnOzzBR9.js → p-BODcekJl.js} +1 -1
- package/dist/components/{p-CHh7GAdL.js → p-BVwe7Wfq.js} +1 -1
- package/dist/components/{p--CEA0NQj.js → p-BW3eEJGd.js} +1 -1
- package/dist/components/{p-Bf-vQ6U9.js → p-BYNelMao.js} +1 -1
- package/dist/components/{p-DnkJztTd.js → p-BueZc6Xo.js} +1 -1
- package/dist/components/{p-y_feb08f.js → p-Bw12zqoT.js} +1 -1
- package/dist/components/{p--VK1POSX.js → p-CBGt9ESN.js} +1 -1
- package/dist/components/{p-D_AEDHUV.js → p-CGBdi6J9.js} +1 -1
- package/dist/components/{p-C0ESgBoj.js → p-CPnv0ZqZ.js} +1 -1
- package/dist/components/{p-BXHUa6x_.js → p-CRI4EXkA.js} +1 -1
- package/dist/components/{p-BY_rxRub.js → p-CgQKQwo8.js} +1 -1
- package/dist/components/{p-CuRSxmeD.js → p-CxE6v80l.js} +1 -1
- package/dist/components/{p-Ryaxu6vl.js → p-D3fF-6sB.js} +1 -1
- package/dist/components/{p-VHRH6fkb.js → p-D6Vrf7V1.js} +1 -1
- package/dist/components/p-D9EtbXLL.js +1 -0
- package/dist/components/{p-CU7xL-hP.js → p-DRDGwBZ3.js} +1 -1
- package/dist/components/{p-Bn6JMUc9.js → p-DhkCjo6N.js} +1 -1
- package/dist/components/{p-CMyYEHgz.js → p-Djf3ZrmN.js} +1 -1
- package/dist/components/{p-BbE6o8zj.js → p-LohuIsNV.js} +1 -1
- package/dist/components/{p-DZcwJOUW.js → p-hPdGZ_Bf.js} +1 -1
- package/dist/components/{p-BQJoMtIK.js → p-igDs79FY.js} +1 -1
- package/dist/components/{p-CBWhDYEo.js → p-iyI_rAph.js} +1 -1
- package/dist/components/{p-Bf-HIBwL.js → p-oJLPa1F-.js} +1 -1
- package/dist/components/{p-gixOLeKl.js → p-tZ9CpAsl.js} +1 -1
- package/dist/components/{p-DhG2PF_5.js → p-ukr4mPVB.js} +1 -1
- package/dist/components/{p-DdSpe6Sb.js → p-xKvr8ufu.js} +1 -1
- package/dist/components/{p-E1D1eNFh.js → p-xnw0dG3-.js} +1 -1
- package/dist/components/rtk-audio-grid.js +1 -1
- package/dist/components/rtk-audio-tile.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-caption-toggle.js +1 -1
- package/dist/components/rtk-chat-composer-ui.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-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +1 -1
- package/dist/components/rtk-chat-search-results.js +1 -1
- package/dist/components/rtk-chat-selector-ui.js +1 -1
- package/dist/components/rtk-chat-selector.js +1 -1
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-controlbar.js +1 -1
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-ended-screen.js +1 -1
- package/dist/components/rtk-file-dropzone.js +1 -1
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-grid.js +1 -1
- package/dist/components/rtk-header.js +1 -1
- package/dist/components/rtk-idle-screen.js +1 -1
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-information-tooltip.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-logo.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-message-view.js +1 -1
- package/dist/components/rtk-mute-all-button.js +1 -1
- package/dist/components/rtk-network-indicator.js +1 -1
- package/dist/components/rtk-notifications.js +1 -1
- package/dist/components/rtk-participant-setup.js +1 -1
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +1 -1
- package/dist/components/rtk-pip-toggle.js +1 -1
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +1 -1
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +1 -1
- package/dist/components/rtk-stage-toggle.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-transcripts.js +1 -1
- package/dist/components/rtk-ui-provider.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +1 -1
- package/dist/esm/{breakout-rooms-manager-B1Qky9zO.js → breakout-rooms-manager-DOKq3YH6.js} +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -0
- package/dist/esm/rtk-ai_3.entry.js +1 -1
- package/dist/esm/rtk-audio-grid.entry.js +1 -1
- package/dist/esm/rtk-audio-tile.entry.js +1 -1
- package/dist/esm/rtk-avatar_26.entry.js +1 -1
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +1 -1
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +1 -1
- package/dist/esm/rtk-camera-selector_2.entry.js +1 -1
- package/dist/esm/rtk-caption-toggle.entry.js +1 -1
- package/dist/esm/rtk-chat-composer-ui.entry.js +1 -1
- package/dist/esm/rtk-chat-message.entry.js +1 -1
- package/dist/esm/rtk-chat-messages-ui.entry.js +1 -1
- package/dist/esm/rtk-chat-search-results.entry.js +1 -1
- package/dist/esm/rtk-chat-selector-ui.entry.js +1 -1
- package/dist/esm/rtk-controlbar.entry.js +1 -1
- package/dist/esm/rtk-debugger-audio_4.entry.js +1 -1
- package/dist/esm/rtk-ended-screen.entry.js +1 -1
- package/dist/esm/rtk-file-dropzone.entry.js +1 -1
- package/dist/esm/rtk-header.entry.js +1 -1
- package/dist/esm/rtk-idle-screen.entry.js +1 -1
- package/dist/esm/rtk-information-tooltip.entry.js +1 -1
- package/dist/esm/rtk-livestream-indicator_3.entry.js +1 -1
- package/dist/esm/rtk-logo.entry.js +1 -1
- package/dist/esm/rtk-message-list-view.entry.js +1 -1
- package/dist/esm/rtk-mute-all-button.entry.js +1 -1
- package/dist/esm/rtk-network-indicator.entry.js +1 -1
- package/dist/esm/rtk-notifications.entry.js +1 -1
- package/dist/esm/rtk-participant-setup.entry.js +1 -1
- package/dist/esm/rtk-participant_2.entry.js +1 -1
- package/dist/esm/rtk-participants-stage-list_4.entry.js +1 -1
- package/dist/esm/rtk-participants.entry.js +1 -1
- package/dist/esm/rtk-pip-toggle.entry.js +1 -1
- package/dist/esm/rtk-sidebar-ui.entry.js +1 -1
- package/dist/esm/rtk-stage-toggle.entry.js +1 -1
- package/dist/esm/rtk-transcripts.entry.js +1 -1
- package/dist/esm/rtk-ui-provider.entry.js +1 -1
- package/dist/esm/rtk-waiting-screen.entry.js +1 -1
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-a646f038.entry.js → p-0742c744.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-09ce95b2.entry.js → p-1b3ffb5e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b27db286.entry.js → p-1f144efb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c6f6afcd.entry.js → p-2715643b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-01c014e4.entry.js → p-29ab5d68.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ac79ef88.entry.js → p-439c8ce4.entry.js} +1 -1
- package/dist/realtimekit-ui/p-4a7927d1.entry.js +1 -0
- package/dist/realtimekit-ui/{p-56df9c19.entry.js → p-4f3e5cb4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-401b9ed3.entry.js → p-5093081b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-20734a3a.entry.js → p-52e797c1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d9c7c4d8.entry.js → p-55ba62c3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-de4ecd17.entry.js → p-5e3931a3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e38967d0.entry.js → p-661b7281.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-23e14ccd.entry.js → p-6cc9da9f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b46d416b.entry.js → p-70de46f0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d4ff2477.entry.js → p-77c92672.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ff89f0f6.entry.js → p-77e9a0cb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6e0f43e4.entry.js → p-8c77aa57.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-27751707.entry.js → p-8e7d8c30.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4bd89bff.entry.js → p-91bcabc0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-815d9724.entry.js → p-9913c4ca.entry.js} +1 -1
- package/dist/realtimekit-ui/p-D9EtbXLL.js +1 -0
- package/dist/realtimekit-ui/{p-47abb821.entry.js → p-a6ec2863.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-80b42139.entry.js → p-b16313e9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4ed011a1.entry.js → p-b918e87c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dc7a28a6.entry.js → p-bac3c4fb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-21f69c50.entry.js → p-c317b4a0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bcc42454.entry.js → p-d003eb81.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bcc20509.entry.js → p-d51ab494.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4add313e.entry.js → p-da2e626e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ba7fb049.entry.js → p-e7a4954c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e347e0d8.entry.js → p-ebdece22.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e8e6a1c8.entry.js → p-ee65922b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-da9c7efe.entry.js → p-ef030197.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f27494e7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-ce81ffaa.entry.js → p-f33e4112.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-61032e04.entry.js → p-fa84f55a.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-DxDYE5-a.js +0 -1
- package/dist/realtimekit-ui/p-DxDYE5-a.js +0 -1
- package/dist/realtimekit-ui/p-bf54cdd9.entry.js +0 -1
- package/dist/realtimekit-ui/p-cd5069ea.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host } from './index-gJCRRBX0.js';
|
|
2
2
|
import { c as createDefaultConfig, e as defaultIconPack, i as useLanguage } from './ui-store-Ctcbman-.js';
|
|
3
|
-
import './breakout-rooms-manager-
|
|
3
|
+
import './breakout-rooms-manager-DOKq3YH6.js';
|
|
4
4
|
import './livestream-C0vp-Q7v.js';
|
|
5
5
|
import { S as SyncWithStore } from './index-CP1LPkYZ.js';
|
|
6
6
|
import { d as debounce } from './debounce-lqMlEJcq.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host } from './index-gJCRRBX0.js';
|
|
2
|
-
import './breakout-rooms-manager-
|
|
2
|
+
import './breakout-rooms-manager-DOKq3YH6.js';
|
|
3
3
|
import { c as createDefaultConfig, e as defaultIconPack, i as useLanguage } from './ui-store-Ctcbman-.js';
|
|
4
4
|
import './livestream-C0vp-Q7v.js';
|
|
5
5
|
import { S as SyncWithStore } from './index-CP1LPkYZ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host } from './index-gJCRRBX0.js';
|
|
2
2
|
import { S as SyncWithStore } from './index-CP1LPkYZ.js';
|
|
3
|
-
import './breakout-rooms-manager-
|
|
3
|
+
import './breakout-rooms-manager-DOKq3YH6.js';
|
|
4
4
|
import './livestream-C0vp-Q7v.js';
|
|
5
5
|
import { e as defaultIconPack, i as useLanguage } from './ui-store-Ctcbman-.js';
|
|
6
6
|
import './breakout-rooms-Daj_55_i.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host } from './index-gJCRRBX0.js';
|
|
2
|
-
import './breakout-rooms-manager-
|
|
2
|
+
import './breakout-rooms-manager-DOKq3YH6.js';
|
|
3
3
|
import './livestream-C0vp-Q7v.js';
|
|
4
4
|
import { e as defaultIconPack, i as useLanguage } from './ui-store-Ctcbman-.js';
|
|
5
5
|
import { S as SyncWithStore } from './index-CP1LPkYZ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, e as writeTask, h, a as Host, g as getElement } from './index-gJCRRBX0.js';
|
|
2
2
|
import { c as createDefaultConfig, i as useLanguage, J as clone } from './ui-store-Ctcbman-.js';
|
|
3
|
-
import './breakout-rooms-manager-
|
|
3
|
+
import './breakout-rooms-manager-DOKq3YH6.js';
|
|
4
4
|
import './livestream-C0vp-Q7v.js';
|
|
5
5
|
import { S as SyncWithStore } from './index-CP1LPkYZ.js';
|
|
6
6
|
import './breakout-rooms-Daj_55_i.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-gJCRRBX0.js';
|
|
2
|
-
import './breakout-rooms-manager-
|
|
2
|
+
import './breakout-rooms-manager-DOKq3YH6.js';
|
|
3
3
|
import { m as merge, p as provideRtkDesignSystem } from './merge-BWjuIacB.js';
|
|
4
4
|
import { e as defaultIconPack, i as useLanguage, c as createDefaultConfig, f as defaultOverrides, u as uiStore, b as createPeerStore } from './ui-store-Ctcbman-.js';
|
|
5
5
|
import './livestream-C0vp-Q7v.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host } from './index-gJCRRBX0.js';
|
|
2
2
|
import { c as createDefaultConfig, e as defaultIconPack, i as useLanguage } from './ui-store-Ctcbman-.js';
|
|
3
|
-
import './breakout-rooms-manager-
|
|
3
|
+
import './breakout-rooms-manager-DOKq3YH6.js';
|
|
4
4
|
import './livestream-C0vp-Q7v.js';
|
|
5
5
|
import { S as SyncWithStore } from './index-CP1LPkYZ.js';
|
|
6
6
|
import './breakout-rooms-Daj_55_i.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BreakoutRoomsManager}from"./p-
|
|
1
|
+
export{B as BreakoutRoomsManager}from"./p-D9EtbXLL.js";export{p as provideRtkDesignSystem}from"./p-dYOM3dvx.js";import{g as t}from"./p-CfUJPUNx.js";export{e as extendConfig}from"./p-CfUJPUNx.js";import{c as s}from"./p-DI7wP4CL.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-DI7wP4CL.js";export{R as RtkNotificationsAudio}from"./p-B56IYWsZ.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-B91vjjSJ.js";import"./p-Daj_55_i.js";import"./p-C0vp-Q7v.js";import"./p-gJCRRBX0.js";import"./p-CAqYddlg.js";const r=(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 o(t){return s=>Array.isArray(s)?s[0]===t:s===t}function n(t){return s=>Array.isArray(s)?s[0]!==t:s!==t}function l(t){return t.replace(/([a-z])([A-Z])/g,(t=>`${t[0]}-${t[1]}`.toLowerCase()))}class m{constructor(t,s,e){this.elem=t,this.config=s,this.keyString=e}add(t,s={}){var e;let r=t=l(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(o(t))?this.elem.remove=this.elem.remove.filter(n(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=l(t),Array.isArray(this.elem)){const s=this.elem.findIndex(o(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(n(t)):"add"in this.elem&&Array.isArray(this.elem.add)&&this.elem.add.find((s=>s===t))?this.elem.add=this.elem.add.filter(n(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 v{constructor(t){this.config=t||s()}find(t,s={}){t=l(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,n="";e.length>0&&(n=`.${e.join(".")}`,o=`${t}${n}`,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]}]${n}`,Array.isArray(i[t])&&(i[t]={state:s[0],children:i[t]})}));let a=i[o];return void 0===a&&(i[o]={},a=i[o]),new m(a,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 v(t)))})),r}export{v as RtkUiBuilder,s as createDefaultConfig,t as generateConfig,j as registerAddons,r as sendNotification}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as a,a as e}from"./p-gJCRRBX0.js";import"./p-
|
|
1
|
+
import{r as t,h as a,a as e}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as s,i}from"./p-DI7wP4CL.js";import{S as r}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var o=function(t,a,e,s){var i,r=arguments.length,o=r<3?a:null===s?s=Object.getOwnPropertyDescriptor(a,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,a,e,s);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(r<3?i(o):r>3?i(a,e,o):i(a,e))||o);return r>3&&o&&Object.defineProperty(a,e,o),o};const c=class{constructor(e){t(this,e),this.iconPack=s,this.t=i(),this.pageSize=50,this.searchMessages=async()=>[],this.nodeRenderer=t=>t.map((t=>a("rtk-chat-message",{key:t.id,message:t,disableControls:!0})))}render(){return a(e,{key:"4ea17889c442ac91c4bb54896c600d17290c0715"},a("rtk-paginated-list",{key:"8fa700caf9b3a2c7329fb555baf1a979231fa71c",pageSize:this.pageSize,pagesAllowed:3,fetchData:this.searchMessages,createNodes:this.nodeRenderer}))}};o([r()],c.prototype,"meeting",void 0),o([r()],c.prototype,"iconPack",void 0),o([r()],c.prototype,"t",void 0),c.style=":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)}:host{display:flex;height:100%;flex-direction:column;position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}";export{c as rtk_chat_search_results}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as i,h as s,a as e,g as a}from"./p-gJCRRBX0.js";import{e as h,i as n,c}from"./p-DI7wP4CL.js";import{l as o,R as r}from"./p-CTFO-5XH.js";import{f as d,a as l}from"./p-vBD2htwQ.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{c as f,b as p,o as k,s as m,h as v}from"./p-B1SWgSTZ.js";import{S as u}from"./p-BmRffDYW.js";import{d as b}from"./p-MlOz-emx.js";import"./p-Daj_55_i.js";var g=function(t,i,s,e){var a,h=arguments.length,n=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(n=(h<3?a(n):h>3?a(i,s,n):a(i,s))||n);return h>3&&n&&Object.defineProperty(i,s,n),n};const y=class{constructor(s){t(this,s),this.rtkSendNotification=i(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=h,this.t=n(),this.config=c(),this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");f(t,i,{placement:"bottom-end",middleware:[p({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),k(4),m({padding:8}),v()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){if(null!=t){const{self:i}=t;this.canDisableParticipantAudio=i.permissions.canAllowParticipantAudio||i.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=i.permissions.canAllowParticipantVideo||i.permissions.canDisableParticipantVideo,this.canKickParticipant=i.permissions.kickParticipant,this.canPinParticipant=i.permissions.pinParticipant,this.canAllowParticipantOnStage=i.permissions.acceptStageRequests&&i.permissions.stageEnabled,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,a,h,n,c,f,p,k;const m="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),v=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,u=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!m||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,b=d((null===(a=this.participant)||void 0===a?void 0:a.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(h=this.meeting)||void 0===h?void 0:h.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return s(e,{key:"72dec22593ebf143608cd671c2fdf533378acae2"},s("div",{class:"left",key:null===(n=this.participant)||void 0===n?void 0:n.id},s("rtk-avatar",{key:"e71b096c53fe07f425adf1e47d9adb6ee9e7c212",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),s("p",{key:"492fe90030df26c000d2db3b0355d713e3a8ccf9",class:"name",title:b},l(b,16)," ",(null===(c=this.meeting)||void 0===c?void 0:c.self.id)===(null===(f=this.participant)||void 0===f?void 0:f.id)&&this.t("(you)"))),"sidebar"===this.view&&s("div",{key:"66ef58575c0c27d7afe631a544a44cb37c526c4c",class:"right"},g&&s("rtk-icon",{key:"adbbf629c1a4f1034127be89c09f8003d3cfe3a7",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!m&&s("rtk-icon",{key:"ef0b24e9fb292968c96cb74be8d63f14fde38a44",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(u||o({element:"rtk-participant",defaults:y})>0)&&s("div",{key:"38d52737db83f9c444211e3040cf09f5f47c1513",class:"menu"},s("span",{key:"f061992198025919d2bcf14cd1a6eee3f077beaf",id:"trigger",onClick:this.onMenuToggle},s("rtk-button",{key:"7eb863089acda3f9e20e5aedbcf55742c4b4eb64",variant:"ghost",kind:"icon",slot:"trigger"},s("rtk-icon",{key:"a7ff6d6dc9e1139f3b367ab662ad49b79e8258ff",class:"more",icon:this.iconPack.more_vertical}))),s("span",{key:"9188d1538accf4e4769f58580651e0ededa3dd75",id:"menu-list"},this.menuOpen&&s("rtk-menu-list",{key:"ef8b7d03841f4920dc7eb295456669975d06ee2f",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!m&&s("rtk-menu-item",{key:"d82737dc1227c642ce9c3880fcbe373ff6e0ec0c",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},s("rtk-icon",{key:"50e63cba1117df61588026b064046779a1e905fb",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),v&&s("rtk-menu-item",{key:"662d993d406bd00f014f41425ceb728ab4454ebd",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},s("rtk-icon",{key:"8b296bdb308c3a18a7ec13bca1047277a60b0887",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&s("rtk-menu-item",{key:"efea4ce4a51bbe2203635e0a95878d80cfe460e4",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},s("rtk-icon",{key:"cdc27b2554c89ef5c3441de551c2bdbf4e91ed72",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&s("rtk-menu-item",{key:"4f1f4e0610cb9fa7a993b824defc71af47711cb1",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},s("rtk-icon",{key:"234d891a3ea80dbda3172e8e6a89d71a44676770",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(p=this.participant)||void 0===p?void 0:p.id)!==(null===(k=this.meeting)||void 0===k?void 0:k.self.id)&&s("rtk-menu-item",{key:"90c465f0f66a792f160b6226714dd07e51c57616",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},s("rtk-icon",{key:"a5605d8b2864e27817646fc585e6598cd547ca70",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!v&&this.canKickParticipant&&s("rtk-menu-item",{key:"0e5fe7c7f6e61599293843466c5b473226348d26",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.participants.joined.get(null===(i=this.participant)||void 0===i?void 0:i.id))||void 0===s||s.kick()}},s("rtk-icon",{key:"c7d370837be33a1a14fb32f64a35da3fdceafe28",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),s("slot",{key:"ec5dea9563b71323776808d8ef1991cda87e625f"},s(r,{key:"6c423497a1c2f31a7190305913dce0019cf943f1",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return a(this)}static get watchers(){return{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}}};g([u()],y.prototype,"meeting",void 0),g([u()],y.prototype,"states",void 0),g([u()],y.prototype,"iconPack",void 0),g([u()],y.prototype,"t",void 0),g([u()],y.prototype,"config",void 0),y.style=":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)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20}";const x=class{constructor(i){t(this,i),this.items=[],this.itemHeight=55,this.bufferedItemsCount=5,this.emptyListElement=null,this.visibleStart=0,this.visibleEnd=0,this.containerHeight=0,this.lastScrollTop=0,this.recalculatePositioning=()=>{this.updateContainerHeight(),requestAnimationFrame((()=>{this.updateItemHeight()}))},this.updateContainerHeight=()=>{this.el.querySelector(".virtual-list-container").clientHeight&&(requestAnimationFrame((()=>{this.updateItemHeight()})),this.containerHeight=this.el.querySelector(".virtual-list-container").clientHeight,this.updateVisibleRange())},this.onScroll=b((()=>{const t=this.el.querySelector(".virtual-list-container").scrollTop;t>this.lastScrollTop&&this.visibleEnd===this.items.length||(this.lastScrollTop=t,this.updateVisibleRange())}))}itemsChanged(){this.recalculatePositioning()}componentDidLoad(){this.recalculatePositioning(),this.el.querySelector(".virtual-list-container").addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.recalculatePositioning)}componentDidUpdate(){this.updateItemHeight()}disconnectedCallback(){this.el.querySelector(".virtual-list-container").removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.recalculatePositioning)}updateVisibleRange(){const t=this.el.querySelector(".virtual-list-container").scrollTop,i=Math.floor(t/this.itemHeight),s=Math.ceil(this.containerHeight/this.itemHeight),e=Math.min(this.items.length,i+s+this.bufferedItemsCount);this.visibleStart=i,this.visibleEnd=e,this.el.querySelector(".virtual-list-container").scrollTop=this.lastScrollTop}updateItemHeight(){const t=this.el.querySelector(".virtual-list-item");if(t){const i=t.style.height;t.style.height="auto";const s=t.getBoundingClientRect().height;i&&(t.style.height=i),s&&Math.floor(s)!==Math.floor(this.itemHeight)&&(this.itemHeight=s)}}renderItems(){return this.items.slice(this.visibleStart,this.visibleEnd).map(((t,i)=>{const e=this.visibleStart+i;return s("div",{class:"virtual-list-item",key:t.id,style:{position:"absolute",top:e*this.itemHeight+"px",height:`${this.itemHeight}px`,width:"100%"}},this.renderItem(t,e))}))}render(){var t;return s("div",{key:"279498eedaa6605456a2fffc004bd0204179ffde",class:"virtual-list-container",style:{position:"relative",height:"100%",overflowX:"hidden",overflowY:"auto"}},s("div",{key:"debb114c51c7c229b72cfcd7e87aa845ab6647e1",style:{height:this.items.length*this.itemHeight+"px",position:"relative"}},(null===(t=this.items)||void 0===t?void 0:t.length)?this.renderItems():this.emptyListElement),s("div",{key:"7a97a5dd632fe6d4227674e46e091a1466c725bf",style:{height:`${this.itemHeight}px`}}))}get el(){return a(this)}static get watchers(){return{items:[{itemsChanged:0}]}}};x.style=":host{height:100%;width:100%}";export{y as rtk_participant,x as rtk_virtualized_participant_list}
|
|
1
|
+
import{r as t,d as i,h as s,a as e,g as a}from"./p-gJCRRBX0.js";import{e as h,i as n,c}from"./p-DI7wP4CL.js";import{l as o,R as r}from"./p-CTFO-5XH.js";import{f as d,a as l}from"./p-vBD2htwQ.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{c as f,b as p,o as k,s as m,h as v}from"./p-B1SWgSTZ.js";import{S as b}from"./p-BmRffDYW.js";import{d as u}from"./p-MlOz-emx.js";import"./p-Daj_55_i.js";var g=function(t,i,s,e){var a,h=arguments.length,n=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(n=(h<3?a(n):h>3?a(i,s,n):a(i,s))||n);return h>3&&n&&Object.defineProperty(i,s,n),n};const y=class{constructor(s){t(this,s),this.rtkSendNotification=i(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=h,this.t=n(),this.config=c(),this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");f(t,i,{placement:"bottom-end",middleware:[p({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),k(4),m({padding:8}),v()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){if(null!=t){const{self:i}=t;this.canDisableParticipantAudio=i.permissions.canAllowParticipantAudio||i.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=i.permissions.canAllowParticipantVideo||i.permissions.canDisableParticipantVideo,this.canKickParticipant=i.permissions.kickParticipant,this.canPinParticipant=i.permissions.pinParticipant,this.canAllowParticipantOnStage=i.permissions.acceptStageRequests&&i.permissions.stageEnabled,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,a,h,n,c,f,p,k;const m="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),v=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,b=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!m||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,u=d((null===(a=this.participant)||void 0===a?void 0:a.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(h=this.meeting)||void 0===h?void 0:h.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return s(e,{key:"72dec22593ebf143608cd671c2fdf533378acae2"},s("div",{class:"left",key:null===(n=this.participant)||void 0===n?void 0:n.id},s("rtk-avatar",{key:"e71b096c53fe07f425adf1e47d9adb6ee9e7c212",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),s("p",{key:"492fe90030df26c000d2db3b0355d713e3a8ccf9",class:"name",title:u},l(u,16)," ",(null===(c=this.meeting)||void 0===c?void 0:c.self.id)===(null===(f=this.participant)||void 0===f?void 0:f.id)&&this.t("(you)"))),"sidebar"===this.view&&s("div",{key:"66ef58575c0c27d7afe631a544a44cb37c526c4c",class:"right"},g&&s("rtk-icon",{key:"adbbf629c1a4f1034127be89c09f8003d3cfe3a7",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!m&&s("rtk-icon",{key:"ef0b24e9fb292968c96cb74be8d63f14fde38a44",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(b||o({element:"rtk-participant",defaults:y})>0)&&s("div",{key:"38d52737db83f9c444211e3040cf09f5f47c1513",class:"menu"},s("span",{key:"f061992198025919d2bcf14cd1a6eee3f077beaf",id:"trigger",onClick:this.onMenuToggle},s("rtk-button",{key:"7eb863089acda3f9e20e5aedbcf55742c4b4eb64",variant:"ghost",kind:"icon",slot:"trigger"},s("rtk-icon",{key:"a7ff6d6dc9e1139f3b367ab662ad49b79e8258ff",class:"more",icon:this.iconPack.more_vertical}))),s("span",{key:"9188d1538accf4e4769f58580651e0ededa3dd75",id:"menu-list"},this.menuOpen&&s("rtk-menu-list",{key:"ef8b7d03841f4920dc7eb295456669975d06ee2f",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!m&&s("rtk-menu-item",{key:"d82737dc1227c642ce9c3880fcbe373ff6e0ec0c",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},s("rtk-icon",{key:"50e63cba1117df61588026b064046779a1e905fb",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),v&&s("rtk-menu-item",{key:"662d993d406bd00f014f41425ceb728ab4454ebd",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},s("rtk-icon",{key:"8b296bdb308c3a18a7ec13bca1047277a60b0887",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&s("rtk-menu-item",{key:"efea4ce4a51bbe2203635e0a95878d80cfe460e4",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},s("rtk-icon",{key:"cdc27b2554c89ef5c3441de551c2bdbf4e91ed72",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&s("rtk-menu-item",{key:"4f1f4e0610cb9fa7a993b824defc71af47711cb1",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},s("rtk-icon",{key:"234d891a3ea80dbda3172e8e6a89d71a44676770",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(p=this.participant)||void 0===p?void 0:p.id)!==(null===(k=this.meeting)||void 0===k?void 0:k.self.id)&&s("rtk-menu-item",{key:"90c465f0f66a792f160b6226714dd07e51c57616",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},s("rtk-icon",{key:"a5605d8b2864e27817646fc585e6598cd547ca70",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!v&&this.canKickParticipant&&s("rtk-menu-item",{key:"0e5fe7c7f6e61599293843466c5b473226348d26",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.participants.joined.get(null===(i=this.participant)||void 0===i?void 0:i.id))||void 0===s||s.kick()}},s("rtk-icon",{key:"c7d370837be33a1a14fb32f64a35da3fdceafe28",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),s("slot",{key:"ec5dea9563b71323776808d8ef1991cda87e625f"},s(r,{key:"6c423497a1c2f31a7190305913dce0019cf943f1",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return a(this)}static get watchers(){return{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}}};g([b()],y.prototype,"meeting",void 0),g([b()],y.prototype,"states",void 0),g([b()],y.prototype,"iconPack",void 0),g([b()],y.prototype,"t",void 0),g([b()],y.prototype,"config",void 0),y.style=":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)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20}";const x=class{constructor(i){t(this,i),this.items=[],this.itemHeight=55,this.bufferedItemsCount=5,this.emptyListElement=null,this.visibleStart=0,this.visibleEnd=0,this.containerHeight=0,this.lastScrollTop=0,this.recalculatePositioning=()=>{this.updateContainerHeight(),requestAnimationFrame((()=>{this.updateItemHeight()}))},this.updateContainerHeight=()=>{this.el.querySelector(".virtual-list-container").clientHeight&&(requestAnimationFrame((()=>{this.updateItemHeight()})),this.containerHeight=this.el.querySelector(".virtual-list-container").clientHeight,this.updateVisibleRange())},this.onScroll=u((()=>{const t=this.el.querySelector(".virtual-list-container").scrollTop;t>this.lastScrollTop&&this.visibleEnd===this.items.length||(this.lastScrollTop=t,this.updateVisibleRange())}))}itemsChanged(){this.recalculatePositioning()}componentDidLoad(){this.recalculatePositioning(),this.el.querySelector(".virtual-list-container").addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.recalculatePositioning)}componentDidUpdate(){this.updateItemHeight()}disconnectedCallback(){this.el.querySelector(".virtual-list-container").removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.recalculatePositioning)}updateVisibleRange(){const t=this.el.querySelector(".virtual-list-container").scrollTop,i=Math.floor(t/this.itemHeight),s=Math.ceil(this.containerHeight/this.itemHeight),e=Math.min(this.items.length,i+s+this.bufferedItemsCount);this.visibleStart=i,this.visibleEnd=e,this.el.querySelector(".virtual-list-container").scrollTop=this.lastScrollTop}updateItemHeight(){const t=this.el.querySelector(".virtual-list-item");if(t){const i=t.style.height;t.style.height="auto";const s=t.getBoundingClientRect().height;i&&(t.style.height=i),s&&Math.floor(s)!==Math.floor(this.itemHeight)&&(this.itemHeight=s)}}renderItems(){return this.items.slice(this.visibleStart,this.visibleEnd).map(((t,i)=>{const e=this.visibleStart+i;return s("div",{class:"virtual-list-item",key:t.id,style:{position:"absolute",top:e*this.itemHeight+"px",height:`${this.itemHeight}px`,width:"100%"}},this.renderItem(t,e))}))}render(){var t;return s("div",{key:"279498eedaa6605456a2fffc004bd0204179ffde",class:"virtual-list-container",style:{position:"relative",height:"100%",overflowX:"hidden",overflowY:"auto"}},s("div",{key:"debb114c51c7c229b72cfcd7e87aa845ab6647e1",style:{height:this.items.length*this.itemHeight+"px",position:"relative"}},(null===(t=this.items)||void 0===t?void 0:t.length)?this.renderItems():this.emptyListElement),s("div",{key:"7a97a5dd632fe6d4227674e46e091a1466c725bf",style:{height:`${this.itemHeight}px`}}))}get el(){return a(this)}static get watchers(){return{items:[{itemsChanged:0}]}}};x.style=":host{height:100%;width:100%}";export{y as rtk_participant,x as rtk_virtualized_participant_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{S as o}from"./p-BmRffDYW.js";import"./p-
|
|
1
|
+
import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{S as o}from"./p-BmRffDYW.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-DI7wP4CL.js";import"./p-Daj_55_i.js";const n=class{constructor(e){t(this,e),this.tabChange=a(this,"tabChange",7),this.sidebarClose=a(this,"sidebarClose",7),this.view="sidebar",this.tabs=[],this.hideHeader=!1,this.hideCloseAction=!1,this.iconPack=i,this.focusCloseButton=!0,this.t=s(),this.onClose=()=>{var t;this.sidebarClose.emit(),document.activeElement instanceof HTMLElement&&(null===(t=document.activeElement.tagName)||void 0===t?void 0:t.includes("RTK-"))&&document.activeElement.blur instanceof Function&&document.activeElement.blur()}}componentDidLoad(){this.keydownListener=t=>{"Escape"===t.key&&this.onClose()},this.hostEl.addEventListener("keydown",this.keydownListener),this.handleFocusCloseButton()}handleFocusCloseButton(){"chat"===this.currentTab||this.hideCloseAction||this.closeButton.focus()}disconnectedCallback(){this.hostEl.removeEventListener("keydown",this.keydownListener)}render(){const t="full-screen"===this.view,a=this.tabs.find((t=>t.id===this.currentTab));return e(r,{key:"850aa92eeb61bf2729b12e30be8a43a9ff3a1acf",ref:t=>this.hostEl=t,class:this.view},!this.hideCloseAction&&e("rtk-button",{key:"f52d00bc36c398403eb7ac8ab5625f3cecd5da4f",ref:t=>this.closeButton=t,variant:"ghost",kind:"icon",class:"close",onClick:this.onClose,"aria-label":this.t("close")},e("rtk-icon",{key:"4d970f5a9f02839dc297ccb2b7c85806025f7ef1",icon:this.iconPack.dismiss})),a&&!this.hideHeader&&e("header",{key:"8c1ae2f6e4a87e2fc66381e70c7053b1b4a4d2b2",class:"main-header"},e("h3",{key:"6f9faffac3acd82cd4645189459212026b10bf1d"},a.name),e("slot",{key:"20b3cff89b8805600eafbce17aabc4880e473a56",name:"pinned-state"})),t&&e("header",{key:"86bf499aadbe7b57868a135a35100cc1e430520e",class:"mobile-tabs"},this.tabs.map((t=>e("button",{onClick:()=>{this.tabChange.emit(t.id)},class:{active:this.currentTab===t.id}},t.name)))),e("slot",{key:"d19ec28aa918a2bfd9556c64ef758b2faf6a195d",name:this.currentTab}))}static get watchers(){return{currentTab:[{handleFocusCloseButton:0}]}}};(function(t,a,e,r){var o,i=arguments.length,s=i<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(i<3?o(s):i>3?o(a,e,s):o(a,e))||s);i>3&&s&&Object.defineProperty(a,e,s)})([o()],n.prototype,"t",void 0),n.style=":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)}:host{position:relative;height:100%;width:100%;font-family:var(--rtk-font-family, sans-serif);z-index:50;display:flex;flex-direction:column;container-type:size;container-name:sidebarui}@container sidebarui (height < 370px){.main-header{height:var(--rtk-space-8, 32px) !important}.close{top:var(--rtk-space-0\\.5, 2px) !important;left:var(--rtk-space-0, 0px) !important;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.6)}}:host([view='sidebar']){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host([view='full-screen']){position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%;border:none}::slotted(*){flex-grow:1}.close{position:absolute;top:var(--rtk-space-2, 8px);left:var(--rtk-space-2, 8px);z-index:10}.main-header{position:relative;display:flex;height:var(--rtk-space-12, 48px);place-items:center;justify-content:center}.main-header,.mobile-tabs{flex-shrink:0}.mobile-tabs{display:flex;place-items:center;justify-content:space-evenly;border-bottom:1px solid rgb(var(--rtk-colors-background-700, 44 44 44))}.mobile-tabs button{margin:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;padding:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));height:var(--rtk-space-10, 40px);cursor:pointer;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);font-weight:500;border-bottom:1px solid transparent}.mobile-tabs button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-border-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}header h3{font-size:14px;font-weight:500}@media only screen and (max-device-height: 480px) and (orientation: landscape){.main-header{display:none !important}}.tab-participant-count-badge{display:inline-block;padding:2px 5px;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.tab-participant-count-badge:not(.selected-tab){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.tab-participant-count-badge.requests-pending{background-color:rgba(var(--rtk-colors-danger))}";export{n as rtk_sidebar_ui}
|