@fraku/video 0.0.6 → 0.0.7

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.
Files changed (53) hide show
  1. package/dist/ZoomVideo.d.ts +11 -0
  2. package/dist/ZoomVideo.stories.d.ts +8 -0
  3. package/dist/{components/ZoomVideoPlugin/ZoomVideoPlugin.d.ts → ZoomVideoPlugin.d.ts} +1 -1
  4. package/dist/ZoomVideoPlugin.stories.d.ts +8 -0
  5. package/dist/ZoomVideoPluginRouter.d.ts +4 -0
  6. package/dist/ZoomVideoProvider.d.ts +12 -0
  7. package/dist/components/Chat/Chat.d.ts +2 -0
  8. package/dist/components/Chat/index.d.ts +1 -0
  9. package/dist/components/Video.d.ts +2 -0
  10. package/dist/{components/ZoomVideoPlugin/context.d.ts → context.d.ts} +15 -4
  11. package/dist/hooks/useAsyncHandler.d.ts +5 -0
  12. package/dist/hooks/useClientMessages.d.ts +5 -0
  13. package/dist/hooks/useIsMobile.d.ts +2 -0
  14. package/dist/index.cjs +102 -263
  15. package/dist/index.css +1 -1
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.js +23088 -22790
  18. package/package.json +10 -5
  19. package/dist/App.d.ts +0 -3
  20. package/dist/components/ZoomVideoPlugin/ZoomVideoPlugin.stories.d.ts +0 -27
  21. package/dist/components/ZoomVideoPlugin/components/Video.d.ts +0 -5
  22. package/dist/components/ZoomVideoPlugin/hooks/useClientMessages.d.ts +0 -21
  23. package/dist/components/ZoomVideoPlugin/index.d.ts +0 -2
  24. package/dist/main.d.ts +0 -1
  25. /package/dist/components/{ZoomVideoPlugin/components/ButtonsDock → ButtonsDock}/ButtonsDock.d.ts +0 -0
  26. /package/dist/components/{ZoomVideoPlugin/components/ButtonsDock → ButtonsDock}/DockButton.d.ts +0 -0
  27. /package/dist/components/{ZoomVideoPlugin/components/ButtonsDock → ButtonsDock}/MenuItemTemplate.d.ts +0 -0
  28. /package/dist/components/{ZoomVideoPlugin/components/ButtonsDock → ButtonsDock}/index.d.ts +0 -0
  29. /package/dist/components/{ZoomVideoPlugin/components/MobileIconButton → MobileIconButton}/MobileIconButton.d.ts +0 -0
  30. /package/dist/components/{ZoomVideoPlugin/components/MobileIconButton → MobileIconButton}/index.d.ts +0 -0
  31. /package/dist/components/{ZoomVideoPlugin/components/Overlay → Overlay}/Overlay.d.ts +0 -0
  32. /package/dist/components/{ZoomVideoPlugin/components/Overlay → Overlay}/index.d.ts +0 -0
  33. /package/dist/components/{ZoomVideoPlugin/components/ParticipantsList.d.ts → ParticipantsList.d.ts} +0 -0
  34. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/SettingsContent.d.ts +0 -0
  35. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/SettingsMenu.d.ts +0 -0
  36. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/SettingsOverlay.d.ts +0 -0
  37. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/Tabs/AudioSettings.d.ts +0 -0
  38. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/Tabs/BackgroundSettings.d.ts +0 -0
  39. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/Tabs/DropdownItemTemplate.d.ts +0 -0
  40. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/Tabs/DropdownValueTemplate.d.ts +0 -0
  41. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/Tabs/VideoSettings.d.ts +0 -0
  42. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/context.d.ts +0 -0
  43. /package/dist/components/{ZoomVideoPlugin/components/SettingsOverlay → SettingsOverlay}/index.d.ts +0 -0
  44. /package/dist/{components/ZoomVideoPlugin/constants.d.ts → constants.d.ts} +0 -0
  45. /package/dist/{components/ZoomVideoPlugin/hooks → hooks}/useDeviceSize.d.ts +0 -0
  46. /package/dist/{components/ZoomVideoPlugin/hooks → hooks}/useStartVideoOptions.d.ts +0 -0
  47. /package/dist/{components/ZoomVideoPlugin/hooks → hooks}/useZoomVideoPlayer.d.ts +0 -0
  48. /package/dist/{components/ZoomVideoPlugin/lib → lib}/platforms.d.ts +0 -0
  49. /package/dist/{components/ZoomVideoPlugin/pages → pages}/AfterSession.d.ts +0 -0
  50. /package/dist/{components/ZoomVideoPlugin/pages → pages}/MainSession.d.ts +0 -0
  51. /package/dist/{components/ZoomVideoPlugin/pages → pages}/PanelistsSession.d.ts +0 -0
  52. /package/dist/{components/ZoomVideoPlugin/pages → pages}/PreSessionConfiguration.d.ts +0 -0
  53. /package/dist/{components/ZoomVideoPlugin/types.d.ts → types.d.ts} +0 -0
package/package.json CHANGED
@@ -1,29 +1,33 @@
1
1
  {
2
2
  "name": "@fraku/video",
3
3
  "private": false,
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
+ "./package.json": "./package.json",
10
11
  ".": {
11
12
  "types": "./dist/index.d.ts",
12
13
  "import": "./dist/index.js",
13
14
  "require": "./dist/index.cjs"
14
15
  },
15
16
  "./dist/index.css": "./dist/index.css",
17
+ "./dist/*": "./dist/*",
18
+ "./*": "./dist/*",
16
19
  "./src": "./src/index.ts"
17
20
  },
18
21
  "files": [
19
22
  "dist"
20
23
  ],
21
24
  "scripts": {
22
- "dev": "vite",
23
25
  "build": "tsc && vite build",
24
26
  "build:css": "tailwindcss -c ./tailwind.config.js -i ./src/index.css -o ./dist/index.css --minify",
25
27
  "watch:css": "tailwindcss -c ./tailwind.config.js -i ./src/index.css -o ./dist/index.css --watch",
26
- "lint": "tsc --noEmit && eslint . --ext ts,tsx --report-unused-disable-directives",
28
+ "lint": "npm run lint:ts && npm run lint:js",
29
+ "lint:ts": "tsc --noEmit",
30
+ "lint:js": "eslint . --cache --cache-location node_modules/.eslintcache --ext ts,tsx --report-unused-disable-directives",
27
31
  "preview": "vite preview",
28
32
  "prepublishOnly": "npm run build",
29
33
  "storybook": "storybook dev -p 6006 --no-open",
@@ -36,6 +40,7 @@
36
40
  "dependencies": {
37
41
  "@zoom/videosdk": "^2.2.12",
38
42
  "classnames": "^2.5.1",
43
+ "clsx": "^2.1.1",
39
44
  "primeicons": "^7.0.0",
40
45
  "primereact": "^10.9.6",
41
46
  "react-use": "^17.6.0",
@@ -50,7 +55,7 @@
50
55
  "@types/styled-components": "^5.1.34",
51
56
  "@typescript-eslint/eslint-plugin": "^6.14.0",
52
57
  "@typescript-eslint/parser": "^6.14.0",
53
- "@vitejs/plugin-react": "^4.2.1",
58
+ "@vitejs/plugin-react": "^4.3.4",
54
59
  "autoprefixer": "^10.4.21",
55
60
  "eslint": "^8.55.0",
56
61
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -62,7 +67,7 @@
62
67
  "storybook": "^9.1.13",
63
68
  "tailwindcss": "^3.4.17",
64
69
  "typescript": "^5.2.2",
65
- "vite": "^5.0.8",
70
+ "vite": "^6.0.7",
66
71
  "vite-plugin-dts": "^3.6.4"
67
72
  },
68
73
  "keywords": [
package/dist/App.d.ts DELETED
@@ -1,3 +0,0 @@
1
-
2
- declare function App(): import("react/jsx-runtime").JSX.Element;
3
- export default App;
@@ -1,27 +0,0 @@
1
- import { StoryObj } from '@storybook/react-vite';
2
-
3
- declare const meta: {
4
- title: string;
5
- component: ({ credentials, closeParentContainer, setIsCloseButtonVisible }: import('./types').ZoomVideoPluginProps) => import("react/jsx-runtime").JSX.Element;
6
- parameters: {
7
- layout: string;
8
- };
9
- tags: string[];
10
- argTypes: {
11
- credentials: {
12
- description: string;
13
- control: "object";
14
- };
15
- closeParentContainer: {
16
- description: string;
17
- action: string;
18
- };
19
- setIsCloseButtonVisible: {
20
- description: string;
21
- action: string;
22
- };
23
- };
24
- };
25
- export default meta;
26
- type Story = StoryObj<typeof meta>;
27
- export declare const Default: Story;
@@ -1,5 +0,0 @@
1
- type VideoProps = {
2
- fullRef: React.RefObject<HTMLVideoElement> | null;
3
- };
4
- declare const Video: ({ fullRef }: VideoProps) => import("react/jsx-runtime").JSX.Element;
5
- export default Video;
@@ -1,21 +0,0 @@
1
- import { ActiveSpeaker, ConnectionState, MediaDevice, Participant, Stream, VideoClient } from '@zoom/videosdk';
2
-
3
- type Props = {
4
- zmClient: typeof VideoClient | null;
5
- mediaStream: typeof Stream | null;
6
- setActiveMicrophone: ReactSetter<string | undefined>;
7
- setActiveAudioOutput: ReactSetter<string | undefined>;
8
- setActiveCamera: ReactSetter<string | undefined>;
9
- setMicList: ReactSetter<MediaDevice[]>;
10
- setAudioOutputList: ReactSetter<MediaDevice[]>;
11
- setCameraList: ReactSetter<MediaDevice[]>;
12
- setConnectionState: ReactSetter<ConnectionState | null>;
13
- setIsCamOn: ReactSetter<boolean>;
14
- setIsMicOn: ReactSetter<boolean>;
15
- setActiveSpeakers: ReactSetter<ActiveSpeaker[]>;
16
- setParticipants: ReactSetter<Participant[]>;
17
- setActiveVideoId: ReactSetter<number | null>;
18
- setHandRaises: ReactSetter<Record<string, boolean>>;
19
- };
20
- export declare const useClientMessages: ({ zmClient, mediaStream, setActiveMicrophone, setActiveAudioOutput, setActiveCamera, setMicList, setAudioOutputList, setCameraList, setConnectionState, setIsCamOn, setIsMicOn, setActiveSpeakers, setActiveVideoId, setParticipants, setHandRaises }: Props) => void;
21
- export {};
@@ -1,2 +0,0 @@
1
- export { default } from './ZoomVideoPlugin';
2
- export type { ZoomVideoPluginProps } from './types';
package/dist/main.d.ts DELETED
@@ -1 +0,0 @@
1
-