@fraku/video 0.1.71 → 0.1.73

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.
@@ -8,15 +8,15 @@ export type Logger = {
8
8
  };
9
9
  export declare const createLogger: (prefix: string, color: string) => Logger;
10
10
  export declare const loggers: {
11
- plugin: Logger;
12
- session: Logger;
13
- video: Logger;
14
- audio: Logger;
15
- users: Logger;
16
- shared: Logger;
17
- recording: Logger;
18
- videoAttachment: Logger;
19
- virtualBackground: Logger;
20
- utils: Logger;
21
- pip: Logger;
11
+ readonly plugin: Logger;
12
+ readonly session: Logger;
13
+ readonly video: Logger;
14
+ readonly audio: Logger;
15
+ readonly users: Logger;
16
+ readonly shared: Logger;
17
+ readonly recording: Logger;
18
+ readonly videoAttachment: Logger;
19
+ readonly virtualBackground: Logger;
20
+ readonly utils: Logger;
21
+ readonly pip: Logger;
22
22
  };
@@ -11,6 +11,8 @@ export declare const useButtonsDockController: () => {
11
11
  micMenuOptionsRef: import('react').RefObject<Menu>;
12
12
  showChatBadge: boolean;
13
13
  showHandRaiseBadge: boolean | undefined;
14
+ canToggleAudio: boolean;
15
+ canToggleVideo: boolean;
14
16
  handleToggleMic: () => Promise<void>;
15
17
  handleToggleVideo: () => Promise<void>;
16
18
  handleToggleScreenShare: () => Promise<void>;
@@ -3,5 +3,5 @@ import { UserListControllerReturn } from './useUserListController';
3
3
  type UserListViewProps = UserListControllerReturn & {
4
4
  columnHeader: string;
5
5
  };
6
- declare const UserListView: ({ can, columnHeader, currentUserId, filteredUsers, filter, handleMakeHost, handleMakeManager, handleRevokeManager, handleRequestMakeHost, handleToggleParticipantMic, handleGrantMicParticipation, handleGrantMicCameraParticipation, handleUpgradeMicToCamera, handleRevokeParticipation, showUserMenuButton, loading, setFilter, setSelectedUser, userMenuRef }: UserListViewProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const UserListView: ({ can, columnHeader, currentUserId, filteredUsers, filter, handleMakeHost, handleMakeManager, handleRevokeManager, handleRequestMakeHost, handleToggleParticipantMic, handleGrantMicParticipation, handleGrantMicCameraParticipation, handleUpgradeMicToCamera, handleRevokeParticipation, handleRevokeCameraParticipation, showUserMenuButton, loading, setFilter, setSelectedUser, userMenuRef }: UserListViewProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export default UserListView;
@@ -13,6 +13,7 @@ export type UserListControllerReturn = {
13
13
  grantMicCameraParticipation: boolean;
14
14
  upgradeMicToCamera: boolean;
15
15
  revokeParticipation: boolean;
16
+ revokeCameraParticipation: boolean;
16
17
  inviteToParticipateMic: boolean;
17
18
  inviteToParticipateMicCamera: boolean;
18
19
  };
@@ -28,6 +29,7 @@ export type UserListControllerReturn = {
28
29
  handleGrantMicCameraParticipation: () => Promise<void>;
29
30
  handleUpgradeMicToCamera: () => Promise<void>;
30
31
  handleRevokeParticipation: () => Promise<void>;
32
+ handleRevokeCameraParticipation: () => Promise<void>;
31
33
  showUserMenuButton: boolean;
32
34
  loading: boolean;
33
35
  setFilter: ReactSetter<string>;
@@ -10,6 +10,7 @@ type TurnQueueUserListItemProps = {
10
10
  onGrantMicCamera: (p: Participant) => Promise<void>;
11
11
  onUpgradeMicToCamera: (p: Participant) => Promise<void>;
12
12
  onRevokeParticipation: (p: Participant) => Promise<void>;
13
+ onRevokeVideoParticipation: (p: Participant) => Promise<void>;
13
14
  onLowerHand: (p: Participant) => Promise<void>;
14
15
  isMicToggleEnabled: boolean;
15
16
  loading: boolean;
@@ -13,6 +13,7 @@ export type CommandChannelContext = {
13
13
  setRequestedHostRoleDialogVisible: (visible: boolean) => void;
14
14
  setParticipationGranted: (value: ParticipationPermission | null) => void;
15
15
  setParticipationRevoked: (value: boolean) => void;
16
+ setParticipationVideoRevoked: (value: boolean) => void;
16
17
  setPendingParticipationInvite: (value: ParticipationPermission | null) => void;
17
18
  };
18
19
  type CommandChannelActionHandler = (action: CommandChannelAction, context: CommandChannelContext) => void;
@@ -40,15 +40,18 @@ export type SharedContextType = {
40
40
  video: boolean;
41
41
  } | null;
42
42
  participationRevoked: boolean;
43
+ participationVideoRevoked: boolean;
43
44
  pendingParticipationInvite: {
44
45
  audio: boolean;
45
46
  video: boolean;
46
47
  } | null;
47
48
  resetParticipationGranted: () => void;
48
49
  resetParticipationRevoked: () => void;
50
+ resetParticipationVideoRevoked: () => void;
49
51
  resetPendingParticipationInvite: () => void;
50
52
  grantParticipation: (userId: number, audio: boolean, video: boolean) => Promise<void>;
51
53
  revokeParticipation: (userId: number) => Promise<void>;
54
+ revokeVideoParticipation: (userId: number) => Promise<void>;
52
55
  requestParticipation: (userId: number, audio: boolean, video: boolean) => Promise<void>;
53
56
  };
54
57
  export declare const SharedContext: import('react').Context<SharedContextType>;
@@ -1,2 +1,2 @@
1
- export type { ParticipationPermission, ParticipationPermissions, GrantParticipationAction, RevokeParticipationAction, InviteToParticipateAction } from './types';
1
+ export type { ParticipationPermission, ParticipationPermissions, GrantParticipationAction, RevokeParticipationAction, RevokeVideoParticipationAction, InviteToParticipateAction } from './types';
2
2
  export { default as participationReducer } from './reducer';
@@ -1,4 +1,4 @@
1
- import { GrantParticipationAction, ParticipationPermissions, RevokeParticipationAction } from './types';
1
+ import { GrantParticipationAction, ParticipationPermissions, RevokeParticipationAction, RevokeVideoParticipationAction } from './types';
2
2
 
3
- declare const participationReducer: (state: ParticipationPermissions, action: GrantParticipationAction | RevokeParticipationAction) => ParticipationPermissions;
3
+ declare const participationReducer: (state: ParticipationPermissions, action: GrantParticipationAction | RevokeParticipationAction | RevokeVideoParticipationAction) => ParticipationPermissions;
4
4
  export default participationReducer;
@@ -17,6 +17,12 @@ export type RevokeParticipationAction = {
17
17
  targetUserId: number;
18
18
  };
19
19
  };
20
+ export type RevokeVideoParticipationAction = {
21
+ type: 'REVOKE-VIDEO-PARTICIPATION';
22
+ payload: {
23
+ targetUserId: number;
24
+ };
25
+ };
20
26
  export type InviteToParticipateAction = {
21
27
  type: 'INVITE-TO-PARTICIPATE';
22
28
  payload: {
@@ -1,6 +1,6 @@
1
1
  import { SessionStatus } from '../providers/VideoPluginProvider/context';
2
2
  import { ChatAction, ChatState } from './chat';
3
- import { GrantParticipationAction, InviteToParticipateAction, ParticipationPermissions, RevokeParticipationAction } from './participation/types';
3
+ import { GrantParticipationAction, InviteToParticipateAction, ParticipationPermissions, RevokeParticipationAction, RevokeVideoParticipationAction } from './participation/types';
4
4
  import { RequestHostRoleAction } from './request-host-role';
5
5
  import { SessionAction } from './session-info';
6
6
  import { SpeakerTurnAction, SpeakerTurnState } from './speaker-turn';
@@ -30,4 +30,4 @@ export type SendStateAction = {
30
30
  type: 'SEND-SHARED-STATE';
31
31
  state: SharedState;
32
32
  };
33
- export type CommandChannelAction = AlertUserAction | RequestStateAction | SendStateAction | SpeakerTurnAction | ChatAction | SessionAction | RequestHostRoleAction | GrantParticipationAction | RevokeParticipationAction | InviteToParticipateAction;
33
+ export type CommandChannelAction = AlertUserAction | RequestStateAction | SendStateAction | SpeakerTurnAction | ChatAction | SessionAction | RequestHostRoleAction | GrantParticipationAction | RevokeParticipationAction | RevokeVideoParticipationAction | InviteToParticipateAction;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fraku/video",
3
3
  "private": false,
4
- "version": "0.1.71",
4
+ "version": "0.1.73",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",