@fraku/video 0.1.21 → 0.1.22
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/dist/config/permissions.d.ts +1 -0
- package/dist/index.cjs +222 -222
- package/dist/index.js +9685 -9582
- package/dist/providers/DialogsProvider/context.d.ts +11 -0
- package/dist/providers/SharedProvider/context.d.ts +1 -0
- package/dist/providers/SharedProvider/types.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,6 +1,15 @@
|
|
|
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
|
+
};
|
|
4
13
|
export type DialogsContextType = {
|
|
5
14
|
configDialogVisible: {
|
|
6
15
|
visible: boolean;
|
|
@@ -12,6 +21,8 @@ export type DialogsContextType = {
|
|
|
12
21
|
notify: (message: string, options?: {
|
|
13
22
|
severity?: NotifySeverity;
|
|
14
23
|
}) => void;
|
|
24
|
+
alert: (props: AlertDialogProps) => void;
|
|
25
|
+
confirm: (props: ConfirmDialogProps) => void;
|
|
15
26
|
};
|
|
16
27
|
export declare const DialogsContext: import('react').Context<DialogsContextType>;
|
|
17
28
|
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
|
|
20
|
+
export type AlertUserAction = {
|
|
21
|
+
type: 'ALERT-USER';
|
|
22
|
+
message: string;
|
|
23
|
+
userId: number;
|
|
24
|
+
};
|
|
25
|
+
export type SharedAction = RequestStateAction | SendStateAction | ToggleHandAction | LowerUserHandAction | AlertUserAction;
|