@fraku/video 0.1.25 → 0.1.27
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 -2
- package/dist/index.cjs +164 -164
- package/dist/index.css +1 -1
- package/dist/index.js +8172 -8061
- package/dist/pages/MainSessionPage/Chat/MessageCard.d.ts +2 -1
- package/dist/pages/MainSessionPage/Chat/SenderInfo.d.ts +2 -1
- package/dist/pages/MainSessionPage/TurnQueue/TurnQueue.d.ts +2 -0
- package/dist/pages/MainSessionPage/TurnQueue/index.d.ts +1 -0
- package/dist/pages/MainSessionPage/helpers/formatTime.d.ts +1 -0
- package/dist/providers/SharedProvider/context.d.ts +9 -1
- package/dist/providers/SharedProvider/reducer/toggleTurnQueueReducer.d.ts +4 -0
- package/dist/providers/SharedProvider/types.d.ts +15 -2
- package/package.json +14 -12
|
@@ -3,6 +3,7 @@ import { ChatMessage } from '@zoom/videosdk';
|
|
|
3
3
|
export type MessageCardProps = {
|
|
4
4
|
chatMessage: ChatMessage;
|
|
5
5
|
currentUserId: number;
|
|
6
|
+
isHost: boolean;
|
|
6
7
|
};
|
|
7
|
-
declare const MessageCard: ({ chatMessage, currentUserId }: MessageCardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
declare const MessageCard: ({ chatMessage, currentUserId, isHost }: MessageCardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
9
|
export default MessageCard;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChatMessage } from '@zoom/videosdk';
|
|
2
2
|
|
|
3
|
-
declare const SenderInfo: ({ sender }: {
|
|
3
|
+
declare const SenderInfo: ({ sender, isHost }: {
|
|
4
4
|
sender: ChatMessage["sender"];
|
|
5
|
+
isHost: boolean;
|
|
5
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export default SenderInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TurnQueue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatTime: (timestamp: number) => string;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { SharedState } from './types';
|
|
2
2
|
import { Participant } from '@zoom/videosdk';
|
|
3
3
|
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const CHAT_STATE_DEFAULT: {
|
|
5
|
+
active: boolean;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const TURN_QUEUE_STATE_DEFAULT: {
|
|
9
|
+
active: boolean;
|
|
10
|
+
timestamp: number;
|
|
11
|
+
};
|
|
5
12
|
export type SharedContextType = {
|
|
6
13
|
sharedState: SharedState;
|
|
7
14
|
requestSharedState: () => Promise<void>;
|
|
@@ -9,6 +16,7 @@ export type SharedContextType = {
|
|
|
9
16
|
raisedHand: boolean;
|
|
10
17
|
toggleHand: () => Promise<void>;
|
|
11
18
|
lowerUserHand: (userId: number) => Promise<void>;
|
|
19
|
+
toggleTurnQueue: (active: boolean) => Promise<void>;
|
|
12
20
|
toggleChat: (active: boolean) => Promise<void>;
|
|
13
21
|
alertUser: (userId: number, message: string) => Promise<void>;
|
|
14
22
|
};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export type SharedState = {
|
|
2
|
-
|
|
2
|
+
chatState: {
|
|
3
|
+
active: boolean;
|
|
4
|
+
timestamp: number;
|
|
5
|
+
};
|
|
6
|
+
turnQueueState: {
|
|
7
|
+
active: boolean;
|
|
8
|
+
timestamp: number;
|
|
9
|
+
};
|
|
3
10
|
speakerQueueIds: number[];
|
|
4
11
|
};
|
|
5
12
|
export type RequestStateAction = {
|
|
@@ -26,5 +33,11 @@ export type AlertUserAction = {
|
|
|
26
33
|
export type ToggleChatAction = {
|
|
27
34
|
type: 'TOGGLE-CHAT';
|
|
28
35
|
active: boolean;
|
|
36
|
+
timestamp: number;
|
|
29
37
|
};
|
|
30
|
-
export type
|
|
38
|
+
export type ToggleTurnQueueAction = {
|
|
39
|
+
type: 'TOGGLE-TURN-QUEUE';
|
|
40
|
+
active: boolean;
|
|
41
|
+
timestamp: number;
|
|
42
|
+
};
|
|
43
|
+
export type SharedAction = RequestStateAction | SendStateAction | ToggleHandAction | LowerUserHandAction | ToggleTurnQueueAction | AlertUserAction | ToggleChatAction;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fraku/video",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -39,14 +39,15 @@
|
|
|
39
39
|
"test:e2e:headed": "playwright test --headed",
|
|
40
40
|
"test:storybook": "test-storybook",
|
|
41
41
|
"build:ci": "tsc && vite build",
|
|
42
|
-
"build:css:ci": "tailwindcss -c ./tailwind.config.js -i ./src/index.css -o ./dist/index.css --minify"
|
|
42
|
+
"build:css:ci": "tailwindcss -c ./tailwind.config.js -i ./src/index.css -o ./dist/index.css --minify",
|
|
43
|
+
"prepare": "husky install"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"react": "^18.2.0",
|
|
46
47
|
"react-dom": "^18.2.0"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@zoom/videosdk": "^2.3.
|
|
50
|
+
"@zoom/videosdk": "^2.3.5",
|
|
50
51
|
"classnames": "^2.5.1",
|
|
51
52
|
"clsx": "^2.1.1",
|
|
52
53
|
"jsrsasign": "^11.1.0",
|
|
@@ -58,37 +59,38 @@
|
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@playwright/test": "^1.57.0",
|
|
61
|
-
"@storybook/react-vite": "^10.1.
|
|
62
|
+
"@storybook/react-vite": "^10.1.5",
|
|
62
63
|
"@storybook/test-runner": "^0.24.2",
|
|
63
64
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
64
65
|
"@testing-library/jest-dom": "^6.9.1",
|
|
65
66
|
"@testing-library/react": "^16.3.0",
|
|
66
67
|
"@types/jsrsasign": "^10.5.15",
|
|
67
|
-
"@types/node": "^24.
|
|
68
|
+
"@types/node": "^24.10.2",
|
|
68
69
|
"@types/react": "^18.2.43",
|
|
69
70
|
"@types/react-dom": "^18.2.17",
|
|
70
|
-
"@types/styled-components": "^5.1.
|
|
71
|
+
"@types/styled-components": "^5.1.36",
|
|
71
72
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
72
73
|
"@typescript-eslint/parser": "^6.14.0",
|
|
73
74
|
"@vitejs/plugin-react": "^4.3.4",
|
|
74
|
-
"@vitest/ui": "^4.0.
|
|
75
|
-
"autoprefixer": "^10.4.
|
|
75
|
+
"@vitest/ui": "^4.0.15",
|
|
76
|
+
"autoprefixer": "^10.4.22",
|
|
76
77
|
"eslint": "^8.55.0",
|
|
77
78
|
"eslint-plugin-react": "^7.37.5",
|
|
78
79
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
79
80
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
80
|
-
"eslint-plugin-storybook": "^10.1.
|
|
81
|
-
"
|
|
81
|
+
"eslint-plugin-storybook": "^10.1.5",
|
|
82
|
+
"husky": "^9.1.7",
|
|
83
|
+
"jsdom": "^27.3.0",
|
|
82
84
|
"postcss": "^8.5.6",
|
|
83
85
|
"react": "^18.2.0",
|
|
84
86
|
"react-dom": "^18.2.0",
|
|
85
|
-
"storybook": "^10.1.
|
|
87
|
+
"storybook": "^10.1.5",
|
|
86
88
|
"tailwindcss": "^3.4.17",
|
|
87
89
|
"typescript": "^5.2.2",
|
|
88
90
|
"vite": "^6.0.7",
|
|
89
91
|
"vite-plugin-dts": "^3.6.4",
|
|
90
92
|
"vite-plugin-static-copy": "^3.1.4",
|
|
91
|
-
"vitest": "^4.0.
|
|
93
|
+
"vitest": "^4.0.15"
|
|
92
94
|
},
|
|
93
95
|
"keywords": [
|
|
94
96
|
"react",
|