@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.
Files changed (2) hide show
  1. package/index.esm.js +64 -63
  2. 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__*/ jsxs("aside", {
29918
- className: "flex h-full max-h-full min-h-0 flex-col gap-0 overflow-hidden bg-white text-slate-950",
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
- /*#__PURE__*/ jsxs(Tabs, {
29958
- value: activeTab,
29959
- onValueChange: setActiveTab,
29960
- className: "flex min-h-0 flex-1 flex-col",
29961
- children: [
29962
- /*#__PURE__*/ jsx(TabsList, {
29963
- "aria-label": "C\xe1c tab ph\xf2ng",
29964
- className: "h-10! w-full flex-none",
29965
- children: sidebarTabs.map(function(tab) {
29966
- return /*#__PURE__*/ jsx(TabsTrigger, {
29967
- className: "cursor-pointer",
29968
- value: tab.id,
29969
- children: tab.title
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
- className: "m-0 min-h-0 flex-1 ".concat(tab.id === 'chat' ? 'overflow-hidden p-0' : 'overflow-auto p-4'),
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naviedu/room-platform-react",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "type": "module",
5
5
  "main": "./index.esm.js",
6
6
  "module": "./index.esm.js",