@fraku/video 0.1.26 → 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 +1 -0
- package/dist/index.cjs +140 -140
- package/dist/index.css +1 -1
- package/dist/index.js +6971 -6896
- package/dist/pages/MainSessionPage/TurnQueue/TurnQueue.d.ts +2 -0
- package/dist/pages/MainSessionPage/TurnQueue/index.d.ts +1 -0
- package/dist/providers/SharedProvider/context.d.ts +5 -0
- package/dist/providers/SharedProvider/reducer/toggleTurnQueueReducer.d.ts +4 -0
- package/dist/providers/SharedProvider/types.d.ts +10 -1
- package/package.json +4 -2
- /package/dist/pages/MainSessionPage/{Chat → helpers}/formatTime.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TurnQueue';
|
|
@@ -5,6 +5,10 @@ export declare const CHAT_STATE_DEFAULT: {
|
|
|
5
5
|
active: boolean;
|
|
6
6
|
timestamp: number;
|
|
7
7
|
};
|
|
8
|
+
export declare const TURN_QUEUE_STATE_DEFAULT: {
|
|
9
|
+
active: boolean;
|
|
10
|
+
timestamp: number;
|
|
11
|
+
};
|
|
8
12
|
export type SharedContextType = {
|
|
9
13
|
sharedState: SharedState;
|
|
10
14
|
requestSharedState: () => Promise<void>;
|
|
@@ -12,6 +16,7 @@ export type SharedContextType = {
|
|
|
12
16
|
raisedHand: boolean;
|
|
13
17
|
toggleHand: () => Promise<void>;
|
|
14
18
|
lowerUserHand: (userId: number) => Promise<void>;
|
|
19
|
+
toggleTurnQueue: (active: boolean) => Promise<void>;
|
|
15
20
|
toggleChat: (active: boolean) => Promise<void>;
|
|
16
21
|
alertUser: (userId: number, message: string) => Promise<void>;
|
|
17
22
|
};
|
|
@@ -3,6 +3,10 @@ export type SharedState = {
|
|
|
3
3
|
active: boolean;
|
|
4
4
|
timestamp: number;
|
|
5
5
|
};
|
|
6
|
+
turnQueueState: {
|
|
7
|
+
active: boolean;
|
|
8
|
+
timestamp: number;
|
|
9
|
+
};
|
|
6
10
|
speakerQueueIds: number[];
|
|
7
11
|
};
|
|
8
12
|
export type RequestStateAction = {
|
|
@@ -31,4 +35,9 @@ export type ToggleChatAction = {
|
|
|
31
35
|
active: boolean;
|
|
32
36
|
timestamp: number;
|
|
33
37
|
};
|
|
34
|
-
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,7 +39,8 @@
|
|
|
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",
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
79
80
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
80
81
|
"eslint-plugin-storybook": "^10.1.5",
|
|
82
|
+
"husky": "^9.1.7",
|
|
81
83
|
"jsdom": "^27.3.0",
|
|
82
84
|
"postcss": "^8.5.6",
|
|
83
85
|
"react": "^18.2.0",
|
|
File without changes
|