@cloudflare/realtimekit-ui 1.0.8-staging.1 → 1.0.8-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/cjs/rtk-avatar_54.cjs.entry.js +11 -2
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +11 -2
- package/dist/components/{p-9b08d3ec.js → p-47230f49.js} +11 -2
- package/dist/components/{p-558ace78.js → p-99a61e45.js} +2 -2
- package/dist/components/{p-e16d55e1.js → p-ac19035c.js} +1 -1
- package/dist/components/{p-ec4e9485.js → p-bcd9ae7c.js} +3 -3
- package/dist/components/rtk-breakout-room-manager.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.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 +4 -4
- package/dist/docs/docs-components.json +1 -1
- package/dist/esm/loader.js +11 -2
- package/dist/esm/rtk-avatar_54.entry.js +11 -2
- package/dist/realtimekit-ui/p-4ec9d2bb.entry.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/package.json +1 -1
- package/dist/realtimekit-ui/p-45060051.entry.js +0 -1
|
@@ -227,8 +227,17 @@ const RtkBreakoutRoomManager = class {
|
|
|
227
227
|
}
|
|
228
228
|
render() {
|
|
229
229
|
var _a, _b, _c;
|
|
230
|
-
if (!this.meeting)
|
|
230
|
+
if (!this.meeting || !this.room || !this.permissions)
|
|
231
231
|
return null;
|
|
232
|
+
/* NOTE(ravindra-cloudflare):
|
|
233
|
+
* Checking if user can switch to this room
|
|
234
|
+
* Check 1: if user has full access.
|
|
235
|
+
* Check 2: For non-parent room, user has "switch meeting" access.
|
|
236
|
+
* Check 3: For parent room, user has "switch to parent meeting" access.
|
|
237
|
+
*/
|
|
238
|
+
const canSwitchToThisRoom = this.permissions.canAlterConnectedMeetings ||
|
|
239
|
+
(this.permissions.canSwitchConnectedMeetings && !this.room.isParent) ||
|
|
240
|
+
(this.permissions.canSwitchToParentMeeting && this.room.isParent);
|
|
232
241
|
return (index$1.h(index$1.Host, null, index$1.h("div", { class: {
|
|
233
242
|
'assign-mode': this.assigningParticipants,
|
|
234
243
|
'selector-mode': !this.assigningParticipants,
|
|
@@ -247,7 +256,7 @@ const RtkBreakoutRoomManager = class {
|
|
|
247
256
|
this.permissions.canAlterConnectedMeetings &&
|
|
248
257
|
!this.room.isParent && (index$1.h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", onClick: () => this.onAssign() }, this.t('breakout_rooms.assign'))), this.mode === 'edit' &&
|
|
249
258
|
!this.assigningParticipants &&
|
|
250
|
-
|
|
259
|
+
canSwitchToThisRoom && (index$1.h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", disabled: this.room.id === this.meeting.meta.meetingId, onClick: () => this.onJoin() }, this.room.id === this.meeting.meta.meetingId
|
|
251
260
|
? this.t('joined')
|
|
252
261
|
: this.t('join'))), !this.room.isParent && (index$1.h("rtk-icon", { icon: this.showExpandedCard ? this.iconPack.chevron_up : this.iconPack.chevron_down, onClick: () => this.toggleCardDisplay() })))), this.renderExpandedCardMaybe(), this.renderParticipantsMaybe())));
|
|
253
262
|
}
|
|
@@ -155,8 +155,17 @@ export class RtkBreakoutRoomManager {
|
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
157
|
var _a, _b, _c;
|
|
158
|
-
if (!this.meeting)
|
|
158
|
+
if (!this.meeting || !this.room || !this.permissions)
|
|
159
159
|
return null;
|
|
160
|
+
/* NOTE(ravindra-cloudflare):
|
|
161
|
+
* Checking if user can switch to this room
|
|
162
|
+
* Check 1: if user has full access.
|
|
163
|
+
* Check 2: For non-parent room, user has "switch meeting" access.
|
|
164
|
+
* Check 3: For parent room, user has "switch to parent meeting" access.
|
|
165
|
+
*/
|
|
166
|
+
const canSwitchToThisRoom = this.permissions.canAlterConnectedMeetings ||
|
|
167
|
+
(this.permissions.canSwitchConnectedMeetings && !this.room.isParent) ||
|
|
168
|
+
(this.permissions.canSwitchToParentMeeting && this.room.isParent);
|
|
160
169
|
return (h(Host, null, h("div", { class: {
|
|
161
170
|
'assign-mode': this.assigningParticipants,
|
|
162
171
|
'selector-mode': !this.assigningParticipants,
|
|
@@ -175,7 +184,7 @@ export class RtkBreakoutRoomManager {
|
|
|
175
184
|
this.permissions.canAlterConnectedMeetings &&
|
|
176
185
|
!this.room.isParent && (h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", onClick: () => this.onAssign() }, this.t('breakout_rooms.assign'))), this.mode === 'edit' &&
|
|
177
186
|
!this.assigningParticipants &&
|
|
178
|
-
|
|
187
|
+
canSwitchToThisRoom && (h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", disabled: this.room.id === this.meeting.meta.meetingId, onClick: () => this.onJoin() }, this.room.id === this.meeting.meta.meetingId
|
|
179
188
|
? this.t('joined')
|
|
180
189
|
: this.t('join'))), !this.room.isParent && (h("rtk-icon", { icon: this.showExpandedCard ? this.iconPack.chevron_up : this.iconPack.chevron_down, onClick: () => this.toggleCardDisplay() })))), this.renderExpandedCardMaybe(), this.renderParticipantsMaybe())));
|
|
181
190
|
}
|
|
@@ -170,8 +170,17 @@ const RtkBreakoutRoomManager = /*@__PURE__*/ proxyCustomElement(class RtkBreakou
|
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
172
|
var _a, _b, _c;
|
|
173
|
-
if (!this.meeting)
|
|
173
|
+
if (!this.meeting || !this.room || !this.permissions)
|
|
174
174
|
return null;
|
|
175
|
+
/* NOTE(ravindra-cloudflare):
|
|
176
|
+
* Checking if user can switch to this room
|
|
177
|
+
* Check 1: if user has full access.
|
|
178
|
+
* Check 2: For non-parent room, user has "switch meeting" access.
|
|
179
|
+
* Check 3: For parent room, user has "switch to parent meeting" access.
|
|
180
|
+
*/
|
|
181
|
+
const canSwitchToThisRoom = this.permissions.canAlterConnectedMeetings ||
|
|
182
|
+
(this.permissions.canSwitchConnectedMeetings && !this.room.isParent) ||
|
|
183
|
+
(this.permissions.canSwitchToParentMeeting && this.room.isParent);
|
|
175
184
|
return (h(Host, null, h("div", { class: {
|
|
176
185
|
'assign-mode': this.assigningParticipants,
|
|
177
186
|
'selector-mode': !this.assigningParticipants,
|
|
@@ -190,7 +199,7 @@ const RtkBreakoutRoomManager = /*@__PURE__*/ proxyCustomElement(class RtkBreakou
|
|
|
190
199
|
this.permissions.canAlterConnectedMeetings &&
|
|
191
200
|
!this.room.isParent && (h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", onClick: () => this.onAssign() }, this.t('breakout_rooms.assign'))), this.mode === 'edit' &&
|
|
192
201
|
!this.assigningParticipants &&
|
|
193
|
-
|
|
202
|
+
canSwitchToThisRoom && (h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", disabled: this.room.id === this.meeting.meta.meetingId, onClick: () => this.onJoin() }, this.room.id === this.meeting.meta.meetingId
|
|
194
203
|
? this.t('joined')
|
|
195
204
|
: this.t('join'))), !this.room.isParent && (h("rtk-icon", { icon: this.showExpandedCard ? this.iconPack.chevron_up : this.iconPack.chevron_down, onClick: () => this.toggleCardDisplay() })))), this.renderExpandedCardMaybe(), this.renderParticipantsMaybe())));
|
|
196
205
|
}
|
|
@@ -3,9 +3,9 @@ import { c as createDefaultConfig, e as defaultIconPack, h as useLanguage } from
|
|
|
3
3
|
import { S as SyncWithStore } from './p-bbe38af7.js';
|
|
4
4
|
import { R as Render } from './p-60fdbd75.js';
|
|
5
5
|
import { d as defineCustomElement$n } from './p-9645c983.js';
|
|
6
|
-
import { d as defineCustomElement$m } from './p-
|
|
6
|
+
import { d as defineCustomElement$m } from './p-47230f49.js';
|
|
7
7
|
import { d as defineCustomElement$l } from './p-963afa79.js';
|
|
8
|
-
import { d as defineCustomElement$k } from './p-
|
|
8
|
+
import { d as defineCustomElement$k } from './p-ac19035c.js';
|
|
9
9
|
import { d as defineCustomElement$j } from './p-e16baa62.js';
|
|
10
10
|
import { d as defineCustomElement$i } from './p-1391bef0.js';
|
|
11
11
|
import { d as defineCustomElement$h } from './p-9de3508b.js';
|
|
@@ -2,7 +2,7 @@ import { p as proxyCustomElement, H, d as createEvent, h, e as Host } from './p-
|
|
|
2
2
|
import { e as defaultIconPack, h as useLanguage, I as resetRoomCount, B as BreakoutRoomsManager, H as participantIdentifier } from './p-bf700149.js';
|
|
3
3
|
import { S as SyncWithStore } from './p-bbe38af7.js';
|
|
4
4
|
import { d as defineCustomElement$8 } from './p-9645c983.js';
|
|
5
|
-
import { d as defineCustomElement$7 } from './p-
|
|
5
|
+
import { d as defineCustomElement$7 } from './p-47230f49.js';
|
|
6
6
|
import { d as defineCustomElement$6 } from './p-963afa79.js';
|
|
7
7
|
import { d as defineCustomElement$5 } from './p-1391bef0.js';
|
|
8
8
|
import { d as defineCustomElement$4 } from './p-073066d9.js';
|
|
@@ -4,9 +4,9 @@ import { h as handleFilesDataTransfer, g as generateChatGroupKey, T as TEMPORARY
|
|
|
4
4
|
import { c as chatUnreadTimestamps } from './p-a83ccdbd.js';
|
|
5
5
|
import { S as SyncWithStore } from './p-bbe38af7.js';
|
|
6
6
|
import { d as defineCustomElement$Q } from './p-9645c983.js';
|
|
7
|
-
import { d as defineCustomElement$P } from './p-
|
|
7
|
+
import { d as defineCustomElement$P } from './p-47230f49.js';
|
|
8
8
|
import { d as defineCustomElement$O } from './p-963afa79.js';
|
|
9
|
-
import { d as defineCustomElement$N } from './p-
|
|
9
|
+
import { d as defineCustomElement$N } from './p-ac19035c.js';
|
|
10
10
|
import { d as defineCustomElement$M } from './p-e16baa62.js';
|
|
11
11
|
import { d as defineCustomElement$L } from './p-1391bef0.js';
|
|
12
12
|
import { d as defineCustomElement$K } from './p-9de3508b.js';
|
|
@@ -26,7 +26,7 @@ import { d as defineCustomElement$x } from './p-21caffae.js';
|
|
|
26
26
|
import { d as defineCustomElement$w } from './p-9cc8f284.js';
|
|
27
27
|
import { d as defineCustomElement$v } from './p-26a20701.js';
|
|
28
28
|
import { d as defineCustomElement$u } from './p-221a4186.js';
|
|
29
|
-
import { d as defineCustomElement$t } from './p-
|
|
29
|
+
import { d as defineCustomElement$t } from './p-99a61e45.js';
|
|
30
30
|
import { d as defineCustomElement$s } from './p-1d32657e.js';
|
|
31
31
|
import { d as defineCustomElement$r } from './p-f45ff21a.js';
|
|
32
32
|
import { d as defineCustomElement$q } from './p-a3948b63.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RtkBreakoutRoomManager$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { R as RtkBreakoutRoomManager$1, d as defineCustomElement$1 } from './p-47230f49.js';
|
|
2
2
|
|
|
3
3
|
const RtkBreakoutRoomManager = RtkBreakoutRoomManager$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RtkBreakoutRoomsManager$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { R as RtkBreakoutRoomsManager$1, d as defineCustomElement$1 } from './p-ac19035c.js';
|
|
2
2
|
|
|
3
3
|
const RtkBreakoutRoomsManager = RtkBreakoutRoomsManager$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RtkDialogManager$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { R as RtkDialogManager$1, d as defineCustomElement$1 } from './p-99a61e45.js';
|
|
2
2
|
|
|
3
3
|
const RtkDialogManager = RtkDialogManager$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -6,16 +6,16 @@ import { g as generateConfig } from './p-517eed51.js';
|
|
|
6
6
|
import './p-a83ccdbd.js';
|
|
7
7
|
import { i as index } from './p-f47d4fe8.js';
|
|
8
8
|
import { d as defineCustomElement$S } from './p-9645c983.js';
|
|
9
|
-
import { d as defineCustomElement$R } from './p-
|
|
9
|
+
import { d as defineCustomElement$R } from './p-47230f49.js';
|
|
10
10
|
import { d as defineCustomElement$Q } from './p-963afa79.js';
|
|
11
|
-
import { d as defineCustomElement$P } from './p-
|
|
11
|
+
import { d as defineCustomElement$P } from './p-ac19035c.js';
|
|
12
12
|
import { d as defineCustomElement$O } from './p-e16baa62.js';
|
|
13
13
|
import { d as defineCustomElement$N } from './p-1391bef0.js';
|
|
14
14
|
import { d as defineCustomElement$M } from './p-9de3508b.js';
|
|
15
15
|
import { d as defineCustomElement$L } from './p-ba1f008f.js';
|
|
16
16
|
import { d as defineCustomElement$K } from './p-5d3d3990.js';
|
|
17
17
|
import { d as defineCustomElement$J } from './p-1425697e.js';
|
|
18
|
-
import { d as defineCustomElement$I } from './p-
|
|
18
|
+
import { d as defineCustomElement$I } from './p-bcd9ae7c.js';
|
|
19
19
|
import { d as defineCustomElement$H } from './p-00cddac4.js';
|
|
20
20
|
import { d as defineCustomElement$G } from './p-34688fcf.js';
|
|
21
21
|
import { d as defineCustomElement$F } from './p-2e3b02b3.js';
|
|
@@ -29,7 +29,7 @@ import { d as defineCustomElement$y } from './p-21caffae.js';
|
|
|
29
29
|
import { d as defineCustomElement$x } from './p-9cc8f284.js';
|
|
30
30
|
import { d as defineCustomElement$w } from './p-26a20701.js';
|
|
31
31
|
import { d as defineCustomElement$v } from './p-221a4186.js';
|
|
32
|
-
import { d as defineCustomElement$u } from './p-
|
|
32
|
+
import { d as defineCustomElement$u } from './p-99a61e45.js';
|
|
33
33
|
import { d as defineCustomElement$t } from './p-1d32657e.js';
|
|
34
34
|
import { d as defineCustomElement$s } from './p-f45ff21a.js';
|
|
35
35
|
import { d as defineCustomElement$r } from './p-a3948b63.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -10846,8 +10846,17 @@ const RtkBreakoutRoomManager = class {
|
|
|
10846
10846
|
}
|
|
10847
10847
|
render() {
|
|
10848
10848
|
var _a, _b, _c;
|
|
10849
|
-
if (!this.meeting)
|
|
10849
|
+
if (!this.meeting || !this.room || !this.permissions)
|
|
10850
10850
|
return null;
|
|
10851
|
+
/* NOTE(ravindra-cloudflare):
|
|
10852
|
+
* Checking if user can switch to this room
|
|
10853
|
+
* Check 1: if user has full access.
|
|
10854
|
+
* Check 2: For non-parent room, user has "switch meeting" access.
|
|
10855
|
+
* Check 3: For parent room, user has "switch to parent meeting" access.
|
|
10856
|
+
*/
|
|
10857
|
+
const canSwitchToThisRoom = this.permissions.canAlterConnectedMeetings ||
|
|
10858
|
+
(this.permissions.canSwitchConnectedMeetings && !this.room.isParent) ||
|
|
10859
|
+
(this.permissions.canSwitchToParentMeeting && this.room.isParent);
|
|
10851
10860
|
return (h(Host, null, h("div", { class: {
|
|
10852
10861
|
'assign-mode': this.assigningParticipants,
|
|
10853
10862
|
'selector-mode': !this.assigningParticipants,
|
|
@@ -10866,7 +10875,7 @@ const RtkBreakoutRoomManager = class {
|
|
|
10866
10875
|
this.permissions.canAlterConnectedMeetings &&
|
|
10867
10876
|
!this.room.isParent && (h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", onClick: () => this.onAssign() }, this.t('breakout_rooms.assign'))), this.mode === 'edit' &&
|
|
10868
10877
|
!this.assigningParticipants &&
|
|
10869
|
-
|
|
10878
|
+
canSwitchToThisRoom && (h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", disabled: this.room.id === this.meeting.meta.meetingId, onClick: () => this.onJoin() }, this.room.id === this.meeting.meta.meetingId
|
|
10870
10879
|
? this.t('joined')
|
|
10871
10880
|
: this.t('join'))), !this.room.isParent && (h("rtk-icon", { icon: this.showExpandedCard ? this.iconPack.chevron_up : this.iconPack.chevron_down, onClick: () => this.toggleCardDisplay() })))), this.renderExpandedCardMaybe(), this.renderParticipantsMaybe())));
|
|
10872
10881
|
}
|
|
@@ -223,8 +223,17 @@ const RtkBreakoutRoomManager = class {
|
|
|
223
223
|
}
|
|
224
224
|
render() {
|
|
225
225
|
var _a, _b, _c;
|
|
226
|
-
if (!this.meeting)
|
|
226
|
+
if (!this.meeting || !this.room || !this.permissions)
|
|
227
227
|
return null;
|
|
228
|
+
/* NOTE(ravindra-cloudflare):
|
|
229
|
+
* Checking if user can switch to this room
|
|
230
|
+
* Check 1: if user has full access.
|
|
231
|
+
* Check 2: For non-parent room, user has "switch meeting" access.
|
|
232
|
+
* Check 3: For parent room, user has "switch to parent meeting" access.
|
|
233
|
+
*/
|
|
234
|
+
const canSwitchToThisRoom = this.permissions.canAlterConnectedMeetings ||
|
|
235
|
+
(this.permissions.canSwitchConnectedMeetings && !this.room.isParent) ||
|
|
236
|
+
(this.permissions.canSwitchToParentMeeting && this.room.isParent);
|
|
228
237
|
return (h(Host, null, h("div", { class: {
|
|
229
238
|
'assign-mode': this.assigningParticipants,
|
|
230
239
|
'selector-mode': !this.assigningParticipants,
|
|
@@ -243,7 +252,7 @@ const RtkBreakoutRoomManager = class {
|
|
|
243
252
|
this.permissions.canAlterConnectedMeetings &&
|
|
244
253
|
!this.room.isParent && (h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", onClick: () => this.onAssign() }, this.t('breakout_rooms.assign'))), this.mode === 'edit' &&
|
|
245
254
|
!this.assigningParticipants &&
|
|
246
|
-
|
|
255
|
+
canSwitchToThisRoom && (h("rtk-button", { kind: "button", variant: "ghost", class: "assign-button", size: "md", disabled: this.room.id === this.meeting.meta.meetingId, onClick: () => this.onJoin() }, this.room.id === this.meeting.meta.meetingId
|
|
247
256
|
? this.t('joined')
|
|
248
257
|
: this.t('join'))), !this.room.isParent && (h("rtk-icon", { icon: this.showExpandedCard ? this.iconPack.chevron_up : this.iconPack.chevron_down, onClick: () => this.toggleCardDisplay() })))), this.renderExpandedCardMaybe(), this.renderParticipantsMaybe())));
|
|
249
258
|
}
|