@cloudflare/realtimekit-ui 1.0.0-staging.12 → 1.0.0-staging.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/index.cjs.js +1 -2
  3. package/dist/cjs/{notification-1948ed2f.js → notification-bb1a9b99.js} +2 -7
  4. package/dist/cjs/rtk-avatar_54.cjs.entry.js +1 -2
  5. package/dist/cjs/rtk-participants-audio.cjs.entry.js +3 -3
  6. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +3 -4
  7. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +1 -2
  8. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +3 -4
  9. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -2
  10. package/dist/collection/lib/audio.js +3 -3
  11. package/dist/collection/lib/notification.js +2 -7
  12. package/dist/components/index.js +1 -1
  13. package/dist/components/{p-dba3cdd1.js → p-88526f0a.js} +1 -1
  14. package/dist/components/{p-50ecaaf1.js → p-908e4f1b.js} +2 -7
  15. package/dist/components/{p-aa9ee9a5.js → p-ae46ddba.js} +3 -4
  16. package/dist/components/{p-1a546cf4.js → p-bad40128.js} +1 -1
  17. package/dist/components/rtk-chat.js +1 -1
  18. package/dist/components/rtk-meeting.js +2 -2
  19. package/dist/components/rtk-notifications.js +1 -1
  20. package/dist/components/rtk-participants-audio.js +3 -3
  21. package/dist/components/rtk-participants-stage-queue.js +1 -1
  22. package/dist/components/rtk-participants.js +1 -1
  23. package/dist/components/rtk-screen-share-toggle.js +1 -2
  24. package/dist/docs/docs-components.json +1 -1
  25. package/dist/esm/index.js +1 -2
  26. package/dist/esm/loader.js +9 -15
  27. package/dist/esm/{notification-800f2bcd.js → notification-6b3acf5b.js} +2 -7
  28. package/dist/esm/rtk-avatar_54.entry.js +1 -2
  29. package/dist/esm/rtk-participants-audio.entry.js +3 -3
  30. package/dist/esm/rtk-participants-stage-list_4.entry.js +3 -4
  31. package/dist/esm/rtk-screen-share-toggle.entry.js +1 -2
  32. package/dist/realtimekit-ui/index.esm.js +1 -1
  33. package/dist/realtimekit-ui/p-01187fe9.entry.js +1 -0
  34. package/dist/realtimekit-ui/p-0bf304c7.js +1 -0
  35. package/dist/realtimekit-ui/p-4ac204c8.entry.js +1 -0
  36. package/dist/realtimekit-ui/p-e4c7e377.entry.js +1 -0
  37. package/dist/realtimekit-ui/p-fe77ed92.entry.js +1 -0
  38. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  39. package/dist/types/lib/audio.d.ts +1 -0
  40. package/package.json +1 -1
  41. package/dist/cjs/logger-3df9c75d.js +0 -5
  42. package/dist/collection/utils/logger.js +0 -1
  43. package/dist/components/p-5605a420.js +0 -3
  44. package/dist/esm/logger-31448943.js +0 -3
  45. package/dist/realtimekit-ui/p-235b7aa8.entry.js +0 -1
  46. package/dist/realtimekit-ui/p-4f45e362.entry.js +0 -1
  47. package/dist/realtimekit-ui/p-5605a420.js +0 -1
  48. package/dist/realtimekit-ui/p-59daa5d2.entry.js +0 -1
  49. package/dist/realtimekit-ui/p-c8f8b690.entry.js +0 -1
  50. package/dist/realtimekit-ui/p-fc36f92c.js +0 -1
  51. package/dist/types/utils/logger.d.ts +0 -1
@@ -4,12 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const uiStore = require('./ui-store-3ddce955.js');
6
6
  const config = require('./config-dba24e25.js');
7
- const notification = require('./notification-1948ed2f.js');
7
+ const notification = require('./notification-bb1a9b99.js');
8
8
  const chat = require('./chat-46e7e4fe.js');
9
9
  require('./index-05554ce6.js');
10
10
  require('./keysIn-8bdbe83d.js');
11
11
  require('./isObjectLike-73d13a39.js');
12
- require('./logger-3df9c75d.js');
13
12
 
14
13
  /**
15
14
  * Send notification which will be displayed in the `<rtk-notifications />` component.
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  const uiStore = require('./ui-store-3ddce955.js');
4
- const logger = require('./logger-3df9c75d.js');
5
4
 
6
5
  const SOUNDS = {
7
6
  joined: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
@@ -24,9 +23,7 @@ class RTKNotificationsAudio {
24
23
  this.playing = true;
25
24
  this.audio.src = SOUNDS[sound];
26
25
  this.audio.volume = 0.3;
27
- (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((err) => {
28
- logger.logger.error('[rtk-notifications] play() failed\n', { sound, duration }, err);
29
- });
26
+ (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((_) => { });
30
27
  setTimeout(() => {
31
28
  this.playing = false;
32
29
  }, duration);
@@ -35,9 +32,7 @@ class RTKNotificationsAudio {
35
32
  var _a, _b, _c;
36
33
  if (uiStore.disableSettingSinkId(this.meeting))
37
34
  return;
38
- await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
39
- logger.logger.error('[rtk-notifications] setSinkId() error\n', err);
40
- }));
35
+ await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((_) => { }));
41
36
  }
42
37
  }
43
38
 
@@ -17,10 +17,9 @@ const size = require('./size-2a406e36.js');
17
17
  const ResizeObserver_es = require('./ResizeObserver.es-ba961f16.js');
18
18
  const floatingUi_dom_esm = require('./floating-ui.dom.esm-c3c35b98.js');
19
19
  const TextMessage = require('./TextMessage-e9ca06aa.js');
20
- const notification = require('./notification-1948ed2f.js');
20
+ const notification = require('./notification-bb1a9b99.js');
21
21
  require('./isObjectLike-73d13a39.js');
22
22
  require('./keysIn-8bdbe83d.js');
23
- require('./logger-3df9c75d.js');
24
23
 
25
24
  const rtkAvatarCss = ":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:var(--rtk-space-32, 128px);width:var(--rtk-space-32, 128px);align-items:center;justify-content:center;font-size:28px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));overflow:clip;border-radius:9999px;-webkit-user-select:none;-moz-user-select:none;user-select:none}rtk-icon{height:50%;width:50%}.image-ctr{display:flex;height:100%;width:100%;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}img{height:var(--rtk-space-0, 0px);width:var(--rtk-space-0, 0px);-o-object-fit:cover;object-fit:cover}img.loaded{height:100%;width:100%}.initials{display:flex;height:100%;width:100%;align-items:center;justify-content:center;text-transform:uppercase}.image{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.image img{display:none;height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.image img.loaded{display:block}:host([variant='hexagon']){border-radius:var(--rtk-border-radius-none, 0);clip-path:polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%)}:host([variant='square']){border-radius:var(--rtk-border-radius-none, 0);clip-path:polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)}:host([size='sm']){height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);font-size:12px}:host([size='md']){height:var(--rtk-space-28, 112px);width:var(--rtk-space-28, 112px)}:host([size='lg']){height:var(--rtk-space-32, 128px);width:var(--rtk-space-32, 128px)}";
26
25
  const RtkAvatarStyle0 = rtkAvatarCss;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index$1 = require('./index-05554ce6.js');
6
6
  const uiStore = require('./ui-store-3ddce955.js');
7
- const logger = require('./logger-3df9c75d.js');
8
7
  const index = require('./index-daae8cee.js');
9
8
 
10
9
  /**
@@ -15,6 +14,7 @@ class RTKAudio {
15
14
  this.meeting = meeting;
16
15
  this.audio = audio !== null && audio !== void 0 ? audio : document.createElement('audio');
17
16
  this.audio.autoplay = true;
17
+ this.logger = meeting.__internals__.logger;
18
18
  this.audioStream = new MediaStream();
19
19
  this.audio.srcObject = this.audioStream;
20
20
  this.audioTracks = [];
@@ -43,7 +43,7 @@ class RTKAudio {
43
43
  }
44
44
  }
45
45
  else if (err.name !== 'AbortError') {
46
- logger.logger.error('[rtk-audio] play() error\n', err);
46
+ this.logger.error('[rtk-audio] play() error\n', err);
47
47
  }
48
48
  }));
49
49
  }
@@ -52,7 +52,7 @@ class RTKAudio {
52
52
  if (uiStore.disableSettingSinkId(this.meeting))
53
53
  return;
54
54
  await ((_c = (_b = (_a = this.audio).setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
55
- logger.logger.error('[rtk-audio] setSinkId() error\n', err);
55
+ this.logger.error('[rtk-audio] setSinkId() error\n', err);
56
56
  }));
57
57
  }
58
58
  onError(onError) {
@@ -165,21 +165,17 @@ const RtkParticipantsStaged = class {
165
165
  this.acceptStageRequest = async (p) => {
166
166
  const { userId } = p;
167
167
  await this.meeting.stage.grantAccess([userId]);
168
- this.updateStageRequestedParticipants();
169
168
  };
170
169
  this.rejectStageRequest = async (p) => {
171
170
  const { userId } = p;
172
171
  await this.meeting.stage.denyAccess([userId]);
173
- this.updateStageRequestedParticipants();
174
172
  };
175
173
  this.acceptAllStageRequest = async () => {
176
174
  await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((p) => p.userId));
177
- this.updateStageRequestedParticipants();
178
175
  };
179
176
  this.denyAllStageRequest = async () => {
180
177
  var _a;
181
178
  await ((_a = this.meeting.stage) === null || _a === void 0 ? void 0 : _a.denyAccess(this.stageRequestedParticipants.map((p) => p.userId)));
182
- this.updateStageRequestedParticipants();
183
179
  };
184
180
  this.shouldShowStageRequests = () => {
185
181
  return (this.meeting.self.permissions.stageEnabled &&
@@ -217,14 +213,17 @@ const RtkParticipantsStaged = class {
217
213
  this.meetingChanged(this.meeting);
218
214
  }
219
215
  disconnectedCallback() {
216
+ var _a;
220
217
  const { stage } = this.meeting;
221
218
  stage === null || stage === void 0 ? void 0 : stage.removeListener('stageAccessRequestUpdate', this.updateRequestList);
219
+ (_a = this.meeting.participants.joined) === null || _a === void 0 ? void 0 : _a.removeListener('stageStatusUpdate', this.updateStageRequestedParticipants);
222
220
  }
223
221
  meetingChanged(meeting) {
224
222
  var _a;
225
223
  if (meeting == null)
226
224
  return;
227
225
  this.updateRequestList();
226
+ meeting.participants.joined.on('stageStatusUpdate', this.updateStageRequestedParticipants);
228
227
  (_a = meeting.stage) === null || _a === void 0 ? void 0 : _a.on('stageAccessRequestUpdate', this.updateRequestList);
229
228
  }
230
229
  render() {
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index$1 = require('./index-05554ce6.js');
6
6
  const uiStore = require('./ui-store-3ddce955.js');
7
- const logger = require('./logger-3df9c75d.js');
8
7
  const index = require('./index-daae8cee.js');
9
8
 
10
9
  const rtkScreenShareToggleCss = ":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:block}:host([data-hidden]){display:none}";
@@ -144,7 +143,7 @@ const RtkScreenShareToggle = class {
144
143
  }
145
144
  connectedCallback() {
146
145
  if (!deviceCanScreenShare()) {
147
- logger.logger.error('[rtk-screenshare-toggle] Device does not support screensharing.');
146
+ this.meeting.__internals__.logger.error('[rtk-screenshare-toggle] Device does not support screensharing.');
148
147
  return;
149
148
  }
150
149
  this.meetingChanged(this.meeting);
@@ -31,21 +31,17 @@ export class RtkParticipantsStaged {
31
31
  this.acceptStageRequest = async (p) => {
32
32
  const { userId } = p;
33
33
  await this.meeting.stage.grantAccess([userId]);
34
- this.updateStageRequestedParticipants();
35
34
  };
36
35
  this.rejectStageRequest = async (p) => {
37
36
  const { userId } = p;
38
37
  await this.meeting.stage.denyAccess([userId]);
39
- this.updateStageRequestedParticipants();
40
38
  };
41
39
  this.acceptAllStageRequest = async () => {
42
40
  await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((p) => p.userId));
43
- this.updateStageRequestedParticipants();
44
41
  };
45
42
  this.denyAllStageRequest = async () => {
46
43
  var _a;
47
44
  await ((_a = this.meeting.stage) === null || _a === void 0 ? void 0 : _a.denyAccess(this.stageRequestedParticipants.map((p) => p.userId)));
48
- this.updateStageRequestedParticipants();
49
45
  };
50
46
  this.shouldShowStageRequests = () => {
51
47
  return (this.meeting.self.permissions.stageEnabled &&
@@ -83,14 +79,17 @@ export class RtkParticipantsStaged {
83
79
  this.meetingChanged(this.meeting);
84
80
  }
85
81
  disconnectedCallback() {
82
+ var _a;
86
83
  const { stage } = this.meeting;
87
84
  stage === null || stage === void 0 ? void 0 : stage.removeListener('stageAccessRequestUpdate', this.updateRequestList);
85
+ (_a = this.meeting.participants.joined) === null || _a === void 0 ? void 0 : _a.removeListener('stageStatusUpdate', this.updateStageRequestedParticipants);
88
86
  }
89
87
  meetingChanged(meeting) {
90
88
  var _a;
91
89
  if (meeting == null)
92
90
  return;
93
91
  this.updateRequestList();
92
+ meeting.participants.joined.on('stageStatusUpdate', this.updateStageRequestedParticipants);
94
93
  (_a = meeting.stage) === null || _a === void 0 ? void 0 : _a.on('stageAccessRequestUpdate', this.updateRequestList);
95
94
  }
96
95
  render() {
@@ -11,7 +11,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
11
11
  import { defaultIconPack } from "../../lib/icons";
12
12
  import { useLanguage } from "../../lib/lang";
13
13
  import { Host, h } from "@stencil/core";
14
- import logger from "../../utils/logger";
15
14
  import { SyncWithStore } from "../../utils/sync-with-store";
16
15
  const deviceCanScreenShare = () => {
17
16
  return (typeof navigator !== 'undefined' &&
@@ -137,7 +136,7 @@ export class RtkScreenShareToggle {
137
136
  }
138
137
  connectedCallback() {
139
138
  if (!deviceCanScreenShare()) {
140
- logger.error('[rtk-screenshare-toggle] Device does not support screensharing.');
139
+ this.meeting.__internals__.logger.error('[rtk-screenshare-toggle] Device does not support screensharing.');
141
140
  return;
142
141
  }
143
142
  this.meetingChanged(this.meeting);
@@ -1,5 +1,4 @@
1
1
  import { disableSettingSinkId } from "../utils/flags";
2
- import logger from "../utils/logger";
3
2
  /**
4
3
  * Handles audio from participants in a meeting
5
4
  */
@@ -8,6 +7,7 @@ export default class RTKAudio {
8
7
  this.meeting = meeting;
9
8
  this.audio = audio !== null && audio !== void 0 ? audio : document.createElement('audio');
10
9
  this.audio.autoplay = true;
10
+ this.logger = meeting.__internals__.logger;
11
11
  this.audioStream = new MediaStream();
12
12
  this.audio.srcObject = this.audioStream;
13
13
  this.audioTracks = [];
@@ -36,7 +36,7 @@ export default class RTKAudio {
36
36
  }
37
37
  }
38
38
  else if (err.name !== 'AbortError') {
39
- logger.error('[rtk-audio] play() error\n', err);
39
+ this.logger.error('[rtk-audio] play() error\n', err);
40
40
  }
41
41
  }));
42
42
  }
@@ -45,7 +45,7 @@ export default class RTKAudio {
45
45
  if (disableSettingSinkId(this.meeting))
46
46
  return;
47
47
  await ((_c = (_b = (_a = this.audio).setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
48
- logger.error('[rtk-audio] setSinkId() error\n', err);
48
+ this.logger.error('[rtk-audio] setSinkId() error\n', err);
49
49
  }));
50
50
  }
51
51
  onError(onError) {
@@ -1,5 +1,4 @@
1
1
  import { disableSettingSinkId } from "../utils/flags";
2
- import logger from "../utils/logger";
3
2
  const SOUNDS = {
4
3
  joined: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
5
4
  left: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
@@ -21,9 +20,7 @@ export default class RTKNotificationsAudio {
21
20
  this.playing = true;
22
21
  this.audio.src = SOUNDS[sound];
23
22
  this.audio.volume = 0.3;
24
- (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((err) => {
25
- logger.error('[rtk-notifications] play() failed\n', { sound, duration }, err);
26
- });
23
+ (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((_) => { });
27
24
  setTimeout(() => {
28
25
  this.playing = false;
29
26
  }, duration);
@@ -32,8 +29,6 @@ export default class RTKNotificationsAudio {
32
29
  var _a, _b, _c;
33
30
  if (disableSettingSinkId(this.meeting))
34
31
  return;
35
- await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
36
- logger.error('[rtk-notifications] setSinkId() error\n', err);
37
- }));
32
+ await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((_) => { }));
38
33
  }
39
34
  }
@@ -3,7 +3,7 @@ import { d as defaultConfig } from './p-e6d09c50.js';
3
3
  export { B as BreakoutRoomsManager, d as defaultConfig, a as defaultIconPack, b as defaultLanguage, g as getInitialStates, u as uiStore, c as useLanguage } from './p-e6d09c50.js';
4
4
  import { g as generateConfig } from './p-4a436e2d.js';
5
5
  export { e as extendConfig, g as generateConfig, p as provideRtkDesignSystem } from './p-4a436e2d.js';
6
- export { R as RtkNotificationsAudio } from './p-50ecaaf1.js';
6
+ export { R as RtkNotificationsAudio } from './p-908e4f1b.js';
7
7
  export { g as generateChatGroupKey, a as getChatGroups, c as getParticipantUserId, b as getUnreadChatCounts } from './p-0abe4b8a.js';
8
8
 
9
9
  /**
@@ -46,7 +46,7 @@ import { d as defineCustomElement$d } from './p-c7dcb441.js';
46
46
  import { d as defineCustomElement$c } from './p-c939f92d.js';
47
47
  import { d as defineCustomElement$b } from './p-135d5d2f.js';
48
48
  import { d as defineCustomElement$a } from './p-ece96324.js';
49
- import { d as defineCustomElement$9 } from './p-1a546cf4.js';
49
+ import { d as defineCustomElement$9 } from './p-bad40128.js';
50
50
  import { d as defineCustomElement$8 } from './p-71e0f6f2.js';
51
51
  import { d as defineCustomElement$7 } from './p-9cfe5c7c.js';
52
52
  import { d as defineCustomElement$6 } from './p-68b6f23b.js';
@@ -1,5 +1,4 @@
1
1
  import { e as disableSettingSinkId } from './p-e6d09c50.js';
2
- import { l as logger } from './p-5605a420.js';
3
2
 
4
3
  const SOUNDS = {
5
4
  joined: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
@@ -22,9 +21,7 @@ class RTKNotificationsAudio {
22
21
  this.playing = true;
23
22
  this.audio.src = SOUNDS[sound];
24
23
  this.audio.volume = 0.3;
25
- (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((err) => {
26
- logger.error('[rtk-notifications] play() failed\n', { sound, duration }, err);
27
- });
24
+ (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((_) => { });
28
25
  setTimeout(() => {
29
26
  this.playing = false;
30
27
  }, duration);
@@ -33,9 +30,7 @@ class RTKNotificationsAudio {
33
30
  var _a, _b, _c;
34
31
  if (disableSettingSinkId(this.meeting))
35
32
  return;
36
- await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
37
- logger.error('[rtk-notifications] setSinkId() error\n', err);
38
- }));
33
+ await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((_) => { }));
39
34
  }
40
35
  }
41
36
 
@@ -43,21 +43,17 @@ const RtkParticipantsStaged = /*@__PURE__*/ proxyCustomElement(class RtkParticip
43
43
  this.acceptStageRequest = async (p) => {
44
44
  const { userId } = p;
45
45
  await this.meeting.stage.grantAccess([userId]);
46
- this.updateStageRequestedParticipants();
47
46
  };
48
47
  this.rejectStageRequest = async (p) => {
49
48
  const { userId } = p;
50
49
  await this.meeting.stage.denyAccess([userId]);
51
- this.updateStageRequestedParticipants();
52
50
  };
53
51
  this.acceptAllStageRequest = async () => {
54
52
  await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((p) => p.userId));
55
- this.updateStageRequestedParticipants();
56
53
  };
57
54
  this.denyAllStageRequest = async () => {
58
55
  var _a;
59
56
  await ((_a = this.meeting.stage) === null || _a === void 0 ? void 0 : _a.denyAccess(this.stageRequestedParticipants.map((p) => p.userId)));
60
- this.updateStageRequestedParticipants();
61
57
  };
62
58
  this.shouldShowStageRequests = () => {
63
59
  return (this.meeting.self.permissions.stageEnabled &&
@@ -95,14 +91,17 @@ const RtkParticipantsStaged = /*@__PURE__*/ proxyCustomElement(class RtkParticip
95
91
  this.meetingChanged(this.meeting);
96
92
  }
97
93
  disconnectedCallback() {
94
+ var _a;
98
95
  const { stage } = this.meeting;
99
96
  stage === null || stage === void 0 ? void 0 : stage.removeListener('stageAccessRequestUpdate', this.updateRequestList);
97
+ (_a = this.meeting.participants.joined) === null || _a === void 0 ? void 0 : _a.removeListener('stageStatusUpdate', this.updateStageRequestedParticipants);
100
98
  }
101
99
  meetingChanged(meeting) {
102
100
  var _a;
103
101
  if (meeting == null)
104
102
  return;
105
103
  this.updateRequestList();
104
+ meeting.participants.joined.on('stageStatusUpdate', this.updateStageRequestedParticipants);
106
105
  (_a = meeting.stage) === null || _a === void 0 ? void 0 : _a.on('stageAccessRequestUpdate', this.updateRequestList);
107
106
  }
108
107
  render() {
@@ -1,5 +1,5 @@
1
1
  import { p as proxyCustomElement, H, w as writeTask, h, e as Host } from './p-c3592601.js';
2
- import { R as RTKNotificationsAudio } from './p-50ecaaf1.js';
2
+ import { R as RTKNotificationsAudio } from './p-908e4f1b.js';
3
3
  import { f as formatName } from './p-338c7261.js';
4
4
  import { d as defaultConfig, c as useLanguage, a as defaultIconPack, s as showLivestream } from './p-e6d09c50.js';
5
5
  import { j as parseMessageForTarget } from './p-0abe4b8a.js';
@@ -1,4 +1,4 @@
1
- import { R as RtkChat$1, d as defineCustomElement$1 } from './p-dba3cdd1.js';
1
+ import { R as RtkChat$1, d as defineCustomElement$1 } from './p-88526f0a.js';
2
2
 
3
3
  const RtkChat = RtkChat$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -16,7 +16,7 @@ import { d as defineCustomElement$M } from './p-9da5b9d0.js';
16
16
  import { d as defineCustomElement$L } from './p-f6046472.js';
17
17
  import { d as defineCustomElement$K } from './p-5c3d1c4f.js';
18
18
  import { d as defineCustomElement$J } from './p-9cace38c.js';
19
- import { d as defineCustomElement$I } from './p-dba3cdd1.js';
19
+ import { d as defineCustomElement$I } from './p-88526f0a.js';
20
20
  import { d as defineCustomElement$H } from './p-0c4a1808.js';
21
21
  import { d as defineCustomElement$G } from './p-c2723ebb.js';
22
22
  import { d as defineCustomElement$F } from './p-898da6ae.js';
@@ -50,7 +50,7 @@ import { d as defineCustomElement$e } from './p-c7dcb441.js';
50
50
  import { d as defineCustomElement$d } from './p-c939f92d.js';
51
51
  import { d as defineCustomElement$c } from './p-135d5d2f.js';
52
52
  import { d as defineCustomElement$b } from './p-ece96324.js';
53
- import { d as defineCustomElement$a } from './p-1a546cf4.js';
53
+ import { d as defineCustomElement$a } from './p-bad40128.js';
54
54
  import { d as defineCustomElement$9 } from './p-71e0f6f2.js';
55
55
  import { d as defineCustomElement$8 } from './p-9cfe5c7c.js';
56
56
  import { d as defineCustomElement$7 } from './p-68b6f23b.js';
@@ -1,4 +1,4 @@
1
- import { R as RtkNotifications$1, d as defineCustomElement$1 } from './p-1a546cf4.js';
1
+ import { R as RtkNotifications$1, d as defineCustomElement$1 } from './p-bad40128.js';
2
2
 
3
3
  const RtkNotifications = RtkNotifications$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,6 +1,5 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h, e as Host } from './p-c3592601.js';
2
2
  import { e as disableSettingSinkId, a as defaultIconPack, c as useLanguage, m as isLiveStreamViewer } from './p-e6d09c50.js';
3
- import { l as logger } from './p-5605a420.js';
4
3
  import { S as SyncWithStore } from './p-d5791958.js';
5
4
  import { d as defineCustomElement$4 } from './p-4cc0e9a5.js';
6
5
  import { d as defineCustomElement$3 } from './p-cd50770d.js';
@@ -14,6 +13,7 @@ class RTKAudio {
14
13
  this.meeting = meeting;
15
14
  this.audio = audio !== null && audio !== void 0 ? audio : document.createElement('audio');
16
15
  this.audio.autoplay = true;
16
+ this.logger = meeting.__internals__.logger;
17
17
  this.audioStream = new MediaStream();
18
18
  this.audio.srcObject = this.audioStream;
19
19
  this.audioTracks = [];
@@ -42,7 +42,7 @@ class RTKAudio {
42
42
  }
43
43
  }
44
44
  else if (err.name !== 'AbortError') {
45
- logger.error('[rtk-audio] play() error\n', err);
45
+ this.logger.error('[rtk-audio] play() error\n', err);
46
46
  }
47
47
  }));
48
48
  }
@@ -51,7 +51,7 @@ class RTKAudio {
51
51
  if (disableSettingSinkId(this.meeting))
52
52
  return;
53
53
  await ((_c = (_b = (_a = this.audio).setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
54
- logger.error('[rtk-audio] setSinkId() error\n', err);
54
+ this.logger.error('[rtk-audio] setSinkId() error\n', err);
55
55
  }));
56
56
  }
57
57
  onError(onError) {
@@ -1,4 +1,4 @@
1
- import { R as RtkParticipantsStaged, d as defineCustomElement$1 } from './p-aa9ee9a5.js';
1
+ import { R as RtkParticipantsStaged, d as defineCustomElement$1 } from './p-ae46ddba.js';
2
2
 
3
3
  const RtkParticipantsStageQueue = RtkParticipantsStaged;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -9,7 +9,7 @@ import { d as defineCustomElement$c } from './p-10182034.js';
9
9
  import { d as defineCustomElement$b } from './p-c7dcb441.js';
10
10
  import { d as defineCustomElement$a } from './p-b373da43.js';
11
11
  import { d as defineCustomElement$9 } from './p-2ecf028f.js';
12
- import { d as defineCustomElement$8 } from './p-aa9ee9a5.js';
12
+ import { d as defineCustomElement$8 } from './p-ae46ddba.js';
13
13
  import { d as defineCustomElement$7 } from './p-f33bb583.js';
14
14
  import { d as defineCustomElement$6 } from './p-24e9b37b.js';
15
15
  import { d as defineCustomElement$5 } from './p-59ea0ce1.js';
@@ -1,6 +1,5 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h, e as Host } from './p-c3592601.js';
2
2
  import { a as defaultIconPack, c as useLanguage } from './p-e6d09c50.js';
3
- import { l as logger } from './p-5605a420.js';
4
3
  import { S as SyncWithStore } from './p-d5791958.js';
5
4
  import { d as defineCustomElement$5 } from './p-bdbaa65b.js';
6
5
  import { d as defineCustomElement$4 } from './p-2f2fb96d.js';
@@ -146,7 +145,7 @@ const RtkScreenShareToggle$1 = /*@__PURE__*/ proxyCustomElement(class RtkScreenS
146
145
  }
147
146
  connectedCallback() {
148
147
  if (!deviceCanScreenShare()) {
149
- logger.error('[rtk-screenshare-toggle] Device does not support screensharing.');
148
+ this.meeting.__internals__.logger.error('[rtk-screenshare-toggle] Device does not support screensharing.');
150
149
  return;
151
150
  }
152
151
  this.meetingChanged(this.meeting);
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-04-30T06:15:38",
2
+ "timestamp": "2025-05-06T09:19:53",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
package/dist/esm/index.js CHANGED
@@ -2,12 +2,11 @@ import { d as defaultConfig } from './ui-store-b453cdf2.js';
2
2
  export { B as BreakoutRoomsManager, d as defaultConfig, a as defaultIconPack, b as defaultLanguage, g as getInitialStates, u as uiStore, c as useLanguage } from './ui-store-b453cdf2.js';
3
3
  import { g as generateConfig } from './config-1ca1ba30.js';
4
4
  export { e as extendConfig, g as generateConfig, p as provideRtkDesignSystem } from './config-1ca1ba30.js';
5
- export { R as RtkNotificationsAudio } from './notification-800f2bcd.js';
5
+ export { R as RtkNotificationsAudio } from './notification-6b3acf5b.js';
6
6
  export { g as generateChatGroupKey, a as getChatGroups, c as getParticipantUserId, b as getUnreadChatCounts } from './chat-c25836b0.js';
7
7
  import './index-c1fb98bb.js';
8
8
  import './keysIn-310f65c1.js';
9
9
  import './isObjectLike-773b9473.js';
10
- import './logger-31448943.js';
11
10
 
12
11
  /**
13
12
  * Send notification which will be displayed in the `<rtk-notifications />` component.
@@ -9798,8 +9798,6 @@ const TextMessageView = ({ message }) => {
9798
9798
  })));
9799
9799
  };
9800
9800
 
9801
- const logger$1 = console;
9802
-
9803
9801
  const SOUNDS = {
9804
9802
  joined: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
9805
9803
  left: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
@@ -9821,9 +9819,7 @@ class RTKNotificationsAudio {
9821
9819
  this.playing = true;
9822
9820
  this.audio.src = SOUNDS[sound];
9823
9821
  this.audio.volume = 0.3;
9824
- (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((err) => {
9825
- logger$1.error('[rtk-notifications] play() failed\n', { sound, duration }, err);
9826
- });
9822
+ (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((_) => { });
9827
9823
  setTimeout(() => {
9828
9824
  this.playing = false;
9829
9825
  }, duration);
@@ -9832,9 +9828,7 @@ class RTKNotificationsAudio {
9832
9828
  var _a, _b, _c;
9833
9829
  if (disableSettingSinkId(this.meeting))
9834
9830
  return;
9835
- await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
9836
- logger$1.error('[rtk-notifications] setSinkId() error\n', err);
9837
- }));
9831
+ await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((_) => { }));
9838
9832
  }
9839
9833
  }
9840
9834
 
@@ -21158,6 +21152,7 @@ class RTKAudio {
21158
21152
  this.meeting = meeting;
21159
21153
  this.audio = audio !== null && audio !== void 0 ? audio : document.createElement('audio');
21160
21154
  this.audio.autoplay = true;
21155
+ this.logger = meeting.__internals__.logger;
21161
21156
  this.audioStream = new MediaStream();
21162
21157
  this.audio.srcObject = this.audioStream;
21163
21158
  this.audioTracks = [];
@@ -21186,7 +21181,7 @@ class RTKAudio {
21186
21181
  }
21187
21182
  }
21188
21183
  else if (err.name !== 'AbortError') {
21189
- logger$1.error('[rtk-audio] play() error\n', err);
21184
+ this.logger.error('[rtk-audio] play() error\n', err);
21190
21185
  }
21191
21186
  }));
21192
21187
  }
@@ -21195,7 +21190,7 @@ class RTKAudio {
21195
21190
  if (disableSettingSinkId(this.meeting))
21196
21191
  return;
21197
21192
  await ((_c = (_b = (_a = this.audio).setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
21198
- logger$1.error('[rtk-audio] setSinkId() error\n', err);
21193
+ this.logger.error('[rtk-audio] setSinkId() error\n', err);
21199
21194
  }));
21200
21195
  }
21201
21196
  onError(onError) {
@@ -22155,7 +22150,7 @@ const RtkScreenShareToggle = class {
22155
22150
  }
22156
22151
  connectedCallback() {
22157
22152
  if (!deviceCanScreenShare()) {
22158
- logger$1.error('[rtk-screenshare-toggle] Device does not support screensharing.');
22153
+ this.meeting.__internals__.logger.error('[rtk-screenshare-toggle] Device does not support screensharing.');
22159
22154
  return;
22160
22155
  }
22161
22156
  this.meetingChanged(this.meeting);
@@ -53790,21 +53785,17 @@ const RtkParticipantsStaged = class {
53790
53785
  this.acceptStageRequest = async (p) => {
53791
53786
  const { userId } = p;
53792
53787
  await this.meeting.stage.grantAccess([userId]);
53793
- this.updateStageRequestedParticipants();
53794
53788
  };
53795
53789
  this.rejectStageRequest = async (p) => {
53796
53790
  const { userId } = p;
53797
53791
  await this.meeting.stage.denyAccess([userId]);
53798
- this.updateStageRequestedParticipants();
53799
53792
  };
53800
53793
  this.acceptAllStageRequest = async () => {
53801
53794
  await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((p) => p.userId));
53802
- this.updateStageRequestedParticipants();
53803
53795
  };
53804
53796
  this.denyAllStageRequest = async () => {
53805
53797
  var _a;
53806
53798
  await ((_a = this.meeting.stage) === null || _a === void 0 ? void 0 : _a.denyAccess(this.stageRequestedParticipants.map((p) => p.userId)));
53807
- this.updateStageRequestedParticipants();
53808
53799
  };
53809
53800
  this.shouldShowStageRequests = () => {
53810
53801
  return (this.meeting.self.permissions.stageEnabled &&
@@ -53842,14 +53833,17 @@ const RtkParticipantsStaged = class {
53842
53833
  this.meetingChanged(this.meeting);
53843
53834
  }
53844
53835
  disconnectedCallback() {
53836
+ var _a;
53845
53837
  const { stage } = this.meeting;
53846
53838
  stage === null || stage === void 0 ? void 0 : stage.removeListener('stageAccessRequestUpdate', this.updateRequestList);
53839
+ (_a = this.meeting.participants.joined) === null || _a === void 0 ? void 0 : _a.removeListener('stageStatusUpdate', this.updateStageRequestedParticipants);
53847
53840
  }
53848
53841
  meetingChanged(meeting) {
53849
53842
  var _a;
53850
53843
  if (meeting == null)
53851
53844
  return;
53852
53845
  this.updateRequestList();
53846
+ meeting.participants.joined.on('stageStatusUpdate', this.updateStageRequestedParticipants);
53853
53847
  (_a = meeting.stage) === null || _a === void 0 ? void 0 : _a.on('stageAccessRequestUpdate', this.updateRequestList);
53854
53848
  }
53855
53849
  render() {
@@ -1,5 +1,4 @@
1
1
  import { e as disableSettingSinkId } from './ui-store-b453cdf2.js';
2
- import { l as logger } from './logger-31448943.js';
3
2
 
4
3
  const SOUNDS = {
5
4
  joined: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
@@ -22,9 +21,7 @@ class RTKNotificationsAudio {
22
21
  this.playing = true;
23
22
  this.audio.src = SOUNDS[sound];
24
23
  this.audio.volume = 0.3;
25
- (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((err) => {
26
- logger.error('[rtk-notifications] play() failed\n', { sound, duration }, err);
27
- });
24
+ (_a = this.audio.play()) === null || _a === void 0 ? void 0 : _a.catch((_) => { });
28
25
  setTimeout(() => {
29
26
  this.playing = false;
30
27
  }, duration);
@@ -33,9 +30,7 @@ class RTKNotificationsAudio {
33
30
  var _a, _b, _c;
34
31
  if (disableSettingSinkId(this.meeting))
35
32
  return;
36
- await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((err) => {
37
- logger.error('[rtk-notifications] setSinkId() error\n', err);
38
- }));
33
+ await ((_c = (_b = (_a = this.audio) === null || _a === void 0 ? void 0 : _a.setSinkId) === null || _b === void 0 ? void 0 : _b.call(_a, id)) === null || _c === void 0 ? void 0 : _c.catch((_) => { }));
39
34
  }
40
35
  }
41
36