@fraku/video 0.1.21 → 0.1.23

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.
@@ -18,6 +18,8 @@ export type AudioContextType = {
18
18
  setActiveMicId: (id: string) => void;
19
19
  setActiveSpeakerId: (id: string) => void;
20
20
  setMicMuted: (muted: boolean) => void;
21
+ hostAskUnmute: boolean;
22
+ resetHostAskUnmute: () => void;
21
23
  };
22
24
  export declare const AudioContext: import('react').Context<AudioContextType>;
23
25
  export declare const useAudioContext: () => AudioContextType;
@@ -1,6 +1,20 @@
1
1
  import { SettingsTab } from '../../components/ConfigDialog/context';
2
2
 
3
3
  export type NotifySeverity = 'info' | 'success' | 'error';
4
+ export type AlertDialogProps = {
5
+ header?: string;
6
+ message: string;
7
+ };
8
+ export type ConfirmDialogProps = {
9
+ header?: string;
10
+ message: string;
11
+ onAccept: () => void;
12
+ };
13
+ export type NotifyProps = {
14
+ header?: string;
15
+ message: string;
16
+ severity?: NotifySeverity;
17
+ };
4
18
  export type DialogsContextType = {
5
19
  configDialogVisible: {
6
20
  visible: boolean;
@@ -9,9 +23,11 @@ export type DialogsContextType = {
9
23
  toggleConfigDialog: ({ tab }: {
10
24
  tab?: SettingsTab;
11
25
  }) => void;
12
- notify: (message: string, options?: {
13
- severity?: NotifySeverity;
14
- }) => void;
26
+ acceptParticipationDialogVisible: boolean;
27
+ toggleAcceptParticipationDialog: () => void;
28
+ notify: (props: NotifyProps) => void;
29
+ alert: (props: AlertDialogProps) => void;
30
+ confirm: (props: ConfirmDialogProps) => void;
15
31
  };
16
32
  export declare const DialogsContext: import('react').Context<DialogsContextType>;
17
33
  export declare const useDialogsContext: () => DialogsContextType;
@@ -8,6 +8,7 @@ export type SharedContextType = {
8
8
  raisedHand: boolean;
9
9
  toggleHand: () => Promise<void>;
10
10
  lowerUserHand: (userId: number) => Promise<void>;
11
+ alertUser: (userId: number, message: string) => Promise<void>;
11
12
  };
12
13
  export declare const SharedContext: import('react').Context<SharedContextType>;
13
14
  export declare const useSharedContext: () => SharedContextType;
@@ -17,4 +17,9 @@ export type LowerUserHandAction = {
17
17
  type: 'LOWER-USER-HAND';
18
18
  userId: number;
19
19
  };
20
- export type SharedAction = RequestStateAction | SendStateAction | ToggleHandAction | LowerUserHandAction;
20
+ export type AlertUserAction = {
21
+ type: 'ALERT-USER';
22
+ message: string;
23
+ userId: number;
24
+ };
25
+ export type SharedAction = RequestStateAction | SendStateAction | ToggleHandAction | LowerUserHandAction | AlertUserAction;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fraku/video",
3
3
  "private": false,
4
- "version": "0.1.21",
4
+ "version": "0.1.23",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",