@naviedu/room-platform-react 0.0.59 → 0.0.60

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.d.ts CHANGED
@@ -294,16 +294,11 @@ declare type RoomPlatformControlBarProps = {
294
294
  onToggleTheaterMode?: () => void;
295
295
  };
296
296
 
297
- export declare function RoomPlatformCurrentOperationStrip({ activeSpeakerParticipantIdentity, canClearActiveSpeaker, isClearingActiveSpeaker, onClearActiveSpeaker, currentPrivateRoomOperation, onCancelPrivateRoom, participants, }: {
297
+ export declare function RoomPlatformCurrentOperationStrip({ activeSpeakerParticipantIdentity, canClearActiveSpeaker, isClearingActiveSpeaker, onClearActiveSpeaker, participants, }: {
298
298
  activeSpeakerParticipantIdentity?: string;
299
299
  canClearActiveSpeaker?: boolean;
300
300
  isClearingActiveSpeaker?: boolean;
301
301
  onClearActiveSpeaker?: () => void;
302
- currentPrivateRoomOperation?: {
303
- status: 'ringing' | 'active';
304
- studentExternalActorId: string;
305
- };
306
- onCancelPrivateRoom?: () => Promise<void> | void;
307
302
  participants: readonly Pick<RoomParticipantPresence, 'name' | 'participantIdentity' | 'externalActorId' | 'isLocal'>[];
308
303
  }): JSX.Element;
309
304
 
package/index.esm.js CHANGED
@@ -19790,8 +19790,9 @@ function _ts_generator$h(thisArg, body) {
19790
19790
  }
19791
19791
  }
19792
19792
  function RoomPlatformCurrentOperationStrip(param) {
19793
- var activeSpeakerParticipantIdentity = param.activeSpeakerParticipantIdentity, canClearActiveSpeaker = param.canClearActiveSpeaker, isClearingActiveSpeaker = param.isClearingActiveSpeaker, onClearActiveSpeaker = param.onClearActiveSpeaker, currentPrivateRoomOperation = param.currentPrivateRoomOperation, onCancelPrivateRoom = param.onCancelPrivateRoom, participants = param.participants;
19793
+ var activeSpeakerParticipantIdentity = param.activeSpeakerParticipantIdentity, canClearActiveSpeaker = param.canClearActiveSpeaker, isClearingActiveSpeaker = param.isClearingActiveSpeaker, onClearActiveSpeaker = param.onClearActiveSpeaker, participants = param.participants;
19794
19794
  var _ref, _ref1;
19795
+ var _useRoomPlatformPrivateRoom = useRoomPlatformPrivateRoom(), cancelPrivateRoom = _useRoomPlatformPrivateRoom.cancelPrivateRoom, currentPrivateRoomOperation = _useRoomPlatformPrivateRoom.currentPrivateRoomOperation;
19795
19796
  var _useState = _sliced_to_array$f(useState(false), 2), isCancelingPrivateRoomOperation = _useState[0], setIsCancelingPrivateRoomOperation = _useState[1];
19796
19797
  var roomPlatformToast = useRoomPlatformToast();
19797
19798
  var activeSpeaker = activeSpeakerParticipantIdentity ? participants.find(function(participant) {
@@ -19807,7 +19808,7 @@ function RoomPlatformCurrentOperationStrip(param) {
19807
19808
  return _ts_generator$h(this, function(_state) {
19808
19809
  switch(_state.label){
19809
19810
  case 0:
19810
- if (!currentPrivateRoomOperation || !onCancelPrivateRoom || isCancelingPrivateRoomOperation) return [
19811
+ if (!currentPrivateRoomOperation || !cancelPrivateRoom || isCancelingPrivateRoomOperation) return [
19811
19812
  2
19812
19813
  ];
19813
19814
  setIsCancelingPrivateRoomOperation(true);
@@ -19821,7 +19822,7 @@ function RoomPlatformCurrentOperationStrip(param) {
19821
19822
  ]);
19822
19823
  return [
19823
19824
  4,
19824
- onCancelPrivateRoom()
19825
+ cancelPrivateRoom()
19825
19826
  ];
19826
19827
  case 2:
19827
19828
  _state.sent();
@@ -19901,7 +19902,7 @@ function RoomPlatformCurrentOperationStrip(param) {
19901
19902
  })
19902
19903
  ]
19903
19904
  }),
19904
- currentPrivateRoomOperation.status === 'ringing' && onCancelPrivateRoom ? /*#__PURE__*/ jsx(RoomActionButton, {
19905
+ currentPrivateRoomOperation.status === 'ringing' && cancelPrivateRoom ? /*#__PURE__*/ jsx(RoomActionButton, {
19905
19906
  type: "button",
19906
19907
  size: "icon-sm",
19907
19908
  variant: "outline",
@@ -27851,7 +27852,7 @@ function RoomPlatformPrivateRoomStatusBanner() {
27851
27852
  children: "Cuộc gọi ri\xeang đang chờ bạn"
27852
27853
  }),
27853
27854
  /*#__PURE__*/ jsx(AlertDialogDescription, {
27854
- children: "Gi\xe1o vi\xean hoặc trợ giảng đang mời bạn v\xe0o ph\xf2ng trao đổi ri\xeang."
27855
+ children: "Gi\xe1o vi\xean đang mời bạn v\xe0o ph\xf2ng trao đổi ri\xeang."
27855
27856
  }),
27856
27857
  privateRoomState.isAcceptingPrivateRoom ? /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBannerContent, {
27857
27858
  message: "Đang v\xe0o ph\xf2ng ri\xeang...",
@@ -29889,7 +29890,6 @@ var RoomPlatformWorkspaceContent = function(param) {
29889
29890
  var _resolvedStageModel_primary, _resolvedStageModel_primary1, _extensions_sidebarTabs;
29890
29891
  var _useRoomPlatform = useRoomPlatform(), access = _useRoomPlatform.access, controlState = _useRoomPlatform.controlState, error = _useRoomPlatform.error, hasCapability = _useRoomPlatform.hasCapability, isActionPending = _useRoomPlatform.isActionPending, localCameraTrack = _useRoomPlatform.localCameraTrack, performAction = _useRoomPlatform.performAction, status = _useRoomPlatform.status;
29891
29892
  var integrations = useRoomPlatformIntegrations().integrations;
29892
- var _useRoomPlatformPrivateRoom = useRoomPlatformPrivateRoom(), cancelPrivateRoom = _useRoomPlatformPrivateRoom.cancelPrivateRoom, currentPrivateRoomOperation = _useRoomPlatformPrivateRoom.currentPrivateRoomOperation;
29893
29893
  var resolvedStageModel = stageModel !== null && stageModel !== void 0 ? stageModel : emptyStageModel;
29894
29894
  var selectedHostCamera = (_resolvedStageModel_cameraOverlay = resolvedStageModel.cameraOverlay) !== null && _resolvedStageModel_cameraOverlay !== void 0 ? _resolvedStageModel_cameraOverlay : ((_resolvedStageModel_primary = resolvedStageModel.primary) === null || _resolvedStageModel_primary === void 0 ? void 0 : _resolvedStageModel_primary.source) === Track.Source.Camera ? resolvedStageModel.primary : undefined;
29895
29895
  var shareSessionKey = ((_resolvedStageModel_primary1 = resolvedStageModel.primary) === null || _resolvedStageModel_primary1 === void 0 ? void 0 : _resolvedStageModel_primary1.source) === Track.Source.ScreenShare ? getShareSessionKey(resolvedStageModel.primary.publication.trackSid) : undefined;
@@ -30164,8 +30164,6 @@ var RoomPlatformWorkspaceContent = function(param) {
30164
30164
  canClearActiveSpeaker: canModerate,
30165
30165
  isClearingActiveSpeaker: isClearingActiveSpeaker,
30166
30166
  onClearActiveSpeaker: canModerate ? clearActiveSpeaker : undefined,
30167
- currentPrivateRoomOperation: currentPrivateRoomOperation,
30168
- onCancelPrivateRoom: cancelPrivateRoom,
30169
30167
  participants: participants
30170
30168
  }),
30171
30169
  canModerate ? /*#__PURE__*/ jsx(RoomPlatformSpeakQueue, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naviedu/room-platform-react",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "type": "module",
5
5
  "main": "./index.esm.js",
6
6
  "module": "./index.esm.js",