@naviedu/room-platform-react 0.0.49 → 0.0.50
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/index.esm.js +64 -63
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -29914,72 +29914,73 @@ var RoomPlatformWorkspaceContent = function(param) {
|
|
|
29914
29914
|
}, [
|
|
29915
29915
|
isSelfActiveSpeaker
|
|
29916
29916
|
]);
|
|
29917
|
-
var sidebarContent = /*#__PURE__*/
|
|
29918
|
-
|
|
29919
|
-
|
|
29920
|
-
|
|
29921
|
-
|
|
29922
|
-
|
|
29923
|
-
|
|
29924
|
-
|
|
29925
|
-
|
|
29926
|
-
|
|
29927
|
-
|
|
29928
|
-
|
|
29929
|
-
|
|
29930
|
-
|
|
29931
|
-
|
|
29932
|
-
|
|
29933
|
-
|
|
29934
|
-
|
|
29935
|
-
|
|
29936
|
-
|
|
29937
|
-
|
|
29938
|
-
|
|
29939
|
-
|
|
29940
|
-
|
|
29941
|
-
|
|
29942
|
-
|
|
29943
|
-
|
|
29944
|
-
|
|
29945
|
-
|
|
29946
|
-
|
|
29947
|
-
|
|
29948
|
-
|
|
29949
|
-
|
|
29950
|
-
|
|
29951
|
-
|
|
29952
|
-
|
|
29953
|
-
|
|
29954
|
-
|
|
29955
|
-
|
|
29956
|
-
|
|
29957
|
-
|
|
29958
|
-
|
|
29959
|
-
|
|
29960
|
-
|
|
29961
|
-
|
|
29962
|
-
|
|
29963
|
-
|
|
29964
|
-
|
|
29965
|
-
|
|
29966
|
-
|
|
29967
|
-
|
|
29968
|
-
|
|
29969
|
-
|
|
29970
|
-
}, tab.id);
|
|
29971
|
-
})
|
|
29972
|
-
}),
|
|
29973
|
-
sidebarTabs.map(function(tab) {
|
|
29974
|
-
return /*#__PURE__*/ jsx(TabsContent, {
|
|
29917
|
+
var sidebarContent = /*#__PURE__*/ jsx(RoomPlatformSidebarLayout, {
|
|
29918
|
+
header: /*#__PURE__*/ jsxs(Fragment, {
|
|
29919
|
+
children: [
|
|
29920
|
+
/*#__PURE__*/ jsx(RoomPlatformCurrentOperationStrip, {
|
|
29921
|
+
activeSpeakerParticipantIdentity: activeSpeakerParticipantIdentity,
|
|
29922
|
+
canClearActiveSpeaker: canModerate,
|
|
29923
|
+
isClearingActiveSpeaker: isClearingActiveSpeaker,
|
|
29924
|
+
onClearActiveSpeaker: canModerate ? clearActiveSpeaker : undefined,
|
|
29925
|
+
currentPrivateRoomOperation: currentPrivateRoomOperation,
|
|
29926
|
+
onCancelPrivateRoom: cancelPrivateRoom,
|
|
29927
|
+
participants: participants
|
|
29928
|
+
}),
|
|
29929
|
+
canModerate ? /*#__PURE__*/ jsx(RoomPlatformSpeakQueue, {
|
|
29930
|
+
activeSpeakerParticipantIdentity: activeSpeakerParticipantIdentity,
|
|
29931
|
+
activeSpeakerSlot: activeSpeakerSlot,
|
|
29932
|
+
canApproveSpeak: true,
|
|
29933
|
+
canClearActiveSpeaker: true,
|
|
29934
|
+
canRejectSpeak: true,
|
|
29935
|
+
isClearingActiveSpeaker: isClearingActiveSpeaker,
|
|
29936
|
+
onApproveSpeakRequest: approveSpeakRequest,
|
|
29937
|
+
onClearActiveSpeaker: clearActiveSpeaker,
|
|
29938
|
+
onRejectSpeakRequest: rejectSpeakRequest,
|
|
29939
|
+
participants: participants,
|
|
29940
|
+
raisedHandParticipantIdentities: (_ref4 = controlState === null || controlState === void 0 ? void 0 : controlState.raisedHandParticipantIdentities) !== null && _ref4 !== void 0 ? _ref4 : []
|
|
29941
|
+
}) : null,
|
|
29942
|
+
activeSpeakerMediaSlot || localMediaSlot ? /*#__PURE__*/ jsxs("div", {
|
|
29943
|
+
className: "grid gap-3 border-b border-primary/10 p-2",
|
|
29944
|
+
"data-testid": "room-platform-side-media",
|
|
29945
|
+
children: [
|
|
29946
|
+
activeSpeakerMediaSlot ? /*#__PURE__*/ jsx("div", {
|
|
29947
|
+
className: "relative overflow-hidden rounded-lg",
|
|
29948
|
+
children: activeSpeakerMediaSlot
|
|
29949
|
+
}) : null,
|
|
29950
|
+
activeSpeakerMediaSlot && localMediaSlot ? /*#__PURE__*/ jsx("div", {
|
|
29951
|
+
role: "separator",
|
|
29952
|
+
className: "h-px bg-primary/10"
|
|
29953
|
+
}) : null,
|
|
29954
|
+
localMediaSlot
|
|
29955
|
+
]
|
|
29956
|
+
}) : null
|
|
29957
|
+
]
|
|
29958
|
+
}),
|
|
29959
|
+
children: /*#__PURE__*/ jsxs(Tabs, {
|
|
29960
|
+
value: activeTab,
|
|
29961
|
+
onValueChange: setActiveTab,
|
|
29962
|
+
className: "flex min-h-0 flex-1 flex-col",
|
|
29963
|
+
children: [
|
|
29964
|
+
/*#__PURE__*/ jsx(TabsList, {
|
|
29965
|
+
"aria-label": "C\xe1c tab ph\xf2ng",
|
|
29966
|
+
className: "h-10! w-full flex-none",
|
|
29967
|
+
children: sidebarTabs.map(function(tab) {
|
|
29968
|
+
return /*#__PURE__*/ jsx(TabsTrigger, {
|
|
29969
|
+
className: "cursor-pointer",
|
|
29975
29970
|
value: tab.id,
|
|
29976
|
-
|
|
29977
|
-
children: tab.content()
|
|
29971
|
+
children: tab.title
|
|
29978
29972
|
}, tab.id);
|
|
29979
29973
|
})
|
|
29980
|
-
|
|
29981
|
-
|
|
29982
|
-
|
|
29974
|
+
}),
|
|
29975
|
+
sidebarTabs.map(function(tab) {
|
|
29976
|
+
return /*#__PURE__*/ jsx(TabsContent, {
|
|
29977
|
+
value: tab.id,
|
|
29978
|
+
className: "m-0 min-h-0 flex-1 ".concat(tab.id === 'chat' ? 'overflow-hidden p-0' : 'overflow-auto p-4'),
|
|
29979
|
+
children: tab.content()
|
|
29980
|
+
}, tab.id);
|
|
29981
|
+
})
|
|
29982
|
+
]
|
|
29983
|
+
})
|
|
29983
29984
|
});
|
|
29984
29985
|
var sidebar = chatProviderProps ? /*#__PURE__*/ jsx(ChatProvider, _object_spread_props(_object_spread({}, chatProviderProps), {
|
|
29985
29986
|
className: "flex h-full min-h-0 flex-col",
|