@fraku/video 0.1.2 → 0.1.3

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.
@@ -0,0 +1,4 @@
1
+ import { ConfigDialogProviderProps } from './types';
2
+
3
+ declare const ConfigDialogProvider: ({ children }: ConfigDialogProviderProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ConfigDialogProvider;
@@ -0,0 +1,3 @@
1
+ import { ConfigDialogContextType } from './types';
2
+
3
+ export declare const ConfigDialogContext: import('react').Context<ConfigDialogContextType>;
@@ -0,0 +1,2 @@
1
+ export { default } from './ConfigDialogProvider';
2
+ export { ConfigDialogContext } from './context';
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export type ConfigDialogContextType = {
4
+ configDialogVisible: boolean;
5
+ toggleConfigDialog: () => void;
6
+ };
7
+ export type ConfigDialogProviderProps = {
8
+ children?: ReactNode;
9
+ };
@@ -0,0 +1,4 @@
1
+ import { MediaProviderProps } from './types';
2
+
3
+ declare const MediaProvider: import('react').ForwardRefExoticComponent<MediaProviderProps & import('react').RefAttributes<unknown>>;
4
+ export default MediaProvider;
@@ -0,0 +1,3 @@
1
+ import { MediaContextType } from './types';
2
+
3
+ export declare const MediaContext: import('react').Context<MediaContextType>;
@@ -0,0 +1,2 @@
1
+ export { default } from './MediaProvider';
2
+ export { MediaContext } from './context';
@@ -1,17 +1,16 @@
1
+ import { ReactNode } from 'react';
1
2
  import { ChatMessage, MediaDevice, Participant, VideoPlayer } from '@zoom/videosdk';
3
+ import { Credentials } from '../../types';
2
4
 
3
- export declare const zmClient: typeof import('@zoom/videosdk').VideoClient;
4
- export type ZoomVideoContextType = {
5
+ export type MediaContextType = {
5
6
  sessionStarted: boolean;
6
7
  videoStarted: boolean;
7
8
  activeCameraId: string;
8
9
  activeMicId: string;
10
+ activeSpeakerId: string;
9
11
  cameraList: MediaDevice[];
10
12
  speakerList: MediaDevice[];
11
13
  micList: MediaDevice[];
12
- participants: Participant[];
13
- currentUser: Participant | null;
14
- messages: ChatMessage[];
15
14
  joinSession: () => Promise<void>;
16
15
  leaveSession: () => Promise<void>;
17
16
  attachUserVideo: (userId: number, videoElement: VideoPlayer) => Promise<void>;
@@ -20,5 +19,13 @@ export type ZoomVideoContextType = {
20
19
  stopVideo: () => Promise<void>;
21
20
  switchCamera: (deviceId: string) => Promise<void>;
22
21
  switchMicrophone: (deviceId: string) => Promise<void>;
22
+ switchSpeaker: (deviceId: string) => Promise<void>;
23
+ participants: Participant[];
24
+ currentUser: Participant | null;
25
+ messages: ChatMessage[];
26
+ };
27
+ export type MediaProviderProps = {
28
+ credentials: Credentials;
29
+ messages?: ChatMessage[];
30
+ children: ReactNode;
23
31
  };
24
- export declare const ZoomVideoContext: import('react').Context<ZoomVideoContextType>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fraku/video",
3
3
  "private": false,
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -23,8 +23,8 @@
23
23
  ],
24
24
  "scripts": {
25
25
  "build": "tsc && vite build",
26
- "build:css": "tailwindcss -c ./tailwind.config.js -i ./src/index.css -o ./dist/index.css --minify",
27
- "watch:css": "tailwindcss -c ./tailwind.config.js -i ./src/index.css -o ./dist/index.css --watch",
26
+ "build:css": "tailwindcss -c ./tailwind.config.js -o ./dist/index.css --minify",
27
+ "watch:css": "tailwindcss -c ./tailwind.config.js -o ./dist/index.css --watch",
28
28
  "lint": "npm run lint:ts && npm run lint:js",
29
29
  "lint:ts": "tsc --noEmit",
30
30
  "lint:js": "eslint . --cache --cache-location node_modules/.eslintcache --ext ts,tsx --report-unused-disable-directives",
@@ -82,4 +82,4 @@
82
82
  "author": "",
83
83
  "license": "MIT",
84
84
  "description": "A React TypeScript component library"
85
- }
85
+ }
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ChatMessage } from '@zoom/videosdk';
3
- import { Credentials } from './types';
4
-
5
- type VideoPluginProviderProps = {
6
- credentials: Credentials;
7
- messages?: ChatMessage[];
8
- children: ReactNode;
9
- };
10
- declare const VideoPluginProvider: import('react').ForwardRefExoticComponent<VideoPluginProviderProps & import('react').RefAttributes<unknown>>;
11
- export default VideoPluginProvider;