@fraku/video 0.1.5 → 0.1.8
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 +5 -0
- package/dist/index.cjs +275 -274
- package/dist/index.js +25527 -25166
- package/dist/libs/permissions.d.ts +6 -0
- package/dist/pages/MainSessionPage/ParticipantList.d.ts +8 -0
- package/dist/providers/DialogsProvider/DialogsProvider.d.ts +4 -0
- package/dist/providers/DialogsProvider/context.d.ts +3 -0
- package/dist/providers/DialogsProvider/index.d.ts +2 -0
- package/dist/providers/{ConfigDialogProvider → DialogsProvider}/types.d.ts +2 -2
- package/dist/providers/MediaProvider/types.d.ts +8 -1
- package/dist/{types.d.ts → types/index.d.ts} +3 -0
- package/dist/types/permissions.d.ts +6 -0
- package/package.json +1 -1
- package/dist/providers/ConfigDialogProvider/ConfigDialogProvider.d.ts +0 -4
- package/dist/providers/ConfigDialogProvider/context.d.ts +0 -3
- package/dist/providers/ConfigDialogProvider/index.d.ts +0 -2
- /package/dist/{utils.d.ts → libs/helpers.d.ts} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Participant } from '@zoom/videosdk';
|
|
2
|
+
import { default as permissions } from '../config/permissions';
|
|
3
|
+
import { User } from '../types/permissions';
|
|
4
|
+
|
|
5
|
+
export declare const usePermissions: () => (permission: keyof typeof permissions) => boolean | undefined;
|
|
6
|
+
export declare const createUser: (p: Participant, signature: string) => User;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Participant } from '@zoom/videosdk';
|
|
2
|
+
|
|
3
|
+
type ParticipantsPanelProps = {
|
|
4
|
+
items: Participant[];
|
|
5
|
+
columnHeader: string;
|
|
6
|
+
};
|
|
7
|
+
declare const ParticipantList: ({ items, columnHeader }: ParticipantsPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ParticipantList;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type DialogsContextType = {
|
|
4
4
|
configDialogVisible: boolean;
|
|
5
5
|
toggleConfigDialog: () => void;
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
7
|
+
export type DialogsProviderProps = {
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ChatMessage, MediaDevice, Participant, VideoPlayer } from '@zoom/videosdk';
|
|
3
3
|
import { Credentials } from '../../types';
|
|
4
|
+
import { User } from '../../types/permissions';
|
|
4
5
|
|
|
5
6
|
export type MediaContextType = {
|
|
6
7
|
sessionStarted: boolean;
|
|
@@ -21,11 +22,17 @@ export type MediaContextType = {
|
|
|
21
22
|
switchMicrophone: (deviceId: string) => Promise<void>;
|
|
22
23
|
switchSpeaker: (deviceId: string) => Promise<void>;
|
|
23
24
|
participants: Participant[];
|
|
24
|
-
currentUser:
|
|
25
|
+
currentUser: User | null;
|
|
26
|
+
activeSpeaker: Participant | null;
|
|
25
27
|
messages: ChatMessage[];
|
|
28
|
+
votingStarted: boolean;
|
|
29
|
+
initVotingSession?: () => Promise<void>;
|
|
26
30
|
};
|
|
27
31
|
export type MediaProviderProps = {
|
|
28
32
|
credentials: Credentials;
|
|
29
33
|
messages?: ChatMessage[];
|
|
30
34
|
children: ReactNode;
|
|
35
|
+
onInitVotingPreSession?: () => Promise<void>;
|
|
36
|
+
onInitVotingSession?: () => Promise<void>;
|
|
37
|
+
onCloseVotingSession?: () => Promise<void>;
|
|
31
38
|
};
|
|
@@ -7,6 +7,9 @@ export type Credentials = {
|
|
|
7
7
|
sessionPasscode: string;
|
|
8
8
|
};
|
|
9
9
|
export type VideoPluginProps = {
|
|
10
|
+
onInitPreSession?: () => Promise<void>;
|
|
11
|
+
onInitSession?: () => Promise<void>;
|
|
12
|
+
onCloseSession?: () => Promise<void>;
|
|
10
13
|
credentials: Credentials;
|
|
11
14
|
className?: string;
|
|
12
15
|
};
|
package/package.json
CHANGED
|
File without changes
|